@builder.io/sdk-vue 0.5.4 → 0.5.6-0

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 (142) hide show
  1. package/package.json +20 -9
  2. package/packages/_vue2/dist/block-12099f71.js +189 -0
  3. package/packages/_vue2/dist/block-246063be.cjs +3 -0
  4. package/packages/_vue2/dist/block-styles-9360f05a.cjs +1 -0
  5. package/packages/_vue2/dist/block-styles-cfdd1b51.js +79 -0
  6. package/packages/_vue2/dist/block-wrapper-857a5d4f.cjs +1 -0
  7. package/packages/_vue2/dist/{block-wrapper.6a744b92.js → block-wrapper-f852f3a4.js} +19 -16
  8. package/packages/_vue2/dist/{blocks-wrapper.ab5c72c6.cjs → blocks-wrapper-87a5ef9b.cjs} +1 -1
  9. package/packages/_vue2/dist/{blocks-wrapper.d33d2eb3.js → blocks-wrapper-98241c68.js} +1 -1
  10. package/packages/_vue2/dist/{component-ref.ae718032.js → component-ref-47d34951.js} +29 -21
  11. package/packages/_vue2/dist/component-ref-b891d36b.cjs +1 -0
  12. package/packages/_vue2/dist/content-043dd197.cjs +1 -0
  13. package/packages/_vue2/dist/{content.ceded193.js → content-ab735937.js} +36 -19
  14. package/packages/_vue2/dist/{css.e3de5493.cjs → css-03a9ebe6.cjs} +1 -1
  15. package/packages/_vue2/dist/{css.29007594.js → css-8b11bb6e.js} +1 -1
  16. package/packages/_vue2/dist/enable-editor-04399d8f.cjs +1 -0
  17. package/packages/_vue2/dist/{enable-editor.291bc6cc.js → enable-editor-2d8d86f8.js} +28 -22
  18. package/packages/_vue2/dist/evaluate-6a213bca.cjs +1 -0
  19. package/packages/_vue2/dist/evaluate-c9d68bff.js +76 -0
  20. package/packages/_vue2/dist/get-block-actions-2b1bc20b.cjs +1 -0
  21. package/packages/_vue2/dist/get-block-actions-75e52f20.js +36 -0
  22. package/packages/_vue2/dist/get-block-properties-0e241c2c.cjs +1 -0
  23. package/packages/_vue2/dist/{get-block-properties.c65799b6.js → get-block-properties-f778ef2a.js} +2 -2
  24. package/packages/_vue2/dist/get-processed-block-41399170.cjs +1 -0
  25. package/packages/_vue2/dist/get-processed-block-940605b2.js +46 -0
  26. package/packages/_vue2/dist/helpers-327ed263.js +16 -0
  27. package/packages/_vue2/dist/helpers-4efe31ac.cjs +1 -0
  28. package/packages/_vue2/dist/index-537704ba.cjs +1 -0
  29. package/packages/_vue2/dist/{index.9a42542a.js → index-a089abc3.js} +592 -540
  30. package/packages/_vue2/dist/index-c1c356f8.cjs +32 -0
  31. package/packages/_vue2/dist/index-cc904f8c.js +10 -0
  32. package/packages/_vue2/dist/{inlined-script.8d01264c.js → inlined-script-5ac8fff7.js} +1 -1
  33. package/packages/_vue2/dist/{inlined-script.b0a9d187.cjs → inlined-script-73ce088c.cjs} +1 -1
  34. package/packages/_vue2/dist/inlined-styles-1d50f193.cjs +1 -0
  35. package/packages/_vue2/dist/{inlined-styles.316b8b1e.js → inlined-styles-3a327fbd.js} +1 -1
  36. package/packages/_vue2/dist/{interactive-element.8dc26caa.js → interactive-element-2aec4d6f.js} +12 -10
  37. package/packages/_vue2/dist/interactive-element-67792031.cjs +1 -0
  38. package/packages/_vue2/dist/main.cjs +1 -0
  39. package/packages/_vue2/dist/main.js +29 -0
  40. package/packages/_vue2/dist/node-runtime-25e8d976.js +93 -0
  41. package/packages/_vue2/dist/node-runtime-5a567c42.cjs +39 -0
  42. package/packages/_vue2/dist/repeated-block-5eb2f7c6.cjs +1 -0
  43. package/packages/_vue2/dist/{repeated-block.10e3172b.js → repeated-block-a0f25ac2.js} +6 -6
  44. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
  45. package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +1 -1
  46. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
  47. package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +5 -2
  48. package/packages/_vue2/dist/src/components/block/block.vue.d.ts +2 -4
  49. package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +5 -0
  50. package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +3 -0
  51. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +3 -2
  52. package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +5 -0
  53. package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +9 -8
  54. package/packages/_vue2/dist/src/components/content/content.vue.d.ts +1 -0
  55. package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +2 -0
  56. package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +3 -0
  57. package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  58. package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/index.d.ts +1 -0
  59. package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +6 -7
  60. package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +18 -0
  61. package/packages/_vue2/dist/src/functions/evaluate/node-runtime/index.d.ts +1 -0
  62. package/packages/_vue2/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  63. package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +39 -0
  64. package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +2 -5
  65. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +3 -3
  66. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +20 -3
  67. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +5 -3
  68. package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +2 -1
  69. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +86 -2
  70. package/packages/_vue2/dist/src/index.d.ts +2 -1
  71. package/packages/_vue2/dist/src/types/builder-props.d.ts +15 -3
  72. package/packages/_vue2/dist/style.css +1 -1
  73. package/packages/_vue2/dist/{styles.c15a31cd.js → styles-183aeb6b.js} +18 -18
  74. package/packages/_vue2/dist/{styles.4dc21fe2.cjs → styles-6e2cbe10.cjs} +5 -5
  75. package/packages/_vue3/dist/{block-wrapper.ac816add.cjs → block-wrapper.500b81ef.cjs} +1 -1
  76. package/packages/_vue3/dist/{block-wrapper.08dd54d9.js → block-wrapper.5ca35adf.js} +2 -2
  77. package/packages/_vue3/dist/{component-ref.d0335518.js → component-ref.5764cdf2.js} +2 -2
  78. package/packages/_vue3/dist/{component-ref.754dc07d.cjs → component-ref.67d028bc.cjs} +1 -1
  79. package/packages/_vue3/dist/{get-block-actions.b4525c26.js → get-block-actions.0f635805.js} +1 -1
  80. package/packages/_vue3/dist/{get-block-actions.9bec6cab.cjs → get-block-actions.20d51d99.cjs} +1 -1
  81. package/packages/_vue3/dist/index.0db0f592.cjs +69 -0
  82. package/packages/_vue3/dist/{index.b56aec16.js → index.f5a3101b.js} +607 -553
  83. package/packages/_vue3/dist/node-runtime.ba895a23.cjs +39 -0
  84. package/packages/_vue3/dist/node-runtime.dc2f1f18.js +93 -0
  85. package/packages/{_vue2/dist/non-node-runtime.16157193.js → _vue3/dist/non-node-runtime.45773de4.js} +62 -64
  86. package/packages/_vue3/dist/{non-node-runtime.d2ddf155.cjs → non-node-runtime.c8fc465e.cjs} +8 -8
  87. package/packages/_vue3/dist/{repeated-block.85d9be5c.js → repeated-block.238616b4.js} +2 -2
  88. package/packages/_vue3/dist/{repeated-block.d02083fc.cjs → repeated-block.8ca9be30.cjs} +1 -1
  89. package/packages/_vue3/dist/sdk.cjs +1 -1
  90. package/packages/_vue3/dist/sdk.js +24 -19
  91. package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +1 -1
  92. package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  93. package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/index.d.ts +1 -0
  94. package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +1 -5
  95. package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +18 -0
  96. package/packages/{_vue2/dist/src/functions/evaluate/non-node-runtime → _vue3/dist/src/functions/evaluate/node-runtime}/index.d.ts +2 -2
  97. package/packages/_vue3/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  98. package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
  99. package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +39 -0
  100. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +20 -3
  101. package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +2 -1
  102. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +103 -2
  103. package/packages/_vue3/dist/src/index.d.ts +2 -1
  104. package/packages/_vue3/dist/style.css +1 -1
  105. package/packages/_vue2/dist/block-styles.563377dc.js +0 -78
  106. package/packages/_vue2/dist/block-styles.aabc1381.cjs +0 -1
  107. package/packages/_vue2/dist/block-wrapper.c398fe34.cjs +0 -1
  108. package/packages/_vue2/dist/block.4a82f1e9.js +0 -179
  109. package/packages/_vue2/dist/block.fa54ef53.cjs +0 -3
  110. package/packages/_vue2/dist/component-ref.bea9f39d.cjs +0 -1
  111. package/packages/_vue2/dist/content.9a0690f2.cjs +0 -1
  112. package/packages/_vue2/dist/enable-editor.e85c5d91.cjs +0 -1
  113. package/packages/_vue2/dist/evaluate.83e2fb2d.cjs +0 -4
  114. package/packages/_vue2/dist/evaluate.eae5dad2.js +0 -79
  115. package/packages/_vue2/dist/get-block-actions.22f6ccba.js +0 -36
  116. package/packages/_vue2/dist/get-block-actions.46be48ce.cjs +0 -1
  117. package/packages/_vue2/dist/get-block-properties.b4dbb641.cjs +0 -1
  118. package/packages/_vue2/dist/get-processed-block.2e8ebb41.js +0 -53
  119. package/packages/_vue2/dist/get-processed-block.72afae32.cjs +0 -1
  120. package/packages/_vue2/dist/index.30399a4c.cjs +0 -32
  121. package/packages/_vue2/dist/inlined-styles.5b59dee2.cjs +0 -1
  122. package/packages/_vue2/dist/interactive-element.9055f3e5.cjs +0 -1
  123. package/packages/_vue2/dist/non-node-runtime.2bbed913.cjs +0 -21
  124. package/packages/_vue2/dist/repeated-block.14f211c3.cjs +0 -1
  125. package/packages/_vue2/dist/sdk.cjs +0 -1
  126. package/packages/_vue2/dist/sdk.js +0 -24
  127. package/packages/_vue2/dist/set.87eb0329.cjs +0 -1
  128. package/packages/_vue2/dist/set.b219ab0e.js +0 -9
  129. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
  130. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +0 -11
  131. package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +0 -1
  132. package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +0 -6
  133. package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +0 -12
  134. package/packages/_vue3/dist/index.6a3c8bf5.cjs +0 -72
  135. package/packages/_vue3/dist/non-node-runtime.3700b5dd.js +0 -2476
  136. package/packages/_vue3/dist/src/functions/evaluate/acorn-interpreter.d.ts +0 -2
  137. package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +0 -11
  138. package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +0 -1
  139. package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +0 -6
  140. package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +0 -12
  141. /package/packages/_vue2/dist/{sdk.d.ts → index.d.ts} +0 -0
  142. /package/packages/{_vue2/dist/src/functions/evaluate → _vue3/dist/src/functions/evaluate/non-node-runtime}/acorn-interpreter.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as $, toHandlers as O, toDisplayString as te, h as ge, resolveComponent as b, createBlock as S, createCommentVNode as v, defineAsyncComponent as j, Fragment as I, renderList as V, withCtx as X, createVNode as N, normalizeProps as ne, guardReactiveProps as Ke, renderSlot as _, createElementVNode as oe, normalizeStyle as re, normalizeClass as be, markRaw as He } from "vue";
