@builder.io/sdk-react 1.0.23 → 1.0.25
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 +31 -31
- package/lib/browser/blocks-exports.mjs +1042 -826
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +8 -1
- package/lib/browser/init.mjs +37 -2
- package/lib/browser/{server-entry-4ca9f249.js → server-entry-d15ee928.js} +2 -1
- package/lib/browser/{server-entry-f69e2b2a.cjs → server-entry-f28ec73b.cjs} +2 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-93608689.js → blocks-7c1422af.js} +682 -685
- package/lib/edge/blocks-8c31869c.cjs +32 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/button-3439cb1b.js +31 -0
- package/lib/edge/button-96857fcf.cjs +1 -0
- package/lib/edge/columns-0d152875.js +163 -0
- package/lib/edge/columns-930c3d9a.cjs +28 -0
- package/lib/edge/{content-variants-f416bff5.js → content-variants-1ff6980e.js} +404 -262
- package/lib/edge/content-variants-d62785c6.cjs +134 -0
- package/lib/edge/{form-8526db32.js → form-1dbd32d7.js} +3 -3
- package/lib/edge/{form-44ceed15.cjs → form-69ed6cc5.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-e85bf7a3.js → get-class-prop-name-58140fb7.js} +2 -1
- package/lib/edge/get-class-prop-name-c793129b.cjs +1 -0
- package/lib/edge/image-764070f8.cjs +17 -0
- package/lib/edge/{image-0008c792.js → image-9d24a962.js} +24 -24
- package/lib/edge/{img-a5802e2b.cjs → img-305b1676.cjs} +1 -1
- package/lib/edge/{img-5ef224a8.js → img-d4b1130f.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +8 -1
- package/lib/edge/init.mjs +37 -2
- package/lib/edge/{input-f1aa0191.cjs → input-28dd9b60.cjs} +1 -1
- package/lib/edge/{input-3f85283b.js → input-a7054c28.js} +1 -1
- package/lib/edge/{select-d4c018c0.cjs → select-57b6e444.cjs} +1 -1
- package/lib/edge/{select-4fe889b6.js → select-dd83a040.js} +1 -1
- package/lib/edge/{server-entry-e1e18fd2.js → server-entry-cb8ad418.js} +2 -1
- package/lib/edge/{server-entry-c4b7844d.cjs → server-entry-d9413c6f.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-2a11e808.cjs → slot-3f6aff1b.cjs} +1 -1
- package/lib/edge/{slot-97599025.js → slot-7dbe2bcb.js} +3 -3
- package/lib/edge/symbol-63f3b56e.cjs +1 -0
- package/lib/edge/{symbol-a90a41a3.js → symbol-a20aae0e.js} +32 -26
- package/lib/edge/tabs-f559c3bf.cjs +1 -0
- package/lib/edge/tabs-f5fd67a5.js +69 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +1158 -942
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +8 -6
- package/lib/node/node-runtime-79a56b80.cjs +48 -0
- package/lib/node/{node-runtime-8062cfb8.js → node-runtime-def43b7b.js} +49 -47
- package/lib/node/{server-entry-3e54c767.js → server-entry-28bf4f4c.js} +1 -1
- package/lib/node/{server-entry-461bfaf9.cjs → server-entry-c4d16d70.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/columns/columns.types.d.ts +1 -1
- package/types/blocks/columns/helpers.d.ts +1 -0
- package/types/blocks/tabs/component-info.d.ts +2 -0
- package/types/blocks/tabs/index.d.ts +1 -0
- package/types/blocks/tabs/tabs.d.ts +4 -0
- package/types/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/blocks/text/text.types.d.ts +2 -1
- package/types/components/block/block.helpers.d.ts +4 -2
- package/types/components/content/components/styles.helpers.d.ts +1 -0
- package/types/components/dynamic-div.d.ts +15 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +4 -1
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/types/types/targets.d.ts +1 -1
- package/lib/edge/blocks-5539f58f.cjs +0 -32
- package/lib/edge/button-7e98d8f3.cjs +0 -1
- package/lib/edge/button-8816ab35.js +0 -28
- package/lib/edge/columns-8db639b5.cjs +0 -28
- package/lib/edge/columns-d065e3c4.js +0 -156
- package/lib/edge/content-variants-44d061f2.cjs +0 -134
- package/lib/edge/get-class-prop-name-7b951501.cjs +0 -1
- package/lib/edge/image-ee3dd857.cjs +0 -17
- package/lib/edge/symbol-dbb5c95e.cjs +0 -1
- package/lib/node/node-runtime-11a8cdfe.cjs +0 -48
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var Me = Object.defineProperty;
|
|
3
|
+
var Ue = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ne = (e, t, n) => (Ue(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as le, isEditing as F, registerInsertMenu as Oe, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as Q, _track as me, isPreviewing as qe, fetchOneEntry as ke, createEditorListener as _e, fetch as ze, serializeComponentInfo as fe, handleABTestingSync as Je } from "./server-entry-28bf4f4c.js";
|
|
7
|
+
import { createContext as Ce, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as Te } from "react";
|
|
8
|
+
import { getFunctionArguments as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we } from "./node-runtime-def43b7b.js";
|
|
9
|
+
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
10
|
+
function se(e) {
|
|
11
|
+
return /* @__PURE__ */ s(w, { children: et(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
13
|
+
const H = () => {
|
|
14
|
+
switch (q) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -20,31 +20,35 @@ const U = () => {
|
|
|
20
20
|
case "vue":
|
|
21
21
|
case "solid":
|
|
22
22
|
case "qwik":
|
|
23
|
+
case "angular":
|
|
23
24
|
return "class";
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
+
function tt(e) {
|
|
28
|
+
function t() {
|
|
29
|
+
return {
|
|
30
|
+
...e.attributes,
|
|
31
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
32
|
+
...e.link ? {
|
|
33
|
+
href: e.link,
|
|
34
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
35
|
+
role: "link"
|
|
36
|
+
} : {
|
|
37
|
+
role: "button"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
27
41
|
return /* @__PURE__ */ s(
|
|
28
|
-
|
|
42
|
+
se,
|
|
29
43
|
{
|
|
30
|
-
attributes:
|
|
31
|
-
...e.attributes,
|
|
32
|
-
[U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
|
|
33
|
-
...e.link ? {
|
|
34
|
-
href: e.link,
|
|
35
|
-
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
36
|
-
role: "link"
|
|
37
|
-
} : {
|
|
38
|
-
role: "button"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
44
|
+
attributes: t(),
|
|
41
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
42
46
|
actionAttributes: {},
|
|
43
47
|
children: e.text
|
|
44
48
|
}
|
|
45
49
|
);
|
|
46
50
|
}
|
|
47
|
-
const
|
|
51
|
+
const ce = Ce({
|
|
48
52
|
content: null,
|
|
49
53
|
context: {},
|
|
50
54
|
localState: void 0,
|
|
@@ -57,8 +61,8 @@ const re = Se({
|
|
|
57
61
|
inheritedStyles: {},
|
|
58
62
|
BlocksWrapper: "div",
|
|
59
63
|
BlocksWrapperProps: {}
|
|
60
|
-
}),
|
|
61
|
-
function
|
|
64
|
+
}), Ie = Ce({ registeredComponents: {} });
|
|
65
|
+
function nt(e) {
|
|
62
66
|
var t;
|
|
63
67
|
return {
|
|
64
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -69,28 +73,28 @@ function Ze(e) {
|
|
|
69
73
|
builderBlock: e
|
|
70
74
|
};
|
|
71
75
|
}
|
|
72
|
-
const
|
|
76
|
+
const it = ({
|
|
73
77
|
code: e,
|
|
74
78
|
builder: t,
|
|
75
79
|
context: n,
|
|
76
80
|
event: i,
|
|
77
81
|
localState: o,
|
|
78
|
-
rootSetState:
|
|
79
|
-
rootState:
|
|
82
|
+
rootSetState: l,
|
|
83
|
+
rootState: r
|
|
80
84
|
}) => {
|
|
81
|
-
const
|
|
85
|
+
const a = Ye({
|
|
82
86
|
builder: t,
|
|
83
87
|
context: n,
|
|
84
88
|
event: i,
|
|
85
|
-
state:
|
|
86
|
-
rootState:
|
|
89
|
+
state: Ee({
|
|
90
|
+
rootState: r,
|
|
87
91
|
localState: o,
|
|
88
|
-
rootSetState:
|
|
92
|
+
rootSetState: l
|
|
89
93
|
})
|
|
90
94
|
});
|
|
91
|
-
return new Function(...
|
|
95
|
+
return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
|
|
92
96
|
};
|
|
93
|
-
function
|
|
97
|
+
function Ee({
|
|
94
98
|
rootState: e,
|
|
95
99
|
localState: t,
|
|
96
100
|
rootSetState: n
|
|
@@ -99,33 +103,33 @@ function we({
|
|
|
99
103
|
get: (i, o) => {
|
|
100
104
|
if (t && o in t)
|
|
101
105
|
return t[o];
|
|
102
|
-
const
|
|
103
|
-
return typeof
|
|
104
|
-
rootState:
|
|
106
|
+
const l = i[o];
|
|
107
|
+
return typeof l == "object" && l !== null ? Ee({
|
|
108
|
+
rootState: l,
|
|
105
109
|
localState: void 0,
|
|
106
|
-
rootSetState: n ? (
|
|
107
|
-
i[o] =
|
|
110
|
+
rootSetState: n ? (r) => {
|
|
111
|
+
i[o] = r, n(i);
|
|
108
112
|
} : void 0
|
|
109
|
-
}) :
|
|
113
|
+
}) : l;
|
|
110
114
|
},
|
|
111
|
-
set: (i, o,
|
|
115
|
+
set: (i, o, l) => {
|
|
112
116
|
if (t && o in t)
|
|
113
117
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
114
|
-
return i[o] =
|
|
118
|
+
return i[o] = l, n == null || n(i), !0;
|
|
115
119
|
}
|
|
116
120
|
});
|
|
117
121
|
}
|
|
118
|
-
function
|
|
122
|
+
function ot() {
|
|
119
123
|
var e;
|
|
120
|
-
return typeof process != "undefined" &&
|
|
124
|
+
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
121
125
|
}
|
|
122
|
-
const
|
|
126
|
+
const at = () => {
|
|
123
127
|
var i;
|
|
124
|
-
if (!
|
|
128
|
+
if (!ot())
|
|
125
129
|
return !1;
|
|
126
130
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
127
|
-
return e && t && !n ? (
|
|
128
|
-
},
|
|
131
|
+
return e && t && !n ? (Z.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;
|
|
132
|
+
}, rt = (e) => G() || at() ? it(e) : Ge(e), L = class L {
|
|
129
133
|
static getCacheKey(t) {
|
|
130
134
|
return JSON.stringify({
|
|
131
135
|
...t,
|
|
@@ -135,59 +139,59 @@ const nt = () => {
|
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
static getCachedValue(t) {
|
|
138
|
-
return
|
|
142
|
+
return L.cache.get(t);
|
|
139
143
|
}
|
|
140
144
|
static setCachedValue(t, n) {
|
|
141
|
-
|
|
145
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
142
146
|
value: n
|
|
143
147
|
});
|
|
144
148
|
}
|
|
145
149
|
};
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
function
|
|
150
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
151
|
+
let U = L;
|
|
152
|
+
function K({
|
|
149
153
|
code: e,
|
|
150
154
|
context: t,
|
|
151
155
|
localState: n,
|
|
152
156
|
rootState: i,
|
|
153
157
|
rootSetState: o,
|
|
154
|
-
event:
|
|
155
|
-
isExpression:
|
|
156
|
-
enableCache:
|
|
158
|
+
event: l,
|
|
159
|
+
isExpression: r = !0,
|
|
160
|
+
enableCache: a
|
|
157
161
|
}) {
|
|
158
162
|
if (e === "")
|
|
159
163
|
return;
|
|
160
|
-
const
|
|
161
|
-
code:
|
|
162
|
-
isExpression:
|
|
164
|
+
const c = {
|
|
165
|
+
code: Qe(e, {
|
|
166
|
+
isExpression: r
|
|
163
167
|
}),
|
|
164
|
-
builder:
|
|
168
|
+
builder: Xe(),
|
|
165
169
|
context: t,
|
|
166
|
-
event:
|
|
170
|
+
event: l,
|
|
167
171
|
rootSetState: o,
|
|
168
172
|
rootState: i,
|
|
169
173
|
localState: n
|
|
170
174
|
};
|
|
171
|
-
if (
|
|
172
|
-
const
|
|
175
|
+
if (a) {
|
|
176
|
+
const d = U.getCacheKey(c), m = U.getCachedValue(d);
|
|
173
177
|
if (m)
|
|
174
178
|
return m.value;
|
|
175
179
|
}
|
|
176
180
|
try {
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
179
|
-
const m =
|
|
180
|
-
|
|
181
|
+
const d = rt(c);
|
|
182
|
+
if (a) {
|
|
183
|
+
const m = U.getCacheKey(c);
|
|
184
|
+
U.setCachedValue(m, d);
|
|
181
185
|
}
|
|
182
|
-
return
|
|
183
|
-
} catch (
|
|
184
|
-
|
|
186
|
+
return d;
|
|
187
|
+
} catch (d) {
|
|
188
|
+
Z.error("Failed code evaluation: " + d.message, {
|
|
185
189
|
code: e
|
|
186
190
|
});
|
|
187
191
|
return;
|
|
188
192
|
}
|
|
189
193
|
}
|
|
190
|
-
const
|
|
194
|
+
const lt = ({
|
|
191
195
|
block: e,
|
|
192
196
|
context: t,
|
|
193
197
|
localState: n,
|
|
@@ -196,55 +200,55 @@ const ot = ({
|
|
|
196
200
|
}) => {
|
|
197
201
|
if (!e.bindings)
|
|
198
202
|
return e;
|
|
199
|
-
const
|
|
200
|
-
...
|
|
203
|
+
const l = le(e), r = {
|
|
204
|
+
...l,
|
|
201
205
|
properties: {
|
|
202
|
-
...
|
|
206
|
+
...l.properties
|
|
203
207
|
},
|
|
204
208
|
actions: {
|
|
205
|
-
...
|
|
209
|
+
...l.actions
|
|
206
210
|
}
|
|
207
211
|
};
|
|
208
|
-
for (const
|
|
209
|
-
const
|
|
210
|
-
code:
|
|
212
|
+
for (const a in e.bindings) {
|
|
213
|
+
const c = e.bindings[a], d = K({
|
|
214
|
+
code: c,
|
|
211
215
|
localState: n,
|
|
212
216
|
rootState: i,
|
|
213
217
|
rootSetState: o,
|
|
214
218
|
context: t,
|
|
215
219
|
enableCache: !0
|
|
216
220
|
});
|
|
217
|
-
|
|
221
|
+
we(r, a, d);
|
|
218
222
|
}
|
|
219
|
-
return
|
|
223
|
+
return r;
|
|
220
224
|
};
|
|
221
|
-
function
|
|
225
|
+
function X({
|
|
222
226
|
block: e,
|
|
223
227
|
context: t,
|
|
224
228
|
shouldEvaluateBindings: n,
|
|
225
229
|
localState: i,
|
|
226
230
|
rootState: o,
|
|
227
|
-
rootSetState:
|
|
231
|
+
rootSetState: l
|
|
228
232
|
}) {
|
|
229
|
-
const
|
|
230
|
-
return n ?
|
|
231
|
-
block:
|
|
233
|
+
const r = e;
|
|
234
|
+
return n ? lt({
|
|
235
|
+
block: r,
|
|
232
236
|
localState: i,
|
|
233
237
|
rootState: o,
|
|
234
|
-
rootSetState:
|
|
238
|
+
rootSetState: l,
|
|
235
239
|
context: t
|
|
236
|
-
}) :
|
|
240
|
+
}) : r;
|
|
237
241
|
}
|
|
238
|
-
function
|
|
239
|
-
let i, o,
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
+
function st(e, t, n = {}) {
|
|
243
|
+
let i, o, l, r = null, a = 0;
|
|
244
|
+
const c = function() {
|
|
245
|
+
a = n.leading === !1 ? 0 : Date.now(), r = null, l = e.apply(i, o), r || (i = o = null);
|
|
242
246
|
};
|
|
243
247
|
return function() {
|
|
244
|
-
const
|
|
245
|
-
!
|
|
246
|
-
const m = t - (
|
|
247
|
-
return i = this, o = arguments, m <= 0 || m > t ? (
|
|
248
|
+
const d = Date.now();
|
|
249
|
+
!a && n.leading === !1 && (a = d);
|
|
250
|
+
const m = t - (d - a);
|
|
251
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), a = d, l = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, m)), l;
|
|
248
252
|
};
|
|
249
253
|
}
|
|
250
254
|
function O(e, ...t) {
|
|
@@ -252,123 +256,124 @@ function O(e, ...t) {
|
|
|
252
256
|
for (let i = 1; i < arguments.length; i++) {
|
|
253
257
|
const o = arguments[i];
|
|
254
258
|
if (o != null)
|
|
255
|
-
for (const
|
|
256
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
259
|
+
for (const l in o)
|
|
260
|
+
Object.prototype.hasOwnProperty.call(o, l) && (n[l] = o[l]);
|
|
257
261
|
}
|
|
258
262
|
return n;
|
|
259
263
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
264
|
+
const de = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
265
|
+
function ct(e) {
|
|
262
266
|
for (const t of e)
|
|
263
267
|
switch (t.trigger) {
|
|
264
268
|
case "pageLoad":
|
|
265
|
-
|
|
269
|
+
Ve(t);
|
|
266
270
|
break;
|
|
267
271
|
case "scrollInView":
|
|
268
|
-
|
|
272
|
+
ut(t);
|
|
269
273
|
break;
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
|
-
function
|
|
276
|
+
function Re(e) {
|
|
273
277
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
274
278
|
}
|
|
275
|
-
function
|
|
276
|
-
const n =
|
|
277
|
-
for (const
|
|
278
|
-
for (const
|
|
279
|
-
|
|
279
|
+
function Pe(e, t) {
|
|
280
|
+
const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, r = [o, l];
|
|
281
|
+
for (const a of r)
|
|
282
|
+
for (const c of n)
|
|
283
|
+
c in a || (a[c] = i[c]);
|
|
280
284
|
}
|
|
281
|
-
function
|
|
285
|
+
function dt(e) {
|
|
282
286
|
const t = [];
|
|
283
287
|
for (const n of e.steps)
|
|
284
288
|
for (const i in n.styles)
|
|
285
289
|
t.indexOf(i) === -1 && t.push(i);
|
|
286
290
|
return t;
|
|
287
291
|
}
|
|
288
|
-
function
|
|
292
|
+
function Ve(e) {
|
|
289
293
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
290
294
|
if (!t.length) {
|
|
291
|
-
|
|
295
|
+
Re(e.elementId || e.id || "");
|
|
292
296
|
return;
|
|
293
297
|
}
|
|
294
298
|
Array.from(t).forEach((n) => {
|
|
295
|
-
|
|
296
|
-
n.style.transition = `all ${e.duration}s ${
|
|
299
|
+
Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
|
|
300
|
+
n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
|
|
297
301
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
298
302
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
299
303
|
});
|
|
300
304
|
});
|
|
301
305
|
}
|
|
302
|
-
function
|
|
306
|
+
function ut(e) {
|
|
303
307
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
304
308
|
if (!t.length) {
|
|
305
|
-
|
|
309
|
+
Re(e.elementId || e.id || "");
|
|
306
310
|
return;
|
|
307
311
|
}
|
|
308
312
|
Array.from(t).forEach((n) => {
|
|
309
|
-
|
|
313
|
+
Pe(e, n);
|
|
310
314
|
let i = !1, o = !1;
|
|
311
|
-
function
|
|
312
|
-
!i &&
|
|
313
|
-
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
315
|
+
function l() {
|
|
316
|
+
!i && a(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
317
|
+
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
314
318
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
315
319
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
316
|
-
})) : e.repeat && i && !o && !
|
|
320
|
+
})) : e.repeat && i && !o && !a(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
317
321
|
}
|
|
318
|
-
const
|
|
322
|
+
const r = st(l, 200, {
|
|
319
323
|
leading: !1
|
|
320
324
|
});
|
|
321
|
-
function
|
|
322
|
-
const
|
|
323
|
-
return
|
|
325
|
+
function a(m) {
|
|
326
|
+
const u = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
|
|
327
|
+
return u.bottom > S && u.top < g - S;
|
|
324
328
|
}
|
|
325
|
-
const
|
|
326
|
-
function
|
|
327
|
-
O(n.style,
|
|
329
|
+
const c = e.steps[0].styles;
|
|
330
|
+
function d() {
|
|
331
|
+
O(n.style, c);
|
|
328
332
|
}
|
|
329
|
-
|
|
330
|
-
n.style.transition = `all ${e.duration}s ${
|
|
331
|
-
}), document.addEventListener("scroll",
|
|
333
|
+
d(), setTimeout(() => {
|
|
334
|
+
n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
335
|
+
}), document.addEventListener("scroll", r, {
|
|
332
336
|
capture: !0,
|
|
333
337
|
passive: !0
|
|
334
|
-
}),
|
|
338
|
+
}), l();
|
|
335
339
|
});
|
|
336
340
|
}
|
|
337
|
-
const
|
|
341
|
+
const mt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Be = (e) => Object.entries(e).map(([n, i]) => {
|
|
338
342
|
if (typeof i == "string")
|
|
339
|
-
return `${
|
|
340
|
-
}).filter(
|
|
341
|
-
`),
|
|
343
|
+
return `${mt(n)}: ${i};`;
|
|
344
|
+
}).filter(Y), ft = (e) => Be(e).join(`
|
|
345
|
+
`), z = ({
|
|
342
346
|
mediaQuery: e,
|
|
343
347
|
className: t,
|
|
344
348
|
styles: n
|
|
345
349
|
}) => {
|
|
346
350
|
const i = `.${t} {
|
|
347
|
-
${
|
|
351
|
+
${ft(n)}
|
|
348
352
|
}`;
|
|
349
353
|
return e ? `${e} {
|
|
350
354
|
${i}
|
|
351
355
|
}` : i;
|
|
352
356
|
};
|
|
353
|
-
function
|
|
357
|
+
function ht({
|
|
354
358
|
style: e
|
|
355
359
|
}) {
|
|
356
360
|
return e;
|
|
357
361
|
}
|
|
358
|
-
const
|
|
362
|
+
const gt = ({
|
|
359
363
|
block: e,
|
|
360
364
|
context: t
|
|
361
|
-
}) =>
|
|
365
|
+
}) => Ne(ht({
|
|
362
366
|
style: e.style || {},
|
|
363
367
|
context: t,
|
|
364
368
|
block: e
|
|
365
369
|
}));
|
|
366
|
-
function
|
|
367
|
-
switch (
|
|
370
|
+
function Ne(e) {
|
|
371
|
+
switch (q) {
|
|
368
372
|
case "svelte":
|
|
369
373
|
case "vue":
|
|
370
374
|
case "solid":
|
|
371
|
-
|
|
375
|
+
case "angular":
|
|
376
|
+
return Be(e).join(" ");
|
|
372
377
|
case "qwik":
|
|
373
378
|
case "reactNative":
|
|
374
379
|
case "react":
|
|
@@ -376,20 +381,20 @@ function Pe(e) {
|
|
|
376
381
|
return e;
|
|
377
382
|
}
|
|
378
383
|
}
|
|
379
|
-
const
|
|
384
|
+
const bt = ({
|
|
380
385
|
block: e,
|
|
381
386
|
context: t,
|
|
382
387
|
registeredComponents: n
|
|
383
388
|
}) => {
|
|
384
|
-
var
|
|
385
|
-
const i = (
|
|
389
|
+
var l;
|
|
390
|
+
const i = (l = X({
|
|
386
391
|
block: e,
|
|
387
392
|
localState: t.localState,
|
|
388
393
|
rootState: t.rootState,
|
|
389
394
|
rootSetState: t.rootSetState,
|
|
390
395
|
context: t.context,
|
|
391
396
|
shouldEvaluateBindings: !1
|
|
392
|
-
}).component) == null ? void 0 :
|
|
397
|
+
}).component) == null ? void 0 : l.name;
|
|
393
398
|
if (!i)
|
|
394
399
|
return null;
|
|
395
400
|
const o = n[i];
|
|
@@ -398,7 +403,7 @@ const ft = ({
|
|
|
398
403
|
console.warn(`
|
|
399
404
|
Could not find a registered component named "${i}".
|
|
400
405
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
401
|
-
},
|
|
406
|
+
}, pt = ({
|
|
402
407
|
block: e,
|
|
403
408
|
context: t
|
|
404
409
|
}) => {
|
|
@@ -408,7 +413,7 @@ const ft = ({
|
|
|
408
413
|
} = e;
|
|
409
414
|
if (!(n != null && n.collection))
|
|
410
415
|
return;
|
|
411
|
-
const o =
|
|
416
|
+
const o = K({
|
|
412
417
|
code: n.collection,
|
|
413
418
|
localState: t.localState,
|
|
414
419
|
rootState: t.rootState,
|
|
@@ -418,21 +423,21 @@ const ft = ({
|
|
|
418
423
|
});
|
|
419
424
|
if (!Array.isArray(o))
|
|
420
425
|
return;
|
|
421
|
-
const
|
|
422
|
-
return o.map((
|
|
426
|
+
const l = n.collection.split(".").pop(), r = n.itemName || (l ? l + "Item" : "item");
|
|
427
|
+
return o.map((c, d) => ({
|
|
423
428
|
context: {
|
|
424
429
|
...t,
|
|
425
430
|
localState: {
|
|
426
431
|
...t.localState,
|
|
427
|
-
$index:
|
|
428
|
-
$item:
|
|
429
|
-
[
|
|
430
|
-
[`$${
|
|
432
|
+
$index: d,
|
|
433
|
+
$item: c,
|
|
434
|
+
[r]: c,
|
|
435
|
+
[`$${r}Index`]: d
|
|
431
436
|
}
|
|
432
437
|
},
|
|
433
438
|
block: i
|
|
434
439
|
}));
|
|
435
|
-
},
|
|
440
|
+
}, yt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), We = {
|
|
436
441
|
small: {
|
|
437
442
|
min: 320,
|
|
438
443
|
default: 321,
|
|
@@ -448,11 +453,11 @@ const ft = ({
|
|
|
448
453
|
default: 991,
|
|
449
454
|
max: 1200
|
|
450
455
|
}
|
|
451
|
-
},
|
|
456
|
+
}, ge = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ae = ({
|
|
452
457
|
small: e,
|
|
453
458
|
medium: t
|
|
454
459
|
}) => {
|
|
455
|
-
const n =
|
|
460
|
+
const n = le(We);
|
|
456
461
|
if (!e || !t)
|
|
457
462
|
return n;
|
|
458
463
|
const i = Math.floor(e / 2);
|
|
@@ -467,15 +472,15 @@ const ft = ({
|
|
|
467
472
|
min: o,
|
|
468
473
|
default: o + 1
|
|
469
474
|
};
|
|
470
|
-
const
|
|
475
|
+
const l = n.medium.max + 1;
|
|
471
476
|
return n.large = {
|
|
472
477
|
max: 2e3,
|
|
473
478
|
// TODO: decide upper limit
|
|
474
|
-
min:
|
|
475
|
-
default:
|
|
479
|
+
min: l,
|
|
480
|
+
default: l + 1
|
|
476
481
|
}, n;
|
|
477
482
|
};
|
|
478
|
-
function
|
|
483
|
+
function te(e) {
|
|
479
484
|
return /* @__PURE__ */ s(
|
|
480
485
|
"style",
|
|
481
486
|
{
|
|
@@ -484,9 +489,9 @@ function ee(e) {
|
|
|
484
489
|
}
|
|
485
490
|
);
|
|
486
491
|
}
|
|
487
|
-
function
|
|
492
|
+
function St(e) {
|
|
488
493
|
function t() {
|
|
489
|
-
const i =
|
|
494
|
+
const i = X({
|
|
490
495
|
block: e.block,
|
|
491
496
|
localState: e.context.localState,
|
|
492
497
|
rootState: e.context.rootState,
|
|
@@ -494,67 +499,67 @@ function gt(e) {
|
|
|
494
499
|
context: e.context.context,
|
|
495
500
|
shouldEvaluateBindings: !0
|
|
496
501
|
});
|
|
497
|
-
return
|
|
502
|
+
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
498
503
|
}
|
|
499
504
|
function n() {
|
|
500
|
-
var
|
|
501
|
-
const i =
|
|
505
|
+
var E, R, N;
|
|
506
|
+
const i = X({
|
|
502
507
|
block: e.block,
|
|
503
508
|
localState: e.context.localState,
|
|
504
509
|
rootState: e.context.rootState,
|
|
505
510
|
rootSetState: e.context.rootSetState,
|
|
506
511
|
context: e.context.context,
|
|
507
512
|
shouldEvaluateBindings: !0
|
|
508
|
-
}), o = i.responsiveStyles,
|
|
509
|
-
((
|
|
510
|
-
),
|
|
513
|
+
}), o = i.responsiveStyles, l = e.context.content, r = Ae(
|
|
514
|
+
((E = l == null ? void 0 : l.meta) == null ? void 0 : E.breakpoints) || {}
|
|
515
|
+
), a = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
|
|
511
516
|
if (!m)
|
|
512
517
|
return "";
|
|
513
|
-
const
|
|
518
|
+
const u = a ? z({
|
|
514
519
|
className: m,
|
|
515
|
-
styles:
|
|
516
|
-
}) : "", g =
|
|
520
|
+
styles: a
|
|
521
|
+
}) : "", g = c ? z({
|
|
517
522
|
className: m,
|
|
518
|
-
styles:
|
|
519
|
-
mediaQuery:
|
|
523
|
+
styles: c,
|
|
524
|
+
mediaQuery: ge(
|
|
520
525
|
"medium",
|
|
521
|
-
|
|
526
|
+
r
|
|
522
527
|
)
|
|
523
|
-
}) : "",
|
|
528
|
+
}) : "", p = d ? z({
|
|
524
529
|
className: m,
|
|
525
|
-
styles:
|
|
526
|
-
mediaQuery:
|
|
530
|
+
styles: d,
|
|
531
|
+
mediaQuery: ge(
|
|
527
532
|
"small",
|
|
528
|
-
|
|
533
|
+
r
|
|
529
534
|
)
|
|
530
|
-
}) : "",
|
|
531
|
-
let
|
|
532
|
-
if (
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
+
}) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
|
|
536
|
+
let I = "";
|
|
537
|
+
if (S) {
|
|
538
|
+
const W = ((N = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : N.styles) || {};
|
|
539
|
+
I = z({
|
|
535
540
|
className: `${m}:hover`,
|
|
536
541
|
styles: {
|
|
537
|
-
...
|
|
538
|
-
transition: `all ${
|
|
539
|
-
|
|
542
|
+
...W,
|
|
543
|
+
transition: `all ${S.duration}s ${de(
|
|
544
|
+
S.easing
|
|
540
545
|
)}`,
|
|
541
|
-
transitionDelay:
|
|
546
|
+
transitionDelay: S.delay ? `${S.delay}s` : "0s"
|
|
542
547
|
}
|
|
543
548
|
}) || "";
|
|
544
549
|
}
|
|
545
550
|
return [
|
|
546
|
-
|
|
551
|
+
u,
|
|
547
552
|
g,
|
|
548
|
-
|
|
549
|
-
|
|
553
|
+
p,
|
|
554
|
+
I
|
|
550
555
|
].join(" ");
|
|
551
556
|
}
|
|
552
|
-
return /* @__PURE__ */ s(
|
|
557
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
|
|
553
558
|
}
|
|
554
|
-
function
|
|
559
|
+
function vt(e) {
|
|
555
560
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
556
561
|
}
|
|
557
|
-
const
|
|
562
|
+
const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => K({
|
|
558
563
|
code: e,
|
|
559
564
|
context: t.context,
|
|
560
565
|
localState: t.localState,
|
|
@@ -564,66 +569,66 @@ const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => H({
|
|
|
564
569
|
isExpression: !1,
|
|
565
570
|
enableCache: !0
|
|
566
571
|
});
|
|
567
|
-
function
|
|
572
|
+
function $e(e) {
|
|
568
573
|
var i;
|
|
569
574
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
570
575
|
for (const o in n) {
|
|
571
576
|
if (!n.hasOwnProperty(o))
|
|
572
577
|
continue;
|
|
573
|
-
const
|
|
574
|
-
let
|
|
578
|
+
const l = n[o];
|
|
579
|
+
let r = kt(o);
|
|
575
580
|
if (e.stripPrefix)
|
|
576
|
-
switch (
|
|
581
|
+
switch (q) {
|
|
577
582
|
case "vue":
|
|
578
|
-
|
|
583
|
+
r = r.replace("v-on:", "");
|
|
579
584
|
break;
|
|
580
585
|
case "svelte":
|
|
581
|
-
|
|
586
|
+
r = r.replace("on:", "");
|
|
582
587
|
break;
|
|
583
588
|
}
|
|
584
|
-
t[
|
|
589
|
+
t[r] = Ct(l, e);
|
|
585
590
|
}
|
|
586
591
|
return t;
|
|
587
592
|
}
|
|
588
|
-
function
|
|
593
|
+
function Tt({
|
|
589
594
|
properties: e
|
|
590
595
|
}) {
|
|
591
596
|
return e;
|
|
592
597
|
}
|
|
593
|
-
const
|
|
598
|
+
const wt = (e) => ({
|
|
594
599
|
href: e.href
|
|
595
600
|
});
|
|
596
|
-
function
|
|
601
|
+
function ue({
|
|
597
602
|
block: e,
|
|
598
603
|
context: t
|
|
599
604
|
}) {
|
|
600
605
|
var i;
|
|
601
606
|
const n = {
|
|
602
|
-
...
|
|
607
|
+
...wt(e),
|
|
603
608
|
...e.properties,
|
|
604
609
|
"builder-id": e.id,
|
|
605
|
-
style:
|
|
610
|
+
style: gt({
|
|
606
611
|
block: e,
|
|
607
612
|
context: t
|
|
608
613
|
}),
|
|
609
|
-
[
|
|
614
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
610
615
|
};
|
|
611
|
-
return
|
|
616
|
+
return Tt({
|
|
612
617
|
properties: n,
|
|
613
618
|
context: t,
|
|
614
619
|
block: e
|
|
615
620
|
});
|
|
616
621
|
}
|
|
617
|
-
function
|
|
622
|
+
function It(e) {
|
|
618
623
|
return /* @__PURE__ */ s(
|
|
619
|
-
|
|
624
|
+
se,
|
|
620
625
|
{
|
|
621
626
|
TagName: e.Wrapper,
|
|
622
|
-
attributes:
|
|
627
|
+
attributes: ue({
|
|
623
628
|
block: e.block,
|
|
624
629
|
context: e.context
|
|
625
630
|
}),
|
|
626
|
-
actionAttributes:
|
|
631
|
+
actionAttributes: $e({
|
|
627
632
|
block: e.block,
|
|
628
633
|
rootState: e.context.rootState,
|
|
629
634
|
rootSetState: e.context.rootSetState,
|
|
@@ -635,67 +640,63 @@ function vt(e) {
|
|
|
635
640
|
}
|
|
636
641
|
);
|
|
637
642
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
-
e.
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
} : {},
|
|
656
|
-
children: e.children
|
|
657
|
-
}
|
|
658
|
-
);
|
|
643
|
+
function Et(e) {
|
|
644
|
+
function t() {
|
|
645
|
+
return e.includeBlockProps ? {
|
|
646
|
+
...ue({
|
|
647
|
+
block: e.block,
|
|
648
|
+
context: e.context
|
|
649
|
+
}),
|
|
650
|
+
...$e({
|
|
651
|
+
block: e.block,
|
|
652
|
+
rootState: e.context.rootState,
|
|
653
|
+
rootSetState: e.context.rootSetState,
|
|
654
|
+
localState: e.context.localState,
|
|
655
|
+
context: e.context.context
|
|
656
|
+
})
|
|
657
|
+
} : {};
|
|
658
|
+
}
|
|
659
|
+
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
659
660
|
}
|
|
660
|
-
const
|
|
661
|
+
const Rt = ({
|
|
661
662
|
componentOptions: e,
|
|
662
663
|
builderBlock: t,
|
|
663
664
|
context: n,
|
|
664
665
|
componentRef: i,
|
|
665
666
|
includeBlockProps: o,
|
|
666
|
-
isInteractive:
|
|
667
|
-
contextValue:
|
|
667
|
+
isInteractive: l,
|
|
668
|
+
contextValue: r
|
|
668
669
|
}) => {
|
|
669
|
-
const
|
|
670
|
+
const a = {
|
|
670
671
|
...e,
|
|
671
672
|
/**
|
|
672
673
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
673
674
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
674
675
|
*/
|
|
675
676
|
...o ? {
|
|
676
|
-
attributes:
|
|
677
|
+
attributes: ue({
|
|
677
678
|
block: t,
|
|
678
|
-
context:
|
|
679
|
+
context: r
|
|
679
680
|
})
|
|
680
681
|
} : {}
|
|
681
682
|
};
|
|
682
|
-
return
|
|
683
|
+
return l ? {
|
|
683
684
|
Wrapper: i,
|
|
684
685
|
block: t,
|
|
685
686
|
context: n,
|
|
686
687
|
wrapperProps: e,
|
|
687
688
|
includeBlockProps: o
|
|
688
|
-
} :
|
|
689
|
+
} : a;
|
|
689
690
|
};
|
|
690
|
-
function
|
|
691
|
+
function be(e) {
|
|
691
692
|
var i;
|
|
692
|
-
const [t, n] =
|
|
693
|
-
() => e.isInteractive ?
|
|
693
|
+
const [t, n] = C(
|
|
694
|
+
() => e.isInteractive ? Et : e.componentRef
|
|
694
695
|
);
|
|
695
|
-
return /* @__PURE__ */ s(
|
|
696
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
696
697
|
t,
|
|
697
698
|
{
|
|
698
|
-
...
|
|
699
|
+
...Rt({
|
|
699
700
|
componentOptions: e.componentOptions,
|
|
700
701
|
builderBlock: e.builderBlock,
|
|
701
702
|
context: e.context,
|
|
@@ -706,7 +707,7 @@ function fe(e) {
|
|
|
706
707
|
contextValue: e.context
|
|
707
708
|
}),
|
|
708
709
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
709
|
-
|
|
710
|
+
_,
|
|
710
711
|
{
|
|
711
712
|
block: o,
|
|
712
713
|
context: e.context,
|
|
@@ -718,10 +719,10 @@ function fe(e) {
|
|
|
718
719
|
}
|
|
719
720
|
) }) : null });
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
-
const [t, n] =
|
|
723
|
-
return /* @__PURE__ */ s(
|
|
724
|
-
|
|
722
|
+
function Pt(e) {
|
|
723
|
+
const [t, n] = C(() => e.repeatContext);
|
|
724
|
+
return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
725
|
+
_,
|
|
725
726
|
{
|
|
726
727
|
block: e.block,
|
|
727
728
|
context: t,
|
|
@@ -730,24 +731,24 @@ function wt(e) {
|
|
|
730
731
|
}
|
|
731
732
|
) });
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
var
|
|
734
|
+
function _(e) {
|
|
735
|
+
var c, d, m;
|
|
735
736
|
function t() {
|
|
736
|
-
return
|
|
737
|
+
return bt({
|
|
737
738
|
block: e.block,
|
|
738
739
|
context: e.context,
|
|
739
740
|
registeredComponents: e.registeredComponents
|
|
740
741
|
});
|
|
741
742
|
}
|
|
742
743
|
function n() {
|
|
743
|
-
return
|
|
744
|
+
return pt({
|
|
744
745
|
block: e.block,
|
|
745
746
|
context: e.context
|
|
746
747
|
});
|
|
747
748
|
}
|
|
748
749
|
function i() {
|
|
749
|
-
var
|
|
750
|
-
return (
|
|
750
|
+
var u;
|
|
751
|
+
return (u = e.block.repeat) != null && u.collection ? e.block : X({
|
|
751
752
|
block: e.block,
|
|
752
753
|
localState: e.context.localState,
|
|
753
754
|
rootState: e.context.rootState,
|
|
@@ -760,29 +761,29 @@ function q(e) {
|
|
|
760
761
|
var g;
|
|
761
762
|
return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
762
763
|
}
|
|
764
|
+
function l() {
|
|
765
|
+
var p, S;
|
|
766
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
767
|
+
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
768
|
+
const u = "hide" in i() ? i().hide : !1;
|
|
769
|
+
return ("show" in i() ? i().show : !0) && !u;
|
|
770
|
+
}
|
|
763
771
|
function r() {
|
|
764
|
-
var
|
|
765
|
-
|
|
766
|
-
return !!((x = n == null ? void 0 : n()) != null && x.length);
|
|
767
|
-
const f = "hide" in i() ? i().hide : !1;
|
|
768
|
-
return ("show" in i() ? i().show : !0) && !f;
|
|
772
|
+
var g, p;
|
|
773
|
+
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (p = i().children) != null ? p : [] : [];
|
|
769
774
|
}
|
|
770
775
|
function a() {
|
|
771
|
-
var g,
|
|
772
|
-
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
|
|
773
|
-
}
|
|
774
|
-
function l() {
|
|
775
|
-
var f, g, y, x, k, w, E, p, v, P, R;
|
|
776
|
+
var u, g, p, S;
|
|
776
777
|
return {
|
|
777
|
-
blockChildren: (
|
|
778
|
+
blockChildren: (u = i().children) != null ? u : [],
|
|
778
779
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
779
780
|
componentOptions: {
|
|
780
|
-
...
|
|
781
|
+
...nt(i()),
|
|
781
782
|
builderContext: e.context,
|
|
782
|
-
...(
|
|
783
|
+
...yt(t()) ? {
|
|
783
784
|
builderLinkComponent: e.linkComponent
|
|
784
785
|
} : {},
|
|
785
|
-
...(
|
|
786
|
+
...xt(t()) ? {
|
|
786
787
|
builderComponents: e.registeredComponents
|
|
787
788
|
} : {}
|
|
788
789
|
},
|
|
@@ -790,44 +791,44 @@ function q(e) {
|
|
|
790
791
|
linkComponent: e.linkComponent,
|
|
791
792
|
registeredComponents: e.registeredComponents,
|
|
792
793
|
builderBlock: i(),
|
|
793
|
-
includeBlockProps: ((
|
|
794
|
-
isInteractive: !((
|
|
794
|
+
includeBlockProps: ((p = t == null ? void 0 : t()) == null ? void 0 : p.noWrap) === !0,
|
|
795
|
+
isInteractive: !((S = t == null ? void 0 : t()) != null && S.isRSC)
|
|
795
796
|
};
|
|
796
797
|
}
|
|
797
|
-
return
|
|
798
|
-
const
|
|
799
|
-
g &&
|
|
800
|
-
g.map((
|
|
801
|
-
...
|
|
802
|
-
elementId:
|
|
798
|
+
return P(() => {
|
|
799
|
+
const u = i().id, g = i().animations;
|
|
800
|
+
g && u && ct(
|
|
801
|
+
g.map((p) => ({
|
|
802
|
+
...p,
|
|
803
|
+
elementId: u
|
|
803
804
|
}))
|
|
804
805
|
);
|
|
805
|
-
}, []), /* @__PURE__ */ s(
|
|
806
|
-
/* @__PURE__ */ s(
|
|
807
|
-
(
|
|
808
|
-
|
|
806
|
+
}, []), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ V(w, { children: [
|
|
807
|
+
/* @__PURE__ */ s(St, { block: e.block, context: e.context }),
|
|
808
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
809
|
+
be,
|
|
809
810
|
{
|
|
810
|
-
componentRef:
|
|
811
|
-
componentOptions:
|
|
812
|
-
blockChildren:
|
|
813
|
-
context:
|
|
814
|
-
registeredComponents:
|
|
815
|
-
linkComponent:
|
|
816
|
-
builderBlock:
|
|
817
|
-
includeBlockProps:
|
|
818
|
-
isInteractive:
|
|
811
|
+
componentRef: a().componentRef,
|
|
812
|
+
componentOptions: a().componentOptions,
|
|
813
|
+
blockChildren: a().blockChildren,
|
|
814
|
+
context: a().context,
|
|
815
|
+
registeredComponents: a().registeredComponents,
|
|
816
|
+
linkComponent: a().linkComponent,
|
|
817
|
+
builderBlock: a().builderBlock,
|
|
818
|
+
includeBlockProps: a().includeBlockProps,
|
|
819
|
+
isInteractive: a().isInteractive
|
|
819
820
|
}
|
|
820
|
-
) }) : /* @__PURE__ */ s(
|
|
821
|
-
|
|
821
|
+
) }) : /* @__PURE__ */ s(w, { children: n() ? /* @__PURE__ */ s(w, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
|
|
822
|
+
Pt,
|
|
822
823
|
{
|
|
823
|
-
repeatContext:
|
|
824
|
-
block:
|
|
824
|
+
repeatContext: u.context,
|
|
825
|
+
block: u.block,
|
|
825
826
|
registeredComponents: e.registeredComponents,
|
|
826
827
|
linkComponent: e.linkComponent
|
|
827
828
|
},
|
|
828
829
|
g
|
|
829
|
-
)) }) : /* @__PURE__ */
|
|
830
|
-
|
|
830
|
+
)) }) : /* @__PURE__ */ V(
|
|
831
|
+
It,
|
|
831
832
|
{
|
|
832
833
|
Wrapper: o(),
|
|
833
834
|
block: i(),
|
|
@@ -835,42 +836,42 @@ function q(e) {
|
|
|
835
836
|
linkComponent: e.linkComponent,
|
|
836
837
|
children: [
|
|
837
838
|
/* @__PURE__ */ s(
|
|
838
|
-
|
|
839
|
+
be,
|
|
839
840
|
{
|
|
840
|
-
componentRef:
|
|
841
|
-
componentOptions:
|
|
842
|
-
blockChildren:
|
|
843
|
-
context:
|
|
844
|
-
registeredComponents:
|
|
845
|
-
linkComponent:
|
|
846
|
-
builderBlock:
|
|
847
|
-
includeBlockProps:
|
|
848
|
-
isInteractive:
|
|
841
|
+
componentRef: a().componentRef,
|
|
842
|
+
componentOptions: a().componentOptions,
|
|
843
|
+
blockChildren: a().blockChildren,
|
|
844
|
+
context: a().context,
|
|
845
|
+
registeredComponents: a().registeredComponents,
|
|
846
|
+
linkComponent: a().linkComponent,
|
|
847
|
+
builderBlock: a().builderBlock,
|
|
848
|
+
includeBlockProps: a().includeBlockProps,
|
|
849
|
+
isInteractive: a().isInteractive
|
|
849
850
|
}
|
|
850
851
|
),
|
|
851
|
-
(
|
|
852
|
-
|
|
852
|
+
(d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
|
|
853
|
+
_,
|
|
853
854
|
{
|
|
854
|
-
block:
|
|
855
|
+
block: u,
|
|
855
856
|
registeredComponents: e.registeredComponents,
|
|
856
857
|
linkComponent: e.linkComponent,
|
|
857
858
|
context: e.context
|
|
858
859
|
},
|
|
859
|
-
|
|
860
|
+
u.id
|
|
860
861
|
))
|
|
861
862
|
]
|
|
862
863
|
}
|
|
863
864
|
) })
|
|
864
865
|
] }) : null });
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
+
function Vt(e) {
|
|
867
868
|
function t() {
|
|
868
869
|
var o;
|
|
869
870
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
870
871
|
}
|
|
871
872
|
function n() {
|
|
872
|
-
var o,
|
|
873
|
-
|
|
873
|
+
var o, l;
|
|
874
|
+
F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
874
875
|
{
|
|
875
876
|
type: "builder.clickEmptyBlocks",
|
|
876
877
|
data: {
|
|
@@ -882,8 +883,8 @@ function It(e) {
|
|
|
882
883
|
));
|
|
883
884
|
}
|
|
884
885
|
function i() {
|
|
885
|
-
var o,
|
|
886
|
-
|
|
886
|
+
var o, l;
|
|
887
|
+
F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
887
888
|
{
|
|
888
889
|
type: "builder.hoverEmptyBlocks",
|
|
889
890
|
data: {
|
|
@@ -894,7 +895,7 @@ function It(e) {
|
|
|
894
895
|
"*"
|
|
895
896
|
));
|
|
896
897
|
}
|
|
897
|
-
return /* @__PURE__ */
|
|
898
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
898
899
|
/* @__PURE__ */ s(
|
|
899
900
|
e.BlocksWrapper,
|
|
900
901
|
{
|
|
@@ -917,10 +918,10 @@ function It(e) {
|
|
|
917
918
|
] });
|
|
918
919
|
}
|
|
919
920
|
function j(e) {
|
|
920
|
-
var i, o,
|
|
921
|
-
const t =
|
|
921
|
+
var i, o, l;
|
|
922
|
+
const t = he(ce), n = he(Ie);
|
|
922
923
|
return /* @__PURE__ */ s(
|
|
923
|
-
|
|
924
|
+
Vt,
|
|
924
925
|
{
|
|
925
926
|
blocks: e.blocks,
|
|
926
927
|
parent: e.parent,
|
|
@@ -928,95 +929,99 @@ function j(e) {
|
|
|
928
929
|
styleProp: e.styleProp,
|
|
929
930
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
930
931
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
931
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
932
|
-
|
|
932
|
+
children: e.blocks ? /* @__PURE__ */ s(w, { children: (l = e.blocks) == null ? void 0 : l.map((r) => /* @__PURE__ */ s(
|
|
933
|
+
_,
|
|
933
934
|
{
|
|
934
|
-
block:
|
|
935
|
+
block: r,
|
|
935
936
|
linkComponent: e.linkComponent,
|
|
936
937
|
context: e.context || t,
|
|
937
938
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
938
939
|
},
|
|
939
|
-
|
|
940
|
+
r.id
|
|
940
941
|
)) }) : null
|
|
941
942
|
}
|
|
942
943
|
);
|
|
943
944
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
const Bt = (e) => `builder-columns ${e}-breakpoints`;
|
|
946
|
+
function Nt(e) {
|
|
947
|
+
var W, D;
|
|
948
|
+
const [t, n] = C(
|
|
947
949
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
948
|
-
), [i, o] =
|
|
950
|
+
), [i, o] = C(() => e.columns || []), [l, r] = C(
|
|
949
951
|
() => e.stackColumnsAt || "tablet"
|
|
950
952
|
);
|
|
951
|
-
function
|
|
952
|
-
|
|
953
|
-
return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
|
|
953
|
+
function a(x) {
|
|
954
|
+
return x.link ? e.builderLinkComponent || "a" : "div";
|
|
954
955
|
}
|
|
955
|
-
function
|
|
956
|
-
|
|
957
|
-
return
|
|
956
|
+
function c(x) {
|
|
957
|
+
var T;
|
|
958
|
+
return ((T = i[x]) == null ? void 0 : T.width) || 100 / i.length;
|
|
958
959
|
}
|
|
959
|
-
function
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}) {
|
|
963
|
-
return r === "tablet" ? p : v;
|
|
960
|
+
function d(x) {
|
|
961
|
+
const T = t * (i.length - 1) / i.length;
|
|
962
|
+
return `calc(${c(x)}% - ${T}px)`;
|
|
964
963
|
}
|
|
965
964
|
function m({
|
|
966
|
-
stackedStyle:
|
|
967
|
-
desktopStyle:
|
|
965
|
+
stackedStyle: x,
|
|
966
|
+
desktopStyle: T
|
|
968
967
|
}) {
|
|
969
|
-
return
|
|
968
|
+
return l === "tablet" ? x : T;
|
|
970
969
|
}
|
|
971
|
-
|
|
970
|
+
function u({
|
|
971
|
+
stackedStyle: x,
|
|
972
|
+
desktopStyle: T
|
|
973
|
+
}) {
|
|
974
|
+
return l === "never" ? T : x;
|
|
975
|
+
}
|
|
976
|
+
const [g, p] = C(
|
|
972
977
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
973
978
|
);
|
|
974
|
-
function
|
|
979
|
+
function S() {
|
|
975
980
|
return {
|
|
976
|
-
"--flex-dir":
|
|
977
|
-
"--flex-dir-tablet":
|
|
978
|
-
stackedStyle:
|
|
981
|
+
"--flex-dir": g,
|
|
982
|
+
"--flex-dir-tablet": m({
|
|
983
|
+
stackedStyle: g,
|
|
979
984
|
desktopStyle: "row"
|
|
980
985
|
})
|
|
981
986
|
};
|
|
982
987
|
}
|
|
983
|
-
function x
|
|
984
|
-
const
|
|
988
|
+
function I(x) {
|
|
989
|
+
const T = x === 0 ? 0 : t, A = d(x), h = `${T}px`, f = "100%", b = 0;
|
|
985
990
|
return {
|
|
986
991
|
...{
|
|
987
992
|
display: "flex",
|
|
988
993
|
flexDirection: "column",
|
|
989
994
|
alignItems: "stretch"
|
|
990
995
|
},
|
|
991
|
-
width:
|
|
992
|
-
["marginLeft"]:
|
|
993
|
-
"--column-width-mobile":
|
|
994
|
-
stackedStyle:
|
|
995
|
-
desktopStyle:
|
|
996
|
+
width: A,
|
|
997
|
+
["marginLeft"]: h,
|
|
998
|
+
"--column-width-mobile": u({
|
|
999
|
+
stackedStyle: f,
|
|
1000
|
+
desktopStyle: A
|
|
996
1001
|
}),
|
|
997
|
-
"--column-margin-left-mobile":
|
|
998
|
-
stackedStyle:
|
|
999
|
-
desktopStyle:
|
|
1002
|
+
"--column-margin-left-mobile": u({
|
|
1003
|
+
stackedStyle: b,
|
|
1004
|
+
desktopStyle: h
|
|
1000
1005
|
}),
|
|
1001
|
-
"--column-width-tablet":
|
|
1002
|
-
stackedStyle:
|
|
1003
|
-
desktopStyle:
|
|
1006
|
+
"--column-width-tablet": m({
|
|
1007
|
+
stackedStyle: f,
|
|
1008
|
+
desktopStyle: A
|
|
1004
1009
|
}),
|
|
1005
|
-
"--column-margin-left-tablet":
|
|
1006
|
-
stackedStyle:
|
|
1007
|
-
desktopStyle:
|
|
1010
|
+
"--column-margin-left-tablet": m({
|
|
1011
|
+
stackedStyle: b,
|
|
1012
|
+
desktopStyle: h
|
|
1008
1013
|
})
|
|
1009
1014
|
};
|
|
1010
1015
|
}
|
|
1011
|
-
function
|
|
1012
|
-
var
|
|
1013
|
-
return
|
|
1014
|
-
((
|
|
1015
|
-
)[
|
|
1016
|
+
function E(x) {
|
|
1017
|
+
var A, h;
|
|
1018
|
+
return Ae(
|
|
1019
|
+
((h = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : h.breakpoints) || {}
|
|
1020
|
+
)[x].max;
|
|
1016
1021
|
}
|
|
1017
|
-
function
|
|
1022
|
+
function R() {
|
|
1018
1023
|
return `
|
|
1019
|
-
@media (max-width: ${
|
|
1024
|
+
@media (max-width: ${E("medium")}px) {
|
|
1020
1025
|
.${e.builderBlock.id}-breakpoints {
|
|
1021
1026
|
flex-direction: var(--flex-dir-tablet);
|
|
1022
1027
|
align-items: stretch;
|
|
@@ -1028,7 +1033,7 @@ function Tt(e) {
|
|
|
1028
1033
|
}
|
|
1029
1034
|
}
|
|
1030
1035
|
|
|
1031
|
-
@media (max-width: ${
|
|
1036
|
+
@media (max-width: ${E("small")}px) {
|
|
1032
1037
|
.${e.builderBlock.id}-breakpoints {
|
|
1033
1038
|
flex-direction: var(--flex-dir);
|
|
1034
1039
|
align-items: stretch;
|
|
@@ -1041,30 +1046,33 @@ function Tt(e) {
|
|
|
1041
1046
|
},
|
|
1042
1047
|
`;
|
|
1043
1048
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
1049
|
+
function N(x, T) {
|
|
1050
|
+
return {
|
|
1051
|
+
...x.link ? {
|
|
1052
|
+
href: x.link
|
|
1053
|
+
} : {},
|
|
1054
|
+
[H()]: "builder-column",
|
|
1055
|
+
style: Ne(I(T))
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1059
|
+
/* @__PURE__ */ V(
|
|
1046
1060
|
"div",
|
|
1047
1061
|
{
|
|
1048
|
-
className:
|
|
1049
|
-
style:
|
|
1062
|
+
className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
|
|
1063
|
+
style: S(),
|
|
1050
1064
|
children: [
|
|
1051
|
-
/* @__PURE__ */ s(
|
|
1052
|
-
(
|
|
1053
|
-
|
|
1065
|
+
/* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
|
|
1066
|
+
(D = e.columns) == null ? void 0 : D.map((x, T) => /* @__PURE__ */ s(
|
|
1067
|
+
se,
|
|
1054
1068
|
{
|
|
1055
|
-
TagName:
|
|
1069
|
+
TagName: a(x),
|
|
1056
1070
|
actionAttributes: {},
|
|
1057
|
-
attributes:
|
|
1058
|
-
...p.link ? {
|
|
1059
|
-
href: p.link
|
|
1060
|
-
} : {},
|
|
1061
|
-
[U()]: "builder-column",
|
|
1062
|
-
style: Pe(x(v))
|
|
1063
|
-
},
|
|
1071
|
+
attributes: N(x, T),
|
|
1064
1072
|
children: /* @__PURE__ */ s(
|
|
1065
1073
|
j,
|
|
1066
1074
|
{
|
|
1067
|
-
path: `component.options.columns.${
|
|
1075
|
+
path: `component.options.columns.${T}.blocks`,
|
|
1068
1076
|
parent: e.builderBlock.id,
|
|
1069
1077
|
styleProp: {
|
|
1070
1078
|
flexGrow: "1"
|
|
@@ -1072,87 +1080,87 @@ function Tt(e) {
|
|
|
1072
1080
|
context: e.builderContext,
|
|
1073
1081
|
registeredComponents: e.builderComponents,
|
|
1074
1082
|
linkComponent: e.builderLinkComponent,
|
|
1075
|
-
blocks:
|
|
1083
|
+
blocks: x.blocks
|
|
1076
1084
|
}
|
|
1077
1085
|
)
|
|
1078
1086
|
},
|
|
1079
|
-
|
|
1087
|
+
T
|
|
1080
1088
|
))
|
|
1081
1089
|
]
|
|
1082
1090
|
}
|
|
1083
1091
|
),
|
|
1084
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1092
|
+
/* @__PURE__ */ s("style", { children: `.div-00cb97e2 {
|
|
1085
1093
|
display: flex;
|
|
1086
1094
|
line-height: normal;
|
|
1087
1095
|
}` })
|
|
1088
1096
|
] });
|
|
1089
1097
|
}
|
|
1090
|
-
function
|
|
1098
|
+
function Wt(e) {
|
|
1091
1099
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1092
1100
|
}
|
|
1093
|
-
function
|
|
1101
|
+
function pe(e) {
|
|
1094
1102
|
return e.replace(/http(s)?:/, "");
|
|
1095
1103
|
}
|
|
1096
|
-
function
|
|
1104
|
+
function At(e = "", t, n) {
|
|
1097
1105
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1098
1106
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1099
1107
|
}
|
|
1100
|
-
function
|
|
1108
|
+
function $t(e, t) {
|
|
1101
1109
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1102
1110
|
return e;
|
|
1103
1111
|
if (t === "master")
|
|
1104
|
-
return
|
|
1112
|
+
return pe(e);
|
|
1105
1113
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1106
1114
|
if (n) {
|
|
1107
|
-
const i = e.split(n[0]), o = n[3],
|
|
1108
|
-
return
|
|
1115
|
+
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1116
|
+
return pe(`${i[0]}_${l}${o}`);
|
|
1109
1117
|
}
|
|
1110
1118
|
return null;
|
|
1111
1119
|
}
|
|
1112
|
-
function
|
|
1120
|
+
function ie(e) {
|
|
1113
1121
|
if (!e)
|
|
1114
1122
|
return e;
|
|
1115
1123
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1116
1124
|
if (e.match(/builder\.io/)) {
|
|
1117
1125
|
let n = e;
|
|
1118
1126
|
const i = Number(e.split("?width=")[1]);
|
|
1119
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1127
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1120
1128
|
}
|
|
1121
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1129
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1122
1130
|
}
|
|
1123
|
-
function
|
|
1124
|
-
var o, r, a,
|
|
1131
|
+
function Ft(e) {
|
|
1132
|
+
var o, l, r, a, c, d;
|
|
1125
1133
|
function t() {
|
|
1126
|
-
var
|
|
1127
|
-
const
|
|
1128
|
-
if (!
|
|
1134
|
+
var g;
|
|
1135
|
+
const u = e.image || e.src;
|
|
1136
|
+
if (!u || // We can auto add srcset for cdn.builder.io and shopify
|
|
1129
1137
|
// images, otherwise you can supply this prop manually
|
|
1130
|
-
!(
|
|
1138
|
+
!(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
|
|
1131
1139
|
return e.srcset;
|
|
1132
|
-
if (e.srcset && ((
|
|
1140
|
+
if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
|
|
1133
1141
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1134
|
-
return console.debug("Removed given srcset"),
|
|
1142
|
+
return console.debug("Removed given srcset"), ie(u);
|
|
1135
1143
|
} else if (e.image && !e.srcset)
|
|
1136
|
-
return
|
|
1137
|
-
return
|
|
1144
|
+
return ie(u);
|
|
1145
|
+
return ie(u);
|
|
1138
1146
|
}
|
|
1139
1147
|
function n() {
|
|
1140
|
-
var
|
|
1141
|
-
return (
|
|
1148
|
+
var m;
|
|
1149
|
+
return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1142
1150
|
}
|
|
1143
1151
|
function i() {
|
|
1144
|
-
const
|
|
1152
|
+
const m = {
|
|
1145
1153
|
position: "absolute",
|
|
1146
1154
|
height: "100%",
|
|
1147
1155
|
width: "100%",
|
|
1148
1156
|
left: "0px",
|
|
1149
1157
|
top: "0px"
|
|
1150
1158
|
};
|
|
1151
|
-
return e.aspectRatio ?
|
|
1159
|
+
return e.aspectRatio ? m : void 0;
|
|
1152
1160
|
}
|
|
1153
|
-
return /* @__PURE__ */
|
|
1154
|
-
/* @__PURE__ */
|
|
1155
|
-
/* @__PURE__ */
|
|
1161
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1162
|
+
/* @__PURE__ */ V(w, { children: [
|
|
1163
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1156
1164
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1157
1165
|
/* @__PURE__ */ s(
|
|
1158
1166
|
"img",
|
|
@@ -1165,33 +1173,33 @@ function Vt(e) {
|
|
|
1165
1173
|
objectFit: e.backgroundSize || "cover",
|
|
1166
1174
|
...i()
|
|
1167
1175
|
},
|
|
1168
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1176
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-3ac67dd4",
|
|
1169
1177
|
src: e.image,
|
|
1170
1178
|
srcSet: t(),
|
|
1171
1179
|
sizes: e.sizes
|
|
1172
1180
|
}
|
|
1173
1181
|
)
|
|
1174
1182
|
] }),
|
|
1175
|
-
e.aspectRatio && !((
|
|
1183
|
+
e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1176
1184
|
"div",
|
|
1177
1185
|
{
|
|
1178
|
-
className: "builder-image-sizer div-
|
|
1186
|
+
className: "builder-image-sizer div-3ac67dd4",
|
|
1179
1187
|
style: {
|
|
1180
1188
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1181
1189
|
}
|
|
1182
1190
|
}
|
|
1183
1191
|
) : null,
|
|
1184
|
-
(
|
|
1185
|
-
!e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-
|
|
1192
|
+
(a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1193
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1186
1194
|
] }),
|
|
1187
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1195
|
+
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
1188
1196
|
opacity: 1;
|
|
1189
1197
|
transition: opacity 0.2s ease-in-out;
|
|
1190
|
-
}.div-
|
|
1198
|
+
}.div-3ac67dd4 {
|
|
1191
1199
|
width: 100%;
|
|
1192
1200
|
pointer-events: none;
|
|
1193
1201
|
font-size: 0;
|
|
1194
|
-
}.div-
|
|
1202
|
+
}.div-3ac67dd4-2 {
|
|
1195
1203
|
display: flex;
|
|
1196
1204
|
flex-direction: column;
|
|
1197
1205
|
align-items: stretch;
|
|
@@ -1203,7 +1211,7 @@ function Vt(e) {
|
|
|
1203
1211
|
}` })
|
|
1204
1212
|
] });
|
|
1205
1213
|
}
|
|
1206
|
-
function
|
|
1214
|
+
function Lt(e) {
|
|
1207
1215
|
return /* @__PURE__ */ s(
|
|
1208
1216
|
"section",
|
|
1209
1217
|
{
|
|
@@ -1224,7 +1232,7 @@ function Bt(e) {
|
|
|
1224
1232
|
}
|
|
1225
1233
|
);
|
|
1226
1234
|
}
|
|
1227
|
-
const
|
|
1235
|
+
const Dt = {
|
|
1228
1236
|
name: "Core:Button",
|
|
1229
1237
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1230
1238
|
defaultStyles: {
|
|
@@ -1257,7 +1265,7 @@ const Wt = {
|
|
|
1257
1265
|
}],
|
|
1258
1266
|
static: !0,
|
|
1259
1267
|
noWrap: !0
|
|
1260
|
-
},
|
|
1268
|
+
}, jt = {
|
|
1261
1269
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1262
1270
|
name: "Columns",
|
|
1263
1271
|
isRSC: !0,
|
|
@@ -1436,7 +1444,7 @@ const Wt = {
|
|
|
1436
1444
|
});
|
|
1437
1445
|
}
|
|
1438
1446
|
const n = e.get("columns");
|
|
1439
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1447
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
|
|
1440
1448
|
}
|
|
1441
1449
|
}, {
|
|
1442
1450
|
name: "space",
|
|
@@ -1458,13 +1466,13 @@ const Wt = {
|
|
|
1458
1466
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1459
1467
|
advanced: !0
|
|
1460
1468
|
}]
|
|
1461
|
-
},
|
|
1469
|
+
}, Mt = {
|
|
1462
1470
|
name: "Fragment",
|
|
1463
1471
|
static: !0,
|
|
1464
1472
|
hidden: !0,
|
|
1465
1473
|
canHaveChildren: !0,
|
|
1466
1474
|
noWrap: !0
|
|
1467
|
-
},
|
|
1475
|
+
}, Ut = {
|
|
1468
1476
|
name: "Image",
|
|
1469
1477
|
static: !0,
|
|
1470
1478
|
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",
|
|
@@ -1484,29 +1492,29 @@ const Wt = {
|
|
|
1484
1492
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1485
1493
|
onChange: (e) => {
|
|
1486
1494
|
e.delete("srcset"), e.delete("noWebp");
|
|
1487
|
-
function n(
|
|
1488
|
-
return new Promise((
|
|
1495
|
+
function n(r, a = 6e4) {
|
|
1496
|
+
return new Promise((c, d) => {
|
|
1489
1497
|
const m = document.createElement("img");
|
|
1490
|
-
let
|
|
1498
|
+
let u = !1;
|
|
1491
1499
|
m.onload = () => {
|
|
1492
|
-
|
|
1500
|
+
u = !0, c(m);
|
|
1493
1501
|
}, m.addEventListener("error", (g) => {
|
|
1494
|
-
console.warn("Image load failed", g.error),
|
|
1495
|
-
}), m.src =
|
|
1496
|
-
|
|
1497
|
-
},
|
|
1502
|
+
console.warn("Image load failed", g.error), d(g.error);
|
|
1503
|
+
}), m.src = r, setTimeout(() => {
|
|
1504
|
+
u || d(new Error("Image load timed out"));
|
|
1505
|
+
}, a);
|
|
1498
1506
|
});
|
|
1499
1507
|
}
|
|
1500
|
-
function i(
|
|
1501
|
-
return Math.round(
|
|
1508
|
+
function i(r) {
|
|
1509
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1502
1510
|
}
|
|
1503
|
-
const o = e.get("image"),
|
|
1504
|
-
if (fetch(o).then((
|
|
1505
|
-
|
|
1506
|
-
}), o && (!
|
|
1507
|
-
return n(o).then((
|
|
1508
|
-
const
|
|
1509
|
-
e.get("image") === o && (!
|
|
1511
|
+
const o = e.get("image"), l = e.get("aspectRatio");
|
|
1512
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1513
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1514
|
+
}), o && (!l || l === 0.7041))
|
|
1515
|
+
return n(o).then((r) => {
|
|
1516
|
+
const a = e.get("aspectRatio");
|
|
1517
|
+
e.get("image") === o && (!a || a === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1510
1518
|
});
|
|
1511
1519
|
}
|
|
1512
1520
|
}, {
|
|
@@ -1564,7 +1572,7 @@ const Wt = {
|
|
|
1564
1572
|
advanced: !0,
|
|
1565
1573
|
defaultValue: 0.7041
|
|
1566
1574
|
}]
|
|
1567
|
-
},
|
|
1575
|
+
}, Ot = {
|
|
1568
1576
|
name: "Core:Section",
|
|
1569
1577
|
static: !0,
|
|
1570
1578
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1603,7 +1611,7 @@ const Wt = {
|
|
|
1603
1611
|
}
|
|
1604
1612
|
}
|
|
1605
1613
|
}]
|
|
1606
|
-
},
|
|
1614
|
+
}, Ht = {
|
|
1607
1615
|
name: "Slot",
|
|
1608
1616
|
isRSC: !0,
|
|
1609
1617
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1617,7 +1625,7 @@ const Wt = {
|
|
|
1617
1625
|
defaultValue: "children"
|
|
1618
1626
|
}]
|
|
1619
1627
|
};
|
|
1620
|
-
function
|
|
1628
|
+
function Kt(e) {
|
|
1621
1629
|
var t, n, i;
|
|
1622
1630
|
return /* @__PURE__ */ s(
|
|
1623
1631
|
"div",
|
|
@@ -1640,7 +1648,7 @@ function Dt(e) {
|
|
|
1640
1648
|
}
|
|
1641
1649
|
);
|
|
1642
1650
|
}
|
|
1643
|
-
const
|
|
1651
|
+
const qt = {
|
|
1644
1652
|
name: "Symbol",
|
|
1645
1653
|
noWrap: !0,
|
|
1646
1654
|
static: !0,
|
|
@@ -1673,7 +1681,202 @@ const Mt = {
|
|
|
1673
1681
|
hideFromUI: !0,
|
|
1674
1682
|
type: "boolean"
|
|
1675
1683
|
}]
|
|
1676
|
-
},
|
|
1684
|
+
}, oe = {
|
|
1685
|
+
"@type": "@builder.io/sdk:Element",
|
|
1686
|
+
responsiveStyles: {
|
|
1687
|
+
large: {
|
|
1688
|
+
paddingLeft: "20px",
|
|
1689
|
+
paddingRight: "20px",
|
|
1690
|
+
paddingTop: "10px",
|
|
1691
|
+
paddingBottom: "10px",
|
|
1692
|
+
minWidth: "100px",
|
|
1693
|
+
textAlign: "center",
|
|
1694
|
+
display: "flex",
|
|
1695
|
+
flexDirection: "column",
|
|
1696
|
+
cursor: "pointer",
|
|
1697
|
+
userSelect: "none"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
component: {
|
|
1701
|
+
name: "Text",
|
|
1702
|
+
options: {
|
|
1703
|
+
text: "New tab"
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}, ae = {
|
|
1707
|
+
"@type": "@builder.io/sdk:Element",
|
|
1708
|
+
responsiveStyles: {
|
|
1709
|
+
large: {
|
|
1710
|
+
height: "200px",
|
|
1711
|
+
display: "flex",
|
|
1712
|
+
marginTop: "20px",
|
|
1713
|
+
flexDirection: "column"
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
component: {
|
|
1717
|
+
name: "Text",
|
|
1718
|
+
options: {
|
|
1719
|
+
text: "New tab content "
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
}, _t = {
|
|
1723
|
+
name: "Builder: Tabs",
|
|
1724
|
+
inputs: [{
|
|
1725
|
+
name: "tabs",
|
|
1726
|
+
type: "list",
|
|
1727
|
+
broadcast: !0,
|
|
1728
|
+
subFields: [{
|
|
1729
|
+
name: "label",
|
|
1730
|
+
type: "uiBlocks",
|
|
1731
|
+
hideFromUI: !0,
|
|
1732
|
+
defaultValue: [oe]
|
|
1733
|
+
}, {
|
|
1734
|
+
name: "content",
|
|
1735
|
+
type: "uiBlocks",
|
|
1736
|
+
hideFromUI: !0,
|
|
1737
|
+
defaultValue: [ae]
|
|
1738
|
+
}],
|
|
1739
|
+
defaultValue: [{
|
|
1740
|
+
label: [{
|
|
1741
|
+
...oe,
|
|
1742
|
+
component: {
|
|
1743
|
+
name: "Text",
|
|
1744
|
+
options: {
|
|
1745
|
+
text: "Tab 1"
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
}],
|
|
1749
|
+
content: [{
|
|
1750
|
+
...ae,
|
|
1751
|
+
component: {
|
|
1752
|
+
name: "Text",
|
|
1753
|
+
options: {
|
|
1754
|
+
text: "Tab 1 content"
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}]
|
|
1758
|
+
}, {
|
|
1759
|
+
label: [{
|
|
1760
|
+
...oe,
|
|
1761
|
+
component: {
|
|
1762
|
+
name: "Text",
|
|
1763
|
+
options: {
|
|
1764
|
+
text: "Tab 2"
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}],
|
|
1768
|
+
content: [{
|
|
1769
|
+
...ae,
|
|
1770
|
+
component: {
|
|
1771
|
+
name: "Text",
|
|
1772
|
+
options: {
|
|
1773
|
+
text: "Tab 2 content"
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}]
|
|
1777
|
+
}]
|
|
1778
|
+
}, {
|
|
1779
|
+
name: "activeTabStyle",
|
|
1780
|
+
type: "uiStyle",
|
|
1781
|
+
helperText: "CSS styles for the active tab",
|
|
1782
|
+
defaultValue: {
|
|
1783
|
+
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
1784
|
+
}
|
|
1785
|
+
}, {
|
|
1786
|
+
name: "defaultActiveTab",
|
|
1787
|
+
type: "number",
|
|
1788
|
+
helperText: 'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',
|
|
1789
|
+
defaultValue: 1,
|
|
1790
|
+
advanced: !0
|
|
1791
|
+
}, {
|
|
1792
|
+
name: "collapsible",
|
|
1793
|
+
type: "boolean",
|
|
1794
|
+
helperText: "If on, clicking an open tab closes it so no tabs are active",
|
|
1795
|
+
defaultValue: !1,
|
|
1796
|
+
advanced: !0
|
|
1797
|
+
}, {
|
|
1798
|
+
name: "tabHeaderLayout",
|
|
1799
|
+
type: "enum",
|
|
1800
|
+
helperText: "Change the layout of the tab headers (uses justify-content)",
|
|
1801
|
+
defaultValue: "flex-start",
|
|
1802
|
+
enum: [{
|
|
1803
|
+
label: "Center",
|
|
1804
|
+
value: "center"
|
|
1805
|
+
}, {
|
|
1806
|
+
label: "Space between",
|
|
1807
|
+
value: "space-between"
|
|
1808
|
+
}, {
|
|
1809
|
+
label: "Space around",
|
|
1810
|
+
value: "space-around"
|
|
1811
|
+
}, {
|
|
1812
|
+
label: "Left",
|
|
1813
|
+
value: "flex-start"
|
|
1814
|
+
}, {
|
|
1815
|
+
label: "Right",
|
|
1816
|
+
value: "flex-end"
|
|
1817
|
+
}]
|
|
1818
|
+
}]
|
|
1819
|
+
};
|
|
1820
|
+
function zt(e) {
|
|
1821
|
+
var l;
|
|
1822
|
+
const [t, n] = C(
|
|
1823
|
+
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
1824
|
+
);
|
|
1825
|
+
function i(r) {
|
|
1826
|
+
return e.tabs && e.tabs[r].content;
|
|
1827
|
+
}
|
|
1828
|
+
function o(r) {
|
|
1829
|
+
return t === r ? e.activeTabStyle : {};
|
|
1830
|
+
}
|
|
1831
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
1832
|
+
/* @__PURE__ */ s(
|
|
1833
|
+
"div",
|
|
1834
|
+
{
|
|
1835
|
+
className: "builder-tabs-wrap",
|
|
1836
|
+
style: {
|
|
1837
|
+
display: "flex",
|
|
1838
|
+
flexDirection: "row",
|
|
1839
|
+
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1840
|
+
overflow: "auto"
|
|
1841
|
+
},
|
|
1842
|
+
children: (l = e.tabs) == null ? void 0 : l.map((r, a) => /* @__PURE__ */ s(
|
|
1843
|
+
"span",
|
|
1844
|
+
{
|
|
1845
|
+
className: `builder-tab-wrap ${t === a ? "builder-tab-active" : ""}`,
|
|
1846
|
+
style: o(a),
|
|
1847
|
+
onClick: (c) => {
|
|
1848
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
1849
|
+
},
|
|
1850
|
+
children: /* @__PURE__ */ s(
|
|
1851
|
+
j,
|
|
1852
|
+
{
|
|
1853
|
+
parent: e.builderBlock.id,
|
|
1854
|
+
path: `component.options.tabs.${a}.label`,
|
|
1855
|
+
blocks: r.label,
|
|
1856
|
+
context: e.builderContext,
|
|
1857
|
+
registeredComponents: e.builderComponents,
|
|
1858
|
+
linkComponent: e.builderLinkComponent
|
|
1859
|
+
}
|
|
1860
|
+
)
|
|
1861
|
+
},
|
|
1862
|
+
a
|
|
1863
|
+
))
|
|
1864
|
+
}
|
|
1865
|
+
),
|
|
1866
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1867
|
+
j,
|
|
1868
|
+
{
|
|
1869
|
+
parent: e.builderBlock.id,
|
|
1870
|
+
path: `component.options.tabs.${t}.content`,
|
|
1871
|
+
blocks: i(t),
|
|
1872
|
+
context: e.builderContext,
|
|
1873
|
+
registeredComponents: e.builderComponents,
|
|
1874
|
+
linkComponent: e.builderLinkComponent
|
|
1875
|
+
}
|
|
1876
|
+
) }) : null
|
|
1877
|
+
] });
|
|
1878
|
+
}
|
|
1879
|
+
const Jt = {
|
|
1677
1880
|
name: "Text",
|
|
1678
1881
|
static: !0,
|
|
1679
1882
|
isRSC: !0,
|
|
@@ -1692,7 +1895,7 @@ const Mt = {
|
|
|
1692
1895
|
textAlign: "center"
|
|
1693
1896
|
}
|
|
1694
1897
|
};
|
|
1695
|
-
function
|
|
1898
|
+
function Yt(e) {
|
|
1696
1899
|
var t;
|
|
1697
1900
|
return /* @__PURE__ */ s(
|
|
1698
1901
|
"div",
|
|
@@ -1705,7 +1908,7 @@ function Ot(e) {
|
|
|
1705
1908
|
}
|
|
1706
1909
|
);
|
|
1707
1910
|
}
|
|
1708
|
-
const
|
|
1911
|
+
const Gt = {
|
|
1709
1912
|
name: "Custom Code",
|
|
1710
1913
|
static: !0,
|
|
1711
1914
|
requiredPermissions: ["editCode"],
|
|
@@ -1728,30 +1931,30 @@ const Ut = {
|
|
|
1728
1931
|
advanced: !0
|
|
1729
1932
|
}]
|
|
1730
1933
|
};
|
|
1731
|
-
function
|
|
1732
|
-
const t =
|
|
1733
|
-
return
|
|
1734
|
-
var
|
|
1735
|
-
if (!((
|
|
1934
|
+
function Qt(e) {
|
|
1935
|
+
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
1936
|
+
return P(() => {
|
|
1937
|
+
var a;
|
|
1938
|
+
if (!((a = t.current) != null && a.getElementsByTagName) || typeof window == "undefined")
|
|
1736
1939
|
return;
|
|
1737
|
-
const
|
|
1738
|
-
for (let
|
|
1739
|
-
const
|
|
1740
|
-
if (
|
|
1741
|
-
if (n.includes(
|
|
1940
|
+
const r = t.current.getElementsByTagName("script");
|
|
1941
|
+
for (let c = 0; c < r.length; c++) {
|
|
1942
|
+
const d = r[c];
|
|
1943
|
+
if (d.src) {
|
|
1944
|
+
if (n.includes(d.src))
|
|
1742
1945
|
continue;
|
|
1743
|
-
n.push(
|
|
1946
|
+
n.push(d.src);
|
|
1744
1947
|
const m = document.createElement("script");
|
|
1745
|
-
m.async = !0, m.src =
|
|
1746
|
-
} else if (!
|
|
1948
|
+
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
1949
|
+
} else if (!d.type || [
|
|
1747
1950
|
"text/javascript",
|
|
1748
1951
|
"application/javascript",
|
|
1749
1952
|
"application/ecmascript"
|
|
1750
|
-
].includes(
|
|
1751
|
-
if (o.includes(
|
|
1953
|
+
].includes(d.type)) {
|
|
1954
|
+
if (o.includes(d.innerText))
|
|
1752
1955
|
continue;
|
|
1753
1956
|
try {
|
|
1754
|
-
o.push(
|
|
1957
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
1755
1958
|
} catch (m) {
|
|
1756
1959
|
console.warn("`CustomCode`: Error running script:", m);
|
|
1757
1960
|
}
|
|
@@ -1766,7 +1969,7 @@ function Ht(e) {
|
|
|
1766
1969
|
}
|
|
1767
1970
|
);
|
|
1768
1971
|
}
|
|
1769
|
-
const
|
|
1972
|
+
const Xt = {
|
|
1770
1973
|
name: "Embed",
|
|
1771
1974
|
static: !0,
|
|
1772
1975
|
inputs: [{
|
|
@@ -1791,30 +1994,30 @@ const Kt = {
|
|
|
1791
1994
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1792
1995
|
hideFromUI: !0
|
|
1793
1996
|
}]
|
|
1794
|
-
},
|
|
1795
|
-
function
|
|
1796
|
-
const t =
|
|
1797
|
-
function
|
|
1997
|
+
}, Zt = ["text/javascript", "application/javascript", "application/ecmascript"], en = (e) => Zt.includes(e.type);
|
|
1998
|
+
function tn(e) {
|
|
1999
|
+
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [r, a] = C(() => !1);
|
|
2000
|
+
function c() {
|
|
1798
2001
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1799
2002
|
return;
|
|
1800
|
-
const
|
|
1801
|
-
for (let m = 0; m <
|
|
1802
|
-
const
|
|
1803
|
-
if (
|
|
1804
|
-
n.push(
|
|
2003
|
+
const d = t.current.getElementsByTagName("script");
|
|
2004
|
+
for (let m = 0; m < d.length; m++) {
|
|
2005
|
+
const u = d[m];
|
|
2006
|
+
if (u.src && !n.includes(u.src)) {
|
|
2007
|
+
n.push(u.src);
|
|
1805
2008
|
const g = document.createElement("script");
|
|
1806
|
-
g.async = !0, g.src =
|
|
1807
|
-
} else if (
|
|
2009
|
+
g.async = !0, g.src = u.src, document.head.appendChild(g);
|
|
2010
|
+
} else if (en(u) && !o.includes(u.innerText))
|
|
1808
2011
|
try {
|
|
1809
|
-
o.push(
|
|
2012
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
1810
2013
|
} catch (g) {
|
|
1811
2014
|
console.warn("`Embed`: Error running script:", g);
|
|
1812
2015
|
}
|
|
1813
2016
|
}
|
|
1814
2017
|
}
|
|
1815
|
-
return
|
|
1816
|
-
t.current && !
|
|
1817
|
-
}, [t.current,
|
|
2018
|
+
return P(() => {
|
|
2019
|
+
t.current && !r && (a(!0), c());
|
|
2020
|
+
}, [t.current, r]), /* @__PURE__ */ s(
|
|
1818
2021
|
"div",
|
|
1819
2022
|
{
|
|
1820
2023
|
className: "builder-embed",
|
|
@@ -1823,7 +2026,7 @@ function zt(e) {
|
|
|
1823
2026
|
}
|
|
1824
2027
|
);
|
|
1825
2028
|
}
|
|
1826
|
-
const
|
|
2029
|
+
const nn = {
|
|
1827
2030
|
name: "Form:Form",
|
|
1828
2031
|
// editableTags: ['builder-form-error']
|
|
1829
2032
|
defaults: {
|
|
@@ -2054,127 +2257,127 @@ const Jt = {
|
|
|
2054
2257
|
}
|
|
2055
2258
|
}
|
|
2056
2259
|
}]
|
|
2057
|
-
},
|
|
2260
|
+
}, on = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], an = () => {
|
|
2058
2261
|
const e = process.env.NODE_ENV || "production";
|
|
2059
|
-
return
|
|
2060
|
-
},
|
|
2061
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2262
|
+
return on.includes(e) ? e : "production";
|
|
2263
|
+
}, rn = (e, t, n) => {
|
|
2264
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2062
2265
|
return i === void 0 || i === e ? n : i;
|
|
2063
2266
|
};
|
|
2064
|
-
function
|
|
2065
|
-
var
|
|
2066
|
-
const t =
|
|
2067
|
-
function
|
|
2068
|
-
var
|
|
2069
|
-
const
|
|
2267
|
+
function ln(e) {
|
|
2268
|
+
var u, g;
|
|
2269
|
+
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [r, a] = C(() => "");
|
|
2270
|
+
function c(p) {
|
|
2271
|
+
var I, E;
|
|
2272
|
+
const S = {
|
|
2070
2273
|
...e.builderContext.rootState,
|
|
2071
|
-
...
|
|
2274
|
+
...p
|
|
2072
2275
|
};
|
|
2073
|
-
e.builderContext.rootSetState ? (
|
|
2276
|
+
e.builderContext.rootSetState ? (E = (I = e.builderContext).rootSetState) == null || E.call(I, S) : e.builderContext.rootState = S;
|
|
2074
2277
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return
|
|
2278
|
+
function d() {
|
|
2279
|
+
return F() && e.previewState || n;
|
|
2077
2280
|
}
|
|
2078
|
-
function m(
|
|
2079
|
-
var
|
|
2080
|
-
const
|
|
2281
|
+
function m(p) {
|
|
2282
|
+
var I;
|
|
2283
|
+
const S = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2081
2284
|
if (e.sendSubmissionsTo === "zapier")
|
|
2082
|
-
|
|
2083
|
-
else if (
|
|
2285
|
+
p.preventDefault();
|
|
2286
|
+
else if (S) {
|
|
2084
2287
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2085
|
-
|
|
2288
|
+
p.preventDefault();
|
|
2086
2289
|
return;
|
|
2087
2290
|
}
|
|
2088
|
-
|
|
2089
|
-
const
|
|
2090
|
-
let
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
).filter((
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2096
|
-
if (
|
|
2097
|
-
if (
|
|
2098
|
-
if (
|
|
2099
|
-
return
|
|
2100
|
-
key:
|
|
2101
|
-
value:
|
|
2291
|
+
p.preventDefault();
|
|
2292
|
+
const E = p.currentTarget, R = e.customHeaders || {};
|
|
2293
|
+
let N;
|
|
2294
|
+
const W = new FormData(E), D = Array.from(
|
|
2295
|
+
p.currentTarget.querySelectorAll("input,select,textarea")
|
|
2296
|
+
).filter((h) => !!h.name).map((h) => {
|
|
2297
|
+
let f;
|
|
2298
|
+
const b = h.name;
|
|
2299
|
+
if (h instanceof HTMLInputElement)
|
|
2300
|
+
if (h.type === "radio") {
|
|
2301
|
+
if (h.checked)
|
|
2302
|
+
return f = h.name, {
|
|
2303
|
+
key: b,
|
|
2304
|
+
value: f
|
|
2102
2305
|
};
|
|
2103
|
-
} else if (
|
|
2104
|
-
|
|
2105
|
-
else if (
|
|
2106
|
-
const
|
|
2107
|
-
isNaN(
|
|
2306
|
+
} else if (h.type === "checkbox")
|
|
2307
|
+
f = h.checked;
|
|
2308
|
+
else if (h.type === "number" || h.type === "range") {
|
|
2309
|
+
const y = h.valueAsNumber;
|
|
2310
|
+
isNaN(y) || (f = y);
|
|
2108
2311
|
} else
|
|
2109
|
-
|
|
2312
|
+
h.type === "file" ? f = h.files : f = h.value;
|
|
2110
2313
|
else
|
|
2111
|
-
|
|
2314
|
+
f = h.value;
|
|
2112
2315
|
return {
|
|
2113
|
-
key:
|
|
2114
|
-
value:
|
|
2316
|
+
key: b,
|
|
2317
|
+
value: f
|
|
2115
2318
|
};
|
|
2116
2319
|
});
|
|
2117
|
-
let
|
|
2118
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2119
|
-
(
|
|
2120
|
-
}),
|
|
2121
|
-
|
|
2320
|
+
let x = e.contentType;
|
|
2321
|
+
if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
|
|
2322
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
|
|
2323
|
+
}), x !== "application/json")
|
|
2324
|
+
N = W;
|
|
2122
2325
|
else {
|
|
2123
|
-
const
|
|
2124
|
-
Array.from(
|
|
2125
|
-
|
|
2126
|
-
}),
|
|
2326
|
+
const h = {};
|
|
2327
|
+
Array.from(D).forEach(({ value: f, key: b }) => {
|
|
2328
|
+
we(h, b, f);
|
|
2329
|
+
}), N = JSON.stringify(h);
|
|
2127
2330
|
}
|
|
2128
|
-
|
|
2129
|
-
const
|
|
2130
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2331
|
+
x && x !== "multipart/form-data" && (S && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = x));
|
|
2332
|
+
const T = new CustomEvent("presubmit", { detail: { body: N } });
|
|
2333
|
+
if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
|
|
2131
2334
|
return;
|
|
2132
2335
|
i("sending");
|
|
2133
|
-
const
|
|
2336
|
+
const A = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2134
2337
|
e.sendSubmissionsToEmail || ""
|
|
2135
2338
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2136
2339
|
fetch(
|
|
2137
|
-
e.sendSubmissionsTo === "email" ?
|
|
2138
|
-
{ body:
|
|
2340
|
+
e.sendSubmissionsTo === "email" ? A : e.action,
|
|
2341
|
+
{ body: N, headers: R, method: e.method || "post" }
|
|
2139
2342
|
).then(
|
|
2140
|
-
async (
|
|
2141
|
-
let
|
|
2142
|
-
const
|
|
2143
|
-
if (
|
|
2144
|
-
let
|
|
2145
|
-
|
|
2343
|
+
async (h) => {
|
|
2344
|
+
let f;
|
|
2345
|
+
const b = h.headers.get("content-type");
|
|
2346
|
+
if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
|
|
2347
|
+
let y = rn(f, e.errorMessagePath);
|
|
2348
|
+
y && (typeof y != "string" && (y = JSON.stringify(y)), a(y), c({ formErrorMessage: y }));
|
|
2146
2349
|
}
|
|
2147
|
-
if (
|
|
2148
|
-
const
|
|
2149
|
-
detail: { res:
|
|
2350
|
+
if (l(f), i(h.ok ? "success" : "error"), h.ok) {
|
|
2351
|
+
const y = new CustomEvent("submit:success", {
|
|
2352
|
+
detail: { res: h, body: f }
|
|
2150
2353
|
});
|
|
2151
2354
|
if (t.current) {
|
|
2152
|
-
if (t.current.dispatchEvent(
|
|
2355
|
+
if (t.current.dispatchEvent(y), y.defaultPrevented)
|
|
2153
2356
|
return;
|
|
2154
2357
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2155
2358
|
}
|
|
2156
2359
|
if (e.successUrl)
|
|
2157
2360
|
if (t.current) {
|
|
2158
|
-
const
|
|
2361
|
+
const v = new CustomEvent("route", {
|
|
2159
2362
|
detail: { url: e.successUrl }
|
|
2160
2363
|
});
|
|
2161
|
-
t.current.dispatchEvent(
|
|
2364
|
+
t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
|
|
2162
2365
|
} else
|
|
2163
2366
|
location.href = e.successUrl;
|
|
2164
2367
|
}
|
|
2165
2368
|
},
|
|
2166
|
-
(
|
|
2167
|
-
const
|
|
2168
|
-
detail: { error:
|
|
2369
|
+
(h) => {
|
|
2370
|
+
const f = new CustomEvent("submit:error", {
|
|
2371
|
+
detail: { error: h }
|
|
2169
2372
|
});
|
|
2170
|
-
t.current && (t.current.dispatchEvent(
|
|
2373
|
+
t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (l(h), i("error"));
|
|
2171
2374
|
}
|
|
2172
2375
|
);
|
|
2173
2376
|
}
|
|
2174
2377
|
}
|
|
2175
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
2176
2379
|
" ",
|
|
2177
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ V(
|
|
2178
2381
|
"form",
|
|
2179
2382
|
{
|
|
2180
2383
|
validate: e.validate,
|
|
@@ -2182,20 +2385,20 @@ function Xt(e) {
|
|
|
2182
2385
|
action: !e.sendWithJs && e.action,
|
|
2183
2386
|
method: e.method,
|
|
2184
2387
|
name: e.name,
|
|
2185
|
-
onSubmit: (
|
|
2388
|
+
onSubmit: (p) => m(p),
|
|
2186
2389
|
...e.attributes,
|
|
2187
2390
|
children: [
|
|
2188
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2189
|
-
|
|
2391
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(w, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((p, S) => /* @__PURE__ */ s(
|
|
2392
|
+
_,
|
|
2190
2393
|
{
|
|
2191
|
-
block:
|
|
2394
|
+
block: p,
|
|
2192
2395
|
context: e.builderContext,
|
|
2193
2396
|
registeredComponents: e.builderComponents,
|
|
2194
2397
|
linkComponent: e.builderLinkComponent
|
|
2195
2398
|
},
|
|
2196
|
-
`form-block-${
|
|
2399
|
+
`form-block-${S}`
|
|
2197
2400
|
)) }) : null,
|
|
2198
|
-
|
|
2401
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
2199
2402
|
j,
|
|
2200
2403
|
{
|
|
2201
2404
|
path: "errorMessage",
|
|
@@ -2203,7 +2406,7 @@ function Xt(e) {
|
|
|
2203
2406
|
context: e.builderContext
|
|
2204
2407
|
}
|
|
2205
2408
|
) : null,
|
|
2206
|
-
|
|
2409
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
2207
2410
|
j,
|
|
2208
2411
|
{
|
|
2209
2412
|
path: "sendingMessage",
|
|
@@ -2211,8 +2414,8 @@ function Xt(e) {
|
|
|
2211
2414
|
context: e.builderContext
|
|
2212
2415
|
}
|
|
2213
2416
|
) : null,
|
|
2214
|
-
|
|
2215
|
-
|
|
2417
|
+
d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
|
|
2418
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
2216
2419
|
j,
|
|
2217
2420
|
{
|
|
2218
2421
|
path: "successMessage",
|
|
@@ -2228,7 +2431,7 @@ function Xt(e) {
|
|
|
2228
2431
|
" "
|
|
2229
2432
|
] });
|
|
2230
2433
|
}
|
|
2231
|
-
const
|
|
2434
|
+
const sn = {
|
|
2232
2435
|
name: "Form:Input",
|
|
2233
2436
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2234
2437
|
inputs: [
|
|
@@ -2280,12 +2483,12 @@ const Zt = {
|
|
|
2280
2483
|
borderColor: "#ccc"
|
|
2281
2484
|
}
|
|
2282
2485
|
};
|
|
2283
|
-
function
|
|
2284
|
-
return /* @__PURE__ */
|
|
2486
|
+
function cn(e) {
|
|
2487
|
+
return /* @__PURE__ */ Te(
|
|
2285
2488
|
"input",
|
|
2286
2489
|
{
|
|
2287
2490
|
...e.attributes,
|
|
2288
|
-
key:
|
|
2491
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2289
2492
|
placeholder: e.placeholder,
|
|
2290
2493
|
type: e.type,
|
|
2291
2494
|
name: e.name,
|
|
@@ -2295,7 +2498,7 @@ function en(e) {
|
|
|
2295
2498
|
}
|
|
2296
2499
|
);
|
|
2297
2500
|
}
|
|
2298
|
-
const
|
|
2501
|
+
const dn = {
|
|
2299
2502
|
name: "Form:Select",
|
|
2300
2503
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2301
2504
|
defaultStyles: {
|
|
@@ -2338,21 +2541,21 @@ const tn = {
|
|
|
2338
2541
|
static: !0,
|
|
2339
2542
|
noWrap: !0
|
|
2340
2543
|
};
|
|
2341
|
-
function
|
|
2544
|
+
function un(e) {
|
|
2342
2545
|
var t;
|
|
2343
|
-
return /* @__PURE__ */
|
|
2546
|
+
return /* @__PURE__ */ Te(
|
|
2344
2547
|
"select",
|
|
2345
2548
|
{
|
|
2346
2549
|
...e.attributes,
|
|
2347
2550
|
value: e.value,
|
|
2348
|
-
key:
|
|
2551
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2349
2552
|
defaultValue: e.defaultValue,
|
|
2350
2553
|
name: e.name
|
|
2351
2554
|
},
|
|
2352
2555
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2353
2556
|
);
|
|
2354
2557
|
}
|
|
2355
|
-
const
|
|
2558
|
+
const mn = {
|
|
2356
2559
|
name: "Form:SubmitButton",
|
|
2357
2560
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2358
2561
|
defaultStyles: {
|
|
@@ -2378,10 +2581,10 @@ const on = {
|
|
|
2378
2581
|
// TODO: defaultChildren
|
|
2379
2582
|
// canHaveChildren: true,
|
|
2380
2583
|
};
|
|
2381
|
-
function
|
|
2584
|
+
function fn(e) {
|
|
2382
2585
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2383
2586
|
}
|
|
2384
|
-
const
|
|
2587
|
+
const hn = {
|
|
2385
2588
|
// friendlyName?
|
|
2386
2589
|
name: "Raw:Img",
|
|
2387
2590
|
hideFromInsertMenu: !0,
|
|
@@ -2396,7 +2599,7 @@ const rn = {
|
|
|
2396
2599
|
noWrap: !0,
|
|
2397
2600
|
static: !0
|
|
2398
2601
|
};
|
|
2399
|
-
function
|
|
2602
|
+
function gn(e) {
|
|
2400
2603
|
return /* @__PURE__ */ s(
|
|
2401
2604
|
"img",
|
|
2402
2605
|
{
|
|
@@ -2408,10 +2611,10 @@ function ln(e) {
|
|
|
2408
2611
|
src: e.imgSrc || e.image,
|
|
2409
2612
|
...e.attributes
|
|
2410
2613
|
},
|
|
2411
|
-
|
|
2614
|
+
F() && e.imgSrc || "default-key"
|
|
2412
2615
|
);
|
|
2413
2616
|
}
|
|
2414
|
-
const
|
|
2617
|
+
const bn = {
|
|
2415
2618
|
name: "Video",
|
|
2416
2619
|
canHaveChildren: !0,
|
|
2417
2620
|
defaultStyles: {
|
|
@@ -2493,8 +2696,8 @@ const sn = {
|
|
|
2493
2696
|
advanced: !0
|
|
2494
2697
|
}]
|
|
2495
2698
|
};
|
|
2496
|
-
function
|
|
2497
|
-
var i, o, r, a,
|
|
2699
|
+
function pn(e) {
|
|
2700
|
+
var i, o, l, r, a, c, d;
|
|
2498
2701
|
function t() {
|
|
2499
2702
|
return {
|
|
2500
2703
|
...e.autoPlay === !0 ? {
|
|
@@ -2519,7 +2722,7 @@ function cn(e) {
|
|
|
2519
2722
|
...t()
|
|
2520
2723
|
};
|
|
2521
2724
|
}
|
|
2522
|
-
return /* @__PURE__ */
|
|
2725
|
+
return /* @__PURE__ */ V(
|
|
2523
2726
|
"div",
|
|
2524
2727
|
{
|
|
2525
2728
|
style: {
|
|
@@ -2551,7 +2754,7 @@ function cn(e) {
|
|
|
2551
2754
|
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
2552
2755
|
}
|
|
2553
2756
|
),
|
|
2554
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
2757
|
+
e.aspectRatio && !(e.fitContent && ((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length)) ? /* @__PURE__ */ s(
|
|
2555
2758
|
"div",
|
|
2556
2759
|
{
|
|
2557
2760
|
style: {
|
|
@@ -2562,7 +2765,7 @@ function cn(e) {
|
|
|
2562
2765
|
}
|
|
2563
2766
|
}
|
|
2564
2767
|
) : null,
|
|
2565
|
-
(
|
|
2768
|
+
(a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(
|
|
2566
2769
|
"div",
|
|
2567
2770
|
{
|
|
2568
2771
|
style: {
|
|
@@ -2573,7 +2776,7 @@ function cn(e) {
|
|
|
2573
2776
|
children: e.children
|
|
2574
2777
|
}
|
|
2575
2778
|
) : null,
|
|
2576
|
-
(
|
|
2779
|
+
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2577
2780
|
"div",
|
|
2578
2781
|
{
|
|
2579
2782
|
style: {
|
|
@@ -2594,55 +2797,58 @@ function cn(e) {
|
|
|
2594
2797
|
}
|
|
2595
2798
|
);
|
|
2596
2799
|
}
|
|
2597
|
-
const
|
|
2598
|
-
component:
|
|
2599
|
-
...
|
|
2600
|
-
}, {
|
|
2601
|
-
component: zt,
|
|
2602
|
-
...Kt
|
|
2603
|
-
}, {
|
|
2604
|
-
component: Xt,
|
|
2605
|
-
...Jt
|
|
2606
|
-
}, {
|
|
2607
|
-
component: en,
|
|
2608
|
-
...Zt
|
|
2800
|
+
const yn = () => [{
|
|
2801
|
+
component: Qt,
|
|
2802
|
+
...Gt
|
|
2609
2803
|
}, {
|
|
2610
|
-
component:
|
|
2611
|
-
...
|
|
2612
|
-
}, {
|
|
2613
|
-
component: nn,
|
|
2614
|
-
...tn
|
|
2804
|
+
component: tn,
|
|
2805
|
+
...Xt
|
|
2615
2806
|
}, {
|
|
2616
2807
|
component: ln,
|
|
2617
|
-
...
|
|
2808
|
+
...nn
|
|
2618
2809
|
}, {
|
|
2619
2810
|
component: cn,
|
|
2620
2811
|
...sn
|
|
2621
|
-
}], ge = () => [{
|
|
2622
|
-
component: Xe,
|
|
2623
|
-
...Wt
|
|
2624
2812
|
}, {
|
|
2625
|
-
component:
|
|
2626
|
-
...
|
|
2813
|
+
component: fn,
|
|
2814
|
+
...mn
|
|
2627
2815
|
}, {
|
|
2628
|
-
component:
|
|
2629
|
-
...
|
|
2816
|
+
component: un,
|
|
2817
|
+
...dn
|
|
2630
2818
|
}, {
|
|
2631
|
-
component:
|
|
2632
|
-
|
|
2819
|
+
component: gn,
|
|
2820
|
+
...hn
|
|
2633
2821
|
}, {
|
|
2634
|
-
component:
|
|
2635
|
-
...
|
|
2822
|
+
component: pn,
|
|
2823
|
+
...bn
|
|
2824
|
+
}], ye = () => [{
|
|
2825
|
+
component: tt,
|
|
2826
|
+
...Dt
|
|
2636
2827
|
}, {
|
|
2637
|
-
component:
|
|
2638
|
-
...
|
|
2828
|
+
component: Nt,
|
|
2829
|
+
...jt
|
|
2639
2830
|
}, {
|
|
2640
|
-
component:
|
|
2831
|
+
component: Wt,
|
|
2641
2832
|
...Mt
|
|
2642
2833
|
}, {
|
|
2643
|
-
component:
|
|
2644
|
-
...
|
|
2645
|
-
},
|
|
2834
|
+
component: Ft,
|
|
2835
|
+
...Ut
|
|
2836
|
+
}, {
|
|
2837
|
+
component: Lt,
|
|
2838
|
+
...Ot
|
|
2839
|
+
}, {
|
|
2840
|
+
component: Kt,
|
|
2841
|
+
...Ht
|
|
2842
|
+
}, {
|
|
2843
|
+
component: Un,
|
|
2844
|
+
...qt
|
|
2845
|
+
}, {
|
|
2846
|
+
component: Yt,
|
|
2847
|
+
...Jt
|
|
2848
|
+
}, {
|
|
2849
|
+
component: zt,
|
|
2850
|
+
..._t
|
|
2851
|
+
}, ...yn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2646
2852
|
function getAndSetVariantId() {
|
|
2647
2853
|
function setCookie(name, value, days) {
|
|
2648
2854
|
let expires = '';
|
|
@@ -2698,7 +2904,7 @@ const dn = () => [{
|
|
|
2698
2904
|
}).join('');
|
|
2699
2905
|
styleEl.innerHTML = newStyleStr;
|
|
2700
2906
|
}
|
|
2701
|
-
}`,
|
|
2907
|
+
}`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2702
2908
|
if (!navigator.cookieEnabled) {
|
|
2703
2909
|
return;
|
|
2704
2910
|
}
|
|
@@ -2732,26 +2938,26 @@ const dn = () => [{
|
|
|
2732
2938
|
thisScriptEl?.remove();
|
|
2733
2939
|
}
|
|
2734
2940
|
return;
|
|
2735
|
-
}`,
|
|
2941
|
+
}`, Fe = "builderIoAbTest", Le = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2736
2942
|
...t,
|
|
2737
2943
|
testVariationId: t.id,
|
|
2738
2944
|
id: e == null ? void 0 : e.id
|
|
2739
|
-
})),
|
|
2945
|
+
})), vn = ({
|
|
2740
2946
|
canTrack: e,
|
|
2741
2947
|
content: t
|
|
2742
|
-
}) => !(!(
|
|
2743
|
-
window.${
|
|
2744
|
-
window.${
|
|
2745
|
-
`,
|
|
2746
|
-
window.${
|
|
2747
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2748
|
-
)`,
|
|
2948
|
+
}) => !(!(J(t).length > 0) || !e || G()), kn = (e) => e === "react" || e === "reactNative", De = kn(q), Cn = () => `
|
|
2949
|
+
window.${Fe} = ${xn}
|
|
2950
|
+
window.${Le} = ${Sn}
|
|
2951
|
+
`, Tn = (e, t) => `
|
|
2952
|
+
window.${Fe}(
|
|
2953
|
+
"${t}",${JSON.stringify(e)}, ${De}
|
|
2954
|
+
)`, wn = ({
|
|
2749
2955
|
contentId: e,
|
|
2750
2956
|
variationId: t
|
|
2751
|
-
}) => `window.${
|
|
2752
|
-
"${t}", "${e}", ${
|
|
2957
|
+
}) => `window.${Le}(
|
|
2958
|
+
"${t}", "${e}", ${De}
|
|
2753
2959
|
)`;
|
|
2754
|
-
function
|
|
2960
|
+
function re(e) {
|
|
2755
2961
|
return /* @__PURE__ */ s(
|
|
2756
2962
|
"script",
|
|
2757
2963
|
{
|
|
@@ -2760,10 +2966,10 @@ function ie(e) {
|
|
|
2760
2966
|
}
|
|
2761
2967
|
);
|
|
2762
2968
|
}
|
|
2763
|
-
function
|
|
2969
|
+
function xe(e) {
|
|
2764
2970
|
return Math.round(e * 1e3) / 1e3;
|
|
2765
2971
|
}
|
|
2766
|
-
const
|
|
2972
|
+
const In = (e, t, n = !0) => {
|
|
2767
2973
|
if (!(e instanceof HTMLElement))
|
|
2768
2974
|
return null;
|
|
2769
2975
|
let i = n ? e : e.parentElement;
|
|
@@ -2774,100 +2980,157 @@ const pn = (e, t, n = !0) => {
|
|
|
2774
2980
|
return i;
|
|
2775
2981
|
} while (i = i.parentElement);
|
|
2776
2982
|
return null;
|
|
2777
|
-
},
|
|
2983
|
+
}, En = (e) => In(e, (t) => {
|
|
2778
2984
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2779
2985
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2780
|
-
}),
|
|
2986
|
+
}), Se = ({
|
|
2781
2987
|
event: e,
|
|
2782
2988
|
target: t
|
|
2783
2989
|
}) => {
|
|
2784
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
2990
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = xe(i / n.width), r = xe(o / n.height);
|
|
2785
2991
|
return {
|
|
2786
|
-
x:
|
|
2787
|
-
y:
|
|
2992
|
+
x: l,
|
|
2993
|
+
y: r
|
|
2788
2994
|
};
|
|
2789
|
-
},
|
|
2790
|
-
const t = e.target, n = t &&
|
|
2995
|
+
}, Rn = (e) => {
|
|
2996
|
+
const t = e.target, n = t && En(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2791
2997
|
return {
|
|
2792
2998
|
targetBuilderElement: i || void 0,
|
|
2793
2999
|
metadata: {
|
|
2794
|
-
targetOffset: t ?
|
|
3000
|
+
targetOffset: t ? Se({
|
|
2795
3001
|
event: e,
|
|
2796
3002
|
target: t
|
|
2797
3003
|
}) : void 0,
|
|
2798
|
-
builderTargetOffset: n ?
|
|
3004
|
+
builderTargetOffset: n ? Se({
|
|
2799
3005
|
event: e,
|
|
2800
3006
|
target: n
|
|
2801
3007
|
}) : void 0,
|
|
2802
3008
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2803
3009
|
}
|
|
2804
3010
|
};
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
3011
|
+
}, Pn = (e) => {
|
|
3012
|
+
var l, r;
|
|
3013
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
3014
|
+
let o = "";
|
|
3015
|
+
if (i && t && n && (o += `
|
|
3016
|
+
@font-face {
|
|
3017
|
+
font-family: "${t}";
|
|
3018
|
+
src: local("${n}"), url('${i}') format('woff2');
|
|
3019
|
+
font-display: fallback;
|
|
3020
|
+
font-weight: 400;
|
|
3021
|
+
}
|
|
3022
|
+
`.trim()), e.files)
|
|
3023
|
+
for (const a in e.files) {
|
|
3024
|
+
if (!(String(Number(a)) === a))
|
|
3025
|
+
continue;
|
|
3026
|
+
const d = e.files[a];
|
|
3027
|
+
d && d !== i && (o += `
|
|
3028
|
+
@font-face {
|
|
3029
|
+
font-family: "${t}";
|
|
3030
|
+
src: url('${d}') format('woff2');
|
|
3031
|
+
font-display: fallback;
|
|
3032
|
+
font-weight: ${a};
|
|
3033
|
+
}
|
|
3034
|
+
`.trim());
|
|
3035
|
+
}
|
|
3036
|
+
return o;
|
|
3037
|
+
}, Vn = ({
|
|
3038
|
+
customFonts: e
|
|
3039
|
+
}) => {
|
|
3040
|
+
var t;
|
|
3041
|
+
return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3042
|
+
}, Bn = ({
|
|
3043
|
+
cssCode: e,
|
|
3044
|
+
contentId: t
|
|
3045
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Nn = `
|
|
3046
|
+
.builder-button {
|
|
3047
|
+
all: unset;
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3051
|
+
margin: 0;
|
|
3052
|
+
}
|
|
3053
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3054
|
+
color: inherit;
|
|
3055
|
+
line-height: inherit;
|
|
3056
|
+
letter-spacing: inherit;
|
|
3057
|
+
font-weight: inherit;
|
|
3058
|
+
font-size: inherit;
|
|
3059
|
+
text-align: inherit;
|
|
3060
|
+
font-family: inherit;
|
|
3061
|
+
}
|
|
3062
|
+
`, Wn = (e) => e ? "" : Nn, An = (e) => `variant-${e}`;
|
|
3063
|
+
function $n(e) {
|
|
3064
|
+
var N, W, D, x, T, A, h;
|
|
3065
|
+
const t = ee(null);
|
|
3066
|
+
function n(f) {
|
|
3067
|
+
var y, v;
|
|
3068
|
+
const b = {
|
|
2812
3069
|
...e.builderContextSignal.rootState,
|
|
2813
|
-
...
|
|
3070
|
+
...f
|
|
2814
3071
|
};
|
|
2815
|
-
e.builderContextSignal.rootSetState ? (
|
|
2816
|
-
...
|
|
2817
|
-
rootState:
|
|
3072
|
+
e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, b) : e.setBuilderContextSignal((k) => ({
|
|
3073
|
+
...k,
|
|
3074
|
+
rootState: b
|
|
2818
3075
|
}));
|
|
2819
3076
|
}
|
|
2820
|
-
function i(
|
|
2821
|
-
var
|
|
2822
|
-
const
|
|
3077
|
+
function i(f) {
|
|
3078
|
+
var y, v, k, B, M;
|
|
3079
|
+
const b = {
|
|
2823
3080
|
...e.builderContextSignal.content,
|
|
2824
|
-
...
|
|
3081
|
+
...f,
|
|
2825
3082
|
data: {
|
|
2826
|
-
...(
|
|
2827
|
-
...
|
|
3083
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
|
|
3084
|
+
...f == null ? void 0 : f.data
|
|
2828
3085
|
},
|
|
2829
3086
|
meta: {
|
|
2830
|
-
...(
|
|
2831
|
-
...
|
|
2832
|
-
breakpoints: ((
|
|
3087
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
3088
|
+
...f == null ? void 0 : f.meta,
|
|
3089
|
+
breakpoints: ((k = f == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
|
|
2833
3090
|
}
|
|
2834
3091
|
};
|
|
2835
|
-
e.setBuilderContextSignal((
|
|
2836
|
-
|
|
2837
|
-
content:
|
|
3092
|
+
e.setBuilderContextSignal(($) => ({
|
|
3093
|
+
...$,
|
|
3094
|
+
content: b
|
|
2838
3095
|
}));
|
|
2839
3096
|
}
|
|
2840
|
-
|
|
3097
|
+
function o() {
|
|
3098
|
+
return e.showContent ? {} : {
|
|
3099
|
+
hidden: !0,
|
|
3100
|
+
"aria-hidden": !0
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
const [l, r] = C(
|
|
2841
3104
|
() => e.contentWrapper || "div"
|
|
2842
3105
|
);
|
|
2843
|
-
function a(
|
|
2844
|
-
return
|
|
3106
|
+
function a(f) {
|
|
3107
|
+
return _e({
|
|
2845
3108
|
model: e.model,
|
|
2846
3109
|
trustedHosts: e.trustedHosts,
|
|
2847
3110
|
callbacks: {
|
|
2848
|
-
configureSdk: (
|
|
2849
|
-
var
|
|
2850
|
-
const { breakpoints:
|
|
2851
|
-
!
|
|
3111
|
+
configureSdk: (b) => {
|
|
3112
|
+
var k;
|
|
3113
|
+
const { breakpoints: y, contentId: v } = b;
|
|
3114
|
+
!v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || y && i({
|
|
2852
3115
|
meta: {
|
|
2853
|
-
breakpoints:
|
|
3116
|
+
breakpoints: y
|
|
2854
3117
|
}
|
|
2855
3118
|
});
|
|
2856
3119
|
},
|
|
2857
|
-
animation: (
|
|
2858
|
-
|
|
3120
|
+
animation: (b) => {
|
|
3121
|
+
Ve(b);
|
|
2859
3122
|
},
|
|
2860
|
-
contentUpdate: (
|
|
2861
|
-
i(
|
|
3123
|
+
contentUpdate: (b) => {
|
|
3124
|
+
i(b);
|
|
2862
3125
|
}
|
|
2863
3126
|
}
|
|
2864
|
-
})(
|
|
3127
|
+
})(f);
|
|
2865
3128
|
}
|
|
2866
|
-
function
|
|
2867
|
-
var
|
|
2868
|
-
const
|
|
2869
|
-
|
|
2870
|
-
code:
|
|
3129
|
+
function c() {
|
|
3130
|
+
var b, y;
|
|
3131
|
+
const f = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.jsCode;
|
|
3132
|
+
f && K({
|
|
3133
|
+
code: f,
|
|
2871
3134
|
context: e.context || {},
|
|
2872
3135
|
localState: void 0,
|
|
2873
3136
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2878,35 +3141,35 @@ function vn(e) {
|
|
|
2878
3141
|
enableCache: !1
|
|
2879
3142
|
});
|
|
2880
3143
|
}
|
|
2881
|
-
const [d,
|
|
2882
|
-
function
|
|
2883
|
-
var
|
|
3144
|
+
const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [p, S] = C(() => !1);
|
|
3145
|
+
function I(f) {
|
|
3146
|
+
var b, y;
|
|
2884
3147
|
if (e.builderContextSignal.content) {
|
|
2885
|
-
const
|
|
2886
|
-
|
|
3148
|
+
const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
|
|
3149
|
+
me({
|
|
2887
3150
|
type: "click",
|
|
2888
|
-
canTrack:
|
|
2889
|
-
contentId:
|
|
3151
|
+
canTrack: Q(e.canTrack),
|
|
3152
|
+
contentId: k,
|
|
2890
3153
|
apiKey: e.apiKey,
|
|
2891
|
-
variationId:
|
|
2892
|
-
...
|
|
2893
|
-
unique: !
|
|
3154
|
+
variationId: v !== k ? v : void 0,
|
|
3155
|
+
...Rn(f),
|
|
3156
|
+
unique: !p
|
|
2894
3157
|
});
|
|
2895
3158
|
}
|
|
2896
|
-
|
|
3159
|
+
p || S(!0);
|
|
2897
3160
|
}
|
|
2898
|
-
function
|
|
2899
|
-
var
|
|
2900
|
-
const
|
|
2901
|
-
Object.entries(
|
|
2902
|
-
if (!
|
|
3161
|
+
function E() {
|
|
3162
|
+
var b, y, v;
|
|
3163
|
+
const f = (v = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.httpRequests) != null ? v : {};
|
|
3164
|
+
Object.entries(f).forEach(([k, B]) => {
|
|
3165
|
+
if (!B || u[k] || d[k] && !F())
|
|
2903
3166
|
return;
|
|
2904
|
-
|
|
2905
|
-
const
|
|
3167
|
+
u[k] = !0;
|
|
3168
|
+
const M = B.replace(
|
|
2906
3169
|
/{{([^}]+)}}/g,
|
|
2907
|
-
(
|
|
2908
|
-
|
|
2909
|
-
code:
|
|
3170
|
+
($, je) => String(
|
|
3171
|
+
K({
|
|
3172
|
+
code: je,
|
|
2910
3173
|
context: e.context || {},
|
|
2911
3174
|
localState: void 0,
|
|
2912
3175
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2915,24 +3178,24 @@ function vn(e) {
|
|
|
2915
3178
|
})
|
|
2916
3179
|
)
|
|
2917
3180
|
);
|
|
2918
|
-
|
|
3181
|
+
ze(M).then(($) => $.json()).then(($) => {
|
|
2919
3182
|
n({
|
|
2920
|
-
[
|
|
2921
|
-
}), d[
|
|
2922
|
-
}).catch((
|
|
2923
|
-
console.error("error fetching dynamic data",
|
|
3183
|
+
[k]: $
|
|
3184
|
+
}), d[k] = !0;
|
|
3185
|
+
}).catch(($) => {
|
|
3186
|
+
console.error("error fetching dynamic data", B, $);
|
|
2924
3187
|
}).finally(() => {
|
|
2925
|
-
|
|
3188
|
+
u[k] = !1;
|
|
2926
3189
|
});
|
|
2927
3190
|
});
|
|
2928
3191
|
}
|
|
2929
|
-
function
|
|
2930
|
-
|
|
3192
|
+
function R() {
|
|
3193
|
+
F() && window.dispatchEvent(
|
|
2931
3194
|
new CustomEvent(
|
|
2932
3195
|
"builder:component:stateChange",
|
|
2933
3196
|
{
|
|
2934
3197
|
detail: {
|
|
2935
|
-
state:
|
|
3198
|
+
state: le(e.builderContextSignal.rootState),
|
|
2936
3199
|
ref: {
|
|
2937
3200
|
name: e.model
|
|
2938
3201
|
}
|
|
@@ -2941,10 +3204,10 @@ function vn(e) {
|
|
|
2941
3204
|
)
|
|
2942
3205
|
);
|
|
2943
3206
|
}
|
|
2944
|
-
return
|
|
2945
|
-
var
|
|
2946
|
-
if (
|
|
2947
|
-
if (
|
|
3207
|
+
return P(() => {
|
|
3208
|
+
var f, b;
|
|
3209
|
+
if (G()) {
|
|
3210
|
+
if (F() && (window.addEventListener("message", a), Oe(), He({
|
|
2948
3211
|
...e.locale ? {
|
|
2949
3212
|
locale: e.locale
|
|
2950
3213
|
} : {},
|
|
@@ -2956,152 +3219,99 @@ function vn(e) {
|
|
|
2956
3219
|
} : {}
|
|
2957
3220
|
}), Object.values(
|
|
2958
3221
|
e.builderContextSignal.componentInfos
|
|
2959
|
-
).forEach((
|
|
2960
|
-
var
|
|
2961
|
-
const
|
|
2962
|
-
(
|
|
3222
|
+
).forEach((v) => {
|
|
3223
|
+
var B;
|
|
3224
|
+
const k = Ke(v);
|
|
3225
|
+
(B = window.parent) == null || B.postMessage(k, "*");
|
|
2963
3226
|
}), window.addEventListener(
|
|
2964
3227
|
"builder:component:stateChangeListenerActivated",
|
|
2965
|
-
|
|
2966
|
-
)), e.builderContextSignal.content &&
|
|
2967
|
-
const
|
|
2968
|
-
|
|
3228
|
+
R
|
|
3229
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3230
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id, B = e.apiKey;
|
|
3231
|
+
me({
|
|
2969
3232
|
type: "impression",
|
|
2970
3233
|
canTrack: !0,
|
|
2971
|
-
contentId:
|
|
2972
|
-
apiKey:
|
|
2973
|
-
variationId:
|
|
3234
|
+
contentId: k,
|
|
3235
|
+
apiKey: B,
|
|
3236
|
+
variationId: v !== k ? v : void 0
|
|
2974
3237
|
});
|
|
2975
3238
|
}
|
|
2976
|
-
if (
|
|
2977
|
-
const
|
|
2978
|
-
`builder.preview.${
|
|
2979
|
-
),
|
|
2980
|
-
|
|
3239
|
+
if (qe() && !F()) {
|
|
3240
|
+
const v = new URL(location.href).searchParams, k = v.get("builder.preview"), B = v.get(
|
|
3241
|
+
`builder.preview.${k}`
|
|
3242
|
+
), M = v.get("apiKey") || v.get("builder.space");
|
|
3243
|
+
k === e.model && M === e.apiKey && (!e.content || B === e.content.id) && ke({
|
|
2981
3244
|
model: e.model,
|
|
2982
3245
|
apiKey: e.apiKey,
|
|
2983
3246
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2984
|
-
}).then((
|
|
2985
|
-
|
|
3247
|
+
}).then(($) => {
|
|
3248
|
+
$ && i($);
|
|
2986
3249
|
});
|
|
2987
3250
|
}
|
|
2988
3251
|
}
|
|
2989
|
-
}, []),
|
|
2990
|
-
e.apiKey ||
|
|
3252
|
+
}, []), P(() => {
|
|
3253
|
+
e.apiKey || Z.error(
|
|
2991
3254
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2992
|
-
),
|
|
2993
|
-
}, []),
|
|
3255
|
+
), c(), E(), R();
|
|
3256
|
+
}, []), P(() => {
|
|
2994
3257
|
e.content && i(e.content);
|
|
2995
|
-
}, [e.content]),
|
|
2996
|
-
|
|
2997
|
-
}, [(
|
|
2998
|
-
|
|
2999
|
-
}, [(
|
|
3000
|
-
|
|
3001
|
-
}, [e.builderContextSignal.rootState]),
|
|
3258
|
+
}, [e.content]), P(() => {
|
|
3259
|
+
c();
|
|
3260
|
+
}, [(W = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : W.jsCode]), P(() => {
|
|
3261
|
+
E();
|
|
3262
|
+
}, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
|
|
3263
|
+
R();
|
|
3264
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3002
3265
|
e.data && n(e.data);
|
|
3003
|
-
}, [e.data]),
|
|
3266
|
+
}, [e.data]), P(() => {
|
|
3004
3267
|
e.locale && n({
|
|
3005
3268
|
locale: e.locale
|
|
3006
3269
|
});
|
|
3007
|
-
}, [e.locale]),
|
|
3008
|
-
|
|
3270
|
+
}, [e.locale]), P(() => () => {
|
|
3271
|
+
G() && (window.removeEventListener("message", a), window.removeEventListener(
|
|
3009
3272
|
"builder:component:stateChangeListenerActivated",
|
|
3010
|
-
|
|
3273
|
+
R
|
|
3011
3274
|
));
|
|
3012
|
-
}, []), /* @__PURE__ */ s(
|
|
3013
|
-
|
|
3275
|
+
}, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3276
|
+
l,
|
|
3014
3277
|
{
|
|
3015
3278
|
ref: t,
|
|
3016
|
-
onClick: (
|
|
3017
|
-
"builder-content-id": (
|
|
3279
|
+
onClick: (f) => I(f),
|
|
3280
|
+
"builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
|
|
3018
3281
|
"builder-model": e.model,
|
|
3019
|
-
...
|
|
3020
|
-
hidden: !0,
|
|
3021
|
-
"aria-hidden": !0
|
|
3022
|
-
},
|
|
3282
|
+
...o(),
|
|
3023
3283
|
...e.contentWrapperProps,
|
|
3024
|
-
className:
|
|
3284
|
+
className: An(
|
|
3285
|
+
((A = e.content) == null ? void 0 : A.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
|
|
3286
|
+
),
|
|
3025
3287
|
children: e.children
|
|
3026
3288
|
}
|
|
3027
3289
|
) : null });
|
|
3028
3290
|
}
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3032
|
-
let o = "";
|
|
3033
|
-
if (i && t && n && (o += `
|
|
3034
|
-
@font-face {
|
|
3035
|
-
font-family: "${t}";
|
|
3036
|
-
src: local("${n}"), url('${i}') format('woff2');
|
|
3037
|
-
font-display: fallback;
|
|
3038
|
-
font-weight: 400;
|
|
3039
|
-
}
|
|
3040
|
-
`.trim()), e.files)
|
|
3041
|
-
for (const l in e.files) {
|
|
3042
|
-
if (!(String(Number(l)) === l))
|
|
3043
|
-
continue;
|
|
3044
|
-
const c = e.files[l];
|
|
3045
|
-
c && c !== i && (o += `
|
|
3046
|
-
@font-face {
|
|
3047
|
-
font-family: "${t}";
|
|
3048
|
-
src: url('${c}') format('woff2');
|
|
3049
|
-
font-display: fallback;
|
|
3050
|
-
font-weight: ${l};
|
|
3051
|
-
}
|
|
3052
|
-
`.trim());
|
|
3053
|
-
}
|
|
3054
|
-
return o;
|
|
3055
|
-
}, Cn = ({
|
|
3056
|
-
customFonts: e
|
|
3057
|
-
}) => {
|
|
3058
|
-
var t;
|
|
3059
|
-
return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3060
|
-
}, wn = ({
|
|
3061
|
-
cssCode: e,
|
|
3062
|
-
contentId: t
|
|
3063
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
|
|
3064
|
-
.builder-button {
|
|
3065
|
-
all: unset;
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3069
|
-
margin: 0;
|
|
3070
|
-
}
|
|
3071
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3072
|
-
color: inherit;
|
|
3073
|
-
line-height: inherit;
|
|
3074
|
-
letter-spacing: inherit;
|
|
3075
|
-
font-weight: inherit;
|
|
3076
|
-
font-size: inherit;
|
|
3077
|
-
text-align: inherit;
|
|
3078
|
-
font-family: inherit;
|
|
3079
|
-
}
|
|
3080
|
-
`, Tn = (e) => e ? "" : In;
|
|
3081
|
-
function En(e) {
|
|
3082
|
-
const [t, n] = I(
|
|
3291
|
+
function Fn(e) {
|
|
3292
|
+
const [t, n] = C(
|
|
3083
3293
|
() => `
|
|
3084
|
-
${
|
|
3294
|
+
${Bn({
|
|
3085
3295
|
cssCode: e.cssCode,
|
|
3086
3296
|
contentId: e.contentId
|
|
3087
3297
|
})}
|
|
3088
|
-
${
|
|
3298
|
+
${Vn({
|
|
3089
3299
|
customFonts: e.customFonts
|
|
3090
3300
|
})}
|
|
3091
|
-
${
|
|
3301
|
+
${Wn(e.isNestedRender)}
|
|
3092
3302
|
`.trim()
|
|
3093
3303
|
);
|
|
3094
|
-
return /* @__PURE__ */ s(
|
|
3304
|
+
return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
|
|
3095
3305
|
}
|
|
3096
|
-
const
|
|
3306
|
+
const Ln = ({
|
|
3097
3307
|
content: e,
|
|
3098
3308
|
data: t,
|
|
3099
3309
|
locale: n
|
|
3100
3310
|
}) => {
|
|
3101
|
-
var r, a
|
|
3102
|
-
const i = {}, o = ((
|
|
3103
|
-
return (
|
|
3104
|
-
|
|
3311
|
+
var l, r, a;
|
|
3312
|
+
const i = {}, o = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
3313
|
+
return (a = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || a.forEach((c) => {
|
|
3314
|
+
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
3105
3315
|
}), {
|
|
3106
3316
|
...i,
|
|
3107
3317
|
...o,
|
|
@@ -3110,7 +3320,7 @@ const Rn = ({
|
|
|
3110
3320
|
locale: n
|
|
3111
3321
|
} : {}
|
|
3112
3322
|
};
|
|
3113
|
-
},
|
|
3323
|
+
}, Dn = ({
|
|
3114
3324
|
content: e,
|
|
3115
3325
|
data: t
|
|
3116
3326
|
}) => e ? {
|
|
@@ -3121,46 +3331,46 @@ const Rn = ({
|
|
|
3121
3331
|
},
|
|
3122
3332
|
meta: e == null ? void 0 : e.meta
|
|
3123
3333
|
} : void 0;
|
|
3124
|
-
function
|
|
3125
|
-
var
|
|
3126
|
-
const [t, n] =
|
|
3334
|
+
function ve(e) {
|
|
3335
|
+
var c, d, m, u, g, p, S;
|
|
3336
|
+
const [t, n] = C(
|
|
3127
3337
|
() => {
|
|
3128
|
-
var
|
|
3129
|
-
return
|
|
3338
|
+
var I, E;
|
|
3339
|
+
return wn({
|
|
3130
3340
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3131
|
-
variationId: (
|
|
3341
|
+
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3132
3342
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3133
|
-
contentId: (
|
|
3343
|
+
contentId: (E = e.content) == null ? void 0 : E.id
|
|
3134
3344
|
});
|
|
3135
3345
|
}
|
|
3136
3346
|
);
|
|
3137
|
-
function i(
|
|
3138
|
-
|
|
3139
|
-
...
|
|
3140
|
-
rootState:
|
|
3347
|
+
function i(I) {
|
|
3348
|
+
a((E) => ({
|
|
3349
|
+
...E,
|
|
3350
|
+
rootState: I
|
|
3141
3351
|
}));
|
|
3142
3352
|
}
|
|
3143
|
-
const [o,
|
|
3353
|
+
const [o, l] = C(
|
|
3144
3354
|
() => [
|
|
3145
|
-
...
|
|
3355
|
+
...ye(),
|
|
3146
3356
|
...e.customComponents || []
|
|
3147
3357
|
].reduce(
|
|
3148
|
-
(
|
|
3149
|
-
...
|
|
3150
|
-
[
|
|
3151
|
-
component:
|
|
3152
|
-
...
|
|
3358
|
+
(I, { component: E, ...R }) => ({
|
|
3359
|
+
...I,
|
|
3360
|
+
[R.name]: {
|
|
3361
|
+
component: E,
|
|
3362
|
+
...fe(R)
|
|
3153
3363
|
}
|
|
3154
3364
|
}),
|
|
3155
3365
|
{}
|
|
3156
3366
|
)
|
|
3157
|
-
), [
|
|
3158
|
-
content:
|
|
3367
|
+
), [r, a] = C(() => ({
|
|
3368
|
+
content: Dn({
|
|
3159
3369
|
content: e.content,
|
|
3160
3370
|
data: e.data
|
|
3161
3371
|
}),
|
|
3162
3372
|
localState: void 0,
|
|
3163
|
-
rootState:
|
|
3373
|
+
rootState: Ln({
|
|
3164
3374
|
content: e.content,
|
|
3165
3375
|
data: e.data,
|
|
3166
3376
|
locale: e.locale
|
|
@@ -3170,12 +3380,12 @@ function pe(e) {
|
|
|
3170
3380
|
apiKey: e.apiKey,
|
|
3171
3381
|
apiVersion: e.apiVersion,
|
|
3172
3382
|
componentInfos: [
|
|
3173
|
-
...
|
|
3383
|
+
...ye(),
|
|
3174
3384
|
...e.customComponents || []
|
|
3175
3385
|
].reduce(
|
|
3176
|
-
(
|
|
3177
|
-
...
|
|
3178
|
-
[
|
|
3386
|
+
(I, { component: E, ...R }) => ({
|
|
3387
|
+
...I,
|
|
3388
|
+
[R.name]: fe(R)
|
|
3179
3389
|
}),
|
|
3180
3390
|
{}
|
|
3181
3391
|
),
|
|
@@ -3184,13 +3394,13 @@ function pe(e) {
|
|
|
3184
3394
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3185
3395
|
}));
|
|
3186
3396
|
return /* @__PURE__ */ s(
|
|
3187
|
-
|
|
3397
|
+
Ie.Provider,
|
|
3188
3398
|
{
|
|
3189
3399
|
value: {
|
|
3190
3400
|
registeredComponents: o
|
|
3191
3401
|
},
|
|
3192
|
-
children: /* @__PURE__ */
|
|
3193
|
-
|
|
3402
|
+
children: /* @__PURE__ */ V(
|
|
3403
|
+
$n,
|
|
3194
3404
|
{
|
|
3195
3405
|
content: e.content,
|
|
3196
3406
|
data: e.data,
|
|
@@ -3201,34 +3411,34 @@ function pe(e) {
|
|
|
3201
3411
|
locale: e.locale,
|
|
3202
3412
|
enrich: e.enrich,
|
|
3203
3413
|
showContent: e.showContent,
|
|
3204
|
-
builderContextSignal:
|
|
3414
|
+
builderContextSignal: r,
|
|
3205
3415
|
contentWrapper: e.contentWrapper,
|
|
3206
3416
|
contentWrapperProps: e.contentWrapperProps,
|
|
3207
3417
|
linkComponent: e.linkComponent,
|
|
3208
3418
|
trustedHosts: e.trustedHosts,
|
|
3209
|
-
setBuilderContextSignal:
|
|
3419
|
+
setBuilderContextSignal: a,
|
|
3210
3420
|
children: [
|
|
3211
3421
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3212
|
-
|
|
3422
|
+
re,
|
|
3213
3423
|
{
|
|
3214
3424
|
id: "builderio-variant-visibility",
|
|
3215
3425
|
scriptStr: t
|
|
3216
3426
|
}
|
|
3217
3427
|
) : null,
|
|
3218
3428
|
/* @__PURE__ */ s(
|
|
3219
|
-
|
|
3429
|
+
Fn,
|
|
3220
3430
|
{
|
|
3221
3431
|
isNestedRender: e.isNestedRender,
|
|
3222
|
-
contentId: (
|
|
3223
|
-
cssCode: (m = (
|
|
3224
|
-
customFonts: (g = (
|
|
3432
|
+
contentId: (c = r.content) == null ? void 0 : c.id,
|
|
3433
|
+
cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
3434
|
+
customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
|
|
3225
3435
|
}
|
|
3226
3436
|
),
|
|
3227
3437
|
/* @__PURE__ */ s(
|
|
3228
3438
|
j,
|
|
3229
3439
|
{
|
|
3230
|
-
blocks: (
|
|
3231
|
-
context:
|
|
3440
|
+
blocks: (S = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : S.blocks,
|
|
3441
|
+
context: r,
|
|
3232
3442
|
registeredComponents: o,
|
|
3233
3443
|
linkComponent: e.linkComponent
|
|
3234
3444
|
}
|
|
@@ -3239,66 +3449,66 @@ function pe(e) {
|
|
|
3239
3449
|
}
|
|
3240
3450
|
);
|
|
3241
3451
|
}
|
|
3242
|
-
function
|
|
3243
|
-
var
|
|
3244
|
-
const [t, n] =
|
|
3245
|
-
() =>
|
|
3246
|
-
canTrack:
|
|
3452
|
+
function jn(e) {
|
|
3453
|
+
var r;
|
|
3454
|
+
const [t, n] = C(
|
|
3455
|
+
() => vn({
|
|
3456
|
+
canTrack: Q(e.canTrack),
|
|
3247
3457
|
content: e.content
|
|
3248
3458
|
})
|
|
3249
3459
|
);
|
|
3250
3460
|
function i() {
|
|
3251
|
-
var
|
|
3252
|
-
return
|
|
3253
|
-
|
|
3254
|
-
id:
|
|
3255
|
-
testRatio:
|
|
3461
|
+
var a;
|
|
3462
|
+
return Tn(
|
|
3463
|
+
J(e.content).map((c) => ({
|
|
3464
|
+
id: c.testVariationId,
|
|
3465
|
+
testRatio: c.testRatio
|
|
3256
3466
|
})),
|
|
3257
|
-
((
|
|
3467
|
+
((a = e.content) == null ? void 0 : a.id) || ""
|
|
3258
3468
|
);
|
|
3259
3469
|
}
|
|
3260
3470
|
function o() {
|
|
3261
|
-
return
|
|
3471
|
+
return J(e.content).map((a) => `.variant-${a.testVariationId} { display: none; } `).join("");
|
|
3262
3472
|
}
|
|
3263
|
-
function
|
|
3264
|
-
var
|
|
3473
|
+
function l() {
|
|
3474
|
+
var a;
|
|
3265
3475
|
return t ? {
|
|
3266
3476
|
...e.content,
|
|
3267
|
-
testVariationId: (
|
|
3268
|
-
} :
|
|
3477
|
+
testVariationId: (a = e.content) == null ? void 0 : a.id
|
|
3478
|
+
} : Je({
|
|
3269
3479
|
item: e.content,
|
|
3270
|
-
canTrack:
|
|
3480
|
+
canTrack: Q(e.canTrack)
|
|
3271
3481
|
});
|
|
3272
3482
|
}
|
|
3273
|
-
return
|
|
3274
|
-
}, []), /* @__PURE__ */
|
|
3275
|
-
!e.isNestedRender &&
|
|
3276
|
-
|
|
3483
|
+
return P(() => {
|
|
3484
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3485
|
+
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3486
|
+
re,
|
|
3277
3487
|
{
|
|
3278
3488
|
id: "builderio-init-variants-fns",
|
|
3279
|
-
scriptStr:
|
|
3489
|
+
scriptStr: Cn()
|
|
3280
3490
|
}
|
|
3281
3491
|
) : null,
|
|
3282
|
-
t ? /* @__PURE__ */
|
|
3492
|
+
t ? /* @__PURE__ */ V(w, { children: [
|
|
3283
3493
|
/* @__PURE__ */ s(
|
|
3284
|
-
|
|
3494
|
+
te,
|
|
3285
3495
|
{
|
|
3286
3496
|
id: "builderio-variants",
|
|
3287
3497
|
styles: o()
|
|
3288
3498
|
}
|
|
3289
3499
|
),
|
|
3290
3500
|
/* @__PURE__ */ s(
|
|
3291
|
-
|
|
3501
|
+
re,
|
|
3292
3502
|
{
|
|
3293
3503
|
id: "builderio-variants-visibility",
|
|
3294
3504
|
scriptStr: i()
|
|
3295
3505
|
}
|
|
3296
3506
|
),
|
|
3297
|
-
(
|
|
3298
|
-
|
|
3507
|
+
(r = J(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
3508
|
+
ve,
|
|
3299
3509
|
{
|
|
3300
3510
|
isNestedRender: e.isNestedRender,
|
|
3301
|
-
content:
|
|
3511
|
+
content: a,
|
|
3302
3512
|
showContent: !1,
|
|
3303
3513
|
model: e.model,
|
|
3304
3514
|
data: e.data,
|
|
@@ -3317,14 +3527,14 @@ function Vn(e) {
|
|
|
3317
3527
|
contentWrapperProps: e.contentWrapperProps,
|
|
3318
3528
|
trustedHosts: e.trustedHosts
|
|
3319
3529
|
},
|
|
3320
|
-
|
|
3530
|
+
a.testVariationId
|
|
3321
3531
|
))
|
|
3322
3532
|
] }) : null,
|
|
3323
3533
|
/* @__PURE__ */ s(
|
|
3324
|
-
|
|
3534
|
+
ve,
|
|
3325
3535
|
{
|
|
3326
3536
|
isNestedRender: e.isNestedRender,
|
|
3327
|
-
content:
|
|
3537
|
+
content: l(),
|
|
3328
3538
|
showContent: !0,
|
|
3329
3539
|
model: e.model,
|
|
3330
3540
|
data: e.data,
|
|
@@ -3346,13 +3556,13 @@ function Vn(e) {
|
|
|
3346
3556
|
)
|
|
3347
3557
|
] });
|
|
3348
3558
|
}
|
|
3349
|
-
const
|
|
3559
|
+
const Mn = async ({
|
|
3350
3560
|
builderContextValue: e,
|
|
3351
3561
|
symbol: t
|
|
3352
3562
|
}) => {
|
|
3353
3563
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3354
3564
|
(e != null && e.apiKey))
|
|
3355
|
-
return
|
|
3565
|
+
return ke({
|
|
3356
3566
|
model: t.model,
|
|
3357
3567
|
apiKey: e.apiKey,
|
|
3358
3568
|
apiVersion: e.apiVersion,
|
|
@@ -3362,69 +3572,75 @@ const Bn = async ({
|
|
|
3362
3572
|
}
|
|
3363
3573
|
}
|
|
3364
3574
|
}).catch((n) => {
|
|
3365
|
-
|
|
3575
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
3366
3576
|
});
|
|
3367
3577
|
};
|
|
3368
|
-
function
|
|
3369
|
-
var
|
|
3578
|
+
function Un(e) {
|
|
3579
|
+
var a, c, d, m;
|
|
3370
3580
|
function t() {
|
|
3371
|
-
|
|
3581
|
+
return "div";
|
|
3582
|
+
}
|
|
3583
|
+
function n() {
|
|
3584
|
+
return "div";
|
|
3585
|
+
}
|
|
3586
|
+
function i() {
|
|
3587
|
+
var u, g;
|
|
3372
3588
|
return [
|
|
3373
|
-
e.attributes[
|
|
3589
|
+
e.attributes[H()],
|
|
3374
3590
|
"builder-symbol",
|
|
3375
|
-
(
|
|
3376
|
-
(
|
|
3591
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
3592
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3377
3593
|
].filter(Boolean).join(" ");
|
|
3378
3594
|
}
|
|
3379
|
-
const [
|
|
3380
|
-
var
|
|
3381
|
-
return (
|
|
3595
|
+
const [o, l] = C(() => {
|
|
3596
|
+
var u;
|
|
3597
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
3382
3598
|
});
|
|
3383
|
-
function
|
|
3384
|
-
|
|
3599
|
+
function r() {
|
|
3600
|
+
o || Mn({
|
|
3385
3601
|
symbol: e.symbol,
|
|
3386
3602
|
builderContextValue: e.builderContext
|
|
3387
|
-
}).then((
|
|
3388
|
-
|
|
3603
|
+
}).then((u) => {
|
|
3604
|
+
u && l(u);
|
|
3389
3605
|
});
|
|
3390
3606
|
}
|
|
3391
|
-
return
|
|
3392
|
-
}, []),
|
|
3393
|
-
|
|
3394
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
3395
|
-
|
|
3607
|
+
return P(() => {
|
|
3608
|
+
}, []), P(() => {
|
|
3609
|
+
r();
|
|
3610
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3611
|
+
jn,
|
|
3396
3612
|
{
|
|
3397
3613
|
isNestedRender: !0,
|
|
3398
3614
|
apiVersion: e.builderContext.apiVersion,
|
|
3399
3615
|
apiKey: e.builderContext.apiKey,
|
|
3400
3616
|
context: {
|
|
3401
3617
|
...e.builderContext.context,
|
|
3402
|
-
symbolId: (
|
|
3618
|
+
symbolId: (a = e.builderBlock) == null ? void 0 : a.id
|
|
3403
3619
|
},
|
|
3404
3620
|
customComponents: Object.values(e.builderComponents),
|
|
3405
3621
|
data: {
|
|
3406
|
-
...(
|
|
3622
|
+
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3407
3623
|
...e.builderContext.localState,
|
|
3408
|
-
...(
|
|
3624
|
+
...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
|
|
3409
3625
|
},
|
|
3410
|
-
model: (
|
|
3411
|
-
content:
|
|
3626
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
3627
|
+
content: o,
|
|
3412
3628
|
linkComponent: e.builderLinkComponent,
|
|
3413
|
-
blocksWrapper:
|
|
3414
|
-
contentWrapper:
|
|
3629
|
+
blocksWrapper: t(),
|
|
3630
|
+
contentWrapper: n()
|
|
3415
3631
|
}
|
|
3416
3632
|
) });
|
|
3417
3633
|
}
|
|
3418
3634
|
export {
|
|
3419
3635
|
j as Blocks,
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3636
|
+
ce as BuilderContext,
|
|
3637
|
+
tt as Button,
|
|
3638
|
+
Nt as Columns,
|
|
3639
|
+
jn as Content,
|
|
3640
|
+
Wt as Fragment,
|
|
3641
|
+
Ft as Image,
|
|
3642
|
+
Lt as Section,
|
|
3643
|
+
Un as Symbol,
|
|
3644
|
+
Yt as Text,
|
|
3645
|
+
pn as Video
|
|
3430
3646
|
};
|