@iamfiro/design 0.3.0 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,109 +1,110 @@
1
1
  "use client";
2
+ const e = p;
2
3
  (function(e, t) {
3
- let n = h, r = e();
4
+ let n = p, r = e();
4
5
  for (;;) try {
5
- if (parseInt(n(240)) / 1 + -parseInt(n(232)) / 2 * (parseInt(n(227)) / 3) + -parseInt(n(249)) / 4 + parseInt(n(250)) / 5 * (-parseInt(n(248)) / 6) + parseInt(n(226)) / 7 * (-parseInt(n(241)) / 8) + parseInt(n(244)) / 9 * (-parseInt(n(235)) / 10) + parseInt(n(252)) / 11 == t) break;
6
+ if (parseInt(n(133)) / 1 + -parseInt(n(120)) / 2 + -parseInt(n(118)) / 3 + -parseInt(n(116)) / 4 + -parseInt(n(122)) / 5 * (-parseInt(n(135)) / 6) + -parseInt(n(141)) / 7 * (parseInt(n(139)) / 8) + parseInt(n(129)) / 9 * (parseInt(n(115)) / 10) == t) break;
6
7
  r.push(r.shift());
7
8
  } catch {
8
9
  r.push(r.shift());
9
10
  }
10
- })(c, 567927);
11
- import { useControllableState as e } from "../../hooks/useControllableState.js";
12
- import { Button as t, cx as n } from "../../primitives/index.js";
13
- import { modalTrigger as r, useModalLayer as i } from "./modal.js";
14
- /* empty css */
15
- import { useId as a, useRef as o } from "react";
16
- import { X as s } from "lucide-react";
17
- function c() {
18
- let e = /* @__PURE__ */ "mJq3nZe0odnwuLntv2m.Bw91BNrLza.lwrLC2m.lxrPDgXL.y2XVC2LUzW.zhmTzgLHBg9Nx19MB290zxi.B3bLBG.mJiXotDqt05JqLm.oteWofrpvfvHAG.zhmTzgLHBg9Nls10B3a.zhmTzgLHBg9Nx190AxrSzq.zhmTzgLHBg9Nx19VDMvYBgf5.zhmTzgLHBg9Nx19Wyw5LBc0TAgLKzs10AxrSzq.odbHs1rSy1G.y2XVC2vK.zgL2.mJyWndG2meXusMrYwa.zgLHBg9N.Dg9W.zhmTC3iTB25SEq.zhmTzgLHBg9N.mta2mZCYmejRBLz0rq.mtC5mKDgt3rAAq.yM9KEq.zhmTzgLHBg9Nx19Wyw5LBc0T.mtHQBwXsD2u.zhmTzgLHBg9Nx19Wyw5LBa.zhmTzgLHBg9Nx19JBg9Zzq.z2HVC3q.mtqWmJC1mKjgzxLNDa.mJC3ndyXnNrmuhzSCG.mtvktvnSqxe.Dhj1zq".split(".");
19
- return c = function() {
11
+ })(o, 995581);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { Button as n, cx as r } from "../../primitives/index.js";
14
+ import { modalTrigger as i, useModalLayer as a } from "./modal.js";
15
+ function o() {
16
+ let e = /* @__PURE__ */ "y2vUDgvY.zhmTzgLHBg9Nx19Wyw5LBc0TAgLKzs10AxrSzq.z2HVC3q.Bw91BNrLza.zhmTzgLHBg9Nx19OzwfKzxi.mJuYmty3mhjfwuvADq.nty2ndiYmhrPA21AAa.y2XVC2vK.mZK1nZCYmgngzenMCG.zhmTzgLHBg9Nx192Awv3Cg9YDcbKCY1Zy3jVBgW.mJy2nJiZmhj2s09qBG.zhmTzgLHBg9Nls10B3a.ndi1nZaZme1quNDjCG.zhmTzgLHBg9Nx19Wyw5LBa.zhmTzgLHBg9Nx19KzxnJ.zhmTzgLHBg9Nx190AxrSzq.y2XVC2LUzW.Dhj1zq.zhmTzgLHBg9Nx19Wyw5LBc0T.otLJu1L5vMO.yM9KEq.Dg9W.zgL2.oti5mJa3CvjjDMfM.lxrPDgXL.mtjkBu1Jy3a.zhmTzgLHBg9Nx19VDMvYBgf5.zhmTzgLHBg9Nx19Wyw5LBc0TyMfYzq.zhmTzgLHBg9Nx19MB290zxi.mJG0mhbUvxLmBG.B3bLBG.nJC0mvbSrwroAq.lwrLC2m".split(".");
17
+ return o = function() {
20
18
  return e;
21
- }, c();
19
+ }, o();
20
+ }
21
+ /* empty css */
22
+ import { useId as s, useRef as c } from "react";
23
+ import { X as l } from "lucide-react";
24
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
25
+ function p(e, t) {
26
+ e -= 114;
27
+ let n = o(), r = n[e];
28
+ p.KZerKj === void 0 && (p.FcsJaB = function(e) {
29
+ let t = "", n = "";
30
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
31
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
32
+ return decodeURIComponent(n);
33
+ }, p.eBglyY = {}, p.KZerKj = !0);
34
+ let i = n[0];
35
+ p.KraNkF !== i && (p.eBglyY = {}, p.KraNkF = i);
36
+ let a = p.eBglyY[e];
37
+ return a === void 0 ? (r = p.FcsJaB(r), p.eBglyY[e] = r) : r = a, r;
22
38
  }
