@bravostudioai/react 0.1.45 → 0.1.47

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.
@@ -1,95 +1,95 @@
1
- import { jsx as d, jsxs as it, Fragment as pt } from "react/jsx-runtime";
2
- import v, { useContext as M, useMemo as Ht, useState as Mt, useCallback as Nt } from "react";
1
+ import { jsx as d, jsxs as pt, Fragment as Vt } from "react/jsx-runtime";
2
+ import v, { useContext as N, useMemo as Ht, useState as Nt, useCallback as Ot } from "react";
3
3
  import q from "./contexts/EncoreBindingContext.js";
4
- import $ from "./stores/useEncoreState.js";
5
- import lt from "./contexts/EncoreComponentIdContext.js";
6
- import Ot from "axios";
7
- import ht from "./contexts/EncoreActionContext.js";
4
+ import k from "./stores/useEncoreState.js";
5
+ import st from "./contexts/EncoreComponentIdContext.js";
6
+ import Mt from "axios";
7
+ import ft from "./contexts/EncoreActionContext.js";
8
8
  import Gt from "./contexts/EncoreRepeatingContainerContext.js";
9
- const ct = v.createContext({}), H = v.createContext(
9
+ const lt = v.createContext({}), H = v.createContext(
10
10
  {}
11
- ), st = (t) => t.replace(/#(\w{2})(\w{6})/, "#$2$1"), jt = (t) => t.slice(1, 3) === "00", Ut = (t) => {
11
+ ), at = (t) => t.replace(/#(\w{2})(\w{6})/, "#$2$1"), jt = (t) => t.slice(1, 3) === "00", Ut = (t) => {
12
12
  if (!Array.isArray(t)) return null;
13
13
  const r = t.find((n) => n.startsWith("input-group:"));
14
14
  if (!r) return null;
15
15
  const e = r.split(":");
16
16
  return e.length >= 3 ? { type: e[1], groupName: e[2] } : null;
17
- }, rt = () => {
18
- const [t, r] = Mt({ width: 0, height: 0 }), e = v.useRef(null);
17
+ }, it = () => {
18
+ const [t, r] = Nt({ width: 0, height: 0 }), e = v.useRef(null);
19
19
  return v.useEffect(() => {
20
20
  if (!e.current) return;
21
21
  const n = e.current, i = () => {
22
- const { width: o, height: p } = n.getBoundingClientRect();
23
- r({ width: o, height: p });
22
+ const { width: o, height: f } = n.getBoundingClientRect();
23
+ r({ width: o, height: f });
24
24
  };
25
25
  i(), requestAnimationFrame(() => {
26
26
  i();
27
27
  });
28
28
  const s = new ResizeObserver((o) => {
29
- for (const p of o) {
30
- const a = p.contentRect;
29
+ for (const f of o) {
30
+ const a = f.contentRect;
31
31
  r({ width: a.width, height: a.height });
32
32
  }
33
33
  });
34
34
  return s.observe(n), () => s.disconnect();
35
35
  }, []), { dimensions: t, ref: e };
36
36
  }, W = (t, r = {}) => {
37
- const e = M(ct), n = M(H), i = {
37
+ const e = N(lt), n = N(H), i = {
38
38
  width: window.innerWidth,
39
39
  height: window.innerHeight
40
- }, s = Nt(
40
+ }, s = Ot(
41
41
  (l) => (n.dimensions?.width ?? 0) * 0.01 * l,
42
42
  [n.dimensions?.width]
43
43
  ), o = {};
44
44
  r = { debug: !1, ...r };
45
- const p = $((l) => l.fontsById || {});
46
- if ($((l) => l.fontsByIdFull || {}), !t || !t) return;
47
- const a = n.dimensions?.width ?? i.width, g = n.dimensions?.height ?? i.height;
45
+ const f = k((l) => l.fontsById || {});
46
+ if (k((l) => l.fontsByIdFull || {}), !t || !t) return;
47
+ const a = n.dimensions?.width ?? i.width, h = n.dimensions?.height ?? i.height;
48
48
  t.layout?.mode === "GRID" && console.log("[DEBUG] GRID MODE DETECTED", {
49
49
  id: "unknown",
50
50
  // style object doesn't have ID context here easily without prop drill
51
51
  layout: t.layout
52
- }), t.layout?.layoutSizingHorizontal || t.layout?.layoutSizingVertical || (t.width && a > 0 && (o.width = t.width * a * 0.01), t.aspectRatio && t.width ? a > 0 && (o.height = t.width * a * 0.01 / t.aspectRatio) : t.height && g > 0 && (o.height = t.height * g * 0.01));
53
- const f = n?.isFlex ?? !1;
54
- if (!f && t.positioning) {
55
- const l = t.layout?.layoutSizingHorizontal === "FIXED" || t.layout?.layoutSizingVertical === "FIXED", I = l && t.positioning.top < 0 ? 0 : t.positioning.top, F = l && t.positioning.left < 0 ? 0 : t.positioning.left;
56
- let w = !1;
57
- t.horizontalPosition === "center" && (w = !0), o.top = `${I}%`;
58
- const k = !!t.inset;
59
- if (w) {
60
- if (k) {
61
- const T = String(t.inset).split(/\s+/);
62
- T.length === 3 ? o.inset = `${T[0]} 50% ${T[2]} auto` : T.length === 4 && (o.inset = `${T[0]} 50% ${T[2]} auto`), delete o.left, delete o.right;
52
+ }), t.layout?.layoutSizingHorizontal || t.layout?.layoutSizingVertical || (t.width && a > 0 && (o.width = t.width * a * 0.01), t.aspectRatio && t.width ? a > 0 && (o.height = t.width * a * 0.01 / t.aspectRatio) : t.height && h > 0 && (o.height = t.height * h * 0.01));
53
+ const g = n?.isFlex ?? !1;
54
+ if (!g && t.positioning) {
55
+ const l = t.layout?.layoutSizingHorizontal === "FIXED" || t.layout?.layoutSizingVertical === "FIXED", S = l && t.positioning.top < 0 ? 0 : t.positioning.top, w = l && t.positioning.left < 0 ? 0 : t.positioning.left;
56
+ let L = !1;
57
+ t.horizontalPosition === "center" && (L = !0), o.top = `${S}%`;
58
+ const E = !!t.inset;
59
+ if (L) {
60
+ if (E) {
61
+ const c = String(t.inset).split(/\s+/);
62
+ c.length === 3 ? o.inset = `${c[0]} 50% ${c[2]} auto` : c.length === 4 && (o.inset = `${c[0]} 50% ${c[2]} auto`), delete o.left, delete o.right;
63
63
  } else
64
64
  o.left = "50%", o.right = "auto";
65
65
  o.transform = "translateX(-50%)";
66
66
  } else
67
- k ? o.inset = t.inset : o.left = `${F}%`;
67
+ E ? o.inset = t.inset : o.left = `${w}%`;
68
68
  l ? (o.right = "auto", o.bottom = "auto") : (t.positioning.bottom !== void 0 && (o.bottom = `${t.positioning.bottom}%`), t.positioning.right !== void 0 && (o.right = `${t.positioning.right}%`)), o.position = "absolute";
69
69
  }
70
70
  if (t.layout?.padding) {
71
- const l = e.scaleFactor ?? 1, I = t.layout.padding;
72
- I.top !== void 0 && (o.paddingTop = I.top * l), I.right !== void 0 && (o.paddingRight = I.right * l), I.bottom !== void 0 && (o.paddingBottom = I.bottom * l), I.left !== void 0 && (o.paddingLeft = I.left * l);
71
+ const l = e.scaleFactor ?? 1, S = t.layout.padding;
72
+ S.top !== void 0 && (o.paddingTop = S.top * l), S.right !== void 0 && (o.paddingRight = S.right * l), S.bottom !== void 0 && (o.paddingBottom = S.bottom * l), S.left !== void 0 && (o.paddingLeft = S.left * l);
73
73
  }
74
74
  if (t.layout?.mode) {
75
75
  o.display = "flex";
76
- const l = (T) => T ? {
76
+ const l = (c) => c ? {
77
77
  MIN: "flex-start",
78
78
  MAX: "flex-end",
79
79
  CENTER: "center",
80
80
  SPACE_BETWEEN: "space-between",
81
81
  SPACE_AROUND: "space-around",
82
82
  SPACE_EVENLY: "space-evenly"
83
- }[T] || T.toLowerCase().replace(/_/g, "-") : void 0;
83
+ }[c] || c.toLowerCase().replace(/_/g, "-") : void 0;
84
84
  t.layout.mode == "HORIZONTAL" || t.layout.mode == "GRID" ? (o.flexDirection = "row", t.layout.flexWrap && (o.flexWrap = t.layout.flexWrap), o.justifyContent = l(
85
85
  t.layout.primaryAxisAlignItems
86
86
  ), o.alignItems = t.layout.counterAxisAlignItems) : (o.flexDirection = "column", o.justifyContent = l(
87
87
  t.layout.primaryAxisAlignItems
88
88
  ), o.alignItems = t.layout.counterAxisAlignItems), o.flexGrow = t.layout.grow, t.layout.wrap === "WRAP" || t.layout.flexWrap === "wrap" || t.layout.mode === "GRID" ? o.flexWrap = "wrap" : t.layout.flexWrap ? o.flexWrap = t.layout.flexWrap : o.flexWrap = "nowrap";
89
- const I = t.layout.itemSpacing, F = e.scaleFactor ?? 1, k = t.layout.primaryAxisAlignItems === "SPACE_BETWEEN" ? 0 : (I !== void 0 ? I : 0) * F;
90
- o.gap = k === 0 ? "0px" : `${k}px`, o.rowGap = k === 0 ? "0px" : `${k}px`, o.columnGap = k === 0 ? "0px" : `${k}px`, (o.flexWrap === "wrap" || o.flexWrap === "wrap-reverse") && (o.alignContent = "flex-start"), r.debug || t.layout?.mode === "HORIZONTAL" && I === 0 ? console.log("[useEncoreStyle] Setting gap properties:", {
91
- itemSpacing: I,
92
- spacing: k,
89
+ const S = t.layout.itemSpacing, w = e.scaleFactor ?? 1, E = t.layout.primaryAxisAlignItems === "SPACE_BETWEEN" ? 0 : (S !== void 0 ? S : 0) * w;
90
+ o.gap = E === 0 ? "0px" : `${E}px`, o.rowGap = E === 0 ? "0px" : `${E}px`, o.columnGap = E === 0 ? "0px" : `${E}px`, (o.flexWrap === "wrap" || o.flexWrap === "wrap-reverse") && (o.alignContent = "flex-start"), r.debug || t.layout?.mode === "HORIZONTAL" && S === 0 ? console.log("[useEncoreStyle] Setting gap properties:", {
91
+ itemSpacing: S,
92
+ spacing: E,
93
93
  gap: o.gap,
94
94
  rowGap: o.rowGap,
95
95
  columnGap: o.columnGap,
@@ -99,10 +99,10 @@ const ct = v.createContext({}), H = v.createContext(
99
99
  "[useEncoreStyle] No gap properties set",
100
100
  r.debug,
101
101
  t.layout?.mode,
102
- I
102
+ S
103
103
  );
104
104
  }
105
- if (t.layout?.layoutSizingHorizontal === "FILL" && (f || (o.width = "100%")), t.layout?.layoutSizingHorizontal === "FIXED") {
105
+ if (t.layout?.layoutSizingHorizontal === "FILL" && (g || (o.width = "100%")), t.layout?.layoutSizingHorizontal === "FIXED") {
106
106
  const l = e.scaleFactor ?? 1;
107
107
  o.width = t.layout.size.x * l;
108
108
  }
@@ -112,12 +112,12 @@ const ct = v.createContext({}), H = v.createContext(
112
112
  }
113
113
  if (t.layout?.layoutSizingVertical === "FILL")
114
114
  if (!(n?.isFlex ?? !1) && t.positioning && t.positioning?.top !== void 0) {
115
- const w = 100 - t.positioning.top;
116
- o.height = `${w}%`;
115
+ const L = 100 - t.positioning.top;
116
+ o.height = `${L}%`;
117
117
  } else
118
118
  o.height = "100%";
119
- t.layout?.layoutSizingVertical, t.backgroundColor && !jt(t.backgroundColor) && (o.backgroundColor = st(t.backgroundColor)), t.color && (o.color = st(t.color)), t.lineHeightPx && (o.lineHeight = (t.lineHeightPx * (e.scaleFactor ?? 1)).toString() + "px"), t.fontSize && (o.fontSize = t.fontSize * (e.scaleFactor ?? 1)), t.fontWeight && (o.fontWeight = `${t.fontWeight}`), t.opacity && (o.opacity = t.opacity * 0.01);
120
- const y = (t.fontId ? p[t.fontId] : void 0) || t.fontFamily || void 0;
119
+ t.layout?.layoutSizingVertical, t.backgroundColor && !jt(t.backgroundColor) && (o.backgroundColor = at(t.backgroundColor)), t.color && (o.color = at(t.color)), t.lineHeightPx && (o.lineHeight = (t.lineHeightPx * (e.scaleFactor ?? 1)).toString() + "px"), t.fontSize && (o.fontSize = t.fontSize * (e.scaleFactor ?? 1)), t.fontWeight && (o.fontWeight = `${t.fontWeight}`), t.opacity && (o.opacity = t.opacity * 0.01);
120
+ const y = (t.fontId ? f[t.fontId] : void 0) || t.fontFamily || void 0;
121
121
  if (y ? ([
122
122
  "sans-serif",
123
123
  "serif",
@@ -138,9 +138,9 @@ const ct = v.createContext({}), H = v.createContext(
138
138
  const l = t.cornerRadii.map(s);
139
139
  o.borderTopLeftRadius = l[0], o.borderTopRightRadius = l[1], o.borderBottomRightRadius = l[2], o.borderBottomLeftRadius = l[3], delete o.borderRadius;
140
140
  }
141
- return t.borderWidth && (t.borderWidth > 5 ? o.borderWidth = t.borderWidth * 0.5 : o.borderWidth = t.borderWidth * 1.5), t.borderColor && (o.borderColor = st(t.borderColor)), (t.borderWidth || t.borderColor) && (o.borderStyle = "solid"), t.rotation && (o.transform = `rotate(${t.rotation}deg)`), t.textCase === "upper" && (o.textTransform = "uppercase"), t.textCase === "lower" && (o.textTransform = "lowercase"), t.letterSpacing && (o.letterSpacing = t.letterSpacing), t.textAlign && (o.textAlign = t.textAlign), r.debug && (o.borderWidth = 1, o.borderColor = "#FF0000FF", o.borderStyle = "solid"), o;
141
+ return t.borderWidth && (t.borderWidth > 5 ? o.borderWidth = t.borderWidth * 0.5 : o.borderWidth = t.borderWidth * 1.5), t.borderColor && (o.borderColor = at(t.borderColor)), (t.borderWidth || t.borderColor) && (o.borderStyle = "solid"), t.rotation && (o.transform = `rotate(${t.rotation}deg)`), t.textCase === "upper" && (o.textTransform = "uppercase"), t.textCase === "lower" && (o.textTransform = "lowercase"), t.letterSpacing && (o.letterSpacing = t.letterSpacing), t.textAlign && (o.textAlign = t.textAlign), r.debug && (o.borderWidth = 1, o.borderColor = "#FF0000FF", o.borderStyle = "solid"), o;
142
142
  }, J = ({ id: t, nodeData: r }) => {
143
- const e = M(q), n = e?.nodeData?.[t], { patch: i, list: s } = n ?? { list: null, patch: null }, p = Array.isArray(r?.tags) && (r.tags.includes("encore:data:array") || r.tags.includes("bravo:data:array")) && e?.arrayDataById && e.arrayDataById[t] && Array.isArray(e.arrayDataById[t]) ? e.arrayDataById[t] : null;
143
+ const e = N(q), n = e?.nodeData?.[t], { patch: i, list: s } = n ?? { list: null, patch: null }, f = Array.isArray(r?.tags) && (r.tags.includes("encore:data:array") || r.tags.includes("bravo:data:array")) && e?.arrayDataById && e.arrayDataById[t] && Array.isArray(e.arrayDataById[t]) ? e.arrayDataById[t] : null;
144
144
  let a = i ? {
145
145
  ...r,
146
146
  ...i || {},
@@ -148,45 +148,45 @@ const ct = v.createContext({}), H = v.createContext(
148
148
  // Preserve original actions if patch has empty or missing actions
149
149
  actions: i.actions && Array.isArray(i.actions) && i.actions.length > 0 ? i.actions : r.actions || i.actions || []
150
150
  } : r;
151
- const g = e?.textOverridesById && e.textOverridesById[t] !== void 0 ? e.textOverridesById[t] : void 0;
152
- g !== void 0 && Array.isArray(r?.tags) && r.tags.includes("PROP:TEXT_VAR") && (a = {
151
+ const h = e?.textOverridesById && e.textOverridesById[t] !== void 0 ? e.textOverridesById[t] : void 0;
152
+ h !== void 0 && Array.isArray(r?.tags) && r.tags.includes("PROP:TEXT_VAR") && (a = {
153
153
  ...a,
154
- data: { ...a?.data || {}, text: String(g) }
154
+ data: { ...a?.data || {}, text: String(h) }
155
155
  });
156
- const E = Array.isArray(r?.tags) && (r.tags.includes("encore:data") || r.tags.includes("bravo:data")), f = e?.rootData;
157
- f && f[t] && typeof f[t] == "object" && (a = {
156
+ const I = Array.isArray(r?.tags) && (r.tags.includes("encore:data") || r.tags.includes("bravo:data")), g = e?.rootData;
157
+ g && g[t] && typeof g[t] == "object" && (a = {
158
158
  ...a,
159
159
  data: {
160
160
  ...a.data || {},
161
- ...f[t]
161
+ ...g[t]
162
162
  }
163
163
  });
164
164
  const y = e?.nodeData && typeof e.nodeData == "object";
165
- if (E || y) {
165
+ if (I || y) {
166
166
  const l = e?.nodeData;
167
167
  if (l && typeof l == "object") {
168
168
  if (l[t] !== void 0) {
169
- const F = l[t];
170
- F && typeof F == "object" && a.data && (a = {
169
+ const w = l[t];
170
+ w && typeof w == "object" && a.data && (a = {
171
171
  ...a,
172
172
  data: {
173
173
  ...a.data,
174
- ...F
174
+ ...w
175
175
  }
176
176
  });
177
- } else if (E && l.description && a.data && (a = {
177
+ } else if (I && l.description && a.data && (a = {
178
178
  ...a,
179
179
  data: {
180
180
  ...a.data,
181
181
  text: l.description
182
182
  }
183
183
  }), l.image && a.data) {
184
- const F = l.image.startsWith("//") ? `https:${l.image}` : l.image;
184
+ const w = l.image.startsWith("//") ? `https:${l.image}` : l.image;
185
185
  a = {
186
186
  ...a,
187
187
  data: {
188
188
  ...a.data,
189
- imageUrl: F
189
+ imageUrl: w
190
190
  }
191
191
  };
192
192
  }
@@ -195,10 +195,10 @@ const ct = v.createContext({}), H = v.createContext(
195
195
  }
196
196
  return {
197
197
  patch: i,
198
- list: s || p,
198
+ list: s || f,
199
199
  // Use arrayData if list is not provided
200
200
  patchedNodeData: a,
201
- arrayData: p
201
+ arrayData: f
202
202
  // Also return separately for components that need it
203
203
  };
204
204
  }, Q = ({
@@ -209,37 +209,30 @@ const ct = v.createContext({}), H = v.createContext(
209
209
  _parentInputGroupInfo: i,
210
210
  _parentName: s
211
211
  }) => {
212
- const o = $((h) => h.baseURL), p = $((h) => h.appId);
213
- $((h) => h.pageId);
214
- const { onAction: a } = v.useContext(ht), { statefulSetId: g } = v.useContext(
215
- lt
216
- ), E = n || g, { patchedNodeData: f } = J({ id: t, nodeData: r }), y = $(
217
- (h) => h.setStatefulSetVariant
218
- ), l = $(
219
- (h) => h.setInputGroupValue
220
- ), I = $((h) => h.setAccessToken), { app: F } = $((h) => h.app);
221
- F.data?.app?.startPageId, F.data?.app?.PageId;
222
- const w = W(
223
- {
224
- positioning: r.style?.positioning
225
- },
226
- { debug: !1 }
227
- );
228
- w.zIndex = 99999, w.backgroundColor = "transparent", w.position = "absolute", w.top = "0", w.left = "0", w.right = "0", w.bottom = "0", w.width = "100%", w.height = "100%", w.pointerEvents = "auto", w.isolation = "isolate";
229
- const k = async (h) => {
230
- let S = !1;
231
- const G = () => {
232
- S = !1;
212
+ const o = k((c) => c.baseURL), f = k((c) => c.appId);
213
+ k((c) => c.pageId);
214
+ const { onAction: a } = v.useContext(ft), { statefulSetId: h } = v.useContext(
215
+ st
216
+ ), I = n || h, { patchedNodeData: g } = J({ id: t, nodeData: r }), y = k(
217
+ (c) => c.setStatefulSetVariant
218
+ ), l = k(
219
+ (c) => c.setInputGroupValue
220
+ ), S = k((c) => c.setAccessToken), { app: w } = k((c) => c.app);
221
+ w.data?.app?.startPageId, w.data?.app?.PageId;
222
+ const L = async (c) => {
223
+ let $ = !1;
224
+ const A = () => {
225
+ $ = !1;
233
226
  };
234
227
  if (typeof a == "function")
235
228
  try {
236
- await a({ bravo: { cancel: G, action: h, componentId: t } }), S = !0;
229
+ await a({ bravo: { cancel: A, action: c, componentId: t } }), $ = !0;
237
230
  } catch {
238
231
  }
239
232
  else
240
- S = !0;
241
- if (S)
242
- switch (h.action) {
233
+ $ = !0;
234
+ if ($)
235
+ switch (c.action) {
243
236
  case "login":
244
237
  // TODO firebase
245
238
  // TODO oauth
@@ -249,7 +242,7 @@ const ct = v.createContext({}), H = v.createContext(
249
242
  case "submit":
250
243
  break;
251
244
  case "email":
252
- window.location.href = `mailto:${h.params.email}`;
245
+ window.location.href = `mailto:${c.params.email}`;
253
246
  break;
254
247
  case "goback":
255
248
  break;
@@ -258,22 +251,22 @@ const ct = v.createContext({}), H = v.createContext(
258
251
  case "homepage":
259
252
  break;
260
253
  case "logout":
261
- I(void 0);
254
+ S(void 0);
262
255
  break;
263
256
  case "none":
264
257
  break;
265
258
  case "openurl":
266
- window.open(h.params.url, "_blank");
259
+ window.open(c.params.url, "_blank");
267
260
  break;
268
261
  case "phone":
269
- window.location.href = `tel:${h.params.phone}`;
262
+ window.location.href = `tel:${c.params.phone}`;
270
263
  break;
271
264
  case "remote":
272
- const N = btoa(JSON.stringify(h.params?.data || {})), j = `${o}/devices/apps/${p}/node/${t}/trigger/${h.event}?params=${N}`, D = await Ot.post(j);
273
- D.data?.action && await k(D.data);
265
+ const O = btoa(JSON.stringify(c.params?.data || {})), U = `${o}/devices/apps/${f}/node/${t}/trigger/${c.event}?params=${O}`, M = await Mt.post(U);
266
+ M.data?.action && await L(M.data);
274
267
  break;
275
268
  case "set-access-token":
276
- I(h.params);
269
+ S(c.params);
277
270
  break;
278
271
  case "set-state":
279
272
  if (i && s)
@@ -299,65 +292,60 @@ const ct = v.createContext({}), H = v.createContext(
299
292
  componentId: t
300
293
  }
301
294
  }), console.log("✅ Input group change event fired");
302
- } catch (A) {
303
- console.error("❌ Error in onAction callback:", A);
295
+ } catch (G) {
296
+ console.error("❌ Error in onAction callback:", G);
304
297
  }
305
298
  else
306
299
  console.warn("⚠️ No onAction callback provided");
307
300
  else {
308
- let A = E || h.params?.stateSetId || f.data?.stateSetId;
309
- if (!A) {
301
+ let G = I || c.params?.stateSetId || g.data?.stateSetId;
302
+ if (!G) {
310
303
  console.error("❌ No stateSetId found in action or nodeData!", {
311
- actionParams: h.params,
312
- nodeDataStateSetId: f.data?.stateSetId,
313
- parentStatefulSetId: E
304
+ actionParams: c.params,
305
+ nodeDataStateSetId: g.data?.stateSetId,
306
+ parentStatefulSetId: I
314
307
  });
315
308
  break;
316
309
  }
317
- y(A, h.params.state);
310
+ y(G, c.params.state);
318
311
  }
319
312
  break;
320
313
  case "showalert":
321
- alert(h.params.message);
314
+ alert(c.params.message);
322
315
  break;
323
316
  default:
324
- console.log(h), alert(h.action);
317
+ console.log(c), alert(c.action);
325
318
  }
326
319
  };
327
320
  if (r.href)
328
- return /* @__PURE__ */ it(pt, { children: [
329
- /* @__PURE__ */ d(
330
- "button",
331
- {
332
- type: "button",
333
- onClick: () => k({
334
- action: "goto",
335
- params: { href: r.href },
336
- event: "tap"
337
- }),
338
- style: {
339
- ...w,
340
- cursor: "pointer",
341
- background: "transparent",
342
- border: "none",
343
- padding: 0
344
- },
345
- "aria-label": `Go to ${r.href}`
346
- }
347
- ),
348
- e
349
- ] });
350
- let T = f.actions && f.actions.length > 0 ? f.actions : r.actions || [];
351
- if (E && T.length > 0 && (T = T.map((h) => h.action === "set-state" ? (h.params?.stateSetId, {
352
- ...h,
321
+ return /* @__PURE__ */ d(
322
+ "div",
323
+ {
324
+ onClick: () => L({
325
+ action: "goto",
326
+ params: { href: r.href },
327
+ event: "tap"
328
+ }),
329
+ style: {
330
+ display: "contents",
331
+ cursor: "pointer"
332
+ },
333
+ role: "button",
334
+ "aria-label": `Go to ${r.href}`,
335
+ children: e
336
+ }
337
+ );
338
+ let E = g.actions && g.actions.length > 0 ? g.actions : r.actions || [];
339
+ if (I && E.length > 0 && (E = E.map((c) => c.action === "set-state" ? (c.params?.stateSetId, {
340
+ ...c,
353
341
  params: {
354
- ...h.params,
355
- stateSetId: E
342
+ ...c.params,
343
+ stateSetId: I
356
344
  // Always use parent's id
357
345
  }
358
- }) : h)), T.length === 0 && (f.data?.stateSetId || E))
346
+ }) : c)), E.length === 0 && (g.data?.stateSetId || I))
359
347
  if (i && s)
360
- T = [
348
+ E = [
361
349
  {
362
350
  action: "set-state",
363
351
  params: {
@@ -368,13 +356,13 @@ const ct = v.createContext({}), H = v.createContext(
368
356
  }
369
357
  ];
370
358
  else {
371
- const h = E || f.data.stateSetId;
372
- h ? T = [
359
+ const c = I || g.data.stateSetId;
360
+ c ? E = [
373
361
  {
374
362
  action: "set-state",
375
363
  params: {
376
- state: $.getState().statefulSetVariants[h] === "active" ? "default" : "active",
377
- stateSetId: h
364
+ state: k.getState().statefulSetVariants[c] === "active" ? "default" : "active",
365
+ stateSetId: c
378
366
  // Use parent's id or button's stateSetId
379
367
  },
380
368
  event: "tap"
@@ -384,25 +372,35 @@ const ct = v.createContext({}), H = v.createContext(
384
372
  { id: t, name: r.name }
385
373
  );
386
374
  }
387
- if (T && T.length > 0) {
388
- const h = T[0];
389
- return h.event !== "tap" ? e : /* @__PURE__ */ it(pt, { children: [
390
- e,
391
- /* @__PURE__ */ d(
392
- "div",
375
+ if (E && E.length > 0) {
376
+ const c = E[0];
377
+ if (c.event === "tap") {
378
+ const $ = (O) => {
379
+ O.stopPropagation(), L(c);
380
+ }, A = {
381
+ display: "contents",
382
+ cursor: "pointer"
383
+ // Ensure the wrapper doesn't block pointer events, but its children should capture them.
384
+ // pointerEvents: 'auto' is default.
385
+ };
386
+ return c.action === "openurl" && c.params?.url ? /* @__PURE__ */ d(
387
+ "a",
393
388
  {
394
- onClick: (S) => {
395
- S.stopPropagation(), k(h);
389
+ href: c.params.url,
390
+ target: "_blank",
391
+ rel: "noopener noreferrer",
392
+ onClick: (O) => {
393
+ O.stopPropagation();
396
394
  },
397
- onMouseDown: (S) => S.stopPropagation(),
398
- onMouseUp: (S) => S.stopPropagation(),
399
- style: { ...w, cursor: "pointer", pointerEvents: "auto" }
395
+ style: A,
396
+ "aria-label": r.name || "Open Link",
397
+ children: e
400
398
  }
401
- )
402
- ] });
399
+ ) : /* @__PURE__ */ d("div", { onClick: $, style: A, children: e });
400
+ }
403
401
  }
404
402
  return e;
405
- }, dt = ({ id: t, name: r, nodeData: e }) => {
403
+ }, ct = ({ id: t, name: r, nodeData: e }) => {
406
404
  const { patchedNodeData: n } = J({ id: t, nodeData: e }), i = W(n.style, {
407
405
  debug: !1
408
406
  });
@@ -421,34 +419,34 @@ const ct = v.createContext({}), H = v.createContext(
421
419
  e = n;
422
420
  const i = W(e.style, {
423
421
  debug: !1
424
- }), s = $((a) => a.assetsById), o = e.style?.scaleMode || "fill";
422
+ }), s = k((a) => a.assetsById), o = e.style?.scaleMode || "fill";
425
423
  o === "fill" ? i.objectFit = "cover" : o === "fit" && (i.objectFit = "contain"), i.objectPosition = "center";
426
- let p = e.data?.videoUrl;
427
- return !p && e.encoreData?.video && (p = e.encoreData.video), p || (p = s[e.assetId]?.url), !p && !i.backgroundColor && !i.borderColor ? null : /* @__PURE__ */ d(
424
+ let f = e.data?.videoUrl;
425
+ return !f && e.encoreData?.video && (f = e.encoreData.video), f || (f = s[e.assetId]?.url), !f && !i.backgroundColor && !i.borderColor ? null : /* @__PURE__ */ d(
428
426
  "video",
429
427
  {
430
428
  "data-id": t,
431
429
  "data-name": r,
432
430
  "data-type": "VideoComponent",
433
431
  style: { ...i },
434
- src: p,
432
+ src: f,
435
433
  controls: !0,
436
434
  playsInline: !0
437
435
  }
438
436
  );
439
- }, gt = ({ id: t, name: r, nodeData: e }) => {
437
+ }, ht = ({ id: t, name: r, nodeData: e }) => {
440
438
  const n = W(e.style, {
441
439
  debug: !1
442
440
  });
443
441
  if (!n.backgroundColor && !n.borderColor)
444
442
  return null;
445
443
  if (n.borderColor && !n.backgroundColor && (n.backgroundColor = "transparent"), n.borderColor && n.borderWidth) {
446
- const E = Math.max(n.borderWidth || 0, 1);
447
- (!n.width || typeof n.width == "number" && n.width === 0) && (n.width = E), (!n.height || typeof n.height == "number" && n.height === 0) && (n.height = E), n.boxSizing = "border-box";
444
+ const I = Math.max(n.borderWidth || 0, 1);
445
+ (!n.width || typeof n.width == "number" && n.width === 0) && (n.width = I), (!n.height || typeof n.height == "number" && n.height === 0) && (n.height = I), n.boxSizing = "border-box";
448
446
  }
449
- const i = Array.isArray(e.tags) && e.tags.includes("bravo:layer"), s = M(H)?.isFlex ?? !1, o = e.style?.positioning, p = o && typeof o.top == "number" && typeof o.left == "number" && typeof o.right == "number" && typeof o.bottom == "number" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0, a = i && (s || p), g = r && r.toLowerCase().startsWith("clip");
450
- return a && (n.position = "absolute", n.top = 0, n.left = 0, n.right = 0, n.bottom = 0, n.zIndex = -1, n.width && typeof n.width == "string" && n.width.includes("%") && delete n.width, n.height && typeof n.height == "string" && n.height.includes("%") && delete n.height), g && (n.backgroundColor = "transparent"), /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d("div", { "data-name": r, "data-type": "ColorComponent", style: n }) });
451
- }, mt = ({
447
+ const i = Array.isArray(e.tags) && e.tags.includes("bravo:layer"), s = N(H)?.isFlex ?? !1, o = e.style?.positioning, f = o && typeof o.top == "number" && typeof o.left == "number" && typeof o.right == "number" && typeof o.bottom == "number" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0, a = i && (s || f), h = r && r.toLowerCase().startsWith("clip");
448
+ return a && (n.position = "absolute", n.top = 0, n.left = 0, n.right = 0, n.bottom = 0, n.zIndex = -1, n.width && typeof n.width == "string" && n.width.includes("%") && delete n.width, n.height && typeof n.height == "string" && n.height.includes("%") && delete n.height), h && (n.backgroundColor = "transparent"), /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d("div", { "data-name": r, "data-type": "ColorComponent", style: n }) });
449
+ }, gt = ({
452
450
  id: t,
453
451
  name: r,
454
452
  nodeData: e
@@ -457,41 +455,41 @@ const ct = v.createContext({}), H = v.createContext(
457
455
  debug: !1
458
456
  }), i = e.style, s = Array.isArray(i?.gradientColorStops) ? i.gradientColorStops.map((o) => {
459
457
  if (!o?.color) return null;
460
- const p = st(o.color);
458
+ const f = at(o.color);
461
459
  if (typeof o.position == "number") {
462
460
  const a = o.position * 100;
463
- return `${p} ${a}%`;
461
+ return `${f} ${a}%`;
464
462
  }
465
- return p;
463
+ return f;
466
464
  }).filter(Boolean).join(", ") : "";
467
465
  if (s) {
468
466
  const o = i?.gradientType || "linear";
469
467
  n.backgroundImage = o === "radial" ? `radial-gradient(${s})` : `linear-gradient(${s})`, delete n.backgroundColor;
470
468
  }
471
469
  return /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d("div", { "data-name": r, "data-type": "GradientComponent", style: n }) });
472
- }, yt = ({ id: t, name: r, nodeData: e }) => {
470
+ }, mt = ({ id: t, name: r, nodeData: e }) => {
473
471
  const { patchedNodeData: n } = J({ id: t, nodeData: e });
474
472
  e = n;
475
473
  const i = W(e.style, {
476
474
  debug: !1
477
- }), s = M(H), o = $((l) => l.assetsById), p = e.style?.scaleMode || "fill";
478
- p === "fill" ? i.objectFit = "cover" : p === "fit" && (i.objectFit = "contain"), i.objectPosition = "center";
475
+ }), s = N(H), o = k((l) => l.assetsById), f = e.style?.scaleMode || "fill";
476
+ f === "fill" ? i.objectFit = "cover" : f === "fit" && (i.objectFit = "contain"), i.objectPosition = "center";
479
477
  let a = e.data?.imageUrl;
480
478
  !a && e.encoreData?.image && (a = e.encoreData.image.startsWith("//") ? `https:${e.encoreData.image}` : e.encoreData.image), a || (a = o[e.assetId]?.url);
481
- const g = e.style?.positioning, E = e.style?.aspectRatio, f = s.dimensions?.width || 0, y = s.dimensions?.height || 0;
482
- if (g && E && f > 0) {
483
- const l = typeof g.left == "number" && typeof g.right == "number", I = typeof g.top == "number" && typeof g.bottom == "number";
479
+ const h = e.style?.positioning, I = e.style?.aspectRatio, g = s.dimensions?.width || 0, y = s.dimensions?.height || 0;
480
+ if (h && I && g > 0) {
481
+ const l = typeof h.left == "number" && typeof h.right == "number", S = typeof h.top == "number" && typeof h.bottom == "number";
484
482
  if (l) {
485
- const F = 100 - g.left - g.right;
486
- if (F > 0) {
487
- const w = F * f / 100;
488
- i.width = w, i.height = w / E, i.left = `${Math.max(0, g.left)}%`, i.top = `${Math.max(0, g.top)}%`, delete i.right, delete i.bottom;
483
+ const w = 100 - h.left - h.right;
484
+ if (w > 0) {
485
+ const L = w * g / 100;
486
+ i.width = L, i.height = L / I, i.left = `${Math.max(0, h.left)}%`, i.top = `${Math.max(0, h.top)}%`, delete i.right, delete i.bottom;
489
487
  }
490
- } else if (I && y > 0) {
491
- const F = 100 - g.top - g.bottom;
492
- if (F > 0) {
493
- const w = F * y / 100;
494
- i.height = w, i.width = w * E, i.left = `${Math.max(0, g.left)}%`, i.top = `${Math.max(0, g.top)}%`, delete i.right, delete i.bottom;
488
+ } else if (S && y > 0) {
489
+ const w = 100 - h.top - h.bottom;
490
+ if (w > 0) {
491
+ const L = w * y / 100;
492
+ i.height = L, i.width = L * I, i.left = `${Math.max(0, h.left)}%`, i.top = `${Math.max(0, h.top)}%`, delete i.right, delete i.bottom;
495
493
  }
496
494
  }
497
495
  }
@@ -506,12 +504,12 @@ const ct = v.createContext({}), H = v.createContext(
506
504
  alt: r
507
505
  }
508
506
  ) });
509
- }, bt = ({
507
+ }, yt = ({
510
508
  id: t,
511
509
  name: r,
512
510
  nodeData: e
513
511
  }) => {
514
- const n = $((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
512
+ const n = k((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
515
513
  return /* @__PURE__ */ d(
516
514
  "input",
517
515
  {
@@ -524,7 +522,7 @@ const ct = v.createContext({}), H = v.createContext(
524
522
  type: "email"
525
523
  }
526
524
  );
527
- }, Ct = ({
525
+ }, bt = ({
528
526
  id: t,
529
527
  name: r,
530
528
  nodeData: e
@@ -540,13 +538,13 @@ const ct = v.createContext({}), H = v.createContext(
540
538
  type: "hidden"
541
539
  }
542
540
  );
543
- }, vt = ({
541
+ }, Ct = ({
544
542
  id: t,
545
543
  name: r,
546
544
  nodeData: e
547
545
  }) => {
548
- const n = $((o) => o.setFormInputValue), i = W(e.style, { debug: !1 }), s = $((o) => o.assetsById);
549
- return /* @__PURE__ */ it(pt, { children: [
546
+ const n = k((o) => o.setFormInputValue), i = W(e.style, { debug: !1 }), s = k((o) => o.assetsById);
547
+ return /* @__PURE__ */ pt(Vt, { children: [
550
548
  /* @__PURE__ */ d(
551
549
  "div",
552
550
  {
@@ -567,12 +565,12 @@ const ct = v.createContext({}), H = v.createContext(
567
565
  }
568
566
  )
569
567
  ] });
570
- }, xt = ({
568
+ }, vt = ({
571
569
  id: t,
572
570
  name: r,
573
571
  nodeData: e
574
572
  }) => {
575
- const n = $((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
573
+ const n = k((s) => s.setFormInputValue), i = W(e.style, { debug: !1 });
576
574
  return /* @__PURE__ */ d(
577
575
  "input",
578
576
  {
@@ -585,24 +583,24 @@ const ct = v.createContext({}), H = v.createContext(
585
583
  type: "password"
586
584
  }
587
585
  );
588
- }, St = ({
586
+ }, xt = ({
589
587
  id: t,
590
588
  name: r,
591
589
  nodeData: e
592
590
  }) => {
593
- const n = $((f) => f.setFormInputValue), { onAction: i } = v.useContext(ht), { patchedNodeData: s } = J({ id: t, nodeData: e }), o = W(s.style, { debug: !1 });
591
+ const n = k((g) => g.setFormInputValue), { onAction: i } = v.useContext(ft), { patchedNodeData: s } = J({ id: t, nodeData: e }), o = W(s.style, { debug: !1 });
594
592
  o.width = "100%", o.flex = "1", o.minWidth = "0", o.boxSizing = "border-box", o.borderColor = o.borderColor ?? "transparent";
595
- const p = s.data?.value, a = s.data?.options, g = v.useMemo(() => !a || !Array.isArray(a) ? [] : a.map((f) => typeof f == "string" ? { value: f, label: f } : f), [a]);
596
- return /* @__PURE__ */ it(
593
+ const f = s.data?.value, a = s.data?.options, h = v.useMemo(() => !a || !Array.isArray(a) ? [] : a.map((g) => typeof g == "string" ? { value: g, label: g } : g), [a]);
594
+ return /* @__PURE__ */ pt(
597
595
  "select",
598
596
  {
599
597
  "data-id": t,
600
598
  "data-name": r,
601
599
  "data-type": "SelectInputComponent",
602
- value: p ?? "",
600
+ value: f ?? "",
603
601
  style: o,
604
- onChange: async (f) => {
605
- const y = f.target.value;
602
+ onChange: async (g) => {
603
+ const y = g.target.value;
606
604
  if (n(t, y), console.log(`Select changed: ${y}`), typeof i == "function")
607
605
  try {
608
606
  await i({
@@ -621,17 +619,17 @@ const ct = v.createContext({}), H = v.createContext(
621
619
  }
622
620
  },
623
621
  children: [
624
- g.length === 0 && /* @__PURE__ */ d("option", { value: "", disabled: !0, children: "Select an option..." }),
625
- g.map((f) => /* @__PURE__ */ d("option", { value: f.value, children: f.label }, f.value))
622
+ h.length === 0 && /* @__PURE__ */ d("option", { value: "", disabled: !0, children: "Select an option..." }),
623
+ h.map((g) => /* @__PURE__ */ d("option", { value: g.value, children: g.label }, g.value))
626
624
  ]
627
625
  }
628
626
  );
629
- }, It = ({
627
+ }, St = ({
630
628
  id: t,
631
629
  name: r,
632
630
  nodeData: e
633
631
  }) => {
634
- const n = $((s) => s.setFormInputValue), i = W(e.style, {
632
+ const n = k((s) => s.setFormInputValue), i = W(e.style, {
635
633
  debug: !1
636
634
  });
637
635
  return /* @__PURE__ */ d(
@@ -647,7 +645,7 @@ const ct = v.createContext({}), H = v.createContext(
647
645
  type: "text"
648
646
  }
649
647
  );
650
- }, wt = ({
648
+ }, It = ({
651
649
  id: t,
652
650
  name: r,
653
651
  nodeData: e,
@@ -664,17 +662,17 @@ const ct = v.createContext({}), H = v.createContext(
664
662
  children: n
665
663
  }
666
664
  ) });
667
- }, At = ({ id: t, name: r, nodeData: e }) => {
665
+ }, wt = ({ id: t, name: r, nodeData: e }) => {
668
666
  const n = W(e.style, {
669
667
  debug: !1
670
- }), i = $((o) => o.assetsById), s = e.style?.positioning;
668
+ }), i = k((o) => o.assetsById), s = e.style?.positioning;
671
669
  if (s) {
672
- const o = typeof s.left == "number" && typeof s.right == "number", p = typeof s.top == "number" && typeof s.bottom == "number";
670
+ const o = typeof s.left == "number" && typeof s.right == "number", f = typeof s.top == "number" && typeof s.bottom == "number";
673
671
  if (o) {
674
672
  const a = 100 - s.left - s.right;
675
673
  n.width = `${a}%`, n.left = `${s.left}%`, delete n.right;
676
674
  }
677
- if (p) {
675
+ if (f) {
678
676
  const a = 100 - s.top - s.bottom;
679
677
  n.height = `${a}%`, n.top = `${s.top}%`, delete n.bottom;
680
678
  }
@@ -690,7 +688,7 @@ const ct = v.createContext({}), H = v.createContext(
690
688
  alt: r
691
689
  }
692
690
  ) });
693
- }, Et = ({ id: t, name: r, nodeData: e }) => {
691
+ }, At = ({ id: t, name: r, nodeData: e }) => {
694
692
  const { patchedNodeData: n } = J({ id: t, nodeData: e });
695
693
  e = n;
696
694
  const i = e.data?.text;
@@ -701,66 +699,66 @@ const ct = v.createContext({}), H = v.createContext(
701
699
  style: e.style,
702
700
  color: e.style?.color
703
701
  });
704
- const s = e.style, o = e.fontId ? { ...s, fontId: e.fontId } : s, p = W(o, {
702
+ const s = e.style, o = e.fontId ? { ...s, fontId: e.fontId } : s, f = W(o, {
705
703
  debug: !1
706
704
  });
707
- p.display = "flex", p.flexDirection = "column", s.verticalPosition && (p.justifyContent = {
705
+ f.display = "flex", f.flexDirection = "column", s.verticalPosition && (f.justifyContent = {
708
706
  "from-top": "flex-start",
709
707
  center: "center",
710
708
  "from-bottom": "flex-end"
711
709
  }[s.verticalPosition]);
712
710
  const a = i && (i.includes(`
713
711
  `) || i.includes("\r"));
714
- let g;
715
- return a && p.flexDirection === "column" ? g = i.split(/\r?\n/).filter((f) => f.length > 0).map((f, y) => /* @__PURE__ */ d("div", { style: { lineHeight: "inherit" }, children: f }, y)) : g = i, /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d(
712
+ let h;
713
+ return a && f.flexDirection === "column" ? h = i.split(/\r?\n/).map((g, y) => /* @__PURE__ */ d("div", { style: { lineHeight: "inherit" }, children: g || " " }, y)) : h = i, /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: /* @__PURE__ */ d(
716
714
  "div",
717
715
  {
718
716
  "data-id": t,
719
717
  "data-name": r,
720
718
  "data-type": "TextComponent",
721
- style: p,
722
- children: g
719
+ style: f,
720
+ children: h
723
721
  }
724
722
  ) });
725
- }, ut = ({
723
+ }, dt = ({
726
724
  id: t,
727
725
  name: r,
728
726
  nodeData: e,
729
727
  children: n
730
728
  }) => {
731
- const i = M(q), { patchedNodeData: s } = J({ id: t, nodeData: e });
729
+ const i = N(q), { patchedNodeData: s } = J({ id: t, nodeData: e });
732
730
  e = s;
733
- const o = Ut(e.tags), p = o ? $((F) => F.inputGroups[o.groupName]) : null, a = $((F) => F.statefulSetVariants[t]), g = W(e.style, {
731
+ const o = Ut(e.tags), f = o ? k((w) => w.inputGroups[o.groupName]) : null, a = k((w) => w.statefulSetVariants[t]), h = W(e.style, {
734
732
  debug: !1
735
733
  });
736
- let E;
737
- o && p !== null ? E = p === r ? "active" : "default" : E = a || e.data.initialState || "default";
738
- const f = v.Children.toArray(n).find((F) => v.isValidElement(F) ? F.props?.nodeData?.data?.state === E : !1), y = v.isValidElement(f) ? v.cloneElement(f, {
734
+ let I;
735
+ o && f !== null ? I = f === r ? "active" : "default" : I = a || e.data.initialState || "default";
736
+ const g = v.Children.toArray(n).find((w) => v.isValidElement(w) ? w.props?.nodeData?.data?.state === I : !1), y = v.isValidElement(g) ? v.cloneElement(g, {
739
737
  _parentStatefulSetId: t,
740
738
  _parentInputGroupInfo: o,
741
739
  _parentName: r
742
740
  // Pass the name so we can identify which element is active
743
- }) : f, l = /* @__PURE__ */ d(
741
+ }) : g, l = /* @__PURE__ */ d(
744
742
  "div",
745
743
  {
746
744
  "data-id": t,
747
745
  "data-name": r,
748
746
  "data-type": "StatefulSetComponent",
749
- style: g,
747
+ style: h,
750
748
  children: y
751
749
  }
752
750
  );
753
751
  if (e.type === "component:input-stateful-set")
754
752
  return l;
755
- const I = v.useContext(lt);
753
+ const S = v.useContext(st);
756
754
  return /* @__PURE__ */ d(
757
755
  q.Provider,
758
756
  {
759
757
  value: { nodeData: i?.nodeData?.[t] || {} },
760
758
  children: /* @__PURE__ */ d(
761
- lt.Provider,
759
+ st.Provider,
762
760
  {
763
- value: { ...I, statefulSetId: t },
761
+ value: { ...S, statefulSetId: t },
764
762
  children: l
765
763
  }
766
764
  )
@@ -775,11 +773,11 @@ const ct = v.createContext({}), H = v.createContext(
775
773
  _parentInputGroupInfo: s,
776
774
  _parentName: o
777
775
  }) => {
778
- const p = W(e.style, {
776
+ const f = W(e.style, {
779
777
  debug: !1
780
778
  }), a = {
781
- ...p,
782
- position: p.position || "relative"
779
+ ...f,
780
+ position: f.position || "relative"
783
781
  };
784
782
  return /* @__PURE__ */ d(
785
783
  "div",
@@ -801,9 +799,9 @@ const ct = v.createContext({}), H = v.createContext(
801
799
  )
802
800
  }
803
801
  );
804
- }, Tt = ({ id: t, name: r, children: e }) => {
805
- M(H);
806
- const { dimensions: n, ref: i } = rt(), s = {
802
+ }, Et = ({ id: t, name: r, children: e }) => {
803
+ N(H);
804
+ const { dimensions: n, ref: i } = it(), s = {
807
805
  zIndex: 0,
808
806
  flex: 1,
809
807
  position: "absolute",
@@ -823,7 +821,7 @@ const ct = v.createContext({}), H = v.createContext(
823
821
  children: e
824
822
  }
825
823
  ) });
826
- }, ft = ({
824
+ }, ut = ({
827
825
  id: t,
828
826
  name: r,
829
827
  nodeData: e,
@@ -835,12 +833,12 @@ const ct = v.createContext({}), H = v.createContext(
835
833
  `[DEBUG] ContainerComponent ${t} (Hero) FULL nodeData:`,
836
834
  JSON.stringify(e, null, 2)
837
835
  );
838
- const o = M(q), { patchedNodeData: p, list: a, arrayData: g } = J({
836
+ const o = N(q), { patchedNodeData: f, list: a, arrayData: h } = J({
839
837
  id: t,
840
838
  nodeData: e
841
839
  });
842
- e = p;
843
- const { dimensions: E, ref: f } = rt(), y = W(e.style, {
840
+ e = f;
841
+ const { dimensions: I, ref: g } = it(), y = W(e.style, {
844
842
  debug: !1
845
843
  });
846
844
  t === "01KF5PAFET1VY5E81B68GQ9BFQ" && console.log("[DEBUG] Embed Container Render", {
@@ -850,37 +848,37 @@ const ct = v.createContext({}), H = v.createContext(
850
848
  layout: e.style.layout,
851
849
  hasPositioning: !!e.style.positioning
852
850
  });
853
- const l = !!e.style.layout?.mode, I = e.style.layout?.mode === "HORIZONTAL" || e.style.layout?.mode === "GRID" ? "row" : "column", F = y.width !== void 0, w = y.height !== void 0, k = M(H), T = k?.isFlex ?? !1, h = k?.flexDirection, S = T && h === "row", G = !T && e.style.positioning, N = e.style.layout?.layoutSizingHorizontal === "FIXED" || e.style.layout?.layoutSizingVertical === "FIXED", j = e.style.layout?.layoutSizingHorizontal === "HUG" || e.style.layout?.layoutSizingVertical === "HUG";
854
- if (!F && !S && !(G && (N || j)) && (y.width = "100%"), !w) {
855
- const L = !T && e.style.positioning, Z = e.style.layout?.layoutSizingVertical === "FILL";
851
+ const l = !!e.style.layout?.mode, S = e.style.layout?.mode === "HORIZONTAL" || e.style.layout?.mode === "GRID" ? "row" : "column", w = y.width !== void 0, L = y.height !== void 0, E = N(H), c = E?.isFlex ?? !1, $ = E?.flexDirection, A = c && $ === "row", O = !c && e.style.positioning, U = e.style.layout?.layoutSizingHorizontal === "FIXED" || e.style.layout?.layoutSizingVertical === "FIXED", M = e.style.layout?.layoutSizingHorizontal === "HUG" || e.style.layout?.layoutSizingVertical === "HUG";
852
+ if (!w && !A && !(O && (U || M)) && (y.width = "100%"), !L) {
853
+ const R = !c && e.style.positioning, K = e.style.layout?.layoutSizingVertical === "FILL";
856
854
  if (!(e.style.layout?.layoutSizingVertical === "HUG")) {
857
- if (!l) if (L && Z && e.style.positioning?.top !== void 0) {
855
+ if (!l) if (R && K && e.style.positioning?.top !== void 0) {
858
856
  const tt = 100 - e.style.positioning.top;
859
857
  y.height = `${tt}%`;
860
858
  } else
861
859
  y.height = "100%";
862
860
  }
863
861
  }
864
- const D = e.style.layout?.layoutSizingHorizontal || e.style.layout?.layoutSizingVertical, V = e.style.positioning && !l && (D || !0) ? { ...y, position: "absolute" } : y.position === "absolute" ? y : { ...y, position: y.position || "relative" }, U = (L) => typeof L == "number" ? L : typeof L == "string" && L.endsWith("px") && parseFloat(L) || 0, O = U(y.paddingLeft), m = U(y.paddingRight), Y = U(y.paddingTop), X = U(y.paddingBottom), R = N && typeof y.width == "number" && typeof y.height == "number" ? {
865
- width: y.width - O - m,
866
- height: y.height - Y - X
862
+ const G = e.style.layout?.layoutSizingHorizontal || e.style.layout?.layoutSizingVertical, V = e.style.positioning && !l && !c && (G || !0) ? { ...y, position: "absolute" } : y.position === "absolute" ? y : { ...y, position: y.position || "relative" }, X = (R) => typeof R == "number" ? R : typeof R == "string" && R.endsWith("px") && parseFloat(R) || 0, j = X(y.paddingLeft), m = X(y.paddingRight), Y = X(y.paddingTop), Z = X(y.paddingBottom), B = U && typeof y.width == "number" && typeof y.height == "number" ? {
863
+ width: y.width - j - m,
864
+ height: y.height - Y - Z
867
865
  } : {
868
- width: E.width - O - m,
869
- height: E.height - Y - X
866
+ width: I.width - j - m,
867
+ height: I.height - Y - Z
870
868
  };
871
869
  if (i != null && a) {
872
- const L = a[i];
873
- if (L !== void 0) {
874
- const Z = typeof L == "object" && L !== null ? {
875
- nodeData: L,
870
+ const R = a[i];
871
+ if (R !== void 0) {
872
+ const K = typeof R == "object" && R !== null ? {
873
+ nodeData: R,
876
874
  arrayDataById: o?.arrayDataById,
877
875
  textOverridesById: o?.textOverridesById,
878
876
  rootData: o?.rootData
879
- } : { nodeData: L };
880
- return /* @__PURE__ */ d(q.Provider, { value: Z, children: /* @__PURE__ */ d(
877
+ } : { nodeData: R };
878
+ return /* @__PURE__ */ d(q.Provider, { value: K, children: /* @__PURE__ */ d(
881
879
  H.Provider,
882
880
  {
883
- value: { dimensions: R, isFlex: l, flexDirection: I },
881
+ value: { dimensions: B, isFlex: l, flexDirection: S },
884
882
  children: /* @__PURE__ */ d(
885
883
  "div",
886
884
  {
@@ -896,14 +894,14 @@ const ct = v.createContext({}), H = v.createContext(
896
894
  }
897
895
  }
898
896
  if (a) {
899
- const L = g || a;
900
- return Ht(() => L.map((K, ot) => {
901
- const tt = typeof K == "object" && K !== null ? {
902
- nodeData: K,
897
+ const R = h || a;
898
+ return Ht(() => R.map((D, ot) => {
899
+ const tt = typeof D == "object" && D !== null ? {
900
+ nodeData: D,
903
901
  arrayDataById: o?.arrayDataById,
904
902
  textOverridesById: o?.textOverridesById,
905
903
  rootData: o?.rootData
906
- } : { nodeData: K };
904
+ } : { nodeData: D };
907
905
  return /* @__PURE__ */ d(
908
906
  q.Provider,
909
907
  {
@@ -911,7 +909,7 @@ const ct = v.createContext({}), H = v.createContext(
911
909
  children: /* @__PURE__ */ d(
912
910
  H.Provider,
913
911
  {
914
- value: { dimensions: R, isFlex: l, flexDirection: I },
912
+ value: { dimensions: B, isFlex: l, flexDirection: S },
915
913
  children: /* @__PURE__ */ d(
916
914
  "div",
917
915
  {
@@ -927,41 +925,41 @@ const ct = v.createContext({}), H = v.createContext(
927
925
  },
928
926
  `${t}:${ot}`
929
927
  );
930
- }), [L, t]);
928
+ }), [R, t]);
931
929
  }
932
- let P = e.actions || [];
933
- !Array.isArray(P) && typeof P == "object" && P !== null && (P = Object.entries(P).map(
934
- ([L, Z]) => ({
935
- event: L,
936
- ...typeof Z == "object" && Z !== null ? Z : {}
930
+ let T = e.actions || [];
931
+ !Array.isArray(T) && typeof T == "object" && T !== null && (T = Object.entries(T).map(
932
+ ([R, K]) => ({
933
+ event: R,
934
+ ...typeof K == "object" && K !== null ? K : {}
937
935
  })
938
936
  ));
939
- const z = Array.isArray(P) && P.length > 0;
937
+ const z = Array.isArray(T) && T.length > 0;
940
938
  return /* @__PURE__ */ d(
941
939
  H.Provider,
942
940
  {
943
- value: { dimensions: R, isFlex: l, flexDirection: I },
941
+ value: { dimensions: B, isFlex: l, flexDirection: S },
944
942
  children: /* @__PURE__ */ d(
945
943
  "div",
946
944
  {
947
945
  "data-id": t,
948
946
  "data-name": r,
949
947
  "data-type": "ContainerComponent",
950
- ref: f,
948
+ ref: g,
951
949
  style: V,
952
950
  children: z ? /* @__PURE__ */ d(Q, { id: t, nodeData: e, children: n }) : n
953
951
  }
954
952
  )
955
953
  }
956
954
  );
957
- }, Pt = ft, Bt = ({ id: t, name: r, nodeData: e, children: n }) => {
958
- const { dimensions: i, ref: s } = rt(), o = W(e.style, {
955
+ }, Tt = ut, Pt = ({ id: t, name: r, nodeData: e, children: n }) => {
956
+ const { dimensions: i, ref: s } = it(), o = W(e.style, {
959
957
  debug: !1
960
- }), p = !!e.style.layout?.mode, a = e.style.layout?.mode === "HORIZONTAL" ? "row" : "column", g = o.position ? o : { ...o, position: "relative" };
958
+ }), f = !!e.style.layout?.mode, a = e.style.layout?.mode === "HORIZONTAL" ? "row" : "column", h = o.position ? o : { ...o, position: "relative" };
961
959
  return /* @__PURE__ */ d(
962
960
  H.Provider,
963
961
  {
964
- value: { dimensions: i, isFlex: p, flexDirection: a },
962
+ value: { dimensions: i, isFlex: f, flexDirection: a },
965
963
  children: /* @__PURE__ */ d(
966
964
  "div",
967
965
  {
@@ -969,7 +967,7 @@ const ct = v.createContext({}), H = v.createContext(
969
967
  "data-name": r,
970
968
  "data-type": "TopBarContainerComponent",
971
969
  ref: s,
972
- style: g,
970
+ style: h,
973
971
  children: n
974
972
  }
975
973
  )
@@ -987,7 +985,7 @@ const ct = v.createContext({}), H = v.createContext(
987
985
  children: n
988
986
  }
989
987
  );
990
- }, Rt = ({ id: t, name: r, nodeData: e, children: n }) => /* @__PURE__ */ d(
988
+ }, Bt = ({ id: t, name: r, nodeData: e, children: n }) => /* @__PURE__ */ d(
991
989
  "div",
992
990
  {
993
991
  "data-id": t,
@@ -996,7 +994,7 @@ const ct = v.createContext({}), H = v.createContext(
996
994
  style: W(e.style),
997
995
  children: n
998
996
  }
999
- ), Lt = ({ id: t, name: r, nodeData: e, children: n }) => {
997
+ ), Rt = ({ id: t, name: r, nodeData: e, children: n }) => {
1000
998
  const i = W(e.style, {
1001
999
  debug: !1
1002
1000
  });
@@ -1010,182 +1008,182 @@ const ct = v.createContext({}), H = v.createContext(
1010
1008
  children: n
1011
1009
  }
1012
1010
  );
1013
- }, at = ({ id: t, name: r, nodeData: e, children: n }) => {
1011
+ }, rt = ({ id: t, name: r, nodeData: e, children: n }) => {
1014
1012
  t === "01KB929X1DQJN954WNGF5AH38B" && console.log(
1015
1013
  `[DEBUG] SliderComponent ${t} FULL nodeData:`,
1016
1014
  JSON.stringify(e, null, 2)
1017
1015
  );
1018
- const { dimensions: i, ref: s } = rt(), o = v.useRef(null), p = v.useRef(null), a = v.useRef(!1), g = v.useRef(null), E = M(ct), f = M(Gt), { onAction: y } = M(ht), [l, I] = v.useState({
1016
+ const { dimensions: i, ref: s } = it(), o = v.useRef(null), f = v.useRef(null), a = v.useRef(!1), h = v.useRef(null), I = N(lt), g = N(Gt), { onAction: y } = N(ft), [l, S] = v.useState({
1019
1017
  currentIndex: void 0,
1020
1018
  onIndexChange: void 0
1021
- }), [F, w] = v.useState(0), k = v.useRef(null), { patchedNodeData: T } = J({ id: t, nodeData: e });
1022
- e = T;
1023
- const h = e.data?.params || {}, S = h.infinite === !0, G = h.automatic === !0;
1024
- let j = Array.isArray(e.tags) && e.tags.some((c) => c.includes("container:slider:vertical")) || e.name && e.name.includes("container:slider:vertical");
1025
- if (!j && h.animation === "default") {
1026
- const c = e.style?.width, u = e.style?.height;
1027
- typeof c == "number" && typeof u == "number" && u > c && (j = !0);
1019
+ }), [w, L] = v.useState(0), E = v.useRef(null), { patchedNodeData: c } = J({ id: t, nodeData: e });
1020
+ e = c;
1021
+ const $ = e.data?.params || {}, A = $.infinite === !0, O = $.automatic === !0;
1022
+ let M = Array.isArray(e.tags) && e.tags.some((u) => u.includes("container:slider:vertical")) || e.name && e.name.includes("container:slider:vertical");
1023
+ if (!M && $.animation === "default") {
1024
+ const u = e.style?.width, p = e.style?.height;
1025
+ typeof u == "number" && typeof p == "number" && p > u && (M = !0);
1028
1026
  }
1029
- const D = j ? "vertical" : h.animation === "default" ? "horizontal" : h.animation || "horizontal", A = W(e.style, {
1027
+ const G = M ? "vertical" : $.animation === "default" ? "horizontal" : $.animation || "horizontal", F = W(e.style, {
1030
1028
  debug: !1
1031
- }), V = A.width !== void 0, U = A.height !== void 0;
1032
- V || (A.width = "100%"), U || (A.height = "100%"), A.position || (A.position = "relative");
1033
- const O = M(q), m = v.useMemo(() => {
1034
- const c = [];
1035
- return v.Children.forEach(n, (u) => {
1036
- if (u == null) return;
1037
- const x = u?.props || {}, C = x.nodeData || {};
1038
- if (Array.isArray(C?.tags) && (C.tags.includes("encore:data:array") || C.tags.includes("bravo:data:array")) && x.id && O) {
1039
- const B = O?.arrayDataById && O.arrayDataById[x.id] && Array.isArray(O.arrayDataById[x.id]) ? O.arrayDataById[x.id] : null;
1040
- B && B.length > 0 ? B.forEach((et, nt) => {
1041
- c.push(
1042
- v.cloneElement(u, {
1029
+ }), V = F.width !== void 0, X = F.height !== void 0;
1030
+ V || (F.width = "100%"), X || (F.height = "100%"), F.position || (F.position = "relative");
1031
+ const j = N(q), m = v.useMemo(() => {
1032
+ const u = [];
1033
+ return v.Children.forEach(n, (p) => {
1034
+ if (p == null) return;
1035
+ const x = p?.props || {}, C = x.nodeData || {};
1036
+ if (Array.isArray(C?.tags) && (C.tags.includes("encore:data:array") || C.tags.includes("bravo:data:array")) && x.id && j) {
1037
+ const P = j?.arrayDataById && j.arrayDataById[x.id] && Array.isArray(j.arrayDataById[x.id]) ? j.arrayDataById[x.id] : null;
1038
+ P && P.length > 0 ? P.forEach((et, nt) => {
1039
+ u.push(
1040
+ v.cloneElement(p, {
1043
1041
  key: `${x.id}:${nt}`,
1044
1042
  // ContainerComponent will use this to know which item to render
1045
1043
  _arrayItemIndex: nt,
1046
1044
  _arrayItemData: et
1047
1045
  })
1048
1046
  );
1049
- }) : c.push(u);
1047
+ }) : u.push(p);
1050
1048
  } else
1051
- c.push(u);
1052
- }), c;
1053
- }, [n, t, O]), Y = v.useMemo(() => {
1054
- if (!S || m.length === 0)
1049
+ u.push(p);
1050
+ }), u;
1051
+ }, [n, t, j]), Y = v.useMemo(() => {
1052
+ if (!A || m.length === 0)
1055
1053
  return m;
1056
- const c = m[0], u = m[m.length - 1];
1054
+ const u = m[0], p = m[m.length - 1];
1057
1055
  return [
1058
- v.cloneElement(u, {
1059
- key: `clone-last-${u.key || u.props.id}`
1056
+ v.cloneElement(p, {
1057
+ key: `clone-last-${p.key || p.props.id}`
1060
1058
  }),
1061
1059
  ...m,
1062
- v.cloneElement(c, {
1063
- key: `clone-first-${c.key || c.props.id}`
1060
+ v.cloneElement(u, {
1061
+ key: `clone-first-${u.key || u.props.id}`
1064
1062
  })
1065
1063
  ];
1066
- }, [m, S]), X = v.useMemo(() => {
1064
+ }, [m, A]), Z = v.useMemo(() => {
1067
1065
  if (m.length === 0) return { width: 0, height: 0 };
1068
- const u = m[0]?.props?.nodeData?.style, x = E.scaleFactor || 1;
1066
+ const p = m[0]?.props?.nodeData?.style, x = I.scaleFactor || 1;
1069
1067
  let C = 0, b = 0;
1070
- return u?.layout?.layoutSizingHorizontal === "FIXED" && u?.layout?.size?.x ? C = u.layout.size.x * x : C = i.width || 0, u?.layout?.layoutSizingVertical === "FIXED" && u?.layout?.size?.y ? b = u.layout.size.y * x : b = i.height || 0, { width: C, height: b };
1071
- }, [m, i.width, i.height, E.scaleFactor]), R = X.width, P = X.height, z = D === "vertical", _ = v.useCallback(() => {
1068
+ return p?.layout?.layoutSizingHorizontal === "FIXED" && p?.layout?.size?.x ? C = p.layout.size.x * x : C = i.width || 0, p?.layout?.layoutSizingVertical === "FIXED" && p?.layout?.size?.y ? b = p.layout.size.y * x : b = i.height || 0, { width: C, height: b };
1069
+ }, [m, i.width, i.height, I.scaleFactor]), B = Z.width, T = Z.height, z = G === "vertical", _ = v.useCallback(() => {
1072
1070
  if (!o.current || m.length === 0)
1073
1071
  return 0;
1074
- const c = o.current;
1072
+ const u = o.current;
1075
1073
  if (z) {
1076
- if (P === 0) return 0;
1077
- const u = c.scrollTop;
1078
- if (S) {
1079
- const C = u - P;
1080
- let b = Math.round(C / P);
1074
+ if (T === 0) return 0;
1075
+ const p = u.scrollTop;
1076
+ if (A) {
1077
+ const C = p - T;
1078
+ let b = Math.round(C / T);
1081
1079
  return b < 0 && (b = 0), b >= m.length && (b = m.length - 1), b;
1082
1080
  } else {
1083
- const x = Math.round(u / P);
1081
+ const x = Math.round(p / T);
1084
1082
  return x < 0 ? 0 : x >= m.length ? m.length - 1 : x;
1085
1083
  }
1086
1084
  } else {
1087
- if (R === 0) return 0;
1088
- const u = c.scrollLeft;
1089
- if (S) {
1090
- const C = u - R;
1091
- let b = Math.round(C / R);
1085
+ if (B === 0) return 0;
1086
+ const p = u.scrollLeft;
1087
+ if (A) {
1088
+ const C = p - B;
1089
+ let b = Math.round(C / B);
1092
1090
  return b < 0 && (b = 0), b >= m.length && (b = m.length - 1), b;
1093
1091
  } else {
1094
- const x = Math.round(u / R);
1092
+ const x = Math.round(p / B);
1095
1093
  return x < 0 ? 0 : x >= m.length ? m.length - 1 : x;
1096
1094
  }
1097
1095
  }
1098
- }, [S, m.length, R, P, z]), L = v.useCallback(
1099
- (c, u = !0) => {
1096
+ }, [A, m.length, B, T, z]), R = v.useCallback(
1097
+ (u, p = !0) => {
1100
1098
  if (!o.current || m.length === 0) return;
1101
1099
  const x = o.current;
1102
1100
  if (z) {
1103
1101
  let C;
1104
- S ? C = P + c * P : C = c * P, x.scrollTo({
1102
+ A ? C = T + u * T : C = u * T, x.scrollTo({
1105
1103
  top: C,
1106
- behavior: u ? "smooth" : "auto"
1104
+ behavior: p ? "smooth" : "auto"
1107
1105
  });
1108
1106
  } else {
1109
1107
  let C;
1110
- S ? C = R + c * R : C = c * R, x.scrollTo({
1108
+ A ? C = B + u * B : C = u * B, x.scrollTo({
1111
1109
  left: C,
1112
- behavior: u ? "smooth" : "auto"
1110
+ behavior: p ? "smooth" : "auto"
1113
1111
  });
1114
1112
  }
1115
1113
  },
1116
- [R, P, S, m.length, z]
1117
- ), Z = v.useCallback(() => {
1118
- if (!S || !o.current || m.length === 0) return;
1119
- const c = o.current, u = 1;
1114
+ [B, T, A, m.length, z]
1115
+ ), K = v.useCallback(() => {
1116
+ if (!A || !o.current || m.length === 0) return;
1117
+ const u = o.current, p = 1;
1120
1118
  if (z) {
1121
- if (P === 0) return;
1122
- const x = c.scrollTop, C = P, b = C, B = b + m.length * C;
1123
- x >= B - u ? c.scrollTop = b : x <= u && (c.scrollTop = B - C);
1119
+ if (T === 0) return;
1120
+ const x = u.scrollTop, C = T, b = C, P = b + m.length * C;
1121
+ x >= P - p ? u.scrollTop = b : x <= p && (u.scrollTop = P - C);
1124
1122
  } else {
1125
- if (R === 0) return;
1126
- const x = c.scrollLeft, C = R, b = C, B = b + m.length * C;
1127
- x >= B - u ? c.scrollLeft = b : x <= u && (c.scrollLeft = B - C);
1123
+ if (B === 0) return;
1124
+ const x = u.scrollLeft, C = B, b = C, P = b + m.length * C;
1125
+ x >= P - p ? u.scrollLeft = b : x <= p && (u.scrollLeft = P - C);
1128
1126
  }
1129
- }, [S, m.length, R, P, z]);
1127
+ }, [A, m.length, B, T, z]);
1130
1128
  v.useEffect(() => {
1131
- if (!G || m.length <= 1 || R === 0) return;
1132
- const c = () => {
1129
+ if (!O || m.length <= 1 || B === 0) return;
1130
+ const u = () => {
1133
1131
  if (a.current || !o.current) return;
1134
- const u = o.current;
1132
+ const p = o.current;
1135
1133
  if (z) {
1136
- if (P === 0) return;
1137
- const x = u.scrollTop, C = P;
1134
+ if (T === 0) return;
1135
+ const x = p.scrollTop, C = T;
1138
1136
  let b;
1139
- if (S) {
1137
+ if (A) {
1140
1138
  const nt = x - C;
1141
1139
  b = Math.round(nt / C), b < 0 && (b = 0), b >= m.length && (b = m.length - 1);
1142
1140
  } else
1143
1141
  b = Math.round(x / C);
1144
- let B = b + 1;
1145
- if (S) {
1146
- B >= m.length && (B = 0);
1142
+ let P = b + 1;
1143
+ if (A) {
1144
+ P >= m.length && (P = 0);
1147
1145
  const et = C;
1148
- u.scrollTo({
1149
- top: et + B * C,
1146
+ p.scrollTo({
1147
+ top: et + P * C,
1150
1148
  behavior: "smooth"
1151
1149
  });
1152
1150
  } else
1153
- B >= m.length && (B = 0), L(B);
1151
+ P >= m.length && (P = 0), R(P);
1154
1152
  } else {
1155
- if (R === 0) return;
1156
- const x = u.scrollLeft, C = R;
1153
+ if (B === 0) return;
1154
+ const x = p.scrollLeft, C = B;
1157
1155
  let b;
1158
- if (S) {
1156
+ if (A) {
1159
1157
  const nt = x - C;
1160
1158
  b = Math.round(nt / C), b < 0 && (b = 0), b >= m.length && (b = m.length - 1);
1161
1159
  } else
1162
1160
  b = Math.round(x / C);
1163
- let B = b + 1;
1164
- if (S) {
1165
- B >= m.length && (B = 0);
1161
+ let P = b + 1;
1162
+ if (A) {
1163
+ P >= m.length && (P = 0);
1166
1164
  const et = C;
1167
- u.scrollTo({
1168
- left: et + B * C,
1165
+ p.scrollTo({
1166
+ left: et + P * C,
1169
1167
  behavior: "smooth"
1170
1168
  });
1171
1169
  } else
1172
- B >= m.length && (B = 0), L(B);
1170
+ P >= m.length && (P = 0), R(P);
1173
1171
  }
1174
1172
  };
1175
- return p.current = setInterval(c, 4e3), () => {
1176
- p.current && (clearInterval(p.current), p.current = null);
1173
+ return f.current = setInterval(u, 4e3), () => {
1174
+ f.current && (clearInterval(f.current), f.current = null);
1177
1175
  };
1178
1176
  }, [
1179
- G,
1177
+ O,
1180
1178
  m.length,
1181
- S,
1182
- R,
1183
- P,
1179
+ A,
1180
+ B,
1181
+ T,
1184
1182
  z,
1185
- L
1183
+ R
1186
1184
  ]);
1187
- const K = v.useCallback(() => {
1188
- a.current = !0, g.current && clearTimeout(g.current), g.current = setTimeout(() => {
1185
+ const D = v.useCallback(() => {
1186
+ a.current = !0, h.current && clearTimeout(h.current), h.current = setTimeout(() => {
1189
1187
  a.current = !1;
1190
1188
  }, 3e3);
1191
1189
  }, []), ot = v.useRef(l);
@@ -1193,11 +1191,11 @@ const ct = v.createContext({}), H = v.createContext(
1193
1191
  ot.current = l;
1194
1192
  }, [l]);
1195
1193
  const tt = v.useCallback(
1196
- (c) => {
1197
- if (k.current === c) return;
1198
- k.current = c;
1199
- const u = ot.current;
1200
- if (u.currentIndex === void 0 && w(c), u.onIndexChange && u.onIndexChange(c), typeof y == "function")
1194
+ (u) => {
1195
+ if (E.current === u) return;
1196
+ E.current = u;
1197
+ const p = ot.current;
1198
+ if (p.currentIndex === void 0 && L(u), p.onIndexChange && p.onIndexChange(u), typeof y == "function")
1201
1199
  try {
1202
1200
  y({
1203
1201
  bravo: {
@@ -1205,7 +1203,7 @@ const ct = v.createContext({}), H = v.createContext(
1205
1203
  },
1206
1204
  action: {
1207
1205
  action: "index-change",
1208
- params: { index: c }
1206
+ params: { index: u }
1209
1207
  },
1210
1208
  componentId: t
1211
1209
  }
@@ -1217,73 +1215,73 @@ const ct = v.createContext({}), H = v.createContext(
1217
1215
  // Depend on onAction to ensure we call the latest version
1218
1216
  );
1219
1217
  v.useEffect(() => {
1220
- const c = o.current;
1221
- if (!c) return;
1222
- let u = null;
1218
+ const u = o.current;
1219
+ if (!u) return;
1220
+ let p = null;
1223
1221
  const x = () => {
1224
- K(), S ? (u !== null && cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1225
- Z();
1226
- const B = _();
1227
- tt(B);
1228
- })) : (u !== null && cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1229
- const B = _();
1230
- tt(B);
1222
+ D(), A ? (p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1223
+ K();
1224
+ const P = _();
1225
+ tt(P);
1226
+ })) : (p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1227
+ const P = _();
1228
+ tt(P);
1231
1229
  }));
1232
- }, C = () => K(), b = () => K();
1233
- return c.addEventListener("scroll", x, { passive: !0 }), c.addEventListener("touchstart", C, {
1230
+ }, C = () => D(), b = () => D();
1231
+ return u.addEventListener("scroll", x, { passive: !0 }), u.addEventListener("touchstart", C, {
1234
1232
  passive: !0
1235
- }), c.addEventListener("mousedown", b), () => {
1236
- c.removeEventListener("scroll", x), c.removeEventListener("touchstart", C), c.removeEventListener("mousedown", b), g.current && clearTimeout(g.current), u !== null && cancelAnimationFrame(u);
1233
+ }), u.addEventListener("mousedown", b), () => {
1234
+ u.removeEventListener("scroll", x), u.removeEventListener("touchstart", C), u.removeEventListener("mousedown", b), h.current && clearTimeout(h.current), p !== null && cancelAnimationFrame(p);
1237
1235
  };
1238
1236
  }, [
1239
- S,
1237
+ A,
1238
+ D,
1240
1239
  K,
1241
- Z,
1242
1240
  _,
1243
1241
  tt
1244
1242
  ]), v.useEffect(() => {
1245
- if (f) {
1246
- const c = f.getControlProps(t);
1247
- c && c !== l && I(c);
1243
+ if (g) {
1244
+ const u = g.getControlProps(t);
1245
+ u && u !== l && S(u);
1248
1246
  }
1249
- }, [t, f, l]), v.useEffect(() => {
1250
- if (l.currentIndex !== void 0 && o.current && m.length > 0 && R > 0) {
1251
- const c = Math.max(
1247
+ }, [t, g, l]), v.useEffect(() => {
1248
+ if (l.currentIndex !== void 0 && o.current && m.length > 0 && B > 0) {
1249
+ const u = Math.max(
1252
1250
  0,
1253
1251
  Math.min(l.currentIndex, m.length - 1)
1254
- ), u = _();
1255
- c !== u && L(c, !0);
1252
+ ), p = _();
1253
+ u !== p && R(u, !0);
1256
1254
  }
1257
1255
  }, [
1258
1256
  l.currentIndex,
1259
1257
  m.length,
1260
1258
  m.length,
1261
- R,
1262
- P,
1259
+ B,
1260
+ T,
1263
1261
  z,
1264
- L,
1262
+ R,
1265
1263
  _
1266
1264
  ]), v.useEffect(() => {
1267
- if (S && o.current && m.length > 0 && m.length > 0 && (z ? P > 0 : R > 0)) {
1268
- const c = z ? P : R;
1265
+ if (A && o.current && m.length > 0 && m.length > 0 && (z ? T > 0 : B > 0)) {
1266
+ const u = z ? T : B;
1269
1267
  setTimeout(() => {
1270
- o.current && (z ? o.current.scrollTop = c : o.current.scrollLeft = c);
1268
+ o.current && (z ? o.current.scrollTop = u : o.current.scrollLeft = u);
1271
1269
  }, 0);
1272
1270
  }
1273
- }, [S, m.length, R, P, z]), v.useEffect(() => {
1274
- if (!f) return;
1275
- const { registerContainer: c, unregisterContainer: u } = f;
1271
+ }, [A, m.length, B, T, z]), v.useEffect(() => {
1272
+ if (!g) return;
1273
+ const { registerContainer: u, unregisterContainer: p } = g;
1276
1274
  return () => {
1277
1275
  };
1278
1276
  }, [
1279
1277
  t,
1280
- f?.registerContainer,
1281
- f?.unregisterContainer,
1278
+ g?.registerContainer,
1279
+ g?.unregisterContainer,
1282
1280
  // controlProps, // REMOVED to break infinite loop
1283
- L,
1281
+ R,
1284
1282
  _
1285
1283
  ]);
1286
- const zt = {
1284
+ const $t = {
1287
1285
  display: "flex",
1288
1286
  flexDirection: z ? "column" : "row",
1289
1287
  overflowX: z ? "hidden" : "auto",
@@ -1294,11 +1292,11 @@ const ct = v.createContext({}), H = v.createContext(
1294
1292
  height: "100%",
1295
1293
  WebkitOverflowScrolling: "touch"
1296
1294
  // Smooth scrolling on iOS
1297
- }, Vt = {
1295
+ }, zt = {
1298
1296
  flexShrink: 0,
1299
1297
  scrollSnapAlign: "start",
1300
- width: X.width > 0 ? X.width : void 0,
1301
- height: X.height > 0 ? X.height : void 0,
1298
+ width: Z.width > 0 ? Z.width : void 0,
1299
+ height: Z.height > 0 ? Z.height : void 0,
1302
1300
  position: "relative"
1303
1301
  };
1304
1302
  return /* @__PURE__ */ d(
@@ -1308,51 +1306,51 @@ const ct = v.createContext({}), H = v.createContext(
1308
1306
  "data-name": r,
1309
1307
  "data-type": "SliderComponent",
1310
1308
  ref: s,
1311
- style: A,
1312
- children: /* @__PURE__ */ d("div", { ref: o, style: zt, children: Y.map((c, u) => /* @__PURE__ */ d(
1309
+ style: F,
1310
+ children: /* @__PURE__ */ d("div", { ref: o, style: $t, children: Y.map((u, p) => /* @__PURE__ */ d(
1313
1311
  H.Provider,
1314
1312
  {
1315
1313
  value: {
1316
1314
  dimensions: {
1317
- width: X.width,
1318
- height: X.height
1315
+ width: Z.width,
1316
+ height: Z.height
1319
1317
  },
1320
1318
  isFlex: !1
1321
1319
  },
1322
- children: /* @__PURE__ */ d("div", { style: Vt, children: c })
1320
+ children: /* @__PURE__ */ d("div", { style: zt, children: u })
1323
1321
  },
1324
- c.key || `slide-${u}`
1322
+ u.key || `slide-${p}`
1325
1323
  )) })
1326
1324
  }
1327
1325
  );
1328
- }, $t = (t, r) => {
1326
+ }, kt = (t, r) => {
1329
1327
  const e = Array.isArray(t) ? t : [t];
1330
1328
  for (const n of e)
1331
1329
  if (!(!n || !n.props)) {
1332
1330
  if (n.props.id === r)
1333
1331
  return n;
1334
1332
  if (n.props.children) {
1335
- const i = $t(n.props.children, r);
1333
+ const i = kt(n.props.children, r);
1336
1334
  if (i) return i;
1337
1335
  }
1338
1336
  }
1339
1337
  return null;
1340
- }, Wt = ({ id: t, name: r, nodeData: e, children: n }) => {
1341
- const { dimensions: i, ref: s } = rt(), { componentId: o } = M(lt), p = M(H), a = e.style.originalSize?.[0] || 375;
1338
+ }, Lt = ({ id: t, name: r, nodeData: e, children: n }) => {
1339
+ const { dimensions: i, ref: s } = it(), { componentId: o } = N(st), f = N(H), a = e.style.originalSize?.[0] || 375;
1342
1340
  e.style.originalSize?.[1];
1343
- const g = p?.dimensions?.width, E = p?.dimensions?.height, f = window.innerWidth, y = g && g > 0 && g < f * 0.8;
1341
+ const h = f?.dimensions?.width, I = f?.dimensions?.height, g = window.innerWidth, y = h && h > 0 && h < g * 0.8;
1344
1342
  let l;
1345
- i.width > 0 && i.height > 0 ? (l = i.width, i.height) : y && g && E || g && E && g > 0 && E > 0 ? l = g : l = f;
1346
- const I = a < 768;
1347
- let F = l, w = "100%";
1348
- if (I && l > a * 1.5) {
1349
- const A = Math.round(a * 1.5);
1350
- F = A, w = A;
1343
+ i.width > 0 && i.height > 0 ? (l = i.width, i.height) : y && h && I || h && I && h > 0 && I > 0 ? l = h : l = g;
1344
+ const S = a < 768;
1345
+ let w = l, L = "100%";
1346
+ if (S && l > a * 1.5) {
1347
+ const F = Math.round(a * 1.5);
1348
+ w = F, L = F;
1351
1349
  }
1352
- const T = { scaleFactor: F / a || 1 };
1350
+ const c = { scaleFactor: w / a || 1 };
1353
1351
  if (o) {
1354
- const A = $t(n, o);
1355
- return A ? /* @__PURE__ */ d(ct.Provider, { value: T, children: /* @__PURE__ */ d(
1352
+ const F = kt(n, o);
1353
+ return F ? /* @__PURE__ */ d(lt.Provider, { value: c, children: /* @__PURE__ */ d(
1356
1354
  H.Provider,
1357
1355
  {
1358
1356
  value: {
@@ -1361,48 +1359,48 @@ const ct = v.createContext({}), H = v.createContext(
1361
1359
  height: "100%"
1362
1360
  }
1363
1361
  },
1364
- children: A
1362
+ children: F
1365
1363
  }
1366
1364
  ) }) : (console.warn(`Child with id "${o}" not found`), null);
1367
1365
  }
1368
- const h = Array.isArray(n) ? n : [n], { scrollableChildren: S, nonScrollableChildren: G } = h.reduce(
1369
- (A, V) => {
1370
- const O = V.props.nodeData.type === "container:top-bar" ? "nonScrollableChildren" : "scrollableChildren";
1371
- return A[O].push(V), A;
1366
+ const $ = Array.isArray(n) ? n : [n], { scrollableChildren: A, nonScrollableChildren: O } = $.reduce(
1367
+ (F, V) => {
1368
+ const j = V.props.nodeData.type === "container:top-bar" ? "nonScrollableChildren" : "scrollableChildren";
1369
+ return F[j].push(V), F;
1372
1370
  },
1373
1371
  {
1374
1372
  scrollableChildren: [],
1375
1373
  nonScrollableChildren: []
1376
1374
  }
1377
1375
  );
1378
- let N = e.style?.layout?.mode;
1379
- if (!N && t === "01KASW494V02Y8P5JVWV5XK62X" && (console.log("🔧 PATCHING missing layout for page", t), N = "HORIZONTAL"), !N && n) {
1380
- const A = Array.isArray(n) ? n : [n];
1381
- let V = 0, U = 0;
1382
- A.forEach((m) => {
1376
+ let U = e.style?.layout?.mode;
1377
+ if (!U && t === "01KASW494V02Y8P5JVWV5XK62X" && (console.log("🔧 PATCHING missing layout for page", t), U = "HORIZONTAL"), !U && n) {
1378
+ const F = Array.isArray(n) ? n : [n];
1379
+ let V = 0, X = 0;
1380
+ F.forEach((m) => {
1383
1381
  const Y = m?.props?.nodeData?.style?.width;
1384
- Y && (V += Y, Y < 99 && U++);
1385
- }), U > 0 && V >= 99 && (console.log(
1386
- `[PATCH] Detected HORIZONTAL WRAP layout for page ${t} (Partial width children: ${U}, Total width: ${V})`
1387
- ), N = "HORIZONTAL", e.style || (e.style = {}), e.style.layout || (e.style.layout = {}), e.style.layout.mode = "HORIZONTAL", e.style.layout.flexWrap = "wrap", e.style.layout.primaryAxisAlignItems = "flex-start", e.style.layout.counterAxisAlignItems = "flex-start");
1382
+ Y && (V += Y, Y < 99 && X++);
1383
+ }), X > 0 && V >= 99 && (console.log(
1384
+ `[PATCH] Detected HORIZONTAL WRAP layout for page ${t} (Partial width children: ${X}, Total width: ${V})`
1385
+ ), U = "HORIZONTAL", e.style || (e.style = {}), e.style.layout || (e.style.layout = {}), e.style.layout.mode = "HORIZONTAL", e.style.layout.flexWrap = "wrap", e.style.layout.primaryAxisAlignItems = "flex-start", e.style.layout.counterAxisAlignItems = "flex-start");
1388
1386
  }
1389
- const j = N === "HORIZONTAL" ? "row" : "column", D = G.some(
1390
- (A) => A?.props?.nodeData?.type !== "container:background"
1387
+ const M = U === "HORIZONTAL" ? "row" : "column", G = O.some(
1388
+ (F) => F?.props?.nodeData?.type !== "container:background"
1391
1389
  );
1392
- return /* @__PURE__ */ d(ct.Provider, { value: T, children: /* @__PURE__ */ it(
1390
+ return /* @__PURE__ */ d(lt.Provider, { value: c, children: /* @__PURE__ */ pt(
1393
1391
  "div",
1394
1392
  {
1395
1393
  style: {
1396
1394
  width: "100%",
1397
1395
  height: "100%",
1398
- maxWidth: typeof w == "number" ? `${w}px` : w,
1399
- margin: I ? "0 auto" : 0,
1396
+ maxWidth: typeof L == "number" ? `${L}px` : L,
1397
+ margin: S ? "0 auto" : 0,
1400
1398
  position: "relative",
1401
1399
  overflow: "hidden",
1402
1400
  // Only use flex if we have non-background nonScrollableChildren (like top-bar)
1403
- ...D ? {
1401
+ ...G ? {
1404
1402
  display: "flex",
1405
- flexDirection: j,
1403
+ flexDirection: M,
1406
1404
  gap: 0,
1407
1405
  rowGap: 0,
1408
1406
  columnGap: 0
@@ -1410,9 +1408,9 @@ const ct = v.createContext({}), H = v.createContext(
1410
1408
  },
1411
1409
  ref: s,
1412
1410
  children: [
1413
- G.filter(
1414
- (A) => A?.props?.nodeData?.type === "container:background"
1415
- ).map((A, V) => /* @__PURE__ */ d(
1411
+ O.filter(
1412
+ (F) => F?.props?.nodeData?.type === "container:background"
1413
+ ).map((F, V) => /* @__PURE__ */ d(
1416
1414
  H.Provider,
1417
1415
  {
1418
1416
  value: {
@@ -1421,13 +1419,13 @@ const ct = v.createContext({}), H = v.createContext(
1421
1419
  height: i.height
1422
1420
  }
1423
1421
  },
1424
- children: A
1422
+ children: F
1425
1423
  },
1426
1424
  `bg-${V}`
1427
1425
  )),
1428
- D && G.filter(
1429
- (A) => A?.props?.nodeData?.type !== "container:background"
1430
- ).map((A, V) => /* @__PURE__ */ d(
1426
+ G && O.filter(
1427
+ (F) => F?.props?.nodeData?.type !== "container:background"
1428
+ ).map((F, V) => /* @__PURE__ */ d(
1431
1429
  H.Provider,
1432
1430
  {
1433
1431
  value: {
@@ -1436,7 +1434,7 @@ const ct = v.createContext({}), H = v.createContext(
1436
1434
  height: i.height
1437
1435
  }
1438
1436
  },
1439
- children: A
1437
+ children: F
1440
1438
  },
1441
1439
  `non-scroll-${V}`
1442
1440
  )),
@@ -1448,32 +1446,32 @@ const ct = v.createContext({}), H = v.createContext(
1448
1446
  "data-type": "PageComponent",
1449
1447
  style: {
1450
1448
  position: "relative",
1451
- ...D ? {
1449
+ ...G ? {
1452
1450
  flex: 1,
1453
- ...j === "row" ? { alignSelf: "stretch" } : {}
1451
+ ...M === "row" ? { alignSelf: "stretch" } : {}
1454
1452
  // Removed height: "100%" to allow HUG containers to size based on content
1455
1453
  } : {
1456
1454
  width: "100%"
1457
1455
  // Removed height: "100%" to allow HUG containers to size based on content
1458
1456
  },
1459
1457
  // Remove overflow: auto in horizontal mode as it causes height collapse
1460
- ...j === "column" && { overflow: "auto" },
1458
+ ...M === "column" && { overflow: "auto" },
1461
1459
  ...W(e.style, {
1462
1460
  debug: !1
1463
1461
  })
1464
1462
  },
1465
- children: S
1463
+ children: A
1466
1464
  }
1467
1465
  ) })
1468
1466
  ]
1469
1467
  }
1470
1468
  ) });
1471
- }, kt = ({
1469
+ }, Wt = ({
1472
1470
  id: t,
1473
1471
  nodeData: r,
1474
1472
  children: e
1475
1473
  }) => {
1476
- const i = M(q)?.embedsById?.[t], s = W(r.style, { debug: !1 });
1474
+ const i = N(q)?.embedsById?.[t], s = W(r.style, { debug: !1 });
1477
1475
  return i ? /* @__PURE__ */ d(
1478
1476
  "div",
1479
1477
  {
@@ -1491,61 +1489,61 @@ const ct = v.createContext({}), H = v.createContext(
1491
1489
  }
1492
1490
  ) : /* @__PURE__ */ d("div", { style: s, "data-type": "EmbedComponent-Empty", "data-id": t, children: e });
1493
1491
  }, ee = {
1494
- EmbedComponent: kt,
1495
- WebViewComponent: dt,
1496
- ColorComponent: gt,
1497
- GradientComponent: mt,
1498
- ImageComponent: yt,
1499
- EmailInputComponent: bt,
1500
- HiddenInputComponent: Ct,
1501
- ImageInputComponent: vt,
1502
- PasswordInputComponent: xt,
1503
- SelectInputComponent: St,
1504
- TextInputComponent: It,
1505
- LottieComponent: wt,
1506
- SvgComponent: At,
1507
- TextComponent: Et,
1508
- StatefulSetComponent: ut,
1492
+ EmbedComponent: Wt,
1493
+ WebViewComponent: ct,
1494
+ ColorComponent: ht,
1495
+ GradientComponent: gt,
1496
+ ImageComponent: mt,
1497
+ EmailInputComponent: yt,
1498
+ HiddenInputComponent: bt,
1499
+ ImageInputComponent: Ct,
1500
+ PasswordInputComponent: vt,
1501
+ SelectInputComponent: xt,
1502
+ TextInputComponent: St,
1503
+ LottieComponent: It,
1504
+ SvgComponent: wt,
1505
+ TextComponent: At,
1506
+ StatefulSetComponent: dt,
1509
1507
  StatefulCompoundComponent: Ft,
1510
- BackgroundContainerComponent: Tt,
1511
- ContainerComponent: ft,
1512
- CompoundComponent: Pt,
1513
- TopBarContainerComponent: Bt,
1508
+ BackgroundContainerComponent: Et,
1509
+ ContainerComponent: ut,
1510
+ CompoundComponent: Tt,
1511
+ TopBarContainerComponent: Pt,
1514
1512
  DefaultLayerComponent: Zt,
1515
- TabsMenuComponent: Rt,
1516
- MenuSideComponent: Lt,
1517
- SliderComponent: at,
1518
- PageComponent: Wt,
1513
+ TabsMenuComponent: Bt,
1514
+ MenuSideComponent: Rt,
1515
+ SliderComponent: rt,
1516
+ PageComponent: Lt,
1519
1517
  // Type string mappings for dynamically loaded components
1520
- "menu:side": Lt,
1521
- "page:default": Wt,
1522
- "container:background": Tt,
1523
- "container:default": ft,
1524
- "container:top-bar": Bt,
1525
- "container:slider": at,
1526
- "component:text": Et,
1527
- "component:color": gt,
1528
- "component:gradient": mt,
1529
- "component:image": yt,
1530
- "component:svg": At,
1531
- "component:compound": Pt,
1532
- "component:input-stateful-set": ut,
1533
- "component:stateful-set": ut,
1518
+ "menu:side": Rt,
1519
+ "page:default": Lt,
1520
+ "container:background": Et,
1521
+ "container:default": ut,
1522
+ "container:top-bar": Pt,
1523
+ "container:slider": rt,
1524
+ "component:text": At,
1525
+ "component:color": ht,
1526
+ "component:gradient": gt,
1527
+ "component:image": mt,
1528
+ "component:svg": wt,
1529
+ "component:compound": Tt,
1530
+ "component:input-stateful-set": dt,
1531
+ "component:stateful-set": dt,
1534
1532
  "component:stateful-compound": Ft,
1535
- "component:slider": at,
1536
- "component:webview": dt,
1537
- "component:web-view": dt,
1533
+ "component:slider": rt,
1534
+ "component:webview": ct,
1535
+ "component:web-view": ct,
1538
1536
  "component:video": Xt,
1539
- "component:lottie": wt,
1540
- "component:email-input": bt,
1541
- "component:text-input": It,
1542
- "component:password-input": xt,
1543
- "component:select-input": St,
1544
- "component:image-input": vt,
1545
- "component:hidden-input": Ct,
1546
- "component:tabs-menu": Rt,
1547
- "component:embed": kt,
1548
- ContainerSliderComponent: at
1537
+ "component:lottie": It,
1538
+ "component:email-input": yt,
1539
+ "component:text-input": St,
1540
+ "component:password-input": vt,
1541
+ "component:select-input": xt,
1542
+ "component:image-input": Ct,
1543
+ "component:hidden-input": bt,
1544
+ "component:tabs-menu": Bt,
1545
+ "component:embed": Wt,
1546
+ ContainerSliderComponent: rt
1549
1547
  };
1550
1548
  export {
1551
1549
  ee as default