@rpcbase/ui 0.140.0 → 0.141.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ export declare const AddressAutocompleteInput: ({ id, label, placeholder, value,
9
9
  className?: string;
10
10
  autofillShimName?: string;
11
11
  googleMapsApiKey?: string;
12
- locationRestriction: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds;
12
+ locationRestriction?: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds;
13
13
  allowedTypes?: Iterable<string>;
14
14
  }) => import("react/jsx-runtime").JSX.Element;
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/AddressAutocompleteInput/index.tsx"],"names":[],"mappings":"AAoJA,eAAO,MAAM,wBAAwB,GAAI,qJAatC;IACD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAC,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAA;IAC/E,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAChC,4CAuTA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/AddressAutocompleteInput/index.tsx"],"names":[],"mappings":"AAoJA,eAAO,MAAM,wBAAwB,GAAI,qJAatC;IACD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAA;IAChF,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAChC,4CAyTA,CAAA"}
package/dist/index.js CHANGED
@@ -171,7 +171,7 @@ function Tu() {
171
171
  function e(w) {
172
172
  if (w == null) return null;
173
173
  if (typeof w == "function")
174
- return w.$$typeof === L ? null : w.displayName || w.name || null;
174
+ return w.$$typeof === j ? null : w.displayName || w.name || null;
175
175
  if (typeof w == "string") return w;
176
176
  switch (w) {
177
177
  case v:
@@ -223,8 +223,8 @@ function Tu() {
223
223
  }
224
224
  if (_) {
225
225
  _ = console;
226
- var U = _.error, V = typeof Symbol == "function" && Symbol.toStringTag && w[Symbol.toStringTag] || w.constructor.name || "Object";
227
- return U.call(
226
+ var L = _.error, V = typeof Symbol == "function" && Symbol.toStringTag && w[Symbol.toStringTag] || w.constructor.name || "Object";
227
+ return L.call(
228
228
  _,
229
229
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
230
230
  V
@@ -257,30 +257,30 @@ function Tu() {
257
257
  return w.key !== void 0;
258
258
  }
259
259
  function s(w, _) {
260
- function U() {
260
+ function L() {
261
261
  M || (M = !0, console.error(
262
262
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
263
263
  _
264
264
  ));
265
265
  }
266
- U.isReactWarning = !0, Object.defineProperty(w, "key", {
267
- get: U,
266
+ L.isReactWarning = !0, Object.defineProperty(w, "key", {
267
+ get: L,
268
268
  configurable: !0
269
269
  });
270
270
  }
271
271
  function l() {
272
272
  var w = e(this.type);
273
- return j[w] || (j[w] = !0, console.error(
273
+ return U[w] || (U[w] = !0, console.error(
274
274
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
275
275
  )), w = this.props.ref, w !== void 0 ? w : null;
276
276
  }
277
- function c(w, _, U, V, A, Y) {
278
- var T = U.ref;
277
+ function c(w, _, L, V, A, Y) {
278
+ var T = L.ref;
279
279
  return w = {
280
280
  $$typeof: $,
281
281
  type: w,
282
282
  key: _,
283
- props: U,
283
+ props: L,
284
284
  _owner: V
285
285
  }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(w, "ref", {
286
286
  enumerable: !1,
@@ -307,7 +307,7 @@ function Tu() {
307
307
  value: Y
308
308
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
309
309
  }
310
- function d(w, _, U, V, A, Y) {
310
+ function d(w, _, L, V, A, Y) {
311
311
  var T = _.children;
312
312
  if (T !== void 0)
313
313
  if (V)
@@ -338,18 +338,18 @@ React keys must be passed directly to JSX without using spread:
338
338
  T
339
339
  ), J[T + V] = !0);
340
340
  }
341
- if (T = null, U !== void 0 && (n(U), T = "" + U), a(_) && (n(_.key), T = "" + _.key), "key" in _) {
342
- U = {};
341
+ if (T = null, L !== void 0 && (n(L), T = "" + L), a(_) && (n(_.key), T = "" + _.key), "key" in _) {
342
+ L = {};
343
343
  for (var Z in _)
344
- Z !== "key" && (U[Z] = _[Z]);
345
- } else U = _;
344
+ Z !== "key" && (L[Z] = _[Z]);
345
+ } else L = _;
346
346
  return T && s(
347
- U,
347
+ L,
348
348
  typeof w == "function" ? w.displayName || w.name || "Unknown" : w
349
349
  ), c(
350
350
  w,
351
351
  T,
352
- U,
352
+ L,
353
353
  o(),
354
354
  A,
355
355
  Y
@@ -361,7 +361,7 @@ React keys must be passed directly to JSX without using spread:
361
361
  function m(w) {
362
362
  return typeof w == "object" && w !== null && w.$$typeof === $;
363
363
  }
364
- var g = pe, $ = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), D = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), F = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, W = Array.isArray, te = console.createTask ? console.createTask : function() {
364
+ var g = pe, $ = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), D = /* @__PURE__ */ Symbol.for("react.activity"), j = /* @__PURE__ */ Symbol.for("react.client.reference"), F = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, W = Array.isArray, te = console.createTask ? console.createTask : function() {
365
365
  return null;
366
366
  };
367
367
  g = {
@@ -369,26 +369,26 @@ React keys must be passed directly to JSX without using spread:
369
369
  return w();
370
370
  }
371
371
  };
372
- var M, j = {}, N = g.react_stack_bottom_frame.bind(
372
+ var M, U = {}, N = g.react_stack_bottom_frame.bind(
373
373
  g,
374
374
  i
375
375
  )(), R = te(r(i)), J = {};
376
- Mn.Fragment = v, Mn.jsx = function(w, _, U) {
376
+ Mn.Fragment = v, Mn.jsx = function(w, _, L) {
377
377
  var V = 1e4 > F.recentlyCreatedOwnerStacks++;
378
378
  return d(
379
379
  w,
380
380
  _,
381
- U,
381
+ L,
382
382
  !1,
383
383
  V ? Error("react-stack-top-frame") : N,
384
384
  V ? te(r(w)) : R
385
385
  );
386
- }, Mn.jsxs = function(w, _, U) {
386
+ }, Mn.jsxs = function(w, _, L) {
387
387
  var V = 1e4 > F.recentlyCreatedOwnerStacks++;
388
388
  return d(
389
389
  w,
390
390
  _,
391
- U,
391
+ L,
392
392
  !0,
393
393
  V ? Error("react-stack-top-frame") : N,
394
394
  V ? te(r(w)) : R
@@ -718,15 +718,15 @@ const Du = (e, t) => {
718
718
  "bottom-left",
719
719
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
720
720
  "left-bottom"
721
- ], P = () => [...C(), K, H], I = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], S = () => [K, H, l], O = () => [dn, "full", "auto", ...S()], D = () => [Bt, "none", "subgrid", K, H], L = () => ["auto", {
721
+ ], P = () => [...C(), K, H], I = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], S = () => [K, H, l], O = () => [dn, "full", "auto", ...S()], D = () => [Bt, "none", "subgrid", K, H], j = () => ["auto", {
722
722
  span: ["full", Bt, K, H]
723
- }, Bt, K, H], F = () => [Bt, "auto", K, H], q = () => ["auto", "min", "max", "fr", K, H], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ...S()], j = () => [dn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], N = () => [e, K, H], R = () => [...C(), Ra, Pa, {
723
+ }, Bt, K, H], F = () => [Bt, "auto", K, H], q = () => ["auto", "min", "max", "fr", K, H], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ...S()], U = () => [dn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], N = () => [e, K, H], R = () => [...C(), Ra, Pa, {
724
724
  position: [K, H]
725
725
  }], J = () => ["no-repeat", {
726
726
  repeat: ["", "x", "y", "space", "round"]
727
727
  }], w = () => ["auto", "cover", "contain", gf, hf, {
728
728
  size: [K, H]
729
- }], _ = () => [To, Fn, tn], U = () => [
729
+ }], _ = () => [To, Fn, tn], L = () => [
730
730
  // Deprecated since Tailwind CSS v4.0.0
731
731
  "",
732
732
  "none",
@@ -1053,7 +1053,7 @@ const Du = (e, t) => {
1053
1053
  * @see https://tailwindcss.com/docs/grid-column
1054
1054
  */
1055
1055
  "col-start-end": [{
1056
- col: L()
1056
+ col: j()
1057
1057
  }],
1058
1058
  /**
1059
1059
  * Grid Column Start
@@ -1081,7 +1081,7 @@ const Du = (e, t) => {
1081
1081
  * @see https://tailwindcss.com/docs/grid-row
1082
1082
  */
1083
1083
  "row-start-end": [{
1084
- row: L()
1084
+ row: j()
1085
1085
  }],
1086
1086
  /**
1087
1087
  * Grid Row Start
@@ -1365,14 +1365,14 @@ const Du = (e, t) => {
1365
1365
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1366
1366
  */
1367
1367
  size: [{
1368
- size: j()
1368
+ size: U()
1369
1369
  }],
1370
1370
  /**
1371
1371
  * Width
1372
1372
  * @see https://tailwindcss.com/docs/width
1373
1373
  */
1374
1374
  w: [{
1375
- w: [s, "screen", ...j()]
1375
+ w: [s, "screen", ...U()]
1376
1376
  }],
1377
1377
  /**
1378
1378
  * Min-Width
@@ -1384,7 +1384,7 @@ const Du = (e, t) => {
1384
1384
  "screen",
1385
1385
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1386
1386
  "none",
1387
- ...j()
1387
+ ...U()
1388
1388
  ]
1389
1389
  }],
1390
1390
  /**
@@ -1402,7 +1402,7 @@ const Du = (e, t) => {
1402
1402
  {
1403
1403
  screen: [a]
1404
1404
  },
1405
- ...j()
1405
+ ...U()
1406
1406
  ]
1407
1407
  }],
1408
1408
  /**
@@ -1410,21 +1410,21 @@ const Du = (e, t) => {
1410
1410
  * @see https://tailwindcss.com/docs/height
1411
1411
  */
1412
1412
  h: [{
1413
- h: ["screen", "lh", ...j()]
1413
+ h: ["screen", "lh", ...U()]
1414
1414
  }],
1415
1415
  /**
1416
1416
  * Min-Height
1417
1417
  * @see https://tailwindcss.com/docs/min-height
1418
1418
  */
1419
1419
  "min-h": [{
1420
- "min-h": ["screen", "lh", "none", ...j()]
1420
+ "min-h": ["screen", "lh", "none", ...U()]
1421
1421
  }],
1422
1422
  /**
1423
1423
  * Max-Height
1424
1424
  * @see https://tailwindcss.com/docs/max-height
1425
1425
  */
1426
1426
  "max-h": [{
1427
- "max-h": ["screen", "lh", ...j()]
1427
+ "max-h": ["screen", "lh", ...U()]
1428
1428
  }],
1429
1429
  // ------------------
1430
1430
  // --- Typography ---
@@ -1779,105 +1779,105 @@ const Du = (e, t) => {
1779
1779
  * @see https://tailwindcss.com/docs/border-radius
1780
1780
  */
1781
1781
  rounded: [{
1782
- rounded: U()
1782
+ rounded: L()
1783
1783
  }],
1784
1784
  /**
1785
1785
  * Border Radius Start
1786
1786
  * @see https://tailwindcss.com/docs/border-radius
1787
1787
  */
1788
1788
  "rounded-s": [{
1789
- "rounded-s": U()
1789
+ "rounded-s": L()
1790
1790
  }],
1791
1791
  /**
1792
1792
  * Border Radius End
1793
1793
  * @see https://tailwindcss.com/docs/border-radius
1794
1794
  */
1795
1795
  "rounded-e": [{
1796
- "rounded-e": U()
1796
+ "rounded-e": L()
1797
1797
  }],
1798
1798
  /**
1799
1799
  * Border Radius Top
1800
1800
  * @see https://tailwindcss.com/docs/border-radius
1801
1801
  */
1802
1802
  "rounded-t": [{
1803
- "rounded-t": U()
1803
+ "rounded-t": L()
1804
1804
  }],
1805
1805
  /**
1806
1806
  * Border Radius Right
1807
1807
  * @see https://tailwindcss.com/docs/border-radius
1808
1808
  */
1809
1809
  "rounded-r": [{
1810
- "rounded-r": U()
1810
+ "rounded-r": L()
1811
1811
  }],
1812
1812
  /**
1813
1813
  * Border Radius Bottom
1814
1814
  * @see https://tailwindcss.com/docs/border-radius
1815
1815
  */
1816
1816
  "rounded-b": [{
1817
- "rounded-b": U()
1817
+ "rounded-b": L()
1818
1818
  }],
1819
1819
  /**
1820
1820
  * Border Radius Left
1821
1821
  * @see https://tailwindcss.com/docs/border-radius
1822
1822
  */
1823
1823
  "rounded-l": [{
1824
- "rounded-l": U()
1824
+ "rounded-l": L()
1825
1825
  }],
1826
1826
  /**
1827
1827
  * Border Radius Start Start
1828
1828
  * @see https://tailwindcss.com/docs/border-radius
1829
1829
  */
1830
1830
  "rounded-ss": [{
1831
- "rounded-ss": U()
1831
+ "rounded-ss": L()
1832
1832
  }],
1833
1833
  /**
1834
1834
  * Border Radius Start End
1835
1835
  * @see https://tailwindcss.com/docs/border-radius
1836
1836
  */
1837
1837
  "rounded-se": [{
1838
- "rounded-se": U()
1838
+ "rounded-se": L()
1839
1839
  }],
1840
1840
  /**
1841
1841
  * Border Radius End End
1842
1842
  * @see https://tailwindcss.com/docs/border-radius
1843
1843
  */
1844
1844
  "rounded-ee": [{
1845
- "rounded-ee": U()
1845
+ "rounded-ee": L()
1846
1846
  }],
1847
1847
  /**
1848
1848
  * Border Radius End Start
1849
1849
  * @see https://tailwindcss.com/docs/border-radius
1850
1850
  */
1851
1851
  "rounded-es": [{
1852
- "rounded-es": U()
1852
+ "rounded-es": L()
1853
1853
  }],
1854
1854
  /**
1855
1855
  * Border Radius Top Left
1856
1856
  * @see https://tailwindcss.com/docs/border-radius
1857
1857
  */
1858
1858
  "rounded-tl": [{
1859
- "rounded-tl": U()
1859
+ "rounded-tl": L()
1860
1860
  }],
1861
1861
  /**
1862
1862
  * Border Radius Top Right
1863
1863
  * @see https://tailwindcss.com/docs/border-radius
1864
1864
  */
1865
1865
  "rounded-tr": [{
1866
- "rounded-tr": U()
1866
+ "rounded-tr": L()
1867
1867
  }],
1868
1868
  /**
1869
1869
  * Border Radius Bottom Right
1870
1870
  * @see https://tailwindcss.com/docs/border-radius
1871
1871
  */
1872
1872
  "rounded-br": [{
1873
- "rounded-br": U()
1873
+ "rounded-br": L()
1874
1874
  }],
1875
1875
  /**
1876
1876
  * Border Radius Bottom Left
1877
1877
  * @see https://tailwindcss.com/docs/border-radius
1878
1878
  */
1879
1879
  "rounded-bl": [{
1880
- "rounded-bl": U()
1880
+ "rounded-bl": L()
1881
1881
  }],
1882
1882
  /**
1883
1883
  * Border Width
@@ -3257,7 +3257,7 @@ const wf = /* @__PURE__ */ new Set([
3257
3257
  locationRestriction: d,
3258
3258
  allowedTypes: u
3259
3259
  }) => {
3260
- const [m, g] = ae(r ?? ""), [$, p] = ae([]), [v, y] = ae(!1), [x, b] = ae(-1), C = ne(null), P = ne(null), I = ne(!1), E = ne(!1), S = ne(null), O = ne([]), D = ne("smooth"), L = Pu("places", c), F = de(() => {
3260
+ const [m, g] = ae(r ?? ""), [$, p] = ae([]), [v, y] = ae(!1), [x, b] = ae(-1), C = ne(null), P = ne(null), I = ne(!1), E = ne(!1), S = ne(null), O = ne([]), D = ne("smooth"), j = Pu("places", c), F = de(() => {
3261
3261
  if (!u)
3262
3262
  return wf;
3263
3263
  const N = /* @__PURE__ */ new Set();
@@ -3280,20 +3280,19 @@ const wf = /* @__PURE__ */ new Set([
3280
3280
  p([]), y(!1), S.current = null, r !== "" && o("");
3281
3281
  return;
3282
3282
  }
3283
- if (!L) return;
3284
- const { AutocompleteSuggestion: w, AutocompleteSessionToken: _ } = L;
3283
+ if (!j) return;
3284
+ const { AutocompleteSuggestion: w, AutocompleteSessionToken: _ } = j;
3285
3285
  if (!w || !_) {
3286
3286
  console.error("AddressAutocompleteInput: missing AutocompleteSuggestion or AutocompleteSessionToken exports"), p([]), y(!1);
3287
3287
  return;
3288
3288
  }
3289
3289
  S.current || (S.current = new _());
3290
- const U = {
3290
+ const L = {
3291
3291
  input: m,
3292
3292
  sessionToken: S.current ?? void 0,
3293
- locationRestriction: d,
3294
3293
  includedRegionCodes: ["fr"]
3295
3294
  };
3296
- w.fetchAutocompleteSuggestions(U).then((V) => {
3295
+ d && (L.locationRestriction = d), w.fetchAutocompleteSuggestions(L).then((V) => {
3297
3296
  if (!N)
3298
3297
  return;
3299
3298
  const A = V.suggestions.map((Z) => Z.placePrediction).filter((Z) => !!Z), Y = Af(A, F), T = Y[0], ee = T && Y.length === 1 && If(T, m);
@@ -3309,7 +3308,7 @@ const wf = /* @__PURE__ */ new Set([
3309
3308
  return () => {
3310
3309
  N = !1, clearTimeout(R);
3311
3310
  };
3312
- }, [m, L, o, r, d, F]), re(() => {
3311
+ }, [m, j, o, r, d, F]), re(() => {
3313
3312
  const N = (R) => {
3314
3313
  C.current && !C.current.contains(R.target) && P.current && !P.current.contains(R.target) && y(!1);
3315
3314
  };
@@ -3331,7 +3330,7 @@ const wf = /* @__PURE__ */ new Set([
3331
3330
  N.key === "ArrowDown" ? (D.current = N.repeat ? "auto" : "smooth", N.preventDefault(), b((R) => $.length === 0 ? -1 : R < 0 ? 0 : (R + 1) % $.length)) : N.key === "ArrowUp" ? (D.current = N.repeat ? "auto" : "smooth", N.preventDefault(), b((R) => $.length === 0 ? -1 : R <= 0 ? $.length - 1 : (R - 1) % $.length)) : N.key === "Enter" ? (N.preventDefault(), x > -1 && $[x] ? q($[x]) : (o(m), y(!1), S.current = null)) : N.key === "Escape" && y(!1);
3332
3331
  }, M = () => {
3333
3332
  y(!1), r !== m && o(m), S.current = null;
3334
- }, j = l ?? (a ? `${a}_shim` : void 0);
3333
+ }, U = l ?? (a ? `${a}_shim` : void 0);
3335
3334
  return re(() => {
3336
3335
  if (!v || x < 0) {
3337
3336
  D.current = "smooth";
@@ -3344,18 +3343,18 @@ const wf = /* @__PURE__ */ new Set([
3344
3343
  }
3345
3344
  const J = D.current;
3346
3345
  D.current = "smooth";
3347
- const w = N.offsetTop, _ = w + N.offsetHeight, U = R.scrollTop, V = U + R.clientHeight;
3348
- w >= U && _ <= V || N.scrollIntoView({
3346
+ const w = N.offsetTop, _ = w + N.offsetHeight, L = R.scrollTop, V = L + R.clientHeight;
3347
+ w >= L && _ <= V || N.scrollIntoView({
3349
3348
  block: "nearest",
3350
3349
  behavior: J
3351
3350
  });
3352
3351
  }, [x, v]), O.current.length = $.length, /* @__PURE__ */ h.jsxs("div", { className: "relative", children: [
3353
- j && /* @__PURE__ */ h.jsx(
3352
+ U && /* @__PURE__ */ h.jsx(
3354
3353
  "input",
3355
3354
  {
3356
3355
  tabIndex: -1,
3357
3356
  autoComplete: "street-address",
3358
- name: j,
3357
+ name: U,
3359
3358
  "aria-hidden": "true",
3360
3359
  className: "pointer-events-none absolute left-0 top-0 h-0 w-0 opacity-0"
3361
3360
  }
@@ -4729,29 +4728,29 @@ class Bi {
4729
4728
  y: Math.min(v === ce.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(v === ce.Down ? E.top : E.top + E.height / 2, u.y))
4730
4729
  }, O = v === ce.Right && !x || v === ce.Left && !b, D = v === ce.Down && !C || v === ce.Up && !y;
4731
4730
  if (O && S.x !== u.x) {
4732
- const L = p.scrollLeft + m.x, F = v === ce.Right && L <= P.x || v === ce.Left && L >= I.x;
4731
+ const j = p.scrollLeft + m.x, F = v === ce.Right && j <= P.x || v === ce.Left && j >= I.x;
4733
4732
  if (F && !m.y) {
4734
4733
  p.scrollTo({
4735
- left: L,
4734
+ left: j,
4736
4735
  behavior: s
4737
4736
  });
4738
4737
  return;
4739
4738
  }
4740
- F ? g.x = p.scrollLeft - L : g.x = v === ce.Right ? p.scrollLeft - P.x : p.scrollLeft - I.x, g.x && p.scrollBy({
4739
+ F ? g.x = p.scrollLeft - j : g.x = v === ce.Right ? p.scrollLeft - P.x : p.scrollLeft - I.x, g.x && p.scrollBy({
4741
4740
  left: -g.x,
4742
4741
  behavior: s
4743
4742
  });
4744
4743
  break;
4745
4744
  } else if (D && S.y !== u.y) {
4746
- const L = p.scrollTop + m.y, F = v === ce.Down && L <= P.y || v === ce.Up && L >= I.y;
4745
+ const j = p.scrollTop + m.y, F = v === ce.Down && j <= P.y || v === ce.Up && j >= I.y;
4747
4746
  if (F && !m.x) {
4748
4747
  p.scrollTo({
4749
- top: L,
4748
+ top: j,
4750
4749
  behavior: s
4751
4750
  });
4752
4751
  return;
4753
4752
  }
4754
- F ? g.y = p.scrollTop - L : g.y = v === ce.Down ? p.scrollTop - P.y : p.scrollTop - I.y, g.y && p.scrollBy({
4753
+ F ? g.y = p.scrollTop - j : g.y = v === ce.Down ? p.scrollTop - P.y : p.scrollTop - I.y, g.y && p.scrollBy({
4755
4754
  top: -g.y,
4756
4755
  behavior: s
4757
4756
  });
@@ -5094,8 +5093,8 @@ function I0(e) {
5094
5093
  direction: O,
5095
5094
  speed: D
5096
5095
  } = $0(I, S, x, t, m);
5097
- for (const L of ["x", "y"])
5098
- g[L][O[L]] || (D[L] = 0, O[L] = 0);
5096
+ for (const j of ["x", "y"])
5097
+ g[j][O[j]] || (D[j] = 0, O[j] = 0);
5099
5098
  if (D.x > 0 || D.y > 0) {
5100
5099
  p(), b.current = I, $(C, a), v.current = D, y.current = O;
5101
5100
  return;
@@ -5811,7 +5810,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
5811
5810
  droppable: {
5812
5811
  containers: D
5813
5812
  }
5814
- } = v, L = E != null ? S.get(E) : null, F = ne({
5813
+ } = v, j = E != null ? S.get(E) : null, F = ne({
5815
5814
  initial: null,
5816
5815
  translated: null
5817
5816
  }), q = de(() => {
@@ -5819,18 +5818,18 @@ const e1 = /* @__PURE__ */ ru(function(t) {
5819
5818
  return E != null ? {
5820
5819
  id: E,
5821
5820
  // It's possible for the active node to unmount while dragging
5822
- data: (Ae = L?.data) != null ? Ae : K0,
5821
+ data: (Ae = j?.data) != null ? Ae : K0,
5823
5822
  rect: F
5824
5823
  } : null;
5825
- }, [E, L]), W = ne(null), [te, M] = ae(null), [j, N] = ae(null), R = Vn($, Object.values($)), J = hr("DndDescribedBy", a), w = de(() => D.getEnabled(), [D]), _ = Z0(m), {
5826
- droppableRects: U,
5824
+ }, [E, j]), W = ne(null), [te, M] = ae(null), [U, N] = ae(null), R = Vn($, Object.values($)), J = hr("DndDescribedBy", a), w = de(() => D.getEnabled(), [D]), _ = Z0(m), {
5825
+ droppableRects: L,
5827
5826
  measureDroppableContainers: V,
5828
5827
  measuringScheduled: A
5829
5828
  } = _0(w, {
5830
5829
  dragging: I,
5831
5830
  dependencies: [O.x, O.y],
5832
5831
  config: _.droppable
5833
- }), Y = D0(S, E), T = de(() => j ? Zr(j) : null, [j]), ee = Cr(), Z = M0(Y, _.draggable.measure);
5832
+ }), Y = D0(S, E), T = de(() => U ? Zr(U) : null, [U]), ee = Cr(), Z = M0(Y, _.draggable.measure);
5834
5833
  Q0({
5835
5834
  activeNode: E != null ? S.get(E) : null,
5836
5835
  config: ee.layoutShiftCompensation,
@@ -5843,7 +5842,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
5843
5842
  activeNode: Y,
5844
5843
  collisionRect: null,
5845
5844
  collisions: null,
5846
- droppableRects: U,
5845
+ droppableRects: L,
5847
5846
  draggableNodes: S,
5848
5847
  draggingNode: null,
5849
5848
  draggingNodeRect: null,
@@ -5860,7 +5859,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
5860
5859
  scaleX: 1,
5861
5860
  scaleY: 1
5862
5861
  },
5863
- activatorEvent: j,
5862
+ activatorEvent: U,
5864
5863
  active: q,
5865
5864
  activeNodeRect: G,
5866
5865
  containerNodeRect: ie,
@@ -5873,7 +5872,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
5873
5872
  }), Yt = T ? gn(T, O) : null, Xt = B0(Ce), qt = Ba(Xt), Jt = Ba(Xt, [G]), bt = gn(Lt, qt), ct = ye ? u0(ye, Lt) : null, z = q && ct ? u({
5874
5873
  active: q,
5875
5874
  collisionRect: ct,
5876
- droppableRects: U,
5875
+ droppableRects: L,
5877
5876
  droppableContainers: w,
5878
5877
  pointerCoordinates: Yt
5879
5878
  }) : null, ge = Tl(z, "id"), [ue, Le] = ae(null), Re = we ? Lt : gn(Lt, Jt), Rt = c0(Re, (i = ue?.rect) != null ? i : null, G), jt = ne(null), wr = je(
@@ -6089,12 +6088,12 @@ const e1 = /* @__PURE__ */ ru(function(t) {
6089
6088
  [ge]
6090
6089
  ), pt(() => {
6091
6090
  B.current = {
6092
- activatorEvent: j,
6091
+ activatorEvent: U,
6093
6092
  active: q,
6094
6093
  activeNode: Y,
6095
6094
  collisionRect: ct,
6096
6095
  collisions: z,
6097
- droppableRects: U,
6096
+ droppableRects: L,
6098
6097
  draggableNodes: S,
6099
6098
  draggingNode: he,
6100
6099
  draggingNodeRect: ye,
@@ -6106,7 +6105,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
6106
6105
  initial: ye,
6107
6106
  translated: ct
6108
6107
  };
6109
- }, [q, Y, z, ct, S, he, ye, U, D, ue, Ce, bt]), I0({
6108
+ }, [q, Y, z, ct, S, he, ye, L, D, ue, Ce, bt]), I0({
6110
6109
  ...ee,
6111
6110
  delta: O,
6112
6111
  draggingRect: ct,
@@ -6118,13 +6117,13 @@ const e1 = /* @__PURE__ */ ru(function(t) {
6118
6117
  active: q,
6119
6118
  activeNode: Y,
6120
6119
  activeNodeRect: G,
6121
- activatorEvent: j,
6120
+ activatorEvent: U,
6122
6121
  collisions: z,
6123
6122
  containerNodeRect: ie,
6124
6123
  dragOverlay: le,
6125
6124
  draggableNodes: S,
6126
6125
  droppableContainers: D,
6127
- droppableRects: U,
6126
+ droppableRects: L,
6128
6127
  over: ue,
6129
6128
  measureDroppableContainers: V,
6130
6129
  scrollableAncestors: Ce,
@@ -6132,8 +6131,8 @@ const e1 = /* @__PURE__ */ ru(function(t) {
6132
6131
  measuringConfiguration: _,
6133
6132
  measuringScheduled: A,
6134
6133
  windowRect: yt
6135
- }), [q, Y, G, j, z, ie, le, S, D, U, ue, V, Ce, rt, _, A, yt]), sn = de(() => ({
6136
- activatorEvent: j,
6134
+ }), [q, Y, G, U, z, ie, le, S, D, L, ue, V, Ce, rt, _, A, yt]), sn = de(() => ({
6135
+ activatorEvent: U,
6137
6136
  activators: Ne,
6138
6137
  active: q,
6139
6138
  activeNodeRect: G,
@@ -6144,7 +6143,7 @@ const e1 = /* @__PURE__ */ ru(function(t) {
6144
6143
  draggableNodes: S,
6145
6144
  over: ue,
6146
6145
  measureDroppableContainers: V
6147
- }), [j, Ne, q, G, y, J, S, ue, V]);
6146
+ }), [U, Ne, q, G, y, J, S, ue, V]);
6148
6147
  return pe.createElement(Rl.Provider, {
6149
6148
  value: b
6150
6149
  }, pe.createElement(mr.Provider, {
@@ -6572,13 +6571,13 @@ const y1 = /* @__PURE__ */ pe.memo((e) => {
6572
6571
  draggableNodes: $,
6573
6572
  droppableContainers: p,
6574
6573
  measuringConfiguration: x
6575
- }), L = O ? v.setRef : void 0;
6574
+ }), j = O ? v.setRef : void 0;
6576
6575
  return pe.createElement(c1, null, pe.createElement(s1, {
6577
6576
  animation: D
6578
6577
  }, u && E ? pe.createElement(f1, {
6579
6578
  key: E,
6580
6579
  id: u.id,
6581
- ref: L,
6580
+ ref: j,
6582
6581
  as: s,
6583
6582
  activatorEvent: d,
6584
6583
  adjustScale: t,
@@ -6790,13 +6789,13 @@ function I1(e) {
6790
6789
  ...l
6791
6790
  }
6792
6791
  }), {
6793
- active: L,
6792
+ active: j,
6794
6793
  activatorEvent: F,
6795
6794
  activeNodeRect: q,
6796
6795
  attributes: W,
6797
6796
  setNodeRef: te,
6798
6797
  listeners: M,
6799
- isDragging: j,
6798
+ isDragging: U,
6800
6799
  over: N,
6801
6800
  setActivatorNodeRef: R,
6802
6801
  transform: J
@@ -6808,7 +6807,7 @@ function I1(e) {
6808
6807
  ...n
6809
6808
  },
6810
6809
  disabled: b.draggable
6811
- }), w = Gf(D, te), _ = !!L, U = _ && !$ && Dr(m) && Dr(v), V = !y && j, A = V && U ? J : null, T = U ? A ?? (s ?? x)({
6810
+ }), w = Gf(D, te), _ = !!j, L = _ && !$ && Dr(m) && Dr(v), V = !y && U, A = V && L ? J : null, T = L ? A ?? (s ?? x)({
6812
6811
  rects: p,
6813
6812
  activeNodeRect: q,
6814
6813
  activeIndex: m,
@@ -6819,15 +6818,15 @@ function I1(e) {
6819
6818
  items: d,
6820
6819
  activeIndex: m,
6821
6820
  overIndex: v
6822
- }) : C, Z = L?.id, G = ne({
6821
+ }) : C, Z = j?.id, G = ne({
6823
6822
  activeId: Z,
6824
6823
  items: d,
6825
6824
  newIndex: ee,
6826
6825
  containerId: u
6827
6826
  }), ie = d !== G.current.items, B = t({
6828
- active: L,
6827
+ active: j,
6829
6828
  containerId: u,
6830
- isDragging: j,
6829
+ isDragging: U,
6831
6830
  isSorting: _,
6832
6831
  id: a,
6833
6832
  index: C,
@@ -6857,7 +6856,7 @@ function I1(e) {
6857
6856
  }, 50);
6858
6857
  return () => clearTimeout(he);
6859
6858
  }, [Z]), {
6860
- active: L,
6859
+ active: j,
6861
6860
  activeIndex: m,
6862
6861
  attributes: W,
6863
6862
  data: P,
@@ -6867,7 +6866,7 @@ function I1(e) {
6867
6866
  items: d,
6868
6867
  isOver: O,
6869
6868
  isSorting: _,
6870
- isDragging: j,
6869
+ isDragging: U,
6871
6870
  listeners: M,
6872
6871
  node: S,
6873
6872
  overIndex: v,
@@ -7218,7 +7217,7 @@ function zy({
7218
7217
  }) {
7219
7218
  const a = ne(null), [s, l] = ae(
7220
7219
  () => e.map((A) => ({ ...A, previewUrl: A.url, status: "uploaded", progress: 100 }))
7221
- ), [c, d] = ae(!1), [u, m] = ae(null), [g, $] = ae(null), [p, v] = ae(null), y = ne(null), x = ne(!0), b = ne([]), C = ne(e), P = ne(t), I = ne(i), E = ne(/* @__PURE__ */ new Map()), S = ne(/* @__PURE__ */ new Map()), O = ne(/* @__PURE__ */ new Map()), D = ne(/* @__PURE__ */ new Map()), L = n0(
7220
+ ), [c, d] = ae(!1), [u, m] = ae(null), [g, $] = ae(null), [p, v] = ae(null), y = ne(null), x = ne(!0), b = ne([]), C = ne(e), P = ne(t), I = ne(i), E = ne(/* @__PURE__ */ new Map()), S = ne(/* @__PURE__ */ new Map()), O = ne(/* @__PURE__ */ new Map()), D = ne(/* @__PURE__ */ new Map()), j = n0(
7222
7221
  Ta(zi, { activationConstraint: { distance: 6 } }),
7223
7222
  Ta(Bi, { coordinateGetter: D1 })
7224
7223
  );
@@ -7456,7 +7455,7 @@ function zy({
7456
7455
  console.error("Retry failed", G), l((ie) => ie.map((B) => B.id === A ? { ...B, status: "error" } : B));
7457
7456
  }
7458
7457
  })();
7459
- }, j = (A) => {
7458
+ }, U = (A) => {
7460
7459
  const Y = s.findIndex((T) => T.id === A);
7461
7460
  Y !== -1 && m(Y);
7462
7461
  }, N = (A) => {
@@ -7476,7 +7475,7 @@ function zy({
7476
7475
  v(null);
7477
7476
  }, w = () => {
7478
7477
  y.current !== null && (window.clearTimeout(y.current), y.current = null);
7479
- }, _ = de(() => u === null ? null : s[u] ?? null, [u, s]), U = xe(
7478
+ }, _ = de(() => u === null ? null : s[u] ?? null, [u, s]), L = xe(
7480
7479
  "rounded-xl border border-dashed border-slate-300 bg-white/70 p-4 shadow-sm transition-colors dark:border-slate-700 dark:bg-slate-900/60",
7481
7480
  c && "border-primary ring-2 ring-primary/50",
7482
7481
  o && "opacity-70"
@@ -7491,7 +7490,7 @@ function zy({
7491
7490
  onDrop: (A) => {
7492
7491
  A.preventDefault(), d(!1), A.dataTransfer.files?.length && F(A.dataTransfer.files);
7493
7492
  },
7494
- className: U,
7493
+ className: L,
7495
7494
  children: [
7496
7495
  /* @__PURE__ */ h.jsx("div", { className: "mb-3 flex items-center justify-between gap-2 text-sm text-slate-600 dark:text-slate-300", children: /* @__PURE__ */ h.jsxs("div", { className: "flex items-center gap-2", children: [
7497
7496
  /* @__PURE__ */ h.jsx("div", { className: "flex size-7 items-center justify-center rounded-md bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-foreground", children: /* @__PURE__ */ h.jsx(ya, { className: "h-4 w-4" }) }),
@@ -7500,7 +7499,7 @@ function zy({
7500
7499
  /* @__PURE__ */ h.jsxs(
7501
7500
  e1,
7502
7501
  {
7503
- sensors: o ? void 0 : L,
7502
+ sensors: o ? void 0 : j,
7504
7503
  collisionDetection: i0,
7505
7504
  onDragStart: N,
7506
7505
  onDragEnd: R,
@@ -7524,7 +7523,7 @@ function zy({
7524
7523
  },
7525
7524
  onRemove: te,
7526
7525
  onRetry: M,
7527
- startFullscreen: j,
7526
+ startFullscreen: U,
7528
7527
  isUploading: Y,
7529
7528
  isError: T,
7530
7529
  tileClasses: V,
@@ -7772,23 +7771,23 @@ const X1 = f.forwardRef(
7772
7771
  languageSelectTabIndex: p = -1,
7773
7772
  disabled: v,
7774
7773
  ...y
7775
- } = t, { rows: x, ...b } = y, C = f.useMemo(() => r ?? o ?? {}, [o, r]), [P, I] = f.useState(C), E = r !== void 0, S = E ? r ?? {} : P, [O, D] = f.useState(""), L = f.useContext(Ql), F = f.useMemo(() => {
7774
+ } = t, { rows: x, ...b } = y, C = f.useMemo(() => r ?? o ?? {}, [o, r]), [P, I] = f.useState(C), E = r !== void 0, S = E ? r ?? {} : P, [O, D] = f.useState(""), j = f.useContext(Ql), F = f.useMemo(() => {
7776
7775
  const z = Array.from(/* @__PURE__ */ new Set([...c ?? [], ...Object.keys(S)]));
7777
7776
  return V1(void 0, z);
7778
- }, [S, c]), q = f.useMemo(() => i ?? L?.locale ?? a ?? Object.keys(S)[0] ?? F[0]?.value ?? hi, [S, a, L?.locale, F, i]), [W, te] = f.useState(q), M = i ?? L?.locale ?? W;
7777
+ }, [S, c]), q = f.useMemo(() => i ?? j?.locale ?? a ?? Object.keys(S)[0] ?? F[0]?.value ?? hi, [S, a, j?.locale, F, i]), [W, te] = f.useState(q), M = i ?? j?.locale ?? W;
7779
7778
  f.useEffect(() => {
7780
7779
  E || I(C);
7781
7780
  }, [C, E]), f.useEffect(() => {
7782
7781
  i && i !== W && te(i);
7783
7782
  }, [W, i]), f.useEffect(() => {
7784
- !i && L?.locale && L.locale !== W && te(L.locale);
7785
- }, [W, L?.locale, i]);
7786
- const j = F.find((z) => z.value === M) ?? F.find((z) => z.value === hi) ?? F[0] ?? null, [N, R] = f.useState(!1), J = f.useRef(null), w = f.useRef(null), _ = f.useRef(null), U = f.useRef(null), V = f.useRef(null), A = f.useRef(null), Y = f.useRef(null), [T, ee] = f.useState({ left: 0, top: 0 });
7783
+ !i && j?.locale && j.locale !== W && te(j.locale);
7784
+ }, [W, j?.locale, i]);
7785
+ const U = F.find((z) => z.value === M) ?? F.find((z) => z.value === hi) ?? F[0] ?? null, [N, R] = f.useState(!1), J = f.useRef(null), w = f.useRef(null), _ = f.useRef(null), L = f.useRef(null), V = f.useRef(null), A = f.useRef(null), Y = f.useRef(null), [T, ee] = f.useState({ left: 0, top: 0 });
7787
7786
  f.useImperativeHandle(n, () => w.current, []);
7788
7787
  const Z = (z) => {
7789
7788
  if (!z) return;
7790
7789
  const ge = z.value;
7791
- E || te(ge), l?.(ge, z), L?.setLocale(ge), be(!0);
7790
+ E || te(ge), l?.(ge, z), j?.setLocale(ge), be(!0);
7792
7791
  }, G = (z) => {
7793
7792
  const ge = {
7794
7793
  ...S,
@@ -7803,7 +7802,7 @@ const X1 = f.forwardRef(
7803
7802
  },
7804
7803
  [O]
7805
7804
  ), Q = d ? "left-2 top-2 -translate-y-0" : "left-3 top-1/2 -translate-y-1/2", le = "pl-10 pr-3", he = f.useCallback(() => {
7806
- const z = _.current, ge = U.current;
7805
+ const z = _.current, ge = L.current;
7807
7806
  if (!z || !ge) return;
7808
7807
  const ue = z.getBoundingClientRect(), Le = ge.getBoundingClientRect();
7809
7808
  ee({
@@ -7936,7 +7935,7 @@ const X1 = f.forwardRef(
7936
7935
  ye(z.relatedTarget) || be(!1);
7937
7936
  },
7938
7937
  children: [
7939
- /* @__PURE__ */ h.jsxs("div", { ref: U, className: "relative", children: [
7938
+ /* @__PURE__ */ h.jsxs("div", { ref: L, className: "relative", children: [
7940
7939
  d ? /* @__PURE__ */ h.jsx("textarea", { rows: x, ...ct }) : /* @__PURE__ */ h.jsx("input", { type: "text", ...ct }),
7941
7940
  /* @__PURE__ */ h.jsx(
7942
7941
  "button",
@@ -7946,9 +7945,9 @@ const X1 = f.forwardRef(
7946
7945
  "absolute flex h-6 w-6 items-center justify-center rounded border text-xs font-semibold leading-none transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
7947
7946
  Q,
7948
7947
  v ? "cursor-not-allowed opacity-50 pointer-events-none" : "cursor-pointer hover:bg-muted",
7949
- j ? "border-transparent" : "border-dashed border-border text-muted-foreground"
7948
+ U ? "border-transparent" : "border-dashed border-border text-muted-foreground"
7950
7949
  ),
7951
- "aria-label": j ? `Select language (${j.code})` : "Select language",
7950
+ "aria-label": U ? `Select language (${U.code})` : "Select language",
7952
7951
  onMouseDown: (z) => z.preventDefault(),
7953
7952
  onClick: () => {
7954
7953
  if (v) return;
@@ -7963,7 +7962,7 @@ const X1 = f.forwardRef(
7963
7962
  tabIndex: p,
7964
7963
  disabled: v,
7965
7964
  ref: _,
7966
- children: /* @__PURE__ */ h.jsx("span", { "aria-hidden": "true", children: j ? G1(j.code) : "?" })
7965
+ children: /* @__PURE__ */ h.jsx("span", { "aria-hidden": "true", children: U ? G1(U.code) : "?" })
7967
7966
  }
7968
7967
  )
7969
7968
  ] }),
@@ -11606,7 +11605,7 @@ const Gp = f.forwardRef(
11606
11605
  ), D = f.useMemo(
11607
11606
  () => Ep(S, E),
11608
11607
  [E, S]
11609
- ), L = f.useCallback(
11608
+ ), j = f.useCallback(
11610
11609
  (k) => {
11611
11610
  const X = D.find((ve) => ve.value === k);
11612
11611
  return X ? Pp(X) : Rp(k);
@@ -11677,7 +11676,7 @@ const Gp = f.forwardRef(
11677
11676
  }, W.current = k;
11678
11677
  }
11679
11678
  }
11680
- const te = q.current, [M, j] = f.useState(te.country), [N, R] = f.useState(te.inputValue), [J, w] = f.useState(""), [_, U] = f.useState(!1), [V, A] = f.useState(-1), [Y, T] = f.useState(!1), [ee, Z] = f.useState(null), [G, ie] = f.useState(
11679
+ const te = q.current, [M, U] = f.useState(te.country), [N, R] = f.useState(te.inputValue), [J, w] = f.useState(""), [_, L] = f.useState(!1), [V, A] = f.useState(-1), [Y, T] = f.useState(!1), [ee, Z] = f.useState(null), [G, ie] = f.useState(
11681
11680
  te.hasExplicitCountrySelection
11682
11681
  ), B = f.useRef(null), Q = f.useRef(""), le = f.useRef(null), he = f.useRef("smooth"), ye = f.useRef(null), we = f.useCallback(() => {
11683
11682
  const k = he.current;
@@ -11724,10 +11723,10 @@ const Gp = f.forwardRef(
11724
11723
  }, [Xt]), Le = f.useRef(!1), Re = f.useCallback(
11725
11724
  (k) => {
11726
11725
  Le.current = !0;
11727
- const X = L(k);
11726
+ const X = j(k);
11728
11727
  return l?.(k, X), X;
11729
11728
  },
11730
- [l, L]
11729
+ [l, j]
11731
11730
  );
11732
11731
  f.useEffect(() => () => {
11733
11732
  le.current != null && typeof window < "u" && window.clearTimeout(le.current);
@@ -11739,15 +11738,15 @@ const Gp = f.forwardRef(
11739
11738
  previousValue: k
11740
11739
  });
11741
11740
  if (W.current = X, Q.current = "", !X) {
11742
- R(""), U(!1), w(""), Z(null), B.current = null, ie(!1), !be && M !== F && (j(F), Re(F));
11741
+ R(""), L(!1), w(""), Z(null), B.current = null, ie(!1), !be && M !== F && (U(F), Re(F));
11743
11742
  return;
11744
11743
  }
11745
11744
  if (X === "0") {
11746
- R("0"), U(!1), w(""), Z(null), B.current = null, ie(!1);
11745
+ R("0"), L(!1), w(""), Z(null), B.current = null, ie(!1);
11747
11746
  return;
11748
11747
  }
11749
11748
  if (X === "+") {
11750
- R("+"), U(!0), w(""), Z(null), B.current = null, ie(!1), !be && M !== F && (j(F), Re(F));
11749
+ R("+"), L(!0), w(""), Z(null), B.current = null, ie(!1), !be && M !== F && (U(F), Re(F));
11751
11750
  return;
11752
11751
  }
11753
11752
  const {
@@ -11773,7 +11772,7 @@ const Gp = f.forwardRef(
11773
11772
  hasExplicitInternationalPrefix: me
11774
11773
  }
11775
11774
  ), en = !at.shouldSuggest && !oe ? Ee : void 0, wt = en ?? $e;
11776
- !be && wt !== M && (j(wt), Re(wt)), $e = wt, B.current && B.current !== $e && (B.current = null);
11775
+ !be && wt !== M && (U(wt), Re(wt)), $e = wt, B.current && B.current !== $e && (B.current = null);
11777
11776
  const ln = _e($e), On = en ? fn(
11778
11777
  Pe,
11779
11778
  He,
@@ -11785,7 +11784,7 @@ const Gp = f.forwardRef(
11785
11784
  detectedCountry: cn,
11786
11785
  hasExplicitInternationalPrefix: me
11787
11786
  });
11788
- R(Sr), U(at.shouldSuggest), w(at.query), Z(Yo(X, $e)), ie(Nr);
11787
+ R(Sr), L(at.shouldSuggest), w(at.query), Z(Yo(X, $e)), ie(Nr);
11789
11788
  }, [
11790
11789
  r,
11791
11790
  Ce,
@@ -11799,17 +11798,17 @@ const Gp = f.forwardRef(
11799
11798
  const k = yt ?? F;
11800
11799
  k && Re(k);
11801
11800
  }, [F, Re, yt]), f.useEffect(() => {
11802
- be && i && i !== M && j(i);
11801
+ be && i && i !== M && U(i);
11803
11802
  }, [i, be, M]);
11804
11803
  const Rt = f.useCallback(
11805
11804
  (k) => {
11806
- const X = L(k.country);
11805
+ const X = j(k.country);
11807
11806
  s?.({
11808
11807
  ...k,
11809
11808
  selectedCountry: X
11810
11809
  });
11811
11810
  },
11812
- [s, L]
11811
+ [s, j]
11813
11812
  ), jt = f.useCallback(() => {
11814
11813
  typeof window > "u" || (le.current != null && window.clearTimeout(le.current), le.current = window.setTimeout(() => {
11815
11814
  Q.current = "", le.current = null;
@@ -11824,9 +11823,9 @@ const Gp = f.forwardRef(
11824
11823
  previousValue: Ut
11825
11824
  });
11826
11825
  if (W.current = Ke, !Ke) {
11827
- R(""), U(!1), w(""), A(-1), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "");
11826
+ R(""), L(!1), w(""), A(-1), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "");
11828
11827
  const De = F;
11829
- !be && M !== De && (j(De), Re(De));
11828
+ !be && M !== De && (U(De), Re(De));
11830
11829
  const kn = _e(De);
11831
11830
  Rt({
11832
11831
  formattedInternational: "",
@@ -11841,9 +11840,9 @@ const Gp = f.forwardRef(
11841
11840
  return;
11842
11841
  }
11843
11842
  if (Ke === "0") {
11844
- R("0"), U(!1), w(""), A(-1), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "0");
11843
+ R("0"), L(!1), w(""), A(-1), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "0");
11845
11844
  const De = F;
11846
- !be && M !== De && (j(De), Re(De));
11845
+ !be && M !== De && (U(De), Re(De));
11847
11846
  const kn = _e(De);
11848
11847
  Rt({
11849
11848
  formattedInternational: "0",
@@ -11858,9 +11857,9 @@ const Gp = f.forwardRef(
11858
11857
  return;
11859
11858
  }
11860
11859
  if (Ke === "+") {
11861
- R("+"), U(!0), w(""), A(0), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "+");
11860
+ R("+"), L(!0), w(""), A(0), Z(null), B.current = null, ie(!1), ye.current = Mr(ve, "+");
11862
11861
  const De = F;
11863
- !be && M !== De && (j(De), Re(De));
11862
+ !be && M !== De && (U(De), Re(De));
11864
11863
  const kn = _e(De);
11865
11864
  Rt({
11866
11865
  formattedInternational: "+",
@@ -11898,7 +11897,7 @@ const Gp = f.forwardRef(
11898
11897
  hasExplicitInternationalPrefix: Sr
11899
11898
  }
11900
11899
  ), va = !Dn.shouldSuggest && !cn ? On : void 0, Er = va ?? It;
11901
- !be && Er !== M && (j(Er), Re(Er)), It = Er, B.current && B.current !== It && (B.current = null);
11900
+ !be && Er !== M && (U(Er), Re(Er)), It = Er, B.current && B.current !== It && (B.current = null);
11902
11901
  const Pr = _e(It), Zd = Be(Ke), Qd = Si(Zd, Pr), eu = va ? fn(
11903
11902
  me,
11904
11903
  Nr,
@@ -11907,7 +11906,7 @@ const Gp = f.forwardRef(
11907
11906
  ) : ga, $a = Ho(at, Pr, {
11908
11907
  force: eu
11909
11908
  }), tu = cn ?? void 0;
11910
- ye.current = Mr(ve, $a), R($a), U(Dn.shouldSuggest), w(Dn.query), A(Dn.shouldSuggest ? 0 : -1), Z(Yo(Ke, It));
11909
+ ye.current = Mr(ve, $a), R($a), L(Dn.shouldSuggest), w(Dn.query), A(Dn.shouldSuggest ? 0 : -1), Z(Yo(Ke, It));
11911
11910
  const nu = B.current != null || qo(Dn, {
11912
11911
  detectedCountry: tu,
11913
11912
  hasExplicitInternationalPrefix: Sr
@@ -11947,7 +11946,7 @@ const Gp = f.forwardRef(
11947
11946
  B.current = Pe, R(me), ye.current = {
11948
11947
  start: me.length,
11949
11948
  end: me.length
11950
- }, U(!1), w(""), A(-1), Z(Yo(Ee, Pe)), !be && Pe !== M && j(Pe), Re(Pe);
11949
+ }, L(!1), w(""), A(-1), Z(Yo(Ee, Pe)), !be && Pe !== M && U(Pe), Re(Pe);
11951
11950
  const Ze = Be(Ee), He = $e?.countryCallingCode ?? k.dialCode, Ut = Si(Ze, He);
11952
11951
  ie(!0), Rt({
11953
11952
  formattedInternational: me,
@@ -12022,7 +12021,7 @@ const Gp = f.forwardRef(
12022
12021
  [we, sn, Ue, Cr]
12023
12022
  ), ot = D.find((k) => k.value === Ce), We = ot?.flag ?? "", Ve = G ? O.selectedCountryLabel(ot?.name ?? Ce ?? null) : O.selectCountryLabel, et = G && !!We, At = ee === "TOO_LONG" ? O.lengthTooLong(ot?.name ?? Ce ?? null) : null, Ie = f.useCallback(
12024
12023
  (k) => {
12025
- Q.current = `${Q.current}${k}`.slice(-12), w(Q.current), U(!0), jt();
12024
+ Q.current = `${Q.current}${k}`.slice(-12), w(Q.current), L(!0), jt();
12026
12025
  },
12027
12026
  [jt]
12028
12027
  ), dt = f.useCallback(() => {
@@ -12054,7 +12053,7 @@ const Gp = f.forwardRef(
12054
12053
  }
12055
12054
  if (X === "ArrowDown") {
12056
12055
  if (he.current = k.repeat ? "auto" : "smooth", k.preventDefault(), !_) {
12057
- U(!0), A(Ne.length > 0 ? 0 : -1);
12056
+ L(!0), A(Ne.length > 0 ? 0 : -1);
12058
12057
  return;
12059
12058
  }
12060
12059
  Ne.length > 0 && A((oe) => oe < 0 ? 0 : (oe + 1) % Ne.length);
@@ -12062,14 +12061,14 @@ const Gp = f.forwardRef(
12062
12061
  }
12063
12062
  if (X === "ArrowUp") {
12064
12063
  if (he.current = k.repeat ? "auto" : "smooth", k.preventDefault(), !_) {
12065
- U(!0), A(Ne.length > 0 ? Ne.length - 1 : -1);
12064
+ L(!0), A(Ne.length > 0 ? Ne.length - 1 : -1);
12066
12065
  return;
12067
12066
  }
12068
12067
  Ne.length > 0 && A((oe) => oe < 0 ? Ne.length - 1 : (oe - 1 + Ne.length) % Ne.length);
12069
12068
  return;
12070
12069
  }
12071
12070
  if (/^[a-z]$/i.test(X)) {
12072
- k.preventDefault(), _ || (U(!0), A(Ne.length > 0 ? 0 : -1)), Ie(X.toLowerCase());
12071
+ k.preventDefault(), _ || (L(!0), A(Ne.length > 0 ? 0 : -1)), Ie(X.toLowerCase());
12073
12072
  return;
12074
12073
  }
12075
12074
  if (xt) {
@@ -12078,7 +12077,7 @@ const Gp = f.forwardRef(
12078
12077
  return;
12079
12078
  }
12080
12079
  if (X === "Escape") {
12081
- k.preventDefault(), Q.current = "", w(""), U(!1);
12080
+ k.preventDefault(), Q.current = "", w(""), L(!1);
12082
12081
  return;
12083
12082
  }
12084
12083
  if (X === "Enter" && Ne.length > 0) {
@@ -12106,11 +12105,11 @@ const Gp = f.forwardRef(
12106
12105
  [y]
12107
12106
  ), Zt = f.useCallback(
12108
12107
  (k) => {
12109
- T(!1), U(!1), Q.current = "", w(""), x?.(k);
12108
+ T(!1), L(!1), Q.current = "", w(""), x?.(k);
12110
12109
  },
12111
12110
  [x]
12112
12111
  ), Qt = f.useCallback(() => {
12113
- u || m || (Q.current = "", w(""), U(!0), A((k) => k < 0 ? 0 : k), requestAnimationFrame(() => {
12112
+ u || m || (Q.current = "", w(""), L(!0), A((k) => k < 0 ? 0 : k), requestAnimationFrame(() => {
12114
12113
  rt.current?.focus();
12115
12114
  }));
12116
12115
  }, [u, m]), ft = $ ?? (C ? `${C}_shim` : void 0);
@@ -13148,14 +13147,14 @@ const Fg = (e) => ({
13148
13147
  }, g = ra(o), $ = na(g), p = await a.getDimensions(c), v = g === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = i.reference[$] + i.reference[g] - m[g] - i.floating[$], P = m[g] - i.reference[g], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
13149
13148
  let E = I ? I[b] : 0;
13150
13149
  (!E || !await (a.isElement == null ? void 0 : a.isElement(I))) && (E = s.floating[b] || i.floating[$]);
13151
- const S = C / 2 - P / 2, O = E / 2 - p[$] / 2 - 1, D = Ht(u[y], O), L = Ht(u[x], O), F = D, q = E - p[$] - L, W = E / 2 - p[$] / 2 + S, te = Pi(F, W, q), M = !l.arrow && An(o) != null && W !== te && i.reference[$] / 2 - (W < F ? D : L) - p[$] / 2 < 0, j = M ? W < F ? W - F : W - q : 0;
13150
+ const S = C / 2 - P / 2, O = E / 2 - p[$] / 2 - 1, D = Ht(u[y], O), j = Ht(u[x], O), F = D, q = E - p[$] - j, W = E / 2 - p[$] / 2 + S, te = Pi(F, W, q), M = !l.arrow && An(o) != null && W !== te && i.reference[$] / 2 - (W < F ? D : j) - p[$] / 2 < 0, U = M ? W < F ? W - F : W - q : 0;
13152
13151
  return {
13153
- [g]: m[g] + j,
13152
+ [g]: m[g] + U,
13154
13153
  data: {
13155
13154
  [g]: te,
13156
- centerOffset: W - te - j,
13155
+ centerOffset: W - te - U,
13157
13156
  ...M && {
13158
- alignmentOffset: j
13157
+ alignmentOffset: U
13159
13158
  }
13160
13159
  },
13161
13160
  reset: M
@@ -13197,8 +13196,8 @@ const Fg = (e) => ({
13197
13196
  placement: o,
13198
13197
  overflows: O
13199
13198
  }], !O.every((W) => W <= 0)) {
13200
- var L, F;
13201
- const W = (((L = i.flip) == null ? void 0 : L.index) || 0) + 1, te = E[W];
13199
+ var j, F;
13200
+ const W = (((j = i.flip) == null ? void 0 : j.index) || 0) + 1, te = E[W];
13202
13201
  if (te && (!(u === "alignment" ? x !== St(te) : !1) || // We leave the current main axis only if every placement on that axis
13203
13202
  // overflows the main axis.
13204
13203
  D.every((N) => St(N.placement) === x ? N.overflows[0] > 0 : !0)))
@@ -13211,12 +13210,12 @@ const Fg = (e) => ({
13211
13210
  placement: te
13212
13211
  }
13213
13212
  };
13214
- let M = (F = D.filter((j) => j.overflows[0] <= 0).sort((j, N) => j.overflows[1] - N.overflows[1])[0]) == null ? void 0 : F.placement;
13213
+ let M = (F = D.filter((U) => U.overflows[0] <= 0).sort((U, N) => U.overflows[1] - N.overflows[1])[0]) == null ? void 0 : F.placement;
13215
13214
  if (!M)
13216
13215
  switch (g) {
13217
13216
  case "bestFit": {
13218
13217
  var q;
13219
- const j = (q = D.filter((N) => {
13218
+ const U = (q = D.filter((N) => {
13220
13219
  if (I) {
13221
13220
  const R = St(N.placement);
13222
13221
  return R === x || // Create a bias to the `y` side axis due to horizontal
@@ -13225,7 +13224,7 @@ const Fg = (e) => ({
13225
13224
  }
13226
13225
  return !0;
13227
13226
  }).map((N) => [N.placement, N.overflows.filter((R) => R > 0).reduce((R, J) => R + J, 0)]).sort((N, R) => N[1] - R[1])[0]) == null ? void 0 : q[0];
13228
- j && (M = j);
13227
+ U && (M = U);
13229
13228
  break;
13230
13229
  }
13231
13230
  case "initialPlacement":
@@ -13467,8 +13466,8 @@ const Bg = function(e) {
13467
13466
  const x = p - d.top - d.bottom, b = $ - d.left - d.right, C = Ht(p - d[v], x), P = Ht($ - d[y], b), I = !t.middlewareData.shift;
13468
13467
  let E = C, S = P;
13469
13468
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = b), (r = t.middlewareData.shift) != null && r.enabled.y && (E = x), I && !m) {
13470
- const D = tt(d.left, 0), L = tt(d.right, 0), F = tt(d.top, 0), q = tt(d.bottom, 0);
13471
- g ? S = $ - 2 * (D !== 0 || L !== 0 ? D + L : tt(d.left, d.right)) : E = p - 2 * (F !== 0 || q !== 0 ? F + q : tt(d.top, d.bottom));
13469
+ const D = tt(d.left, 0), j = tt(d.right, 0), F = tt(d.top, 0), q = tt(d.bottom, 0);
13470
+ g ? S = $ - 2 * (D !== 0 || j !== 0 ? D + j : tt(d.left, d.right)) : E = p - 2 * (F !== 0 || q !== 0 ? F + q : tt(d.top, d.bottom));
13472
13471
  }
13473
13472
  await l({
13474
13473
  ...t,
@@ -14056,7 +14055,7 @@ function E3(e) {
14056
14055
  N !== I.current && (I.current = N, p(N));
14057
14056
  }, []), b = f.useCallback((N) => {
14058
14057
  N !== E.current && (E.current = N, y(N));
14059
- }, []), C = i || $, P = a || v, I = f.useRef(null), E = f.useRef(null), S = f.useRef(d), O = l != null, D = ti(l), L = ti(o), F = ti(c), q = f.useCallback(() => {
14058
+ }, []), C = i || $, P = a || v, I = f.useRef(null), E = f.useRef(null), S = f.useRef(d), O = l != null, D = ti(l), j = ti(o), F = ti(c), q = f.useCallback(() => {
14060
14059
  if (!I.current || !E.current)
14061
14060
  return;
14062
14061
  const N = {
@@ -14064,7 +14063,7 @@ function E3(e) {
14064
14063
  strategy: n,
14065
14064
  middleware: m
14066
14065
  };
14067
- L.current && (N.platform = L.current), C3(I.current, E.current, N).then((R) => {
14066
+ j.current && (N.platform = j.current), C3(I.current, E.current, N).then((R) => {
14068
14067
  const J = {
14069
14068
  ...R,
14070
14069
  // The floating element's position may be recomputed while it's closed
@@ -14077,7 +14076,7 @@ function E3(e) {
14077
14076
  u(J);
14078
14077
  }));
14079
14078
  });
14080
- }, [m, t, n, L, F]);
14079
+ }, [m, t, n, j, F]);
14081
14080
  Hr(() => {
14082
14081
  c === !1 && S.current.isPositioned && (S.current.isPositioned = !1, u((N) => ({
14083
14082
  ...N,
@@ -14102,7 +14101,7 @@ function E3(e) {
14102
14101
  }), [x, b]), M = f.useMemo(() => ({
14103
14102
  reference: C,
14104
14103
  floating: P
14105
- }), [C, P]), j = f.useMemo(() => {
14104
+ }), [C, P]), U = f.useMemo(() => {
14106
14105
  const N = {
14107
14106
  position: n,
14108
14107
  left: 0,
@@ -14128,8 +14127,8 @@ function E3(e) {
14128
14127
  update: q,
14129
14128
  refs: te,
14130
14129
  elements: M,
14131
- floatingStyles: j
14132
- }), [d, q, te, M, j]);
14130
+ floatingStyles: U
14131
+ }), [d, q, te, M, U]);
14133
14132
  }
14134
14133
  const P3 = (e) => {
14135
14134
  function t(n) {
@@ -14245,12 +14244,12 @@ var la = "PopperContent", [j3, U3] = Kc(la), Qc = f.forwardRef(
14245
14244
  updatePositionStrategy: g = "optimized",
14246
14245
  onPlaced: $,
14247
14246
  ...p
14248
- } = e, v = Xc(la, n), [y, x] = f.useState(null), b = Qe(t, (T) => x(T)), [C, P] = f.useState(null), I = F3(C), E = I?.width ?? 0, S = I?.height ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(c) ? c : [c], F = L.length > 0, q = {
14247
+ } = e, v = Xc(la, n), [y, x] = f.useState(null), b = Qe(t, (T) => x(T)), [C, P] = f.useState(null), I = F3(C), E = I?.width ?? 0, S = I?.height ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(c) ? c : [c], F = j.length > 0, q = {
14249
14248
  padding: D,
14250
- boundary: L.filter(G3),
14249
+ boundary: j.filter(G3),
14251
14250
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
14252
14251
  altBoundary: F
14253
- }, { refs: W, floatingStyles: te, placement: M, isPositioned: j, middlewareData: N } = E3({
14252
+ }, { refs: W, floatingStyles: te, placement: M, isPositioned: U, middlewareData: N } = E3({
14254
14253
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
14255
14254
  strategy: "fixed",
14256
14255
  placement: O,
@@ -14282,9 +14281,9 @@ var la = "PopperContent", [j3, U3] = Kc(la), Qc = f.forwardRef(
14282
14281
  ]
14283
14282
  }), [R, J] = nd(M), w = _t($);
14284
14283
  Vt(() => {
14285
- j && w?.();
14286
- }, [j, w]);
14287
- const _ = N.arrow?.x, U = N.arrow?.y, V = N.arrow?.centerOffset !== 0, [A, Y] = f.useState();
14284
+ U && w?.();
14285
+ }, [U, w]);
14286
+ const _ = N.arrow?.x, L = N.arrow?.y, V = N.arrow?.centerOffset !== 0, [A, Y] = f.useState();
14288
14287
  return Vt(() => {
14289
14288
  y && Y(window.getComputedStyle(y).zIndex);
14290
14289
  }, [y]), /* @__PURE__ */ h.jsx(
@@ -14294,7 +14293,7 @@ var la = "PopperContent", [j3, U3] = Kc(la), Qc = f.forwardRef(
14294
14293
  "data-radix-popper-content-wrapper": "",
14295
14294
  style: {
14296
14295
  ...te,
14297
- transform: j ? te.transform : "translate(0, -200%)",
14296
+ transform: U ? te.transform : "translate(0, -200%)",
14298
14297
  // keep off the page when measuring
14299
14298
  minWidth: "max-content",
14300
14299
  zIndex: A,
@@ -14318,7 +14317,7 @@ var la = "PopperContent", [j3, U3] = Kc(la), Qc = f.forwardRef(
14318
14317
  placedSide: R,
14319
14318
  onArrowChange: P,
14320
14319
  arrowX: _,
14321
- arrowY: U,
14320
+ arrowY: L,
14322
14321
  shouldHideArrow: V,
14323
14322
  children: /* @__PURE__ */ h.jsx(
14324
14323
  qe.div,
@@ -14331,7 +14330,7 @@ var la = "PopperContent", [j3, U3] = Kc(la), Qc = f.forwardRef(
14331
14330
  ...p.style,
14332
14331
  // if the PopperContent hasn't been placed yet (not all measurements done)
14333
14332
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
14334
- animation: j ? void 0 : "none"
14333
+ animation: U ? void 0 : "none"
14335
14334
  }
14336
14335
  }
14337
14336
  )
@@ -14546,7 +14545,7 @@ var rv = f.forwardRef((e, t) => {
14546
14545
  if (S.target === S.currentTarget && O && !y) {
14547
14546
  const D = new CustomEvent(ni, Z3);
14548
14547
  if (S.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
14549
- const L = C().filter((M) => M.focusable), F = L.find((M) => M.active), q = L.find((M) => M.id === p), te = [F, q, ...L].filter(
14548
+ const j = C().filter((M) => M.focusable), F = j.find((M) => M.active), q = j.find((M) => M.id === p), te = [F, q, ...j].filter(
14550
14549
  Boolean
14551
14550
  ).map((M) => M.ref.current);
14552
14551
  cd(te, d);
@@ -15142,10 +15141,10 @@ function Qv(e) {
15142
15141
  var S = window.getSelection(), O = S && S.anchorNode, D = O ? O === I || O.contains(I) : !1;
15143
15142
  if (D)
15144
15143
  return !1;
15145
- var L = el(E, I);
15146
- if (!L)
15144
+ var j = el(E, I);
15145
+ if (!j)
15147
15146
  return !0;
15148
- if (L ? P = E : (P = E === "v" ? "h" : "v", L = el(E, I)), !L)
15147
+ if (j ? P = E : (P = E === "v" ? "h" : "v", j = el(E, I)), !j)
15149
15148
  return !1;
15150
15149
  if (!r.current && "changedTouches" in p && (b || C) && (r.current = P), !P)
15151
15150
  return !0;
@@ -15325,8 +15324,8 @@ var lt = "MenuContent", [f$, ua] = on(lt), Nd = f.forwardRef(
15325
15324
  onDismiss: g,
15326
15325
  disableOutsideScroll: $,
15327
15326
  ...p
15328
- } = e, v = an(lt, n), y = xr(lt, n), x = Po(n), b = xd(n), C = a$(n), [P, I] = f.useState(null), E = f.useRef(null), S = Qe(t, E, v.onContentChange), O = f.useRef(0), D = f.useRef(""), L = f.useRef(0), F = f.useRef(null), q = f.useRef("right"), W = f.useRef(0), te = $ ? $d : f.Fragment, M = $ ? { as: p$, allowPinchZoom: !0 } : void 0, j = (R) => {
15329
- const J = D.current + R, w = C().filter((T) => !T.disabled), _ = document.activeElement, U = w.find((T) => T.ref.current === _)?.textValue, V = w.map((T) => T.textValue), A = P$(V, J, U), Y = w.find((T) => T.textValue === A)?.ref.current;
15327
+ } = e, v = an(lt, n), y = xr(lt, n), x = Po(n), b = xd(n), C = a$(n), [P, I] = f.useState(null), E = f.useRef(null), S = Qe(t, E, v.onContentChange), O = f.useRef(0), D = f.useRef(""), j = f.useRef(0), F = f.useRef(null), q = f.useRef("right"), W = f.useRef(0), te = $ ? $d : f.Fragment, M = $ ? { as: p$, allowPinchZoom: !0 } : void 0, U = (R) => {
15328
+ const J = D.current + R, w = C().filter((T) => !T.disabled), _ = document.activeElement, L = w.find((T) => T.ref.current === _)?.textValue, V = w.map((T) => T.textValue), A = P$(V, J, L), Y = w.find((T) => T.textValue === A)?.ref.current;
15330
15329
  (function T(ee) {
15331
15330
  D.current = ee, window.clearTimeout(O.current), ee !== "" && (O.current = window.setTimeout(() => T(""), 1e3));
15332
15331
  })(J), Y && setTimeout(() => Y.focus());
@@ -15356,7 +15355,7 @@ var lt = "MenuContent", [f$, ua] = on(lt), Nd = f.forwardRef(
15356
15355
  },
15357
15356
  [N]
15358
15357
  ),
15359
- pointerGraceTimerRef: L,
15358
+ pointerGraceTimerRef: j,
15360
15359
  onPointerGraceIntentChange: f.useCallback((R) => {
15361
15360
  F.current = R;
15362
15361
  }, []),
@@ -15406,8 +15405,8 @@ var lt = "MenuContent", [f$, ua] = on(lt), Nd = f.forwardRef(
15406
15405
  ref: S,
15407
15406
  style: { outline: "none", ...p.style },
15408
15407
  onKeyDown: fe(p.onKeyDown, (R) => {
15409
- const w = R.target.closest("[data-radix-menu-content]") === R.currentTarget, _ = R.ctrlKey || R.altKey || R.metaKey, U = R.key.length === 1;
15410
- w && (R.key === "Tab" && R.preventDefault(), !_ && U && j(R.key));
15408
+ const w = R.target.closest("[data-radix-menu-content]") === R.currentTarget, _ = R.ctrlKey || R.altKey || R.metaKey, L = R.key.length === 1;
15409
+ w && (R.key === "Tab" && R.preventDefault(), !_ && L && U(R.key));
15411
15410
  const V = E.current;
15412
15411
  if (R.target !== V || !r$.includes(R.key)) return;
15413
15412
  R.preventDefault();
@@ -15975,14 +15974,14 @@ function Yy({
15975
15974
  defaultUnreadOnly: o = !1,
15976
15975
  realtimeContext: i
15977
15976
  }) {
15978
- const a = Dt(i ?? xy), [s, l] = ae([]), [c, d] = ae(0), [u, m] = ae(0), [g, $] = ae(!1), [p, v] = ae(null), [y, x] = ae(o), b = a?.notifications ?? s, C = a?.unreadCount ?? c, P = a?.unseenCount ?? u, I = a?.loading ?? g, E = a?.error ? a.error instanceof Error ? a.error.message : String(a.error) : p, S = de(() => b.slice(0, r), [r, b]), O = de(() => S.filter((M) => !M.readAt), [S]), D = de(() => S.filter((M) => !!M.readAt), [S]), L = de(() => il(O), [O]), F = de(() => il(D), [D]), q = je(async ({ unreadOnly: M, markSeen: j }) => {
15977
+ const a = Dt(i ?? xy), [s, l] = ae([]), [c, d] = ae(0), [u, m] = ae(0), [g, $] = ae(!1), [p, v] = ae(null), [y, x] = ae(o), b = a?.notifications ?? s, C = a?.unreadCount ?? c, P = a?.unseenCount ?? u, I = a?.loading ?? g, E = a?.error ? a.error instanceof Error ? a.error.message : String(a.error) : p, S = de(() => b.slice(0, r), [r, b]), O = de(() => S.filter((M) => !M.readAt), [S]), D = de(() => S.filter((M) => !!M.readAt), [S]), j = de(() => il(O), [O]), F = de(() => il(D), [D]), q = je(async ({ unreadOnly: M, markSeen: U }) => {
15979
15978
  $(!0), v(null);
15980
15979
  try {
15981
15980
  const N = await fetch("/api/rb/notifications", {
15982
15981
  method: "POST",
15983
15982
  headers: { "Content-Type": "application/json" },
15984
15983
  credentials: "include",
15985
- body: JSON.stringify({ limit: r, unreadOnly: M, markSeen: j })
15984
+ body: JSON.stringify({ limit: r, unreadOnly: M, markSeen: U })
15986
15985
  }), R = await N.json().catch(() => null);
15987
15986
  if (!N.ok || !R?.ok) {
15988
15987
  v(R?.error || "Unable to load notifications.");
@@ -16021,14 +16020,14 @@ function Yy({
16021
16020
  }, [e, a, q, y]);
16022
16021
  const W = async (M) => {
16023
16022
  try {
16024
- const j = await fetch(`/api/rb/notifications/${encodeURIComponent(M)}/read`, {
16023
+ const U = await fetch(`/api/rb/notifications/${encodeURIComponent(M)}/read`, {
16025
16024
  method: "POST",
16026
16025
  headers: { "Content-Type": "application/json" },
16027
16026
  credentials: "include",
16028
16027
  keepalive: !0,
16029
16028
  body: "{}"
16030
- }), N = await j.json().catch(() => null);
16031
- if (!j.ok || !N?.ok) return;
16029
+ }), N = await U.json().catch(() => null);
16030
+ if (!U.ok || !N?.ok) return;
16032
16031
  const R = (/* @__PURE__ */ new Date()).toISOString();
16033
16032
  if (a) return;
16034
16033
  l((J) => {
@@ -16040,13 +16039,13 @@ function Yy({
16040
16039
  }
16041
16040
  }, te = async (M) => {
16042
16041
  try {
16043
- const j = await fetch(`/api/rb/notifications/${encodeURIComponent(M)}/archive`, {
16042
+ const U = await fetch(`/api/rb/notifications/${encodeURIComponent(M)}/archive`, {
16044
16043
  method: "POST",
16045
16044
  headers: { "Content-Type": "application/json" },
16046
16045
  credentials: "include",
16047
16046
  body: "{}"
16048
- }), N = await j.json().catch(() => null);
16049
- if (!j.ok || !N?.ok || a) return;
16047
+ }), N = await U.json().catch(() => null);
16048
+ if (!U.ok || !N?.ok || a) return;
16050
16049
  l((R) => {
16051
16050
  const J = R.find((w) => w.id === M);
16052
16051
  return J && !J.readAt && d((w) => Math.max(0, w - 1)), J && !J.seenAt && m((w) => Math.max(0, w - 1)), R.filter((w) => w.id !== M);
@@ -16089,16 +16088,16 @@ function Yy({
16089
16088
  /* @__PURE__ */ h.jsx("div", { className: "flex-1 overflow-y-auto px-4 pb-3", children: I ? /* @__PURE__ */ h.jsx("div", { className: "flex items-center justify-center py-10 text-muted-foreground", children: /* @__PURE__ */ h.jsx(ki, { className: "h-4 w-4 animate-spin" }) }) : E ? /* @__PURE__ */ h.jsx("div", { className: "py-10 text-center text-sm text-muted-foreground", children: E }) : S.length === 0 ? /* @__PURE__ */ h.jsx("div", { className: "py-10 text-center text-sm text-muted-foreground", children: "No notifications." }) : /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-4", children: [
16090
16089
  /* @__PURE__ */ h.jsxs("div", { children: [
16091
16090
  /* @__PURE__ */ h.jsx("div", { className: "sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground", children: "Unread notifications" }),
16092
- L.length === 0 ? /* @__PURE__ */ h.jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No unread notifications." }) : L.map((M) => /* @__PURE__ */ h.jsxs("div", { children: [
16091
+ j.length === 0 ? /* @__PURE__ */ h.jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No unread notifications." }) : j.map((M) => /* @__PURE__ */ h.jsxs("div", { children: [
16093
16092
  /* @__PURE__ */ h.jsx("div", { className: "sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground", children: M.label }),
16094
- /* @__PURE__ */ h.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: M.items.map((j) => /* @__PURE__ */ h.jsx(
16093
+ /* @__PURE__ */ h.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: M.items.map((U) => /* @__PURE__ */ h.jsx(
16095
16094
  al,
16096
16095
  {
16097
- notification: j,
16096
+ notification: U,
16098
16097
  onMarkRead: W,
16099
16098
  onArchive: te
16100
16099
  },
16101
- j.id
16100
+ U.id
16102
16101
  )) })
16103
16102
  ] }, `unread:${M.key}`))
16104
16103
  ] }),
@@ -16106,14 +16105,14 @@ function Yy({
16106
16105
  /* @__PURE__ */ h.jsx("div", { className: "sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground", children: "Previous notifications" }),
16107
16106
  F.length === 0 ? /* @__PURE__ */ h.jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No previous notifications." }) : F.map((M) => /* @__PURE__ */ h.jsxs("div", { children: [
16108
16107
  /* @__PURE__ */ h.jsx("div", { className: "sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground", children: M.label }),
16109
- /* @__PURE__ */ h.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: M.items.map((j) => /* @__PURE__ */ h.jsx(
16108
+ /* @__PURE__ */ h.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: M.items.map((U) => /* @__PURE__ */ h.jsx(
16110
16109
  al,
16111
16110
  {
16112
- notification: j,
16111
+ notification: U,
16113
16112
  onMarkRead: W,
16114
16113
  onArchive: te
16115
16114
  },
16116
- j.id
16115
+ U.id
16117
16116
  )) })
16118
16117
  ] }, `previous:${M.key}`))
16119
16118
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/ui",
3
- "version": "0.140.0",
3
+ "version": "0.141.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "files": [