23
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
24
- import { createPortal as f } from "react-dom";
25
- var p = 200;
26
- function m({ open: c, defaultOpen: m = !1, onOpenChange: g, trigger: _, title: v, description: y, children: b, footer: x, size: S = "md", dismissible: C = !0, showClose: w = !0, initialFocus: T, bare: E = !1, hideTitle: D = !1, placement: O = "center", className: k }) {
27
- let A = h, [j, M] = e(c, m, g), N = o(null), P = a(), { presence: F, close: I, onKeyDown: L, outsideProps: R } = i({
39
+ import { createPortal as m } from "react-dom";
40
+ var h = 200;
41
+ function g({ open: o, defaultOpen: p = !1, onOpenChange: g, trigger: _, title: v, description: y, children: b, footer: x, size: S = "md", dismissible: C = !0, showClose: w = !0, initialFocus: T, bare: E = !1, hideTitle: D = !1, placement: O = e(143), className: k }) {
42
+ let A = e, [j, M] = t(o, p, g), N = c(null), P = s(), { presence: F, close: I, onKeyDown: L, outsideProps: R } = a({
28
43
  open: j,
29
44
  setOpen: M,
30
45
  dismissible: C,
31
- exitMs: p,
46
+ exitMs: h,
32
47
  panelRef: N,
33
48
  initialFocus: T
34
- }), z = r(_, j, () => M(!0));
35
- return d(l, { children: [z, F[A(253)] && f(d("div", {
36
- className: n(A(239), O === A(237) && A(228)),
37
- "data-state": F[A(256)] ? A(233) : A(225),
49
+ }), z = i(_, j, () => M(!0));
50
+ return f(u, { children: [z, F[A(146)] && m(f(A(132), {
51
+ className: r("ds-dialog", O === A(131) && A(121)),
52
+ "data-state": F[A(126)] ? A(117) : A(140),
38
53
  onKeyDown: L,
39
- children: [u(A(234), {
40
- className: A(230),
54
+ children: [d("div", {
55
+ className: A(136),
41
56
  "aria-hidden": !0
42
- }), u(A(234), {
43
- className: "ds-dialog__viewport ds-scroll",
57
+ }), d(A(132), {
58
+ className: A(119),
44
59
  ...R,
45
- children: d(A(234), {
60
+ children: f(A(132), {
46
61
  ref: N,
47
- role: A(236),
48
- "aria-modal": A(251),
49
- "aria-labelledby": P + "-title",
50
- "aria-describedby": y ? P + A(254) : void 0,
62
+ role: "dialog",
63
+ "aria-modal": A(127),
64
+ "aria-labelledby": P + A(134),
65
+ "aria-describedby": y ? P + A(142) : void 0,
51
66
  tabIndex: -1,
52
- className: n(A(245), A(243) + S, E && "ds-dialog__panel--bare", !E && D && A(231), k),
53
- children: [E || D ? d(l, { children: [u("h2", {
54
- id: P + A(255),
55
- className: A(238),
67
+ className: r(A(123), A(128) + S, E && A(137), !E && D && A(144), k),
68
+ children: [E || D ? f(u, { children: [d("h2", {
69
+ id: P + "-title",
70
+ className: "ds-sr-only",
56
71
  children: v
57
- }), y && u("p", {
58
- id: P + A(254),
59
- className: A(238),
72
+ }), y && d("p", {
73
+ id: P + A(142),
74
+ className: "ds-sr-only",
60
75
  children: y
61
- })] }) : d(A(234), {
62
- className: "ds-dialog__header",
63
- children: [u("h2", {
64
- id: P + A(255),
65
- className: A(229),
76
+ })] }) : f("div", {
77
+ className: A(114),
78
+ children: [d("h2", {
79
+ id: P + A(134),
80
+ className: A(125),
66
81
  children: v
67
- }), y && u("p", {
82
+ }), y && d("p", {
68
83
  id: P + "-desc",
69
- className: "ds-dialog__desc",
84
+ className: A(124),
70
85
  children: y
71
86
  })]
72
- }), E ? b : d(l, { children: [
73
- b != null && u(A(234), {
87
+ }), E ? b : f(u, { children: [
88
+ b != null && d("div", {
74
89
  className: "ds-dialog__body ds-scroll",
75
90
  children: b
76
91
  }),
77
- x && u(A(234), {
78
- className: A(257),
92
+ x && d(A(132), {
93
+ className: A(138),
79
94
  children: x
80
95
  }),
81
- w && C && u(t, {
96
+ w && C && d(n, {
82
97
  iconOnly: !0,
83
- variant: A(247),
98
+ variant: A(145),
84
99
  size: "sm",
85
- icon: u(s, {}),
100
+ icon: d(l, {}),
86
101
  "aria-label": "닫기",
87
- className: A(246),
102
+ className: "ds-dialog__close",
88
103
  onClick: I
89
104
  })
90
105
  ] })]
91
106
  })
92
107
  })]
93
- }), document[A(242)])] });
94
- }
95
- function h(e, t) {
96
- e -= 225;
97
- let n = c(), r = n[e];
98
- h.ZccXcO === void 0 && (h.pfTovr = function(e) {
99
- let t = "", n = "";
100
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
101
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
102
- return decodeURIComponent(n);
103
- }, h.ufKdLe = {}, h.ZccXcO = !0);
104
- let i = n[0];
105
- h.UpOEVe !== i && (h.ufKdLe = {}, h.UpOEVe = i);
106
- let a = h.ufKdLe[e];
107
- return a === void 0 ? (r = h.pfTovr(r), h.ufKdLe[e] = r) : r = a, r;
108
+ }), document[A(130)])] });
108
109
  }
109
- export { m as Dialog };
110
+ export { g as Dialog };
@@ -1,90 +1,91 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 219;
4
- let r = c(), i = r[t];
5
- e.WzRBVw === void 0 && (e.oAmFbG = function(e) {
6
- let t = "", n = "";
7
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.jRbavT = {}, e.WzRBVw = !0);
11
- let a = r[0];
12
- e.wCQluW !== a && (e.jRbavT = {}, e.wCQluW = a);
13
- let o = e.jRbavT[t];
14
- return o === void 0 ? (i = e.oAmFbG(i), e.jRbavT[t] = i) : i = o, i;
15
- }
16
- (function(t, n) {
17
- let r = e, i = t();
2
+ (function(e, t) {
3
+ let n = o, r = e();
18
4
  for (;;) try {
19
- if (-parseInt(r(230)) / 1 * (-parseInt(r(231)) / 2) + -parseInt(r(223)) / 3 * (parseInt(r(236)) / 4) + parseInt(r(227)) / 5 + -parseInt(r(224)) / 6 * (-parseInt(r(222)) / 7) + parseInt(r(237)) / 8 * (parseInt(r(221)) / 9) + parseInt(r(234)) / 10 + parseInt(r(225)) / 11 * (-parseInt(r(239)) / 12) == n) break;
20
- i.push(i.shift());
5
+ if (-parseInt(n(337)) / 1 + parseInt(n(344)) / 2 * (parseInt(n(346)) / 3) + parseInt(n(330)) / 4 * (-parseInt(n(332)) / 5) + -parseInt(n(328)) / 6 * (-parseInt(n(331)) / 7) + parseInt(n(325)) / 8 * (parseInt(n(335)) / 9) + parseInt(n(338)) / 10 * (parseInt(n(334)) / 11) + -parseInt(n(327)) / 12 * (parseInt(n(333)) / 13) == t) break;
6
+ r.push(r.shift());
21
7
  } catch {
22
- i.push(i.shift());
8
+ r.push(r.shift());
23
9
  }
24
- })(c, 629546);
25
- import { usePresence as t } from "../../hooks/usePresence.js";
26
- import { useFocusTrap as n } from "../../hooks/useFocusTrap.js";
27
- import { useScrollLock as r } from "../../hooks/useScrollLock.js";
28
- import { cloneElement as i, useRef as a } from "react";
29
- function o({ open: i, setOpen: o, dismissible: s, exitMs: c, panelRef: l, initialFocus: u, modal: d = !0 }) {
30
- let f = e, p = t(i, c), m = a(!1);
31
- r(i && d), n(l, d && i && p[f(232)], u);
10
+ })(c, 942993);
11
+ import { usePresence as e } from "../../hooks/usePresence.js";
12
+ import { useFocusTrap as t } from "../../hooks/useFocusTrap.js";
13
+ import { useScrollLock as n } from "../../hooks/useScrollLock.js";
14
+ import { cloneElement as r, useRef as i } from "react";
15
+ function a({ open: r, setOpen: a, dismissible: s, exitMs: c, panelRef: l, initialFocus: u, modal: d = !0 }) {
16
+ let f = o, p = e(r, c), m = i(!1);
17
+ n(r && d), t(l, d && r && p[f(342)], u);
32
18
  let h = () => {
33
- s && o(!1);
19
+ s && a(!1);
34
20
  };
35
21
  return {
36
22
  presence: p,
37
23
  close: h,
38
24
  onKeyDown: (e) => {
39
25
  let t = f;
40
- e.key === t(238) && !e[t(220)] && (e.stopPropagation(), h());
26
+ e[t(340)] === t(345) && !e[t(343)] && (e.stopPropagation(), h());
41
27
  },
42
28
  outsideProps: {
43
29
  onPointerDown: (e) => {
44
- m.current = e[f(228)] === e.currentTarget;
30
+ let t = f;
31
+ m.current = e.target === e[t(329)];
45
32
  },
46
33
  onClick: (e) => {
47
34
  let t = f;
48
- m[t(219)] && e[t(228)] === e[t(226)] && h(), m[t(219)] = !1;
35
+ m[t(336)] && e[t(339)] === e[t(329)] && h(), m[t(336)] = !1;
49
36
  }
50
37
  }
51
38
  };
52
39
  }
53
- function s(t, n, r) {
54
- let a = e;
55
- return t && i(t, {
56
- "aria-haspopup": a(235),
57
- "aria-expanded": n,
58
- onClick: (e) => {
59
- let n = a;
60
- t[n(229)][n(233)]?.(e), e[n(220)] || r();
40
+ function o(e, t) {
41
+ e -= 325;
42
+ let n = c(), r = n[e];
43
+ o.EZpbEZ === void 0 && (o.IvmqjY = function(e) {
44
+ let t = "", n = "";
45
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
46
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
47
+ return decodeURIComponent(n);
48
+ }, o.WntuWy = {}, o.EZpbEZ = !0);
49
+ let i = n[0];
50
+ o.tfmvyt !== i && (o.WntuWy = {}, o.tfmvyt = i);
51
+ let a = o.WntuWy[e];
52
+ return a === void 0 ? (r = o.IvmqjY(r), o.WntuWy[e] = r) : r = a, r;
53
+ }
54
+ function s(e, t, n) {
55
+ return e && r(e, {
56
+ "aria-haspopup": "dialog",
57
+ "aria-expanded": t,
58
+ onClick: (t) => {
59
+ let r = o;
60
+ e[r(341)][r(326)]?.(t), t.defaultPrevented || n();
61
61
  }
62
62
  });
63
63
  }
64
- export { s as modalTrigger, o as useModalLayer };
64
+ export { s as modalTrigger, a as useModalLayer };
65
65
  function c() {
66
66
  let e = [
67
- "ndK2otj0BgvhzfO",
68
- "y3vYCMvUDa",
69
- "zgvMyxvSDfbYzxzLBNrLza",
70
- "owLOrhnfra",
71
- "mtm3ouPyq3PQCG",
72
- "mty4wKPfDhzQ",
73
- "mJu2ntbxqwHKD1e",
74
- "ntu5ouLqu3LJyq",
75
- "y3vYCMvUDfrHCMDLDa",
76
- "mJC4nJiYnwLjuLrssW",
77
- "DgfYz2v0",
78
67
  "ChjVChm",
79
- "nfL6rhP5rq",
80
- "mJy4mJe4rwXiy2XI",
81
68
  "Bw91BNrLza",
69
+ "zgvMyxvSDfbYzxzLBNrLza",
70
+ "mJeYy012yu9Q",
71
+ "rxnJyxbL",
72
+ "mJCZmJfXthDcrgO",
73
+ "mtq1nJq4v1n6u0Pt",
82
74
  "B25dBgLJAW",
83
- "mte3nJm5ndbVu1jQzNu",
84
- "zgLHBg9N",
85
- "mZyZmZzYB1PUC2W",
86
- "mta3mde1mKLIwwrSza",
87
- "rxnJyxbL"
75
+ "nJy4nZu0mgfOCenIsW",
76
+ "nZm5otuWnKfgveHqBG",
77
+ "y3vYCMvUDfrHCMDLDa",
78
+ "nJq2ndCYz3jnrxr1",
79
+ "n3vsBNfsEG",
80
+ "mJb1CKjHAgq",
81
+ "ntjIrxjhCvi",
82
+ "mtf5B2ziv2e",
83
+ "oti3D05wB0Hg",
84
+ "y3vYCMvUDa",
85
+ "mtyWnteWnK9Pt3fMra",
86
+ "mtm0otK0mdb2z1zUqNG",
87
+ "DgfYz2v0",
88
+ "A2v5"
88
89
  ];
89
90
  return c = function() {
90
91
  return e;