2
- function M(e = {}, t, n) {
1
+ import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as T, toHandlers as j, toDisplayString as se, h as Se, resolveComponent as b, createBlock as v, createCommentVNode as C, defineAsyncComponent as _, Fragment as I, renderList as V, withCtx as Z, createVNode as P, normalizeProps as ie, guardReactiveProps as qe, renderSlot as O, createElementVNode as ae, normalizeStyle as le, normalizeClass as ve, markRaw as Ge } from "vue";
2
+ function W(e = {}, t, n) {
3
3
  const o = {};
4
4
  for (const r in e) {
5
5
  if (!e[r] || n && !r.startsWith(t))
@@ -9,11 +9,11 @@ function M(e = {}, t, n) {
9
9
  }
10
10
  return o;
11
11
  }
12
- const ze = g({
12
+ const Je = g({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
16
- return { filterAttrs: M };
16
+ return { filterAttrs: W };
17
17
  },
18
18
  methods: {
19
19
  _classStringToObject(e) {
@@ -32,20 +32,20 @@ const y = (e, t) => {
32
32
  for (const [o, r] of t)
33
33
  n[o] = r;
34
34
  return n;
35
- }, De = ["href", "target"];
36
- function qe(e, t, n, o, r, i) {
37
- return e.link ? (d(), p("a", $({
35
+ }, Ye = ["href", "target"];
36
+ function Xe(e, t, n, o, r, i) {
37
+ return e.link ? (d(), p("a", T({
38
38
  key: 0,
39
39
  role: "button",
40
40
  href: e.link,
41
41
  target: e.openLinkInNewTab ? "_blank" : void 0
42
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17, De)) : (d(), p("button", $({
42
+ }, e.filterAttrs(e.attributes, "v-on:", !1), j(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17, Ye)) : (d(), p("button", T({
43
43
  key: 1,
44
44
  style: e.attributes.style,
45
- class: e._classStringToObject(e.attributes.class + " button-2btisl9m7v3")
46
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17));
45
+ class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
46
+ }, e.filterAttrs(e.attributes, "v-on:", !1), j(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17));
47
47
  }
48
- const Ge = /* @__PURE__ */ y(ze, [["render", qe], ["__scopeId", "data-v-f2ef3d85"]]), L = (e) => JSON.parse(JSON.stringify(e)), ye = {
48
+ const Qe = /* @__PURE__ */ y(Je, [["render", Xe], ["__scopeId", "data-v-ab4af752"]]), L = (e) => JSON.parse(JSON.stringify(e)), Ce = {
49
49
  small: {
50
50
  min: 320,
51
51
  default: 321,
@@ -61,11 +61,11 @@ const Ge = /* @__PURE__ */ y(ze, [["render", qe], ["__scopeId", "data-v-f2ef3d85
61
61
  default: 991,
62
62
  max: 1200
63
63
  }
64
- }, se = (e, t = ye) => `@media (max-width: ${t[e].max}px)`, ke = ({
64
+ }, ce = (e, t = Ce) => `@media (max-width: ${t[e].max}px)`, we = ({
65
65
  small: e,
66
66
  medium: t
67
67
  }) => {
68
- const n = L(ye);
68
+ const n = L(Ce);
69
69
  if (!e || !t)
70
70
  return n;
71
71
  const o = Math.floor(e / 2);
@@ -86,38 +86,120 @@ const Ge = /* @__PURE__ */ y(ze, [["render", qe], ["__scopeId", "data-v-f2ef3d85
86
86
  min: i,
87
87
  default: i + 1
88
88
  }, n;
89
- }, B = "vue3", F = "[Builder.io]: ", T = {
89
+ }, B = "vue3", F = "[Builder.io]: ", w = {
90
90
  log: (...e) => console.log(F, ...e),
91
91
  error: (...e) => console.error(F, ...e),
92
92
  warn: (...e) => console.warn(F, ...e),
93
93
  debug: (...e) => console.debug(F, ...e)
94
94
  };
95
- function C() {
95
+ function S() {
96
96
  return typeof window < "u" && typeof document < "u";
97
97
  }
98
- function Je() {
99
- return C() && window.self !== window.top;
98
+ function Ze() {
99
+ return S() && window.self !== window.top;
100
100
  }
101
101
  function A() {
102
- return Je() && window.location.search.indexOf("builder.frameEditing=") !== -1;
102
+ return Ze() && window.location.search.indexOf("builder.frameEditing=") !== -1;
103
103
  }
104
- function Se() {
104
+ function ee() {
105
105
  const e = () => {
106
106
  var t;
107
107
  return typeof process < "u" && ((t = process == null ? void 0 : process.versions) == null ? void 0 : t.node);
108
108
  };
109
- return !C() && !e();
109
+ return !S() && !e();
110
110
  }
111
- let D;
112
- Se() && import("./non-node-runtime.3700b5dd.js").then((e) => {
113
- D = e.runInNonNode;
111
+ let q;
112
+ ee() && import("./non-node-runtime.45773de4.js").then((e) => {
113
+ q = e.runInNonNode;
114
114
  }).catch((e) => {
115
115
  const t = "Error importing JS interpreter for non-Node.js runtimes. Make sure `js-interpreter` is installed.\n Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless\n ";
116
- T.error(t, e), D = (...n) => {
117
- T.error(t);
116
+ w.error(t, e), q = (...n) => {
117
+ w.error(t);
118
118
  };
119
119
  });
120
- function W({
120
+ const et = () => {
121
+ if (S()) {
122
+ const e = new URL(location.href);
123
+ return e.pathname === "" && (e.pathname = "/"), e;
124
+ } else
125
+ return console.warn("Cannot get location for tracking in non-browser environment"), null;
126
+ }, tt = () => typeof navigator == "object" && navigator.userAgent || "", $e = () => {
127
+ const e = tt(), t = {
128
+ Android() {
129
+ return e.match(/Android/i);
130
+ },
131
+ BlackBerry() {
132
+ return e.match(/BlackBerry/i);
133
+ },
134
+ iOS() {
135
+ return e.match(/iPhone|iPod/i);
136
+ },
137
+ Opera() {
138
+ return e.match(/Opera Mini/i);
139
+ },
140
+ Windows() {
141
+ return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
142
+ },
143
+ any() {
144
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
145
+ }
146
+ }, n = e.match(/Tablet|iPad/i), o = et();
147
+ return {
148
+ urlPath: o == null ? void 0 : o.pathname,
149
+ host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
150
+ device: n ? "tablet" : t.any() ? "mobile" : "desktop"
151
+ };
152
+ };
153
+ let G;
154
+ !S() && !ee() && import("./node-runtime.dc2f1f18.js").then((e) => {
155
+ G = e.runInNode;
156
+ }).catch((e) => {
157
+ const t = "Error importing `isolated-vm` for Node.js runtimes. Make sure `isolated-vm` is installed.\n Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless\n ";
158
+ w.error(t, e), G = (...n) => {
159
+ w.error(t);
160
+ };
161
+ });
162
+ const nt = ({
163
+ builder: e,
164
+ context: t,
165
+ event: n,
166
+ state: o
167
+ }) => Object.entries({
168
+ state: o,
169
+ Builder: e,
170
+ builder: e,
171
+ context: t,
172
+ event: n
173
+ }), ot = ({
174
+ code: e,
175
+ builder: t,
176
+ context: n,
177
+ event: o,
178
+ localState: r,
179
+ rootSetState: i,
180
+ rootState: s
181
+ }) => {
182
+ const a = nt({
183
+ builder: t,
184
+ context: n,
185
+ event: o,
186
+ state: rt(s, r, i)
187
+ });
188
+ return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
189
+ };
190
+ function rt(e, t, n) {
191
+ if (e === t)
192
+ throw new Error("rootState === localState");
193
+ return new Proxy(e, {
194
+ get: (o, r) => t && r in t ? t[r] : e[r],
195
+ set: (o, r, i) => {
196
+ if (t && r in t)
197
+ throw new Error("Writing to local state is not allowed as it is read-only.");
198
+ return e[r] = i, n == null || n(e), !0;
199
+ }
200
+ });
201
+ }
202
+ function M({
121
203
  code: e,
122
204
  context: t,
123
205
  localState: n,
@@ -127,15 +209,16 @@ function W({
127
209
  isExpression: s = !0
128
210
  }) {
129
211
  if (e === "") {
130
- T.warn("Skipping evaluation of empty code block.");
212
+ w.warn("Skipping evaluation of empty code block.");
131
213
  return;
132
214
  }
133
215
  const a = {
134
216
  isEditing: A(),
135
- isBrowser: C(),
136
- isServer: !C()
217
+ isBrowser: S(),
218
+ isServer: !S(),
219
+ getUserAttributes: () => $e()
137
220
  }, u = {
138
- useCode: s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
221
+ code: s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
139
222
  builder: a,
140
223
  context: t,
141
224
  event: i,
@@ -143,46 +226,22 @@ function W({
143
226
  rootState: o,
144
227
  localState: n
145
228
  };
146
- return C() ? ve(u) : Se() ? D(u) : Ye(u);
147
- }
148
- const ve = ({
149
- useCode: e,
150
- builder: t,
151
- context: n,
152
- event: o,
153
- localState: r,
154
- rootSetState: i,
155
- rootState: s
156
- }) => {
157
- const a = Xe(s, r, i);
158
229
  try {
159
- return new Function("builder", "Builder", "state", "context", "event", e)(t, t, a, n, o);
160
- } catch (l) {
161
- T.warn(`Builder custom code error:
162
- While Evaluating:
163
- `, e, `
164
- `, l);
230
+ return S() ? ot(u) : ee() ? q(u) : G(u);
231
+ } catch (h) {
232
+ w.error("Failed code evaluation: " + h.message, {
233
+ code: e
234
+ });
235
+ return;
165
236
  }
166
- }, Ye = (e) => ve(e);
167
- function Xe(e, t, n) {
168
- if (e === t)
169
- throw new Error("rootState === localState");
170
- return new Proxy(e, {
171
- get: (o, r) => t && r in t ? t[r] : e[r],
172
- set: (o, r, i) => {
173
- if (t && r in t)
174
- throw new Error("Writing to local state is not allowed as it is read-only.");
175
- return e[r] = i, n == null || n(e), !0;
176
- }
177
- });
178
237
  }
179
- const Qe = (e, t, n) => {
238
+ const st = (e, t, n) => {
180
239
  if (Object(e) !== e)
181
240
  return e;
182
241
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
183
242
  return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
184
243
  };
185
- const Ze = ({
244
+ const it = ({
186
245
  block: e,
187
246
  context: t,
188
247
  localState: n,
@@ -201,18 +260,18 @@ const Ze = ({
201
260
  }
202
261
  };
203
262
  for (const a in e.bindings) {
204
- const l = e.bindings[a], c = W({
263
+ const l = e.bindings[a], c = M({
205
264
  code: l,
206
265
  localState: n,
207
266
  rootState: o,
208
267
  rootSetState: r,
209
268
  context: t
210
269
  });
211
- Qe(s, a, c);
270
+ st(s, a, c);
212
271
  }
213
272
  return s;
214
273
  };
215
- function Q({
274
+ function te({
216
275
  block: e,
217
276
  context: t,
218
277
  shouldEvaluateBindings: n,
@@ -221,7 +280,7 @@ function Q({
221
280
  rootSetState: i
222
281
  }) {
223
282
  const s = e;
224
- return n ? Ze({
283
+ return n ? it({
225
284
  block: s,
226
285
  localState: o,
227
286
  rootState: r,
@@ -229,34 +288,34 @@ function Q({
229
288
  context: t
230
289
  }) : s;
231
290
  }
232
- const et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, tt = (e) => Object.entries(e).map(([n, o]) => {
291
+ const at = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, lt = (e) => Object.entries(e).map(([n, o]) => {
233
292
  if (typeof o == "string")
234
- return `${et(n)}: ${o};`;
235
- }).filter(E), nt = (e) => tt(e).join(`
236
- `), H = ({
293
+ return `${at(n)}: ${o};`;
294
+ }).filter(E), ct = (e) => lt(e).join(`
295
+ `), z = ({
237
296
  mediaQuery: e,
238
297
  className: t,
239
298
  styles: n
240
299
  }) => {
241
300
  const o = `.${t} {
242
- ${nt(n)}
301
+ ${ct(n)}
243
302
  }`;
244
303
  return e ? `${e} {
245
304
  ${o}
246
305
  }` : o;
247
306
  }, K = g({
248
307
  render() {
249
- return ge("style", { id: this.id, innerHTML: this.styles });
308
+ return Se("style", { id: this.id, innerHTML: this.styles });
250
309
  },
251
310
  name: "inlined-styles",
252
311
  props: ["styles", "id"]
253
- }), ot = g({
312
+ }), dt = g({
254
313
  name: "block-styles",
255
314
  components: { InlinedStyles: K },
256
315
  props: ["block", "context"],
257
316
  data() {
258
317
  return {
259
- processedBlock: Q({
318
+ processedBlock: te({
260
319
  block: this.block,
261
320
  localState: this.context.localState,
262
321
  rootState: this.context.rootState,
@@ -273,25 +332,25 @@ const et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
273
332
  },
274
333
  css() {
275
334
  var u;
276
- const e = this.processedBlock.responsiveStyles, t = this.context.content, n = ke(
335
+ const e = this.processedBlock.responsiveStyles, t = this.context.content, n = we(
277
336
  ((u = t == null ? void 0 : t.meta) == null ? void 0 : u.breakpoints) || {}
278
337
  ), o = e == null ? void 0 : e.large, r = e == null ? void 0 : e.medium, i = e == null ? void 0 : e.small, s = this.processedBlock.id;
279
338
  if (!s)
280
339
  return "";
281
- const a = o ? H({
340
+ const a = o ? z({
282
341
  className: s,
283
342
  styles: o
284
- }) : "", l = r ? H({
343
+ }) : "", l = r ? z({
285
344
  className: s,
286
345
  styles: r,
287
- mediaQuery: se(
346
+ mediaQuery: ce(
288
347
  "medium",
289
348
  n
290
349
  )
291
- }) : "", c = i ? H({
350
+ }) : "", c = i ? z({
292
351
  className: s,
293
352
  styles: i,
294
- mediaQuery: se(
353
+ mediaQuery: ce(
295
354
  "small",
296
355
  n
297
356
  )
@@ -300,18 +359,18 @@ const et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
300
359
  }
301
360
  }
302
361
  });
303
- function rt(e, t, n, o, r, i) {
362
+ function ut(e, t, n, o, r, i) {
304
363
  const s = b("inlined-styles");
305
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), S(s, {
364
+ return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), v(s, {
306
365
  key: 0,
307
366
  styles: e.css
308
- }, null, 8, ["styles"])) : v("", !0);
367
+ }, null, 8, ["styles"])) : C("", !0);
309
368
  }
310
- const Ce = /* @__PURE__ */ y(ot, [["render", rt]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
369
+ const Te = /* @__PURE__ */ y(dt, [["render", ut]]), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
370
  __proto__: null,
312
- default: Ce
371
+ default: Te
313
372
  }, Symbol.toStringTag, { value: "Module" }));
314
- function it(e) {
373
+ function mt(e) {
315
374
  var t;
316
375
  return {
317
376
  ...(t = e.component) == null ? void 0 : t.options,
@@ -319,13 +378,13 @@ function it(e) {
319
378
  builderBlock: e
320
379
  };
321
380
  }
322
- const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], lt = (e) => typeof e == "string" && at.includes(e.toLowerCase()), ct = ({
381
+ const ht = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], ft = (e) => typeof e == "string" && ht.includes(e.toLowerCase()), gt = ({
323
382
  block: e,
324
383
  context: t,
325
384
  registeredComponents: n
326
385
  }) => {
327
386
  var i;
328
- const o = (i = Q({
387
+ const o = (i = te({
329
388
  block: e,
330
389
  localState: t.localState,
331
390
  rootState: t.rootState,
@@ -341,7 +400,7 @@ const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
341
400
  console.warn(`
342
401
  Could not find a registered component named "${o}".
343
402
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
344
- }, dt = ({
403
+ }, bt = ({
345
404
  block: e,
346
405
  context: t
347
406
  }) => {
@@ -351,7 +410,7 @@ const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
351
410
  } = e;
352
411
  if (!(n != null && n.collection))
353
412
  return;
354
- const r = W({
413
+ const r = M({
355
414
  code: n.collection,
356
415
  localState: t.localState,
357
416
  rootState: t.rootState,
@@ -374,54 +433,54 @@ const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
374
433
  },
375
434
  block: o
376
435
  }));
377
- }, ut = () => Promise.resolve().then(() => st).then((e) => e.default).catch((e) => {
436
+ }, yt = () => Promise.resolve().then(() => pt).then((e) => e.default).catch((e) => {
378
437
  throw console.error(
379
438
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
380
439
  e
381
440
  ), e;
382
- }), pt = () => import("./repeated-block.85d9be5c.js").then((e) => e.default).catch((e) => {
441
+ }), kt = () => import("./repeated-block.238616b4.js").then((e) => e.default).catch((e) => {
383
442
  throw console.error(
384
443
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
385
444
  e
386
445
  ), e;
387
- }), mt = () => import("./component-ref.d0335518.js").then((e) => e.default).catch((e) => {
446
+ }), St = () => import("./component-ref.5764cdf2.js").then((e) => e.default).catch((e) => {
388
447
  throw console.error(
389
448
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
390
449
  e
391
450
  ), e;
392
- }), ht = () => import("./block-wrapper.08dd54d9.js").then((e) => e.default).catch((e) => {
451
+ }), vt = () => import("./block-wrapper.5ca35adf.js").then((e) => e.default).catch((e) => {
393
452
  throw console.error(
394
453
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
395
454
  e
396
455
  ), e;
397
- }), ft = g({
456
+ }), Ct = g({
398
457
  name: "block",
399
458
  components: {
400
- ComponentRef: j(mt),
401
- BlockWrapper: j(ht),
402
- RepeatedBlock: j(pt),
403
- BlockStyles: j(ut)
459
+ ComponentRef: _(St),
460
+ BlockWrapper: _(vt),
461
+ RepeatedBlock: _(kt),
462
+ BlockStyles: _(yt)
404
463
  },
405
464
  props: ["block", "context", "registeredComponents"],
406
465
  data() {
407
- return { childrenContext: this.context, isEmptyHtmlElement: lt };
466
+ return { childrenContext: this.context, isEmptyHtmlElement: ft };
408
467
  },
409
468
  computed: {
410
469
  blockComponent() {
411
- return ct({
470
+ return gt({
412
471
  block: this.block,
413
472
  context: this.context,
414
473
  registeredComponents: this.registeredComponents
415
474
  });
416
475
  },
417
476
  repeatItem() {
418
- return dt({
477
+ return bt({
419
478
  block: this.block,
420
479
  context: this.context
421
480
  });
422
481
  },
423
482
  processedBlock() {
424
- return this.repeatItem ? this.block : Q({
483
+ return this.repeatItem ? this.block : te({
425
484
  block: this.block,
426
485
  localState: this.context.localState,
427
486
  rootState: this.context.rootState,
@@ -446,7 +505,7 @@ const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
446
505
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
447
506
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
448
507
  componentOptions: {
449
- ...it(this.processedBlock),
508
+ ...mt(this.processedBlock),
450
509
  builderContext: this.context,
451
510
  ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
452
511
  builderComponents: this.registeredComponents
@@ -461,54 +520,54 @@ const at = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
461
520
  }
462
521
  }
463
522
  });
464
- function gt(e, t, n, o, r, i) {
523
+ function wt(e, t, n, o, r, i) {
465
524
  var h;
466
525
  const s = b("block-wrapper"), a = b("repeated-block"), l = b("component-ref"), c = b("block", !0), u = b("block-styles");
467
526
  return e.canShowBlock ? (d(), p(I, { key: 0 }, [
468
- (h = e.blockComponent) != null && h.noWrap ? (d(), S(l, ne($({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), p(I, { key: 0 }, [
469
- e.isEmptyHtmlElement(e.Tag) ? (d(), S(s, {
527
+ (h = e.blockComponent) != null && h.noWrap ? (d(), v(l, ie(T({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), p(I, { key: 0 }, [
528
+ e.isEmptyHtmlElement(e.Tag) ? (d(), v(s, {
470
529
  key: 0,
471
530
  Wrapper: e.Tag,
472
531
  block: e.processedBlock,
473
532
  context: e.context,
474
533
  hasChildren: !1
475
- }, null, 8, ["Wrapper", "block", "context"])) : v("", !0),
476
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(I, { key: 1 }, V(e.repeatItem, (m, f) => (d(), S(a, {
534
+ }, null, 8, ["Wrapper", "block", "context"])) : C("", !0),
535
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(I, { key: 1 }, V(e.repeatItem, (m, f) => (d(), v(a, {
477
536
  key: f,
478
537
  repeatContext: m.context,
479
538
  block: m.block,
480
539
  registeredComponents: e.registeredComponents
481
- }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : v("", !0),
482
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), S(s, {
540
+ }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : C("", !0),
541
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), v(s, {
483
542
  key: 2,
484
543
  Wrapper: e.Tag,
485
544
  block: e.processedBlock,
486
545
  context: e.context,
487
546
  hasChildren: !0
488
547
  }, {
489
- default: X(() => [
490
- N(l, ne(Ke(e.componentRefProps)), null, 16),
491
- (d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), S(c, {
548
+ default: Z(() => [
549
+ P(l, ie(qe(e.componentRefProps)), null, 16),
550
+ (d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), v(c, {
492
551
  key: "block-" + m.id,
493
552
  block: m,
494
553
  context: e.childrenContext,
495
554
  registeredComponents: e.registeredComponents
496
555
  }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
497
- (d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), S(u, {
556
+ (d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), v(u, {
498
557
  key: "block-style-" + m.id,
499
558
  block: m,
500
559
  context: e.childrenContext
501
560
  }, null, 8, ["block", "context"]))), 128))
502
561
  ]),
503
562
  _: 1
504
- }, 8, ["Wrapper", "block", "context"])) : v("", !0)
563
+ }, 8, ["Wrapper", "block", "context"])) : C("", !0)
505
564
  ], 64))
506
- ], 64)) : v("", !0);
565
+ ], 64)) : C("", !0);
507
566
  }
508
- const we = /* @__PURE__ */ y(ft, [["render", gt]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
567
+ const Ie = /* @__PURE__ */ y(Ct, [["render", wt]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
509
568
  __proto__: null,
510
- default: we
511
- }, Symbol.toStringTag, { value: "Module" })), bt = g({
569
+ default: Ie
570
+ }, Symbol.toStringTag, { value: "Module" })), $t = g({
512
571
  name: "builder-blocks-wrapper",
513
572
  props: ["blocks", "parent", "path", "styleProp"],
514
573
  computed: {
@@ -555,10 +614,10 @@ const we = /* @__PURE__ */ y(ft, [["render", gt]]), qo = /* @__PURE__ */ Object.
555
614
  }
556
615
  }
557
616
  });
558
- const yt = ["builder-path", "builder-parent-id"];
559
- function kt(e, t, n, o, r, i) {
560
- return d(), p("div", $({
561
- class: e._classStringToObject(e.className + " div-26ii6xmdvep"),
617
+ const Tt = ["builder-path", "builder-parent-id"];
618
+ function It(e, t, n, o, r, i) {
619
+ return d(), p("div", T({
620
+ class: e._classStringToObject(e.className + " div-178o76acnws"),
562
621
  "builder-path": e.path,
563
622
  "builder-parent-id": e.parent,
564
623
  style: e.styleProp,
@@ -566,10 +625,10 @@ function kt(e, t, n, o, r, i) {
566
625
  onMouseenter: t[1] || (t[1] = (s) => e.onMouseEnter()),
567
626
  onKeypress: t[2] || (t[2] = (s) => e.onClick())
568
627
  }, {}), [
569
- _(e.$slots, "default", {}, void 0, !0)
570
- ], 16, yt);
628
+ O(e.$slots, "default", {}, void 0, !0)
629
+ ], 16, Tt);
571
630
  }
572
- const St = /* @__PURE__ */ y(bt, [["render", kt], ["__scopeId", "data-v-ac4c9020"]]), vt = Symbol(), q = {
631
+ const Rt = /* @__PURE__ */ y($t, [["render", It], ["__scopeId", "data-v-4d6a880e"]]), xt = Symbol(), J = {
573
632
  Builder: {
574
633
  content: null,
575
634
  context: {},
@@ -582,16 +641,16 @@ const St = /* @__PURE__ */ y(bt, [["render", kt], ["__scopeId", "data-v-ac4c9020
582
641
  componentInfos: {},
583
642
  inheritedStyles: {}
584
643
  },
585
- key: vt
586
- }, Ct = Symbol(), $e = {
644
+ key: xt
645
+ }, Et = Symbol(), Re = {
587
646
  Components: { registeredComponents: {} },
588
- key: Ct
589
- }, wt = g({
647
+ key: Et
648
+ }, At = g({
590
649
  name: "builder-blocks",
591
650
  components: {
592
- BlocksWrapper: St,
593
- Block: we,
594
- BlockStyles: Ce
651
+ BlocksWrapper: Rt,
652
+ Block: Ie,
653
+ BlockStyles: Te
595
654
  },
596
655
  props: [
597
656
  "blocks",
@@ -602,37 +661,37 @@ const St = /* @__PURE__ */ y(bt, [["render", kt], ["__scopeId", "data-v-ac4c9020
602
661
  "registeredComponents"
603
662
  ],
604
663
  inject: {
605
- builderContext: q.key,
606
- componentsContext: $e.key
664
+ builderContext: J.key,
665
+ componentsContext: Re.key
607
666
  }
608
667
  });
609
- function $t(e, t, n, o, r, i) {
668
+ function Bt(e, t, n, o, r, i) {
610
669
  const s = b("block"), a = b("block-styles"), l = b("blocks-wrapper");
611
- return d(), S(l, {
670
+ return d(), v(l, {
612
671
  blocks: e.blocks,
613
672
  parent: e.parent,
614
673
  path: e.path,
615
674
  styleProp: e.styleProp
616
675
  }, {
617
- default: X(() => [
618
- e.blocks ? (d(!0), p(I, { key: 0 }, V(e.blocks, (c, u) => (d(), S(s, {
676
+ default: Z(() => [
677
+ e.blocks ? (d(!0), p(I, { key: 0 }, V(e.blocks, (c, u) => (d(), v(s, {
619
678
  key: "render-block-" + c.id,
620
679
  block: c,
621
680
  context: e.context || e.builderContext,
622
681
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
623
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : v("", !0),
624
- e.blocks ? (d(!0), p(I, { key: 1 }, V(e.blocks, (c, u) => (d(), S(a, {
682
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : C("", !0),
683
+ e.blocks ? (d(!0), p(I, { key: 1 }, V(e.blocks, (c, u) => (d(), v(a, {
625
684
  key: "block-style-" + c.id,
626
685
  block: c,
627
686
  context: e.context || e.builderContext
628
- }, null, 8, ["block", "context"]))), 128)) : v("", !0)
687
+ }, null, 8, ["block", "context"]))), 128)) : C("", !0)
629
688
  ]),
630
689
  _: 1
631
690
  }, 8, ["blocks", "parent", "path", "styleProp"]);
632
691
  }
633
- const Te = /* @__PURE__ */ y(wt, [["render", $t]]), Tt = g({
692
+ const ne = /* @__PURE__ */ y(At, [["render", Bt]]), Vt = g({
634
693
  name: "builder-columns",
635
- components: { InlinedStyles: K, Blocks: Te },
694
+ components: { InlinedStyles: K, Blocks: ne },
636
695
  props: [
637
696
  "js",
638
697
  "space",
@@ -736,7 +795,7 @@ const Te = /* @__PURE__ */ y(wt, [["render", $t]]), Tt = g({
736
795
  },
737
796
  getWidthForBreakpointSize(e) {
738
797
  var n, o;
739
- return ke(
798
+ return we(
740
799
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
741
800
  )[e].max;
742
801
  },
@@ -751,24 +810,24 @@ const Te = /* @__PURE__ */ y(wt, [["render", $t]]), Tt = g({
751
810
  }
752
811
  }
753
812
  });
754
- function It(e, t, n, o, r, i) {
813
+ function Pt(e, t, n, o, r, i) {
755
814
  const s = b("inlined-styles"), a = b("blocks");
756
- return d(), p("div", $({
815
+ return d(), p("div", T({
757
816
  class: e._classStringToObject(
758
- `builder-columns ${e.builderBlock.id}-breakpoints div-7jvpanrlkn`
817
+ `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
759
818
  ),
760
819
  style: e.columnsCssVars
761
820
  }, {}), [
762
- e.TARGET !== "reactNative" ? (d(), S(s, {
821
+ e.TARGET !== "reactNative" ? (d(), v(s, {
763
822
  key: 0,
764
823
  styles: e.columnsStyles
765
- }, null, 8, ["styles"])) : v("", !0),
766
- (d(!0), p(I, null, V(e.columns, (l, c) => (d(), p("div", $({
824
+ }, null, 8, ["styles"])) : C("", !0),
825
+ (d(!0), p(I, null, V(e.columns, (l, c) => (d(), p("div", T({
767
826
  key: c,
768
- class: "builder-column div-7jvpanrlkn-2",
827
+ class: "builder-column div-16nol0lwi20-2",
769
828
  style: e.columnCssVars(c)
770
829
  }, {}), [
771
- N(a, {
830
+ P(a, {
772
831
  blocks: l.blocks,
773
832
  path: `component.options.columns.${c}.blocks`,
774
833
  parent: e.builderBlock.id,
@@ -781,47 +840,47 @@ function It(e, t, n, o, r, i) {
781
840
  ], 16))), 128))
782
841
  ], 16);
783
842
  }
784
- const Rt = /* @__PURE__ */ y(Tt, [["render", It], ["__scopeId", "data-v-acedc096"]]), xt = g({
843
+ const Nt = /* @__PURE__ */ y(Vt, [["render", Pt], ["__scopeId", "data-v-c37bdfa8"]]), Ot = g({
785
844
  name: "builder-fragment-component",
786
845
  props: []
787
846
  });
788
- function Et(e, t, n, o, r, i) {
847
+ function jt(e, t, n, o, r, i) {
789
848
  return d(), p("span", null, [
790
- _(e.$slots, "default")
849
+ O(e.$slots, "default")
791
850
  ]);
792
851
  }
793
- const At = /* @__PURE__ */ y(xt, [["render", Et]]);
794
- function ie(e) {
852
+ const _t = /* @__PURE__ */ y(Ot, [["render", jt]]);
853
+ function de(e) {
795
854
  return e.replace(/http(s)?:/, "");
796
855
  }
797
- function Bt(e = "", t, n) {
856
+ function Ft(e = "", t, n) {
798
857
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
799
858
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
800
859
  }
801
- function Vt(e, t) {
860
+ function Ut(e, t) {
802
861
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
803
862
  return e;
804
863
  if (t === "master")
805
- return ie(e);
864
+ return de(e);
806
865
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
807
866
  if (n) {
808
867
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
809
- return ie(`${o[0]}_${i}${r}`);
868
+ return de(`${o[0]}_${i}${r}`);
810
869
  }
811
870
  return null;
812
871
  }
813
- function z(e) {
872
+ function D(e) {
814
873
  if (!e)
815
874
  return e;
816
875
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
817
876
  if (e.match(/builder\.io/)) {
818
877
  let n = e;
819
878
  const o = Number(e.split("?width=")[1]);
820
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Bt(e, "width", r)} ${r}w`).concat([n]).join(", ");
879
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ft(e, "width", r)} ${r}w`).concat([n]).join(", ");
821
880
  }
822
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
881
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ut(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
823
882
  }
824
- const Nt = g({
883
+ const Mt = g({
825
884
  name: "builder-image",
826
885
  props: [
827
886
  "image",
@@ -845,10 +904,10 @@ const Nt = g({
845
904
  return this.srcset;
846
905
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
847
906
  if (!this.srcset.includes(this.image.split("?")[0]))
848
- return console.debug("Removed given srcset"), z(t);
907
+ return console.debug("Removed given srcset"), D(t);
849
908
  } else if (this.image && !this.srcset)
850
- return z(t);
851
- return z(t);
909
+ return D(t);
910
+ return D(t);
852
911
  },
853
912
  webpSrcSet() {
854
913
  var e;
@@ -877,60 +936,60 @@ const Nt = g({
877
936
  }
878
937
  }
879
938
  });
880
- const Pt = ["srcset"], _t = ["alt", "role", "src", "srcset", "sizes"], Ot = {
939
+ const Wt = ["srcset"], Lt = ["alt", "role", "src", "srcset", "sizes"], Kt = {
881
940
  key: 2,
882
- class: "div-2oob28krk0a-2"
941
+ class: "div-1be3j8m9ewb-2"
883
942
  };
884
- function jt(e, t, n, o, r, i) {
943
+ function Ht(e, t, n, o, r, i) {
885
944
  var s, a, l, c;
886
945
  return d(), p(I, null, [
887
- oe("picture", null, [
946
+ ae("picture", null, [
888
947
  e.webpSrcSet ? (d(), p("source", {
889
948
  key: 0,
890
949
  type: "image/webp",
891
950
  srcset: e.webpSrcSet
892
- }, null, 8, Pt)) : v("", !0),
893
- oe("img", {
951
+ }, null, 8, Wt)) : C("", !0),
952
+ ae("img", {
894
953
  loading: "lazy",
895
954
  alt: e.altText,
896
955
  role: e.altText ? "presentation" : void 0,
897
- style: re({
956
+ style: le({
898
957
  objectPosition: e.backgroundPosition || "center",
899
958
  objectFit: e.backgroundSize || "cover",
900
959
  ...e.aspectRatioCss
901
960
  }),
902
- class: be(
961
+ class: ve(
903
962
  e._classStringToObject(
904
- "builder-image" + (e.className ? " " + e.className : "") + " img-2oob28krk0a"
963
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
905
964
  )
906
965
  ),
907
966
  src: e.image,
908
967
  srcset: e.srcSetToUse,
909
968
  sizes: e.sizes
910
- }, null, 14, _t)
969
+ }, null, 14, Lt)
911
970
  ]),
912
971
  e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
913
972
  key: 0,
914
- class: "builder-image-sizer div-2oob28krk0a",
915
- style: re({
973
+ class: "builder-image-sizer div-1be3j8m9ewb",
974
+ style: le({
916
975
  paddingTop: e.aspectRatio * 100 + "%"
917
976
  })
918
- }, null, 4)) : v("", !0),
919
- ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? _(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
920
- !e.fitContent && e.$slots.default ? (d(), p("div", Ot, [
921
- _(e.$slots, "default", {}, void 0, !0)
922
- ])) : v("", !0)
977
+ }, null, 4)) : C("", !0),
978
+ ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? O(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
979
+ !e.fitContent && e.$slots.default ? (d(), p("div", Kt, [
980
+ O(e.$slots, "default", {}, void 0, !0)
981
+ ])) : C("", !0)
923
982
  ], 64);
924
983
  }
925
- const Ft = /* @__PURE__ */ y(Nt, [["render", jt], ["__scopeId", "data-v-a7ebd355"]]), Ut = g({
984
+ const zt = /* @__PURE__ */ y(Mt, [["render", Ht], ["__scopeId", "data-v-22a5a139"]]), Dt = g({
926
985
  name: "builder-section-component",
927
986
  props: ["attributes", "maxWidth"],
928
987
  data() {
929
- return { filterAttrs: M };
988
+ return { filterAttrs: W };
930
989
  }
931
990
  });
932
- function Wt(e, t, n, o, r, i) {
933
- return d(), p("section", $({
991
+ function qt(e, t, n, o, r, i) {
992
+ return d(), p("section", T({
934
993
  style: {
935
994
  width: "100%",
936
995
  alignSelf: "stretch",
@@ -943,37 +1002,37 @@ function Wt(e, t, n, o, r, i) {
943
1002
  marginLeft: "auto",
944
1003
  marginRight: "auto"
945
1004
  }
946
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
947
- _(e.$slots, "default")
1005
+ }, e.filterAttrs(e.attributes, "v-on:", !1), j(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1006
+ O(e.$slots, "default")
948
1007
  ], 16);
949
1008
  }
950
- const Mt = /* @__PURE__ */ y(Ut, [["render", Wt]]), U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1009
+ const Gt = /* @__PURE__ */ y(Dt, [["render", qt]]), U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
951
1010
  ...t,
952
1011
  testVariationId: t.id,
953
1012
  id: e == null ? void 0 : e.id
954
- })), Lt = ({
1013
+ })), Jt = ({
955
1014
  canTrack: e,
956
1015
  content: t
957
1016
  }) => !(!(U(t).length > 0) || !e);
958
- function Kt(e, t, n) {
1017
+ function Yt(e, t, n) {
959
1018
  var s;
960
1019
  function o() {
961
- function a(k, w, x) {
962
- let P = "";
1020
+ function a(k, $, x) {
1021
+ let N = "";
963
1022
  if (x) {
964
1023
  const R = new Date();
965
- R.setTime(R.getTime() + x * 24 * 60 * 60 * 1e3), P = "; expires=" + R.toUTCString();
1024
+ R.setTime(R.getTime() + x * 24 * 60 * 60 * 1e3), N = "; expires=" + R.toUTCString();
966
1025
  }
967
- document.cookie = k + "=" + (w || "") + P + "; path=/; Secure; SameSite=None";
1026
+ document.cookie = k + "=" + ($ || "") + N + "; path=/; Secure; SameSite=None";
968
1027
  }
969
1028
  function l(k) {
970
- const w = k + "=", x = document.cookie.split(";");
971
- for (let P = 0; P < x.length; P++) {
972
- let R = x[P];
1029
+ const $ = k + "=", x = document.cookie.split(";");
1030
+ for (let N = 0; N < x.length; N++) {
1031
+ let R = x[N];
973
1032
  for (; R.charAt(0) === " "; )
974
1033
  R = R.substring(1, R.length);
975
- if (R.indexOf(w) === 0)
976
- return R.substring(w.length, R.length);
1034
+ if (R.indexOf($) === 0)
1035
+ return R.substring($.length, R.length);
977
1036
  }
978
1037
  return null;
979
1038
  }
@@ -983,9 +1042,9 @@ function Kt(e, t, n) {
983
1042
  let m = 0;
984
1043
  const f = Math.random();
985
1044
  for (let k = 0; k < t.length; k++) {
986
- const w = t[k], x = w.testRatio;
1045
+ const $ = t[k], x = $.testRatio;
987
1046
  if (m += x, f < m)
988
- return a(c, w.id), w.id;
1047
+ return a(c, $.id), $.id;
989
1048
  }
990
1049
  return a(c, e), e;
991
1050
  }
@@ -1002,7 +1061,7 @@ function Kt(e, t, n) {
1002
1061
  i.innerHTML = a;
1003
1062
  }
1004
1063
  }
1005
- function Ht(e, t, n) {
1064
+ function Xt(e, t, n) {
1006
1065
  var l;
1007
1066
  if (!navigator.cookieEnabled)
1008
1067
  return;
@@ -1027,18 +1086,18 @@ function Ht(e, t, n) {
1027
1086
  return;
1028
1087
  }
1029
1088
  }
1030
- const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builderIoAbTest", xe = "builderIoRenderContent", Dt = () => {
1031
- const e = Kt.toString().replace(/\s+/g, " "), t = Ht.toString().replace(/\s+/g, " ");
1089
+ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builderIoAbTest", Ae = "builderIoRenderContent", Zt = () => {
1090
+ const e = Yt.toString().replace(/\s+/g, " "), t = Xt.toString().replace(/\s+/g, " ");
1032
1091
  return `
1033
- window.${Re} = ${e}
1034
- window.${xe} = ${t}
1092
+ window.${Ee} = ${e}
1093
+ window.${Ae} = ${t}
1035
1094
  `;
1036
- }, qt = (e, t) => `
1037
- window.${Re}("${t}",${JSON.stringify(e)}, ${Ie})`, Gt = ({
1095
+ }, en = (e, t) => `
1096
+ window.${Ee}("${t}",${JSON.stringify(e)}, ${xe})`, tn = ({
1038
1097
  contentId: e,
1039
1098
  variationId: t
1040
1099
  }) => `
1041
- window.${xe}("${t}", "${e}", ${Ie})`, Jt = {
1100
+ window.${Ae}("${t}", "${e}", ${xe})`, nn = {
1042
1101
  name: "Core:Button",
1043
1102
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1044
1103
  defaultStyles: {
@@ -1070,7 +1129,7 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1070
1129
  }],
1071
1130
  static: !0,
1072
1131
  noWrap: !0
1073
- }, Yt = {
1132
+ }, on = {
1074
1133
  name: "Columns",
1075
1134
  isRSC: !0,
1076
1135
  inputs: [{
@@ -1270,13 +1329,13 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1270
1329
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1271
1330
  advanced: !0
1272
1331
  }]
1273
- }, Xt = {
1332
+ }, rn = {
1274
1333
  name: "Fragment",
1275
1334
  static: !0,
1276
1335
  hidden: !0,
1277
1336
  canHaveChildren: !0,
1278
1337
  noWrap: !0
1279
- }, Qt = {
1338
+ }, sn = {
1280
1339
  name: "Image",
1281
1340
  static: !0,
1282
1341
  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",
@@ -1376,7 +1435,7 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1376
1435
  advanced: !0,
1377
1436
  defaultValue: 0.7041
1378
1437
  }]
1379
- }, Zt = {
1438
+ }, an = {
1380
1439
  name: "Core:Section",
1381
1440
  static: !0,
1382
1441
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1415,7 +1474,7 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1415
1474
  }
1416
1475
  }
1417
1476
  }]
1418
- }, en = {
1477
+ }, ln = {
1419
1478
  name: "Symbol",
1420
1479
  noWrap: !0,
1421
1480
  static: !0,
@@ -1448,7 +1507,7 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1448
1507
  hideFromUI: !0,
1449
1508
  type: "boolean"
1450
1509
  }]
1451
- }, tn = {
1510
+ }, cn = {
1452
1511
  name: "Text",
1453
1512
  static: !0,
1454
1513
  isRSC: !0,
@@ -1466,21 +1525,21 @@ const zt = (e) => e === "react" || e === "reactNative", Ie = zt(B), Re = "builde
1466
1525
  height: "auto",
1467
1526
  textAlign: "center"
1468
1527
  }
1469
- }, nn = g({
1528
+ }, dn = g({
1470
1529
  name: "builder-text",
1471
1530
  props: ["text"]
1472
- }), on = ["innerHTML"];
1473
- function rn(e, t, n, o, r, i) {
1531
+ }), un = ["innerHTML"];
1532
+ function pn(e, t, n, o, r, i) {
1474
1533
  var s;
1475
- return d(), p("span", $({
1534
+ return d(), p("span", T({
1476
1535
  class: "builder-text",
1477
1536
  innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
1478
1537
  style: {
1479
1538
  outline: "none"
1480
1539
  }
1481
- }, {}), null, 16, on);
1540
+ }, {}), null, 16, un);
1482
1541
  }
1483
- const sn = /* @__PURE__ */ y(nn, [["render", rn]]), an = {
1542
+ const mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = {
1484
1543
  name: "Video",
1485
1544
  canHaveChildren: !0,
1486
1545
  defaultStyles: {
@@ -1561,7 +1620,7 @@ const sn = /* @__PURE__ */ y(nn, [["render", rn]]), an = {
1561
1620
  defaultValue: !0,
1562
1621
  advanced: !0
1563
1622
  }]
1564
- }, ln = g({
1623
+ }, fn = g({
1565
1624
  name: "builder-video",
1566
1625
  props: [
1567
1626
  "autoPlay",
@@ -1603,10 +1662,10 @@ const sn = /* @__PURE__ */ y(nn, [["render", rn]]), an = {
1603
1662
  };
1604
1663
  }
1605
1664
  }
1606
- }), cn = ["preload", "src", "poster"];
1607
- function dn(e, t, n, o, r, i) {
1665
+ }), gn = ["preload", "src", "poster"];
1666
+ function bn(e, t, n, o, r, i) {
1608
1667
  var s;
1609
- return d(), p("video", $({
1668
+ return d(), p("video", T({
1610
1669
  preload: e.preload || "metadata",
1611
1670
  style: {
1612
1671
  width: "100%",
@@ -1618,9 +1677,9 @@ function dn(e, t, n, o, r, i) {
1618
1677
  },
1619
1678
  src: e.video || "no-src",
1620
1679
  poster: e.posterImage
1621
- }, e.spreadProps), null, 16, cn);
1680
+ }, e.spreadProps), null, 16, gn);
1622
1681
  }
1623
- const un = /* @__PURE__ */ y(ln, [["render", dn]]), pn = {
1682
+ const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = {
1624
1683
  name: "Embed",
1625
1684
  static: !0,
1626
1685
  inputs: [{
@@ -1645,7 +1704,7 @@ const un = /* @__PURE__ */ y(ln, [["render", dn]]), pn = {
1645
1704
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1646
1705
  hideFromUI: !0
1647
1706
  }]
1648
- }, mn = ["text/javascript", "application/javascript", "application/ecmascript"], hn = (e) => mn.includes(e.type), fn = g({
1707
+ }, Sn = ["text/javascript", "application/javascript", "application/ecmascript"], vn = (e) => Sn.includes(e.type), Cn = g({
1649
1708
  name: "builder-embed",
1650
1709
  props: ["content"],
1651
1710
  data() {
@@ -1678,7 +1737,7 @@ const un = /* @__PURE__ */ y(ln, [["render", dn]]), pn = {
1678
1737
  this.scriptsInserted.push(n.src);
1679
1738
  const o = document.createElement("script");
1680
1739
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1681
- } else if (hn(n) && !this.scriptsRun.includes(n.innerText))
1740
+ } else if (vn(n) && !this.scriptsRun.includes(n.innerText))
1682
1741
  try {
1683
1742
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1684
1743
  } catch (o) {
@@ -1687,15 +1746,15 @@ const un = /* @__PURE__ */ y(ln, [["render", dn]]), pn = {
1687
1746
  }
1688
1747
  }
1689
1748
  }
1690
- }), gn = ["innerHTML"];
1691
- function bn(e, t, n, o, r, i) {
1749
+ }), wn = ["innerHTML"];
1750
+ function $n(e, t, n, o, r, i) {
1692
1751
  return d(), p("div", {
1693
1752
  class: "builder-embed",
1694
1753
  ref: "elem",
1695
1754
  innerHTML: e.content
1696
- }, null, 8, gn);
1755
+ }, null, 8, wn);
1697
1756
  }
1698
- const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = g({
1757
+ const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = g({
1699
1758
  name: "builder-img-component",
1700
1759
  props: [
1701
1760
  "backgroundSize",
@@ -1706,11 +1765,11 @@ const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = g({
1706
1765
  "attributes"
1707
1766
  ],
1708
1767
  data() {
1709
- return { isEditing: A, filterAttrs: M };
1768
+ return { isEditing: A, filterAttrs: W };
1710
1769
  }
1711
- }), Sn = ["alt", "src"];
1712
- function vn(e, t, n, o, r, i) {
1713
- return d(), p("img", $({
1770
+ }), Rn = ["alt", "src"];
1771
+ function xn(e, t, n, o, r, i) {
1772
+ return d(), p("img", T({
1714
1773
  style: {
1715
1774
  objectFit: e.backgroundSize || "cover",
1716
1775
  objectPosition: e.backgroundPosition || "center"
@@ -1718,9 +1777,9 @@ function vn(e, t, n, o, r, i) {
1718
1777
  key: e.isEditing() && e.imgSrc || "default-key",
1719
1778
  alt: e.altText,
1720
1779
  src: e.imgSrc || e.image
1721
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Sn);
1780
+ }, e.filterAttrs(e.attributes, "v-on:", !1), j(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Rn);
1722
1781
  }
1723
- const Cn = /* @__PURE__ */ y(kn, [["render", vn]]), wn = {
1782
+ const En = /* @__PURE__ */ y(In, [["render", xn]]), An = {
1724
1783
  name: "Raw:Img",
1725
1784
  hideFromInsertMenu: !0,
1726
1785
  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",
@@ -1733,7 +1792,7 @@ const Cn = /* @__PURE__ */ y(kn, [["render", vn]]), wn = {
1733
1792
  }],
1734
1793
  noWrap: !0,
1735
1794
  static: !0
1736
- }, $n = g({
1795
+ }, Bn = g({
1737
1796
  name: "builder-custom-code",
1738
1797
  props: ["replaceNodes", "code"],
1739
1798
  data() {
@@ -1780,19 +1839,19 @@ const Cn = /* @__PURE__ */ y(kn, [["render", vn]]), wn = {
1780
1839
  return t;
1781
1840
  }
1782
1841
  }
1783
- }), Tn = ["innerHTML"];
1784
- function In(e, t, n, o, r, i) {
1842
+ }), Vn = ["innerHTML"];
1843
+ function Pn(e, t, n, o, r, i) {
1785
1844
  return d(), p("div", {
1786
1845
  ref: "elem",
1787
- class: be(
1846
+ class: ve(
1788
1847
  e._classStringToObject(
1789
1848
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1790
1849
  )
1791
1850
  ),
1792
1851
  innerHTML: e.code
1793
- }, null, 10, Tn);
1852
+ }, null, 10, Vn);
1794
1853
  }
1795
- const Rn = /* @__PURE__ */ y($n, [["render", In]]), xn = {
1854
+ const Nn = /* @__PURE__ */ y(Bn, [["render", Pn]]), On = {
1796
1855
  name: "Custom Code",
1797
1856
  static: !0,
1798
1857
  requiredPermissions: ["editCode"],
@@ -1814,55 +1873,55 @@ const Rn = /* @__PURE__ */ y($n, [["render", In]]), xn = {
1814
1873
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1815
1874
  advanced: !0
1816
1875
  }]
1817
- }, ae = () => [{
1818
- component: Ge,
1819
- ...Jt
1876
+ }, ue = () => [{
1877
+ component: Qe,
1878
+ ...nn
1820
1879
  }, {
1821
- component: Rt,
1822
- ...Yt
1880
+ component: Nt,
1881
+ ...on
1823
1882
  }, {
1824
- component: Rn,
1825
- ...xn
1883
+ component: Nn,
1884
+ ...On
1826
1885
  }, {
1827
- component: yn,
1828
- ...pn
1886
+ component: Tn,
1887
+ ...kn
1829
1888
  }, {
1830
- component: At,
1831
- ...Xt
1889
+ component: _t,
1890
+ ...rn
1832
1891
  }, {
1833
- component: Ft,
1834
- ...Qt
1892
+ component: zt,
1893
+ ...sn
1835
1894
  }, {
1836
- component: Cn,
1837
- ...wn
1895
+ component: En,
1896
+ ...An
1838
1897
  }, {
1839
- component: Mt,
1840
- ...Zt
1898
+ component: Gt,
1899
+ ...an
1841
1900
  }, {
1842
- component: zo,
1843
- ...en
1901
+ component: Do,
1902
+ ...ln
1844
1903
  }, {
1845
- component: sn,
1846
- ...tn
1904
+ component: mn,
1905
+ ...cn
1847
1906
  }, {
1848
- component: un,
1849
- ...an
1850
- }], le = [], En = (e) => ({
1907
+ component: yn,
1908
+ ...hn
1909
+ }], pe = [], jn = (e) => ({
1851
1910
  type: "builder.registerComponent",
1852
1911
  data: e
1853
- }), An = (e) => {
1912
+ }), _n = (e) => {
1854
1913
  const t = e.toString().trim();
1855
1914
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1856
- }, Bn = (e) => typeof e == "function" ? An(e) : L(e), ce = ({
1915
+ }, Fn = (e) => typeof e == "function" ? _n(e) : L(e), me = ({
1857
1916
  inputs: e,
1858
1917
  ...t
1859
1918
  }) => ({
1860
1919
  ...L(t),
1861
1920
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
1862
1921
  ...o,
1863
- [r]: Bn(i)
1922
+ [r]: Fn(i)
1864
1923
  }), {}))
1865
- }), Vn = (e) => {
1924
+ }), Un = (e) => {
1866
1925
  var i, s;
1867
1926
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
1868
1927
  let r = "";
@@ -1888,26 +1947,26 @@ font-weight: ${a};
1888
1947
  `.trim());
1889
1948
  }
1890
1949
  return r;
1891
- }, Nn = ({
1950
+ }, Mn = ({
1892
1951
  customFonts: e
1893
1952
  }) => {
1894
1953
  var t;
1895
- return ((t = e == null ? void 0 : e.map((n) => Vn(n))) == null ? void 0 : t.join(" ")) || "";
1896
- }, Pn = ({
1954
+ return ((t = e == null ? void 0 : e.map((n) => Un(n))) == null ? void 0 : t.join(" ")) || "";
1955
+ }, Wn = ({
1897
1956
  cssCode: e,
1898
1957
  contentId: t
1899
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", _n = g({
1958
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = g({
1900
1959
  name: "content-styles",
1901
1960
  components: { InlinedStyles: K },
1902
1961
  props: ["cssCode", "contentId", "customFonts"],
1903
1962
  data() {
1904
1963
  return {
1905
1964
  injectedStyles: `
1906
- ${Pn({
1965
+ ${Wn({
1907
1966
  cssCode: this.cssCode,
1908
1967
  contentId: this.contentId
1909
1968
  })}
1910
- ${Nn({
1969
+ ${Mn({
1911
1970
  customFonts: this.customFonts
1912
1971
  })}
1913
1972
 
@@ -1927,11 +1986,11 @@ ${Nn({
1927
1986
  };
1928
1987
  }
1929
1988
  });
1930
- function On(e, t, n, o, r, i) {
1989
+ function Kn(e, t, n, o, r, i) {
1931
1990
  const s = b("inlined-styles");
1932
- return d(), S(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
1991
+ return d(), v(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
1933
1992
  }
1934
- const jn = /* @__PURE__ */ y(_n, [["render", On]]), Fn = ({
1993
+ const Hn = /* @__PURE__ */ y(Ln, [["render", Kn]]), zn = ({
1935
1994
  content: e,
1936
1995
  data: t,
1937
1996
  locale: n
@@ -1953,7 +2012,7 @@ const jn = /* @__PURE__ */ y(_n, [["render", On]]), Fn = ({
1953
2012
  ...o,
1954
2013
  ...r
1955
2014
  };
1956
- }, Un = ({
2015
+ }, Dn = ({
1957
2016
  content: e,
1958
2017
  data: t
1959
2018
  }) => e ? {
@@ -1964,22 +2023,22 @@ const jn = /* @__PURE__ */ y(_n, [["render", On]]), Fn = ({
1964
2023
  },
1965
2024
  meta: e == null ? void 0 : e.meta
1966
2025
  } : void 0;
1967
- function Wn() {
2026
+ function qn() {
1968
2027
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1969
2028
  }
1970
- function Mn() {
1971
- const e = Wn().fetch;
2029
+ function Gn() {
2030
+ const e = qn().fetch;
1972
2031
  if (typeof e > "u")
1973
2032
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1974
2033
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1975
2034
  return e;
1976
2035
  }
1977
- const Ee = Mn(), Ln = (e) => {
2036
+ const Be = Gn(), Jn = (e) => {
1978
2037
  if (e === "localhost" || e === "127.0.0.1")
1979
2038
  return e;
1980
2039
  const t = e.split(".");
1981
2040
  return t.length > 2 ? t.slice(1).join(".") : e;
1982
- }, Ae = ({
2041
+ }, Ve = ({
1983
2042
  name: e,
1984
2043
  canTrack: t
1985
2044
  }) => {
@@ -1987,17 +2046,17 @@ const Ee = Mn(), Ln = (e) => {
1987
2046
  try {
1988
2047
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1989
2048
  } catch (o) {
1990
- T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
2049
+ w.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1991
2050
  return;
1992
2051
  }
1993
- }, Be = async (e) => Ae(e), Kn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), Hn = [["secure", ""], ["SameSite", "None"]], zn = ({
2052
+ }, Pe = async (e) => Ve(e), Yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), Xn = [["secure", ""], ["SameSite", "None"]], Qn = ({
1994
2053
  name: e,
1995
2054
  value: t,
1996
2055
  expires: n
1997
2056
  }) => {
1998
- const r = (C() ? location.protocol === "https:" : !0) ? Hn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Ln(window.location.hostname)], ...r];
1999
- return Kn(s);
2000
- }, Ve = async ({
2057
+ const r = (S() ? location.protocol === "https:" : !0) ? Xn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Jn(window.location.hostname)], ...r];
2058
+ return Yn(s);
2059
+ }, Ne = async ({
2001
2060
  name: e,
2002
2061
  value: t,
2003
2062
  expires: n,
@@ -2006,51 +2065,51 @@ const Ee = Mn(), Ln = (e) => {
2006
2065
  try {
2007
2066
  if (!o)
2008
2067
  return;
2009
- const r = zn({
2068
+ const r = Qn({
2010
2069
  name: e,
2011
2070
  value: t,
2012
2071
  expires: n
2013
2072
  });
2014
2073
  document.cookie = r;
2015
2074
  } catch (r) {
2016
- T.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2075
+ w.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2017
2076
  }
2018
2077
  };
2019
- function Dn() {
2078
+ function Zn() {
2020
2079
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2021
2080
  const t = Math.random() * 16 | 0;
2022
2081
  return (e == "x" ? t : t & 3 | 8).toString(16);
2023
2082
  });
2024
2083
  }
2025
- function Ne() {
2026
- return Dn().replace(/-/g, "");
2084
+ function Oe() {
2085
+ return Zn().replace(/-/g, "");
2027
2086
  }
2028
- const Pe = "builderSessionId", qn = async ({
2087
+ const je = "builderSessionId", eo = async ({
2029
2088
  canTrack: e
2030
2089
  }) => {
2031
2090
  if (!e)
2032
2091
  return;
2033
- const t = await Be({
2034
- name: Pe,
2092
+ const t = await Pe({
2093
+ name: je,
2035
2094
  canTrack: e
2036
2095
  });
2037
2096
  if (E(t))
2038
2097
  return t;
2039
2098
  {
2040
- const n = Gn();
2041
- return Jn({
2099
+ const n = to();
2100
+ return no({
2042
2101
  id: n,
2043
2102
  canTrack: e
2044
2103
  }), n;
2045
2104
  }
2046
- }, Gn = () => Ne(), Jn = ({
2105
+ }, to = () => Oe(), no = ({
2047
2106
  id: e,
2048
2107
  canTrack: t
2049
- }) => Ve({
2050
- name: Pe,
2108
+ }) => Ne({
2109
+ name: je,
2051
2110
  value: e,
2052
2111
  canTrack: t
2053
- }), _e = () => C() && typeof localStorage < "u" ? localStorage : void 0, Yn = ({
2112
+ }), _e = () => S() && typeof localStorage < "u" ? localStorage : void 0, oo = ({
2054
2113
  key: e,
2055
2114
  canTrack: t
2056
2115
  }) => {
@@ -2061,7 +2120,7 @@ const Pe = "builderSessionId", qn = async ({
2061
2120
  console.debug("[LocalStorage] GET error: ", o);
2062
2121
  return;
2063
2122
  }
2064
- }, Xn = ({
2123
+ }, ro = ({
2065
2124
  key: e,
2066
2125
  canTrack: t,
2067
2126
  value: n
@@ -2072,64 +2131,32 @@ const Pe = "builderSessionId", qn = async ({
2072
2131
  } catch (r) {
2073
2132
  console.debug("[LocalStorage] SET error: ", r);
2074
2133
  }
2075
- }, Oe = "builderVisitorId", Qn = ({
2134
+ }, Fe = "builderVisitorId", so = ({
2076
2135
  canTrack: e
2077
2136
  }) => {
2078
2137
  if (!e)
2079
2138
  return;
2080
- const t = Yn({
2081
- key: Oe,
2139
+ const t = oo({
2140
+ key: Fe,
2082
2141
  canTrack: e
2083
2142
  });
2084
2143
  if (E(t))
2085
2144
  return t;
2086
2145
  {
2087
- const n = Zn();
2088
- return eo({
2146
+ const n = io();
2147
+ return ao({
2089
2148
  id: n,
2090
2149
  canTrack: e
2091
2150
  }), n;
2092
2151
  }
2093
- }, Zn = () => Ne(), eo = ({
2152
+ }, io = () => Oe(), ao = ({
2094
2153
  id: e,
2095
2154
  canTrack: t
2096
- }) => Xn({
2097
- key: Oe,
2155
+ }) => ro({
2156
+ key: Fe,
2098
2157
  value: e,
2099
2158
  canTrack: t
2100
- }), to = () => {
2101
- if (C()) {
2102
- const e = new URL(location.href);
2103
- return e.pathname === "" && (e.pathname = "/"), e;
2104
- } else
2105
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
2106
- }, no = () => typeof navigator == "object" && navigator.userAgent || "", oo = () => {
2107
- const e = no(), t = {
2108
- Android() {
2109
- return e.match(/Android/i);
2110
- },
2111
- BlackBerry() {
2112
- return e.match(/BlackBerry/i);
2113
- },
2114
- iOS() {
2115
- return e.match(/iPhone|iPod/i);
2116
- },
2117
- Opera() {
2118
- return e.match(/Opera Mini/i);
2119
- },
2120
- Windows() {
2121
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
2122
- },
2123
- any() {
2124
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
2125
- }
2126
- }, n = e.match(/Tablet|iPad/i), o = to();
2127
- return {
2128
- urlPath: o == null ? void 0 : o.pathname,
2129
- host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
2130
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
2131
- };
2132
- }, ro = async ({
2159
+ }), lo = async ({
2133
2160
  canTrack: e
2134
2161
  }) => {
2135
2162
  if (!e)
@@ -2137,16 +2164,16 @@ const Pe = "builderSessionId", qn = async ({
2137
2164
  visitorId: void 0,
2138
2165
  sessionId: void 0
2139
2166
  };
2140
- const t = await qn({
2167
+ const t = await eo({
2141
2168
  canTrack: e
2142
- }), n = Qn({
2169
+ }), n = so({
2143
2170
  canTrack: e
2144
2171
  });
2145
2172
  return {
2146
2173
  sessionId: t,
2147
2174
  visitorId: n
2148
2175
  };
2149
- }, so = async ({
2176
+ }, co = async ({
2150
2177
  type: e,
2151
2178
  canTrack: t,
2152
2179
  apiKey: n,
@@ -2160,23 +2187,23 @@ const Pe = "builderSessionId", qn = async ({
2160
2187
  url: location.href,
2161
2188
  ...o
2162
2189
  },
2163
- ...await ro({
2190
+ ...await lo({
2164
2191
  canTrack: t
2165
2192
  }),
2166
- userAttributes: oo(),
2193
+ userAttributes: $e(),
2167
2194
  ownerId: n
2168
2195
  }
2169
2196
  });
2170
- async function G(e) {
2197
+ async function Y(e) {
2171
2198
  if (!e.apiKey) {
2172
- T.error("Missing API key for track call. Please provide your API key.");
2199
+ w.error("Missing API key for track call. Please provide your API key.");
2173
2200
  return;
2174
2201
  }
2175
- if (!!e.canTrack && !A() && !!(C() || B === "reactNative"))
2202
+ if (!!e.canTrack && !A() && !!(S() || B === "reactNative"))
2176
2203
  return fetch("https://cdn.builder.io/api/v1/track", {
2177
2204
  method: "POST",
2178
2205
  body: JSON.stringify({
2179
- events: [await so(e)]
2206
+ events: [await co(e)]
2180
2207
  }),
2181
2208
  headers: {
2182
2209
  "content-type": "application/json"
@@ -2186,13 +2213,13 @@ async function G(e) {
2186
2213
  console.error("Failed to track: ", t);
2187
2214
  });
2188
2215
  }
2189
- const Go = (e) => G({
2216
+ const Jo = (e) => Y({
2190
2217
  ...e,
2191
2218
  canTrack: !0
2192
- }), io = "UNKNOWN_VERSION", de = {};
2193
- function ao(e, t) {
2194
- let n = de[e];
2195
- if (n || (n = de[e] = []), n.push(t), C()) {
2219
+ }), uo = "UNKNOWN_VERSION", he = {};
2220
+ function po(e, t) {
2221
+ let n = he[e];
2222
+ if (n || (n = he[e] = []), n.push(t), S()) {
2196
2223
  const o = {
2197
2224
  type: "builder.register",
2198
2225
  data: {
@@ -2207,8 +2234,8 @@ function ao(e, t) {
2207
2234
  }
2208
2235
  }
2209
2236
  }
2210
- const lo = () => {
2211
- ao("insertMenu", {
2237
+ const mo = () => {
2238
+ po("insertMenu", {
2212
2239
  name: "_default",
2213
2240
  default: !0,
2214
2241
  items: [{
@@ -2230,14 +2257,14 @@ const lo = () => {
2230
2257
  }]
2231
2258
  });
2232
2259
  };
2233
- let ue = !1;
2234
- const co = (e = {}) => {
2260
+ let fe = !1;
2261
+ const ho = (e = {}) => {
2235
2262
  var t, n;
2236
- ue || (ue = !0, C() && ((t = window.parent) == null || t.postMessage({
2263
+ fe || (fe = !0, S() && ((t = window.parent) == null || t.postMessage({
2237
2264
  type: "builder.sdkInfo",
2238
2265
  data: {
2239
2266
  target: B,
2240
- version: io,
2267
+ version: uo,
2241
2268
  supportsPatchUpdates: !1,
2242
2269
  supportsAddBlockScoping: !0,
2243
2270
  supportsCustomBreakpoints: !0
@@ -2288,10 +2315,10 @@ const co = (e = {}) => {
2288
2315
  }
2289
2316
  })));
2290
2317
  };
2291
- function pe(e) {
2318
+ function ge(e) {
2292
2319
  return Math.round(e * 1e3) / 1e3;
2293
2320
  }
2294
- const uo = (e, t, n = !0) => {
2321
+ const fo = (e, t, n = !0) => {
2295
2322
  if (!(e instanceof HTMLElement))
2296
2323
  return null;
2297
2324
  let o = n ? e : e.parentElement;
@@ -2302,52 +2329,52 @@ const uo = (e, t, n = !0) => {
2302
2329
  return o;
2303
2330
  } while (o = o.parentElement);
2304
2331
  return null;
2305
- }, po = (e) => uo(e, (t) => {
2332
+ }, go = (e) => fo(e, (t) => {
2306
2333
  const n = t.getAttribute("builder-id") || t.id;
2307
2334
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2308
- }), me = ({
2335
+ }), be = ({
2309
2336
  event: e,
2310
2337
  target: t
2311
2338
  }) => {
2312
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = pe(o / n.width), s = pe(r / n.height);
2339
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = ge(o / n.width), s = ge(r / n.height);
2313
2340
  return {
2314
2341
  x: i,
2315
2342
  y: s
2316
2343
  };
2317
- }, mo = (e) => {
2318
- const t = e.target, n = t && po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2344
+ }, bo = (e) => {
2345
+ const t = e.target, n = t && go(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2319
2346
  return {
2320
2347
  targetBuilderElement: o || void 0,
2321
2348
  metadata: {
2322
- targetOffset: t ? me({
2349
+ targetOffset: t ? be({
2323
2350
  event: e,
2324
2351
  target: t
2325
2352
  }) : void 0,
2326
- builderTargetOffset: n ? me({
2353
+ builderTargetOffset: n ? be({
2327
2354
  event: e,
2328
2355
  target: n
2329
2356
  }) : void 0,
2330
2357
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2331
2358
  }
2332
2359
  };
2333
- }, ho = "builder.tests", Z = (e) => `${ho}.${e}`, fo = ({
2360
+ }, yo = "builder.tests", oe = (e) => `${yo}.${e}`, ko = ({
2334
2361
  contentId: e
2335
- }) => Be({
2336
- name: Z(e),
2362
+ }) => Pe({
2363
+ name: oe(e),
2337
2364
  canTrack: !0
2338
- }), go = ({
2365
+ }), So = ({
2339
2366
  contentId: e
2340
- }) => Ae({
2341
- name: Z(e),
2367
+ }) => Ve({
2368
+ name: oe(e),
2342
2369
  canTrack: !0
2343
- }), bo = ({
2370
+ }), vo = ({
2344
2371
  contentId: e,
2345
2372
  value: t
2346
- }) => Ve({
2347
- name: Z(e),
2373
+ }) => Ne({
2374
+ name: oe(e),
2348
2375
  value: t,
2349
2376
  canTrack: !0
2350
- }), je = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, yo = ({
2377
+ }), Ue = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, Co = ({
2351
2378
  id: e,
2352
2379
  variations: t
2353
2380
  }) => {
@@ -2360,15 +2387,15 @@ const uo = (e, t, n = !0) => {
2360
2387
  return i;
2361
2388
  }
2362
2389
  return e;
2363
- }, Fe = (e) => {
2364
- const t = yo(e);
2365
- return bo({
2390
+ }, Me = (e) => {
2391
+ const t = Co(e);
2392
+ return vo({
2366
2393
  contentId: e.id,
2367
2394
  value: t
2368
2395
  }).catch((n) => {
2369
- T.error("could not store A/B test variation: ", n);
2396
+ w.error("could not store A/B test variation: ", n);
2370
2397
  }), t;
2371
- }, Ue = ({
2398
+ }, We = ({
2372
2399
  item: e,
2373
2400
  testGroupId: t
2374
2401
  }) => {
@@ -2381,7 +2408,7 @@ const uo = (e, t, n = !0) => {
2381
2408
  testVariationId: n.id,
2382
2409
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
2383
2410
  };
2384
- }, ko = ({
2411
+ }, wo = ({
2385
2412
  item: e,
2386
2413
  canTrack: t
2387
2414
  }) => {
@@ -2389,14 +2416,14 @@ const uo = (e, t, n = !0) => {
2389
2416
  return e;
2390
2417
  if (!e)
2391
2418
  return;
2392
- if (!je(e))
2419
+ if (!Ue(e))
2393
2420
  return e;
2394
- const n = go({
2421
+ const n = So({
2395
2422
  contentId: e.id
2396
- }) || Fe({
2423
+ }) || Me({
2397
2424
  variations: e.variations,
2398
2425
  id: e.id
2399
- }), o = Ue({
2426
+ }), o = We({
2400
2427
  item: e,
2401
2428
  testGroupId: n
2402
2429
  });
@@ -2404,18 +2431,18 @@ const uo = (e, t, n = !0) => {
2404
2431
  ...e,
2405
2432
  ...o
2406
2433
  };
2407
- }, So = async ({
2434
+ }, $o = async ({
2408
2435
  item: e,
2409
2436
  canTrack: t
2410
2437
  }) => {
2411
- if (!t || !je(e))
2438
+ if (!t || !Ue(e))
2412
2439
  return e;
2413
- const o = await fo({
2440
+ const o = await ko({
2414
2441
  contentId: e.id
2415
- }) || Fe({
2442
+ }) || Me({
2416
2443
  variations: e.variations,
2417
2444
  id: e.id
2418
- }), r = Ue({
2445
+ }), r = We({
2419
2446
  item: e,
2420
2447
  testGroupId: o
2421
2448
  });
@@ -2423,40 +2450,40 @@ const uo = (e, t, n = !0) => {
2423
2450
  ...e,
2424
2451
  ...r
2425
2452
  };
2426
- }, J = (e) => E(e) ? e : !0;
2427
- function Y(e, t = null, n = ".") {
2453
+ }, X = (e) => E(e) ? e : !0;
2454
+ function Q(e, t = null, n = ".") {
2428
2455
  return Object.keys(e).reduce((o, r) => {
2429
2456
  const i = e[r], s = [t, r].filter(Boolean).join(n);
2430
2457
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
2431
2458
  ...o,
2432
- ...Y(i, s, n)
2459
+ ...Q(i, s, n)
2433
2460
  } : {
2434
2461
  ...o,
2435
2462
  [s]: i
2436
2463
  };
2437
2464
  }, {});
2438
2465
  }
2439
- const he = "builder.", vo = "options.", Co = (e) => {
2466
+ const ye = "builder.", To = "options.", Io = (e) => {
2440
2467
  const t = {};
2441
2468
  return e.forEach((n, o) => {
2442
2469
  t[o] = n;
2443
2470
  }), t;
2444
- }, wo = (e) => {
2471
+ }, Le = (e) => {
2445
2472
  if (!e)
2446
2473
  return {};
2447
- const t = We(e), n = {};
2474
+ const t = Ke(e), n = {};
2448
2475
  return Object.keys(t).forEach((o) => {
2449
- if (o.startsWith(he)) {
2450
- const r = o.replace(he, "").replace(vo, "");
2476
+ if (o.startsWith(ye)) {
2477
+ const r = o.replace(ye, "").replace(To, "");
2451
2478
  n[r] = t[o];
2452
2479
  }
2453
2480
  }), n;
2454
- }, $o = () => {
2455
- if (!C())
2481
+ }, Ro = () => {
2482
+ if (!S())
2456
2483
  return {};
2457
2484
  const e = new URLSearchParams(window.location.search);
2458
- return wo(e);
2459
- }, We = (e) => e instanceof URLSearchParams ? Co(e) : e, To = "v3", ee = (e) => {
2485
+ return Le(e);
2486
+ }, Ke = (e) => e instanceof URLSearchParams ? Io(e) : e, xo = "v3", re = (e) => {
2460
2487
  const {
2461
2488
  limit: t = 30,
2462
2489
  userAttributes: n,
@@ -2467,70 +2494,71 @@ const he = "builder.", vo = "options.", Co = (e) => {
2467
2494
  includeRefs: a = !0,
2468
2495
  enrich: l,
2469
2496
  locale: c,
2470
- apiVersion: u = To
2497
+ apiVersion: u = xo
2471
2498
  } = e;
2472
2499
  if (!s)
2473
2500
  throw new Error("Missing API key");
2474
2501
  if (!["v2", "v3"].includes(u))
2475
2502
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2476
2503
  const h = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${t}&noTraverse=${r}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`), m = {
2477
- ...$o(),
2478
- ...We(e.options || {})
2479
- }, f = Y(m);
2504
+ ...Ro(),
2505
+ ...Ke(e.options || {})
2506
+ }, f = Q(m);
2480
2507
  for (const k in f)
2481
2508
  h.searchParams.set(k, String(f[k]));
2482
2509
  if (n && h.searchParams.set("userAttributes", JSON.stringify(n)), o) {
2483
- const k = Y({
2510
+ const k = Q({
2484
2511
  query: o
2485
2512
  });
2486
- for (const w in k)
2487
- h.searchParams.set(w, JSON.stringify(k[w]));
2513
+ for (const $ in k)
2514
+ h.searchParams.set($, JSON.stringify(k[$]));
2488
2515
  }
2489
2516
  return h;
2490
- }, Io = (e) => "results" in e;
2491
- async function Me(e) {
2492
- const t = await Eo({
2517
+ }, Eo = (e) => "results" in e;
2518
+ async function H(e) {
2519
+ const t = await He({
2493
2520
  ...e,
2494
2521
  limit: 1
2495
2522
  });
2496
2523
  return t && t.results[0] || null;
2497
2524
  }
2498
- const Ro = async (e) => {
2499
- const t = ee(e);
2500
- return await (await Ee(t.href)).json();
2501
- }, xo = async (e, t, n = ee(e)) => {
2502
- const o = J(e.canTrack);
2503
- if (n.search.includes("preview="), !o || !(C() || B === "reactNative"))
2525
+ const Yo = H, Ao = async (e) => {
2526
+ const t = re(e);
2527
+ return await (await Be(t.href)).json();
2528
+ }, Bo = async (e, t, n = re(e)) => {
2529
+ const o = X(e.canTrack);
2530
+ if (n.search.includes("preview="), !o || !(S() || B === "reactNative"))
2504
2531
  return t;
2505
2532
  try {
2506
2533
  const r = [];
2507
2534
  for (const i of t.results)
2508
- r.push(await So({
2535
+ r.push(await $o({
2509
2536
  item: i,
2510
2537
  canTrack: o
2511
2538
  }));
2512
2539
  t.results = r;
2513
2540
  } catch (r) {
2514
- T.error("Could not process A/B tests. ", r);
2541
+ w.error("Could not process A/B tests. ", r);
2515
2542
  }
2516
2543
  return t;
2517
2544
  };
2518
- async function Eo(e) {
2545
+ async function He(e) {
2519
2546
  try {
2520
- const t = ee(e), n = await Ro(e);
2521
- return Io(n) ? xo(e, n) : (T.error("Error fetching data. ", {
2547
+ const t = re(e), n = await Ao(e);
2548
+ return Eo(n) ? Bo(e, n) : (w.error("Error fetching data. ", {
2522
2549
  url: t,
2523
2550
  content: n,
2524
2551
  options: e
2525
2552
  }), null);
2526
2553
  } catch (t) {
2527
- return T.error("Error fetching data. ", t), null;
2554
+ return w.error("Error fetching data. ", t), null;
2528
2555
  }
2529
2556
  }
2530
- function Ao() {
2531
- return !C() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2557
+ const Xo = He;
2558
+ function Vo() {
2559
+ return !S() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2532
2560
  }
2533
- const Bo = g({
2561
+ const Po = g({
2534
2562
  name: "enable-editor",
2535
2563
  props: [
2536
2564
  "canTrack",
@@ -2553,21 +2581,21 @@ const Bo = g({
2553
2581
  shouldSendResetCookie: !1,
2554
2582
  httpReqsData: {},
2555
2583
  clicked: !1,
2556
- builderContext: q
2584
+ builderContext: J
2557
2585
  };
2558
2586
  },
2559
2587
  provide() {
2560
2588
  const e = this;
2561
2589
  return {
2562
- [q.key]: e.builderContextSignal
2590
+ [J.key]: e.builderContextSignal
2563
2591
  };
2564
2592
  },
2565
2593
  mounted() {
2566
2594
  var e, t;
2567
- if (this.apiKey || T.error(
2595
+ if (this.apiKey || w.error(
2568
2596
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2569
- ), C()) {
2570
- if (A() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), lo(), co({
2597
+ ), S()) {
2598
+ if (A() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), mo(), ho({
2571
2599
  ...this.locale ? {
2572
2600
  locale: this.locale
2573
2601
  } : {},
@@ -2581,14 +2609,14 @@ const Bo = g({
2581
2609
  this.builderContextSignal.componentInfos
2582
2610
  ).forEach((n) => {
2583
2611
  var r;
2584
- const o = En(n);
2612
+ const o = jn(n);
2585
2613
  (r = window.parent) == null || r.postMessage(o, "*");
2586
2614
  }), window.addEventListener(
2587
2615
  "builder:component:stateChangeListenerActivated",
2588
2616
  this.emitStateUpdate
2589
2617
  )), this.builderContextSignal.content) {
2590
2618
  const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
2591
- G({
2619
+ Y({
2592
2620
  type: "impression",
2593
2621
  canTrack: this.canTrackToUse,
2594
2622
  contentId: o,
@@ -2596,11 +2624,11 @@ const Bo = g({
2596
2624
  variationId: n !== o ? n : void 0
2597
2625
  });
2598
2626
  }
2599
- if (Ao()) {
2627
+ if (Vo()) {
2600
2628
  const n = new URL(location.href).searchParams, o = n.get("builder.preview"), r = n.get(
2601
2629
  `builder.preview.${o}`
2602
2630
  ), i = n.get("apiKey") || n.get("builder.space");
2603
- o === this.model && i === this.apiKey && (!this.content || r === this.content.id) && Me({
2631
+ o === this.model && i === this.apiKey && (!this.content || r === this.content.id) && H({
2604
2632
  model: this.model,
2605
2633
  apiKey: this.apiKey,
2606
2634
  apiVersion: this.builderContextSignal.apiVersion
@@ -2640,7 +2668,7 @@ const Bo = g({
2640
2668
  }
2641
2669
  },
2642
2670
  unmounted() {
2643
- C() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2671
+ S() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2644
2672
  "builder:component:stateChangeListenerActivated",
2645
2673
  this.emitStateUpdate
2646
2674
  ));
@@ -2719,7 +2747,7 @@ const Bo = g({
2719
2747
  evaluateJsCode() {
2720
2748
  var t, n;
2721
2749
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
2722
- e && W({
2750
+ e && M({
2723
2751
  code: e,
2724
2752
  context: this.context || {},
2725
2753
  localState: void 0,
@@ -2731,13 +2759,13 @@ const Bo = g({
2731
2759
  var t, n;
2732
2760
  if (this.builderContextSignal.content) {
2733
2761
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2734
- G({
2762
+ Y({
2735
2763
  type: "click",
2736
2764
  canTrack: this.canTrackToUse,
2737
2765
  contentId: r,
2738
2766
  apiKey: this.apiKey,
2739
2767
  variationId: o !== r ? o : void 0,
2740
- ...mo(e),
2768
+ ...bo(e),
2741
2769
  unique: !this.clicked
2742
2770
  });
2743
2771
  }
@@ -2746,7 +2774,7 @@ const Bo = g({
2746
2774
  evalExpression(e) {
2747
2775
  return e.replace(
2748
2776
  /{{([^}]+)}}/g,
2749
- (t, n) => W({
2777
+ (t, n) => M({
2750
2778
  code: n,
2751
2779
  context: this.context || {},
2752
2780
  localState: void 0,
@@ -2756,7 +2784,7 @@ const Bo = g({
2756
2784
  );
2757
2785
  },
2758
2786
  handleRequest({ url: e, key: t }) {
2759
- Ee(e).then((n) => n.json()).then((n) => {
2787
+ Be(e).then((n) => n.json()).then((n) => {
2760
2788
  var r, i;
2761
2789
  const o = {
2762
2790
  ...this.builderContextSignal.rootState,
@@ -2805,10 +2833,10 @@ const Bo = g({
2805
2833
  return t;
2806
2834
  }
2807
2835
  }
2808
- }), Vo = ["builder-content-id", "builder-model"];
2809
- function No(e, t, n, o, r, i) {
2836
+ }), No = ["builder-content-id", "builder-model"];
2837
+ function Oo(e, t, n, o, r, i) {
2810
2838
  var s;
2811
- return e.builderContextSignal.content ? (d(), p("div", $({
2839
+ return e.builderContextSignal.content ? (d(), p("div", T({
2812
2840
  key: e.forceReRenderCount,
2813
2841
  ref: "elementRef",
2814
2842
  onClick: t[0] || (t[0] = (a) => e.onClick(a)),
@@ -2821,22 +2849,22 @@ function No(e, t, n, o, r, i) {
2821
2849
  "aria-hidden": !0
2822
2850
  }
2823
2851
  }), [
2824
- _(e.$slots, "default")
2825
- ], 16, Vo)) : v("", !0);
2852
+ O(e.$slots, "default")
2853
+ ], 16, No)) : C("", !0);
2826
2854
  }
2827
- const Po = /* @__PURE__ */ y(Bo, [["render", No]]), Le = g({
2855
+ const jo = /* @__PURE__ */ y(Po, [["render", Oo]]), ze = g({
2828
2856
  render() {
2829
- return ge("script", { id: this.id, innerHTML: this.scriptStr });
2857
+ return Se("script", { id: this.id, innerHTML: this.scriptStr });
2830
2858
  },
2831
2859
  name: "inlined-script",
2832
2860
  props: ["scriptStr", "id"]
2833
- }), _o = He, Oo = g({
2861
+ }), _o = Ge, Fo = g({
2834
2862
  name: "content-component",
2835
2863
  components: {
2836
- EnableEditor: Po,
2837
- InlinedScript: Le,
2838
- ContentStyles: jn,
2839
- Blocks: Te
2864
+ EnableEditor: jo,
2865
+ InlinedScript: ze,
2866
+ ContentStyles: Hn,
2867
+ Blocks: ne
2840
2868
  },
2841
2869
  props: [
2842
2870
  "content",
@@ -2857,31 +2885,31 @@ const Po = /* @__PURE__ */ y(Bo, [["render", No]]), Le = g({
2857
2885
  data() {
2858
2886
  var e, t;
2859
2887
  return {
2860
- scriptStr: Gt({
2888
+ scriptStr: tn({
2861
2889
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2862
2890
  contentId: (t = this.content) == null ? void 0 : t.id
2863
2891
  }),
2864
2892
  registeredComponents: [
2865
- ...ae(),
2866
- ...le,
2893
+ ...ue(),
2894
+ ...pe,
2867
2895
  ...this.customComponents || []
2868
2896
  ].reduce(
2869
2897
  (n, { component: o, ...r }) => ({
2870
2898
  ...n,
2871
2899
  [r.name]: {
2872
2900
  component: _o(o),
2873
- ...ce(r)
2901
+ ...me(r)
2874
2902
  }
2875
2903
  }),
2876
2904
  {}
2877
2905
  ),
2878
2906
  builderContextSignal: {
2879
- content: Un({
2907
+ content: Dn({
2880
2908
  content: this.content,
2881
2909
  data: this.data
2882
2910
  }),
2883
2911
  localState: void 0,
2884
- rootState: Fn({
2912
+ rootState: zn({
2885
2913
  content: this.content,
2886
2914
  data: this.data,
2887
2915
  locale: this.locale
@@ -2891,13 +2919,13 @@ const Po = /* @__PURE__ */ y(Bo, [["render", No]]), Le = g({
2891
2919
  apiKey: this.apiKey,
2892
2920
  apiVersion: this.apiVersion,
2893
2921
  componentInfos: [
2894
- ...ae(),
2895
- ...le,
2922
+ ...ue(),
2923
+ ...pe,
2896
2924
  ...this.customComponents || []
2897
2925
  ].reduce(
2898
2926
  (n, { component: o, ...r }) => ({
2899
2927
  ...n,
2900
- [r.name]: ce(r)
2928
+ [r.name]: me(r)
2901
2929
  }),
2902
2930
  {}
2903
2931
  ),
@@ -2909,7 +2937,7 @@ const Po = /* @__PURE__ */ y(Bo, [["render", No]]), Le = g({
2909
2937
  provide() {
2910
2938
  const e = this;
2911
2939
  return {
2912
- [$e.key]: {
2940
+ [Re.key]: {
2913
2941
  registeredComponents: e.registeredComponents
2914
2942
  }
2915
2943
  };
@@ -2920,9 +2948,9 @@ const Po = /* @__PURE__ */ y(Bo, [["render", No]]), Le = g({
2920
2948
  }
2921
2949
  }
2922
2950
  });
2923
- function jo(e, t, n, o, r, i) {
2951
+ function Uo(e, t, n, o, r, i) {
2924
2952
  const s = b("inlined-script"), a = b("content-styles"), l = b("blocks"), c = b("enable-editor");
2925
- return d(), S(c, $({
2953
+ return d(), v(c, T({
2926
2954
  content: e.content,
2927
2955
  model: e.model,
2928
2956
  context: e.context,
@@ -2935,21 +2963,21 @@ function jo(e, t, n, o, r, i) {
2935
2963
  showContent: e.showContent,
2936
2964
  builderContextSignal: e.builderContextSignal
2937
2965
  }, {}), {
2938
- default: X(() => {
2939
- var u, h, m, f, k, w, x;
2966
+ default: Z(() => {
2967
+ var u, h, m, f, k, $, x;
2940
2968
  return [
2941
- e.isSsrAbTest ? (d(), S(s, {
2969
+ e.isSsrAbTest ? (d(), v(s, {
2942
2970
  key: 0,
2943
2971
  scriptStr: e.scriptStr
2944
- }, null, 8, ["scriptStr"])) : v("", !0),
2945
- e.TARGET !== "reactNative" ? (d(), S(a, {
2972
+ }, null, 8, ["scriptStr"])) : C("", !0),
2973
+ e.TARGET !== "reactNative" ? (d(), v(a, {
2946
2974
  key: 1,
2947
2975
  contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
2948
2976
  cssCode: (m = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : m.cssCode,
2949
2977
  customFonts: (k = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
2950
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
2951
- N(l, {
2952
- blocks: (x = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : x.blocks,
2978
+ }, null, 8, ["contentId", "cssCode", "customFonts"])) : C("", !0),
2979
+ P(l, {
2980
+ blocks: (x = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : x.blocks,
2953
2981
  context: e.builderContextSignal,
2954
2982
  registeredComponents: e.registeredComponents
2955
2983
  }, null, 8, ["blocks", "context", "registeredComponents"])
@@ -2958,12 +2986,12 @@ function jo(e, t, n, o, r, i) {
2958
2986
  _: 1
2959
2987
  }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
2960
2988
  }
2961
- const Fo = /* @__PURE__ */ y(Oo, [["render", jo]]), Uo = g({
2989
+ const Mo = /* @__PURE__ */ y(Fo, [["render", Uo]]), Wo = g({
2962
2990
  name: "content-variants",
2963
2991
  components: {
2964
- InlinedScript: Le,
2992
+ InlinedScript: ze,
2965
2993
  InlinedStyles: K,
2966
- ContentComponent: Fo
2994
+ ContentComponent: Mo
2967
2995
  },
2968
2996
  props: [
2969
2997
  "canTrack",
@@ -2981,11 +3009,11 @@ const Fo = /* @__PURE__ */ y(Oo, [["render", jo]]), Uo = g({
2981
3009
  ],
2982
3010
  data() {
2983
3011
  return {
2984
- shouldRenderVariants: Lt({
2985
- canTrack: J(this.canTrack),
3012
+ shouldRenderVariants: Jt({
3013
+ canTrack: X(this.canTrack),
2986
3014
  content: this.content
2987
3015
  }),
2988
- getScriptString: Dt,
3016
+ getScriptString: Zt,
2989
3017
  getVariants: U,
2990
3018
  TARGET: B
2991
3019
  };
@@ -2996,7 +3024,7 @@ const Fo = /* @__PURE__ */ y(Oo, [["render", jo]]), Uo = g({
2996
3024
  computed: {
2997
3025
  variantScriptStr() {
2998
3026
  var e;
2999
- return qt(
3027
+ return en(
3000
3028
  U(this.content).map((t) => ({
3001
3029
  id: t.testVariationId,
3002
3030
  testRatio: t.testRatio
@@ -3012,28 +3040,28 @@ const Fo = /* @__PURE__ */ y(Oo, [["render", jo]]), Uo = g({
3012
3040
  return this.shouldRenderVariants ? {
3013
3041
  ...this.content,
3014
3042
  testVariationId: (e = this.content) == null ? void 0 : e.id
3015
- } : ko({
3043
+ } : wo({
3016
3044
  item: this.content,
3017
- canTrack: J(this.canTrack)
3045
+ canTrack: X(this.canTrack)
3018
3046
  });
3019
3047
  }
3020
3048
  }
3021
3049
  });
3022
- function Wo(e, t, n, o, r, i) {
3050
+ function Lo(e, t, n, o, r, i) {
3023
3051
  var c, u;
3024
3052
  const s = b("inlined-script"), a = b("inlined-styles"), l = b("content-component");
3025
3053
  return d(), p(I, null, [
3026
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), S(s, {
3054
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), v(s, {
3027
3055
  key: 0,
3028
3056
  scriptStr: e.getScriptString()
3029
- }, null, 8, ["scriptStr"])) : v("", !0),
3057
+ }, null, 8, ["scriptStr"])) : C("", !0),
3030
3058
  e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
3031
- N(a, {
3059
+ P(a, {
3032
3060
  id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
3033
3061
  styles: e.hideVariantsStyleString
3034
3062
  }, null, 8, ["id", "styles"]),
3035
- N(s, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3036
- (d(!0), p(I, null, V(e.getVariants(e.content), (h, m) => (d(), S(l, {
3063
+ P(s, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3064
+ (d(!0), p(I, null, V(e.getVariants(e.content), (h, m) => (d(), v(l, {
3037
3065
  key: h.testVariationId,
3038
3066
  content: h,
3039
3067
  showContent: !1,
@@ -3050,8 +3078,8 @@ function Wo(e, t, n, o, r, i) {
3050
3078
  enrich: e.enrich,
3051
3079
  isSsrAbTest: e.shouldRenderVariants
3052
3080
  }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
3053
- ], 64)) : v("", !0),
3054
- N(l, $({
3081
+ ], 64)) : C("", !0),
3082
+ P(l, T({
3055
3083
  content: e.defaultContent,
3056
3084
  classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3057
3085
  showContent: !0,
@@ -3071,12 +3099,12 @@ function Wo(e, t, n, o, r, i) {
3071
3099
  }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3072
3100
  ], 64);
3073
3101
  }
3074
- const Mo = /* @__PURE__ */ y(Uo, [["render", Wo]]), Lo = async ({
3102
+ const De = /* @__PURE__ */ y(Wo, [["render", Lo]]), Ko = async ({
3075
3103
  builderContextValue: e,
3076
3104
  symbol: t
3077
3105
  }) => {
3078
3106
  if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3079
- return Me({
3107
+ return H({
3080
3108
  model: t.model,
3081
3109
  apiKey: e.apiKey,
3082
3110
  apiVersion: e.apiVersion,
@@ -3086,11 +3114,11 @@ const Mo = /* @__PURE__ */ y(Uo, [["render", Wo]]), Lo = async ({
3086
3114
  }
3087
3115
  }
3088
3116
  }).catch((n) => {
3089
- T.error("Could not fetch symbol content: ", n);
3117
+ w.error("Could not fetch symbol content: ", n);
3090
3118
  });
3091
- }, Ko = g({
3119
+ }, Ho = g({
3092
3120
  name: "builder-symbol",
3093
- components: { ContentVariants: Mo },
3121
+ components: { ContentVariants: De },
3094
3122
  props: [
3095
3123
  "js",
3096
3124
  "attributes",
@@ -3101,7 +3129,7 @@ const Mo = /* @__PURE__ */ y(Uo, [["render", Wo]]), Lo = async ({
3101
3129
  ],
3102
3130
  data() {
3103
3131
  var e;
3104
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: M };
3132
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
3105
3133
  },
3106
3134
  mounted() {
3107
3135
  this.setContent();
@@ -3132,7 +3160,7 @@ const Mo = /* @__PURE__ */ y(Uo, [["render", Wo]]), Lo = async ({
3132
3160
  },
3133
3161
  methods: {
3134
3162
  setContent() {
3135
- this.contentToUse || Lo({
3163
+ this.contentToUse || Ko({
3136
3164
  symbol: this.symbol,
3137
3165
  builderContextValue: this.builderContext
3138
3166
  }).then((e) => {
@@ -3150,13 +3178,13 @@ const Mo = /* @__PURE__ */ y(Uo, [["render", Wo]]), Lo = async ({
3150
3178
  }
3151
3179
  }
3152
3180
  });
3153
- function Ho(e, t, n, o, r, i) {
3181
+ function zo(e, t, n, o, r, i) {
3154
3182
  var a, l, c, u;
3155
3183
  const s = b("content-variants");
3156
- return d(), p("div", $({
3184
+ return d(), p("div", T({
3157
3185
  class: e._classStringToObject(e.className)
3158
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3159
- N(s, {
3186
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, j(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3187
+ P(s, {
3160
3188
  __isNestedRender: !0,
3161
3189
  apiVersion: e.builderContext.apiVersion,
3162
3190
  apiKey: e.builderContext.apiKey,
@@ -3172,46 +3200,72 @@ function Ho(e, t, n, o, r, i) {
3172
3200
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3173
3201
  ], 16);
3174
3202
  }
3175
- const zo = /* @__PURE__ */ y(Ko, [["render", Ho]]), fe = {};
3176
- function Jo(e) {
3177
- if (C()) {
3178
- Object.assign(fe, e);
3203
+ const Do = /* @__PURE__ */ y(Ho, [["render", zo]]), Qo = ne, Zo = De, ke = {};
3204
+ function er(e) {
3205
+ if (S()) {
3206
+ Object.assign(ke, e);
3179
3207
  const t = {
3180
3208
  type: "builder.settingsChange",
3181
- data: fe
3209
+ data: ke
3182
3210
  };
3183
3211
  parent.postMessage(t, "*");
3184
3212
  }
3185
3213
  }
3214
+ const tr = async (e) => {
3215
+ var o, r, i;
3216
+ const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
3217
+ ...e,
3218
+ apiKey: e.apiKey,
3219
+ model: e.model || "page",
3220
+ userAttributes: {
3221
+ ...e.userAttributes,
3222
+ ...t ? {
3223
+ urlPath: t
3224
+ } : {}
3225
+ },
3226
+ options: Le(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
3227
+ };
3228
+ return {
3229
+ apiKey: n.apiKey,
3230
+ model: n.model,
3231
+ content: await H(n)
3232
+ };
3233
+ };
3186
3234
  export {
3187
- q as B,
3188
- Rt as C,
3189
- At as F,
3190
- Ft as I,
3191
- Mt as S,
3235
+ Go as A,
3236
+ J as B,
3237
+ De as C,
3238
+ _t as F,
3239
+ zt as I,
3240
+ Qo as R,
3241
+ Gt as S,
3192
3242
  B as T,
3193
- un as V,
3243
+ yn as V,
3194
3244
  y as _,
3195
- we as a,
3196
- Ce as b,
3197
- tt as c,
3198
- Ao as d,
3199
- W as e,
3200
- En as f,
3201
- Jo as g,
3202
- Eo as h,
3245
+ Ie as a,
3246
+ Te as b,
3247
+ lt as c,
3248
+ Vo as d,
3249
+ M as e,
3250
+ jn as f,
3251
+ nt as g,
3252
+ er as h,
3203
3253
  A as i,
3204
- Me as j,
3205
- wo as k,
3206
- T as l,
3207
- Ge as m,
3208
- Te as n,
3209
- zo as o,
3210
- xo as p,
3211
- sn as q,
3212
- ao as r,
3213
- Qe as s,
3214
- Go as t,
3215
- Mo as u,
3216
- qo as v
3254
+ He as j,
3255
+ H as k,
3256
+ w as l,
3257
+ Xo as m,
3258
+ Yo as n,
3259
+ Bo as o,
3260
+ Le as p,
3261
+ tr as q,
3262
+ po as r,
3263
+ st as s,
3264
+ Jo as t,
3265
+ ne as u,
3266
+ Zo as v,
3267
+ Qe as w,
3268
+ Nt as x,
3269
+ Do as y,
3270
+ mn as z
3217
3271
  };