@builder.io/sdk-vue 0.13.1 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/lib/browser/block-styles-5NGYAhBS.cjs +1 -0
  2. package/lib/browser/{block-styles.f235a6b3.js → block-styles-jDSz7IPu.js} +15 -15
  3. package/lib/browser/{block-wrapper.5c142781.cjs → block-wrapper-aYMueUMD.cjs} +1 -1
  4. package/lib/browser/{block-wrapper.0326cf92.js → block-wrapper-i3S3k3_c.js} +10 -10
  5. package/lib/browser/blocks/button/button.vue.d.ts +1 -1
  6. package/lib/browser/blocks/columns/columns.types.d.ts +2 -2
  7. package/lib/browser/blocks/columns/columns.vue.d.ts +1 -4
  8. package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -1
  9. package/lib/browser/blocks/embed/embed.vue.d.ts +1 -1
  10. package/lib/browser/blocks/form/form/component-info.d.ts +2 -0
  11. package/lib/browser/blocks/form/form/form.vue.d.ts +112 -0
  12. package/lib/browser/blocks/form/input/component-info.d.ts +2 -0
  13. package/lib/browser/blocks/form/input/input.vue.d.ts +43 -0
  14. package/lib/browser/blocks/form/select/component-info.d.ts +2 -0
  15. package/lib/browser/blocks/form/select/select.vue.d.ts +38 -0
  16. package/lib/browser/blocks/form/submit-button/component-info.d.ts +2 -0
  17. package/lib/browser/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
  18. package/lib/browser/blocks/fragment/fragment.vue.d.ts +1 -1
  19. package/lib/browser/blocks/image/image.vue.d.ts +1 -1
  20. package/lib/browser/blocks/img/img.vue.d.ts +1 -1
  21. package/lib/browser/blocks/section/section.vue.d.ts +1 -1
  22. package/lib/browser/blocks/slot/slot.vue.d.ts +7 -7
  23. package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
  24. package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -4
  25. package/lib/browser/blocks/text/text.vue.d.ts +1 -1
  26. package/lib/browser/blocks/video/video.vue.d.ts +1 -1
  27. package/lib/browser/{component-ref.1182befe.cjs → component-ref-23FBngqj.cjs} +1 -1
  28. package/lib/browser/{component-ref.4425a615.js → component-ref-YzJX0Oul.js} +21 -17
  29. package/lib/browser/components/block/block.vue.d.ts +1 -1
  30. package/lib/browser/components/block/components/block-styles.vue.d.ts +1 -1
  31. package/lib/browser/components/block/components/block-wrapper.vue.d.ts +1 -1
  32. package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  33. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
  34. package/lib/browser/components/block/components/interactive-element.vue.d.ts +2 -1
  35. package/lib/browser/components/block/components/repeated-block.vue.d.ts +1 -1
  36. package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +2 -1
  37. package/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
  38. package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -1
  39. package/lib/browser/components/content/components/styles.vue.d.ts +1 -1
  40. package/lib/browser/components/content/content.types.d.ts +1 -8
  41. package/lib/browser/components/content/content.vue.d.ts +1 -1
  42. package/lib/browser/components/content/contentProps.types.d.ts +7 -0
  43. package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
  44. package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
  45. package/lib/browser/components/inlined-script.vue.d.ts +1 -1
  46. package/lib/browser/components/inlined-styles.vue.d.ts +1 -1
  47. package/lib/browser/constants/extra-components.d.ts +7 -0
  48. package/lib/browser/constants/sdk-version.d.ts +1 -1
  49. package/lib/browser/functions/get-env.d.ts +2 -0
  50. package/lib/browser/functions/get.d.ts +1 -0
  51. package/lib/browser/get-block-properties-KacPzO_o.cjs +1 -0
  52. package/lib/browser/{get-block-properties.73425f09.js → get-block-properties-ZirT3ZGB.js} +19 -20
  53. package/lib/browser/{index.5f9ed15d.js → index-6a_qPbnw.js} +1710 -1055
  54. package/lib/browser/index-7Z8XjtKs.cjs +166 -0
  55. package/lib/browser/index-helpers/blocks-exports.d.ts +2 -2
  56. package/lib/browser/index.cjs +1 -1
  57. package/lib/browser/index.js +26 -27
  58. package/lib/browser/{repeated-block.4b8c3ea0.cjs → repeated-block-70kCyQ_l.cjs} +1 -1
  59. package/lib/browser/repeated-block-hRYVKXrX.js +35 -0
  60. package/lib/browser/style.css +1 -1
  61. package/lib/browser/types/builder-props.d.ts +1 -1
  62. package/lib/browser/types/enforced-partials.d.ts +1 -26
  63. package/lib/browser/types/input.d.ts +1 -0
  64. package/lib/browser/types/typescript.d.ts +0 -3
  65. package/lib/edge/block-styles--T_GAm5-.cjs +1 -0
  66. package/lib/edge/{block-styles.c430e392.js → block-styles-Tjp0oeui.js} +18 -18
  67. package/lib/edge/{block-wrapper.53b24038.cjs → block-wrapper-K-I0ddom.cjs} +1 -1
  68. package/lib/{node/block-wrapper.779562b4.js → edge/block-wrapper-MgeL6r_A.js} +9 -10
  69. package/lib/edge/blocks/button/button.vue.d.ts +1 -1
  70. package/lib/edge/blocks/columns/columns.types.d.ts +2 -2
  71. package/lib/edge/blocks/columns/columns.vue.d.ts +1 -4
  72. package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -1
  73. package/lib/edge/blocks/embed/embed.vue.d.ts +1 -1
  74. package/lib/edge/blocks/form/form/component-info.d.ts +2 -0
  75. package/lib/edge/blocks/form/form/form.vue.d.ts +112 -0
  76. package/lib/edge/blocks/form/input/component-info.d.ts +2 -0
  77. package/lib/edge/blocks/form/input/input.vue.d.ts +43 -0
  78. package/lib/edge/blocks/form/select/component-info.d.ts +2 -0
  79. package/lib/edge/blocks/form/select/select.vue.d.ts +38 -0
  80. package/lib/edge/blocks/form/submit-button/component-info.d.ts +2 -0
  81. package/lib/edge/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
  82. package/lib/edge/blocks/fragment/fragment.vue.d.ts +1 -1
  83. package/lib/edge/blocks/image/image.vue.d.ts +1 -1
  84. package/lib/edge/blocks/img/img.vue.d.ts +1 -1
  85. package/lib/edge/blocks/section/section.vue.d.ts +1 -1
  86. package/lib/edge/blocks/slot/slot.vue.d.ts +7 -7
  87. package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
  88. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -4
  89. package/lib/edge/blocks/text/text.vue.d.ts +1 -1
  90. package/lib/edge/blocks/video/video.vue.d.ts +1 -1
  91. package/lib/edge/{component-ref.ebab0bd9.js → component-ref-Oo-dR5xV.js} +21 -17
  92. package/lib/edge/{component-ref.62a7f1bd.cjs → component-ref-iibFypv7.cjs} +1 -1
  93. package/lib/edge/components/block/block.vue.d.ts +1 -1
  94. package/lib/edge/components/block/components/block-styles.vue.d.ts +1 -1
  95. package/lib/edge/components/block/components/block-wrapper.vue.d.ts +1 -1
  96. package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  97. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
  98. package/lib/edge/components/block/components/interactive-element.vue.d.ts +2 -1
  99. package/lib/edge/components/block/components/repeated-block.vue.d.ts +1 -1
  100. package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +2 -1
  101. package/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
  102. package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -1
  103. package/lib/edge/components/content/components/styles.vue.d.ts +1 -1
  104. package/lib/edge/components/content/content.types.d.ts +1 -8
  105. package/lib/edge/components/content/content.vue.d.ts +1 -1
  106. package/lib/edge/components/content/contentProps.types.d.ts +7 -0
  107. package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
  108. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
  109. package/lib/edge/components/inlined-script.vue.d.ts +1 -1
  110. package/lib/edge/components/inlined-styles.vue.d.ts +1 -1
  111. package/lib/edge/constants/extra-components.d.ts +7 -0
  112. package/lib/edge/constants/sdk-version.d.ts +1 -1
  113. package/lib/edge/functions/get-env.d.ts +2 -0
  114. package/lib/edge/functions/get.d.ts +1 -0
  115. package/lib/{node/get-block-properties.5a8121c0.js → edge/get-block-properties-BKnsvu-2.js} +19 -20
  116. package/lib/edge/get-block-properties-q52zAZuL.cjs +1 -0
  117. package/lib/edge/{index.ae2d13a8.js → index-FjGYEtq6.js} +2574 -1919
  118. package/lib/edge/index-helpers/blocks-exports.d.ts +2 -2
  119. package/lib/edge/index-oq0qBISZ.cjs +186 -0
  120. package/lib/edge/index.cjs +1 -1
  121. package/lib/edge/index.js +25 -26
  122. package/lib/{browser/repeated-block.ea7178d4.js → edge/repeated-block-IVuHJhMQ.js} +4 -5
  123. package/lib/edge/repeated-block-IrS130V6.cjs +1 -0
  124. package/lib/edge/style.css +1 -1
  125. package/lib/edge/types/builder-props.d.ts +1 -1
  126. package/lib/edge/types/enforced-partials.d.ts +1 -26
  127. package/lib/edge/types/input.d.ts +1 -0
  128. package/lib/edge/types/typescript.d.ts +0 -3
  129. package/lib/node/block-styles-1bGjM-mF.cjs +1 -0
  130. package/lib/node/{block-styles.5c506171.js → block-styles-WHZ3oh47.js} +18 -19
  131. package/lib/node/block-wrapper-7G595XQl.cjs +1 -0
  132. package/lib/{edge/block-wrapper.f04e7d06.js → node/block-wrapper-Oi21HLL-.js} +10 -10
  133. package/lib/node/blocks/button/button.vue.d.ts +1 -1
  134. package/lib/node/blocks/columns/columns.types.d.ts +2 -2
  135. package/lib/node/blocks/columns/columns.vue.d.ts +1 -4
  136. package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -1
  137. package/lib/node/blocks/embed/embed.vue.d.ts +1 -1
  138. package/lib/node/blocks/form/form/component-info.d.ts +2 -0
  139. package/lib/node/blocks/form/form/form.vue.d.ts +112 -0
  140. package/lib/node/blocks/form/input/component-info.d.ts +2 -0
  141. package/lib/node/blocks/form/input/input.vue.d.ts +43 -0
  142. package/lib/node/blocks/form/select/component-info.d.ts +2 -0
  143. package/lib/node/blocks/form/select/select.vue.d.ts +38 -0
  144. package/lib/node/blocks/form/submit-button/component-info.d.ts +2 -0
  145. package/lib/node/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
  146. package/lib/node/blocks/fragment/fragment.vue.d.ts +1 -1
  147. package/lib/node/blocks/image/image.vue.d.ts +1 -1
  148. package/lib/node/blocks/img/img.vue.d.ts +1 -1
  149. package/lib/node/blocks/section/section.vue.d.ts +1 -1
  150. package/lib/node/blocks/slot/slot.vue.d.ts +7 -7
  151. package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
  152. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -4
  153. package/lib/node/blocks/text/text.vue.d.ts +1 -1
  154. package/lib/node/blocks/video/video.vue.d.ts +1 -1
  155. package/lib/node/{component-ref.616a1d7e.js → component-ref-6gNNgUIq.js} +22 -19
  156. package/lib/node/component-ref-bBOIZLBr.cjs +1 -0
  157. package/lib/node/components/block/block.vue.d.ts +1 -1
  158. package/lib/node/components/block/components/block-styles.vue.d.ts +1 -1
  159. package/lib/node/components/block/components/block-wrapper.vue.d.ts +1 -1
  160. package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  161. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
  162. package/lib/node/components/block/components/interactive-element.vue.d.ts +2 -1
  163. package/lib/node/components/block/components/repeated-block.vue.d.ts +1 -1
  164. package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +2 -1
  165. package/lib/node/components/blocks/blocks.vue.d.ts +1 -1
  166. package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -1
  167. package/lib/node/components/content/components/styles.vue.d.ts +1 -1
  168. package/lib/node/components/content/content.types.d.ts +1 -8
  169. package/lib/node/components/content/content.vue.d.ts +1 -1
  170. package/lib/node/components/content/contentProps.types.d.ts +7 -0
  171. package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
  172. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
  173. package/lib/node/components/inlined-script.vue.d.ts +1 -1
  174. package/lib/node/components/inlined-styles.vue.d.ts +1 -1
  175. package/lib/node/constants/extra-components.d.ts +7 -0
  176. package/lib/node/constants/sdk-version.d.ts +1 -1
  177. package/lib/node/functions/get-env.d.ts +2 -0
  178. package/lib/node/functions/get.d.ts +1 -0
  179. package/lib/{edge/get-block-properties.3eea9a11.js → node/get-block-properties-LsQPb5mK.js} +19 -20
  180. package/lib/node/get-block-properties-saGQjgeQ.cjs +1 -0
  181. package/lib/node/{index.f804c64d.js → index-TgZujUqz.js} +1131 -474
  182. package/lib/node/index-helpers/blocks-exports.d.ts +2 -2
  183. package/lib/node/index-mB-x2rNA.cjs +206 -0
  184. package/lib/node/index.cjs +1 -1
  185. package/lib/node/index.js +27 -29
  186. package/lib/node/{repeated-block.4fe417ba.js → repeated-block-4ZvFRl8H.js} +4 -5
  187. package/lib/node/repeated-block-ghBGljjL.cjs +1 -0
  188. package/lib/node/style.css +1 -1
  189. package/lib/node/types/builder-props.d.ts +1 -1
  190. package/lib/node/types/enforced-partials.d.ts +1 -26
  191. package/lib/node/types/input.d.ts +1 -0
  192. package/lib/node/types/typescript.d.ts +0 -3
  193. package/package.json +5 -5
  194. package/lib/browser/block-styles.443192e0.cjs +0 -1
  195. package/lib/browser/blocks/form/component-info.d.ts +0 -2
  196. package/lib/browser/blocks/input/component-info.d.ts +0 -2
  197. package/lib/browser/blocks/select/component-info.d.ts +0 -2
  198. package/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
  199. package/lib/browser/get-block-properties.75a4033c.cjs +0 -1
  200. package/lib/browser/index.ea2f8191.cjs +0 -165
  201. package/lib/edge/block-styles.ae042612.cjs +0 -1
  202. package/lib/edge/blocks/form/component-info.d.ts +0 -2
  203. package/lib/edge/blocks/input/component-info.d.ts +0 -2
  204. package/lib/edge/blocks/select/component-info.d.ts +0 -2
  205. package/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
  206. package/lib/edge/get-block-properties.ef38da5e.cjs +0 -1
  207. package/lib/edge/index.6a49244b.cjs +0 -185
  208. package/lib/edge/repeated-block.391f9aec.cjs +0 -1
  209. package/lib/edge/repeated-block.8c46a7c6.js +0 -34
  210. package/lib/node/block-styles.b0758e84.cjs +0 -1
  211. package/lib/node/block-wrapper.4b4b32dd.cjs +0 -1
  212. package/lib/node/blocks/form/component-info.d.ts +0 -2
  213. package/lib/node/blocks/input/component-info.d.ts +0 -2
  214. package/lib/node/blocks/select/component-info.d.ts +0 -2
  215. package/lib/node/blocks/submit-button/component-info.d.ts +0 -2
  216. package/lib/node/component-ref.471ae470.cjs +0 -1
  217. package/lib/node/get-block-properties.310a39f2.cjs +0 -1
  218. package/lib/node/index.9cc8fd23.cjs +0 -205
  219. package/lib/node/repeated-block.fc61b1ce.cjs +0 -1
@@ -1,48 +1,48 @@
1
1
  import "./style.css";
