@builder.io/sdk-vue 2.0.16 → 2.0.20

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 (85) hide show
  1. package/README.md +1 -1
  2. package/lib/browser/awaiter-A9QVJBD9.cjs +1 -0
  3. package/lib/browser/awaiter-jLgWnSTO.js +16 -0
  4. package/lib/browser/{block-styles-wdfZngGH.cjs → block-styles-FLI6qMZg.cjs} +1 -1
  5. package/lib/browser/{block-styles-J1Ycb5k6.js → block-styles-McsYN1Hd.js} +1 -1
  6. package/lib/browser/{block-wrapper-0yNnaWi7.cjs → block-wrapper-c1TRGGdm.cjs} +1 -1
  7. package/lib/browser/{block-wrapper-WNcg8adi.js → block-wrapper-kIbAHG8K.js} +3 -3
  8. package/lib/browser/component-ref-VsUS3j2W.js +135 -0
  9. package/lib/browser/component-ref-t_X6BYoD.cjs +1 -0
  10. package/lib/browser/components/awaiter.vue.d.ts +2 -0
  11. package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
  12. package/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/lib/browser/context/component-reference-types.d.ts +4 -0
  14. package/lib/browser/context/types.d.ts +2 -1
  15. package/lib/browser/{get-block-properties-EYg8xaCR.cjs → get-block-properties-Ub4OGrZU.cjs} +1 -1
  16. package/lib/browser/{get-block-properties-9178299s.js → get-block-properties-pnQ6T89t.js} +1 -1
  17. package/lib/browser/{index-NFUE2Jgz.cjs → index-G94Y3yOE.cjs} +3 -3
  18. package/lib/browser/{index-LzjDY2XM.js → index-IkCq97zU.js} +15 -15
  19. package/lib/browser/index.cjs +1 -1
  20. package/lib/browser/index.mjs +1 -1
  21. package/lib/browser/{repeated-block-qTqSm8kM.js → repeated-block-9kzlJZ0z.js} +2 -2
  22. package/lib/browser/{repeated-block-BQJwYMB1.cjs → repeated-block-phJGhJDz.cjs} +1 -1
  23. package/lib/browser/style.css +1 -1
  24. package/lib/edge/awaiter-EaEHpSME.js +15 -0
  25. package/lib/edge/awaiter-qkwHnyG4.cjs +1 -0
  26. package/lib/edge/{block-styles-VxOvC1TW.cjs → block-styles-dBm-UB6s.cjs} +1 -1
  27. package/lib/{node/block-styles-1_5JG_2z.js → edge/block-styles-e5rHDnez.js} +1 -1
  28. package/lib/edge/{block-wrapper--PIvpZ-W.js → block-wrapper-IsmLQCso.js} +3 -3
  29. package/lib/{node/block-wrapper-ofVcndkY.cjs → edge/block-wrapper-XFAJUGmy.cjs} +1 -1
  30. package/lib/edge/component-ref-VkKlvDcE.cjs +1 -0
  31. package/lib/edge/component-ref-mDQskFmn.js +134 -0
  32. package/lib/edge/components/awaiter.vue.d.ts +2 -0
  33. package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
  34. package/lib/edge/constants/sdk-version.d.ts +1 -1
  35. package/lib/edge/context/component-reference-types.d.ts +4 -0
  36. package/lib/edge/context/types.d.ts +2 -1
  37. package/lib/edge/{get-block-properties-YnnLDBjt.cjs → get-block-properties-FTpxQBNr.cjs} +1 -1
  38. package/lib/{node/get-block-properties-dtlboGe6.js → edge/get-block-properties-jWWYZFYS.js} +1 -1
  39. package/lib/edge/{index-_G5Jct0s.js → index-a1uEIlXu.js} +15 -15
  40. package/lib/edge/{index-sCP9BbUb.cjs → index-wbH9RC9d.cjs} +10 -10
  41. package/lib/edge/index.cjs +1 -1
  42. package/lib/edge/index.mjs +1 -1
  43. package/lib/edge/{repeated-block-BFv7xfur.cjs → repeated-block--9pU5oBU.cjs} +1 -1
  44. package/lib/edge/{repeated-block-xjv5lSgT.js → repeated-block-WbUp3X7n.js} +2 -2
  45. package/lib/edge/style.css +1 -1
  46. package/lib/node/awaiter-bSGzxUtO.js +15 -0
  47. package/lib/node/awaiter-nnMnOtUG.cjs +1 -0
  48. package/lib/node/block-styles-nafXA7XU.cjs +1 -0
  49. package/lib/{edge/block-styles-ZXgAEao4.js → node/block-styles-z1hRu_oN.js} +16 -15
  50. package/lib/{edge/block-wrapper-_Jqy6OhJ.cjs → node/block-wrapper-7Zyz-IHk.cjs} +1 -1
  51. package/lib/node/{block-wrapper-V_pureM-.js → block-wrapper-VbshFnwD.js} +3 -3
  52. package/lib/node/component-ref-0qWwbS8J.js +134 -0
  53. package/lib/node/component-ref-pMpl8Ppd.cjs +1 -0
  54. package/lib/node/components/awaiter.vue.d.ts +2 -0
  55. package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
  56. package/lib/node/constants/sdk-version.d.ts +1 -1
  57. package/lib/node/context/component-reference-types.d.ts +4 -0
  58. package/lib/node/context/types.d.ts +2 -1
  59. package/lib/node/get-block-properties-3bo9EXiT.cjs +1 -0
  60. package/lib/{edge/get-block-properties-1IIhEm1L.js → node/get-block-properties-7k5SVVoM.js} +17 -16
  61. package/lib/node/{index-trhIUBJe.js → index-arpbCDNz.js} +906 -1136
  62. package/lib/node/index-m2Te0zyE.cjs +166 -0
  63. package/lib/node/index.cjs +1 -1
  64. package/lib/node/index.mjs +17 -16
  65. package/lib/node/init.cjs +1 -0
  66. package/lib/node/init.d.cts +14 -0
  67. package/lib/node/init.d.mts +14 -0
  68. package/lib/node/init.mjs +15 -0
  69. package/lib/node/{repeated-block-DGLvKNeT.js → repeated-block-7xPIdLvm.js} +13 -13
  70. package/lib/node/{repeated-block-3sS8LQKZ.cjs → repeated-block-opGUN59c.cjs} +1 -1
  71. package/lib/node/should-force-browser-runtime-in-node-Hy3G5eB4.js +248 -0
  72. package/lib/node/should-force-browser-runtime-in-node-cm1lg4FM.cjs +48 -0
  73. package/lib/node/style.css +1 -1
  74. package/nuxt-isolated-vm-plugin.js +14 -0
  75. package/nuxt.js +31 -2
  76. package/package.json +7 -2
  77. package/lib/browser/component-ref-ZQ1LWsdM.js +0 -114
  78. package/lib/browser/component-ref-vgKnLwfE.cjs +0 -1
  79. package/lib/edge/component-ref-Gmo3ST7V.cjs +0 -1
  80. package/lib/edge/component-ref-J3KW7NWq.js +0 -113
  81. package/lib/node/block-styles-_qZsI9c3.cjs +0 -1
  82. package/lib/node/component-ref--fBJ8B90.cjs +0 -1
  83. package/lib/node/component-ref-i-BTHCKC.js +0 -113
  84. package/lib/node/get-block-properties-WxCzIZPQ.cjs +0 -1
  85. package/lib/node/index-Yv0J5kjl.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 E, resolveComponent as y, createTextVNode as dt, toDisplayString as te, defineAsyncComponent as j, createVNode as I, renderList as V, 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, i as $, s as mt, r as ht, p as ft, a as bt, l as P, b as xe, f as pe, c as gt, n as Ve, d as L, e as R, h as yt } from "./should-force-browser-runtime-in-node-Hy3G5eB4.js";
