@builder.io/sdk-react 4.0.7 → 4.0.9

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 (78) hide show
  1. package/lib/browser/blocks-exports.cjs +93 -65
  2. package/lib/browser/blocks-exports.mjs +1721 -1613
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-e70c12ff.js → server-entry-231f8ecd.js} +1 -1
  6. package/lib/browser/{server-entry-4c650ff5.cjs → server-entry-bdbd3c0d.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-742ca147.js → accordion-b551e135.js} +1 -1
  10. package/lib/edge/{accordion-c97e6506.cjs → accordion-e3f81e74.cjs} +1 -1
  11. package/lib/edge/{blocks-2a015bd6.js → blocks-cd1feef2.js} +1014 -1008
  12. package/lib/edge/{blocks-70894a53.cjs → blocks-eb6fa21f.cjs} +15 -15
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-6a072716.cjs → button-5c6a9392.cjs} +1 -1
  16. package/lib/edge/{button-deecd9b5.js → button-f390f723.js} +2 -2
  17. package/lib/edge/{columns-0e9b2bf4.js → columns-7018a027.js} +9 -9
  18. package/lib/edge/{columns-02352a9f.cjs → columns-ad17139e.cjs} +3 -3
  19. package/lib/edge/content-variants-c72ca81f.cjs +302 -0
  20. package/lib/edge/{content-variants-6948115a.js → content-variants-dc54ce4f.js} +650 -367
  21. package/lib/edge/{custom-code-73f76f76.js → custom-code-0daf1c91.js} +1 -1
  22. package/lib/edge/{custom-code-77f98605.cjs → custom-code-e87af7b1.cjs} +1 -1
  23. package/lib/edge/{embed-26470ea1.js → embed-1dfcba43.js} +1 -1
  24. package/lib/edge/{embed-9aaf87f9.cjs → embed-c695c98e.cjs} +1 -1
  25. package/lib/edge/{form-652ef8a9.js → form-5a0c89d9.js} +5 -5
  26. package/lib/edge/{form-0213200e.cjs → form-ba54942c.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-1a003fac.js → get-class-prop-name-5edacc3b.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-8647a440.cjs → get-class-prop-name-c479656a.cjs} +1 -1
  29. package/lib/edge/{image-e38bd9e0.cjs → image-cce92f6c.cjs} +2 -2
  30. package/lib/edge/{image-acc1c00c.js → image-d87761af.js} +18 -18
  31. package/lib/edge/{img-f0b9e982.cjs → img-6982d6eb.cjs} +1 -1
  32. package/lib/edge/{img-2d35513d.js → img-882c7222.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/{input-cdd96bc7.js → input-3d4f956b.js} +1 -1
  36. package/lib/edge/{input-e61cf32f.cjs → input-8c7008b5.cjs} +1 -1
  37. package/lib/edge/personalization-container-3a8dc18a.js +205 -0
  38. package/lib/edge/personalization-container-4557a50b.cjs +1 -0
  39. package/lib/edge/{select-de96bdc0.js → select-153586f8.js} +1 -1
  40. package/lib/edge/{select-f1165866.cjs → select-2efc7503.cjs} +1 -1
  41. package/lib/edge/{server-entry-637ed5ff.js → server-entry-8dc3478a.js} +1 -1
  42. package/lib/edge/{server-entry-10ca8502.cjs → server-entry-9d269960.cjs} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-72846242.js → slot-d268693c.js} +3 -3
  46. package/lib/edge/{slot-3ecf31d9.cjs → slot-f1f7513c.cjs} +1 -1
  47. package/lib/edge/symbol-0344516c.cjs +1 -0
  48. package/lib/edge/symbol-378e19ee.js +90 -0
  49. package/lib/edge/{tabs-ea0258b8.js → tabs-29ff78a0.js} +3 -3
  50. package/lib/edge/{tabs-788974d9.cjs → tabs-4e931765.cjs} +1 -1
  51. package/lib/node/blocks-exports.cjs +92 -64
  52. package/lib/node/blocks-exports.mjs +1608 -1500
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +3 -3
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +3 -3
  57. package/lib/node/{server-entry-e76904a8.cjs → server-entry-916c726c.cjs} +1 -1
  58. package/lib/node/{server-entry-7167da7c.js → server-entry-f03c1146.js} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/lib/node/{setIvm-72c91afa.js → setIvm-044ce9e7.js} +1 -1
  62. package/lib/node/{setIvm-e89d1a08.cjs → setIvm-3761bb10.cjs} +1 -1
  63. package/lib/node/setIvm.cjs +1 -1
  64. package/lib/node/setIvm.mjs +2 -2
  65. package/lib/node/{should-force-browser-runtime-in-node-b3e23348.cjs → should-force-browser-runtime-in-node-e760d4f2.cjs} +1 -1
  66. package/lib/node/{should-force-browser-runtime-in-node-09a401d5.js → should-force-browser-runtime-in-node-f620dcdc.js} +1 -1
  67. package/package.json +2 -2
  68. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
  69. package/types/blocks/personalization-container/helpers.d.ts +24 -4
  70. package/types/blocks/personalization-container/personalization-container.types.d.ts +2 -2
  71. package/types/components/blocks/blocks-wrapper.d.ts +13 -1
  72. package/types/components/blocks/blocks.types.d.ts +1 -1
  73. package/types/constants/sdk-version.d.ts +1 -1
  74. package/lib/edge/content-variants-41781d1f.cjs +0 -137
  75. package/lib/edge/personalization-container-4f73fbdf.cjs +0 -138
  76. package/lib/edge/personalization-container-e1f03976.js +0 -384
  77. package/lib/edge/symbol-49ed2192.cjs +0 -1
  78. package/lib/edge/symbol-61a3651b.js +0 -85
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Pe, registerInsertMenu as Qe, setupBrowserForEditing as Ye, createRegisterComponentMessage as Xe, getCookieSync as Ze, _track as pe, fetchOneEntry as Be, createEditorListener as et, serializeIncludingFunctions as ye, handleABTestingSync as tt } from "./server-entry-7167da7c.js";
3
- import { setClientUserAttributes as Vi } from "./server-entry-7167da7c.js";
4
- import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
- import * as nt from "react";
6
- import { createContext as Ae, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ne } from "react";
7
- import { getFunctionArguments as it, flattenState as at, runInNode as ot, parseCode as rt, getBuilderGlobals as lt, set as We, fastClone as ue } from "./setIvm-72c91afa.js";
8
- import { shouldForceBrowserRuntimeInNode as st } from "./should-force-browser-runtime-in-node-09a401d5.js";
9
- const ct = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && ct.has(e.toLowerCase());
10
- function de(e) {
11
- return /* @__PURE__ */ s(R, { children: ut(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
2
+ import { TARGET as D, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as oe, isEditing as L, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-f03c1146.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-f03c1146.js";
4
+ import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
5
+ import * as ft from "react";
6
+ import { createContext as Oe, useEffect as P, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-044ce9e7.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-f620dcdc.js";
9
+ const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
+ function pe(e) {
11
+ return /* @__PURE__ */ s(R, { children: St(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
13
  const j = () => {
14
- switch (O) {
14
+ switch (D) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,7 +24,7 @@ const j = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function dt(e) {
27
+ function kt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
@@ -39,7 +39,7 @@ function dt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- de,
42
+ pe,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function dt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = Ae({
51
+ const ve = Oe({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,87 +63,87 @@ const me = Ae({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), De = Ae({ registeredComponents: {} }), $e = (e, t, n) => {
67
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
66
+ }), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
67
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
- }, mt = ({
69
+ }, Ct = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
73
73
  event: i,
74
74
  localState: a,
75
- rootSetState: r,
76
- rootState: o
75
+ rootSetState: o,
76
+ rootState: r
77
77
  }) => {
78
- const l = it({
78
+ const l = ht({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: at({
83
- rootState: o,
82
+ state: gt({
83
+ rootState: r,
84
84
  localState: a,
85
- rootSetState: r
85
+ rootSetState: o
86
86
  })
87
87
  });
88
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
89
- }, ft = (e) => U() || st({
88
+ return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
89
+ }, Tt = (e) => K() || vt({
90
90
  shouldLogWarning: !0
91
- }) ? mt(e) : ot(e), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
92
- var t, n, i, a, r, o;
93
- return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
91
+ }) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
92
+ var t, n, i, a, o, r;
93
+ return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
94
94
  };
95
- function _({
95
+ function J({
96
96
  code: e,
97
97
  context: t,
98
98
  localState: n,
99
99
  rootState: i,
100
100
  rootSetState: a,
101
- event: r,
102
- isExpression: o = !0
101
+ event: o,
102
+ isExpression: r = !0
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
106
- const l = bt(e.trim());
106
+ const l = Et(e.trim());
107
107
  if (l)
108
- return $e({
108
+ return Me({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
112
- const d = {
113
- code: rt(e, {
114
- isExpression: o
112
+ const c = {
113
+ code: yt(e, {
114
+ isExpression: r
115
115
  }),
116
- builder: lt(),
116
+ builder: pt(),
117
117
  context: t,
118
- event: r,
118
+ event: o,
119
119
  rootSetState: a,
120
120
  rootState: i,
121
121
  localState: n
122
122
  };
123
123
  try {
124
- return ft(d);
124
+ return Tt(c);
125
125
  } catch (u) {
126
- z.error("Failed code evaluation: " + u.message, {
126
+ Z.error("Failed code evaluation: " + u.message, {
127
127
  code: e
128
128
  });
129
129
  return;
130
130
  }
131
131
  }
132
- function pt(e, t) {
132
+ function Rt(e, t) {
133
133
  var n;
134
134
  return {
135
135
  ...(n = e.component) == null ? void 0 : n.options,
136
136
  ...e.options,
137
- ...yt(e, t)
137
+ ...Pt(e, t)
138
138
  };
139
139
  }
140
- const yt = (e, t) => {
140
+ const Pt = (e, t) => {
141
141
  var n, i;
142
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
143
143
  return {
144
144
  ...e.component.options,
145
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => _({
146
- code: r,
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => J({
146
+ code: o,
147
147
  context: t,
148
148
  localState: t.localState,
149
149
  rootState: t.rootState,
@@ -151,68 +151,68 @@ const yt = (e, t) => {
151
151
  }))
152
152
  };
153
153
  };
154
- function vt(e, ...t) {
154
+ function Vt(e, ...t) {
155
155
  const n = Object.assign({}, e);
156
156
  for (const i of t)
157
157
  delete n[i];
158
158
  return n;
159
159
  }
160
- function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
+ function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
- t(e, (r) => {
163
- n !== null && i !== null && (n[i] = r);
162
+ t(e, (o) => {
163
+ n !== null && i !== null && (n[i] = o);
164
164
  });
165
165
  return;
166
166
  }
167
- a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
- t(r, (d) => {
169
- e[o] = d;
170
- }), Q(r, t, e, o, a);
171
- }) : Object.entries(e).forEach(([r, o]) => {
172
- t(o, (d) => {
173
- e[r] = d;
174
- }), Q(o, t, e, r, a);
167
+ a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
168
+ t(o, (c) => {
169
+ e[r] = c;
170
+ }), re(o, t, e, r, a);
171
+ }) : Object.entries(e).forEach(([o, r]) => {
172
+ t(r, (c) => {
173
+ e[o] = c;
174
+ }), re(r, t, e, o, a);
175
175
  }));
176
176
  }
177
- function Fe(e) {
177
+ function qe(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
- function xt(e) {
180
+ function At(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
- return Q(e, (n) => {
185
- if (Fe(n)) {
184
+ return re(e, (n) => {
185
+ if (qe(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
- function St(e, t) {
192
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
191
+ function Bt(e, t) {
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
193
193
  var a;
194
- Fe(n) && i((a = n[t]) != null ? a : void 0);
194
+ qe(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
- function kt(e, t) {
197
+ function Nt(e, t) {
198
198
  var n, i;
199
- return (n = e.component) != null && n.options && xt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = St(e.component.options, t != null ? t : "Default")), e;
199
+ return (n = e.component) != null && n.options && At((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bt(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function ce(e) {
201
+ function be(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => ce(n));
205
+ return e.map((n) => be(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
211
211
  return t;
212
212
  }
213
- const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) => {
214
- if (Ct) {
215
- const t = ue(e);
213
+ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), Wt = (e) => {
214
+ if ($t) {
215
+ const t = ye(e);
216
216
  return {
217
217
  ...t,
218
218
  properties: {
@@ -223,7 +223,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = ce(vt(e, "children", "meta"));
226
+ const t = be(Vt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -236,7 +236,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
236
236
  meta: e.meta
237
237
  };
238
238
  }
239
- }, wt = ({
239
+ }, Dt = ({
240
240
  block: e,
241
241
  context: t,
242
242
  localState: n,
@@ -245,170 +245,170 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const r = Tt(e);
249
- for (const o in e.bindings) {
250
- const l = e.bindings[o], d = _({
248
+ const o = Wt(e);
249
+ for (const r in e.bindings) {
250
+ const l = e.bindings[r], c = J({
251
251
  code: l,
252
252
  localState: n,
253
253
  rootState: i,
254
254
  rootSetState: a,
255
255
  context: t
256
256
  });
257
- We(r, o, d);
257
+ Ue(o, r, c);
258
258
  }
259
- return r;
259
+ return o;
260
260
  };
261
- function It({
261
+ function Ft({
262
262
  block: e,
263
263
  context: t,
264
264
  localState: n,
265
265
  rootState: i,
266
266
  rootSetState: a
267
267
  }) {
268
- let r = kt(e, i.locale);
269
- return r = r, wt({
270
- block: r,
268
+ let o = Nt(e, i.locale);
269
+ return o = o, Dt({
270
+ block: o,
271
271
  localState: n,
272
272
  rootState: i,
273
273
  rootSetState: a,
274
274
  context: t
275
275
  });
276
276
  }
277
- const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
- function Et(e, t, n = {}) {
279
- let i, a, r, o = null, l = 0;
280
- const d = function() {
281
- l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
277
+ const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
+ function Lt(e, t, n = {}) {
279
+ let i, a, o, r = null, l = 0;
280
+ const c = function() {
281
+ l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
282
282
  };
283
283
  return function() {
284
284
  const u = Date.now();
285
285
  !l && n.leading === !1 && (l = u);
286
- const h = t - (u - l);
287
- return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = u, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
286
+ const f = t - (u - l);
287
+ return i = this, a = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, f)), o;
288
288
  };
289
289
  }
290
- function H(e, ...t) {
290
+ function Y(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
293
  const a = arguments[i];
294
294
  if (a != null)
295
- for (const r in a)
296
- Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
295
+ for (const o in a)
296
+ Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
297
297
  }
298
298
  return n;
299
299
  }
300
- function Rt(e) {
300
+ function Ot(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
304
- Ue(t);
304
+ Ke(t);
305
305
  break;
306
306
  case "scrollInView":
307
- Pt(t);
307
+ Ut(t);
308
308
  break;
309
309
  }
310
310
  }
311
- function Le(e) {
311
+ function je(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
- function Oe(e, t) {
315
- const n = Vt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
316
- for (const l of o)
317
- for (const d of n)
318
- d in l || (l[d] = i[d]);
314
+ function ze(e, t) {
315
+ const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
316
+ for (const l of r)
317
+ for (const c of n)
318
+ c in l || (l[c] = i[c]);
319
319
  }
320
- function Vt(e) {
320
+ function _t(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
324
324
  t.indexOf(i) === -1 && t.push(i);
325
325
  return t;
326
326
  }
327
- function Ue(e) {
327
+ function Ke(e) {
328
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
329
  if (!t.length) {
330
- Le(e.elementId || e.id || "");
330
+ je(e.elementId || e.id || "");
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- Oe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
334
+ ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
339
339
  });
340
340
  }
341
- function Pt(e) {
341
+ function Ut(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
- Le(e.elementId || e.id || "");
344
+ je(e.elementId || e.id || "");
345
345
  return;
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
- Oe(e, n);
348
+ ze(e, n);
349
349
  let i = !1, a = !1;
350
- function r() {
350
+ function o() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
352
+ Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
353
353
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
356
356
  }
357
- const o = Et(r, 200, {
357
+ const r = Lt(o, 200, {
358
358
  leading: !1
359
359
  });
360
- function l(h) {
361
- const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
362
- return g.bottom > f && g.top < c - f;
360
+ function l(f) {
361
+ const g = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
362
+ return g.bottom > d && g.top < m - d;
363
363
  }
364
- const d = e.steps[0].styles;
364
+ const c = e.steps[0].styles;
365
365
  function u() {
366
- H(n.style, d);
366
+ Y(n.style, c);
367
367
  }
368
368
  u(), setTimeout(() => {
369
- n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
- }), document.addEventListener("scroll", o, {
369
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
+ }), document.addEventListener("scroll", r, {
371
371
  capture: !0,
372
372
  passive: !0
373
- }), r();
373
+ }), o();
374
374
  });
375
375
  }
376
- const _e = (e) => Object.entries(e).map(([n, i]) => {
376
+ const Je = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
- return `${Z(n)}: ${i};`;
379
- }).filter(se), Bt = (e) => _e(e).join(`
380
- `), q = ({
378
+ return `${le(n)}: ${i};`;
379
+ }).filter(ge), Ht = (e) => Je(e).join(`
380
+ `), Q = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
384
384
  }) => {
385
385
  const i = `.${t} {
386
- ${Bt(n)}
386
+ ${Ht(n)}
387
387
  }`;
388
388
  return e ? `${e} {
389
389
  ${i}
390
390
  }` : i;
391
391
  };
392
- function At({
392
+ function Mt({
393
393
  style: e
394
394
  }) {
395
395
  return e;
396
396
  }
397
- const Nt = ({
397
+ const qt = ({
398
398
  block: e,
399
399
  context: t
400
- }) => qe(At({
400
+ }) => Ge(Mt({
401
401
  style: e.style || {},
402
402
  context: t,
403
403
  block: e
404
404
  }));
405
- function qe(e) {
406
- switch (O) {
405
+ function Ge(e) {
406
+ switch (D) {
407
407
  case "svelte":
408
408
  case "vue":
409
409
  case "solid":
410
410
  case "angular":
411
- return _e(e).join(" ");
411
+ return Je(e).join(" ");
412
412
  case "qwik":
413
413
  case "reactNative":
414
414
  case "react":
@@ -416,24 +416,24 @@ function qe(e) {
416
416
  return e;
417
417
  }
418
418
  }
419
- const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
419
+ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
420
420
  block: e,
421
421
  registeredComponents: t,
422
422
  model: n
423
423
  }) => {
424
- var r;
425
- const i = (r = e.component) == null ? void 0 : r.name;
424
+ var o;
425
+ const i = (o = e.component) == null ? void 0 : o.name;
426
426
  if (!i)
427
427
  return null;
428
428
  const a = t[i];
429
- if (!a || He(a, n)) {
429
+ if (!a || Qe(a, n)) {
430
430
  console.warn(`
431
431
  Could not find a registered component named "${i}".
432
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
433
433
  return;
434
434
  } else
435
435
  return a;
436
- }, Dt = ({
436
+ }, zt = ({
437
437
  block: e,
438
438
  context: t
439
439
  }) => {
@@ -443,7 +443,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
443
443
  } = e;
444
444
  if (!(n != null && n.collection))
445
445
  return;
446
- const a = _({
446
+ const a = J({
447
447
  code: n.collection,
448
448
  localState: t.localState,
449
449
  rootState: t.rootState,
@@ -452,41 +452,41 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
452
452
  });
453
453
  if (!Array.isArray(a))
454
454
  return;
455
- const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
- return a.map((d, u) => ({
455
+ const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
456
+ return a.map((c, u) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
461
  $index: u,
462
- $item: d,
463
- [o]: d,
464
- [`$${o}Index`]: u
462
+ $item: c,
463
+ [r]: c,
464
+ [`$${r}Index`]: u
465
465
  }
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, $t = (e, t) => {
469
+ }, Kt = (e, t) => {
470
470
  var n;
471
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
472
472
  builderLinkComponent: t
473
473
  } : {};
474
- }, Ft = (e, t, n) => {
474
+ }, Jt = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !He(o, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !Qe(r, n)))
478
478
  } : {};
479
- }, Lt = (e, t) => {
479
+ }, Gt = (e, t) => {
480
480
  var n;
481
481
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
482
482
  builderBlock: t
483
483
  } : {};
484
- }, Ot = (e, t) => {
484
+ }, Qt = (e, t) => {
485
485
  var n;
486
486
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
487
487
  builderContext: t
488
488
  } : {};
489
- }, xe = (e) => e.toString(), Me = {
489
+ }, Ee = (e) => e.toString(), Ye = {
490
490
  xsmall: {
491
491
  min: 0,
492
492
  default: 160,
@@ -507,8 +507,8 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
507
507
  default: 991,
508
508
  max: 1200
509
509
  }
510
- }, ne = (e, t = Me) => `@media (max-width: ${t[e].max}px)`, je = (e) => {
511
- const t = ue(Me);
510
+ }, ce = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
511
+ const t = ye(Ye);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
@@ -517,26 +517,26 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
517
517
  medium: a
518
518
  } = e;
519
519
  if (n) {
520
- const d = Math.floor(n / 2);
520
+ const c = Math.floor(n / 2);
521
521
  t.xsmall = {
522
522
  max: n,
523
- min: d,
524
- default: d + 1
523
+ min: c,
524
+ default: c + 1
525
525
  };
526
526
  }
527
527
  if (!i || !a)
528
528
  return t;
529
- const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
529
+ const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
530
530
  t.small = {
531
531
  max: i,
532
- min: r,
533
- default: r + 1
532
+ min: o,
533
+ default: o + 1
534
534
  };
535
- const o = t.small.max + 1;
535
+ const r = t.small.max + 1;
536
536
  t.medium = {
537
537
  max: a,
538
- min: o,
539
- default: o + 1
538
+ min: r,
539
+ default: r + 1
540
540
  };
541
541
  const l = t.medium.max + 1;
542
542
  return t.large = {
@@ -546,7 +546,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
546
546
  default: l + 1
547
547
  }, t;
548
548
  };
549
- function K(e) {
549
+ function ee(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -556,67 +556,67 @@ function K(e) {
556
556
  }
557
557
  );
558
558
  }
559
- function Ut(e) {
559
+ function Yt(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
- return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
562
+ return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
- var C, V, w, x, m;
566
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = je(
567
- ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
- ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
569
- if (!c)
565
+ var k, V, T, I, b;
566
+ const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Xe(
567
+ ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
568
+ ), l = !!((T = (V = o == null ? void 0 : o.meta) == null ? void 0 : V.breakpoints) != null && T.xsmall), c = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, f = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, m = i.id;
569
+ if (!m)
570
570
  return "";
571
- const v = d ? q({
572
- className: c,
573
- styles: d
574
- }) : "", f = u ? q({
575
- className: c,
571
+ const v = c ? Q({
572
+ className: m,
573
+ styles: c
574
+ }) : "", d = u ? Q({
575
+ className: m,
576
576
  styles: u,
577
- mediaQuery: ne(
577
+ mediaQuery: ce(
578
578
  "medium",
579
- o
579
+ r
580
580
  )
581
- }) : "", b = h ? q({
582
- className: c,
583
- styles: h,
584
- mediaQuery: ne(
581
+ }) : "", h = f ? Q({
582
+ className: m,
583
+ styles: f,
584
+ mediaQuery: ce(
585
585
  "small",
586
- o
586
+ r
587
587
  )
588
- }) : "", S = g && l ? q({
589
- className: c,
588
+ }) : "", p = g && l ? Q({
589
+ className: m,
590
590
  styles: g,
591
- mediaQuery: ne(
591
+ mediaQuery: ce(
592
592
  "xsmall",
593
- o
593
+ r
594
594
  )
595
- }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
596
- let k = "";
597
- if (p) {
598
- const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
599
- k = q({
600
- className: `${c}:hover`,
595
+ }) : "", y = i.animations && i.animations.find((S) => S.trigger === "hover");
596
+ let x = "";
597
+ if (y) {
598
+ const S = ((b = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : b.styles) || {};
599
+ x = Q({
600
+ className: `${m}:hover`,
601
601
  styles: {
602
- ...y,
603
- transition: `all ${p.duration}s ${Z(
604
- p.easing
602
+ ...S,
603
+ transition: `all ${y.duration}s ${le(
604
+ y.easing
605
605
  )}`,
606
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
606
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
607
607
  }
608
608
  }) || "";
609
609
  }
610
610
  return [
611
611
  v,
612
- f,
613
- b,
614
- S,
615
- k
612
+ d,
613
+ h,
614
+ p,
615
+ x
616
616
  ].join(" ");
617
617
  }
618
618
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
- K,
619
+ ee,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -624,10 +624,10 @@ function Ut(e) {
624
624
  }
625
625
  ) }) : null });
626
626
  }
627
- function _t(e) {
627
+ function Xt(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
630
+ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => J({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -636,66 +636,66 @@ const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
636
636
  event: n,
637
637
  isExpression: !1
638
638
  });
639
- function ze(e) {
639
+ function Ze(e) {
640
640
  var i;
641
641
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
642
  for (const a in n) {
643
643
  if (!n.hasOwnProperty(a))
644
644
  continue;
645
- const r = n[a];
646
- let o = qt(a);
645
+ const o = n[a];
646
+ let r = Zt(a);
647
647
  if (e.stripPrefix)
648
- switch (O) {
648
+ switch (D) {
649
649
  case "vue":
650
- o = o.replace("v-on:", "");
650
+ r = r.replace("v-on:", "");
651
651
  break;
652
652
  case "svelte":
653
- o = o.replace("on:", "");
653
+ r = r.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[o] = Ht(r, e);
656
+ t[r] = en(o, e);
657
657
  }
658
658
  return t;
659
659
  }
660
- function Mt({
660
+ function tn({
661
661
  properties: e
662
662
  }) {
663
663
  return e;
664
664
  }
665
- const jt = (e) => ({
665
+ const nn = (e) => ({
666
666
  href: e.href
667
667
  });
668
- function fe({
668
+ function xe({
669
669
  block: e,
670
670
  context: t
671
671
  }) {
672
672
  var i;
673
673
  const n = {
674
- ...jt(e),
674
+ ...nn(e),
675
675
  ...e.properties,
676
676
  "builder-id": e.id,
677
- style: Nt({
677
+ style: qt({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
681
  [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
- return Mt({
683
+ return tn({
684
684
  properties: n,
685
685
  context: t,
686
686
  block: e
687
687
  });
688
688
  }
689
- function zt(e) {
689
+ function an(e) {
690
690
  return /* @__PURE__ */ s(
691
- de,
691
+ pe,
692
692
  {
693
693
  TagName: e.Wrapper,
694
- attributes: fe({
694
+ attributes: xe({
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- actionAttributes: ze({
698
+ actionAttributes: Ze({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -707,18 +707,20 @@ function zt(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function Kt(e) {
710
+ function rn(e) {
711
711
  return P(() => {
712
712
  }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
- function Jt(e) {
714
+ function on(e) {
715
+ var i, a;
716
+ C(() => 0);
715
717
  function t() {
716
718
  return e.includeBlockProps ? {
717
- ...fe({
719
+ ...xe({
718
720
  block: e.block,
719
721
  context: e.context
720
722
  }),
721
- ...ze({
723
+ ...Ze({
722
724
  block: e.block,
723
725
  rootState: e.context.rootState,
724
726
  rootSetState: e.context.rootSetState,
@@ -730,8 +732,9 @@ function Jt(e) {
730
732
  function n() {
731
733
  return e.wrapperProps;
732
734
  }
733
- return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
734
- Kt,
735
+ return P(() => {
736
+ }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
737
+ rn,
735
738
  {
736
739
  load: e.Wrapper.load,
737
740
  fallback: e.Wrapper.fallback,
@@ -741,14 +744,14 @@ function Jt(e) {
741
744
  }
742
745
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
743
746
  }
744
- const Gt = ({
747
+ const ln = ({
745
748
  componentOptions: e,
746
749
  builderBlock: t,
747
750
  context: n,
748
751
  componentRef: i,
749
752
  includeBlockProps: a,
750
- isInteractive: r,
751
- contextValue: o
753
+ isInteractive: o,
754
+ contextValue: r
752
755
  }) => {
753
756
  const l = {
754
757
  ...e,
@@ -757,13 +760,13 @@ const Gt = ({
757
760
  * component itself directly. Otherwise, they are provided to the wrapper element.
758
761
  */
759
762
  ...a ? {
760
- attributes: fe({
763
+ attributes: xe({
761
764
  block: t,
762
- context: o
765
+ context: r
763
766
  })
764
767
  } : {}
765
768
  };
766
- return r ? {
769
+ return o ? {
767
770
  Wrapper: i,
768
771
  block: t,
769
772
  context: n,
@@ -771,17 +774,17 @@ const Gt = ({
771
774
  includeBlockProps: a
772
775
  } : l;
773
776
  };
774
- function Se(e) {
777
+ function Re(e) {
775
778
  var i;
776
- I(() => !1);
777
- const [t, n] = I(
778
- () => e.isInteractive ? Jt : e.componentRef
779
+ C(() => !1);
780
+ const [t, n] = C(
781
+ () => e.isInteractive ? on : e.componentRef
779
782
  );
780
783
  return P(() => {
781
784
  }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
782
785
  t,
783
786
  {
784
- ...Gt({
787
+ ...ln({
785
788
  componentOptions: e.componentOptions,
786
789
  builderBlock: e.builderBlock,
787
790
  context: e.context,
@@ -792,7 +795,7 @@ function Se(e) {
792
795
  contextValue: e.context
793
796
  }),
794
797
  children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
795
- ee,
798
+ se,
796
799
  {
797
800
  block: a,
798
801
  context: e.context,
@@ -804,12 +807,12 @@ function Se(e) {
804
807
  }
805
808
  ) }) : null });
806
809
  }
807
- function ke(e) {
808
- const [t, n] = I(() => e.repeatContext);
810
+ function Pe(e) {
811
+ const [t, n] = C(() => e.repeatContext);
809
812
  return P(() => {
810
813
  n(e.repeatContext);
811
- }, [e.repeatContext]), /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
812
- ee,
814
+ }, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
815
+ se,
813
816
  {
814
817
  block: e.block,
815
818
  context: t,
@@ -818,65 +821,65 @@ function ke(e) {
818
821
  }
819
822
  ) });
820
823
  }
821
- function ee(e) {
822
- var h, g, c, v;
824
+ function se(e) {
825
+ var f, g, m, v;
823
826
  function t() {
824
- return Dt({
827
+ return zt({
825
828
  block: e.block,
826
829
  context: e.context
827
830
  });
828
831
  }
829
- const [n, i] = I(() => ({
832
+ const [n, i] = C(() => ({
830
833
  value: null,
831
834
  update: !1
832
835
  }));
833
836
  function a() {
834
- var b;
835
- if (n.value && !n.update && !X())
837
+ var h;
838
+ if (n.value && !n.update && !oe())
836
839
  return n.value;
837
- const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
840
+ const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
838
841
  block: e.block,
839
842
  localState: e.context.localState,
840
843
  rootState: e.context.rootState,
841
844
  rootSetState: e.context.rootSetState,
842
845
  context: e.context.context
843
846
  });
844
- return n.value = f, n.update = !1, f;
847
+ return n.value = d, n.update = !1, d;
845
848
  }
846
- function r() {
847
- return Wt({
849
+ function o() {
850
+ return jt({
848
851
  block: a(),
849
852
  registeredComponents: e.registeredComponents,
850
853
  model: e.context.model
851
854
  });
852
855
  }
853
- function o() {
854
- var b;
855
- return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
856
+ function r() {
857
+ var h;
858
+ return e.block.tagName === "a" || ((h = a().properties) == null ? void 0 : h.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
856
859
  }
857
860
  function l() {
858
- var S, p;
859
- if ((S = e.block.repeat) != null && S.collection)
860
- return !!((p = t == null ? void 0 : t()) != null && p.length);
861
- const f = "hide" in a() ? a().hide : !1;
862
- return ("show" in a() ? a().show : !0) && !f;
861
+ var p, y;
862
+ if ((p = e.block.repeat) != null && p.collection)
863
+ return !!((y = t == null ? void 0 : t()) != null && y.length);
864
+ const d = "hide" in a() ? a().hide : !1;
865
+ return ("show" in a() ? a().show : !0) && !d;
863
866
  }
864
- function d() {
865
- var b, S;
866
- return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
867
+ function c() {
868
+ var h, p;
869
+ return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = a().children) != null ? p : [] : [];
867
870
  }
868
871
  function u() {
869
- var f, b, S, p;
872
+ var d, h, p, y;
870
873
  return {
871
- blockChildren: (f = a().children) != null ? f : [],
872
- componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
874
+ blockChildren: (d = a().children) != null ? d : [],
875
+ componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
873
876
  componentOptions: {
874
- ...pt(a(), e.context),
875
- ...Lt(r(), a()),
876
- ...Ot(r(), e.context),
877
- ...$t(r(), e.linkComponent),
878
- ...Ft(
879
- r(),
877
+ ...Rt(a(), e.context),
878
+ ...Gt(o(), a()),
879
+ ...Qt(o(), e.context),
880
+ ...Kt(o(), e.linkComponent),
881
+ ...Jt(
882
+ o(),
880
883
  e.registeredComponents,
881
884
  e.context.model
882
885
  )
@@ -885,33 +888,33 @@ function ee(e) {
885
888
  linkComponent: e.linkComponent,
886
889
  registeredComponents: e.registeredComponents,
887
890
  builderBlock: a(),
888
- includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
889
- isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && O === "rsc")
891
+ includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
892
+ isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && D === "rsc")
890
893
  };
891
894
  }
892
895
  return P(() => {
893
- const f = a().id, b = a().animations;
894
- b && f && Rt(
895
- b.map((S) => ({
896
- ...S,
897
- elementId: f
896
+ const d = a().id, h = a().animations;
897
+ h && d && Ot(
898
+ h.map((p) => ({
899
+ ...p,
900
+ elementId: d
898
901
  }))
899
902
  );
900
903
  }, []), P(() => {
901
904
  n.update = !0;
902
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
903
- /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
904
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
905
- ke,
905
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
906
+ /* @__PURE__ */ s(Yt, { block: a(), context: e.context }),
907
+ (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
908
+ Pe,
906
909
  {
907
- repeatContext: f.context,
908
- block: f.block,
910
+ repeatContext: d.context,
911
+ block: d.block,
909
912
  registeredComponents: e.registeredComponents,
910
913
  linkComponent: e.linkComponent
911
914
  },
912
- xe(b)
915
+ Ee(h)
913
916
  )) }) : /* @__PURE__ */ s(
914
- Se,
917
+ Re,
915
918
  {
916
919
  componentRef: u().componentRef,
917
920
  componentOptions: u().componentOptions,
@@ -923,24 +926,24 @@ function ee(e) {
923
926
  includeBlockProps: u().includeBlockProps,
924
927
  isInteractive: u().isInteractive
925
928
  }
926
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
927
- ke,
929
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, h) => /* @__PURE__ */ s(
930
+ Pe,
928
931
  {
929
- repeatContext: f.context,
930
- block: f.block,
932
+ repeatContext: d.context,
933
+ block: d.block,
931
934
  registeredComponents: e.registeredComponents,
932
935
  linkComponent: e.linkComponent
933
936
  },
934
- xe(b)
935
- )) }) : /* @__PURE__ */ B(
936
- zt,
937
+ Ee(h)
938
+ )) }) : /* @__PURE__ */ $(
939
+ an,
937
940
  {
938
- Wrapper: o(),
941
+ Wrapper: r(),
939
942
  block: a(),
940
943
  context: e.context,
941
944
  children: [
942
945
  /* @__PURE__ */ s(
943
- Se,
946
+ Re,
944
947
  {
945
948
  componentRef: u().componentRef,
946
949
  componentOptions: u().componentOptions,
@@ -953,41 +956,41 @@ function ee(e) {
953
956
  isInteractive: u().isInteractive
954
957
  }
955
958
  ),
956
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
957
- ee,
959
+ (g = c()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
960
+ se,
958
961
  {
959
- block: f,
962
+ block: d,
960
963
  registeredComponents: e.registeredComponents,
961
964
  linkComponent: e.linkComponent,
962
965
  context: e.context
963
966
  },
964
- f.id
967
+ d.id
965
968
  ))
966
969
  ]
967
970
  }
968
971
  ) })
969
972
  ] }) : null });
970
973
  }
971
- function Qt(e) {
972
- const t = L(null);
973
- I(() => !1);
974
+ function sn(e) {
975
+ const t = H(null);
976
+ C(() => !1);
974
977
  function n() {
975
- var o;
978
+ var r;
976
979
  return [
977
980
  "builder-blocks",
978
- (o = e.blocks) != null && o.length ? "" : "no-blocks",
981
+ (r = e.blocks) != null && r.length ? "" : "no-blocks",
979
982
  e.classNameProp
980
983
  ].filter(Boolean).join(" ");
981
984
  }
982
985
  function i() {
983
986
  if (!e.path)
984
987
  return;
985
- const o = "this.", l = "component.options.";
986
- return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
988
+ const r = "this.", l = "component.options.";
989
+ return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
987
990
  }
988
991
  function a() {
989
- var o, l;
990
- N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
992
+ var r, l;
993
+ L() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
991
994
  {
992
995
  type: "builder.clickEmptyBlocks",
993
996
  data: {
@@ -998,9 +1001,9 @@ function Qt(e) {
998
1001
  "*"
999
1002
  ));
1000
1003
  }
1001
- function r() {
1002
- var o, l;
1003
- N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
1004
+ function o() {
1005
+ var r, l;
1006
+ L() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1004
1007
  {
1005
1008
  type: "builder.hoverEmptyBlocks",
1006
1009
  data: {
@@ -1013,58 +1016,61 @@ function Qt(e) {
1013
1016
  }
1014
1017
  return P(() => {
1015
1018
  }, []), P(() => {
1016
- }, [e.blocks]), /* @__PURE__ */ B(R, { children: [
1019
+ }, [e.blocks]), /* @__PURE__ */ $(R, { children: [
1020
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1021
+ display: flex;
1022
+ flex-direction: column;
1023
+ align-items: stretch;
1024
+ }` }),
1017
1025
  /* @__PURE__ */ s(
1018
1026
  e.BlocksWrapper,
1019
1027
  {
1020
1028
  ref: t,
1021
- className: n() + " props-blocks-wrapper-14802cff",
1029
+ className: n() + " props-blocks-wrapper-8834791c",
1022
1030
  "builder-path": i(),
1023
1031
  "builder-parent-id": e.parent,
1024
1032
  style: e.styleProp,
1025
- onClick: (o) => a(),
1026
- onMouseEnter: (o) => r(),
1027
- onKeyPress: (o) => a(),
1033
+ onClick: (r) => a(),
1034
+ onMouseEnter: (r) => o(),
1035
+ onKeyPress: (r) => a(),
1028
1036
  ...e.BlocksWrapperProps,
1029
1037
  children: e.children
1030
1038
  }
1031
- ),
1032
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-14802cff {
1033
- display: flex;
1034
- flex-direction: column;
1035
- align-items: stretch;
1036
- }` })
1039
+ )
1037
1040
  ] });
1038
1041
  }
1039
- function $(e) {
1040
- var i, a, r;
1041
- const t = ve(me), n = ve(De);
1042
- return /* @__PURE__ */ s(
1043
- Qt,
1042
+ function _(e) {
1043
+ var i, a, o;
1044
+ const t = we(ve), n = we(He);
1045
+ return /* @__PURE__ */ $(
1046
+ sn,
1044
1047
  {
1045
1048
  blocks: e.blocks,
1046
1049
  parent: e.parent,
1047
1050
  path: e.path,
1048
1051
  styleProp: e.styleProp,
1052
+ BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1049
1053
  classNameProp: e.className,
1050
- BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1051
- BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1052
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1053
- ee,
1054
- {
1055
- block: o,
1056
- linkComponent: e.linkComponent,
1057
- context: e.context || t,
1058
- registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1059
- },
1060
- o.id
1061
- )) }) : null
1054
+ BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1055
+ children: [
1056
+ e.children,
1057
+ e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1058
+ se,
1059
+ {
1060
+ block: r,
1061
+ linkComponent: e.linkComponent,
1062
+ context: e.context || t,
1063
+ registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1064
+ },
1065
+ r.id
1066
+ )) }) : null
1067
+ ]
1062
1068
  }
1063
1069
  );
1064
1070
  }
1065
- const Yt = (e) => `builder-columns ${e}-breakpoints`;
1066
- function Xt(e) {
1067
- var b, S;
1071
+ const cn = (e) => `builder-columns ${e}-breakpoints`;
1072
+ function un(e) {
1073
+ var h, p;
1068
1074
  function t() {
1069
1075
  return typeof e.space == "number" ? e.space || 0 : 20;
1070
1076
  }
@@ -1074,33 +1080,33 @@ function Xt(e) {
1074
1080
  function i() {
1075
1081
  return e.stackColumnsAt || "tablet";
1076
1082
  }
1077
- function a(p) {
1078
- return p.link ? e.builderLinkComponent || "a" : "div";
1083
+ function a(y) {
1084
+ return y.link ? e.builderLinkComponent || "a" : "div";
1079
1085
  }
1080
- function r(p) {
1081
- var k;
1082
- return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
1086
+ function o(y) {
1087
+ var x;
1088
+ return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1083
1089
  }
1084
- function o(p) {
1085
- const k = r(p), C = t() * (n().length - 1) * (k / 100);
1086
- return `calc(${k}% - ${C}px)`;
1090
+ function r(y) {
1091
+ const x = o(y), k = t() * (n().length - 1) * (x / 100);
1092
+ return `calc(${x}% - ${k}px)`;
1087
1093
  }
1088
1094
  function l({
1089
- stackedStyle: p,
1090
- desktopStyle: k
1095
+ stackedStyle: y,
1096
+ desktopStyle: x
1091
1097
  }) {
1092
- return i() === "tablet" ? p : k;
1098
+ return i() === "tablet" ? y : x;
1093
1099
  }
1094
- function d({
1095
- stackedStyle: p,
1096
- desktopStyle: k
1100
+ function c({
1101
+ stackedStyle: y,
1102
+ desktopStyle: x
1097
1103
  }) {
1098
- return i() === "never" ? k : p;
1104
+ return i() === "never" ? x : y;
1099
1105
  }
1100
1106
  function u() {
1101
1107
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1102
1108
  }
1103
- function h() {
1109
+ function f() {
1104
1110
  return {
1105
1111
  "--flex-dir": u(),
1106
1112
  "--flex-dir-tablet": l({
@@ -1109,194 +1115,211 @@ function Xt(e) {
1109
1115
  })
1110
1116
  };
1111
1117
  }
1112
- function g(p) {
1113
- const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", x = 0;
1118
+ function g(y) {
1119
+ const x = y === 0 ? 0 : t(), k = r(y), V = `${x}px`, T = "100%", I = 0;
1114
1120
  return {
1115
1121
  ...{
1116
1122
  display: "flex",
1117
1123
  flexDirection: "column",
1118
1124
  alignItems: "stretch"
1119
1125
  },
1120
- width: C,
1126
+ width: k,
1121
1127
  ["marginLeft"]: V,
1122
- "--column-width-mobile": d({
1123
- stackedStyle: w,
1124
- desktopStyle: C
1128
+ "--column-width-mobile": c({
1129
+ stackedStyle: T,
1130
+ desktopStyle: k
1125
1131
  }),
1126
- "--column-margin-left-mobile": d({
1127
- stackedStyle: x,
1132
+ "--column-margin-left-mobile": c({
1133
+ stackedStyle: I,
1128
1134
  desktopStyle: V
1129
1135
  }),
1130
1136
  "--column-width-tablet": l({
1131
- stackedStyle: w,
1132
- desktopStyle: C
1137
+ stackedStyle: T,
1138
+ desktopStyle: k
1133
1139
  }),
1134
1140
  "--column-margin-left-tablet": l({
1135
- stackedStyle: x,
1141
+ stackedStyle: I,
1136
1142
  desktopStyle: V
1137
1143
  })
1138
1144
  };
1139
1145
  }
1140
- function c(p) {
1141
- var C, V;
1142
- return je(
1143
- ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1144
- )[p].max;
1146
+ function m(y) {
1147
+ var k, V;
1148
+ return Xe(
1149
+ ((V = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints) || {}
1150
+ )[y].max;
1145
1151
  }
1146
1152
  function v() {
1147
- const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1153
+ const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1148
1154
  return `
1149
- @media (max-width: ${c("medium")}px) {
1155
+ @media (max-width: ${m("medium")}px) {
1150
1156
  .${e.builderBlock.id}-breakpoints {
1151
1157
  flex-direction: var(--flex-dir-tablet);
1152
1158
  align-items: stretch;
1153
1159
  }
1154
1160
 
1155
- ${p} {
1161
+ ${y} {
1156
1162
  width: var(--column-width-tablet) !important;
1157
1163
  margin-left: var(--column-margin-left-tablet) !important;
1158
1164
  }
1159
1165
  }
1160
1166
 
1161
- @media (max-width: ${c("small")}px) {
1167
+ @media (max-width: ${m("small")}px) {
1162
1168
  .${e.builderBlock.id}-breakpoints {
1163
1169
  flex-direction: var(--flex-dir);
1164
1170
  align-items: stretch;
1165
1171
  }
1166
1172
 
1167
- ${p} {
1173
+ ${y} {
1168
1174
  width: var(--column-width-mobile) !important;
1169
1175
  margin-left: var(--column-margin-left-mobile) !important;
1170
1176
  }
1171
1177
  },
1172
1178
  `;
1173
1179
  }
1174
- function f(p, k) {
1180
+ function d(y, x) {
1175
1181
  return {
1176
- ...p.link ? {
1177
- href: p.link
1182
+ ...y.link ? {
1183
+ href: y.link
1178
1184
  } : {},
1179
1185
  [j()]: "builder-column",
1180
- style: qe(g(k))
1186
+ style: Ge(g(x))
1181
1187
  };
1182
1188
  }
1183
- return /* @__PURE__ */ B(R, { children: [
1184
- /* @__PURE__ */ B(
1189
+ return /* @__PURE__ */ $(R, { children: [
1190
+ /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1191
+ display: flex;
1192
+ line-height: normal;
1193
+ height: 100%;
1194
+ }` }),
1195
+ /* @__PURE__ */ $(
1185
1196
  "div",
1186
1197
  {
1187
- className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1188
- style: h(),
1198
+ className: cn((h = e.builderBlock) == null ? void 0 : h.id) + " div-0369db37",
1199
+ style: f(),
1189
1200
  children: [
1190
1201
  /* @__PURE__ */ s(
1191
- K,
1202
+ ee,
1192
1203
  {
1193
1204
  id: "builderio-columns",
1194
1205
  styles: v(),
1195
1206
  nonce: e.builderContext.nonce
1196
1207
  }
1197
1208
  ),
1198
- (S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
1199
- de,
1209
+ (p = e.columns) == null ? void 0 : p.map((y, x) => /* @__PURE__ */ s(
1210
+ pe,
1200
1211
  {
1201
- TagName: a(p),
1212
+ TagName: a(y),
1202
1213
  actionAttributes: {},
1203
- attributes: f(p, k),
1214
+ attributes: d(y, x),
1204
1215
  children: /* @__PURE__ */ s(
1205
- $,
1216
+ _,
1206
1217
  {
1207
- path: `columns.${k}.blocks`,
1218
+ path: `columns.${x}.blocks`,
1208
1219
  parent: e.builderBlock.id,
1209
1220
  context: e.builderContext,
1210
1221
  registeredComponents: e.builderComponents,
1211
1222
  linkComponent: e.builderLinkComponent,
1212
- blocks: p.blocks,
1223
+ blocks: y.blocks,
1213
1224
  styleProp: {
1214
1225
  flexGrow: "1"
1215
1226
  }
1216
1227
  }
1217
1228
  )
1218
1229
  },
1219
- k
1230
+ x
1220
1231
  ))
1221
1232
  ]
1222
1233
  }
1223
- ),
1224
- /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1225
- display: flex;
1226
- line-height: normal;
1227
- height: 100%;
1228
- }` })
1234
+ )
1229
1235
  ] });
1230
1236
  }
1231
- function Zt(e) {
1237
+ function dn(e) {
1232
1238
  return /* @__PURE__ */ s("span", { children: e.children });
1233
1239
  }
1234
- function Ce(e) {
1240
+ function Ve(e) {
1235
1241
  return e.replace(/http(s)?:/, "");
1236
1242
  }
1237
- function en(e = "", t, n) {
1243
+ function mn(e = "", t, n) {
1238
1244
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1239
1245
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1240
1246
  }
1241
- function tn(e, t) {
1247
+ function fn(e, t) {
1242
1248
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1243
1249
  return e;
1244
1250
  if (t === "master")
1245
- return Ce(e);
1251
+ return Ve(e);
1246
1252
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1247
1253
  if (n) {
1248
- const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1249
- return Ce(`${i[0]}_${r}${a}`);
1254
+ const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1255
+ return Ve(`${i[0]}_${o}${a}`);
1250
1256
  }
1251
1257
  return null;
1252
1258
  }
1253
- function ie(e) {
1259
+ function ue(e) {
1254
1260
  if (!e)
1255
1261
  return e;
1256
1262
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1257
1263
  if (e.match(/builder\.io/)) {
1258
1264
  let n = e;
1259
1265
  const i = Number(e.split("?width=")[1]);
1260
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
1266
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
1261
1267
  }
1262
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1268
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1263
1269
  }
1264
- function nn(e) {
1265
- var a, r, o, l, d, u;
1270
+ function hn(e) {
1271
+ var a, o, r, l, c, u;
1266
1272
  function t() {
1267
- var c;
1273
+ var m;
1268
1274
  const g = e.image || e.src;
1269
1275
  if (!g || // We can auto add srcset for cdn.builder.io and shopify
1270
1276
  // images, otherwise you can supply this prop manually
1271
1277
  !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1272
1278
  return e.srcset;
1273
1279
  if (!e.noWebp) {
1274
- if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
1280
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1275
1281
  if (!e.srcset.includes(e.image.split("?")[0]))
1276
- return console.debug("Removed given srcset"), ie(g);
1282
+ return console.debug("Removed given srcset"), ue(g);
1277
1283
  } else if (e.image && !e.srcset)
1278
- return ie(g);
1279
- return ie(g);
1284
+ return ue(g);
1285
+ return ue(g);
1280
1286
  }
1281
1287
  }
1282
1288
  function n() {
1283
- var h;
1284
- return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1289
+ var f;
1290
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1285
1291
  }
1286
1292
  function i() {
1287
- const h = {
1293
+ const f = {
1288
1294
  position: "absolute",
1289
1295
  height: "100%",
1290
1296
  width: "100%",
1291
1297
  left: "0px",
1292
1298
  top: "0px"
1293
1299
  };
1294
- return e.aspectRatio ? h : void 0;
1300
+ return e.aspectRatio ? f : void 0;
1295
1301
  }
1296
1302
  return P(() => {
1297
- }, []), /* @__PURE__ */ B(R, { children: [
1298
- /* @__PURE__ */ B(R, { children: [
1299
- /* @__PURE__ */ B("picture", { children: [
1303
+ }, []), /* @__PURE__ */ $(R, { children: [
1304
+ /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1305
+ opacity: 1;
1306
+ transition: opacity 0.2s ease-in-out;
1307
+ }.div-3cc22d08 {
1308
+ width: 100%;
1309
+ pointer-events: none;
1310
+ font-size: 0;
1311
+ }.div-3cc22d08-2 {
1312
+ display: flex;
1313
+ flex-direction: column;
1314
+ align-items: stretch;
1315
+ position: absolute;
1316
+ top: 0;
1317
+ left: 0;
1318
+ width: 100%;
1319
+ height: 100%;
1320
+ }` }),
1321
+ /* @__PURE__ */ $(R, { children: [
1322
+ /* @__PURE__ */ $("picture", { children: [
1300
1323
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1301
1324
  /* @__PURE__ */ s(
1302
1325
  "img",
@@ -1318,7 +1341,7 @@ function nn(e) {
1318
1341
  }
1319
1342
  )
1320
1343
  ] }),
1321
- e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1344
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1322
1345
  "div",
1323
1346
  {
1324
1347
  className: "builder-image-sizer div-3cc22d08",
@@ -1327,29 +1350,12 @@ function nn(e) {
1327
1350
  }
1328
1351
  }
1329
1352
  ) : null,
1330
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1331
- !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1332
- ] }),
1333
- /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1334
- opacity: 1;
1335
- transition: opacity 0.2s ease-in-out;
1336
- }.div-3cc22d08 {
1337
- width: 100%;
1338
- pointer-events: none;
1339
- font-size: 0;
1340
- }.div-3cc22d08-2 {
1341
- display: flex;
1342
- flex-direction: column;
1343
- align-items: stretch;
1344
- position: absolute;
1345
- top: 0;
1346
- left: 0;
1347
- width: 100%;
1348
- height: 100%;
1349
- }` })
1353
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1354
+ !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1355
+ ] })
1350
1356
  ] });
1351
1357
  }
1352
- function an(e) {
1358
+ function gn(e) {
1353
1359
  return /* @__PURE__ */ s(
1354
1360
  "section",
1355
1361
  {
@@ -1370,96 +1376,361 @@ function an(e) {
1370
1376
  }
1371
1377
  );
1372
1378
  }
1373
- const ae = {
1374
- "@type": "@builder.io/sdk:Element",
1375
- layerName: "Accordion item title",
1376
- responsiveStyles: {
1377
- large: {
1378
- marginTop: "10px",
1379
- position: "relative",
1380
- display: "flex",
1381
- alignItems: "stretch",
1382
- flexDirection: "column",
1383
- paddingBottom: "10px"
1384
- }
1385
- },
1386
- children: [{
1387
- "@type": "@builder.io/sdk:Element",
1388
- responsiveStyles: {
1389
- large: {
1390
- textAlign: "left",
1391
- display: "flex",
1392
- flexDirection: "column"
1379
+ function bn(e, t, n, i) {
1380
+ function a(u) {
1381
+ return typeof u == "string";
1382
+ }
1383
+ function o(u) {
1384
+ return typeof u == "number";
1385
+ }
1386
+ function r(u, f) {
1387
+ return (() => {
1388
+ const m = f.property, v = f.operator;
1389
+ let d = f.value;
1390
+ if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1391
+ return !0;
1392
+ if (Array.isArray(d))
1393
+ return v === "isNot" ? d.every((p) => r(u, {
1394
+ property: m,
1395
+ operator: v,
1396
+ value: p
1397
+ })) : !!d.find((p) => r(u, {
1398
+ property: m,
1399
+ operator: v,
1400
+ value: p
1401
+ }));
1402
+ const h = u[m];
1403
+ if (Array.isArray(h))
1404
+ return h.includes(d);
1405
+ switch (v) {
1406
+ case "is":
1407
+ return h === d;
1408
+ case "isNot":
1409
+ return h !== d;
1410
+ case "contains":
1411
+ return (a(h) || Array.isArray(h)) && h.includes(String(d));
1412
+ case "startsWith":
1413
+ return a(h) && h.startsWith(String(d));
1414
+ case "endsWith":
1415
+ return a(h) && h.endsWith(String(d));
1416
+ case "greaterThan":
1417
+ return o(h) && o(d) && h > d;
1418
+ case "lessThan":
1419
+ return o(h) && o(d) && h < d;
1420
+ case "greaterThanOrEqualTo":
1421
+ return o(h) && o(d) && h >= d;
1422
+ case "lessThanOrEqualTo":
1423
+ return o(h) && o(d) && h <= d;
1424
+ default:
1425
+ return !1;
1393
1426
  }
1394
- },
1395
- component: {
1396
- name: "Text",
1397
- options: {
1398
- text: "I am an accordion title. Click me!"
1427
+ })();
1428
+ }
1429
+ const l = {
1430
+ query: t,
1431
+ startDate: n,
1432
+ endDate: i
1433
+ }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1434
+ return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
1435
+ }
1436
+ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1437
+ if (!navigator.cookieEnabled) {
1438
+ return;
1439
+ }
1440
+ function getCookie(name) {
1441
+ const nameEQ = name + '=';
1442
+ const ca = document.cookie.split(';');
1443
+ for (let i = 0; i < ca.length; i++) {
1444
+ let c = ca[i];
1445
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1446
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1447
+ }
1448
+ return null;
1449
+ }
1450
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
1451
+ if (locale) {
1452
+ attributes.locale = locale;
1453
+ }
1454
+ const winningVariantIndex = variants?.findIndex(function (variant) {
1455
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
1456
+ });
1457
+ const parentDiv = document.currentScript?.parentElement;
1458
+ const variantId = parentDiv?.getAttribute('data-variant-id');
1459
+ const isDefaultVariant = variantId === \`\${blockId}-default\`;
1460
+ const isWinningVariant = winningVariantIndex !== -1 && variantId === \`\${blockId}-\${winningVariantIndex}\` || winningVariantIndex === -1 && isDefaultVariant;
1461
+ if (isWinningVariant && !isDefaultVariant) {
1462
+ parentDiv?.removeAttribute('hidden');
1463
+ parentDiv?.removeAttribute('aria-hidden');
1464
+ } else if (!isWinningVariant && isDefaultVariant) {
1465
+ parentDiv?.setAttribute('hidden', 'true');
1466
+ parentDiv?.setAttribute('aria-hidden', 'true');
1467
+ }
1468
+ if (isHydrationTarget) {
1469
+ if (!isWinningVariant) {
1470
+ const itsStyleEl = parentDiv?.previousElementSibling;
1471
+ if (itsStyleEl) {
1472
+ itsStyleEl.remove();
1399
1473
  }
1474
+ parentDiv?.remove();
1400
1475
  }
1401
- }]
1402
- }, oe = {
1403
- "@type": "@builder.io/sdk:Element",
1404
- layerName: "Accordion item detail",
1405
- responsiveStyles: {
1406
- large: {
1407
- position: "relative",
1408
- display: "flex",
1409
- alignItems: "stretch",
1410
- flexDirection: "column",
1411
- marginTop: "10px",
1412
- paddingBottom: "10px"
1476
+ const thisScript = document.currentScript;
1477
+ if (thisScript) {
1478
+ thisScript.remove();
1413
1479
  }
1414
- },
1415
- children: [{
1416
- "@type": "@builder.io/sdk:Element",
1417
- responsiveStyles: {
1418
- large: {
1419
- paddingTop: "50px",
1420
- textAlign: "left",
1421
- display: "flex",
1422
- flexDirection: "column",
1423
- paddingBottom: "50px"
1480
+ }
1481
+ }`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1482
+ function isString(val) {
1483
+ return typeof val === 'string';
1484
+ }
1485
+ function isNumber(val) {
1486
+ return typeof val === 'number';
1487
+ }
1488
+ function objectMatchesQuery(userattr, query) {
1489
+ const result = (() => {
1490
+ const property = query.property;
1491
+ const operator = query.operator;
1492
+ let testValue = query.value;
1493
+ if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
1494
+ testValue = query.value.slice(0, -1);
1424
1495
  }
1425
- },
1426
- component: {
1427
- name: "Text",
1428
- options: {
1429
- text: "I am an accordion detail, hello!"
1496
+ if (!(property && operator)) {
1497
+ return true;
1430
1498
  }
1431
- }
1432
- }]
1433
- }, on = {
1434
- name: "Builder:Accordion",
1435
- canHaveChildren: !0,
1436
- image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1437
- defaultStyles: {
1438
- display: "flex",
1439
- flexDirection: "column",
1440
- alignItems: "stretch"
1441
- },
1442
- inputs: [{
1443
- name: "items",
1444
- type: "list",
1445
- broadcast: !0,
1446
- subFields: [{
1447
- name: "title",
1448
- type: "uiBlocks",
1449
- hideFromUI: !0,
1450
- defaultValue: [ae]
1451
- }, {
1452
- name: "detail",
1453
- type: "uiBlocks",
1454
- hideFromUI: !0,
1455
- defaultValue: [oe]
1456
- }],
1499
+ if (Array.isArray(testValue)) {
1500
+ if (operator === 'isNot') {
1501
+ return testValue.every(val => objectMatchesQuery(userattr, {
1502
+ property,
1503
+ operator,
1504
+ value: val
1505
+ }));
1506
+ }
1507
+ return !!testValue.find(val => objectMatchesQuery(userattr, {
1508
+ property,
1509
+ operator,
1510
+ value: val
1511
+ }));
1512
+ }
1513
+ const value = userattr[property];
1514
+ if (Array.isArray(value)) {
1515
+ return value.includes(testValue);
1516
+ }
1517
+ switch (operator) {
1518
+ case 'is':
1519
+ return value === testValue;
1520
+ case 'isNot':
1521
+ return value !== testValue;
1522
+ case 'contains':
1523
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
1524
+ case 'startsWith':
1525
+ return isString(value) && value.startsWith(String(testValue));
1526
+ case 'endsWith':
1527
+ return isString(value) && value.endsWith(String(testValue));
1528
+ case 'greaterThan':
1529
+ return isNumber(value) && isNumber(testValue) && value > testValue;
1530
+ case 'lessThan':
1531
+ return isNumber(value) && isNumber(testValue) && value < testValue;
1532
+ case 'greaterThanOrEqualTo':
1533
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
1534
+ case 'lessThanOrEqualTo':
1535
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
1536
+ default:
1537
+ return false;
1538
+ }
1539
+ })();
1540
+ return result;
1541
+ }
1542
+ const item = {
1543
+ query,
1544
+ startDate,
1545
+ endDate
1546
+ };
1547
+ const now = userAttributes.date && new Date(userAttributes.date) || new Date();
1548
+ if (item.startDate && new Date(item.startDate) > now) {
1549
+ return false;
1550
+ } else if (item.endDate && new Date(item.endDate) < now) {
1551
+ return false;
1552
+ }
1553
+ if (!item.query || !item.query.length) {
1554
+ return true;
1555
+ }
1556
+ return item.query.every(filter => {
1557
+ return objectMatchesQuery(userAttributes, filter);
1558
+ });
1559
+ }`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1560
+ function getCookie(name) {
1561
+ const nameEQ = name + '=';
1562
+ const ca = document.cookie.split(';');
1563
+ for (let i = 0; i < ca.length; i++) {
1564
+ let c = ca[i];
1565
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1566
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1567
+ }
1568
+ return null;
1569
+ }
1570
+ const visibilityStylesEl = document.currentScript?.previousElementSibling;
1571
+ if (!visibilityStylesEl) {
1572
+ return;
1573
+ }
1574
+ if (isHydrationTarget) {
1575
+ visibilityStylesEl.remove();
1576
+ const currentScript = document.currentScript;
1577
+ if (currentScript) {
1578
+ currentScript.remove();
1579
+ }
1580
+ } else {
1581
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
1582
+ if (locale) {
1583
+ attributes.locale = locale;
1584
+ }
1585
+ const winningVariantIndex = variants?.findIndex(function (variant) {
1586
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
1587
+ });
1588
+ if (winningVariantIndex !== -1) {
1589
+ let newStyleStr = variants?.map((_, index) => {
1590
+ if (index === winningVariantIndex) return '';
1591
+ return \`div[data-variant-id="\${blockId}-\${index}"] { display: none !important; } \`;
1592
+ }).join('') || '';
1593
+ newStyleStr += \`div[data-variant-id="\${blockId}-default"] { display: none !important; } \`;
1594
+ visibilityStylesEl.innerHTML = newStyleStr;
1595
+ }
1596
+ }
1597
+ }`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte"], ie = ["vue", "svelte"];
1598
+ function Sn(e, t) {
1599
+ return !(e && e.length > 0) || !t ? !1 : ie.includes(D) ? !0 : !K();
1600
+ }
1601
+ function kn({
1602
+ variants: e,
1603
+ previewingIndex: t,
1604
+ isHydrated: n,
1605
+ filteredVariants: i,
1606
+ fallbackBlocks: a
1607
+ }) {
1608
+ var r;
1609
+ const o = {
1610
+ blocks: a != null ? a : [],
1611
+ path: "this.children",
1612
+ index: ne
1613
+ };
1614
+ if (n && L()) {
1615
+ if (typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0)) {
1616
+ const l = e == null ? void 0 : e[t];
1617
+ if (l)
1618
+ return {
1619
+ blocks: l.blocks,
1620
+ path: `variants.${t}.blocks`,
1621
+ index: t
1622
+ };
1623
+ }
1624
+ return o;
1625
+ }
1626
+ if (K()) {
1627
+ const l = i == null ? void 0 : i[0];
1628
+ if (l && e) {
1629
+ const c = e.indexOf(l);
1630
+ if (c !== -1)
1631
+ return {
1632
+ blocks: l.blocks,
1633
+ path: `variants.${c}.blocks`,
1634
+ index: c
1635
+ };
1636
+ }
1637
+ }
1638
+ return o;
1639
+ }
1640
+ const Cn = () => `
1641
+ window.${xn} = ${pn}
1642
+ window.${et} = ${yn}
1643
+ window.${tt} = ${vn}
1644
+ `, it = D === "react", Tn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
1645
+ "@type": "@builder.io/sdk:Element",
1646
+ layerName: "Accordion item title",
1647
+ responsiveStyles: {
1648
+ large: {
1649
+ marginTop: "10px",
1650
+ position: "relative",
1651
+ display: "flex",
1652
+ alignItems: "stretch",
1653
+ flexDirection: "column",
1654
+ paddingBottom: "10px"
1655
+ }
1656
+ },
1657
+ children: [{
1658
+ "@type": "@builder.io/sdk:Element",
1659
+ responsiveStyles: {
1660
+ large: {
1661
+ textAlign: "left",
1662
+ display: "flex",
1663
+ flexDirection: "column"
1664
+ }
1665
+ },
1666
+ component: {
1667
+ name: "Text",
1668
+ options: {
1669
+ text: "I am an accordion title. Click me!"
1670
+ }
1671
+ }
1672
+ }]
1673
+ }, me = {
1674
+ "@type": "@builder.io/sdk:Element",
1675
+ layerName: "Accordion item detail",
1676
+ responsiveStyles: {
1677
+ large: {
1678
+ position: "relative",
1679
+ display: "flex",
1680
+ alignItems: "stretch",
1681
+ flexDirection: "column",
1682
+ marginTop: "10px",
1683
+ paddingBottom: "10px"
1684
+ }
1685
+ },
1686
+ children: [{
1687
+ "@type": "@builder.io/sdk:Element",
1688
+ responsiveStyles: {
1689
+ large: {
1690
+ paddingTop: "50px",
1691
+ textAlign: "left",
1692
+ display: "flex",
1693
+ flexDirection: "column",
1694
+ paddingBottom: "50px"
1695
+ }
1696
+ },
1697
+ component: {
1698
+ name: "Text",
1699
+ options: {
1700
+ text: "I am an accordion detail, hello!"
1701
+ }
1702
+ }
1703
+ }]
1704
+ }, wn = {
1705
+ name: "Builder:Accordion",
1706
+ canHaveChildren: !0,
1707
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1708
+ defaultStyles: {
1709
+ display: "flex",
1710
+ flexDirection: "column",
1711
+ alignItems: "stretch"
1712
+ },
1713
+ inputs: [{
1714
+ name: "items",
1715
+ type: "list",
1716
+ broadcast: !0,
1717
+ subFields: [{
1718
+ name: "title",
1719
+ type: "uiBlocks",
1720
+ hideFromUI: !0,
1721
+ defaultValue: [de]
1722
+ }, {
1723
+ name: "detail",
1724
+ type: "uiBlocks",
1725
+ hideFromUI: !0,
1726
+ defaultValue: [me]
1727
+ }],
1457
1728
  defaultValue: [{
1458
- title: [ae],
1459
- detail: [oe]
1729
+ title: [de],
1730
+ detail: [me]
1460
1731
  }, {
1461
- title: [ae],
1462
- detail: [oe]
1732
+ title: [de],
1733
+ detail: [me]
1463
1734
  }],
1464
1735
  showIf: (e) => !e.get("useChildrenForItems")
1465
1736
  }, {
@@ -1494,10 +1765,10 @@ const ae = {
1494
1765
  builderComponents: !0,
1495
1766
  builderLinkComponent: !0
1496
1767
  }
1497
- }, Te = (e) => e.toString();
1498
- function rn(e) {
1768
+ }, Ae = (e) => e.toString();
1769
+ function En(e) {
1499
1770
  var g;
1500
- const [t, n] = I(() => []);
1771
+ const [t, n] = C(() => []);
1501
1772
  function i() {
1502
1773
  return !!(e.grid || e.oneAtATime);
1503
1774
  }
@@ -1513,7 +1784,7 @@ function rn(e) {
1513
1784
  }
1514
1785
  };
1515
1786
  }
1516
- function r() {
1787
+ function o() {
1517
1788
  const v = {
1518
1789
  ...{
1519
1790
  display: "flex",
@@ -1523,74 +1794,74 @@ function rn(e) {
1523
1794
  cursor: "pointer"
1524
1795
  };
1525
1796
  return Object.fromEntries(
1526
- Object.entries(v).filter(([f, b]) => b !== void 0)
1797
+ Object.entries(v).filter(([d, h]) => h !== void 0)
1527
1798
  );
1528
1799
  }
1529
- function o(c) {
1530
- return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
1800
+ function r(m) {
1801
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1531
1802
  }
1532
- function l(c) {
1533
- return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
1803
+ function l(m) {
1804
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1534
1805
  }
1535
- function d() {
1536
- let c = null;
1806
+ function c() {
1807
+ let m = null;
1537
1808
  if (e.grid && t.length && document) {
1538
- const f = t[0];
1539
- let S = document.querySelector(
1540
- `.builder-accordion-title[data-index="${f}"]`
1809
+ const d = t[0];
1810
+ let p = document.querySelector(
1811
+ `.builder-accordion-title[data-index="${d}"]`
1541
1812
  );
1542
- if (c = f, S) {
1543
- let p = S.getBoundingClientRect();
1544
- for (; S = S && S.nextElementSibling; )
1545
- if (S) {
1546
- if (S.classList.contains("builder-accordion-detail"))
1813
+ if (m = d, p) {
1814
+ let y = p.getBoundingClientRect();
1815
+ for (; p = p && p.nextElementSibling; )
1816
+ if (p) {
1817
+ if (p.classList.contains("builder-accordion-detail"))
1547
1818
  continue;
1548
- const k = S.getBoundingClientRect();
1549
- if (k.left > p.left) {
1550
- const C = parseInt(
1551
- S.getAttribute("data-index") || "",
1819
+ const x = p.getBoundingClientRect();
1820
+ if (x.left > y.left) {
1821
+ const k = parseInt(
1822
+ p.getAttribute("data-index") || "",
1552
1823
  10
1553
1824
  );
1554
- isNaN(C) || (p = k, c = C);
1825
+ isNaN(k) || (y = x, m = k);
1555
1826
  } else
1556
1827
  break;
1557
1828
  }
1558
1829
  }
1559
1830
  }
1560
- return typeof c == "number" && (c = c + 1), c;
1831
+ return typeof m == "number" && (m = m + 1), m;
1561
1832
  }
1562
1833
  function u() {
1563
- const c = {
1564
- order: typeof d() == "number" ? d() : void 0,
1834
+ const m = {
1835
+ order: typeof c() == "number" ? c() : void 0,
1565
1836
  ...e.grid && {
1566
1837
  width: "100%"
1567
1838
  }
1568
1839
  };
1569
1840
  return Object.fromEntries(
1570
- Object.entries(c).filter(([v, f]) => f !== void 0)
1841
+ Object.entries(m).filter(([v, d]) => d !== void 0)
1571
1842
  );
1572
1843
  }
1573
- function h(c) {
1574
- t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1844
+ function f(m) {
1845
+ t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1575
1846
  }
1576
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(nt.Fragment, { children: [
1847
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
1577
1848
  /* @__PURE__ */ s(
1578
1849
  "div",
1579
1850
  {
1580
- className: o(v),
1851
+ className: r(v),
1581
1852
  style: {
1582
- ...r(),
1853
+ ...o(),
1583
1854
  ...e.grid && {
1584
1855
  width: e.gridRowWidth,
1585
- order: d() !== null ? Te(v) : Te(v + 1)
1856
+ order: c() !== null ? Ae(v) : Ae(v + 1)
1586
1857
  }
1587
1858
  },
1588
1859
  "data-index": v,
1589
- onClick: (f) => h(v),
1860
+ onClick: (d) => f(v),
1590
1861
  children: /* @__PURE__ */ s(
1591
- $,
1862
+ _,
1592
1863
  {
1593
- blocks: c.title,
1864
+ blocks: m.title,
1594
1865
  path: `items.${v}.title`,
1595
1866
  parent: e.builderBlock.id,
1596
1867
  context: e.builderContext,
@@ -1606,9 +1877,9 @@ function rn(e) {
1606
1877
  className: l(v),
1607
1878
  style: u(),
1608
1879
  children: /* @__PURE__ */ s(
1609
- $,
1880
+ _,
1610
1881
  {
1611
- blocks: c.detail,
1882
+ blocks: m.detail,
1612
1883
  path: `items.${v}.detail`,
1613
1884
  parent: e.builderBlock.id,
1614
1885
  context: e.builderContext,
@@ -1620,7 +1891,7 @@ function rn(e) {
1620
1891
  ) : null
1621
1892
  ] }, v)) });
1622
1893
  }
1623
- const ln = {
1894
+ const Rn = {
1624
1895
  name: "Core:Button",
1625
1896
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1626
1897
  defaultStyles: {
@@ -1656,7 +1927,7 @@ const ln = {
1656
1927
  shouldReceiveBuilderProps: {
1657
1928
  builderLinkComponent: !0
1658
1929
  }
1659
- }, sn = {
1930
+ }, Pn = {
1660
1931
  // TODO: ways to statically preprocess JSON for references, functions, etc
1661
1932
  name: "Columns",
1662
1933
  isRSC: !0,
@@ -1835,7 +2106,7 @@ const ln = {
1835
2106
  });
1836
2107
  }
1837
2108
  const n = e.get("columns");
1838
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
2109
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1839
2110
  }
1840
2111
  }, {
1841
2112
  name: "space",
@@ -1863,13 +2134,13 @@ const ln = {
1863
2134
  builderComponents: !0,
1864
2135
  builderLinkComponent: !0
1865
2136
  }
1866
- }, cn = {
2137
+ }, Vn = {
1867
2138
  name: "Fragment",
1868
2139
  static: !0,
1869
2140
  hidden: !0,
1870
2141
  canHaveChildren: !0,
1871
2142
  noWrap: !0
1872
- }, he = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], un = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], dn = {
2143
+ }, Se = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
1873
2144
  name: "Image",
1874
2145
  static: !0,
1875
2146
  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",
@@ -1884,457 +2155,247 @@ const ln = {
1884
2155
  name: "image",
1885
2156
  type: "file",
1886
2157
  bubble: !0,
1887
- allowedFileTypes: he,
2158
+ allowedFileTypes: Se,
1888
2159
  required: !0,
1889
2160
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1890
2161
  onChange: (e) => {
1891
2162
  e.delete("srcset"), e.delete("noWebp");
1892
- function n(o, l = 6e4) {
1893
- return new Promise((d, u) => {
1894
- const h = document.createElement("img");
2163
+ function n(r, l = 6e4) {
2164
+ return new Promise((c, u) => {
2165
+ const f = document.createElement("img");
1895
2166
  let g = !1;
1896
- h.onload = () => {
1897
- g = !0, d(h);
1898
- }, h.addEventListener("error", (c) => {
1899
- console.warn("Image load failed", c.error), u(c.error);
1900
- }), h.src = o, setTimeout(() => {
2167
+ f.onload = () => {
2168
+ g = !0, c(f);
2169
+ }, f.addEventListener("error", (m) => {
2170
+ console.warn("Image load failed", m.error), u(m.error);
2171
+ }), f.src = r, setTimeout(() => {
1901
2172
  g || u(new Error("Image load timed out"));
1902
2173
  }, l);
1903
2174
  });
1904
2175
  }
1905
- function i(o) {
1906
- return Math.round(o * 1e3) / 1e3;
2176
+ function i(r) {
2177
+ return Math.round(r * 1e3) / 1e3;
1907
2178
  }
1908
- const a = e.get("image"), r = e.get("aspectRatio");
1909
- if (fetch(a).then((o) => o.blob()).then((o) => {
1910
- o.type.includes("svg") && e.set("noWebp", !0);
1911
- }), a && (!r || r === 0.7041))
1912
- return n(a).then((o) => {
2179
+ const a = e.get("image"), o = e.get("aspectRatio");
2180
+ if (fetch(a).then((r) => r.blob()).then((r) => {
2181
+ r.type.includes("svg") && e.set("noWebp", !0);
2182
+ }), a && (!o || o === 0.7041))
2183
+ return n(a).then((r) => {
1913
2184
  const l = e.get("aspectRatio");
1914
- e.get("image") === a && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
2185
+ e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1915
2186
  });
1916
2187
  }
1917
2188
  }, {
1918
2189
  name: "backgroundSize",
1919
2190
  type: "text",
1920
2191
  defaultValue: "cover",
1921
- enum: [{
1922
- label: "contain",
1923
- value: "contain",
1924
- helperText: "The image should never get cropped"
1925
- }, {
1926
- label: "cover",
1927
- value: "cover",
1928
- helperText: "The image should fill it's box, cropping when needed"
1929
- }]
1930
- }, {
1931
- name: "backgroundPosition",
1932
- type: "text",
1933
- defaultValue: "center",
1934
- enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
1935
- }, {
1936
- name: "altText",
1937
- type: "string",
1938
- helperText: "Text to display when the user has images off"
1939
- }, {
1940
- name: "title",
1941
- type: "string",
1942
- helperText: "Text to display when hovering over the asset"
1943
- }, {
1944
- name: "height",
1945
- type: "number",
1946
- hideFromUI: !0
1947
- }, {
1948
- name: "width",
1949
- type: "number",
1950
- hideFromUI: !0
1951
- }, {
1952
- name: "sizes",
1953
- type: "string",
1954
- hideFromUI: !0
1955
- }, {
1956
- name: "srcset",
1957
- type: "string",
1958
- hideFromUI: !0
1959
- }, {
1960
- name: "lazy",
1961
- type: "boolean",
1962
- defaultValue: !0,
1963
- hideFromUI: !0
1964
- }, {
1965
- name: "fitContent",
1966
- type: "boolean",
1967
- helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
1968
- defaultValue: !0
1969
- }, {
1970
- name: "highPriority",
1971
- type: "boolean",
1972
- advanced: !0,
1973
- helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
1974
- }, {
1975
- name: "aspectRatio",
1976
- type: "number",
1977
- helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
1978
- advanced: !0,
1979
- defaultValue: 0.7041
1980
- }],
1981
- shouldReceiveBuilderProps: {
1982
- builderBlock: !0
1983
- }
1984
- }, mn = {
1985
- name: "PersonalizationContainer",
1986
- shouldReceiveBuilderProps: {
1987
- builderBlock: !0,
1988
- builderContext: !0
1989
- },
1990
- noWrap: !0,
1991
- image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
1992
- canHaveChildren: !0,
1993
- inputs: [{
1994
- name: "variants",
1995
- defaultValue: [],
1996
- behavior: "personalizationVariantList",
1997
- type: "list",
1998
- subFields: [{
1999
- name: "name",
2000
- type: "text"
2001
- }, {
2002
- name: "query",
2003
- friendlyName: "Targeting rules",
2004
- type: "BuilderQuery",
2005
- defaultValue: []
2006
- }, {
2007
- name: "startDate",
2008
- type: "date"
2009
- }, {
2010
- name: "endDate",
2011
- type: "date"
2012
- }, {
2013
- name: "blocks",
2014
- type: "uiBlocks",
2015
- hideFromUI: !0,
2016
- defaultValue: []
2017
- }]
2018
- }]
2019
- };
2020
- function Y(e) {
2021
- return /* @__PURE__ */ s(
2022
- "script",
2023
- {
2024
- dangerouslySetInnerHTML: { __html: e.scriptStr },
2025
- "data-id": e.id,
2026
- nonce: e.nonce || ""
2027
- }
2028
- );
2029
- }
2030
- function fn(e, t, n, i) {
2031
- function a(u) {
2032
- return typeof u == "string";
2033
- }
2034
- function r(u) {
2035
- return typeof u == "number";
2036
- }
2037
- function o(u, h) {
2038
- return (() => {
2039
- const c = h.property, v = h.operator;
2040
- let f = h.value;
2041
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
2042
- return !0;
2043
- if (Array.isArray(f))
2044
- return v === "isNot" ? f.every((S) => o(u, {
2045
- property: c,
2046
- operator: v,
2047
- value: S
2048
- })) : !!f.find((S) => o(u, {
2049
- property: c,
2050
- operator: v,
2051
- value: S
2052
- }));
2053
- const b = u[c];
2054
- if (Array.isArray(b))
2055
- return b.includes(f);
2056
- switch (v) {
2057
- case "is":
2058
- return b === f;
2059
- case "isNot":
2060
- return b !== f;
2061
- case "contains":
2062
- return (a(b) || Array.isArray(b)) && b.includes(String(f));
2063
- case "startsWith":
2064
- return a(b) && b.startsWith(String(f));
2065
- case "endsWith":
2066
- return a(b) && b.endsWith(String(f));
2067
- case "greaterThan":
2068
- return r(b) && r(f) && b > f;
2069
- case "lessThan":
2070
- return r(b) && r(f) && b < f;
2071
- case "greaterThanOrEqualTo":
2072
- return r(b) && r(f) && b >= f;
2073
- case "lessThanOrEqualTo":
2074
- return r(b) && r(f) && b <= f;
2075
- default:
2076
- return !1;
2077
- }
2078
- })();
2079
- }
2080
- const l = {
2081
- query: t,
2082
- startDate: n,
2083
- endDate: i
2084
- }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2085
- return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => o(e, u));
2086
- }
2087
- const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2088
- if (!navigator.cookieEnabled) {
2089
- return;
2090
- }
2091
- function getCookie(name) {
2092
- const nameEQ = name + '=';
2093
- const ca = document.cookie.split(';');
2094
- for (let i = 0; i < ca.length; i++) {
2095
- let c = ca[i];
2096
- while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2097
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2098
- }
2099
- return null;
2100
- }
2101
- function removeVariants() {
2102
- variants?.forEach(function (_, index) {
2103
- document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
2104
- });
2105
- document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
2106
- document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
2107
- }
2108
- const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2109
- if (locale) {
2110
- attributes.locale = locale;
2111
- }
2112
- const winningVariantIndex = variants?.findIndex(function (variant) {
2113
- return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2114
- });
2115
- const isDebug = location.href.includes('builder.debug=true');
2116
- if (isDebug) {
2117
- console.debug('PersonalizationContainer', {
2118
- attributes,
2119
- variants,
2120
- winningVariantIndex
2121
- });
2122
- }
2123
- if (winningVariantIndex !== -1) {
2124
- const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
2125
- if (winningVariant) {
2126
- const parentNode = winningVariant.parentNode;
2127
- if (parentNode) {
2128
- const newParent = parentNode.cloneNode(false);
2129
- newParent.appendChild(winningVariant.content.firstChild);
2130
- newParent.appendChild(winningVariant.content.lastChild);
2131
- parentNode.parentNode?.replaceChild(newParent, parentNode);
2132
- }
2133
- if (isDebug) {
2134
- console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
2135
- }
2136
- }
2137
- } else if (variants && variants.length > 0) {
2138
- removeVariants();
2139
- }
2140
- }`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2141
- function isString(val) {
2142
- return typeof val === 'string';
2143
- }
2144
- function isNumber(val) {
2145
- return typeof val === 'number';
2146
- }
2147
- function objectMatchesQuery(userattr, query) {
2148
- const result = (() => {
2149
- const property = query.property;
2150
- const operator = query.operator;
2151
- let testValue = query.value;
2152
- if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
2153
- testValue = query.value.slice(0, -1);
2154
- }
2155
- if (!(property && operator)) {
2156
- return true;
2157
- }
2158
- if (Array.isArray(testValue)) {
2159
- if (operator === 'isNot') {
2160
- return testValue.every(val => objectMatchesQuery(userattr, {
2161
- property,
2162
- operator,
2163
- value: val
2164
- }));
2165
- }
2166
- return !!testValue.find(val => objectMatchesQuery(userattr, {
2167
- property,
2168
- operator,
2169
- value: val
2170
- }));
2171
- }
2172
- const value = userattr[property];
2173
- if (Array.isArray(value)) {
2174
- return value.includes(testValue);
2175
- }
2176
- switch (operator) {
2177
- case 'is':
2178
- return value === testValue;
2179
- case 'isNot':
2180
- return value !== testValue;
2181
- case 'contains':
2182
- return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
2183
- case 'startsWith':
2184
- return isString(value) && value.startsWith(String(testValue));
2185
- case 'endsWith':
2186
- return isString(value) && value.endsWith(String(testValue));
2187
- case 'greaterThan':
2188
- return isNumber(value) && isNumber(testValue) && value > testValue;
2189
- case 'lessThan':
2190
- return isNumber(value) && isNumber(testValue) && value < testValue;
2191
- case 'greaterThanOrEqualTo':
2192
- return isNumber(value) && isNumber(testValue) && value >= testValue;
2193
- case 'lessThanOrEqualTo':
2194
- return isNumber(value) && isNumber(testValue) && value <= testValue;
2195
- default:
2196
- return false;
2197
- }
2198
- })();
2199
- return result;
2200
- }
2201
- const item = {
2202
- query,
2203
- startDate,
2204
- endDate
2205
- };
2206
- const now = userAttributes.date && new Date(userAttributes.date) || new Date();
2207
- if (item.startDate && new Date(item.startDate) > now) {
2208
- return false;
2209
- } else if (item.endDate && new Date(item.endDate) < now) {
2210
- return false;
2211
- }
2212
- if (!item.query || !item.query.length) {
2213
- return true;
2214
- }
2215
- return item.query.every(filter => {
2216
- return objectMatchesQuery(userAttributes, filter);
2217
- });
2218
- }`;
2219
- function bn(e, t) {
2220
- return !(!(e && e.length > 0) || !t || U());
2221
- }
2222
- function pn({
2223
- variants: e,
2224
- previewingIndex: t,
2225
- isHydrated: n,
2226
- filteredVariants: i,
2227
- fallbackBlocks: a
2228
- }) {
2229
- var o;
2230
- const r = {
2231
- blocks: a != null ? a : [],
2232
- path: "this.children"
2233
- };
2234
- if (n && N())
2235
- return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
2236
- blocks: e[t].blocks,
2237
- path: `component.options.variants.${t}.blocks`
2238
- } : r;
2239
- if (U()) {
2240
- const l = i == null ? void 0 : i[0];
2241
- if (l)
2242
- return {
2243
- blocks: l.blocks,
2244
- path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
2245
- };
2192
+ enum: [{
2193
+ label: "contain",
2194
+ value: "contain",
2195
+ helperText: "The image should never get cropped"
2196
+ }, {
2197
+ label: "cover",
2198
+ value: "cover",
2199
+ helperText: "The image should fill it's box, cropping when needed"
2200
+ }]
2201
+ }, {
2202
+ name: "backgroundPosition",
2203
+ type: "text",
2204
+ defaultValue: "center",
2205
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
2206
+ }, {
2207
+ name: "altText",
2208
+ type: "string",
2209
+ helperText: "Text to display when the user has images off"
2210
+ }, {
2211
+ name: "title",
2212
+ type: "string",
2213
+ helperText: "Text to display when hovering over the asset"
2214
+ }, {
2215
+ name: "height",
2216
+ type: "number",
2217
+ hideFromUI: !0
2218
+ }, {
2219
+ name: "width",
2220
+ type: "number",
2221
+ hideFromUI: !0
2222
+ }, {
2223
+ name: "sizes",
2224
+ type: "string",
2225
+ hideFromUI: !0
2226
+ }, {
2227
+ name: "srcset",
2228
+ type: "string",
2229
+ hideFromUI: !0
2230
+ }, {
2231
+ name: "lazy",
2232
+ type: "boolean",
2233
+ defaultValue: !0,
2234
+ hideFromUI: !0
2235
+ }, {
2236
+ name: "fitContent",
2237
+ type: "boolean",
2238
+ helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
2239
+ defaultValue: !0
2240
+ }, {
2241
+ name: "highPriority",
2242
+ type: "boolean",
2243
+ advanced: !0,
2244
+ helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
2245
+ }, {
2246
+ name: "aspectRatio",
2247
+ type: "number",
2248
+ helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
2249
+ advanced: !0,
2250
+ defaultValue: 0.7041
2251
+ }],
2252
+ shouldReceiveBuilderProps: {
2253
+ builderBlock: !0
2246
2254
  }
2247
- return r;
2255
+ }, Nn = {
2256
+ name: "PersonalizationContainer",
2257
+ shouldReceiveBuilderProps: {
2258
+ builderBlock: !0,
2259
+ builderContext: !0,
2260
+ builderComponents: !0
2261
+ },
2262
+ noWrap: !0,
2263
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
2264
+ canHaveChildren: !0,
2265
+ inputs: [{
2266
+ name: "variants",
2267
+ defaultValue: [],
2268
+ behavior: "personalizationVariantList",
2269
+ type: "list",
2270
+ subFields: [{
2271
+ name: "name",
2272
+ type: "text"
2273
+ }, {
2274
+ name: "query",
2275
+ friendlyName: "Targeting rules",
2276
+ type: "BuilderQuery",
2277
+ defaultValue: []
2278
+ }, {
2279
+ name: "startDate",
2280
+ type: "date"
2281
+ }, {
2282
+ name: "endDate",
2283
+ type: "date"
2284
+ }, {
2285
+ name: "blocks",
2286
+ type: "uiBlocks",
2287
+ hideFromUI: !0,
2288
+ defaultValue: []
2289
+ }]
2290
+ }]
2291
+ };
2292
+ function q(e) {
2293
+ return /* @__PURE__ */ s(
2294
+ "script",
2295
+ {
2296
+ dangerouslySetInnerHTML: { __html: e.scriptStr },
2297
+ "data-id": e.id,
2298
+ nonce: e.nonce || ""
2299
+ }
2300
+ );
2248
2301
  }
2249
- const yn = (e, t, n) => `
2250
- (function() {
2251
- ${gn}
2252
- ${hn}
2253
- getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2254
- })();
2255
- `;
2256
- function vn(e) {
2257
- var b, S, p, k, C, V, w;
2258
- const t = L(null), [n, i] = I(
2259
- () => be.getUserAttributes()
2260
- ), [a, r] = I(
2302
+ function $n(e) {
2303
+ var x, k, V, T, I, b, S, w, A, F, O, W, U;
2304
+ const t = H(null), [n, i] = C(
2305
+ () => Ce.getUserAttributes()
2306
+ ), [a, o] = C(
2261
2307
  () => {
2262
- var x, m, y;
2263
- return yn(
2308
+ var E, B, N;
2309
+ return Tn(
2264
2310
  e.variants,
2265
- ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2266
- (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
2311
+ ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2312
+ (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2267
2313
  );
2268
2314
  }
2269
- ), [o, l] = I(() => []), [d, u] = I(
2315
+ ), [r, l] = C(
2270
2316
  () => {
2271
- var x;
2272
- return bn(
2317
+ var E, B, N;
2318
+ return In(
2273
2319
  e.variants,
2274
- M((x = e.builderContext) == null ? void 0 : x.canTrack)
2320
+ ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2321
+ (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2275
2322
  );
2276
2323
  }
2277
- ), [h, g] = I(() => !1);
2278
- function c() {
2279
- return (e.variants || []).filter((x) => {
2280
- var m, y, T, E;
2281
- return fn(
2324
+ ), [c, u] = C(() => []), [f, g] = C(
2325
+ () => {
2326
+ var E;
2327
+ return Sn(
2328
+ e.variants,
2329
+ X((E = e.builderContext) == null ? void 0 : E.canTrack)
2330
+ );
2331
+ }
2332
+ ), [m, v] = C(() => !1);
2333
+ function d() {
2334
+ return {
2335
+ ...e.attributes,
2336
+ [j()]: `builder-personalization-container ${e.attributes[j()] || ""}`
2337
+ };
2338
+ }
2339
+ function h() {
2340
+ return (e.variants || []).filter((E) => {
2341
+ var B, N, z, M;
2342
+ return bn(
2282
2343
  {
2283
- ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2284
- locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2344
+ ...(N = (B = e.builderContext) == null ? void 0 : B.rootState) != null && N.locale ? {
2345
+ locale: (M = (z = e.builderContext) == null ? void 0 : z.rootState) == null ? void 0 : M.locale
2285
2346
  } : {},
2286
2347
  ...n
2287
2348
  },
2288
- x.query,
2289
- x.startDate,
2290
- x.endDate
2349
+ E.query,
2350
+ E.startDate,
2351
+ E.endDate
2291
2352
  );
2292
2353
  });
2293
2354
  }
2294
- function v() {
2295
- var x;
2296
- return pn({
2355
+ function p() {
2356
+ var E;
2357
+ return kn({
2297
2358
  variants: e.variants,
2298
- fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2299
- isHydrated: h,
2300
- filteredVariants: c(),
2359
+ fallbackBlocks: (E = e.builderBlock) == null ? void 0 : E.children,
2360
+ isHydrated: m,
2361
+ filteredVariants: h(),
2301
2362
  previewingIndex: e.previewingIndex
2302
2363
  });
2303
2364
  }
2304
- function f() {
2365
+ function y() {
2305
2366
  return (e.variants || []).map(
2306
- (x, m) => {
2307
- var y;
2308
- return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
2367
+ (E, B) => {
2368
+ var N;
2369
+ return `div[data-variant-id="${(N = e.builderBlock) == null ? void 0 : N.id}-${B}"] { display: none !important; } `;
2309
2370
  }
2310
2371
  ).join("");
2311
2372
  }
2312
2373
  return P(() => {
2313
- var m;
2314
- g(!0);
2315
- const x = be.subscribeOnUserAttributesChange(
2316
- (y) => {
2317
- i(y);
2374
+ var B;
2375
+ v(!0);
2376
+ const E = Ce.subscribeOnUserAttributesChange(
2377
+ (N) => {
2378
+ i(N);
2318
2379
  }
2319
2380
  );
2320
- if (!(N() || X())) {
2321
- const y = c()[0];
2381
+ if (!(L() || oe())) {
2382
+ const N = h()[0];
2322
2383
  t.current && (t.current.dispatchEvent(
2323
2384
  new CustomEvent("builder.variantLoaded", {
2324
2385
  detail: {
2325
- variant: y || "default",
2326
- content: (m = e.builderContext) == null ? void 0 : m.content
2386
+ variant: N || ne,
2387
+ content: (B = e.builderContext) == null ? void 0 : B.content
2327
2388
  },
2328
2389
  bubbles: !0
2329
2390
  })
2330
- ), new IntersectionObserver((E) => {
2331
- E.forEach((A) => {
2332
- var W;
2333
- A.isIntersecting && t.current && t.current.dispatchEvent(
2391
+ ), new IntersectionObserver((M) => {
2392
+ M.forEach((te) => {
2393
+ var G;
2394
+ te.isIntersecting && t.current && t.current.dispatchEvent(
2334
2395
  new CustomEvent("builder.variantDisplayed", {
2335
2396
  detail: {
2336
- variant: y || "default",
2337
- content: (W = e.builderContext) == null ? void 0 : W.content
2397
+ variant: N || ne,
2398
+ content: (G = e.builderContext) == null ? void 0 : G.content
2338
2399
  },
2339
2400
  bubbles: !0
2340
2401
  })
@@ -2342,65 +2403,97 @@ function vn(e) {
2342
2403
  });
2343
2404
  }).observe(t.current));
2344
2405
  }
2345
- o.push(x);
2406
+ c.push(E);
2346
2407
  }, []), P(() => () => {
2347
- o.forEach((x) => x());
2348
- }, []), /* @__PURE__ */ B(
2349
- "div",
2350
- {
2351
- ref: t,
2352
- ...e.attributes,
2353
- className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2354
- children: [
2355
- d ? /* @__PURE__ */ B(R, { children: [
2356
- (S = e.variants) == null ? void 0 : S.map((x, m) => {
2357
- var y, T;
2358
- return /* @__PURE__ */ s(
2359
- "template",
2360
- {
2361
- "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
2362
- children: /* @__PURE__ */ s(
2363
- $,
2364
- {
2365
- blocks: x.blocks,
2366
- parent: (T = e.builderBlock) == null ? void 0 : T.id,
2367
- path: `component.options.variants.${m}.blocks`
2368
- }
2369
- )
2370
- },
2371
- m
2372
- );
2373
- }),
2374
- /* @__PURE__ */ s(
2375
- K,
2408
+ c.forEach((E) => E());
2409
+ }, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
2410
+ m && ie.includes(D) ? /* @__PURE__ */ s(
2411
+ _,
2412
+ {
2413
+ blocks: p().blocks,
2414
+ parent: (x = e.builderBlock) == null ? void 0 : x.id,
2415
+ path: p().path,
2416
+ context: e.builderContext,
2417
+ registeredComponents: e.builderComponents,
2418
+ BlocksWrapperProps: {
2419
+ ...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
2420
+ "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${p().index}`
2421
+ }
2422
+ }
2423
+ ) : null,
2424
+ !m && ie.includes(D) || !ie.includes(D) ? /* @__PURE__ */ $(R, { children: [
2425
+ f ? /* @__PURE__ */ $(R, { children: [
2426
+ /* @__PURE__ */ s(
2427
+ ee,
2428
+ {
2429
+ nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2430
+ styles: y(),
2431
+ id: `variants-styles-${(I = e.builderBlock) == null ? void 0 : I.id}`
2432
+ }
2433
+ ),
2434
+ /* @__PURE__ */ s(
2435
+ q,
2436
+ {
2437
+ nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2438
+ scriptStr: r,
2439
+ id: `variants-visibility-script-${(S = e.builderBlock) == null ? void 0 : S.id}`
2440
+ }
2441
+ ),
2442
+ (w = e.variants) == null ? void 0 : w.map((E, B) => {
2443
+ var N, z, M, te, G, ke;
2444
+ return /* @__PURE__ */ s(
2445
+ _,
2376
2446
  {
2377
- nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2378
- styles: f(),
2379
- id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2380
- }
2381
- ),
2382
- /* @__PURE__ */ s(
2383
- Y,
2447
+ BlocksWrapperProps: {
2448
+ ...(N = e.builderContext) == null ? void 0 : N.BlocksWrapperProps,
2449
+ "aria-hidden": !0,
2450
+ hidden: !0,
2451
+ "data-variant-id": `${(z = e.builderBlock) == null ? void 0 : z.id}-${B}`
2452
+ },
2453
+ blocks: E.blocks,
2454
+ parent: (M = e.builderBlock) == null ? void 0 : M.id,
2455
+ path: `component.options.variants.${B}.blocks`,
2456
+ context: e.builderContext,
2457
+ registeredComponents: e.builderComponents,
2458
+ children: /* @__PURE__ */ s(
2459
+ q,
2460
+ {
2461
+ nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
2462
+ scriptStr: a,
2463
+ id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
2464
+ }
2465
+ )
2466
+ },
2467
+ `${(ke = e.builderBlock) == null ? void 0 : ke.id}-${B}`
2468
+ );
2469
+ })
2470
+ ] }) : null,
2471
+ /* @__PURE__ */ s(
2472
+ _,
2473
+ {
2474
+ blocks: p().blocks,
2475
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
2476
+ path: p().path,
2477
+ context: e.builderContext,
2478
+ registeredComponents: e.builderComponents,
2479
+ BlocksWrapperProps: {
2480
+ ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
2481
+ "data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${p().index}`
2482
+ },
2483
+ children: f ? /* @__PURE__ */ s(
2484
+ q,
2384
2485
  {
2385
- nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2486
+ nonce: ((W = e.builderContext) == null ? void 0 : W.nonce) || "",
2386
2487
  scriptStr: a,
2387
- id: `variants-script-${(V = e.builderBlock) == null ? void 0 : V.id}`
2488
+ id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
2388
2489
  }
2389
- )
2390
- ] }) : null,
2391
- /* @__PURE__ */ s(
2392
- $,
2393
- {
2394
- blocks: v().blocks,
2395
- parent: (w = e.builderBlock) == null ? void 0 : w.id,
2396
- path: v().path
2397
- }
2398
- )
2399
- ]
2400
- }
2401
- );
2490
+ ) : null
2491
+ }
2492
+ )
2493
+ ] }) : null
2494
+ ] });
2402
2495
  }
2403
- const xn = {
2496
+ const Wn = {
2404
2497
  name: "Core:Section",
2405
2498
  static: !0,
2406
2499
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2439,7 +2532,7 @@ const xn = {
2439
2532
  }
2440
2533
  }
2441
2534
  }]
2442
- }, Sn = {
2535
+ }, Dn = {
2443
2536
  name: "Slot",
2444
2537
  isRSC: !0,
2445
2538
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2457,7 +2550,7 @@ const xn = {
2457
2550
  builderComponents: !0
2458
2551
  }
2459
2552
  };
2460
- function kn(e) {
2553
+ function Fn(e) {
2461
2554
  var t, n, i;
2462
2555
  return /* @__PURE__ */ s(
2463
2556
  "div",
@@ -2469,7 +2562,7 @@ function kn(e) {
2469
2562
  "builder-slot": e.name
2470
2563
  },
2471
2564
  children: /* @__PURE__ */ s(
2472
- $,
2565
+ _,
2473
2566
  {
2474
2567
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2475
2568
  path: `symbol.data.${e.name}`,
@@ -2481,7 +2574,7 @@ function kn(e) {
2481
2574
  }
2482
2575
  );
2483
2576
  }
2484
- const Cn = {
2577
+ const Ln = {
2485
2578
  name: "Symbol",
2486
2579
  noWrap: !0,
2487
2580
  static: !0,
@@ -2520,7 +2613,7 @@ const Cn = {
2520
2613
  builderComponents: !0,
2521
2614
  builderLinkComponent: !0
2522
2615
  }
2523
- }, re = {
2616
+ }, fe = {
2524
2617
  "@type": "@builder.io/sdk:Element",
2525
2618
  responsiveStyles: {
2526
2619
  large: {
@@ -2542,7 +2635,7 @@ const Cn = {
2542
2635
  text: "New tab"
2543
2636
  }
2544
2637
  }
2545
- }, le = {
2638
+ }, he = {
2546
2639
  "@type": "@builder.io/sdk:Element",
2547
2640
  responsiveStyles: {
2548
2641
  large: {
@@ -2558,7 +2651,7 @@ const Cn = {
2558
2651
  text: "New tab content "
2559
2652
  }
2560
2653
  }
2561
- }, Tn = {
2654
+ }, On = {
2562
2655
  name: "Builder: Tabs",
2563
2656
  inputs: [{
2564
2657
  name: "tabs",
@@ -2568,16 +2661,16 @@ const Cn = {
2568
2661
  name: "label",
2569
2662
  type: "uiBlocks",
2570
2663
  hideFromUI: !0,
2571
- defaultValue: [re]
2664
+ defaultValue: [fe]
2572
2665
  }, {
2573
2666
  name: "content",
2574
2667
  type: "uiBlocks",
2575
2668
  hideFromUI: !0,
2576
- defaultValue: [le]
2669
+ defaultValue: [he]
2577
2670
  }],
2578
2671
  defaultValue: [{
2579
2672
  label: [{
2580
- ...re,
2673
+ ...fe,
2581
2674
  component: {
2582
2675
  name: "Text",
2583
2676
  options: {
@@ -2586,7 +2679,7 @@ const Cn = {
2586
2679
  }
2587
2680
  }],
2588
2681
  content: [{
2589
- ...le,
2682
+ ...he,
2590
2683
  component: {
2591
2684
  name: "Text",
2592
2685
  options: {
@@ -2596,7 +2689,7 @@ const Cn = {
2596
2689
  }]
2597
2690
  }, {
2598
2691
  label: [{
2599
- ...re,
2692
+ ...fe,
2600
2693
  component: {
2601
2694
  name: "Text",
2602
2695
  options: {
@@ -2605,7 +2698,7 @@ const Cn = {
2605
2698
  }
2606
2699
  }],
2607
2700
  content: [{
2608
- ...le,
2701
+ ...he,
2609
2702
  component: {
2610
2703
  name: "Text",
2611
2704
  options: {
@@ -2662,18 +2755,18 @@ const Cn = {
2662
2755
  builderLinkComponent: !0
2663
2756
  }
2664
2757
  };
2665
- function wn(e) {
2666
- var r;
2667
- const [t, n] = I(
2758
+ function _n(e) {
2759
+ var o;
2760
+ const [t, n] = C(
2668
2761
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2669
2762
  );
2670
- function i(o) {
2671
- return e.tabs && e.tabs[o].content;
2763
+ function i(r) {
2764
+ return e.tabs && e.tabs[r].content;
2672
2765
  }
2673
- function a(o) {
2674
- o === t && e.collapsible ? n(-1) : n(o);
2766
+ function a(r) {
2767
+ r === t && e.collapsible ? n(-1) : n(r);
2675
2768
  }
2676
- return /* @__PURE__ */ B("div", { children: [
2769
+ return /* @__PURE__ */ $("div", { children: [
2677
2770
  /* @__PURE__ */ s(
2678
2771
  "div",
2679
2772
  {
@@ -2684,20 +2777,20 @@ function wn(e) {
2684
2777
  justifyContent: e.tabHeaderLayout || "flex-start",
2685
2778
  overflow: "auto"
2686
2779
  },
2687
- children: (r = e.tabs) == null ? void 0 : r.map((o, l) => /* @__PURE__ */ s(
2780
+ children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
2688
2781
  "span",
2689
2782
  {
2690
2783
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2691
2784
  style: {
2692
2785
  ...t === l ? e.activeTabStyle : {}
2693
2786
  },
2694
- onClick: (d) => a(l),
2787
+ onClick: (c) => a(l),
2695
2788
  children: /* @__PURE__ */ s(
2696
- $,
2789
+ _,
2697
2790
  {
2698
2791
  parent: e.builderBlock.id,
2699
2792
  path: `tabs.${l}.label`,
2700
- blocks: o.label,
2793
+ blocks: r.label,
2701
2794
  context: e.builderContext,
2702
2795
  registeredComponents: e.builderComponents,
2703
2796
  linkComponent: e.builderLinkComponent
@@ -2709,7 +2802,7 @@ function wn(e) {
2709
2802
  }
2710
2803
  ),
2711
2804
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2712
- $,
2805
+ _,
2713
2806
  {
2714
2807
  parent: e.builderBlock.id,
2715
2808
  path: `tabs.${t}.content`,
@@ -2721,7 +2814,7 @@ function wn(e) {
2721
2814
  ) }) : null
2722
2815
  ] });
2723
2816
  }
2724
- const In = {
2817
+ const Un = {
2725
2818
  shouldReceiveBuilderProps: {},
2726
2819
  name: "Text",
2727
2820
  static: !0,
@@ -2741,7 +2834,7 @@ const In = {
2741
2834
  textAlign: "center"
2742
2835
  }
2743
2836
  };
2744
- function En(e) {
2837
+ function Hn(e) {
2745
2838
  var t;
2746
2839
  return /* @__PURE__ */ s(
2747
2840
  "div",
@@ -2754,7 +2847,7 @@ function En(e) {
2754
2847
  }
2755
2848
  );
2756
2849
  }
2757
- const Rn = {
2850
+ const Mn = {
2758
2851
  name: "Custom Code",
2759
2852
  static: !0,
2760
2853
  requiredPermissions: ["editCode"],
@@ -2777,32 +2870,32 @@ const Rn = {
2777
2870
  advanced: !0
2778
2871
  }]
2779
2872
  };
2780
- function Vn(e) {
2781
- const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2782
- function o() {
2783
- var d;
2784
- if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2873
+ function qn(e) {
2874
+ const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []);
2875
+ function r() {
2876
+ var c;
2877
+ if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2785
2878
  return;
2786
2879
  const l = t.current.getElementsByTagName("script");
2787
2880
  for (let u = 0; u < l.length; u++) {
2788
- const h = l[u];
2789
- if (h.src) {
2790
- if (n.includes(h.src))
2881
+ const f = l[u];
2882
+ if (f.src) {
2883
+ if (n.includes(f.src))
2791
2884
  continue;
2792
- n.push(h.src);
2885
+ n.push(f.src);
2793
2886
  const g = document.createElement("script");
2794
- g.async = !0, g.src = h.src, document.head.appendChild(g);
2795
- } else if (!h.type || [
2887
+ g.async = !0, g.src = f.src, document.head.appendChild(g);
2888
+ } else if (!f.type || [
2796
2889
  "text/javascript",
2797
2890
  "application/javascript",
2798
2891
  "application/ecmascript"
2799
- ].includes(h.type)) {
2800
- if (a.includes(h.innerText))
2892
+ ].includes(f.type)) {
2893
+ if (a.includes(f.innerText))
2801
2894
  continue;
2802
2895
  try {
2803
- a.push(h.innerText), new Function(h.innerText)();
2896
+ a.push(f.innerText), new Function(f.innerText)();
2804
2897
  } catch (g) {
2805
- z.warn(
2898
+ Z.warn(
2806
2899
  "[BUILDER.IO] `CustomCode`: Error running script:",
2807
2900
  g
2808
2901
  );
@@ -2811,9 +2904,9 @@ function Vn(e) {
2811
2904
  }
2812
2905
  }
2813
2906
  return P(() => {
2814
- o();
2907
+ r();
2815
2908
  }, []), P(() => {
2816
- N() && o();
2909
+ L() && r();
2817
2910
  }, [e.code]), /* @__PURE__ */ s(
2818
2911
  "div",
2819
2912
  {
@@ -2823,7 +2916,7 @@ function Vn(e) {
2823
2916
  }
2824
2917
  );
2825
2918
  }
2826
- const Pn = {
2919
+ const jn = {
2827
2920
  name: "Embed",
2828
2921
  static: !0,
2829
2922
  inputs: [{
@@ -2838,30 +2931,30 @@ const Pn = {
2838
2931
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2839
2932
  hideFromUI: !0
2840
2933
  }]
2841
- }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
2842
- function Nn(e) {
2843
- const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []), [o, l] = I(() => !1);
2844
- function d() {
2934
+ }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
2935
+ function Jn(e) {
2936
+ const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []), [r, l] = C(() => !1);
2937
+ function c() {
2845
2938
  if (!t.current || !t.current.getElementsByTagName)
2846
2939
  return;
2847
2940
  const u = t.current.getElementsByTagName("script");
2848
- for (let h = 0; h < u.length; h++) {
2849
- const g = u[h];
2941
+ for (let f = 0; f < u.length; f++) {
2942
+ const g = u[f];
2850
2943
  if (g.src && !n.includes(g.src)) {
2851
2944
  n.push(g.src);
2852
- const c = document.createElement("script");
2853
- c.async = !0, c.src = g.src, document.head.appendChild(c);
2854
- } else if (An(g) && !a.includes(g.innerText))
2945
+ const m = document.createElement("script");
2946
+ m.async = !0, m.src = g.src, document.head.appendChild(m);
2947
+ } else if (Kn(g) && !a.includes(g.innerText))
2855
2948
  try {
2856
2949
  a.push(g.innerText), new Function(g.innerText)();
2857
- } catch (c) {
2858
- z.warn("[BUILDER.IO] `Embed`: Error running script:", c);
2950
+ } catch (m) {
2951
+ Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2859
2952
  }
2860
2953
  }
2861
2954
  }
2862
2955
  return P(() => {
2863
- t.current && !o && (l(!0), d());
2864
- }, [t.current, o]), /* @__PURE__ */ s(
2956
+ t.current && !r && (l(!0), c());
2957
+ }, [t.current, r]), /* @__PURE__ */ s(
2865
2958
  "div",
2866
2959
  {
2867
2960
  className: "builder-embed",
@@ -2870,7 +2963,7 @@ function Nn(e) {
2870
2963
  }
2871
2964
  );
2872
2965
  }
2873
- const Wn = {
2966
+ const Gn = {
2874
2967
  name: "Form:Form",
2875
2968
  // editableTags: ['builder-form-error']
2876
2969
  defaults: {
@@ -3107,118 +3200,120 @@ const Wn = {
3107
3200
  builderComponents: !0,
3108
3201
  builderLinkComponent: !0
3109
3202
  }
3110
- }, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3203
+ }, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
3111
3204
  const e = process.env.NODE_ENV || "production";
3112
- return Dn.includes(e) ? e : "production";
3205
+ return Qn.includes(e) ? e : "production";
3113
3206
  };
3114
- function Fn(e) {
3115
- const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3116
- function d(g) {
3117
- var v, f;
3118
- const c = {
3207
+ function Xn(e) {
3208
+ const t = H(null), [n, i] = C(() => "unsubmitted"), [a, o] = C(() => null), [r, l] = C(() => "");
3209
+ function c(g) {
3210
+ var v, d;
3211
+ const m = {
3119
3212
  ...e.builderContext.rootState,
3120
3213
  ...g
3121
3214
  };
3122
- e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
3215
+ e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
3123
3216
  }
3124
3217
  function u() {
3125
- return N() && e.previewState || n;
3218
+ return L() && e.previewState || n;
3126
3219
  }
3127
- function h(g) {
3220
+ function f(g) {
3128
3221
  var v;
3129
- const c = e.sendWithJs || e.sendSubmissionsTo === "email";
3222
+ const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3130
3223
  if (e.sendSubmissionsTo === "zapier")
3131
3224
  g.preventDefault();
3132
- else if (c) {
3225
+ else if (m) {
3133
3226
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3134
3227
  g.preventDefault();
3135
3228
  return;
3136
3229
  }
3137
3230
  g.preventDefault();
3138
- const f = g.currentTarget || g.target, b = e.customHeaders || {};
3139
- let S;
3140
- const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3141
- let y;
3142
- const T = m.name;
3143
- if (m instanceof HTMLInputElement)
3144
- if (m.type === "radio") {
3145
- if (m.checked)
3146
- return y = m.name, {
3147
- key: T,
3148
- value: y
3231
+ const d = g.currentTarget || g.target, h = e.customHeaders || {};
3232
+ let p;
3233
+ const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
3234
+ let S;
3235
+ const w = b.name;
3236
+ if (b instanceof HTMLInputElement)
3237
+ if (b.type === "radio") {
3238
+ if (b.checked)
3239
+ return S = b.name, {
3240
+ key: w,
3241
+ value: S
3149
3242
  };
3150
- } else if (m.type === "checkbox")
3151
- y = m.checked;
3152
- else if (m.type === "number" || m.type === "range") {
3153
- const E = m.valueAsNumber;
3154
- isNaN(E) || (y = E);
3243
+ } else if (b.type === "checkbox")
3244
+ S = b.checked;
3245
+ else if (b.type === "number" || b.type === "range") {
3246
+ const A = b.valueAsNumber;
3247
+ isNaN(A) || (S = A);
3155
3248
  } else
3156
- m.type === "file" ? y = m.files : y = m.value;
3249
+ b.type === "file" ? S = b.files : S = b.value;
3157
3250
  else
3158
- y = m.value;
3251
+ S = b.value;
3159
3252
  return {
3160
- key: T,
3161
- value: y
3253
+ key: w,
3254
+ value: S
3162
3255
  };
3163
3256
  });
3164
- let C = e.contentType;
3165
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3166
- (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3167
- }), C !== "application/json")
3168
- S = p;
3257
+ let k = e.contentType;
3258
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(x).forEach(({ value: b }) => {
3259
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (k = "multipart/form-data");
3260
+ }), k !== "application/json")
3261
+ p = y;
3169
3262
  else {
3170
- const m = {};
3171
- Array.from(k).forEach(({ value: y, key: T }) => {
3172
- We(m, T, y);
3173
- }), S = JSON.stringify(m);
3263
+ const b = {};
3264
+ Array.from(x).forEach(({ value: S, key: w }) => {
3265
+ Ue(b, w, S);
3266
+ }), p = JSON.stringify(b);
3174
3267
  }
3175
- C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
3176
- const V = new CustomEvent("presubmit", { detail: { body: S } });
3268
+ k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3269
+ const V = new CustomEvent("presubmit", { detail: { body: p } });
3177
3270
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3178
3271
  return;
3179
3272
  i("sending");
3180
- const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3273
+ const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3181
3274
  e.sendSubmissionsToEmail || ""
3182
- )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3183
- Pe(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3184
- async (m) => {
3185
- let y;
3186
- const T = m.headers.get("content-type");
3187
- if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3188
- let E = $e(y, e.errorMessagePath);
3189
- E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3275
+ )}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
3276
+ Fe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
3277
+ async (b) => {
3278
+ let S;
3279
+ const w = b.headers.get("content-type");
3280
+ if (w && w.indexOf("application/json") !== -1 ? S = await b.json() : S = await b.text(), !b.ok && e.errorMessagePath) {
3281
+ let A = Me(S, e.errorMessagePath);
3282
+ A && (typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A }));
3190
3283
  }
3191
- if (r(y), i(m.ok ? "success" : "error"), m.ok) {
3192
- const E = new CustomEvent("submit:success", {
3193
- detail: { res: m, body: y }
3284
+ if (o(S), i(b.ok ? "success" : "error"), b.ok) {
3285
+ const A = new CustomEvent("submit:success", {
3286
+ detail: { res: b, body: S }
3194
3287
  });
3195
3288
  if (t.current) {
3196
- if (t.current.dispatchEvent(E), E.defaultPrevented)
3289
+ if (t.current.dispatchEvent(A), A.defaultPrevented)
3197
3290
  return;
3198
3291
  e.resetFormOnSubmit !== !1 && t.current.reset();
3199
3292
  }
3200
3293
  if (e.successUrl)
3201
3294
  if (t.current) {
3202
- const A = new CustomEvent("route", {
3295
+ const F = new CustomEvent("route", {
3203
3296
  detail: { url: e.successUrl }
3204
3297
  });
3205
- t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3298
+ t.current.dispatchEvent(F), F.defaultPrevented || (location.href = e.successUrl);
3206
3299
  } else
3207
3300
  location.href = e.successUrl;
3208
3301
  }
3209
3302
  },
3210
- (m) => {
3211
- const y = new CustomEvent("submit:error", {
3212
- detail: { error: m }
3303
+ (b) => {
3304
+ const S = new CustomEvent("submit:error", {
3305
+ detail: { error: b }
3213
3306
  });
3214
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(m), i("error"));
3307
+ t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (o(b), i("error"));
3215
3308
  }
3216
3309
  );
3217
3310
  }
3218
3311
  }
3219
- return /* @__PURE__ */ B(R, { children: [
3312
+ return /* @__PURE__ */ $(R, { children: [
3313
+ " ",
3314
+ /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
3220
3315
  " ",
3221
- /* @__PURE__ */ B(
3316
+ /* @__PURE__ */ $(
3222
3317
  "form",
3223
3318
  {
3224
3319
  validate: e.validate,
@@ -3226,12 +3321,12 @@ function Fn(e) {
3226
3321
  action: !e.sendWithJs && e.action,
3227
3322
  method: e.method,
3228
3323
  name: e.name,
3229
- onSubmit: (g) => h(g),
3324
+ onSubmit: (g) => f(g),
3230
3325
  ...e.attributes,
3231
3326
  children: [
3232
3327
  e.children,
3233
3328
  u() === "error" ? /* @__PURE__ */ s(
3234
- $,
3329
+ _,
3235
3330
  {
3236
3331
  path: "errorMessage",
3237
3332
  blocks: e.errorMessage,
@@ -3239,7 +3334,7 @@ function Fn(e) {
3239
3334
  }
3240
3335
  ) : null,
3241
3336
  u() === "sending" ? /* @__PURE__ */ s(
3242
- $,
3337
+ _,
3243
3338
  {
3244
3339
  path: "sendingMessage",
3245
3340
  blocks: e.sendingMessage,
@@ -3248,7 +3343,7 @@ function Fn(e) {
3248
3343
  ) : null,
3249
3344
  u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3250
3345
  u() === "success" ? /* @__PURE__ */ s(
3251
- $,
3346
+ _,
3252
3347
  {
3253
3348
  path: "successMessage",
3254
3349
  blocks: e.successMessage,
@@ -3258,12 +3353,10 @@ function Fn(e) {
3258
3353
  ]
3259
3354
  }
3260
3355
  ),
3261
- " ",
3262
- /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
3263
3356
  " "
3264
3357
  ] });
3265
3358
  }
3266
- const Ln = {
3359
+ const Zn = {
3267
3360
  name: "Form:Input",
3268
3361
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3269
3362
  inputs: [
@@ -3315,12 +3408,12 @@ const Ln = {
3315
3408
  borderColor: "#ccc"
3316
3409
  }
3317
3410
  };
3318
- function On(e) {
3319
- return /* @__PURE__ */ Ne(
3411
+ function ei(e) {
3412
+ return /* @__PURE__ */ _e(
3320
3413
  "input",
3321
3414
  {
3322
3415
  ...e.attributes,
3323
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3416
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3324
3417
  placeholder: e.placeholder,
3325
3418
  type: e.type,
3326
3419
  name: e.name,
@@ -3330,7 +3423,7 @@ function On(e) {
3330
3423
  }
3331
3424
  );
3332
3425
  }
3333
- const Un = {
3426
+ const ti = {
3334
3427
  name: "Form:Select",
3335
3428
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3336
3429
  defaultStyles: {
@@ -3373,14 +3466,14 @@ const Un = {
3373
3466
  static: !0,
3374
3467
  noWrap: !0
3375
3468
  };
3376
- function _n(e) {
3469
+ function ni(e) {
3377
3470
  var t;
3378
- return /* @__PURE__ */ Ne(
3471
+ return /* @__PURE__ */ _e(
3379
3472
  "select",
3380
3473
  {
3381
3474
  ...e.attributes,
3382
3475
  value: e.value,
3383
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3476
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3384
3477
  defaultValue: e.defaultValue,
3385
3478
  name: e.name,
3386
3479
  required: e.required
@@ -3388,7 +3481,7 @@ function _n(e) {
3388
3481
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3389
3482
  );
3390
3483
  }
3391
- const qn = {
3484
+ const ii = {
3392
3485
  name: "Form:SubmitButton",
3393
3486
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3394
3487
  defaultStyles: {
@@ -3414,10 +3507,10 @@ const qn = {
3414
3507
  // TODO: defaultChildren
3415
3508
  // canHaveChildren: true,
3416
3509
  };
3417
- function Hn(e) {
3510
+ function ai(e) {
3418
3511
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3419
3512
  }
3420
- const Mn = {
3513
+ const ri = {
3421
3514
  name: "Form:TextArea",
3422
3515
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3423
3516
  inputs: [{
@@ -3454,7 +3547,7 @@ const Mn = {
3454
3547
  static: !0,
3455
3548
  noWrap: !0
3456
3549
  };
3457
- function jn(e) {
3550
+ function oi(e) {
3458
3551
  return /* @__PURE__ */ s(
3459
3552
  "textarea",
3460
3553
  {
@@ -3467,7 +3560,7 @@ function jn(e) {
3467
3560
  }
3468
3561
  );
3469
3562
  }
3470
- const zn = {
3563
+ const li = {
3471
3564
  // friendlyName?
3472
3565
  name: "Raw:Img",
3473
3566
  hideFromInsertMenu: !0,
@@ -3476,13 +3569,13 @@ const zn = {
3476
3569
  name: "image",
3477
3570
  bubble: !0,
3478
3571
  type: "file",
3479
- allowedFileTypes: he,
3572
+ allowedFileTypes: Se,
3480
3573
  required: !0
3481
3574
  }],
3482
3575
  noWrap: !0,
3483
3576
  static: !0
3484
3577
  };
3485
- function Kn(e) {
3578
+ function si(e) {
3486
3579
  return /* @__PURE__ */ s(
3487
3580
  "img",
3488
3581
  {
@@ -3494,10 +3587,10 @@ function Kn(e) {
3494
3587
  src: e.imgSrc || e.image,
3495
3588
  ...e.attributes
3496
3589
  },
3497
- N() && e.imgSrc || "default-key"
3590
+ L() && e.imgSrc || "default-key"
3498
3591
  );
3499
3592
  }
3500
- const Jn = {
3593
+ const ci = {
3501
3594
  name: "Video",
3502
3595
  canHaveChildren: !0,
3503
3596
  defaultStyles: {
@@ -3508,14 +3601,14 @@ const Jn = {
3508
3601
  inputs: [{
3509
3602
  name: "video",
3510
3603
  type: "file",
3511
- allowedFileTypes: un,
3604
+ allowedFileTypes: An,
3512
3605
  bubble: !0,
3513
3606
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3514
3607
  required: !0
3515
3608
  }, {
3516
3609
  name: "posterImage",
3517
3610
  type: "file",
3518
- allowedFileTypes: he,
3611
+ allowedFileTypes: Se,
3519
3612
  helperText: "Image to show before the video plays"
3520
3613
  }, {
3521
3614
  name: "autoPlay",
@@ -3582,9 +3675,9 @@ const Jn = {
3582
3675
  builderBlock: !0
3583
3676
  }
3584
3677
  };
3585
- function Gn(e) {
3586
- var o, l, d, u, h, g, c;
3587
- const t = L(null);
3678
+ function ui(e) {
3679
+ var r, l, c, u, f, g, m;
3680
+ const t = H(null);
3588
3681
  function n() {
3589
3682
  return {
3590
3683
  ...e.autoPlay === !0 ? {
@@ -3609,32 +3702,32 @@ function Gn(e) {
3609
3702
  ...n()
3610
3703
  };
3611
3704
  }
3612
- const [a, r] = I(() => {
3705
+ const [a, o] = C(() => {
3613
3706
  });
3614
3707
  return P(() => {
3615
3708
  if (e.lazyLoad) {
3616
- const v = new IntersectionObserver(function(f) {
3617
- f.forEach(function(b) {
3618
- if (!b.isIntersecting)
3709
+ const v = new IntersectionObserver(function(d) {
3710
+ d.forEach(function(h) {
3711
+ if (!h.isIntersecting)
3619
3712
  return;
3620
- const S = b.target;
3713
+ const p = h.target;
3621
3714
  try {
3622
- Array.from(S.children).filter(
3623
- (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3624
- ).forEach((p) => {
3625
- const k = p.dataset.src;
3626
- k && (p.src = k);
3627
- }), S.load(), v.unobserve(S);
3628
- } catch (p) {
3629
- console.error("Error loading lazy video:", p);
3715
+ Array.from(p.children).filter(
3716
+ (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3717
+ ).forEach((y) => {
3718
+ const x = y.dataset.src;
3719
+ x && (y.src = x);
3720
+ }), p.load(), v.unobserve(p);
3721
+ } catch (y) {
3722
+ console.error("Error loading lazy video:", y);
3630
3723
  }
3631
3724
  });
3632
3725
  });
3633
- t.current && v.observe(t.current), r(v);
3726
+ t.current && v.observe(t.current), o(v);
3634
3727
  }
3635
3728
  }, []), P(() => () => {
3636
3729
  a && a.disconnect();
3637
- }, []), /* @__PURE__ */ B(
3730
+ }, []), /* @__PURE__ */ $(
3638
3731
  "div",
3639
3732
  {
3640
3733
  style: {
@@ -3651,7 +3744,7 @@ function Gn(e) {
3651
3744
  style: {
3652
3745
  width: "100%",
3653
3746
  height: "100%",
3654
- ...(o = e.attributes) == null ? void 0 : o.style,
3747
+ ...(r = e.attributes) == null ? void 0 : r.style,
3655
3748
  objectFit: e.fit,
3656
3749
  objectPosition: e.position,
3657
3750
  // Hack to get object fit to work as expected and
@@ -3675,7 +3768,7 @@ function Gn(e) {
3675
3768
  )
3676
3769
  }
3677
3770
  ),
3678
- e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
3771
+ e.aspectRatio && !(e.fitContent && ((c = (l = e.builderBlock) == null ? void 0 : l.children) != null && c.length)) ? /* @__PURE__ */ s(
3679
3772
  "div",
3680
3773
  {
3681
3774
  style: {
@@ -3686,7 +3779,7 @@ function Gn(e) {
3686
3779
  }
3687
3780
  }
3688
3781
  ) : null,
3689
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3782
+ (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ s(
3690
3783
  "div",
3691
3784
  {
3692
3785
  style: {
@@ -3697,7 +3790,7 @@ function Gn(e) {
3697
3790
  children: e.children
3698
3791
  }
3699
3792
  ) : null,
3700
- (c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3793
+ (m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3701
3794
  "div",
3702
3795
  {
3703
3796
  style: {
@@ -3718,67 +3811,67 @@ function Gn(e) {
3718
3811
  }
3719
3812
  );
3720
3813
  }
3721
- const Qn = () => [{
3722
- component: Vn,
3723
- ...Rn
3724
- }, {
3725
- component: Nn,
3726
- ...Pn
3727
- }, {
3728
- component: Fn,
3729
- ...Wn
3814
+ const di = () => [{
3815
+ component: qn,
3816
+ ...Mn
3730
3817
  }, {
3731
- component: On,
3732
- ...Ln
3818
+ component: Jn,
3819
+ ...jn
3733
3820
  }, {
3734
- component: Hn,
3735
- ...qn
3821
+ component: Xn,
3822
+ ...Gn
3736
3823
  }, {
3737
- component: _n,
3738
- ...Un
3824
+ component: ei,
3825
+ ...Zn
3739
3826
  }, {
3740
- component: jn,
3741
- ...Mn
3827
+ component: ai,
3828
+ ...ii
3742
3829
  }, {
3743
- component: Kn,
3744
- ...zn
3830
+ component: ni,
3831
+ ...ti
3745
3832
  }, {
3746
- component: Gn,
3747
- ...Jn
3748
- }], we = () => [{
3749
- component: dt,
3750
- ...ln
3833
+ component: oi,
3834
+ ...ri
3751
3835
  }, {
3752
- component: Xt,
3753
- ...sn
3836
+ component: si,
3837
+ ...li
3754
3838
  }, {
3755
- component: Zt,
3756
- ...cn
3839
+ component: ui,
3840
+ ...ci
3841
+ }], Be = () => [{
3842
+ component: kt,
3843
+ ...Rn
3757
3844
  }, {
3758
- component: nn,
3759
- ...dn
3845
+ component: un,
3846
+ ...Pn
3760
3847
  }, {
3761
- component: an,
3762
- ...xn
3848
+ component: dn,
3849
+ ...Vn
3763
3850
  }, {
3764
- component: kn,
3765
- ...Sn
3851
+ component: hn,
3852
+ ...Bn
3766
3853
  }, {
3767
- component: Si,
3768
- ...Cn
3854
+ component: gn,
3855
+ ...Wn
3769
3856
  }, {
3770
- component: En,
3771
- ...In
3857
+ component: Fn,
3858
+ ...Dn
3772
3859
  }, {
3773
- component: vn,
3774
- ...mn
3860
+ component: Di,
3861
+ ...Ln
3775
3862
  }, {
3776
- component: wn,
3777
- ...Tn
3863
+ component: Hn,
3864
+ ...Un
3865
+ }, ...nt.includes(D) ? [{
3866
+ component: $n,
3867
+ ...Nn
3868
+ }] : [], {
3869
+ component: _n,
3870
+ ...On
3778
3871
  }, {
3779
- component: rn,
3780
- ...on
3781
- }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3872
+ component: En,
3873
+ ...wn
3874
+ }, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3782
3875
  function getAndSetVariantId() {
3783
3876
  function setCookie(name, value, days) {
3784
3877
  let expires = '';
@@ -3837,7 +3930,7 @@ const Qn = () => [{
3837
3930
  }).join('');
3838
3931
  styleEl.innerHTML = newStyleStr;
3839
3932
  }
3840
- }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3933
+ }`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3841
3934
  if (!navigator.cookieEnabled) {
3842
3935
  return;
3843
3936
  }
@@ -3871,29 +3964,29 @@ const Qn = () => [{
3871
3964
  thisScriptEl?.remove();
3872
3965
  }
3873
3966
  return;
3874
- }`, Ke = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3967
+ }`, at = "builderIoAbTest", rt = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3875
3968
  ...t,
3876
3969
  testVariationId: t.id,
3877
3970
  id: e == null ? void 0 : e.id
3878
- })), Zn = ({
3971
+ })), hi = ({
3879
3972
  canTrack: e,
3880
3973
  content: t
3881
- }) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = O === "angular", Ge = ei(O), ni = () => `
3882
- window.${Ke} = ${Yn}
3883
- window.${Je} = ${Xn}
3884
- `, ii = (e, t) => `
3885
- window.${Ke}(
3886
- "${t}",${JSON.stringify(e)}, ${Ge}, ${ti}
3887
- )`, ai = ({
3974
+ }) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = D === "angular", ot = gi(D), yi = () => `
3975
+ window.${at} = ${mi}
3976
+ window.${rt} = ${fi}
3977
+ `, pi = (e, t) => `
3978
+ window.${at}(
3979
+ "${t}",${JSON.stringify(e)}, ${ot}, ${bi}
3980
+ )`, vi = ({
3888
3981
  contentId: e,
3889
3982
  variationId: t
3890
- }) => `window.${Je}(
3891
- "${t}", "${e}", ${Ge}
3983
+ }) => `window.${rt}(
3984
+ "${t}", "${e}", ${ot}
3892
3985
  )`;
3893
- function Ie(e) {
3986
+ function Ne(e) {
3894
3987
  return Math.round(e * 1e3) / 1e3;
3895
3988
  }
3896
- const oi = (e, t, n = !0) => {
3989
+ const xi = (e, t, n = !0) => {
3897
3990
  if (!(e instanceof HTMLElement))
3898
3991
  return null;
3899
3992
  let i = n ? e : e.parentElement;
@@ -3904,37 +3997,37 @@ const oi = (e, t, n = !0) => {
3904
3997
  return i;
3905
3998
  } while (i = i.parentElement);
3906
3999
  return null;
3907
- }, ri = (e) => oi(e, (t) => {
4000
+ }, Si = (e) => xi(e, (t) => {
3908
4001
  const n = t.getAttribute("builder-id") || t.id;
3909
4002
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3910
- }), Ee = ({
4003
+ }), $e = ({
3911
4004
  event: e,
3912
4005
  target: t
3913
4006
  }) => {
3914
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Ie(i / n.width), o = Ie(a / n.height);
4007
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ne(i / n.width), r = Ne(a / n.height);
3915
4008
  return {
3916
- x: r,
3917
- y: o
4009
+ x: o,
4010
+ y: r
3918
4011
  };
3919
- }, li = (e) => {
3920
- const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4012
+ }, ki = (e) => {
4013
+ const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3921
4014
  return {
3922
4015
  targetBuilderElement: i || void 0,
3923
4016
  metadata: {
3924
- targetOffset: t ? Ee({
4017
+ targetOffset: t ? $e({
3925
4018
  event: e,
3926
4019
  target: t
3927
4020
  }) : void 0,
3928
- builderTargetOffset: n ? Ee({
4021
+ builderTargetOffset: n ? $e({
3929
4022
  event: e,
3930
4023
  target: n
3931
4024
  }) : void 0,
3932
4025
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3933
4026
  }
3934
4027
  };
3935
- }, si = ["svelte", "qwik", "vue"], Re = () => si.includes(O) && (N() || X()), ci = (e) => {
3936
- var r, o;
3937
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
4028
+ }, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(D) && (L() || oe()), Ti = (e) => {
4029
+ var o, r;
4030
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3938
4031
  let a = "";
3939
4032
  if (i && t && n && (a += `
3940
4033
  @font-face {
@@ -3958,15 +4051,15 @@ font-weight: ${l};
3958
4051
  `.trim());
3959
4052
  }
3960
4053
  return a;
3961
- }, ui = ({
4054
+ }, Ii = ({
3962
4055
  customFonts: e
3963
4056
  }) => {
3964
4057
  var t;
3965
- return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
3966
- }, di = ({
4058
+ return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
4059
+ }, wi = ({
3967
4060
  cssCode: e,
3968
4061
  contentId: t
3969
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
4062
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
3970
4063
  .builder-button {
3971
4064
  all: unset;
3972
4065
  }
@@ -3983,40 +4076,40 @@ font-weight: ${l};
3983
4076
  text-align: inherit;
3984
4077
  font-family: inherit;
3985
4078
  }
3986
- `, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
3987
- function gi(e) {
3988
- var k, C, V;
3989
- const t = L(null);
3990
- I(() => !1);
3991
- function n(w) {
3992
- var m, y;
3993
- const x = {
4079
+ `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4080
+ function Vi(e) {
4081
+ var x, k, V;
4082
+ const t = H(null);
4083
+ C(() => !1);
4084
+ function n(T) {
4085
+ var b, S;
4086
+ const I = {
3994
4087
  ...e.builderContextSignal.rootState,
3995
- ...w
4088
+ ...T
3996
4089
  };
3997
- e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
3998
- ...T,
3999
- rootState: x
4090
+ e.builderContextSignal.rootSetState ? (S = (b = e.builderContextSignal).rootSetState) == null || S.call(b, I) : e.setBuilderContextSignal((w) => ({
4091
+ ...w,
4092
+ rootState: I
4000
4093
  }));
4001
4094
  }
4002
- function i(w) {
4003
- var m, y, T, E, A;
4004
- const x = {
4095
+ function i(T) {
4096
+ var b, S, w, A, F;
4097
+ const I = {
4005
4098
  ...e.builderContextSignal.content,
4006
- ...w,
4099
+ ...T,
4007
4100
  data: {
4008
- ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
4009
- ...w == null ? void 0 : w.data
4101
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
4102
+ ...T == null ? void 0 : T.data
4010
4103
  },
4011
4104
  meta: {
4012
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
4013
- ...w == null ? void 0 : w.meta,
4014
- breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
4105
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
4106
+ ...T == null ? void 0 : T.meta,
4107
+ breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((F = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : F.breakpoints)
4015
4108
  }
4016
4109
  };
4017
- e.setBuilderContextSignal((W) => ({
4018
- ...W,
4019
- content: x
4110
+ e.setBuilderContextSignal((O) => ({
4111
+ ...O,
4112
+ content: I
4020
4113
  }));
4021
4114
  }
4022
4115
  function a() {
@@ -4025,65 +4118,65 @@ function gi(e) {
4025
4118
  "aria-hidden": !0
4026
4119
  };
4027
4120
  }
4028
- const [r, o] = I(
4121
+ const [o, r] = C(
4029
4122
  () => e.contentWrapper || "div"
4030
4123
  );
4031
- function l(w) {
4032
- return et({
4124
+ function l(T) {
4125
+ return dt({
4033
4126
  model: e.model,
4034
4127
  trustedHosts: e.trustedHosts,
4035
4128
  callbacks: {
4036
- configureSdk: (x) => {
4037
- var T;
4038
- const { breakpoints: m, contentId: y } = x;
4039
- !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4129
+ configureSdk: (I) => {
4130
+ var w;
4131
+ const { breakpoints: b, contentId: S } = I;
4132
+ !S || S !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || b && i({
4040
4133
  meta: {
4041
- breakpoints: m
4134
+ breakpoints: b
4042
4135
  }
4043
4136
  });
4044
4137
  },
4045
- animation: (x) => {
4046
- Ue(x);
4138
+ animation: (I) => {
4139
+ Ke(I);
4047
4140
  },
4048
- contentUpdate: (x) => {
4049
- i(x);
4141
+ contentUpdate: (I) => {
4142
+ i(I);
4050
4143
  },
4051
- stateUpdate: (x) => {
4052
- n(x);
4144
+ stateUpdate: (I) => {
4145
+ n(I);
4053
4146
  }
4054
4147
  }
4055
- })(w);
4148
+ })(T);
4056
4149
  }
4057
- const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
4058
- function f(w) {
4059
- var x, m;
4150
+ const [c, u] = C(() => ({})), [f, g] = C(() => ({})), [m, v] = C(() => !1);
4151
+ function d(T) {
4152
+ var I, b;
4060
4153
  if (e.builderContextSignal.content) {
4061
- const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4062
- pe({
4154
+ const S = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
4155
+ Te({
4063
4156
  apiHost: e.apiHost,
4064
4157
  type: "click",
4065
- canTrack: M(e.canTrack),
4066
- contentId: T,
4158
+ canTrack: X(e.canTrack),
4159
+ contentId: w,
4067
4160
  apiKey: e.apiKey,
4068
- variationId: y !== T ? y : void 0,
4069
- ...li(w),
4070
- unique: !c
4161
+ variationId: S !== w ? S : void 0,
4162
+ ...ki(T),
4163
+ unique: !m
4071
4164
  });
4072
4165
  }
4073
- c || v(!0);
4166
+ m || v(!0);
4074
4167
  }
4075
- function b() {
4076
- var x, m, y;
4077
- const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
4078
- Object.entries(w).forEach(([T, E]) => {
4079
- if (!E || h[T] || d[T] && !N())
4168
+ function h() {
4169
+ var I, b, S;
4170
+ const T = (S = (b = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : b.httpRequests) != null ? S : {};
4171
+ Object.entries(T).forEach(([w, A]) => {
4172
+ if (!A || f[w] || c[w] && !L())
4080
4173
  return;
4081
- h[T] = !0;
4082
- const A = E.replace(
4174
+ f[w] = !0;
4175
+ const F = A.replace(
4083
4176
  /{{([^}]+)}}/g,
4084
- (W, D) => String(
4085
- _({
4086
- code: D,
4177
+ (O, W) => String(
4178
+ J({
4179
+ code: W,
4087
4180
  context: e.context || {},
4088
4181
  localState: void 0,
4089
4182
  rootState: e.builderContextSignal.rootState,
@@ -4091,24 +4184,24 @@ function gi(e) {
4091
4184
  })
4092
4185
  )
4093
4186
  );
4094
- Pe(A), fetch(A).then((W) => W.json()).then((W) => {
4187
+ Fe(F), fetch(F).then((O) => O.json()).then((O) => {
4095
4188
  n({
4096
- [T]: W
4097
- }), d[T] = !0;
4098
- }).catch((W) => {
4099
- console.error("error fetching dynamic data", E, W);
4189
+ [w]: O
4190
+ }), c[w] = !0;
4191
+ }).catch((O) => {
4192
+ console.error("error fetching dynamic data", A, O);
4100
4193
  }).finally(() => {
4101
- h[T] = !1;
4194
+ f[w] = !1;
4102
4195
  });
4103
4196
  });
4104
4197
  }
4105
- function S() {
4106
- N() && window.dispatchEvent(
4198
+ function p() {
4199
+ L() && window.dispatchEvent(
4107
4200
  new CustomEvent(
4108
4201
  "builder:component:stateChange",
4109
4202
  {
4110
4203
  detail: {
4111
- state: ue(e.builderContextSignal.rootState),
4204
+ state: ye(e.builderContextSignal.rootState),
4112
4205
  ref: {
4113
4206
  name: e.model
4114
4207
  }
@@ -4117,11 +4210,11 @@ function gi(e) {
4117
4210
  )
4118
4211
  );
4119
4212
  }
4120
- const p = L(!1);
4121
- return p.current || (b(), S(), p.current = !0), P(() => {
4122
- var w, x, m, y, T;
4123
- if (U()) {
4124
- N() && !e.isNestedRender && (window.addEventListener("message", l), Qe(), Ye({
4213
+ const y = H(!1);
4214
+ return y.current || (h(), p(), y.current = !0), P(() => {
4215
+ var T, I, b, S, w;
4216
+ if (K()) {
4217
+ L() && !e.isNestedRender && (window.addEventListener("message", l), lt(), st({
4125
4218
  ...e.locale ? {
4126
4219
  locale: e.locale
4127
4220
  } : {},
@@ -4131,57 +4224,57 @@ function gi(e) {
4131
4224
  ...e.trustedHosts ? {
4132
4225
  trustedHosts: e.trustedHosts
4133
4226
  } : {},
4134
- modelName: (w = e.model) != null ? w : "",
4227
+ modelName: (T = e.model) != null ? T : "",
4135
4228
  apiKey: e.apiKey
4136
4229
  }), Object.values(
4137
4230
  e.builderContextSignal.componentInfos
4138
- ).forEach((D) => {
4139
- var F, J;
4140
- if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4141
- const te = Xe(D);
4142
- (J = window.parent) == null || J.postMessage(te, "*");
4231
+ ).forEach((W) => {
4232
+ var U, E;
4233
+ if (!((U = W.models) != null && U.length) || W.models.includes(e.model)) {
4234
+ const B = ct(W);
4235
+ (E = window.parent) == null || E.postMessage(B, "*");
4143
4236
  }
4144
4237
  }), window.addEventListener(
4145
4238
  "builder:component:stateChangeListenerActivated",
4146
- S
4239
+ p
4147
4240
  ));
4148
- const E = e.builderContextSignal.content && M(e.canTrack), A = Ze({
4149
- name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4241
+ const A = e.builderContextSignal.content && X(e.canTrack), F = ut({
4242
+ name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4150
4243
  canTrack: !0
4151
- }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4152
- if (E && W === A) {
4153
- const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4154
- pe({
4244
+ }), O = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId;
4245
+ if (A && O === F) {
4246
+ const W = (S = e.builderContextSignal.content) == null ? void 0 : S.id, U = e.apiKey;
4247
+ Te({
4155
4248
  apiHost: e.apiHost,
4156
4249
  type: "impression",
4157
4250
  canTrack: !0,
4158
- contentId: D,
4159
- apiKey: F,
4160
- variationId: A !== D ? A : void 0
4251
+ contentId: W,
4252
+ apiKey: U,
4253
+ variationId: F !== W ? F : void 0
4161
4254
  });
4162
4255
  }
4163
- if (X() && !N()) {
4164
- const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4165
- `builder.overrides.${F}`
4166
- ), te = D.get("apiKey") || D.get("builder.space");
4167
- (F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Be({
4256
+ if (oe() && !L()) {
4257
+ const W = new URL(location.href).searchParams, U = W.get("builder.preview"), E = W.get(
4258
+ `builder.overrides.${U}`
4259
+ ), B = W.get("apiKey") || W.get("builder.space");
4260
+ (U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
4168
4261
  model: e.model,
4169
4262
  apiKey: e.apiKey,
4170
4263
  apiVersion: e.builderContextSignal.apiVersion,
4171
- ...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
4264
+ ...U === "BUILDER_STUDIO" && ((w = e.context) != null && w.symbolId) ? {
4172
4265
  query: {
4173
4266
  id: e.context.symbolId
4174
4267
  }
4175
4268
  } : {}
4176
- }).then((ge) => {
4177
- ge && i(ge);
4269
+ }).then((N) => {
4270
+ N && i(N);
4178
4271
  });
4179
4272
  }
4180
4273
  }
4181
4274
  }, []), P(() => {
4182
4275
  e.content && i(e.content);
4183
4276
  }, [e.content]), P(() => {
4184
- S();
4277
+ p();
4185
4278
  }, [e.builderContextSignal.rootState]), P(() => {
4186
4279
  e.data && n(e.data);
4187
4280
  }, [e.data]), P(() => {
@@ -4189,22 +4282,22 @@ function gi(e) {
4189
4282
  locale: e.locale
4190
4283
  });
4191
4284
  }, [e.locale]), P(() => () => {
4192
- U() && (window.removeEventListener("message", l), window.removeEventListener(
4285
+ K() && (window.removeEventListener("message", l), window.removeEventListener(
4193
4286
  "builder:component:stateChangeListenerActivated",
4194
- S
4287
+ p
4195
4288
  ));
4196
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4197
- r,
4289
+ }, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
4290
+ o,
4198
4291
  {
4199
4292
  ref: t,
4200
- onClick: (w) => f(w),
4201
- "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4293
+ onClick: (T) => d(T),
4294
+ "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
4202
4295
  "builder-model": e.model,
4203
- className: hi(
4204
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4296
+ className: Pi(
4297
+ ((k = e.content) == null ? void 0 : k.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4205
4298
  ),
4206
4299
  style: {
4207
- display: !e.builderContextSignal.content && Re() ? "none" : void 0
4300
+ display: !e.builderContextSignal.content && We() ? "none" : void 0
4208
4301
  },
4209
4302
  ...a(),
4210
4303
  ...e.contentWrapperProps,
@@ -4212,21 +4305,21 @@ function gi(e) {
4212
4305
  }
4213
4306
  ) : null });
4214
4307
  }
4215
- function bi(e) {
4216
- const [t, n] = I(
4308
+ function Ai(e) {
4309
+ const [t, n] = C(
4217
4310
  () => `
4218
- ${di({
4311
+ ${wi({
4219
4312
  cssCode: e.cssCode,
4220
4313
  contentId: e.contentId
4221
4314
  })}
4222
- ${ui({
4315
+ ${Ii({
4223
4316
  customFonts: e.customFonts
4224
4317
  })}
4225
- ${fi(e.isNestedRender)}
4318
+ ${Ri(e.isNestedRender)}
4226
4319
  `.trim()
4227
4320
  );
4228
4321
  return /* @__PURE__ */ s(
4229
- K,
4322
+ ee,
4230
4323
  {
4231
4324
  id: "builderio-content",
4232
4325
  styles: t,
@@ -4234,15 +4327,15 @@ ${fi(e.isNestedRender)}
4234
4327
  }
4235
4328
  );
4236
4329
  }
4237
- const pi = ({
4330
+ const Bi = ({
4238
4331
  content: e,
4239
4332
  data: t,
4240
4333
  locale: n
4241
4334
  }) => {
4242
- var r, o, l;
4243
- const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4244
- return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((d) => {
4245
- d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4335
+ var o, r, l;
4336
+ const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4337
+ return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
4338
+ c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
4246
4339
  }), {
4247
4340
  ...i,
4248
4341
  ...a,
@@ -4251,7 +4344,7 @@ const pi = ({
4251
4344
  locale: n
4252
4345
  } : {}
4253
4346
  };
4254
- }, yi = ({
4347
+ }, Ni = ({
4255
4348
  content: e,
4256
4349
  data: t
4257
4350
  }) => e ? {
@@ -4262,46 +4355,46 @@ const pi = ({
4262
4355
  },
4263
4356
  meta: e == null ? void 0 : e.meta
4264
4357
  } : void 0;
4265
- function Ve(e) {
4266
- var u, h, g, c, v, f, b, S, p;
4267
- const [t, n] = I(
4358
+ function De(e) {
4359
+ var u, f, g, m, v, d, h, p, y;
4360
+ const [t, n] = C(
4268
4361
  () => {
4269
- var k, C;
4270
- return ai({
4362
+ var x, k;
4363
+ return vi({
4271
4364
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4272
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4365
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
4273
4366
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4274
- contentId: (C = e.content) == null ? void 0 : C.id
4367
+ contentId: (k = e.content) == null ? void 0 : k.id
4275
4368
  });
4276
4369
  }
4277
4370
  );
4278
- function i(k) {
4279
- l((C) => ({
4280
- ...C,
4281
- rootState: k
4371
+ function i(x) {
4372
+ l((k) => ({
4373
+ ...k,
4374
+ rootState: x
4282
4375
  }));
4283
4376
  }
4284
- const [a, r] = I(
4377
+ const [a, o] = C(
4285
4378
  () => [
4286
- ...we(),
4379
+ ...Be(),
4287
4380
  ...e.customComponents || []
4288
4381
  ].reduce(
4289
- (k, { component: C, ...V }) => ({
4290
- ...k,
4382
+ (x, { component: k, ...V }) => ({
4383
+ ...x,
4291
4384
  [V.name]: {
4292
- component: C,
4293
- ...ye(V)
4385
+ component: k,
4386
+ ...Ie(V)
4294
4387
  }
4295
4388
  }),
4296
4389
  {}
4297
4390
  )
4298
- ), [o, l] = I(() => ({
4299
- content: yi({
4391
+ ), [r, l] = C(() => ({
4392
+ content: Ni({
4300
4393
  content: e.content,
4301
4394
  data: e.data
4302
4395
  }),
4303
4396
  localState: void 0,
4304
- rootState: pi({
4397
+ rootState: Bi({
4305
4398
  content: e.content,
4306
4399
  data: e.data,
4307
4400
  locale: e.locale
@@ -4312,12 +4405,12 @@ function Ve(e) {
4312
4405
  apiKey: e.apiKey,
4313
4406
  apiVersion: e.apiVersion,
4314
4407
  componentInfos: [
4315
- ...we(),
4408
+ ...Be(),
4316
4409
  ...e.customComponents || []
4317
4410
  ].reduce(
4318
- (k, { component: C, ...V }) => ({
4319
- ...k,
4320
- [V.name]: ye(V)
4411
+ (x, { component: k, ...V }) => ({
4412
+ ...x,
4413
+ [V.name]: Ie(V)
4321
4414
  }),
4322
4415
  {}
4323
4416
  ),
@@ -4326,31 +4419,31 @@ function Ve(e) {
4326
4419
  BlocksWrapperProps: e.blocksWrapperProps || {},
4327
4420
  nonce: e.nonce || "",
4328
4421
  model: e.model
4329
- })), d = L(!1);
4330
- if (!d.current) {
4331
- e.apiKey || z.error(
4422
+ })), c = H(!1);
4423
+ if (!c.current) {
4424
+ e.apiKey || Z.error(
4332
4425
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4333
4426
  );
4334
- const k = (h = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
4335
- k && _({
4336
- code: k,
4427
+ const x = (f = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4428
+ x && J({
4429
+ code: x,
4337
4430
  context: e.context || {},
4338
4431
  localState: void 0,
4339
- rootState: o.rootState,
4340
- rootSetState: (C) => {
4341
- Object.assign(o.rootState, C);
4432
+ rootState: r.rootState,
4433
+ rootSetState: (k) => {
4434
+ Object.assign(r.rootState, k);
4342
4435
  },
4343
4436
  isExpression: !1
4344
- }), d.current = !0;
4437
+ }), c.current = !0;
4345
4438
  }
4346
4439
  return /* @__PURE__ */ s(
4347
- De.Provider,
4440
+ He.Provider,
4348
4441
  {
4349
4442
  value: {
4350
4443
  registeredComponents: a
4351
4444
  },
4352
- children: /* @__PURE__ */ B(
4353
- gi,
4445
+ children: /* @__PURE__ */ $(
4446
+ Vi,
4354
4447
  {
4355
4448
  apiHost: e.apiHost,
4356
4449
  nonce: e.nonce,
@@ -4363,7 +4456,7 @@ function Ve(e) {
4363
4456
  locale: e.locale,
4364
4457
  enrich: e.enrich,
4365
4458
  showContent: e.showContent,
4366
- builderContextSignal: o,
4459
+ builderContextSignal: r,
4367
4460
  contentWrapper: e.contentWrapper,
4368
4461
  contentWrapperProps: e.contentWrapperProps,
4369
4462
  trustedHosts: e.trustedHosts,
@@ -4371,7 +4464,7 @@ function Ve(e) {
4371
4464
  setBuilderContextSignal: l,
4372
4465
  children: [
4373
4466
  e.isSsrAbTest ? /* @__PURE__ */ s(
4374
- Y,
4467
+ q,
4375
4468
  {
4376
4469
  id: "builderio-variant-visibility",
4377
4470
  scriptStr: t,
@@ -4379,20 +4472,20 @@ function Ve(e) {
4379
4472
  }
4380
4473
  ) : null,
4381
4474
  /* @__PURE__ */ s(
4382
- bi,
4475
+ Ai,
4383
4476
  {
4384
4477
  nonce: e.nonce || "",
4385
4478
  isNestedRender: e.isNestedRender,
4386
- contentId: (g = o.content) == null ? void 0 : g.id,
4387
- cssCode: (v = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
4388
- customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4479
+ contentId: (g = r.content) == null ? void 0 : g.id,
4480
+ cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4481
+ customFonts: (h = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4389
4482
  }
4390
4483
  ),
4391
4484
  /* @__PURE__ */ s(
4392
- $,
4485
+ _,
4393
4486
  {
4394
- blocks: (p = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
4395
- context: o,
4487
+ blocks: (y = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4488
+ context: r,
4396
4489
  registeredComponents: a,
4397
4490
  linkComponent: e.linkComponent
4398
4491
  }
@@ -4403,50 +4496,60 @@ function Ve(e) {
4403
4496
  }
4404
4497
  );
4405
4498
  }
4406
- function vi(e) {
4407
- var o;
4408
- const [t, n] = I(
4409
- () => Zn({
4410
- canTrack: M(e.canTrack),
4499
+ function $i(e) {
4500
+ var r;
4501
+ const [t, n] = C(
4502
+ () => hi({
4503
+ canTrack: X(e.canTrack),
4411
4504
  content: e.content
4412
4505
  })
4413
4506
  );
4414
4507
  function i() {
4415
4508
  var l;
4416
- return ii(
4417
- G(e.content).map((d) => ({
4418
- id: d.testVariationId,
4419
- testRatio: d.testRatio
4509
+ return pi(
4510
+ ae(e.content).map((c) => ({
4511
+ id: c.testVariationId,
4512
+ testRatio: c.testRatio
4420
4513
  })),
4421
4514
  ((l = e.content) == null ? void 0 : l.id) || ""
4422
4515
  );
4423
4516
  }
4424
4517
  function a() {
4425
- return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4518
+ return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4426
4519
  }
4427
- function r() {
4520
+ function o() {
4428
4521
  var l;
4429
4522
  return t ? {
4430
4523
  ...e.content,
4431
4524
  testVariationId: (l = e.content) == null ? void 0 : l.id
4432
- } : tt({
4525
+ } : mt({
4433
4526
  item: e.content,
4434
- canTrack: M(e.canTrack)
4527
+ canTrack: X(e.canTrack)
4435
4528
  });
4436
4529
  }
4437
4530
  return P(() => {
4438
- }, []), /* @__PURE__ */ B(R, { children: [
4439
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4440
- Y,
4441
- {
4442
- id: "builderio-init-variants-fns",
4443
- scriptStr: ni(),
4444
- nonce: e.nonce || ""
4445
- }
4446
- ) : null,
4447
- t ? /* @__PURE__ */ B(R, { children: [
4531
+ }, []), /* @__PURE__ */ $(R, { children: [
4532
+ !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
4533
+ /* @__PURE__ */ s(
4534
+ q,
4535
+ {
4536
+ id: "builderio-init-variants-fns",
4537
+ scriptStr: yi(),
4538
+ nonce: e.nonce || ""
4539
+ }
4540
+ ),
4541
+ nt.includes(D) ? /* @__PURE__ */ s(
4542
+ q,
4543
+ {
4544
+ id: "builderio-init-personalization-variants-fns",
4545
+ nonce: e.nonce || "",
4546
+ scriptStr: Cn()
4547
+ }
4548
+ ) : null
4549
+ ] }) : null,
4550
+ t ? /* @__PURE__ */ $(R, { children: [
4448
4551
  /* @__PURE__ */ s(
4449
- K,
4552
+ ee,
4450
4553
  {
4451
4554
  id: "builderio-variants",
4452
4555
  styles: a(),
@@ -4454,15 +4557,15 @@ function vi(e) {
4454
4557
  }
4455
4558
  ),
4456
4559
  /* @__PURE__ */ s(
4457
- Y,
4560
+ q,
4458
4561
  {
4459
4562
  id: "builderio-variants-visibility",
4460
4563
  scriptStr: i(),
4461
4564
  nonce: e.nonce || ""
4462
4565
  }
4463
4566
  ),
4464
- (o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4465
- Ve,
4567
+ (r = ae(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4568
+ De,
4466
4569
  {
4467
4570
  apiHost: e.apiHost,
4468
4571
  isNestedRender: e.isNestedRender,
@@ -4490,12 +4593,12 @@ function vi(e) {
4490
4593
  ))
4491
4594
  ] }) : null,
4492
4595
  /* @__PURE__ */ s(
4493
- Ve,
4596
+ De,
4494
4597
  {
4495
4598
  apiHost: e.apiHost,
4496
4599
  nonce: e.nonce,
4497
4600
  isNestedRender: e.isNestedRender,
4498
- content: r(),
4601
+ content: o(),
4499
4602
  showContent: !0,
4500
4603
  model: e.model,
4501
4604
  data: e.data,
@@ -4517,13 +4620,13 @@ function vi(e) {
4517
4620
  )
4518
4621
  ] });
4519
4622
  }
4520
- const xi = async ({
4623
+ const Wi = async ({
4521
4624
  builderContextValue: e,
4522
4625
  symbol: t
4523
4626
  }) => {
4524
4627
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4525
4628
  (e != null && e.apiKey))
4526
- return Be({
4629
+ return Le({
4527
4630
  model: t.model,
4528
4631
  apiKey: e.apiKey,
4529
4632
  apiVersion: e.apiVersion,
@@ -4533,11 +4636,11 @@ const xi = async ({
4533
4636
  }
4534
4637
  }
4535
4638
  }).catch((n) => {
4536
- z.error("Could not fetch symbol content: ", n);
4639
+ Z.error("Could not fetch symbol content: ", n);
4537
4640
  });
4538
4641
  };
4539
- function Si(e) {
4540
- var l, d, u, h, g;
4642
+ function Di(e) {
4643
+ var u, f, g, m, v;
4541
4644
  function t() {
4542
4645
  return "div";
4543
4646
  }
@@ -4545,31 +4648,36 @@ function Si(e) {
4545
4648
  return "div";
4546
4649
  }
4547
4650
  function i() {
4548
- var c, v;
4651
+ var d, h;
4549
4652
  return [
4550
4653
  e.attributes[j()],
4551
4654
  "builder-symbol",
4552
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
4553
- (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4655
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4656
+ (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4554
4657
  ].filter(Boolean).join(" ");
4555
4658
  }
4556
- const [a, r] = I(() => {
4557
- var c;
4558
- return (c = e.symbol) == null ? void 0 : c.content;
4659
+ const [a, o] = C(() => {
4660
+ var d;
4661
+ return (d = e.symbol) == null ? void 0 : d.content;
4662
+ }), [r, l] = C(() => {
4663
+ var d;
4664
+ return (d = e.symbol) == null ? void 0 : d.entry;
4559
4665
  });
4560
- function o() {
4561
- a || xi({
4666
+ function c() {
4667
+ var d;
4668
+ a && r === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
4562
4669
  symbol: e.symbol,
4563
4670
  builderContextValue: e.builderContext
4564
- }).then((c) => {
4565
- c && r(c);
4671
+ }).then((h) => {
4672
+ var p;
4673
+ h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
4566
4674
  });
4567
4675
  }
4568
4676
  return P(() => {
4569
4677
  }, []), P(() => {
4570
- o();
4678
+ c();
4571
4679
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4572
- vi,
4680
+ $i,
4573
4681
  {
4574
4682
  nonce: e.builderContext.nonce,
4575
4683
  isNestedRender: !0,
@@ -4577,16 +4685,16 @@ function Si(e) {
4577
4685
  apiKey: e.builderContext.apiKey,
4578
4686
  context: {
4579
4687
  ...e.builderContext.context,
4580
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4688
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4581
4689
  },
4582
4690
  customComponents: Object.values(e.builderComponents),
4583
4691
  data: {
4584
- ...(d = e.symbol) == null ? void 0 : d.data,
4692
+ ...(f = e.symbol) == null ? void 0 : f.data,
4585
4693
  ...e.builderContext.localState,
4586
- ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4694
+ ...(g = a == null ? void 0 : a.data) == null ? void 0 : g.state
4587
4695
  },
4588
4696
  canTrack: e.builderContext.canTrack,
4589
- model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
4697
+ model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4590
4698
  content: a,
4591
4699
  linkComponent: e.builderLinkComponent,
4592
4700
  blocksWrapper: t(),
@@ -4595,16 +4703,16 @@ function Si(e) {
4595
4703
  ) });
4596
4704
  }
4597
4705
  export {
4598
- $ as Blocks,
4599
- me as BuilderContext,
4600
- dt as Button,
4601
- Xt as Columns,
4602
- vi as Content,
4603
- Zt as Fragment,
4604
- nn as Image,
4605
- an as Section,
4606
- Si as Symbol,
4607
- En as Text,
4608
- Gn as Video,
4609
- Vi as setClientUserAttributes
4706
+ _ as Blocks,
4707
+ ve as BuilderContext,
4708
+ kt as Button,
4709
+ un as Columns,
4710
+ $i as Content,
4711
+ dn as Fragment,
4712
+ hn as Image,
4713
+ gn as Section,
4714
+ Di as Symbol,
4715
+ Hn as Text,
4716
+ ui as Video,
4717
+ qi as setClientUserAttributes
4610
4718
  };