@builder.io/sdk-vue 2.0.13 → 2.0.14

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.
Files changed (63) hide show
  1. package/lib/{edge/block-styles-mSowNIFi.js → browser/block-styles-nWGppwAf.js} +14 -12
  2. package/lib/browser/block-styles-rt4v7rBl.cjs +1 -0
  3. package/lib/browser/{block-wrapper-7wDwU1ik.js → block-wrapper-hPYvxseU.js} +3 -3
  4. package/lib/browser/{block-wrapper-ianIz_MG.cjs → block-wrapper-l_mdj42t.cjs} +1 -1
  5. package/lib/browser/{component-ref-yQ6WDHbR.js → component-ref-JlpkOrad.js} +2 -2
  6. package/lib/browser/{component-ref-MlfJPaLv.cjs → component-ref-dPnPtrON.cjs} +1 -1
  7. package/lib/{edge/get-block-properties-Hs6W4UwL.js → browser/get-block-properties-HzVZCpxa.js} +20 -18
  8. package/lib/browser/get-block-properties-sInACBRh.cjs +1 -0
  9. package/lib/browser/index-MDNnQzZB.cjs +166 -0
  10. package/lib/browser/{index-3j8dJ25f.js → index-ZL8QUFiN.js} +546 -552
  11. package/lib/browser/index.cjs +1 -1
  12. package/lib/browser/index.mjs +1 -1
  13. package/lib/browser/init.cjs +8 -0
  14. package/lib/browser/init.mjs +65 -0
  15. package/lib/browser/logger-0-1mARBa.cjs +1 -0
  16. package/lib/browser/logger-Hm2e1Xk_.js +12 -0
  17. package/lib/browser/{repeated-block-_EQDFqYb.js → repeated-block-8EN4xN25.js} +2 -2
  18. package/lib/browser/{repeated-block-BBHHbrlK.cjs → repeated-block-uV-zuqkw.cjs} +1 -1
  19. package/lib/edge/block-styles-Ta3OQAmE.cjs +1 -0
  20. package/lib/{browser/block-styles-03Qg_nl9.js → edge/block-styles-zRPUnWLf.js} +6 -6
  21. package/lib/{node/block-wrapper-8DA9SdPk.cjs → edge/block-wrapper-9IWz2vxg.cjs} +1 -1
  22. package/lib/{node/block-wrapper-wULOB3JK.js → edge/block-wrapper-x7ERONr-.js} +5 -5
  23. package/lib/{node/component-ref-Tn-Aa9EG.js → edge/component-ref-JRfa9Vwo.js} +2 -2
  24. package/lib/{node/component-ref-cw1D-ZyS.cjs → edge/component-ref-eV0RBAzs.cjs} +1 -1
  25. package/lib/edge/get-block-properties-Dy3XF05J.cjs +1 -0
  26. package/lib/{browser/get-block-properties-ROTqTJZ3.js → edge/get-block-properties-PLBPSz3W.js} +13 -13
  27. package/lib/edge/{index-u68L80fc.cjs → index-5-C3UhJz.cjs} +31 -31
  28. package/lib/edge/{index-C-mI6Ai4.js → index-TGe9_80q.js} +837 -843
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +8 -0
  32. package/lib/edge/init.mjs +64 -0
  33. package/lib/edge/logger-I8FmJD_1.js +11 -0
  34. package/lib/edge/logger-U9-0vDJK.cjs +1 -0
  35. package/lib/edge/{repeated-block-cXD1rb5T.cjs → repeated-block-FB2jF4o_.cjs} +1 -1
  36. package/lib/edge/{repeated-block-P7xKkVOb.js → repeated-block-_9Gs2AOY.js} +2 -2
  37. package/lib/node/{block-styles-TC7FEjXP.js → block-styles-gLB-jSXN.js} +13 -12
  38. package/lib/node/block-styles-u7KGnyuc.cjs +1 -0
  39. package/lib/{edge/block-wrapper-BxeE3u_2.cjs → node/block-wrapper-cCYzfiv5.cjs} +1 -1
  40. package/lib/{edge/block-wrapper-EnFwFXwA.js → node/block-wrapper-frfIIST_.js} +3 -3
  41. package/lib/{edge/component-ref-t51XeINm.js → node/component-ref-IbarjSnq.js} +2 -2
  42. package/lib/{edge/component-ref-XzuZ1Hfj.cjs → node/component-ref-ZlBAzimq.cjs} +1 -1
  43. package/lib/node/get-block-properties-2Q2lr9bu.cjs +1 -0
  44. package/lib/node/{get-block-properties-lLVZb91I.js → get-block-properties-QIsIgfnu.js} +17 -16
  45. package/lib/node/{index-eZTeDA6U.js → index-BugETl2c.js} +907 -1123
  46. package/lib/node/index-s5vEnK-M.cjs +166 -0
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +17 -16
  49. package/lib/node/init.cjs +1 -0
  50. package/lib/node/init.mjs +11 -0
  51. package/lib/node/node-runtime-0rF8vJwU.js +233 -0
  52. package/lib/node/node-runtime-Bqb5TnyM.cjs +48 -0
  53. package/lib/node/{repeated-block-_TZDsWlq.js → repeated-block-Z-_chLeZ.js} +2 -2
  54. package/lib/node/{repeated-block-49B-IJEV.cjs → repeated-block-ZpVu-xdw.cjs} +1 -1
  55. package/package.json +5 -1
  56. package/lib/browser/block-styles-NluRxFx2.cjs +0 -1
  57. package/lib/browser/get-block-properties-Cj0ih41l.cjs +0 -1
  58. package/lib/browser/index-sPD8fzSJ.cjs +0 -166
  59. package/lib/edge/block-styles-TkeDyfA0.cjs +0 -1
  60. package/lib/edge/get-block-properties-MnsKwX8B.cjs +0 -1
  61. package/lib/node/block-styles-aVTlrIHc.cjs +0 -1
  62. package/lib/node/get-block-properties-coIi16X2.cjs +0 -1
  63. package/lib/node/index-ZUbIvJ0s.cjs +0 -213
