@builder.io/sdk-react 4.2.2 → 4.2.3
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 +30 -30
- package/lib/browser/blocks-exports.mjs +676 -623
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-0817de95.cjs +2 -0
- package/lib/browser/{server-entry-074665de.js → server-entry-331e2fd4.js} +248 -246
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-0768e15a.cjs → accordion-1559ca68.cjs} +1 -1
- package/lib/edge/{accordion-d3831f48.js → accordion-3e9ee224.js} +1 -1
- package/lib/edge/{blocks-2af1d7c9.cjs → blocks-4f20c19a.cjs} +14 -14
- package/lib/edge/{blocks-0269007e.js → blocks-b9be7dc1.js} +735 -721
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-050f4fef.cjs → button-0a632d4f.cjs} +1 -1
- package/lib/edge/{button-a478ff1a.js → button-ba852235.js} +2 -2
- package/lib/edge/{columns-25375990.cjs → columns-66170ac9.cjs} +1 -1
- package/lib/edge/{columns-0b3181f1.js → columns-ee2fba7b.js} +3 -3
- package/lib/edge/{content-variants-4cab7215.cjs → content-variants-4f54d98a.cjs} +3 -3
- package/lib/edge/{content-variants-0dd65b50.js → content-variants-c013569a.js} +142 -108
- package/lib/edge/{custom-code-f7a0f1c1.js → custom-code-38e2c9d5.js} +1 -1
- package/lib/edge/{custom-code-eb5aedd2.cjs → custom-code-48579935.cjs} +1 -1
- package/lib/edge/{embed-e4979560.js → embed-1ce0435c.js} +1 -1
- package/lib/edge/{embed-69114c35.cjs → embed-9a7f29ff.cjs} +1 -1
- package/lib/edge/{form-7b4bd399.cjs → form-d9b6dea6.cjs} +1 -1
- package/lib/edge/{form-30fba682.js → form-f558f5d4.js} +3 -3
- package/lib/edge/{get-class-prop-name-770bdff2.js → get-class-prop-name-35ccd32a.js} +1 -1
- package/lib/edge/{get-class-prop-name-f470d5ce.cjs → get-class-prop-name-d2be9a48.cjs} +1 -1
- package/lib/edge/image-cce92f6c.cjs +17 -0
- package/lib/edge/image-d87761af.js +123 -0
- package/lib/edge/img-a1e0f10e.js +33 -0
- package/lib/edge/img-b21eb075.cjs +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-e4a9fe0b.js → input-5c0d3350.js} +1 -1
- package/lib/edge/{input-a6caf021.cjs → input-6854bc85.cjs} +1 -1
- package/lib/edge/{personalization-container-64f3cd71.js → personalization-container-adf9e0bd.js} +4 -4
- package/lib/edge/{personalization-container-f7030f08.cjs → personalization-container-f7fdc090.cjs} +1 -1
- package/lib/edge/{select-c217566c.cjs → select-6c4637ae.cjs} +1 -1
- package/lib/edge/{select-c59c9ac6.js → select-713e73f6.js} +1 -1
- package/lib/edge/server-entry-0bef3cb1.cjs +2 -0
- package/lib/{node/server-entry-83d3751d.js → edge/server-entry-71badd34.js} +307 -307
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-ccd946e2.cjs → slot-59a86f46.cjs} +1 -1
- package/lib/edge/{slot-26ec2911.js → slot-a3c27352.js} +3 -3
- package/lib/edge/{symbol-4548e942.cjs → symbol-3d81a9de.cjs} +1 -1
- package/lib/edge/{symbol-10cb2f77.js → symbol-86e5a3f0.js} +2 -2
- package/lib/edge/{tabs-82a9170c.cjs → tabs-0d914e5c.cjs} +1 -1
- package/lib/edge/{tabs-f9110171.js → tabs-60f8bb61.js} +3 -3
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +821 -768
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-05b0f263.cjs +2 -0
- package/lib/{edge/server-entry-fb5f2b80.js → node/server-entry-68823bb0.js} +346 -342
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-596668c3.js → setIvm-bb3d0e32.js} +1 -1
- package/lib/node/{setIvm-0a5b2ba2.cjs → setIvm-bec8f1ed.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-180c3315.js → should-force-browser-runtime-in-node-a4c71d14.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-5b9e373d.cjs → should-force-browser-runtime-in-node-bbbdf124.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/img/img.d.ts +2 -0
- package/types/components/block/components/live-edit-block-styles.d.ts +8 -0
- package/types/components/block/components/style-wrapper.d.ts +9 -0
- package/types/components/live-edit.d.ts +9 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/find-block.d.ts +18 -0
- package/types/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/server-entry-06504dba.cjs +0 -2
- package/lib/edge/image-209835f4.js +0 -94
- package/lib/edge/image-87a4e006.cjs +0 -17
- package/lib/edge/image.helpers-3e926d47.js +0 -33
- package/lib/edge/image.helpers-dba8a869.cjs +0 -1
- package/lib/edge/img-3bb375bf.js +0 -28
- package/lib/edge/img-ddf74e12.cjs +0 -1
- package/lib/edge/server-entry-67200cf1.cjs +0 -2
- package/lib/node/server-entry-d40e4b66.cjs +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as ge, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Ie, fetchOneEntry as Oe, createEditorListener as dt, serializeIncludingFunctions as we, handleABTestingSync as mt } from "./server-entry-68823bb0.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-68823bb0.js";
|
|
4
|
+
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
|
+
import * as ft from "react";
|
|
6
|
+
import { createContext as _e, useEffect as N, useState as k, useContext as ye, useRef as z, createElement as Ue } from "react";
|
|
7
|
+
import { getFunctionArguments as ht, flattenState as bt, runInNode as gt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-bb3d0e32.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-a4c71d14.js";
|
|
9
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
10
|
+
function xe(e) {
|
|
11
|
+
return /* @__PURE__ */ s(w, { children: St(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const K = () => {
|
|
14
14
|
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
@@ -24,11 +24,11 @@ const J = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function kt(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function St(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
xe,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function St(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const le = _e({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,65 +63,65 @@ const ve = Oe({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}),
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
66
|
+
}), Me = _e({ registeredComponents: {} }), qe = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
|
-
},
|
|
69
|
+
}, Ct = ({
|
|
70
70
|
code: e,
|
|
71
71
|
builder: t,
|
|
72
72
|
context: n,
|
|
73
73
|
event: i,
|
|
74
|
-
localState:
|
|
75
|
-
rootSetState:
|
|
74
|
+
localState: a,
|
|
75
|
+
rootSetState: r,
|
|
76
76
|
rootState: o
|
|
77
77
|
}) => {
|
|
78
|
-
const l =
|
|
78
|
+
const l = ht({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
|
-
state:
|
|
82
|
+
state: bt({
|
|
83
83
|
rootState: o,
|
|
84
|
-
localState:
|
|
85
|
-
rootSetState:
|
|
84
|
+
localState: a,
|
|
85
|
+
rootSetState: r
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
89
|
-
},
|
|
89
|
+
}, Tt = (e) => G() || vt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ?
|
|
92
|
-
var t, n, i,
|
|
93
|
-
return ((i = (n = (t =
|
|
91
|
+
}) ? Ct(e) : gt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
|
|
92
|
+
var t, n, i, a, r, o;
|
|
93
|
+
return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
95
|
function Q({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
|
-
rootSetState:
|
|
101
|
-
event:
|
|
100
|
+
rootSetState: a,
|
|
101
|
+
event: r,
|
|
102
102
|
isExpression: o = !0
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
106
|
-
const l =
|
|
106
|
+
const l = Et(e.trim());
|
|
107
107
|
if (l)
|
|
108
|
-
return
|
|
108
|
+
return qe({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
112
|
const c = {
|
|
113
|
-
code:
|
|
113
|
+
code: yt(e, {
|
|
114
114
|
isExpression: o
|
|
115
115
|
}),
|
|
116
|
-
builder:
|
|
116
|
+
builder: pt(),
|
|
117
117
|
context: t,
|
|
118
|
-
event:
|
|
119
|
-
rootSetState:
|
|
118
|
+
event: r,
|
|
119
|
+
rootSetState: a,
|
|
120
120
|
rootState: i,
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return Tt(c);
|
|
125
125
|
} catch (d) {
|
|
126
126
|
ee.error("Failed code evaluation: " + d.message, {
|
|
127
127
|
code: e
|
|
@@ -129,21 +129,21 @@ function Q({
|
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Rt(e, t) {
|
|
133
133
|
var n;
|
|
134
134
|
return {
|
|
135
135
|
...(n = e.component) == null ? void 0 : n.options,
|
|
136
136
|
...e.options,
|
|
137
|
-
...
|
|
137
|
+
...Pt(e, t)
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const Pt = (e, t) => {
|
|
141
141
|
var n, i;
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (
|
|
146
|
-
code:
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => Q({
|
|
146
|
+
code: r,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
149
149
|
rootState: t.rootState,
|
|
@@ -151,68 +151,68 @@ const Rt = (e, t) => {
|
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function Vt(e, ...t) {
|
|
155
155
|
const n = Object.assign({}, e);
|
|
156
156
|
for (const i of t)
|
|
157
157
|
delete n[i];
|
|
158
158
|
return n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
|
-
t(e, (
|
|
163
|
-
n !== null && i !== null && (n[i] =
|
|
162
|
+
t(e, (r) => {
|
|
163
|
+
n !== null && i !== null && (n[i] = r);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
t(
|
|
167
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
|
+
t(r, (c) => {
|
|
169
169
|
e[o] = c;
|
|
170
|
-
}),
|
|
171
|
-
}) : Object.entries(e).forEach(([
|
|
170
|
+
}), re(r, t, e, o, a);
|
|
171
|
+
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
172
|
t(o, (c) => {
|
|
173
|
-
e[
|
|
174
|
-
}),
|
|
173
|
+
e[r] = c;
|
|
174
|
+
}), re(o, t, e, r, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function je(e) {
|
|
178
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function At(e) {
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
|
-
return
|
|
185
|
-
if (
|
|
184
|
+
return re(e, (n) => {
|
|
185
|
+
if (je(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
193
|
-
var
|
|
194
|
-
|
|
191
|
+
function Bt(e, t) {
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
|
|
193
|
+
var a;
|
|
194
|
+
je(n) && i((a = n[t]) != null ? a : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Nt(e, t) {
|
|
198
198
|
var n, i;
|
|
199
|
-
return (n = e.component) != null && n.options &&
|
|
199
|
+
return (n = e.component) != null && n.options && At((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bt(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function pe(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => pe(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = pe(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const t =
|
|
213
|
+
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
|
|
214
|
+
if ($t) {
|
|
215
|
+
const t = ve(e);
|
|
216
216
|
return {
|
|
217
217
|
...t,
|
|
218
218
|
properties: {
|
|
@@ -223,7 +223,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = pe(Vt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -236,125 +236,125 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
236
236
|
meta: e.meta
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, Dt = ({
|
|
240
240
|
block: e,
|
|
241
241
|
context: t,
|
|
242
242
|
localState: n,
|
|
243
243
|
rootState: i,
|
|
244
|
-
rootSetState:
|
|
244
|
+
rootSetState: a
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const
|
|
248
|
+
const r = Wt(e);
|
|
249
249
|
for (const o in e.bindings) {
|
|
250
250
|
const l = e.bindings[o], c = Q({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
|
-
rootSetState:
|
|
254
|
+
rootSetState: a,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
He(r, o, c);
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return r;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function Ft({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
|
-
rootSetState:
|
|
266
|
+
rootSetState: a
|
|
267
267
|
}) {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
block:
|
|
268
|
+
let r = e;
|
|
269
|
+
return r = Dt({
|
|
270
|
+
block: r,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
|
-
rootSetState:
|
|
273
|
+
rootSetState: a,
|
|
274
274
|
context: t
|
|
275
|
-
}),
|
|
275
|
+
}), r = Nt(r, i.locale), r;
|
|
276
276
|
}
|
|
277
277
|
const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
-
function
|
|
279
|
-
let i,
|
|
278
|
+
function Lt(e, t, n = {}) {
|
|
279
|
+
let i, a, r, o = null, l = 0;
|
|
280
280
|
const c = function() {
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(), o = null,
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
284
|
const d = Date.now();
|
|
285
285
|
!l && n.leading === !1 && (l = d);
|
|
286
286
|
const h = t - (d - l);
|
|
287
|
-
return i = this,
|
|
287
|
+
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), r;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function X(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
|
-
const
|
|
294
|
-
if (
|
|
295
|
-
for (const
|
|
296
|
-
Object.prototype.hasOwnProperty.call(
|
|
293
|
+
const a = arguments[i];
|
|
294
|
+
if (a != null)
|
|
295
|
+
for (const r in a)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ot(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
304
|
-
|
|
304
|
+
Je(t);
|
|
305
305
|
break;
|
|
306
306
|
case "scrollInView":
|
|
307
|
-
|
|
307
|
+
Ut(t);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function ze(e) {
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
const n =
|
|
314
|
+
function Ke(e, t) {
|
|
315
|
+
const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
|
|
316
316
|
for (const l of o)
|
|
317
317
|
for (const c of n)
|
|
318
318
|
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function _t(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
324
324
|
t.indexOf(i) === -1 && t.push(i);
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Je(e) {
|
|
328
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
329
|
if (!t.length) {
|
|
330
|
-
|
|
330
|
+
ze(e.elementId || e.id || "");
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
334
|
+
Ke(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
335
|
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Ut(e) {
|
|
342
342
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
343
343
|
if (!t.length) {
|
|
344
|
-
|
|
344
|
+
ze(e.elementId || e.id || "");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
|
-
|
|
349
|
-
let i = !1,
|
|
350
|
-
function
|
|
351
|
-
!i && l(n) ? (i = !0,
|
|
348
|
+
Ke(e, n);
|
|
349
|
+
let i = !1, a = !1;
|
|
350
|
+
function r() {
|
|
351
|
+
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
352
|
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
|
-
|
|
353
|
+
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const o =
|
|
357
|
+
const o = Lt(r, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(h) {
|
|
@@ -370,45 +370,45 @@ function _t(e) {
|
|
|
370
370
|
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
|
-
}),
|
|
373
|
+
}), r();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Ge = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
378
|
return `${se(n)}: ${i};`;
|
|
379
|
-
}).filter(
|
|
379
|
+
}).filter(ge), Ht = (e) => Ge(e).join(`
|
|
380
380
|
`), Y = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
384
384
|
}) => {
|
|
385
385
|
const i = `.${t} {
|
|
386
|
-
${
|
|
386
|
+
${Ht(n)}
|
|
387
387
|
}`;
|
|
388
388
|
return e ? `${e} {
|
|
389
389
|
${i}
|
|
390
390
|
}` : i;
|
|
391
391
|
};
|
|
392
|
-
function
|
|
392
|
+
function Mt({
|
|
393
393
|
style: e
|
|
394
394
|
}) {
|
|
395
395
|
return e;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const qt = ({
|
|
398
398
|
block: e,
|
|
399
399
|
context: t
|
|
400
|
-
}) =>
|
|
400
|
+
}) => Qe(Mt({
|
|
401
401
|
style: e.style || {},
|
|
402
402
|
context: t,
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
|
-
function
|
|
405
|
+
function Qe(e) {
|
|
406
406
|
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
410
410
|
case "angular":
|
|
411
|
-
return
|
|
411
|
+
return Ge(e).join(" ");
|
|
412
412
|
case "qwik":
|
|
413
413
|
case "reactNative":
|
|
414
414
|
case "react":
|
|
@@ -416,24 +416,24 @@ function Ge(e) {
|
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const Ye = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
|
|
420
420
|
block: e,
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
423
423
|
}) => {
|
|
424
|
-
var
|
|
425
|
-
const i = (
|
|
424
|
+
var r;
|
|
425
|
+
const i = (r = e.component) == null ? void 0 : r.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const a = t[i];
|
|
429
|
+
if (!a || Ye(a, n)) {
|
|
430
430
|
console.warn(`
|
|
431
431
|
Could not find a registered component named "${i}".
|
|
432
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
433
433
|
return;
|
|
434
434
|
} else
|
|
435
|
-
return
|
|
436
|
-
},
|
|
435
|
+
return a;
|
|
436
|
+
}, zt = ({
|
|
437
437
|
block: e,
|
|
438
438
|
context: t
|
|
439
439
|
}) => {
|
|
@@ -443,17 +443,17 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const
|
|
446
|
+
const a = Q({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
450
450
|
rootSetState: t.rootSetState,
|
|
451
451
|
context: t.context
|
|
452
452
|
});
|
|
453
|
-
if (!Array.isArray(
|
|
453
|
+
if (!Array.isArray(a))
|
|
454
454
|
return;
|
|
455
|
-
const
|
|
456
|
-
return
|
|
455
|
+
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
456
|
+
return a.map((c, d) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
@@ -466,164 +466,27 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
468
468
|
}));
|
|
469
|
-
},
|
|
469
|
+
}, Kt = (e, t) => {
|
|
470
470
|
var n;
|
|
471
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
472
472
|
builderLinkComponent: t
|
|
473
473
|
} : {};
|
|
474
|
-
},
|
|
474
|
+
}, Jt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Ye(o, n)))
|
|
478
478
|
} : {};
|
|
479
|
-
},
|
|
479
|
+
}, Gt = (e, t) => {
|
|
480
480
|
var n;
|
|
481
481
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
482
482
|
builderBlock: t
|
|
483
483
|
} : {};
|
|
484
|
-
},
|
|
484
|
+
}, Qt = (e, t) => {
|
|
485
485
|
var n;
|
|
486
486
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
487
487
|
builderContext: t
|
|
488
488
|
} : {};
|
|
489
|
-
}, Ee = (e) => e.toString()
|
|
490
|
-
xsmall: {
|
|
491
|
-
min: 0,
|
|
492
|
-
default: 160,
|
|
493
|
-
max: 320
|
|
494
|
-
},
|
|
495
|
-
small: {
|
|
496
|
-
min: 321,
|
|
497
|
-
default: 321,
|
|
498
|
-
max: 640
|
|
499
|
-
},
|
|
500
|
-
medium: {
|
|
501
|
-
min: 641,
|
|
502
|
-
default: 642,
|
|
503
|
-
max: 991
|
|
504
|
-
},
|
|
505
|
-
large: {
|
|
506
|
-
min: 990,
|
|
507
|
-
default: 991,
|
|
508
|
-
max: 1200
|
|
509
|
-
}
|
|
510
|
-
}, ue = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
|
|
511
|
-
const t = ye(Ye);
|
|
512
|
-
if (!e)
|
|
513
|
-
return t;
|
|
514
|
-
const {
|
|
515
|
-
xsmall: n,
|
|
516
|
-
small: i,
|
|
517
|
-
medium: r
|
|
518
|
-
} = e;
|
|
519
|
-
if (n) {
|
|
520
|
-
const c = Math.floor(n / 2);
|
|
521
|
-
t.xsmall = {
|
|
522
|
-
max: n,
|
|
523
|
-
min: c,
|
|
524
|
-
default: c + 1
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
if (!i || !r)
|
|
528
|
-
return t;
|
|
529
|
-
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
|
-
t.small = {
|
|
531
|
-
max: i,
|
|
532
|
-
min: a,
|
|
533
|
-
default: a + 1
|
|
534
|
-
};
|
|
535
|
-
const o = t.small.max + 1;
|
|
536
|
-
t.medium = {
|
|
537
|
-
max: r,
|
|
538
|
-
min: o,
|
|
539
|
-
default: o + 1
|
|
540
|
-
};
|
|
541
|
-
const l = t.medium.max + 1;
|
|
542
|
-
return t.large = {
|
|
543
|
-
max: 2e3,
|
|
544
|
-
// TODO: decide upper limit
|
|
545
|
-
min: l,
|
|
546
|
-
default: l + 1
|
|
547
|
-
}, t;
|
|
548
|
-
};
|
|
549
|
-
function te(e) {
|
|
550
|
-
return /* @__PURE__ */ s(
|
|
551
|
-
"style",
|
|
552
|
-
{
|
|
553
|
-
dangerouslySetInnerHTML: { __html: e.styles },
|
|
554
|
-
"data-id": e.id,
|
|
555
|
-
nonce: e.nonce
|
|
556
|
-
}
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
function Qt(e) {
|
|
560
|
-
function t() {
|
|
561
|
-
const i = e.block;
|
|
562
|
-
return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
|
|
563
|
-
}
|
|
564
|
-
function n() {
|
|
565
|
-
var T, E, _, H, q;
|
|
566
|
-
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = Xe(
|
|
567
|
-
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
568
|
-
), l = !!((_ = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
569
|
-
if (!u)
|
|
570
|
-
return "";
|
|
571
|
-
const x = c ? Y({
|
|
572
|
-
className: u,
|
|
573
|
-
styles: c
|
|
574
|
-
}) : "", f = d ? Y({
|
|
575
|
-
className: u,
|
|
576
|
-
styles: d,
|
|
577
|
-
mediaQuery: ue(
|
|
578
|
-
"medium",
|
|
579
|
-
o
|
|
580
|
-
)
|
|
581
|
-
}) : "", m = h ? Y({
|
|
582
|
-
className: u,
|
|
583
|
-
styles: h,
|
|
584
|
-
mediaQuery: ue(
|
|
585
|
-
"small",
|
|
586
|
-
o
|
|
587
|
-
)
|
|
588
|
-
}) : "", y = g && l ? Y({
|
|
589
|
-
className: u,
|
|
590
|
-
styles: g,
|
|
591
|
-
mediaQuery: ue(
|
|
592
|
-
"xsmall",
|
|
593
|
-
o
|
|
594
|
-
)
|
|
595
|
-
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
596
|
-
let S = "";
|
|
597
|
-
if (b) {
|
|
598
|
-
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
599
|
-
S = Y({
|
|
600
|
-
className: `${u}:hover`,
|
|
601
|
-
styles: {
|
|
602
|
-
...p,
|
|
603
|
-
transition: `all ${b.duration}s ${se(
|
|
604
|
-
b.easing
|
|
605
|
-
)}`,
|
|
606
|
-
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
607
|
-
}
|
|
608
|
-
}) || "";
|
|
609
|
-
}
|
|
610
|
-
return [
|
|
611
|
-
x,
|
|
612
|
-
f,
|
|
613
|
-
m,
|
|
614
|
-
y,
|
|
615
|
-
S
|
|
616
|
-
].join(" ");
|
|
617
|
-
}
|
|
618
|
-
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
619
|
-
te,
|
|
620
|
-
{
|
|
621
|
-
id: "builderio-block",
|
|
622
|
-
styles: n(),
|
|
623
|
-
nonce: e.context.nonce
|
|
624
|
-
}
|
|
625
|
-
) }) : null });
|
|
626
|
-
}
|
|
489
|
+
}, Ee = (e) => e.toString();
|
|
627
490
|
function Yt(e) {
|
|
628
491
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
492
|
}
|
|
@@ -636,14 +499,14 @@ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
|
|
|
636
499
|
event: n,
|
|
637
500
|
isExpression: !1
|
|
638
501
|
});
|
|
639
|
-
function
|
|
502
|
+
function Xe(e) {
|
|
640
503
|
var i;
|
|
641
504
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
|
-
for (const
|
|
643
|
-
if (!n.hasOwnProperty(
|
|
505
|
+
for (const a in n) {
|
|
506
|
+
if (!n.hasOwnProperty(a))
|
|
644
507
|
continue;
|
|
645
|
-
const
|
|
646
|
-
let o = Xt(
|
|
508
|
+
const r = n[a];
|
|
509
|
+
let o = Xt(a);
|
|
647
510
|
if (e.stripPrefix)
|
|
648
511
|
switch (F) {
|
|
649
512
|
case "vue":
|
|
@@ -653,7 +516,7 @@ function Ze(e) {
|
|
|
653
516
|
o = o.replace("on:", "");
|
|
654
517
|
break;
|
|
655
518
|
}
|
|
656
|
-
t[o] = Zt(
|
|
519
|
+
t[o] = Zt(r, e);
|
|
657
520
|
}
|
|
658
521
|
return t;
|
|
659
522
|
}
|
|
@@ -665,7 +528,7 @@ function en({
|
|
|
665
528
|
const tn = (e) => ({
|
|
666
529
|
href: e.href
|
|
667
530
|
});
|
|
668
|
-
function
|
|
531
|
+
function Se({
|
|
669
532
|
block: e,
|
|
670
533
|
context: t
|
|
671
534
|
}) {
|
|
@@ -674,11 +537,11 @@ function xe({
|
|
|
674
537
|
...tn(e),
|
|
675
538
|
...e.properties,
|
|
676
539
|
"builder-id": e.id,
|
|
677
|
-
style:
|
|
540
|
+
style: qt({
|
|
678
541
|
block: e,
|
|
679
542
|
context: t
|
|
680
543
|
}),
|
|
681
|
-
[
|
|
544
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
545
|
};
|
|
683
546
|
return en({
|
|
684
547
|
properties: n,
|
|
@@ -688,14 +551,14 @@ function xe({
|
|
|
688
551
|
}
|
|
689
552
|
function nn(e) {
|
|
690
553
|
return /* @__PURE__ */ s(
|
|
691
|
-
|
|
554
|
+
xe,
|
|
692
555
|
{
|
|
693
556
|
TagName: e.Wrapper,
|
|
694
|
-
attributes:
|
|
557
|
+
attributes: Se({
|
|
695
558
|
block: e.block,
|
|
696
559
|
context: e.context
|
|
697
560
|
}),
|
|
698
|
-
actionAttributes:
|
|
561
|
+
actionAttributes: Xe({
|
|
699
562
|
block: e.block,
|
|
700
563
|
rootState: e.context.rootState,
|
|
701
564
|
rootSetState: e.context.rootSetState,
|
|
@@ -707,20 +570,20 @@ function nn(e) {
|
|
|
707
570
|
}
|
|
708
571
|
);
|
|
709
572
|
}
|
|
710
|
-
function
|
|
573
|
+
function an(e) {
|
|
711
574
|
return N(() => {
|
|
712
|
-
}, []), /* @__PURE__ */ s(
|
|
575
|
+
}, []), /* @__PURE__ */ s(w, { children: e.children });
|
|
713
576
|
}
|
|
714
|
-
function
|
|
715
|
-
var i,
|
|
577
|
+
function rn(e) {
|
|
578
|
+
var i, a;
|
|
716
579
|
k(() => 0);
|
|
717
580
|
function t() {
|
|
718
581
|
return e.includeBlockProps ? {
|
|
719
|
-
...
|
|
582
|
+
...Se({
|
|
720
583
|
block: e.block,
|
|
721
584
|
context: e.context
|
|
722
585
|
}),
|
|
723
|
-
...
|
|
586
|
+
...Xe({
|
|
724
587
|
block: e.block,
|
|
725
588
|
rootState: e.context.rootState,
|
|
726
589
|
rootSetState: e.context.rootSetState,
|
|
@@ -733,8 +596,8 @@ function an(e) {
|
|
|
733
596
|
return e.wrapperProps;
|
|
734
597
|
}
|
|
735
598
|
return N(() => {
|
|
736
|
-
}, [e.wrapperProps, (
|
|
737
|
-
|
|
599
|
+
}, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
600
|
+
an,
|
|
738
601
|
{
|
|
739
602
|
load: e.Wrapper.load,
|
|
740
603
|
fallback: e.Wrapper.fallback,
|
|
@@ -749,8 +612,8 @@ const on = ({
|
|
|
749
612
|
builderBlock: t,
|
|
750
613
|
context: n,
|
|
751
614
|
componentRef: i,
|
|
752
|
-
includeBlockProps:
|
|
753
|
-
isInteractive:
|
|
615
|
+
includeBlockProps: a,
|
|
616
|
+
isInteractive: r,
|
|
754
617
|
contextValue: o
|
|
755
618
|
}) => {
|
|
756
619
|
const l = {
|
|
@@ -759,28 +622,28 @@ const on = ({
|
|
|
759
622
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
760
623
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
761
624
|
*/
|
|
762
|
-
...
|
|
763
|
-
attributes:
|
|
625
|
+
...a ? {
|
|
626
|
+
attributes: Se({
|
|
764
627
|
block: t,
|
|
765
628
|
context: o
|
|
766
629
|
})
|
|
767
630
|
} : {}
|
|
768
631
|
};
|
|
769
|
-
return
|
|
632
|
+
return r ? {
|
|
770
633
|
Wrapper: i,
|
|
771
634
|
block: t,
|
|
772
635
|
context: n,
|
|
773
636
|
wrapperProps: e,
|
|
774
|
-
includeBlockProps:
|
|
637
|
+
includeBlockProps: a
|
|
775
638
|
} : l;
|
|
776
639
|
};
|
|
777
640
|
function Re(e) {
|
|
778
641
|
var i;
|
|
779
642
|
k(() => !1);
|
|
780
643
|
const [t, n] = k(
|
|
781
|
-
() => e.isInteractive ?
|
|
644
|
+
() => e.isInteractive ? rn : e.componentRef
|
|
782
645
|
);
|
|
783
|
-
return /* @__PURE__ */ s(
|
|
646
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
784
647
|
t,
|
|
785
648
|
{
|
|
786
649
|
...on({
|
|
@@ -793,15 +656,15 @@ function Re(e) {
|
|
|
793
656
|
isInteractive: e.isInteractive,
|
|
794
657
|
contextValue: e.context
|
|
795
658
|
}),
|
|
796
|
-
children: e.componentRef ? /* @__PURE__ */ s(
|
|
659
|
+
children: e.componentRef ? /* @__PURE__ */ s(w, { children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
797
660
|
ce,
|
|
798
661
|
{
|
|
799
|
-
block:
|
|
662
|
+
block: a,
|
|
800
663
|
context: e.context,
|
|
801
664
|
registeredComponents: e.registeredComponents,
|
|
802
665
|
linkComponent: e.linkComponent
|
|
803
666
|
},
|
|
804
|
-
|
|
667
|
+
a.id
|
|
805
668
|
)) }) : null
|
|
806
669
|
}
|
|
807
670
|
) }) : null });
|
|
@@ -810,7 +673,7 @@ function Pe(e) {
|
|
|
810
673
|
const [t, n] = k(() => e.repeatContext);
|
|
811
674
|
return N(() => {
|
|
812
675
|
n(e.repeatContext);
|
|
813
|
-
}, [e.repeatContext]), /* @__PURE__ */ s(
|
|
676
|
+
}, [e.repeatContext]), /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
814
677
|
ce,
|
|
815
678
|
{
|
|
816
679
|
block: e.block,
|
|
@@ -820,10 +683,154 @@ function Pe(e) {
|
|
|
820
683
|
}
|
|
821
684
|
) });
|
|
822
685
|
}
|
|
686
|
+
const Ze = {
|
|
687
|
+
xsmall: {
|
|
688
|
+
min: 0,
|
|
689
|
+
default: 160,
|
|
690
|
+
max: 320
|
|
691
|
+
},
|
|
692
|
+
small: {
|
|
693
|
+
min: 321,
|
|
694
|
+
default: 321,
|
|
695
|
+
max: 640
|
|
696
|
+
},
|
|
697
|
+
medium: {
|
|
698
|
+
min: 641,
|
|
699
|
+
default: 642,
|
|
700
|
+
max: 991
|
|
701
|
+
},
|
|
702
|
+
large: {
|
|
703
|
+
min: 990,
|
|
704
|
+
default: 991,
|
|
705
|
+
max: 1200
|
|
706
|
+
}
|
|
707
|
+
}, ue = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, et = (e) => {
|
|
708
|
+
const t = ve(Ze);
|
|
709
|
+
if (!e)
|
|
710
|
+
return t;
|
|
711
|
+
const {
|
|
712
|
+
xsmall: n,
|
|
713
|
+
small: i,
|
|
714
|
+
medium: a
|
|
715
|
+
} = e;
|
|
716
|
+
if (n) {
|
|
717
|
+
const c = Math.floor(n / 2);
|
|
718
|
+
t.xsmall = {
|
|
719
|
+
max: n,
|
|
720
|
+
min: c,
|
|
721
|
+
default: c + 1
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
if (!i || !a)
|
|
725
|
+
return t;
|
|
726
|
+
const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
727
|
+
t.small = {
|
|
728
|
+
max: i,
|
|
729
|
+
min: r,
|
|
730
|
+
default: r + 1
|
|
731
|
+
};
|
|
732
|
+
const o = t.small.max + 1;
|
|
733
|
+
t.medium = {
|
|
734
|
+
max: a,
|
|
735
|
+
min: o,
|
|
736
|
+
default: o + 1
|
|
737
|
+
};
|
|
738
|
+
const l = t.medium.max + 1;
|
|
739
|
+
return t.large = {
|
|
740
|
+
max: 2e3,
|
|
741
|
+
// TODO: decide upper limit
|
|
742
|
+
min: l,
|
|
743
|
+
default: l + 1
|
|
744
|
+
}, t;
|
|
745
|
+
};
|
|
746
|
+
function te(e) {
|
|
747
|
+
return /* @__PURE__ */ s(
|
|
748
|
+
"style",
|
|
749
|
+
{
|
|
750
|
+
dangerouslySetInnerHTML: { __html: e.styles },
|
|
751
|
+
"data-id": e.id,
|
|
752
|
+
nonce: e.nonce
|
|
753
|
+
}
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
function Ve(e) {
|
|
757
|
+
function t() {
|
|
758
|
+
const i = e.block;
|
|
759
|
+
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
760
|
+
}
|
|
761
|
+
function n() {
|
|
762
|
+
var T, E, _, H, q;
|
|
763
|
+
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = et(
|
|
764
|
+
((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
|
|
765
|
+
), l = !!((_ = (E = r == null ? void 0 : r.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, u = i.id;
|
|
766
|
+
if (!u)
|
|
767
|
+
return "";
|
|
768
|
+
const x = c ? Y({
|
|
769
|
+
className: u,
|
|
770
|
+
styles: c
|
|
771
|
+
}) : "", f = d ? Y({
|
|
772
|
+
className: u,
|
|
773
|
+
styles: d,
|
|
774
|
+
mediaQuery: ue(
|
|
775
|
+
"medium",
|
|
776
|
+
o
|
|
777
|
+
)
|
|
778
|
+
}) : "", m = h ? Y({
|
|
779
|
+
className: u,
|
|
780
|
+
styles: h,
|
|
781
|
+
mediaQuery: ue(
|
|
782
|
+
"small",
|
|
783
|
+
o
|
|
784
|
+
)
|
|
785
|
+
}) : "", y = g && l ? Y({
|
|
786
|
+
className: u,
|
|
787
|
+
styles: g,
|
|
788
|
+
mediaQuery: ue(
|
|
789
|
+
"xsmall",
|
|
790
|
+
o
|
|
791
|
+
)
|
|
792
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
793
|
+
let S = "";
|
|
794
|
+
if (b) {
|
|
795
|
+
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
796
|
+
S = Y({
|
|
797
|
+
className: `${u}:hover`,
|
|
798
|
+
styles: {
|
|
799
|
+
...p,
|
|
800
|
+
transition: `all ${b.duration}s ${se(
|
|
801
|
+
b.easing
|
|
802
|
+
)}`,
|
|
803
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
804
|
+
}
|
|
805
|
+
}) || "";
|
|
806
|
+
}
|
|
807
|
+
return [
|
|
808
|
+
x,
|
|
809
|
+
f,
|
|
810
|
+
m,
|
|
811
|
+
y,
|
|
812
|
+
S
|
|
813
|
+
].join(" ");
|
|
814
|
+
}
|
|
815
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
816
|
+
te,
|
|
817
|
+
{
|
|
818
|
+
id: "builderio-block",
|
|
819
|
+
styles: n(),
|
|
820
|
+
nonce: e.context.nonce
|
|
821
|
+
}
|
|
822
|
+
) }) : null });
|
|
823
|
+
}
|
|
824
|
+
function ln(e) {
|
|
825
|
+
k(() => !1);
|
|
826
|
+
const [t, n] = k(() => !1);
|
|
827
|
+
return ye(le), N(() => {
|
|
828
|
+
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) });
|
|
829
|
+
}
|
|
823
830
|
function ce(e) {
|
|
824
831
|
var h, g, u, x;
|
|
825
832
|
function t() {
|
|
826
|
-
return
|
|
833
|
+
return zt({
|
|
827
834
|
block: e.block,
|
|
828
835
|
context: e.context
|
|
829
836
|
});
|
|
@@ -832,11 +839,11 @@ function ce(e) {
|
|
|
832
839
|
value: null,
|
|
833
840
|
update: !1
|
|
834
841
|
}));
|
|
835
|
-
function
|
|
842
|
+
function a() {
|
|
836
843
|
var m;
|
|
837
|
-
if (n.value && !n.update && !
|
|
844
|
+
if (n.value && !n.update && !oe())
|
|
838
845
|
return n.value;
|
|
839
|
-
const f = (m = e.block.repeat) != null && m.collection ? e.block :
|
|
846
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
|
|
840
847
|
block: e.block,
|
|
841
848
|
localState: e.context.localState,
|
|
842
849
|
rootState: e.context.rootState,
|
|
@@ -845,40 +852,40 @@ function ce(e) {
|
|
|
845
852
|
});
|
|
846
853
|
return n.value = f, n.update = !1, f;
|
|
847
854
|
}
|
|
848
|
-
function
|
|
849
|
-
return
|
|
850
|
-
block:
|
|
855
|
+
function r() {
|
|
856
|
+
return jt({
|
|
857
|
+
block: a(),
|
|
851
858
|
registeredComponents: e.registeredComponents,
|
|
852
859
|
model: e.context.model
|
|
853
860
|
});
|
|
854
861
|
}
|
|
855
862
|
function o() {
|
|
856
863
|
var m;
|
|
857
|
-
return e.block.tagName === "a" || ((m =
|
|
864
|
+
return e.block.tagName === "a" || ((m = a().properties) == null ? void 0 : m.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
858
865
|
}
|
|
859
866
|
function l() {
|
|
860
867
|
var y, b;
|
|
861
868
|
if ((y = e.block.repeat) != null && y.collection)
|
|
862
869
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
863
|
-
const f = "hide" in
|
|
864
|
-
return ("show" in
|
|
870
|
+
const f = "hide" in a() ? a().hide : !1;
|
|
871
|
+
return ("show" in a() ? a().show : !0) && !f;
|
|
865
872
|
}
|
|
866
873
|
function c() {
|
|
867
874
|
var m, y;
|
|
868
|
-
return !((m =
|
|
875
|
+
return !((m = r == null ? void 0 : r()) != null && m.component) && !t() ? (y = a().children) != null ? y : [] : [];
|
|
869
876
|
}
|
|
870
877
|
function d() {
|
|
871
878
|
var f, m, y, b;
|
|
872
879
|
return {
|
|
873
|
-
blockChildren: (f =
|
|
874
|
-
componentRef: (m =
|
|
880
|
+
blockChildren: (f = a().children) != null ? f : [],
|
|
881
|
+
componentRef: (m = r == null ? void 0 : r()) == null ? void 0 : m.component,
|
|
875
882
|
componentOptions: {
|
|
876
|
-
...
|
|
877
|
-
...
|
|
878
|
-
...
|
|
879
|
-
...
|
|
880
|
-
...
|
|
881
|
-
|
|
883
|
+
...Rt(a(), e.context),
|
|
884
|
+
...Gt(r(), a()),
|
|
885
|
+
...Qt(r(), e.context),
|
|
886
|
+
...Kt(r(), e.linkComponent),
|
|
887
|
+
...Jt(
|
|
888
|
+
r(),
|
|
882
889
|
e.registeredComponents,
|
|
883
890
|
e.context.model
|
|
884
891
|
)
|
|
@@ -886,14 +893,14 @@ function ce(e) {
|
|
|
886
893
|
context: e.context,
|
|
887
894
|
linkComponent: e.linkComponent,
|
|
888
895
|
registeredComponents: e.registeredComponents,
|
|
889
|
-
builderBlock:
|
|
890
|
-
includeBlockProps: ((y =
|
|
891
|
-
isInteractive: !((b =
|
|
896
|
+
builderBlock: a(),
|
|
897
|
+
includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
|
|
898
|
+
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && F === "rsc")
|
|
892
899
|
};
|
|
893
900
|
}
|
|
894
901
|
return N(() => {
|
|
895
|
-
const f =
|
|
896
|
-
m && f &&
|
|
902
|
+
const f = a().id, m = a().animations;
|
|
903
|
+
m && f && Ot(
|
|
897
904
|
m.map((y) => ({
|
|
898
905
|
...y,
|
|
899
906
|
elementId: f
|
|
@@ -901,9 +908,16 @@ function ce(e) {
|
|
|
901
908
|
);
|
|
902
909
|
}, []), N(() => {
|
|
903
910
|
n.update = !0;
|
|
904
|
-
}), /* @__PURE__ */ s(
|
|
905
|
-
/* @__PURE__ */ s(
|
|
906
|
-
|
|
911
|
+
}), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
|
|
912
|
+
/* @__PURE__ */ s(
|
|
913
|
+
ln,
|
|
914
|
+
{
|
|
915
|
+
block: a(),
|
|
916
|
+
context: e.context,
|
|
917
|
+
id: e.block.id
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
907
921
|
Pe,
|
|
908
922
|
{
|
|
909
923
|
repeatContext: f.context,
|
|
@@ -925,7 +939,7 @@ function ce(e) {
|
|
|
925
939
|
includeBlockProps: d().includeBlockProps,
|
|
926
940
|
isInteractive: d().isInteractive
|
|
927
941
|
}
|
|
928
|
-
) : /* @__PURE__ */ s(
|
|
942
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
929
943
|
Pe,
|
|
930
944
|
{
|
|
931
945
|
repeatContext: f.context,
|
|
@@ -938,7 +952,7 @@ function ce(e) {
|
|
|
938
952
|
nn,
|
|
939
953
|
{
|
|
940
954
|
Wrapper: o(),
|
|
941
|
-
block:
|
|
955
|
+
block: a(),
|
|
942
956
|
context: e.context,
|
|
943
957
|
children: [
|
|
944
958
|
/* @__PURE__ */ s(
|
|
@@ -970,7 +984,7 @@ function ce(e) {
|
|
|
970
984
|
) })
|
|
971
985
|
] }) : null });
|
|
972
986
|
}
|
|
973
|
-
function
|
|
987
|
+
function sn(e) {
|
|
974
988
|
const t = z(null);
|
|
975
989
|
k(() => !1);
|
|
976
990
|
function n() {
|
|
@@ -987,7 +1001,7 @@ function ln(e) {
|
|
|
987
1001
|
const o = "this.", l = "component.options.";
|
|
988
1002
|
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
989
1003
|
}
|
|
990
|
-
function
|
|
1004
|
+
function a() {
|
|
991
1005
|
var o, l;
|
|
992
1006
|
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
993
1007
|
{
|
|
@@ -1000,7 +1014,7 @@ function ln(e) {
|
|
|
1000
1014
|
"*"
|
|
1001
1015
|
));
|
|
1002
1016
|
}
|
|
1003
|
-
function
|
|
1017
|
+
function r() {
|
|
1004
1018
|
var o, l;
|
|
1005
1019
|
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1006
1020
|
{
|
|
@@ -1015,7 +1029,7 @@ function ln(e) {
|
|
|
1015
1029
|
}
|
|
1016
1030
|
return N(() => {
|
|
1017
1031
|
}, []), N(() => {
|
|
1018
|
-
}, [e.blocks]), /* @__PURE__ */ D(
|
|
1032
|
+
}, [e.blocks]), /* @__PURE__ */ D(w, { children: [
|
|
1019
1033
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1020
1034
|
display: flex;
|
|
1021
1035
|
flex-direction: column;
|
|
@@ -1029,9 +1043,9 @@ function ln(e) {
|
|
|
1029
1043
|
"builder-path": i(),
|
|
1030
1044
|
"builder-parent-id": e.parent,
|
|
1031
1045
|
style: e.styleProp,
|
|
1032
|
-
onClick: (o) =>
|
|
1033
|
-
onMouseEnter: (o) =>
|
|
1034
|
-
onKeyPress: (o) =>
|
|
1046
|
+
onClick: (o) => a(),
|
|
1047
|
+
onMouseEnter: (o) => r(),
|
|
1048
|
+
onKeyPress: (o) => a(),
|
|
1035
1049
|
...e.BlocksWrapperProps,
|
|
1036
1050
|
children: e.children
|
|
1037
1051
|
}
|
|
@@ -1039,10 +1053,10 @@ function ln(e) {
|
|
|
1039
1053
|
] });
|
|
1040
1054
|
}
|
|
1041
1055
|
function M(e) {
|
|
1042
|
-
var i,
|
|
1043
|
-
const t =
|
|
1056
|
+
var i, a, r;
|
|
1057
|
+
const t = ye(le), n = ye(Me);
|
|
1044
1058
|
return /* @__PURE__ */ D(
|
|
1045
|
-
|
|
1059
|
+
sn,
|
|
1046
1060
|
{
|
|
1047
1061
|
blocks: e.blocks,
|
|
1048
1062
|
parent: e.parent,
|
|
@@ -1050,10 +1064,10 @@ function M(e) {
|
|
|
1050
1064
|
styleProp: e.styleProp,
|
|
1051
1065
|
BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1052
1066
|
classNameProp: e.className,
|
|
1053
|
-
BlocksWrapper: ((
|
|
1067
|
+
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1054
1068
|
children: [
|
|
1055
1069
|
e.children,
|
|
1056
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1070
|
+
e.blocks ? /* @__PURE__ */ s(w, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
|
|
1057
1071
|
ce,
|
|
1058
1072
|
{
|
|
1059
1073
|
block: o,
|
|
@@ -1067,8 +1081,8 @@ function M(e) {
|
|
|
1067
1081
|
}
|
|
1068
1082
|
);
|
|
1069
1083
|
}
|
|
1070
|
-
const
|
|
1071
|
-
function
|
|
1084
|
+
const cn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1085
|
+
function un(e) {
|
|
1072
1086
|
var m, y;
|
|
1073
1087
|
function t() {
|
|
1074
1088
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1079,15 +1093,15 @@ function cn(e) {
|
|
|
1079
1093
|
function i() {
|
|
1080
1094
|
return e.stackColumnsAt || "tablet";
|
|
1081
1095
|
}
|
|
1082
|
-
function
|
|
1096
|
+
function a(b) {
|
|
1083
1097
|
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1084
1098
|
}
|
|
1085
|
-
function
|
|
1099
|
+
function r(b) {
|
|
1086
1100
|
var S;
|
|
1087
1101
|
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1088
1102
|
}
|
|
1089
1103
|
function o(b) {
|
|
1090
|
-
const S =
|
|
1104
|
+
const S = r(b), T = t() * (n().length - 1) * (S / 100);
|
|
1091
1105
|
return `calc(${S}% - ${T}px)`;
|
|
1092
1106
|
}
|
|
1093
1107
|
function l({
|
|
@@ -1144,7 +1158,7 @@ function cn(e) {
|
|
|
1144
1158
|
}
|
|
1145
1159
|
function u(b) {
|
|
1146
1160
|
var T, E;
|
|
1147
|
-
return
|
|
1161
|
+
return et(
|
|
1148
1162
|
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1149
1163
|
)[b].max;
|
|
1150
1164
|
}
|
|
@@ -1181,11 +1195,11 @@ function cn(e) {
|
|
|
1181
1195
|
...b.link ? {
|
|
1182
1196
|
href: b.link
|
|
1183
1197
|
} : {},
|
|
1184
|
-
[
|
|
1185
|
-
style:
|
|
1198
|
+
[K()]: "builder-column",
|
|
1199
|
+
style: Qe(g(S))
|
|
1186
1200
|
};
|
|
1187
1201
|
}
|
|
1188
|
-
return /* @__PURE__ */ D(
|
|
1202
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
1189
1203
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1190
1204
|
display: flex;
|
|
1191
1205
|
line-height: normal;
|
|
@@ -1194,7 +1208,7 @@ function cn(e) {
|
|
|
1194
1208
|
/* @__PURE__ */ D(
|
|
1195
1209
|
"div",
|
|
1196
1210
|
{
|
|
1197
|
-
className:
|
|
1211
|
+
className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1198
1212
|
style: h(),
|
|
1199
1213
|
children: [
|
|
1200
1214
|
/* @__PURE__ */ s(
|
|
@@ -1206,9 +1220,9 @@ function cn(e) {
|
|
|
1206
1220
|
}
|
|
1207
1221
|
),
|
|
1208
1222
|
(y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
|
|
1209
|
-
|
|
1223
|
+
xe,
|
|
1210
1224
|
{
|
|
1211
|
-
TagName:
|
|
1225
|
+
TagName: a(b),
|
|
1212
1226
|
actionAttributes: {},
|
|
1213
1227
|
attributes: f(b, S),
|
|
1214
1228
|
children: /* @__PURE__ */ s(
|
|
@@ -1233,41 +1247,41 @@ function cn(e) {
|
|
|
1233
1247
|
)
|
|
1234
1248
|
] });
|
|
1235
1249
|
}
|
|
1236
|
-
function
|
|
1250
|
+
function dn(e) {
|
|
1237
1251
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1238
1252
|
}
|
|
1239
|
-
function
|
|
1253
|
+
function Ae(e) {
|
|
1240
1254
|
return e.replace(/http(s)?:/, "");
|
|
1241
1255
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1244
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1256
|
+
function mn(e = "", t, n) {
|
|
1257
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1258
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1245
1259
|
}
|
|
1246
|
-
function
|
|
1260
|
+
function fn(e, t) {
|
|
1247
1261
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1248
1262
|
return e;
|
|
1249
1263
|
if (t === "master")
|
|
1250
|
-
return
|
|
1264
|
+
return Ae(e);
|
|
1251
1265
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1252
1266
|
if (n) {
|
|
1253
|
-
const i = e.split(n[0]),
|
|
1254
|
-
return
|
|
1267
|
+
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1268
|
+
return Ae(`${i[0]}_${r}${a}`);
|
|
1255
1269
|
}
|
|
1256
1270
|
return null;
|
|
1257
1271
|
}
|
|
1258
|
-
function
|
|
1272
|
+
function de(e) {
|
|
1259
1273
|
if (!e)
|
|
1260
1274
|
return e;
|
|
1261
1275
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1262
1276
|
if (e.match(/builder\.io/)) {
|
|
1263
1277
|
let n = e;
|
|
1264
1278
|
const i = Number(e.split("?width=")[1]);
|
|
1265
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1279
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1266
1280
|
}
|
|
1267
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1281
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1268
1282
|
}
|
|
1269
|
-
function
|
|
1270
|
-
var
|
|
1283
|
+
function hn(e) {
|
|
1284
|
+
var a, r, o, l, c, d;
|
|
1271
1285
|
function t() {
|
|
1272
1286
|
var u;
|
|
1273
1287
|
const g = e.image || e.src;
|
|
@@ -1278,10 +1292,10 @@ function fn(e) {
|
|
|
1278
1292
|
if (!e.noWebp) {
|
|
1279
1293
|
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1280
1294
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1281
|
-
return console.debug("Removed given srcset"),
|
|
1295
|
+
return console.debug("Removed given srcset"), de(g);
|
|
1282
1296
|
} else if (e.image && !e.srcset)
|
|
1283
|
-
return
|
|
1284
|
-
return
|
|
1297
|
+
return de(g);
|
|
1298
|
+
return de(g);
|
|
1285
1299
|
}
|
|
1286
1300
|
}
|
|
1287
1301
|
function n() {
|
|
@@ -1299,7 +1313,7 @@ function fn(e) {
|
|
|
1299
1313
|
return e.aspectRatio ? h : void 0;
|
|
1300
1314
|
}
|
|
1301
1315
|
return N(() => {
|
|
1302
|
-
}, []), /* @__PURE__ */ D(
|
|
1316
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
1303
1317
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1304
1318
|
opacity: 1;
|
|
1305
1319
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1317,7 +1331,7 @@ function fn(e) {
|
|
|
1317
1331
|
width: 100%;
|
|
1318
1332
|
height: 100%;
|
|
1319
1333
|
}` }),
|
|
1320
|
-
/* @__PURE__ */ D(
|
|
1334
|
+
/* @__PURE__ */ D(w, { children: [
|
|
1321
1335
|
/* @__PURE__ */ D("picture", { children: [
|
|
1322
1336
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1323
1337
|
/* @__PURE__ */ s(
|
|
@@ -1340,7 +1354,7 @@ function fn(e) {
|
|
|
1340
1354
|
}
|
|
1341
1355
|
)
|
|
1342
1356
|
] }),
|
|
1343
|
-
e.aspectRatio && !((
|
|
1357
|
+
e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1344
1358
|
"div",
|
|
1345
1359
|
{
|
|
1346
1360
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1349,12 +1363,12 @@ function fn(e) {
|
|
|
1349
1363
|
}
|
|
1350
1364
|
}
|
|
1351
1365
|
) : null,
|
|
1352
|
-
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1366
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1353
1367
|
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1354
1368
|
] })
|
|
1355
1369
|
] });
|
|
1356
1370
|
}
|
|
1357
|
-
function
|
|
1371
|
+
function bn(e) {
|
|
1358
1372
|
return /* @__PURE__ */ s(
|
|
1359
1373
|
"section",
|
|
1360
1374
|
{
|
|
@@ -1375,11 +1389,11 @@ function hn(e) {
|
|
|
1375
1389
|
}
|
|
1376
1390
|
);
|
|
1377
1391
|
}
|
|
1378
|
-
function
|
|
1379
|
-
function
|
|
1392
|
+
function gn(e, t, n, i) {
|
|
1393
|
+
function a(d) {
|
|
1380
1394
|
return typeof d == "string";
|
|
1381
1395
|
}
|
|
1382
|
-
function
|
|
1396
|
+
function r(d) {
|
|
1383
1397
|
return typeof d == "number";
|
|
1384
1398
|
}
|
|
1385
1399
|
function o(d, h) {
|
|
@@ -1407,19 +1421,19 @@ function bn(e, t, n, i) {
|
|
|
1407
1421
|
case "isNot":
|
|
1408
1422
|
return m !== f;
|
|
1409
1423
|
case "contains":
|
|
1410
|
-
return (
|
|
1424
|
+
return (a(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1411
1425
|
case "startsWith":
|
|
1412
|
-
return
|
|
1426
|
+
return a(m) && m.startsWith(String(f));
|
|
1413
1427
|
case "endsWith":
|
|
1414
|
-
return
|
|
1428
|
+
return a(m) && m.endsWith(String(f));
|
|
1415
1429
|
case "greaterThan":
|
|
1416
|
-
return
|
|
1430
|
+
return r(m) && r(f) && m > f;
|
|
1417
1431
|
case "lessThan":
|
|
1418
|
-
return
|
|
1432
|
+
return r(m) && r(f) && m < f;
|
|
1419
1433
|
case "greaterThanOrEqualTo":
|
|
1420
|
-
return
|
|
1434
|
+
return r(m) && r(f) && m >= f;
|
|
1421
1435
|
case "lessThanOrEqualTo":
|
|
1422
|
-
return
|
|
1436
|
+
return r(m) && r(f) && m <= f;
|
|
1423
1437
|
default:
|
|
1424
1438
|
return !1;
|
|
1425
1439
|
}
|
|
@@ -1432,7 +1446,7 @@ function bn(e, t, n, i) {
|
|
|
1432
1446
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1433
1447
|
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => o(e, d));
|
|
1434
1448
|
}
|
|
1435
|
-
const
|
|
1449
|
+
const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1436
1450
|
if (!navigator.cookieEnabled) {
|
|
1437
1451
|
return;
|
|
1438
1452
|
}
|
|
@@ -1477,7 +1491,7 @@ const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1477
1491
|
thisScript.remove();
|
|
1478
1492
|
}
|
|
1479
1493
|
}
|
|
1480
|
-
}`,
|
|
1494
|
+
}`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1481
1495
|
function isString(val) {
|
|
1482
1496
|
return typeof val === 'string';
|
|
1483
1497
|
}
|
|
@@ -1555,7 +1569,7 @@ const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1555
1569
|
return item.query.every(filter => {
|
|
1556
1570
|
return objectMatchesQuery(userAttributes, filter);
|
|
1557
1571
|
});
|
|
1558
|
-
}`,
|
|
1572
|
+
}`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1559
1573
|
function getCookie(name) {
|
|
1560
1574
|
const nameEQ = name + '=';
|
|
1561
1575
|
const ca = document.cookie.split(';');
|
|
@@ -1593,22 +1607,22 @@ const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1593
1607
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1594
1608
|
}
|
|
1595
1609
|
}
|
|
1596
|
-
}`,
|
|
1597
|
-
function
|
|
1598
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
1610
|
+
}`, ne = "default", xn = "filterWithCustomTargeting", tt = "builderIoPersonalization", nt = "updateVisibilityStylesScript", it = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1611
|
+
function Sn(e, t) {
|
|
1612
|
+
return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !G();
|
|
1599
1613
|
}
|
|
1600
|
-
function
|
|
1614
|
+
function kn({
|
|
1601
1615
|
variants: e,
|
|
1602
1616
|
previewingIndex: t,
|
|
1603
1617
|
isHydrated: n,
|
|
1604
1618
|
filteredVariants: i,
|
|
1605
|
-
fallbackBlocks:
|
|
1619
|
+
fallbackBlocks: a
|
|
1606
1620
|
}) {
|
|
1607
1621
|
var o;
|
|
1608
|
-
const
|
|
1609
|
-
blocks:
|
|
1622
|
+
const r = {
|
|
1623
|
+
blocks: a != null ? a : [],
|
|
1610
1624
|
path: "this.children",
|
|
1611
|
-
index:
|
|
1625
|
+
index: ne
|
|
1612
1626
|
};
|
|
1613
1627
|
if (n && U()) {
|
|
1614
1628
|
if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
|
|
@@ -1620,7 +1634,7 @@ function Sn({
|
|
|
1620
1634
|
index: t
|
|
1621
1635
|
};
|
|
1622
1636
|
}
|
|
1623
|
-
return
|
|
1637
|
+
return r;
|
|
1624
1638
|
}
|
|
1625
1639
|
if (G()) {
|
|
1626
1640
|
const l = i == null ? void 0 : i[0];
|
|
@@ -1634,13 +1648,13 @@ function Sn({
|
|
|
1634
1648
|
};
|
|
1635
1649
|
}
|
|
1636
1650
|
}
|
|
1637
|
-
return
|
|
1651
|
+
return r;
|
|
1638
1652
|
}
|
|
1639
|
-
const
|
|
1640
|
-
window.${
|
|
1641
|
-
window.${
|
|
1642
|
-
window.${
|
|
1643
|
-
`,
|
|
1653
|
+
const Cn = () => `
|
|
1654
|
+
window.${xn} = ${pn}
|
|
1655
|
+
window.${tt} = ${yn}
|
|
1656
|
+
window.${nt} = ${vn}
|
|
1657
|
+
`, at = F === "react", Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, me = {
|
|
1644
1658
|
"@type": "@builder.io/sdk:Element",
|
|
1645
1659
|
layerName: "Accordion item title",
|
|
1646
1660
|
responsiveStyles: {
|
|
@@ -1669,7 +1683,7 @@ const kn = () => `
|
|
|
1669
1683
|
}
|
|
1670
1684
|
}
|
|
1671
1685
|
}]
|
|
1672
|
-
},
|
|
1686
|
+
}, fe = {
|
|
1673
1687
|
"@type": "@builder.io/sdk:Element",
|
|
1674
1688
|
layerName: "Accordion item detail",
|
|
1675
1689
|
responsiveStyles: {
|
|
@@ -1700,7 +1714,7 @@ const kn = () => `
|
|
|
1700
1714
|
}
|
|
1701
1715
|
}
|
|
1702
1716
|
}]
|
|
1703
|
-
},
|
|
1717
|
+
}, wn = {
|
|
1704
1718
|
name: "Builder:Accordion",
|
|
1705
1719
|
canHaveChildren: !0,
|
|
1706
1720
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1717,19 +1731,19 @@ const kn = () => `
|
|
|
1717
1731
|
name: "title",
|
|
1718
1732
|
type: "uiBlocks",
|
|
1719
1733
|
hideFromUI: !0,
|
|
1720
|
-
defaultValue: [
|
|
1734
|
+
defaultValue: [me]
|
|
1721
1735
|
}, {
|
|
1722
1736
|
name: "detail",
|
|
1723
1737
|
type: "uiBlocks",
|
|
1724
1738
|
hideFromUI: !0,
|
|
1725
|
-
defaultValue: [
|
|
1739
|
+
defaultValue: [fe]
|
|
1726
1740
|
}],
|
|
1727
1741
|
defaultValue: [{
|
|
1728
|
-
title: [
|
|
1729
|
-
detail: [
|
|
1742
|
+
title: [me],
|
|
1743
|
+
detail: [fe]
|
|
1730
1744
|
}, {
|
|
1731
|
-
title: [
|
|
1732
|
-
detail: [
|
|
1745
|
+
title: [me],
|
|
1746
|
+
detail: [fe]
|
|
1733
1747
|
}],
|
|
1734
1748
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1735
1749
|
}, {
|
|
@@ -1764,14 +1778,14 @@ const kn = () => `
|
|
|
1764
1778
|
builderComponents: !0,
|
|
1765
1779
|
builderLinkComponent: !0
|
|
1766
1780
|
}
|
|
1767
|
-
},
|
|
1768
|
-
function
|
|
1781
|
+
}, Be = (e) => e.toString();
|
|
1782
|
+
function En(e) {
|
|
1769
1783
|
var g;
|
|
1770
1784
|
const [t, n] = k(() => []);
|
|
1771
1785
|
function i() {
|
|
1772
1786
|
return !!(e.grid || e.oneAtATime);
|
|
1773
1787
|
}
|
|
1774
|
-
function
|
|
1788
|
+
function a() {
|
|
1775
1789
|
return {
|
|
1776
1790
|
display: "flex",
|
|
1777
1791
|
alignItems: "stretch",
|
|
@@ -1783,7 +1797,7 @@ function wn(e) {
|
|
|
1783
1797
|
}
|
|
1784
1798
|
};
|
|
1785
1799
|
}
|
|
1786
|
-
function
|
|
1800
|
+
function r() {
|
|
1787
1801
|
const x = {
|
|
1788
1802
|
...{
|
|
1789
1803
|
display: "flex",
|
|
@@ -1843,16 +1857,16 @@ function wn(e) {
|
|
|
1843
1857
|
function h(u) {
|
|
1844
1858
|
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1845
1859
|
}
|
|
1846
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1860
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(ft.Fragment, { children: [
|
|
1847
1861
|
/* @__PURE__ */ s(
|
|
1848
1862
|
"div",
|
|
1849
1863
|
{
|
|
1850
1864
|
className: o(x),
|
|
1851
1865
|
style: {
|
|
1852
|
-
...
|
|
1866
|
+
...r(),
|
|
1853
1867
|
...e.grid && {
|
|
1854
1868
|
width: e.gridRowWidth,
|
|
1855
|
-
order: c() !== null ?
|
|
1869
|
+
order: c() !== null ? Be(x) : Be(x + 1)
|
|
1856
1870
|
}
|
|
1857
1871
|
},
|
|
1858
1872
|
"data-index": x,
|
|
@@ -1890,7 +1904,7 @@ function wn(e) {
|
|
|
1890
1904
|
) : null
|
|
1891
1905
|
] }, x)) });
|
|
1892
1906
|
}
|
|
1893
|
-
const
|
|
1907
|
+
const Rn = {
|
|
1894
1908
|
name: "Core:Button",
|
|
1895
1909
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1896
1910
|
defaultStyles: {
|
|
@@ -1926,7 +1940,7 @@ const En = {
|
|
|
1926
1940
|
shouldReceiveBuilderProps: {
|
|
1927
1941
|
builderLinkComponent: !0
|
|
1928
1942
|
}
|
|
1929
|
-
},
|
|
1943
|
+
}, Pn = {
|
|
1930
1944
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1931
1945
|
name: "Columns",
|
|
1932
1946
|
isRSC: !0,
|
|
@@ -2105,7 +2119,7 @@ const En = {
|
|
|
2105
2119
|
});
|
|
2106
2120
|
}
|
|
2107
2121
|
const n = e.get("columns");
|
|
2108
|
-
Array.isArray(n) && n.find((
|
|
2122
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2109
2123
|
}
|
|
2110
2124
|
}, {
|
|
2111
2125
|
name: "space",
|
|
@@ -2133,13 +2147,13 @@ const En = {
|
|
|
2133
2147
|
builderComponents: !0,
|
|
2134
2148
|
builderLinkComponent: !0
|
|
2135
2149
|
}
|
|
2136
|
-
},
|
|
2150
|
+
}, Vn = {
|
|
2137
2151
|
name: "Fragment",
|
|
2138
2152
|
static: !0,
|
|
2139
2153
|
hidden: !0,
|
|
2140
2154
|
canHaveChildren: !0,
|
|
2141
2155
|
noWrap: !0
|
|
2142
|
-
},
|
|
2156
|
+
}, ke = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
|
|
2143
2157
|
name: "Image",
|
|
2144
2158
|
static: !0,
|
|
2145
2159
|
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",
|
|
@@ -2154,7 +2168,7 @@ const En = {
|
|
|
2154
2168
|
name: "image",
|
|
2155
2169
|
type: "file",
|
|
2156
2170
|
bubble: !0,
|
|
2157
|
-
allowedFileTypes:
|
|
2171
|
+
allowedFileTypes: ke,
|
|
2158
2172
|
required: !0,
|
|
2159
2173
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2160
2174
|
onChange: (e) => {
|
|
@@ -2175,13 +2189,13 @@ const En = {
|
|
|
2175
2189
|
function i(o) {
|
|
2176
2190
|
return Math.round(o * 1e3) / 1e3;
|
|
2177
2191
|
}
|
|
2178
|
-
const
|
|
2179
|
-
if (fetch(
|
|
2192
|
+
const a = e.get("image"), r = e.get("aspectRatio");
|
|
2193
|
+
if (fetch(a).then((o) => o.blob()).then((o) => {
|
|
2180
2194
|
o.type.includes("svg") && e.set("noWebp", !0);
|
|
2181
|
-
}),
|
|
2182
|
-
return n(
|
|
2195
|
+
}), a && (!r || r === 0.7041))
|
|
2196
|
+
return n(a).then((o) => {
|
|
2183
2197
|
const l = e.get("aspectRatio");
|
|
2184
|
-
e.get("image") ===
|
|
2198
|
+
e.get("image") === a && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
2185
2199
|
});
|
|
2186
2200
|
}
|
|
2187
2201
|
}, {
|
|
@@ -2251,7 +2265,7 @@ const En = {
|
|
|
2251
2265
|
shouldReceiveBuilderProps: {
|
|
2252
2266
|
builderBlock: !0
|
|
2253
2267
|
}
|
|
2254
|
-
},
|
|
2268
|
+
}, Nn = {
|
|
2255
2269
|
name: "PersonalizationContainer",
|
|
2256
2270
|
shouldReceiveBuilderProps: {
|
|
2257
2271
|
builderBlock: !0,
|
|
@@ -2288,7 +2302,7 @@ const En = {
|
|
|
2288
2302
|
}]
|
|
2289
2303
|
}]
|
|
2290
2304
|
};
|
|
2291
|
-
function
|
|
2305
|
+
function J(e) {
|
|
2292
2306
|
return /* @__PURE__ */ s(
|
|
2293
2307
|
"script",
|
|
2294
2308
|
{
|
|
@@ -2298,64 +2312,64 @@ function K(e) {
|
|
|
2298
2312
|
}
|
|
2299
2313
|
);
|
|
2300
2314
|
}
|
|
2301
|
-
function
|
|
2302
|
-
var S, T, E, _, H, q, p, v,
|
|
2315
|
+
function $n(e) {
|
|
2316
|
+
var S, T, E, _, H, q, p, v, V, A, $, R, P;
|
|
2303
2317
|
const t = z(null), [n, i] = k(
|
|
2304
|
-
() =>
|
|
2305
|
-
), [
|
|
2318
|
+
() => Te.getUserAttributes()
|
|
2319
|
+
), [a, r] = k(
|
|
2306
2320
|
() => {
|
|
2307
|
-
var
|
|
2308
|
-
return
|
|
2321
|
+
var I, B, C;
|
|
2322
|
+
return Tn(
|
|
2309
2323
|
e.variants,
|
|
2310
|
-
((
|
|
2324
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2311
2325
|
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2312
2326
|
);
|
|
2313
2327
|
}
|
|
2314
2328
|
), [o, l] = k(
|
|
2315
2329
|
() => {
|
|
2316
|
-
var
|
|
2317
|
-
return
|
|
2330
|
+
var I, B, C;
|
|
2331
|
+
return In(
|
|
2318
2332
|
e.variants,
|
|
2319
|
-
((
|
|
2333
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2320
2334
|
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2321
2335
|
);
|
|
2322
2336
|
}
|
|
2323
2337
|
), [c, d] = k(() => []), [h, g] = k(
|
|
2324
2338
|
() => {
|
|
2325
|
-
var
|
|
2326
|
-
return
|
|
2339
|
+
var I;
|
|
2340
|
+
return Sn(
|
|
2327
2341
|
e.variants,
|
|
2328
|
-
Z((
|
|
2342
|
+
Z((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2329
2343
|
);
|
|
2330
2344
|
}
|
|
2331
2345
|
), [u, x] = k(() => !1);
|
|
2332
2346
|
function f() {
|
|
2333
2347
|
return {
|
|
2334
2348
|
...e.attributes,
|
|
2335
|
-
[
|
|
2349
|
+
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2336
2350
|
};
|
|
2337
2351
|
}
|
|
2338
2352
|
function m() {
|
|
2339
|
-
return (e.variants || []).filter((
|
|
2353
|
+
return (e.variants || []).filter((I) => {
|
|
2340
2354
|
var B, C, W, L;
|
|
2341
|
-
return
|
|
2355
|
+
return gn(
|
|
2342
2356
|
{
|
|
2343
2357
|
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2344
2358
|
locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
|
|
2345
2359
|
} : {},
|
|
2346
2360
|
...n
|
|
2347
2361
|
},
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2362
|
+
I.query,
|
|
2363
|
+
I.startDate,
|
|
2364
|
+
I.endDate
|
|
2351
2365
|
);
|
|
2352
2366
|
});
|
|
2353
2367
|
}
|
|
2354
2368
|
function y() {
|
|
2355
|
-
var
|
|
2356
|
-
return
|
|
2369
|
+
var I;
|
|
2370
|
+
return kn({
|
|
2357
2371
|
variants: e.variants,
|
|
2358
|
-
fallbackBlocks: (
|
|
2372
|
+
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2359
2373
|
isHydrated: u,
|
|
2360
2374
|
filteredVariants: m(),
|
|
2361
2375
|
previewingIndex: e.previewingIndex
|
|
@@ -2363,7 +2377,7 @@ function Nn(e) {
|
|
|
2363
2377
|
}
|
|
2364
2378
|
function b() {
|
|
2365
2379
|
return (e.variants || []).map(
|
|
2366
|
-
(
|
|
2380
|
+
(I, B) => {
|
|
2367
2381
|
var C;
|
|
2368
2382
|
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2369
2383
|
}
|
|
@@ -2372,7 +2386,7 @@ function Nn(e) {
|
|
|
2372
2386
|
return N(() => {
|
|
2373
2387
|
var B;
|
|
2374
2388
|
x(!0);
|
|
2375
|
-
const
|
|
2389
|
+
const I = Te.subscribeOnUserAttributesChange(
|
|
2376
2390
|
(C) => {
|
|
2377
2391
|
i(C);
|
|
2378
2392
|
},
|
|
@@ -2380,12 +2394,12 @@ function Nn(e) {
|
|
|
2380
2394
|
fireImmediately: F === "qwik"
|
|
2381
2395
|
}
|
|
2382
2396
|
);
|
|
2383
|
-
if (!(U() ||
|
|
2397
|
+
if (!(U() || oe())) {
|
|
2384
2398
|
const C = m()[0];
|
|
2385
2399
|
t.current && (t.current.dispatchEvent(
|
|
2386
2400
|
new CustomEvent("builder.variantLoaded", {
|
|
2387
2401
|
detail: {
|
|
2388
|
-
variant: C ||
|
|
2402
|
+
variant: C || ne,
|
|
2389
2403
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2390
2404
|
},
|
|
2391
2405
|
bubbles: !0
|
|
@@ -2396,7 +2410,7 @@ function Nn(e) {
|
|
|
2396
2410
|
O.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2397
2411
|
new CustomEvent("builder.variantDisplayed", {
|
|
2398
2412
|
detail: {
|
|
2399
|
-
variant: C ||
|
|
2413
|
+
variant: C || ne,
|
|
2400
2414
|
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2401
2415
|
},
|
|
2402
2416
|
bubbles: !0
|
|
@@ -2405,11 +2419,11 @@ function Nn(e) {
|
|
|
2405
2419
|
});
|
|
2406
2420
|
}).observe(t.current));
|
|
2407
2421
|
}
|
|
2408
|
-
c.push(
|
|
2422
|
+
c.push(I);
|
|
2409
2423
|
}, []), N(() => () => {
|
|
2410
|
-
c.forEach((
|
|
2424
|
+
c.forEach((I) => I());
|
|
2411
2425
|
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2412
|
-
u &&
|
|
2426
|
+
u && ie.includes(F) ? /* @__PURE__ */ s(
|
|
2413
2427
|
M,
|
|
2414
2428
|
{
|
|
2415
2429
|
blocks: y().blocks,
|
|
@@ -2423,8 +2437,8 @@ function Nn(e) {
|
|
|
2423
2437
|
}
|
|
2424
2438
|
}
|
|
2425
2439
|
) : null,
|
|
2426
|
-
!u &&
|
|
2427
|
-
h ? /* @__PURE__ */ D(
|
|
2440
|
+
!u && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ D(w, { children: [
|
|
2441
|
+
h ? /* @__PURE__ */ D(w, { children: [
|
|
2428
2442
|
/* @__PURE__ */ s(
|
|
2429
2443
|
te,
|
|
2430
2444
|
{
|
|
@@ -2434,15 +2448,15 @@ function Nn(e) {
|
|
|
2434
2448
|
}
|
|
2435
2449
|
),
|
|
2436
2450
|
/* @__PURE__ */ s(
|
|
2437
|
-
|
|
2451
|
+
J,
|
|
2438
2452
|
{
|
|
2439
2453
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2440
2454
|
scriptStr: o,
|
|
2441
2455
|
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2442
2456
|
}
|
|
2443
2457
|
),
|
|
2444
|
-
(v = e.variants) == null ? void 0 : v.map((
|
|
2445
|
-
var C, W, L, O, j,
|
|
2458
|
+
(v = e.variants) == null ? void 0 : v.map((I, B) => {
|
|
2459
|
+
var C, W, L, O, j, Ce;
|
|
2446
2460
|
return /* @__PURE__ */ s(
|
|
2447
2461
|
M,
|
|
2448
2462
|
{
|
|
@@ -2452,21 +2466,21 @@ function Nn(e) {
|
|
|
2452
2466
|
hidden: !0,
|
|
2453
2467
|
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${B}`
|
|
2454
2468
|
},
|
|
2455
|
-
blocks:
|
|
2469
|
+
blocks: I.blocks,
|
|
2456
2470
|
parent: (L = e.builderBlock) == null ? void 0 : L.id,
|
|
2457
2471
|
path: `component.options.variants.${B}.blocks`,
|
|
2458
2472
|
context: e.builderContext,
|
|
2459
2473
|
registeredComponents: e.builderComponents,
|
|
2460
2474
|
children: /* @__PURE__ */ s(
|
|
2461
|
-
|
|
2475
|
+
J,
|
|
2462
2476
|
{
|
|
2463
2477
|
nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
|
|
2464
|
-
scriptStr:
|
|
2478
|
+
scriptStr: a,
|
|
2465
2479
|
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2466
2480
|
}
|
|
2467
2481
|
)
|
|
2468
2482
|
},
|
|
2469
|
-
`${(
|
|
2483
|
+
`${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${B}`
|
|
2470
2484
|
);
|
|
2471
2485
|
})
|
|
2472
2486
|
] }) : null,
|
|
@@ -2474,20 +2488,20 @@ function Nn(e) {
|
|
|
2474
2488
|
M,
|
|
2475
2489
|
{
|
|
2476
2490
|
blocks: y().blocks,
|
|
2477
|
-
parent: (
|
|
2491
|
+
parent: (V = e.builderBlock) == null ? void 0 : V.id,
|
|
2478
2492
|
path: y().path,
|
|
2479
2493
|
context: e.builderContext,
|
|
2480
2494
|
registeredComponents: e.builderComponents,
|
|
2481
2495
|
BlocksWrapperProps: {
|
|
2482
|
-
...(
|
|
2496
|
+
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2483
2497
|
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
|
|
2484
2498
|
},
|
|
2485
2499
|
children: h ? /* @__PURE__ */ s(
|
|
2486
|
-
|
|
2500
|
+
J,
|
|
2487
2501
|
{
|
|
2488
2502
|
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2489
|
-
scriptStr:
|
|
2490
|
-
id: `variants-script-${(
|
|
2503
|
+
scriptStr: a,
|
|
2504
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
|
|
2491
2505
|
}
|
|
2492
2506
|
) : null
|
|
2493
2507
|
}
|
|
@@ -2495,7 +2509,7 @@ function Nn(e) {
|
|
|
2495
2509
|
] }) : null
|
|
2496
2510
|
] });
|
|
2497
2511
|
}
|
|
2498
|
-
const
|
|
2512
|
+
const Wn = {
|
|
2499
2513
|
name: "Core:Section",
|
|
2500
2514
|
static: !0,
|
|
2501
2515
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2534,7 +2548,7 @@ const $n = {
|
|
|
2534
2548
|
}
|
|
2535
2549
|
}
|
|
2536
2550
|
}]
|
|
2537
|
-
},
|
|
2551
|
+
}, Dn = {
|
|
2538
2552
|
name: "Slot",
|
|
2539
2553
|
isRSC: !0,
|
|
2540
2554
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2552,7 +2566,7 @@ const $n = {
|
|
|
2552
2566
|
builderComponents: !0
|
|
2553
2567
|
}
|
|
2554
2568
|
};
|
|
2555
|
-
function
|
|
2569
|
+
function Fn(e) {
|
|
2556
2570
|
var t, n, i;
|
|
2557
2571
|
return /* @__PURE__ */ s(
|
|
2558
2572
|
"div",
|
|
@@ -2576,7 +2590,7 @@ function Dn(e) {
|
|
|
2576
2590
|
}
|
|
2577
2591
|
);
|
|
2578
2592
|
}
|
|
2579
|
-
const
|
|
2593
|
+
const Ln = {
|
|
2580
2594
|
name: "Symbol",
|
|
2581
2595
|
noWrap: !0,
|
|
2582
2596
|
static: !0,
|
|
@@ -2615,7 +2629,7 @@ const Fn = {
|
|
|
2615
2629
|
builderComponents: !0,
|
|
2616
2630
|
builderLinkComponent: !0
|
|
2617
2631
|
}
|
|
2618
|
-
},
|
|
2632
|
+
}, he = {
|
|
2619
2633
|
"@type": "@builder.io/sdk:Element",
|
|
2620
2634
|
responsiveStyles: {
|
|
2621
2635
|
large: {
|
|
@@ -2637,7 +2651,7 @@ const Fn = {
|
|
|
2637
2651
|
text: "New tab"
|
|
2638
2652
|
}
|
|
2639
2653
|
}
|
|
2640
|
-
},
|
|
2654
|
+
}, be = {
|
|
2641
2655
|
"@type": "@builder.io/sdk:Element",
|
|
2642
2656
|
responsiveStyles: {
|
|
2643
2657
|
large: {
|
|
@@ -2653,7 +2667,7 @@ const Fn = {
|
|
|
2653
2667
|
text: "New tab content "
|
|
2654
2668
|
}
|
|
2655
2669
|
}
|
|
2656
|
-
},
|
|
2670
|
+
}, On = {
|
|
2657
2671
|
name: "Builder: Tabs",
|
|
2658
2672
|
inputs: [{
|
|
2659
2673
|
name: "tabs",
|
|
@@ -2663,16 +2677,16 @@ const Fn = {
|
|
|
2663
2677
|
name: "label",
|
|
2664
2678
|
type: "uiBlocks",
|
|
2665
2679
|
hideFromUI: !0,
|
|
2666
|
-
defaultValue: [
|
|
2680
|
+
defaultValue: [he]
|
|
2667
2681
|
}, {
|
|
2668
2682
|
name: "content",
|
|
2669
2683
|
type: "uiBlocks",
|
|
2670
2684
|
hideFromUI: !0,
|
|
2671
|
-
defaultValue: [
|
|
2685
|
+
defaultValue: [be]
|
|
2672
2686
|
}],
|
|
2673
2687
|
defaultValue: [{
|
|
2674
2688
|
label: [{
|
|
2675
|
-
...
|
|
2689
|
+
...he,
|
|
2676
2690
|
component: {
|
|
2677
2691
|
name: "Text",
|
|
2678
2692
|
options: {
|
|
@@ -2681,7 +2695,7 @@ const Fn = {
|
|
|
2681
2695
|
}
|
|
2682
2696
|
}],
|
|
2683
2697
|
content: [{
|
|
2684
|
-
...
|
|
2698
|
+
...be,
|
|
2685
2699
|
component: {
|
|
2686
2700
|
name: "Text",
|
|
2687
2701
|
options: {
|
|
@@ -2691,7 +2705,7 @@ const Fn = {
|
|
|
2691
2705
|
}]
|
|
2692
2706
|
}, {
|
|
2693
2707
|
label: [{
|
|
2694
|
-
...
|
|
2708
|
+
...he,
|
|
2695
2709
|
component: {
|
|
2696
2710
|
name: "Text",
|
|
2697
2711
|
options: {
|
|
@@ -2700,7 +2714,7 @@ const Fn = {
|
|
|
2700
2714
|
}
|
|
2701
2715
|
}],
|
|
2702
2716
|
content: [{
|
|
2703
|
-
...
|
|
2717
|
+
...be,
|
|
2704
2718
|
component: {
|
|
2705
2719
|
name: "Text",
|
|
2706
2720
|
options: {
|
|
@@ -2757,7 +2771,7 @@ const Fn = {
|
|
|
2757
2771
|
builderLinkComponent: !0
|
|
2758
2772
|
}
|
|
2759
2773
|
};
|
|
2760
|
-
function
|
|
2774
|
+
function _n(e) {
|
|
2761
2775
|
var o;
|
|
2762
2776
|
const [t, n] = k(
|
|
2763
2777
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2765,10 +2779,10 @@ function On(e) {
|
|
|
2765
2779
|
function i(l) {
|
|
2766
2780
|
return e.tabs && e.tabs[l].content;
|
|
2767
2781
|
}
|
|
2768
|
-
function
|
|
2782
|
+
function a(l) {
|
|
2769
2783
|
return l === t ? e.activeTabStyle : {};
|
|
2770
2784
|
}
|
|
2771
|
-
function
|
|
2785
|
+
function r(l) {
|
|
2772
2786
|
l === t && e.collapsible ? n(-1) : n(l);
|
|
2773
2787
|
}
|
|
2774
2788
|
return /* @__PURE__ */ D("div", { children: [
|
|
@@ -2786,8 +2800,8 @@ function On(e) {
|
|
|
2786
2800
|
"span",
|
|
2787
2801
|
{
|
|
2788
2802
|
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2789
|
-
style:
|
|
2790
|
-
onClick: (d) =>
|
|
2803
|
+
style: a(c),
|
|
2804
|
+
onClick: (d) => r(c),
|
|
2791
2805
|
children: /* @__PURE__ */ s(
|
|
2792
2806
|
M,
|
|
2793
2807
|
{
|
|
@@ -2817,11 +2831,10 @@ function On(e) {
|
|
|
2817
2831
|
) }) : null
|
|
2818
2832
|
] });
|
|
2819
2833
|
}
|
|
2820
|
-
const
|
|
2834
|
+
const Un = {
|
|
2821
2835
|
shouldReceiveBuilderProps: {},
|
|
2822
2836
|
name: "Text",
|
|
2823
2837
|
static: !0,
|
|
2824
|
-
isRSC: !0,
|
|
2825
2838
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
2826
2839
|
inputs: [{
|
|
2827
2840
|
name: "text",
|
|
@@ -2837,7 +2850,7 @@ const _n = {
|
|
|
2837
2850
|
textAlign: "center"
|
|
2838
2851
|
}
|
|
2839
2852
|
};
|
|
2840
|
-
function
|
|
2853
|
+
function Hn(e) {
|
|
2841
2854
|
var t;
|
|
2842
2855
|
return /* @__PURE__ */ s(
|
|
2843
2856
|
"div",
|
|
@@ -2850,7 +2863,7 @@ function Un(e) {
|
|
|
2850
2863
|
}
|
|
2851
2864
|
);
|
|
2852
2865
|
}
|
|
2853
|
-
const
|
|
2866
|
+
const Mn = {
|
|
2854
2867
|
name: "Custom Code",
|
|
2855
2868
|
static: !0,
|
|
2856
2869
|
requiredPermissions: ["editCode"],
|
|
@@ -2873,8 +2886,8 @@ const Hn = {
|
|
|
2873
2886
|
advanced: !0
|
|
2874
2887
|
}]
|
|
2875
2888
|
};
|
|
2876
|
-
function
|
|
2877
|
-
const t = z(null), [n, i] = k(() => []), [
|
|
2889
|
+
function qn(e) {
|
|
2890
|
+
const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []);
|
|
2878
2891
|
function o() {
|
|
2879
2892
|
var c;
|
|
2880
2893
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2893,10 +2906,10 @@ function Mn(e) {
|
|
|
2893
2906
|
"application/javascript",
|
|
2894
2907
|
"application/ecmascript"
|
|
2895
2908
|
].includes(h.type)) {
|
|
2896
|
-
if (
|
|
2909
|
+
if (a.includes(h.innerText))
|
|
2897
2910
|
continue;
|
|
2898
2911
|
try {
|
|
2899
|
-
|
|
2912
|
+
a.push(h.innerText), new Function(h.innerText)();
|
|
2900
2913
|
} catch (g) {
|
|
2901
2914
|
ee.warn(
|
|
2902
2915
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
@@ -2919,7 +2932,7 @@ function Mn(e) {
|
|
|
2919
2932
|
}
|
|
2920
2933
|
);
|
|
2921
2934
|
}
|
|
2922
|
-
const
|
|
2935
|
+
const jn = {
|
|
2923
2936
|
name: "Embed",
|
|
2924
2937
|
static: !0,
|
|
2925
2938
|
inputs: [{
|
|
@@ -2934,9 +2947,9 @@ const qn = {
|
|
|
2934
2947
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2935
2948
|
hideFromUI: !0
|
|
2936
2949
|
}]
|
|
2937
|
-
},
|
|
2938
|
-
function
|
|
2939
|
-
const t = z(null), [n, i] = k(() => []), [
|
|
2950
|
+
}, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
|
|
2951
|
+
function Jn(e) {
|
|
2952
|
+
const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []), [o, l] = k(() => !1);
|
|
2940
2953
|
function c() {
|
|
2941
2954
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2942
2955
|
return;
|
|
@@ -2947,9 +2960,9 @@ function Kn(e) {
|
|
|
2947
2960
|
n.push(g.src);
|
|
2948
2961
|
const u = document.createElement("script");
|
|
2949
2962
|
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
2950
|
-
} else if (
|
|
2963
|
+
} else if (Kn(g) && !a.includes(g.innerText))
|
|
2951
2964
|
try {
|
|
2952
|
-
|
|
2965
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2953
2966
|
} catch (u) {
|
|
2954
2967
|
ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
2955
2968
|
}
|
|
@@ -2966,7 +2979,7 @@ function Kn(e) {
|
|
|
2966
2979
|
}
|
|
2967
2980
|
);
|
|
2968
2981
|
}
|
|
2969
|
-
const
|
|
2982
|
+
const Gn = {
|
|
2970
2983
|
name: "Form:Form",
|
|
2971
2984
|
// editableTags: ['builder-form-error']
|
|
2972
2985
|
defaults: {
|
|
@@ -3203,12 +3216,12 @@ const Jn = {
|
|
|
3203
3216
|
builderComponents: !0,
|
|
3204
3217
|
builderLinkComponent: !0
|
|
3205
3218
|
}
|
|
3206
|
-
},
|
|
3219
|
+
}, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
|
|
3207
3220
|
const e = process.env.NODE_ENV || "production";
|
|
3208
|
-
return
|
|
3221
|
+
return Qn.includes(e) ? e : "production";
|
|
3209
3222
|
};
|
|
3210
|
-
function
|
|
3211
|
-
const t = z(null), [n, i] = k(() => "unsubmitted"), [
|
|
3223
|
+
function Xn(e) {
|
|
3224
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
|
|
3212
3225
|
function c(u) {
|
|
3213
3226
|
var f, m;
|
|
3214
3227
|
const x = {
|
|
@@ -3240,25 +3253,25 @@ function Yn(e) {
|
|
|
3240
3253
|
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3241
3254
|
).map((p) => {
|
|
3242
3255
|
let v;
|
|
3243
|
-
const
|
|
3256
|
+
const V = p.name;
|
|
3244
3257
|
if (p instanceof HTMLInputElement)
|
|
3245
3258
|
if (p.type === "radio") {
|
|
3246
3259
|
if (p.checked)
|
|
3247
3260
|
return v = p.value, {
|
|
3248
|
-
key:
|
|
3261
|
+
key: V,
|
|
3249
3262
|
value: v
|
|
3250
3263
|
};
|
|
3251
3264
|
} else if (p.type === "checkbox")
|
|
3252
3265
|
v = p.checked;
|
|
3253
3266
|
else if (p.type === "number" || p.type === "range") {
|
|
3254
|
-
const
|
|
3255
|
-
isNaN(
|
|
3267
|
+
const A = p.valueAsNumber;
|
|
3268
|
+
isNaN(A) || (v = A);
|
|
3256
3269
|
} else
|
|
3257
3270
|
p.type === "file" ? v = p.files : v = p.value;
|
|
3258
3271
|
else
|
|
3259
3272
|
v = p.value;
|
|
3260
3273
|
return {
|
|
3261
|
-
key:
|
|
3274
|
+
key: V,
|
|
3262
3275
|
value: v
|
|
3263
3276
|
};
|
|
3264
3277
|
});
|
|
@@ -3269,8 +3282,8 @@ function Yn(e) {
|
|
|
3269
3282
|
b = S;
|
|
3270
3283
|
else {
|
|
3271
3284
|
const p = {};
|
|
3272
|
-
Array.from(T).forEach(({ value: v, key:
|
|
3273
|
-
|
|
3285
|
+
Array.from(T).forEach(({ value: v, key: V }) => {
|
|
3286
|
+
He(p, V, v);
|
|
3274
3287
|
}), b = JSON.stringify(p);
|
|
3275
3288
|
}
|
|
3276
3289
|
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
@@ -3282,26 +3295,26 @@ function Yn(e) {
|
|
|
3282
3295
|
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3283
3296
|
return;
|
|
3284
3297
|
}
|
|
3285
|
-
const H = `${
|
|
3298
|
+
const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3286
3299
|
e.sendSubmissionsToEmail || ""
|
|
3287
3300
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3288
|
-
|
|
3301
|
+
Le(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
|
|
3289
3302
|
async (p) => {
|
|
3290
|
-
var
|
|
3303
|
+
var A, $;
|
|
3291
3304
|
let v;
|
|
3292
|
-
const
|
|
3293
|
-
if (
|
|
3305
|
+
const V = p.headers.get("content-type");
|
|
3306
|
+
if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3294
3307
|
const R = new CustomEvent("submit:error", {
|
|
3295
3308
|
detail: { error: v, status: p.status }
|
|
3296
3309
|
});
|
|
3297
|
-
if ((
|
|
3310
|
+
if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3298
3311
|
return;
|
|
3299
|
-
|
|
3300
|
-
let
|
|
3301
|
-
typeof
|
|
3312
|
+
r(v), i("error");
|
|
3313
|
+
let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3314
|
+
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3302
3315
|
return;
|
|
3303
3316
|
}
|
|
3304
|
-
if (
|
|
3317
|
+
if (r(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3305
3318
|
const R = new CustomEvent("submit:success", {
|
|
3306
3319
|
detail: { res: p, body: v }
|
|
3307
3320
|
});
|
|
@@ -3312,10 +3325,10 @@ function Yn(e) {
|
|
|
3312
3325
|
}
|
|
3313
3326
|
if (e.successUrl)
|
|
3314
3327
|
if (t.current) {
|
|
3315
|
-
const
|
|
3328
|
+
const P = new CustomEvent("route", {
|
|
3316
3329
|
detail: { url: e.successUrl }
|
|
3317
3330
|
});
|
|
3318
|
-
t.current.dispatchEvent(
|
|
3331
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3319
3332
|
} else
|
|
3320
3333
|
location.href = e.successUrl;
|
|
3321
3334
|
}
|
|
@@ -3324,12 +3337,12 @@ function Yn(e) {
|
|
|
3324
3337
|
const v = new CustomEvent("submit:error", {
|
|
3325
3338
|
detail: { error: p }
|
|
3326
3339
|
});
|
|
3327
|
-
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (
|
|
3340
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (r(p), i("error"));
|
|
3328
3341
|
}
|
|
3329
3342
|
);
|
|
3330
3343
|
}
|
|
3331
3344
|
}
|
|
3332
|
-
return /* @__PURE__ */ D(
|
|
3345
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
3333
3346
|
" ",
|
|
3334
3347
|
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3335
3348
|
" ",
|
|
@@ -3361,7 +3374,7 @@ function Yn(e) {
|
|
|
3361
3374
|
context: e.builderContext
|
|
3362
3375
|
}
|
|
3363
3376
|
) : null,
|
|
3364
|
-
d() === "error" &&
|
|
3377
|
+
d() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(a) }) : null,
|
|
3365
3378
|
d() === "success" ? /* @__PURE__ */ s(
|
|
3366
3379
|
M,
|
|
3367
3380
|
{
|
|
@@ -3376,7 +3389,7 @@ function Yn(e) {
|
|
|
3376
3389
|
" "
|
|
3377
3390
|
] });
|
|
3378
3391
|
}
|
|
3379
|
-
const
|
|
3392
|
+
const Zn = {
|
|
3380
3393
|
name: "Form:Input",
|
|
3381
3394
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3382
3395
|
inputs: [
|
|
@@ -3428,8 +3441,8 @@ const Xn = {
|
|
|
3428
3441
|
borderColor: "#ccc"
|
|
3429
3442
|
}
|
|
3430
3443
|
};
|
|
3431
|
-
function
|
|
3432
|
-
return /* @__PURE__ */
|
|
3444
|
+
function ei(e) {
|
|
3445
|
+
return /* @__PURE__ */ Ue(
|
|
3433
3446
|
"input",
|
|
3434
3447
|
{
|
|
3435
3448
|
...e.attributes,
|
|
@@ -3443,7 +3456,7 @@ function Zn(e) {
|
|
|
3443
3456
|
}
|
|
3444
3457
|
);
|
|
3445
3458
|
}
|
|
3446
|
-
const
|
|
3459
|
+
const ti = {
|
|
3447
3460
|
name: "Form:Select",
|
|
3448
3461
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3449
3462
|
defaultStyles: {
|
|
@@ -3486,9 +3499,9 @@ const ei = {
|
|
|
3486
3499
|
static: !0,
|
|
3487
3500
|
noWrap: !0
|
|
3488
3501
|
};
|
|
3489
|
-
function
|
|
3502
|
+
function ni(e) {
|
|
3490
3503
|
var t;
|
|
3491
|
-
return /* @__PURE__ */
|
|
3504
|
+
return /* @__PURE__ */ Ue(
|
|
3492
3505
|
"select",
|
|
3493
3506
|
{
|
|
3494
3507
|
...e.attributes,
|
|
@@ -3501,7 +3514,7 @@ function ti(e) {
|
|
|
3501
3514
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3502
3515
|
);
|
|
3503
3516
|
}
|
|
3504
|
-
const
|
|
3517
|
+
const ii = {
|
|
3505
3518
|
name: "Form:SubmitButton",
|
|
3506
3519
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3507
3520
|
defaultStyles: {
|
|
@@ -3527,7 +3540,7 @@ const ni = {
|
|
|
3527
3540
|
// TODO: defaultChildren
|
|
3528
3541
|
// canHaveChildren: true,
|
|
3529
3542
|
};
|
|
3530
|
-
function
|
|
3543
|
+
function ai(e) {
|
|
3531
3544
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3532
3545
|
}
|
|
3533
3546
|
const ri = {
|
|
@@ -3567,7 +3580,7 @@ const ri = {
|
|
|
3567
3580
|
static: !0,
|
|
3568
3581
|
noWrap: !0
|
|
3569
3582
|
};
|
|
3570
|
-
function
|
|
3583
|
+
function oi(e) {
|
|
3571
3584
|
return /* @__PURE__ */ s(
|
|
3572
3585
|
"textarea",
|
|
3573
3586
|
{
|
|
@@ -3580,8 +3593,7 @@ function ai(e) {
|
|
|
3580
3593
|
}
|
|
3581
3594
|
);
|
|
3582
3595
|
}
|
|
3583
|
-
const
|
|
3584
|
-
// friendlyName?
|
|
3596
|
+
const li = {
|
|
3585
3597
|
name: "Raw:Img",
|
|
3586
3598
|
hideFromInsertMenu: !0,
|
|
3587
3599
|
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",
|
|
@@ -3589,35 +3601,71 @@ const oi = {
|
|
|
3589
3601
|
name: "image",
|
|
3590
3602
|
bubble: !0,
|
|
3591
3603
|
type: "file",
|
|
3592
|
-
allowedFileTypes:
|
|
3604
|
+
allowedFileTypes: ke,
|
|
3593
3605
|
required: !0
|
|
3606
|
+
}, {
|
|
3607
|
+
name: "backgroundSize",
|
|
3608
|
+
type: "text",
|
|
3609
|
+
defaultValue: "cover",
|
|
3610
|
+
enum: [{
|
|
3611
|
+
label: "contain",
|
|
3612
|
+
value: "contain",
|
|
3613
|
+
helperText: "The image should never get cropped"
|
|
3614
|
+
}, {
|
|
3615
|
+
label: "cover",
|
|
3616
|
+
value: "cover",
|
|
3617
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
3618
|
+
}]
|
|
3619
|
+
}, {
|
|
3620
|
+
name: "backgroundPosition",
|
|
3621
|
+
type: "text",
|
|
3622
|
+
defaultValue: "center",
|
|
3623
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
3624
|
+
}, {
|
|
3625
|
+
name: "altText",
|
|
3626
|
+
type: "string",
|
|
3627
|
+
helperText: "Text to display when the user has images off"
|
|
3628
|
+
}, {
|
|
3629
|
+
name: "title",
|
|
3630
|
+
type: "string",
|
|
3631
|
+
helperText: "Text to display when hovering over the asset"
|
|
3632
|
+
}, {
|
|
3633
|
+
name: "aspectRatio",
|
|
3634
|
+
type: "number",
|
|
3635
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
3636
|
+
advanced: !0,
|
|
3637
|
+
defaultValue: 0.7041
|
|
3594
3638
|
}],
|
|
3595
|
-
noWrap: !0
|
|
3596
|
-
static: !0
|
|
3639
|
+
noWrap: !0
|
|
3597
3640
|
};
|
|
3598
|
-
function
|
|
3641
|
+
function si(e) {
|
|
3642
|
+
var n;
|
|
3599
3643
|
function t() {
|
|
3600
|
-
const
|
|
3601
|
-
|
|
3602
|
-
|
|
3644
|
+
const i = {
|
|
3645
|
+
...e.attributes,
|
|
3646
|
+
[K()]: `builder-raw-img ${e.attributes[K()] || ""}`
|
|
3647
|
+
};
|
|
3648
|
+
return delete i.style, i;
|
|
3603
3649
|
}
|
|
3604
3650
|
return /* @__PURE__ */ s(
|
|
3605
3651
|
"img",
|
|
3606
3652
|
{
|
|
3607
3653
|
loading: "lazy",
|
|
3608
|
-
style: {
|
|
3609
|
-
objectFit: e.backgroundSize || "cover",
|
|
3610
|
-
objectPosition: e.backgroundPosition || "center"
|
|
3611
|
-
},
|
|
3612
3654
|
alt: e.altText,
|
|
3655
|
+
title: e.title,
|
|
3613
3656
|
src: e.imgSrc || e.image,
|
|
3614
|
-
|
|
3615
|
-
|
|
3657
|
+
...t(),
|
|
3658
|
+
style: {
|
|
3659
|
+
objectFit: e.backgroundSize || "cover",
|
|
3660
|
+
objectPosition: e.backgroundPosition || "center",
|
|
3661
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
3662
|
+
...((n = e.attributes) == null ? void 0 : n.style) || {}
|
|
3663
|
+
}
|
|
3616
3664
|
},
|
|
3617
3665
|
U() && e.imgSrc || "default-key"
|
|
3618
3666
|
);
|
|
3619
3667
|
}
|
|
3620
|
-
const
|
|
3668
|
+
const ci = {
|
|
3621
3669
|
name: "Video",
|
|
3622
3670
|
canHaveChildren: !0,
|
|
3623
3671
|
defaultStyles: {
|
|
@@ -3628,14 +3676,14 @@ const si = {
|
|
|
3628
3676
|
inputs: [{
|
|
3629
3677
|
name: "video",
|
|
3630
3678
|
type: "file",
|
|
3631
|
-
allowedFileTypes:
|
|
3679
|
+
allowedFileTypes: An,
|
|
3632
3680
|
bubble: !0,
|
|
3633
3681
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3634
3682
|
required: !0
|
|
3635
3683
|
}, {
|
|
3636
3684
|
name: "posterImage",
|
|
3637
3685
|
type: "file",
|
|
3638
|
-
allowedFileTypes:
|
|
3686
|
+
allowedFileTypes: ke,
|
|
3639
3687
|
helperText: "Image to show before the video plays"
|
|
3640
3688
|
}, {
|
|
3641
3689
|
name: "autoPlay",
|
|
@@ -3702,7 +3750,7 @@ const si = {
|
|
|
3702
3750
|
builderBlock: !0
|
|
3703
3751
|
}
|
|
3704
3752
|
};
|
|
3705
|
-
function
|
|
3753
|
+
function ui(e) {
|
|
3706
3754
|
var o, l, c, d, h, g, u;
|
|
3707
3755
|
const t = z(null);
|
|
3708
3756
|
function n() {
|
|
@@ -3729,7 +3777,7 @@ function ci(e) {
|
|
|
3729
3777
|
...n()
|
|
3730
3778
|
};
|
|
3731
3779
|
}
|
|
3732
|
-
const [
|
|
3780
|
+
const [a, r] = k(() => {
|
|
3733
3781
|
});
|
|
3734
3782
|
return N(() => {
|
|
3735
3783
|
if (e.lazyLoad) {
|
|
@@ -3750,10 +3798,10 @@ function ci(e) {
|
|
|
3750
3798
|
}
|
|
3751
3799
|
});
|
|
3752
3800
|
});
|
|
3753
|
-
t.current && x.observe(t.current),
|
|
3801
|
+
t.current && x.observe(t.current), r(x);
|
|
3754
3802
|
}
|
|
3755
3803
|
}, []), N(() => () => {
|
|
3756
|
-
|
|
3804
|
+
a && a.disconnect();
|
|
3757
3805
|
}, []), /* @__PURE__ */ D(
|
|
3758
3806
|
"div",
|
|
3759
3807
|
{
|
|
@@ -3838,67 +3886,67 @@ function ci(e) {
|
|
|
3838
3886
|
}
|
|
3839
3887
|
);
|
|
3840
3888
|
}
|
|
3841
|
-
const
|
|
3842
|
-
component:
|
|
3843
|
-
...
|
|
3889
|
+
const di = () => [{
|
|
3890
|
+
component: qn,
|
|
3891
|
+
...Mn
|
|
3844
3892
|
}, {
|
|
3845
|
-
component:
|
|
3846
|
-
...
|
|
3893
|
+
component: Jn,
|
|
3894
|
+
...jn
|
|
3847
3895
|
}, {
|
|
3848
|
-
component:
|
|
3849
|
-
...
|
|
3896
|
+
component: Xn,
|
|
3897
|
+
...Gn
|
|
3850
3898
|
}, {
|
|
3851
|
-
component:
|
|
3852
|
-
...
|
|
3899
|
+
component: ei,
|
|
3900
|
+
...Zn
|
|
3853
3901
|
}, {
|
|
3854
|
-
component:
|
|
3855
|
-
...
|
|
3902
|
+
component: ai,
|
|
3903
|
+
...ii
|
|
3856
3904
|
}, {
|
|
3857
|
-
component:
|
|
3858
|
-
...
|
|
3905
|
+
component: ni,
|
|
3906
|
+
...ti
|
|
3859
3907
|
}, {
|
|
3860
|
-
component:
|
|
3908
|
+
component: oi,
|
|
3861
3909
|
...ri
|
|
3862
3910
|
}, {
|
|
3863
|
-
component:
|
|
3864
|
-
...
|
|
3865
|
-
}, {
|
|
3866
|
-
component: ci,
|
|
3867
|
-
...si
|
|
3868
|
-
}], Be = () => [{
|
|
3869
|
-
component: St,
|
|
3870
|
-
...En
|
|
3911
|
+
component: si,
|
|
3912
|
+
...li
|
|
3871
3913
|
}, {
|
|
3872
|
-
component:
|
|
3914
|
+
component: ui,
|
|
3915
|
+
...ci
|
|
3916
|
+
}], Ne = () => [{
|
|
3917
|
+
component: kt,
|
|
3873
3918
|
...Rn
|
|
3874
3919
|
}, {
|
|
3875
3920
|
component: un,
|
|
3876
3921
|
...Pn
|
|
3877
3922
|
}, {
|
|
3878
|
-
component:
|
|
3879
|
-
...
|
|
3923
|
+
component: dn,
|
|
3924
|
+
...Vn
|
|
3880
3925
|
}, {
|
|
3881
3926
|
component: hn,
|
|
3882
|
-
|
|
3927
|
+
...Bn
|
|
3883
3928
|
}, {
|
|
3884
|
-
component:
|
|
3929
|
+
component: bn,
|
|
3885
3930
|
...Wn
|
|
3886
3931
|
}, {
|
|
3887
|
-
component:
|
|
3888
|
-
...
|
|
3932
|
+
component: Fn,
|
|
3933
|
+
...Dn
|
|
3889
3934
|
}, {
|
|
3890
|
-
component:
|
|
3891
|
-
..._n
|
|
3892
|
-
}, ...nt.includes(F) ? [{
|
|
3893
|
-
component: Nn,
|
|
3894
|
-
...Bn
|
|
3895
|
-
}] : [], {
|
|
3896
|
-
component: On,
|
|
3935
|
+
component: Di,
|
|
3897
3936
|
...Ln
|
|
3898
3937
|
}, {
|
|
3899
|
-
component:
|
|
3900
|
-
...
|
|
3901
|
-
}, ...
|
|
3938
|
+
component: Hn,
|
|
3939
|
+
...Un
|
|
3940
|
+
}, ...it.includes(F) ? [{
|
|
3941
|
+
component: $n,
|
|
3942
|
+
...Nn
|
|
3943
|
+
}] : [], {
|
|
3944
|
+
component: _n,
|
|
3945
|
+
...On
|
|
3946
|
+
}, {
|
|
3947
|
+
component: En,
|
|
3948
|
+
...wn
|
|
3949
|
+
}, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3902
3950
|
function getAndSetVariantId() {
|
|
3903
3951
|
function setCookie(name, value, days) {
|
|
3904
3952
|
let expires = '';
|
|
@@ -3957,7 +4005,7 @@ const ui = () => [{
|
|
|
3957
4005
|
}).join('');
|
|
3958
4006
|
styleEl.innerHTML = newStyleStr;
|
|
3959
4007
|
}
|
|
3960
|
-
}`,
|
|
4008
|
+
}`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3961
4009
|
if (!navigator.cookieEnabled) {
|
|
3962
4010
|
return;
|
|
3963
4011
|
}
|
|
@@ -3991,29 +4039,29 @@ const ui = () => [{
|
|
|
3991
4039
|
thisScriptEl?.remove();
|
|
3992
4040
|
}
|
|
3993
4041
|
return;
|
|
3994
|
-
}`, rt = "builderIoAbTest",
|
|
4042
|
+
}`, rt = "builderIoAbTest", ot = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3995
4043
|
...t,
|
|
3996
4044
|
testVariationId: t.id,
|
|
3997
4045
|
id: e == null ? void 0 : e.id
|
|
3998
|
-
})),
|
|
4046
|
+
})), hi = ({
|
|
3999
4047
|
canTrack: e,
|
|
4000
4048
|
content: t
|
|
4001
|
-
}) => !(!(ae(t).length > 0) || !e || G()),
|
|
4002
|
-
window.${rt} = ${
|
|
4003
|
-
window.${
|
|
4004
|
-
`,
|
|
4049
|
+
}) => !(!(ae(t).length > 0) || !e || G()), bi = (e) => e === "react" || e === "reactNative", gi = F === "angular", lt = bi(F), yi = () => `
|
|
4050
|
+
window.${rt} = ${mi}
|
|
4051
|
+
window.${ot} = ${fi}
|
|
4052
|
+
`, pi = (e, t) => `
|
|
4005
4053
|
window.${rt}(
|
|
4006
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4007
|
-
)`,
|
|
4054
|
+
"${t}",${JSON.stringify(e)}, ${lt}, ${gi}
|
|
4055
|
+
)`, vi = ({
|
|
4008
4056
|
contentId: e,
|
|
4009
4057
|
variationId: t
|
|
4010
|
-
}) => `window.${
|
|
4011
|
-
"${t}", "${e}", ${
|
|
4058
|
+
}) => `window.${ot}(
|
|
4059
|
+
"${t}", "${e}", ${lt}
|
|
4012
4060
|
)`;
|
|
4013
|
-
function
|
|
4061
|
+
function $e(e) {
|
|
4014
4062
|
return Math.round(e * 1e3) / 1e3;
|
|
4015
4063
|
}
|
|
4016
|
-
const
|
|
4064
|
+
const xi = (e, t, n = !0) => {
|
|
4017
4065
|
if (!(e instanceof HTMLElement))
|
|
4018
4066
|
return null;
|
|
4019
4067
|
let i = n ? e : e.parentElement;
|
|
@@ -4024,39 +4072,39 @@ const vi = (e, t, n = !0) => {
|
|
|
4024
4072
|
return i;
|
|
4025
4073
|
} while (i = i.parentElement);
|
|
4026
4074
|
return null;
|
|
4027
|
-
},
|
|
4075
|
+
}, Si = (e) => xi(e, (t) => {
|
|
4028
4076
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4029
4077
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4030
|
-
}),
|
|
4078
|
+
}), We = ({
|
|
4031
4079
|
event: e,
|
|
4032
4080
|
target: t
|
|
4033
4081
|
}) => {
|
|
4034
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
4082
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = $e(i / n.width), o = $e(a / n.height);
|
|
4035
4083
|
return {
|
|
4036
|
-
x:
|
|
4084
|
+
x: r,
|
|
4037
4085
|
y: o
|
|
4038
4086
|
};
|
|
4039
|
-
},
|
|
4040
|
-
const t = e.target, n = t &&
|
|
4087
|
+
}, ki = (e) => {
|
|
4088
|
+
const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4041
4089
|
return {
|
|
4042
4090
|
targetBuilderElement: i || void 0,
|
|
4043
4091
|
metadata: {
|
|
4044
|
-
targetOffset: t ?
|
|
4092
|
+
targetOffset: t ? We({
|
|
4045
4093
|
event: e,
|
|
4046
4094
|
target: t
|
|
4047
4095
|
}) : void 0,
|
|
4048
|
-
builderTargetOffset: n ?
|
|
4096
|
+
builderTargetOffset: n ? We({
|
|
4049
4097
|
event: e,
|
|
4050
4098
|
target: n
|
|
4051
4099
|
}) : void 0,
|
|
4052
4100
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4053
4101
|
}
|
|
4054
4102
|
};
|
|
4055
|
-
},
|
|
4056
|
-
var
|
|
4057
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (
|
|
4058
|
-
let
|
|
4059
|
-
if (i && t && n && (
|
|
4103
|
+
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(F) && (U() || oe()), Ti = (e) => {
|
|
4104
|
+
var r, o;
|
|
4105
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
4106
|
+
let a = "";
|
|
4107
|
+
if (i && t && n && (a += `
|
|
4060
4108
|
@font-face {
|
|
4061
4109
|
font-family: "${t}";
|
|
4062
4110
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -4068,7 +4116,7 @@ font-weight: 400;
|
|
|
4068
4116
|
if (!(String(Number(l)) === l))
|
|
4069
4117
|
continue;
|
|
4070
4118
|
const d = e.files[l];
|
|
4071
|
-
d && d !== i && (
|
|
4119
|
+
d && d !== i && (a += `
|
|
4072
4120
|
@font-face {
|
|
4073
4121
|
font-family: "${t}";
|
|
4074
4122
|
src: url('${d}') format('woff2');
|
|
@@ -4077,16 +4125,16 @@ font-weight: ${l};
|
|
|
4077
4125
|
}
|
|
4078
4126
|
`.trim());
|
|
4079
4127
|
}
|
|
4080
|
-
return
|
|
4081
|
-
},
|
|
4128
|
+
return a;
|
|
4129
|
+
}, Ii = ({
|
|
4082
4130
|
customFonts: e
|
|
4083
4131
|
}) => {
|
|
4084
4132
|
var t;
|
|
4085
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4086
|
-
},
|
|
4133
|
+
return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4134
|
+
}, wi = ({
|
|
4087
4135
|
cssCode: e,
|
|
4088
4136
|
contentId: t
|
|
4089
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4137
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
|
|
4090
4138
|
.builder-button {
|
|
4091
4139
|
all: unset;
|
|
4092
4140
|
}
|
|
@@ -4103,41 +4151,46 @@ font-weight: ${l};
|
|
|
4103
4151
|
text-align: inherit;
|
|
4104
4152
|
font-family: inherit;
|
|
4105
4153
|
}
|
|
4106
|
-
`,
|
|
4107
|
-
function
|
|
4154
|
+
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4155
|
+
function Vi(e) {
|
|
4108
4156
|
var H, q, p;
|
|
4109
4157
|
const t = z(null);
|
|
4110
|
-
k(() => !1)
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4158
|
+
k(() => !1), k(
|
|
4159
|
+
() => e.builderContextSignal
|
|
4160
|
+
);
|
|
4161
|
+
const [n, i] = k(() => null), [a, r] = k(() => "");
|
|
4162
|
+
function o(v, V) {
|
|
4163
|
+
var $, R;
|
|
4164
|
+
const A = {
|
|
4115
4165
|
...e.builderContextSignal.rootState,
|
|
4116
4166
|
...v
|
|
4117
4167
|
};
|
|
4118
|
-
e.builderContextSignal.rootSetState ? (
|
|
4119
|
-
...
|
|
4120
|
-
rootState:
|
|
4168
|
+
e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
|
|
4169
|
+
...P,
|
|
4170
|
+
rootState: A
|
|
4171
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
|
|
4172
|
+
...P,
|
|
4173
|
+
rootState: A
|
|
4121
4174
|
}));
|
|
4122
4175
|
}
|
|
4123
|
-
function l(v) {
|
|
4124
|
-
var
|
|
4125
|
-
const
|
|
4176
|
+
function l(v, V) {
|
|
4177
|
+
var $, R, P, I, B;
|
|
4178
|
+
const A = {
|
|
4126
4179
|
...e.builderContextSignal.content,
|
|
4127
4180
|
...v,
|
|
4128
4181
|
data: {
|
|
4129
|
-
...(
|
|
4182
|
+
...($ = e.builderContextSignal.content) == null ? void 0 : $.data,
|
|
4130
4183
|
...v == null ? void 0 : v.data
|
|
4131
4184
|
},
|
|
4132
4185
|
meta: {
|
|
4133
|
-
...(
|
|
4186
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4134
4187
|
...v == null ? void 0 : v.meta,
|
|
4135
|
-
breakpoints: ((
|
|
4188
|
+
breakpoints: ((P = v == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints) || ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints)
|
|
4136
4189
|
}
|
|
4137
4190
|
};
|
|
4138
|
-
e.setBuilderContextSignal((
|
|
4139
|
-
...
|
|
4140
|
-
content:
|
|
4191
|
+
e.setBuilderContextSignal((C) => ({
|
|
4192
|
+
...C,
|
|
4193
|
+
content: A
|
|
4141
4194
|
}));
|
|
4142
4195
|
}
|
|
4143
4196
|
function c() {
|
|
@@ -4150,60 +4203,60 @@ function Pi(e) {
|
|
|
4150
4203
|
() => e.contentWrapper || "div"
|
|
4151
4204
|
);
|
|
4152
4205
|
function g(v) {
|
|
4153
|
-
return
|
|
4206
|
+
return dt({
|
|
4154
4207
|
model: e.model,
|
|
4155
4208
|
trustedHosts: e.trustedHosts,
|
|
4156
4209
|
callbacks: {
|
|
4157
|
-
configureSdk: (
|
|
4210
|
+
configureSdk: (V) => {
|
|
4158
4211
|
var R;
|
|
4159
|
-
const { breakpoints:
|
|
4160
|
-
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) ||
|
|
4212
|
+
const { breakpoints: A, contentId: $ } = V;
|
|
4213
|
+
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
|
|
4161
4214
|
meta: {
|
|
4162
|
-
breakpoints:
|
|
4215
|
+
breakpoints: A
|
|
4163
4216
|
}
|
|
4164
4217
|
});
|
|
4165
4218
|
},
|
|
4166
|
-
animation: (
|
|
4167
|
-
|
|
4219
|
+
animation: (V) => {
|
|
4220
|
+
Je(V);
|
|
4168
4221
|
},
|
|
4169
|
-
contentUpdate: (
|
|
4170
|
-
l(
|
|
4222
|
+
contentUpdate: (V, A) => {
|
|
4223
|
+
l(V);
|
|
4171
4224
|
},
|
|
4172
|
-
stateUpdate: (
|
|
4173
|
-
o(
|
|
4225
|
+
stateUpdate: (V, A) => {
|
|
4226
|
+
o(V);
|
|
4174
4227
|
}
|
|
4175
4228
|
}
|
|
4176
4229
|
})(v);
|
|
4177
4230
|
}
|
|
4178
4231
|
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
|
|
4179
4232
|
function S(v) {
|
|
4180
|
-
var
|
|
4233
|
+
var V, A;
|
|
4181
4234
|
if (e.builderContextSignal.content) {
|
|
4182
|
-
const $ = (
|
|
4183
|
-
|
|
4235
|
+
const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4236
|
+
Ie({
|
|
4184
4237
|
apiHost: e.apiHost,
|
|
4185
4238
|
type: "click",
|
|
4186
4239
|
canTrack: Z(e.canTrack),
|
|
4187
4240
|
contentId: R,
|
|
4188
4241
|
apiKey: e.apiKey,
|
|
4189
4242
|
variationId: $ !== R ? $ : void 0,
|
|
4190
|
-
...
|
|
4243
|
+
...ki(v),
|
|
4191
4244
|
unique: !y
|
|
4192
4245
|
});
|
|
4193
4246
|
}
|
|
4194
4247
|
y || b(!0);
|
|
4195
4248
|
}
|
|
4196
4249
|
function T() {
|
|
4197
|
-
var
|
|
4198
|
-
const v = ($ = (
|
|
4250
|
+
var V, A, $;
|
|
4251
|
+
const v = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
|
|
4199
4252
|
Object.entries(v).forEach(
|
|
4200
|
-
([R,
|
|
4201
|
-
if (!
|
|
4253
|
+
([R, P]) => {
|
|
4254
|
+
if (!P)
|
|
4202
4255
|
return;
|
|
4203
|
-
const
|
|
4256
|
+
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4204
4257
|
if (f[R] || u[R] && !U())
|
|
4205
4258
|
return;
|
|
4206
|
-
const B =
|
|
4259
|
+
const B = I ? P.request.url : P;
|
|
4207
4260
|
f[R] = !0;
|
|
4208
4261
|
const C = B.replace(
|
|
4209
4262
|
/{{([^}]+)}}/g,
|
|
@@ -4216,16 +4269,16 @@ function Pi(e) {
|
|
|
4216
4269
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4217
4270
|
})
|
|
4218
4271
|
)
|
|
4219
|
-
), W =
|
|
4272
|
+
), W = I ? {
|
|
4220
4273
|
url: C,
|
|
4221
|
-
method:
|
|
4222
|
-
headers:
|
|
4223
|
-
body:
|
|
4274
|
+
method: P.request.method,
|
|
4275
|
+
headers: P.request.headers,
|
|
4276
|
+
body: P.request.body
|
|
4224
4277
|
} : {
|
|
4225
4278
|
url: C,
|
|
4226
4279
|
method: "GET"
|
|
4227
4280
|
};
|
|
4228
|
-
|
|
4281
|
+
Le(JSON.stringify(W));
|
|
4229
4282
|
const L = {
|
|
4230
4283
|
method: W.method,
|
|
4231
4284
|
headers: W.headers,
|
|
@@ -4238,7 +4291,7 @@ function Pi(e) {
|
|
|
4238
4291
|
}).catch((O) => {
|
|
4239
4292
|
console.error(
|
|
4240
4293
|
"error fetching dynamic data",
|
|
4241
|
-
JSON.stringify(
|
|
4294
|
+
JSON.stringify(P),
|
|
4242
4295
|
O
|
|
4243
4296
|
);
|
|
4244
4297
|
}).finally(() => {
|
|
@@ -4253,7 +4306,7 @@ function Pi(e) {
|
|
|
4253
4306
|
"builder:component:stateChange",
|
|
4254
4307
|
{
|
|
4255
4308
|
detail: {
|
|
4256
|
-
state:
|
|
4309
|
+
state: ve(e.builderContextSignal.rootState),
|
|
4257
4310
|
ref: {
|
|
4258
4311
|
name: e.model
|
|
4259
4312
|
}
|
|
@@ -4264,9 +4317,9 @@ function Pi(e) {
|
|
|
4264
4317
|
}
|
|
4265
4318
|
const _ = z(!1);
|
|
4266
4319
|
return _.current || (T(), E(), _.current = !0), N(() => {
|
|
4267
|
-
var v,
|
|
4320
|
+
var v, V, A, $, R;
|
|
4268
4321
|
if (G()) {
|
|
4269
|
-
U() && !e.isNestedRender && (window.addEventListener("message", g),
|
|
4322
|
+
U() && !e.isNestedRender && (window.addEventListener("message", g), st({
|
|
4270
4323
|
...e.locale ? {
|
|
4271
4324
|
locale: e.locale
|
|
4272
4325
|
} : {},
|
|
@@ -4283,33 +4336,33 @@ function Pi(e) {
|
|
|
4283
4336
|
).forEach((C) => {
|
|
4284
4337
|
var W, L;
|
|
4285
4338
|
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4286
|
-
const O =
|
|
4339
|
+
const O = ct(C);
|
|
4287
4340
|
(L = window.parent) == null || L.postMessage(O, "*");
|
|
4288
4341
|
}
|
|
4289
4342
|
}), window.addEventListener(
|
|
4290
4343
|
"builder:component:stateChangeListenerActivated",
|
|
4291
4344
|
E
|
|
4292
4345
|
));
|
|
4293
|
-
const
|
|
4294
|
-
name: `builder.tests.${(
|
|
4346
|
+
const P = e.builderContextSignal.content && Z(e.canTrack), I = ut({
|
|
4347
|
+
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4295
4348
|
canTrack: !0
|
|
4296
|
-
}), B = (
|
|
4297
|
-
if (
|
|
4349
|
+
}), B = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4350
|
+
if (P && B === I) {
|
|
4298
4351
|
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4299
|
-
|
|
4352
|
+
Ie({
|
|
4300
4353
|
apiHost: e.apiHost,
|
|
4301
4354
|
type: "impression",
|
|
4302
4355
|
canTrack: !0,
|
|
4303
4356
|
contentId: C,
|
|
4304
4357
|
apiKey: W,
|
|
4305
|
-
variationId:
|
|
4358
|
+
variationId: I !== C ? I : void 0
|
|
4306
4359
|
});
|
|
4307
4360
|
}
|
|
4308
|
-
if (
|
|
4361
|
+
if (oe() && !U()) {
|
|
4309
4362
|
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
|
|
4310
4363
|
`builder.overrides.${W}`
|
|
4311
4364
|
), O = C.get("apiKey") || C.get("builder.space");
|
|
4312
|
-
(W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) &&
|
|
4365
|
+
(W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Oe({
|
|
4313
4366
|
model: e.model,
|
|
4314
4367
|
apiKey: e.apiKey,
|
|
4315
4368
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -4335,29 +4388,29 @@ function Pi(e) {
|
|
|
4335
4388
|
}
|
|
4336
4389
|
}, [e.data]), N(() => {
|
|
4337
4390
|
if (e.locale) {
|
|
4338
|
-
if (
|
|
4391
|
+
if (a === e.locale)
|
|
4339
4392
|
return;
|
|
4340
4393
|
o({
|
|
4341
4394
|
locale: e.locale
|
|
4342
|
-
}),
|
|
4395
|
+
}), r(e.locale);
|
|
4343
4396
|
}
|
|
4344
4397
|
}, [e.locale]), N(() => () => {
|
|
4345
4398
|
G() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4346
4399
|
"builder:component:stateChangeListenerActivated",
|
|
4347
4400
|
E
|
|
4348
4401
|
));
|
|
4349
|
-
}, []), /* @__PURE__ */ s(
|
|
4402
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
|
|
4350
4403
|
d,
|
|
4351
4404
|
{
|
|
4352
4405
|
ref: t,
|
|
4353
4406
|
onClick: (v) => S(v),
|
|
4354
4407
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4355
4408
|
"builder-model": e.model,
|
|
4356
|
-
className:
|
|
4409
|
+
className: Pi(
|
|
4357
4410
|
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4358
4411
|
),
|
|
4359
4412
|
style: {
|
|
4360
|
-
display: !e.builderContextSignal.content &&
|
|
4413
|
+
display: !e.builderContextSignal.content && De() ? "none" : void 0
|
|
4361
4414
|
},
|
|
4362
4415
|
...c(),
|
|
4363
4416
|
...e.contentWrapperProps,
|
|
@@ -4365,17 +4418,17 @@ function Pi(e) {
|
|
|
4365
4418
|
}
|
|
4366
4419
|
) : null });
|
|
4367
4420
|
}
|
|
4368
|
-
function
|
|
4421
|
+
function Ai(e) {
|
|
4369
4422
|
const [t, n] = k(
|
|
4370
4423
|
() => `
|
|
4371
|
-
${
|
|
4424
|
+
${wi({
|
|
4372
4425
|
cssCode: e.cssCode,
|
|
4373
4426
|
contentId: e.contentId
|
|
4374
4427
|
})}
|
|
4375
|
-
${
|
|
4428
|
+
${Ii({
|
|
4376
4429
|
customFonts: e.customFonts
|
|
4377
4430
|
})}
|
|
4378
|
-
${
|
|
4431
|
+
${Ri(e.isNestedRender)}
|
|
4379
4432
|
`.trim()
|
|
4380
4433
|
);
|
|
4381
4434
|
return /* @__PURE__ */ s(
|
|
@@ -4387,24 +4440,24 @@ ${Ei(e.isNestedRender)}
|
|
|
4387
4440
|
}
|
|
4388
4441
|
);
|
|
4389
4442
|
}
|
|
4390
|
-
const
|
|
4443
|
+
const Bi = ({
|
|
4391
4444
|
content: e,
|
|
4392
4445
|
data: t,
|
|
4393
4446
|
locale: n
|
|
4394
4447
|
}) => {
|
|
4395
|
-
var
|
|
4396
|
-
const i = {},
|
|
4448
|
+
var r, o, l;
|
|
4449
|
+
const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
4397
4450
|
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
|
|
4398
4451
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4399
4452
|
}), {
|
|
4400
4453
|
...i,
|
|
4401
|
-
...
|
|
4454
|
+
...a,
|
|
4402
4455
|
...t,
|
|
4403
4456
|
...n ? {
|
|
4404
4457
|
locale: n
|
|
4405
4458
|
} : {}
|
|
4406
4459
|
};
|
|
4407
|
-
},
|
|
4460
|
+
}, Ni = ({
|
|
4408
4461
|
content: e,
|
|
4409
4462
|
data: t
|
|
4410
4463
|
}) => e ? {
|
|
@@ -4415,12 +4468,12 @@ const Ai = ({
|
|
|
4415
4468
|
},
|
|
4416
4469
|
meta: e == null ? void 0 : e.meta
|
|
4417
4470
|
} : void 0;
|
|
4418
|
-
function
|
|
4471
|
+
function Fe(e) {
|
|
4419
4472
|
var d, h, g, u, x, f, m, y, b;
|
|
4420
4473
|
const [t, n] = k(
|
|
4421
4474
|
() => {
|
|
4422
4475
|
var S, T;
|
|
4423
|
-
return
|
|
4476
|
+
return vi({
|
|
4424
4477
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4425
4478
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4426
4479
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4434,27 +4487,27 @@ function De(e) {
|
|
|
4434
4487
|
rootState: S
|
|
4435
4488
|
}));
|
|
4436
4489
|
}
|
|
4437
|
-
const [
|
|
4490
|
+
const [a, r] = k(
|
|
4438
4491
|
() => [
|
|
4439
|
-
...
|
|
4492
|
+
...Ne(),
|
|
4440
4493
|
...e.customComponents || []
|
|
4441
4494
|
].reduce(
|
|
4442
4495
|
(S, { component: T, ...E }) => ({
|
|
4443
4496
|
...S,
|
|
4444
4497
|
[E.name]: {
|
|
4445
4498
|
component: T,
|
|
4446
|
-
...
|
|
4499
|
+
...we(E)
|
|
4447
4500
|
}
|
|
4448
4501
|
}),
|
|
4449
4502
|
{}
|
|
4450
4503
|
)
|
|
4451
4504
|
), [o, l] = k(() => ({
|
|
4452
|
-
content:
|
|
4505
|
+
content: Ni({
|
|
4453
4506
|
content: e.content,
|
|
4454
4507
|
data: e.data
|
|
4455
4508
|
}),
|
|
4456
4509
|
localState: void 0,
|
|
4457
|
-
rootState:
|
|
4510
|
+
rootState: Bi({
|
|
4458
4511
|
content: e.content,
|
|
4459
4512
|
data: e.data,
|
|
4460
4513
|
locale: e.locale
|
|
@@ -4465,12 +4518,12 @@ function De(e) {
|
|
|
4465
4518
|
apiKey: e.apiKey,
|
|
4466
4519
|
apiVersion: e.apiVersion,
|
|
4467
4520
|
componentInfos: [
|
|
4468
|
-
...
|
|
4521
|
+
...Ne(),
|
|
4469
4522
|
...e.customComponents || []
|
|
4470
4523
|
].reduce(
|
|
4471
4524
|
(S, { component: T, ...E }) => ({
|
|
4472
4525
|
...S,
|
|
4473
|
-
[E.name]:
|
|
4526
|
+
[E.name]: we(E)
|
|
4474
4527
|
}),
|
|
4475
4528
|
{}
|
|
4476
4529
|
),
|
|
@@ -4497,13 +4550,13 @@ function De(e) {
|
|
|
4497
4550
|
}), c.current = !0;
|
|
4498
4551
|
}
|
|
4499
4552
|
return /* @__PURE__ */ s(
|
|
4500
|
-
|
|
4553
|
+
Me.Provider,
|
|
4501
4554
|
{
|
|
4502
4555
|
value: {
|
|
4503
|
-
registeredComponents:
|
|
4556
|
+
registeredComponents: a
|
|
4504
4557
|
},
|
|
4505
4558
|
children: /* @__PURE__ */ D(
|
|
4506
|
-
|
|
4559
|
+
Vi,
|
|
4507
4560
|
{
|
|
4508
4561
|
apiHost: e.apiHost,
|
|
4509
4562
|
nonce: e.nonce,
|
|
@@ -4524,7 +4577,7 @@ function De(e) {
|
|
|
4524
4577
|
setBuilderContextSignal: l,
|
|
4525
4578
|
children: [
|
|
4526
4579
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4527
|
-
|
|
4580
|
+
J,
|
|
4528
4581
|
{
|
|
4529
4582
|
id: "builderio-variant-visibility",
|
|
4530
4583
|
scriptStr: t,
|
|
@@ -4532,7 +4585,7 @@ function De(e) {
|
|
|
4532
4585
|
}
|
|
4533
4586
|
) : null,
|
|
4534
4587
|
/* @__PURE__ */ s(
|
|
4535
|
-
|
|
4588
|
+
Ai,
|
|
4536
4589
|
{
|
|
4537
4590
|
nonce: e.nonce || "",
|
|
4538
4591
|
isNestedRender: e.isNestedRender,
|
|
@@ -4546,7 +4599,7 @@ function De(e) {
|
|
|
4546
4599
|
{
|
|
4547
4600
|
blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4548
4601
|
context: o,
|
|
4549
|
-
registeredComponents:
|
|
4602
|
+
registeredComponents: a,
|
|
4550
4603
|
linkComponent: e.linkComponent
|
|
4551
4604
|
}
|
|
4552
4605
|
)
|
|
@@ -4556,17 +4609,17 @@ function De(e) {
|
|
|
4556
4609
|
}
|
|
4557
4610
|
);
|
|
4558
4611
|
}
|
|
4559
|
-
function
|
|
4612
|
+
function $i(e) {
|
|
4560
4613
|
var o;
|
|
4561
4614
|
const [t, n] = k(
|
|
4562
|
-
() =>
|
|
4615
|
+
() => hi({
|
|
4563
4616
|
canTrack: Z(e.canTrack),
|
|
4564
4617
|
content: e.content
|
|
4565
4618
|
})
|
|
4566
4619
|
);
|
|
4567
4620
|
function i() {
|
|
4568
4621
|
var l;
|
|
4569
|
-
return
|
|
4622
|
+
return pi(
|
|
4570
4623
|
ae(e.content).map((c) => ({
|
|
4571
4624
|
id: c.testVariationId,
|
|
4572
4625
|
testRatio: c.testRatio
|
|
@@ -4574,50 +4627,50 @@ function Ni(e) {
|
|
|
4574
4627
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4575
4628
|
);
|
|
4576
4629
|
}
|
|
4577
|
-
function
|
|
4630
|
+
function a() {
|
|
4578
4631
|
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4579
4632
|
}
|
|
4580
|
-
function
|
|
4633
|
+
function r() {
|
|
4581
4634
|
var l;
|
|
4582
4635
|
return t ? {
|
|
4583
4636
|
...e.content,
|
|
4584
4637
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4585
|
-
} :
|
|
4638
|
+
} : mt({
|
|
4586
4639
|
item: e.content,
|
|
4587
4640
|
canTrack: Z(e.canTrack)
|
|
4588
4641
|
});
|
|
4589
4642
|
}
|
|
4590
4643
|
return N(() => {
|
|
4591
|
-
}, []), /* @__PURE__ */ D(
|
|
4592
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(
|
|
4644
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
4645
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
|
|
4593
4646
|
/* @__PURE__ */ s(
|
|
4594
|
-
|
|
4647
|
+
J,
|
|
4595
4648
|
{
|
|
4596
4649
|
id: "builderio-init-variants-fns",
|
|
4597
|
-
scriptStr:
|
|
4650
|
+
scriptStr: yi(),
|
|
4598
4651
|
nonce: e.nonce || ""
|
|
4599
4652
|
}
|
|
4600
4653
|
),
|
|
4601
|
-
|
|
4602
|
-
|
|
4654
|
+
it.includes(F) ? /* @__PURE__ */ s(
|
|
4655
|
+
J,
|
|
4603
4656
|
{
|
|
4604
4657
|
id: "builderio-init-personalization-variants-fns",
|
|
4605
4658
|
nonce: e.nonce || "",
|
|
4606
|
-
scriptStr:
|
|
4659
|
+
scriptStr: Cn()
|
|
4607
4660
|
}
|
|
4608
4661
|
) : null
|
|
4609
4662
|
] }) : null,
|
|
4610
|
-
t ? /* @__PURE__ */ D(
|
|
4663
|
+
t ? /* @__PURE__ */ D(w, { children: [
|
|
4611
4664
|
/* @__PURE__ */ s(
|
|
4612
4665
|
te,
|
|
4613
4666
|
{
|
|
4614
4667
|
id: "builderio-variants",
|
|
4615
|
-
styles:
|
|
4668
|
+
styles: a(),
|
|
4616
4669
|
nonce: e.nonce || ""
|
|
4617
4670
|
}
|
|
4618
4671
|
),
|
|
4619
4672
|
/* @__PURE__ */ s(
|
|
4620
|
-
|
|
4673
|
+
J,
|
|
4621
4674
|
{
|
|
4622
4675
|
id: "builderio-variants-visibility",
|
|
4623
4676
|
scriptStr: i(),
|
|
@@ -4625,7 +4678,7 @@ function Ni(e) {
|
|
|
4625
4678
|
}
|
|
4626
4679
|
),
|
|
4627
4680
|
(o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4628
|
-
|
|
4681
|
+
Fe,
|
|
4629
4682
|
{
|
|
4630
4683
|
apiHost: e.apiHost,
|
|
4631
4684
|
isNestedRender: e.isNestedRender,
|
|
@@ -4653,12 +4706,12 @@ function Ni(e) {
|
|
|
4653
4706
|
))
|
|
4654
4707
|
] }) : null,
|
|
4655
4708
|
/* @__PURE__ */ s(
|
|
4656
|
-
|
|
4709
|
+
Fe,
|
|
4657
4710
|
{
|
|
4658
4711
|
apiHost: e.apiHost,
|
|
4659
4712
|
nonce: e.nonce,
|
|
4660
4713
|
isNestedRender: e.isNestedRender,
|
|
4661
|
-
content:
|
|
4714
|
+
content: r(),
|
|
4662
4715
|
showContent: !0,
|
|
4663
4716
|
model: e.model,
|
|
4664
4717
|
data: e.data,
|
|
@@ -4680,13 +4733,13 @@ function Ni(e) {
|
|
|
4680
4733
|
)
|
|
4681
4734
|
] });
|
|
4682
4735
|
}
|
|
4683
|
-
const
|
|
4736
|
+
const Wi = async ({
|
|
4684
4737
|
builderContextValue: e,
|
|
4685
4738
|
symbol: t
|
|
4686
4739
|
}) => {
|
|
4687
4740
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4688
4741
|
(e != null && e.apiKey))
|
|
4689
|
-
return
|
|
4742
|
+
return Oe({
|
|
4690
4743
|
model: t.model,
|
|
4691
4744
|
apiKey: e.apiKey,
|
|
4692
4745
|
apiVersion: e.apiVersion,
|
|
@@ -4699,7 +4752,7 @@ const $i = async ({
|
|
|
4699
4752
|
ee.error("Could not fetch symbol content: ", n);
|
|
4700
4753
|
});
|
|
4701
4754
|
};
|
|
4702
|
-
function
|
|
4755
|
+
function Di(e) {
|
|
4703
4756
|
var h, g, u, x, f;
|
|
4704
4757
|
function t() {
|
|
4705
4758
|
return "div";
|
|
@@ -4710,16 +4763,16 @@ function Wi(e) {
|
|
|
4710
4763
|
function i() {
|
|
4711
4764
|
return Object.values(e.builderComponents);
|
|
4712
4765
|
}
|
|
4713
|
-
function
|
|
4766
|
+
function a() {
|
|
4714
4767
|
var m, y;
|
|
4715
4768
|
return [
|
|
4716
|
-
e.attributes[
|
|
4769
|
+
e.attributes[K()],
|
|
4717
4770
|
"builder-symbol",
|
|
4718
4771
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4719
4772
|
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4720
4773
|
].filter(Boolean).join(" ");
|
|
4721
4774
|
}
|
|
4722
|
-
const [
|
|
4775
|
+
const [r, o] = k(() => {
|
|
4723
4776
|
var m;
|
|
4724
4777
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4725
4778
|
}), [l, c] = k(() => {
|
|
@@ -4728,7 +4781,7 @@ function Wi(e) {
|
|
|
4728
4781
|
});
|
|
4729
4782
|
function d() {
|
|
4730
4783
|
var m;
|
|
4731
|
-
|
|
4784
|
+
r && l === ((m = e.symbol) == null ? void 0 : m.entry) || Wi({
|
|
4732
4785
|
symbol: e.symbol,
|
|
4733
4786
|
builderContextValue: e.builderContext
|
|
4734
4787
|
}).then((y) => {
|
|
@@ -4739,8 +4792,8 @@ function Wi(e) {
|
|
|
4739
4792
|
return N(() => {
|
|
4740
4793
|
}, []), N(() => {
|
|
4741
4794
|
d();
|
|
4742
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4743
|
-
|
|
4795
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: a(), children: /* @__PURE__ */ s(
|
|
4796
|
+
$i,
|
|
4744
4797
|
{
|
|
4745
4798
|
nonce: e.builderContext.nonce,
|
|
4746
4799
|
isNestedRender: !0,
|
|
@@ -4754,11 +4807,11 @@ function Wi(e) {
|
|
|
4754
4807
|
data: {
|
|
4755
4808
|
...(g = e.symbol) == null ? void 0 : g.data,
|
|
4756
4809
|
...e.builderContext.localState,
|
|
4757
|
-
...(u =
|
|
4810
|
+
...(u = r == null ? void 0 : r.data) == null ? void 0 : u.state
|
|
4758
4811
|
},
|
|
4759
4812
|
canTrack: e.builderContext.canTrack,
|
|
4760
4813
|
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4761
|
-
content:
|
|
4814
|
+
content: r,
|
|
4762
4815
|
linkComponent: e.builderLinkComponent,
|
|
4763
4816
|
blocksWrapper: t(),
|
|
4764
4817
|
contentWrapper: n()
|
|
@@ -4767,15 +4820,15 @@ function Wi(e) {
|
|
|
4767
4820
|
}
|
|
4768
4821
|
export {
|
|
4769
4822
|
M as Blocks,
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4823
|
+
le as BuilderContext,
|
|
4824
|
+
kt as Button,
|
|
4825
|
+
un as Columns,
|
|
4826
|
+
$i as Content,
|
|
4827
|
+
dn as Fragment,
|
|
4828
|
+
hn as Image,
|
|
4829
|
+
bn as Section,
|
|
4830
|
+
Di as Symbol,
|
|
4831
|
+
Hn as Text,
|
|
4832
|
+
ui as Video,
|
|
4833
|
+
qi as setClientUserAttributes
|
|
4781
4834
|
};
|