2
- import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as R, createBlock as k, resolveDynamicComponent as L, mergeProps as C, toHandlers as O, withCtx as B, renderSlot as E, resolveComponent as g, createTextVNode as rt, toDisplayString as st, defineAsyncComponent as M, createVNode as P, renderList as F, createCommentVNode as v, h as Ie, createElementVNode as X, normalizeStyle as Z, normalizeClass as $e, markRaw as it } from "vue";
3
- const at = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && at.has(e.toLowerCase());
4
- function G(e = {}, t, n) {
2
+ import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as I, createBlock as g, resolveDynamicComponent as D, mergeProps as C, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as it, toDisplayString as _, defineAsyncComponent as q, createVNode as V, renderList as O, createCommentVNode as v, h as Te, createElementVNode as Z, normalizeStyle as ee, normalizeClass as Re, markRaw as at } from "vue";
3
+ const lt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && lt.has(e.toLowerCase());
4
+ function F(e = {}, t, n) {
5
5
  const o = {};
6
- for (const r in e) {
7
- if (!e[r] || n && !r.startsWith(t))
6
+ for (const s in e) {
7
+ if (!e[s] || n && !s.startsWith(t))
8
8
  continue;
9
- const s = n ? r.replace(t, "") : r;
10
- o[s] = e[r];
9
+ const r = n ? s.replace(t, "") : s;
10
+ o[r] = e[s];
11
11
  }
12
12
  return o;
13
13
  }
14
- const ct = f({
14
+ const dt = f({
15
15
  name: "dynamic-renderer",
16
16
  props: ["attributes", "actionAttributes", "TagName"],
17
17
  data() {
18
- return { isEmptyElement: lt };
18
+ return { isEmptyElement: ct };
19
19
  }
20
- }), b = (e, t) => {
20
+ }), y = (e, t) => {
21
21
  const n = e.__vccOpts || e;
22
- for (const [o, r] of t)
23
- n[o] = r;
22
+ for (const [o, s] of t)
23
+ n[o] = s;
24
24
  return n;
25
25
  };
26
- function dt(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (d(), k(L(e.TagName), C({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), m(R, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), k(L(e.TagName), C({ key: 0 }, e.attributes, O(e.actionAttributes)), {
26
+ function ut(e, t, n, o, s, r) {
27
+ return e.isEmptyElement(e.TagName) ? (u(), g(D(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (u(), g(D(e.TagName), C({ key: 0 }, e.attributes, E(e.actionAttributes)), {
29
29
  default: B(() => [
30
- E(e.$slots, "default")
30
+ P(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), k(L(e.TagName), C({ key: 1 }, e.attributes, O(e.actionAttributes)), {
33
+ }, 16)) : (u(), g(D(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), {
34
34
  default: B(() => [
35
- E(e.$slots, "default")
35
+ P(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const oe = /* @__PURE__ */ b(ct, [["render", dt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]), Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const se = /* @__PURE__ */ y(dt, [["render", ut]]), qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: oe
44
- }, Symbol.toStringTag, { value: "Module" })), T = "vue", re = () => {
45
- switch (T) {
43
+ default: se
44
+ }, Symbol.toStringTag, { value: "Module" })), A = "vue", re = () => {
45
+ switch (A) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -53,9 +53,9 @@ const oe = /* @__PURE__ */ b(ct, [["render", dt], ["__file", "/home/runner/work/
53
53
  case "qwik":
54
54
  return "class";
55
55
  }
56
- }, ut = f({
56
+ }, pt = f({
57
57
  name: "builder-button",
58
- components: { DynamicRenderer: oe },
58
+ components: { DynamicRenderer: se },
59
59
  props: [
60
60
  "link",
61
61
  "builderLinkComponent",
@@ -64,12 +64,12 @@ const oe = /* @__PURE__ */ b(ct, [["render", dt], ["__file", "/home/runner/work/
64
64
  "text"
65
65
  ],
66
66
  data() {
67
- return { getClassPropName: re, filterAttrs: G };
67
+ return { getClassPropName: re, filterAttrs: F };
68
68
  }
69
69
  });
70
- function pt(e, t, n, o, r, s) {
71
- const i = g("dynamic-renderer");
72
- return d(), k(i, {
70
+ function mt(e, t, n, o, s, r) {
71
+ const i = k("dynamic-renderer");
72
+ return u(), g(i, {
73
73
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
74
74
  attributes: {
75
75
  ...e.filterAttrs(e.attributes, "v-on:", !1),
@@ -85,12 +85,12 @@ function pt(e, t, n, o, r, s) {
85
85
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
86
86
  }, {
87
87
  default: B(() => [
88
- rt(st(e.text), 1)
88
+ it(_(e.text), 1)
89
89
  ]),
90
90
  _: 1
91
91
  }, 8, ["TagName", "attributes", "actionAttributes"]);
92
92
  }
93
- const mt = /* @__PURE__ */ b(ut, [["render", pt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), ht = Symbol(), ee = {
93
+ const ht = /* @__PURE__ */ y(pt, [["render", mt]]), ft = Symbol(), te = {
94
94
  Builder: {
95
95
  content: null,
96
96
  context: {},
@@ -105,42 +105,45 @@ const mt = /* @__PURE__ */ b(ut, [["render", pt], ["__file", "/home/runner/work/
105
105
  BlocksWrapper: "div",
106
106
  BlocksWrapperProps: {}
107
107
  },
108
- key: ht
109
- }, ft = Symbol(), Re = {
110
- Components: { registeredComponents: {} },
111
108
  key: ft
109
+ }, bt = Symbol(), Ee = {
110
+ Components: { registeredComponents: {} },
111
+ key: bt
112
112
  };
113
- function bt(e) {
113
+ function gt(e) {
114
114
  var t;
115
115
  return {
116
116
  ...(t = e.component) == null ? void 0 : t.options,
117
117
  ...e.options,
118
+ /**
119
+ * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
120
+ */
118
121
  builderBlock: e
119
122
  };
120
123
  }
121
- const D = "[Builder.io]: ", w = {
122
- log: (...e) => console.log(D, ...e),
123
- error: (...e) => console.error(D, ...e),
124
- warn: (...e) => console.warn(D, ...e),
125
- debug: (...e) => console.debug(D, ...e)
124
+ const z = "[Builder.io]: ", $ = {
125
+ log: (...e) => console.log(z, ...e),
126
+ error: (...e) => console.error(z, ...e),
127
+ warn: (...e) => console.warn(z, ...e),
128
+ debug: (...e) => console.debug(z, ...e)
126
129
  };
127
- function y() {
130
+ function w() {
128
131
  return typeof window < "u" && typeof document < "u";
129
132
  }
130
- function gt() {
131
- return y() && window.self !== window.top;
133
+ function yt() {
134
+ return w() && window.self !== window.top;
132
135
  }
133
- function A() {
134
- return gt() && (T === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
136
+ function T() {
137
+ return yt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
135
138
  }
136
139
  const kt = () => {
137
- if (y()) {
140
+ if (w()) {
138
141
  const e = new URL(location.href);
139
142
  return e.pathname === "" && (e.pathname = "/"), e;
140
143
  } else
141
144
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
142
- }, yt = () => typeof navigator == "object" && navigator.userAgent || "", Te = () => {
143
- const e = yt(), t = {
145
+ }, St = () => typeof navigator == "object" && navigator.userAgent || "", Pe = () => {
146
+ const e = St(), t = {
144
147
  Android() {
145
148
  return e.match(/Android/i);
146
149
  },
@@ -157,7 +160,7 @@ const kt = () => {
157
160
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
158
161
  },
159
162
  any() {
160
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || T === "reactNative";
163
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
161
164
  }
162
165
  }, n = e.match(/Tablet|iPad/i), o = kt();
163
166
  return {
@@ -173,165 +176,166 @@ const kt = () => {
173
176
  }) => Object.entries({
174
177
  state: o,
175
178
  Builder: e,
179
+ // legacy
176
180
  builder: e,
177
181
  context: t,
178
182
  event: n
179
- }), St = () => ({
180
- isEditing: A(),
181
- isBrowser: y(),
182
- isServer: !y(),
183
- getUserAttributes: () => Te()
184
- }), Ct = (e, {
183
+ }), Ct = () => ({
184
+ isEditing: T(),
185
+ isBrowser: w(),
186
+ isServer: !w(),
187
+ getUserAttributes: () => Pe()
188
+ }), wt = (e, {
185
189
  isExpression: t = !0
186
- }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, me = ({
190
+ }) => /* 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, fe = ({
187
191
  code: e,
188
192
  builder: t,
189
193
  context: n,
190
194
  event: o,
191
- localState: r,
192
- rootSetState: s,
195
+ localState: s,
196
+ rootSetState: r,
193
197
  rootState: i
194
198
  }) => {
195
199
  const a = vt({
196
200
  builder: t,
197
201
  context: n,
198
202
  event: o,
199
- state: Ee({
203
+ state: Ae({
200
204
  rootState: i,
201
- localState: r,
202
- rootSetState: s
205
+ localState: s,
206
+ rootSetState: r
203
207
  })
204
208
  });
205
209
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
206
210
  };
207
- function Ee({
211
+ function Ae({
208
212
  rootState: e,
209
213
  localState: t,
210
214
  rootSetState: n
211
215
  }) {
212
216
  return new Proxy(e, {
213
- get: (o, r) => {
214
- if (t && r in t)
215
- return t[r];
216
- const s = o[r];
217
- return typeof s == "object" ? Ee({
218
- rootState: s,
217
+ get: (o, s) => {
218
+ if (t && s in t)
219
+ return t[s];
220
+ const r = o[s];
221
+ return typeof r == "object" ? Ae({
222
+ rootState: r,
219
223
  localState: void 0,
220
224
  rootSetState: n ? (i) => {
221
- o[r] = i, n(o);
225
+ o[s] = i, n(o);
222
226
  } : void 0
223
- }) : s;
227
+ }) : r;
224
228
  },
225
- set: (o, r, s) => {
226
- if (t && r in t)
229
+ set: (o, s, r) => {
230
+ if (t && s in t)
227
231
  throw new Error("Writing to local state is not allowed as it is read-only.");
228
- return o[r] = s, n == null || n(o), !0;
232
+ return o[s] = r, n == null || n(o), !0;
229
233
  }
230
234
  });
231
235
  }
232
- const W = (e) => e != null;
233
- function wt() {
236
+ const N = (e) => e != null;
237
+ function It() {
234
238
  var e;
235
- return typeof process < "u" && W((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
239
+ return typeof process < "u" && N((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
236
240
  }
237
- const It = () => {
241
+ const $t = () => {
238
242
  var o;
239
- if (!wt())
243
+ if (!It())
240
244
  return !1;
241
245
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
242
- return e && t && !n ? (w.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;
243
- }, $t = (e) => (y() || It(), me(e));
244
- function q({
246
+ return e && t && !n ? ($.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;
247
+ }, Tt = (e) => (w() || $t(), fe(e));
248
+ function Y({
245
249
  code: e,
246
250
  context: t,
247
251
  localState: n,
248
252
  rootState: o,
249
- rootSetState: r,
250
- event: s,
253
+ rootSetState: s,
254
+ event: r,
251
255
  isExpression: i = !0
252
256
  }) {
253
257
  if (e === "") {
254
- w.warn("Skipping evaluation of empty code block.");
258
+ $.warn("Skipping evaluation of empty code block.");
255
259
  return;
256
260
  }
257
261
  const a = {
258
- code: Ct(e, {
262
+ code: wt(e, {
259
263
  isExpression: i
260
264
  }),
261
- builder: St(),
265
+ builder: Ct(),
262
266
  context: t,
263
- event: s,
264
- rootSetState: r,
267
+ event: r,
268
+ rootSetState: s,
265
269
  rootState: o,
266
270
  localState: n
267
271
  };
268
272
  try {
269
- return $t(a);
273
+ return Tt(a);
270
274
  } catch (l) {
271
- w.error("Failed code evaluation: " + l.message, {
275
+ $.error("Failed code evaluation: " + l.message, {
272
276
  code: e
273
277
  });
274
278
  return;
275
279
  }
276
280
  }
277
- const j = (e) => JSON.parse(JSON.stringify(e)), Rt = (e, t, n) => {
281
+ const j = (e) => JSON.parse(JSON.stringify(e)), xe = (e, t, n) => {
278
282
  if (Object(e) !== e)
279
283
  return e;
280
284
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
281
- return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
285
+ return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
282
286
  };
283
- const Tt = ({
287
+ const Rt = ({
284
288
  block: e,
285
289
  context: t,
286
290
  localState: n,
287
291
  rootState: o,
288
- rootSetState: r
292
+ rootSetState: s
289
293
  }) => {
290
294
  if (!e.bindings)
291
295
  return e;
292
- const s = j(e), i = {
293
- ...s,
296
+ const r = j(e), i = {
297
+ ...r,
294
298
  properties: {
295
- ...s.properties
299
+ ...r.properties
296
300
  },
297
301
  actions: {
298
- ...s.actions
302
+ ...r.actions
299
303
  }
300
304
  };
301
305
  for (const a in e.bindings) {
302
- const l = e.bindings[a], c = q({
306
+ const l = e.bindings[a], d = Y({
303
307
  code: l,
304
308
  localState: n,
305
309
  rootState: o,
306
- rootSetState: r,
310
+ rootSetState: s,
307
311
  context: t
308
312
  });
309
- Rt(i, a, c);
313
+ xe(i, a, d);
310
314
  }
311
315
  return i;
312
316
  };
313
- function Pe({
317
+ function Ve({
314
318
  block: e,
315
319
  context: t,
316
320
  shouldEvaluateBindings: n,
317
321
  localState: o,
318
- rootState: r,
319
- rootSetState: s
322
+ rootState: s,
323
+ rootSetState: r
320
324
  }) {
321
325
  const i = e;
322
- return n ? Tt({
326
+ return n ? Rt({
323
327
  block: i,
324
328
  localState: o,
325
- rootState: r,
326
- rootSetState: s,
329
+ rootState: s,
330
+ rootSetState: r,
327
331
  context: t
328
332
  }) : i;
329
333
  }
330
- const Et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, o]) => {
334
+ const Et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Be = (e) => Object.entries(e).map(([n, o]) => {
331
335
  if (typeof o == "string")
332
336
  return `${Et(n)}: ${o};`;
333
- }).filter(W), Pt = (e) => Ae(e).join(`
334
- `), wr = ({
337
+ }).filter(N), Pt = (e) => Be(e).join(`
338
+ `), zs = ({
335
339
  mediaQuery: e,
336
340
  className: t,
337
341
  styles: n
@@ -348,20 +352,20 @@ function At({
348
352
  }) {
349
353
  return e;
350
354
  }
351
- const Ir = ({
355
+ const Js = ({
352
356
  block: e,
353
357
  context: t
354
- }) => Be(At({
358
+ }) => We(At({
355
359
  style: e.style || {},
356
360
  context: t,
357
361
  block: e
358
362
  }));
359
- function Be(e) {
360
- switch (T) {
363
+ function We(e) {
364
+ switch (A) {
361
365
  case "svelte":
362
366
  case "vue":
363
367
  case "solid":
364
- return Ae(e).join(" ");
368
+ return Be(e).join(" ");
365
369
  case "qwik":
366
370
  case "reactNative":
367
371
  case "react":
@@ -369,147 +373,147 @@ function Be(e) {
369
373
  return e;
370
374
  }
371
375
  }
372
- function Bt(e, t, n = {}) {
373
- let o, r, s, i = null, a = 0;
376
+ function xt(e, t, n = {}) {
377
+ let o, s, r, i = null, a = 0;
374
378
  const l = function() {
375
- a = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
379
+ a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
376
380
  };
377
381
  return function() {
378
- const c = Date.now();
379
- !a && n.leading === !1 && (a = c);
380
- const u = t - (c - a);
381
- return o = this, r = arguments, u <= 0 || u > t ? (i && (clearTimeout(i), i = null), a = c, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, u)), s;
382
+ const d = Date.now();
383
+ !a && n.leading === !1 && (a = d);
384
+ const m = t - (d - a);
385
+ return o = this, s = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), a = d, r = e.apply(o, s), i || (o = s = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, m)), r;
382
386
  };
383
387
  }
384
- function V(e, ...t) {
388
+ function U(e, ...t) {
385
389
  const n = Object(e);
386
390
  for (let o = 1; o < arguments.length; o++) {
387
- const r = arguments[o];
388
- if (r != null)
389
- for (const s in r)
390
- Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
391
+ const s = arguments[o];
392
+ if (s != null)
393
+ for (const r in s)
394
+ Object.prototype.hasOwnProperty.call(s, r) && (n[r] = s[r]);
391
395
  }
392
396
  return n;
393
397
  }
394
- const se = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
395
- function xt(e) {
398
+ const ie = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
399
+ function Vt(e) {
396
400
  for (const t of e)
397
401
  switch (t.trigger) {
398
402
  case "pageLoad":
399
- xe(t);
403
+ Ne(t);
400
404
  break;
401
405
  case "hover":
402
- Vt(t);
406
+ Wt(t);
403
407
  break;
404
408
  case "scrollInView":
405
409
  Nt(t);
406
410
  break;
407
411
  }
408
412
  }
409
- function ie(e) {
413
+ function ae(e) {
410
414
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
411
415
  }
412
- function ae(e, t) {
413
- const n = Wt(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
416
+ function le(e, t) {
417
+ const n = Bt(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
414
418
  for (const a of i)
415
419
  for (const l of n)
416
420
  l in a || (a[l] = o[l]);
417
421
  }
418
- function Wt(e) {
422
+ function Bt(e) {
419
423
  const t = [];
420
424
  for (const n of e.steps)
421
425
  for (const o in n.styles)
422
426
  t.indexOf(o) === -1 && t.push(o);
423
427
  return t;
424
428
  }
425
- function xe(e) {
429
+ function Ne(e) {
426
430
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
427
431
  if (!t.length) {
428
- ie(e.elementId || e.id || "");
432
+ ae(e.elementId || e.id || "");
429
433
  return;
430
434
  }
431
435
  Array.from(t).forEach((n) => {
432
- ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", V(n.style, e.steps[0].styles), setTimeout(() => {
433
- n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), V(n.style, e.steps[1].styles), setTimeout(() => {
436
+ le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
437
+ n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
434
438
  n.style.transition = "", n.style.transitionDelay = "";
435
439
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
436
440
  });
437
441
  });
438
442
  }
439
- function Vt(e) {
443
+ function Wt(e) {
440
444
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
441
445
  if (!t.length) {
442
- ie(e.elementId || e.id || "");
446
+ ae(e.elementId || e.id || "");
443
447
  return;
444
448
  }
445
449
  Array.from(t).forEach((n) => {
446
- ae(e, n);
447
- const o = e.steps[0].styles, r = e.steps[1].styles;
448
- function s() {
449
- V(n.style, o);
450
+ le(e, n);
451
+ const o = e.steps[0].styles, s = e.steps[1].styles;
452
+ function r() {
453
+ U(n.style, o);
450
454
  }
451
455
  function i() {
452
- V(n.style, r);
456
+ U(n.style, s);
453
457
  }
454
- s(), n.addEventListener("mouseenter", i), n.addEventListener("mouseleave", s), setTimeout(() => {
455
- n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
458
+ r(), n.addEventListener("mouseenter", i), n.addEventListener("mouseleave", r), setTimeout(() => {
459
+ n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
456
460
  });
457
461
  });
458
462
  }
459
463
  function Nt(e) {
460
464
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
461
465
  if (!t.length) {
462
- ie(e.elementId || e.id || "");
466
+ ae(e.elementId || e.id || "");
463
467
  return;
464
468
  }
465
469
  Array.from(t).forEach((n) => {
466
- ae(e, n);
467
- let o = !1, r = !1;
468
- function s() {
469
- !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
470
- V(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
471
- r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
470
+ le(e, n);
471
+ let o = !1, s = !1;
472
+ function r() {
473
+ !o && a(n) ? (o = !0, s = !0, setTimeout(() => {
474
+ U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
475
+ s = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
472
476
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
473
- })) : e.repeat && o && !r && !a(n) && (o = !1, V(n.style, e.steps[0].styles));
477
+ })) : e.repeat && o && !s && !a(n) && (o = !1, U(n.style, e.steps[0].styles));
474
478
  }
475
- const i = Bt(s, 200, {
479
+ const i = xt(r, 200, {
476
480
  leading: !1
477
481
  });
478
- function a(u) {
479
- const p = u.getBoundingClientRect(), h = window.innerHeight, I = (e.thresholdPercent || 0) / 100 * h;
480
- return p.bottom > I && p.top < h - I;
482
+ function a(m) {
483
+ const c = m.getBoundingClientRect(), p = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * p;
484
+ return c.bottom > b && c.top < p - b;
481
485
  }
482
486
  const l = e.steps[0].styles;
483
- function c() {
484
- V(n.style, l);
487
+ function d() {
488
+ U(n.style, l);
485
489
  }
486
- c(), setTimeout(() => {
487
- n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
490
+ d(), setTimeout(() => {
491
+ n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
488
492
  }), document.addEventListener("scroll", i, {
489
493
  capture: !0,
490
494
  passive: !0
491
- }), s();
495
+ }), r();
492
496
  });
493
497
  }
494
- const Ot = ({
498
+ const Ft = ({
495
499
  block: e,
496
500
  context: t,
497
501
  registeredComponents: n
498
502
  }) => {
499
- var s;
500
- const o = (s = Pe({
503
+ var r;
504
+ const o = (r = Ve({
501
505
  block: e,
502
506
  localState: t.localState,
503
507
  rootState: t.rootState,
504
508
  rootSetState: t.rootSetState,
505
509
  context: t.context,
506
510
  shouldEvaluateBindings: !1
507
- }).component) == null ? void 0 : s.name;
511
+ }).component) == null ? void 0 : r.name;
508
512
  if (!o)
509
513
  return null;
510
- const r = n[o];
511
- if (r)
512
- return r;
514
+ const s = n[o];
515
+ if (s)
516
+ return s;
513
517
  console.warn(`
514
518
  Could not find a registered component named "${o}".
515
519
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -523,56 +527,56 @@ const Ot = ({
523
527
  } = e;
524
528
  if (!(n != null && n.collection))
525
529
  return;
526
- const r = q({
530
+ const s = Y({
527
531
  code: n.collection,
528
532
  localState: t.localState,
529
533
  rootState: t.rootState,
530
534
  rootSetState: t.rootSetState,
531
535
  context: t.context
532
536
  });
533
- if (!Array.isArray(r))
537
+ if (!Array.isArray(s))
534
538
  return;
535
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
536
- return r.map((l, c) => ({
539
+ const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
540
+ return s.map((l, d) => ({
537
541
  context: {
538
542
  ...t,
539
543
  localState: {
540
544
  ...t.localState,
541
- $index: c,
545
+ $index: d,
542
546
  $item: l,
543
547
  [i]: l,
544
- [`$${i}Index`]: c
548
+ [`$${i}Index`]: d
545
549
  }
546
550
  },
547
551
  block: o
548
552
  }));
549
- }, _t = () => import("./block-styles.f235a6b3.js").then((e) => e.default).catch((e) => {
553
+ }, Ot = () => import("./block-styles-jDSz7IPu.js").then((e) => e.default).catch((e) => {
550
554
  throw console.error(
551
555
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
552
556
  e
553
557
  ), e;
554
- }), Lt = () => import("./block-wrapper.0326cf92.js").then((e) => e.default).catch((e) => {
558
+ }), Mt = () => import("./block-wrapper-i3S3k3_c.js").then((e) => e.default).catch((e) => {
555
559
  throw console.error(
556
560
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
557
561
  e
558
562
  ), e;
559
- }), Ft = () => import("./component-ref.4425a615.js").then((e) => e.default).catch((e) => {
563
+ }), Lt = () => import("./component-ref-YzJX0Oul.js").then((e) => e.default).catch((e) => {
560
564
  throw console.error(
561
565
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
562
566
  e
563
567
  ), e;
564
- }), Ht = () => import("./repeated-block.ea7178d4.js").then((e) => e.default).catch((e) => {
568
+ }), Dt = () => import("./repeated-block-hRYVKXrX.js").then((e) => e.default).catch((e) => {
565
569
  throw console.error(
566
570
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
567
571
  e
568
572
  ), e;
569
- }), jt = f({
573
+ }), Ht = f({
570
574
  name: "block",
571
575
  components: {
572
- BlockStyles: M(_t),
573
- ComponentRef: M(Ft),
574
- RepeatedBlock: M(Ht),
575
- BlockWrapper: M(Lt)
576
+ BlockStyles: q(Ot),
577
+ ComponentRef: q(Lt),
578
+ RepeatedBlock: q(Dt),
579
+ BlockWrapper: q(Mt)
576
580
  },
577
581
  props: ["block", "context", "registeredComponents", "linkComponent"],
578
582
  data() {
@@ -580,7 +584,7 @@ const Ot = ({
580
584
  },
581
585
  mounted() {
582
586
  const e = this.processedBlock.id, t = this.processedBlock.animations;
583
- t && e && xt(
587
+ t && e && Vt(
584
588
  t.filter((n) => n.trigger !== "hover").map((n) => ({
585
589
  ...n,
586
590
  elementId: e
@@ -589,7 +593,7 @@ const Ot = ({
589
593
  },
590
594
  computed: {
591
595
  blockComponent() {
592
- return Ot({
596
+ return Ft({
593
597
  block: this.block,
594
598
  context: this.context,
595
599
  registeredComponents: this.registeredComponents
@@ -603,7 +607,7 @@ const Ot = ({
603
607
  },
604
608
  processedBlock() {
605
609
  var e;
606
- return (e = this.block.repeat) != null && e.collection ? this.block : Pe({
610
+ return (e = this.block.repeat) != null && e.collection ? this.block : Ve({
607
611
  block: this.block,
608
612
  localState: this.context.localState,
609
613
  rootState: this.context.rootState,
@@ -624,21 +628,21 @@ const Ot = ({
624
628
  return ("show" in this.processedBlock ? this.processedBlock.show : !0) && !e;
625
629
  },
626
630
  childrenWithoutParentComponent() {
627
- var t, n;
628
- return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
631
+ var t;
632
+ return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
629
633
  },
630
634
  componentRefProps() {
631
- var e, t, n, o, r, s, i, a, l;
635
+ var e, t, n, o, s, r, i, a, l, d;
632
636
  return {
633
- blockChildren: (e = this.processedBlock.children) != null ? e : [],
634
- componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
637
+ blockChildren: this.processedBlock.children ?? [],
638
+ componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
635
639
  componentOptions: {
636
- ...bt(this.processedBlock),
640
+ ...gt(this.processedBlock),
637
641
  builderContext: this.context,
638
- ...((n = this.blockComponent) == null ? void 0 : n.name) === "Core:Button" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" ? {
642
+ ...((t = this.blockComponent) == null ? void 0 : t.name) === "Core:Button" || ((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" || ((s = this.blockComponent) == null ? void 0 : s.name) === "Form:Form" ? {
639
643
  builderLinkComponent: this.linkComponent
640
644
  } : {},
641
- ...((s = this.blockComponent) == null ? void 0 : s.name) === "Symbol" || ((i = this.blockComponent) == null ? void 0 : i.name) === "Columns" ? {
645
+ ...((r = this.blockComponent) == null ? void 0 : r.name) === "Symbol" || ((i = this.blockComponent) == null ? void 0 : i.name) === "Columns" || ((a = this.blockComponent) == null ? void 0 : a.name) === "Form:Form" ? {
642
646
  builderComponents: this.registeredComponents
643
647
  } : {}
644
648
  },
@@ -646,21 +650,21 @@ const Ot = ({
646
650
  linkComponent: this.linkComponent,
647
651
  registeredComponents: this.registeredComponents,
648
652
  builderBlock: this.processedBlock,
649
- includeBlockProps: ((a = this.blockComponent) == null ? void 0 : a.noWrap) === !0,
650
- isInteractive: !((l = this.blockComponent) != null && l.isRSC)
653
+ includeBlockProps: ((l = this.blockComponent) == null ? void 0 : l.noWrap) === !0,
654
+ isInteractive: !((d = this.blockComponent) != null && d.isRSC)
651
655
  };
652
656
  }
653
657
  }
654
658
  });
655
- function Mt(e, t, n, o, r, s) {
656
- var p;
657
- const i = g("block-styles"), a = g("component-ref"), l = g("block", !0), c = g("block-wrapper"), u = g("repeated-block");
658
- return e.canShowBlock ? (d(), m(R, { key: 0 }, [
659
- P(i, {
659
+ function jt(e, t, n, o, s, r) {
660
+ var c;
661
+ const i = k("block-styles"), a = k("component-ref"), l = k("block", !0), d = k("block-wrapper"), m = k("repeated-block");
662
+ return e.canShowBlock ? (u(), h(I, { key: 0 }, [
663
+ V(i, {
660
664
  block: e.block,
661
665
  context: e.context
662
666
  }, null, 8, ["block", "context"]),
663
- (p = e.blockComponent) != null && p.noWrap ? (d(), k(a, {
667
+ (c = e.blockComponent) != null && c.noWrap ? (u(), g(a, {
664
668
  key: 1,
665
669
  componentRef: e.componentRefProps.componentRef,
666
670
  componentOptions: e.componentRefProps.componentOptions,
@@ -671,14 +675,14 @@ function Mt(e, t, n, o, r, s) {
671
675
  builderBlock: e.componentRefProps.builderBlock,
672
676
  includeBlockProps: e.componentRefProps.includeBlockProps,
673
677
  isInteractive: e.componentRefProps.isInteractive
674
- }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), m(R, { key: 0 }, [
675
- e.repeatItem ? (d(!0), m(R, { key: 1 }, F(e.repeatItem, (h, S) => (d(), k(u, {
678
+ }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h(I, { key: 0 }, [
679
+ e.repeatItem ? (u(!0), h(I, { key: 1 }, O(e.repeatItem, (p, S) => (u(), g(m, {
676
680
  key: S,
677
- repeatContext: h.context,
678
- block: h.block,
681
+ repeatContext: p.context,
682
+ block: p.block,
679
683
  registeredComponents: e.registeredComponents,
680
684
  linkComponent: e.linkComponent
681
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(c, {
685
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), g(d, {
682
686
  key: 0,
683
687
  Wrapper: e.Tag,
684
688
  block: e.processedBlock,
@@ -686,7 +690,7 @@ function Mt(e, t, n, o, r, s) {
686
690
  linkComponent: e.linkComponent
687
691
  }, {
688
692
  default: B(() => [
689
- P(a, {
693
+ V(a, {
690
694
  componentRef: e.componentRefProps.componentRef,
691
695
  componentOptions: e.componentRefProps.componentOptions,
692
696
  blockChildren: e.componentRefProps.blockChildren,
@@ -697,9 +701,9 @@ function Mt(e, t, n, o, r, s) {
697
701
  includeBlockProps: e.componentRefProps.includeBlockProps,
698
702
  isInteractive: e.componentRefProps.isInteractive
699
703
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
700
- (d(!0), m(R, null, F(e.childrenWithoutParentComponent, (h, S) => (d(), k(l, {
701
- key: h.id,
702
- block: h,
704
+ (u(!0), h(I, null, O(e.childrenWithoutParentComponent, (p, S) => (u(), g(l, {
705
+ key: p.id,
706
+ block: p,
703
707
  context: e.childrenContext,
704
708
  registeredComponents: e.registeredComponents,
705
709
  linkComponent: e.linkComponent
@@ -708,12 +712,12 @@ function Mt(e, t, n, o, r, s) {
708
712
  _: 1
709
713
  }, 8, ["Wrapper", "block", "context", "linkComponent"]))
710
714
  ], 64))
711
- ], 64)) : v("v-if", !0);
715
+ ], 64)) : v("", !0);
712
716
  }
713
- const We = /* @__PURE__ */ b(jt, [["render", Mt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
717
+ const ce = /* @__PURE__ */ y(Ht, [["render", jt]]), Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
714
718
  __proto__: null,
715
- default: We
716
- }, Symbol.toStringTag, { value: "Module" })), Dt = f({
719
+ default: ce
720
+ }, Symbol.toStringTag, { value: "Module" })), Kt = f({
717
721
  name: "builder-blocks-wrapper",
718
722
  props: [
719
723
  "BlocksWrapper",
@@ -732,7 +736,7 @@ const We = /* @__PURE__ */ b(jt, [["render", Mt], ["__file", "/home/runner/work/
732
736
  methods: {
733
737
  onClick() {
734
738
  var e, t;
735
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
739
+ T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
736
740
  {
737
741
  type: "builder.clickEmptyBlocks",
738
742
  data: {
@@ -745,7 +749,7 @@ const We = /* @__PURE__ */ b(jt, [["render", Mt], ["__file", "/home/runner/work/
745
749
  },
746
750
  onMouseEnter() {
747
751
  var e, t;
748
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
752
+ T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
749
753
  {
750
754
  type: "builder.hoverEmptyBlocks",
751
755
  data: {
@@ -758,9 +762,9 @@ const We = /* @__PURE__ */ b(jt, [["render", Mt], ["__file", "/home/runner/work/
758
762
  }
759
763
  }
760
764
  });
761
- function Kt(e, t, n, o, r, s) {
762
- return d(), k(L(e.BlocksWrapper), C({
763
- class: e.className + " component-1k2igrjdg3x",
765
+ function qt(e, t, n, o, s, r) {
766
+ return u(), g(D(e.BlocksWrapper), C({
767
+ class: e.className + " component-b1turyjjkok",
764
768
  "builder-path": e.path,
765
769
  "builder-parent-id": e.parent,
766
770
  style: e.styleProp,
@@ -769,14 +773,14 @@ function Kt(e, t, n, o, r, s) {
769
773
  onKeyPress: (i) => e.onClick()
770
774
  }, { ...e.BlocksWrapperProps }), {
771
775
  default: B(() => [
772
- E(e.$slots, "default", {}, void 0, !0)
776
+ P(e.$slots, "default", {}, void 0, !0)
773
777
  ]),
774
778
  _: 3
775
779
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
776
780
  }
777
- const zt = /* @__PURE__ */ b(Dt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), qt = f({
781
+ const zt = /* @__PURE__ */ y(Kt, [["render", qt], ["__scopeId", "data-v-3403e3cb"]]), Jt = f({
778
782
  name: "builder-blocks",
779
- components: { BlocksWrapper: zt, Block: We },
783
+ components: { BlocksWrapper: zt, Block: ce },
780
784
  props: [
781
785
  "blocks",
782
786
  "parent",
@@ -787,40 +791,40 @@ const zt = /* @__PURE__ */ b(Dt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f
787
791
  "registeredComponents"
788
792
  ],
789
793
  inject: {
790
- builderContext: ee.key,
791
- componentsContext: Re.key
794
+ builderContext: te.key,
795
+ componentsContext: Ee.key
792
796
  }
793
797
  });
794
- function Gt(e, t, n, o, r, s) {
795
- var l, c;
796
- const i = g("block"), a = g("blocks-wrapper");
797
- return d(), k(a, {
798
+ function Gt(e, t, n, o, s, r) {
799
+ var l, d;
800
+ const i = k("block"), a = k("blocks-wrapper");
801
+ return u(), g(a, {
798
802
  blocks: e.blocks,
799
803
  parent: e.parent,
800
804
  path: e.path,
801
805
  styleProp: e.styleProp,
802
806
  BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
803
- BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
807
+ BlocksWrapperProps: (d = e.context) == null ? void 0 : d.BlocksWrapperProps
804
808
  }, {
805
809
  default: B(() => [
806
- e.blocks ? (d(!0), m(R, { key: 0 }, F(e.blocks, (u, p) => (d(), k(i, {
807
- key: u.id,
808
- block: u,
810
+ e.blocks ? (u(!0), h(I, { key: 0 }, O(e.blocks, (m, c) => (u(), g(i, {
811
+ key: m.id,
812
+ block: m,
809
813
  linkComponent: e.linkComponent,
810
814
  context: e.context || e.builderContext,
811
815
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
812
- }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : v("v-if", !0)
816
+ }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : v("", !0)
813
817
  ]),
814
818
  _: 1
815
819
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
816
820
  }
817
- const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), Jt = f({
821
+ const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
818
822
  render() {
819
- return Ie("style", { id: this.id, innerHTML: this.styles });
823
+ return Te("style", { id: this.id, innerHTML: this.styles });
820
824
  },
821
825
  name: "inlined-styles",
822
826
  props: ["styles", "id"]
823
- }), le = /* @__PURE__ */ b(Jt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), Ve = {
827
+ }), Fe = {
824
828
  small: {
825
829
  min: 320,
826
830
  default: 321,
@@ -836,11 +840,11 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
836
840
  default: 991,
837
841
  max: 1200
838
842
  }
839
- }, Rr = (e, t = Ve) => `@media (max-width: ${t[e].max}px)`, Yt = ({
843
+ }, Ys = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, Yt = ({
840
844
  small: e,
841
845
  medium: t
842
846
  }) => {
843
- const n = j(Ve);
847
+ const n = j(Fe);
844
848
  if (!e || !t)
845
849
  return n;
846
850
  const o = Math.floor(e / 2);
@@ -849,27 +853,27 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
849
853
  min: o,
850
854
  default: o + 1
851
855
  };
852
- const r = n.small.max + 1;
856
+ const s = n.small.max + 1;
853
857
  n.medium = {
854
858
  max: t,
855
- min: r,
856
- default: r + 1
859
+ min: s,
860
+ default: s + 1
857
861
  };
858
- const s = n.medium.max + 1;
862
+ const r = n.medium.max + 1;
859
863
  return n.large = {
860
864
  max: 2e3,
861
- min: s,
862
- default: s + 1
865
+ // TODO: decide upper limit
866
+ min: r,
867
+ default: r + 1
863
868
  }, n;
864
- }, Qt = f({
869
+ }, _t = f({
865
870
  name: "builder-columns",
866
871
  components: {
867
- InlinedStyles: le,
868
- DynamicRenderer: oe,
869
- Blocks: J
872
+ InlinedStyles: de,
873
+ DynamicRenderer: se,
874
+ Blocks: K
870
875
  },
871
876
  props: [
872
- "js",
873
877
  "space",
874
878
  "columns",
875
879
  "stackColumnsAt",
@@ -885,9 +889,9 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
885
889
  cols: this.columns || [],
886
890
  stackAt: this.stackColumnsAt || "tablet",
887
891
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
888
- TARGET: T,
892
+ TARGET: A,
889
893
  getClassPropName: re,
890
- mapStyleObjToStrIfNeeded: Be
894
+ mapStyleObjToStrIfNeeded: We
891
895
  };
892
896
  },
893
897
  computed: {
@@ -950,7 +954,7 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
950
954
  return this.stackAt === "never" ? t : e;
951
955
  },
952
956
  columnCssVars(e) {
953
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
957
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
954
958
  return {
955
959
  ...{
956
960
  display: "flex",
@@ -960,19 +964,19 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
960
964
  width: n,
961
965
  ["margin-left"]: o,
962
966
  "--column-width-mobile": this.getMobileStyle({
963
- stackedStyle: r,
967
+ stackedStyle: s,
964
968
  desktopStyle: n
965
969
  }),
966
970
  "--column-margin-left-mobile": this.getMobileStyle({
967
- stackedStyle: s,
971
+ stackedStyle: r,
968
972
  desktopStyle: o
969
973
  }),
970
974
  "--column-width-tablet": this.getTabletStyle({
971
- stackedStyle: r,
975
+ stackedStyle: s,
972
976
  desktopStyle: n
973
977
  }),
974
978
  "--column-margin-left-tablet": this.getTabletStyle({
975
- stackedStyle: s,
979
+ stackedStyle: r,
976
980
  desktopStyle: o
977
981
  })
978
982
  };
@@ -985,31 +989,31 @@ const J = /* @__PURE__ */ b(qt, [["render", Gt], ["__file", "/home/runner/work/b
985
989
  }
986
990
  }
987
991
  });
988
- function Xt(e, t, n, o, r, s) {
989
- const i = g("inlined-styles"), a = g("blocks"), l = g("dynamic-renderer");
990
- return d(), m("div", C({
992
+ function Qt(e, t, n, o, s, r) {
993
+ const i = k("inlined-styles"), a = k("blocks"), l = k("dynamic-renderer");
994
+ return u(), h("div", C({
991
995
  class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
992
996
  style: e.columnsCssVars
993
997
  }, {}), [
994
- e.TARGET !== "reactNative" ? (d(), k(i, {
998
+ e.TARGET !== "reactNative" ? (u(), g(i, {
995
999
  key: 0,
996
1000
  styles: e.columnsStyles
997
- }, null, 8, ["styles"])) : v("v-if", !0),
998
- (d(!0), m(R, null, F(e.columns, (c, u) => (d(), k(l, {
999
- key: u,
1000
- TagName: c.link ? e.builderLinkComponent || "a" : "div",
1001
+ }, null, 8, ["styles"])) : v("", !0),
1002
+ (u(!0), h(I, null, O(e.columns, (d, m) => (u(), g(l, {
1003
+ key: m,
1004
+ TagName: d.link ? e.builderLinkComponent || "a" : "div",
1001
1005
  actionAttributes: {},
1002
1006
  attributes: {
1003
- ...c.link ? {
1004
- href: c.link
1007
+ ...d.link ? {
1008
+ href: d.link
1005
1009
  } : {},
1006
1010
  [e.getClassPropName()]: "builder-column",
1007
- style: e.mapStyleObjToStrIfNeeded(e.columnCssVars(u))
1011
+ style: e.mapStyleObjToStrIfNeeded(e.columnCssVars(m))
1008
1012
  }
1009
1013
  }, {
1010
1014
  default: B(() => [
1011
- P(a, {
1012
- path: `component.options.columns.${u}.blocks`,
1015
+ V(a, {
1016
+ path: `component.options.columns.${m}.blocks`,
1013
1017
  parent: e.builderBlock.id,
1014
1018
  styleProp: {
1015
1019
  flexGrow: "1"
@@ -1017,52 +1021,52 @@ function Xt(e, t, n, o, r, s) {
1017
1021
  context: e.builderContext,
1018
1022
  registeredComponents: e.builderComponents,
1019
1023
  linkComponent: e.builderLinkComponent,
1020
- blocks: c.blocks
1024
+ blocks: d.blocks
1021
1025
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1022
1026
  ]),
1023
1027
  _: 2
1024
1028
  }, 1032, ["TagName", "attributes"]))), 128))
1025
1029
  ], 16);
1026
1030
  }
1027
- const Zt = /* @__PURE__ */ b(Qt, [["render", Xt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), en = f({
1031
+ const Xt = /* @__PURE__ */ y(_t, [["render", Qt], ["__scopeId", "data-v-3a12caec"]]), Zt = f({
1028
1032
  name: "builder-fragment-component",
1029
1033
  props: []
1030
1034
  });
1031
- function tn(e, t, n, o, r, s) {
1032
- return d(), m("span", null, [
1033
- E(e.$slots, "default")
1035
+ function en(e, t, n, o, s, r) {
1036
+ return u(), h("span", null, [
1037
+ P(e.$slots, "default")
1034
1038
  ]);
1035
1039
  }
1036
- const nn = /* @__PURE__ */ b(en, [["render", tn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
1037
- function he(e) {
1040
+ const tn = /* @__PURE__ */ y(Zt, [["render", en]]);
1041
+ function be(e) {
1038
1042
  return e.replace(/http(s)?:/, "");
1039
1043
  }
1040
- function on(e = "", t, n) {
1041
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1042
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1044
+ function nn(e = "", t, n) {
1045
+ const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
1046
+ return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
1043
1047
  }
1044
- function rn(e, t) {
1048
+ function on(e, t) {
1045
1049
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1046
1050
  return e;
1047
1051
  if (t === "master")
1048
- return he(e);
1052
+ return be(e);
1049
1053
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1050
1054
  if (n) {
1051
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1052
- return he(`${o[0]}_${s}${r}`);
1055
+ const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
1056
+ return be(`${o[0]}_${r}${s}`);
1053
1057
  }
1054
1058
  return null;
1055
1059
  }
1056
- function Q(e) {
1060
+ function X(e) {
1057
1061
  if (!e)
1058
1062
  return e;
1059
1063
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1060
1064
  if (e.match(/builder\.io/)) {
1061
1065
  let n = e;
1062
1066
  const o = Number(e.split("?width=")[1]);
1063
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${on(e, "width", r)} ${r}w`).concat([n]).join(", ");
1067
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${nn(e, "width", s)} ${s}w`).concat([n]).join(", ");
1064
1068
  }
1065
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [rn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1069
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [on(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1066
1070
  }
1067
1071
  const sn = f({
1068
1072
  name: "builder-image",
@@ -1084,18 +1088,20 @@ const sn = f({
1084
1088
  srcSetToUse() {
1085
1089
  var n;
1086
1090
  const t = this.image || this.src;
1087
- if (!t || !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1091
+ if (!t || // We can auto add srcset for cdn.builder.io and shopify
1092
+ // images, otherwise you can supply this prop manually
1093
+ !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1088
1094
  return this.srcset;
1089
- if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
1095
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1090
1096
  if (!this.srcset.includes(this.image.split("?")[0]))
1091
- return console.debug("Removed given srcset"), Q(t);
1097
+ return console.debug("Removed given srcset"), X(t);
1092
1098
  } else if (this.image && !this.srcset)
1093
- return Q(t);
1094
- return Q(t);
1099
+ return X(t);
1100
+ return X(t);
1095
1101
  },
1096
1102
  webpSrcSet() {
1097
1103
  var e;
1098
- return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
1104
+ return (e = this.srcSetToUse) != null && e.match(/builder\.io/) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
1099
1105
  },
1100
1106
  aspectRatioCss() {
1101
1107
  const e = {
@@ -1108,59 +1114,58 @@ const sn = f({
1108
1114
  return this.aspectRatio ? e : void 0;
1109
1115
  }
1110
1116
  }
1111
- });
1112
- const an = ["srcset"], ln = ["alt", "role", "src", "srcset", "sizes"], cn = {
1117
+ }), rn = ["srcset"], an = ["alt", "role", "src", "srcset", "sizes"], ln = {
1113
1118
  key: 2,
1114
- class: "div-1be3j8m9ewb-2"
1119
+ class: "div-4wbls88y960-2"
1115
1120
  };
1116
- function dn(e, t, n, o, r, s) {
1117
- var i, a, l, c;
1118
- return d(), m(R, null, [
1119
- X("picture", null, [
1120
- e.webpSrcSet ? (d(), m("source", {
1121
+ function cn(e, t, n, o, s, r) {
1122
+ var i, a, l, d;
1123
+ return u(), h(I, null, [
1124
+ Z("picture", null, [
1125
+ e.webpSrcSet ? (u(), h("source", {
1121
1126
  key: 0,
1122
1127
  type: "image/webp",
1123
1128
  srcset: e.webpSrcSet
1124
- }, null, 8, an)) : v("v-if", !0),
1125
- X("img", {
1129
+ }, null, 8, rn)) : v("", !0),
1130
+ Z("img", {
1126
1131
  loading: "lazy",
1127
1132
  alt: e.altText,
1128
1133
  role: e.altText ? "presentation" : void 0,
1129
- style: Z({
1134
+ style: ee({
1130
1135
  objectPosition: e.backgroundPosition || "center",
1131
1136
  objectFit: e.backgroundSize || "cover",
1132
1137
  ...e.aspectRatioCss
1133
1138
  }),
1134
- class: $e(
1135
- "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
1139
+ class: Re(
1140
+ "builder-image" + (e.className ? " " + e.className : "") + " img-4wbls88y960"
1136
1141
  ),
1137
1142
  src: e.image,
1138
1143
  srcset: e.srcSetToUse,
1139
1144
  sizes: e.sizes
1140
- }, null, 14, ln)
1145
+ }, null, 14, an)
1141
1146
  ]),
1142
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), m("div", {
1147
+ e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1143
1148
  key: 0,
1144
- class: "builder-image-sizer div-1be3j8m9ewb",
1145
- style: Z({
1149
+ class: "builder-image-sizer div-4wbls88y960",
1150
+ style: ee({
1146
1151
  paddingTop: e.aspectRatio * 100 + "%"
1147
1152
  })
1148
- }, null, 4)) : v("v-if", !0),
1149
- ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : v("v-if", !0),
1150
- !e.fitContent && e.$slots.default ? (d(), m("div", cn, [
1151
- E(e.$slots, "default", {}, void 0, !0)
1152
- ])) : v("v-if", !0)
1153
+ }, null, 4)) : v("", !0),
1154
+ (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1155
+ !e.fitContent && e.$slots.default ? (u(), h("div", ln, [
1156
+ P(e.$slots, "default", {}, void 0, !0)
1157
+ ])) : v("", !0)
1153
1158
  ], 64);
1154
1159
  }
1155
- const un = /* @__PURE__ */ b(sn, [["render", dn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), pn = f({
1160
+ const dn = /* @__PURE__ */ y(sn, [["render", cn], ["__scopeId", "data-v-4ab1cc9f"]]), un = f({
1156
1161
  name: "builder-section-component",
1157
1162
  props: ["attributes", "maxWidth"],
1158
1163
  data() {
1159
- return { filterAttrs: G };
1164
+ return { filterAttrs: F };
1160
1165
  }
1161
1166
  });
1162
- function mn(e, t, n, o, r, s) {
1163
- return d(), m("section", C({
1167
+ function pn(e, t, n, o, s, r) {
1168
+ return u(), h("section", C({
1164
1169
  style: {
1165
1170
  width: "100%",
1166
1171
  alignSelf: "stretch",
@@ -1173,16 +1178,16 @@ function mn(e, t, n, o, r, s) {
1173
1178
  marginLeft: "auto",
1174
1179
  marginRight: "auto"
1175
1180
  }
1176
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1177
- E(e.$slots, "default")
1181
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1182
+ P(e.$slots, "default")
1178
1183
  ], 16);
1179
1184
  }
1180
- const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), fn = (e) => {
1185
+ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1181
1186
  if (e === "localhost" || e === "127.0.0.1")
1182
1187
  return e;
1183
1188
  const t = e.split(".");
1184
1189
  return t.length > 2 ? t.slice(1).join(".") : e;
1185
- }, Ne = ({
1190
+ }, Ue = ({
1186
1191
  name: e,
1187
1192
  canTrack: t
1188
1193
  }) => {
@@ -1190,17 +1195,17 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1190
1195
  try {
1191
1196
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1192
1197
  } catch (o) {
1193
- w.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1198
+ $.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1194
1199
  return;
1195
1200
  }
1196
- }, Oe = async (e) => Ne(e), bn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(W).join("; "), gn = [["secure", ""], ["SameSite", "None"]], kn = ({
1201
+ }, Oe = async (e) => Ue(e), fn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(N).join("; "), bn = [["secure", ""], ["SameSite", "None"]], gn = ({
1197
1202
  name: e,
1198
1203
  value: t,
1199
1204
  expires: n
1200
1205
  }) => {
1201
- const r = (y() ? location.protocol === "https:" : !0) ? gn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", fn(window.location.hostname)], ...r];
1202
- return bn(i);
1203
- }, Ue = async ({
1206
+ const s = (w() ? location.protocol === "https:" : !0) ? bn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", hn(window.location.hostname)], ...s];
1207
+ return fn(i);
1208
+ }, Me = async ({
1204
1209
  name: e,
1205
1210
  value: t,
1206
1211
  expires: n,
@@ -1209,59 +1214,60 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1209
1214
  try {
1210
1215
  if (!o)
1211
1216
  return;
1212
- const r = kn({
1217
+ const s = gn({
1213
1218
  name: e,
1214
1219
  value: t,
1215
1220
  expires: n
1216
1221
  });
1217
- document.cookie = r;
1218
- } catch (r) {
1219
- w.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
1222
+ document.cookie = s;
1223
+ } catch (s) {
1224
+ $.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1220
1225
  }
1221
- }, yn = "builder.tests", ce = (e) => `${yn}.${e}`, vn = ({
1226
+ }, yn = "builder.tests", ue = (e) => `${yn}.${e}`, kn = ({
1222
1227
  contentId: e
1223
1228
  }) => Oe({
1224
- name: ce(e),
1229
+ name: ue(e),
1225
1230
  canTrack: !0
1226
1231
  }), Sn = ({
1227
1232
  contentId: e
1228
- }) => Ne({
1229
- name: ce(e),
1233
+ }) => Ue({
1234
+ name: ue(e),
1230
1235
  canTrack: !0
1231
- }), Cn = ({
1236
+ }), vn = ({
1232
1237
  contentId: e,
1233
1238
  value: t
1234
- }) => Ue({
1235
- name: ce(e),
1239
+ }) => Me({
1240
+ name: ue(e),
1236
1241
  value: t,
1237
1242
  canTrack: !0
1238
- }), _e = (e) => W(e.id) && W(e.variations) && Object.keys(e.variations).length > 0, wn = ({
1243
+ }), Le = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, Cn = ({
1239
1244
  id: e,
1240
1245
  variations: t
1241
1246
  }) => {
1242
- var r;
1247
+ var s;
1243
1248
  let n = 0;
1244
1249
  const o = Math.random();
1245
- for (const s in t) {
1246
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
1250
+ for (const r in t) {
1251
+ const i = (s = t[r]) == null ? void 0 : s.testRatio;
1247
1252
  if (n += i, o < n)
1248
- return s;
1253
+ return r;
1249
1254
  }
1250
1255
  return e;
1251
- }, Le = (e) => {
1252
- const t = wn(e);
1253
- return Cn({
1256
+ }, De = (e) => {
1257
+ const t = Cn(e);
1258
+ return vn({
1254
1259
  contentId: e.id,
1255
1260
  value: t
1256
1261
  }).catch((n) => {
1257
- w.error("could not store A/B test variation: ", n);
1262
+ $.error("could not store A/B test variation: ", n);
1258
1263
  }), t;
1259
- }, Fe = ({
1264
+ }, He = ({
1260
1265
  item: e,
1261
1266
  testGroupId: t
1262
1267
  }) => {
1263
1268
  const n = e.variations[t];
1264
- return t === e.id || !n ? {
1269
+ return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
1270
+ !n ? {
1265
1271
  testVariationId: e.id,
1266
1272
  testVariationName: "Default"
1267
1273
  } : {
@@ -1269,7 +1275,7 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1269
1275
  testVariationId: n.id,
1270
1276
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1271
1277
  };
1272
- }, In = ({
1278
+ }, wn = ({
1273
1279
  item: e,
1274
1280
  canTrack: t
1275
1281
  }) => {
@@ -1277,14 +1283,14 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1277
1283
  return e;
1278
1284
  if (!e)
1279
1285
  return;
1280
- if (!_e(e))
1286
+ if (!Le(e))
1281
1287
  return e;
1282
1288
  const n = Sn({
1283
1289
  contentId: e.id
1284
- }) || Le({
1290
+ }) || De({
1285
1291
  variations: e.variations,
1286
1292
  id: e.id
1287
- }), o = Fe({
1293
+ }), o = He({
1288
1294
  item: e,
1289
1295
  testGroupId: n
1290
1296
  });
@@ -1292,29 +1298,30 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1292
1298
  ...e,
1293
1299
  ...o
1294
1300
  };
1295
- }, $n = async ({
1301
+ }, In = async ({
1296
1302
  item: e,
1297
1303
  canTrack: t
1298
1304
  }) => {
1299
- if (!t || !_e(e))
1305
+ if (!t || !Le(e))
1300
1306
  return e;
1301
- const o = await vn({
1307
+ const o = await kn({
1302
1308
  contentId: e.id
1303
- }) || Le({
1309
+ }) || De({
1304
1310
  variations: e.variations,
1305
1311
  id: e.id
1306
- }), r = Fe({
1312
+ }), s = He({
1307
1313
  item: e,
1308
1314
  testGroupId: o
1309
1315
  });
1310
1316
  return {
1311
1317
  ...e,
1312
- ...r
1318
+ ...s
1313
1319
  };
1314
- }, H = (e) => W(e) ? e : !0, Rn = {
1320
+ }, H = (e) => N(e) ? e : !0, $n = {
1315
1321
  name: "Core:Button",
1316
1322
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1317
1323
  defaultStyles: {
1324
+ // TODO: make min width more intuitive and set one
1318
1325
  appearance: "none",
1319
1326
  paddingTop: "15px",
1320
1327
  paddingBottom: "15px",
@@ -1344,6 +1351,7 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1344
1351
  static: !0,
1345
1352
  noWrap: !0
1346
1353
  }, Tn = {
1354
+ // TODO: ways to statically preprocess JSON for references, functions, etc
1347
1355
  name: "Columns",
1348
1356
  isRSC: !0,
1349
1357
  inputs: [{
@@ -1521,7 +1529,7 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1521
1529
  });
1522
1530
  }
1523
1531
  const n = e.get("columns");
1524
- Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1532
+ Array.isArray(n) && n.find((s) => s.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1525
1533
  }
1526
1534
  }, {
1527
1535
  name: "space",
@@ -1543,152 +1551,13 @@ const hn = /* @__PURE__ */ b(pn, [["render", mn], ["__file", "/home/runner/work/
1543
1551
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1544
1552
  advanced: !0
1545
1553
  }]
1546
- }, En = {
1547
- name: "Custom Code",
1548
- static: !0,
1549
- requiredPermissions: ["editCode"],
1550
- inputs: [{
1551
- name: "code",
1552
- type: "html",
1553
- required: !0,
1554
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
1555
- code: !0
1556
- }, {
1557
- name: "replaceNodes",
1558
- type: "boolean",
1559
- helperText: "Preserve server rendered dom nodes",
1560
- advanced: !0
1561
- }, {
1562
- name: "scriptsClientOnly",
1563
- type: "boolean",
1564
- defaultValue: !1,
1565
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1566
- advanced: !0
1567
- }]
1568
- }, Pn = f({
1569
- name: "builder-custom-code",
1570
- props: ["replaceNodes", "code"],
1571
- data() {
1572
- return { scriptsInserted: [], scriptsRun: [] };
1573
- },
1574
- mounted() {
1575
- var t;
1576
- if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
1577
- return;
1578
- const e = this.$refs.elementRef.getElementsByTagName("script");
1579
- for (let n = 0; n < e.length; n++) {
1580
- const o = e[n];
1581
- if (o.src) {
1582
- if (this.scriptsInserted.includes(o.src))
1583
- continue;
1584
- this.scriptsInserted.push(o.src);
1585
- const r = document.createElement("script");
1586
- r.async = !0, r.src = o.src, document.head.appendChild(r);
1587
- } else if (!o.type || [
1588
- "text/javascript",
1589
- "application/javascript",
1590
- "application/ecmascript"
1591
- ].includes(o.type)) {
1592
- if (this.scriptsRun.includes(o.innerText))
1593
- continue;
1594
- try {
1595
- this.scriptsRun.push(o.innerText), new Function(o.innerText)();
1596
- } catch (r) {
1597
- console.warn("`CustomCode`: Error running script:", r);
1598
- }
1599
- }
1600
- }
1601
- }
1602
- }), An = ["innerHTML"];
1603
- function Bn(e, t, n, o, r, s) {
1604
- return d(), m("div", {
1605
- ref: "elementRef",
1606
- class: $e("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1607
- innerHTML: e.code
1608
- }, null, 10, An);
1609
- }
1610
- const xn = /* @__PURE__ */ b(Pn, [["render", Bn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), Wn = {
1611
- name: "Embed",
1612
- static: !0,
1613
- inputs: [{
1614
- name: "url",
1615
- type: "url",
1616
- required: !0,
1617
- defaultValue: "",
1618
- helperText: "e.g. enter a youtube url, google map, etc",
1619
- onChange: (e) => {
1620
- const t = e.get("url");
1621
- if (t)
1622
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1623
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1624
- }).catch((o) => {
1625
- e.set("content", "There was an error embedding this URL, please try again or another URL");
1626
- });
1627
- e.delete("content");
1628
- }
1629
- }, {
1630
- name: "content",
1631
- type: "html",
1632
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1633
- hideFromUI: !0
1634
- }]
1635
- }, Vn = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => Vn.includes(e.type), On = f({
1636
- name: "builder-embed",
1637
- props: ["content"],
1638
- data() {
1639
- return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
1640
- },
1641
- watch: {
1642
- onUpdateHook0: {
1643
- handler() {
1644
- this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1645
- },
1646
- immediate: !0
1647
- }
1648
- },
1649
- computed: {
1650
- onUpdateHook0() {
1651
- return {
1652
- 0: this.$refs.elem,
1653
- 1: this.ranInitFn
1654
- };
1655
- }
1656
- },
1657
- methods: {
1658
- findAndRunScripts() {
1659
- if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
1660
- return;
1661
- const e = this.$refs.elem.getElementsByTagName("script");
1662
- for (let t = 0; t < e.length; t++) {
1663
- const n = e[t];
1664
- if (n.src && !this.scriptsInserted.includes(n.src)) {
1665
- this.scriptsInserted.push(n.src);
1666
- const o = document.createElement("script");
1667
- o.async = !0, o.src = n.src, document.head.appendChild(o);
1668
- } else if (Nn(n) && !this.scriptsRun.includes(n.innerText))
1669
- try {
1670
- this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1671
- } catch (o) {
1672
- console.warn("`Embed`: Error running script:", o);
1673
- }
1674
- }
1675
- }
1676
- }
1677
- }), Un = ["innerHTML"];
1678
- function _n(e, t, n, o, r, s) {
1679
- return d(), m("div", {
1680
- class: "builder-embed",
1681
- ref: "elem",
1682
- innerHTML: e.content
1683
- }, null, 8, Un);
1684
- }
1685
- const Ln = /* @__PURE__ */ b(On, [["render", _n], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), Fn = {
1554
+ }, Rn = {
1686
1555
  name: "Fragment",
1687
1556
  static: !0,
1688
1557
  hidden: !0,
1689
1558
  canHaveChildren: !0,
1690
1559
  noWrap: !0
1691
- }, Hn = {
1560
+ }, En = {
1692
1561
  name: "Image",
1693
1562
  static: !0,
1694
1563
  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",
@@ -1709,28 +1578,28 @@ const Ln = /* @__PURE__ */ b(On, [["render", _n], ["__file", "/home/runner/work/
1709
1578
  onChange: (e) => {
1710
1579
  e.delete("srcset"), e.delete("noWebp");
1711
1580
  function n(i, a = 6e4) {
1712
- return new Promise((l, c) => {
1713
- const u = document.createElement("img");
1714
- let p = !1;
1715
- u.onload = () => {
1716
- p = !0, l(u);
1717
- }, u.addEventListener("error", (h) => {
1718
- console.warn("Image load failed", h.error), c(h.error);
1719
- }), u.src = i, setTimeout(() => {
1720
- p || c(new Error("Image load timed out"));
1581
+ return new Promise((l, d) => {
1582
+ const m = document.createElement("img");
1583
+ let c = !1;
1584
+ m.onload = () => {
1585
+ c = !0, l(m);
1586
+ }, m.addEventListener("error", (p) => {
1587
+ console.warn("Image load failed", p.error), d(p.error);
1588
+ }), m.src = i, setTimeout(() => {
1589
+ c || d(new Error("Image load timed out"));
1721
1590
  }, a);
1722
1591
  });
1723
1592
  }
1724
1593
  function o(i) {
1725
1594
  return Math.round(i * 1e3) / 1e3;
1726
1595
  }
1727
- const r = e.get("image"), s = e.get("aspectRatio");
1728
- if (fetch(r).then((i) => i.blob()).then((i) => {
1596
+ const s = e.get("image"), r = e.get("aspectRatio");
1597
+ if (fetch(s).then((i) => i.blob()).then((i) => {
1729
1598
  i.type.includes("svg") && e.set("noWebp", !0);
1730
- }), r && (!s || s === 0.7041))
1731
- return n(r).then((i) => {
1599
+ }), s && (!r || r === 0.7041))
1600
+ return n(s).then((i) => {
1732
1601
  const a = e.get("aspectRatio");
1733
- e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1602
+ e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1734
1603
  });
1735
1604
  }
1736
1605
  }, {
@@ -1788,45 +1657,7 @@ const Ln = /* @__PURE__ */ b(On, [["render", _n], ["__file", "/home/runner/work/
1788
1657
  advanced: !0,
1789
1658
  defaultValue: 0.7041
1790
1659
  }]
1791
- }, jn = {
1792
- name: "Raw:Img",
1793
- hideFromInsertMenu: !0,
1794
- 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",
1795
- inputs: [{
1796
- name: "image",
1797
- bubble: !0,
1798
- type: "file",
1799
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
1800
- required: !0
1801
- }],
1802
- noWrap: !0,
1803
- static: !0
1804
- }, Mn = f({
1805
- name: "builder-img-component",
1806
- props: [
1807
- "backgroundSize",
1808
- "backgroundPosition",
1809
- "imgSrc",
1810
- "altText",
1811
- "image",
1812
- "attributes"
1813
- ],
1814
- data() {
1815
- return { isEditing: A, filterAttrs: G };
1816
- }
1817
- }), Dn = ["alt", "src"];
1818
- function Kn(e, t, n, o, r, s) {
1819
- return d(), m("img", C({
1820
- style: {
1821
- objectFit: e.backgroundSize || "cover",
1822
- objectPosition: e.backgroundPosition || "center"
1823
- },
1824
- key: e.isEditing() && e.imgSrc || "default-key",
1825
- alt: e.altText,
1826
- src: e.imgSrc || e.image
1827
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Dn);
1828
- }
1829
- const zn = /* @__PURE__ */ b(Mn, [["render", Kn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), qn = {
1660
+ }, Pn = {
1830
1661
  name: "Core:Section",
1831
1662
  static: !0,
1832
1663
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1865,27 +1696,28 @@ const zn = /* @__PURE__ */ b(Mn, [["render", Kn], ["__file", "/home/runner/work/
1865
1696
  }
1866
1697
  }
1867
1698
  }]
1868
- }, Gn = {
1699
+ }, An = {
1869
1700
  name: "Slot",
1870
1701
  isRSC: !0,
1871
1702
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
1872
1703
  docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
1873
1704
  image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
1705
+ // Maybe wrap this for canHaveChildren so bind children to this hm
1874
1706
  inputs: [{
1875
1707
  name: "name",
1876
1708
  type: "string",
1877
1709
  required: !0,
1878
1710
  defaultValue: "children"
1879
1711
  }]
1880
- }, Jn = f({
1712
+ }, xn = f({
1881
1713
  name: "builder-slot",
1882
- components: { Blocks: J },
1883
- props: ["builderContext", "name"]
1714
+ components: { Blocks: K },
1715
+ props: ["js", "builderContext", "name"]
1884
1716
  });
1885
- function Yn(e, t, n, o, r, s) {
1886
- var a, l, c;
1887
- const i = g("blocks");
1888
- return d(), m("div", C(
1717
+ function Vn(e, t, n, o, s, r) {
1718
+ var a, l, d;
1719
+ const i = k("blocks");
1720
+ return u(), h("div", C(
1889
1721
  { style: {
1890
1722
  pointerEvents: "auto"
1891
1723
  } },
@@ -1893,15 +1725,15 @@ function Yn(e, t, n, o, r, s) {
1893
1725
  "builder-slot": e.name
1894
1726
  }
1895
1727
  ), [
1896
- P(i, {
1728
+ V(i, {
1897
1729
  parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
1898
1730
  path: `symbol.data.${e.name}`,
1899
1731
  context: e.builderContext,
1900
- blocks: (c = e.builderContext.rootState) == null ? void 0 : c[e.name]
1732
+ blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
1901
1733
  }, null, 8, ["parent", "path", "context", "blocks"])
1902
1734
  ], 16);
1903
1735
  }
1904
- const Qn = /* @__PURE__ */ b(Jn, [["render", Yn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), Xn = {
1736
+ const Bn = /* @__PURE__ */ y(xn, [["render", Vn]]), Wn = {
1905
1737
  name: "Symbol",
1906
1738
  noWrap: !0,
1907
1739
  static: !0,
@@ -1934,7 +1766,7 @@ const Qn = /* @__PURE__ */ b(Jn, [["render", Yn], ["__file", "/home/runner/work/
1934
1766
  hideFromUI: !0,
1935
1767
  type: "boolean"
1936
1768
  }]
1937
- }, Zn = {
1769
+ }, Nn = {
1938
1770
  name: "Text",
1939
1771
  static: !0,
1940
1772
  isRSC: !0,
@@ -1952,65 +1784,860 @@ const Qn = /* @__PURE__ */ b(Jn, [["render", Yn], ["__file", "/home/runner/work/
1952
1784
  height: "auto",
1953
1785
  textAlign: "center"
1954
1786
  }
1955
- }, eo = f({
1787
+ }, Fn = f({
1956
1788
  name: "builder-text",
1957
1789
  props: ["text"]
1958
- }), to = ["innerHTML"];
1959
- function no(e, t, n, o, r, s) {
1790
+ }), Un = ["innerHTML"];
1791
+ function On(e, t, n, o, s, r) {
1960
1792
  var i;
1961
- return d(), m("div", {
1793
+ return u(), h("div", {
1962
1794
  class: "builder-text",
1963
1795
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1964
1796
  style: {
1965
1797
  outline: "none"
1966
1798
  }
1967
- }, null, 8, to);
1799
+ }, null, 8, Un);
1968
1800
  }
1969
- const oo = /* @__PURE__ */ b(eo, [["render", no], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), ro = {
1970
- name: "Video",
1971
- canHaveChildren: !0,
1972
- defaultStyles: {
1973
- minHeight: "20px",
1974
- minWidth: "20px"
1975
- },
1976
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
1801
+ const Mn = /* @__PURE__ */ y(Fn, [["render", On]]), Ln = {
1802
+ name: "Custom Code",
1803
+ static: !0,
1804
+ requiredPermissions: ["editCode"],
1977
1805
  inputs: [{
1978
- name: "video",
1979
- type: "file",
1980
- allowedFileTypes: ["mp4"],
1981
- bubble: !0,
1982
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
1983
- required: !0
1984
- }, {
1985
- name: "posterImage",
1986
- type: "file",
1987
- allowedFileTypes: ["jpeg", "png"],
1988
- helperText: "Image to show before the video plays"
1989
- }, {
1990
- name: "autoPlay",
1991
- type: "boolean",
1992
- defaultValue: !0
1993
- }, {
1994
- name: "controls",
1995
- type: "boolean",
1996
- defaultValue: !1
1997
- }, {
1998
- name: "muted",
1999
- type: "boolean",
2000
- defaultValue: !0
1806
+ name: "code",
1807
+ type: "html",
1808
+ required: !0,
1809
+ defaultValue: "<p>Hello there, I am custom HTML code!</p>",
1810
+ code: !0
2001
1811
  }, {
2002
- name: "loop",
1812
+ name: "replaceNodes",
2003
1813
  type: "boolean",
2004
- defaultValue: !0
1814
+ helperText: "Preserve server rendered dom nodes",
1815
+ advanced: !0
2005
1816
  }, {
2006
- name: "playsInline",
1817
+ name: "scriptsClientOnly",
2007
1818
  type: "boolean",
2008
- defaultValue: !0
2009
- }, {
2010
- name: "fit",
2011
- type: "text",
2012
- defaultValue: "cover",
2013
- enum: ["contain", "cover", "fill", "auto"]
1819
+ defaultValue: !1,
1820
+ helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1821
+ advanced: !0
1822
+ }]
1823
+ }, Dn = f({
1824
+ name: "builder-custom-code",
1825
+ props: ["replaceNodes", "code"],
1826
+ data() {
1827
+ return { scriptsInserted: [], scriptsRun: [] };
1828
+ },
1829
+ mounted() {
1830
+ var t;
1831
+ if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
1832
+ return;
1833
+ const e = this.$refs.elementRef.getElementsByTagName("script");
1834
+ for (let n = 0; n < e.length; n++) {
1835
+ const o = e[n];
1836
+ if (o.src) {
1837
+ if (this.scriptsInserted.includes(o.src))
1838
+ continue;
1839
+ this.scriptsInserted.push(o.src);
1840
+ const s = document.createElement("script");
1841
+ s.async = !0, s.src = o.src, document.head.appendChild(s);
1842
+ } else if (!o.type || [
1843
+ "text/javascript",
1844
+ "application/javascript",
1845
+ "application/ecmascript"
1846
+ ].includes(o.type)) {
1847
+ if (this.scriptsRun.includes(o.innerText))
1848
+ continue;
1849
+ try {
1850
+ this.scriptsRun.push(o.innerText), new Function(o.innerText)();
1851
+ } catch (s) {
1852
+ console.warn("`CustomCode`: Error running script:", s);
1853
+ }
1854
+ }
1855
+ }
1856
+ }
1857
+ }), Hn = ["innerHTML"];
1858
+ function jn(e, t, n, o, s, r) {
1859
+ return u(), h("div", {
1860
+ ref: "elementRef",
1861
+ class: Re("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1862
+ innerHTML: e.code
1863
+ }, null, 10, Hn);
1864
+ }
1865
+ const Kn = /* @__PURE__ */ y(Dn, [["render", jn]]), qn = {
1866
+ name: "Embed",
1867
+ static: !0,
1868
+ inputs: [{
1869
+ name: "url",
1870
+ type: "url",
1871
+ required: !0,
1872
+ defaultValue: "",
1873
+ helperText: "e.g. enter a youtube url, google map, etc",
1874
+ onChange: (e) => {
1875
+ const t = e.get("url");
1876
+ if (t)
1877
+ return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1878
+ e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1879
+ }).catch((o) => {
1880
+ e.set("content", "There was an error embedding this URL, please try again or another URL");
1881
+ });
1882
+ e.delete("content");
1883
+ }
1884
+ }, {
1885
+ name: "content",
1886
+ type: "html",
1887
+ defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1888
+ hideFromUI: !0
1889
+ }]
1890
+ }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => zn.includes(e.type), Gn = f({
1891
+ name: "builder-embed",
1892
+ props: ["content"],
1893
+ data() {
1894
+ return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
1895
+ },
1896
+ watch: {
1897
+ onUpdateHook0: {
1898
+ handler() {
1899
+ this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1900
+ },
1901
+ immediate: !0
1902
+ }
1903
+ },
1904
+ computed: {
1905
+ onUpdateHook0() {
1906
+ return {
1907
+ 0: this.$refs.elem,
1908
+ 1: this.ranInitFn
1909
+ };
1910
+ }
1911
+ },
1912
+ methods: {
1913
+ findAndRunScripts() {
1914
+ if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
1915
+ return;
1916
+ const e = this.$refs.elem.getElementsByTagName("script");
1917
+ for (let t = 0; t < e.length; t++) {
1918
+ const n = e[t];
1919
+ if (n.src && !this.scriptsInserted.includes(n.src)) {
1920
+ this.scriptsInserted.push(n.src);
1921
+ const o = document.createElement("script");
1922
+ o.async = !0, o.src = n.src, document.head.appendChild(o);
1923
+ } else if (Jn(n) && !this.scriptsRun.includes(n.innerText))
1924
+ try {
1925
+ this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1926
+ } catch (o) {
1927
+ console.warn("`Embed`: Error running script:", o);
1928
+ }
1929
+ }
1930
+ }
1931
+ }
1932
+ }), Yn = ["innerHTML"];
1933
+ function _n(e, t, n, o, s, r) {
1934
+ return u(), h("div", {
1935
+ class: "builder-embed",
1936
+ ref: "elem",
1937
+ innerHTML: e.content
1938
+ }, null, 8, Yn);
1939
+ }
1940
+ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
1941
+ name: "Form:Form",
1942
+ // editableTags: ['builder-form-error']
1943
+ defaults: {
1944
+ responsiveStyles: {
1945
+ large: {
1946
+ marginTop: "15px",
1947
+ paddingBottom: "15px"
1948
+ }
1949
+ }
1950
+ },
1951
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",
1952
+ inputs: [{
1953
+ name: "sendSubmissionsTo",
1954
+ type: "string",
1955
+ // TODO: save to builder data and user can download as csv
1956
+ // TODO: easy for mode too or computed add/remove fields form mode
1957
+ // so you can edit details and high level mode at same time...
1958
+ // Later - more integrations like mailchimp
1959
+ // /api/v1/form-submit?to=mailchimp
1960
+ enum: [{
1961
+ label: "Send to email",
1962
+ value: "email",
1963
+ helperText: "Send form submissions to the email address of your choosing"
1964
+ }, {
1965
+ label: "Custom",
1966
+ value: "custom",
1967
+ helperText: "Handle where the form requests go manually with a little code, e.g. to your own custom backend"
1968
+ }],
1969
+ defaultValue: "email"
1970
+ }, {
1971
+ name: "sendSubmissionsToEmail",
1972
+ type: "string",
1973
+ required: !0,
1974
+ // TODO: required: () => options.get("sendSubmissionsTo") === "email"
1975
+ defaultValue: "your@email.com",
1976
+ showIf: 'options.get("sendSubmissionsTo") === "email"'
1977
+ }, {
1978
+ name: "sendWithJs",
1979
+ type: "boolean",
1980
+ helperText: "Set to false to use basic html form action",
1981
+ defaultValue: !0,
1982
+ showIf: 'options.get("sendSubmissionsTo") === "custom"'
1983
+ }, {
1984
+ name: "name",
1985
+ type: "string",
1986
+ defaultValue: "My form"
1987
+ // advanced: true
1988
+ }, {
1989
+ name: "action",
1990
+ type: "string",
1991
+ helperText: "URL to send the form data to",
1992
+ showIf: 'options.get("sendSubmissionsTo") === "custom"'
1993
+ }, {
1994
+ name: "contentType",
1995
+ type: "string",
1996
+ defaultValue: "application/json",
1997
+ advanced: !0,
1998
+ // TODO: do automatically if file input
1999
+ enum: ["application/json", "multipart/form-data", "application/x-www-form-urlencoded"],
2000
+ showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
2001
+ }, {
2002
+ name: "method",
2003
+ type: "string",
2004
+ showIf: 'options.get("sendSubmissionsTo") === "custom"',
2005
+ defaultValue: "POST",
2006
+ advanced: !0
2007
+ }, {
2008
+ name: "previewState",
2009
+ type: "string",
2010
+ // TODO: persist: false flag
2011
+ enum: ["unsubmitted", "sending", "success", "error"],
2012
+ defaultValue: "unsubmitted",
2013
+ helperText: 'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',
2014
+ showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
2015
+ }, {
2016
+ name: "successUrl",
2017
+ type: "url",
2018
+ helperText: "Optional URL to redirect the user to on form submission success",
2019
+ showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
2020
+ }, {
2021
+ name: "resetFormOnSubmit",
2022
+ type: "boolean",
2023
+ showIf: "options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",
2024
+ advanced: !0
2025
+ }, {
2026
+ name: "successMessage",
2027
+ type: "uiBlocks",
2028
+ hideFromUI: !0,
2029
+ defaultValue: [{
2030
+ "@type": "@builder.io/sdk:Element",
2031
+ responsiveStyles: {
2032
+ large: {
2033
+ marginTop: "10px"
2034
+ }
2035
+ },
2036
+ component: {
2037
+ name: "Text",
2038
+ options: {
2039
+ text: "<span>Thanks!</span>"
2040
+ }
2041
+ }
2042
+ }]
2043
+ }, {
2044
+ name: "validate",
2045
+ type: "boolean",
2046
+ defaultValue: !0,
2047
+ advanced: !0
2048
+ }, {
2049
+ name: "errorMessagePath",
2050
+ type: "text",
2051
+ advanced: !0,
2052
+ helperText: 'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'
2053
+ }, {
2054
+ name: "errorMessage",
2055
+ type: "uiBlocks",
2056
+ hideFromUI: !0,
2057
+ defaultValue: [{
2058
+ "@type": "@builder.io/sdk:Element",
2059
+ responsiveStyles: {
2060
+ large: {
2061
+ marginTop: "10px"
2062
+ }
2063
+ },
2064
+ bindings: {
2065
+ "component.options.text": "state.formErrorMessage || block.component.options.text"
2066
+ },
2067
+ component: {
2068
+ name: "Text",
2069
+ options: {
2070
+ text: "<span>Form submission error :( Please check your answers and try again</span>"
2071
+ }
2072
+ }
2073
+ }]
2074
+ }, {
2075
+ name: "sendingMessage",
2076
+ type: "uiBlocks",
2077
+ hideFromUI: !0,
2078
+ defaultValue: [{
2079
+ "@type": "@builder.io/sdk:Element",
2080
+ responsiveStyles: {
2081
+ large: {
2082
+ marginTop: "10px"
2083
+ }
2084
+ },
2085
+ component: {
2086
+ name: "Text",
2087
+ options: {
2088
+ text: "<span>Sending...</span>"
2089
+ }
2090
+ }
2091
+ }]
2092
+ }, {
2093
+ name: "customHeaders",
2094
+ type: "map",
2095
+ valueType: {
2096
+ type: "string"
2097
+ },
2098
+ advanced: !0,
2099
+ showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
2100
+ }],
2101
+ noWrap: !0,
2102
+ canHaveChildren: !0,
2103
+ defaultChildren: [{
2104
+ "@type": "@builder.io/sdk:Element",
2105
+ responsiveStyles: {
2106
+ large: {
2107
+ marginTop: "10px"
2108
+ }
2109
+ },
2110
+ component: {
2111
+ name: "Text",
2112
+ options: {
2113
+ text: "<span>Enter your name</span>"
2114
+ }
2115
+ }
2116
+ }, {
2117
+ "@type": "@builder.io/sdk:Element",
2118
+ responsiveStyles: {
2119
+ large: {
2120
+ marginTop: "10px"
2121
+ }
2122
+ },
2123
+ component: {
2124
+ name: "Form:Input",
2125
+ options: {
2126
+ name: "name",
2127
+ placeholder: "Jane Doe"
2128
+ }
2129
+ }
2130
+ }, {
2131
+ "@type": "@builder.io/sdk:Element",
2132
+ responsiveStyles: {
2133
+ large: {
2134
+ marginTop: "10px"
2135
+ }
2136
+ },
2137
+ component: {
2138
+ name: "Text",
2139
+ options: {
2140
+ text: "<span>Enter your email</span>"
2141
+ }
2142
+ }
2143
+ }, {
2144
+ "@type": "@builder.io/sdk:Element",
2145
+ responsiveStyles: {
2146
+ large: {
2147
+ marginTop: "10px"
2148
+ }
2149
+ },
2150
+ component: {
2151
+ name: "Form:Input",
2152
+ options: {
2153
+ name: "email",
2154
+ placeholder: "jane@doe.com"
2155
+ }
2156
+ }
2157
+ }, {
2158
+ "@type": "@builder.io/sdk:Element",
2159
+ responsiveStyles: {
2160
+ large: {
2161
+ marginTop: "10px"
2162
+ }
2163
+ },
2164
+ component: {
2165
+ name: "Form:SubmitButton",
2166
+ options: {
2167
+ text: "Submit"
2168
+ }
2169
+ }
2170
+ }]
2171
+ }, Zn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], eo = () => {
2172
+ const e = process.env.NODE_ENV || "production";
2173
+ return Zn.includes(e) ? e : "production";
2174
+ }, to = (e, t, n) => {
2175
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
2176
+ return o === void 0 || o === e ? n : o;
2177
+ }, no = f({
2178
+ name: "builder-form-component",
2179
+ components: { Block: ce, Blocks: K },
2180
+ props: [
2181
+ "js",
2182
+ "builderContext",
2183
+ "previewState",
2184
+ "sendWithJs",
2185
+ "sendSubmissionsTo",
2186
+ "action",
2187
+ "customHeaders",
2188
+ "contentType",
2189
+ "sendSubmissionsToEmail",
2190
+ "name",
2191
+ "method",
2192
+ "errorMessagePath",
2193
+ "resetFormOnSubmit",
2194
+ "successUrl",
2195
+ "validate",
2196
+ "attributes",
2197
+ "builderBlock",
2198
+ "builderComponents",
2199
+ "builderLinkComponent",
2200
+ "errorMessage",
2201
+ "sendingMessage",
2202
+ "successMessage"
2203
+ ],
2204
+ data() {
2205
+ return {
2206
+ formState: "unsubmitted",
2207
+ responseData: null,
2208
+ formErrorMessage: "",
2209
+ filterAttrs: F
2210
+ };
2211
+ },
2212
+ methods: {
2213
+ mergeNewRootState(e) {
2214
+ var n, o;
2215
+ const t = {
2216
+ ...this.builderContext.rootState,
2217
+ ...e
2218
+ };
2219
+ this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
2220
+ },
2221
+ submissionState() {
2222
+ return T() && this.previewState || this.formState;
2223
+ },
2224
+ onSubmit(e) {
2225
+ var n;
2226
+ const t = this.sendWithJs || this.sendSubmissionsTo === "email";
2227
+ if (this.sendSubmissionsTo === "zapier")
2228
+ e.preventDefault();
2229
+ else if (t) {
2230
+ if (!(this.action || this.sendSubmissionsTo === "email")) {
2231
+ e.preventDefault();
2232
+ return;
2233
+ }
2234
+ e.preventDefault();
2235
+ const o = e.currentTarget, s = this.customHeaders || {};
2236
+ let r;
2237
+ const i = new FormData(o), a = Array.from(
2238
+ e.currentTarget.querySelectorAll("input,select,textarea")
2239
+ ).filter((c) => !!c.name).map((c) => {
2240
+ let p;
2241
+ const S = c.name;
2242
+ if (c instanceof HTMLInputElement)
2243
+ if (c.type === "radio") {
2244
+ if (c.checked)
2245
+ return p = c.name, {
2246
+ key: S,
2247
+ value: p
2248
+ };
2249
+ } else if (c.type === "checkbox")
2250
+ p = c.checked;
2251
+ else if (c.type === "number" || c.type === "range") {
2252
+ const b = c.valueAsNumber;
2253
+ isNaN(b) || (p = b);
2254
+ } else
2255
+ c.type === "file" ? p = c.files : p = c.value;
2256
+ else
2257
+ p = c.value;
2258
+ return {
2259
+ key: S,
2260
+ value: p
2261
+ };
2262
+ });
2263
+ let l = this.contentType;
2264
+ if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
2265
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
2266
+ }), l !== "application/json")
2267
+ r = i;
2268
+ else {
2269
+ const c = {};
2270
+ Array.from(a).forEach(({ value: p, key: S }) => {
2271
+ xe(c, S, p);
2272
+ }), r = JSON.stringify(c);
2273
+ }
2274
+ l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
2275
+ const d = new CustomEvent("presubmit", {
2276
+ detail: {
2277
+ body: r
2278
+ }
2279
+ });
2280
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
2281
+ return;
2282
+ this.formState = "sending";
2283
+ const m = `${eo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2284
+ this.sendSubmissionsToEmail || ""
2285
+ )}&name=${encodeURIComponent(this.name || "")}`;
2286
+ fetch(
2287
+ this.sendSubmissionsTo === "email" ? m : this.action,
2288
+ {
2289
+ body: r,
2290
+ headers: s,
2291
+ method: this.method || "post"
2292
+ }
2293
+ ).then(
2294
+ async (c) => {
2295
+ let p;
2296
+ const S = c.headers.get("content-type");
2297
+ if (S && S.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
2298
+ let b = to(p, this.errorMessagePath);
2299
+ b && (typeof b != "string" && (b = JSON.stringify(b)), this.formErrorMessage = b, this.mergeNewRootState({
2300
+ formErrorMessage: b
2301
+ }));
2302
+ }
2303
+ if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
2304
+ const b = new CustomEvent("submit:success", {
2305
+ detail: {
2306
+ res: c,
2307
+ body: p
2308
+ }
2309
+ });
2310
+ if (this.$refs.formRef) {
2311
+ if (this.$refs.formRef.dispatchEvent(b), b.defaultPrevented)
2312
+ return;
2313
+ this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
2314
+ }
2315
+ if (this.successUrl)
2316
+ if (this.$refs.formRef) {
2317
+ const x = new CustomEvent("route", {
2318
+ detail: {
2319
+ url: this.successUrl
2320
+ }
2321
+ });
2322
+ this.$refs.formRef.dispatchEvent(x), x.defaultPrevented || (location.href = this.successUrl);
2323
+ } else
2324
+ location.href = this.successUrl;
2325
+ }
2326
+ },
2327
+ (c) => {
2328
+ const p = new CustomEvent("submit:error", {
2329
+ detail: {
2330
+ error: c
2331
+ }
2332
+ });
2333
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
2334
+ }
2335
+ );
2336
+ }
2337
+ }
2338
+ }
2339
+ }), oo = ["validate", "action", "method", "name"], so = {
2340
+ key: 3,
2341
+ class: "builder-form-error-text pre-tqyw9m0iue"
2342
+ };
2343
+ function ro(e, t, n, o, s, r) {
2344
+ var l;
2345
+ const i = k("block"), a = k("blocks");
2346
+ return u(), h("form", C({
2347
+ validate: e.validate,
2348
+ ref: "formRef",
2349
+ action: !e.sendWithJs && e.action,
2350
+ method: e.method,
2351
+ name: e.name,
2352
+ onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
2353
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2354
+ e.builderBlock && e.builderBlock.children ? (u(!0), h(I, { key: 0 }, O((l = e.builderBlock) == null ? void 0 : l.children, (d, m) => (u(), g(i, {
2355
+ key: `form-block-${e.idx}`,
2356
+ block: d,
2357
+ context: e.builderContext,
2358
+ registeredComponents: e.builderComponents,
2359
+ linkComponent: e.builderLinkComponent
2360
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
2361
+ e.submissionState() === "error" ? (u(), g(a, {
2362
+ key: 1,
2363
+ path: "errorMessage",
2364
+ blocks: e.errorMessage,
2365
+ context: e.builderContext
2366
+ }, null, 8, ["blocks", "context"])) : v("", !0),
2367
+ e.submissionState() === "sending" ? (u(), g(a, {
2368
+ key: 2,
2369
+ path: "sendingMessage",
2370
+ blocks: e.sendingMessage,
2371
+ context: e.builderContext
2372
+ }, null, 8, ["blocks", "context"])) : v("", !0),
2373
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", so, " " + _(JSON.stringify(e.responseData, null, 2)) + `
2374
+ `, 1)) : v("", !0),
2375
+ e.submissionState() === "success" ? (u(), g(a, {
2376
+ key: 4,
2377
+ path: "successMessage",
2378
+ blocks: e.successMessage,
2379
+ context: e.builderContext
2380
+ }, null, 8, ["blocks", "context"])) : v("", !0)
2381
+ ], 16, oo);
2382
+ }
2383
+ const io = /* @__PURE__ */ y(no, [["render", ro], ["__scopeId", "data-v-e7803f50"]]), ao = {
2384
+ name: "Form:Input",
2385
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2386
+ inputs: [
2387
+ {
2388
+ name: "type",
2389
+ type: "text",
2390
+ enum: ["text", "number", "email", "url", "checkbox", "radio", "range", "date", "datetime-local", "search", "tel", "time", "file", "month", "week", "password", "color", "hidden"],
2391
+ defaultValue: "text"
2392
+ },
2393
+ {
2394
+ name: "name",
2395
+ type: "string",
2396
+ required: !0,
2397
+ helperText: 'Every input in a form needs a unique name describing what it takes, e.g. "email"'
2398
+ },
2399
+ {
2400
+ name: "placeholder",
2401
+ type: "string",
2402
+ defaultValue: "Hello there",
2403
+ helperText: "Text to display when there is no value"
2404
+ },
2405
+ // TODO: handle value vs default value automatically like ng-model
2406
+ {
2407
+ name: "defaultValue",
2408
+ type: "string"
2409
+ },
2410
+ {
2411
+ name: "value",
2412
+ type: "string",
2413
+ advanced: !0
2414
+ },
2415
+ {
2416
+ name: "required",
2417
+ type: "boolean",
2418
+ helperText: "Is this input required to be filled out to submit a form",
2419
+ defaultValue: !1
2420
+ }
2421
+ ],
2422
+ noWrap: !0,
2423
+ static: !0,
2424
+ defaultStyles: {
2425
+ paddingTop: "10px",
2426
+ paddingBottom: "10px",
2427
+ paddingLeft: "10px",
2428
+ paddingRight: "10px",
2429
+ borderRadius: "3px",
2430
+ borderWidth: "1px",
2431
+ borderStyle: "solid",
2432
+ borderColor: "#ccc"
2433
+ }
2434
+ }, lo = f({
2435
+ name: "builder-form-input-component",
2436
+ props: [
2437
+ "attributes",
2438
+ "defaultValue",
2439
+ "placeholder",
2440
+ "type",
2441
+ "name",
2442
+ "value",
2443
+ "required"
2444
+ ],
2445
+ data() {
2446
+ return { isEditing: T, filterAttrs: F };
2447
+ }
2448
+ }), co = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2449
+ function uo(e, t, n, o, s, r) {
2450
+ return u(), h("input", C({
2451
+ key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2452
+ placeholder: e.placeholder,
2453
+ type: e.type,
2454
+ name: e.name,
2455
+ value: e.value,
2456
+ defaultValue: e.defaultValue,
2457
+ required: e.required
2458
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, co);
2459
+ }
2460
+ const po = /* @__PURE__ */ y(lo, [["render", uo]]), mo = {
2461
+ name: "Form:Select",
2462
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2463
+ defaultStyles: {
2464
+ alignSelf: "flex-start"
2465
+ },
2466
+ inputs: [{
2467
+ name: "options",
2468
+ type: "list",
2469
+ required: !0,
2470
+ subFields: [{
2471
+ name: "value",
2472
+ type: "text",
2473
+ required: !0
2474
+ }, {
2475
+ name: "name",
2476
+ type: "text"
2477
+ }],
2478
+ defaultValue: [{
2479
+ value: "option 1"
2480
+ }, {
2481
+ value: "option 2"
2482
+ }]
2483
+ }, {
2484
+ name: "name",
2485
+ type: "string",
2486
+ required: !0,
2487
+ helperText: 'Every select in a form needs a unique name describing what it gets, e.g. "email"'
2488
+ }, {
2489
+ name: "defaultValue",
2490
+ type: "string"
2491
+ }, {
2492
+ name: "value",
2493
+ type: "string",
2494
+ advanced: !0
2495
+ }, {
2496
+ name: "required",
2497
+ type: "boolean",
2498
+ defaultValue: !1
2499
+ }],
2500
+ static: !0,
2501
+ noWrap: !0
2502
+ }, ho = f({
2503
+ name: "builder-select-component",
2504
+ props: ["attributes", "value", "defaultValue", "name", "options"],
2505
+ data() {
2506
+ return { isEditing: T, filterAttrs: F };
2507
+ }
2508
+ }), fo = ["value", "defaultValue", "name"], bo = ["value"];
2509
+ function go(e, t, n, o, s, r) {
2510
+ return u(), h("select", C({
2511
+ value: e.value,
2512
+ key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2513
+ defaultValue: e.defaultValue,
2514
+ name: e.name
2515
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2516
+ (u(!0), h(I, null, O(e.options, (i, a) => (u(), h("option", {
2517
+ key: a,
2518
+ value: i.value
2519
+ }, _(i.name || i.value), 9, bo))), 128))
2520
+ ], 16, fo);
2521
+ }
2522
+ const yo = /* @__PURE__ */ y(ho, [["render", go]]), ko = {
2523
+ name: "Form:SubmitButton",
2524
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2525
+ defaultStyles: {
2526
+ appearance: "none",
2527
+ paddingTop: "15px",
2528
+ paddingBottom: "15px",
2529
+ paddingLeft: "25px",
2530
+ paddingRight: "25px",
2531
+ backgroundColor: "#3898EC",
2532
+ color: "white",
2533
+ borderRadius: "4px",
2534
+ cursor: "pointer"
2535
+ },
2536
+ inputs: [{
2537
+ name: "text",
2538
+ type: "text",
2539
+ defaultValue: "Click me"
2540
+ }],
2541
+ static: !0,
2542
+ noWrap: !0
2543
+ // TODO: optional children? maybe as optional form input
2544
+ // that only shows if advanced setting is flipped
2545
+ // TODO: defaultChildren
2546
+ // canHaveChildren: true,
2547
+ }, So = f({
2548
+ name: "builder-submit-button",
2549
+ props: ["attributes", "text"],
2550
+ data() {
2551
+ return { filterAttrs: F };
2552
+ }
2553
+ });
2554
+ function vo(e, t, n, o, s, r) {
2555
+ return u(), h("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
2556
+ }
2557
+ const Co = /* @__PURE__ */ y(So, [["render", vo]]), wo = {
2558
+ // friendlyName?
2559
+ name: "Raw:Img",
2560
+ hideFromInsertMenu: !0,
2561
+ 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",
2562
+ inputs: [{
2563
+ name: "image",
2564
+ bubble: !0,
2565
+ type: "file",
2566
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
2567
+ required: !0
2568
+ }],
2569
+ noWrap: !0,
2570
+ static: !0
2571
+ }, Io = f({
2572
+ name: "builder-img-component",
2573
+ props: [
2574
+ "backgroundSize",
2575
+ "backgroundPosition",
2576
+ "imgSrc",
2577
+ "altText",
2578
+ "image",
2579
+ "attributes"
2580
+ ],
2581
+ data() {
2582
+ return { isEditing: T, filterAttrs: F };
2583
+ }
2584
+ }), $o = ["alt", "src"];
2585
+ function To(e, t, n, o, s, r) {
2586
+ return u(), h("img", C({
2587
+ style: {
2588
+ objectFit: e.backgroundSize || "cover",
2589
+ objectPosition: e.backgroundPosition || "center"
2590
+ },
2591
+ key: e.isEditing() && e.imgSrc || "default-key",
2592
+ alt: e.altText,
2593
+ src: e.imgSrc || e.image
2594
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $o);
2595
+ }
2596
+ const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
2597
+ name: "Video",
2598
+ canHaveChildren: !0,
2599
+ defaultStyles: {
2600
+ minHeight: "20px",
2601
+ minWidth: "20px"
2602
+ },
2603
+ image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
2604
+ inputs: [{
2605
+ name: "video",
2606
+ type: "file",
2607
+ allowedFileTypes: ["mp4"],
2608
+ bubble: !0,
2609
+ defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
2610
+ required: !0
2611
+ }, {
2612
+ name: "posterImage",
2613
+ type: "file",
2614
+ allowedFileTypes: ["jpeg", "png"],
2615
+ helperText: "Image to show before the video plays"
2616
+ }, {
2617
+ name: "autoPlay",
2618
+ type: "boolean",
2619
+ defaultValue: !0
2620
+ }, {
2621
+ name: "controls",
2622
+ type: "boolean",
2623
+ defaultValue: !1
2624
+ }, {
2625
+ name: "muted",
2626
+ type: "boolean",
2627
+ defaultValue: !0
2628
+ }, {
2629
+ name: "loop",
2630
+ type: "boolean",
2631
+ defaultValue: !0
2632
+ }, {
2633
+ name: "playsInline",
2634
+ type: "boolean",
2635
+ defaultValue: !0
2636
+ }, {
2637
+ name: "fit",
2638
+ type: "text",
2639
+ defaultValue: "cover",
2640
+ enum: ["contain", "cover", "fill", "auto"]
2014
2641
  }, {
2015
2642
  name: "preload",
2016
2643
  type: "text",
@@ -2047,7 +2674,7 @@ const oo = /* @__PURE__ */ b(eo, [["render", no], ["__file", "/home/runner/work/
2047
2674
  defaultValue: !0,
2048
2675
  advanced: !0
2049
2676
  }]
2050
- }, so = f({
2677
+ }, Po = f({
2051
2678
  name: "builder-video",
2052
2679
  props: [
2053
2680
  "autoPlay",
@@ -2092,16 +2719,16 @@ const oo = /* @__PURE__ */ b(eo, [["render", no], ["__file", "/home/runner/work/
2092
2719
  };
2093
2720
  }
2094
2721
  }
2095
- }), io = { style: {
2722
+ }), Ao = { style: {
2096
2723
  position: "relative"
2097
- } }, ao = ["preload", "src", "poster"], lo = ["src"], co = {
2724
+ } }, xo = ["preload", "src", "poster"], Vo = ["src"], Bo = {
2098
2725
  key: 1,
2099
2726
  style: {
2100
2727
  display: "flex",
2101
2728
  flexDirection: "column",
2102
2729
  alignItems: "stretch"
2103
2730
  }
2104
- }, uo = {
2731
+ }, Wo = {
2105
2732
  key: 2,
2106
2733
  style: {
2107
2734
  pointerEvents: "none",
@@ -2115,10 +2742,10 @@ const oo = /* @__PURE__ */ b(eo, [["render", no], ["__file", "/home/runner/work/
2115
2742
  height: "100%"
2116
2743
  }
2117
2744
  };
2118
- function po(e, t, n, o, r, s) {
2119
- var i, a, l, c, u, p, h;
2120
- return d(), m("div", io, [
2121
- X("video", C({
2745
+ function No(e, t, n, o, s, r) {
2746
+ var i, a, l, d, m, c, p;
2747
+ return u(), h("div", Ao, [
2748
+ Z("video", C({
2122
2749
  class: "builder-video",
2123
2750
  preload: e.preload || "metadata",
2124
2751
  style: {
@@ -2127,6 +2754,8 @@ function po(e, t, n, o, r, s) {
2127
2754
  ...(i = e.attributes) == null ? void 0 : i.style,
2128
2755
  objectFit: e.fit,
2129
2756
  objectPosition: e.position,
2757
+ // Hack to get object fit to work as expected and
2758
+ // not have the video overflow
2130
2759
  zIndex: 2,
2131
2760
  borderRadius: "1px",
2132
2761
  ...e.aspectRatio ? {
@@ -2136,81 +2765,93 @@ function po(e, t, n, o, r, s) {
2136
2765
  src: e.video || "no-src",
2137
2766
  poster: e.posterImage
2138
2767
  }, e.spreadProps), [
2139
- e.lazyLoad ? v("v-if", !0) : (d(), m("source", {
2768
+ e.lazyLoad ? v("", !0) : (u(), h("source", {
2140
2769
  key: 0,
2141
2770
  type: "video/mp4",
2142
2771
  src: e.video
2143
- }, null, 8, lo))
2144
- ], 16, ao),
2145
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), m("div", {
2772
+ }, null, 8, Vo))
2773
+ ], 16, xo),
2774
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
2146
2775
  key: 0,
2147
- style: Z({
2776
+ style: ee({
2148
2777
  width: "100%",
2149
2778
  paddingTop: e.aspectRatio * 100 + "%",
2150
2779
  pointerEvents: "none",
2151
2780
  fontSize: "0px"
2152
2781
  })
2153
- }, null, 4)) : v("v-if", !0),
2154
- ((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), m("div", co, [
2155
- E(e.$slots, "default")
2156
- ])) : v("v-if", !0),
2157
- ((h = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : h.length) && !e.fitContent ? (d(), m("div", uo, [
2158
- E(e.$slots, "default")
2159
- ])) : v("v-if", !0)
2782
+ }, null, 4)) : v("", !0),
2783
+ (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Bo, [
2784
+ P(e.$slots, "default")
2785
+ ])) : v("", !0),
2786
+ (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Wo, [
2787
+ P(e.$slots, "default")
2788
+ ])) : v("", !0)
2160
2789
  ]);
2161
2790
  }
2162
- const mo = /* @__PURE__ */ b(so, [["render", po], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), fe = () => [{
2163
- component: mt,
2164
- ...Rn
2791
+ const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
2792
+ component: Kn,
2793
+ ...Ln
2165
2794
  }, {
2166
- component: Zt,
2167
- ...Tn
2795
+ component: Qn,
2796
+ ...qn
2168
2797
  }, {
2169
- component: xn,
2170
- ...En
2798
+ component: io,
2799
+ ...Xn
2171
2800
  }, {
2172
- component: Ln,
2173
- ...Wn
2801
+ component: po,
2802
+ ...ao
2174
2803
  }, {
2175
- component: nn,
2176
- ...Fn
2804
+ component: Co,
2805
+ ...ko
2177
2806
  }, {
2178
- component: un,
2179
- ...Hn
2807
+ component: yo,
2808
+ ...mo
2180
2809
  }, {
2181
- component: zn,
2182
- ...jn
2810
+ component: Ro,
2811
+ ...wo
2183
2812
  }, {
2184
- component: hn,
2185
- ...qn
2813
+ component: Fo,
2814
+ ...Eo
2815
+ }], ge = () => [{
2816
+ component: ht,
2817
+ ...$n
2186
2818
  }, {
2187
- component: yr,
2188
- ...Xn
2819
+ component: Xt,
2820
+ ...Tn
2189
2821
  }, {
2190
- component: oo,
2191
- ...Zn
2822
+ component: tn,
2823
+ ...Rn
2192
2824
  }, {
2193
- component: mo,
2194
- ...ro
2825
+ component: dn,
2826
+ ...En
2195
2827
  }, {
2196
- component: Qn,
2197
- ...Gn
2198
- }], be = [], ho = (e) => ({
2828
+ component: mn,
2829
+ ...Pn
2830
+ }, {
2831
+ component: Bn,
2832
+ ...An
2833
+ }, {
2834
+ component: Hs,
2835
+ ...Wn
2836
+ }, {
2837
+ component: Mn,
2838
+ ...Nn
2839
+ }, ...Uo()], ye = [], Oo = (e) => ({
2199
2840
  type: "builder.registerComponent",
2200
- data: te(e)
2201
- }), fo = (e) => {
2841
+ data: ne(e)
2842
+ }), Mo = (e) => {
2202
2843
  const t = e.toString().trim();
2203
2844
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2204
- }, bo = (e) => typeof e == "function" ? fo(e) : j(e), te = ({
2845
+ }, Lo = (e) => typeof e == "function" ? Mo(e) : j(e), ne = ({
2205
2846
  inputs: e,
2206
2847
  ...t
2207
2848
  }) => ({
2208
2849
  ...j(t),
2209
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
2850
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
2210
2851
  ...o,
2211
- [r]: bo(s)
2852
+ [s]: Lo(r)
2212
2853
  }), {}))
2213
- }), go = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2854
+ }), Do = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2214
2855
  function getAndSetVariantId() {
2215
2856
  function setCookie(name, value, days) {
2216
2857
  let expires = '';
@@ -2266,7 +2907,7 @@ const mo = /* @__PURE__ */ b(so, [["render", po], ["__file", "/home/runner/work/
2266
2907
  }).join('');
2267
2908
  styleEl.innerHTML = newStyleStr;
2268
2909
  }
2269
- }`, ko = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2910
+ }`, Ho = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2270
2911
  if (!navigator.cookieEnabled) {
2271
2912
  return;
2272
2913
  }
@@ -2300,249 +2941,249 @@ const mo = /* @__PURE__ */ b(so, [["render", po], ["__file", "/home/runner/work/
2300
2941
  thisScriptEl?.remove();
2301
2942
  }
2302
2943
  return;
2303
- }`, He = "builderIoAbTest", je = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2944
+ }`, je = "builderIoAbTest", Ke = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2304
2945
  ...t,
2305
2946
  testVariationId: t.id,
2306
2947
  id: e == null ? void 0 : e.id
2307
- })), yo = ({
2948
+ })), jo = ({
2308
2949
  canTrack: e,
2309
2950
  content: t
2310
- }) => !(!(K(t).length > 0) || !e), vo = (e) => e === "react" || e === "reactNative", Me = vo(T), So = () => `
2311
- window.${He} = ${go}
2312
- window.${je} = ${ko}
2313
- `, Co = (e, t) => `
2314
- window.${He}(
2315
- "${t}",${JSON.stringify(e)}, ${Me}
2316
- )`, wo = ({
2951
+ }) => !(!(J(t).length > 0) || !e), Ko = (e) => e === "react" || e === "reactNative", qe = Ko(A), qo = () => `
2952
+ window.${je} = ${Do}
2953
+ window.${Ke} = ${Ho}
2954
+ `, zo = (e, t) => `
2955
+ window.${je}(
2956
+ "${t}",${JSON.stringify(e)}, ${qe}
2957
+ )`, Jo = ({
2317
2958
  contentId: e,
2318
2959
  variationId: t
2319
- }) => `window.${je}(
2320
- "${t}", "${e}", ${Me}
2321
- )`, Io = f({
2960
+ }) => `window.${Ke}(
2961
+ "${t}", "${e}", ${qe}
2962
+ )`, ze = f({
2322
2963
  render() {
2323
- return Ie("script", { id: this.id, innerHTML: this.scriptStr });
2964
+ return Te("script", { id: this.id, innerHTML: this.scriptStr });
2324
2965
  },
2325
2966
  name: "inlined-script",
2326
2967
  props: ["scriptStr", "id"]
2327
- }), De = /* @__PURE__ */ b(Io, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
2328
- function $o() {
2968
+ });
2969
+ function Go() {
2329
2970
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2330
2971
  }
2331
- function Ro() {
2332
- const e = $o().fetch;
2972
+ function Yo() {
2973
+ const e = Go().fetch;
2333
2974
  if (typeof e > "u")
2334
2975
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2335
2976
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2336
2977
  return e;
2337
2978
  }
2338
- const Ke = Ro();
2339
- function z(e, t = null, n = ".") {
2340
- return Object.keys(e).reduce((o, r) => {
2341
- const s = e[r], i = [t, r].filter(Boolean).join(n);
2342
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
2979
+ const Je = Yo();
2980
+ function G(e, t = null, n = ".") {
2981
+ return Object.keys(e).reduce((o, s) => {
2982
+ const r = e[s], i = [t, s].filter(Boolean).join(n);
2983
+ return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
2343
2984
  ...o,
2344
- ...z(s, i, n)
2985
+ ...G(r, i, n)
2345
2986
  } : {
2346
2987
  ...o,
2347
- [i]: s
2988
+ [i]: r
2348
2989
  };
2349
2990
  }, {});
2350
2991
  }
2351
- const To = "v3", ge = "builder.", Eo = "options.", Po = (e) => {
2992
+ const _o = "v3", ke = "builder.", Qo = "options.", Xo = (e) => {
2352
2993
  const t = {};
2353
2994
  return e.forEach((n, o) => {
2354
2995
  t[o] = n;
2355
2996
  }), t;
2356
- }, ze = (e) => {
2997
+ }, Ge = (e) => {
2357
2998
  if (!e)
2358
2999
  return {};
2359
- const t = qe(e), n = {};
3000
+ const t = Ye(e), n = {};
2360
3001
  return Object.keys(t).forEach((o) => {
2361
- if (o.startsWith(ge)) {
2362
- const r = o.replace(ge, "").replace(Eo, "");
2363
- n[r] = t[o];
3002
+ if (o.startsWith(ke)) {
3003
+ const s = o.replace(ke, "").replace(Qo, "");
3004
+ n[s] = t[o];
2364
3005
  }
2365
3006
  }), n;
2366
- }, Ao = () => {
2367
- if (!y())
3007
+ }, Zo = () => {
3008
+ if (!w())
2368
3009
  return {};
2369
3010
  const e = new URLSearchParams(window.location.search);
2370
- return ze(e);
2371
- }, qe = (e) => e instanceof URLSearchParams ? Po(e) : e, ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, de = (e) => {
3011
+ return Ge(e);
3012
+ }, Ye = (e) => e instanceof URLSearchParams ? Xo(e) : e, Se = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (e) => {
2372
3013
  let {
2373
3014
  noTraverse: t = !1
2374
3015
  } = e;
2375
3016
  const {
2376
3017
  limit: n = 30,
2377
3018
  userAttributes: o,
2378
- query: r,
2379
- model: s,
3019
+ query: s,
3020
+ model: r,
2380
3021
  apiKey: i,
2381
3022
  includeRefs: a = !0,
2382
3023
  enrich: l,
2383
- locale: c,
2384
- apiVersion: u = To,
2385
- fields: p,
2386
- omit: h,
3024
+ locale: d,
3025
+ apiVersion: m = _o,
3026
+ fields: c,
3027
+ omit: p,
2387
3028
  offset: S,
2388
- cacheSeconds: I,
2389
- staleCacheSeconds: N,
2390
- sort: U,
2391
- includeUnpublished: ue
3029
+ cacheSeconds: b,
3030
+ staleCacheSeconds: x,
3031
+ sort: M,
3032
+ includeUnpublished: me
2392
3033
  } = e;
2393
3034
  if (!i)
2394
3035
  throw new Error("Missing API key");
2395
- if (!["v3"].includes(u))
2396
- throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
3036
+ if (!["v3"].includes(m))
3037
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);
2397
3038
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2398
- const $ = new URL(`https://cdn.builder.io/api/${u}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
2399
- if ($.searchParams.set("omit", h || "meta.componentsUsed"), p && $.searchParams.set("fields", p), Number.isFinite(S) && S > -1 && $.searchParams.set("offset", String(Math.floor(S))), typeof ue == "boolean" && $.searchParams.set("includeUnpublished", String(ue)), I && ke(I) && $.searchParams.set("cacheSeconds", String(I)), N && ke(N) && $.searchParams.set("staleCacheSeconds", String(N)), U) {
2400
- const x = z({
2401
- sort: U
3039
+ const R = new URL(`https://cdn.builder.io/api/${m}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${d ? `&locale=${d}` : ""}${l ? `&enrich=${l}` : ""}`);
3040
+ if (R.searchParams.set("omit", p || "meta.componentsUsed"), c && R.searchParams.set("fields", c), Number.isFinite(S) && S > -1 && R.searchParams.set("offset", String(Math.floor(S))), typeof me == "boolean" && R.searchParams.set("includeUnpublished", String(me)), b && Se(b) && R.searchParams.set("cacheSeconds", String(b)), x && Se(x) && R.searchParams.set("staleCacheSeconds", String(x)), M) {
3041
+ const W = G({
3042
+ sort: M
2402
3043
  });
2403
- for (const _ in x)
2404
- $.searchParams.set(_, JSON.stringify(x[_]));
3044
+ for (const L in W)
3045
+ R.searchParams.set(L, JSON.stringify(W[L]));
2405
3046
  }
2406
- const ot = {
2407
- ...Ao(),
2408
- ...qe(e.options || {})
2409
- }, pe = z(ot);
2410
- for (const x in pe)
2411
- $.searchParams.set(x, String(pe[x]));
2412
- if (o && $.searchParams.set("userAttributes", JSON.stringify(o)), r) {
2413
- const x = z({
2414
- query: r
3047
+ const rt = {
3048
+ ...Zo(),
3049
+ ...Ye(e.options || {})
3050
+ }, he = G(rt);
3051
+ for (const W in he)
3052
+ R.searchParams.set(W, String(he[W]));
3053
+ if (o && R.searchParams.set("userAttributes", JSON.stringify(o)), s) {
3054
+ const W = G({
3055
+ query: s
2415
3056
  });
2416
- for (const _ in x)
2417
- $.searchParams.set(_, JSON.stringify(x[_]));
3057
+ for (const L in W)
3058
+ R.searchParams.set(L, JSON.stringify(W[L]));
2418
3059
  }
2419
- return $;
2420
- }, Bo = (e) => "results" in e;
2421
- async function Y(e) {
2422
- const t = await Ge({
3060
+ return R;
3061
+ }, es = (e) => "results" in e;
3062
+ async function Q(e) {
3063
+ const t = await _e({
2423
3064
  ...e,
2424
3065
  limit: 1
2425
3066
  });
2426
3067
  return t && t[0] || null;
2427
3068
  }
2428
- const Tr = Y, xo = async (e) => {
2429
- const t = de(e);
2430
- return await (await Ke(t.href)).json();
2431
- }, Wo = async (e, t, n = de(e)) => {
3069
+ const _s = Q, ts = async (e) => {
3070
+ const t = pe(e);
3071
+ return await (await Je(t.href)).json();
3072
+ }, ns = async (e, t, n = pe(e)) => {
2432
3073
  const o = H(e.canTrack);
2433
- if (n.search.includes("preview="), !o || !(y() || T === "reactNative"))
3074
+ if (n.search.includes("preview="), !o || !(w() || A === "reactNative"))
2434
3075
  return t.results;
2435
3076
  try {
2436
- const r = [];
2437
- for (const s of t.results)
2438
- r.push(await $n({
2439
- item: s,
3077
+ const s = [];
3078
+ for (const r of t.results)
3079
+ s.push(await In({
3080
+ item: r,
2440
3081
  canTrack: o
2441
3082
  }));
2442
- t.results = r;
2443
- } catch (r) {
2444
- w.error("Could not process A/B tests. ", r);
3083
+ t.results = s;
3084
+ } catch (s) {
3085
+ $.error("Could not process A/B tests. ", s);
2445
3086
  }
2446
3087
  return t.results;
2447
3088
  };
2448
- async function Ge(e) {
3089
+ async function _e(e) {
2449
3090
  try {
2450
- const t = de(e), n = await xo(e);
2451
- return Bo(n) ? Wo(e, n) : (w.error("Error fetching data. ", {
3091
+ const t = pe(e), n = await ts(e);
3092
+ return es(n) ? ns(e, n) : ($.error("Error fetching data. ", {
2452
3093
  url: t,
2453
3094
  content: n,
2454
3095
  options: e
2455
3096
  }), null);
2456
3097
  } catch (t) {
2457
- return w.error("Error fetching data. ", t), null;
3098
+ return $.error("Error fetching data. ", t), null;
2458
3099
  }
2459
3100
  }
2460
- const Er = Ge;
2461
- function Vo() {
2462
- return !y() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
3101
+ const Qs = _e;
3102
+ function os() {
3103
+ return !w() || T() ? !1 : location.search.indexOf("builder.preview=") !== -1;
2463
3104
  }
2464
- function No() {
3105
+ function ss() {
2465
3106
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2466
3107
  const t = Math.random() * 16 | 0;
2467
3108
  return (e == "x" ? t : t & 3 | 8).toString(16);
2468
3109
  });
2469
3110
  }
2470
- function Je() {
2471
- return No().replace(/-/g, "");
3111
+ function Qe() {
3112
+ return ss().replace(/-/g, "");
2472
3113
  }
2473
- const Ye = "builderSessionId", Oo = async ({
3114
+ const Xe = "builderSessionId", rs = async ({
2474
3115
  canTrack: e
2475
3116
  }) => {
2476
3117
  if (!e)
2477
3118
  return;
2478
3119
  const t = await Oe({
2479
- name: Ye,
3120
+ name: Xe,
2480
3121
  canTrack: e
2481
3122
  });
2482
- if (W(t))
3123
+ if (N(t))
2483
3124
  return t;
2484
3125
  {
2485
- const n = Uo();
2486
- return _o({
3126
+ const n = is();
3127
+ return as({
2487
3128
  id: n,
2488
3129
  canTrack: e
2489
3130
  }), n;
2490
3131
  }
2491
- }, Uo = () => Je(), _o = ({
3132
+ }, is = () => Qe(), as = ({
2492
3133
  id: e,
2493
3134
  canTrack: t
2494
- }) => Ue({
2495
- name: Ye,
3135
+ }) => Me({
3136
+ name: Xe,
2496
3137
  value: e,
2497
3138
  canTrack: t
2498
- }), Qe = () => y() && typeof localStorage < "u" ? localStorage : void 0, Lo = ({
3139
+ }), Ze = () => w() && typeof localStorage < "u" ? localStorage : void 0, ls = ({
2499
3140
  key: e,
2500
3141
  canTrack: t
2501
3142
  }) => {
2502
3143
  var n;
2503
3144
  try {
2504
- return t ? (n = Qe()) == null ? void 0 : n.getItem(e) : void 0;
3145
+ return t ? (n = Ze()) == null ? void 0 : n.getItem(e) : void 0;
2505
3146
  } catch (o) {
2506
3147
  console.debug("[LocalStorage] GET error: ", o);
2507
3148
  return;
2508
3149
  }
2509
- }, Fo = ({
3150
+ }, cs = ({
2510
3151
  key: e,
2511
3152
  canTrack: t,
2512
3153
  value: n
2513
3154
  }) => {
2514
3155
  var o;
2515
3156
  try {
2516
- t && ((o = Qe()) == null || o.setItem(e, n));
2517
- } catch (r) {
2518
- console.debug("[LocalStorage] SET error: ", r);
3157
+ t && ((o = Ze()) == null || o.setItem(e, n));
3158
+ } catch (s) {
3159
+ console.debug("[LocalStorage] SET error: ", s);
2519
3160
  }
2520
- }, Xe = "builderVisitorId", Ho = ({
3161
+ }, et = "builderVisitorId", ds = ({
2521
3162
  canTrack: e
2522
3163
  }) => {
2523
3164
  if (!e)
2524
3165
  return;
2525
- const t = Lo({
2526
- key: Xe,
3166
+ const t = ls({
3167
+ key: et,
2527
3168
  canTrack: e
2528
3169
  });
2529
- if (W(t))
3170
+ if (N(t))
2530
3171
  return t;
2531
3172
  {
2532
- const n = jo();
2533
- return Mo({
3173
+ const n = us();
3174
+ return ps({
2534
3175
  id: n,
2535
3176
  canTrack: e
2536
3177
  }), n;
2537
3178
  }
2538
- }, jo = () => Je(), Mo = ({
3179
+ }, us = () => Qe(), ps = ({
2539
3180
  id: e,
2540
3181
  canTrack: t
2541
- }) => Fo({
2542
- key: Xe,
3182
+ }) => cs({
3183
+ key: et,
2543
3184
  value: e,
2544
3185
  canTrack: t
2545
- }), Do = async ({
3186
+ }), ms = async ({
2546
3187
  canTrack: e
2547
3188
  }) => {
2548
3189
  if (!e)
@@ -2550,46 +3191,46 @@ const Ye = "builderSessionId", Oo = async ({
2550
3191
  visitorId: void 0,
2551
3192
  sessionId: void 0
2552
3193
  };
2553
- const t = await Oo({
3194
+ const t = await rs({
2554
3195
  canTrack: e
2555
- }), n = Ho({
3196
+ }), n = ds({
2556
3197
  canTrack: e
2557
3198
  });
2558
3199
  return {
2559
3200
  sessionId: t,
2560
3201
  visitorId: n
2561
3202
  };
2562
- }, Ko = async ({
3203
+ }, hs = async ({
2563
3204
  type: e,
2564
3205
  canTrack: t,
2565
3206
  apiKey: n,
2566
3207
  metadata: o,
2567
- ...r
3208
+ ...s
2568
3209
  }) => ({
2569
3210
  type: e,
2570
3211
  data: {
2571
- ...r,
3212
+ ...s,
2572
3213
  metadata: {
2573
3214
  url: location.href,
2574
3215
  ...o
2575
3216
  },
2576
- ...await Do({
3217
+ ...await ms({
2577
3218
  canTrack: t
2578
3219
  }),
2579
- userAttributes: Te(),
3220
+ userAttributes: Pe(),
2580
3221
  ownerId: n
2581
3222
  }
2582
3223
  });
2583
- async function ne(e) {
3224
+ async function oe(e) {
2584
3225
  if (!e.apiKey) {
2585
- w.error("Missing API key for track call. Please provide your API key.");
3226
+ $.error("Missing API key for track call. Please provide your API key.");
2586
3227
  return;
2587
3228
  }
2588
- if (!!e.canTrack && !A() && !!(y() || T === "reactNative"))
3229
+ if (e.canTrack && !T() && (w() || A === "reactNative"))
2589
3230
  return fetch("https://cdn.builder.io/api/v1/track", {
2590
3231
  method: "POST",
2591
3232
  body: JSON.stringify({
2592
- events: [await Ko(e)]
3233
+ events: [await hs(e)]
2593
3234
  }),
2594
3235
  headers: {
2595
3236
  "content-type": "application/json"
@@ -2599,14 +3240,14 @@ async function ne(e) {
2599
3240
  console.error("Failed to track: ", t);
2600
3241
  });
2601
3242
  }
2602
- const Pr = (e) => ne({
3243
+ const Xs = (e) => oe({
2603
3244
  ...e,
2604
3245
  canTrack: !0
2605
3246
  });
2606
- function ye(e) {
3247
+ function ve(e) {
2607
3248
  return Math.round(e * 1e3) / 1e3;
2608
3249
  }
2609
- const zo = (e, t, n = !0) => {
3250
+ const fs = (e, t, n = !0) => {
2610
3251
  if (!(e instanceof HTMLElement))
2611
3252
  return null;
2612
3253
  let o = n ? e : e.parentElement;
@@ -2617,43 +3258,43 @@ const zo = (e, t, n = !0) => {
2617
3258
  return o;
2618
3259
  } while (o = o.parentElement);
2619
3260
  return null;
2620
- }, qo = (e) => zo(e, (t) => {
3261
+ }, bs = (e) => fs(e, (t) => {
2621
3262
  const n = t.getAttribute("builder-id") || t.id;
2622
- return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2623
- }), ve = ({
3263
+ return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3264
+ }), Ce = ({
2624
3265
  event: e,
2625
3266
  target: t
2626
3267
  }) => {
2627
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = ye(o / n.width), i = ye(r / n.height);
3268
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ve(o / n.width), i = ve(s / n.height);
2628
3269
  return {
2629
- x: s,
3270
+ x: r,
2630
3271
  y: i
2631
3272
  };
2632
- }, Go = (e) => {
2633
- const t = e.target, n = t && qo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3273
+ }, gs = (e) => {
3274
+ const t = e.target, n = t && bs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2634
3275
  return {
2635
3276
  targetBuilderElement: o || void 0,
2636
3277
  metadata: {
2637
- targetOffset: t ? ve({
3278
+ targetOffset: t ? Ce({
2638
3279
  event: e,
2639
3280
  target: t
2640
3281
  }) : void 0,
2641
- builderTargetOffset: n ? ve({
3282
+ builderTargetOffset: n ? Ce({
2642
3283
  event: e,
2643
3284
  target: n
2644
3285
  }) : void 0,
2645
3286
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2646
3287
  }
2647
3288
  };
2648
- }, Jo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2649
- function Ze(e, t) {
3289
+ }, ys = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3290
+ function tt(e, t) {
2650
3291
  const n = new URL(t.origin), o = n.hostname;
2651
- return (e || Jo).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3292
+ return (e || ys).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
2652
3293
  }
2653
- const Yo = "0.13.1", Se = {};
2654
- function Qo(e, t) {
2655
- let n = Se[e];
2656
- if (n || (n = Se[e] = []), n.push(t), y()) {
3294
+ const ks = "0.13.3", we = {};
3295
+ function Ss(e, t) {
3296
+ let n = we[e];
3297
+ if (n || (n = we[e] = []), n.push(t), w()) {
2657
3298
  const o = {
2658
3299
  type: "builder.register",
2659
3300
  data: {
@@ -2663,13 +3304,13 @@ function Qo(e, t) {
2663
3304
  };
2664
3305
  try {
2665
3306
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
2666
- } catch (r) {
2667
- console.debug("Could not postmessage", r);
3307
+ } catch (s) {
3308
+ console.debug("Could not postmessage", s);
2668
3309
  }
2669
3310
  }
2670
3311
  }
2671
- const Xo = () => {
2672
- Qo("insertMenu", {
3312
+ const vs = () => {
3313
+ Ss("insertMenu", {
2673
3314
  name: "_default",
2674
3315
  default: !0,
2675
3316
  items: [{
@@ -2691,15 +3332,17 @@ const Xo = () => {
2691
3332
  }]
2692
3333
  });
2693
3334
  };
2694
- let Ce = !1;
2695
- const et = (e = {}) => {
3335
+ let Ie = !1;
3336
+ const nt = (e = {}) => {
2696
3337
  var t, n;
2697
- Ce || (Ce = !0, y() && ((t = window.parent) == null || t.postMessage({
3338
+ Ie || (Ie = !0, w() && ((t = window.parent) == null || t.postMessage({
2698
3339
  type: "builder.sdkInfo",
2699
3340
  data: {
2700
- target: T,
2701
- version: Yo,
3341
+ target: A,
3342
+ version: ks,
2702
3343
  supportsPatchUpdates: !1,
3344
+ // Supports builder-model="..." attribute which is needed to
3345
+ // scope our '+ add block' button styling
2703
3346
  supportsAddBlockScoping: !0,
2704
3347
  supportsCustomBreakpoints: !0
2705
3348
  }
@@ -2709,80 +3352,80 @@ const et = (e = {}) => {
2709
3352
  options: e
2710
3353
  }
2711
3354
  }, "*"), window.addEventListener("message", (o) => {
2712
- var s, i;
2713
- if (!Ze(e.trustedHosts, o))
3355
+ var r, i;
3356
+ if (!tt(e.trustedHosts, o))
2714
3357
  return;
2715
3358
  const {
2716
- data: r
3359
+ data: s
2717
3360
  } = o;
2718
- if (!!(r != null && r.type))
2719
- switch (r.type) {
3361
+ if (s != null && s.type)
3362
+ switch (s.type) {
2720
3363
  case "builder.evaluate": {
2721
- const a = r.data.text, l = r.data.arguments || [], c = r.data.id, u = new Function(a);
2722
- let p, h = null;
3364
+ const a = s.data.text, l = s.data.arguments || [], d = s.data.id, m = new Function(a);
3365
+ let c, p = null;
2723
3366
  try {
2724
- p = u.apply(null, l);
3367
+ c = m.apply(null, l);
2725
3368
  } catch (S) {
2726
- h = S;
3369
+ p = S;
2727
3370
  }
2728
- h ? (s = window.parent) == null || s.postMessage({
3371
+ p ? (r = window.parent) == null || r.postMessage({
2729
3372
  type: "builder.evaluateError",
2730
3373
  data: {
2731
- id: c,
2732
- error: h.message
3374
+ id: d,
3375
+ error: p.message
2733
3376
  }
2734
- }, "*") : p && typeof p.then == "function" ? p.then((S) => {
2735
- var I;
2736
- (I = window.parent) == null || I.postMessage({
3377
+ }, "*") : c && typeof c.then == "function" ? c.then((S) => {
3378
+ var b;
3379
+ (b = window.parent) == null || b.postMessage({
2737
3380
  type: "builder.evaluateResult",
2738
3381
  data: {
2739
- id: c,
3382
+ id: d,
2740
3383
  result: S
2741
3384
  }
2742
3385
  }, "*");
2743
3386
  }).catch(console.error) : (i = window.parent) == null || i.postMessage({
2744
3387
  type: "builder.evaluateResult",
2745
3388
  data: {
2746
- result: p,
2747
- id: c
3389
+ result: c,
3390
+ id: d
2748
3391
  }
2749
3392
  }, "*");
2750
3393
  break;
2751
3394
  }
2752
3395
  }
2753
3396
  })));
2754
- }, tt = ({
3397
+ }, ot = ({
2755
3398
  model: e,
2756
3399
  trustedHosts: t,
2757
3400
  callbacks: n
2758
3401
  }) => (o) => {
2759
- if (!Ze(t, o))
3402
+ if (!tt(t, o))
2760
3403
  return;
2761
3404
  const {
2762
- data: r
3405
+ data: s
2763
3406
  } = o;
2764
- if (r)
2765
- switch (r.type) {
3407
+ if (s)
3408
+ switch (s.type) {
2766
3409
  case "builder.configureSdk": {
2767
- n.configureSdk(r.data);
3410
+ n.configureSdk(s.data);
2768
3411
  break;
2769
3412
  }
2770
3413
  case "builder.triggerAnimation": {
2771
- n.animation(r.data);
3414
+ n.animation(s.data);
2772
3415
  break;
2773
3416
  }
2774
3417
  case "builder.contentUpdate": {
2775
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, a = s.data;
3418
+ const r = s.data, i = r.key || r.alias || r.entry || r.modelName, a = r.data;
2776
3419
  i === e && n.contentUpdate(a);
2777
3420
  break;
2778
3421
  }
2779
3422
  }
2780
- }, Ar = (e, t, n) => {
2781
- if (!y)
2782
- return w.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3423
+ }, Zs = (e, t, n) => {
3424
+ if (!w)
3425
+ return $.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
2783
3426
  };
2784
- et();
2785
- const o = tt({
3427
+ nt();
3428
+ const o = ot({
2786
3429
  callbacks: {
2787
3430
  contentUpdate: t,
2788
3431
  animation: () => {
@@ -2796,7 +3439,7 @@ const et = (e = {}) => {
2796
3439
  return window.addEventListener("message", o), () => {
2797
3440
  window.removeEventListener("message", o);
2798
3441
  };
2799
- }, Zo = f({
3442
+ }, Cs = f({
2800
3443
  name: "enable-editor",
2801
3444
  props: [
2802
3445
  "builderContextSignal",
@@ -2823,37 +3466,37 @@ const et = (e = {}) => {
2823
3466
  ContentWrapper: this.contentWrapper || "div",
2824
3467
  httpReqsData: {},
2825
3468
  clicked: !1,
2826
- builderContext: ee
3469
+ builderContext: te
2827
3470
  };
2828
3471
  },
2829
3472
  provide() {
2830
3473
  const e = this;
2831
3474
  return {
2832
- [ee.key]: e.builderContextSignal
3475
+ [te.key]: e.builderContextSignal
2833
3476
  };
2834
3477
  },
2835
3478
  mounted() {
2836
3479
  (() => {
2837
3480
  var n, o;
2838
- if (y()) {
2839
- if (A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3481
+ if (w()) {
3482
+ if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2840
3483
  new CustomEvent("initeditingbldr")
2841
3484
  ), this.builderContextSignal.content && H(this.canTrack)) {
2842
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2843
- ne({
3485
+ const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
3486
+ oe({
2844
3487
  type: "impression",
2845
3488
  canTrack: !0,
2846
3489
  contentId: i,
2847
3490
  apiKey: a,
2848
- variationId: s !== i ? s : void 0
3491
+ variationId: r !== i ? r : void 0
2849
3492
  });
2850
3493
  }
2851
- Vo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3494
+ os() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2852
3495
  new CustomEvent("initpreviewingbldr")
2853
3496
  );
2854
3497
  }
2855
3498
  })(), (() => {
2856
- this.apiKey || w.error(
3499
+ this.apiKey || $.error(
2857
3500
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2858
3501
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2859
3502
  })();
@@ -2901,7 +3544,7 @@ const et = (e = {}) => {
2901
3544
  }
2902
3545
  },
2903
3546
  unmounted() {
2904
- y() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
3547
+ w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2905
3548
  "builder:component:stateChangeListenerActivated",
2906
3549
  this.emitStateUpdate
2907
3550
  ));
@@ -2955,7 +3598,7 @@ const et = (e = {}) => {
2955
3598
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
2956
3599
  },
2957
3600
  mergeNewContent(e) {
2958
- var n, o, r, s, i;
3601
+ var n, o, s, r, i;
2959
3602
  const t = {
2960
3603
  ...this.builderContextSignal.content,
2961
3604
  ...e,
@@ -2966,27 +3609,27 @@ const et = (e = {}) => {
2966
3609
  meta: {
2967
3610
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
2968
3611
  ...e == null ? void 0 : e.meta,
2969
- breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
3612
+ breakpoints: ((s = e == null ? void 0 : e.meta) == null ? void 0 : s.breakpoints) || ((i = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : i.breakpoints)
2970
3613
  }
2971
3614
  };
2972
3615
  this.builderContextSignal.content = t;
2973
3616
  },
2974
3617
  processMessage(e) {
2975
- return tt({
3618
+ return ot({
2976
3619
  model: this.model,
2977
3620
  trustedHosts: this.trustedHosts,
2978
3621
  callbacks: {
2979
3622
  configureSdk: (t) => {
2980
- var r;
3623
+ var s;
2981
3624
  const { breakpoints: n, contentId: o } = t;
2982
- !o || o !== ((r = this.builderContextSignal.content) == null ? void 0 : r.id) || n && (this.mergeNewContent({
3625
+ !o || o !== ((s = this.builderContextSignal.content) == null ? void 0 : s.id) || n && (this.mergeNewContent({
2983
3626
  meta: {
2984
3627
  breakpoints: n
2985
3628
  }
2986
3629
  }), this.forceReRenderCount = this.forceReRenderCount + 1);
2987
3630
  },
2988
3631
  animation: (t) => {
2989
- xe(t);
3632
+ Ne(t);
2990
3633
  },
2991
3634
  contentUpdate: (t) => {
2992
3635
  this.mergeNewContent(t), this.forceReRenderCount = this.forceReRenderCount + 1;
@@ -2997,7 +3640,7 @@ const et = (e = {}) => {
2997
3640
  evaluateJsCode() {
2998
3641
  var t, n;
2999
3642
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
3000
- e && q({
3643
+ e && Y({
3001
3644
  code: e,
3002
3645
  context: this.context || {},
3003
3646
  localState: void 0,
@@ -3008,14 +3651,14 @@ const et = (e = {}) => {
3008
3651
  onClick(e) {
3009
3652
  var t, n;
3010
3653
  if (this.builderContextSignal.content) {
3011
- const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
3012
- ne({
3654
+ const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
3655
+ oe({
3013
3656
  type: "click",
3014
3657
  canTrack: H(this.canTrack),
3015
- contentId: r,
3658
+ contentId: s,
3016
3659
  apiKey: this.apiKey,
3017
- variationId: o !== r ? o : void 0,
3018
- ...Go(e),
3660
+ variationId: o !== s ? o : void 0,
3661
+ ...gs(e),
3019
3662
  unique: !this.clicked
3020
3663
  });
3021
3664
  }
@@ -3024,7 +3667,7 @@ const et = (e = {}) => {
3024
3667
  evalExpression(e) {
3025
3668
  return e.replace(
3026
3669
  /{{([^}]+)}}/g,
3027
- (t, n) => q({
3670
+ (t, n) => Y({
3028
3671
  code: n,
3029
3672
  context: this.context || {},
3030
3673
  localState: void 0,
@@ -3034,32 +3677,32 @@ const et = (e = {}) => {
3034
3677
  );
3035
3678
  },
3036
3679
  handleRequest({ url: e, key: t }) {
3037
- Ke(e).then((n) => n.json()).then((n) => {
3038
- var r, s;
3680
+ Je(e).then((n) => n.json()).then((n) => {
3681
+ var s, r;
3039
3682
  const o = {
3040
3683
  ...this.builderContextSignal.rootState,
3041
3684
  [t]: n
3042
3685
  };
3043
- (s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
3686
+ (r = (s = this.builderContextSignal).rootSetState) == null || r.call(s, o), this.httpReqsData[t] = !0;
3044
3687
  }).catch((n) => {
3045
3688
  console.error("error fetching dynamic data", e, n);
3046
3689
  });
3047
3690
  },
3048
3691
  runHttpRequests() {
3049
- var t, n, o;
3050
- const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
3051
- Object.entries(e).forEach(([r, s]) => {
3052
- if (s && (!this.httpReqsData[r] || A())) {
3053
- const i = this.evalExpression(s);
3692
+ var t, n;
3693
+ const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
3694
+ Object.entries(e).forEach(([o, s]) => {
3695
+ if (s && (!this.httpReqsData[o] || T())) {
3696
+ const r = this.evalExpression(s);
3054
3697
  this.handleRequest({
3055
- url: i,
3056
- key: r
3698
+ url: r,
3699
+ key: o
3057
3700
  });
3058
3701
  }
3059
3702
  });
3060
3703
  },
3061
3704
  emitStateUpdate() {
3062
- A() && window.dispatchEvent(
3705
+ T() && window.dispatchEvent(
3063
3706
  new CustomEvent(
3064
3707
  "builder:component:stateChange",
3065
3708
  {
@@ -3074,7 +3717,7 @@ const et = (e = {}) => {
3074
3717
  );
3075
3718
  },
3076
3719
  elementRef_onIniteditingbldr(e) {
3077
- this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Xo(), et({
3720
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), vs(), nt({
3078
3721
  ...this.locale ? {
3079
3722
  locale: this.locale
3080
3723
  } : {},
@@ -3091,7 +3734,7 @@ const et = (e = {}) => {
3091
3734
  this.builderContextSignal.componentInfos
3092
3735
  ).forEach((t) => {
3093
3736
  var o;
3094
- const n = ho(t);
3737
+ const n = Oo(t);
3095
3738
  (o = window.parent) == null || o.postMessage(n, "*");
3096
3739
  }), window.addEventListener(
3097
3740
  "builder:component:stateChangeListenerActivated",
@@ -3101,28 +3744,28 @@ const et = (e = {}) => {
3101
3744
  elementRef_onInitpreviewingbldr(e) {
3102
3745
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
3103
3746
  `builder.preview.${n}`
3104
- ), r = t.get("apiKey") || t.get("builder.space");
3105
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && Y({
3747
+ ), s = t.get("apiKey") || t.get("builder.space");
3748
+ n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && Q({
3106
3749
  model: this.model,
3107
3750
  apiKey: this.apiKey,
3108
3751
  apiVersion: this.builderContextSignal.apiVersion
3109
- }).then((s) => {
3110
- s && this.mergeNewContent(s);
3752
+ }).then((r) => {
3753
+ r && this.mergeNewContent(r);
3111
3754
  });
3112
3755
  }
3113
3756
  }
3114
3757
  });
3115
- function er(e, t, n, o, r, s) {
3758
+ function ws(e, t, n, o, s, r) {
3116
3759
  var i, a, l;
3117
- return e.builderContextSignal.content ? (d(), k(L(e.ContentWrapper), C({
3760
+ return e.builderContextSignal.content ? (u(), g(D(e.ContentWrapper), C({
3118
3761
  key: e.forceReRenderCount,
3119
3762
  ref: "elementRef",
3120
- onClick: (c) => e.onClick(c),
3763
+ onClick: (d) => e.onClick(d),
3121
3764
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
3122
3765
  "builder-model": e.model,
3123
3766
  class: `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`,
3124
- onIniteditingbldr: (c) => e.elementRef_onIniteditingbldr(c),
3125
- onInitpreviewingbldr: (c) => e.elementRef_onInitpreviewingbldr(c)
3767
+ onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
3768
+ onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
3126
3769
  }, {
3127
3770
  ...e.showContent ? {} : {
3128
3771
  hidden: !0,
@@ -3131,16 +3774,16 @@ function er(e, t, n, o, r, s) {
3131
3774
  ...e.contentWrapperProps
3132
3775
  }), {
3133
3776
  default: B(() => [
3134
- E(e.$slots, "default")
3777
+ P(e.$slots, "default")
3135
3778
  ]),
3136
3779
  _: 3
3137
- }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("v-if", !0);
3780
+ }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
3138
3781
  }
3139
- const tr = /* @__PURE__ */ b(Zo, [["render", er], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), nr = (e) => {
3140
- var s, i;
3141
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
3142
- let r = "";
3143
- if (o && t && n && (r += `
3782
+ const Is = /* @__PURE__ */ y(Cs, [["render", ws]]), $s = (e) => {
3783
+ var r;
3784
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
3785
+ let s = "";
3786
+ if (o && t && n && (s += `
3144
3787
  @font-face {
3145
3788
  font-family: "${t}";
3146
3789
  src: local("${n}"), url('${o}') format('woff2');
@@ -3148,40 +3791,40 @@ font-display: fallback;
3148
3791
  font-weight: 400;
3149
3792
  }
3150
3793
  `.trim()), e.files)
3151
- for (const a in e.files) {
3152
- if (!(String(Number(a)) === a))
3794
+ for (const i in e.files) {
3795
+ if (!(String(Number(i)) === i))
3153
3796
  continue;
3154
- const c = e.files[a];
3155
- c && c !== o && (r += `
3797
+ const l = e.files[i];
3798
+ l && l !== o && (s += `
3156
3799
  @font-face {
3157
3800
  font-family: "${t}";
3158
- src: url('${c}') format('woff2');
3801
+ src: url('${l}') format('woff2');
3159
3802
  font-display: fallback;
3160
- font-weight: ${a};
3803
+ font-weight: ${i};
3161
3804
  }
3162
3805
  `.trim());
3163
3806
  }
3164
- return r;
3165
- }, or = ({
3807
+ return s;
3808
+ }, Ts = ({
3166
3809
  customFonts: e
3167
3810
  }) => {
3168
3811
  var t;
3169
- return ((t = e == null ? void 0 : e.map((n) => nr(n))) == null ? void 0 : t.join(" ")) || "";
3170
- }, rr = ({
3812
+ return ((t = e == null ? void 0 : e.map((n) => $s(n))) == null ? void 0 : t.join(" ")) || "";
3813
+ }, Rs = ({
3171
3814
  cssCode: e,
3172
3815
  contentId: t
3173
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", sr = f({
3816
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Es = f({
3174
3817
  name: "content-styles",
3175
- components: { InlinedStyles: le },
3818
+ components: { InlinedStyles: de },
3176
3819
  props: ["cssCode", "contentId", "customFonts"],
3177
3820
  data() {
3178
3821
  return {
3179
3822
  injectedStyles: `
3180
- ${rr({
3823
+ ${Rs({
3181
3824
  cssCode: this.cssCode,
3182
3825
  contentId: this.contentId
3183
3826
  })}
3184
- ${or({
3827
+ ${Ts({
3185
3828
  customFonts: this.customFonts
3186
3829
  })}
3187
3830
 
@@ -3205,28 +3848,28 @@ ${or({
3205
3848
  };
3206
3849
  }
3207
3850
  });
3208
- function ir(e, t, n, o, r, s) {
3209
- const i = g("inlined-styles");
3210
- return d(), k(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
3851
+ function Ps(e, t, n, o, s, r) {
3852
+ const i = k("inlined-styles");
3853
+ return u(), g(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
3211
3854
  }
3212
- const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), lr = ({
3855
+ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3213
3856
  content: e,
3214
3857
  data: t,
3215
3858
  locale: n
3216
3859
  }) => {
3217
- var s, i, a;
3218
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
3860
+ var r, i, a;
3861
+ const o = {}, s = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3219
3862
  return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
3220
3863
  l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
3221
3864
  }), {
3222
3865
  ...o,
3223
- ...r,
3866
+ ...s,
3224
3867
  ...t,
3225
3868
  ...n ? {
3226
3869
  locale: n
3227
3870
  } : {}
3228
3871
  };
3229
- }, cr = ({
3872
+ }, Vs = ({
3230
3873
  content: e,
3231
3874
  data: t
3232
3875
  }) => e ? {
@@ -3236,13 +3879,13 @@ const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/
3236
3879
  ...t
3237
3880
  },
3238
3881
  meta: e == null ? void 0 : e.meta
3239
- } : void 0, dr = it, ur = f({
3882
+ } : void 0, Bs = at, Ws = f({
3240
3883
  name: "content-component",
3241
3884
  components: {
3242
- EnableEditor: tr,
3243
- InlinedScript: De,
3244
- ContentStyles: ar,
3245
- Blocks: J
3885
+ EnableEditor: Is,
3886
+ InlinedScript: ze,
3887
+ ContentStyles: As,
3888
+ Blocks: K
3246
3889
  },
3247
3890
  props: [
3248
3891
  "content",
@@ -3268,31 +3911,38 @@ const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/
3268
3911
  data() {
3269
3912
  var e, t;
3270
3913
  return {
3271
- scriptStr: wo({
3914
+ scriptStr: Jo({
3915
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3272
3916
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
3917
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3273
3918
  contentId: (t = this.content) == null ? void 0 : t.id
3274
3919
  }),
3275
3920
  registeredComponents: [
3276
- ...fe(),
3277
- ...be,
3921
+ ...ge(),
3922
+ // While this `components` object is deprecated, we must maintain support for it.
3923
+ // Since users are able to override our default components, we need to make sure that we do not break such
3924
+ // existing usage.
3925
+ // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
3926
+ // which is the new standard way of providing custom components, and must therefore take precedence.
3927
+ ...ye,
3278
3928
  ...this.customComponents || []
3279
3929
  ].reduce(
3280
- (n, { component: o, ...r }) => ({
3930
+ (n, { component: o, ...s }) => ({
3281
3931
  ...n,
3282
- [r.name]: {
3283
- component: dr(o),
3284
- ...te(r)
3932
+ [s.name]: {
3933
+ component: Bs(o),
3934
+ ...ne(s)
3285
3935
  }
3286
3936
  }),
3287
3937
  {}
3288
3938
  ),
3289
3939
  builderContextSignal: {
3290
- content: cr({
3940
+ content: Vs({
3291
3941
  content: this.content,
3292
3942
  data: this.data
3293
3943
  }),
3294
3944
  localState: void 0,
3295
- rootState: lr({
3945
+ rootState: xs({
3296
3946
  content: this.content,
3297
3947
  data: this.data,
3298
3948
  locale: this.locale
@@ -3302,13 +3952,18 @@ const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/
3302
3952
  apiKey: this.apiKey,
3303
3953
  apiVersion: this.apiVersion,
3304
3954
  componentInfos: [
3305
- ...fe(),
3306
- ...be,
3955
+ ...ge(),
3956
+ // While this `components` object is deprecated, we must maintain support for it.
3957
+ // Since users are able to override our default components, we need to make sure that we do not break such
3958
+ // existing usage.
3959
+ // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
3960
+ // which is the new standard way of providing custom components, and must therefore take precedence.
3961
+ ...ye,
3307
3962
  ...this.customComponents || []
3308
3963
  ].reduce(
3309
- (n, { component: o, ...r }) => ({
3964
+ (n, { component: o, ...s }) => ({
3310
3965
  ...n,
3311
- [r.name]: te(r)
3966
+ [s.name]: ne(s)
3312
3967
  }),
3313
3968
  {}
3314
3969
  ),
@@ -3316,13 +3971,13 @@ const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/
3316
3971
  BlocksWrapper: this.blocksWrapper || "div",
3317
3972
  BlocksWrapperProps: this.blocksWrapperProps || {}
3318
3973
  },
3319
- TARGET: T
3974
+ TARGET: A
3320
3975
  };
3321
3976
  },
3322
3977
  provide() {
3323
3978
  const e = this;
3324
3979
  return {
3325
- [Re.key]: {
3980
+ [Ee.key]: {
3326
3981
  registeredComponents: e.registeredComponents
3327
3982
  }
3328
3983
  };
@@ -3333,9 +3988,9 @@ const ar = /* @__PURE__ */ b(sr, [["render", ir], ["__file", "/home/runner/work/
3333
3988
  }
3334
3989
  }
3335
3990
  });
3336
- function pr(e, t, n, o, r, s) {
3337
- const i = g("inlined-script"), a = g("content-styles"), l = g("blocks"), c = g("enable-editor");
3338
- return d(), k(c, C({
3991
+ function Ns(e, t, n, o, s, r) {
3992
+ const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), d = k("enable-editor");
3993
+ return u(), g(d, C({
3339
3994
  content: e.content,
3340
3995
  data: e.data,
3341
3996
  model: e.model,
@@ -3353,20 +4008,20 @@ function pr(e, t, n, o, r, s) {
3353
4008
  trustedHosts: e.trustedHosts
3354
4009
  }, {}), {
3355
4010
  default: B(() => {
3356
- var u, p, h, S, I, N, U;
4011
+ var m, c, p, S, b, x, M;
3357
4012
  return [
3358
- e.isSsrAbTest ? (d(), k(i, {
4013
+ e.isSsrAbTest ? (u(), g(i, {
3359
4014
  key: 0,
3360
4015
  scriptStr: e.scriptStr
3361
- }, null, 8, ["scriptStr"])) : v("v-if", !0),
3362
- e.TARGET !== "reactNative" ? (d(), k(a, {
4016
+ }, null, 8, ["scriptStr"])) : v("", !0),
4017
+ e.TARGET !== "reactNative" ? (u(), g(a, {
3363
4018
  key: 1,
3364
- contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
3365
- cssCode: (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.cssCode,
3366
- customFonts: (I = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : I.customFonts
3367
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("v-if", !0),
3368
- P(l, {
3369
- blocks: (U = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : U.blocks,
4019
+ contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4020
+ cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4021
+ customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
4022
+ }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
4023
+ V(l, {
4024
+ blocks: (M = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : M.blocks,
3370
4025
  context: e.builderContextSignal,
3371
4026
  registeredComponents: e.registeredComponents,
3372
4027
  linkComponent: e.linkComponent
@@ -3376,12 +4031,12 @@ function pr(e, t, n, o, r, s) {
3376
4031
  _: 1
3377
4032
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
3378
4033
  }
3379
- const mr = /* @__PURE__ */ b(ur, [["render", pr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), hr = f({
4034
+ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
3380
4035
  name: "content-variants",
3381
4036
  components: {
3382
- InlinedScript: De,
3383
- InlinedStyles: le,
3384
- ContentComponent: mr
4037
+ InlinedScript: ze,
4038
+ InlinedStyles: de,
4039
+ ContentComponent: Fs
3385
4040
  },
3386
4041
  props: [
3387
4042
  "canTrack",
@@ -3405,13 +4060,13 @@ const mr = /* @__PURE__ */ b(ur, [["render", pr], ["__file", "/home/runner/work/
3405
4060
  ],
3406
4061
  data() {
3407
4062
  return {
3408
- shouldRenderVariants: yo({
4063
+ shouldRenderVariants: jo({
3409
4064
  canTrack: H(this.canTrack),
3410
4065
  content: this.content
3411
4066
  }),
3412
- TARGET: T,
3413
- getScriptString: So,
3414
- getVariants: K
4067
+ TARGET: A,
4068
+ getScriptString: qo,
4069
+ getVariants: J
3415
4070
  };
3416
4071
  },
3417
4072
  mounted() {
@@ -3420,8 +4075,8 @@ const mr = /* @__PURE__ */ b(ur, [["render", pr], ["__file", "/home/runner/work/
3420
4075
  computed: {
3421
4076
  updateCookieAndStylesScriptStr() {
3422
4077
  var e;
3423
- return Co(
3424
- K(this.content).map((t) => ({
4078
+ return zo(
4079
+ J(this.content).map((t) => ({
3425
4080
  id: t.testVariationId,
3426
4081
  testRatio: t.testRatio
3427
4082
  })),
@@ -3429,37 +4084,37 @@ const mr = /* @__PURE__ */ b(ur, [["render", pr], ["__file", "/home/runner/work/
3429
4084
  );
3430
4085
  },
3431
4086
  hideVariantsStyleString() {
3432
- return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4087
+ return J(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3433
4088
  },
3434
4089
  defaultContent() {
3435
4090
  var e;
3436
4091
  return this.shouldRenderVariants ? {
3437
4092
  ...this.content,
3438
4093
  testVariationId: (e = this.content) == null ? void 0 : e.id
3439
- } : In({
4094
+ } : wn({
3440
4095
  item: this.content,
3441
4096
  canTrack: H(this.canTrack)
3442
4097
  });
3443
4098
  }
3444
4099
  }
3445
4100
  });
3446
- function fr(e, t, n, o, r, s) {
3447
- var c;
3448
- const i = g("inlined-script"), a = g("inlined-styles"), l = g("content-component");
3449
- return d(), m(R, null, [
3450
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), k(i, {
4101
+ function Os(e, t, n, o, s, r) {
4102
+ var d;
4103
+ const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
4104
+ return u(), h(I, null, [
4105
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
3451
4106
  key: 0,
3452
4107
  scriptStr: e.getScriptString()
3453
- }, null, 8, ["scriptStr"])) : v("v-if", !0),
3454
- e.shouldRenderVariants ? (d(), m(R, { key: 1 }, [
3455
- P(a, {
3456
- id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
4108
+ }, null, 8, ["scriptStr"])) : v("", !0),
4109
+ e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
4110
+ V(a, {
4111
+ id: `variants-styles-${(d = e.content) == null ? void 0 : d.id}`,
3457
4112
  styles: e.hideVariantsStyleString
3458
4113
  }, null, 8, ["id", "styles"]),
3459
- P(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
3460
- (d(!0), m(R, null, F(e.getVariants(e.content), (u, p) => (d(), k(l, {
3461
- key: u.testVariationId,
3462
- content: u,
4114
+ V(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
4115
+ (u(!0), h(I, null, O(e.getVariants(e.content), (m, c) => (u(), g(l, {
4116
+ key: m.testVariationId,
4117
+ content: m,
3463
4118
  showContent: !1,
3464
4119
  model: e.model,
3465
4120
  data: e.data,
@@ -3479,8 +4134,8 @@ function fr(e, t, n, o, r, s) {
3479
4134
  contentWrapperProps: e.contentWrapperProps,
3480
4135
  trustedHosts: e.trustedHosts
3481
4136
  }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
3482
- ], 64)) : v("v-if", !0),
3483
- P(l, C({
4137
+ ], 64)) : v("", !0),
4138
+ V(l, C({
3484
4139
  content: e.defaultContent,
3485
4140
  showContent: !0,
3486
4141
  model: e.model,
@@ -3505,12 +4160,13 @@ function fr(e, t, n, o, r, s) {
3505
4160
  }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
3506
4161
  ], 64);
3507
4162
  }
3508
- const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), br = async ({
4163
+ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ms = async ({
3509
4164
  builderContextValue: e,
3510
4165
  symbol: t
3511
4166
  }) => {
3512
- if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3513
- return Y({
4167
+ if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4168
+ (e != null && e.apiKey))
4169
+ return Q({
3514
4170
  model: t.model,
3515
4171
  apiKey: e.apiKey,
3516
4172
  apiVersion: e.apiVersion,
@@ -3520,13 +4176,12 @@ const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/
3520
4176
  }
3521
4177
  }
3522
4178
  }).catch((n) => {
3523
- w.error("Could not fetch symbol content: ", n);
4179
+ $.error("Could not fetch symbol content: ", n);
3524
4180
  });
3525
- }, gr = f({
4181
+ }, Ls = f({
3526
4182
  name: "builder-symbol",
3527
- components: { ContentVariants: nt },
4183
+ components: { ContentVariants: st },
3528
4184
  props: [
3529
- "js",
3530
4185
  "attributes",
3531
4186
  "symbol",
3532
4187
  "dynamic",
@@ -3537,7 +4192,7 @@ const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/
3537
4192
  ],
3538
4193
  data() {
3539
4194
  var e;
3540
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: G };
4195
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: F };
3541
4196
  },
3542
4197
  mounted() {
3543
4198
  this.setContent();
@@ -3557,7 +4212,7 @@ const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/
3557
4212
  this.attributes[re()],
3558
4213
  "builder-symbol",
3559
4214
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
3560
- ((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
4215
+ (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
3561
4216
  ].filter(Boolean).join(" ");
3562
4217
  },
3563
4218
  onUpdateHook0() {
@@ -3568,7 +4223,7 @@ const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/
3568
4223
  },
3569
4224
  methods: {
3570
4225
  setContent() {
3571
- this.contentToUse || br({
4226
+ this.contentToUse || Ms({
3572
4227
  symbol: this.symbol,
3573
4228
  builderContextValue: this.builderContext
3574
4229
  }).then((e) => {
@@ -3577,11 +4232,11 @@ const nt = /* @__PURE__ */ b(hr, [["render", fr], ["__file", "/home/runner/work/
3577
4232
  }
3578
4233
  }
3579
4234
  });
3580
- function kr(e, t, n, o, r, s) {
3581
- var a, l, c, u, p;
3582
- const i = g("content-variants");
3583
- return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3584
- P(i, {
4235
+ function Ds(e, t, n, o, s, r) {
4236
+ var a, l, d, m, c;
4237
+ const i = k("content-variants");
4238
+ return u(), h("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4239
+ V(i, {
3585
4240
  __isNestedRender: !0,
3586
4241
  apiVersion: e.builderContext.apiVersion,
3587
4242
  apiKey: e.builderContext.apiKey,
@@ -3593,28 +4248,28 @@ function kr(e, t, n, o, r, s) {
3593
4248
  data: {
3594
4249
  ...(l = e.symbol) == null ? void 0 : l.data,
3595
4250
  ...e.builderContext.localState,
3596
- ...(u = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : u.state
4251
+ ...(m = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : m.state
3597
4252
  },
3598
- model: (p = e.symbol) == null ? void 0 : p.model,
4253
+ model: (c = e.symbol) == null ? void 0 : c.model,
3599
4254
  content: e.contentToUse,
3600
4255
  linkComponent: e.builderLinkComponent
3601
4256
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
3602
4257
  ], 16);
3603
4258
  }
3604
- const yr = /* @__PURE__ */ b(gr, [["render", kr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), Br = J, xr = nt, we = {};
3605
- function Wr(e) {
3606
- if (y()) {
3607
- Object.assign(we, e);
4259
+ const Hs = /* @__PURE__ */ y(Ls, [["render", Ds]]), er = K, tr = st, $e = {};
4260
+ function nr(e) {
4261
+ if (w()) {
4262
+ Object.assign($e, e);
3608
4263
  const t = {
3609
4264
  type: "builder.settingsChange",
3610
- data: we
4265
+ data: $e
3611
4266
  };
3612
4267
  parent.postMessage(t, "*");
3613
4268
  }
3614
4269
  }
3615
- const Vr = async (e) => {
3616
- var o, r, s;
3617
- const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
4270
+ const or = async (e) => {
4271
+ var o, s, r;
4272
+ const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
3618
4273
  ...e,
3619
4274
  apiKey: e.apiKey,
3620
4275
  model: e.model || "page",
@@ -3624,55 +4279,55 @@ const Vr = async (e) => {
3624
4279
  urlPath: t
3625
4280
  } : {}
3626
4281
  },
3627
- options: ze(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
4282
+ options: Ge(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
3628
4283
  };
3629
4284
  return {
3630
4285
  apiKey: n.apiKey,
3631
4286
  model: n.model,
3632
- content: await Y(n)
4287
+ content: await Q(n)
3633
4288
  };
3634
4289
  };
3635
4290
  export {
3636
- Wo as A,
3637
- We as B,
3638
- nt as C,
3639
- Ge as D,
3640
- Y as E,
3641
- nn as F,
3642
- Er as G,
3643
- Tr as H,
3644
- le as I,
3645
- Cr as J,
3646
- $r as K,
3647
- Br as R,
3648
- hn as S,
3649
- T,
3650
- mo as V,
3651
- b as _,
4291
+ ns as A,
4292
+ ce as B,
4293
+ st as C,
4294
+ _e as D,
4295
+ Q as E,
4296
+ tn as F,
4297
+ Qs as G,
4298
+ _s as H,
4299
+ dn as I,
4300
+ qs as J,
4301
+ Gs as K,
4302
+ er as R,
4303
+ mn as S,
4304
+ A as T,
4305
+ Fo as V,
4306
+ de as _,
3652
4307
  Yt as a,
3653
- wr as b,
3654
- W as c,
3655
- Rr as d,
3656
- q as e,
3657
- Ir as f,
3658
- Pe as g,
3659
- re as h,
3660
- ee as i,
3661
- J as j,
3662
- xr as k,
3663
- mt as l,
3664
- Zt as m,
3665
- un as n,
3666
- yr as o,
3667
- oo as p,
3668
- A as q,
3669
- Vo as r,
3670
- ho as s,
3671
- Qo as t,
3672
- Wr as u,
3673
- ze as v,
3674
- dr as w,
3675
- Pr as x,
3676
- Ar as y,
3677
- Vr as z
4308
+ zs as b,
4309
+ N as c,
4310
+ Ys as d,
4311
+ y as e,
4312
+ Y as f,
4313
+ Ve as g,
4314
+ Js as h,
4315
+ re as i,
4316
+ te as j,
4317
+ K as k,
4318
+ tr as l,
4319
+ ht as m,
4320
+ Xt as n,
4321
+ Hs as o,
4322
+ Mn as p,
4323
+ T as q,
4324
+ os as r,
4325
+ Oo as s,
4326
+ Ss as t,
4327
+ nr as u,
4328
+ Ge as v,
4329
+ Bs as w,
4330
+ Xs as x,
4331
+ Zs as y,
4332
+ or as z
3678
4333
  };