@@ -1,10 +1,10 @@
1
- var $ = Object.defineProperty;
2
- var E = (e, t, n) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var v = (e, t, n) => (E(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent, openBlock, createElementBlock, Fragment as Fragment$1, createBlock, resolveDynamicComponent, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createTextVNode, toDisplayString, defineAsyncComponent, createVNode, renderList, createCommentVNode, h, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
5
- import { createRequire } from "node:module";
6
- const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
7
- function filterAttrs(e = {}, t, n) {
1
+ var lt = Object.defineProperty;
2
+ var ct = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ne = (e, t, n) => (ct(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as T, createBlock as g, resolveDynamicComponent as K, mergeProps as S, toHandlers as B, withCtx as N, renderSlot as P, resolveComponent as y, createTextVNode as dt, toDisplayString as te, defineAsyncComponent as j, createVNode as I, renderList as A, createCommentVNode as C, h as Pe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ut } from "vue";
5
+ import { T as x, g as pt, l as R, i as $, r as mt, p as ht, a as ft, s as xe, f as pe, b as bt, n as Ae, c as E, d as gt } from "./node-runtime-0rF8vJwU.js";
6
+ const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), kt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
7
+ function V(e = {}, t, n) {
8
8
  const o = {};
9
9
  for (const r in e) {
10
10
  if (!e[r] || n && !r.startsWith(t))
@@ -14,38 +14,38 @@ function filterAttrs(e = {}, t, n) {
14
14
  }
15
15
  return o;
16
16
  }
17
- const _sfc_main$t = defineComponent({
17
+ const vt = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement };
21
+ return { isEmptyElement: kt };
22
22
  }
23
- }), _export_sfc = (e, t) => {
23
+ }), b = (e, t) => {
24
24
  const n = e.__vccOpts || e;
25
25
  for (const [o, r] of t)
26
26
  n[o] = r;
27
27
  return n;
28
28
  };
29
- function _sfc_render$r(e, t, n, o, r, i) {
30
- return e.isEmptyElement(e.TagName) ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), null, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
31
- typeof e.TagName == "string" ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 0 }, e.attributes, toHandlers(e.actionAttributes)), {
32
- default: withCtx(() => [
33
- renderSlot(e.$slots, "default")
29
+ function Ct(e, t, n, o, r, i) {
30
+ return e.isEmptyElement(e.TagName) ? (c(), g(K(e.TagName), S({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), m(T, { key: 0 }, [
31
+ typeof e.TagName == "string" ? (c(), g(K(e.TagName), S({ key: 0 }, e.attributes, B(e.actionAttributes)), {
32
+ default: N(() => [
33
+ P(e.$slots, "default")
34
34
  ]),
35
35
  _: 3
36
- }, 16)) : (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), {
37
- default: withCtx(() => [
38
- renderSlot(e.$slots, "default")
36
+ }, 16)) : (c(), g(K(e.TagName), S({ key: 1 }, e.attributes, B(e.actionAttributes)), {
37
+ default: N(() => [
38
+ P(e.$slots, "default")
39
39
  ]),
40
40
  _: 3
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$r]]), dynamicRenderer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const me = /* @__PURE__ */ b(vt, [["render", Ct]]), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- default: DynamicRenderer
47
- }, Symbol.toStringTag, { value: "Module" })), TARGET = "vue", getClassPropName = () => {
48
- switch (TARGET) {
46
+ default: me
47
+ }, Symbol.toStringTag, { value: "Module" })), _ = () => {
48
+ switch (x) {
49
49
  case "react":
50
50
  case "reactNative":
51
51
  case "rsc":
@@ -57,9 +57,9 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sf
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, _sfc_main$s = defineComponent({
60
+ }, St = f({
61
61
  name: "builder-button",
62
- components: { DynamicRenderer },
62
+ components: { DynamicRenderer: me },
63
63
  props: [
64
64
  "attributes",
65
65
  "link",
@@ -68,13 +68,13 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sf
68
68
  "text"
69
69
  ],
70
70
  data() {
71
- return { filterAttrs };
71
+ return { filterAttrs: V };
72
72
  },
73
73
  methods: {
74
74
  attrs() {
75
75
  return {
76
- ...filterAttrs(this.attributes, "v-on:", !1),
77
- [getClassPropName()]: `${this.link ? "" : "builder-button"} ${this.attributes[getClassPropName()] || ""}`,
76
+ ...V(this.attributes, "v-on:", !1),
77
+ [_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
78
78
  ...this.link ? {
79
79
  href: this.link,
80
80
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -86,20 +86,20 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sf
86
86
  }
87
87
  }
88
88
  });
89
- function _sfc_render$q(e, t, n, o, r, i) {
90
- const s = resolveComponent("DynamicRenderer");
91
- return openBlock(), createBlock(s, {
89
+ function Tt(e, t, n, o, r, i) {
90
+ const s = y("DynamicRenderer");
91
+ return c(), g(s, {
92
92
  attributes: e.attrs(),
93
93
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
95
  }, {
96
- default: withCtx(() => [
97
- createTextVNode(toDisplayString(e.text), 1)
96
+ default: N(() => [
97
+ dt(te(e.text), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$q]]), key$1 = Symbol(), BuilderContext = {
102
+ const wt = /* @__PURE__ */ b(St, [["render", Tt]]), It = Symbol(), le = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -115,98 +115,25 @@ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$
115
115
  BlocksWrapperProps: {},
116
116
  nonce: ""
117
117
  },
118
- key: key$1
119
- }, key = Symbol(), ComponentsContext = {
118
+ key: It
119
+ }, $t = Symbol(), Ve = {
120
120
  Components: { registeredComponents: {} },
121
- key
121
+ key: $t
122
122
  };
123
- function getBlockComponentOptions(e) {
123
+ function Rt(e) {
124
124
  var t;
125
125
  return {
126
126
  ...(t = e.component) == null ? void 0 : t.options,
127
127
  ...e.options
128
128
  };
129
129
  }
130
- function omit(e, ...t) {
130
+ function Et(e, ...t) {
131
131
  const n = Object.assign({}, e);
132
132
  for (const o of t)
133
133
  delete n[o];
134
134
  return n;
135
135
  }
136
- const MSG_PREFIX = "[Builder.io]: ", logger = {
137
- log: (...e) => console.log(MSG_PREFIX, ...e),
138
- error: (...e) => console.error(MSG_PREFIX, ...e),
139
- warn: (...e) => console.warn(MSG_PREFIX, ...e),
140
- debug: (...e) => console.debug(MSG_PREFIX, ...e)
141
- };
142
- function isBrowser() {
143
- return typeof window < "u" && typeof document < "u";
144
- }
145
- const convertSearchParamsToQueryObject = (e) => {
146
- const t = {};
147
- return e.forEach((n, o) => {
148
- t[o] = n;
149
- }), t;
150
- }, normalizeSearchParams = (e) => e instanceof URLSearchParams ? convertSearchParamsToQueryObject(e) : e, getSearchString = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
151
- function isIframe() {
152
- return isBrowser() && window.self !== window.top;
153
- }
154
- function isEditing(e) {
155
- return isIframe() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
156
- getSearchString(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
157
- }
158
- const getLocation = () => {
159
- if (isBrowser()) {
160
- const e = new URL(location.href);
161
- return e.pathname === "" && (e.pathname = "/"), e;
162
- } else
163
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
164
- }, getUserAgent = () => typeof navigator == "object" && navigator.userAgent || "", getUserAttributes = () => {
165
- const e = getUserAgent(), t = {
166
- Android() {
167
- return e.match(/Android/i);
168
- },
169
- BlackBerry() {
170
- return e.match(/BlackBerry/i);
171
- },
172
- iOS() {
173
- return e.match(/iPhone|iPod/i);
174
- },
175
- Opera() {
176
- return e.match(/Opera Mini/i);
177
- },
178
- Windows() {
179
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
180
- },
181
- any() {
182
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || TARGET === "reactNative";
183
- }
184
- }, n = e.match(/Tablet|iPad/i), o = getLocation();
185
- return {
186
- urlPath: o == null ? void 0 : o.pathname,
187
- host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
188
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
189
- };
190
- }, getFunctionArguments = ({
191
- builder: e,
192
- context: t,
193
- event: n,
194
- state: o
195
- }) => Object.entries({
196
- state: o,
197
- Builder: e,
198
- // legacy
199
- builder: e,
200
- context: t,
201
- event: n
202
- }), getBuilderGlobals = () => ({
203
- isEditing: isEditing(),
204
- isBrowser: isBrowser(),
205
- isServer: !isBrowser(),
206
- getUserAttributes: () => getUserAttributes()
207
- }), parseCode = (e, {
208
- isExpression: t = !0
209
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, runInBrowser = ({
136
+ const Bt = ({
210
137
  code: e,
211
138
  builder: t,
212
139
  context: n,
@@ -215,11 +142,11 @@ const getLocation = () => {
215
142
  rootSetState: i,
216
143
  rootState: s
217
144
  }) => {
218
- const l = getFunctionArguments({
145
+ const l = pt({
219
146
  builder: t,
220
147
  context: n,
221
148
  event: o,
222
- state: flattenState({
149
+ state: We({
223
150
  rootState: s,
224
151
  localState: r,
225
152
  rootSetState: i
@@ -227,7 +154,7 @@ const getLocation = () => {
227
154
  });
228
155
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
229
156
  };
230
- function flattenState({
157
+ function We({
231
158
  rootState: e,
232
159
  localState: t,
233
160
  rootSetState: n
@@ -237,7 +164,7 @@ function flattenState({
237
164
  if (t && r in t)
238
165
  return t[r];
239
166
  const i = o[r];
240
- return typeof i == "object" && i !== null ? flattenState({
167
+ return typeof i == "object" && i !== null ? We({
241
168
  rootState: i,
242
169
  localState: void 0,
243
170
  rootSetState: n ? (s) => {
@@ -252,156 +179,18 @@ function flattenState({
252
179
  }
253
180
  });
254
181
  }
255
- const SDK_NAME_FOR_TARGET = (() => {
256
- switch (TARGET) {
257
- case "rsc":
258
- return "react-nextjs";
259
- case "reactNative":
260
- return "react-native";
261
- default:
262
- return TARGET;
263
- }
264
- })(), SDK_NAME = `@builder.io/sdk-${SDK_NAME_FOR_TARGET}`, fastClone = (e) => JSON.parse(JSON.stringify(e)), set = (e, t, n) => {
265
- if (Object(e) !== e)
266
- return e;
267
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
268
- return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
269
- }, noop = () => {
270
- };
271
- let safeDynamicRequire = noop;
272
- try {
273
- safeDynamicRequire = createRequire(import.meta.url);
274
- } catch (error) {
275
- try {
276
- safeDynamicRequire = eval("require");
277
- } catch (e) {
278
- }
279
- }
280
- const getSyncValName = (e) => `bldr_${e}_sync`, BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE", INJECTED_IVM_GLOBAL = "BUILDER_IVM", REF_TO_PROXY_FN = `
281
- var refToProxy = (obj) => {
282
- if (typeof obj !== 'object' || obj === null) {
283
- return obj;
284
- }
285
- return new Proxy({}, {
286
- get(target, key) {
287
- if (key === 'copySync') {
288
- return () => obj.copySync();
289
- }
290
- const val = obj.getSync(key);
291
- if (typeof val?.getSync === 'function') {
292
- return refToProxy(val);
293
- }
294
- return val;
295
- },
296
- set(target, key, value) {
297
- const v = typeof value === 'object' ? new ${INJECTED_IVM_GLOBAL}.Reference(value) : value;
298
- obj.setSync(key, v);
299
- ${BUILDER_SET_STATE_NAME}(key, value)
300
- },
301
- deleteProperty(target, key) {
302
- obj.deleteSync(key);
303
- }
304
- })
305
- }
306
- `, processCode = ({
307
- code: e,
308
- args: t
309
- }) => {
310
- const n = t.map(([o]) => `var ${o} = refToProxy(${getSyncValName(o)}); `).join("");
311
- return `
312
- ${REF_TO_PROXY_FN}
313
- ${n}
314
- function theFunction() {
315
- ${e}
316
- }
317
-
318
- const output = theFunction()
319
-
320
- if (typeof output === 'object' && output !== null) {
321
- return JSON.stringify(output.copySync ? output.copySync() : output);
322
- } else {
323
- return output;
324
- }
325
- `;
326
- };
327
- let IVM_INSTANCE = null, IVM_CONTEXT = null;
328
- const SHOULD_MENTION_INITIALIZE_SCRIPT = SDK_NAME === "@builder.io/sdk-react-nextjs" || SDK_NAME === "@builder.io/sdk-react" || SDK_NAME === "@builder.io/sdk-qwik", getIvm = () => {
329
- try {
330
- const t = safeDynamicRequire("isolated-vm");
331
- if (t)
332
- return t;
333
- } catch (t) {
334
- logger.error("isolated-vm import error.", t);
335
- }
336
- const e = `${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on a Node server.
337
-
338
- SOLUTION: In a server-only execution path within your application, do one of the following:
339
-
340
- ${SHOULD_MENTION_INITIALIZE_SCRIPT ? `- import and call \`initializeNodeRuntime()\` from "${SDK_NAME}/node/init".` : ""}
341
- - add the following import: \`await import('isolated-vm')\`.
342
-
343
- For more information, visit https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments`;
344
- throw new Error(e);
345
- };
346
- function setIsolateContext(e = {
347
- memoryLimit: 128
348
- }) {
349
- const t = getIvm(), o = new t.Isolate(e).createContextSync(), r = o.global;
350
- return r.setSync("global", r.derefInto()), r.setSync("log", function(...i) {
351
- console.log(...i);
352
- }), r.setSync(INJECTED_IVM_GLOBAL, t), IVM_CONTEXT = o, o;
353
- }
354
- const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode = ({
355
- code: e,
356
- builder: t,
357
- context: n,
358
- event: o,
359
- localState: r,
360
- rootSetState: i,
361
- rootState: s
362
- }) => {
363
- const l = getIvm(), a = fastClone({
364
- ...s,
365
- ...r
366
- }), d = getFunctionArguments({
367
- builder: t,
368
- context: n,
369
- event: o,
370
- state: a
371
- }), p = getIsolateContext(), c = p.global;
372
- c.setSync(BUILDER_SET_STATE_NAME, function(m, b) {
373
- set(s, m, b), i == null || i(s);
374
- }), d.forEach(([m, b]) => {
375
- const C = typeof b == "object" ? new l.Reference(
376
- // workaround: methods with default values for arguments is not being cloned over
377
- m === "builder" ? {
378
- ...b,
379
- getUserAttributes: () => b.getUserAttributes()
380
- } : b
381
- ) : null;
382
- c.setSync(getSyncValName(m), C);
383
- });
384
- const u = processCode({
385
- code: e,
386
- args: d
387
- }), f = p.evalClosureSync(u);
388
- try {
389
- return JSON.parse(f);
390
- } catch {
391
- return f;
392
- }
393
- }, checkIsDefined = (e) => e != null;
394
- function isNodeRuntime() {
182
+ const L = (e) => e != null;
183
+ function Pt() {
395
184
  var e;
396
- return typeof process < "u" && checkIsDefined((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
185
+ return typeof process < "u" && L((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
397
186
  }
398
- const shouldForceBrowserRuntimeInNode = () => {
187
+ const xt = () => {
399
188
  var o;
400
- if (!isNodeRuntime())
189
+ if (!Pt())
401
190
  return !1;
402
191
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
403
- return e && t && !n ? (logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
404
- }, chooseBrowserOrServerEval = (e) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(e) : runInNode(e), DISABLE_CACHE = !0, y = class y {
192
+ return e && t && !n ? (R.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
193
+ }, At = (e) => $() || xt() ? Bt(e) : mt(e), Vt = !0, W = class W {
405
194
  static getCacheKey(t) {
406
195
  return JSON.stringify({
407
196
  ...t,
@@ -411,17 +200,17 @@ const shouldForceBrowserRuntimeInNode = () => {
411
200
  });
412
201
  }
413
202
  static getCachedValue(t) {
414
- return y.cache.get(t);
203
+ return W.cache.get(t);
415
204
  }
416
205
  static setCachedValue(t, n) {
417
- y.cache.size > 20 && y.cache.delete(y.cache.keys().next().value), y.cache.set(t, {
206
+ W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
418
207
  value: n
419
208
  });
420
209
  }
421
210
  };
422
- v(y, "cacheLimit", 20), v(y, "cache", /* @__PURE__ */ new Map());
423
- let EvalCache = y;
424
- function evaluate({
211
+ ne(W, "cacheLimit", 20), ne(W, "cache", /* @__PURE__ */ new Map());
212
+ let U = W;
213
+ function G({
425
214
  code: e,
426
215
  context: t,
427
216
  localState: n,
@@ -434,53 +223,50 @@ function evaluate({
434
223
  if (e === "")
435
224
  return;
436
225
  const a = {
437
- code: parseCode(e, {
226
+ code: ht(e, {
438
227
  isExpression: s
439
228
  }),
440
- builder: getBuilderGlobals(),
229
+ builder: ft(),
441
230
  context: t,
442
231
  event: i,
443
232
  rootSetState: r,
444
233
  rootState: o,
445
234
  localState: n
446
235
  };
447
- if (l && !DISABLE_CACHE) {
448
- const d = EvalCache.getCacheKey(a), p = EvalCache.getCachedValue(d);
449
- if (p)
450
- return p.value;
236
+ if (l && !Vt) {
237
+ const u = U.getCacheKey(a), h = U.getCachedValue(u);
238
+ if (h)
239
+ return h.value;
451
240
  }
452
241
  try {
453
- const d = chooseBrowserOrServerEval(a);
242
+ const u = At(a);
454
243
  if (l) {
455
- const p = EvalCache.getCacheKey(a);
456
- EvalCache.setCachedValue(p, d);
244
+ const h = U.getCacheKey(a);
245
+ U.setCachedValue(h, u);
457
246
  }
458
- return d;
459
- } catch (d) {
460
- logger.error("Failed code evaluation: " + d.message, {
247
+ return u;
248
+ } catch (u) {
249
+ R.error("Failed code evaluation: " + u.message, {
461
250
  code: e
462
251
  });
463
252
  return;
464
253
  }
465
254
  }
466
- function transformBlock(e) {
467
- return e;
468
- }
469
- function deepCloneWithConditions(e) {
255
+ function ce(e) {
470
256
  if (e === null || typeof e != "object")
471
257
  return e;
472
258
  if (Array.isArray(e))
473
- return e.map((n) => deepCloneWithConditions(n));
259
+ return e.map((n) => ce(n));
474
260
  if (e["@type"] === "@builder.io/sdk:Element")
475
261
  return e;
476
262
  const t = {};
477
263
  for (const n in e)
478
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = deepCloneWithConditions(e[n]));
264
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
479
265
  return t;
480
266
  }
481
- const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik", "solid"].includes(TARGET), getCopy = (e) => {
482
- if (IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK) {
483
- const t = fastClone(e);
267
+ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Nt = (e) => {
268
+ if (Wt) {
269
+ const t = pe(e);
484
270
  return {
485
271
  ...t,
486
272
  properties: {
@@ -491,7 +277,7 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
491
277
  }
492
278
  };
493
279
  } else {
494
- const t = deepCloneWithConditions(omit(e, "children", "meta"));
280
+ const t = ce(Et(e, "children", "meta"));
495
281
  return {
496
282
  ...t,
497
283
  properties: {
@@ -504,7 +290,7 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
504
290
  meta: e.meta
505
291
  };
506
292
  }
507
- }, evaluateBindings = ({
293
+ }, Ft = ({
508
294
  block: e,
509
295
  context: t,
510
296
  localState: n,
@@ -513,9 +299,9 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
513
299
  }) => {
514
300
  if (!e.bindings)
515
301
  return e;
516
- const i = getCopy(e);
302
+ const i = Nt(e);
517
303
  for (const s in e.bindings) {
518
- const l = e.bindings[s], a = evaluate({
304
+ const l = e.bindings[s], a = G({
519
305
  code: l,
520
306
  localState: n,
521
307
  rootState: o,
@@ -523,11 +309,11 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
523
309
  context: t,
524
310
  enableCache: !0
525
311
  });
526
- set(i, s, a);
312
+ xe(i, s, a);
527
313
  }
528
314
  return i;
529
315
  };
530
- function getProcessedBlock({
316
+ function Ot({
531
317
  block: e,
532
318
  context: t,
533
319
  shouldEvaluateBindings: n,
@@ -536,7 +322,7 @@ function getProcessedBlock({
536
322
  rootSetState: i
537
323
  }) {
538
324
  const s = e;
539
- return n ? evaluateBindings({
325
+ return n ? Ft({
540
326
  block: s,
541
327
  localState: o,
542
328
  rootState: r,
@@ -544,25 +330,25 @@ function getProcessedBlock({
544
330
  context: t
545
331
  }) : s;
546
332
  }
547
- function isPreviewing(e) {
548
- const t = e || (isBrowser() ? window.location.search : void 0);
549
- return t ? getSearchString(t).indexOf("builder.preview=") !== -1 : !1;
333
+ function Dt(e) {
334
+ const t = e || ($() ? window.location.search : void 0);
335
+ return t ? bt(t).indexOf("builder.preview=") !== -1 : !1;
550
336
  }
551
- const createRegisterComponentMessage = (e) => ({
337
+ const Lt = (e) => ({
552
338
  type: "builder.registerComponent",
553
- data: serializeIncludingFunctions(e)
554
- }), serializeFn = (e) => {
339
+ data: ee(e)
340
+ }), Ut = (e) => {
555
341
  const t = e.toString().trim();
556
342
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
557
343
  };
558
- function serializeIncludingFunctions(e) {
559
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? serializeFn(n) : n));
344
+ function ee(e) {
345
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Ut(n) : n));
560
346
  }
561
- const registry = {};
562
- function register(e, t) {
563
- e === "plugin" && (t = serializeIncludingFunctions(t));
564
- let n = registry[e];
565
- if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
347
+ const Ce = {};
348
+ function Mt(e, t) {
349
+ e === "plugin" && (t = ee(t));
350
+ let n = Ce[e];
351
+ if (n || (n = Ce[e] = []), n.push(t), $()) {
566
352
  const o = {
567
353
  type: "builder.register",
568
354
  data: {
@@ -577,38 +363,38 @@ function register(e, t) {
577
363
  }
578
364
  }
579
365
  }
580
- const settings = {};
581
- function setEditorSettings(e) {
582
- if (isBrowser()) {
583
- Object.assign(settings, e);
366
+ const Se = {};
367
+ function Pi(e) {
368
+ if ($()) {
369
+ Object.assign(Se, e);
584
370
  const t = {
585
371
  type: "builder.settingsChange",
586
- data: settings
372
+ data: Se
587
373
  };
588
374
  parent.postMessage(t, "*");
589
375
  }
590
376
  }
591
- const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "options.", getBuilderSearchParams = (e) => {
377
+ const Te = "builder.", Ht = "options.", Ne = (e) => {
592
378
  if (!e)
593
379
  return {};
594
- const t = normalizeSearchParams(e), n = {};
380
+ const t = Ae(e), n = {};
595
381
  return Object.keys(t).forEach((o) => {
596
- if (o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)) {
597
- const r = o.replace(BUILDER_SEARCHPARAMS_PREFIX, "").replace(BUILDER_OPTIONS_PREFIX, "");
382
+ if (o.startsWith(Te)) {
383
+ const r = o.replace(Te, "").replace(Ht, "");
598
384
  n[r] = t[o];
599
385
  }
600
386
  }), n;
601
- }, getBuilderSearchParamsFromWindow = () => {
602
- if (!isBrowser())
387
+ }, jt = () => {
388
+ if (!$())
603
389
  return {};
604
390
  const e = new URLSearchParams(window.location.search);
605
- return getBuilderSearchParams(e);
606
- }, getTopLevelDomain = (e) => {
391
+ return Ne(e);
392
+ }, Kt = (e) => {
607
393
  if (e === "localhost" || e === "127.0.0.1")
608
394
  return e;
609
395
  const t = e.split(".");
610
396
  return t.length > 2 ? t.slice(1).join(".") : e;
611
- }, getCookieSync = ({
397
+ }, Fe = ({
612
398
  name: e,
613
399
  canTrack: t
614
400
  }) => {
@@ -616,17 +402,17 @@ const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "option
616
402
  try {
617
403
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
618
404
  } catch (o) {
619
- logger.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
405
+ R.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
620
406
  return;
621
407
  }
622
- }, getCookie = async (e) => getCookieSync(e), stringifyCookie = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(checkIsDefined).join("; "), SECURE_CONFIG = [["secure", ""], ["SameSite", "None"]], createCookieString = ({
408
+ }, Oe = async (e) => Fe(e), qt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), zt = [["secure", ""], ["SameSite", "None"]], Jt = ({
623
409
  name: e,
624
410
  value: t,
625
411
  expires: n
626
412
  }) => {
627
- const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
628
- return stringifyCookie(s);
629
- }, setCookie = async ({
413
+ const r = ($() ? location.protocol === "https:" : !0) ? zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Kt(window.location.hostname)], ...r];
414
+ return qt(s);
415
+ }, De = async ({
630
416
  name: e,
631
417
  value: t,
632
418
  expires: n,
@@ -635,98 +421,98 @@ const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "option
635
421
  try {
636
422
  if (!o)
637
423
  return;
638
- const r = createCookieString({
424
+ const r = Jt({
639
425
  name: e,
640
426
  value: t,
641
427
  expires: n
642
428
  });
643
429
  document.cookie = r;
644
430
  } catch (r) {
645
- logger.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
431
+ R.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
646
432
  }
647
433
  };
648
- function uuidv4() {
434
+ function Gt() {
649
435
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
650
436
  const t = Math.random() * 16 | 0;
651
437
  return (e == "x" ? t : t & 3 | 8).toString(16);
652
438
  });
653
439
  }
654
- function uuid() {
655
- return uuidv4().replace(/-/g, "");
440
+ function Le() {
441
+ return Gt().replace(/-/g, "");
656
442
  }
657
- const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
443
+ const Ue = "builderSessionId", Yt = async ({
658
444
  canTrack: e
659
445
  }) => {
660
446
  if (!e)
661
447
  return;
662
- const t = await getCookie({
663
- name: SESSION_LOCAL_STORAGE_KEY,
448
+ const t = await Oe({
449
+ name: Ue,
664
450
  canTrack: e
665
451
  });
666
- if (checkIsDefined(t))
452
+ if (L(t))
667
453
  return t;
668
454
  {
669
- const n = createSessionId();
670
- return setSessionId({
455
+ const n = Qt();
456
+ return Xt({
671
457
  id: n,
672
458
  canTrack: e
673
459
  }), n;
674
460
  }
675
- }, createSessionId = () => uuid(), setSessionId = ({
461
+ }, Qt = () => Le(), Xt = ({
676
462
  id: e,
677
463
  canTrack: t
678
- }) => setCookie({
679
- name: SESSION_LOCAL_STORAGE_KEY,
464
+ }) => De({
465
+ name: Ue,
680
466
  value: e,
681
467
  canTrack: t
682
- }), getLocalStorage = () => isBrowser() && typeof localStorage < "u" ? localStorage : void 0, getLocalStorageItem = ({
468
+ }), Me = () => $() && typeof localStorage < "u" ? localStorage : void 0, Zt = ({
683
469
  key: e,
684
470
  canTrack: t
685
471
  }) => {
686
472
  var n;
687
473
  try {
688
- return t ? (n = getLocalStorage()) == null ? void 0 : n.getItem(e) : void 0;
474
+ return t ? (n = Me()) == null ? void 0 : n.getItem(e) : void 0;
689
475
  } catch (o) {
690
476
  console.debug("[LocalStorage] GET error: ", o);
691
477
  return;
692
478
  }
693
- }, setLocalStorageItem = ({
479
+ }, _t = ({
694
480
  key: e,
695
481
  canTrack: t,
696
482
  value: n
697
483
  }) => {
698
484
  var o;
699
485
  try {
700
- t && ((o = getLocalStorage()) == null || o.setItem(e, n));
486
+ t && ((o = Me()) == null || o.setItem(e, n));
701
487
  } catch (r) {
702
488
  console.debug("[LocalStorage] SET error: ", r);
703
489
  }
704
- }, VISITOR_LOCAL_STORAGE_KEY = "builderVisitorId", getVisitorId = ({
490
+ }, He = "builderVisitorId", en = ({
705
491
  canTrack: e
706
492
  }) => {
707
493
  if (!e)
708
494
  return;
709
- const t = getLocalStorageItem({
710
- key: VISITOR_LOCAL_STORAGE_KEY,
495
+ const t = Zt({
496
+ key: He,
711
497
  canTrack: e
712
498
  });
713
- if (checkIsDefined(t))
499
+ if (L(t))
714
500
  return t;
715
501
  {
716
- const n = createVisitorId();
717
- return setVisitorId({
502
+ const n = tn();
503
+ return nn({
718
504
  id: n,
719
505
  canTrack: e
720
506
  }), n;
721
507
  }
722
- }, createVisitorId = () => uuid(), setVisitorId = ({
508
+ }, tn = () => Le(), nn = ({
723
509
  id: e,
724
510
  canTrack: t
725
- }) => setLocalStorageItem({
726
- key: VISITOR_LOCAL_STORAGE_KEY,
511
+ }) => _t({
512
+ key: He,
727
513
  value: e,
728
514
  canTrack: t
729
- }), getTrackingEventData = async ({
515
+ }), on = async ({
730
516
  canTrack: e
731
517
  }) => {
732
518
  if (!e)
@@ -734,16 +520,16 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
734
520
  visitorId: void 0,
735
521
  sessionId: void 0
736
522
  };
737
- const t = await getSessionId({
523
+ const t = await Yt({
738
524
  canTrack: e
739
- }), n = getVisitorId({
525
+ }), n = en({
740
526
  canTrack: e
741
527
  });
742
528
  return {
743
529
  sessionId: t,
744
530
  visitorId: n
745
531
  };
746
- }, createEvent = async ({
532
+ }, rn = async ({
747
533
  type: e,
748
534
  canTrack: t,
749
535
  apiKey: n,
@@ -757,23 +543,23 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
757
543
  url: location.href,
758
544
  ...o
759
545
  },
760
- ...await getTrackingEventData({
546
+ ...await on({
761
547
  canTrack: t
762
548
  }),
763
- userAttributes: getUserAttributes(),
549
+ userAttributes: gt(),
764
550
  ownerId: n
765
551
  }
766
552
  });
767
- async function _track(e) {
553
+ async function de(e) {
768
554
  if (!e.apiKey) {
769
- logger.error("Missing API key for track call. Please provide your API key.");
555
+ R.error("Missing API key for track call. Please provide your API key.");
770
556
  return;
771
557
  }
772
- if (e.canTrack && !isEditing() && (isBrowser() || TARGET === "reactNative"))
558
+ if (e.canTrack && !E() && ($() || x === "reactNative"))
773
559
  return fetch("https://cdn.builder.io/api/v1/track", {
774
560
  method: "POST",
775
561
  body: JSON.stringify({
776
- events: [await createEvent(e)]
562
+ events: [await rn(e)]
777
563
  }),
778
564
  headers: {
779
565
  "content-type": "application/json"
@@ -783,18 +569,18 @@ async function _track(e) {
783
569
  console.error("Failed to track: ", t);
784
570
  });
785
571
  }
786
- const track = (e) => _track({
572
+ const xi = (e) => de({
787
573
  ...e,
788
574
  canTrack: !0
789
- }), DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
790
- function isFromTrustedHost(e, t) {
575
+ }), sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
576
+ function je(e, t) {
791
577
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
792
578
  return !1;
793
579
  const n = new URL(t.origin), o = n.hostname;
794
- return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
580
+ return (e || sn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
795
581
  }
796
- const SDK_VERSION = "2.0.13", registerInsertMenu = () => {
797
- register("insertMenu", {
582
+ const an = "2.0.13", ln = () => {
583
+ Mt("insertMenu", {
798
584
  name: "_default",
799
585
  default: !0,
800
586
  items: [{
@@ -816,14 +602,14 @@ const SDK_VERSION = "2.0.13", registerInsertMenu = () => {
816
602
  }]
817
603
  });
818
604
  };
819
- let isSetupForEditing = !1;
820
- const setupBrowserForEditing = (e = {}) => {
605
+ let we = !1;
606
+ const Ke = (e = {}) => {
821
607
  var t, n;
822
- isSetupForEditing || (isSetupForEditing = !0, isBrowser() && ((t = window.parent) == null || t.postMessage({
608
+ we || (we = !0, $() && ((t = window.parent) == null || t.postMessage({
823
609
  type: "builder.sdkInfo",
824
610
  data: {
825
- target: TARGET,
826
- version: SDK_VERSION,
611
+ target: x,
612
+ version: an,
827
613
  supportsPatchUpdates: !1,
828
614
  // Supports builder-model="..." attribute which is needed to
829
615
  // scope our '+ add block' button styling
@@ -837,7 +623,7 @@ const setupBrowserForEditing = (e = {}) => {
837
623
  }
838
624
  }, "*"), window.addEventListener("message", (o) => {
839
625
  var i, s;
840
- if (!isFromTrustedHost(e.trustedHosts, o))
626
+ if (!je(e.trustedHosts, o))
841
627
  return;
842
628
  const {
843
629
  data: r
@@ -845,45 +631,45 @@ const setupBrowserForEditing = (e = {}) => {
845
631
  if (r != null && r.type)
846
632
  switch (r.type) {
847
633
  case "builder.evaluate": {
848
- const l = r.data.text, a = r.data.arguments || [], d = r.data.id, p = new Function(l);
849
- let c, u = null;
634
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
635
+ let d, p = null;
850
636
  try {
851
- c = p.apply(null, a);
852
- } catch (f) {
853
- u = f;
637
+ d = h.apply(null, a);
638
+ } catch (k) {
639
+ p = k;
854
640
  }
855
- u ? (i = window.parent) == null || i.postMessage({
641
+ p ? (i = window.parent) == null || i.postMessage({
856
642
  type: "builder.evaluateError",
857
643
  data: {
858
- id: d,
859
- error: u.message
644
+ id: u,
645
+ error: p.message
860
646
  }
861
- }, "*") : c && typeof c.then == "function" ? c.then((f) => {
862
- var m;
863
- (m = window.parent) == null || m.postMessage({
647
+ }, "*") : d && typeof d.then == "function" ? d.then((k) => {
648
+ var v;
649
+ (v = window.parent) == null || v.postMessage({
864
650
  type: "builder.evaluateResult",
865
651
  data: {
866
- id: d,
867
- result: f
652
+ id: u,
653
+ result: k
868
654
  }
869
655
  }, "*");
870
656
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
871
657
  type: "builder.evaluateResult",
872
658
  data: {
873
- result: c,
874
- id: d
659
+ result: d,
660
+ id: u
875
661
  }
876
662
  }, "*");
877
663
  break;
878
664
  }
879
665
  }
880
666
  })));
881
- }, createEditorListener = ({
667
+ }, qe = ({
882
668
  model: e,
883
669
  trustedHosts: t,
884
670
  callbacks: n
885
671
  }) => (o) => {
886
- if (!isFromTrustedHost(t, o))
672
+ if (!je(t, o))
887
673
  return;
888
674
  const {
889
675
  data: r
@@ -904,12 +690,12 @@ const setupBrowserForEditing = (e = {}) => {
904
690
  break;
905
691
  }
906
692
  }
907
- }, subscribeToEditor = (e, t, n) => {
908
- if (!isBrowser)
909
- return logger.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
693
+ }, Ai = (e, t, n) => {
694
+ if (!$)
695
+ return R.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
910
696
  };
911
- setupBrowserForEditing();
912
- const o = createEditorListener({
697
+ Ke();
698
+ const o = qe({
913
699
  callbacks: {
914
700
  contentUpdate: t,
915
701
  animation: () => {
@@ -923,24 +709,24 @@ const setupBrowserForEditing = (e = {}) => {
923
709
  return window.addEventListener("message", o), () => {
924
710
  window.removeEventListener("message", o);
925
711
  };
926
- }, BUILDER_STORE_PREFIX = "builder.tests", getContentTestKey = (e) => `${BUILDER_STORE_PREFIX}.${e}`, getContentVariationCookie = ({
712
+ }, cn = "builder.tests", he = (e) => `${cn}.${e}`, dn = ({
927
713
  contentId: e
928
- }) => getCookie({
929
- name: getContentTestKey(e),
714
+ }) => Oe({
715
+ name: he(e),
930
716
  canTrack: !0
931
- }), getContentVariationCookieSync = ({
717
+ }), un = ({
932
718
  contentId: e
933
- }) => getCookieSync({
934
- name: getContentTestKey(e),
719
+ }) => Fe({
720
+ name: he(e),
935
721
  canTrack: !0
936
- }), setContentVariationCookie = ({
722
+ }), pn = ({
937
723
  contentId: e,
938
724
  value: t
939
- }) => setCookie({
940
- name: getContentTestKey(e),
725
+ }) => De({
726
+ name: he(e),
941
727
  value: t,
942
728
  canTrack: !0
943
- }), checkIsBuilderContentWithVariations = (e) => checkIsDefined(e.id) && checkIsDefined(e.variations) && Object.keys(e.variations).length > 0, getRandomVariationId = ({
729
+ }), ze = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, mn = ({
944
730
  id: e,
945
731
  variations: t
946
732
  }) => {
@@ -953,15 +739,15 @@ const setupBrowserForEditing = (e = {}) => {
953
739
  return i;
954
740
  }
955
741
  return e;
956
- }, getAndSetVariantId = (e) => {
957
- const t = getRandomVariationId(e);
958
- return setContentVariationCookie({
742
+ }, Je = (e) => {
743
+ const t = mn(e);
744
+ return pn({
959
745
  contentId: e.id,
960
746
  value: t
961
747
  }).catch((n) => {
962
- logger.error("could not store A/B test variation: ", n);
748
+ R.error("could not store A/B test variation: ", n);
963
749
  }), t;
964
- }, getTestFields = ({
750
+ }, Ge = ({
965
751
  item: e,
966
752
  testGroupId: t
967
753
  }) => {
@@ -975,7 +761,7 @@ const setupBrowserForEditing = (e = {}) => {
975
761
  testVariationId: n.id,
976
762
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
977
763
  };
978
- }, handleABTestingSync = ({
764
+ }, hn = ({
979
765
  item: e,
980
766
  canTrack: t
981
767
  }) => {
@@ -983,14 +769,14 @@ const setupBrowserForEditing = (e = {}) => {
983
769
  return e;
984
770
  if (!e)
985
771
  return;
986
- if (!checkIsBuilderContentWithVariations(e))
772
+ if (!ze(e))
987
773
  return e;
988
- const n = getContentVariationCookieSync({
774
+ const n = un({
989
775
  contentId: e.id
990
- }) || getAndSetVariantId({
776
+ }) || Je({
991
777
  variations: e.variations,
992
778
  id: e.id
993
- }), o = getTestFields({
779
+ }), o = Ge({
994
780
  item: e,
995
781
  testGroupId: n
996
782
  });
@@ -998,18 +784,18 @@ const setupBrowserForEditing = (e = {}) => {
998
784
  ...e,
999
785
  ...o
1000
786
  };
1001
- }, handleABTesting = async ({
787
+ }, fn = async ({
1002
788
  item: e,
1003
789
  canTrack: t
1004
790
  }) => {
1005
- if (!t || !checkIsBuilderContentWithVariations(e))
791
+ if (!t || !ze(e))
1006
792
  return e;
1007
- const o = await getContentVariationCookie({
793
+ const o = await dn({
1008
794
  contentId: e.id
1009
- }) || getAndSetVariantId({
795
+ }) || Je({
1010
796
  variations: e.variations,
1011
797
  id: e.id
1012
- }), r = getTestFields({
798
+ }), r = Ge({
1013
799
  item: e,
1014
800
  testGroupId: o
1015
801
  });
@@ -1017,38 +803,38 @@ const setupBrowserForEditing = (e = {}) => {
1017
803
  ...e,
1018
804
  ...r
1019
805
  };
1020
- }, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0;
1021
- function getGlobalThis() {
806
+ }, Y = (e) => L(e) ? e : !0;
807
+ function bn() {
1022
808
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1023
809
  }
1024
- function getFetch() {
1025
- const e = getGlobalThis().fetch;
810
+ function gn() {
811
+ const e = bn().fetch;
1026
812
  if (typeof e > "u")
1027
813
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1028
814
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1029
815
  return e;
1030
816
  }
1031
- const fetch$1 = getFetch();
1032
- function flatten(e, t = null, n = ".") {
817
+ const Ye = gn();
818
+ function ue(e, t = null, n = ".") {
1033
819
  return Object.keys(e).reduce((o, r) => {
1034
820
  const i = e[r], s = [t, r].filter(Boolean).join(n);
1035
821
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
1036
822
  ...o,
1037
- ...flatten(i, s, n)
823
+ ...ue(i, s, n)
1038
824
  } : {
1039
825
  ...o,
1040
826
  [s]: i
1041
827
  };
1042
828
  }, {});
1043
829
  }
1044
- function flattenMongoQuery(e, t, n = {}) {
830
+ function Qe(e, t, n = {}) {
1045
831
  for (const o in e) {
1046
832
  const r = e[o], i = t ? t + "." + o : o;
1047
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? flattenMongoQuery(r, i, n) : n[i] = r;
833
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Qe(r, i, n) : n[i] = r;
1048
834
  }
1049
835
  return n;
1050
836
  }
1051
- const DEFAULT_API_VERSION = "v3", isPositiveNumber = (e) => typeof e == "number" && !isNaN(e) && e >= 0, generateContentUrl = (e) => {
837
+ const yn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
1052
838
  const {
1053
839
  limit: t = 30,
1054
840
  userAttributes: n,
@@ -1057,82 +843,82 @@ const DEFAULT_API_VERSION = "v3", isPositiveNumber = (e) => typeof e == "number"
1057
843
  apiKey: i,
1058
844
  enrich: s,
1059
845
  locale: l,
1060
- apiVersion: a = DEFAULT_API_VERSION,
1061
- fields: d,
1062
- omit: p,
1063
- offset: c,
1064
- cacheSeconds: u,
1065
- staleCacheSeconds: f,
1066
- sort: m,
1067
- includeUnpublished: b
846
+ apiVersion: a = yn,
847
+ fields: u,
848
+ omit: h,
849
+ offset: d,
850
+ cacheSeconds: p,
851
+ staleCacheSeconds: k,
852
+ sort: v,
853
+ includeUnpublished: F
1068
854
  } = e;
1069
855
  if (!i)
1070
856
  throw new Error("Missing API key");
1071
857
  if (!["v3"].includes(a))
1072
858
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1073
- const C = t !== 1, g = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
1074
- if (g.searchParams.set("apiKey", i), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(C)), g.searchParams.set("includeRefs", String(!0)), l && g.searchParams.set("locale", l), s && g.searchParams.set("enrich", String(s)), g.searchParams.set("omit", p || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), u && isPositiveNumber(u) && g.searchParams.set("cacheSeconds", String(u)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
1075
- const k = flatten({
1076
- sort: m
859
+ const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
860
+ if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && w.searchParams.set("offset", String(Math.floor(d))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), p && Ie(p) && w.searchParams.set("cacheSeconds", String(p)), k && Ie(k) && w.searchParams.set("staleCacheSeconds", String(k)), v) {
861
+ const O = ue({
862
+ sort: v
1077
863
  });
1078
- for (const S in k)
1079
- g.searchParams.set(S, JSON.stringify(k[S]));
864
+ for (const H in O)
865
+ w.searchParams.set(H, JSON.stringify(O[H]));
1080
866
  }
1081
- const I = {
1082
- ...getBuilderSearchParamsFromWindow(),
1083
- ...normalizeSearchParams(e.options || {})
1084
- }, T = flatten(I);
1085
- for (const k in T)
1086
- g.searchParams.set(k, String(T[k]));
1087
- if (n && g.searchParams.set("userAttributes", JSON.stringify(n)), o) {
1088
- const k = flattenMongoQuery({
867
+ const at = {
868
+ ...jt(),
869
+ ...Ae(e.options || {})
870
+ }, ve = ue(at);
871
+ for (const O in ve)
872
+ w.searchParams.set(O, String(ve[O]));
873
+ if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
874
+ const O = Qe({
1089
875
  query: o
1090
876
  });
1091
- for (const S in k)
1092
- g.searchParams.set(S, JSON.stringify(k[S]));
877
+ for (const H in O)
878
+ w.searchParams.set(H, JSON.stringify(O[H]));
1093
879
  }
1094
- return g;
1095
- }, checkContentHasResults = (e) => "results" in e;
1096
- async function fetchOneEntry(e) {
1097
- const t = await fetchEntries({
880
+ return w;
881
+ }, kn = (e) => "results" in e;
882
+ async function be(e) {
883
+ const t = await Sn({
1098
884
  ...e,
1099
885
  limit: 1
1100
886
  });
1101
887
  return t && t[0] || null;
1102
888
  }
1103
- const _fetchContent = async (e) => {
1104
- const t = generateContentUrl(e);
1105
- return await (await (e.fetch ?? fetch$1)(t.href, e.fetchOptions)).json();
1106
- }, _processContentResult = async (e, t, n = generateContentUrl(e)) => {
1107
- const o = getDefaultCanTrack(e.canTrack);
1108
- if (n.search.includes("preview="), !o || !(isBrowser() || TARGET === "reactNative"))
889
+ const vn = async (e) => {
890
+ const t = fe(e);
891
+ return await (await (e.fetch ?? Ye)(t.href, e.fetchOptions)).json();
892
+ }, Cn = async (e, t, n = fe(e)) => {
893
+ const o = Y(e.canTrack);
894
+ if (n.search.includes("preview="), !o || !($() || x === "reactNative"))
1109
895
  return t.results;
1110
896
  try {
1111
897
  const r = [];
1112
898
  for (const i of t.results)
1113
- r.push(await handleABTesting({
899
+ r.push(await fn({
1114
900
  item: i,
1115
901
  canTrack: o
1116
902
  }));
1117
903
  t.results = r;
1118
904
  } catch (r) {
1119
- logger.error("Could not process A/B tests. ", r);
905
+ R.error("Could not process A/B tests. ", r);
1120
906
  }
1121
907
  return t.results;
1122
908
  };
1123
- async function fetchEntries(e) {
909
+ async function Sn(e) {
1124
910
  try {
1125
- const t = generateContentUrl(e), n = await _fetchContent(e);
1126
- return checkContentHasResults(n) ? _processContentResult(e, n) : (logger.error("Error fetching data. ", {
911
+ const t = fe(e), n = await vn(e);
912
+ return kn(n) ? Cn(e, n) : (R.error("Error fetching data. ", {
1127
913
  url: t,
1128
914
  content: n,
1129
915
  options: e
1130
916
  }), null);
1131
917
  } catch (t) {
1132
- return logger.error("Error fetching data. ", t), null;
918
+ return R.error("Error fetching data. ", t), null;
1133
919
  }
1134
920
  }
1135
- const fetchBuilderProps = async (e) => {
921
+ const Vi = async (e) => {
1136
922
  var o, r, i;
1137
923
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1138
924
  ...e,
@@ -1144,27 +930,27 @@ const fetchBuilderProps = async (e) => {
1144
930
  urlPath: t
1145
931
  } : {}
1146
932
  },
1147
- options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
933
+ options: Ne(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1148
934
  };
1149
935
  return {
1150
936
  apiKey: n.apiKey,
1151
937
  model: n.model,
1152
- content: await fetchOneEntry(n)
938
+ content: await be(n)
1153
939
  };
1154
- }, camelToKebabCase = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1155
- function throttle(e, t, n = {}) {
940
+ }, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
941
+ function Tn(e, t, n = {}) {
1156
942
  let o, r, i, s = null, l = 0;
1157
943
  const a = function() {
1158
944
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1159
945
  };
1160
946
  return function() {
1161
- const d = Date.now();
1162
- !l && n.leading === !1 && (l = d);
1163
- const p = t - (d - l);
1164
- return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
947
+ const u = Date.now();
948
+ !l && n.leading === !1 && (l = u);
949
+ const h = t - (u - l);
950
+ return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
1165
951
  };
1166
952
  }
1167
- function assign(e, ...t) {
953
+ function q(e, ...t) {
1168
954
  const n = Object(e);
1169
955
  for (let o = 1; o < arguments.length; o++) {
1170
956
  const r = arguments[o];
@@ -1174,118 +960,118 @@ function assign(e, ...t) {
1174
960
  }
1175
961
  return n;
1176
962
  }
1177
- function bindAnimations(e) {
963
+ function wn(e) {
1178
964
  for (const t of e)
1179
965
  switch (t.trigger) {
1180
966
  case "pageLoad":
1181
- triggerAnimation(t);
967
+ _e(t);
1182
968
  break;
1183
969
  case "scrollInView":
1184
- bindScrollInViewAnimation(t);
970
+ $n(t);
1185
971
  break;
1186
972
  }
1187
973
  }
1188
- function warnElementNotPresent(e) {
974
+ function Xe(e) {
1189
975
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1190
976
  }
1191
- function augmentAnimation(e, t) {
1192
- const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
977
+ function Ze(e, t) {
978
+ const n = In(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1193
979
  for (const l of s)
1194
980
  for (const a of n)
1195
981
  a in l || (l[a] = o[a]);
1196
982
  }
1197
- function getAllStylesUsed(e) {
983
+ function In(e) {
1198
984
  const t = [];
1199
985
  for (const n of e.steps)
1200
986
  for (const o in n.styles)
1201
987
  t.indexOf(o) === -1 && t.push(o);
1202
988
  return t;
1203
989
  }
1204
- function triggerAnimation(e) {
990
+ function _e(e) {
1205
991
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1206
992
  if (!t.length) {
1207
- warnElementNotPresent(e.elementId || e.id || "");
993
+ Xe(e.elementId || e.id || "");
1208
994
  return;
1209
995
  }
1210
996
  Array.from(t).forEach((n) => {
1211
- augmentAnimation(e, n), n.style.transition = "none", n.style.transitionDelay = "0", assign(n.style, e.steps[0].styles), setTimeout(() => {
1212
- n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), assign(n.style, e.steps[1].styles), setTimeout(() => {
997
+ Ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
998
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
1213
999
  n.style.transition = "", n.style.transitionDelay = "";
1214
1000
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1215
1001
  });
1216
1002
  });
1217
1003
  }
1218
- function bindScrollInViewAnimation(e) {
1004
+ function $n(e) {
1219
1005
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1220
1006
  if (!t.length) {
1221
- warnElementNotPresent(e.elementId || e.id || "");
1007
+ Xe(e.elementId || e.id || "");
1222
1008
  return;
1223
1009
  }
1224
1010
  Array.from(t).forEach((n) => {
1225
- augmentAnimation(e, n);
1011
+ Ze(e, n);
1226
1012
  let o = !1, r = !1;
1227
1013
  function i() {
1228
1014
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1229
- assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1015
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1230
1016
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1231
1017
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1232
- })) : e.repeat && o && !r && !l(n) && (o = !1, assign(n.style, e.steps[0].styles));
1018
+ })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
1233
1019
  }
1234
- const s = throttle(i, 200, {
1020
+ const s = Tn(i, 200, {
1235
1021
  leading: !1
1236
1022
  });
1237
- function l(p) {
1238
- const c = p.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
1239
- return c.bottom > m && c.top < u - m;
1023
+ function l(h) {
1024
+ const d = h.getBoundingClientRect(), p = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * p;
1025
+ return d.bottom > v && d.top < p - v;
1240
1026
  }
1241
1027
  const a = e.steps[0].styles;
1242
- function d() {
1243
- assign(n.style, a);
1028
+ function u() {
1029
+ q(n.style, a);
1244
1030
  }
1245
- d(), setTimeout(() => {
1246
- n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1031
+ u(), setTimeout(() => {
1032
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1247
1033
  }), document.addEventListener("scroll", s, {
1248
1034
  capture: !0,
1249
1035
  passive: !0
1250
1036
  }), i();
1251
1037
  });
1252
1038
  }
1253
- const convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
1039
+ const et = (e) => Object.entries(e).map(([n, o]) => {
1254
1040
  if (typeof o == "string")
1255
- return `${camelToKebabCase(n)}: ${o};`;
1256
- }).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
1257
- `), createCssClass = ({
1041
+ return `${ge(n)}: ${o};`;
1042
+ }).filter(L), Rn = (e) => et(e).join(`
1043
+ `), Wi = ({
1258
1044
  mediaQuery: e,
1259
1045
  className: t,
1260
1046
  styles: n
1261
1047
  }) => {
1262
1048
  const o = `.${t} {
1263
- ${convertStyleMapToCSS(n)}
1049
+ ${Rn(n)}
1264
1050
  }`;
1265
1051
  return e ? `${e} {
1266
1052
  ${o}
1267
1053
  }` : o;
1268
1054
  };
1269
- function transformStyleProperty({
1055
+ function En({
1270
1056
  style: e
1271
1057
  }) {
1272
1058
  return e;
1273
1059
  }
1274
- const getStyle = ({
1060
+ const Ni = ({
1275
1061
  block: e,
1276
1062
  context: t
1277
- }) => mapStyleObjToStrIfNeeded(transformStyleProperty({
1063
+ }) => tt(En({
1278
1064
  style: e.style || {},
1279
1065
  context: t,
1280
1066
  block: e
1281
1067
  }));
1282
- function mapStyleObjToStrIfNeeded(e) {
1283
- switch (TARGET) {
1068
+ function tt(e) {
1069
+ switch (x) {
1284
1070
  case "svelte":
1285
1071
  case "vue":
1286
1072
  case "solid":
1287
1073
  case "angular":
1288
- return convertStyleMapToCSSArray(e).join(" ");
1074
+ return et(e).join(" ");
1289
1075
  case "qwik":
1290
1076
  case "reactNative":
1291
1077
  case "react":
@@ -1293,7 +1079,7 @@ function mapStyleObjToStrIfNeeded(e) {
1293
1079
  return e;
1294
1080
  }
1295
1081
  }
1296
- const getComponent = ({
1082
+ const Bn = ({
1297
1083
  block: e,
1298
1084
  registeredComponents: t
1299
1085
  }) => {
@@ -1307,7 +1093,7 @@ const getComponent = ({
1307
1093
  console.warn(`
1308
1094
  Could not find a registered component named "${n}".
1309
1095
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1310
- }, getRepeatItemData = ({
1096
+ }, Pn = ({
1311
1097
  block: e,
1312
1098
  context: t
1313
1099
  }) => {
@@ -1317,7 +1103,7 @@ const getComponent = ({
1317
1103
  } = e;
1318
1104
  if (!(n != null && n.collection))
1319
1105
  return;
1320
- const r = evaluate({
1106
+ const r = G({
1321
1107
  code: n.collection,
1322
1108
  localState: t.localState,
1323
1109
  rootState: t.rootState,
@@ -1328,72 +1114,72 @@ const getComponent = ({
1328
1114
  if (!Array.isArray(r))
1329
1115
  return;
1330
1116
  const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1331
- return r.map((a, d) => ({
1117
+ return r.map((a, u) => ({
1332
1118
  context: {
1333
1119
  ...t,
1334
1120
  localState: {
1335
1121
  ...t.localState,
1336
- $index: d,
1122
+ $index: u,
1337
1123
  $item: a,
1338
1124
  [s]: a,
1339
- [`$${s}Index`]: d
1125
+ [`$${s}Index`]: u
1340
1126
  }
1341
1127
  },
1342
1128
  block: o
1343
1129
  }));
1344
- }, provideLinkComponent = (e, t) => {
1130
+ }, xn = (e, t) => {
1345
1131
  var n;
1346
1132
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1347
1133
  builderLinkComponent: t
1348
1134
  } : {};
1349
- }, provideRegisteredComponents = (e, t) => {
1135
+ }, An = (e, t) => {
1350
1136
  var n;
1351
1137
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1352
1138
  builderComponents: t
1353
1139
  } : {};
1354
- }, provideBuilderBlock = (e, t) => {
1140
+ }, Vn = (e, t) => {
1355
1141
  var n;
1356
1142
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1357
1143
  builderBlock: t
1358
1144
  } : {};
1359
- }, provideBuilderContext = (e, t) => {
1145
+ }, Wn = (e, t) => {
1360
1146
  var n;
1361
1147
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1362
1148
  builderContext: t
1363
1149
  } : {};
1364
- }, DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
1150
+ }, Nn = () => Promise.resolve().then(() => Yn).then((e) => e.default).catch((e) => {
1365
1151
  throw console.error(
1366
1152
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1367
1153
  e
1368
1154
  ), e;
1369
- }), BlockStyles = () => import("./block-styles-TC7FEjXP.js").then((e) => e.default).catch((e) => {
1155
+ }), Fn = () => import("./block-styles-gLB-jSXN.js").then((e) => e.default).catch((e) => {
1370
1156
  throw console.error(
1371
1157
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1372
1158
  e
1373
1159
  ), e;
1374
- }), BlockWrapper = () => import("./block-wrapper-wULOB3JK.js").then((e) => e.default).catch((e) => {
1160
+ }), On = () => import("./block-wrapper-frfIIST_.js").then((e) => e.default).catch((e) => {
1375
1161
  throw console.error(
1376
1162
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1377
1163
  e
1378
1164
  ), e;
1379
- }), ComponentRef = () => import("./component-ref-Tn-Aa9EG.js").then((e) => e.default).catch((e) => {
1165
+ }), Dn = () => import("./component-ref-IbarjSnq.js").then((e) => e.default).catch((e) => {
1380
1166
  throw console.error(
1381
1167
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1382
1168
  e
1383
1169
  ), e;
1384
- }), RepeatedBlock = () => import("./repeated-block-_TZDsWlq.js").then((e) => e.default).catch((e) => {
1170
+ }), Ln = () => import("./repeated-block-Z-_chLeZ.js").then((e) => e.default).catch((e) => {
1385
1171
  throw console.error(
1386
1172
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1387
1173
  e
1388
1174
  ), e;
1389
- }), _sfc_main$r = defineComponent({
1175
+ }), Un = f({
1390
1176
  name: "block",
1391
1177
  components: {
1392
- BlockStyles: defineAsyncComponent(BlockStyles),
1393
- RepeatedBlock: defineAsyncComponent(RepeatedBlock),
1394
- ComponentRef: defineAsyncComponent(ComponentRef),
1395
- BlockWrapper: defineAsyncComponent(BlockWrapper),
1396
- DynamicDiv: defineAsyncComponent(DynamicDiv$1)
1178
+ BlockStyles: j(Fn),
1179
+ RepeatedBlock: j(Ln),
1180
+ ComponentRef: j(Dn),
1181
+ BlockWrapper: j(On),
1182
+ DynamicDiv: j(Nn)
1397
1183
  },
1398
1184
  props: ["block", "context", "registeredComponents", "linkComponent"],
1399
1185
  data() {
@@ -1406,7 +1192,7 @@ const getComponent = ({
1406
1192
  },
1407
1193
  mounted() {
1408
1194
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1409
- t && e && bindAnimations(
1195
+ t && e && wn(
1410
1196
  t.map((n) => ({
1411
1197
  ...n,
1412
1198
  elementId: e
@@ -1417,14 +1203,14 @@ const getComponent = ({
1417
1203
  },
1418
1204
  computed: {
1419
1205
  repeatItem() {
1420
- return getRepeatItemData({
1206
+ return Pn({
1421
1207
  block: this.block,
1422
1208
  context: this.context
1423
1209
  });
1424
1210
  },
1425
1211
  processedBlock() {
1426
1212
  var t;
1427
- return (t = this.block.repeat) != null && t.collection ? this.block : getProcessedBlock({
1213
+ return (t = this.block.repeat) != null && t.collection ? this.block : Ot({
1428
1214
  block: this.block,
1429
1215
  localState: this.context.localState,
1430
1216
  rootState: this.context.rootState,
@@ -1434,7 +1220,7 @@ const getComponent = ({
1434
1220
  });
1435
1221
  },
1436
1222
  blockComponent() {
1437
- return getComponent({
1223
+ return Bn({
1438
1224
  block: this.processedBlock,
1439
1225
  registeredComponents: this.registeredComponents
1440
1226
  });
@@ -1460,11 +1246,11 @@ const getComponent = ({
1460
1246
  blockChildren: this.processedBlock.children ?? [],
1461
1247
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1462
1248
  componentOptions: {
1463
- ...getBlockComponentOptions(this.processedBlock),
1464
- ...provideBuilderBlock(this.blockComponent, this.processedBlock),
1465
- ...provideBuilderContext(this.blockComponent, this.context),
1466
- ...provideLinkComponent(this.blockComponent, this.linkComponent),
1467
- ...provideRegisteredComponents(
1249
+ ...Rt(this.processedBlock),
1250
+ ...Vn(this.blockComponent, this.processedBlock),
1251
+ ...Wn(this.blockComponent, this.context),
1252
+ ...xn(this.blockComponent, this.linkComponent),
1253
+ ...An(
1468
1254
  this.blockComponent,
1469
1255
  this.registeredComponents
1470
1256
  )
@@ -1474,27 +1260,27 @@ const getComponent = ({
1474
1260
  registeredComponents: this.registeredComponents,
1475
1261
  builderBlock: this.processedBlock,
1476
1262
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1477
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && TARGET === "rsc")
1263
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && x === "rsc")
1478
1264
  };
1479
1265
  }
1480
1266
  }
1481
1267
  });
1482
- function _sfc_render$p(e, t, n, o, r, i) {
1483
- var c;
1484
- const s = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), p = resolveComponent("RepeatedBlock");
1485
- return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
1486
- createVNode(s, {
1268
+ function Mn(e, t, n, o, r, i) {
1269
+ var d;
1270
+ const s = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
1271
+ return e.canShowBlock ? (c(), m(T, { key: 0 }, [
1272
+ I(s, {
1487
1273
  block: e.processedBlock,
1488
1274
  context: e.context
1489
1275
  }, null, 8, ["block", "context"]),
1490
- (c = e.blockComponent) != null && c.noWrap ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
1491
- e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, f) => (openBlock(), createBlock(p, {
1492
- key: f,
1493
- repeatContext: u.context,
1494
- block: u.block,
1276
+ (d = e.blockComponent) != null && d.noWrap ? (c(), m(T, { key: 1 }, [
1277
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
1278
+ key: k,
1279
+ repeatContext: p.context,
1280
+ block: p.block,
1495
1281
  registeredComponents: e.registeredComponents,
1496
1282
  linkComponent: e.linkComponent
1497
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(l, {
1283
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(l, {
1498
1284
  key: 0,
1499
1285
  componentRef: e.componentRefProps.componentRef,
1500
1286
  componentOptions: e.componentRefProps.componentOptions,
@@ -1506,21 +1292,21 @@ function _sfc_render$p(e, t, n, o, r, i) {
1506
1292
  includeBlockProps: e.componentRefProps.includeBlockProps,
1507
1293
  isInteractive: e.componentRefProps.isInteractive
1508
1294
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1509
- ], 64)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
1510
- e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, f) => (openBlock(), createBlock(p, {
1511
- key: f,
1512
- repeatContext: u.context,
1513
- block: u.block,
1295
+ ], 64)) : (c(), m(T, { key: 0 }, [
1296
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
1297
+ key: k,
1298
+ repeatContext: p.context,
1299
+ block: p.block,
1514
1300
  registeredComponents: e.registeredComponents,
1515
1301
  linkComponent: e.linkComponent
1516
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(d, {
1302
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(u, {
1517
1303
  key: 0,
1518
1304
  Wrapper: e.Tag,
1519
1305
  block: e.processedBlock,
1520
1306
  context: e.context
1521
1307
  }, {
1522
- default: withCtx(() => [
1523
- createVNode(l, {
1308
+ default: N(() => [
1309
+ I(l, {
1524
1310
  componentRef: e.componentRefProps.componentRef,
1525
1311
  componentOptions: e.componentRefProps.componentOptions,
1526
1312
  blockChildren: e.componentRefProps.blockChildren,
@@ -1531,9 +1317,9 @@ function _sfc_render$p(e, t, n, o, r, i) {
1531
1317
  includeBlockProps: e.componentRefProps.includeBlockProps,
1532
1318
  isInteractive: e.componentRefProps.isInteractive
1533
1319
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1534
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, f) => (openBlock(), createBlock(a, {
1535
- key: u.id,
1536
- block: u,
1320
+ (c(!0), m(T, null, A(e.childrenWithoutParentComponent, (p, k) => (c(), g(a, {
1321
+ key: p.id,
1322
+ block: p,
1537
1323
  registeredComponents: e.registeredComponents,
1538
1324
  linkComponent: e.linkComponent,
1539
1325
  context: e.context
@@ -1542,12 +1328,12 @@ function _sfc_render$p(e, t, n, o, r, i) {
1542
1328
  _: 1
1543
1329
  }, 8, ["Wrapper", "block", "context"]))
1544
1330
  ], 64))
1545
- ], 64)) : createCommentVNode("", !0);
1331
+ ], 64)) : C("", !0);
1546
1332
  }
1547
- const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1333
+ const ye = /* @__PURE__ */ b(Un, [["render", Mn]]), Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1548
1334
  __proto__: null,
1549
- default: Block
1550
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$q = defineComponent({
1335
+ default: ye
1336
+ }, Symbol.toStringTag, { value: "Module" })), Hn = f({
1551
1337
  name: "builder-blocks-wrapper",
1552
1338
  props: [
1553
1339
  "blocks",
@@ -1568,7 +1354,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1568
1354
  methods: {
1569
1355
  onClick() {
1570
1356
  var e, t;
1571
- isEditing() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1357
+ E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1572
1358
  {
1573
1359
  type: "builder.clickEmptyBlocks",
1574
1360
  data: {
@@ -1581,7 +1367,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1581
1367
  },
1582
1368
  onMouseEnter() {
1583
1369
  var e, t;
1584
- isEditing() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1370
+ E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1585
1371
  {
1586
1372
  type: "builder.hoverEmptyBlocks",
1587
1373
  data: {
@@ -1594,8 +1380,8 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1594
1380
  }
1595
1381
  }
1596
1382
  });
1597
- function _sfc_render$o(e, t, n, o, r, i) {
1598
- return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
1383
+ function jn(e, t, n, o, r, i) {
1384
+ return c(), g(K(e.BlocksWrapper), S({
1599
1385
  ref: "blocksWrapperRef",
1600
1386
  class: e.className + " component-178o76acnws",
1601
1387
  "builder-path": e.path,
@@ -1605,15 +1391,15 @@ function _sfc_render$o(e, t, n, o, r, i) {
1605
1391
  onMouseEnter: (s) => e.onMouseEnter(),
1606
1392
  onKeyPress: (s) => e.onClick()
1607
1393
  }, { ...e.BlocksWrapperProps }), {
1608
- default: withCtx(() => [
1609
- renderSlot(e.$slots, "default", {}, void 0, !0)
1394
+ default: N(() => [
1395
+ P(e.$slots, "default", {}, void 0, !0)
1610
1396
  ]),
1611
1397
  _: 3
1612
1398
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1613
1399
  }
1614
- const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o], ["__scopeId", "data-v-824f09a8"]]), _sfc_main$p = defineComponent({
1400
+ const Kn = /* @__PURE__ */ b(Hn, [["render", jn], ["__scopeId", "data-v-824f09a8"]]), qn = f({
1615
1401
  name: "builder-blocks",
1616
- components: { BlocksWrapper, Block },
1402
+ components: { BlocksWrapper: Kn, Block: ye },
1617
1403
  props: [
1618
1404
  "blocks",
1619
1405
  "parent",
@@ -1624,48 +1410,48 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_
1624
1410
  "registeredComponents"
1625
1411
  ],
1626
1412
  inject: {
1627
- builderContext: BuilderContext.key,
1628
- componentsContext: ComponentsContext.key
1413
+ builderContext: le.key,
1414
+ componentsContext: Ve.key
1629
1415
  }
1630
1416
  });
1631
- function _sfc_render$n(e, t, n, o, r, i) {
1632
- var a, d;
1633
- const s = resolveComponent("Block"), l = resolveComponent("BlocksWrapper");
1634
- return openBlock(), createBlock(l, {
1417
+ function zn(e, t, n, o, r, i) {
1418
+ var a, u;
1419
+ const s = y("Block"), l = y("BlocksWrapper");
1420
+ return c(), g(l, {
1635
1421
  blocks: e.blocks,
1636
1422
  parent: e.parent,
1637
1423
  path: e.path,
1638
1424
  styleProp: e.styleProp,
1639
1425
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
1640
- BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
1426
+ BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
1641
1427
  }, {
1642
- default: withCtx(() => [
1643
- e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (p, c) => (openBlock(), createBlock(s, {
1644
- key: p.id,
1645
- block: p,
1428
+ default: N(() => [
1429
+ e.blocks ? (c(!0), m(T, { key: 0 }, A(e.blocks, (h, d) => (c(), g(s, {
1430
+ key: h.id,
1431
+ block: h,
1646
1432
  linkComponent: e.linkComponent,
1647
1433
  context: e.context || e.builderContext,
1648
1434
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
1649
- }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : createCommentVNode("", !0)
1435
+ }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : C("", !0)
1650
1436
  ]),
1651
1437
  _: 1
1652
1438
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
1653
1439
  }
1654
- const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]), _sfc_main$o = defineComponent({
1440
+ const M = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = f({
1655
1441
  name: "dynamic-div",
1656
1442
  props: []
1657
1443
  });
1658
- function _sfc_render$m(e, t, n, o, r, i) {
1659
- return openBlock(), createElementBlock("div", null, [
1660
- renderSlot(e.$slots, "default")
1444
+ function Gn(e, t, n, o, r, i) {
1445
+ return c(), m("div", null, [
1446
+ P(e.$slots, "default")
1661
1447
  ]);
1662
1448
  }
1663
- const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]), dynamicDiv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1449
+ const Q = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1664
1450
  __proto__: null,
1665
- default: DynamicDiv
1666
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$n = defineComponent({
1451
+ default: Q
1452
+ }, Symbol.toStringTag, { value: "Module" })), ke = f({
1667
1453
  render() {
1668
- return h("style", {
1454
+ return Pe("style", {
1669
1455
  innerHTML: this.styles,
1670
1456
  "data-id": this.id,
1671
1457
  nonce: this.nonce
@@ -1673,7 +1459,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1673
1459
  },
1674
1460
  name: "inlined-styles",
1675
1461
  props: ["styles", "id", "nonce"]
1676
- }), SIZES = {
1462
+ }), nt = {
1677
1463
  small: {
1678
1464
  min: 320,
1679
1465
  default: 321,
@@ -1689,11 +1475,11 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1689
1475
  default: 991,
1690
1476
  max: 1200
1691
1477
  }
1692
- }, getMaxWidthQueryForSize = (e, t = SIZES) => `@media (max-width: ${t[e].max}px)`, getSizesForBreakpoints = ({
1478
+ }, Oi = (e, t = nt) => `@media (max-width: ${t[e].max}px)`, Qn = ({
1693
1479
  small: e,
1694
1480
  medium: t
1695
1481
  }) => {
1696
- const n = fastClone(SIZES);
1482
+ const n = pe(nt);
1697
1483
  if (!e || !t)
1698
1484
  return n;
1699
1485
  const o = Math.floor(e / 2);
@@ -1715,13 +1501,13 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1715
1501
  min: i,
1716
1502
  default: i + 1
1717
1503
  }, n;
1718
- }, getColumnsClass = (e) => `builder-columns ${e}-breakpoints`, _sfc_main$m = defineComponent({
1504
+ }, Xn = (e) => `builder-columns ${e}-breakpoints`, Zn = f({
1719
1505
  name: "builder-columns",
1720
1506
  components: {
1721
- InlinedStyles: _sfc_main$n,
1722
- DynamicRenderer,
1723
- Blocks,
1724
- DynamicDiv
1507
+ InlinedStyles: ke,
1508
+ DynamicRenderer: me,
1509
+ Blocks: M,
1510
+ DynamicDiv: Q
1725
1511
  },
1726
1512
  props: [
1727
1513
  "space",
@@ -1739,8 +1525,8 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1739
1525
  cols: this.columns || [],
1740
1526
  stackAt: this.stackColumnsAt || "tablet",
1741
1527
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
1742
- TARGET,
1743
- getColumnsClass
1528
+ TARGET: x,
1529
+ getColumnsClass: Xn
1744
1530
  };
1745
1531
  },
1746
1532
  methods: {
@@ -1806,7 +1592,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1806
1592
  },
1807
1593
  getWidthForBreakpointSize(e) {
1808
1594
  var n, o;
1809
- return getSizesForBreakpoints(
1595
+ return Qn(
1810
1596
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1811
1597
  )[e].max;
1812
1598
  },
@@ -1843,34 +1629,34 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1843
1629
  ...e.link ? {
1844
1630
  href: e.link
1845
1631
  } : {},
1846
- [getClassPropName()]: "builder-column",
1847
- style: mapStyleObjToStrIfNeeded(this.columnCssVars(t))
1632
+ [_()]: "builder-column",
1633
+ style: tt(this.columnCssVars(t))
1848
1634
  };
1849
1635
  }
1850
1636
  }
1851
1637
  });
1852
- function _sfc_render$l(e, t, n, o, r, i) {
1853
- var d;
1854
- const s = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1855
- return openBlock(), createElementBlock("div", mergeProps({
1856
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-2brhoa1k8gd",
1638
+ function _n(e, t, n, o, r, i) {
1639
+ var u;
1640
+ const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
1641
+ return c(), m("div", S({
1642
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1857
1643
  style: e.columnsCssVars()
1858
1644
  }, {}), [
1859
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
1645
+ e.TARGET !== "reactNative" ? (c(), g(s, {
1860
1646
  key: 0,
1861
1647
  id: "builderio-columns",
1862
1648
  styles: e.columnsStyles(),
1863
1649
  nonce: e.builderContext.nonce
1864
- }, null, 8, ["styles", "nonce"])) : createCommentVNode("", !0),
1865
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (p, c) => (openBlock(), createBlock(a, {
1866
- key: c,
1867
- TagName: e.getTagName(p),
1650
+ }, null, 8, ["styles", "nonce"])) : C("", !0),
1651
+ (c(!0), m(T, null, A(e.columns, (h, d) => (c(), g(a, {
1652
+ key: d,
1653
+ TagName: e.getTagName(h),
1868
1654
  actionAttributes: {},
1869
- attributes: e.getAttributes(p, c)
1655
+ attributes: e.getAttributes(h, d)
1870
1656
  }, {
1871
- default: withCtx(() => [
1872
- createVNode(l, {
1873
- path: `component.options.columns.${c}.blocks`,
1657
+ default: N(() => [
1658
+ I(l, {
1659
+ path: `component.options.columns.${d}.blocks`,
1874
1660
  parent: e.builderBlock.id,
1875
1661
  styleProp: {
1876
1662
  flexGrow: "1"
@@ -1878,54 +1664,54 @@ function _sfc_render$l(e, t, n, o, r, i) {
1878
1664
  context: e.builderContext,
1879
1665
  registeredComponents: e.builderComponents,
1880
1666
  linkComponent: e.builderLinkComponent,
1881
- blocks: p.blocks
1667
+ blocks: h.blocks
1882
1668
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1883
1669
  ]),
1884
1670
  _: 2
1885
1671
  }, 1032, ["TagName", "attributes"]))), 128))
1886
1672
  ], 16);
1887
1673
  }
1888
- const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l], ["__scopeId", "data-v-52366f16"]]), _sfc_main$l = defineComponent({
1674
+ const eo = /* @__PURE__ */ b(Zn, [["render", _n], ["__scopeId", "data-v-52366f16"]]), to = f({
1889
1675
  name: "builder-fragment-component",
1890
1676
  props: []
1891
1677
  });
1892
- function _sfc_render$k(e, t, n, o, r, i) {
1893
- return openBlock(), createElementBlock("span", null, [
1894
- renderSlot(e.$slots, "default")
1678
+ function no(e, t, n, o, r, i) {
1679
+ return c(), m("span", null, [
1680
+ P(e.$slots, "default")
1895
1681
  ]);
1896
1682
  }
1897
- const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]);
1898
- function removeProtocol(e) {
1683
+ const oo = /* @__PURE__ */ b(to, [["render", no]]);
1684
+ function $e(e) {
1899
1685
  return e.replace(/http(s)?:/, "");
1900
1686
  }
1901
- function updateQueryParam(e = "", t, n) {
1687
+ function ro(e = "", t, n) {
1902
1688
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1903
1689
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1904
1690
  }
1905
- function getShopifyImageUrl(e, t) {
1691
+ function io(e, t) {
1906
1692
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1907
1693
  return e;
1908
1694
  if (t === "master")
1909
- return removeProtocol(e);
1695
+ return $e(e);
1910
1696
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1911
1697
  if (n) {
1912
1698
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1913
- return removeProtocol(`${o[0]}_${i}${r}`);
1699
+ return $e(`${o[0]}_${i}${r}`);
1914
1700
  }
1915
1701
  return null;
1916
1702
  }
1917
- function getSrcSet(e) {
1703
+ function oe(e) {
1918
1704
  if (!e)
1919
1705
  return e;
1920
1706
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1921
1707
  if (e.match(/builder\.io/)) {
1922
1708
  let n = e;
1923
1709
  const o = Number(e.split("?width=")[1]);
1924
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${updateQueryParam(e, "width", r)} ${r}w`).concat([n]).join(", ");
1710
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ro(e, "width", r)} ${r}w`).concat([n]).join(", ");
1925
1711
  }
1926
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1712
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1927
1713
  }
1928
- const _sfc_main$k = defineComponent({
1714
+ const so = f({
1929
1715
  name: "builder-image",
1930
1716
  props: [
1931
1717
  "image",
@@ -1955,10 +1741,10 @@ const _sfc_main$k = defineComponent({
1955
1741
  if (!this.noWebp) {
1956
1742
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1957
1743
  if (!this.srcset.includes(this.image.split("?")[0]))
1958
- return console.debug("Removed given srcset"), getSrcSet(t);
1744
+ return console.debug("Removed given srcset"), oe(t);
1959
1745
  } else if (this.image && !this.srcset)
1960
- return getSrcSet(t);
1961
- return getSrcSet(t);
1746
+ return oe(t);
1747
+ return oe(t);
1962
1748
  }
1963
1749
  },
1964
1750
  webpSrcSet() {
@@ -1976,59 +1762,59 @@ const _sfc_main$k = defineComponent({
1976
1762
  return this.aspectRatio ? e : void 0;
1977
1763
  }
1978
1764
  }
1979
- }), _hoisted_1$b = ["srcset"], _hoisted_2$4 = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
1765
+ }), ao = ["srcset"], lo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], co = {
1980
1766
  key: 2,
1981
1767
  class: "div-1pl23ac79ld-2"
1982
1768
  };
1983
- function _sfc_render$j(e, t, n, o, r, i) {
1984
- var s, l, a, d, p, c;
1985
- return openBlock(), createElementBlock(Fragment$1, null, [
1986
- createElementVNode("picture", null, [
1987
- e.webpSrcSet ? (openBlock(), createElementBlock("source", {
1769
+ function uo(e, t, n, o, r, i) {
1770
+ var s, l, a, u, h, d;
1771
+ return c(), m(T, null, [
1772
+ z("picture", null, [
1773
+ e.webpSrcSet ? (c(), m("source", {
1988
1774
  key: 0,
1989
1775
  type: "image/webp",
1990
1776
  srcset: e.webpSrcSet
1991
- }, null, 8, _hoisted_1$b)) : createCommentVNode("", !0),
1992
- createElementVNode("img", {
1777
+ }, null, 8, ao)) : C("", !0),
1778
+ z("img", {
1993
1779
  loading: e.highPriority ? "eager" : "lazy",
1994
1780
  fetchpriority: e.highPriority ? "high" : "auto",
1995
1781
  alt: e.altText,
1996
1782
  role: e.altText ? void 0 : "presentation",
1997
- style: normalizeStyle({
1783
+ style: D({
1998
1784
  objectPosition: e.backgroundPosition || "center",
1999
1785
  objectFit: e.backgroundSize || "cover",
2000
1786
  ...e.aspectRatioCss
2001
1787
  }),
2002
- class: normalizeClass(
1788
+ class: J(
2003
1789
  "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
2004
1790
  ),
2005
1791
  src: e.image,
2006
1792
  srcset: e.srcSetToUse,
2007
1793
  sizes: e.sizes
2008
- }, null, 14, _hoisted_2$4)
1794
+ }, null, 14, lo)
2009
1795
  ]),
2010
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1796
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
2011
1797
  key: 0,
2012
1798
  class: "builder-image-sizer div-1pl23ac79ld",
2013
- style: normalizeStyle({
1799
+ style: D({
2014
1800
  paddingTop: e.aspectRatio * 100 + "%"
2015
1801
  })
2016
- }, null, 4)) : createCommentVNode("", !0),
2017
- (d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? renderSlot(e.$slots, "default", { key: 1 }, void 0, !0) : createCommentVNode("", !0),
2018
- !e.fitContent && ((c = (p = e.builderBlock) == null ? void 0 : p.children) != null && c.length) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
2019
- renderSlot(e.$slots, "default", {}, void 0, !0)
2020
- ])) : createCommentVNode("", !0)
1802
+ }, null, 4)) : C("", !0),
1803
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1804
+ !e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", co, [
1805
+ P(e.$slots, "default", {}, void 0, !0)
1806
+ ])) : C("", !0)
2021
1807
  ], 64);
2022
1808
  }
2023
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-b1147753"]]), _sfc_main$j = defineComponent({
1809
+ const po = /* @__PURE__ */ b(so, [["render", uo], ["__scopeId", "data-v-b1147753"]]), mo = f({
2024
1810
  name: "builder-section-component",
2025
1811
  props: ["attributes", "maxWidth"],
2026
1812
  data() {
2027
- return { filterAttrs };
1813
+ return { filterAttrs: V };
2028
1814
  }
2029
1815
  });
2030
- function _sfc_render$i(e, t, n, o, r, i) {
2031
- return openBlock(), createElementBlock("section", mergeProps({
1816
+ function ho(e, t, n, o, r, i) {
1817
+ return c(), m("section", S({
2032
1818
  style: {
2033
1819
  width: "100%",
2034
1820
  alignSelf: "stretch",
@@ -2041,11 +1827,11 @@ function _sfc_render$i(e, t, n, o, r, i) {
2041
1827
  marginLeft: "auto",
2042
1828
  marginRight: "auto"
2043
1829
  }
2044
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2045
- renderSlot(e.$slots, "default")
1830
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1831
+ P(e.$slots, "default")
2046
1832
  ], 16);
2047
1833
  }
2048
- const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i]]), defaultTitle = {
1834
+ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), re = {
2049
1835
  "@type": "@builder.io/sdk:Element",
2050
1836
  layerName: "Accordion item title",
2051
1837
  responsiveStyles: {
@@ -2074,7 +1860,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2074
1860
  }
2075
1861
  }
2076
1862
  }]
2077
- }, defaultDetail = {
1863
+ }, ie = {
2078
1864
  "@type": "@builder.io/sdk:Element",
2079
1865
  layerName: "Accordion item detail",
2080
1866
  responsiveStyles: {
@@ -2105,7 +1891,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2105
1891
  }
2106
1892
  }
2107
1893
  }]
2108
- }, componentInfo$i = {
1894
+ }, bo = {
2109
1895
  name: "Builder:Accordion",
2110
1896
  canHaveChildren: !0,
2111
1897
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2122,19 +1908,19 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2122
1908
  name: "title",
2123
1909
  type: "uiBlocks",
2124
1910
  hideFromUI: !0,
2125
- defaultValue: [defaultTitle]
1911
+ defaultValue: [re]
2126
1912
  }, {
2127
1913
  name: "detail",
2128
1914
  type: "uiBlocks",
2129
1915
  hideFromUI: !0,
2130
- defaultValue: [defaultDetail]
1916
+ defaultValue: [ie]
2131
1917
  }],
2132
1918
  defaultValue: [{
2133
- title: [defaultTitle],
2134
- detail: [defaultDetail]
1919
+ title: [re],
1920
+ detail: [ie]
2135
1921
  }, {
2136
- title: [defaultTitle],
2137
- detail: [defaultDetail]
1922
+ title: [re],
1923
+ detail: [ie]
2138
1924
  }],
2139
1925
  showIf: (e) => !e.get("useChildrenForItems")
2140
1926
  }, {
@@ -2169,9 +1955,9 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2169
1955
  builderComponents: !0,
2170
1956
  builderLinkComponent: !0
2171
1957
  }
2172
- }, convertOrderNumberToString = (e) => e.toString(), _sfc_main$i = defineComponent({
1958
+ }, go = (e) => e.toString(), yo = f({
2173
1959
  name: "builder-accordion",
2174
- components: { Blocks },
1960
+ components: { Blocks: M },
2175
1961
  props: [
2176
1962
  "grid",
2177
1963
  "oneAtATime",
@@ -2183,7 +1969,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2183
1969
  "builderLinkComponent"
2184
1970
  ],
2185
1971
  data() {
2186
- return { open: [], convertOrderNumberToString };
1972
+ return { open: [], convertOrderNumberToString: go };
2187
1973
  },
2188
1974
  computed: {
2189
1975
  onlyOneAtATime() {
@@ -2264,25 +2050,25 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2264
2050
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2265
2051
  }
2266
2052
  }
2267
- }), _hoisted_1$a = ["data-index", "onClick"];
2268
- function _sfc_render$h(e, t, n, o, r, i) {
2269
- const s = resolveComponent("Blocks");
2270
- return openBlock(), createElementBlock("div", {
2053
+ }), ko = ["data-index", "onClick"];
2054
+ function vo(e, t, n, o, r, i) {
2055
+ const s = y("Blocks");
2056
+ return c(), m("div", {
2271
2057
  class: "builder-accordion",
2272
- style: normalizeStyle(e.accordionStyles)
2058
+ style: D(e.accordionStyles)
2273
2059
  }, [
2274
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.items, (l, a) => (openBlock(), createElementBlock(Fragment$1, { key: a }, [
2275
- createElementVNode("div", {
2276
- class: normalizeClass(e.getAccordionTitleClassName(a)),
2277
- style: normalizeStyle({
2060
+ (c(!0), m(T, null, A(e.items, (l, a) => (c(), m(T, { key: a }, [
2061
+ z("div", {
2062
+ class: J(e.getAccordionTitleClassName(a)),
2063
+ style: D({
2278
2064
  ...e.accordionTitleStyles,
2279
2065
  width: e.grid ? e.gridRowWidth : void 0,
2280
2066
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2281
2067
  }),
2282
2068
  "data-index": a,
2283
- onClick: (d) => e.onClick(a)
2069
+ onClick: (u) => e.onClick(a)
2284
2070
  }, [
2285
- createVNode(s, {
2071
+ I(s, {
2286
2072
  blocks: l.title,
2287
2073
  path: `items.${a}.title`,
2288
2074
  parent: e.builderBlock.id,
@@ -2290,13 +2076,13 @@ function _sfc_render$h(e, t, n, o, r, i) {
2290
2076
  registeredComponents: e.builderComponents,
2291
2077
  linkComponent: e.builderLinkComponent
2292
2078
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2293
- ], 14, _hoisted_1$a),
2294
- e.open.includes(a) ? (openBlock(), createElementBlock("div", {
2079
+ ], 14, ko),
2080
+ e.open.includes(a) ? (c(), m("div", {
2295
2081
  key: 0,
2296
- class: normalizeClass(e.getAccordionDetailClassName(a)),
2297
- style: normalizeStyle(e.accordionDetailStyles)
2082
+ class: J(e.getAccordionDetailClassName(a)),
2083
+ style: D(e.accordionDetailStyles)
2298
2084
  }, [
2299
- createVNode(s, {
2085
+ I(s, {
2300
2086
  blocks: l.detail,
2301
2087
  path: `items.${a}.detail`,
2302
2088
  parent: e.builderBlock.id,
@@ -2304,11 +2090,11 @@ function _sfc_render$h(e, t, n, o, r, i) {
2304
2090
  registeredComponents: e.builderComponents,
2305
2091
  linkComponent: e.builderLinkComponent
2306
2092
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2307
- ], 6)) : createCommentVNode("", !0)
2093
+ ], 6)) : C("", !0)
2308
2094
  ], 64))), 128))
2309
2095
  ], 4);
2310
2096
  }
2311
- const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]), componentInfo$h = {
2097
+ const Co = /* @__PURE__ */ b(yo, [["render", vo]]), So = {
2312
2098
  name: "Core:Button",
2313
2099
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2314
2100
  defaultStyles: {
@@ -2344,7 +2130,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2344
2130
  shouldReceiveBuilderProps: {
2345
2131
  builderLinkComponent: !0
2346
2132
  }
2347
- }, componentInfo$g = {
2133
+ }, To = {
2348
2134
  // TODO: ways to statically preprocess JSON for references, functions, etc
2349
2135
  name: "Columns",
2350
2136
  isRSC: !0,
@@ -2551,13 +2337,13 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2551
2337
  builderComponents: !0,
2552
2338
  builderLinkComponent: !0
2553
2339
  }
2554
- }, componentInfo$f = {
2340
+ }, wo = {
2555
2341
  name: "Fragment",
2556
2342
  static: !0,
2557
2343
  hidden: !0,
2558
2344
  canHaveChildren: !0,
2559
2345
  noWrap: !0
2560
- }, componentInfo$e = {
2346
+ }, Io = {
2561
2347
  name: "Image",
2562
2348
  static: !0,
2563
2349
  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",
@@ -2578,15 +2364,15 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2578
2364
  onChange: (e) => {
2579
2365
  e.delete("srcset"), e.delete("noWebp");
2580
2366
  function n(s, l = 6e4) {
2581
- return new Promise((a, d) => {
2582
- const p = document.createElement("img");
2583
- let c = !1;
2584
- p.onload = () => {
2585
- c = !0, a(p);
2586
- }, p.addEventListener("error", (u) => {
2587
- console.warn("Image load failed", u.error), d(u.error);
2588
- }), p.src = s, setTimeout(() => {
2589
- c || d(new Error("Image load timed out"));
2367
+ return new Promise((a, u) => {
2368
+ const h = document.createElement("img");
2369
+ let d = !1;
2370
+ h.onload = () => {
2371
+ d = !0, a(h);
2372
+ }, h.addEventListener("error", (p) => {
2373
+ console.warn("Image load failed", p.error), u(p.error);
2374
+ }), h.src = s, setTimeout(() => {
2375
+ d || u(new Error("Image load timed out"));
2590
2376
  }, l);
2591
2377
  });
2592
2378
  }
@@ -2665,7 +2451,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2665
2451
  shouldReceiveBuilderProps: {
2666
2452
  builderBlock: !0
2667
2453
  }
2668
- }, componentInfo$d = {
2454
+ }, $o = {
2669
2455
  name: "Core:Section",
2670
2456
  static: !0,
2671
2457
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2704,7 +2490,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2704
2490
  }
2705
2491
  }
2706
2492
  }]
2707
- }, componentInfo$c = {
2493
+ }, Ro = {
2708
2494
  name: "Slot",
2709
2495
  isRSC: !0,
2710
2496
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2721,15 +2507,15 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2721
2507
  builderContext: !0,
2722
2508
  builderComponents: !0
2723
2509
  }
2724
- }, _sfc_main$h = defineComponent({
2510
+ }, Eo = f({
2725
2511
  name: "builder-slot",
2726
- components: { Blocks },
2512
+ components: { Blocks: M },
2727
2513
  props: ["builderContext", "name", "builderComponents"]
2728
2514
  });
2729
- function _sfc_render$g(e, t, n, o, r, i) {
2730
- var l, a, d;
2731
- const s = resolveComponent("Blocks");
2732
- return openBlock(), createElementBlock("div", mergeProps(
2515
+ function Bo(e, t, n, o, r, i) {
2516
+ var l, a, u;
2517
+ const s = y("Blocks");
2518
+ return c(), m("div", S(
2733
2519
  { style: {
2734
2520
  pointerEvents: "auto"
2735
2521
  } },
@@ -2737,16 +2523,16 @@ function _sfc_render$g(e, t, n, o, r, i) {
2737
2523
  "builder-slot": e.name
2738
2524
  }
2739
2525
  ), [
2740
- createVNode(s, {
2526
+ I(s, {
2741
2527
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2742
2528
  path: `symbol.data.${e.name}`,
2743
2529
  context: e.builderContext,
2744
2530
  registeredComponents: e.builderComponents,
2745
- blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
2531
+ blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
2746
2532
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2747
2533
  ], 16);
2748
2534
  }
2749
- const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), componentInfo$b = {
2535
+ const Po = /* @__PURE__ */ b(Eo, [["render", Bo]]), xo = {
2750
2536
  name: "Symbol",
2751
2537
  noWrap: !0,
2752
2538
  static: !0,
@@ -2785,7 +2571,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2785
2571
  builderComponents: !0,
2786
2572
  builderLinkComponent: !0
2787
2573
  }
2788
- }, defaultTab = {
2574
+ }, se = {
2789
2575
  "@type": "@builder.io/sdk:Element",
2790
2576
  responsiveStyles: {
2791
2577
  large: {
@@ -2807,7 +2593,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2807
2593
  text: "New tab"
2808
2594
  }
2809
2595
  }
2810
- }, defaultElement = {
2596
+ }, ae = {
2811
2597
  "@type": "@builder.io/sdk:Element",
2812
2598
  responsiveStyles: {
2813
2599
  large: {
@@ -2823,7 +2609,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2823
2609
  text: "New tab content "
2824
2610
  }
2825
2611
  }
2826
- }, componentInfo$a = {
2612
+ }, Ao = {
2827
2613
  name: "Builder: Tabs",
2828
2614
  inputs: [{
2829
2615
  name: "tabs",
@@ -2833,16 +2619,16 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2833
2619
  name: "label",
2834
2620
  type: "uiBlocks",
2835
2621
  hideFromUI: !0,
2836
- defaultValue: [defaultTab]
2622
+ defaultValue: [se]
2837
2623
  }, {
2838
2624
  name: "content",
2839
2625
  type: "uiBlocks",
2840
2626
  hideFromUI: !0,
2841
- defaultValue: [defaultElement]
2627
+ defaultValue: [ae]
2842
2628
  }],
2843
2629
  defaultValue: [{
2844
2630
  label: [{
2845
- ...defaultTab,
2631
+ ...se,
2846
2632
  component: {
2847
2633
  name: "Text",
2848
2634
  options: {
@@ -2851,7 +2637,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2851
2637
  }
2852
2638
  }],
2853
2639
  content: [{
2854
- ...defaultElement,
2640
+ ...ae,
2855
2641
  component: {
2856
2642
  name: "Text",
2857
2643
  options: {
@@ -2861,7 +2647,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2861
2647
  }]
2862
2648
  }, {
2863
2649
  label: [{
2864
- ...defaultTab,
2650
+ ...se,
2865
2651
  component: {
2866
2652
  name: "Text",
2867
2653
  options: {
@@ -2870,7 +2656,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2870
2656
  }
2871
2657
  }],
2872
2658
  content: [{
2873
- ...defaultElement,
2659
+ ...ae,
2874
2660
  component: {
2875
2661
  name: "Text",
2876
2662
  options: {
@@ -2926,9 +2712,9 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2926
2712
  builderComponents: !0,
2927
2713
  builderLinkComponent: !0
2928
2714
  }
2929
- }, _sfc_main$g = defineComponent({
2715
+ }, Vo = f({
2930
2716
  name: "builder-tabs",
2931
- components: { Blocks },
2717
+ components: { Blocks: M },
2932
2718
  props: [
2933
2719
  "defaultActiveTab",
2934
2720
  "tabs",
@@ -2951,28 +2737,28 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2951
2737
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2952
2738
  }
2953
2739
  }
2954
- }), _hoisted_1$9 = ["onClick"], _hoisted_2$3 = { key: 0 };
2955
- function _sfc_render$f(e, t, n, o, r, i) {
2956
- const s = resolveComponent("Blocks");
2957
- return openBlock(), createElementBlock("div", null, [
2958
- createElementVNode("div", {
2740
+ }), Wo = ["onClick"], No = { key: 0 };
2741
+ function Fo(e, t, n, o, r, i) {
2742
+ const s = y("Blocks");
2743
+ return c(), m("div", null, [
2744
+ z("div", {
2959
2745
  class: "builder-tabs-wrap",
2960
- style: normalizeStyle({
2746
+ style: D({
2961
2747
  display: "flex",
2962
2748
  flexDirection: "row",
2963
2749
  justifyContent: e.tabHeaderLayout || "flex-start",
2964
2750
  overflow: "auto"
2965
2751
  })
2966
2752
  }, [
2967
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.tabs, (l, a) => (openBlock(), createElementBlock("span", {
2753
+ (c(!0), m(T, null, A(e.tabs, (l, a) => (c(), m("span", {
2968
2754
  key: a,
2969
- class: normalizeClass(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2970
- style: normalizeStyle({
2755
+ class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2756
+ style: D({
2971
2757
  ...e.activeTab === a ? e.activeTabStyle : {}
2972
2758
  }),
2973
- onClick: (d) => e.onClick(a)
2759
+ onClick: (u) => e.onClick(a)
2974
2760
  }, [
2975
- createVNode(s, {
2761
+ I(s, {
2976
2762
  parent: e.builderBlock.id,
2977
2763
  path: `component.options.tabs.${a}.label`,
2978
2764
  blocks: l.label,
@@ -2980,10 +2766,10 @@ function _sfc_render$f(e, t, n, o, r, i) {
2980
2766
  registeredComponents: e.builderComponents,
2981
2767
  linkComponent: e.builderLinkComponent
2982
2768
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2983
- ], 14, _hoisted_1$9))), 128))
2769
+ ], 14, Wo))), 128))
2984
2770
  ], 4),
2985
- e.activeTabContent(e.activeTab) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
2986
- createVNode(s, {
2771
+ e.activeTabContent(e.activeTab) ? (c(), m("div", No, [
2772
+ I(s, {
2987
2773
  parent: e.builderBlock.id,
2988
2774
  path: `component.options.tabs.${e.activeTab}.content`,
2989
2775
  blocks: e.activeTabContent(e.activeTab),
@@ -2991,10 +2777,10 @@ function _sfc_render$f(e, t, n, o, r, i) {
2991
2777
  registeredComponents: e.builderComponents,
2992
2778
  linkComponent: e.builderLinkComponent
2993
2779
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2994
- ])) : createCommentVNode("", !0)
2780
+ ])) : C("", !0)
2995
2781
  ]);
2996
2782
  }
2997
- const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]]), componentInfo$9 = {
2783
+ const Oo = /* @__PURE__ */ b(Vo, [["render", Fo]]), Do = {
2998
2784
  shouldReceiveBuilderProps: {
2999
2785
  builderBlock: !1,
3000
2786
  builderContext: !0
@@ -3016,7 +2802,7 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3016
2802
  height: "auto",
3017
2803
  textAlign: "center"
3018
2804
  }
3019
- }, _sfc_main$f = defineComponent({
2805
+ }, Lo = f({
3020
2806
  name: "builder-text",
3021
2807
  props: ["builderContext", "text"],
3022
2808
  computed: {
@@ -3030,7 +2816,7 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3030
2816
  } = e;
3031
2817
  return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
3032
2818
  /{{([^}]+)}}/g,
3033
- (s, l) => evaluate({
2819
+ (s, l) => G({
3034
2820
  code: l,
3035
2821
  context: t,
3036
2822
  localState: n,
@@ -3041,17 +2827,17 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3041
2827
  );
3042
2828
  }
3043
2829
  }
3044
- }), _hoisted_1$8 = ["innerHTML"];
3045
- function _sfc_render$e(e, t, n, o, r, i) {
3046
- return openBlock(), createElementBlock("div", {
2830
+ }), Uo = ["innerHTML"];
2831
+ function Mo(e, t, n, o, r, i) {
2832
+ return c(), m("div", {
3047
2833
  class: "builder-text",
3048
2834
  innerHTML: e.processedText,
3049
2835
  style: {
3050
2836
  outline: "none"
3051
2837
  }
3052
- }, null, 8, _hoisted_1$8);
2838
+ }, null, 8, Uo);
3053
2839
  }
3054
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]]), componentInfo$8 = {
2840
+ const Ho = /* @__PURE__ */ b(Lo, [["render", Mo]]), jo = {
3055
2841
  name: "Custom Code",
3056
2842
  static: !0,
3057
2843
  requiredPermissions: ["editCode"],
@@ -3073,7 +2859,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
3073
2859
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3074
2860
  advanced: !0
3075
2861
  }]
3076
- }, _sfc_main$e = defineComponent({
2862
+ }, Ko = f({
3077
2863
  name: "builder-custom-code",
3078
2864
  props: ["replaceNodes", "code"],
3079
2865
  data() {
@@ -3107,15 +2893,15 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
3107
2893
  }
3108
2894
  }
3109
2895
  }
3110
- }), _hoisted_1$7 = ["innerHTML"];
3111
- function _sfc_render$d(e, t, n, o, r, i) {
3112
- return openBlock(), createElementBlock("div", {
2896
+ }), qo = ["innerHTML"];
2897
+ function zo(e, t, n, o, r, i) {
2898
+ return c(), m("div", {
3113
2899
  ref: "elementRef",
3114
- class: normalizeClass("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2900
+ class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3115
2901
  innerHTML: e.code
3116
- }, null, 10, _hoisted_1$7);
2902
+ }, null, 10, qo);
3117
2903
  }
3118
- const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]), componentInfo$7 = {
2904
+ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
3119
2905
  name: "Embed",
3120
2906
  static: !0,
3121
2907
  inputs: [{
@@ -3130,7 +2916,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3130
2916
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3131
2917
  hideFromUI: !0
3132
2918
  }]
3133
- }, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type), _sfc_main$d = defineComponent({
2919
+ }, Yo = ["text/javascript", "application/javascript", "application/ecmascript"], Qo = (e) => Yo.includes(e.type), Xo = f({
3134
2920
  name: "builder-embed",
3135
2921
  props: ["content"],
3136
2922
  data() {
@@ -3163,7 +2949,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3163
2949
  this.scriptsInserted.push(n.src);
3164
2950
  const o = document.createElement("script");
3165
2951
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3166
- } else if (isJsScript(n) && !this.scriptsRun.includes(n.innerText))
2952
+ } else if (Qo(n) && !this.scriptsRun.includes(n.innerText))
3167
2953
  try {
3168
2954
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3169
2955
  } catch (o) {
@@ -3172,15 +2958,15 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3172
2958
  }
3173
2959
  }
3174
2960
  }
3175
- }), _hoisted_1$6 = ["innerHTML"];
3176
- function _sfc_render$c(e, t, n, o, r, i) {
3177
- return openBlock(), createElementBlock("div", {
2961
+ }), Zo = ["innerHTML"];
2962
+ function _o(e, t, n, o, r, i) {
2963
+ return c(), m("div", {
3178
2964
  class: "builder-embed",
3179
2965
  ref: "elem",
3180
2966
  innerHTML: e.content
3181
- }, null, 8, _hoisted_1$6);
2967
+ }, null, 8, Zo);
3182
2968
  }
3183
- const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c]]), componentInfo$6 = {
2969
+ const er = /* @__PURE__ */ b(Xo, [["render", _o]]), tr = {
3184
2970
  name: "Form:Form",
3185
2971
  // editableTags: ['builder-form-error']
3186
2972
  defaults: {
@@ -3417,15 +3203,15 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3417
3203
  builderComponents: !0,
3418
3204
  builderLinkComponent: !0
3419
3205
  }
3420
- }, validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], getEnv = () => {
3206
+ }, nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], or = () => {
3421
3207
  const e = process.env.NODE_ENV || "production";
3422
- return validEnvList.includes(e) ? e : "production";
3423
- }, get = (e, t, n) => {
3208
+ return nr.includes(e) ? e : "production";
3209
+ }, rr = (e, t, n) => {
3424
3210
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
3425
3211
  return o === void 0 || o === e ? n : o;
3426
- }, _sfc_main$c = defineComponent({
3212
+ }, ir = f({
3427
3213
  name: "builder-form-component",
3428
- components: { Block, Blocks },
3214
+ components: { Block: ye, Blocks: M },
3429
3215
  props: [
3430
3216
  "builderContext",
3431
3217
  "previewState",
@@ -3454,7 +3240,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3454
3240
  formState: "unsubmitted",
3455
3241
  responseData: null,
3456
3242
  formErrorMessage: "",
3457
- filterAttrs
3243
+ filterAttrs: V
3458
3244
  };
3459
3245
  },
3460
3246
  methods: {
@@ -3467,7 +3253,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3467
3253
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3468
3254
  },
3469
3255
  submissionState() {
3470
- return isEditing() && this.previewState || this.formState;
3256
+ return E() && this.previewState || this.formState;
3471
3257
  },
3472
3258
  onSubmit(e) {
3473
3259
  var n;
@@ -3482,150 +3268,150 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3482
3268
  e.preventDefault();
3483
3269
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3484
3270
  let i;
3485
- const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3486
- let u;
3487
- const f = c.name;
3488
- if (c instanceof HTMLInputElement)
3489
- if (c.type === "radio") {
3490
- if (c.checked)
3491
- return u = c.name, {
3492
- key: f,
3493
- value: u
3271
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3272
+ let p;
3273
+ const k = d.name;
3274
+ if (d instanceof HTMLInputElement)
3275
+ if (d.type === "radio") {
3276
+ if (d.checked)
3277
+ return p = d.name, {
3278
+ key: k,
3279
+ value: p
3494
3280
  };
3495
- } else if (c.type === "checkbox")
3496
- u = c.checked;
3497
- else if (c.type === "number" || c.type === "range") {
3498
- const m = c.valueAsNumber;
3499
- isNaN(m) || (u = m);
3281
+ } else if (d.type === "checkbox")
3282
+ p = d.checked;
3283
+ else if (d.type === "number" || d.type === "range") {
3284
+ const v = d.valueAsNumber;
3285
+ isNaN(v) || (p = v);
3500
3286
  } else
3501
- c.type === "file" ? u = c.files : u = c.value;
3287
+ d.type === "file" ? p = d.files : p = d.value;
3502
3288
  else
3503
- u = c.value;
3289
+ p = d.value;
3504
3290
  return {
3505
- key: f,
3506
- value: u
3291
+ key: k,
3292
+ value: p
3507
3293
  };
3508
3294
  });
3509
3295
  let a = this.contentType;
3510
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3511
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3296
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
3297
+ (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
3512
3298
  }), a !== "application/json")
3513
3299
  i = s;
3514
3300
  else {
3515
- const c = {};
3516
- Array.from(l).forEach(({ value: u, key: f }) => {
3517
- set(c, f, u);
3518
- }), i = JSON.stringify(c);
3301
+ const d = {};
3302
+ Array.from(l).forEach(({ value: p, key: k }) => {
3303
+ xe(d, k, p);
3304
+ }), i = JSON.stringify(d);
3519
3305
  }
3520
3306
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3521
- const d = new CustomEvent("presubmit", {
3307
+ const u = new CustomEvent("presubmit", {
3522
3308
  detail: {
3523
3309
  body: i
3524
3310
  }
3525
3311
  });
3526
- if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
3312
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3527
3313
  return;
3528
3314
  this.formState = "sending";
3529
- const p = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3315
+ const h = `${or() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3530
3316
  this.sendSubmissionsToEmail || ""
3531
3317
  )}&name=${encodeURIComponent(this.name || "")}`;
3532
3318
  fetch(
3533
- this.sendSubmissionsTo === "email" ? p : this.action,
3319
+ this.sendSubmissionsTo === "email" ? h : this.action,
3534
3320
  {
3535
3321
  body: i,
3536
3322
  headers: r,
3537
3323
  method: this.method || "post"
3538
3324
  }
3539
3325
  ).then(
3540
- async (c) => {
3541
- let u;
3542
- const f = c.headers.get("content-type");
3543
- if (f && f.indexOf("application/json") !== -1 ? u = await c.json() : u = await c.text(), !c.ok && this.errorMessagePath) {
3544
- let m = get(u, this.errorMessagePath);
3545
- m && (typeof m != "string" && (m = JSON.stringify(m)), this.formErrorMessage = m, this.mergeNewRootState({
3546
- formErrorMessage: m
3326
+ async (d) => {
3327
+ let p;
3328
+ const k = d.headers.get("content-type");
3329
+ if (k && k.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
3330
+ let v = rr(p, this.errorMessagePath);
3331
+ v && (typeof v != "string" && (v = JSON.stringify(v)), this.formErrorMessage = v, this.mergeNewRootState({
3332
+ formErrorMessage: v
3547
3333
  }));
3548
3334
  }
3549
- if (this.responseData = u, this.formState = c.ok ? "success" : "error", c.ok) {
3550
- const m = new CustomEvent("submit:success", {
3335
+ if (this.responseData = p, this.formState = d.ok ? "success" : "error", d.ok) {
3336
+ const v = new CustomEvent("submit:success", {
3551
3337
  detail: {
3552
- res: c,
3553
- body: u
3338
+ res: d,
3339
+ body: p
3554
3340
  }
3555
3341
  });
3556
3342
  if (this.$refs.formRef) {
3557
- if (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented)
3343
+ if (this.$refs.formRef.dispatchEvent(v), v.defaultPrevented)
3558
3344
  return;
3559
3345
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3560
3346
  }
3561
3347
  if (this.successUrl)
3562
3348
  if (this.$refs.formRef) {
3563
- const b = new CustomEvent("route", {
3349
+ const F = new CustomEvent("route", {
3564
3350
  detail: {
3565
3351
  url: this.successUrl
3566
3352
  }
3567
3353
  });
3568
- this.$refs.formRef.dispatchEvent(b), b.defaultPrevented || (location.href = this.successUrl);
3354
+ this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
3569
3355
  } else
3570
3356
  location.href = this.successUrl;
3571
3357
  }
3572
3358
  },
3573
- (c) => {
3574
- const u = new CustomEvent("submit:error", {
3359
+ (d) => {
3360
+ const p = new CustomEvent("submit:error", {
3575
3361
  detail: {
3576
- error: c
3362
+ error: d
3577
3363
  }
3578
3364
  });
3579
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented) || (this.responseData = c, this.formState = "error");
3365
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = d, this.formState = "error");
3580
3366
  }
3581
3367
  );
3582
3368
  }
3583
3369
  }
3584
3370
  }
3585
- }), _hoisted_1$5 = ["validate", "action", "method", "name"], _hoisted_2$2 = {
3371
+ }), sr = ["validate", "action", "method", "name"], ar = {
3586
3372
  key: 3,
3587
3373
  class: "builder-form-error-text pre-3i4ezorcfhi"
3588
3374
  };
3589
- function _sfc_render$b(e, t, n, o, r, i) {
3375
+ function lr(e, t, n, o, r, i) {
3590
3376
  var a;
3591
- const s = resolveComponent("Block"), l = resolveComponent("Blocks");
3592
- return openBlock(), createElementBlock("form", mergeProps({
3377
+ const s = y("Block"), l = y("Blocks");
3378
+ return c(), m("form", S({
3593
3379
  validate: e.validate,
3594
3380
  ref: "formRef",
3595
3381
  action: !e.sendWithJs && e.action,
3596
3382
  method: e.method,
3597
3383
  name: e.name,
3598
- onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
3599
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3600
- e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d, p) => (openBlock(), createBlock(s, {
3384
+ onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3385
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3386
+ e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(s, {
3601
3387
  key: `form-block-${e.idx}`,
3602
- block: d,
3388
+ block: u,
3603
3389
  context: e.builderContext,
3604
3390
  registeredComponents: e.builderComponents,
3605
3391
  linkComponent: e.builderLinkComponent
3606
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : createCommentVNode("", !0),
3607
- e.submissionState() === "error" ? (openBlock(), createBlock(l, {
3392
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : C("", !0),
3393
+ e.submissionState() === "error" ? (c(), g(l, {
3608
3394
  key: 1,
3609
3395
  path: "errorMessage",
3610
3396
  blocks: e.errorMessage,
3611
3397
  context: e.builderContext
3612
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
3613
- e.submissionState() === "sending" ? (openBlock(), createBlock(l, {
3398
+ }, null, 8, ["blocks", "context"])) : C("", !0),
3399
+ e.submissionState() === "sending" ? (c(), g(l, {
3614
3400
  key: 2,
3615
3401
  path: "sendingMessage",
3616
3402
  blocks: e.sendingMessage,
3617
3403
  context: e.builderContext
3618
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
3619
- e.submissionState() === "error" && e.responseData ? (openBlock(), createElementBlock("pre", _hoisted_2$2, toDisplayString(JSON.stringify(e.responseData, null, 2)), 1)) : createCommentVNode("", !0),
3620
- e.submissionState() === "success" ? (openBlock(), createBlock(l, {
3404
+ }, null, 8, ["blocks", "context"])) : C("", !0),
3405
+ e.submissionState() === "error" && e.responseData ? (c(), m("pre", ar, te(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
3406
+ e.submissionState() === "success" ? (c(), g(l, {
3621
3407
  key: 4,
3622
3408
  path: "successMessage",
3623
3409
  blocks: e.successMessage,
3624
3410
  context: e.builderContext
3625
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0)
3626
- ], 16, _hoisted_1$5);
3411
+ }, null, 8, ["blocks", "context"])) : C("", !0)
3412
+ ], 16, sr);
3627
3413
  }
3628
- const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-489330f7"]]), componentInfo$5 = {
3414
+ const cr = /* @__PURE__ */ b(ir, [["render", lr], ["__scopeId", "data-v-489330f7"]]), dr = {
3629
3415
  name: "Form:Input",
3630
3416
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3631
3417
  inputs: [
@@ -3676,7 +3462,7 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3676
3462
  borderStyle: "solid",
3677
3463
  borderColor: "#ccc"
3678
3464
  }
3679
- }, _sfc_main$b = defineComponent({
3465
+ }, ur = f({
3680
3466
  name: "builder-form-input-component",
3681
3467
  props: [
3682
3468
  "attributes",
@@ -3688,11 +3474,11 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3688
3474
  "required"
3689
3475
  ],
3690
3476
  data() {
3691
- return { isEditing, filterAttrs };
3477
+ return { isEditing: E, filterAttrs: V };
3692
3478
  }
3693
- }), _hoisted_1$4 = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3694
- function _sfc_render$a(e, t, n, o, r, i) {
3695
- return openBlock(), createElementBlock("input", mergeProps({
3479
+ }), pr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3480
+ function mr(e, t, n, o, r, i) {
3481
+ return c(), m("input", S({
3696
3482
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3697
3483
  placeholder: e.placeholder,
3698
3484
  type: e.type,
@@ -3700,9 +3486,9 @@ function _sfc_render$a(e, t, n, o, r, i) {
3700
3486
  value: e.value,
3701
3487
  defaultValue: e.defaultValue,
3702
3488
  required: e.required
3703
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$4);
3489
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, pr);
3704
3490
  }
3705
- const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]), componentInfo$4 = {
3491
+ const hr = /* @__PURE__ */ b(ur, [["render", mr]]), fr = {
3706
3492
  name: "Form:Select",
3707
3493
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3708
3494
  defaultStyles: {
@@ -3744,28 +3530,28 @@ const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_rend
3744
3530
  }],
3745
3531
  static: !0,
3746
3532
  noWrap: !0
3747
- }, _sfc_main$a = defineComponent({
3533
+ }, br = f({
3748
3534
  name: "builder-select-component",
3749
3535
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3750
3536
  data() {
3751
- return { isEditing, filterAttrs };
3537
+ return { isEditing: E, filterAttrs: V };
3752
3538
  }
3753
- }), _hoisted_1$3 = ["value", "defaultValue", "name", "required"], _hoisted_2$1 = ["value"];
3754
- function _sfc_render$9(e, t, n, o, r, i) {
3755
- return openBlock(), createElementBlock("select", mergeProps({
3539
+ }), gr = ["value", "defaultValue", "name", "required"], yr = ["value"];
3540
+ function kr(e, t, n, o, r, i) {
3541
+ return c(), m("select", S({
3756
3542
  value: e.value,
3757
3543
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3758
3544
  defaultValue: e.defaultValue,
3759
3545
  name: e.name,
3760
3546
  required: e.required
3761
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3762
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (s, l) => (openBlock(), createElementBlock("option", {
3547
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3548
+ (c(!0), m(T, null, A(e.options, (s, l) => (c(), m("option", {
3763
3549
  key: `${s.name}-${l}`,
3764
3550
  value: s.value
3765
- }, toDisplayString(s.name || s.value), 9, _hoisted_2$1))), 128))
3766
- ], 16, _hoisted_1$3);
3551
+ }, te(s.name || s.value), 9, yr))), 128))
3552
+ ], 16, gr);
3767
3553
  }
3768
- const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), componentInfo$3 = {
3554
+ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Cr = {
3769
3555
  name: "Form:SubmitButton",
3770
3556
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3771
3557
  defaultStyles: {
@@ -3790,17 +3576,17 @@ const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
3790
3576
  // that only shows if advanced setting is flipped
3791
3577
  // TODO: defaultChildren
3792
3578
  // canHaveChildren: true,
3793
- }, _sfc_main$9 = defineComponent({
3579
+ }, Sr = f({
3794
3580
  name: "builder-submit-button",
3795
3581
  props: ["attributes", "text"],
3796
3582
  data() {
3797
- return { filterAttrs };
3583
+ return { filterAttrs: V };
3798
3584
  }
3799
3585
  });
3800
- function _sfc_render$8(e, t, n, o, r, i) {
3801
- return openBlock(), createElementBlock("button", mergeProps({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), toDisplayString(e.text), 17);
3586
+ function Tr(e, t, n, o, r, i) {
3587
+ return c(), m("button", S({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3802
3588
  }
3803
- const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), componentInfo$2 = {
3589
+ const wr = /* @__PURE__ */ b(Sr, [["render", Tr]]), Ir = {
3804
3590
  name: "Form:TextArea",
3805
3591
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3806
3592
  inputs: [{
@@ -3836,7 +3622,7 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3836
3622
  },
3837
3623
  static: !0,
3838
3624
  noWrap: !0
3839
- }, _sfc_main$8 = defineComponent({
3625
+ }, $r = f({
3840
3626
  name: "builder-textarea",
3841
3627
  props: [
3842
3628
  "attributes",
@@ -3847,19 +3633,19 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3847
3633
  "required"
3848
3634
  ],
3849
3635
  data() {
3850
- return { filterAttrs };
3636
+ return { filterAttrs: V };
3851
3637
  }
3852
- }), _hoisted_1$2 = ["placeholder", "name", "value", "defaultValue", "required"];
3853
- function _sfc_render$7(e, t, n, o, r, i) {
3854
- return openBlock(), createElementBlock("textarea", mergeProps({
3638
+ }), Rr = ["placeholder", "name", "value", "defaultValue", "required"];
3639
+ function Er(e, t, n, o, r, i) {
3640
+ return c(), m("textarea", S({
3855
3641
  placeholder: e.placeholder,
3856
3642
  name: e.name,
3857
3643
  value: e.value,
3858
3644
  defaultValue: e.defaultValue,
3859
3645
  required: e.required
3860
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$2);
3646
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Rr);
3861
3647
  }
3862
- const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]), componentInfo$1 = {
3648
+ const Br = /* @__PURE__ */ b($r, [["render", Er]]), Pr = {
3863
3649
  // friendlyName?
3864
3650
  name: "Raw:Img",
3865
3651
  hideFromInsertMenu: !0,
@@ -3873,7 +3659,7 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3873
3659
  }],
3874
3660
  noWrap: !0,
3875
3661
  static: !0
3876
- }, _sfc_main$7 = defineComponent({
3662
+ }, xr = f({
3877
3663
  name: "builder-img-component",
3878
3664
  props: [
3879
3665
  "backgroundSize",
@@ -3884,11 +3670,11 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3884
3670
  "attributes"
3885
3671
  ],
3886
3672
  data() {
3887
- return { isEditing, filterAttrs };
3673
+ return { isEditing: E, filterAttrs: V };
3888
3674
  }
3889
- }), _hoisted_1$1 = ["alt", "src"];
3890
- function _sfc_render$6(e, t, n, o, r, i) {
3891
- return openBlock(), createElementBlock("img", mergeProps({
3675
+ }), Ar = ["alt", "src"];
3676
+ function Vr(e, t, n, o, r, i) {
3677
+ return c(), m("img", S({
3892
3678
  style: {
3893
3679
  objectFit: e.backgroundSize || "cover",
3894
3680
  objectPosition: e.backgroundPosition || "center"
@@ -3896,9 +3682,9 @@ function _sfc_render$6(e, t, n, o, r, i) {
3896
3682
  key: e.isEditing() && e.imgSrc || "default-key",
3897
3683
  alt: e.altText,
3898
3684
  src: e.imgSrc || e.image
3899
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$1);
3685
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3900
3686
  }
3901
- const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]), componentInfo = {
3687
+ const Wr = /* @__PURE__ */ b(xr, [["render", Vr]]), Nr = {
3902
3688
  name: "Video",
3903
3689
  canHaveChildren: !0,
3904
3690
  defaultStyles: {
@@ -3982,7 +3768,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
3982
3768
  shouldReceiveBuilderProps: {
3983
3769
  builderBlock: !0
3984
3770
  }
3985
- }, _sfc_main$6 = defineComponent({
3771
+ }, Fr = f({
3986
3772
  name: "builder-video",
3987
3773
  props: [
3988
3774
  "autoPlay",
@@ -4027,16 +3813,16 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
4027
3813
  };
4028
3814
  }
4029
3815
  }
4030
- }), _hoisted_1 = { style: {
3816
+ }), Or = { style: {
4031
3817
  position: "relative"
4032
- } }, _hoisted_2 = ["preload", "src", "poster"], _hoisted_3 = ["src"], _hoisted_4 = {
3818
+ } }, Dr = ["preload", "src", "poster"], Lr = ["src"], Ur = {
4033
3819
  key: 1,
4034
3820
  style: {
4035
3821
  display: "flex",
4036
3822
  flexDirection: "column",
4037
3823
  alignItems: "stretch"
4038
3824
  }
4039
- }, _hoisted_5 = {
3825
+ }, Mr = {
4040
3826
  key: 2,
4041
3827
  style: {
4042
3828
  pointerEvents: "none",
@@ -4050,10 +3836,10 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
4050
3836
  height: "100%"
4051
3837
  }
4052
3838
  };
4053
- function _sfc_render$5(e, t, n, o, r, i) {
4054
- var s, l, a, d, p, c, u;
4055
- return openBlock(), createElementBlock("div", _hoisted_1, [
4056
- createElementVNode("video", mergeProps({
3839
+ function Hr(e, t, n, o, r, i) {
3840
+ var s, l, a, u, h, d, p;
3841
+ return c(), m("div", Or, [
3842
+ z("video", S({
4057
3843
  class: "builder-video",
4058
3844
  preload: e.preload || "metadata",
4059
3845
  style: {
@@ -4073,87 +3859,87 @@ function _sfc_render$5(e, t, n, o, r, i) {
4073
3859
  src: e.video || "no-src",
4074
3860
  poster: e.posterImage
4075
3861
  }, e.spreadProps), [
4076
- e.lazyLoad ? createCommentVNode("", !0) : (openBlock(), createElementBlock("source", {
3862
+ e.lazyLoad ? C("", !0) : (c(), m("source", {
4077
3863
  key: 0,
4078
3864
  type: "video/mp4",
4079
3865
  src: e.video
4080
- }, null, 8, _hoisted_3))
4081
- ], 16, _hoisted_2),
4082
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (openBlock(), createElementBlock("div", {
3866
+ }, null, 8, Lr))
3867
+ ], 16, Dr),
3868
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), m("div", {
4083
3869
  key: 0,
4084
- style: normalizeStyle({
3870
+ style: D({
4085
3871
  width: "100%",
4086
3872
  paddingTop: e.aspectRatio * 100 + "%",
4087
3873
  pointerEvents: "none",
4088
3874
  fontSize: "0px"
4089
3875
  })
4090
- }, null, 4)) : createCommentVNode("", !0),
4091
- (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
4092
- renderSlot(e.$slots, "default")
4093
- ])) : createCommentVNode("", !0),
4094
- (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
4095
- renderSlot(e.$slots, "default")
4096
- ])) : createCommentVNode("", !0)
3876
+ }, null, 4)) : C("", !0),
3877
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Ur, [
3878
+ P(e.$slots, "default")
3879
+ ])) : C("", !0),
3880
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Mr, [
3881
+ P(e.$slots, "default")
3882
+ ])) : C("", !0)
4097
3883
  ]);
4098
3884
  }
4099
- const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]), getExtraComponents = () => [{
4100
- component: customCode,
4101
- ...componentInfo$8
3885
+ const jr = /* @__PURE__ */ b(Fr, [["render", Hr]]), Kr = () => [{
3886
+ component: Jo,
3887
+ ...jo
4102
3888
  }, {
4103
- component: embed,
4104
- ...componentInfo$7
3889
+ component: er,
3890
+ ...Go
4105
3891
  }, {
4106
- component: Form,
4107
- ...componentInfo$6
3892
+ component: cr,
3893
+ ...tr
4108
3894
  }, {
4109
- component: FormInput,
4110
- ...componentInfo$5
3895
+ component: hr,
3896
+ ...dr
4111
3897
  }, {
4112
- component: FormSubmitButton,
4113
- ...componentInfo$3
3898
+ component: wr,
3899
+ ...Cr
4114
3900
  }, {
4115
- component: FormSelect,
4116
- ...componentInfo$4
3901
+ component: vr,
3902
+ ...fr
4117
3903
  }, {
4118
- component: Textarea,
4119
- ...componentInfo$2
3904
+ component: Br,
3905
+ ...Ir
4120
3906
  }, {
4121
- component: Img,
4122
- ...componentInfo$1
3907
+ component: Wr,
3908
+ ...Pr
4123
3909
  }, {
4124
- component: Video,
4125
- ...componentInfo
4126
- }], getDefaultRegisteredComponents = () => [{
4127
- component: Button,
4128
- ...componentInfo$h
3910
+ component: jr,
3911
+ ...Nr
3912
+ }], Re = () => [{
3913
+ component: wt,
3914
+ ...So
4129
3915
  }, {
4130
- component: Columns,
4131
- ...componentInfo$g
3916
+ component: eo,
3917
+ ...To
4132
3918
  }, {
4133
- component: Fragment,
4134
- ...componentInfo$f
3919
+ component: oo,
3920
+ ...wo
4135
3921
  }, {
4136
- component: Image,
4137
- ...componentInfo$e
3922
+ component: po,
3923
+ ...Io
4138
3924
  }, {
4139
- component: Section,
4140
- ...componentInfo$d
3925
+ component: fo,
3926
+ ...$o
4141
3927
  }, {
4142
- component: Slot,
4143
- ...componentInfo$c
3928
+ component: Po,
3929
+ ...Ro
4144
3930
  }, {
4145
- component: Symbol$1,
4146
- ...componentInfo$b
3931
+ component: Ii,
3932
+ ...xo
4147
3933
  }, {
4148
- component: Text,
4149
- ...componentInfo$9
3934
+ component: Ho,
3935
+ ...Do
4150
3936
  }, {
4151
- component: Tabs,
4152
- ...componentInfo$a
3937
+ component: Oo,
3938
+ ...Ao
4153
3939
  }, {
4154
- component: Accordion,
4155
- ...componentInfo$i
4156
- }, ...getExtraComponents()], UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3940
+ component: Co,
3941
+ ...bo
3942
+ }, ...Kr()], qr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4157
3943
  function getAndSetVariantId() {
4158
3944
  function setCookie(name, value, days) {
4159
3945
  let expires = '';
@@ -4209,7 +3995,7 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4209
3995
  }).join('');
4210
3996
  styleEl.innerHTML = newStyleStr;
4211
3997
  }
4212
- }`, UPDATE_VARIANT_VISIBILITY_SCRIPT = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3998
+ }`, zr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4213
3999
  if (!navigator.cookieEnabled) {
4214
4000
  return;
4215
4001
  }
@@ -4243,27 +4029,27 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4243
4029
  thisScriptEl?.remove();
4244
4030
  }
4245
4031
  return;
4246
- }`, UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME = "builderIoAbTest", UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME = "builderIoRenderContent", getVariants = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4032
+ }`, ot = "builderIoAbTest", rt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4247
4033
  ...t,
4248
4034
  testVariationId: t.id,
4249
4035
  id: e == null ? void 0 : e.id
4250
- })), checkShouldRenderVariants = ({
4036
+ })), Jr = ({
4251
4037
  canTrack: e,
4252
4038
  content: t
4253
- }) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET), getInitVariantsFnsScriptString = () => `
4254
- window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
4255
- window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
4256
- `, getUpdateCookieAndStylesScript = (e, t) => `
4257
- window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME}(
4258
- "${t}",${JSON.stringify(e)}, ${isHydrationTarget}
4259
- )`, getUpdateVariantVisibilityScript = ({
4039
+ }) => !(!(Z(t).length > 0) || !e), Gr = (e) => e === "react" || e === "reactNative", it = Gr(x), Yr = () => `
4040
+ window.${ot} = ${qr}
4041
+ window.${rt} = ${zr}
4042
+ `, Qr = (e, t) => `
4043
+ window.${ot}(
4044
+ "${t}",${JSON.stringify(e)}, ${it}
4045
+ )`, Xr = ({
4260
4046
  contentId: e,
4261
4047
  variationId: t
4262
- }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
4263
- "${t}", "${e}", ${isHydrationTarget}
4264
- )`, _sfc_main$5 = defineComponent({
4048
+ }) => `window.${rt}(
4049
+ "${t}", "${e}", ${it}
4050
+ )`, st = f({
4265
4051
  render() {
4266
- return h("script", {
4052
+ return Pe("script", {
4267
4053
  innerHTML: this.scriptStr,
4268
4054
  "data-id": this.id,
4269
4055
  nonce: this.nonce
@@ -4272,10 +4058,10 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4272
4058
  name: "inlined-script",
4273
4059
  props: ["scriptStr", "id", "nonce"]
4274
4060
  });
4275
- function round(e) {
4061
+ function Ee(e) {
4276
4062
  return Math.round(e * 1e3) / 1e3;
4277
4063
  }
4278
- const findParentElement = (e, t, n = !0) => {
4064
+ const Zr = (e, t, n = !0) => {
4279
4065
  if (!(e instanceof HTMLElement))
4280
4066
  return null;
4281
4067
  let o = n ? e : e.parentElement;
@@ -4286,35 +4072,35 @@ const findParentElement = (e, t, n = !0) => {
4286
4072
  return o;
4287
4073
  } while (o = o.parentElement);
4288
4074
  return null;
4289
- }, findBuilderParent = (e) => findParentElement(e, (t) => {
4075
+ }, _r = (e) => Zr(e, (t) => {
4290
4076
  const n = t.getAttribute("builder-id") || t.id;
4291
4077
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4292
- }), computeOffset = ({
4078
+ }), Be = ({
4293
4079
  event: e,
4294
4080
  target: t
4295
4081
  }) => {
4296
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = round(o / n.width), s = round(r / n.height);
4082
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
4297
4083
  return {
4298
4084
  x: i,
4299
4085
  y: s
4300
4086
  };
4301
- }, getInteractionPropertiesForEvent = (e) => {
4302
- const t = e.target, n = t && findBuilderParent(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4087
+ }, ei = (e) => {
4088
+ const t = e.target, n = t && _r(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4303
4089
  return {
4304
4090
  targetBuilderElement: o || void 0,
4305
4091
  metadata: {
4306
- targetOffset: t ? computeOffset({
4092
+ targetOffset: t ? Be({
4307
4093
  event: e,
4308
4094
  target: t
4309
4095
  }) : void 0,
4310
- builderTargetOffset: n ? computeOffset({
4096
+ builderTargetOffset: n ? Be({
4311
4097
  event: e,
4312
4098
  target: n
4313
4099
  }) : void 0,
4314
4100
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4315
4101
  }
4316
4102
  };
4317
- }, getCssFromFont = (e) => {
4103
+ }, ti = (e) => {
4318
4104
  var i;
4319
4105
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4320
4106
  let r = "";
@@ -4340,15 +4126,15 @@ font-weight: ${s};
4340
4126
  `.trim());
4341
4127
  }
4342
4128
  return r;
4343
- }, getFontCss = ({
4129
+ }, ni = ({
4344
4130
  customFonts: e
4345
4131
  }) => {
4346
4132
  var t;
4347
- return ((t = e == null ? void 0 : e.map((n) => getCssFromFont(n))) == null ? void 0 : t.join(" ")) || "";
4348
- }, getCss = ({
4133
+ return ((t = e == null ? void 0 : e.map((n) => ti(n))) == null ? void 0 : t.join(" ")) || "";
4134
+ }, oi = ({
4349
4135
  cssCode: e,
4350
4136
  contentId: t
4351
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", DEFAULT_STYLES = `
4137
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
4352
4138
  .builder-button {
4353
4139
  all: unset;
4354
4140
  }
@@ -4365,9 +4151,9 @@ font-weight: ${s};
4365
4151
  text-align: inherit;
4366
4152
  font-family: inherit;
4367
4153
  }
4368
- `, getDefaultStyles = (e) => e ? "" : DEFAULT_STYLES, getWrapperClassName = (e) => `variant-${e}`, _sfc_main$4 = defineComponent({
4154
+ `, ii = (e) => e ? "" : ri, si = (e) => `variant-${e}`, ai = f({
4369
4155
  name: "enable-editor",
4370
- components: { DynamicDiv },
4156
+ components: { DynamicDiv: Q },
4371
4157
  props: [
4372
4158
  "builderContextSignal",
4373
4159
  "canTrack",
@@ -4389,25 +4175,25 @@ font-weight: ${s};
4389
4175
  httpReqsData: {},
4390
4176
  httpReqsPending: {},
4391
4177
  clicked: !1,
4392
- builderContext: BuilderContext,
4393
- getWrapperClassName
4178
+ builderContext: le,
4179
+ getWrapperClassName: si
4394
4180
  };
4395
4181
  },
4396
4182
  provide() {
4397
4183
  const e = this;
4398
4184
  return {
4399
- [BuilderContext.key]: e.builderContextSignal
4185
+ [le.key]: e.builderContextSignal
4400
4186
  };
4401
4187
  },
4402
4188
  mounted() {
4403
4189
  (() => {
4404
4190
  var n, o;
4405
- if (isBrowser()) {
4406
- if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4191
+ if ($()) {
4192
+ if (E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4407
4193
  new CustomEvent("initeditingbldr")
4408
- ), this.builderContextSignal.content && getDefaultCanTrack(this.canTrack)) {
4194
+ ), this.builderContextSignal.content && Y(this.canTrack)) {
4409
4195
  const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4410
- _track({
4196
+ de({
4411
4197
  type: "impression",
4412
4198
  canTrack: !0,
4413
4199
  contentId: s,
@@ -4415,12 +4201,12 @@ font-weight: ${s};
4415
4201
  variationId: i !== s ? i : void 0
4416
4202
  });
4417
4203
  }
4418
- isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4204
+ Dt() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4419
4205
  new CustomEvent("initpreviewingbldr")
4420
4206
  );
4421
4207
  }
4422
4208
  })(), (() => {
4423
- this.apiKey || logger.error(
4209
+ this.apiKey || R.error(
4424
4210
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4425
4211
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
4426
4212
  })();
@@ -4466,7 +4252,7 @@ font-weight: ${s};
4466
4252
  }
4467
4253
  },
4468
4254
  unmounted() {
4469
- isBrowser() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4255
+ $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4470
4256
  "builder:component:stateChangeListenerActivated",
4471
4257
  this.emitStateUpdate
4472
4258
  ));
@@ -4538,7 +4324,7 @@ font-weight: ${s};
4538
4324
  this.builderContextSignal.content = t;
4539
4325
  },
4540
4326
  processMessage(e) {
4541
- return createEditorListener({
4327
+ return qe({
4542
4328
  model: this.model,
4543
4329
  trustedHosts: this.trustedHosts,
4544
4330
  callbacks: {
@@ -4552,7 +4338,7 @@ font-weight: ${s};
4552
4338
  });
4553
4339
  },
4554
4340
  animation: (t) => {
4555
- triggerAnimation(t);
4341
+ _e(t);
4556
4342
  },
4557
4343
  contentUpdate: (t) => {
4558
4344
  this.mergeNewContent(t);
@@ -4563,7 +4349,7 @@ font-weight: ${s};
4563
4349
  evaluateJsCode() {
4564
4350
  var t, n;
4565
4351
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
4566
- e && evaluate({
4352
+ e && G({
4567
4353
  code: e,
4568
4354
  context: this.context || {},
4569
4355
  localState: void 0,
@@ -4579,13 +4365,13 @@ font-weight: ${s};
4579
4365
  var t, n;
4580
4366
  if (this.builderContextSignal.content) {
4581
4367
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4582
- _track({
4368
+ de({
4583
4369
  type: "click",
4584
- canTrack: getDefaultCanTrack(this.canTrack),
4370
+ canTrack: Y(this.canTrack),
4585
4371
  contentId: r,
4586
4372
  apiKey: this.apiKey,
4587
4373
  variationId: o !== r ? o : void 0,
4588
- ...getInteractionPropertiesForEvent(e),
4374
+ ...ei(e),
4589
4375
  unique: !this.clicked
4590
4376
  });
4591
4377
  }
@@ -4595,13 +4381,13 @@ font-weight: ${s};
4595
4381
  var t, n;
4596
4382
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4597
4383
  Object.entries(e).forEach(([o, r]) => {
4598
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !isEditing())
4384
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
4599
4385
  return;
4600
4386
  this.httpReqsPending[o] = !0;
4601
4387
  const i = r.replace(
4602
4388
  /{{([^}]+)}}/g,
4603
4389
  (s, l) => String(
4604
- evaluate({
4390
+ G({
4605
4391
  code: l,
4606
4392
  context: this.context || {},
4607
4393
  localState: void 0,
@@ -4611,7 +4397,7 @@ font-weight: ${s};
4611
4397
  })
4612
4398
  )
4613
4399
  );
4614
- fetch$1(i).then((s) => s.json()).then((s) => {
4400
+ Ye(i).then((s) => s.json()).then((s) => {
4615
4401
  this.mergeNewRootState({
4616
4402
  [o]: s
4617
4403
  }), this.httpReqsData[o] = !0;
@@ -4623,12 +4409,12 @@ font-weight: ${s};
4623
4409
  });
4624
4410
  },
4625
4411
  emitStateUpdate() {
4626
- isEditing() && window.dispatchEvent(
4412
+ E() && window.dispatchEvent(
4627
4413
  new CustomEvent(
4628
4414
  "builder:component:stateChange",
4629
4415
  {
4630
4416
  detail: {
4631
- state: fastClone(this.builderContextSignal.rootState),
4417
+ state: pe(this.builderContextSignal.rootState),
4632
4418
  ref: {
4633
4419
  name: this.model
4634
4420
  }
@@ -4638,7 +4424,7 @@ font-weight: ${s};
4638
4424
  );
4639
4425
  },
4640
4426
  elementRef_onIniteditingbldr(e) {
4641
- window.addEventListener("message", this.processMessage), registerInsertMenu(), setupBrowserForEditing({
4427
+ window.addEventListener("message", this.processMessage), ln(), Ke({
4642
4428
  ...this.locale ? {
4643
4429
  locale: this.locale
4644
4430
  } : {},
@@ -4652,7 +4438,7 @@ font-weight: ${s};
4652
4438
  this.builderContextSignal.componentInfos
4653
4439
  ).forEach((t) => {
4654
4440
  var o;
4655
- const n = createRegisterComponentMessage(t);
4441
+ const n = Lt(t);
4656
4442
  (o = window.parent) == null || o.postMessage(n, "*");
4657
4443
  }), window.addEventListener(
4658
4444
  "builder:component:stateChangeListenerActivated",
@@ -4663,7 +4449,7 @@ font-weight: ${s};
4663
4449
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4664
4450
  `builder.overrides.${n}`
4665
4451
  ), r = t.get("apiKey") || t.get("builder.space");
4666
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && fetchOneEntry({
4452
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
4667
4453
  model: this.model,
4668
4454
  apiKey: this.apiKey,
4669
4455
  apiVersion: this.builderContextSignal.apiVersion
@@ -4673,52 +4459,52 @@ font-weight: ${s};
4673
4459
  }
4674
4460
  }
4675
4461
  });
4676
- function _sfc_render$4(e, t, n, o, r, i) {
4462
+ function li(e, t, n, o, r, i) {
4677
4463
  var s, l, a;
4678
- return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
4464
+ return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper), S({
4679
4465
  key: 0,
4680
4466
  ref: "elementRef",
4681
- onClick: (d) => e.onClick(d),
4467
+ onClick: (u) => e.onClick(u),
4682
4468
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
4683
4469
  "builder-model": e.model,
4684
4470
  class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4685
- onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
4686
- onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
4471
+ onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4472
+ onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4687
4473
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4688
- default: withCtx(() => [
4689
- renderSlot(e.$slots, "default")
4474
+ default: N(() => [
4475
+ P(e.$slots, "default")
4690
4476
  ]),
4691
4477
  _: 3
4692
- }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : createCommentVNode("", !0);
4478
+ }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
4693
4479
  }
4694
- const EnableEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]), _sfc_main$3 = defineComponent({
4480
+ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = f({
4695
4481
  name: "content-styles",
4696
- components: { InlinedStyles: _sfc_main$n },
4482
+ components: { InlinedStyles: ke },
4697
4483
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4698
4484
  data() {
4699
4485
  return {
4700
4486
  injectedStyles: `
4701
- ${getCss({
4487
+ ${oi({
4702
4488
  cssCode: this.cssCode,
4703
4489
  contentId: this.contentId
4704
4490
  })}
4705
- ${getFontCss({
4491
+ ${ni({
4706
4492
  customFonts: this.customFonts
4707
4493
  })}
4708
- ${getDefaultStyles(this.isNestedRender)}
4494
+ ${ii(this.isNestedRender)}
4709
4495
  `.trim()
4710
4496
  };
4711
4497
  }
4712
4498
  });
4713
- function _sfc_render$3(e, t, n, o, r, i) {
4714
- const s = resolveComponent("InlinedStyles");
4715
- return openBlock(), createBlock(s, {
4499
+ function ui(e, t, n, o, r, i) {
4500
+ const s = y("InlinedStyles");
4501
+ return c(), g(s, {
4716
4502
  id: "builderio-content",
4717
4503
  styles: e.injectedStyles,
4718
4504
  nonce: e.nonce
4719
4505
  }, null, 8, ["styles", "nonce"]);
4720
4506
  }
4721
- const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]), getRootStateInitialValue = ({
4507
+ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4722
4508
  content: e,
4723
4509
  data: t,
4724
4510
  locale: n
@@ -4735,7 +4521,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4735
4521
  locale: n
4736
4522
  } : {}
4737
4523
  };
4738
- }, getContentInitialValue = ({
4524
+ }, hi = ({
4739
4525
  content: e,
4740
4526
  data: t
4741
4527
  }) => e ? {
@@ -4745,14 +4531,14 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4745
4531
  ...t
4746
4532
  },
4747
4533
  meta: e == null ? void 0 : e.meta
4748
- } : void 0, wrapComponentRef = markRaw, _sfc_main$2 = defineComponent({
4534
+ } : void 0, fi = ut, bi = f({
4749
4535
  name: "content-component",
4750
4536
  components: {
4751
- EnableEditor,
4752
- InlinedScript: _sfc_main$5,
4753
- ContentStyles,
4754
- Blocks,
4755
- DynamicDiv
4537
+ EnableEditor: ci,
4538
+ InlinedScript: st,
4539
+ ContentStyles: pi,
4540
+ Blocks: M,
4541
+ DynamicDiv: Q
4756
4542
  },
4757
4543
  props: [
4758
4544
  "content",
@@ -4779,32 +4565,32 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4779
4565
  data() {
4780
4566
  var e, t, n, o;
4781
4567
  return {
4782
- scriptStr: getUpdateVariantVisibilityScript({
4568
+ scriptStr: Xr({
4783
4569
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4784
4570
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4785
4571
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4786
4572
  contentId: (t = this.content) == null ? void 0 : t.id
4787
4573
  }),
4788
4574
  registeredComponents: [
4789
- ...getDefaultRegisteredComponents(),
4575
+ ...Re(),
4790
4576
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4791
4577
  ].reduce(
4792
4578
  (r, { component: i, ...s }) => ({
4793
4579
  ...r,
4794
4580
  [s.name]: {
4795
- component: wrapComponentRef(i),
4796
- ...serializeIncludingFunctions(s)
4581
+ component: fi(i),
4582
+ ...ee(s)
4797
4583
  }
4798
4584
  }),
4799
4585
  {}
4800
4586
  ),
4801
4587
  builderContextSignal: {
4802
- content: getContentInitialValue({
4588
+ content: hi({
4803
4589
  content: this.content,
4804
4590
  data: this.data
4805
4591
  }),
4806
4592
  localState: void 0,
4807
- rootState: getRootStateInitialValue({
4593
+ rootState: mi({
4808
4594
  content: this.content,
4809
4595
  data: this.data,
4810
4596
  locale: this.locale
@@ -4815,12 +4601,12 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4815
4601
  apiKey: this.apiKey,
4816
4602
  apiVersion: this.apiVersion,
4817
4603
  componentInfos: [
4818
- ...getDefaultRegisteredComponents(),
4604
+ ...Re(),
4819
4605
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4820
4606
  ].reduce(
4821
4607
  (r, { component: i, ...s }) => ({
4822
4608
  ...r,
4823
- [s.name]: serializeIncludingFunctions(s)
4609
+ [s.name]: ee(s)
4824
4610
  }),
4825
4611
  {}
4826
4612
  ),
@@ -4829,13 +4615,13 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4829
4615
  BlocksWrapperProps: this.blocksWrapperProps || {},
4830
4616
  nonce: this.nonce || ""
4831
4617
  },
4832
- TARGET
4618
+ TARGET: x
4833
4619
  };
4834
4620
  },
4835
4621
  provide() {
4836
4622
  const e = this;
4837
4623
  return {
4838
- [ComponentsContext.key]: {
4624
+ [Ve.key]: {
4839
4625
  registeredComponents: e.registeredComponents
4840
4626
  }
4841
4627
  };
@@ -4846,9 +4632,9 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4846
4632
  }
4847
4633
  }
4848
4634
  });
4849
- function _sfc_render$2(e, t, n, o, r, i) {
4850
- const s = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4851
- return openBlock(), createBlock(d, mergeProps({
4635
+ function gi(e, t, n, o, r, i) {
4636
+ const s = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
4637
+ return c(), g(u, S({
4852
4638
  nonce: e.nonce,
4853
4639
  content: e.content,
4854
4640
  data: e.data,
@@ -4864,25 +4650,25 @@ function _sfc_render$2(e, t, n, o, r, i) {
4864
4650
  contentWrapperProps: e.contentWrapperProps,
4865
4651
  trustedHosts: e.trustedHosts
4866
4652
  }, {}), {
4867
- default: withCtx(() => {
4868
- var p, c, u, f, m, b, C;
4653
+ default: N(() => {
4654
+ var h, d, p, k, v, F, X;
4869
4655
  return [
4870
- e.isSsrAbTest ? (openBlock(), createBlock(s, {
4656
+ e.isSsrAbTest ? (c(), g(s, {
4871
4657
  key: 0,
4872
4658
  id: "builderio-variant-visibility",
4873
4659
  scriptStr: e.scriptStr,
4874
4660
  nonce: e.nonce || ""
4875
- }, null, 8, ["scriptStr", "nonce"])) : createCommentVNode("", !0),
4876
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(l, {
4661
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
4662
+ e.TARGET !== "reactNative" ? (c(), g(l, {
4877
4663
  key: 1,
4878
4664
  nonce: e.nonce || "",
4879
4665
  isNestedRender: e.isNestedRender,
4880
- contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
4881
- cssCode: (u = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
4882
- customFonts: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4883
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : createCommentVNode("", !0),
4884
- createVNode(a, {
4885
- blocks: (C = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : C.blocks,
4666
+ contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4667
+ cssCode: (p = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : p.cssCode,
4668
+ customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
4669
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
4670
+ I(a, {
4671
+ blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4886
4672
  context: e.builderContextSignal,
4887
4673
  registeredComponents: e.registeredComponents,
4888
4674
  linkComponent: e.linkComponent
@@ -4892,12 +4678,12 @@ function _sfc_render$2(e, t, n, o, r, i) {
4892
4678
  _: 1
4893
4679
  }, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4894
4680
  }
4895
- const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]), _sfc_main$1 = defineComponent({
4681
+ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4896
4682
  name: "content-variants",
4897
4683
  components: {
4898
- InlinedScript: _sfc_main$5,
4899
- InlinedStyles: _sfc_main$n,
4900
- ContentComponent
4684
+ InlinedScript: st,
4685
+ InlinedStyles: ke,
4686
+ ContentComponent: yi
4901
4687
  },
4902
4688
  props: [
4903
4689
  "canTrack",
@@ -4921,13 +4707,13 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4921
4707
  ],
4922
4708
  data() {
4923
4709
  return {
4924
- shouldRenderVariants: checkShouldRenderVariants({
4925
- canTrack: getDefaultCanTrack(this.canTrack),
4710
+ shouldRenderVariants: Jr({
4711
+ canTrack: Y(this.canTrack),
4926
4712
  content: this.content
4927
4713
  }),
4928
- TARGET,
4929
- getInitVariantsFnsScriptString,
4930
- getVariants
4714
+ TARGET: x,
4715
+ getInitVariantsFnsScriptString: Yr,
4716
+ getVariants: Z
4931
4717
  };
4932
4718
  },
4933
4719
  mounted() {
@@ -4935,8 +4721,8 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4935
4721
  computed: {
4936
4722
  updateCookieAndStylesScriptStr() {
4937
4723
  var e;
4938
- return getUpdateCookieAndStylesScript(
4939
- getVariants(this.content).map((t) => ({
4724
+ return Qr(
4725
+ Z(this.content).map((t) => ({
4940
4726
  id: t.testVariationId,
4941
4727
  testRatio: t.testRatio
4942
4728
  })),
@@ -4944,45 +4730,45 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4944
4730
  );
4945
4731
  },
4946
4732
  hideVariantsStyleString() {
4947
- return getVariants(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4733
+ return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4948
4734
  },
4949
4735
  defaultContent() {
4950
4736
  var e;
4951
4737
  return this.shouldRenderVariants ? {
4952
4738
  ...this.content,
4953
4739
  testVariationId: (e = this.content) == null ? void 0 : e.id
4954
- } : handleABTestingSync({
4740
+ } : hn({
4955
4741
  item: this.content,
4956
- canTrack: getDefaultCanTrack(this.canTrack)
4742
+ canTrack: Y(this.canTrack)
4957
4743
  });
4958
4744
  }
4959
4745
  }
4960
4746
  });
4961
- function _sfc_render$1(e, t, n, o, r, i) {
4962
- const s = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4963
- return openBlock(), createElementBlock(Fragment$1, null, [
4964
- !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
4747
+ function vi(e, t, n, o, r, i) {
4748
+ const s = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
4749
+ return c(), m(T, null, [
4750
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(s, {
4965
4751
  key: 0,
4966
4752
  id: "builderio-init-variants-fns",
4967
4753
  scriptStr: e.getInitVariantsFnsScriptString(),
4968
4754
  nonce: e.nonce || ""
4969
- }, null, 8, ["scriptStr", "nonce"])) : createCommentVNode("", !0),
4970
- e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
4971
- createVNode(l, {
4755
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
4756
+ e.shouldRenderVariants ? (c(), m(T, { key: 1 }, [
4757
+ I(l, {
4972
4758
  id: "builderio-variants",
4973
4759
  styles: e.hideVariantsStyleString,
4974
4760
  nonce: e.nonce || ""
4975
4761
  }, null, 8, ["styles", "nonce"]),
4976
- createVNode(s, {
4762
+ I(s, {
4977
4763
  id: "builderio-variants-visibility",
4978
4764
  scriptStr: e.updateCookieAndStylesScriptStr,
4979
4765
  nonce: e.nonce || ""
4980
4766
  }, null, 8, ["scriptStr", "nonce"]),
4981
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(a, mergeProps({
4982
- key: d.testVariationId,
4767
+ (c(!0), m(T, null, A(e.getVariants(e.content), (u, h) => (c(), g(a, S({
4768
+ key: u.testVariationId,
4983
4769
  isNestedRender: e.isNestedRender,
4984
4770
  nonce: e.nonce,
4985
- content: d,
4771
+ content: u,
4986
4772
  showContent: !1,
4987
4773
  model: e.model,
4988
4774
  data: e.data,
@@ -5001,8 +4787,8 @@ function _sfc_render$1(e, t, n, o, r, i) {
5001
4787
  contentWrapperProps: e.contentWrapperProps,
5002
4788
  trustedHosts: e.trustedHosts
5003
4789
  }, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5004
- ], 64)) : createCommentVNode("", !0),
5005
- createVNode(a, mergeProps({
4790
+ ], 64)) : C("", !0),
4791
+ I(a, S({
5006
4792
  nonce: e.nonce,
5007
4793
  isNestedRender: e.isNestedRender,
5008
4794
  content: e.defaultContent,
@@ -5028,13 +4814,13 @@ function _sfc_render$1(e, t, n, o, r, i) {
5028
4814
  }), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5029
4815
  ], 64);
5030
4816
  }
5031
- const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]), fetchSymbolContent = async ({
4817
+ const Ci = /* @__PURE__ */ b(ki, [["render", vi]]), Si = async ({
5032
4818
  builderContextValue: e,
5033
4819
  symbol: t
5034
4820
  }) => {
5035
4821
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5036
4822
  (e != null && e.apiKey))
5037
- return fetchOneEntry({
4823
+ return be({
5038
4824
  model: t.model,
5039
4825
  apiKey: e.apiKey,
5040
4826
  apiVersion: e.apiVersion,
@@ -5044,11 +4830,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5044
4830
  }
5045
4831
  }
5046
4832
  }).catch((n) => {
5047
- logger.error("Could not fetch symbol content: ", n);
4833
+ R.error("Could not fetch symbol content: ", n);
5048
4834
  });
5049
- }, _sfc_main = defineComponent({
4835
+ }, Ti = f({
5050
4836
  name: "builder-symbol",
5051
- components: { ContentVariants, DynamicDiv },
4837
+ components: { ContentVariants: Ci, DynamicDiv: Q },
5052
4838
  props: [
5053
4839
  "symbol",
5054
4840
  "attributes",
@@ -5060,7 +4846,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5060
4846
  ],
5061
4847
  data() {
5062
4848
  var e;
5063
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs };
4849
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
5064
4850
  },
5065
4851
  mounted() {
5066
4852
  this.setContent();
@@ -5083,7 +4869,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5083
4869
  className() {
5084
4870
  var e, t;
5085
4871
  return [
5086
- this.attributes[getClassPropName()],
4872
+ this.attributes[_()],
5087
4873
  "builder-symbol",
5088
4874
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5089
4875
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5097,7 +4883,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5097
4883
  },
5098
4884
  methods: {
5099
4885
  setContent() {
5100
- this.contentToUse || fetchSymbolContent({
4886
+ this.contentToUse || Si({
5101
4887
  symbol: this.symbol,
5102
4888
  builderContextValue: this.builderContext
5103
4889
  }).then((e) => {
@@ -5106,11 +4892,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5106
4892
  }
5107
4893
  }
5108
4894
  });
5109
- function _sfc_render(e, t, n, o, r, i) {
5110
- var l, a, d, p, c;
5111
- const s = resolveComponent("ContentVariants");
5112
- return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5113
- createVNode(s, {
4895
+ function wi(e, t, n, o, r, i) {
4896
+ var l, a, u, h, d;
4897
+ const s = y("ContentVariants");
4898
+ return c(), m("div", S({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4899
+ I(s, {
5114
4900
  nonce: e.builderContext.nonce,
5115
4901
  isNestedRender: !0,
5116
4902
  apiVersion: e.builderContext.apiVersion,
@@ -5123,10 +4909,10 @@ function _sfc_render(e, t, n, o, r, i) {
5123
4909
  data: {
5124
4910
  ...(a = e.symbol) == null ? void 0 : a.data,
5125
4911
  ...e.builderContext.localState,
5126
- ...(p = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : p.state
4912
+ ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
5127
4913
  },
5128
4914
  canTrack: e.builderContext.canTrack,
5129
- model: (c = e.symbol) == null ? void 0 : c.model,
4915
+ model: (d = e.symbol) == null ? void 0 : d.model,
5130
4916
  content: e.contentToUse,
5131
4917
  linkComponent: e.builderLinkComponent,
5132
4918
  blocksWrapper: e.blocksWrapper,
@@ -5134,44 +4920,42 @@ function _sfc_render(e, t, n, o, r, i) {
5134
4920
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5135
4921
  ], 16);
5136
4922
  }
5137
- const Symbol$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
4923
+ const Ii = /* @__PURE__ */ b(Ti, [["render", wi]]);
5138
4924
  export {
5139
- fetchEntries as A,
5140
- Block as B,
5141
- Columns as C,
5142
- fetchOneEntry as D,
5143
- dynamicRenderer as E,
5144
- Fragment as F,
5145
- block as G,
5146
- Image as I,
5147
- Section as S,
5148
- TARGET as T,
5149
- Video as V,
5150
- _sfc_main$n as _,
5151
- createCssClass as a,
5152
- getMaxWidthQueryForSize as b,
5153
- checkIsDefined as c,
5154
- camelToKebabCase as d,
5155
- _export_sfc as e,
5156
- evaluate as f,
5157
- getSizesForBreakpoints as g,
5158
- getStyle as h,
5159
- getClassPropName as i,
5160
- BuilderContext as j,
5161
- Button as k,
5162
- Symbol$1 as l,
5163
- Text as m,
5164
- Blocks as n,
5165
- ContentVariants as o,
5166
- isEditing as p,
5167
- isPreviewing as q,
5168
- createRegisterComponentMessage as r,
5169
- register as s,
5170
- setEditorSettings as t,
5171
- getBuilderSearchParams as u,
5172
- track as v,
5173
- wrapComponentRef as w,
5174
- subscribeToEditor as x,
5175
- fetchBuilderProps as y,
5176
- _processContentResult as z
4925
+ Bi as A,
4926
+ ye as B,
4927
+ eo as C,
4928
+ Fi as D,
4929
+ oo as F,
4930
+ po as I,
4931
+ fo as S,
4932
+ Ho as T,
4933
+ jr as V,
4934
+ ke as _,
4935
+ Wi as a,
4936
+ Oi as b,
4937
+ L as c,
4938
+ ge as d,
4939
+ b as e,
4940
+ G as f,
4941
+ Qn as g,
4942
+ Ni as h,
4943
+ _ as i,
4944
+ le as j,
4945
+ wt as k,
4946
+ Ii as l,
4947
+ M as m,
4948
+ Ci as n,
4949
+ Dt as o,
4950
+ Lt as p,
4951
+ Ne as q,
4952
+ Mt as r,
4953
+ Pi as s,
4954
+ xi as t,
4955
+ Ai as u,
4956
+ Vi as v,
4957
+ fi as w,
4958
+ Cn as x,
4959
+ Sn as y,
4960
+ be as z
5177
4961
  };