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

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