asheeui 0.6.10 → 0.6.13

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 (39) hide show
  1. package/dist/components/accordion/Accordion.js +7 -7
  2. package/dist/components/autocomplete/Autocomplete.d.ts +5 -5
  3. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  4. package/dist/components/autocomplete/Autocomplete.js +42 -41
  5. package/dist/components/carousel/Carousel.js +43 -43
  6. package/dist/components/chip/Chip.js +8 -8
  7. package/dist/components/date-picker/Calendar.d.ts +6 -1
  8. package/dist/components/date-picker/Calendar.d.ts.map +1 -1
  9. package/dist/components/date-picker/Calendar.js +30 -30
  10. package/dist/components/date-picker/DatePicker.d.ts +7 -6
  11. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  12. package/dist/components/date-picker/DatePicker.js +166 -155
  13. package/dist/components/date-picker/date-picker-config.d.ts +12 -1
  14. package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
  15. package/dist/components/marquee/Marquee.js +22 -22
  16. package/dist/components/multi-select/MultiSelect.d.ts +5 -5
  17. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  18. package/dist/components/multi-select/MultiSelect.js +45 -44
  19. package/dist/components/select/Select.d.ts +5 -5
  20. package/dist/components/select/Select.d.ts.map +1 -1
  21. package/dist/components/select/Select.js +117 -114
  22. package/dist/components/select-menu/SelectMenu.d.ts +20 -11
  23. package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
  24. package/dist/components/select-menu/SelectMenu.js +146 -109
  25. package/dist/components/select-menu/select-menu-config.d.ts +8 -4
  26. package/dist/components/select-menu/select-menu-config.d.ts.map +1 -1
  27. package/dist/components/select-menu/select-menu-config.js +1 -1
  28. package/dist/components/select-menu/use-select-floating.d.ts +46 -17
  29. package/dist/components/select-menu/use-select-floating.d.ts.map +1 -1
  30. package/dist/components/select-menu/use-select-floating.js +36 -22
  31. package/dist/components/toast/ToastItem.js +30 -30
  32. package/dist/components/toast/ToastProvider.d.ts +5 -5
  33. package/dist/components/toast/ToastProvider.d.ts.map +1 -1
  34. package/dist/components/toast/ToastProvider.js +66 -66
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/theme/controller.d.ts.map +1 -1
  38. package/dist/theme/controller.js +14 -16
  39. package/package.json +3 -20
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as f, Fragment as P } from "react/jsx-runtime";
3
- import { forwardRef as Q, useMemo as T, isValidElement as U } from "react";
4
- import { useAsheeConfig as b } from "../../libs/context.js";
2
+ import { jsx as r, jsxs as f, Fragment as O } from "react/jsx-runtime";
3
+ import { forwardRef as P, useMemo as Q, isValidElement as T } from "react";
4
+ import { useAsheeConfig as U } from "../../libs/context.js";
5
5
  import { resolveCascade as a } from "../../utils/resolve-token.js";
6
6
  import { FALLBACK_MARQUEE_CONFIG as o } from "./marquee-config.js";
7
7
  import { MARQUEE_SPEED_PRESETS as E, MARQUEE_FADE_START_CLASS as g, MARQUEE_FADE_END_CLASS as H } from "./marquee-styles.js";
8
8
  import { cn as s } from "../../utils/cn.js";