6
+ const kt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), vt = (e) => typeof e == "string" && kt.has(e.toLowerCase());
7
+ function A(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 Ct = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement };
21
+ return { isEmptyElement: vt };
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 St(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
+ E(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
+ E(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(Ct, [["render", St]]), 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
+ }, Tt = 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: A };
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
+ ...A(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 wt(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 It = /* @__PURE__ */ b(Tt, [["render", wt]]), $t = 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: $t
119
+ }, Rt = Symbol(), Ae = {
120
120
  Components: { registeredComponents: {} },
121
- key
121
+ key: Rt
122
122
  };
123
- function getBlockComponentOptions(e) {
123
+ function Bt(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 Pt = ({
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,160 +179,9 @@ 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() {
395
- var e;
396
- return typeof process < "u" && checkIsDefined((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
397
- }
398
- const shouldForceBrowserRuntimeInNode = ({
399
- shouldLogWarning: e
400
- }) => {
401
- var r;
402
- if (!isNodeRuntime())
403
- return !1;
404
- const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
405
- return t && n && !o ? (e && 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;
406
- }, chooseBrowserOrServerEval = (e) => isBrowser() || shouldForceBrowserRuntimeInNode({
182
+ const xt = (e) => $() || mt({
407
183
  shouldLogWarning: !0
408
- }) ? runInBrowser(e) : runInNode(e), DISABLE_CACHE = !0, y = class y {
184
+ }) ? Pt(e) : ht(e), Vt = !0, W = class W {
409
185
  static getCacheKey(t) {
410
186
  return JSON.stringify({
411
187
  ...t,
@@ -415,17 +191,17 @@ const shouldForceBrowserRuntimeInNode = ({
415
191
  });
416
192
  }
417
193
  static getCachedValue(t) {
418
- return y.cache.get(t);
194
+ return W.cache.get(t);
419
195
  }
420
196
  static setCachedValue(t, n) {
421
- y.cache.size > 20 && y.cache.delete(y.cache.keys().next().value), y.cache.set(t, {
197
+ W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
422
198
  value: n
423
199
  });
424
200
  }
425
201
  };
426
- v(y, "cacheLimit", 20), v(y, "cache", /* @__PURE__ */ new Map());
427
- let EvalCache = y;
428
- function evaluate({
202
+ ne(W, "cacheLimit", 20), ne(W, "cache", /* @__PURE__ */ new Map());
203
+ let U = W;
204
+ function G({
429
205
  code: e,
430
206
  context: t,
431
207
  localState: n,
@@ -438,53 +214,50 @@ function evaluate({
438
214
  if (e === "")
439
215
  return;
440
216
  const a = {
441
- code: parseCode(e, {
217
+ code: ft(e, {
442
218
  isExpression: s
443
219
  }),
444
- builder: getBuilderGlobals(),
220
+ builder: bt(),
445
221
  context: t,
446
222
  event: i,
447
223
  rootSetState: r,
448
224
  rootState: o,
449
225
  localState: n
450
226
  };
451
- if (l && !DISABLE_CACHE) {
452
- const d = EvalCache.getCacheKey(a), p = EvalCache.getCachedValue(d);
453
- if (p)
454
- return p.value;
227
+ if (l && !Vt) {
228
+ const u = U.getCacheKey(a), h = U.getCachedValue(u);
229
+ if (h)
230
+ return h.value;
455
231
  }
456
232
  try {
457
- const d = chooseBrowserOrServerEval(a);
233
+ const u = xt(a);
458
234
  if (l) {
459
- const p = EvalCache.getCacheKey(a);
460
- EvalCache.setCachedValue(p, d);
235
+ const h = U.getCacheKey(a);
236
+ U.setCachedValue(h, u);
461
237
  }
462
- return d;
463
- } catch (d) {
464
- logger.error("Failed code evaluation: " + d.message, {
238
+ return u;
239
+ } catch (u) {
240
+ P.error("Failed code evaluation: " + u.message, {
465
241
  code: e
466
242
  });
467
243
  return;
468
244
  }
469
245
  }
470
- function transformBlock(e) {
471
- return e;
472
- }
473
- function deepCloneWithConditions(e) {
246
+ function ce(e) {
474
247
  if (e === null || typeof e != "object")
475
248
  return e;
476
249
  if (Array.isArray(e))
477
- return e.map((n) => deepCloneWithConditions(n));
250
+ return e.map((n) => ce(n));
478
251
  if (e["@type"] === "@builder.io/sdk:Element")
479
252
  return e;
480
253
  const t = {};
481
254
  for (const n in e)
482
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = deepCloneWithConditions(e[n]));
255
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
483
256
  return t;
484
257
  }
485
- const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik", "solid"].includes(TARGET), getCopy = (e) => {
486
- if (IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK) {
487
- const t = fastClone(e);
258
+ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Wt = (e) => {
259
+ if (At) {
260
+ const t = pe(e);
488
261
  return {
489
262
  ...t,
490
263
  properties: {
@@ -495,7 +268,7 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
495
268
  }
496
269
  };
497
270
  } else {
498
- const t = deepCloneWithConditions(omit(e, "children", "meta"));
271
+ const t = ce(Et(e, "children", "meta"));
499
272
  return {
500
273
  ...t,
501
274
  properties: {
@@ -508,7 +281,7 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
508
281
  meta: e.meta
509
282
  };
510
283
  }
511
- }, evaluateBindings = ({
284
+ }, Nt = ({
512
285
  block: e,
513
286
  context: t,
514
287
  localState: n,
@@ -517,9 +290,9 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
517
290
  }) => {
518
291
  if (!e.bindings)
519
292
  return e;
520
- const i = getCopy(e);
293
+ const i = Wt(e);
521
294
  for (const s in e.bindings) {
522
- const l = e.bindings[s], a = evaluate({
295
+ const l = e.bindings[s], a = G({
523
296
  code: l,
524
297
  localState: n,
525
298
  rootState: o,
@@ -527,11 +300,11 @@ const IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik
527
300
  context: t,
528
301
  enableCache: !0
529
302
  });
530
- set(i, s, a);
303
+ xe(i, s, a);
531
304
  }
532
305
  return i;
533
306
  };
534
- function getProcessedBlock({
307
+ function Ft({
535
308
  block: e,
536
309
  context: t,
537
310
  shouldEvaluateBindings: n,
@@ -540,7 +313,7 @@ function getProcessedBlock({
540
313
  rootSetState: i
541
314
  }) {
542
315
  const s = e;
543
- return n ? evaluateBindings({
316
+ return n ? Nt({
544
317
  block: s,
545
318
  localState: o,
546
319
  rootState: r,
@@ -548,25 +321,25 @@ function getProcessedBlock({
548
321
  context: t
549
322
  }) : s;
550
323
  }
551
- function isPreviewing(e) {
552
- const t = e || (isBrowser() ? window.location.search : void 0);
553
- return t ? getSearchString(t).indexOf("builder.preview=") !== -1 : !1;
324
+ function Ot(e) {
325
+ const t = e || ($() ? window.location.search : void 0);
326
+ return t ? gt(t).indexOf("builder.preview=") !== -1 : !1;
554
327
  }
555
- const createRegisterComponentMessage = (e) => ({
328
+ const Dt = (e) => ({
556
329
  type: "builder.registerComponent",
557
- data: serializeIncludingFunctions(e)
558
- }), serializeFn = (e) => {
330
+ data: ee(e)
331
+ }), Lt = (e) => {
559
332
  const t = e.toString().trim();
560
333
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
561
334
  };
562
- function serializeIncludingFunctions(e) {
563
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? serializeFn(n) : n));
335
+ function ee(e) {
336
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Lt(n) : n));
564
337
  }
565
- const registry = {};
566
- function register(e, t) {
567
- e === "plugin" && (t = serializeIncludingFunctions(t));
568
- let n = registry[e];
569
- if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
338
+ const Ce = {};
339
+ function Ut(e, t) {
340
+ e === "plugin" && (t = ee(t));
341
+ let n = Ce[e];
342
+ if (n || (n = Ce[e] = []), n.push(t), $()) {
570
343
  const o = {
571
344
  type: "builder.register",
572
345
  data: {
@@ -581,38 +354,38 @@ function register(e, t) {
581
354
  }
582
355
  }
583
356
  }
584
- const settings = {};
585
- function setEditorSettings(e) {
586
- if (isBrowser()) {
587
- Object.assign(settings, e);
357
+ const Se = {};
358
+ function Ei(e) {
359
+ if ($()) {
360
+ Object.assign(Se, e);
588
361
  const t = {
589
362
  type: "builder.settingsChange",
590
- data: settings
363
+ data: Se
591
364
  };
592
365
  parent.postMessage(t, "*");
593
366
  }
594
367
  }
595
- const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "options.", getBuilderSearchParams = (e) => {
368
+ const Te = "builder.", Mt = "options.", Ne = (e) => {
596
369
  if (!e)
597
370
  return {};
598
- const t = normalizeSearchParams(e), n = {};
371
+ const t = Ve(e), n = {};
599
372
  return Object.keys(t).forEach((o) => {
600
- if (o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)) {
601
- const r = o.replace(BUILDER_SEARCHPARAMS_PREFIX, "").replace(BUILDER_OPTIONS_PREFIX, "");
373
+ if (o.startsWith(Te)) {
374
+ const r = o.replace(Te, "").replace(Mt, "");
602
375
  n[r] = t[o];
603
376
  }
604
377
  }), n;
605
- }, getBuilderSearchParamsFromWindow = () => {
606
- if (!isBrowser())
378
+ }, Ht = () => {
379
+ if (!$())
607
380
  return {};
608
381
  const e = new URLSearchParams(window.location.search);
609
- return getBuilderSearchParams(e);
610
- }, getTopLevelDomain = (e) => {
382
+ return Ne(e);
383
+ }, jt = (e) => {
611
384
  if (e === "localhost" || e === "127.0.0.1")
612
385
  return e;
613
386
  const t = e.split(".");
614
387
  return t.length > 2 ? t.slice(1).join(".") : e;
615
- }, getCookieSync = ({
388
+ }, Fe = ({
616
389
  name: e,
617
390
  canTrack: t
618
391
  }) => {
@@ -620,17 +393,17 @@ const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "option
620
393
  try {
621
394
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
622
395
  } catch (o) {
623
- logger.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
396
+ P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
624
397
  return;
625
398
  }
626
- }, getCookie = async (e) => getCookieSync(e), stringifyCookie = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(checkIsDefined).join("; "), SECURE_CONFIG = [["secure", ""], ["SameSite", "None"]], createCookieString = ({
399
+ }, Oe = async (e) => Fe(e), Kt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), qt = [["secure", ""], ["SameSite", "None"]], zt = ({
627
400
  name: e,
628
401
  value: t,
629
402
  expires: n
630
403
  }) => {
631
- 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];
632
- return stringifyCookie(s);
633
- }, setCookie = async ({
404
+ const r = ($() ? location.protocol === "https:" : !0) ? qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", jt(window.location.hostname)], ...r];
405
+ return Kt(s);
406
+ }, De = async ({
634
407
  name: e,
635
408
  value: t,
636
409
  expires: n,
@@ -639,98 +412,98 @@ const BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "option
639
412
  try {
640
413
  if (!o)
641
414
  return;
642
- const r = createCookieString({
415
+ const r = zt({
643
416
  name: e,
644
417
  value: t,
645
418
  expires: n
646
419
  });
647
420
  document.cookie = r;
648
421
  } catch (r) {
649
- logger.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
422
+ P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
650
423
  }
651
424
  };
652
- function uuidv4() {
425
+ function Jt() {
653
426
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
654
427
  const t = Math.random() * 16 | 0;
655
428
  return (e == "x" ? t : t & 3 | 8).toString(16);
656
429
  });
657
430
  }
658
- function uuid() {
659
- return uuidv4().replace(/-/g, "");
431
+ function Le() {
432
+ return Jt().replace(/-/g, "");
660
433
  }
661
- const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
434
+ const Ue = "builderSessionId", Gt = async ({
662
435
  canTrack: e
663
436
  }) => {
664
437
  if (!e)
665
438
  return;
666
- const t = await getCookie({
667
- name: SESSION_LOCAL_STORAGE_KEY,
439
+ const t = await Oe({
440
+ name: Ue,
668
441
  canTrack: e
669
442
  });
670
- if (checkIsDefined(t))
443
+ if (L(t))
671
444
  return t;
672
445
  {
673
- const n = createSessionId();
674
- return setSessionId({
446
+ const n = Yt();
447
+ return Qt({
675
448
  id: n,
676
449
  canTrack: e
677
450
  }), n;
678
451
  }
679
- }, createSessionId = () => uuid(), setSessionId = ({
452
+ }, Yt = () => Le(), Qt = ({
680
453
  id: e,
681
454
  canTrack: t
682
- }) => setCookie({
683
- name: SESSION_LOCAL_STORAGE_KEY,
455
+ }) => De({
456
+ name: Ue,
684
457
  value: e,
685
458
  canTrack: t
686
- }), getLocalStorage = () => isBrowser() && typeof localStorage < "u" ? localStorage : void 0, getLocalStorageItem = ({
459
+ }), Me = () => $() && typeof localStorage < "u" ? localStorage : void 0, Xt = ({
687
460
  key: e,
688
461
  canTrack: t
689
462
  }) => {
690
463
  var n;
691
464
  try {
692
- return t ? (n = getLocalStorage()) == null ? void 0 : n.getItem(e) : void 0;
465
+ return t ? (n = Me()) == null ? void 0 : n.getItem(e) : void 0;
693
466
  } catch (o) {
694
467
  console.debug("[LocalStorage] GET error: ", o);
695
468
  return;
696
469
  }
697
- }, setLocalStorageItem = ({
470
+ }, Zt = ({
698
471
  key: e,
699
472
  canTrack: t,
700
473
  value: n
701
474
  }) => {
702
475
  var o;
703
476
  try {
704
- t && ((o = getLocalStorage()) == null || o.setItem(e, n));
477
+ t && ((o = Me()) == null || o.setItem(e, n));
705
478
  } catch (r) {
706
479
  console.debug("[LocalStorage] SET error: ", r);
707
480
  }
708
- }, VISITOR_LOCAL_STORAGE_KEY = "builderVisitorId", getVisitorId = ({
481
+ }, He = "builderVisitorId", _t = ({
709
482
  canTrack: e
710
483
  }) => {
711
484
  if (!e)
712
485
  return;
713
- const t = getLocalStorageItem({
714
- key: VISITOR_LOCAL_STORAGE_KEY,
486
+ const t = Xt({
487
+ key: He,
715
488
  canTrack: e
716
489
  });
717
- if (checkIsDefined(t))
490
+ if (L(t))
718
491
  return t;
719
492
  {
720
- const n = createVisitorId();
721
- return setVisitorId({
493
+ const n = en();
494
+ return tn({
722
495
  id: n,
723
496
  canTrack: e
724
497
  }), n;
725
498
  }
726
- }, createVisitorId = () => uuid(), setVisitorId = ({
499
+ }, en = () => Le(), tn = ({
727
500
  id: e,
728
501
  canTrack: t
729
- }) => setLocalStorageItem({
730
- key: VISITOR_LOCAL_STORAGE_KEY,
502
+ }) => Zt({
503
+ key: He,
731
504
  value: e,
732
505
  canTrack: t
733
- }), getTrackingEventData = async ({
506
+ }), nn = async ({
734
507
  canTrack: e
735
508
  }) => {
736
509
  if (!e)
@@ -738,16 +511,16 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
738
511
  visitorId: void 0,
739
512
  sessionId: void 0
740
513
  };
741
- const t = await getSessionId({
514
+ const t = await Gt({
742
515
  canTrack: e
743
- }), n = getVisitorId({
516
+ }), n = _t({
744
517
  canTrack: e
745
518
  });
746
519
  return {
747
520
  sessionId: t,
748
521
  visitorId: n
749
522
  };
750
- }, createEvent = async ({
523
+ }, on = async ({
751
524
  type: e,
752
525
  canTrack: t,
753
526
  apiKey: n,
@@ -761,23 +534,23 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
761
534
  url: location.href,
762
535
  ...o
763
536
  },
764
- ...await getTrackingEventData({
537
+ ...await nn({
765
538
  canTrack: t
766
539
  }),
767
- userAttributes: getUserAttributes(),
540
+ userAttributes: yt(),
768
541
  ownerId: n
769
542
  }
770
543
  });
771
- async function _track(e) {
544
+ async function de(e) {
772
545
  if (!e.apiKey) {
773
- logger.error("Missing API key for track call. Please provide your API key.");
546
+ P.error("Missing API key for track call. Please provide your API key.");
774
547
  return;
775
548
  }
776
- if (e.canTrack && !isEditing() && (isBrowser() || TARGET === "reactNative"))
549
+ if (e.canTrack && !R() && ($() || x === "reactNative"))
777
550
  return fetch("https://cdn.builder.io/api/v1/track", {
778
551
  method: "POST",
779
552
  body: JSON.stringify({
780
- events: [await createEvent(e)]
553
+ events: [await on(e)]
781
554
  }),
782
555
  headers: {
783
556
  "content-type": "application/json"
@@ -787,18 +560,18 @@ async function _track(e) {
787
560
  console.error("Failed to track: ", t);
788
561
  });
789
562
  }
790
- const track = (e) => _track({
563
+ const Pi = (e) => de({
791
564
  ...e,
792
565
  canTrack: !0
793
- }), DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
794
- function isFromTrustedHost(e, t) {
566
+ }), rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
567
+ function je(e, t) {
795
568
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
796
569
  return !1;
797
570
  const n = new URL(t.origin), o = n.hostname;
798
- return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
571
+ return (e || rn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
799
572
  }
800
- const SDK_VERSION = "2.0.16", registerInsertMenu = () => {
801
- register("insertMenu", {
573
+ const sn = "2.0.20", an = () => {
574
+ Ut("insertMenu", {
802
575
  name: "_default",
803
576
  default: !0,
804
577
  items: [{
@@ -820,14 +593,14 @@ const SDK_VERSION = "2.0.16", registerInsertMenu = () => {
820
593
  }]
821
594
  });
822
595
  };
823
- let isSetupForEditing = !1;
824
- const setupBrowserForEditing = (e = {}) => {
596
+ let we = !1;
597
+ const Ke = (e = {}) => {
825
598
  var t, n;
826
- isSetupForEditing || (isSetupForEditing = !0, isBrowser() && ((t = window.parent) == null || t.postMessage({
599
+ we || (we = !0, $() && ((t = window.parent) == null || t.postMessage({
827
600
  type: "builder.sdkInfo",
828
601
  data: {
829
- target: TARGET,
830
- version: SDK_VERSION,
602
+ target: x,
603
+ version: sn,
831
604
  supportsPatchUpdates: !1,
832
605
  // Supports builder-model="..." attribute which is needed to
833
606
  // scope our '+ add block' button styling
@@ -841,7 +614,7 @@ const setupBrowserForEditing = (e = {}) => {
841
614
  }
842
615
  }, "*"), window.addEventListener("message", (o) => {
843
616
  var i, s;
844
- if (!isFromTrustedHost(e.trustedHosts, o))
617
+ if (!je(e.trustedHosts, o))
845
618
  return;
846
619
  const {
847
620
  data: r
@@ -849,45 +622,45 @@ const setupBrowserForEditing = (e = {}) => {
849
622
  if (r != null && r.type)
850
623
  switch (r.type) {
851
624
  case "builder.evaluate": {
852
- const l = r.data.text, a = r.data.arguments || [], d = r.data.id, p = new Function(l);
853
- let c, u = null;
625
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
626
+ let d, p = null;
854
627
  try {
855
- c = p.apply(null, a);
856
- } catch (f) {
857
- u = f;
628
+ d = h.apply(null, a);
629
+ } catch (k) {
630
+ p = k;
858
631
  }
859
- u ? (i = window.parent) == null || i.postMessage({
632
+ p ? (i = window.parent) == null || i.postMessage({
860
633
  type: "builder.evaluateError",
861
634
  data: {
862
- id: d,
863
- error: u.message
635
+ id: u,
636
+ error: p.message
864
637
  }
865
- }, "*") : c && typeof c.then == "function" ? c.then((f) => {
866
- var m;
867
- (m = window.parent) == null || m.postMessage({
638
+ }, "*") : d && typeof d.then == "function" ? d.then((k) => {
639
+ var v;
640
+ (v = window.parent) == null || v.postMessage({
868
641
  type: "builder.evaluateResult",
869
642
  data: {
870
- id: d,
871
- result: f
643
+ id: u,
644
+ result: k
872
645
  }
873
646
  }, "*");
874
647
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
875
648
  type: "builder.evaluateResult",
876
649
  data: {
877
- result: c,
878
- id: d
650
+ result: d,
651
+ id: u
879
652
  }
880
653
  }, "*");
881
654
  break;
882
655
  }
883
656
  }
884
657
  })));
885
- }, createEditorListener = ({
658
+ }, qe = ({
886
659
  model: e,
887
660
  trustedHosts: t,
888
661
  callbacks: n
889
662
  }) => (o) => {
890
- if (!isFromTrustedHost(t, o))
663
+ if (!je(t, o))
891
664
  return;
892
665
  const {
893
666
  data: r
@@ -908,12 +681,12 @@ const setupBrowserForEditing = (e = {}) => {
908
681
  break;
909
682
  }
910
683
  }
911
- }, subscribeToEditor = (e, t, n) => {
912
- if (!isBrowser)
913
- return logger.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
684
+ }, xi = (e, t, n) => {
685
+ if (!$)
686
+ return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
914
687
  };
915
- setupBrowserForEditing();
916
- const o = createEditorListener({
688
+ Ke();
689
+ const o = qe({
917
690
  callbacks: {
918
691
  contentUpdate: t,
919
692
  animation: () => {
@@ -927,24 +700,24 @@ const setupBrowserForEditing = (e = {}) => {
927
700
  return window.addEventListener("message", o), () => {
928
701
  window.removeEventListener("message", o);
929
702
  };
930
- }, BUILDER_STORE_PREFIX = "builder.tests", getContentTestKey = (e) => `${BUILDER_STORE_PREFIX}.${e}`, getContentVariationCookie = ({
703
+ }, ln = "builder.tests", he = (e) => `${ln}.${e}`, cn = ({
931
704
  contentId: e
932
- }) => getCookie({
933
- name: getContentTestKey(e),
705
+ }) => Oe({
706
+ name: he(e),
934
707
  canTrack: !0
935
- }), getContentVariationCookieSync = ({
708
+ }), dn = ({
936
709
  contentId: e
937
- }) => getCookieSync({
938
- name: getContentTestKey(e),
710
+ }) => Fe({
711
+ name: he(e),
939
712
  canTrack: !0
940
- }), setContentVariationCookie = ({
713
+ }), un = ({
941
714
  contentId: e,
942
715
  value: t
943
- }) => setCookie({
944
- name: getContentTestKey(e),
716
+ }) => De({
717
+ name: he(e),
945
718
  value: t,
946
719
  canTrack: !0
947
- }), checkIsBuilderContentWithVariations = (e) => checkIsDefined(e.id) && checkIsDefined(e.variations) && Object.keys(e.variations).length > 0, getRandomVariationId = ({
720
+ }), ze = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, pn = ({
948
721
  id: e,
949
722
  variations: t
950
723
  }) => {
@@ -957,15 +730,15 @@ const setupBrowserForEditing = (e = {}) => {
957
730
  return i;
958
731
  }
959
732
  return e;
960
- }, getAndSetVariantId = (e) => {
961
- const t = getRandomVariationId(e);
962
- return setContentVariationCookie({
733
+ }, Je = (e) => {
734
+ const t = pn(e);
735
+ return un({
963
736
  contentId: e.id,
964
737
  value: t
965
738
  }).catch((n) => {
966
- logger.error("could not store A/B test variation: ", n);
739
+ P.error("could not store A/B test variation: ", n);
967
740
  }), t;
968
- }, getTestFields = ({
741
+ }, Ge = ({
969
742
  item: e,
970
743
  testGroupId: t
971
744
  }) => {
@@ -979,7 +752,7 @@ const setupBrowserForEditing = (e = {}) => {
979
752
  testVariationId: n.id,
980
753
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
981
754
  };
982
- }, handleABTestingSync = ({
755
+ }, mn = ({
983
756
  item: e,
984
757
  canTrack: t
985
758
  }) => {
@@ -987,14 +760,14 @@ const setupBrowserForEditing = (e = {}) => {
987
760
  return e;
988
761
  if (!e)
989
762
  return;
990
- if (!checkIsBuilderContentWithVariations(e))
763
+ if (!ze(e))
991
764
  return e;
992
- const n = getContentVariationCookieSync({
765
+ const n = dn({
993
766
  contentId: e.id
994
- }) || getAndSetVariantId({
767
+ }) || Je({
995
768
  variations: e.variations,
996
769
  id: e.id
997
- }), o = getTestFields({
770
+ }), o = Ge({
998
771
  item: e,
999
772
  testGroupId: n
1000
773
  });
@@ -1002,18 +775,18 @@ const setupBrowserForEditing = (e = {}) => {
1002
775
  ...e,
1003
776
  ...o
1004
777
  };
1005
- }, handleABTesting = async ({
778
+ }, hn = async ({
1006
779
  item: e,
1007
780
  canTrack: t
1008
781
  }) => {
1009
- if (!t || !checkIsBuilderContentWithVariations(e))
782
+ if (!t || !ze(e))
1010
783
  return e;
1011
- const o = await getContentVariationCookie({
784
+ const o = await cn({
1012
785
  contentId: e.id
1013
- }) || getAndSetVariantId({
786
+ }) || Je({
1014
787
  variations: e.variations,
1015
788
  id: e.id
1016
- }), r = getTestFields({
789
+ }), r = Ge({
1017
790
  item: e,
1018
791
  testGroupId: o
1019
792
  });
@@ -1021,38 +794,38 @@ const setupBrowserForEditing = (e = {}) => {
1021
794
  ...e,
1022
795
  ...r
1023
796
  };
1024
- }, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0;
1025
- function getGlobalThis() {
797
+ }, Y = (e) => L(e) ? e : !0;
798
+ function fn() {
1026
799
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1027
800
  }
1028
- function getFetch() {
1029
- const e = getGlobalThis().fetch;
801
+ function bn() {
802
+ const e = fn().fetch;
1030
803
  if (typeof e > "u")
1031
804
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1032
805
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1033
806
  return e;
1034
807
  }
1035
- const fetch$1 = getFetch();
1036
- function flatten(e, t = null, n = ".") {
808
+ const Ye = bn();
809
+ function ue(e, t = null, n = ".") {
1037
810
  return Object.keys(e).reduce((o, r) => {
1038
811
  const i = e[r], s = [t, r].filter(Boolean).join(n);
1039
812
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
1040
813
  ...o,
1041
- ...flatten(i, s, n)
814
+ ...ue(i, s, n)
1042
815
  } : {
1043
816
  ...o,
1044
817
  [s]: i
1045
818
  };
1046
819
  }, {});
1047
820
  }
1048
- function flattenMongoQuery(e, t, n = {}) {
821
+ function Qe(e, t, n = {}) {
1049
822
  for (const o in e) {
1050
823
  const r = e[o], i = t ? t + "." + o : o;
1051
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? flattenMongoQuery(r, i, n) : n[i] = r;
824
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Qe(r, i, n) : n[i] = r;
1052
825
  }
1053
826
  return n;
1054
827
  }
1055
- const DEFAULT_API_VERSION = "v3", isPositiveNumber = (e) => typeof e == "number" && !isNaN(e) && e >= 0, generateContentUrl = (e) => {
828
+ const gn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
1056
829
  const {
1057
830
  limit: t = 30,
1058
831
  userAttributes: n,
@@ -1061,82 +834,82 @@ const DEFAULT_API_VERSION = "v3", isPositiveNumber = (e) => typeof e == "number"
1061
834
  apiKey: i,
1062
835
  enrich: s,
1063
836
  locale: l,
1064
- apiVersion: a = DEFAULT_API_VERSION,
1065
- fields: d,
1066
- omit: p,
1067
- offset: c,
1068
- cacheSeconds: u,
1069
- staleCacheSeconds: f,
1070
- sort: m,
1071
- includeUnpublished: b
837
+ apiVersion: a = gn,
838
+ fields: u,
839
+ omit: h,
840
+ offset: d,
841
+ cacheSeconds: p,
842
+ staleCacheSeconds: k,
843
+ sort: v,
844
+ includeUnpublished: F
1072
845
  } = e;
1073
846
  if (!i)
1074
847
  throw new Error("Missing API key");
1075
848
  if (!["v3"].includes(a))
1076
849
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1077
- const C = t !== 1, g = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
1078
- 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) {
1079
- const k = flatten({
1080
- sort: m
850
+ const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
851
+ 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) {
852
+ const O = ue({
853
+ sort: v
1081
854
  });
1082
- for (const S in k)
1083
- g.searchParams.set(S, JSON.stringify(k[S]));
855
+ for (const H in O)
856
+ w.searchParams.set(H, JSON.stringify(O[H]));
1084
857
  }
1085
- const I = {
1086
- ...getBuilderSearchParamsFromWindow(),
1087
- ...normalizeSearchParams(e.options || {})
1088
- }, T = flatten(I);
1089
- for (const k in T)
1090
- g.searchParams.set(k, String(T[k]));
1091
- if (n && g.searchParams.set("userAttributes", JSON.stringify(n)), o) {
1092
- const k = flattenMongoQuery({
858
+ const at = {
859
+ ...Ht(),
860
+ ...Ve(e.options || {})
861
+ }, ve = ue(at);
862
+ for (const O in ve)
863
+ w.searchParams.set(O, String(ve[O]));
864
+ if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
865
+ const O = Qe({
1093
866
  query: o
1094
867
  });
1095
- for (const S in k)
1096
- g.searchParams.set(S, JSON.stringify(k[S]));
868
+ for (const H in O)
869
+ w.searchParams.set(H, JSON.stringify(O[H]));
1097
870
  }
1098
- return g;
1099
- }, checkContentHasResults = (e) => "results" in e;
1100
- async function fetchOneEntry(e) {
1101
- const t = await fetchEntries({
871
+ return w;
872
+ }, yn = (e) => "results" in e;
873
+ async function be(e) {
874
+ const t = await Cn({
1102
875
  ...e,
1103
876
  limit: 1
1104
877
  });
1105
878
  return t && t[0] || null;
1106
879
  }
1107
- const _fetchContent = async (e) => {
1108
- const t = generateContentUrl(e);
1109
- return await (await (e.fetch ?? fetch$1)(t.href, e.fetchOptions)).json();
1110
- }, _processContentResult = async (e, t, n = generateContentUrl(e)) => {
1111
- const o = getDefaultCanTrack(e.canTrack);
1112
- if (n.search.includes("preview="), !o || !(isBrowser() || TARGET === "reactNative"))
880
+ const kn = async (e) => {
881
+ const t = fe(e);
882
+ return await (await (e.fetch ?? Ye)(t.href, e.fetchOptions)).json();
883
+ }, vn = async (e, t, n = fe(e)) => {
884
+ const o = Y(e.canTrack);
885
+ if (n.search.includes("preview="), !o || !($() || x === "reactNative"))
1113
886
  return t.results;
1114
887
  try {
1115
888
  const r = [];
1116
889
  for (const i of t.results)
1117
- r.push(await handleABTesting({
890
+ r.push(await hn({
1118
891
  item: i,
1119
892
  canTrack: o
1120
893
  }));
1121
894
  t.results = r;
1122
895
  } catch (r) {
1123
- logger.error("Could not process A/B tests. ", r);
896
+ P.error("Could not process A/B tests. ", r);
1124
897
  }
1125
898
  return t.results;
1126
899
  };
1127
- async function fetchEntries(e) {
900
+ async function Cn(e) {
1128
901
  try {
1129
- const t = generateContentUrl(e), n = await _fetchContent(e);
1130
- return checkContentHasResults(n) ? _processContentResult(e, n) : (logger.error("Error fetching data. ", {
902
+ const t = fe(e), n = await kn(e);
903
+ return yn(n) ? vn(e, n) : (P.error("Error fetching data. ", {
1131
904
  url: t,
1132
905
  content: n,
1133
906
  options: e
1134
907
  }), null);
1135
908
  } catch (t) {
1136
- return logger.error("Error fetching data. ", t), null;
909
+ return P.error("Error fetching data. ", t), null;
1137
910
  }
1138
911
  }
1139
- const fetchBuilderProps = async (e) => {
912
+ const Vi = async (e) => {
1140
913
  var o, r, i;
1141
914
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1142
915
  ...e,
@@ -1148,27 +921,27 @@ const fetchBuilderProps = async (e) => {
1148
921
  urlPath: t
1149
922
  } : {}
1150
923
  },
1151
- options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
924
+ options: Ne(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1152
925
  };
1153
926
  return {
1154
927
  apiKey: n.apiKey,
1155
928
  model: n.model,
1156
- content: await fetchOneEntry(n)
929
+ content: await be(n)
1157
930
  };
1158
- }, camelToKebabCase = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1159
- function throttle(e, t, n = {}) {
931
+ }, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
932
+ function Sn(e, t, n = {}) {
1160
933
  let o, r, i, s = null, l = 0;
1161
934
  const a = function() {
1162
935
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1163
936
  };
1164
937
  return function() {
1165
- const d = Date.now();
1166
- !l && n.leading === !1 && (l = d);
1167
- const p = t - (d - l);
1168
- 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;
938
+ const u = Date.now();
939
+ !l && n.leading === !1 && (l = u);
940
+ const h = t - (u - l);
941
+ 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;
1169
942
  };
1170
943
  }
1171
- function assign(e, ...t) {
944
+ function q(e, ...t) {
1172
945
  const n = Object(e);
1173
946
  for (let o = 1; o < arguments.length; o++) {
1174
947
  const r = arguments[o];
@@ -1178,118 +951,118 @@ function assign(e, ...t) {
1178
951
  }
1179
952
  return n;
1180
953
  }
1181
- function bindAnimations(e) {
954
+ function Tn(e) {
1182
955
  for (const t of e)
1183
956
  switch (t.trigger) {
1184
957
  case "pageLoad":
1185
- triggerAnimation(t);
958
+ _e(t);
1186
959
  break;
1187
960
  case "scrollInView":
1188
- bindScrollInViewAnimation(t);
961
+ In(t);
1189
962
  break;
1190
963
  }
1191
964
  }
1192
- function warnElementNotPresent(e) {
965
+ function Xe(e) {
1193
966
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1194
967
  }
1195
- function augmentAnimation(e, t) {
1196
- const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
968
+ function Ze(e, t) {
969
+ const n = wn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1197
970
  for (const l of s)
1198
971
  for (const a of n)
1199
972
  a in l || (l[a] = o[a]);
1200
973
  }
1201
- function getAllStylesUsed(e) {
974
+ function wn(e) {
1202
975
  const t = [];
1203
976
  for (const n of e.steps)
1204
977
  for (const o in n.styles)
1205
978
  t.indexOf(o) === -1 && t.push(o);
1206
979
  return t;
1207
980
  }
1208
- function triggerAnimation(e) {
981
+ function _e(e) {
1209
982
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1210
983
  if (!t.length) {
1211
- warnElementNotPresent(e.elementId || e.id || "");
984
+ Xe(e.elementId || e.id || "");
1212
985
  return;
1213
986
  }
1214
987
  Array.from(t).forEach((n) => {
1215
- augmentAnimation(e, n), n.style.transition = "none", n.style.transitionDelay = "0", assign(n.style, e.steps[0].styles), setTimeout(() => {
1216
- 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(() => {
988
+ Ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
989
+ 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(() => {
1217
990
  n.style.transition = "", n.style.transitionDelay = "";
1218
991
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1219
992
  });
1220
993
  });
1221
994
  }
1222
- function bindScrollInViewAnimation(e) {
995
+ function In(e) {
1223
996
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1224
997
  if (!t.length) {
1225
- warnElementNotPresent(e.elementId || e.id || "");
998
+ Xe(e.elementId || e.id || "");
1226
999
  return;
1227
1000
  }
1228
1001
  Array.from(t).forEach((n) => {
1229
- augmentAnimation(e, n);
1002
+ Ze(e, n);
1230
1003
  let o = !1, r = !1;
1231
1004
  function i() {
1232
1005
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1233
- assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1006
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1234
1007
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1235
1008
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1236
- })) : e.repeat && o && !r && !l(n) && (o = !1, assign(n.style, e.steps[0].styles));
1009
+ })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
1237
1010
  }
1238
- const s = throttle(i, 200, {
1011
+ const s = Sn(i, 200, {
1239
1012
  leading: !1
1240
1013
  });
1241
- function l(p) {
1242
- const c = p.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
1243
- return c.bottom > m && c.top < u - m;
1014
+ function l(h) {
1015
+ const d = h.getBoundingClientRect(), p = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * p;
1016
+ return d.bottom > v && d.top < p - v;
1244
1017
  }
1245
1018
  const a = e.steps[0].styles;
1246
- function d() {
1247
- assign(n.style, a);
1019
+ function u() {
1020
+ q(n.style, a);
1248
1021
  }
1249
- d(), setTimeout(() => {
1250
- n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1022
+ u(), setTimeout(() => {
1023
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1251
1024
  }), document.addEventListener("scroll", s, {
1252
1025
  capture: !0,
1253
1026
  passive: !0
1254
1027
  }), i();
1255
1028
  });
1256
1029
  }
1257
- const convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
1030
+ const et = (e) => Object.entries(e).map(([n, o]) => {
1258
1031
  if (typeof o == "string")
1259
- return `${camelToKebabCase(n)}: ${o};`;
1260
- }).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
1261
- `), createCssClass = ({
1032
+ return `${ge(n)}: ${o};`;
1033
+ }).filter(L), $n = (e) => et(e).join(`
1034
+ `), Ai = ({
1262
1035
  mediaQuery: e,
1263
1036
  className: t,
1264
1037
  styles: n
1265
1038
  }) => {
1266
1039
  const o = `.${t} {
1267
- ${convertStyleMapToCSS(n)}
1040
+ ${$n(n)}
1268
1041
  }`;
1269
1042
  return e ? `${e} {
1270
1043
  ${o}
1271
1044
  }` : o;
1272
1045
  };
1273
- function transformStyleProperty({
1046
+ function Rn({
1274
1047
  style: e
1275
1048
  }) {
1276
1049
  return e;
1277
1050
  }
1278
- const getStyle = ({
1051
+ const Wi = ({
1279
1052
  block: e,
1280
1053
  context: t
1281
- }) => mapStyleObjToStrIfNeeded(transformStyleProperty({
1054
+ }) => tt(Rn({
1282
1055
  style: e.style || {},
1283
1056
  context: t,
1284
1057
  block: e
1285
1058
  }));
1286
- function mapStyleObjToStrIfNeeded(e) {
1287
- switch (TARGET) {
1059
+ function tt(e) {
1060
+ switch (x) {
1288
1061
  case "svelte":
1289
1062
  case "vue":
1290
1063
  case "solid":
1291
1064
  case "angular":
1292
- return convertStyleMapToCSSArray(e).join(" ");
1065
+ return et(e).join(" ");
1293
1066
  case "qwik":
1294
1067
  case "reactNative":
1295
1068
  case "react":
@@ -1297,7 +1070,7 @@ function mapStyleObjToStrIfNeeded(e) {
1297
1070
  return e;
1298
1071
  }
1299
1072
  }
1300
- const getComponent = ({
1073
+ const Bn = ({
1301
1074
  block: e,
1302
1075
  registeredComponents: t
1303
1076
  }) => {
@@ -1311,7 +1084,7 @@ const getComponent = ({
1311
1084
  console.warn(`
1312
1085
  Could not find a registered component named "${n}".
1313
1086
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1314
- }, getRepeatItemData = ({
1087
+ }, En = ({
1315
1088
  block: e,
1316
1089
  context: t
1317
1090
  }) => {
@@ -1321,7 +1094,7 @@ const getComponent = ({
1321
1094
  } = e;
1322
1095
  if (!(n != null && n.collection))
1323
1096
  return;
1324
- const r = evaluate({
1097
+ const r = G({
1325
1098
  code: n.collection,
1326
1099
  localState: t.localState,
1327
1100
  rootState: t.rootState,
@@ -1332,72 +1105,72 @@ const getComponent = ({
1332
1105
  if (!Array.isArray(r))
1333
1106
  return;
1334
1107
  const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1335
- return r.map((a, d) => ({
1108
+ return r.map((a, u) => ({
1336
1109
  context: {
1337
1110
  ...t,
1338
1111
  localState: {
1339
1112
  ...t.localState,
1340
- $index: d,
1113
+ $index: u,
1341
1114
  $item: a,
1342
1115
  [s]: a,
1343
- [`$${s}Index`]: d
1116
+ [`$${s}Index`]: u
1344
1117
  }
1345
1118
  },
1346
1119
  block: o
1347
1120
  }));
1348
- }, provideLinkComponent = (e, t) => {
1121
+ }, Pn = (e, t) => {
1349
1122
  var n;
1350
1123
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1351
1124
  builderLinkComponent: t
1352
1125
  } : {};
1353
- }, provideRegisteredComponents = (e, t) => {
1126
+ }, xn = (e, t) => {
1354
1127
  var n;
1355
1128
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1356
1129
  builderComponents: t
1357
1130
  } : {};
1358
- }, provideBuilderBlock = (e, t) => {
1131
+ }, Vn = (e, t) => {
1359
1132
  var n;
1360
1133
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1361
1134
  builderBlock: t
1362
1135
  } : {};
1363
- }, provideBuilderContext = (e, t) => {
1136
+ }, An = (e, t) => {
1364
1137
  var n;
1365
1138
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1366
1139
  builderContext: t
1367
1140
  } : {};
1368
- }, DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
1141
+ }, Wn = () => Promise.resolve().then(() => Gn).then((e) => e.default).catch((e) => {
1369
1142
  throw console.error(
1370
1143
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1371
1144
  e
1372
1145
  ), e;
1373
- }), BlockStyles = () => import("./block-styles-1_5JG_2z.js").then((e) => e.default).catch((e) => {
1146
+ }), Nn = () => import("./block-styles-z1hRu_oN.js").then((e) => e.default).catch((e) => {
1374
1147
  throw console.error(
1375
1148
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1376
1149
  e
1377
1150
  ), e;
1378
- }), BlockWrapper = () => import("./block-wrapper-V_pureM-.js").then((e) => e.default).catch((e) => {
1151
+ }), Fn = () => import("./block-wrapper-VbshFnwD.js").then((e) => e.default).catch((e) => {
1379
1152
  throw console.error(
1380
1153
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1381
1154
  e
1382
1155
  ), e;
1383
- }), ComponentRef = () => import("./component-ref-i-BTHCKC.js").then((e) => e.default).catch((e) => {
1156
+ }), On = () => import("./component-ref-0qWwbS8J.js").then((e) => e.default).catch((e) => {
1384
1157
  throw console.error(
1385
1158
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1386
1159
  e
1387
1160
  ), e;
1388
- }), RepeatedBlock = () => import("./repeated-block-DGLvKNeT.js").then((e) => e.default).catch((e) => {
1161
+ }), Dn = () => import("./repeated-block-7xPIdLvm.js").then((e) => e.default).catch((e) => {
1389
1162
  throw console.error(
1390
1163
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1391
1164
  e
1392
1165
  ), e;
1393
- }), _sfc_main$r = defineComponent({
1166
+ }), Ln = f({
1394
1167
  name: "block",
1395
1168
  components: {
1396
- BlockStyles: defineAsyncComponent(BlockStyles),
1397
- RepeatedBlock: defineAsyncComponent(RepeatedBlock),
1398
- ComponentRef: defineAsyncComponent(ComponentRef),
1399
- BlockWrapper: defineAsyncComponent(BlockWrapper),
1400
- DynamicDiv: defineAsyncComponent(DynamicDiv$1)
1169
+ BlockStyles: j(Nn),
1170
+ RepeatedBlock: j(Dn),
1171
+ ComponentRef: j(On),
1172
+ BlockWrapper: j(Fn),
1173
+ DynamicDiv: j(Wn)
1401
1174
  },
1402
1175
  props: ["block", "context", "registeredComponents", "linkComponent"],
1403
1176
  data() {
@@ -1410,7 +1183,7 @@ const getComponent = ({
1410
1183
  },
1411
1184
  mounted() {
1412
1185
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1413
- t && e && bindAnimations(
1186
+ t && e && Tn(
1414
1187
  t.map((n) => ({
1415
1188
  ...n,
1416
1189
  elementId: e
@@ -1421,14 +1194,14 @@ const getComponent = ({
1421
1194
  },
1422
1195
  computed: {
1423
1196
  repeatItem() {
1424
- return getRepeatItemData({
1197
+ return En({
1425
1198
  block: this.block,
1426
1199
  context: this.context
1427
1200
  });
1428
1201
  },
1429
1202
  processedBlock() {
1430
1203
  var t;
1431
- return (t = this.block.repeat) != null && t.collection ? this.block : getProcessedBlock({
1204
+ return (t = this.block.repeat) != null && t.collection ? this.block : Ft({
1432
1205
  block: this.block,
1433
1206
  localState: this.context.localState,
1434
1207
  rootState: this.context.rootState,
@@ -1438,7 +1211,7 @@ const getComponent = ({
1438
1211
  });
1439
1212
  },
1440
1213
  blockComponent() {
1441
- return getComponent({
1214
+ return Bn({
1442
1215
  block: this.processedBlock,
1443
1216
  registeredComponents: this.registeredComponents
1444
1217
  });
@@ -1464,11 +1237,11 @@ const getComponent = ({
1464
1237
  blockChildren: this.processedBlock.children ?? [],
1465
1238
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1466
1239
  componentOptions: {
1467
- ...getBlockComponentOptions(this.processedBlock),
1468
- ...provideBuilderBlock(this.blockComponent, this.processedBlock),
1469
- ...provideBuilderContext(this.blockComponent, this.context),
1470
- ...provideLinkComponent(this.blockComponent, this.linkComponent),
1471
- ...provideRegisteredComponents(
1240
+ ...Bt(this.processedBlock),
1241
+ ...Vn(this.blockComponent, this.processedBlock),
1242
+ ...An(this.blockComponent, this.context),
1243
+ ...Pn(this.blockComponent, this.linkComponent),
1244
+ ...xn(
1472
1245
  this.blockComponent,
1473
1246
  this.registeredComponents
1474
1247
  )
@@ -1478,27 +1251,27 @@ const getComponent = ({
1478
1251
  registeredComponents: this.registeredComponents,
1479
1252
  builderBlock: this.processedBlock,
1480
1253
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1481
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && TARGET === "rsc")
1254
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && x === "rsc")
1482
1255
  };
1483
1256
  }
1484
1257
  }
1485
1258
  });
1486
- function _sfc_render$p(e, t, n, o, r, i) {
1487
- var c;
1488
- const s = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), p = resolveComponent("RepeatedBlock");
1489
- return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
1490
- createVNode(s, {
1259
+ function Un(e, t, n, o, r, i) {
1260
+ var d;
1261
+ const s = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
1262
+ return e.canShowBlock ? (c(), m(T, { key: 0 }, [
1263
+ I(s, {
1491
1264
  block: e.processedBlock,
1492
1265
  context: e.context
1493
1266
  }, null, 8, ["block", "context"]),
1494
- (c = e.blockComponent) != null && c.noWrap ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
1495
- e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, f) => (openBlock(), createBlock(p, {
1496
- key: f,
1497
- repeatContext: u.context,
1498
- block: u.block,
1267
+ (d = e.blockComponent) != null && d.noWrap ? (c(), m(T, { key: 1 }, [
1268
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, V(e.repeatItem, (p, k) => (c(), g(h, {
1269
+ key: k,
1270
+ repeatContext: p.context,
1271
+ block: p.block,
1499
1272
  registeredComponents: e.registeredComponents,
1500
1273
  linkComponent: e.linkComponent
1501
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(l, {
1274
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(l, {
1502
1275
  key: 0,
1503
1276
  componentRef: e.componentRefProps.componentRef,
1504
1277
  componentOptions: e.componentRefProps.componentOptions,
@@ -1510,21 +1283,21 @@ function _sfc_render$p(e, t, n, o, r, i) {
1510
1283
  includeBlockProps: e.componentRefProps.includeBlockProps,
1511
1284
  isInteractive: e.componentRefProps.isInteractive
1512
1285
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1513
- ], 64)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
1514
- e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, f) => (openBlock(), createBlock(p, {
1515
- key: f,
1516
- repeatContext: u.context,
1517
- block: u.block,
1286
+ ], 64)) : (c(), m(T, { key: 0 }, [
1287
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, V(e.repeatItem, (p, k) => (c(), g(h, {
1288
+ key: k,
1289
+ repeatContext: p.context,
1290
+ block: p.block,
1518
1291
  registeredComponents: e.registeredComponents,
1519
1292
  linkComponent: e.linkComponent
1520
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(d, {
1293
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(u, {
1521
1294
  key: 0,
1522
1295
  Wrapper: e.Tag,
1523
1296
  block: e.processedBlock,
1524
1297
  context: e.context
1525
1298
  }, {
1526
- default: withCtx(() => [
1527
- createVNode(l, {
1299
+ default: N(() => [
1300
+ I(l, {
1528
1301
  componentRef: e.componentRefProps.componentRef,
1529
1302
  componentOptions: e.componentRefProps.componentOptions,
1530
1303
  blockChildren: e.componentRefProps.blockChildren,
@@ -1535,9 +1308,9 @@ function _sfc_render$p(e, t, n, o, r, i) {
1535
1308
  includeBlockProps: e.componentRefProps.includeBlockProps,
1536
1309
  isInteractive: e.componentRefProps.isInteractive
1537
1310
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1538
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, f) => (openBlock(), createBlock(a, {
1539
- key: u.id,
1540
- block: u,
1311
+ (c(!0), m(T, null, V(e.childrenWithoutParentComponent, (p, k) => (c(), g(a, {
1312
+ key: p.id,
1313
+ block: p,
1541
1314
  registeredComponents: e.registeredComponents,
1542
1315
  linkComponent: e.linkComponent,
1543
1316
  context: e.context
@@ -1546,12 +1319,12 @@ function _sfc_render$p(e, t, n, o, r, i) {
1546
1319
  _: 1
1547
1320
  }, 8, ["Wrapper", "block", "context"]))
1548
1321
  ], 64))
1549
- ], 64)) : createCommentVNode("", !0);
1322
+ ], 64)) : C("", !0);
1550
1323
  }
1551
- const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1324
+ const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1552
1325
  __proto__: null,
1553
- default: Block
1554
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$q = defineComponent({
1326
+ default: ye
1327
+ }, Symbol.toStringTag, { value: "Module" })), Mn = f({
1555
1328
  name: "builder-blocks-wrapper",
1556
1329
  props: [
1557
1330
  "blocks",
@@ -1572,7 +1345,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1572
1345
  methods: {
1573
1346
  onClick() {
1574
1347
  var e, t;
1575
- isEditing() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1348
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1576
1349
  {
1577
1350
  type: "builder.clickEmptyBlocks",
1578
1351
  data: {
@@ -1585,7 +1358,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1585
1358
  },
1586
1359
  onMouseEnter() {
1587
1360
  var e, t;
1588
- isEditing() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1361
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1589
1362
  {
1590
1363
  type: "builder.hoverEmptyBlocks",
1591
1364
  data: {
@@ -1598,10 +1371,10 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
1598
1371
  }
1599
1372
  }
1600
1373
  });
1601
- function _sfc_render$o(e, t, n, o, r, i) {
1602
- return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
1374
+ function Hn(e, t, n, o, r, i) {
1375
+ return c(), g(K(e.BlocksWrapper), S({
1603
1376
  ref: "blocksWrapperRef",
1604
- class: e.className + " component-178o76acnws",
1377
+ class: e.className + " component-1k2igrjdg3x",
1605
1378
  "builder-path": e.path,
1606
1379
  "builder-parent-id": e.parent,
1607
1380
  style: e.styleProp,
@@ -1609,15 +1382,15 @@ function _sfc_render$o(e, t, n, o, r, i) {
1609
1382
  onMouseEnter: (s) => e.onMouseEnter(),
1610
1383
  onKeyPress: (s) => e.onClick()
1611
1384
  }, { ...e.BlocksWrapperProps }), {
1612
- default: withCtx(() => [
1613
- renderSlot(e.$slots, "default", {}, void 0, !0)
1385
+ default: N(() => [
1386
+ E(e.$slots, "default", {}, void 0, !0)
1614
1387
  ]),
1615
1388
  _: 3
1616
1389
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1617
1390
  }
1618
- const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o], ["__scopeId", "data-v-824f09a8"]]), _sfc_main$p = defineComponent({
1391
+ const jn = /* @__PURE__ */ b(Mn, [["render", Hn], ["__scopeId", "data-v-162df12b"]]), Kn = f({
1619
1392
  name: "builder-blocks",
1620
- components: { BlocksWrapper, Block },
1393
+ components: { BlocksWrapper: jn, Block: ye },
1621
1394
  props: [
1622
1395
  "blocks",
1623
1396
  "parent",
@@ -1628,48 +1401,48 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_
1628
1401
  "registeredComponents"
1629
1402
  ],
1630
1403
  inject: {
1631
- builderContext: BuilderContext.key,
1632
- componentsContext: ComponentsContext.key
1404
+ builderContext: le.key,
1405
+ componentsContext: Ae.key
1633
1406
  }
1634
1407
  });
1635
- function _sfc_render$n(e, t, n, o, r, i) {
1636
- var a, d;
1637
- const s = resolveComponent("Block"), l = resolveComponent("BlocksWrapper");
1638
- return openBlock(), createBlock(l, {
1408
+ function qn(e, t, n, o, r, i) {
1409
+ var a, u;
1410
+ const s = y("Block"), l = y("BlocksWrapper");
1411
+ return c(), g(l, {
1639
1412
  blocks: e.blocks,
1640
1413
  parent: e.parent,
1641
1414
  path: e.path,
1642
1415
  styleProp: e.styleProp,
1643
1416
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
1644
- BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
1417
+ BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
1645
1418
  }, {
1646
- default: withCtx(() => [
1647
- e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (p, c) => (openBlock(), createBlock(s, {
1648
- key: p.id,
1649
- block: p,
1419
+ default: N(() => [
1420
+ e.blocks ? (c(!0), m(T, { key: 0 }, V(e.blocks, (h, d) => (c(), g(s, {
1421
+ key: h.id,
1422
+ block: h,
1650
1423
  linkComponent: e.linkComponent,
1651
1424
  context: e.context || e.builderContext,
1652
1425
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
1653
- }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : createCommentVNode("", !0)
1426
+ }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : C("", !0)
1654
1427
  ]),
1655
1428
  _: 1
1656
1429
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
1657
1430
  }
1658
- const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]), _sfc_main$o = defineComponent({
1431
+ const M = /* @__PURE__ */ b(Kn, [["render", qn]]), zn = f({
1659
1432
  name: "dynamic-div",
1660
1433
  props: []
1661
1434
  });
1662
- function _sfc_render$m(e, t, n, o, r, i) {
1663
- return openBlock(), createElementBlock("div", null, [
1664
- renderSlot(e.$slots, "default")
1435
+ function Jn(e, t, n, o, r, i) {
1436
+ return c(), m("div", null, [
1437
+ E(e.$slots, "default")
1665
1438
  ]);
1666
1439
  }
1667
- const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]), dynamicDiv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1440
+ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1668
1441
  __proto__: null,
1669
- default: DynamicDiv
1670
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$n = defineComponent({
1442
+ default: Q
1443
+ }, Symbol.toStringTag, { value: "Module" })), ke = f({
1671
1444
  render() {
1672
- return h("style", {
1445
+ return Pe("style", {
1673
1446
  innerHTML: this.styles,
1674
1447
  "data-id": this.id,
1675
1448
  nonce: this.nonce
@@ -1677,7 +1450,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1677
1450
  },
1678
1451
  name: "inlined-styles",
1679
1452
  props: ["styles", "id", "nonce"]
1680
- }), SIZES = {
1453
+ }), nt = {
1681
1454
  small: {
1682
1455
  min: 320,
1683
1456
  default: 321,
@@ -1693,11 +1466,11 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1693
1466
  default: 991,
1694
1467
  max: 1200
1695
1468
  }
1696
- }, getMaxWidthQueryForSize = (e, t = SIZES) => `@media (max-width: ${t[e].max}px)`, getSizesForBreakpoints = ({
1469
+ }, Fi = (e, t = nt) => `@media (max-width: ${t[e].max}px)`, Yn = ({
1697
1470
  small: e,
1698
1471
  medium: t
1699
1472
  }) => {
1700
- const n = fastClone(SIZES);
1473
+ const n = pe(nt);
1701
1474
  if (!e || !t)
1702
1475
  return n;
1703
1476
  const o = Math.floor(e / 2);
@@ -1719,13 +1492,13 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1719
1492
  min: i,
1720
1493
  default: i + 1
1721
1494
  }, n;
1722
- }, getColumnsClass = (e) => `builder-columns ${e}-breakpoints`, _sfc_main$m = defineComponent({
1495
+ }, Qn = (e) => `builder-columns ${e}-breakpoints`, Xn = f({
1723
1496
  name: "builder-columns",
1724
1497
  components: {
1725
- InlinedStyles: _sfc_main$n,
1726
- DynamicRenderer,
1727
- Blocks,
1728
- DynamicDiv
1498
+ InlinedStyles: ke,
1499
+ DynamicRenderer: me,
1500
+ Blocks: M,
1501
+ DynamicDiv: Q
1729
1502
  },
1730
1503
  props: [
1731
1504
  "space",
@@ -1743,8 +1516,8 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1743
1516
  cols: this.columns || [],
1744
1517
  stackAt: this.stackColumnsAt || "tablet",
1745
1518
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
1746
- TARGET,
1747
- getColumnsClass
1519
+ TARGET: x,
1520
+ getColumnsClass: Qn
1748
1521
  };
1749
1522
  },
1750
1523
  methods: {
@@ -1810,7 +1583,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1810
1583
  },
1811
1584
  getWidthForBreakpointSize(e) {
1812
1585
  var n, o;
1813
- return getSizesForBreakpoints(
1586
+ return Yn(
1814
1587
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1815
1588
  )[e].max;
1816
1589
  },
@@ -1847,34 +1620,34 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1847
1620
  ...e.link ? {
1848
1621
  href: e.link
1849
1622
  } : {},
1850
- [getClassPropName()]: "builder-column",
1851
- style: mapStyleObjToStrIfNeeded(this.columnCssVars(t))
1623
+ [_()]: "builder-column",
1624
+ style: tt(this.columnCssVars(t))
1852
1625
  };
1853
1626
  }
1854
1627
  }
1855
1628
  });
1856
- function _sfc_render$l(e, t, n, o, r, i) {
1857
- var d;
1858
- const s = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1859
- return openBlock(), createElementBlock("div", mergeProps({
1860
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-2brhoa1k8gd",
1629
+ function Zn(e, t, n, o, r, i) {
1630
+ var u;
1631
+ const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
1632
+ return c(), m("div", S({
1633
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1861
1634
  style: e.columnsCssVars()
1862
1635
  }, {}), [
1863
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
1636
+ e.TARGET !== "reactNative" ? (c(), g(s, {
1864
1637
  key: 0,
1865
1638
  id: "builderio-columns",
1866
1639
  styles: e.columnsStyles(),
1867
1640
  nonce: e.builderContext.nonce
1868
- }, null, 8, ["styles", "nonce"])) : createCommentVNode("", !0),
1869
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (p, c) => (openBlock(), createBlock(a, {
1870
- key: c,
1871
- TagName: e.getTagName(p),
1641
+ }, null, 8, ["styles", "nonce"])) : C("", !0),
1642
+ (c(!0), m(T, null, V(e.columns, (h, d) => (c(), g(a, {
1643
+ key: d,
1644
+ TagName: e.getTagName(h),
1872
1645
  actionAttributes: {},
1873
- attributes: e.getAttributes(p, c)
1646
+ attributes: e.getAttributes(h, d)
1874
1647
  }, {
1875
- default: withCtx(() => [
1876
- createVNode(l, {
1877
- path: `component.options.columns.${c}.blocks`,
1648
+ default: N(() => [
1649
+ I(l, {
1650
+ path: `component.options.columns.${d}.blocks`,
1878
1651
  parent: e.builderBlock.id,
1879
1652
  styleProp: {
1880
1653
  flexGrow: "1"
@@ -1882,54 +1655,54 @@ function _sfc_render$l(e, t, n, o, r, i) {
1882
1655
  context: e.builderContext,
1883
1656
  registeredComponents: e.builderComponents,
1884
1657
  linkComponent: e.builderLinkComponent,
1885
- blocks: p.blocks
1658
+ blocks: h.blocks
1886
1659
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1887
1660
  ]),
1888
1661
  _: 2
1889
1662
  }, 1032, ["TagName", "attributes"]))), 128))
1890
1663
  ], 16);
1891
1664
  }
1892
- const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l], ["__scopeId", "data-v-52366f16"]]), _sfc_main$l = defineComponent({
1665
+ const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-adc066fc"]]), eo = f({
1893
1666
  name: "builder-fragment-component",
1894
1667
  props: []
1895
1668
  });
1896
- function _sfc_render$k(e, t, n, o, r, i) {
1897
- return openBlock(), createElementBlock("span", null, [
1898
- renderSlot(e.$slots, "default")
1669
+ function to(e, t, n, o, r, i) {
1670
+ return c(), m("span", null, [
1671
+ E(e.$slots, "default")
1899
1672
  ]);
1900
1673
  }
1901
- const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]);
1902
- function removeProtocol(e) {
1674
+ const no = /* @__PURE__ */ b(eo, [["render", to]]);
1675
+ function $e(e) {
1903
1676
  return e.replace(/http(s)?:/, "");
1904
1677
  }
1905
- function updateQueryParam(e = "", t, n) {
1678
+ function oo(e = "", t, n) {
1906
1679
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1907
1680
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1908
1681
  }
1909
- function getShopifyImageUrl(e, t) {
1682
+ function ro(e, t) {
1910
1683
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1911
1684
  return e;
1912
1685
  if (t === "master")
1913
- return removeProtocol(e);
1686
+ return $e(e);
1914
1687
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1915
1688
  if (n) {
1916
1689
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1917
- return removeProtocol(`${o[0]}_${i}${r}`);
1690
+ return $e(`${o[0]}_${i}${r}`);
1918
1691
  }
1919
1692
  return null;
1920
1693
  }
1921
- function getSrcSet(e) {
1694
+ function oe(e) {
1922
1695
  if (!e)
1923
1696
  return e;
1924
1697
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1925
1698
  if (e.match(/builder\.io/)) {
1926
1699
  let n = e;
1927
1700
  const o = Number(e.split("?width=")[1]);
1928
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${updateQueryParam(e, "width", r)} ${r}w`).concat([n]).join(", ");
1701
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${oo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1929
1702
  }
1930
- 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;
1703
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ro(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1931
1704
  }
1932
- const _sfc_main$k = defineComponent({
1705
+ const io = f({
1933
1706
  name: "builder-image",
1934
1707
  props: [
1935
1708
  "image",
@@ -1959,10 +1732,10 @@ const _sfc_main$k = defineComponent({
1959
1732
  if (!this.noWebp) {
1960
1733
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1961
1734
  if (!this.srcset.includes(this.image.split("?")[0]))
1962
- return console.debug("Removed given srcset"), getSrcSet(t);
1735
+ return console.debug("Removed given srcset"), oe(t);
1963
1736
  } else if (this.image && !this.srcset)
1964
- return getSrcSet(t);
1965
- return getSrcSet(t);
1737
+ return oe(t);
1738
+ return oe(t);
1966
1739
  }
1967
1740
  },
1968
1741
  webpSrcSet() {
@@ -1980,59 +1753,59 @@ const _sfc_main$k = defineComponent({
1980
1753
  return this.aspectRatio ? e : void 0;
1981
1754
  }
1982
1755
  }
1983
- }), _hoisted_1$b = ["srcset"], _hoisted_2$4 = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
1756
+ }), so = ["srcset"], ao = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], lo = {
1984
1757
  key: 2,
1985
- class: "div-1pl23ac79ld-2"
1758
+ class: "div-29wpyomtntv-2"
1986
1759
  };
1987
- function _sfc_render$j(e, t, n, o, r, i) {
1988
- var s, l, a, d, p, c;
1989
- return openBlock(), createElementBlock(Fragment$1, null, [
1990
- createElementVNode("picture", null, [
1991
- e.webpSrcSet ? (openBlock(), createElementBlock("source", {
1760
+ function co(e, t, n, o, r, i) {
1761
+ var s, l, a, u, h, d;
1762
+ return c(), m(T, null, [
1763
+ z("picture", null, [
1764
+ e.webpSrcSet ? (c(), m("source", {
1992
1765
  key: 0,
1993
1766
  type: "image/webp",
1994
1767
  srcset: e.webpSrcSet
1995
- }, null, 8, _hoisted_1$b)) : createCommentVNode("", !0),
1996
- createElementVNode("img", {
1768
+ }, null, 8, so)) : C("", !0),
1769
+ z("img", {
1997
1770
  loading: e.highPriority ? "eager" : "lazy",
1998
1771
  fetchpriority: e.highPriority ? "high" : "auto",
1999
1772
  alt: e.altText,
2000
1773
  role: e.altText ? void 0 : "presentation",
2001
- style: normalizeStyle({
1774
+ style: D({
2002
1775
  objectPosition: e.backgroundPosition || "center",
2003
1776
  objectFit: e.backgroundSize || "cover",
2004
1777
  ...e.aspectRatioCss
2005
1778
  }),
2006
- class: normalizeClass(
2007
- "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
1779
+ class: J(
1780
+ "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
2008
1781
  ),
2009
1782
  src: e.image,
2010
1783
  srcset: e.srcSetToUse,
2011
1784
  sizes: e.sizes
2012
- }, null, 14, _hoisted_2$4)
1785
+ }, null, 14, ao)
2013
1786
  ]),
2014
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1787
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
2015
1788
  key: 0,
2016
- class: "builder-image-sizer div-1pl23ac79ld",
2017
- style: normalizeStyle({
1789
+ class: "builder-image-sizer div-29wpyomtntv",
1790
+ style: D({
2018
1791
  paddingTop: e.aspectRatio * 100 + "%"
2019
1792
  })
2020
- }, null, 4)) : createCommentVNode("", !0),
2021
- (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),
2022
- !e.fitContent && ((c = (p = e.builderBlock) == null ? void 0 : p.children) != null && c.length) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
2023
- renderSlot(e.$slots, "default", {}, void 0, !0)
2024
- ])) : createCommentVNode("", !0)
1793
+ }, null, 4)) : C("", !0),
1794
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1795
+ !e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", lo, [
1796
+ E(e.$slots, "default", {}, void 0, !0)
1797
+ ])) : C("", !0)
2025
1798
  ], 64);
2026
1799
  }
2027
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-b1147753"]]), _sfc_main$j = defineComponent({
1800
+ const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-77f8a6c4"]]), po = f({
2028
1801
  name: "builder-section-component",
2029
1802
  props: ["attributes", "maxWidth"],
2030
1803
  data() {
2031
- return { filterAttrs };
1804
+ return { filterAttrs: A };
2032
1805
  }
2033
1806
  });
2034
- function _sfc_render$i(e, t, n, o, r, i) {
2035
- return openBlock(), createElementBlock("section", mergeProps({
1807
+ function mo(e, t, n, o, r, i) {
1808
+ return c(), m("section", S({
2036
1809
  style: {
2037
1810
  width: "100%",
2038
1811
  alignSelf: "stretch",
@@ -2045,11 +1818,11 @@ function _sfc_render$i(e, t, n, o, r, i) {
2045
1818
  marginLeft: "auto",
2046
1819
  marginRight: "auto"
2047
1820
  }
2048
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2049
- renderSlot(e.$slots, "default")
1821
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1822
+ E(e.$slots, "default")
2050
1823
  ], 16);
2051
1824
  }
2052
- const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i]]), defaultTitle = {
1825
+ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
2053
1826
  "@type": "@builder.io/sdk:Element",
2054
1827
  layerName: "Accordion item title",
2055
1828
  responsiveStyles: {
@@ -2078,7 +1851,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2078
1851
  }
2079
1852
  }
2080
1853
  }]
2081
- }, defaultDetail = {
1854
+ }, ie = {
2082
1855
  "@type": "@builder.io/sdk:Element",
2083
1856
  layerName: "Accordion item detail",
2084
1857
  responsiveStyles: {
@@ -2109,7 +1882,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2109
1882
  }
2110
1883
  }
2111
1884
  }]
2112
- }, componentInfo$i = {
1885
+ }, fo = {
2113
1886
  name: "Builder:Accordion",
2114
1887
  canHaveChildren: !0,
2115
1888
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2126,19 +1899,19 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2126
1899
  name: "title",
2127
1900
  type: "uiBlocks",
2128
1901
  hideFromUI: !0,
2129
- defaultValue: [defaultTitle]
1902
+ defaultValue: [re]
2130
1903
  }, {
2131
1904
  name: "detail",
2132
1905
  type: "uiBlocks",
2133
1906
  hideFromUI: !0,
2134
- defaultValue: [defaultDetail]
1907
+ defaultValue: [ie]
2135
1908
  }],
2136
1909
  defaultValue: [{
2137
- title: [defaultTitle],
2138
- detail: [defaultDetail]
1910
+ title: [re],
1911
+ detail: [ie]
2139
1912
  }, {
2140
- title: [defaultTitle],
2141
- detail: [defaultDetail]
1913
+ title: [re],
1914
+ detail: [ie]
2142
1915
  }],
2143
1916
  showIf: (e) => !e.get("useChildrenForItems")
2144
1917
  }, {
@@ -2173,9 +1946,9 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2173
1946
  builderComponents: !0,
2174
1947
  builderLinkComponent: !0
2175
1948
  }
2176
- }, convertOrderNumberToString = (e) => e.toString(), _sfc_main$i = defineComponent({
1949
+ }, bo = (e) => e.toString(), go = f({
2177
1950
  name: "builder-accordion",
2178
- components: { Blocks },
1951
+ components: { Blocks: M },
2179
1952
  props: [
2180
1953
  "grid",
2181
1954
  "oneAtATime",
@@ -2187,7 +1960,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2187
1960
  "builderLinkComponent"
2188
1961
  ],
2189
1962
  data() {
2190
- return { open: [], convertOrderNumberToString };
1963
+ return { open: [], convertOrderNumberToString: bo };
2191
1964
  },
2192
1965
  computed: {
2193
1966
  onlyOneAtATime() {
@@ -2268,25 +2041,25 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
2268
2041
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2269
2042
  }
2270
2043
  }
2271
- }), _hoisted_1$a = ["data-index", "onClick"];
2272
- function _sfc_render$h(e, t, n, o, r, i) {
2273
- const s = resolveComponent("Blocks");
2274
- return openBlock(), createElementBlock("div", {
2044
+ }), yo = ["data-index", "onClick"];
2045
+ function ko(e, t, n, o, r, i) {
2046
+ const s = y("Blocks");
2047
+ return c(), m("div", {
2275
2048
  class: "builder-accordion",
2276
- style: normalizeStyle(e.accordionStyles)
2049
+ style: D(e.accordionStyles)
2277
2050
  }, [
2278
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.items, (l, a) => (openBlock(), createElementBlock(Fragment$1, { key: a }, [
2279
- createElementVNode("div", {
2280
- class: normalizeClass(e.getAccordionTitleClassName(a)),
2281
- style: normalizeStyle({
2051
+ (c(!0), m(T, null, V(e.items, (l, a) => (c(), m(T, { key: a }, [
2052
+ z("div", {
2053
+ class: J(e.getAccordionTitleClassName(a)),
2054
+ style: D({
2282
2055
  ...e.accordionTitleStyles,
2283
2056
  width: e.grid ? e.gridRowWidth : void 0,
2284
2057
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2285
2058
  }),
2286
2059
  "data-index": a,
2287
- onClick: (d) => e.onClick(a)
2060
+ onClick: (u) => e.onClick(a)
2288
2061
  }, [
2289
- createVNode(s, {
2062
+ I(s, {
2290
2063
  blocks: l.title,
2291
2064
  path: `items.${a}.title`,
2292
2065
  parent: e.builderBlock.id,
@@ -2294,13 +2067,13 @@ function _sfc_render$h(e, t, n, o, r, i) {
2294
2067
  registeredComponents: e.builderComponents,
2295
2068
  linkComponent: e.builderLinkComponent
2296
2069
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2297
- ], 14, _hoisted_1$a),
2298
- e.open.includes(a) ? (openBlock(), createElementBlock("div", {
2070
+ ], 14, yo),
2071
+ e.open.includes(a) ? (c(), m("div", {
2299
2072
  key: 0,
2300
- class: normalizeClass(e.getAccordionDetailClassName(a)),
2301
- style: normalizeStyle(e.accordionDetailStyles)
2073
+ class: J(e.getAccordionDetailClassName(a)),
2074
+ style: D(e.accordionDetailStyles)
2302
2075
  }, [
2303
- createVNode(s, {
2076
+ I(s, {
2304
2077
  blocks: l.detail,
2305
2078
  path: `items.${a}.detail`,
2306
2079
  parent: e.builderBlock.id,
@@ -2308,11 +2081,11 @@ function _sfc_render$h(e, t, n, o, r, i) {
2308
2081
  registeredComponents: e.builderComponents,
2309
2082
  linkComponent: e.builderLinkComponent
2310
2083
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2311
- ], 6)) : createCommentVNode("", !0)
2084
+ ], 6)) : C("", !0)
2312
2085
  ], 64))), 128))
2313
2086
  ], 4);
2314
2087
  }
2315
- const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]), componentInfo$h = {
2088
+ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2316
2089
  name: "Core:Button",
2317
2090
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2318
2091
  defaultStyles: {
@@ -2348,7 +2121,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2348
2121
  shouldReceiveBuilderProps: {
2349
2122
  builderLinkComponent: !0
2350
2123
  }
2351
- }, componentInfo$g = {
2124
+ }, So = {
2352
2125
  // TODO: ways to statically preprocess JSON for references, functions, etc
2353
2126
  name: "Columns",
2354
2127
  isRSC: !0,
@@ -2555,13 +2328,13 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2555
2328
  builderComponents: !0,
2556
2329
  builderLinkComponent: !0
2557
2330
  }
2558
- }, componentInfo$f = {
2331
+ }, To = {
2559
2332
  name: "Fragment",
2560
2333
  static: !0,
2561
2334
  hidden: !0,
2562
2335
  canHaveChildren: !0,
2563
2336
  noWrap: !0
2564
- }, componentInfo$e = {
2337
+ }, wo = {
2565
2338
  name: "Image",
2566
2339
  static: !0,
2567
2340
  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",
@@ -2582,15 +2355,15 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2582
2355
  onChange: (e) => {
2583
2356
  e.delete("srcset"), e.delete("noWebp");
2584
2357
  function n(s, l = 6e4) {
2585
- return new Promise((a, d) => {
2586
- const p = document.createElement("img");
2587
- let c = !1;
2588
- p.onload = () => {
2589
- c = !0, a(p);
2590
- }, p.addEventListener("error", (u) => {
2591
- console.warn("Image load failed", u.error), d(u.error);
2592
- }), p.src = s, setTimeout(() => {
2593
- c || d(new Error("Image load timed out"));
2358
+ return new Promise((a, u) => {
2359
+ const h = document.createElement("img");
2360
+ let d = !1;
2361
+ h.onload = () => {
2362
+ d = !0, a(h);
2363
+ }, h.addEventListener("error", (p) => {
2364
+ console.warn("Image load failed", p.error), u(p.error);
2365
+ }), h.src = s, setTimeout(() => {
2366
+ d || u(new Error("Image load timed out"));
2594
2367
  }, l);
2595
2368
  });
2596
2369
  }
@@ -2669,7 +2442,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2669
2442
  shouldReceiveBuilderProps: {
2670
2443
  builderBlock: !0
2671
2444
  }
2672
- }, componentInfo$d = {
2445
+ }, Io = {
2673
2446
  name: "Core:Section",
2674
2447
  static: !0,
2675
2448
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2708,7 +2481,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2708
2481
  }
2709
2482
  }
2710
2483
  }]
2711
- }, componentInfo$c = {
2484
+ }, $o = {
2712
2485
  name: "Slot",
2713
2486
  isRSC: !0,
2714
2487
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2725,15 +2498,15 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2725
2498
  builderContext: !0,
2726
2499
  builderComponents: !0
2727
2500
  }
2728
- }, _sfc_main$h = defineComponent({
2501
+ }, Ro = f({
2729
2502
  name: "builder-slot",
2730
- components: { Blocks },
2503
+ components: { Blocks: M },
2731
2504
  props: ["builderContext", "name", "builderComponents"]
2732
2505
  });
2733
- function _sfc_render$g(e, t, n, o, r, i) {
2734
- var l, a, d;
2735
- const s = resolveComponent("Blocks");
2736
- return openBlock(), createElementBlock("div", mergeProps(
2506
+ function Bo(e, t, n, o, r, i) {
2507
+ var l, a, u;
2508
+ const s = y("Blocks");
2509
+ return c(), m("div", S(
2737
2510
  { style: {
2738
2511
  pointerEvents: "auto"
2739
2512
  } },
@@ -2741,16 +2514,16 @@ function _sfc_render$g(e, t, n, o, r, i) {
2741
2514
  "builder-slot": e.name
2742
2515
  }
2743
2516
  ), [
2744
- createVNode(s, {
2517
+ I(s, {
2745
2518
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2746
2519
  path: `symbol.data.${e.name}`,
2747
2520
  context: e.builderContext,
2748
2521
  registeredComponents: e.builderComponents,
2749
- blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
2522
+ blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
2750
2523
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2751
2524
  ], 16);
2752
2525
  }
2753
- const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), componentInfo$b = {
2526
+ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2754
2527
  name: "Symbol",
2755
2528
  noWrap: !0,
2756
2529
  static: !0,
@@ -2789,7 +2562,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2789
2562
  builderComponents: !0,
2790
2563
  builderLinkComponent: !0
2791
2564
  }
2792
- }, defaultTab = {
2565
+ }, se = {
2793
2566
  "@type": "@builder.io/sdk:Element",
2794
2567
  responsiveStyles: {
2795
2568
  large: {
@@ -2811,7 +2584,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2811
2584
  text: "New tab"
2812
2585
  }
2813
2586
  }
2814
- }, defaultElement = {
2587
+ }, ae = {
2815
2588
  "@type": "@builder.io/sdk:Element",
2816
2589
  responsiveStyles: {
2817
2590
  large: {
@@ -2827,7 +2600,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2827
2600
  text: "New tab content "
2828
2601
  }
2829
2602
  }
2830
- }, componentInfo$a = {
2603
+ }, xo = {
2831
2604
  name: "Builder: Tabs",
2832
2605
  inputs: [{
2833
2606
  name: "tabs",
@@ -2837,16 +2610,16 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2837
2610
  name: "label",
2838
2611
  type: "uiBlocks",
2839
2612
  hideFromUI: !0,
2840
- defaultValue: [defaultTab]
2613
+ defaultValue: [se]
2841
2614
  }, {
2842
2615
  name: "content",
2843
2616
  type: "uiBlocks",
2844
2617
  hideFromUI: !0,
2845
- defaultValue: [defaultElement]
2618
+ defaultValue: [ae]
2846
2619
  }],
2847
2620
  defaultValue: [{
2848
2621
  label: [{
2849
- ...defaultTab,
2622
+ ...se,
2850
2623
  component: {
2851
2624
  name: "Text",
2852
2625
  options: {
@@ -2855,7 +2628,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2855
2628
  }
2856
2629
  }],
2857
2630
  content: [{
2858
- ...defaultElement,
2631
+ ...ae,
2859
2632
  component: {
2860
2633
  name: "Text",
2861
2634
  options: {
@@ -2865,7 +2638,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2865
2638
  }]
2866
2639
  }, {
2867
2640
  label: [{
2868
- ...defaultTab,
2641
+ ...se,
2869
2642
  component: {
2870
2643
  name: "Text",
2871
2644
  options: {
@@ -2874,7 +2647,7 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2874
2647
  }
2875
2648
  }],
2876
2649
  content: [{
2877
- ...defaultElement,
2650
+ ...ae,
2878
2651
  component: {
2879
2652
  name: "Text",
2880
2653
  options: {
@@ -2930,9 +2703,9 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2930
2703
  builderComponents: !0,
2931
2704
  builderLinkComponent: !0
2932
2705
  }
2933
- }, _sfc_main$g = defineComponent({
2706
+ }, Vo = f({
2934
2707
  name: "builder-tabs",
2935
- components: { Blocks },
2708
+ components: { Blocks: M },
2936
2709
  props: [
2937
2710
  "defaultActiveTab",
2938
2711
  "tabs",
@@ -2955,28 +2728,28 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2955
2728
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2956
2729
  }
2957
2730
  }
2958
- }), _hoisted_1$9 = ["onClick"], _hoisted_2$3 = { key: 0 };
2959
- function _sfc_render$f(e, t, n, o, r, i) {
2960
- const s = resolveComponent("Blocks");
2961
- return openBlock(), createElementBlock("div", null, [
2962
- createElementVNode("div", {
2731
+ }), Ao = ["onClick"], Wo = { key: 0 };
2732
+ function No(e, t, n, o, r, i) {
2733
+ const s = y("Blocks");
2734
+ return c(), m("div", null, [
2735
+ z("div", {
2963
2736
  class: "builder-tabs-wrap",
2964
- style: normalizeStyle({
2737
+ style: D({
2965
2738
  display: "flex",
2966
2739
  flexDirection: "row",
2967
2740
  justifyContent: e.tabHeaderLayout || "flex-start",
2968
2741
  overflow: "auto"
2969
2742
  })
2970
2743
  }, [
2971
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.tabs, (l, a) => (openBlock(), createElementBlock("span", {
2744
+ (c(!0), m(T, null, V(e.tabs, (l, a) => (c(), m("span", {
2972
2745
  key: a,
2973
- class: normalizeClass(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2974
- style: normalizeStyle({
2746
+ class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2747
+ style: D({
2975
2748
  ...e.activeTab === a ? e.activeTabStyle : {}
2976
2749
  }),
2977
- onClick: (d) => e.onClick(a)
2750
+ onClick: (u) => e.onClick(a)
2978
2751
  }, [
2979
- createVNode(s, {
2752
+ I(s, {
2980
2753
  parent: e.builderBlock.id,
2981
2754
  path: `component.options.tabs.${a}.label`,
2982
2755
  blocks: l.label,
@@ -2984,10 +2757,10 @@ function _sfc_render$f(e, t, n, o, r, i) {
2984
2757
  registeredComponents: e.builderComponents,
2985
2758
  linkComponent: e.builderLinkComponent
2986
2759
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2987
- ], 14, _hoisted_1$9))), 128))
2760
+ ], 14, Ao))), 128))
2988
2761
  ], 4),
2989
- e.activeTabContent(e.activeTab) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
2990
- createVNode(s, {
2762
+ e.activeTabContent(e.activeTab) ? (c(), m("div", Wo, [
2763
+ I(s, {
2991
2764
  parent: e.builderBlock.id,
2992
2765
  path: `component.options.tabs.${e.activeTab}.content`,
2993
2766
  blocks: e.activeTabContent(e.activeTab),
@@ -2995,10 +2768,10 @@ function _sfc_render$f(e, t, n, o, r, i) {
2995
2768
  registeredComponents: e.builderComponents,
2996
2769
  linkComponent: e.builderLinkComponent
2997
2770
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2998
- ])) : createCommentVNode("", !0)
2771
+ ])) : C("", !0)
2999
2772
  ]);
3000
2773
  }
3001
- const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]]), componentInfo$9 = {
2774
+ const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
3002
2775
  shouldReceiveBuilderProps: {
3003
2776
  builderBlock: !1,
3004
2777
  builderContext: !0
@@ -3020,7 +2793,7 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3020
2793
  height: "auto",
3021
2794
  textAlign: "center"
3022
2795
  }
3023
- }, _sfc_main$f = defineComponent({
2796
+ }, Do = f({
3024
2797
  name: "builder-text",
3025
2798
  props: ["builderContext", "text"],
3026
2799
  computed: {
@@ -3034,7 +2807,7 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3034
2807
  } = e;
3035
2808
  return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
3036
2809
  /{{([^}]+)}}/g,
3037
- (s, l) => evaluate({
2810
+ (s, l) => G({
3038
2811
  code: l,
3039
2812
  context: t,
3040
2813
  localState: n,
@@ -3045,17 +2818,17 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
3045
2818
  );
3046
2819
  }
3047
2820
  }
3048
- }), _hoisted_1$8 = ["innerHTML"];
3049
- function _sfc_render$e(e, t, n, o, r, i) {
3050
- return openBlock(), createElementBlock("div", {
2821
+ }), Lo = ["innerHTML"];
2822
+ function Uo(e, t, n, o, r, i) {
2823
+ return c(), m("div", {
3051
2824
  class: "builder-text",
3052
2825
  innerHTML: e.processedText,
3053
2826
  style: {
3054
2827
  outline: "none"
3055
2828
  }
3056
- }, null, 8, _hoisted_1$8);
2829
+ }, null, 8, Lo);
3057
2830
  }
3058
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]]), componentInfo$8 = {
2831
+ const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), Ho = {
3059
2832
  name: "Custom Code",
3060
2833
  static: !0,
3061
2834
  requiredPermissions: ["editCode"],
@@ -3077,7 +2850,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
3077
2850
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3078
2851
  advanced: !0
3079
2852
  }]
3080
- }, _sfc_main$e = defineComponent({
2853
+ }, jo = f({
3081
2854
  name: "builder-custom-code",
3082
2855
  props: ["replaceNodes", "code"],
3083
2856
  data() {
@@ -3111,15 +2884,15 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
3111
2884
  }
3112
2885
  }
3113
2886
  }
3114
- }), _hoisted_1$7 = ["innerHTML"];
3115
- function _sfc_render$d(e, t, n, o, r, i) {
3116
- return openBlock(), createElementBlock("div", {
2887
+ }), Ko = ["innerHTML"];
2888
+ function qo(e, t, n, o, r, i) {
2889
+ return c(), m("div", {
3117
2890
  ref: "elementRef",
3118
- class: normalizeClass("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2891
+ class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3119
2892
  innerHTML: e.code
3120
- }, null, 10, _hoisted_1$7);
2893
+ }, null, 10, Ko);
3121
2894
  }
3122
- const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]), componentInfo$7 = {
2895
+ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
3123
2896
  name: "Embed",
3124
2897
  static: !0,
3125
2898
  inputs: [{
@@ -3134,7 +2907,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3134
2907
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3135
2908
  hideFromUI: !0
3136
2909
  }]
3137
- }, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type), _sfc_main$d = defineComponent({
2910
+ }, Go = ["text/javascript", "application/javascript", "application/ecmascript"], Yo = (e) => Go.includes(e.type), Qo = f({
3138
2911
  name: "builder-embed",
3139
2912
  props: ["content"],
3140
2913
  data() {
@@ -3167,7 +2940,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3167
2940
  this.scriptsInserted.push(n.src);
3168
2941
  const o = document.createElement("script");
3169
2942
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3170
- } else if (isJsScript(n) && !this.scriptsRun.includes(n.innerText))
2943
+ } else if (Yo(n) && !this.scriptsRun.includes(n.innerText))
3171
2944
  try {
3172
2945
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3173
2946
  } catch (o) {
@@ -3176,15 +2949,15 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
3176
2949
  }
3177
2950
  }
3178
2951
  }
3179
- }), _hoisted_1$6 = ["innerHTML"];
3180
- function _sfc_render$c(e, t, n, o, r, i) {
3181
- return openBlock(), createElementBlock("div", {
2952
+ }), Xo = ["innerHTML"];
2953
+ function Zo(e, t, n, o, r, i) {
2954
+ return c(), m("div", {
3182
2955
  class: "builder-embed",
3183
2956
  ref: "elem",
3184
2957
  innerHTML: e.content
3185
- }, null, 8, _hoisted_1$6);
2958
+ }, null, 8, Xo);
3186
2959
  }
3187
- const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c]]), componentInfo$6 = {
2960
+ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3188
2961
  name: "Form:Form",
3189
2962
  // editableTags: ['builder-form-error']
3190
2963
  defaults: {
@@ -3421,15 +3194,15 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3421
3194
  builderComponents: !0,
3422
3195
  builderLinkComponent: !0
3423
3196
  }
3424
- }, validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], getEnv = () => {
3197
+ }, tr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], nr = () => {
3425
3198
  const e = process.env.NODE_ENV || "production";
3426
- return validEnvList.includes(e) ? e : "production";
3427
- }, get = (e, t, n) => {
3199
+ return tr.includes(e) ? e : "production";
3200
+ }, or = (e, t, n) => {
3428
3201
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
3429
3202
  return o === void 0 || o === e ? n : o;
3430
- }, _sfc_main$c = defineComponent({
3203
+ }, rr = f({
3431
3204
  name: "builder-form-component",
3432
- components: { Block, Blocks },
3205
+ components: { Block: ye, Blocks: M },
3433
3206
  props: [
3434
3207
  "builderContext",
3435
3208
  "previewState",
@@ -3458,7 +3231,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3458
3231
  formState: "unsubmitted",
3459
3232
  responseData: null,
3460
3233
  formErrorMessage: "",
3461
- filterAttrs
3234
+ filterAttrs: A
3462
3235
  };
3463
3236
  },
3464
3237
  methods: {
@@ -3471,7 +3244,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3471
3244
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3472
3245
  },
3473
3246
  submissionState() {
3474
- return isEditing() && this.previewState || this.formState;
3247
+ return R() && this.previewState || this.formState;
3475
3248
  },
3476
3249
  onSubmit(e) {
3477
3250
  var n;
@@ -3486,150 +3259,150 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3486
3259
  e.preventDefault();
3487
3260
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3488
3261
  let i;
3489
- const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3490
- let u;
3491
- const f = c.name;
3492
- if (c instanceof HTMLInputElement)
3493
- if (c.type === "radio") {
3494
- if (c.checked)
3495
- return u = c.name, {
3496
- key: f,
3497
- value: u
3262
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3263
+ let p;
3264
+ const k = d.name;
3265
+ if (d instanceof HTMLInputElement)
3266
+ if (d.type === "radio") {
3267
+ if (d.checked)
3268
+ return p = d.name, {
3269
+ key: k,
3270
+ value: p
3498
3271
  };
3499
- } else if (c.type === "checkbox")
3500
- u = c.checked;
3501
- else if (c.type === "number" || c.type === "range") {
3502
- const m = c.valueAsNumber;
3503
- isNaN(m) || (u = m);
3272
+ } else if (d.type === "checkbox")
3273
+ p = d.checked;
3274
+ else if (d.type === "number" || d.type === "range") {
3275
+ const v = d.valueAsNumber;
3276
+ isNaN(v) || (p = v);
3504
3277
  } else
3505
- c.type === "file" ? u = c.files : u = c.value;
3278
+ d.type === "file" ? p = d.files : p = d.value;
3506
3279
  else
3507
- u = c.value;
3280
+ p = d.value;
3508
3281
  return {
3509
- key: f,
3510
- value: u
3282
+ key: k,
3283
+ value: p
3511
3284
  };
3512
3285
  });
3513
3286
  let a = this.contentType;
3514
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3515
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3287
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
3288
+ (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
3516
3289
  }), a !== "application/json")
3517
3290
  i = s;
3518
3291
  else {
3519
- const c = {};
3520
- Array.from(l).forEach(({ value: u, key: f }) => {
3521
- set(c, f, u);
3522
- }), i = JSON.stringify(c);
3292
+ const d = {};
3293
+ Array.from(l).forEach(({ value: p, key: k }) => {
3294
+ xe(d, k, p);
3295
+ }), i = JSON.stringify(d);
3523
3296
  }
3524
3297
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3525
- const d = new CustomEvent("presubmit", {
3298
+ const u = new CustomEvent("presubmit", {
3526
3299
  detail: {
3527
3300
  body: i
3528
3301
  }
3529
3302
  });
3530
- if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
3303
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3531
3304
  return;
3532
3305
  this.formState = "sending";
3533
- const p = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3306
+ const h = `${nr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3534
3307
  this.sendSubmissionsToEmail || ""
3535
3308
  )}&name=${encodeURIComponent(this.name || "")}`;
3536
3309
  fetch(
3537
- this.sendSubmissionsTo === "email" ? p : this.action,
3310
+ this.sendSubmissionsTo === "email" ? h : this.action,
3538
3311
  {
3539
3312
  body: i,
3540
3313
  headers: r,
3541
3314
  method: this.method || "post"
3542
3315
  }
3543
3316
  ).then(
3544
- async (c) => {
3545
- let u;
3546
- const f = c.headers.get("content-type");
3547
- if (f && f.indexOf("application/json") !== -1 ? u = await c.json() : u = await c.text(), !c.ok && this.errorMessagePath) {
3548
- let m = get(u, this.errorMessagePath);
3549
- m && (typeof m != "string" && (m = JSON.stringify(m)), this.formErrorMessage = m, this.mergeNewRootState({
3550
- formErrorMessage: m
3317
+ async (d) => {
3318
+ let p;
3319
+ const k = d.headers.get("content-type");
3320
+ if (k && k.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
3321
+ let v = or(p, this.errorMessagePath);
3322
+ v && (typeof v != "string" && (v = JSON.stringify(v)), this.formErrorMessage = v, this.mergeNewRootState({
3323
+ formErrorMessage: v
3551
3324
  }));
3552
3325
  }
3553
- if (this.responseData = u, this.formState = c.ok ? "success" : "error", c.ok) {
3554
- const m = new CustomEvent("submit:success", {
3326
+ if (this.responseData = p, this.formState = d.ok ? "success" : "error", d.ok) {
3327
+ const v = new CustomEvent("submit:success", {
3555
3328
  detail: {
3556
- res: c,
3557
- body: u
3329
+ res: d,
3330
+ body: p
3558
3331
  }
3559
3332
  });
3560
3333
  if (this.$refs.formRef) {
3561
- if (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented)
3334
+ if (this.$refs.formRef.dispatchEvent(v), v.defaultPrevented)
3562
3335
  return;
3563
3336
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3564
3337
  }
3565
3338
  if (this.successUrl)
3566
3339
  if (this.$refs.formRef) {
3567
- const b = new CustomEvent("route", {
3340
+ const F = new CustomEvent("route", {
3568
3341
  detail: {
3569
3342
  url: this.successUrl
3570
3343
  }
3571
3344
  });
3572
- this.$refs.formRef.dispatchEvent(b), b.defaultPrevented || (location.href = this.successUrl);
3345
+ this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
3573
3346
  } else
3574
3347
  location.href = this.successUrl;
3575
3348
  }
3576
3349
  },
3577
- (c) => {
3578
- const u = new CustomEvent("submit:error", {
3350
+ (d) => {
3351
+ const p = new CustomEvent("submit:error", {
3579
3352
  detail: {
3580
- error: c
3353
+ error: d
3581
3354
  }
3582
3355
  });
3583
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented) || (this.responseData = c, this.formState = "error");
3356
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = d, this.formState = "error");
3584
3357
  }
3585
3358
  );
3586
3359
  }
3587
3360
  }
3588
3361
  }
3589
- }), _hoisted_1$5 = ["validate", "action", "method", "name"], _hoisted_2$2 = {
3362
+ }), ir = ["validate", "action", "method", "name"], sr = {
3590
3363
  key: 3,
3591
- class: "builder-form-error-text pre-3i4ezorcfhi"
3364
+ class: "builder-form-error-text pre-3q96myty4lk"
3592
3365
  };
3593
- function _sfc_render$b(e, t, n, o, r, i) {
3366
+ function ar(e, t, n, o, r, i) {
3594
3367
  var a;
3595
- const s = resolveComponent("Block"), l = resolveComponent("Blocks");
3596
- return openBlock(), createElementBlock("form", mergeProps({
3368
+ const s = y("Block"), l = y("Blocks");
3369
+ return c(), m("form", S({
3597
3370
  validate: e.validate,
3598
3371
  ref: "formRef",
3599
3372
  action: !e.sendWithJs && e.action,
3600
3373
  method: e.method,
3601
3374
  name: e.name,
3602
- onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
3603
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3604
- 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, {
3375
+ onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3376
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3377
+ e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(s, {
3605
3378
  key: `form-block-${e.idx}`,
3606
- block: d,
3379
+ block: u,
3607
3380
  context: e.builderContext,
3608
3381
  registeredComponents: e.builderComponents,
3609
3382
  linkComponent: e.builderLinkComponent
3610
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : createCommentVNode("", !0),
3611
- e.submissionState() === "error" ? (openBlock(), createBlock(l, {
3383
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : C("", !0),
3384
+ e.submissionState() === "error" ? (c(), g(l, {
3612
3385
  key: 1,
3613
3386
  path: "errorMessage",
3614
3387
  blocks: e.errorMessage,
3615
3388
  context: e.builderContext
3616
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
3617
- e.submissionState() === "sending" ? (openBlock(), createBlock(l, {
3389
+ }, null, 8, ["blocks", "context"])) : C("", !0),
3390
+ e.submissionState() === "sending" ? (c(), g(l, {
3618
3391
  key: 2,
3619
3392
  path: "sendingMessage",
3620
3393
  blocks: e.sendingMessage,
3621
3394
  context: e.builderContext
3622
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
3623
- e.submissionState() === "error" && e.responseData ? (openBlock(), createElementBlock("pre", _hoisted_2$2, toDisplayString(JSON.stringify(e.responseData, null, 2)), 1)) : createCommentVNode("", !0),
3624
- e.submissionState() === "success" ? (openBlock(), createBlock(l, {
3395
+ }, null, 8, ["blocks", "context"])) : C("", !0),
3396
+ e.submissionState() === "error" && e.responseData ? (c(), m("pre", sr, te(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
3397
+ e.submissionState() === "success" ? (c(), g(l, {
3625
3398
  key: 4,
3626
3399
  path: "successMessage",
3627
3400
  blocks: e.successMessage,
3628
3401
  context: e.builderContext
3629
- }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0)
3630
- ], 16, _hoisted_1$5);
3402
+ }, null, 8, ["blocks", "context"])) : C("", !0)
3403
+ ], 16, ir);
3631
3404
  }
3632
- const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-489330f7"]]), componentInfo$5 = {
3405
+ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
3633
3406
  name: "Form:Input",
3634
3407
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3635
3408
  inputs: [
@@ -3680,7 +3453,7 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3680
3453
  borderStyle: "solid",
3681
3454
  borderColor: "#ccc"
3682
3455
  }
3683
- }, _sfc_main$b = defineComponent({
3456
+ }, dr = f({
3684
3457
  name: "builder-form-input-component",
3685
3458
  props: [
3686
3459
  "attributes",
@@ -3692,11 +3465,11 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3692
3465
  "required"
3693
3466
  ],
3694
3467
  data() {
3695
- return { isEditing, filterAttrs };
3468
+ return { isEditing: R, filterAttrs: A };
3696
3469
  }
3697
- }), _hoisted_1$4 = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3698
- function _sfc_render$a(e, t, n, o, r, i) {
3699
- return openBlock(), createElementBlock("input", mergeProps({
3470
+ }), ur = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3471
+ function pr(e, t, n, o, r, i) {
3472
+ return c(), m("input", S({
3700
3473
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3701
3474
  placeholder: e.placeholder,
3702
3475
  type: e.type,
@@ -3704,9 +3477,9 @@ function _sfc_render$a(e, t, n, o, r, i) {
3704
3477
  value: e.value,
3705
3478
  defaultValue: e.defaultValue,
3706
3479
  required: e.required
3707
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$4);
3480
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ur);
3708
3481
  }
3709
- const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]), componentInfo$4 = {
3482
+ const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
3710
3483
  name: "Form:Select",
3711
3484
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3712
3485
  defaultStyles: {
@@ -3748,28 +3521,28 @@ const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_rend
3748
3521
  }],
3749
3522
  static: !0,
3750
3523
  noWrap: !0
3751
- }, _sfc_main$a = defineComponent({
3524
+ }, fr = f({
3752
3525
  name: "builder-select-component",
3753
3526
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3754
3527
  data() {
3755
- return { isEditing, filterAttrs };
3528
+ return { isEditing: R, filterAttrs: A };
3756
3529
  }
3757
- }), _hoisted_1$3 = ["value", "defaultValue", "name", "required"], _hoisted_2$1 = ["value"];
3758
- function _sfc_render$9(e, t, n, o, r, i) {
3759
- return openBlock(), createElementBlock("select", mergeProps({
3530
+ }), br = ["value", "defaultValue", "name", "required"], gr = ["value"];
3531
+ function yr(e, t, n, o, r, i) {
3532
+ return c(), m("select", S({
3760
3533
  value: e.value,
3761
3534
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3762
3535
  defaultValue: e.defaultValue,
3763
3536
  name: e.name,
3764
3537
  required: e.required
3765
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3766
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (s, l) => (openBlock(), createElementBlock("option", {
3538
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3539
+ (c(!0), m(T, null, V(e.options, (s, l) => (c(), m("option", {
3767
3540
  key: `${s.name}-${l}`,
3768
3541
  value: s.value
3769
- }, toDisplayString(s.name || s.value), 9, _hoisted_2$1))), 128))
3770
- ], 16, _hoisted_1$3);
3542
+ }, te(s.name || s.value), 9, gr))), 128))
3543
+ ], 16, br);
3771
3544
  }
3772
- const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), componentInfo$3 = {
3545
+ const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
3773
3546
  name: "Form:SubmitButton",
3774
3547
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3775
3548
  defaultStyles: {
@@ -3794,17 +3567,17 @@ const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
3794
3567
  // that only shows if advanced setting is flipped
3795
3568
  // TODO: defaultChildren
3796
3569
  // canHaveChildren: true,
3797
- }, _sfc_main$9 = defineComponent({
3570
+ }, Cr = f({
3798
3571
  name: "builder-submit-button",
3799
3572
  props: ["attributes", "text"],
3800
3573
  data() {
3801
- return { filterAttrs };
3574
+ return { filterAttrs: A };
3802
3575
  }
3803
3576
  });
3804
- function _sfc_render$8(e, t, n, o, r, i) {
3805
- 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);
3577
+ function Sr(e, t, n, o, r, i) {
3578
+ 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);
3806
3579
  }
3807
- const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), componentInfo$2 = {
3580
+ const Tr = /* @__PURE__ */ b(Cr, [["render", Sr]]), wr = {
3808
3581
  name: "Form:TextArea",
3809
3582
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3810
3583
  inputs: [{
@@ -3840,7 +3613,7 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3840
3613
  },
3841
3614
  static: !0,
3842
3615
  noWrap: !0
3843
- }, _sfc_main$8 = defineComponent({
3616
+ }, Ir = f({
3844
3617
  name: "builder-textarea",
3845
3618
  props: [
3846
3619
  "attributes",
@@ -3851,19 +3624,19 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3851
3624
  "required"
3852
3625
  ],
3853
3626
  data() {
3854
- return { filterAttrs };
3627
+ return { filterAttrs: A };
3855
3628
  }
3856
- }), _hoisted_1$2 = ["placeholder", "name", "value", "defaultValue", "required"];
3857
- function _sfc_render$7(e, t, n, o, r, i) {
3858
- return openBlock(), createElementBlock("textarea", mergeProps({
3629
+ }), $r = ["placeholder", "name", "value", "defaultValue", "required"];
3630
+ function Rr(e, t, n, o, r, i) {
3631
+ return c(), m("textarea", S({
3859
3632
  placeholder: e.placeholder,
3860
3633
  name: e.name,
3861
3634
  value: e.value,
3862
3635
  defaultValue: e.defaultValue,
3863
3636
  required: e.required
3864
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$2);
3637
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $r);
3865
3638
  }
3866
- const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]), componentInfo$1 = {
3639
+ const Br = /* @__PURE__ */ b(Ir, [["render", Rr]]), Er = {
3867
3640
  // friendlyName?
3868
3641
  name: "Raw:Img",
3869
3642
  hideFromInsertMenu: !0,
@@ -3877,7 +3650,7 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3877
3650
  }],
3878
3651
  noWrap: !0,
3879
3652
  static: !0
3880
- }, _sfc_main$7 = defineComponent({
3653
+ }, Pr = f({
3881
3654
  name: "builder-img-component",
3882
3655
  props: [
3883
3656
  "backgroundSize",
@@ -3888,11 +3661,11 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3888
3661
  "attributes"
3889
3662
  ],
3890
3663
  data() {
3891
- return { isEditing, filterAttrs };
3664
+ return { isEditing: R, filterAttrs: A };
3892
3665
  }
3893
- }), _hoisted_1$1 = ["alt", "src"];
3894
- function _sfc_render$6(e, t, n, o, r, i) {
3895
- return openBlock(), createElementBlock("img", mergeProps({
3666
+ }), xr = ["alt", "src"];
3667
+ function Vr(e, t, n, o, r, i) {
3668
+ return c(), m("img", S({
3896
3669
  style: {
3897
3670
  objectFit: e.backgroundSize || "cover",
3898
3671
  objectPosition: e.backgroundPosition || "center"
@@ -3900,9 +3673,9 @@ function _sfc_render$6(e, t, n, o, r, i) {
3900
3673
  key: e.isEditing() && e.imgSrc || "default-key",
3901
3674
  alt: e.altText,
3902
3675
  src: e.imgSrc || e.image
3903
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$1);
3676
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
3904
3677
  }
3905
- const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]), componentInfo = {
3678
+ const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
3906
3679
  name: "Video",
3907
3680
  canHaveChildren: !0,
3908
3681
  defaultStyles: {
@@ -3986,7 +3759,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
3986
3759
  shouldReceiveBuilderProps: {
3987
3760
  builderBlock: !0
3988
3761
  }
3989
- }, _sfc_main$6 = defineComponent({
3762
+ }, Nr = f({
3990
3763
  name: "builder-video",
3991
3764
  props: [
3992
3765
  "autoPlay",
@@ -4031,16 +3804,16 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
4031
3804
  };
4032
3805
  }
4033
3806
  }
4034
- }), _hoisted_1 = { style: {
3807
+ }), Fr = { style: {
4035
3808
  position: "relative"
4036
- } }, _hoisted_2 = ["preload", "src", "poster"], _hoisted_3 = ["src"], _hoisted_4 = {
3809
+ } }, Or = ["preload", "src", "poster"], Dr = ["src"], Lr = {
4037
3810
  key: 1,
4038
3811
  style: {
4039
3812
  display: "flex",
4040
3813
  flexDirection: "column",
4041
3814
  alignItems: "stretch"
4042
3815
  }
4043
- }, _hoisted_5 = {
3816
+ }, Ur = {
4044
3817
  key: 2,
4045
3818
  style: {
4046
3819
  pointerEvents: "none",
@@ -4054,10 +3827,10 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
4054
3827
  height: "100%"
4055
3828
  }
4056
3829
  };
4057
- function _sfc_render$5(e, t, n, o, r, i) {
4058
- var s, l, a, d, p, c, u;
4059
- return openBlock(), createElementBlock("div", _hoisted_1, [
4060
- createElementVNode("video", mergeProps({
3830
+ function Mr(e, t, n, o, r, i) {
3831
+ var s, l, a, u, h, d, p;
3832
+ return c(), m("div", Fr, [
3833
+ z("video", S({
4061
3834
  class: "builder-video",
4062
3835
  preload: e.preload || "metadata",
4063
3836
  style: {
@@ -4077,87 +3850,87 @@ function _sfc_render$5(e, t, n, o, r, i) {
4077
3850
  src: e.video || "no-src",
4078
3851
  poster: e.posterImage
4079
3852
  }, e.spreadProps), [
4080
- e.lazyLoad ? createCommentVNode("", !0) : (openBlock(), createElementBlock("source", {
3853
+ e.lazyLoad ? C("", !0) : (c(), m("source", {
4081
3854
  key: 0,
4082
3855
  type: "video/mp4",
4083
3856
  src: e.video
4084
- }, null, 8, _hoisted_3))
4085
- ], 16, _hoisted_2),
4086
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (openBlock(), createElementBlock("div", {
3857
+ }, null, 8, Dr))
3858
+ ], 16, Or),
3859
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), m("div", {
4087
3860
  key: 0,
4088
- style: normalizeStyle({
3861
+ style: D({
4089
3862
  width: "100%",
4090
3863
  paddingTop: e.aspectRatio * 100 + "%",
4091
3864
  pointerEvents: "none",
4092
3865
  fontSize: "0px"
4093
3866
  })
4094
- }, null, 4)) : createCommentVNode("", !0),
4095
- (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
4096
- renderSlot(e.$slots, "default")
4097
- ])) : createCommentVNode("", !0),
4098
- (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
4099
- renderSlot(e.$slots, "default")
4100
- ])) : createCommentVNode("", !0)
3867
+ }, null, 4)) : C("", !0),
3868
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Lr, [
3869
+ E(e.$slots, "default")
3870
+ ])) : C("", !0),
3871
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Ur, [
3872
+ E(e.$slots, "default")
3873
+ ])) : C("", !0)
4101
3874
  ]);
4102
3875
  }
4103
- const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]), getExtraComponents = () => [{
4104
- component: customCode,
4105
- ...componentInfo$8
3876
+ const Hr = /* @__PURE__ */ b(Nr, [["render", Mr]]), jr = () => [{
3877
+ component: zo,
3878
+ ...Ho
4106
3879
  }, {
4107
- component: embed,
4108
- ...componentInfo$7
3880
+ component: _o,
3881
+ ...Jo
4109
3882
  }, {
4110
- component: Form,
4111
- ...componentInfo$6
3883
+ component: lr,
3884
+ ...er
4112
3885
  }, {
4113
- component: FormInput,
4114
- ...componentInfo$5
3886
+ component: mr,
3887
+ ...cr
4115
3888
  }, {
4116
- component: FormSubmitButton,
4117
- ...componentInfo$3
3889
+ component: Tr,
3890
+ ...vr
4118
3891
  }, {
4119
- component: FormSelect,
4120
- ...componentInfo$4
3892
+ component: kr,
3893
+ ...hr
4121
3894
  }, {
4122
- component: Textarea,
4123
- ...componentInfo$2
3895
+ component: Br,
3896
+ ...wr
4124
3897
  }, {
4125
- component: Img,
4126
- ...componentInfo$1
3898
+ component: Ar,
3899
+ ...Er
4127
3900
  }, {
4128
- component: Video,
4129
- ...componentInfo
4130
- }], getDefaultRegisteredComponents = () => [{
4131
- component: Button,
4132
- ...componentInfo$h
3901
+ component: Hr,
3902
+ ...Wr
3903
+ }], Re = () => [{
3904
+ component: It,
3905
+ ...Co
4133
3906
  }, {
4134
- component: Columns,
4135
- ...componentInfo$g
3907
+ component: _n,
3908
+ ...So
4136
3909
  }, {
4137
- component: Fragment,
4138
- ...componentInfo$f
3910
+ component: no,
3911
+ ...To
4139
3912
  }, {
4140
- component: Image,
4141
- ...componentInfo$e
3913
+ component: uo,
3914
+ ...wo
4142
3915
  }, {
4143
- component: Section,
4144
- ...componentInfo$d
3916
+ component: ho,
3917
+ ...Io
4145
3918
  }, {
4146
- component: Slot,
4147
- ...componentInfo$c
3919
+ component: Eo,
3920
+ ...$o
4148
3921
  }, {
4149
- component: Symbol$1,
4150
- ...componentInfo$b
3922
+ component: wi,
3923
+ ...Po
4151
3924
  }, {
4152
- component: Text,
4153
- ...componentInfo$9
3925
+ component: Mo,
3926
+ ...Oo
4154
3927
  }, {
4155
- component: Tabs,
4156
- ...componentInfo$a
3928
+ component: Fo,
3929
+ ...xo
4157
3930
  }, {
4158
- component: Accordion,
4159
- ...componentInfo$i
4160
- }, ...getExtraComponents()], UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3931
+ component: vo,
3932
+ ...fo
3933
+ }, ...jr()], Kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4161
3934
  function getAndSetVariantId() {
4162
3935
  function setCookie(name, value, days) {
4163
3936
  let expires = '';
@@ -4213,7 +3986,7 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4213
3986
  }).join('');
4214
3987
  styleEl.innerHTML = newStyleStr;
4215
3988
  }
4216
- }`, UPDATE_VARIANT_VISIBILITY_SCRIPT = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3989
+ }`, qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4217
3990
  if (!navigator.cookieEnabled) {
4218
3991
  return;
4219
3992
  }
@@ -4247,27 +4020,27 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4247
4020
  thisScriptEl?.remove();
4248
4021
  }
4249
4022
  return;
4250
- }`, 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) => ({
4023
+ }`, ot = "builderIoAbTest", rt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4251
4024
  ...t,
4252
4025
  testVariationId: t.id,
4253
4026
  id: e == null ? void 0 : e.id
4254
- })), checkShouldRenderVariants = ({
4027
+ })), zr = ({
4255
4028
  canTrack: e,
4256
4029
  content: t
4257
- }) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET), getInitVariantsFnsScriptString = () => `
4258
- window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
4259
- window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
4260
- `, getUpdateCookieAndStylesScript = (e, t) => `
4261
- window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME}(
4262
- "${t}",${JSON.stringify(e)}, ${isHydrationTarget}
4263
- )`, getUpdateVariantVisibilityScript = ({
4030
+ }) => !(!(Z(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", it = Jr(x), Gr = () => `
4031
+ window.${ot} = ${Kr}
4032
+ window.${rt} = ${qr}
4033
+ `, Yr = (e, t) => `
4034
+ window.${ot}(
4035
+ "${t}",${JSON.stringify(e)}, ${it}
4036
+ )`, Qr = ({
4264
4037
  contentId: e,
4265
4038
  variationId: t
4266
- }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
4267
- "${t}", "${e}", ${isHydrationTarget}
4268
- )`, _sfc_main$5 = defineComponent({
4039
+ }) => `window.${rt}(
4040
+ "${t}", "${e}", ${it}
4041
+ )`, st = f({
4269
4042
  render() {
4270
- return h("script", {
4043
+ return Pe("script", {
4271
4044
  innerHTML: this.scriptStr,
4272
4045
  "data-id": this.id,
4273
4046
  nonce: this.nonce
@@ -4276,10 +4049,10 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
4276
4049
  name: "inlined-script",
4277
4050
  props: ["scriptStr", "id", "nonce"]
4278
4051
  });
4279
- function round(e) {
4052
+ function Be(e) {
4280
4053
  return Math.round(e * 1e3) / 1e3;
4281
4054
  }
4282
- const findParentElement = (e, t, n = !0) => {
4055
+ const Xr = (e, t, n = !0) => {
4283
4056
  if (!(e instanceof HTMLElement))
4284
4057
  return null;
4285
4058
  let o = n ? e : e.parentElement;
@@ -4290,35 +4063,35 @@ const findParentElement = (e, t, n = !0) => {
4290
4063
  return o;
4291
4064
  } while (o = o.parentElement);
4292
4065
  return null;
4293
- }, findBuilderParent = (e) => findParentElement(e, (t) => {
4066
+ }, Zr = (e) => Xr(e, (t) => {
4294
4067
  const n = t.getAttribute("builder-id") || t.id;
4295
4068
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4296
- }), computeOffset = ({
4069
+ }), Ee = ({
4297
4070
  event: e,
4298
4071
  target: t
4299
4072
  }) => {
4300
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = round(o / n.width), s = round(r / n.height);
4073
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Be(o / n.width), s = Be(r / n.height);
4301
4074
  return {
4302
4075
  x: i,
4303
4076
  y: s
4304
4077
  };
4305
- }, getInteractionPropertiesForEvent = (e) => {
4306
- const t = e.target, n = t && findBuilderParent(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4078
+ }, _r = (e) => {
4079
+ const t = e.target, n = t && Zr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4307
4080
  return {
4308
4081
  targetBuilderElement: o || void 0,
4309
4082
  metadata: {
4310
- targetOffset: t ? computeOffset({
4083
+ targetOffset: t ? Ee({
4311
4084
  event: e,
4312
4085
  target: t
4313
4086
  }) : void 0,
4314
- builderTargetOffset: n ? computeOffset({
4087
+ builderTargetOffset: n ? Ee({
4315
4088
  event: e,
4316
4089
  target: n
4317
4090
  }) : void 0,
4318
4091
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4319
4092
  }
4320
4093
  };
4321
- }, getCssFromFont = (e) => {
4094
+ }, ei = (e) => {
4322
4095
  var i;
4323
4096
  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);
4324
4097
  let r = "";
@@ -4344,15 +4117,15 @@ font-weight: ${s};
4344
4117
  `.trim());
4345
4118
  }
4346
4119
  return r;
4347
- }, getFontCss = ({
4120
+ }, ti = ({
4348
4121
  customFonts: e
4349
4122
  }) => {
4350
4123
  var t;
4351
- return ((t = e == null ? void 0 : e.map((n) => getCssFromFont(n))) == null ? void 0 : t.join(" ")) || "";
4352
- }, getCss = ({
4124
+ return ((t = e == null ? void 0 : e.map((n) => ei(n))) == null ? void 0 : t.join(" ")) || "";
4125
+ }, ni = ({
4353
4126
  cssCode: e,
4354
4127
  contentId: t
4355
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", DEFAULT_STYLES = `
4128
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
4356
4129
  .builder-button {
4357
4130
  all: unset;
4358
4131
  }
@@ -4369,9 +4142,9 @@ font-weight: ${s};
4369
4142
  text-align: inherit;
4370
4143
  font-family: inherit;
4371
4144
  }
4372
- `, getDefaultStyles = (e) => e ? "" : DEFAULT_STYLES, getWrapperClassName = (e) => `variant-${e}`, _sfc_main$4 = defineComponent({
4145
+ `, ri = (e) => e ? "" : oi, ii = (e) => `variant-${e}`, si = f({
4373
4146
  name: "enable-editor",
4374
- components: { DynamicDiv },
4147
+ components: { DynamicDiv: Q },
4375
4148
  props: [
4376
4149
  "builderContextSignal",
4377
4150
  "canTrack",
@@ -4393,25 +4166,25 @@ font-weight: ${s};
4393
4166
  httpReqsData: {},
4394
4167
  httpReqsPending: {},
4395
4168
  clicked: !1,
4396
- builderContext: BuilderContext,
4397
- getWrapperClassName
4169
+ builderContext: le,
4170
+ getWrapperClassName: ii
4398
4171
  };
4399
4172
  },
4400
4173
  provide() {
4401
4174
  const e = this;
4402
4175
  return {
4403
- [BuilderContext.key]: e.builderContextSignal
4176
+ [le.key]: e.builderContextSignal
4404
4177
  };
4405
4178
  },
4406
4179
  mounted() {
4407
4180
  (() => {
4408
4181
  var n, o;
4409
- if (isBrowser()) {
4410
- if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4182
+ if ($()) {
4183
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4411
4184
  new CustomEvent("initeditingbldr")
4412
- ), this.builderContextSignal.content && getDefaultCanTrack(this.canTrack)) {
4185
+ ), this.builderContextSignal.content && Y(this.canTrack)) {
4413
4186
  const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4414
- _track({
4187
+ de({
4415
4188
  type: "impression",
4416
4189
  canTrack: !0,
4417
4190
  contentId: s,
@@ -4419,12 +4192,12 @@ font-weight: ${s};
4419
4192
  variationId: i !== s ? i : void 0
4420
4193
  });
4421
4194
  }
4422
- isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4195
+ Ot() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4423
4196
  new CustomEvent("initpreviewingbldr")
4424
4197
  );
4425
4198
  }
4426
4199
  })(), (() => {
4427
- this.apiKey || logger.error(
4200
+ this.apiKey || P.error(
4428
4201
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4429
4202
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
4430
4203
  })();
@@ -4470,7 +4243,7 @@ font-weight: ${s};
4470
4243
  }
4471
4244
  },
4472
4245
  unmounted() {
4473
- isBrowser() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4246
+ $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4474
4247
  "builder:component:stateChangeListenerActivated",
4475
4248
  this.emitStateUpdate
4476
4249
  ));
@@ -4542,7 +4315,7 @@ font-weight: ${s};
4542
4315
  this.builderContextSignal.content = t;
4543
4316
  },
4544
4317
  processMessage(e) {
4545
- return createEditorListener({
4318
+ return qe({
4546
4319
  model: this.model,
4547
4320
  trustedHosts: this.trustedHosts,
4548
4321
  callbacks: {
@@ -4556,7 +4329,7 @@ font-weight: ${s};
4556
4329
  });
4557
4330
  },
4558
4331
  animation: (t) => {
4559
- triggerAnimation(t);
4332
+ _e(t);
4560
4333
  },
4561
4334
  contentUpdate: (t) => {
4562
4335
  this.mergeNewContent(t);
@@ -4567,7 +4340,7 @@ font-weight: ${s};
4567
4340
  evaluateJsCode() {
4568
4341
  var t, n;
4569
4342
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
4570
- e && evaluate({
4343
+ e && G({
4571
4344
  code: e,
4572
4345
  context: this.context || {},
4573
4346
  localState: void 0,
@@ -4583,13 +4356,13 @@ font-weight: ${s};
4583
4356
  var t, n;
4584
4357
  if (this.builderContextSignal.content) {
4585
4358
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4586
- _track({
4359
+ de({
4587
4360
  type: "click",
4588
- canTrack: getDefaultCanTrack(this.canTrack),
4361
+ canTrack: Y(this.canTrack),
4589
4362
  contentId: r,
4590
4363
  apiKey: this.apiKey,
4591
4364
  variationId: o !== r ? o : void 0,
4592
- ...getInteractionPropertiesForEvent(e),
4365
+ ..._r(e),
4593
4366
  unique: !this.clicked
4594
4367
  });
4595
4368
  }
@@ -4599,13 +4372,13 @@ font-weight: ${s};
4599
4372
  var t, n;
4600
4373
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4601
4374
  Object.entries(e).forEach(([o, r]) => {
4602
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !isEditing())
4375
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
4603
4376
  return;
4604
4377
  this.httpReqsPending[o] = !0;
4605
4378
  const i = r.replace(
4606
4379
  /{{([^}]+)}}/g,
4607
4380
  (s, l) => String(
4608
- evaluate({
4381
+ G({
4609
4382
  code: l,
4610
4383
  context: this.context || {},
4611
4384
  localState: void 0,
@@ -4615,7 +4388,7 @@ font-weight: ${s};
4615
4388
  })
4616
4389
  )
4617
4390
  );
4618
- fetch$1(i).then((s) => s.json()).then((s) => {
4391
+ Ye(i).then((s) => s.json()).then((s) => {
4619
4392
  this.mergeNewRootState({
4620
4393
  [o]: s
4621
4394
  }), this.httpReqsData[o] = !0;
@@ -4627,12 +4400,12 @@ font-weight: ${s};
4627
4400
  });
4628
4401
  },
4629
4402
  emitStateUpdate() {
4630
- isEditing() && window.dispatchEvent(
4403
+ R() && window.dispatchEvent(
4631
4404
  new CustomEvent(
4632
4405
  "builder:component:stateChange",
4633
4406
  {
4634
4407
  detail: {
4635
- state: fastClone(this.builderContextSignal.rootState),
4408
+ state: pe(this.builderContextSignal.rootState),
4636
4409
  ref: {
4637
4410
  name: this.model
4638
4411
  }
@@ -4642,7 +4415,7 @@ font-weight: ${s};
4642
4415
  );
4643
4416
  },
4644
4417
  elementRef_onIniteditingbldr(e) {
4645
- window.addEventListener("message", this.processMessage), registerInsertMenu(), setupBrowserForEditing({
4418
+ window.addEventListener("message", this.processMessage), an(), Ke({
4646
4419
  ...this.locale ? {
4647
4420
  locale: this.locale
4648
4421
  } : {},
@@ -4656,7 +4429,7 @@ font-weight: ${s};
4656
4429
  this.builderContextSignal.componentInfos
4657
4430
  ).forEach((t) => {
4658
4431
  var o;
4659
- const n = createRegisterComponentMessage(t);
4432
+ const n = Dt(t);
4660
4433
  (o = window.parent) == null || o.postMessage(n, "*");
4661
4434
  }), window.addEventListener(
4662
4435
  "builder:component:stateChangeListenerActivated",
@@ -4667,7 +4440,7 @@ font-weight: ${s};
4667
4440
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4668
4441
  `builder.overrides.${n}`
4669
4442
  ), r = t.get("apiKey") || t.get("builder.space");
4670
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && fetchOneEntry({
4443
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
4671
4444
  model: this.model,
4672
4445
  apiKey: this.apiKey,
4673
4446
  apiVersion: this.builderContextSignal.apiVersion
@@ -4677,52 +4450,52 @@ font-weight: ${s};
4677
4450
  }
4678
4451
  }
4679
4452
  });
4680
- function _sfc_render$4(e, t, n, o, r, i) {
4453
+ function ai(e, t, n, o, r, i) {
4681
4454
  var s, l, a;
4682
- return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
4455
+ return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper), S({
4683
4456
  key: 0,
4684
4457
  ref: "elementRef",
4685
- onClick: (d) => e.onClick(d),
4458
+ onClick: (u) => e.onClick(u),
4686
4459
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
4687
4460
  "builder-model": e.model,
4688
4461
  class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4689
- onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
4690
- onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
4462
+ onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4463
+ onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4691
4464
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4692
- default: withCtx(() => [
4693
- renderSlot(e.$slots, "default")
4465
+ default: N(() => [
4466
+ E(e.$slots, "default")
4694
4467
  ]),
4695
4468
  _: 3
4696
- }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : createCommentVNode("", !0);
4469
+ }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
4697
4470
  }
4698
- const EnableEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]), _sfc_main$3 = defineComponent({
4471
+ const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = f({
4699
4472
  name: "content-styles",
4700
- components: { InlinedStyles: _sfc_main$n },
4473
+ components: { InlinedStyles: ke },
4701
4474
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4702
4475
  data() {
4703
4476
  return {
4704
4477
  injectedStyles: `
4705
- ${getCss({
4478
+ ${ni({
4706
4479
  cssCode: this.cssCode,
4707
4480
  contentId: this.contentId
4708
4481
  })}
4709
- ${getFontCss({
4482
+ ${ti({
4710
4483
  customFonts: this.customFonts
4711
4484
  })}
4712
- ${getDefaultStyles(this.isNestedRender)}
4485
+ ${ri(this.isNestedRender)}
4713
4486
  `.trim()
4714
4487
  };
4715
4488
  }
4716
4489
  });
4717
- function _sfc_render$3(e, t, n, o, r, i) {
4718
- const s = resolveComponent("InlinedStyles");
4719
- return openBlock(), createBlock(s, {
4490
+ function di(e, t, n, o, r, i) {
4491
+ const s = y("InlinedStyles");
4492
+ return c(), g(s, {
4720
4493
  id: "builderio-content",
4721
4494
  styles: e.injectedStyles,
4722
4495
  nonce: e.nonce
4723
4496
  }, null, 8, ["styles", "nonce"]);
4724
4497
  }
4725
- const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]), getRootStateInitialValue = ({
4498
+ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4726
4499
  content: e,
4727
4500
  data: t,
4728
4501
  locale: n
@@ -4739,7 +4512,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4739
4512
  locale: n
4740
4513
  } : {}
4741
4514
  };
4742
- }, getContentInitialValue = ({
4515
+ }, mi = ({
4743
4516
  content: e,
4744
4517
  data: t
4745
4518
  }) => e ? {
@@ -4749,14 +4522,14 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4749
4522
  ...t
4750
4523
  },
4751
4524
  meta: e == null ? void 0 : e.meta
4752
- } : void 0, wrapComponentRef = markRaw, _sfc_main$2 = defineComponent({
4525
+ } : void 0, hi = ut, fi = f({
4753
4526
  name: "content-component",
4754
4527
  components: {
4755
- EnableEditor,
4756
- InlinedScript: _sfc_main$5,
4757
- ContentStyles,
4758
- Blocks,
4759
- DynamicDiv
4528
+ EnableEditor: li,
4529
+ InlinedScript: st,
4530
+ ContentStyles: ui,
4531
+ Blocks: M,
4532
+ DynamicDiv: Q
4760
4533
  },
4761
4534
  props: [
4762
4535
  "content",
@@ -4783,32 +4556,32 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4783
4556
  data() {
4784
4557
  var e, t, n, o;
4785
4558
  return {
4786
- scriptStr: getUpdateVariantVisibilityScript({
4559
+ scriptStr: Qr({
4787
4560
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4788
4561
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4789
4562
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4790
4563
  contentId: (t = this.content) == null ? void 0 : t.id
4791
4564
  }),
4792
4565
  registeredComponents: [
4793
- ...getDefaultRegisteredComponents(),
4566
+ ...Re(),
4794
4567
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4795
4568
  ].reduce(
4796
4569
  (r, { component: i, ...s }) => ({
4797
4570
  ...r,
4798
4571
  [s.name]: {
4799
- component: wrapComponentRef(i),
4800
- ...serializeIncludingFunctions(s)
4572
+ component: hi(i),
4573
+ ...ee(s)
4801
4574
  }
4802
4575
  }),
4803
4576
  {}
4804
4577
  ),
4805
4578
  builderContextSignal: {
4806
- content: getContentInitialValue({
4579
+ content: mi({
4807
4580
  content: this.content,
4808
4581
  data: this.data
4809
4582
  }),
4810
4583
  localState: void 0,
4811
- rootState: getRootStateInitialValue({
4584
+ rootState: pi({
4812
4585
  content: this.content,
4813
4586
  data: this.data,
4814
4587
  locale: this.locale
@@ -4819,12 +4592,12 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4819
4592
  apiKey: this.apiKey,
4820
4593
  apiVersion: this.apiVersion,
4821
4594
  componentInfos: [
4822
- ...getDefaultRegisteredComponents(),
4595
+ ...Re(),
4823
4596
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4824
4597
  ].reduce(
4825
4598
  (r, { component: i, ...s }) => ({
4826
4599
  ...r,
4827
- [s.name]: serializeIncludingFunctions(s)
4600
+ [s.name]: ee(s)
4828
4601
  }),
4829
4602
  {}
4830
4603
  ),
@@ -4833,13 +4606,13 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4833
4606
  BlocksWrapperProps: this.blocksWrapperProps || {},
4834
4607
  nonce: this.nonce || ""
4835
4608
  },
4836
- TARGET
4609
+ TARGET: x
4837
4610
  };
4838
4611
  },
4839
4612
  provide() {
4840
4613
  const e = this;
4841
4614
  return {
4842
- [ComponentsContext.key]: {
4615
+ [Ae.key]: {
4843
4616
  registeredComponents: e.registeredComponents
4844
4617
  }
4845
4618
  };
@@ -4850,9 +4623,9 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4850
4623
  }
4851
4624
  }
4852
4625
  });
4853
- function _sfc_render$2(e, t, n, o, r, i) {
4854
- const s = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4855
- return openBlock(), createBlock(d, mergeProps({
4626
+ function bi(e, t, n, o, r, i) {
4627
+ const s = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
4628
+ return c(), g(u, S({
4856
4629
  nonce: e.nonce,
4857
4630
  content: e.content,
4858
4631
  data: e.data,
@@ -4868,25 +4641,25 @@ function _sfc_render$2(e, t, n, o, r, i) {
4868
4641
  contentWrapperProps: e.contentWrapperProps,
4869
4642
  trustedHosts: e.trustedHosts
4870
4643
  }, {}), {
4871
- default: withCtx(() => {
4872
- var p, c, u, f, m, b, C;
4644
+ default: N(() => {
4645
+ var h, d, p, k, v, F, X;
4873
4646
  return [
4874
- e.isSsrAbTest ? (openBlock(), createBlock(s, {
4647
+ e.isSsrAbTest ? (c(), g(s, {
4875
4648
  key: 0,
4876
4649
  id: "builderio-variant-visibility",
4877
4650
  scriptStr: e.scriptStr,
4878
4651
  nonce: e.nonce || ""
4879
- }, null, 8, ["scriptStr", "nonce"])) : createCommentVNode("", !0),
4880
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(l, {
4652
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
4653
+ e.TARGET !== "reactNative" ? (c(), g(l, {
4881
4654
  key: 1,
4882
4655
  nonce: e.nonce || "",
4883
4656
  isNestedRender: e.isNestedRender,
4884
- contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
4885
- cssCode: (u = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
4886
- customFonts: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4887
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : createCommentVNode("", !0),
4888
- createVNode(a, {
4889
- blocks: (C = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : C.blocks,
4657
+ contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4658
+ cssCode: (p = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : p.cssCode,
4659
+ customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
4660
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
4661
+ I(a, {
4662
+ blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4890
4663
  context: e.builderContextSignal,
4891
4664
  registeredComponents: e.registeredComponents,
4892
4665
  linkComponent: e.linkComponent
@@ -4896,12 +4669,12 @@ function _sfc_render$2(e, t, n, o, r, i) {
4896
4669
  _: 1
4897
4670
  }, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4898
4671
  }
4899
- const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]), _sfc_main$1 = defineComponent({
4672
+ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4900
4673
  name: "content-variants",
4901
4674
  components: {
4902
- InlinedScript: _sfc_main$5,
4903
- InlinedStyles: _sfc_main$n,
4904
- ContentComponent
4675
+ InlinedScript: st,
4676
+ InlinedStyles: ke,
4677
+ ContentComponent: gi
4905
4678
  },
4906
4679
  props: [
4907
4680
  "canTrack",
@@ -4925,13 +4698,13 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4925
4698
  ],
4926
4699
  data() {
4927
4700
  return {
4928
- shouldRenderVariants: checkShouldRenderVariants({
4929
- canTrack: getDefaultCanTrack(this.canTrack),
4701
+ shouldRenderVariants: zr({
4702
+ canTrack: Y(this.canTrack),
4930
4703
  content: this.content
4931
4704
  }),
4932
- TARGET,
4933
- getInitVariantsFnsScriptString,
4934
- getVariants
4705
+ TARGET: x,
4706
+ getInitVariantsFnsScriptString: Gr,
4707
+ getVariants: Z
4935
4708
  };
4936
4709
  },
4937
4710
  mounted() {
@@ -4939,8 +4712,8 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4939
4712
  computed: {
4940
4713
  updateCookieAndStylesScriptStr() {
4941
4714
  var e;
4942
- return getUpdateCookieAndStylesScript(
4943
- getVariants(this.content).map((t) => ({
4715
+ return Yr(
4716
+ Z(this.content).map((t) => ({
4944
4717
  id: t.testVariationId,
4945
4718
  testRatio: t.testRatio
4946
4719
  })),
@@ -4948,45 +4721,45 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4948
4721
  );
4949
4722
  },
4950
4723
  hideVariantsStyleString() {
4951
- return getVariants(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4724
+ return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4952
4725
  },
4953
4726
  defaultContent() {
4954
4727
  var e;
4955
4728
  return this.shouldRenderVariants ? {
4956
4729
  ...this.content,
4957
4730
  testVariationId: (e = this.content) == null ? void 0 : e.id
4958
- } : handleABTestingSync({
4731
+ } : mn({
4959
4732
  item: this.content,
4960
- canTrack: getDefaultCanTrack(this.canTrack)
4733
+ canTrack: Y(this.canTrack)
4961
4734
  });
4962
4735
  }
4963
4736
  }
4964
4737
  });
4965
- function _sfc_render$1(e, t, n, o, r, i) {
4966
- const s = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4967
- return openBlock(), createElementBlock(Fragment$1, null, [
4968
- !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
4738
+ function ki(e, t, n, o, r, i) {
4739
+ const s = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
4740
+ return c(), m(T, null, [
4741
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(s, {
4969
4742
  key: 0,
4970
4743
  id: "builderio-init-variants-fns",
4971
4744
  scriptStr: e.getInitVariantsFnsScriptString(),
4972
4745
  nonce: e.nonce || ""
4973
- }, null, 8, ["scriptStr", "nonce"])) : createCommentVNode("", !0),
4974
- e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
4975
- createVNode(l, {
4746
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
4747
+ e.shouldRenderVariants ? (c(), m(T, { key: 1 }, [
4748
+ I(l, {
4976
4749
  id: "builderio-variants",
4977
4750
  styles: e.hideVariantsStyleString,
4978
4751
  nonce: e.nonce || ""
4979
4752
  }, null, 8, ["styles", "nonce"]),
4980
- createVNode(s, {
4753
+ I(s, {
4981
4754
  id: "builderio-variants-visibility",
4982
4755
  scriptStr: e.updateCookieAndStylesScriptStr,
4983
4756
  nonce: e.nonce || ""
4984
4757
  }, null, 8, ["scriptStr", "nonce"]),
4985
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(a, mergeProps({
4986
- key: d.testVariationId,
4758
+ (c(!0), m(T, null, V(e.getVariants(e.content), (u, h) => (c(), g(a, S({
4759
+ key: u.testVariationId,
4987
4760
  isNestedRender: e.isNestedRender,
4988
4761
  nonce: e.nonce,
4989
- content: d,
4762
+ content: u,
4990
4763
  showContent: !1,
4991
4764
  model: e.model,
4992
4765
  data: e.data,
@@ -5005,8 +4778,8 @@ function _sfc_render$1(e, t, n, o, r, i) {
5005
4778
  contentWrapperProps: e.contentWrapperProps,
5006
4779
  trustedHosts: e.trustedHosts
5007
4780
  }, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5008
- ], 64)) : createCommentVNode("", !0),
5009
- createVNode(a, mergeProps({
4781
+ ], 64)) : C("", !0),
4782
+ I(a, S({
5010
4783
  nonce: e.nonce,
5011
4784
  isNestedRender: e.isNestedRender,
5012
4785
  content: e.defaultContent,
@@ -5032,13 +4805,13 @@ function _sfc_render$1(e, t, n, o, r, i) {
5032
4805
  }), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5033
4806
  ], 64);
5034
4807
  }
5035
- const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]), fetchSymbolContent = async ({
4808
+ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Ci = async ({
5036
4809
  builderContextValue: e,
5037
4810
  symbol: t
5038
4811
  }) => {
5039
4812
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5040
4813
  (e != null && e.apiKey))
5041
- return fetchOneEntry({
4814
+ return be({
5042
4815
  model: t.model,
5043
4816
  apiKey: e.apiKey,
5044
4817
  apiVersion: e.apiVersion,
@@ -5048,11 +4821,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5048
4821
  }
5049
4822
  }
5050
4823
  }).catch((n) => {
5051
- logger.error("Could not fetch symbol content: ", n);
4824
+ P.error("Could not fetch symbol content: ", n);
5052
4825
  });
5053
- }, _sfc_main = defineComponent({
4826
+ }, Si = f({
5054
4827
  name: "builder-symbol",
5055
- components: { ContentVariants, DynamicDiv },
4828
+ components: { ContentVariants: vi, DynamicDiv: Q },
5056
4829
  props: [
5057
4830
  "symbol",
5058
4831
  "attributes",
@@ -5064,7 +4837,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5064
4837
  ],
5065
4838
  data() {
5066
4839
  var e;
5067
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs };
4840
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
5068
4841
  },
5069
4842
  mounted() {
5070
4843
  this.setContent();
@@ -5087,7 +4860,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5087
4860
  className() {
5088
4861
  var e, t;
5089
4862
  return [
5090
- this.attributes[getClassPropName()],
4863
+ this.attributes[_()],
5091
4864
  "builder-symbol",
5092
4865
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5093
4866
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5101,7 +4874,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5101
4874
  },
5102
4875
  methods: {
5103
4876
  setContent() {
5104
- this.contentToUse || fetchSymbolContent({
4877
+ this.contentToUse || Ci({
5105
4878
  symbol: this.symbol,
5106
4879
  builderContextValue: this.builderContext
5107
4880
  }).then((e) => {
@@ -5110,11 +4883,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5110
4883
  }
5111
4884
  }
5112
4885
  });
5113
- function _sfc_render(e, t, n, o, r, i) {
5114
- var l, a, d, p, c;
5115
- const s = resolveComponent("ContentVariants");
5116
- return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5117
- createVNode(s, {
4886
+ function Ti(e, t, n, o, r, i) {
4887
+ var l, a, u, h, d;
4888
+ const s = y("ContentVariants");
4889
+ return c(), m("div", S({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4890
+ I(s, {
5118
4891
  nonce: e.builderContext.nonce,
5119
4892
  isNestedRender: !0,
5120
4893
  apiVersion: e.builderContext.apiVersion,
@@ -5127,10 +4900,10 @@ function _sfc_render(e, t, n, o, r, i) {
5127
4900
  data: {
5128
4901
  ...(a = e.symbol) == null ? void 0 : a.data,
5129
4902
  ...e.builderContext.localState,
5130
- ...(p = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : p.state
4903
+ ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
5131
4904
  },
5132
4905
  canTrack: e.builderContext.canTrack,
5133
- model: (c = e.symbol) == null ? void 0 : c.model,
4906
+ model: (d = e.symbol) == null ? void 0 : d.model,
5134
4907
  content: e.contentToUse,
5135
4908
  linkComponent: e.builderLinkComponent,
5136
4909
  blocksWrapper: e.blocksWrapper,
@@ -5138,44 +4911,41 @@ function _sfc_render(e, t, n, o, r, i) {
5138
4911
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5139
4912
  ], 16);
5140
4913
  }
5141
- const Symbol$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
4914
+ const wi = /* @__PURE__ */ b(Si, [["render", Ti]]);
5142
4915
  export {
5143
- fetchEntries as A,
5144
- Block as B,
5145
- Columns as C,
5146
- fetchOneEntry as D,
5147
- dynamicRenderer as E,
5148
- Fragment as F,
5149
- block as G,
5150
- Image as I,
5151
- Section as S,
5152
- TARGET as T,
5153
- Video as V,
5154
- _sfc_main$n as _,
5155
- createCssClass as a,
5156
- getMaxWidthQueryForSize as b,
5157
- checkIsDefined as c,
5158
- camelToKebabCase as d,
5159
- _export_sfc as e,
5160
- evaluate as f,
5161
- getSizesForBreakpoints as g,
5162
- getStyle as h,
5163
- getClassPropName as i,
5164
- BuilderContext as j,
5165
- Button as k,
5166
- Symbol$1 as l,
5167
- Text as m,
5168
- Blocks as n,
5169
- ContentVariants as o,
5170
- isEditing as p,
5171
- isPreviewing as q,
5172
- createRegisterComponentMessage as r,
5173
- register as s,
5174
- setEditorSettings as t,
5175
- getBuilderSearchParams as u,
5176
- track as v,
5177
- wrapComponentRef as w,
5178
- subscribeToEditor as x,
5179
- fetchBuilderProps as y,
5180
- _processContentResult as z
4916
+ Ni as A,
4917
+ ye as B,
4918
+ _n as C,
4919
+ no as F,
4920
+ uo as I,
4921
+ ho as S,
4922
+ Mo as T,
4923
+ Hr as V,
4924
+ ke as _,
4925
+ Fi as a,
4926
+ ge as b,
4927
+ Ai as c,
4928
+ b as d,
4929
+ G as e,
4930
+ Wi as f,
4931
+ Yn as g,
4932
+ _ as h,
4933
+ le as i,
4934
+ It as j,
4935
+ wi as k,
4936
+ M as l,
4937
+ vi as m,
4938
+ Ot as n,
4939
+ Dt as o,
4940
+ Ne as p,
4941
+ xi as q,
4942
+ Ut as r,
4943
+ Ei as s,
4944
+ Pi as t,
4945
+ Vi as u,
4946
+ vn as v,
4947
+ hi as w,
4948
+ Cn as x,
4949
+ be as y,
4950
+ Bi as z
5181
4951
  };