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