9
- const j = Q(
9
+ const j = P(
10
10
  ({
11
11
  children: i,
12
12
  axis: y,
13
13
  direction: x,
14
14
  speed: A,
15
- gap: S,
16
- pauseOnHover: h,
15
+ gap: h,
16
+ pauseOnHover: S,
17
17
  fadeEdges: _,
18
18
  className: N,
19
- itemClassName: c,
19
+ itemClassName: p,
20
20
  ...q
21
21
  }, D) => {
22
22
  var v;
23
- const e = (v = b().components) == null ? void 0 : v.marquee, m = a(
23
+ const e = (v = U().components) == null ? void 0 : v.marquee, l = a(
24
24
  y,
25
25
  e == null ? void 0 : e.axis,
26
26
  void 0,
@@ -30,18 +30,18 @@ const j = Q(
30
30
  e == null ? void 0 : e.direction,
31
31
  void 0,
32
32
  o.direction
33
- ), l = a(
33
+ ), m = a(
34
34
  A,
35
35
  e == null ? void 0 : e.speed,
36
36
  void 0,
37
37
  o.speed
38
38
  ), d = a(
39
- S,
39
+ h,
40
40
  e == null ? void 0 : e.gap,
41
41
  void 0,
42
42
  o.gap
43
43
  ), M = a(
44
- h,
44
+ S,
45
45
  e == null ? void 0 : e.pauseOnHover,
46
46
  void 0,
47
47
  o.pauseOnHover
@@ -50,9 +50,9 @@ const j = Q(
50
50
  e == null ? void 0 : e.fadeEdges,
51
51
  void 0,
52
52
  o.fadeEdges
53
- ), k = typeof l == "number" ? l : E[l] ?? E.normal, t = m === "y", w = T(
53
+ ), k = typeof m == "number" ? m : E[m] ?? E.normal, t = l === "y", w = Q(
54
54
  () => [i, i].map(($, u) => {
55
- const p = u === 0 ? "primary" : "secondary";
55
+ const c = u === 0 ? "primary" : "secondary";
56
56
  return /* @__PURE__ */ r(
57
57
  "div",
58
58
  {
@@ -64,22 +64,22 @@ const j = Q(
64
64
  gap: d
65
65
  },
66
66
  "aria-hidden": u === 1,
67
- children: $.map((n, L) => {
68
- const O = U(n) && n.key ? `${p}-${n.key}` : `${p}-item-${L}`;
69
- return /* @__PURE__ */ r("div", { className: s("shrink-0", c), children: n }, O);
67
+ children: $.map((n, b) => {
68
+ const L = T(n) && n.key ? `${c}-${n.key}` : `${c}-item-${b}`;
69
+ return /* @__PURE__ */ r("div", { className: s("shrink-0", p), children: n }, L);
70
70
  })
71
71
  },
72
- `${p}-set`
72
+ `${c}-set`
73
73
  );
74
74
  }),
75
- [i, t, d, c]
75
+ [i, t, d, p]
76
76
  );
77
77
  return /* @__PURE__ */ f(
78
78
  "div",
79
79
  {
80
80
  ref: D,
81
81
  className: s(
82
- "group relative overflow-clip",
82
+ "group relative scrollbar-hide overflow-hidden",
83
83
  t ? "h-full" : "w-full",
84
84
  N
85
85
  ),
@@ -114,13 +114,13 @@ const j = Q(
114
114
  children: w
115
115
  }
116
116
  ),
117
- R && /* @__PURE__ */ f(P, { children: [
117
+ R && /* @__PURE__ */ f(O, { children: [
118
118
  /* @__PURE__ */ r(
119
119
  "div",
120
120
  {
121
121
  className: s(
122
122
  "absolute z-10 pointer-events-none",
123
- g[m]
123
+ g[l]
124
124
  )
125
125
  }
126
126
  ),
@@ -129,7 +129,7 @@ const j = Q(
129
129
  {
130
130
  className: s(
131
131
  "absolute z-10 pointer-events-none",
132
- H[m]
132
+ H[l]
133
133
  )
134
134
  }
135
135
  )
@@ -121,11 +121,11 @@ export interface MultiSelectProps extends MultiSelectFieldProps, MultiSelectCont
121
121
  * label, description, and message handling, and uses Floating UI for
122
122
  * positioning and accessibility.
123
123
  *
124
- * By default, the dropdown menu uses React's createPortal to render at the
125
- * document body level. This ensures the menu escapes CSS containment, overflow
126
- * clipping, and stacking context issues. The portal can be disabled via the
127
- * `menu.portal` prop or `components.multiSelect.menu.portal` in the config
128
- * if the menu needs to stay within a specific parent container.
124
+ * By default, the dropdown menu uses Floating UI's FloatingPortal to render
125
+ * at the document body level. This ensures the menu escapes CSS containment,
126
+ * overflow clipping, and stacking context issues. The portal can be disabled
127
+ * via the `menu.portal` prop or `components.multiSelect.menu.portal` in the
128
+ * config if the menu needs to stay within a specific parent container.
129
129
  *
130
130
  * @param props - MultiSelect configuration options.
131
131
  * @param props.options - Available options to select from.
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/multi-select/MultiSelect.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAgBf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAU/B;;;GAGG;AACH,KAAK,qBAAqB,GAAG,IAAI,CAC/B,UAAU,EACR,OAAO,GACP,aAAa,GACb,SAAS,GACT,UAAU,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AAC,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;IAEjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEjC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAEjD;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGG;AACH,eAAO,MAAM,WAAW,gHAoYvB,CAAC"}
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import { jsx as l, jsxs as S, Fragment as Pe } from "react/jsx-runtime";
3
- import { useClick as Re, useDismiss as Ue, useRole as je, useInteractions as Ve } from "@floating-ui/react";
4
- import { forwardRef as $e, useId as Be, useState as B, useMemo as A, useCallback as z } from "react";
5
- import { ChevronDownIcon as Ge } from "../../icons/ChevronDownIcon.js";
6
- import { CloseIcon as He } from "../../icons/CloseIcon.js";
7
- import { useAsheeConfig as Qe } from "../../libs/context.js";
2
+ import { jsx as l, jsxs as S, Fragment as Re } from "react/jsx-runtime";
3
+ import { useClick as Ue, useDismiss as je, useRole as Ve, useInteractions as $e } from "@floating-ui/react";
4
+ import { forwardRef as Be, useId as Ge, useState as B, useMemo as A, useCallback as z } from "react";
5
+ import { ChevronDownIcon as He } from "../../icons/ChevronDownIcon.js";
6
+ import { CloseIcon as Qe } from "../../icons/CloseIcon.js";
7
+ import { useAsheeConfig as he } from "../../libs/context.js";
8
8
  import { resolveCascade as m, resolveRadiusKey as G, resolveClassKey as N } from "../../utils/resolve-token.js";
9
- import { Button as he } from "../button/Button.js";
10
- import { Chip as We } from "../chip/Chip.js";
11
- import { FieldShell as qe } from "../field/FieldShell.js";
12
- import { SelectMenu as Je } from "../select-menu/SelectMenu.js";
9
+ import { Button as We } from "../button/Button.js";
10
+ import { Chip as qe } from "../chip/Chip.js";
11
+ import { FieldShell as Je } from "../field/FieldShell.js";
12
+ import { SelectMenu as Xe } from "../select-menu/SelectMenu.js";
13
13
  import { FALLBACK_MULTI_SELECT_CONFIG as s } from "./multi-select-config.js";
14
- import { MULTI_SELECT_HEIGHT_CLASS as Xe, MULTI_SELECT_PADDING_CLASS as Ye, MULTI_SELECT_FONT_CLASS as Ze, STATUS_BORDER_CLASS as Ce } from "./multi-select-styles.js";
15
- import { RADIUS_CLASS as er } from "../../shared/radius.js";
16
- import { useSelectFloating as rr } from "../select-menu/use-select-floating.js";
14
+ import { MULTI_SELECT_HEIGHT_CLASS as Ye, MULTI_SELECT_PADDING_CLASS as Ze, MULTI_SELECT_FONT_CLASS as Ce, STATUS_BORDER_CLASS as er } from "./multi-select-styles.js";
15
+ import { RADIUS_CLASS as rr } from "../../shared/radius.js";
16
+ import { useSelectFloating as sr } from "../select-menu/use-select-floating.js";
17
17
  import { cn as v } from "../../utils/cn.js";
18
- const sr = $e(
18
+ const tr = Be(
19
19
  ({
20
20
  options: _ = [],
21
21
  value: n,
@@ -52,7 +52,7 @@ const sr = $e(
52
52
  endContent: ce
53
53
  }, x) => {
54
54
  var R, U, j, V;
55
- const p = Qe(), e = (R = p.components) == null ? void 0 : R.multiSelect, ue = Be(), y = le ?? ue, [b, de] = B(!1), [me, fe] = B(""), g = m(
55
+ const p = he(), e = (R = p.components) == null ? void 0 : R.multiSelect, ue = Ge(), y = le ?? ue, [b, de] = B(!1), [me, fe] = B(""), g = m(
56
56
  Y,
57
57
  e == null ? void 0 : e.size,
58
58
  void 0,
@@ -94,39 +94,39 @@ const sr = $e(
94
94
  s.labelAlign
95
95
  ), ge = N(
96
96
  g,
97
- Xe,
97
+ Ye,
98
98
  s.size
99
99
  ), Ie = N(
100
100
  g,
101
- Ye,
101
+ Ze,
102
102
  s.size
103
103
  ), Ne = N(
104
104
  g,
105
- Ze,
105
+ Ce,
106
106
  s.size
107
107
  ), _e = N(
108
108
  pe,
109
- er,
109
+ rr,
110
110
  s.chip.radius
111
- ), { refs: K, floatingStyles: Le, context: I } = rr({
111
+ ), { refs: K, context: I, isPositioned: Le, floatingStyles: we } = sr({
112
112
  isOpen: b,
113
113
  onOpenChange: de,
114
114
  disabled: c
115
- }), we = Re(I, { enabled: !c }), Ae = Ue(I), ze = je(I, { role: "listbox" }), { getReferenceProps: Te, getFloatingProps: Ee } = Ve([
116
- we,
115
+ }), Ae = Ue(I, { enabled: !c }), ze = je(I), Te = Ve(I, { role: "listbox" }), { getReferenceProps: Ee, getFloatingProps: ke } = $e([
117
116
  Ae,
118
- ze
117
+ ze,
118
+ Te
119
119
  ]), o = A(() => L !== void 0 ? L : Array.isArray(n) ? _.filter((r) => n.includes(r.value)) : [], [L, n, _]), O = z(
120
120
  (r) => o.some((t) => t.value === r),
121
121
  [o]
122
- ), ke = z(
122
+ ), Me = z(
123
123
  (r) => {
124
124
  const t = O(r.value);
125
125
  if (f || i)
126
126
  t ? i == null || i(r.value) : f == null || f(r);
127
127
  else if (u) {
128
- const $ = n ?? [], Ke = t ? $.filter((Oe) => Oe !== r.value) : [...$, r.value];
129
- u(Ke);
128
+ const $ = n ?? [], Oe = t ? $.filter((Pe) => Pe !== r.value) : [...$, r.value];
129
+ u(Oe);
130
130
  }
131
131
  },
132
132
  [O, f, i, u, n]
@@ -135,12 +135,12 @@ const sr = $e(
135
135
  i ? i(r) : u && Array.isArray(n) && u(n.filter((t) => t !== r));
136
136
  },
137
137
  [i, u, n]
138
- ), Me = A(
138
+ ), De = A(
139
139
  () => o.map((r) => r.value),
140
140
  [o]
141
- ), De = A(() => o.length > 0 ? `${o.length} selected` : T, [o.length, T]), Fe = Te();
141
+ ), Fe = A(() => o.length > 0 ? `${o.length} selected` : T, [o.length, T]), Ke = Ee();
142
142
  return /* @__PURE__ */ l(
143
- qe,
143
+ Je,
144
144
  {
145
145
  id: y,
146
146
  label: ee,
@@ -160,7 +160,7 @@ const sr = $e(
160
160
  children: [
161
161
  /* @__PURE__ */ S("div", { className: "relative w-full", children: [
162
162
  /* @__PURE__ */ l(
163
- he,
163
+ We,
164
164
  {
165
165
  ref: (r) => {
166
166
  K.setReference(r), typeof x == "function" ? x(r) : x && (x.current = r);
@@ -180,17 +180,17 @@ const sr = $e(
180
180
  "aria-describedby": [w ? `${y}-description` : void 0].filter(Boolean).join(" ") || void 0,
181
181
  className: v(
182
182
  "font-normal text-left justify-between",
183
- Ce[d],
183
+ er[d],
184
184
  ge,
185
185
  Ie,
186
186
  Ne,
187
187
  oe
188
188
  ),
189
189
  startContent: ie,
190
- endContent: /* @__PURE__ */ S(Pe, { children: [
190
+ endContent: /* @__PURE__ */ S(Re, { children: [
191
191
  ce,
192
192
  /* @__PURE__ */ l(
193
- Ge,
193
+ He,
194
194
  {
195
195
  className: v(
196
196
  "shrink-0 text-foreground/70 transition-transform duration-200",
@@ -199,7 +199,7 @@ const sr = $e(
199
199
  }
200
200
  )
201
201
  ] }),
202
- ...Fe,
202
+ ...Ke,
203
203
  children: /* @__PURE__ */ l(
204
204
  "span",
205
205
  {
@@ -207,22 +207,23 @@ const sr = $e(
207
207
  "truncate",
208
208
  o.length > 0 ? "text-foreground" : "text-foreground/70"
209
209
  ),
210
- children: De
210
+ children: Fe
211
211
  }
212
212
  )
213
213
  }
214
214
  ),
215
215
  /* @__PURE__ */ l(
216
- Je,
216
+ Xe,
217
217
  {
218
218
  isOpen: b,
219
+ floatingStyles: we,
219
220
  context: I,
220
- floatingStyles: Le,
221
- getFloatingProps: Ee,
221
+ getFloatingProps: ke,
222
222
  setFloatingRef: K.setFloating,
223
+ isPositioned: Le,
223
224
  options: _,
224
- selectedValues: Me,
225
- onSelectMenuOption: ke,
225
+ selectedValues: De,
226
+ onSelectMenuOption: Me,
226
227
  isSearch: H,
227
228
  searchPlaceholder: Q,
228
229
  searchInputName: h,
@@ -237,7 +238,7 @@ const sr = $e(
237
238
  !q && /* @__PURE__ */ S("div", { className: "flex flex-col gap-1.5", children: [
238
239
  E && /* @__PURE__ */ l("span", { className: "text-xs font-medium text-foreground/70", children: E }),
239
240
  /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-1.5 p-2 min-h-12 bg-secondary/20 border border-dashed border-border rounded-lg items-center", children: o.length === 0 ? /* @__PURE__ */ l("span", { className: "text-xs text-foreground/70 px-2 py-1", children: "No selections made" }) : o.map((r) => /* @__PURE__ */ S(
240
- We,
241
+ qe,
241
242
  {
242
243
  variant: "bordered",
243
244
  color: ve,
@@ -262,7 +263,7 @@ const sr = $e(
262
263
  },
263
264
  "aria-label": `Remove ${r.label}`,
264
265
  className: "inline-flex items-center justify-center h-3.5 w-3.5 rounded-full hover:bg-black/20 dark:hover:bg-white/20 transition-colors cursor-pointer shrink-0",
265
- children: /* @__PURE__ */ l(He, { className: "w-3 h-3" })
266
+ children: /* @__PURE__ */ l(Qe, { className: "w-3 h-3" })
266
267
  }
267
268
  )
268
269
  ]
@@ -277,7 +278,7 @@ const sr = $e(
277
278
  );
278
279
  }
279
280
  );
280
- sr.displayName = "MultiSelect";
281
+ tr.displayName = "MultiSelect";
281
282
  export {
282
- sr as MultiSelect
283
+ tr as MultiSelect
283
284
  };
@@ -104,11 +104,11 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
104
104
  * label, description, and message handling, and uses Floating UI for
105
105
  * positioning and accessibility.
106
106
  *
107
- * By default, the dropdown menu uses React's createPortal to render at the
108
- * document body level. This ensures the menu escapes CSS containment, overflow
109
- * clipping, and stacking context issues. The portal can be disabled via the
110
- * `menu.portal` prop or `components.select.menu.portal` in the config if the
111
- * menu needs to stay within a specific parent container.
107
+ * By default, the dropdown menu uses Floating UI's FloatingPortal to render
108
+ * at the document body level. This ensures the menu escapes CSS containment,
109
+ * overflow clipping, and stacking context issues. The portal can be disabled
110
+ * via the `menu.portal` prop or `components.select.menu.portal` in the config
111
+ * if the menu needs to stay within a specific parent container.
112
112
  *
113
113
  * @param props - Select configuration options.
114
114
  * @param props.options - Available options to select from.
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAK5E;;;GAGG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAC1B,UAAU,EACR,OAAO,GACP,aAAa,GACb,SAAS,GACT,UAAU,GACV,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,IAAI,GACJ,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,YA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