@sakaniui/react 0.1.0 → 0.3.1

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 (162) hide show
  1. package/README.md +64 -17
  2. package/dist/TopBar-B88BmNES.js +3777 -0
  3. package/dist/TopBar-CM5noziF.cjs +1 -0
  4. package/dist/blocks/AccountOverviewBlock/AccountOverviewBlock.d.ts +8 -0
  5. package/dist/blocks/AccountOverviewBlock/index.d.ts +2 -0
  6. package/dist/blocks/ActivityLogBlock/ActivityLogBlock.d.ts +8 -0
  7. package/dist/blocks/ActivityLogBlock/index.d.ts +2 -0
  8. package/dist/blocks/AppHeaderBlock/AppHeaderBlock.d.ts +19 -0
  9. package/dist/blocks/AppHeaderBlock/index.d.ts +2 -0
  10. package/dist/blocks/Billing/AddCardFormBlock/AddCardFormBlock.d.ts +20 -0
  11. package/dist/blocks/Billing/AddCardFormBlock/index.d.ts +2 -0
  12. package/dist/blocks/Billing/BillingAddressBlock/BillingAddressBlock.d.ts +24 -0
  13. package/dist/blocks/Billing/BillingAddressBlock/index.d.ts +2 -0
  14. package/dist/blocks/Billing/BillingHistoryBlock/BillingHistoryBlock.d.ts +24 -0
  15. package/dist/blocks/Billing/BillingHistoryBlock/index.d.ts +2 -0
  16. package/dist/blocks/Billing/CurrentPlanBlock/CurrentPlanBlock.d.ts +29 -0
  17. package/dist/blocks/Billing/CurrentPlanBlock/index.d.ts +2 -0
  18. package/dist/blocks/Billing/PaymentMethodBlock/PaymentMethodBlock.d.ts +23 -0
  19. package/dist/blocks/Billing/PaymentMethodBlock/cardBrandIcons.d.ts +3 -0
  20. package/dist/blocks/Billing/PaymentMethodBlock/index.d.ts +3 -0
  21. package/dist/blocks/BlogListingBlock/BlogListingBlock.d.ts +33 -0
  22. package/dist/blocks/BlogListingBlock/index.d.ts +2 -0
  23. package/dist/blocks/CRMDashboardBlock/CRMDashboardBlock.d.ts +6 -0
  24. package/dist/blocks/CRMDashboardBlock/index.d.ts +2 -0
  25. package/dist/blocks/CareersBlock/CareersBlock.d.ts +16 -0
  26. package/dist/blocks/CareersBlock/index.d.ts +2 -0
  27. package/dist/blocks/ChatInterfaceBlock/ChatInterfaceBlock.d.ts +8 -0
  28. package/dist/blocks/ChatInterfaceBlock/index.d.ts +2 -0
  29. package/dist/blocks/CheckoutFlowBlock/CheckoutFlowBlock.d.ts +33 -0
  30. package/dist/blocks/CheckoutFlowBlock/index.d.ts +2 -0
  31. package/dist/blocks/CtaBannerBlock/CtaBannerBlock.d.ts +19 -0
  32. package/dist/blocks/CtaBannerBlock/index.d.ts +2 -0
  33. package/dist/blocks/DataTableBlock/DataTableBlock.d.ts +8 -0
  34. package/dist/blocks/DataTableBlock/index.d.ts +2 -0
  35. package/dist/blocks/EmailVerificationBlock/EmailVerificationBlock.d.ts +13 -0
  36. package/dist/blocks/EmailVerificationBlock/index.d.ts +2 -0
  37. package/dist/blocks/FaqBlock/FaqBlock.d.ts +17 -0
  38. package/dist/blocks/FaqBlock/index.d.ts +2 -0
  39. package/dist/blocks/FeatureGridBlock/FeatureGridBlock.d.ts +15 -0
  40. package/dist/blocks/FeatureGridBlock/index.d.ts +2 -0
  41. package/dist/blocks/FileUploadPanelBlock/FileUploadPanelBlock.d.ts +9 -0
  42. package/dist/blocks/FileUploadPanelBlock/index.d.ts +2 -0
  43. package/dist/blocks/ForgotPasswordBlock/ForgotPasswordBlock.d.ts +12 -0
  44. package/dist/blocks/ForgotPasswordBlock/index.d.ts +2 -0
  45. package/dist/blocks/FormModalBlock/FormModalBlock.d.ts +8 -0
  46. package/dist/blocks/FormModalBlock/index.d.ts +2 -0
  47. package/dist/blocks/HeroBlock/HeroBlock.d.ts +27 -0
  48. package/dist/blocks/HeroBlock/ScratchRevealImage.d.ts +11 -0
  49. package/dist/blocks/HeroBlock/index.d.ts +2 -0
  50. package/dist/blocks/InlineCtaBlock/InlineCtaBlock.d.ts +13 -0
  51. package/dist/blocks/InlineCtaBlock/index.d.ts +2 -0
  52. package/dist/blocks/KanbanBoardBlock/KanbanBoardBlock.d.ts +8 -0
  53. package/dist/blocks/KanbanBoardBlock/index.d.ts +2 -0
  54. package/dist/blocks/LoginBlock/LoginBlock.d.ts +18 -0
  55. package/dist/blocks/LoginBlock/index.d.ts +2 -0
  56. package/dist/blocks/LogoCloudBlock/LogoCloudBlock.d.ts +12 -0
  57. package/dist/blocks/LogoCloudBlock/brandLogos.d.ts +10 -0
  58. package/dist/blocks/LogoCloudBlock/index.d.ts +3 -0
  59. package/dist/blocks/MultistepModalBlock/MultistepModalBlock.d.ts +10 -0
  60. package/dist/blocks/MultistepModalBlock/index.d.ts +2 -0
  61. package/dist/blocks/NotificationPanelBlock/NotificationPanelBlock.d.ts +15 -0
  62. package/dist/blocks/NotificationPanelBlock/index.d.ts +2 -0
  63. package/dist/blocks/OnboardingProgressBlock/OnboardingProgressBlock.d.ts +15 -0
  64. package/dist/blocks/OnboardingProgressBlock/index.d.ts +2 -0
  65. package/dist/blocks/OrderConfirmationBlock/OrderConfirmationBlock.d.ts +25 -0
  66. package/dist/blocks/OrderConfirmationBlock/index.d.ts +2 -0
  67. package/dist/blocks/PricingTableBlock/PricingTableBlock.d.ts +26 -0
  68. package/dist/blocks/PricingTableBlock/index.d.ts +2 -0
  69. package/dist/blocks/ProductDetailBlock/ProductDetailBlock.d.ts +39 -0
  70. package/dist/blocks/ProductDetailBlock/index.d.ts +2 -0
  71. package/dist/blocks/ProductGridBlock/ProductGridBlock.d.ts +24 -0
  72. package/dist/blocks/ProductGridBlock/index.d.ts +2 -0
  73. package/dist/blocks/ProfileSettingsBlock/ProfileSettingsBlock.d.ts +13 -0
  74. package/dist/blocks/ProfileSettingsBlock/index.d.ts +2 -0
  75. package/dist/blocks/ResetPasswordBlock/ResetPasswordBlock.d.ts +11 -0
  76. package/dist/blocks/ResetPasswordBlock/index.d.ts +2 -0
  77. package/dist/blocks/SectionFooterBlock/SectionFooterBlock.d.ts +14 -0
  78. package/dist/blocks/SectionFooterBlock/index.d.ts +2 -0
  79. package/dist/blocks/ShoppingCartBlock/ShoppingCartBlock.d.ts +23 -0
  80. package/dist/blocks/ShoppingCartBlock/index.d.ts +2 -0
  81. package/dist/blocks/SignUpBlock/SignUpBlock.d.ts +20 -0
  82. package/dist/blocks/SignUpBlock/index.d.ts +2 -0
  83. package/dist/blocks/TeamSectionBlock/TeamSectionBlock.d.ts +16 -0
  84. package/dist/blocks/TeamSectionBlock/index.d.ts +2 -0
  85. package/dist/blocks/TestimonialBlock/TestimonialBlock.d.ts +13 -0
  86. package/dist/blocks/TestimonialBlock/index.d.ts +2 -0
  87. package/dist/blocks/TwoFactorAuthBlock/TwoFactorAuthBlock.d.ts +12 -0
  88. package/dist/blocks/TwoFactorAuthBlock/index.d.ts +2 -0
  89. package/dist/blocks/index.d.ts +90 -0
  90. package/dist/blocks.cjs +1 -0
  91. package/dist/blocks.d.ts +2 -0
  92. package/dist/blocks.mjs +5935 -0
  93. package/dist/components/Combobox/Combobox.d.ts +2 -2
  94. package/dist/components/ECommerceComponents/CartItem/CartItem.d.ts +21 -0
  95. package/dist/components/ECommerceComponents/CartItem/index.d.ts +2 -0
  96. package/dist/components/ECommerceComponents/CheckoutSteps/CheckoutSteps.d.ts +11 -0
  97. package/dist/components/ECommerceComponents/CheckoutSteps/index.d.ts +2 -0
  98. package/dist/components/ECommerceComponents/ColorSwatch/ColorSwatch.d.ts +14 -0
  99. package/dist/components/ECommerceComponents/ColorSwatch/index.d.ts +2 -0
  100. package/dist/components/ECommerceComponents/PriceDisplay/PriceDisplay.d.ts +12 -0
  101. package/dist/components/ECommerceComponents/PriceDisplay/index.d.ts +2 -0
  102. package/dist/components/ECommerceComponents/ProductCard/ProductCard.d.ts +28 -0
  103. package/dist/components/ECommerceComponents/ProductCard/index.d.ts +2 -0
  104. package/dist/components/ECommerceComponents/ProductGallery/ProductGallery.d.ts +17 -0
  105. package/dist/components/ECommerceComponents/ProductGallery/index.d.ts +2 -0
  106. package/dist/components/ECommerceComponents/QuantitySelector/QuantitySelector.d.ts +12 -0
  107. package/dist/components/ECommerceComponents/QuantitySelector/index.d.ts +2 -0
  108. package/dist/components/ECommerceComponents/SizeSelector/SizeSelector.d.ts +12 -0
  109. package/dist/components/ECommerceComponents/SizeSelector/index.d.ts +2 -0
  110. package/dist/components/ECommerceComponents/StarRating/StarRating.d.ts +15 -0
  111. package/dist/components/ECommerceComponents/StarRating/index.d.ts +2 -0
  112. package/dist/components/ECommerceComponents/StockStatus/StockStatus.d.ts +11 -0
  113. package/dist/components/ECommerceComponents/StockStatus/index.d.ts +2 -0
  114. package/dist/components/ECommerceComponents/WishlistButton/WishlistButton.d.ts +10 -0
  115. package/dist/components/ECommerceComponents/WishlistButton/index.d.ts +2 -0
  116. package/dist/components/MarketingComponents/BlogBlockquote/BlogBlockquote.d.ts +16 -0
  117. package/dist/components/MarketingComponents/BlogBlockquote/index.d.ts +2 -0
  118. package/dist/components/MarketingComponents/BlogFeatureText/BlogFeatureText.d.ts +10 -0
  119. package/dist/components/MarketingComponents/BlogFeatureText/index.d.ts +2 -0
  120. package/dist/components/MarketingComponents/BlogImage/BlogImage.d.ts +13 -0
  121. package/dist/components/MarketingComponents/BlogImage/index.d.ts +2 -0
  122. package/dist/components/MarketingComponents/BlogListingCard/BlogListingCard.d.ts +24 -0
  123. package/dist/components/MarketingComponents/BlogListingCard/index.d.ts +2 -0
  124. package/dist/components/MarketingComponents/BlogListingFeaturedCard/BlogListingFeaturedCard.d.ts +27 -0
  125. package/dist/components/MarketingComponents/BlogListingFeaturedCard/index.d.ts +2 -0
  126. package/dist/components/MarketingComponents/FeaturedIcon/FeaturedIcon.d.ts +13 -0
  127. package/dist/components/MarketingComponents/FeaturedIcon/index.d.ts +2 -0
  128. package/dist/components/MarketingComponents/FirstPageHeading/FirstPageHeading.d.ts +24 -0
  129. package/dist/components/MarketingComponents/FirstPageHeading/index.d.ts +2 -0
  130. package/dist/components/MarketingComponents/JobListing/JobListing.d.ts +19 -0
  131. package/dist/components/MarketingComponents/JobListing/index.d.ts +2 -0
  132. package/dist/components/MarketingComponents/List/List.d.ts +10 -0
  133. package/dist/components/MarketingComponents/List/index.d.ts +2 -0
  134. package/dist/components/MarketingComponents/LocationDot/LocationDot.d.ts +10 -0
  135. package/dist/components/MarketingComponents/LocationDot/index.d.ts +2 -0
  136. package/dist/components/MarketingComponents/Marquee/Marquee.d.ts +11 -0
  137. package/dist/components/MarketingComponents/Marquee/index.d.ts +2 -0
  138. package/dist/components/MarketingComponents/Metric/Metric.d.ts +10 -0
  139. package/dist/components/MarketingComponents/Metric/index.d.ts +2 -0
  140. package/dist/components/MarketingComponents/MobileNavigationMenu/MobileNavigationMenu.d.ts +19 -0
  141. package/dist/components/MarketingComponents/MobileNavigationMenu/index.d.ts +2 -0
  142. package/dist/components/MarketingComponents/PlaceholderLogo/PlaceholderLogo.d.ts +13 -0
  143. package/dist/components/MarketingComponents/PlaceholderLogo/index.d.ts +2 -0
  144. package/dist/components/MarketingComponents/ProfileCard/ProfileCard.d.ts +20 -0
  145. package/dist/components/MarketingComponents/ProfileCard/SocialIcons.d.ts +7 -0
  146. package/dist/components/MarketingComponents/ProfileCard/index.d.ts +2 -0
  147. package/dist/components/MarketingComponents/RichTextHeading/RichTextHeading.d.ts +10 -0
  148. package/dist/components/MarketingComponents/RichTextHeading/index.d.ts +2 -0
  149. package/dist/components/MarketingComponents/RichTextParagraph/RichTextParagraph.d.ts +7 -0
  150. package/dist/components/MarketingComponents/RichTextParagraph/index.d.ts +2 -0
  151. package/dist/components/MarketingComponents/SectionHeading/SectionHeading.d.ts +15 -0
  152. package/dist/components/MarketingComponents/SectionHeading/index.d.ts +2 -0
  153. package/dist/components/MarketingComponents/SubFeature/SubFeature.d.ts +14 -0
  154. package/dist/components/MarketingComponents/SubFeature/index.d.ts +2 -0
  155. package/dist/components/MarketingComponents/TeamCard/TeamCard.d.ts +23 -0
  156. package/dist/components/MarketingComponents/TeamCard/TeamSocialIcons.d.ts +10 -0
  157. package/dist/components/MarketingComponents/TeamCard/index.d.ts +2 -0
  158. package/dist/index.cjs +1 -1
  159. package/dist/index.d.ts +37 -0
  160. package/dist/index.mjs +2051 -4361
  161. package/dist/style.css +1 -1
  162. package/package.json +6 -1
@@ -0,0 +1,3777 @@
1
+ import e, { useEffect as t, useState as n } from "react";
2
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, CircleAlert as m, CircleHelp as h, Download as g, Eye as _, EyeOff as v, File as y, Heart as b, Inbox as x, Minus as S, PanelLeft as C, PanelLeftClose as w, Paperclip as T, Plus as E, Search as ee, Send as te, Smile as ne, Star as re, StarHalf as ie, TrendingDown as ae, TrendingUp as oe, TriangleAlert as se, X as ce } from "lucide-react";
4
+ import { PolarAngleAxis as le, RadialBar as ue, RadialBarChart as de, ResponsiveContainer as fe } from "recharts";
5
+ import pe, { createPortal as me } from "react-dom";
6
+ //#region src/lib/iconStrokeWidth.ts
7
+ var D = (e, t = 1.5) => 24 / e * t, he = {
8
+ accordion: "_accordion_1njer_3",
9
+ item: "_item_1njer_10",
10
+ item__header: "_item__header_1njer_12",
11
+ item__title: "_item__title_1njer_29",
12
+ item__chevron: "_item__chevron_1njer_36",
13
+ "item__chevron--open": "_item__chevron--open_1njer_42",
14
+ item__panelWrap: "_item__panelWrap_1njer_45",
15
+ "item__panelWrap--open": "_item__panelWrap--open_1njer_50",
16
+ item__panel: "_item__panel_1njer_45",
17
+ item__panelInner: "_item__panelInner_1njer_53"
18
+ }, ge = ({ title: t, children: n, open: r, defaultOpen: o = !1, className: s }) => {
19
+ let c = r !== void 0, [l, u] = e.useState(o), d = c ? r : l;
20
+ return /* @__PURE__ */ a("div", {
21
+ className: [he.item, s ?? ""].filter(Boolean).join(" "),
22
+ children: [/* @__PURE__ */ a("button", {
23
+ type: "button",
24
+ className: he.item__header,
25
+ "aria-expanded": d,
26
+ onClick: () => !c && u((e) => !e),
27
+ children: [/* @__PURE__ */ i("span", {
28
+ className: he.item__title,
29
+ children: t
30
+ }), /* @__PURE__ */ i("span", {
31
+ className: [he.item__chevron, d ? he["item__chevron--open"] : ""].join(" "),
32
+ "aria-hidden": "true",
33
+ children: /* @__PURE__ */ i("svg", {
34
+ viewBox: "0 0 24 24",
35
+ fill: "none",
36
+ stroke: "currentColor",
37
+ strokeWidth: D(18),
38
+ strokeLinecap: "round",
39
+ strokeLinejoin: "round",
40
+ width: 18,
41
+ height: 18,
42
+ children: /* @__PURE__ */ i("path", { d: "m6 9 6 6 6-6" })
43
+ })
44
+ })]
45
+ }), /* @__PURE__ */ i("div", {
46
+ className: [he.item__panelWrap, d ? he["item__panelWrap--open"] : ""].join(" "),
47
+ children: /* @__PURE__ */ i("div", {
48
+ className: he.item__panel,
49
+ children: /* @__PURE__ */ i("div", {
50
+ className: he.item__panelInner,
51
+ children: n
52
+ })
53
+ })
54
+ })]
55
+ });
56
+ }, _e = ({ children: e, className: t }) => /* @__PURE__ */ i("div", {
57
+ className: [he.accordion, t ?? ""].filter(Boolean).join(" "),
58
+ children: e
59
+ }), ve = {
60
+ avatar: "_avatar_1igqs_3",
61
+ "avatar--sm": "_avatar--sm_1igqs_17",
62
+ "avatar--md": "_avatar--md_1igqs_18",
63
+ "avatar--lg": "_avatar--lg_1igqs_19",
64
+ "avatar--xl": "_avatar--xl_1igqs_20",
65
+ "avatar--bordered": "_avatar--bordered_1igqs_25",
66
+ avatar__image: "_avatar__image_1igqs_31",
67
+ avatar__initials: "_avatar__initials_1igqs_39",
68
+ avatar__icon: "_avatar__icon_1igqs_46"
69
+ }, ye = {
70
+ sm: 14,
71
+ md: 18,
72
+ lg: 22,
73
+ xl: 26
74
+ }, be = ({ px: e }) => /* @__PURE__ */ a("svg", {
75
+ viewBox: "0 0 24 24",
76
+ fill: "none",
77
+ stroke: "currentColor",
78
+ strokeWidth: D(e),
79
+ strokeLinecap: "round",
80
+ strokeLinejoin: "round",
81
+ "aria-hidden": "true",
82
+ children: [/* @__PURE__ */ i("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }), /* @__PURE__ */ i("circle", {
83
+ cx: "12",
84
+ cy: "7",
85
+ r: "4"
86
+ })]
87
+ }), xe = ({ size: t = "md", src: n, alt: r = "", initials: a, icon: o, className: s }) => {
88
+ let c = [
89
+ ve.avatar,
90
+ ve[`avatar--${t}`],
91
+ s ?? ""
92
+ ].filter(Boolean).join(" ");
93
+ if (n) return /* @__PURE__ */ i("span", {
94
+ className: [c, ve["avatar--bordered"]].join(" "),
95
+ children: /* @__PURE__ */ i("img", {
96
+ src: n,
97
+ alt: r,
98
+ className: ve.avatar__image
99
+ })
100
+ });
101
+ if (a) return /* @__PURE__ */ i("span", {
102
+ className: c,
103
+ role: "img",
104
+ "aria-label": r || a,
105
+ children: /* @__PURE__ */ i("span", {
106
+ className: ve.avatar__initials,
107
+ children: a.slice(0, 2).toUpperCase()
108
+ })
109
+ });
110
+ let l = ye[t], u = e.isValidElement(o) ? e.cloneElement(o, {
111
+ size: l,
112
+ strokeWidth: D(l)
113
+ }) : o ?? /* @__PURE__ */ i(be, { px: l });
114
+ return /* @__PURE__ */ i("span", {
115
+ className: c,
116
+ role: "img",
117
+ "aria-label": r || "avatar",
118
+ children: /* @__PURE__ */ i("span", {
119
+ className: ve.avatar__icon,
120
+ children: u
121
+ })
122
+ });
123
+ }, O = {
124
+ feed: "_feed_1pvgl_1",
125
+ "feed--compact": "_feed--compact_1pvgl_8",
126
+ "row--default": "_row--default_1pvgl_13",
127
+ rail: "_rail_1pvgl_19",
128
+ dot: "_dot_1pvgl_26",
129
+ connector: "_connector_1pvgl_42",
130
+ content: "_content_1pvgl_49",
131
+ "content--spaced": "_content--spaced_1pvgl_56",
132
+ "row--compact": "_row--compact_1pvgl_61",
133
+ compactLeft: "_compactLeft_1pvgl_68",
134
+ text: "_text_1pvgl_74",
135
+ actor: "_actor_1pvgl_88",
136
+ highlight: "_highlight_1pvgl_89",
137
+ timestamp: "_timestamp_1pvgl_92"
138
+ }, Se = ({ children: e }) => /* @__PURE__ */ i("span", {
139
+ className: O.highlight,
140
+ children: e
141
+ }), Ce = 16, we = (t) => e.isValidElement(t) ? e.cloneElement(t, {
142
+ size: Ce,
143
+ strokeWidth: D(Ce)
144
+ }) : t, Te = ({ items: e, variant: t = "default", className: n }) => {
145
+ let r = t === "compact";
146
+ return /* @__PURE__ */ i("div", {
147
+ className: [
148
+ O.feed,
149
+ r ? O["feed--compact"] : "",
150
+ n ?? ""
151
+ ].filter(Boolean).join(" "),
152
+ children: e.map((t, n) => {
153
+ let o = n === e.length - 1, s = t.id ?? n;
154
+ return r ? /* @__PURE__ */ a("div", {
155
+ className: O["row--compact"],
156
+ children: [/* @__PURE__ */ a("div", {
157
+ className: O.compactLeft,
158
+ children: [/* @__PURE__ */ i(xe, {
159
+ size: "sm",
160
+ src: t.avatarSrc,
161
+ alt: t.avatarAlt ?? t.actor
162
+ }), /* @__PURE__ */ a("p", {
163
+ className: O.text,
164
+ children: [
165
+ /* @__PURE__ */ i("span", {
166
+ className: O.actor,
167
+ children: t.actor
168
+ }),
169
+ " ",
170
+ t.description
171
+ ]
172
+ })]
173
+ }), /* @__PURE__ */ i("span", {
174
+ className: O.timestamp,
175
+ children: t.timestamp
176
+ })]
177
+ }, s) : /* @__PURE__ */ a("div", {
178
+ className: O["row--default"],
179
+ children: [/* @__PURE__ */ a("div", {
180
+ className: O.rail,
181
+ children: [/* @__PURE__ */ i("div", {
182
+ className: O.dot,
183
+ children: we(t.icon)
184
+ }), !o && /* @__PURE__ */ i("div", { className: O.connector })]
185
+ }), /* @__PURE__ */ a("div", {
186
+ className: [O.content, o ? "" : O["content--spaced"]].filter(Boolean).join(" "),
187
+ children: [/* @__PURE__ */ a("p", {
188
+ className: O.text,
189
+ children: [
190
+ /* @__PURE__ */ i("span", {
191
+ className: O.actor,
192
+ children: t.actor
193
+ }),
194
+ " ",
195
+ t.description
196
+ ]
197
+ }), /* @__PURE__ */ i("span", {
198
+ className: O.timestamp,
199
+ children: t.timestamp
200
+ })]
201
+ })]
202
+ }, s);
203
+ })
204
+ });
205
+ }, Ee = {
206
+ link: "_link_1g7dc_3",
207
+ link__external: "_link__external_1g7dc_34"
208
+ }, De = e.forwardRef(({ external: e, children: t, className: n, href: r, ...o }, s) => /* @__PURE__ */ a("a", {
209
+ ref: s,
210
+ href: r,
211
+ className: [Ee.link, n ?? ""].filter(Boolean).join(" "),
212
+ target: e ? "_blank" : o.target,
213
+ rel: e ? "noopener noreferrer" : o.rel,
214
+ ...o,
215
+ children: [t, e && /* @__PURE__ */ i("span", {
216
+ className: Ee.link__external,
217
+ "aria-label": "(opens in new tab)",
218
+ children: /* @__PURE__ */ a("svg", {
219
+ width: 12,
220
+ height: 12,
221
+ viewBox: "0 0 24 24",
222
+ fill: "none",
223
+ stroke: "currentColor",
224
+ strokeWidth: D(12),
225
+ strokeLinecap: "round",
226
+ strokeLinejoin: "round",
227
+ "aria-hidden": "true",
228
+ children: [
229
+ /* @__PURE__ */ i("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
230
+ /* @__PURE__ */ i("polyline", { points: "15 3 21 3 21 9" }),
231
+ /* @__PURE__ */ i("line", {
232
+ x1: "10",
233
+ y1: "14",
234
+ x2: "21",
235
+ y2: "3"
236
+ })
237
+ ]
238
+ })
239
+ })]
240
+ }));
241
+ De.displayName = "Link";
242
+ var Oe = {
243
+ button: "_button_1ls4o_2",
244
+ "button--sm": "_button--sm_1ls4o_18",
245
+ "button--md": "_button--md_1ls4o_19",
246
+ "button--lg": "_button--lg_1ls4o_20",
247
+ "button--primary": "_button--primary_1ls4o_23",
248
+ "button--secondary": "_button--secondary_1ls4o_30",
249
+ "button--outline": "_button--outline_1ls4o_35",
250
+ "button--ghost": "_button--ghost_1ls4o_40",
251
+ "button--destructive": "_button--destructive_1ls4o_45"
252
+ }, ke = {
253
+ sm: 16,
254
+ md: 18,
255
+ lg: 20
256
+ }, Ae = e.forwardRef(({ icon: e, variant: t = "primary", size: n = "md", disabled: r, className: a, ...o }, s) => /* @__PURE__ */ i("button", {
257
+ ref: s,
258
+ disabled: r,
259
+ className: [
260
+ Oe.button,
261
+ Oe[`button--${t}`],
262
+ Oe[`button--${n}`],
263
+ a ?? ""
264
+ ].filter(Boolean).join(" "),
265
+ ...o,
266
+ children: /* @__PURE__ */ i(e, {
267
+ size: ke[n],
268
+ strokeWidth: D(ke[n]),
269
+ "aria-hidden": "true"
270
+ })
271
+ }));
272
+ Ae.displayName = "IconButton";
273
+ var k = {
274
+ button: "_button_17bv9_21",
275
+ "button--primary": "_button--primary_17bv9_72",
276
+ "button--secondary": "_button--secondary_17bv9_99",
277
+ "button--outline": "_button--outline_17bv9_122",
278
+ "button--ghost": "_button--ghost_17bv9_144",
279
+ "button--destructive": "_button--destructive_17bv9_165",
280
+ "button--sm": "_button--sm_17bv9_189",
281
+ "button--md": "_button--md_17bv9_199",
282
+ "button--lg": "_button--lg_17bv9_209",
283
+ "button--hasLeftIcon": "_button--hasLeftIcon_17bv9_220",
284
+ "button--hasRightIcon": "_button--hasRightIcon_17bv9_221",
285
+ button__icon: "_button__icon_17bv9_234",
286
+ button__label: "_button__label_17bv9_241",
287
+ "button--loading": "_button--loading_17bv9_251",
288
+ button__spinner: "_button__spinner_17bv9_255",
289
+ "sakani-btn-spin": "_sakani-btn-spin_17bv9_1"
290
+ }, A = e.forwardRef(({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: o = !1, disabled: s, children: c, className: l, ...u }, d) => {
291
+ let f = s || o;
292
+ return /* @__PURE__ */ a("button", {
293
+ ref: d,
294
+ className: [
295
+ k.button,
296
+ k[`button--${e}`],
297
+ k[`button--${t}`],
298
+ o ? k["button--loading"] : "",
299
+ n && !o ? k["button--hasLeftIcon"] : "",
300
+ r && !o ? k["button--hasRightIcon"] : "",
301
+ l ?? ""
302
+ ].filter(Boolean).join(" "),
303
+ disabled: f,
304
+ "aria-busy": o,
305
+ ...u,
306
+ children: [
307
+ o && /* @__PURE__ */ i("span", {
308
+ className: [k.button__icon, k.button__spinner].join(" "),
309
+ "aria-hidden": "true",
310
+ children: /* @__PURE__ */ i("svg", {
311
+ viewBox: "0 0 24 24",
312
+ fill: "none",
313
+ stroke: "currentColor",
314
+ strokeWidth: 2.5,
315
+ strokeLinecap: "round",
316
+ children: /* @__PURE__ */ i("path", { d: "M12 3a9 9 0 1 1-6.36 2.64" })
317
+ })
318
+ }),
319
+ n && !o && /* @__PURE__ */ i("span", {
320
+ className: k.button__icon,
321
+ "aria-hidden": "true",
322
+ children: n
323
+ }),
324
+ /* @__PURE__ */ i("span", {
325
+ className: k.button__label,
326
+ children: c
327
+ }),
328
+ r && !o && /* @__PURE__ */ i("span", {
329
+ className: k.button__icon,
330
+ "aria-hidden": "true",
331
+ children: r
332
+ })
333
+ ]
334
+ });
335
+ });
336
+ A.displayName = "Button";
337
+ var j = {
338
+ wrap: "_wrap_3mj75_1",
339
+ "wrap--vertical": "_wrap--vertical_3mj75_7",
340
+ "wrap--horizontal": "_wrap--horizontal_3mj75_11",
341
+ circleWrap: "_circleWrap_3mj75_21",
342
+ bigAvatar: "_bigAvatar_3mj75_26",
343
+ badge: "_badge_3mj75_31",
344
+ horizontalContent: "_horizontalContent_3mj75_53",
345
+ textStack: "_textStack_3mj75_60",
346
+ "textStack--center": "_textStack--center_3mj75_66",
347
+ title: "_title_3mj75_71",
348
+ hint: "_hint_3mj75_79",
349
+ link: "_link_3mj75_88",
350
+ input: "_input_3mj75_92"
351
+ }, je = ({ src: t, alt: n, orientation: r = "vertical", accept: o = "image/jpeg,image/png", title: s = "Upload a photo", hint: l = "JPG or PNG, max 5MB.", onFileSelect: u, onRemove: d, className: f }) => {
352
+ let p = e.useRef(null), m = t !== void 0, [h, g] = e.useState(void 0), _ = m ? t : h, v = r === "horizontal", y = !!_, b = () => p.current?.click(), x = () => {
353
+ d?.(), m || g(void 0);
354
+ }, S = /* @__PURE__ */ a("div", {
355
+ className: [j.textStack, v ? "" : j["textStack--center"]].filter(Boolean).join(" "),
356
+ children: [/* @__PURE__ */ i("p", {
357
+ className: j.title,
358
+ children: s
359
+ }), /* @__PURE__ */ i("p", {
360
+ className: j.hint,
361
+ children: l
362
+ })]
363
+ });
364
+ return /* @__PURE__ */ a("div", {
365
+ className: [
366
+ j.wrap,
367
+ j[`wrap--${r}`],
368
+ f ?? ""
369
+ ].filter(Boolean).join(" "),
370
+ children: [
371
+ /* @__PURE__ */ a("div", {
372
+ className: j.circleWrap,
373
+ children: [/* @__PURE__ */ i(xe, {
374
+ size: v ? "lg" : "xl",
375
+ src: _,
376
+ alt: n,
377
+ className: v ? void 0 : j.bigAvatar
378
+ }), !v && /* @__PURE__ */ i("button", {
379
+ type: "button",
380
+ className: j.badge,
381
+ onClick: b,
382
+ "aria-label": "Change photo",
383
+ children: /* @__PURE__ */ i(c, {
384
+ size: 16,
385
+ strokeWidth: D(16)
386
+ })
387
+ })]
388
+ }),
389
+ v && /* @__PURE__ */ a("div", {
390
+ className: j.horizontalContent,
391
+ children: [S, y ? /* @__PURE__ */ i(A, {
392
+ variant: "outline",
393
+ size: "sm",
394
+ onClick: x,
395
+ style: {
396
+ color: "var(--color-danger-fg)",
397
+ borderColor: "var(--color-danger-border)"
398
+ },
399
+ children: "Remove"
400
+ }) : /* @__PURE__ */ i(A, {
401
+ variant: "outline",
402
+ size: "sm",
403
+ onClick: b,
404
+ children: "Upload"
405
+ })]
406
+ }),
407
+ !v && (y ? /* @__PURE__ */ i(De, {
408
+ href: "#",
409
+ onClick: (e) => {
410
+ e.preventDefault(), b();
411
+ },
412
+ className: j.link,
413
+ style: {
414
+ color: "var(--color-brand-fg)",
415
+ fontSize: 16,
416
+ lineHeight: "24px"
417
+ },
418
+ children: "Change photo"
419
+ }) : S),
420
+ /* @__PURE__ */ i("input", {
421
+ ref: p,
422
+ type: "file",
423
+ accept: o,
424
+ className: j.input,
425
+ onChange: (e) => {
426
+ let t = e.target.files?.[0];
427
+ t && (u?.(t), m || g(URL.createObjectURL(t))), e.target.value = "";
428
+ }
429
+ })
430
+ ]
431
+ });
432
+ };
433
+ //#endregion
434
+ //#region src/lib/useThemeTick.ts
435
+ function Me() {
436
+ let [e, r] = n(0);
437
+ return t(() => {
438
+ if (typeof document > "u") return;
439
+ let e = new MutationObserver(() => r((e) => e + 1));
440
+ return e.observe(document.documentElement, {
441
+ attributes: !0,
442
+ attributeFilter: ["class"]
443
+ }), () => e.disconnect();
444
+ }, []), e;
445
+ }
446
+ var M = {
447
+ balance: "_balance_kaxp5_1",
448
+ "balance--progress": "_balance--progress_kaxp5_8",
449
+ content: "_content_kaxp5_17",
450
+ labelRow: "_labelRow_kaxp5_33",
451
+ label: "_label_kaxp5_33",
452
+ hideToggle: "_hideToggle_kaxp5_50",
453
+ value: "_value_kaxp5_71",
454
+ "value--hidden": "_value--hidden_kaxp5_83",
455
+ "value--glitching": "_value--glitching_kaxp5_90",
456
+ "balance-glitch": "_balance-glitch_kaxp5_1",
457
+ changeRow: "_changeRow_kaxp5_101",
458
+ trendIcon__up: "_trendIcon__up_kaxp5_108",
459
+ trendIcon__down: "_trendIcon__down_kaxp5_109",
460
+ changeValue__up: "_changeValue__up_kaxp5_110",
461
+ changeValue__down: "_changeValue__down_kaxp5_117",
462
+ changeLabel: "_changeLabel_kaxp5_124",
463
+ ringCard: "_ringCard_kaxp5_132"
464
+ }, Ne = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Pe = 8, Fe = 6, Ie = 90, Le = (e) => {
465
+ let t = Math.min(e, Pe);
466
+ return Array.from({ length: t }, () => Ne[Math.floor(Math.random() * 36)]).join("");
467
+ }, Re = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, ze = ({ progress: e }) => {
468
+ Me();
469
+ let t = Re("--color-chart-1") ?? "#ff4700", n = Re("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
470
+ return /* @__PURE__ */ i("div", {
471
+ className: M.ringCard,
472
+ children: /* @__PURE__ */ i(fe, {
473
+ width: 64,
474
+ height: 64,
475
+ children: /* @__PURE__ */ a(de, {
476
+ data: r,
477
+ startAngle: 90,
478
+ endAngle: -270,
479
+ innerRadius: "72%",
480
+ outerRadius: "100%",
481
+ barSize: 10,
482
+ children: [/* @__PURE__ */ i(le, {
483
+ type: "number",
484
+ domain: [0, 100],
485
+ tick: !1,
486
+ axisLine: !1
487
+ }), /* @__PURE__ */ i(ue, {
488
+ dataKey: "value",
489
+ cornerRadius: 5,
490
+ fill: t,
491
+ background: { fill: n },
492
+ isAnimationActive: !1
493
+ })]
494
+ })
495
+ })
496
+ });
497
+ }, Be = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
498
+ let u = s !== void 0, [d, f] = e.useState(!1), p = u ? s : d, m = o !== void 0, h = r?.direction ?? "up", g = h === "up" ? oe : ae, y = () => {
499
+ let e = !p;
500
+ c?.(e), u || f(e);
501
+ }, [b, x] = e.useState(!1), [S, C] = e.useState(0), w = e.useRef(!1);
502
+ e.useEffect(() => {
503
+ if (p && !w.current) {
504
+ x(!0);
505
+ let e = 0, t = setInterval(() => {
506
+ e += 1, C((e) => e + 1), e >= Fe && (clearInterval(t), x(!1));
507
+ }, Ie);
508
+ return w.current = !0, () => clearInterval(t);
509
+ }
510
+ w.current = p;
511
+ }, [p]);
512
+ let T = e.useMemo(() => Le(n.length), [n, S]), E = e.useMemo(() => r ? Le(r.value.length) : "", [r?.value, S]), ee = /* @__PURE__ */ a("div", {
513
+ className: M.content,
514
+ children: [
515
+ /* @__PURE__ */ a("div", {
516
+ className: M.labelRow,
517
+ children: [/* @__PURE__ */ i("p", {
518
+ className: M.label,
519
+ children: t
520
+ }), /* @__PURE__ */ i("button", {
521
+ type: "button",
522
+ className: M.hideToggle,
523
+ "aria-label": p ? "Show balance" : "Hide balance",
524
+ onClick: y,
525
+ children: i(p ? v : _, {
526
+ size: 16,
527
+ strokeWidth: D(16)
528
+ })
529
+ })]
530
+ }),
531
+ /* @__PURE__ */ i("p", {
532
+ className: [
533
+ M.value,
534
+ p ? M["value--hidden"] : "",
535
+ b ? M["value--glitching"] : ""
536
+ ].filter(Boolean).join(" "),
537
+ children: p ? T : n
538
+ }),
539
+ r && /* @__PURE__ */ a("div", {
540
+ className: M.changeRow,
541
+ children: [
542
+ /* @__PURE__ */ i(g, {
543
+ size: 24,
544
+ strokeWidth: 1.5,
545
+ className: h === "up" ? M.trendIcon__up : M.trendIcon__down
546
+ }),
547
+ /* @__PURE__ */ i("span", {
548
+ className: [h === "up" ? M.changeValue__up : M.changeValue__down, b ? M["value--glitching"] : ""].filter(Boolean).join(" "),
549
+ children: p ? E : r.value
550
+ }),
551
+ /* @__PURE__ */ i("span", {
552
+ className: M.changeLabel,
553
+ children: r.label ?? "this month"
554
+ })
555
+ ]
556
+ })
557
+ ]
558
+ });
559
+ return /* @__PURE__ */ a("div", {
560
+ className: [
561
+ M.balance,
562
+ m ? M["balance--progress"] : "",
563
+ l ?? ""
564
+ ].filter(Boolean).join(" "),
565
+ children: [m && /* @__PURE__ */ i(ze, { progress: o }), ee]
566
+ });
567
+ }, Ve = {
568
+ progress: "_progress_1qaz4_11",
569
+ "progress--sm": "_progress--sm_1qaz4_20",
570
+ "progress--md": "_progress--md_1qaz4_21",
571
+ "progress--lg": "_progress--lg_1qaz4_22",
572
+ progress__fill: "_progress__fill_1qaz4_25",
573
+ "progress__fill--indeterminate": "_progress__fill--indeterminate_1qaz4_33",
574
+ "progress-scan": "_progress-scan_1qaz4_1"
575
+ }, He = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
576
+ let a = e === void 0, o = Math.min(100, Math.max(0, e ?? 0));
577
+ return /* @__PURE__ */ i("div", {
578
+ role: "progressbar",
579
+ "aria-label": n,
580
+ "aria-valuenow": a ? void 0 : o,
581
+ "aria-valuemin": 0,
582
+ "aria-valuemax": 100,
583
+ className: [
584
+ Ve.progress,
585
+ Ve[`progress--${t}`],
586
+ r ?? ""
587
+ ].filter(Boolean).join(" "),
588
+ children: /* @__PURE__ */ i("div", {
589
+ className: [Ve.progress__fill, a ? Ve["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
590
+ style: a ? void 0 : { width: `${o}%` }
591
+ })
592
+ });
593
+ }, Ue = {
594
+ "divider--horizontal": "_divider--horizontal_nem37_4",
595
+ "divider--labeled": "_divider--labeled_nem37_13",
596
+ "divider--vertical": "_divider--vertical_nem37_27",
597
+ divider__label: "_divider__label_nem37_38"
598
+ }, We = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
599
+ role: "separator",
600
+ "aria-orientation": e,
601
+ className: [
602
+ Ue.divider,
603
+ Ue[`divider--${e}`],
604
+ t ? Ue["divider--labeled"] : "",
605
+ n ?? ""
606
+ ].filter(Boolean).join(" "),
607
+ children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
608
+ className: Ue.divider__label,
609
+ children: t
610
+ })
611
+ }), Ge = {
612
+ backdrop: "_backdrop_7uc99_1",
613
+ card: "_card_7uc99_12",
614
+ header: "_header_7uc99_32",
615
+ titleGroup: "_titleGroup_7uc99_40",
616
+ iconWrap: "_iconWrap_7uc99_47",
617
+ icon: "_icon_7uc99_47",
618
+ title: "_title_7uc99_40",
619
+ description: "_description_7uc99_73",
620
+ footer: "_footer_7uc99_81",
621
+ "footer--between": "_footer--between_7uc99_92"
622
+ }, Ke = ({ open: t, onClose: n, title: o, description: s, variant: c = "default", icon: l, cancelLabel: u = "Cancel", confirmLabel: d, onCancel: f, onConfirm: p, confirmLoading: m, closeOnEscape: h = !0, closeOnBackdropClick: g = !0, children: _, hideHeader: v = !1, hideFooterDivider: y = !1, footerJustify: b = "end", className: x }) => {
623
+ let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), [E, ee] = e.useState(!1);
624
+ return e.useEffect(() => {
625
+ t && ee(!!T.current?.closest(".dark"));
626
+ }, [t]), e.useEffect(() => {
627
+ if (!t) return;
628
+ let e = (e) => {
629
+ if (h && e.key === "Escape") {
630
+ n();
631
+ return;
632
+ }
633
+ if (e.key !== "Tab" || !C.current) return;
634
+ let t = C.current.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
635
+ if (t.length === 0) return;
636
+ let r = t[0], i = t[t.length - 1];
637
+ e.shiftKey && document.activeElement === r ? (e.preventDefault(), i.focus()) : !e.shiftKey && document.activeElement === i && (e.preventDefault(), r.focus());
638
+ };
639
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
640
+ }, [
641
+ t,
642
+ h,
643
+ n
644
+ ]), e.useEffect(() => {
645
+ if (!t) return;
646
+ w.current = document.activeElement;
647
+ let e = document.body.style.overflow;
648
+ return document.body.style.overflow = "hidden", C.current?.focus(), () => {
649
+ document.body.style.overflow = e, w.current?.focus();
650
+ };
651
+ }, [t]), /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
652
+ ref: T,
653
+ style: { display: "none" },
654
+ "aria-hidden": "true"
655
+ }), t && me(/* @__PURE__ */ i("div", {
656
+ className: [Ge.backdrop, E ? "dark" : ""].filter(Boolean).join(" "),
657
+ onMouseDown: (e) => {
658
+ g && e.target === e.currentTarget && n();
659
+ },
660
+ children: /* @__PURE__ */ a("div", {
661
+ ref: C,
662
+ role: "alertdialog",
663
+ "aria-modal": "true",
664
+ "aria-labelledby": v ? void 0 : "modal-title",
665
+ "aria-label": v ? o : void 0,
666
+ tabIndex: -1,
667
+ className: [Ge.card, x ?? ""].filter(Boolean).join(" "),
668
+ children: [
669
+ !v && /* @__PURE__ */ a("div", {
670
+ className: Ge.header,
671
+ children: [/* @__PURE__ */ a("div", {
672
+ className: Ge.titleGroup,
673
+ children: [S && /* @__PURE__ */ i("span", {
674
+ className: Ge.iconWrap,
675
+ "aria-hidden": "true",
676
+ children: l ?? /* @__PURE__ */ i(se, {
677
+ size: 24,
678
+ strokeWidth: D(24),
679
+ className: Ge.icon
680
+ })
681
+ }), /* @__PURE__ */ i("p", {
682
+ id: "modal-title",
683
+ className: Ge.title,
684
+ children: o
685
+ })]
686
+ }), /* @__PURE__ */ i(Ae, {
687
+ icon: ce,
688
+ variant: "ghost",
689
+ size: "lg",
690
+ "aria-label": "Close",
691
+ onClick: n
692
+ })]
693
+ }),
694
+ s && /* @__PURE__ */ i("p", {
695
+ className: Ge.description,
696
+ children: s
697
+ }),
698
+ _,
699
+ !y && /* @__PURE__ */ i(We, {}),
700
+ /* @__PURE__ */ a("div", {
701
+ className: [Ge.footer, b === "between" ? Ge["footer--between"] : ""].filter(Boolean).join(" "),
702
+ children: [/* @__PURE__ */ i(A, {
703
+ variant: "secondary",
704
+ onClick: () => (f ?? n)(),
705
+ style: { borderColor: "transparent" },
706
+ children: u
707
+ }), /* @__PURE__ */ i(A, {
708
+ variant: S ? "destructive" : "primary",
709
+ onClick: p,
710
+ loading: m,
711
+ children: d ?? (S ? "Delete" : "Confirm")
712
+ })]
713
+ })
714
+ ]
715
+ })
716
+ }), document.body)] });
717
+ }, N = {
718
+ row: "_row_88l3n_2",
719
+ "row--unread": "_row--unread_88l3n_12",
720
+ iconWrapSurface: "_iconWrapSurface_88l3n_17",
721
+ iconWrapCanvas: "_iconWrapCanvas_88l3n_18",
722
+ content: "_content_88l3n_31",
723
+ titleBold: "_titleBold_88l3n_39",
724
+ titleMuted: "_titleMuted_88l3n_46",
725
+ timestamp: "_timestamp_88l3n_53",
726
+ dot: "_dot_88l3n_62",
727
+ card: "_card_88l3n_71",
728
+ cardTop: "_cardTop_88l3n_87",
729
+ description: "_description_88l3n_94",
730
+ actions: "_actions_88l3n_102"
731
+ }, qe = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
732
+ let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
733
+ size: 24,
734
+ strokeWidth: D(24)
735
+ });
736
+ return p ? /* @__PURE__ */ a("div", {
737
+ className: [N.card, f ?? ""].filter(Boolean).join(" "),
738
+ children: [/* @__PURE__ */ a("div", {
739
+ className: N.cardTop,
740
+ children: [
741
+ /* @__PURE__ */ i("span", {
742
+ className: N.iconWrapCanvas,
743
+ "aria-hidden": "true",
744
+ children: h
745
+ }),
746
+ /* @__PURE__ */ a("div", {
747
+ className: N.content,
748
+ children: [/* @__PURE__ */ i("p", {
749
+ className: N.titleBold,
750
+ children: t
751
+ }), /* @__PURE__ */ i("p", {
752
+ className: N.description,
753
+ children: s
754
+ })]
755
+ }),
756
+ c && /* @__PURE__ */ i(Ae, {
757
+ icon: ce,
758
+ variant: "ghost",
759
+ size: "sm",
760
+ "aria-label": "Close",
761
+ onClick: c
762
+ })
763
+ ]
764
+ }), /* @__PURE__ */ a("div", {
765
+ className: N.actions,
766
+ children: [c && /* @__PURE__ */ i(A, {
767
+ variant: "ghost",
768
+ size: "sm",
769
+ onClick: c,
770
+ children: l
771
+ }), u && /* @__PURE__ */ i(A, {
772
+ variant: "secondary",
773
+ size: "sm",
774
+ onClick: d,
775
+ style: { borderColor: "transparent" },
776
+ children: u
777
+ })]
778
+ })]
779
+ }) : /* @__PURE__ */ a("div", {
780
+ className: [N.row, m ? N["row--unread"] : ""].filter(Boolean).join(" "),
781
+ children: [
782
+ /* @__PURE__ */ i("span", {
783
+ className: N.iconWrapSurface,
784
+ "aria-hidden": "true",
785
+ children: h
786
+ }),
787
+ /* @__PURE__ */ a("div", {
788
+ className: N.content,
789
+ children: [/* @__PURE__ */ i("p", {
790
+ className: m ? N.titleBold : N.titleMuted,
791
+ children: t
792
+ }), n && /* @__PURE__ */ i("p", {
793
+ className: N.timestamp,
794
+ children: n
795
+ })]
796
+ }),
797
+ m && /* @__PURE__ */ i("span", {
798
+ className: N.dot,
799
+ "aria-hidden": "true"
800
+ })
801
+ ]
802
+ });
803
+ }, Je = {
804
+ stat: "_stat_krs8c_1",
805
+ labelRow: "_labelRow_krs8c_10",
806
+ label: "_label_krs8c_10",
807
+ value: "_value_krs8c_27"
808
+ }, Ye = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
809
+ className: [Je.stat, r ?? ""].filter(Boolean).join(" "),
810
+ children: [/* @__PURE__ */ a("div", {
811
+ className: Je.labelRow,
812
+ children: [/* @__PURE__ */ i("p", {
813
+ className: Je.label,
814
+ children: e
815
+ }), /* @__PURE__ */ i("p", {
816
+ className: Je.value,
817
+ children: t
818
+ })]
819
+ }), /* @__PURE__ */ i(He, {
820
+ value: n,
821
+ size: "lg",
822
+ label: e
823
+ })]
824
+ }), Xe = {
825
+ balance: "_balance_5gcu5_1",
826
+ label: "_label_5gcu5_10",
827
+ amountRow: "_amountRow_5gcu5_19",
828
+ amount: "_amount_5gcu5_19",
829
+ limit: "_limit_5gcu5_34",
830
+ track: "_track_5gcu5_43",
831
+ fill: "_fill_5gcu5_50",
832
+ "fill--over": "_fill--over_5gcu5_57",
833
+ footer: "_footer_5gcu5_61"
834
+ }, Ze = (e) => e.toLocaleString("en-US", {
835
+ style: "currency",
836
+ currency: "USD"
837
+ }), Qe = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Ze, className: o }) => {
838
+ let s = t > n, c = s ? 100 : n > 0 ? t / n * 100 : 0, l = s ? `${r(t - n)} over your limit` : `${r(n - t)} remaining`;
839
+ return /* @__PURE__ */ a("div", {
840
+ className: [Xe.balance, o ?? ""].filter(Boolean).join(" "),
841
+ children: [
842
+ /* @__PURE__ */ i("p", {
843
+ className: Xe.label,
844
+ children: e
845
+ }),
846
+ /* @__PURE__ */ a("div", {
847
+ className: Xe.amountRow,
848
+ children: [/* @__PURE__ */ i("p", {
849
+ className: Xe.amount,
850
+ children: r(t)
851
+ }), /* @__PURE__ */ a("p", {
852
+ className: Xe.limit,
853
+ children: [
854
+ "of ",
855
+ r(n),
856
+ " limit"
857
+ ]
858
+ })]
859
+ }),
860
+ /* @__PURE__ */ i("div", {
861
+ className: Xe.track,
862
+ role: "progressbar",
863
+ "aria-label": e,
864
+ "aria-valuenow": Math.round(c),
865
+ "aria-valuemin": 0,
866
+ "aria-valuemax": 100,
867
+ children: /* @__PURE__ */ i("div", {
868
+ className: [Xe.fill, s ? Xe["fill--over"] : ""].filter(Boolean).join(" "),
869
+ style: { width: `${c}%` }
870
+ })
871
+ }),
872
+ /* @__PURE__ */ i("p", {
873
+ className: Xe.footer,
874
+ children: l
875
+ })
876
+ ]
877
+ });
878
+ }, $e = {
879
+ badge: "_badge_a5a38_6",
880
+ "badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
881
+ "badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
882
+ "badge--accent-subtle": "_badge--accent-subtle_a5a38_24",
883
+ "badge--accent-solid": "_badge--accent-solid_a5a38_25",
884
+ "badge--success-subtle": "_badge--success-subtle_a5a38_28",
885
+ "badge--success-solid": "_badge--success-solid_a5a38_29",
886
+ "badge--warning-subtle": "_badge--warning-subtle_a5a38_32",
887
+ "badge--warning-solid": "_badge--warning-solid_a5a38_33",
888
+ "badge--danger-subtle": "_badge--danger-subtle_a5a38_36",
889
+ "badge--danger-solid": "_badge--danger-solid_a5a38_37",
890
+ "badge--info-subtle": "_badge--info-subtle_a5a38_40",
891
+ "badge--info-solid": "_badge--info-solid_a5a38_41",
892
+ badge__icon: "_badge__icon_a5a38_44",
893
+ badge__label: "_badge__label_a5a38_45"
894
+ }, et = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
895
+ className: [
896
+ $e.badge,
897
+ $e[`badge--${e}-${t}`],
898
+ s ?? ""
899
+ ].filter(Boolean).join(" "),
900
+ children: [
901
+ n && /* @__PURE__ */ i("span", {
902
+ className: $e.badge__icon,
903
+ "aria-hidden": "true",
904
+ children: n
905
+ }),
906
+ /* @__PURE__ */ i("span", {
907
+ className: $e.badge__label,
908
+ children: o
909
+ }),
910
+ r && /* @__PURE__ */ i("span", {
911
+ className: $e.badge__icon,
912
+ "aria-hidden": "true",
913
+ children: r
914
+ })
915
+ ]
916
+ }), P = {
917
+ stepper: "_stepper_1w3rz_1",
918
+ stepBtn: "_stepBtn_1w3rz_10",
919
+ stepDivider: "_stepDivider_1w3rz_27",
920
+ stepValue: "_stepValue_1w3rz_39",
921
+ stepInput: "_stepInput_1w3rz_61",
922
+ stepInputResting: "_stepInputResting_1w3rz_75",
923
+ rollOverlay: "_rollOverlay_1w3rz_58",
924
+ rollOverlayHidden: "_rollOverlayHidden_1w3rz_92",
925
+ roll: "_roll_1w3rz_35",
926
+ rollNum: "_rollNum_1w3rz_35",
927
+ rollOutUp: "_rollOutUp_1w3rz_130",
928
+ "roll-out-up": "_roll-out-up_1w3rz_1",
929
+ rollInUp: "_rollInUp_1w3rz_131",
930
+ "roll-in-up": "_roll-in-up_1w3rz_1",
931
+ rollOutDown: "_rollOutDown_1w3rz_132",
932
+ "roll-out-down": "_roll-out-down_1w3rz_1",
933
+ rollInDown: "_rollInDown_1w3rz_133",
934
+ "roll-in-down": "_roll-in-down_1w3rz_1"
935
+ }, tt = ({ value: t }) => {
936
+ let n = e.useRef(t), [r, o] = e.useState(null);
937
+ return t !== n.current && (o({
938
+ value: n.current,
939
+ direction: t > n.current ? "up" : "down"
940
+ }), n.current = t), e.useEffect(() => {
941
+ if (!r) return;
942
+ let e = setTimeout(() => o(null), 260);
943
+ return () => clearTimeout(e);
944
+ }, [r]), /* @__PURE__ */ a("span", {
945
+ className: P.roll,
946
+ children: [r && /* @__PURE__ */ i("span", {
947
+ className: [P.rollNum, r.direction === "up" ? P.rollOutUp : P.rollOutDown].join(" "),
948
+ "aria-hidden": "true",
949
+ children: r.value
950
+ }, `out-${r.value}`), /* @__PURE__ */ i("span", {
951
+ className: [P.rollNum, r ? r.direction === "up" ? P.rollInUp : P.rollInDown : ""].filter(Boolean).join(" "),
952
+ onAnimationEnd: () => o(null),
953
+ children: t
954
+ }, `in-${t}`)]
955
+ });
956
+ }, nt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
957
+ let l = t > r, u = o === void 0 || t < o, d = e.useRef(null), [f, p] = e.useState(!1), [m, h] = e.useState(String(t)), g = (e) => {
958
+ let t = e;
959
+ return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
960
+ };
961
+ return /* @__PURE__ */ a("div", {
962
+ className: [P.stepper, c ?? ""].filter(Boolean).join(" "),
963
+ role: "group",
964
+ "aria-label": s,
965
+ children: [
966
+ /* @__PURE__ */ i("button", {
967
+ type: "button",
968
+ className: P.stepBtn,
969
+ disabled: !l,
970
+ onClick: () => n?.(Math.max(r, t - 1)),
971
+ "aria-label": "Decrease quantity",
972
+ children: /* @__PURE__ */ i(S, {
973
+ size: 14,
974
+ strokeWidth: D(14)
975
+ })
976
+ }),
977
+ /* @__PURE__ */ i("span", {
978
+ className: P.stepDivider,
979
+ "aria-hidden": "true"
980
+ }),
981
+ /* @__PURE__ */ a("span", {
982
+ className: P.stepValue,
983
+ children: [/* @__PURE__ */ i("input", {
984
+ ref: d,
985
+ type: "text",
986
+ inputMode: "numeric",
987
+ size: Math.max((f ? m : String(t)).length, 1),
988
+ className: [P.stepInput, f ? "" : P.stepInputResting].filter(Boolean).join(" "),
989
+ value: f ? m : String(t),
990
+ "aria-label": s,
991
+ onFocus: (e) => {
992
+ h(String(t)), p(!0), e.target.select();
993
+ },
994
+ onChange: (e) => h(e.target.value.replace(/\D/g, "")),
995
+ onBlur: () => {
996
+ p(!1);
997
+ let e = Number.parseInt(m, 10);
998
+ if (!Number.isNaN(e)) {
999
+ let r = g(e);
1000
+ r !== t && n?.(r);
1001
+ }
1002
+ },
1003
+ onKeyDown: (e) => {
1004
+ e.key === "Enter" && (e.preventDefault(), d.current?.blur()), e.key === "Escape" && (h(String(t)), d.current?.blur());
1005
+ }
1006
+ }), /* @__PURE__ */ i("span", {
1007
+ className: [P.rollOverlay, f ? P.rollOverlayHidden : ""].filter(Boolean).join(" "),
1008
+ "aria-hidden": "true",
1009
+ children: /* @__PURE__ */ i(tt, { value: t })
1010
+ })]
1011
+ }),
1012
+ /* @__PURE__ */ i("span", {
1013
+ className: P.stepDivider,
1014
+ "aria-hidden": "true"
1015
+ }),
1016
+ /* @__PURE__ */ i("button", {
1017
+ type: "button",
1018
+ className: P.stepBtn,
1019
+ disabled: !u,
1020
+ onClick: () => n?.(o === void 0 ? t + 1 : Math.min(o, t + 1)),
1021
+ "aria-label": "Increase quantity",
1022
+ children: /* @__PURE__ */ i(E, {
1023
+ size: 14,
1024
+ strokeWidth: D(14)
1025
+ })
1026
+ })
1027
+ ]
1028
+ });
1029
+ }, F = {
1030
+ item: "_item_15jww_1",
1031
+ thumb: "_thumb_15jww_11",
1032
+ info: "_info_15jww_19",
1033
+ name: "_name_15jww_28",
1034
+ variant: "_variant_15jww_40",
1035
+ right: "_right_15jww_50",
1036
+ price: "_price_15jww_58",
1037
+ priceRow: "_priceRow_15jww_67",
1038
+ priceOriginal: "_priceOriginal_15jww_75",
1039
+ priceSale: "_priceSale_15jww_80"
1040
+ }, rt = (e) => e.toLocaleString("en-US", {
1041
+ style: "currency",
1042
+ currency: "USD"
1043
+ }), it = ({ image: e, imageAlt: t, name: n, variant: r, price: o, compareAtPrice: s, quantity: c, onQuantityChange: l, minQuantity: u = 1, maxQuantity: d, onRemove: f, removeLabel: p = "Remove item", formatPrice: m = rt, className: h }) => {
1044
+ let g = s !== void 0;
1045
+ return /* @__PURE__ */ a("div", {
1046
+ className: [F.item, h ?? ""].filter(Boolean).join(" "),
1047
+ children: [
1048
+ /* @__PURE__ */ i("img", {
1049
+ src: e,
1050
+ alt: t ?? n,
1051
+ className: F.thumb
1052
+ }),
1053
+ /* @__PURE__ */ a("div", {
1054
+ className: F.info,
1055
+ children: [
1056
+ /* @__PURE__ */ i("p", {
1057
+ className: F.name,
1058
+ children: n
1059
+ }),
1060
+ r && /* @__PURE__ */ i("p", {
1061
+ className: F.variant,
1062
+ children: r
1063
+ }),
1064
+ /* @__PURE__ */ i(nt, {
1065
+ quantity: c,
1066
+ onQuantityChange: l,
1067
+ min: u,
1068
+ max: d,
1069
+ label: `Quantity for ${n}`
1070
+ })
1071
+ ]
1072
+ }),
1073
+ /* @__PURE__ */ a("div", {
1074
+ className: F.right,
1075
+ children: [g ? /* @__PURE__ */ a("div", {
1076
+ className: F.priceRow,
1077
+ children: [/* @__PURE__ */ i("span", {
1078
+ className: F.priceOriginal,
1079
+ children: m(s)
1080
+ }), /* @__PURE__ */ i("span", {
1081
+ className: F.priceSale,
1082
+ children: m(o)
1083
+ })]
1084
+ }) : /* @__PURE__ */ i("p", {
1085
+ className: F.price,
1086
+ children: m(o)
1087
+ }), /* @__PURE__ */ i(Ae, {
1088
+ icon: S,
1089
+ variant: "outline",
1090
+ size: "sm",
1091
+ "aria-label": p,
1092
+ onClick: f
1093
+ })]
1094
+ })
1095
+ ]
1096
+ });
1097
+ }, I = {
1098
+ steps: "_steps_t53um_1",
1099
+ step: "_step_t53um_1",
1100
+ connector: "_connector_t53um_16",
1101
+ circle: "_circle_t53um_23",
1102
+ circleCompleted: "_circleCompleted_t53um_34",
1103
+ circleActive: "_circleActive_t53um_38",
1104
+ circleUpcoming: "_circleUpcoming_t53um_43",
1105
+ label: "_label_t53um_49",
1106
+ labelActive: "_labelActive_t53um_56",
1107
+ labelUpcoming: "_labelUpcoming_t53um_59"
1108
+ }, at = [
1109
+ "Cart",
1110
+ "Shipping",
1111
+ "Payment",
1112
+ "Confirmation"
1113
+ ], ot = ({ steps: t = at, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1114
+ className: [I.steps, r ?? ""].filter(Boolean).join(" "),
1115
+ role: "list",
1116
+ children: t.map((r, o) => {
1117
+ let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
1118
+ return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
1119
+ className: I.step,
1120
+ role: "listitem",
1121
+ "aria-current": s === "active" ? "step" : void 0,
1122
+ children: [/* @__PURE__ */ i("span", {
1123
+ className: [
1124
+ I.circle,
1125
+ s === "completed" ? I.circleCompleted : "",
1126
+ s === "active" ? I.circleActive : "",
1127
+ s === "upcoming" ? I.circleUpcoming : ""
1128
+ ].filter(Boolean).join(" "),
1129
+ "aria-hidden": "true",
1130
+ children: /* @__PURE__ */ i(l, {
1131
+ size: 14,
1132
+ strokeWidth: D(14)
1133
+ })
1134
+ }), /* @__PURE__ */ i("span", {
1135
+ className: [
1136
+ I.label,
1137
+ s === "active" ? I.labelActive : "",
1138
+ s === "upcoming" ? I.labelUpcoming : ""
1139
+ ].filter(Boolean).join(" "),
1140
+ children: r
1141
+ })]
1142
+ }), !c && /* @__PURE__ */ i("span", {
1143
+ className: I.connector,
1144
+ "aria-hidden": "true"
1145
+ })] }, r);
1146
+ })
1147
+ }), st = "#fafaf9", ct = "#141414", lt = (e, t, n) => {
1148
+ let r = (e) => {
1149
+ let t = e / 255;
1150
+ return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
1151
+ };
1152
+ return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
1153
+ }, ut = (e, t) => {
1154
+ let n = Math.max(e, t), r = Math.min(e, t);
1155
+ return (n + .05) / (r + .05);
1156
+ }, dt = null, ft = (e) => {
1157
+ if (typeof document > "u") return st;
1158
+ dt ??= document.createElement("canvas"), dt.width = 1, dt.height = 1;
1159
+ let t = dt.getContext("2d", { willReadFrequently: !0 });
1160
+ if (!t) return st;
1161
+ t.clearRect(0, 0, 1, 1), t.fillStyle = e, t.fillRect(0, 0, 1, 1);
1162
+ let [n, r, i] = t.getImageData(0, 0, 1, 1).data, a = lt(n, r, i), o = ut(a, lt(20, 20, 20));
1163
+ return ut(a, lt(250, 250, 249)) >= o ? st : ct;
1164
+ }, pt = {
1165
+ swatch: "_swatch_1i3c3_1",
1166
+ circle: "_circle_1i3c3_22",
1167
+ circleUnavailable: "_circleUnavailable_1i3c3_32",
1168
+ ring: "_ring_1i3c3_39",
1169
+ check: "_check_1i3c3_55",
1170
+ strike: "_strike_1i3c3_66"
1171
+ }, mt = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
1172
+ let u = e.useMemo(() => ft(t), [t]);
1173
+ return /* @__PURE__ */ a("button", {
1174
+ type: "button",
1175
+ className: [pt.swatch, c ?? ""].filter(Boolean).join(" "),
1176
+ style: { "--swatch-color": t },
1177
+ disabled: !o,
1178
+ "aria-pressed": o ? r : void 0,
1179
+ "aria-label": o ? n : `${n} (out of stock)`,
1180
+ onClick: s,
1181
+ children: [
1182
+ r && o && /* @__PURE__ */ i("span", {
1183
+ className: pt.ring,
1184
+ "aria-hidden": "true"
1185
+ }),
1186
+ /* @__PURE__ */ i("span", {
1187
+ className: [pt.circle, o ? "" : pt.circleUnavailable].filter(Boolean).join(" "),
1188
+ "aria-hidden": "true"
1189
+ }),
1190
+ r && o && /* @__PURE__ */ i(l, {
1191
+ size: 14,
1192
+ strokeWidth: D(14),
1193
+ className: pt.check,
1194
+ style: { color: u },
1195
+ "aria-hidden": "true"
1196
+ }),
1197
+ !o && /* @__PURE__ */ i("span", {
1198
+ className: pt.strike,
1199
+ style: { background: u },
1200
+ "aria-hidden": "true"
1201
+ })
1202
+ ]
1203
+ });
1204
+ }, ht = {
1205
+ row: "_row_1r4ef_1",
1206
+ original: "_original_1r4ef_8",
1207
+ price: "_price_1r4ef_17",
1208
+ priceSale: "_priceSale_1r4ef_24"
1209
+ }, gt = (e) => e.toLocaleString("en-US", {
1210
+ style: "currency",
1211
+ currency: "USD"
1212
+ }), _t = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = gt, className: o }) => {
1213
+ let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
1214
+ return /* @__PURE__ */ a("div", {
1215
+ className: [ht.row, o ?? ""].filter(Boolean).join(" "),
1216
+ children: [
1217
+ s && /* @__PURE__ */ i("span", {
1218
+ className: ht.original,
1219
+ children: r(t)
1220
+ }),
1221
+ /* @__PURE__ */ i("span", {
1222
+ className: [ht.price, s ? ht.priceSale : ""].filter(Boolean).join(" "),
1223
+ children: r(e)
1224
+ }),
1225
+ s && n && /* @__PURE__ */ a(et, {
1226
+ variant: "danger",
1227
+ emphasis: "solid",
1228
+ children: [
1229
+ "Save ",
1230
+ c,
1231
+ "%"
1232
+ ]
1233
+ })
1234
+ ]
1235
+ });
1236
+ }, vt = {
1237
+ button: "_button_1mp7q_1",
1238
+ icon: "_icon_1mp7q_24",
1239
+ iconSaved: "_iconSaved_1mp7q_27",
1240
+ bounce: "_bounce_1mp7q_40",
1241
+ "wishlist-bounce": "_wishlist-bounce_1mp7q_1"
1242
+ }, yt = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
1243
+ let [o, s] = e.useState(!1);
1244
+ return /* @__PURE__ */ i("button", {
1245
+ type: "button",
1246
+ className: [vt.button, a ?? ""].filter(Boolean).join(" "),
1247
+ "aria-pressed": t,
1248
+ "aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
1249
+ onClick: () => {
1250
+ t || s(!0), n?.(!t);
1251
+ },
1252
+ children: /* @__PURE__ */ i(b, {
1253
+ size: 16,
1254
+ strokeWidth: D(16),
1255
+ className: [t ? vt.iconSaved : vt.icon, o ? vt.bounce : ""].filter(Boolean).join(" "),
1256
+ fill: t ? "currentColor" : "none",
1257
+ onAnimationEnd: () => s(!1)
1258
+ })
1259
+ });
1260
+ }, L = {
1261
+ card: "_card_jlv97_1",
1262
+ imageWrap: "_imageWrap_jlv97_16",
1263
+ image: "_image_jlv97_16",
1264
+ imageDimmed: "_imageDimmed_jlv97_32",
1265
+ saleBadge: "_saleBadge_jlv97_36",
1266
+ wishlistBtn: "_wishlistBtn_jlv97_42",
1267
+ outOfStockLabel: "_outOfStockLabel_jlv97_48",
1268
+ body: "_body_jlv97_61",
1269
+ rating: "_rating_jlv97_69",
1270
+ starFilled: "_starFilled_jlv97_73",
1271
+ starEmpty: "_starEmpty_jlv97_74",
1272
+ titleRow: "_titleRow_jlv97_76",
1273
+ name: "_name_jlv97_83",
1274
+ priceRow: "_priceRow_jlv97_96",
1275
+ priceOriginal: "_priceOriginal_jlv97_102",
1276
+ price: "_price_jlv97_96",
1277
+ description: "_description_jlv97_118",
1278
+ swatches: "_swatches_jlv97_131",
1279
+ addButton: "_addButton_jlv97_136"
1280
+ }, bt = (e) => e.toLocaleString("en-US", {
1281
+ style: "currency",
1282
+ currency: "USD"
1283
+ }), xt = ({ image: e, imageAlt: t, name: n, description: r, price: o, compareAtPrice: s, rating: c, reviewCount: l, colors: u = [], onColorSelect: d, inStock: f = !0, wishlisted: p = !1, onWishlistToggle: m, onAddItem: h, addItemLabel: g = "Add Item", formatPrice: _ = bt, className: v }) => {
1284
+ let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
1285
+ return /* @__PURE__ */ a("div", {
1286
+ className: [L.card, v ?? ""].filter(Boolean).join(" "),
1287
+ children: [/* @__PURE__ */ a("div", {
1288
+ className: L.imageWrap,
1289
+ children: [
1290
+ /* @__PURE__ */ i("img", {
1291
+ src: e,
1292
+ alt: t ?? n,
1293
+ className: [L.image, f ? "" : L.imageDimmed].filter(Boolean).join(" ")
1294
+ }),
1295
+ y && f && /* @__PURE__ */ a(et, {
1296
+ variant: "danger",
1297
+ emphasis: "solid",
1298
+ className: L.saleBadge,
1299
+ children: [
1300
+ "-",
1301
+ b,
1302
+ "%"
1303
+ ]
1304
+ }),
1305
+ f && /* @__PURE__ */ i(yt, {
1306
+ saved: p,
1307
+ label: n,
1308
+ className: L.wishlistBtn,
1309
+ onToggle: m
1310
+ }),
1311
+ !f && /* @__PURE__ */ i("span", {
1312
+ className: L.outOfStockLabel,
1313
+ children: "Out of stock"
1314
+ })
1315
+ ]
1316
+ }), /* @__PURE__ */ a("div", {
1317
+ className: L.body,
1318
+ children: [
1319
+ c !== void 0 && /* @__PURE__ */ i("div", {
1320
+ className: L.rating,
1321
+ role: "img",
1322
+ "aria-label": `Rated ${c} out of 5${l ? ` (${l} reviews)` : ""}`,
1323
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(re, {
1324
+ size: 16,
1325
+ strokeWidth: D(16),
1326
+ className: t < x ? L.starFilled : L.starEmpty,
1327
+ fill: t < x ? "currentColor" : "none"
1328
+ }, t))
1329
+ }),
1330
+ /* @__PURE__ */ a("div", {
1331
+ className: L.titleRow,
1332
+ children: [/* @__PURE__ */ i("p", {
1333
+ className: L.name,
1334
+ children: n
1335
+ }), /* @__PURE__ */ a("div", {
1336
+ className: L.priceRow,
1337
+ children: [y && /* @__PURE__ */ i("span", {
1338
+ className: L.priceOriginal,
1339
+ children: _(s)
1340
+ }), /* @__PURE__ */ i("span", {
1341
+ className: L.price,
1342
+ children: _(o)
1343
+ })]
1344
+ })]
1345
+ }),
1346
+ r && /* @__PURE__ */ i("p", {
1347
+ className: L.description,
1348
+ children: r
1349
+ }),
1350
+ u.length > 0 && /* @__PURE__ */ i("div", {
1351
+ className: L.swatches,
1352
+ role: "group",
1353
+ "aria-label": "Color",
1354
+ children: u.map((e) => /* @__PURE__ */ i(mt, {
1355
+ ...e,
1356
+ onSelect: () => d?.(e.id ?? e.label)
1357
+ }, e.id ?? e.label))
1358
+ }),
1359
+ /* @__PURE__ */ i(A, {
1360
+ variant: "primary",
1361
+ size: "md",
1362
+ disabled: !f,
1363
+ className: L.addButton,
1364
+ onClick: h,
1365
+ children: f ? g : "Out of stock"
1366
+ })
1367
+ ]
1368
+ })]
1369
+ });
1370
+ }, R = {
1371
+ gallery: "_gallery_1mrk8_1",
1372
+ galleryBottom: "_galleryBottom_1mrk8_5",
1373
+ galleryLeft: "_galleryLeft_1mrk8_10",
1374
+ mainImage: "_mainImage_1mrk8_16",
1375
+ mainBottom: "_mainBottom_1mrk8_23",
1376
+ mainLeft: "_mainLeft_1mrk8_31",
1377
+ thumbs: "_thumbs_1mrk8_41",
1378
+ thumbsBottom: "_thumbsBottom_1mrk8_45",
1379
+ thumbsLeft: "_thumbsLeft_1mrk8_50",
1380
+ thumb: "_thumb_1mrk8_41",
1381
+ thumbBottom: "_thumbBottom_1mrk8_65",
1382
+ thumbLeft: "_thumbLeft_1mrk8_70",
1383
+ thumbActive: "_thumbActive_1mrk8_75",
1384
+ thumbImage: "_thumbImage_1mrk8_79"
1385
+ }, St = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
1386
+ let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
1387
+ l || d(e), s?.(e);
1388
+ }, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
1389
+ className: [R.thumbs, h ? R.thumbsLeft : R.thumbsBottom].filter(Boolean).join(" "),
1390
+ role: "tablist",
1391
+ "aria-label": "Product images",
1392
+ children: t.map((e, t) => /* @__PURE__ */ i("button", {
1393
+ type: "button",
1394
+ role: "tab",
1395
+ "aria-selected": t === f,
1396
+ "aria-label": e.alt ?? `Image ${t + 1}`,
1397
+ className: [
1398
+ R.thumb,
1399
+ h ? R.thumbLeft : R.thumbBottom,
1400
+ t === f ? R.thumbActive : ""
1401
+ ].filter(Boolean).join(" "),
1402
+ onClick: () => p(t),
1403
+ children: /* @__PURE__ */ i("img", {
1404
+ src: e.src,
1405
+ alt: "",
1406
+ className: R.thumbImage
1407
+ })
1408
+ }, e.src + t))
1409
+ });
1410
+ return /* @__PURE__ */ a("div", {
1411
+ className: [
1412
+ R.gallery,
1413
+ h ? R.galleryLeft : R.galleryBottom,
1414
+ c ?? ""
1415
+ ].filter(Boolean).join(" "),
1416
+ children: [
1417
+ !h && m && /* @__PURE__ */ i("div", {
1418
+ className: R.mainBottom,
1419
+ children: /* @__PURE__ */ i("img", {
1420
+ src: m.src,
1421
+ alt: m.alt ?? "",
1422
+ className: R.mainImage
1423
+ })
1424
+ }),
1425
+ g,
1426
+ h && m && /* @__PURE__ */ i("div", {
1427
+ className: R.mainLeft,
1428
+ children: /* @__PURE__ */ i("img", {
1429
+ src: m.src,
1430
+ alt: m.alt ?? "",
1431
+ className: R.mainImage
1432
+ })
1433
+ })
1434
+ ]
1435
+ });
1436
+ }, Ct = {
1437
+ button: "_button_1vgn5_1",
1438
+ unselected: "_unselected_1vgn5_23",
1439
+ selected: "_selected_1vgn5_32",
1440
+ unavailable: "_unavailable_1vgn5_37",
1441
+ label: "_label_1vgn5_44",
1442
+ strike: "_strike_1vgn5_55"
1443
+ }, wt = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
1444
+ type: "button",
1445
+ className: [
1446
+ Ct.button,
1447
+ n ? t ? Ct.selected : Ct.unselected : Ct.unavailable,
1448
+ o ?? ""
1449
+ ].filter(Boolean).join(" "),
1450
+ disabled: !n,
1451
+ "aria-pressed": n ? t : void 0,
1452
+ "aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
1453
+ onClick: r,
1454
+ children: [/* @__PURE__ */ i("span", {
1455
+ className: Ct.label,
1456
+ children: e
1457
+ }), !n && /* @__PURE__ */ i("span", {
1458
+ className: Ct.strike,
1459
+ "aria-hidden": "true"
1460
+ })]
1461
+ }), Tt = {
1462
+ row: "_row_1snsi_1",
1463
+ rowVertical: "_rowVertical_1snsi_8",
1464
+ stars: "_stars_1snsi_13",
1465
+ starFull: "_starFull_1snsi_19",
1466
+ starEmpty: "_starEmpty_1snsi_24",
1467
+ label: "_label_1snsi_29",
1468
+ value: "_value_1snsi_38",
1469
+ count: "_count_1snsi_43"
1470
+ }, Et = (e) => e.toLocaleString("en-US"), Dt = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Et, className: s }) => {
1471
+ let c = Math.max(0, Math.min(5, e)), l = Math.round(c * 2) / 2, u = Math.floor(l), d = l - u === .5, f = 5 - u - !!d, p = /* @__PURE__ */ a("div", {
1472
+ className: Tt.stars,
1473
+ role: "img",
1474
+ "aria-label": `${c} out of 5 stars`,
1475
+ children: [
1476
+ Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(re, {
1477
+ size: 24,
1478
+ strokeWidth: D(24),
1479
+ className: Tt.starFull,
1480
+ fill: "currentColor",
1481
+ "aria-hidden": "true"
1482
+ }, `full-${t}`)),
1483
+ d && /* @__PURE__ */ i(ie, {
1484
+ size: 24,
1485
+ strokeWidth: D(24),
1486
+ className: Tt.starFull,
1487
+ fill: "currentColor",
1488
+ "aria-hidden": "true"
1489
+ }),
1490
+ Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(re, {
1491
+ size: 24,
1492
+ strokeWidth: D(24),
1493
+ className: Tt.starEmpty,
1494
+ "aria-hidden": "true"
1495
+ }, `empty-${t}`))
1496
+ ]
1497
+ }), m = n && /* @__PURE__ */ a("div", {
1498
+ className: Tt.label,
1499
+ children: [/* @__PURE__ */ i("span", {
1500
+ className: Tt.value,
1501
+ children: c.toFixed(1)
1502
+ }), t !== void 0 && /* @__PURE__ */ a("span", {
1503
+ className: Tt.count,
1504
+ children: [
1505
+ "(",
1506
+ o(t),
1507
+ " reviews)"
1508
+ ]
1509
+ })]
1510
+ }), h = [
1511
+ Tt.row,
1512
+ r === "vertical" ? Tt.rowVertical : "",
1513
+ s ?? ""
1514
+ ].filter(Boolean).join(" ");
1515
+ return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
1516
+ className: h,
1517
+ children: [m, p]
1518
+ }) : /* @__PURE__ */ a("div", {
1519
+ className: h,
1520
+ children: [p, m]
1521
+ });
1522
+ }, Ot = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
1523
+ let a = e <= 0, o = !a && e <= t, s = a ? "danger" : o ? "warning" : "success", c = a ? "Out of stock" : o ? `Only ${e} left` : "In stock";
1524
+ return /* @__PURE__ */ i(et, {
1525
+ variant: s,
1526
+ emphasis: "subtle",
1527
+ className: r,
1528
+ children: n ?? c
1529
+ });
1530
+ }, z = {
1531
+ card: "_card_1w9hp_1",
1532
+ cardDefault: "_cardDefault_1w9hp_8",
1533
+ imageDefault: "_imageDefault_1w9hp_19",
1534
+ bodyDefault: "_bodyDefault_1w9hp_27",
1535
+ cardHorizontal: "_cardHorizontal_1w9hp_53",
1536
+ imageWrapHorizontal: "_imageWrapHorizontal_1w9hp_61",
1537
+ image: "_image_1w9hp_19",
1538
+ bodyHorizontal: "_bodyHorizontal_1w9hp_77",
1539
+ metaRow: "_metaRow_1w9hp_89",
1540
+ readTime: "_readTime_1w9hp_96",
1541
+ title: "_title_1w9hp_105",
1542
+ excerpt: "_excerpt_1w9hp_114",
1543
+ author: "_author_1w9hp_123",
1544
+ authorText: "_authorText_1w9hp_130"
1545
+ }, kt = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
1546
+ let d = l === "horizontal";
1547
+ return /* @__PURE__ */ a("div", {
1548
+ className: [
1549
+ z.card,
1550
+ d ? z.cardHorizontal : z.cardDefault,
1551
+ u ?? ""
1552
+ ].filter(Boolean).join(" "),
1553
+ children: [d ? /* @__PURE__ */ i("span", {
1554
+ className: z.imageWrapHorizontal,
1555
+ children: /* @__PURE__ */ i("img", {
1556
+ src: e,
1557
+ alt: t ?? "",
1558
+ className: z.image
1559
+ })
1560
+ }) : /* @__PURE__ */ i("img", {
1561
+ src: e,
1562
+ alt: t ?? "",
1563
+ className: z.imageDefault
1564
+ }), /* @__PURE__ */ a("div", {
1565
+ className: d ? z.bodyHorizontal : z.bodyDefault,
1566
+ children: [
1567
+ /* @__PURE__ */ a("div", {
1568
+ className: z.metaRow,
1569
+ children: [/* @__PURE__ */ i(et, {
1570
+ variant: "accent",
1571
+ emphasis: "subtle",
1572
+ children: n
1573
+ }), /* @__PURE__ */ i("span", {
1574
+ className: z.readTime,
1575
+ children: r
1576
+ })]
1577
+ }),
1578
+ /* @__PURE__ */ i("p", {
1579
+ className: z.title,
1580
+ children: o
1581
+ }),
1582
+ /* @__PURE__ */ i("p", {
1583
+ className: z.excerpt,
1584
+ children: s
1585
+ }),
1586
+ /* @__PURE__ */ a("div", {
1587
+ className: z.author,
1588
+ children: [/* @__PURE__ */ i(xe, {
1589
+ size: "sm",
1590
+ src: c.avatarSrc,
1591
+ alt: c.avatarAlt ?? c.name
1592
+ }), /* @__PURE__ */ a("p", {
1593
+ className: z.authorText,
1594
+ children: [
1595
+ c.name,
1596
+ " · ",
1597
+ c.date
1598
+ ]
1599
+ })]
1600
+ })
1601
+ ]
1602
+ })]
1603
+ });
1604
+ }, B = {
1605
+ card: "_card_8cf5b_1",
1606
+ cardHorizontal: "_cardHorizontal_8cf5b_12",
1607
+ cardVertical: "_cardVertical_8cf5b_20",
1608
+ image: "_image_8cf5b_32",
1609
+ bodyHorizontal: "_bodyHorizontal_8cf5b_43",
1610
+ bodyVertical: "_bodyVertical_8cf5b_56",
1611
+ title: "_title_8cf5b_67",
1612
+ excerpt: "_excerpt_8cf5b_77",
1613
+ footer: "_footer_8cf5b_86",
1614
+ author: "_author_8cf5b_94",
1615
+ authorText: "_authorText_8cf5b_101"
1616
+ }, At = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
1617
+ let f = u === "vertical";
1618
+ return /* @__PURE__ */ a("div", {
1619
+ className: [
1620
+ B.card,
1621
+ f ? B.cardVertical : B.cardHorizontal,
1622
+ d ?? ""
1623
+ ].filter(Boolean).join(" "),
1624
+ children: [/* @__PURE__ */ i("img", {
1625
+ src: e,
1626
+ alt: t ?? "",
1627
+ className: B.image
1628
+ }), /* @__PURE__ */ a("div", {
1629
+ className: f ? B.bodyVertical : B.bodyHorizontal,
1630
+ children: [
1631
+ /* @__PURE__ */ i(et, {
1632
+ variant: "accent",
1633
+ emphasis: "subtle",
1634
+ children: n
1635
+ }),
1636
+ /* @__PURE__ */ i("p", {
1637
+ className: B.title,
1638
+ children: r
1639
+ }),
1640
+ /* @__PURE__ */ i("p", {
1641
+ className: B.excerpt,
1642
+ children: o
1643
+ }),
1644
+ /* @__PURE__ */ a("div", {
1645
+ className: B.footer,
1646
+ children: [/* @__PURE__ */ a("div", {
1647
+ className: B.author,
1648
+ children: [/* @__PURE__ */ i(xe, {
1649
+ size: "md",
1650
+ src: s.avatarSrc,
1651
+ alt: s.avatarAlt ?? s.name,
1652
+ initials: s.initials
1653
+ }), /* @__PURE__ */ a("p", {
1654
+ className: B.authorText,
1655
+ children: [
1656
+ s.name,
1657
+ " · ",
1658
+ s.date
1659
+ ]
1660
+ })]
1661
+ }), /* @__PURE__ */ i(A, {
1662
+ variant: "secondary",
1663
+ size: "sm",
1664
+ onClick: l,
1665
+ children: c
1666
+ })]
1667
+ })
1668
+ ]
1669
+ })]
1670
+ });
1671
+ }, jt = {
1672
+ chip: "_chip_scl8l_1",
1673
+ "chip--sm": "_chip--sm_scl8l_11",
1674
+ "chip--md": "_chip--md_scl8l_17",
1675
+ "chip--lg": "_chip--lg_scl8l_23",
1676
+ "chip--light": "_chip--light_scl8l_31",
1677
+ "chip--outline": "_chip--outline_scl8l_35",
1678
+ "chip--solid": "_chip--solid_scl8l_39",
1679
+ "chip--subtle": "_chip--subtle_scl8l_43"
1680
+ }, Mt = {
1681
+ sm: 16,
1682
+ md: 20,
1683
+ lg: 24
1684
+ }, Nt = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
1685
+ let o = Mt[n], s = e.isValidElement(t) ? e.cloneElement(t, {
1686
+ size: o,
1687
+ strokeWidth: D(o)
1688
+ }) : t;
1689
+ return /* @__PURE__ */ i("div", {
1690
+ className: [
1691
+ jt.chip,
1692
+ jt[`chip--${n}`],
1693
+ jt[`chip--${r}`],
1694
+ a ?? ""
1695
+ ].filter(Boolean).join(" "),
1696
+ "aria-hidden": "true",
1697
+ children: s
1698
+ });
1699
+ }, Pt = {
1700
+ group: "_group_mvlh4_3",
1701
+ group__item: "_group__item_mvlh4_6",
1702
+ "group--sm": "_group--sm_mvlh4_9",
1703
+ "group--lg": "_group--lg_mvlh4_10",
1704
+ "group--xl": "_group--xl_mvlh4_11",
1705
+ overflow: "_overflow_mvlh4_14",
1706
+ "overflow--sm": "_overflow--sm_mvlh4_25",
1707
+ "overflow--md": "_overflow--md_mvlh4_26",
1708
+ "overflow--lg": "_overflow--lg_mvlh4_27",
1709
+ "overflow--xl": "_overflow--xl_mvlh4_28"
1710
+ }, Ft = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
1711
+ let o = n.slice(0, t), s = n.length - o.length;
1712
+ return /* @__PURE__ */ a("div", {
1713
+ className: [
1714
+ Pt.group,
1715
+ Pt[`group--${e}`],
1716
+ r ?? ""
1717
+ ].filter(Boolean).join(" "),
1718
+ children: [o.map((t, n) => /* @__PURE__ */ i("span", {
1719
+ className: Pt.group__item,
1720
+ children: /* @__PURE__ */ i(xe, {
1721
+ size: e,
1722
+ src: t.src,
1723
+ initials: t.initials,
1724
+ alt: t.alt
1725
+ })
1726
+ }, n)), s > 0 && /* @__PURE__ */ i("span", {
1727
+ className: Pt.group__item,
1728
+ children: /* @__PURE__ */ a("span", {
1729
+ className: [Pt.overflow, Pt[`overflow--${e}`]].join(" "),
1730
+ children: ["+", s]
1731
+ })
1732
+ })]
1733
+ });
1734
+ }, It = {
1735
+ root: "_root_165je_1",
1736
+ dot: "_dot_165je_13",
1737
+ dotActive: "_dotActive_165je_21",
1738
+ dotRemote: "_dotRemote_165je_25"
1739
+ }, Lt = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
1740
+ className: [It.root, n ?? ""].filter(Boolean).join(" "),
1741
+ children: [/* @__PURE__ */ i("span", {
1742
+ className: [It.dot, t === "active" ? It.dotActive : It.dotRemote].join(" "),
1743
+ "aria-hidden": "true"
1744
+ }), e]
1745
+ }), V = {
1746
+ root: "_root_15jaa_1",
1747
+ rootCard: "_rootCard_15jaa_9",
1748
+ rootRow: "_rootRow_15jaa_21",
1749
+ rowLeft: "_rowLeft_15jaa_27",
1750
+ titleGroup: "_titleGroup_15jaa_36",
1751
+ title: "_title_15jaa_36",
1752
+ description: "_description_15jaa_56",
1753
+ metaRow: "_metaRow_15jaa_65",
1754
+ applyBtn: "_applyBtn_15jaa_72"
1755
+ }, Rt = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
1756
+ let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
1757
+ className: V.titleGroup,
1758
+ children: [/* @__PURE__ */ i("p", {
1759
+ className: V.title,
1760
+ children: e
1761
+ }), /* @__PURE__ */ i("p", {
1762
+ className: V.description,
1763
+ children: t
1764
+ })]
1765
+ }), /* @__PURE__ */ a("div", {
1766
+ className: V.metaRow,
1767
+ children: [
1768
+ /* @__PURE__ */ i(et, {
1769
+ variant: "accent",
1770
+ emphasis: "subtle",
1771
+ children: n
1772
+ }),
1773
+ /* @__PURE__ */ i(et, {
1774
+ variant: "neutral",
1775
+ emphasis: "subtle",
1776
+ children: o
1777
+ }),
1778
+ /* @__PURE__ */ i(Lt, {
1779
+ location: s,
1780
+ status: c
1781
+ })
1782
+ ]
1783
+ })] });
1784
+ return p ? /* @__PURE__ */ a("div", {
1785
+ className: [
1786
+ V.root,
1787
+ V.rootRow,
1788
+ f ?? ""
1789
+ ].filter(Boolean).join(" "),
1790
+ children: [/* @__PURE__ */ i("div", {
1791
+ className: V.rowLeft,
1792
+ children: m
1793
+ }), /* @__PURE__ */ i(A, {
1794
+ variant: "secondary",
1795
+ size: "sm",
1796
+ className: V.applyBtn,
1797
+ onClick: l,
1798
+ children: u
1799
+ })]
1800
+ }) : /* @__PURE__ */ a("div", {
1801
+ className: [
1802
+ V.root,
1803
+ V.rootCard,
1804
+ f ?? ""
1805
+ ].filter(Boolean).join(" "),
1806
+ children: [m, /* @__PURE__ */ i(A, {
1807
+ variant: "secondary",
1808
+ size: "sm",
1809
+ onClick: l,
1810
+ children: u
1811
+ })]
1812
+ });
1813
+ }, zt = {
1814
+ root: "_root_3bf2n_1",
1815
+ rootCenter: "_rootCenter_3bf2n_9",
1816
+ rootLeft: "_rootLeft_3bf2n_14",
1817
+ title: "_title_3bf2n_19",
1818
+ subtitle: "_subtitle_3bf2n_28"
1819
+ }, Bt = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
1820
+ className: [
1821
+ zt.root,
1822
+ r === "left" ? zt.rootLeft : zt.rootCenter,
1823
+ s ?? ""
1824
+ ].filter(Boolean).join(" "),
1825
+ children: [
1826
+ e && /* @__PURE__ */ i(et, {
1827
+ variant: "accent",
1828
+ emphasis: "subtle",
1829
+ children: e
1830
+ }),
1831
+ /* @__PURE__ */ i(o, {
1832
+ className: zt.title,
1833
+ children: t
1834
+ }),
1835
+ n && /* @__PURE__ */ i("p", {
1836
+ className: zt.subtitle,
1837
+ children: n
1838
+ })
1839
+ ]
1840
+ }), H = {
1841
+ card: "_card_1ye9i_1",
1842
+ imageWrap: "_imageWrap_1ye9i_16",
1843
+ image: "_image_1ye9i_16",
1844
+ locationBar: "_locationBar_1ye9i_36",
1845
+ locationDot: "_locationDot_1ye9i_56",
1846
+ info: "_info_1ye9i_63",
1847
+ metaRow: "_metaRow_1ye9i_74",
1848
+ identity: "_identity_1ye9i_82",
1849
+ name: "_name_1ye9i_90",
1850
+ role: "_role_1ye9i_99",
1851
+ social: "_social_1ye9i_108",
1852
+ bio: "_bio_1ye9i_116"
1853
+ }, Vt = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
1854
+ className: [H.card, u ?? ""].filter(Boolean).join(" "),
1855
+ children: [/* @__PURE__ */ a("div", {
1856
+ className: H.imageWrap,
1857
+ children: [/* @__PURE__ */ i("img", {
1858
+ src: e,
1859
+ alt: t ?? n,
1860
+ className: H.image
1861
+ }), /* @__PURE__ */ i("div", {
1862
+ className: H.locationBar,
1863
+ children: /* @__PURE__ */ i(Lt, {
1864
+ location: o,
1865
+ status: s,
1866
+ className: H.locationDot
1867
+ })
1868
+ })]
1869
+ }), /* @__PURE__ */ a("div", {
1870
+ className: H.info,
1871
+ children: [/* @__PURE__ */ a("div", {
1872
+ className: H.metaRow,
1873
+ children: [/* @__PURE__ */ a("div", {
1874
+ className: H.identity,
1875
+ children: [/* @__PURE__ */ i("p", {
1876
+ className: H.name,
1877
+ children: n
1878
+ }), /* @__PURE__ */ i("p", {
1879
+ className: H.role,
1880
+ children: r
1881
+ })]
1882
+ }), l.length > 0 && /* @__PURE__ */ i("div", {
1883
+ className: H.social,
1884
+ children: l.map((e, t) => /* @__PURE__ */ i("a", {
1885
+ href: e.href,
1886
+ onClick: e.onClick,
1887
+ "aria-label": e.label,
1888
+ children: /* @__PURE__ */ i(Nt, {
1889
+ icon: e.icon,
1890
+ size: "sm",
1891
+ variant: "subtle"
1892
+ })
1893
+ }, e.label ?? t))
1894
+ })]
1895
+ }), c && /* @__PURE__ */ i("p", {
1896
+ className: H.bio,
1897
+ children: c
1898
+ })]
1899
+ })]
1900
+ }), Ht = {
1901
+ alert: "_alert_1hjs5_3",
1902
+ alert__icon: "_alert__icon_1hjs5_12",
1903
+ alert__content: "_alert__content_1hjs5_13",
1904
+ alert__title: "_alert__title_1hjs5_14",
1905
+ alert__description: "_alert__description_1hjs5_15",
1906
+ "alert--info": "_alert--info_1hjs5_18",
1907
+ "alert--success": "_alert--success_1hjs5_21",
1908
+ "alert--warning": "_alert--warning_1hjs5_24",
1909
+ "alert--danger": "_alert--danger_1hjs5_27",
1910
+ "alert--neutral": "_alert--neutral_1hjs5_30"
1911
+ }, Ut = {
1912
+ info: /* @__PURE__ */ a(r, { children: [
1913
+ /* @__PURE__ */ i("circle", {
1914
+ cx: "12",
1915
+ cy: "12",
1916
+ r: "10"
1917
+ }),
1918
+ /* @__PURE__ */ i("line", {
1919
+ x1: "12",
1920
+ y1: "16",
1921
+ x2: "12",
1922
+ y2: "12"
1923
+ }),
1924
+ /* @__PURE__ */ i("line", {
1925
+ x1: "12",
1926
+ y1: "8",
1927
+ x2: "12.01",
1928
+ y2: "8"
1929
+ })
1930
+ ] }),
1931
+ success: /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ i("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
1932
+ warning: /* @__PURE__ */ a(r, { children: [
1933
+ /* @__PURE__ */ i("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
1934
+ /* @__PURE__ */ i("line", {
1935
+ x1: "12",
1936
+ y1: "9",
1937
+ x2: "12",
1938
+ y2: "13"
1939
+ }),
1940
+ /* @__PURE__ */ i("line", {
1941
+ x1: "12",
1942
+ y1: "17",
1943
+ x2: "12.01",
1944
+ y2: "17"
1945
+ })
1946
+ ] }),
1947
+ danger: /* @__PURE__ */ a(r, { children: [
1948
+ /* @__PURE__ */ i("circle", {
1949
+ cx: "12",
1950
+ cy: "12",
1951
+ r: "10"
1952
+ }),
1953
+ /* @__PURE__ */ i("line", {
1954
+ x1: "15",
1955
+ y1: "9",
1956
+ x2: "9",
1957
+ y2: "15"
1958
+ }),
1959
+ /* @__PURE__ */ i("line", {
1960
+ x1: "9",
1961
+ y1: "9",
1962
+ x2: "15",
1963
+ y2: "15"
1964
+ })
1965
+ ] }),
1966
+ neutral: /* @__PURE__ */ a(r, { children: [
1967
+ /* @__PURE__ */ i("circle", {
1968
+ cx: "12",
1969
+ cy: "12",
1970
+ r: "10"
1971
+ }),
1972
+ /* @__PURE__ */ i("line", {
1973
+ x1: "12",
1974
+ y1: "16",
1975
+ x2: "12",
1976
+ y2: "12"
1977
+ }),
1978
+ /* @__PURE__ */ i("line", {
1979
+ x1: "12",
1980
+ y1: "8",
1981
+ x2: "12.01",
1982
+ y2: "8"
1983
+ })
1984
+ ] })
1985
+ }, Wt = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
1986
+ role: "alert",
1987
+ className: [
1988
+ Ht.alert,
1989
+ Ht[`alert--${e}`],
1990
+ o ?? ""
1991
+ ].filter(Boolean).join(" "),
1992
+ children: [/* @__PURE__ */ i("span", {
1993
+ className: Ht.alert__icon,
1994
+ "aria-hidden": "true",
1995
+ children: /* @__PURE__ */ i("svg", {
1996
+ viewBox: "0 0 24 24",
1997
+ fill: "none",
1998
+ stroke: "currentColor",
1999
+ strokeWidth: D(18),
2000
+ strokeLinecap: "round",
2001
+ strokeLinejoin: "round",
2002
+ width: 18,
2003
+ height: 18,
2004
+ children: r ?? Ut[e]
2005
+ })
2006
+ }), /* @__PURE__ */ a("div", {
2007
+ className: Ht.alert__content,
2008
+ children: [t && /* @__PURE__ */ i("div", {
2009
+ className: Ht.alert__title,
2010
+ children: t
2011
+ }), n && /* @__PURE__ */ i("div", {
2012
+ className: Ht.alert__description,
2013
+ children: n
2014
+ })]
2015
+ })]
2016
+ }), U = {
2017
+ card: "_card_6iftf_2",
2018
+ "card--hover": "_card--hover_6iftf_15",
2019
+ "card--selected": "_card--selected_6iftf_16",
2020
+ "card--dragging": "_card--dragging_6iftf_17",
2021
+ "card--done": "_card--done_6iftf_18",
2022
+ card__cover: "_card__cover_6iftf_20",
2023
+ card__header: "_card__header_6iftf_26",
2024
+ card__leading: "_card__leading_6iftf_27",
2025
+ card__title: "_card__title_6iftf_28",
2026
+ card__trailing: "_card__trailing_6iftf_37",
2027
+ card__desc: "_card__desc_6iftf_38",
2028
+ card__tags: "_card__tags_6iftf_45",
2029
+ card__divider: "_card__divider_6iftf_46",
2030
+ card__footer: "_card__footer_6iftf_47",
2031
+ card__meta: "_card__meta_6iftf_48",
2032
+ card__assignees: "_card__assignees_6iftf_49"
2033
+ }, Gt = ({ type: e = "default", state: t = "default", cover: n, leading: o, title: s, trailing: c, description: l, tags: u, meta: d, assignees: f, onClick: p, className: m }) => {
2034
+ let h = e !== "compact", g = d || f;
2035
+ return /* @__PURE__ */ a("div", {
2036
+ onClick: p,
2037
+ "aria-selected": t === "selected" || void 0,
2038
+ className: [
2039
+ U.card,
2040
+ U[`card--${e}`],
2041
+ U[`card--${t}`],
2042
+ m ?? ""
2043
+ ].filter(Boolean).join(" "),
2044
+ children: [
2045
+ e === "cover" && /* @__PURE__ */ i("div", {
2046
+ className: U.card__cover,
2047
+ children: n
2048
+ }),
2049
+ /* @__PURE__ */ a("div", {
2050
+ className: U.card__header,
2051
+ children: [
2052
+ o && /* @__PURE__ */ i("span", {
2053
+ className: U.card__leading,
2054
+ children: o
2055
+ }),
2056
+ /* @__PURE__ */ i("span", {
2057
+ className: U.card__title,
2058
+ children: s
2059
+ }),
2060
+ c && /* @__PURE__ */ i("span", {
2061
+ className: U.card__trailing,
2062
+ children: c
2063
+ })
2064
+ ]
2065
+ }),
2066
+ h && l && /* @__PURE__ */ i("p", {
2067
+ className: U.card__desc,
2068
+ children: l
2069
+ }),
2070
+ h && u && /* @__PURE__ */ i("div", {
2071
+ className: U.card__tags,
2072
+ children: u
2073
+ }),
2074
+ g && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className: U.card__divider }), /* @__PURE__ */ a("div", {
2075
+ className: U.card__footer,
2076
+ children: [d && /* @__PURE__ */ i("div", {
2077
+ className: U.card__meta,
2078
+ children: d
2079
+ }), f && /* @__PURE__ */ i("div", {
2080
+ className: U.card__assignees,
2081
+ children: f
2082
+ })]
2083
+ })] })
2084
+ ]
2085
+ });
2086
+ }, Kt = {
2087
+ breadcrumb: "_breadcrumb_1uzuh_3",
2088
+ list: "_list_1uzuh_5",
2089
+ item: "_item_1uzuh_15",
2090
+ crumb: "_crumb_1uzuh_17",
2091
+ current: "_current_1uzuh_26",
2092
+ separator: "_separator_1uzuh_33",
2093
+ "list--button": "_list--button_1uzuh_38",
2094
+ chip: "_chip_1uzuh_41"
2095
+ }, qt = ({ size: e }) => /* @__PURE__ */ i("span", {
2096
+ className: Kt.separator,
2097
+ "aria-hidden": "true",
2098
+ children: /* @__PURE__ */ i("svg", {
2099
+ viewBox: "0 0 24 24",
2100
+ fill: "none",
2101
+ stroke: "currentColor",
2102
+ strokeWidth: D(e),
2103
+ strokeLinecap: "round",
2104
+ strokeLinejoin: "round",
2105
+ width: e,
2106
+ height: e,
2107
+ children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
2108
+ })
2109
+ }), Jt = ({ items: e, variant: t = "text", className: n }) => {
2110
+ let r = t === "button";
2111
+ return /* @__PURE__ */ i("nav", {
2112
+ "aria-label": "Breadcrumb",
2113
+ className: [Kt.breadcrumb, n ?? ""].filter(Boolean).join(" "),
2114
+ children: /* @__PURE__ */ i("ol", {
2115
+ className: [Kt.list, r ? Kt["list--button"] : ""].filter(Boolean).join(" "),
2116
+ children: e.map((t, n) => {
2117
+ let o = n === e.length - 1, s = r ? Kt.chip : o ? Kt.current : Kt.crumb;
2118
+ return /* @__PURE__ */ a("li", {
2119
+ className: Kt.item,
2120
+ children: [o || !t.href ? /* @__PURE__ */ i("span", {
2121
+ className: s,
2122
+ "aria-current": o ? "page" : void 0,
2123
+ children: t.label
2124
+ }) : /* @__PURE__ */ i("a", {
2125
+ href: t.href,
2126
+ className: s,
2127
+ children: t.label
2128
+ }), !o && /* @__PURE__ */ i(qt, { size: r ? 14 : 16 })]
2129
+ }, n);
2130
+ })
2131
+ })
2132
+ });
2133
+ }, Yt = {
2134
+ meta: "_meta_g1mpv_2",
2135
+ meta__icon: "_meta__icon_g1mpv_3",
2136
+ meta__label: "_meta__label_g1mpv_4"
2137
+ }, Xt = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
2138
+ className: [Yt.meta, n ?? ""].filter(Boolean).join(" "),
2139
+ children: [/* @__PURE__ */ i("span", {
2140
+ className: Yt.meta__icon,
2141
+ "aria-hidden": "true",
2142
+ children: e
2143
+ }), /* @__PURE__ */ i("span", {
2144
+ className: Yt.meta__label,
2145
+ children: t
2146
+ })]
2147
+ }), W = {
2148
+ composer: "_composer_vd2eo_2",
2149
+ "composer--typing": "_composer--typing_vd2eo_15",
2150
+ input: "_input_vd2eo_22",
2151
+ "composer--disabled": "_composer--disabled_vd2eo_23",
2152
+ upload: "_upload_vd2eo_25",
2153
+ upload__icon: "_upload__icon_vd2eo_30",
2154
+ upload__body: "_upload__body_vd2eo_31",
2155
+ upload__name: "_upload__name_vd2eo_32",
2156
+ upload__track: "_upload__track_vd2eo_33",
2157
+ upload__fill: "_upload__fill_vd2eo_34",
2158
+ row: "_row_vd2eo_36",
2159
+ sendButton: "_sendButton_vd2eo_40",
2160
+ icon: "_icon_vd2eo_41",
2161
+ send: "_send_vd2eo_40"
2162
+ }, Zt = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
2163
+ let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, b] = e.useState({
2164
+ top: 0,
2165
+ right: 0
2166
+ }), [x, S] = e.useState([]), C = e.useRef(null), w = e.useRef(null), E = e.useRef(null), ee = e.useRef(null), re = n === void 0 ? m : n, ie = !p && (re.trim().length > 0 || t === "typing" || x.length > 0), ae = () => {
2167
+ w.current?.click();
2168
+ }, oe = (e) => {
2169
+ let t = e.target.files;
2170
+ t && (Array.from(t).forEach((e) => {
2171
+ if (e.type.startsWith("image/") || e.type.startsWith("video/")) {
2172
+ let t = new FileReader();
2173
+ t.onload = (t) => {
2174
+ let n = t.target?.result;
2175
+ S((t) => [...t, {
2176
+ name: e.name,
2177
+ type: e.type,
2178
+ dataUrl: n
2179
+ }]);
2180
+ }, t.readAsDataURL(e);
2181
+ }
2182
+ }), e.target.value = "");
2183
+ }, se = (e) => {
2184
+ S((t) => t.filter((t, n) => n !== e));
2185
+ }, le = () => {
2186
+ if (!g && C.current) {
2187
+ let e = C.current.getBoundingClientRect();
2188
+ b({
2189
+ top: e.top - 104 - 4,
2190
+ right: 20
2191
+ });
2192
+ }
2193
+ _(!g);
2194
+ }, ue = (e) => {
2195
+ if (C.current) {
2196
+ let t = C.current.selectionStart || re.length, n = re.slice(0, t) + e + re.slice(t);
2197
+ h(n), o?.(n), C.current.focus(), C.current.setSelectionRange(t + e.length, t + e.length);
2198
+ }
2199
+ _(!1);
2200
+ };
2201
+ return e.useEffect(() => {
2202
+ let e = (e) => {
2203
+ ee.current && !ee.current.contains(e.target) && E.current && !E.current.contains(e.target) && _(!1);
2204
+ };
2205
+ return g && document.addEventListener("mousedown", e), () => {
2206
+ document.removeEventListener("mousedown", e);
2207
+ };
2208
+ }, [g]), e.useEffect(() => {
2209
+ c?.(x);
2210
+ }, [x, c]), /* @__PURE__ */ a("div", {
2211
+ className: [
2212
+ W.composer,
2213
+ W[`composer--${t}`],
2214
+ f ?? ""
2215
+ ].filter(Boolean).join(" "),
2216
+ children: [
2217
+ t === "uploading" && /* @__PURE__ */ a("div", {
2218
+ className: W.upload,
2219
+ children: [
2220
+ /* @__PURE__ */ i(y, {
2221
+ size: 16,
2222
+ strokeWidth: D(16),
2223
+ className: W.upload__icon,
2224
+ "aria-hidden": "true"
2225
+ }),
2226
+ /* @__PURE__ */ a("div", {
2227
+ className: W.upload__body,
2228
+ children: [/* @__PURE__ */ i("span", {
2229
+ className: W.upload__name,
2230
+ children: l
2231
+ }), /* @__PURE__ */ i("div", {
2232
+ className: W.upload__track,
2233
+ children: /* @__PURE__ */ i("div", {
2234
+ className: W.upload__fill,
2235
+ style: { width: `${u}%` }
2236
+ })
2237
+ })]
2238
+ }),
2239
+ /* @__PURE__ */ i(Ae, {
2240
+ icon: ce,
2241
+ variant: "ghost",
2242
+ size: "md",
2243
+ onClick: d,
2244
+ "aria-label": "Cancel upload"
2245
+ })
2246
+ ]
2247
+ }),
2248
+ x.length > 0 && /* @__PURE__ */ i("div", {
2249
+ style: {
2250
+ display: "flex",
2251
+ flexWrap: "wrap",
2252
+ gap: "8px",
2253
+ padding: "8px",
2254
+ backgroundColor: "var(--color-bg-subtle)",
2255
+ borderRadius: "8px"
2256
+ },
2257
+ children: x.map((e, t) => /* @__PURE__ */ a("div", {
2258
+ style: {
2259
+ position: "relative",
2260
+ display: "inline-flex",
2261
+ alignItems: "center",
2262
+ justifyContent: "center",
2263
+ width: "80px",
2264
+ height: "80px",
2265
+ borderRadius: "8px",
2266
+ overflow: "hidden",
2267
+ backgroundColor: "var(--color-bg-muted)",
2268
+ border: "1px solid var(--color-border-default)"
2269
+ },
2270
+ children: [e.type.startsWith("image/") ? /* @__PURE__ */ i("img", {
2271
+ src: e.dataUrl,
2272
+ alt: e.name,
2273
+ style: {
2274
+ width: "100%",
2275
+ height: "100%",
2276
+ objectFit: "cover"
2277
+ }
2278
+ }) : /* @__PURE__ */ a("div", {
2279
+ style: {
2280
+ textAlign: "center",
2281
+ padding: "8px"
2282
+ },
2283
+ children: [/* @__PURE__ */ i(y, {
2284
+ size: 24,
2285
+ strokeWidth: 1.5
2286
+ }), /* @__PURE__ */ i("div", {
2287
+ style: {
2288
+ fontSize: "10px",
2289
+ marginTop: "4px",
2290
+ color: "var(--color-fg-muted)"
2291
+ },
2292
+ children: e.name.split(".").pop()?.toUpperCase()
2293
+ })]
2294
+ }), /* @__PURE__ */ i("button", {
2295
+ type: "button",
2296
+ onClick: () => se(t),
2297
+ style: {
2298
+ position: "absolute",
2299
+ top: "-8px",
2300
+ right: "-8px",
2301
+ width: "24px",
2302
+ height: "24px",
2303
+ borderRadius: "50%",
2304
+ background: "var(--color-accent-default)",
2305
+ border: "none",
2306
+ color: "white",
2307
+ cursor: "pointer",
2308
+ display: "flex",
2309
+ alignItems: "center",
2310
+ justifyContent: "center",
2311
+ fontSize: "16px",
2312
+ lineHeight: "1"
2313
+ },
2314
+ "aria-label": "Remove file",
2315
+ children: "x"
2316
+ })]
2317
+ }, t))
2318
+ }),
2319
+ /* @__PURE__ */ i("input", {
2320
+ ref: w,
2321
+ type: "file",
2322
+ multiple: !0,
2323
+ accept: "image/*,video/*",
2324
+ onChange: oe,
2325
+ style: { display: "none" }
2326
+ }),
2327
+ /* @__PURE__ */ a("div", {
2328
+ className: W.row,
2329
+ children: [
2330
+ /* @__PURE__ */ i(Ae, {
2331
+ icon: T,
2332
+ variant: "ghost",
2333
+ size: "sm",
2334
+ onClick: ae,
2335
+ disabled: p,
2336
+ "aria-label": "Attach file"
2337
+ }),
2338
+ /* @__PURE__ */ i("input", {
2339
+ ref: C,
2340
+ type: "text",
2341
+ className: W.input,
2342
+ value: re,
2343
+ placeholder: p ? "You can't reply to this conversation" : r,
2344
+ disabled: p,
2345
+ onChange: (e) => {
2346
+ n === void 0 && h(e.target.value), o?.(e.target.value);
2347
+ },
2348
+ onKeyDown: (e) => {
2349
+ e.key === "Enter" && ie && (e.preventDefault(), s?.());
2350
+ }
2351
+ }),
2352
+ /* @__PURE__ */ i(Ae, {
2353
+ ref: E,
2354
+ icon: ne,
2355
+ variant: "ghost",
2356
+ size: "sm",
2357
+ onClick: le,
2358
+ disabled: p,
2359
+ "aria-label": "Add emoji"
2360
+ }),
2361
+ g && !p && pe.createPortal(/* @__PURE__ */ i("div", {
2362
+ ref: ee,
2363
+ style: {
2364
+ position: "fixed",
2365
+ top: `${v.top}px`,
2366
+ right: `${v.right}px`,
2367
+ zIndex: 1e4,
2368
+ boxShadow: "0 4px 20px rgba(0, 0, 0, 0.15)",
2369
+ borderRadius: "8px",
2370
+ backgroundColor: "var(--color-bg-surface)",
2371
+ border: "1px solid var(--color-border-default)",
2372
+ padding: "12px",
2373
+ display: "grid",
2374
+ gridTemplateColumns: "repeat(8, 1fr)",
2375
+ gap: "4px",
2376
+ width: "280px"
2377
+ },
2378
+ children: [
2379
+ "😀",
2380
+ "😂",
2381
+ "❤️",
2382
+ "👍",
2383
+ "🎉",
2384
+ "✨",
2385
+ "😍",
2386
+ "🤔",
2387
+ "👏",
2388
+ "🚀",
2389
+ "🔥",
2390
+ "💯",
2391
+ "😢",
2392
+ "😱",
2393
+ "🤗",
2394
+ "😎"
2395
+ ].map((e) => /* @__PURE__ */ i("button", {
2396
+ onClick: () => ue(e),
2397
+ style: {
2398
+ background: "none",
2399
+ border: "none",
2400
+ fontSize: "24px",
2401
+ cursor: "pointer",
2402
+ padding: "4px",
2403
+ borderRadius: "4px",
2404
+ transition: "background-color 0.2s"
2405
+ },
2406
+ onMouseEnter: (e) => {
2407
+ e.currentTarget.style.backgroundColor = "var(--color-bg-subtle)";
2408
+ },
2409
+ onMouseLeave: (e) => {
2410
+ e.currentTarget.style.backgroundColor = "transparent";
2411
+ },
2412
+ children: e
2413
+ }, e))
2414
+ }), document.body),
2415
+ /* @__PURE__ */ i(Ae, {
2416
+ icon: te,
2417
+ variant: "primary",
2418
+ size: "sm",
2419
+ className: W.sendButton,
2420
+ onClick: s,
2421
+ disabled: !ie,
2422
+ "aria-label": "Send message"
2423
+ })
2424
+ ]
2425
+ })
2426
+ ]
2427
+ });
2428
+ }, G = {
2429
+ wrapper: "_wrapper_1nmcn_3",
2430
+ "wrapper--disabled": "_wrapper--disabled_1nmcn_11",
2431
+ input: "_input_1nmcn_14",
2432
+ box: "_box_1nmcn_21",
2433
+ check: "_check_1nmcn_42",
2434
+ dash: "_dash_1nmcn_53",
2435
+ text: "_text_1nmcn_71",
2436
+ text__label: "_text__label_1nmcn_72",
2437
+ text__description: "_text__description_1nmcn_73",
2438
+ checkbox: "_checkbox_1nmcn_77",
2439
+ "wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
2440
+ }, Qt = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
2441
+ let d = e.useId(), f = s ?? d, p = e.useRef(null);
2442
+ return e.useImperativeHandle(u, () => p.current), e.useEffect(() => {
2443
+ p.current && (p.current.indeterminate = !!r);
2444
+ }, [r]), /* @__PURE__ */ a("label", {
2445
+ htmlFor: f,
2446
+ className: [
2447
+ G.wrapper,
2448
+ n ? G["wrapper--withDescription"] : "",
2449
+ o ? G["wrapper--disabled"] : "",
2450
+ c ?? ""
2451
+ ].filter(Boolean).join(" "),
2452
+ children: [
2453
+ /* @__PURE__ */ i("input", {
2454
+ ref: p,
2455
+ id: f,
2456
+ type: "checkbox",
2457
+ disabled: o,
2458
+ className: G.input,
2459
+ ...l
2460
+ }),
2461
+ /* @__PURE__ */ a("span", {
2462
+ className: G.box,
2463
+ "aria-hidden": "true",
2464
+ children: [/* @__PURE__ */ i("svg", {
2465
+ className: G.check,
2466
+ width: 12,
2467
+ height: 12,
2468
+ viewBox: "0 0 24 24",
2469
+ fill: "none",
2470
+ stroke: "currentColor",
2471
+ strokeWidth: 3,
2472
+ strokeLinecap: "round",
2473
+ strokeLinejoin: "round",
2474
+ children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
2475
+ }), /* @__PURE__ */ i("span", { className: G.dash })]
2476
+ }),
2477
+ (t || n) && /* @__PURE__ */ a("span", {
2478
+ className: G.text,
2479
+ children: [t && /* @__PURE__ */ i("span", {
2480
+ className: G.text__label,
2481
+ children: t
2482
+ }), n && /* @__PURE__ */ i("span", {
2483
+ className: G.text__description,
2484
+ children: n
2485
+ })]
2486
+ })
2487
+ ]
2488
+ });
2489
+ });
2490
+ Qt.displayName = "Checkbox";
2491
+ var K = {
2492
+ item: "_item_1hp9t_2",
2493
+ "item--hover": "_item--hover_1hp9t_12",
2494
+ "item--active": "_item--active_1hp9t_13",
2495
+ item__avatar: "_item__avatar_1hp9t_16",
2496
+ item__presence: "_item__presence_1hp9t_17",
2497
+ item__body: "_item__body_1hp9t_22",
2498
+ item__row: "_item__row_1hp9t_23",
2499
+ item__name: "_item__name_1hp9t_24",
2500
+ "item--unread": "_item--unread_1hp9t_28",
2501
+ item__mute: "_item__mute_1hp9t_29",
2502
+ item__time: "_item__time_1hp9t_30",
2503
+ item__preview: "_item__preview_1hp9t_31",
2504
+ item__typing: "_item__typing_1hp9t_36",
2505
+ item__badge: "_item__badge_1hp9t_37"
2506
+ }, $t = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
2507
+ role: "button",
2508
+ tabIndex: 0,
2509
+ onClick: l,
2510
+ onKeyDown: (e) => {
2511
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l?.());
2512
+ },
2513
+ "aria-current": e === "active" || void 0,
2514
+ className: [
2515
+ K.item,
2516
+ K[`item--${e}`],
2517
+ u ?? ""
2518
+ ].filter(Boolean).join(" "),
2519
+ children: [/* @__PURE__ */ a("span", {
2520
+ className: K.item__avatar,
2521
+ children: [t, e !== "muted" && /* @__PURE__ */ i("span", {
2522
+ className: K.item__presence,
2523
+ "aria-hidden": "true"
2524
+ })]
2525
+ }), /* @__PURE__ */ a("span", {
2526
+ className: K.item__body,
2527
+ children: [/* @__PURE__ */ a("span", {
2528
+ className: K.item__row,
2529
+ children: [
2530
+ /* @__PURE__ */ i("span", {
2531
+ className: K.item__name,
2532
+ children: n
2533
+ }),
2534
+ e === "muted" && /* @__PURE__ */ i(s, {
2535
+ size: 12,
2536
+ strokeWidth: D(12),
2537
+ className: K.item__mute,
2538
+ "aria-hidden": "true"
2539
+ }),
2540
+ r && /* @__PURE__ */ i("span", {
2541
+ className: K.item__time,
2542
+ children: r
2543
+ })
2544
+ ]
2545
+ }), /* @__PURE__ */ a("span", {
2546
+ className: K.item__row,
2547
+ children: [e === "typing" ? /* @__PURE__ */ i("span", {
2548
+ className: K.item__typing,
2549
+ children: "typing..."
2550
+ }) : /* @__PURE__ */ i("span", {
2551
+ className: K.item__preview,
2552
+ children: o
2553
+ }), e === "unread" && c != null && /* @__PURE__ */ i("span", {
2554
+ className: K.item__badge,
2555
+ children: c
2556
+ })]
2557
+ })]
2558
+ })]
2559
+ }), en = {
2560
+ empty: "_empty_15v2t_2",
2561
+ empty__chip: "_empty__chip_15v2t_12",
2562
+ "empty__chip--error": "_empty__chip--error_15v2t_22",
2563
+ empty__title: "_empty__title_15v2t_23",
2564
+ empty__desc: "_empty__desc_15v2t_31",
2565
+ empty__action: "_empty__action_15v2t_39"
2566
+ }, tn = {
2567
+ "no-data": {
2568
+ icon: /* @__PURE__ */ i(x, {
2569
+ size: 18,
2570
+ strokeWidth: D(18)
2571
+ }),
2572
+ title: "No data yet",
2573
+ description: "Records will appear here once they are added."
2574
+ },
2575
+ "no-results": {
2576
+ icon: /* @__PURE__ */ i(ee, {
2577
+ size: 18,
2578
+ strokeWidth: D(18)
2579
+ }),
2580
+ title: "No results found",
2581
+ description: "Try adjusting your search or removing filters."
2582
+ },
2583
+ error: {
2584
+ icon: /* @__PURE__ */ i(m, {
2585
+ size: 18,
2586
+ strokeWidth: D(18)
2587
+ }),
2588
+ title: "Couldn't load data",
2589
+ description: "Something went wrong while fetching records."
2590
+ }
2591
+ }, nn = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
2592
+ let l = tn[e];
2593
+ return /* @__PURE__ */ a("div", {
2594
+ className: [en.empty, c ?? ""].filter(Boolean).join(" "),
2595
+ role: "status",
2596
+ children: [
2597
+ /* @__PURE__ */ i("span", {
2598
+ className: [en.empty__chip, en[`empty__chip--${e}`]].join(" "),
2599
+ "aria-hidden": "true",
2600
+ children: s ?? l.icon
2601
+ }),
2602
+ /* @__PURE__ */ i("p", {
2603
+ className: en.empty__title,
2604
+ children: t ?? l.title
2605
+ }),
2606
+ /* @__PURE__ */ i("p", {
2607
+ className: en.empty__desc,
2608
+ children: n ?? l.description
2609
+ }),
2610
+ r && /* @__PURE__ */ i("button", {
2611
+ type: "button",
2612
+ className: en.empty__action,
2613
+ onClick: o,
2614
+ children: r
2615
+ })
2616
+ ]
2617
+ });
2618
+ }, rn = {
2619
+ chip: "_chip_rpkox_2",
2620
+ chip__lead: "_chip__lead_rpkox_20",
2621
+ chip__trail: "_chip__trail_rpkox_20",
2622
+ "chip--active": "_chip--active_rpkox_22",
2623
+ chip__remove: "_chip__remove_rpkox_29",
2624
+ "chip--add": "_chip--add_rpkox_38"
2625
+ }, an = ({ type: e = "default", children: t, onClick: n, onRemove: r, className: o }) => /* @__PURE__ */ a("button", {
2626
+ type: "button",
2627
+ onClick: n,
2628
+ className: [
2629
+ rn.chip,
2630
+ rn[`chip--${e}`],
2631
+ o ?? ""
2632
+ ].filter(Boolean).join(" "),
2633
+ children: [
2634
+ e === "add" && /* @__PURE__ */ i(E, {
2635
+ size: 14,
2636
+ strokeWidth: D(14),
2637
+ className: rn.chip__lead,
2638
+ "aria-hidden": "true"
2639
+ }),
2640
+ /* @__PURE__ */ i("span", {
2641
+ className: rn.chip__label,
2642
+ children: t
2643
+ }),
2644
+ e === "default" && /* @__PURE__ */ i(d, {
2645
+ size: 14,
2646
+ strokeWidth: D(14),
2647
+ className: rn.chip__trail,
2648
+ "aria-hidden": "true"
2649
+ }),
2650
+ e === "active" && /* @__PURE__ */ i("span", {
2651
+ role: "button",
2652
+ "aria-label": "Remove filter",
2653
+ className: rn.chip__remove,
2654
+ onClick: (e) => {
2655
+ e.stopPropagation(), r?.();
2656
+ },
2657
+ children: /* @__PURE__ */ i(ce, {
2658
+ size: 14,
2659
+ strokeWidth: D(14),
2660
+ "aria-hidden": "true"
2661
+ })
2662
+ })
2663
+ ]
2664
+ }), q = {
2665
+ field: "_field_14s0o_10",
2666
+ field__label: "_field__label_14s0o_18",
2667
+ field__description: "_field__description_14s0o_26",
2668
+ field__error: "_field__error_14s0o_31",
2669
+ input: "_input_14s0o_38",
2670
+ "input--sm": "_input--sm_14s0o_49",
2671
+ "input--md": "_input--md_14s0o_50",
2672
+ "input--lg": "_input--lg_14s0o_51",
2673
+ "input--error": "_input--error_14s0o_60",
2674
+ "input--disabled": "_input--disabled_14s0o_67",
2675
+ input__control: "_input__control_14s0o_74",
2676
+ input__icon: "_input__icon_14s0o_103",
2677
+ "input--unstyled": "_input--unstyled_14s0o_113"
2678
+ }, on = 16, sn = (t) => e.isValidElement(t) ? e.cloneElement(t, {
2679
+ size: on,
2680
+ strokeWidth: D(on)
2681
+ }) : t, cn = e.forwardRef(({ label: t, description: n, error: r, size: o = "md", unstyled: s, leadingIcon: c, trailingIcon: l, disabled: u, id: d, className: f, ...p }, m) => {
2682
+ let h = e.useId(), g = d ?? h, _ = !!r;
2683
+ return /* @__PURE__ */ a("div", {
2684
+ className: [q.field, f ?? ""].filter(Boolean).join(" "),
2685
+ children: [
2686
+ t && /* @__PURE__ */ i("label", {
2687
+ htmlFor: g,
2688
+ className: q.field__label,
2689
+ children: t
2690
+ }),
2691
+ /* @__PURE__ */ a("div", {
2692
+ className: [
2693
+ q.input,
2694
+ q[`input--${o}`],
2695
+ _ ? q["input--error"] : "",
2696
+ u ? q["input--disabled"] : ""
2697
+ ].filter(Boolean).join(" "),
2698
+ children: [
2699
+ c && /* @__PURE__ */ i("span", {
2700
+ className: q.input__icon,
2701
+ "aria-hidden": "true",
2702
+ children: sn(c)
2703
+ }),
2704
+ /* @__PURE__ */ i("input", {
2705
+ ref: m,
2706
+ id: g,
2707
+ className: q.input__control,
2708
+ disabled: u,
2709
+ "aria-invalid": _ || void 0,
2710
+ "aria-describedby": n || r ? `${g}-desc` : void 0,
2711
+ ...p
2712
+ }),
2713
+ l && /* @__PURE__ */ i("span", {
2714
+ className: q.input__icon,
2715
+ "aria-hidden": "true",
2716
+ children: sn(l)
2717
+ })
2718
+ ]
2719
+ }),
2720
+ (n || r) && /* @__PURE__ */ i("span", {
2721
+ id: `${g}-desc`,
2722
+ className: _ ? q.field__error : q.field__description,
2723
+ children: r || n
2724
+ })
2725
+ ]
2726
+ });
2727
+ });
2728
+ cn.displayName = "Input";
2729
+ var J = {
2730
+ row: "_row_1q1m5_2",
2731
+ "row--sent": "_row--sent_1q1m5_3",
2732
+ row__avatar: "_row__avatar_1q1m5_4",
2733
+ col: "_col_1q1m5_5",
2734
+ meta: "_meta_1q1m5_7",
2735
+ meta__name: "_meta__name_1q1m5_8",
2736
+ meta__time: "_meta__time_1q1m5_9",
2737
+ bubble: "_bubble_1q1m5_11",
2738
+ "bubble--received": "_bubble--received_1q1m5_17",
2739
+ "bubble--sent": "_bubble--sent_1q1m5_18",
2740
+ bubble__text: "_bubble__text_1q1m5_19",
2741
+ bubble__image: "_bubble__image_1q1m5_20",
2742
+ file: "_file_1q1m5_23",
2743
+ file__icon: "_file__icon_1q1m5_24",
2744
+ file__meta: "_file__meta_1q1m5_25",
2745
+ file__name: "_file__name_1q1m5_26",
2746
+ file__size: "_file__size_1q1m5_27",
2747
+ file__dl: "_file__dl_1q1m5_28",
2748
+ foot: "_foot_1q1m5_30",
2749
+ foot__time: "_foot__time_1q1m5_31",
2750
+ foot__receipt: "_foot__receipt_1q1m5_32",
2751
+ system: "_system_1q1m5_34",
2752
+ system__pill: "_system__pill_1q1m5_35"
2753
+ }, ln = ({ type: e = "received", content: t = "text", avatar: n, authorName: o, timestamp: s, children: c, image: l, fileName: d, fileSize: f, reactions: p, read: m, className: h }) => {
2754
+ if (e === "system") return /* @__PURE__ */ i("div", {
2755
+ className: [J.system, h ?? ""].filter(Boolean).join(" "),
2756
+ children: /* @__PURE__ */ i("span", {
2757
+ className: J.system__pill,
2758
+ children: c
2759
+ })
2760
+ });
2761
+ let _ = e === "sent";
2762
+ return /* @__PURE__ */ a("div", {
2763
+ className: [
2764
+ J.row,
2765
+ _ ? J["row--sent"] : J["row--received"],
2766
+ h ?? ""
2767
+ ].filter(Boolean).join(" "),
2768
+ children: [!_ && n && /* @__PURE__ */ i("span", {
2769
+ className: J.row__avatar,
2770
+ children: n
2771
+ }), /* @__PURE__ */ a("div", {
2772
+ className: J.col,
2773
+ children: [
2774
+ !_ && (o || s) && /* @__PURE__ */ a("div", {
2775
+ className: J.meta,
2776
+ children: [o && /* @__PURE__ */ i("span", {
2777
+ className: J.meta__name,
2778
+ children: o
2779
+ }), s && /* @__PURE__ */ i("span", {
2780
+ className: J.meta__time,
2781
+ children: s
2782
+ })]
2783
+ }),
2784
+ /* @__PURE__ */ a("div", {
2785
+ className: [J.bubble, _ ? J["bubble--sent"] : J["bubble--received"]].join(" "),
2786
+ children: [
2787
+ t === "image" && /* @__PURE__ */ i("div", {
2788
+ className: J.bubble__image,
2789
+ children: l
2790
+ }),
2791
+ t === "file" && /* @__PURE__ */ a("div", {
2792
+ className: J.file,
2793
+ children: [
2794
+ /* @__PURE__ */ i(y, {
2795
+ size: 18,
2796
+ strokeWidth: D(18),
2797
+ className: J.file__icon,
2798
+ "aria-hidden": "true"
2799
+ }),
2800
+ /* @__PURE__ */ a("span", {
2801
+ className: J.file__meta,
2802
+ children: [/* @__PURE__ */ i("span", {
2803
+ className: J.file__name,
2804
+ children: d
2805
+ }), /* @__PURE__ */ i("span", {
2806
+ className: J.file__size,
2807
+ children: f
2808
+ })]
2809
+ }),
2810
+ /* @__PURE__ */ i(g, {
2811
+ size: 16,
2812
+ strokeWidth: D(16),
2813
+ className: J.file__dl,
2814
+ "aria-hidden": "true"
2815
+ })
2816
+ ]
2817
+ }),
2818
+ c && /* @__PURE__ */ i("span", {
2819
+ className: J.bubble__text,
2820
+ children: c
2821
+ })
2822
+ ]
2823
+ }),
2824
+ /* @__PURE__ */ a("div", {
2825
+ className: J.foot,
2826
+ children: [!_ && p, _ && /* @__PURE__ */ a(r, { children: [s && /* @__PURE__ */ i("span", {
2827
+ className: J.foot__time,
2828
+ children: s
2829
+ }), m && /* @__PURE__ */ i(u, {
2830
+ size: 13,
2831
+ strokeWidth: D(13),
2832
+ className: J.foot__receipt,
2833
+ "aria-hidden": "true"
2834
+ })] })]
2835
+ })
2836
+ ]
2837
+ })]
2838
+ });
2839
+ }, un = {
2840
+ pagination: "_pagination_on2nb_2",
2841
+ page: "_page_on2nb_9",
2842
+ arrow: "_arrow_on2nb_9",
2843
+ "page--active": "_page--active_on2nb_26",
2844
+ ellipsis: "_ellipsis_on2nb_40"
2845
+ };
2846
+ //#endregion
2847
+ //#region src/components/Pagination/Pagination.tsx
2848
+ function dn(e, t, n) {
2849
+ let r = t, i = Math.min(t + n, e), a = /* @__PURE__ */ new Set([1, e]);
2850
+ for (let e = r; e <= i; e++) a.add(e);
2851
+ let o = Array.from(a).sort((e, t) => e - t), s = [];
2852
+ return o.forEach((e, t) => {
2853
+ t > 0 && e - o[t - 1] > 1 && s.push("ellipsis"), s.push(e);
2854
+ }), s;
2855
+ }
2856
+ var fn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o }) => {
2857
+ let s = dn(e, t, r);
2858
+ return /* @__PURE__ */ a("nav", {
2859
+ className: [un.pagination, o ?? ""].filter(Boolean).join(" "),
2860
+ "aria-label": "Pagination",
2861
+ children: [
2862
+ /* @__PURE__ */ i("button", {
2863
+ type: "button",
2864
+ className: un.arrow,
2865
+ disabled: t <= 1,
2866
+ onClick: () => n(t - 1),
2867
+ "aria-label": "Previous page",
2868
+ children: /* @__PURE__ */ i(f, {
2869
+ size: 16,
2870
+ strokeWidth: D(16)
2871
+ })
2872
+ }),
2873
+ s.map((e, r) => e === "ellipsis" ? /* @__PURE__ */ i("span", {
2874
+ className: un.ellipsis,
2875
+ "aria-hidden": "true",
2876
+ children: "…"
2877
+ }, `e${r}`) : /* @__PURE__ */ i("button", {
2878
+ type: "button",
2879
+ className: [un.page, e === t ? un["page--active"] : ""].filter(Boolean).join(" "),
2880
+ "aria-current": e === t ? "page" : void 0,
2881
+ onClick: () => n(e),
2882
+ children: e
2883
+ }, e)),
2884
+ /* @__PURE__ */ i("button", {
2885
+ type: "button",
2886
+ className: un.arrow,
2887
+ disabled: t >= e,
2888
+ onClick: () => n(t + 1),
2889
+ "aria-label": "Next page",
2890
+ children: /* @__PURE__ */ i(p, {
2891
+ size: 16,
2892
+ strokeWidth: D(16)
2893
+ })
2894
+ })
2895
+ ]
2896
+ });
2897
+ }, pn = {
2898
+ track: "_track_13bev_2",
2899
+ segment: "_segment_13bev_12",
2900
+ "segment--active": "_segment--active_13bev_32",
2901
+ thumb: "_thumb_13bev_38",
2902
+ "thumb--animated": "_thumb--animated_13bev_52",
2903
+ "track--fullWidth": "_track--fullWidth_13bev_58"
2904
+ }, mn = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
2905
+ let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
2906
+ l || d(e), o?.(e);
2907
+ }, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
2908
+ return e.useLayoutEffect(() => {
2909
+ let e = () => {
2910
+ let e = h.current[f], t = m.current;
2911
+ !e || !t || _({
2912
+ left: e.offsetLeft,
2913
+ width: e.offsetWidth
2914
+ });
2915
+ };
2916
+ e();
2917
+ let t = window.requestAnimationFrame(() => y(!0)), n = new ResizeObserver(e);
2918
+ return m.current && n.observe(m.current), () => {
2919
+ window.cancelAnimationFrame(t), n.disconnect();
2920
+ };
2921
+ }, [f, t]), /* @__PURE__ */ a("div", {
2922
+ ref: m,
2923
+ role: "tablist",
2924
+ className: [
2925
+ pn.track,
2926
+ s ? pn["track--fullWidth"] : "",
2927
+ c ?? ""
2928
+ ].filter(Boolean).join(" "),
2929
+ children: [g && /* @__PURE__ */ i("span", {
2930
+ "aria-hidden": "true",
2931
+ className: [pn.thumb, v ? pn["thumb--animated"] : ""].filter(Boolean).join(" "),
2932
+ style: {
2933
+ transform: `translateX(${g.left}px)`,
2934
+ width: g.width
2935
+ }
2936
+ }), t.map((e) => {
2937
+ let t = e.value === f;
2938
+ return /* @__PURE__ */ i("button", {
2939
+ ref: (t) => {
2940
+ h.current[e.value] = t;
2941
+ },
2942
+ role: "tab",
2943
+ type: "button",
2944
+ "aria-selected": t,
2945
+ className: [pn.segment, t ? pn["segment--active"] : ""].filter(Boolean).join(" "),
2946
+ onClick: () => p(e.value),
2947
+ children: e.label
2948
+ }, e.value);
2949
+ })]
2950
+ });
2951
+ }, Y = {
2952
+ field: "_field_wvw9t_6",
2953
+ field__label: "_field__label_wvw9t_8",
2954
+ field__description: "_field__description_wvw9t_9",
2955
+ field__error: "_field__error_wvw9t_10",
2956
+ select: "_select_wvw9t_12",
2957
+ "select--sm": "_select--sm_wvw9t_23",
2958
+ "select--md": "_select--md_wvw9t_24",
2959
+ "select--lg": "_select--lg_wvw9t_25",
2960
+ "select--open": "_select--open_wvw9t_27",
2961
+ "select--error": "_select--error_wvw9t_34",
2962
+ "select--disabled": "_select--disabled_wvw9t_39",
2963
+ select__control: "_select__control_wvw9t_46",
2964
+ select__chevron: "_select__chevron_wvw9t_67",
2965
+ anchor: "_anchor_wvw9t_78",
2966
+ select__value: "_select__value_wvw9t_82",
2967
+ "select__value--placeholder": "_select__value--placeholder_wvw9t_92",
2968
+ "select__chevron--open": "_select__chevron--open_wvw9t_95",
2969
+ panel: "_panel_wvw9t_106",
2970
+ "panel--entering": "_panel--entering_wvw9t_131",
2971
+ "sakani-select-panel-in": "_sakani-select-panel-in_wvw9t_1",
2972
+ "panel--exiting": "_panel--exiting_wvw9t_132",
2973
+ "sakani-select-panel-out": "_sakani-select-panel-out_wvw9t_1",
2974
+ option: "_option_wvw9t_143",
2975
+ "option--disabled": "_option--disabled_wvw9t_157",
2976
+ "option--active": "_option--active_wvw9t_158",
2977
+ "option--selected": "_option--selected_wvw9t_159",
2978
+ option__label: "_option__label_wvw9t_161",
2979
+ option__check: "_option__check_wvw9t_162"
2980
+ }, hn = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
2981
+ let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, E] = e.useState(!1), [ee, te] = e.useState(0), ne = e.useRef(null), re = e.useRef(null), ie = e.useRef(null), [ae, oe] = e.useState(null);
2982
+ e.useEffect(() => {
2983
+ C && E(!0);
2984
+ }, [C]), e.useLayoutEffect(() => {
2985
+ if (!C) return;
2986
+ let e = () => {
2987
+ let e = re.current;
2988
+ if (!e) return;
2989
+ let t = e.getBoundingClientRect();
2990
+ oe({
2991
+ top: t.bottom + 4,
2992
+ left: t.left,
2993
+ width: t.width
2994
+ });
2995
+ };
2996
+ return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
2997
+ window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
2998
+ };
2999
+ }, [C]), e.useEffect(() => {
3000
+ if (!C) return;
3001
+ let e = (e) => {
3002
+ let t = e.target;
3003
+ ne.current?.contains(t) || ie.current?.contains(t) || w(!1);
3004
+ };
3005
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
3006
+ }, [C]), e.useEffect(() => {
3007
+ if (!C) return;
3008
+ let e = c.findIndex((e) => e.value === x);
3009
+ te(e >= 0 ? e : 0);
3010
+ }, [
3011
+ C,
3012
+ c,
3013
+ x
3014
+ ]);
3015
+ let se = (e) => {
3016
+ e.disabled || (l === void 0 && b(e.value), d?.(e.value), w(!1));
3017
+ }, ce = (e) => {
3018
+ te((t) => {
3019
+ let n = t;
3020
+ for (let t = 0; t < c.length; t += 1) if (n = (n + e + c.length) % c.length, !c[n]?.disabled) return n;
3021
+ return t;
3022
+ });
3023
+ };
3024
+ return /* @__PURE__ */ a("div", {
3025
+ className: [Y.field, m ?? ""].filter(Boolean).join(" "),
3026
+ ref: ne,
3027
+ children: [
3028
+ t && /* @__PURE__ */ i("label", {
3029
+ htmlFor: g,
3030
+ className: Y.field__label,
3031
+ children: t
3032
+ }),
3033
+ /* @__PURE__ */ a("div", {
3034
+ className: Y.anchor,
3035
+ children: [/* @__PURE__ */ a("div", {
3036
+ ref: re,
3037
+ id: g,
3038
+ role: "combobox",
3039
+ tabIndex: f ? -1 : 0,
3040
+ "aria-haspopup": "listbox",
3041
+ "aria-expanded": C,
3042
+ "aria-controls": _,
3043
+ "aria-invalid": v || void 0,
3044
+ "aria-disabled": f || void 0,
3045
+ "aria-activedescendant": C ? `${_}-opt-${ee}` : void 0,
3046
+ onClick: () => !f && w((e) => !e),
3047
+ onKeyDown: (e) => {
3048
+ if (!f) {
3049
+ if (!C && (e.key === "Enter" || e.key === " " || e.key === "ArrowDown")) {
3050
+ e.preventDefault(), w(!0);
3051
+ return;
3052
+ }
3053
+ if (C) if (e.key === "ArrowDown") e.preventDefault(), ce(1);
3054
+ else if (e.key === "ArrowUp") e.preventDefault(), ce(-1);
3055
+ else if (e.key === "Home") e.preventDefault(), te(0);
3056
+ else if (e.key === "End") e.preventDefault(), te(c.length - 1);
3057
+ else if (e.key === "Enter" || e.key === " ") {
3058
+ e.preventDefault();
3059
+ let t = c[ee];
3060
+ t && se(t);
3061
+ } else e.key === "Escape" && (e.preventDefault(), w(!1));
3062
+ }
3063
+ },
3064
+ className: [
3065
+ Y.select,
3066
+ Y[`select--${o}`],
3067
+ C ? Y["select--open"] : "",
3068
+ v ? Y["select--error"] : "",
3069
+ f ? Y["select--disabled"] : ""
3070
+ ].filter(Boolean).join(" "),
3071
+ children: [/* @__PURE__ */ i("span", {
3072
+ className: [Y.select__value, S ? "" : Y["select__value--placeholder"]].filter(Boolean).join(" "),
3073
+ children: S ? S.label : s
3074
+ }), /* @__PURE__ */ i("span", {
3075
+ className: [Y.select__chevron, C ? Y["select__chevron--open"] : ""].filter(Boolean).join(" "),
3076
+ "aria-hidden": "true",
3077
+ children: /* @__PURE__ */ i("svg", {
3078
+ width: 16,
3079
+ height: 16,
3080
+ viewBox: "0 0 24 24",
3081
+ fill: "none",
3082
+ stroke: "currentColor",
3083
+ strokeWidth: D(16),
3084
+ strokeLinecap: "round",
3085
+ strokeLinejoin: "round",
3086
+ children: /* @__PURE__ */ i("path", { d: "m6 9 6 6 6-6" })
3087
+ })
3088
+ })]
3089
+ }), T && ae && me(/* @__PURE__ */ i("div", {
3090
+ ref: ie,
3091
+ id: _,
3092
+ role: "listbox",
3093
+ className: [Y.panel, C ? Y["panel--entering"] : Y["panel--exiting"]].filter(Boolean).join(" "),
3094
+ style: {
3095
+ position: "fixed",
3096
+ top: ae.top,
3097
+ left: ae.left,
3098
+ width: ae.width
3099
+ },
3100
+ onAnimationEnd: () => {
3101
+ C || E(!1);
3102
+ },
3103
+ children: c.map((e, t) => /* @__PURE__ */ a("div", {
3104
+ id: `${_}-opt-${t}`,
3105
+ role: "option",
3106
+ "aria-selected": e.value === x,
3107
+ "aria-disabled": e.disabled || void 0,
3108
+ onMouseEnter: () => !e.disabled && te(t),
3109
+ onClick: () => se(e),
3110
+ className: [
3111
+ Y.option,
3112
+ t === ee ? Y["option--active"] : "",
3113
+ e.value === x ? Y["option--selected"] : "",
3114
+ e.disabled ? Y["option--disabled"] : ""
3115
+ ].filter(Boolean).join(" "),
3116
+ children: [/* @__PURE__ */ i("span", {
3117
+ className: Y.option__label,
3118
+ children: e.label
3119
+ }), e.value === x && /* @__PURE__ */ i("span", {
3120
+ className: Y.option__check,
3121
+ "aria-hidden": "true",
3122
+ children: /* @__PURE__ */ i("svg", {
3123
+ width: 16,
3124
+ height: 16,
3125
+ viewBox: "0 0 24 24",
3126
+ fill: "none",
3127
+ stroke: "currentColor",
3128
+ strokeWidth: 2,
3129
+ strokeLinecap: "round",
3130
+ strokeLinejoin: "round",
3131
+ children: /* @__PURE__ */ i("path", { d: "M20 6 9 17l-5-5" })
3132
+ })
3133
+ })]
3134
+ }, e.value))
3135
+ }), document.body)]
3136
+ }),
3137
+ (n || r) && /* @__PURE__ */ i("span", {
3138
+ className: v ? Y.field__error : Y.field__description,
3139
+ children: r || n
3140
+ })
3141
+ ]
3142
+ });
3143
+ }, gn = {
3144
+ sidebar: "_sidebar_14oy8_4",
3145
+ "sidebar--collapsed": "_sidebar--collapsed_14oy8_20"
3146
+ }, _n = ({ collapsed: e = !1, children: t, className: n }) => /* @__PURE__ */ i("nav", {
3147
+ className: [
3148
+ gn.sidebar,
3149
+ e ? gn["sidebar--collapsed"] : "",
3150
+ n ?? ""
3151
+ ].filter(Boolean).join(" "),
3152
+ "data-collapsed": e,
3153
+ children: t
3154
+ }), vn = { divider: "_divider_18c5j_1" }, yn = () => /* @__PURE__ */ i("div", {
3155
+ className: vn.divider,
3156
+ role: "separator"
3157
+ }), bn = { groupLabel: "_groupLabel_62q1j_2" }, xn = ({ children: e }) => /* @__PURE__ */ i("div", {
3158
+ className: bn.groupLabel,
3159
+ children: e
3160
+ }), X = {
3161
+ header: "_header_1wyz2_2",
3162
+ "header--collapsed": "_header--collapsed_1wyz2_12",
3163
+ header__logoWrap: "_header__logoWrap_1wyz2_15",
3164
+ header__logo: "_header__logo_1wyz2_14",
3165
+ header__logoContent: "_header__logoContent_1wyz2_43",
3166
+ header__logoIcon: "_header__logoIcon_1wyz2_44",
3167
+ header__text: "_header__text_1wyz2_50",
3168
+ "header__text--collapsed": "_header__text--collapsed_1wyz2_61",
3169
+ header__title: "_header__title_1wyz2_65",
3170
+ header__subtitle: "_header__subtitle_1wyz2_66",
3171
+ header__toggle: "_header__toggle_1wyz2_67"
3172
+ }, Sn = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = w }) => /* @__PURE__ */ a("div", {
3173
+ className: [X.header, o ? X["header--collapsed"] : ""].filter(Boolean).join(" "),
3174
+ children: [
3175
+ r && (o && e === "brand-toggle" && s ? /* @__PURE__ */ i("button", {
3176
+ type: "button",
3177
+ className: X.header__logoWrap,
3178
+ onClick: s,
3179
+ "aria-label": "Expand sidebar",
3180
+ children: /* @__PURE__ */ a("span", {
3181
+ className: X.header__logo,
3182
+ children: [/* @__PURE__ */ i("span", {
3183
+ className: X.header__logoContent,
3184
+ children: r
3185
+ }), /* @__PURE__ */ i("span", {
3186
+ className: X.header__logoIcon,
3187
+ "aria-hidden": "true",
3188
+ children: /* @__PURE__ */ i(c, {
3189
+ size: 16,
3190
+ strokeWidth: D(16)
3191
+ })
3192
+ })]
3193
+ })
3194
+ }) : /* @__PURE__ */ i("span", {
3195
+ className: X.header__logoWrap,
3196
+ "aria-hidden": "true",
3197
+ children: /* @__PURE__ */ i("span", {
3198
+ className: X.header__logo,
3199
+ children: r
3200
+ })
3201
+ })),
3202
+ /* @__PURE__ */ a("span", {
3203
+ className: [X.header__text, o ? X["header__text--collapsed"] : ""].filter(Boolean).join(" "),
3204
+ children: [/* @__PURE__ */ i("span", {
3205
+ className: X.header__title,
3206
+ children: t
3207
+ }), (e === "workspace" || n) && n && /* @__PURE__ */ i("span", {
3208
+ className: X.header__subtitle,
3209
+ children: n
3210
+ })]
3211
+ }),
3212
+ !o && e === "brand-toggle" && /* @__PURE__ */ i("button", {
3213
+ type: "button",
3214
+ className: X.header__toggle,
3215
+ onClick: s,
3216
+ "aria-label": "Collapse sidebar",
3217
+ children: /* @__PURE__ */ i(c, {
3218
+ size: 18,
3219
+ strokeWidth: D(18)
3220
+ })
3221
+ })
3222
+ ]
3223
+ }), Z = {
3224
+ item: "_item_1k6es_5",
3225
+ "item--disabled": "_item--disabled_1k6es_29",
3226
+ "item--active": "_item--active_1k6es_29",
3227
+ "item--active-flat": "_item--active-flat_1k6es_29",
3228
+ item__icon: "_item__icon_1k6es_30",
3229
+ item__bar: "_item__bar_1k6es_41",
3230
+ item__chevron: "_item__chevron_1k6es_70",
3231
+ item__badge: "_item__badge_1k6es_72",
3232
+ "item--collapsed": "_item--collapsed_1k6es_88",
3233
+ item__label: "_item__label_1k6es_114",
3234
+ "item__label--collapsed": "_item__label--collapsed_1k6es_123"
3235
+ }, Cn = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, onClick: d, href: f, nativeTooltip: m = !0 }) => {
3236
+ let h = n && (u || o), g = n && !u && !o, _ = [
3237
+ Z.item,
3238
+ h ? Z["item--active"] : "",
3239
+ g ? Z["item--active-flat"] : "",
3240
+ s ? Z["item--disabled"] : "",
3241
+ u ? Z["item--collapsed"] : ""
3242
+ ].filter(Boolean).join(" "), v = /* @__PURE__ */ a(r, { children: [
3243
+ /* @__PURE__ */ i("span", {
3244
+ className: Z.item__bar,
3245
+ "aria-hidden": "true"
3246
+ }),
3247
+ e && /* @__PURE__ */ i("span", {
3248
+ className: Z.item__icon,
3249
+ "aria-hidden": "true",
3250
+ children: /* @__PURE__ */ i(e, {
3251
+ size: 18,
3252
+ strokeWidth: D(18)
3253
+ })
3254
+ }),
3255
+ /* @__PURE__ */ i("span", {
3256
+ className: [Z.item__label, u ? Z["item__label--collapsed"] : ""].filter(Boolean).join(" "),
3257
+ children: t
3258
+ }),
3259
+ !u && c && /* @__PURE__ */ i("span", {
3260
+ className: Z.item__badge,
3261
+ children: c
3262
+ }),
3263
+ !u && l && /* @__PURE__ */ i("span", {
3264
+ className: Z.item__chevron,
3265
+ "aria-hidden": "true",
3266
+ children: /* @__PURE__ */ i(p, {
3267
+ size: 16,
3268
+ strokeWidth: D(16)
3269
+ })
3270
+ })
3271
+ ] }), y = {
3272
+ className: _,
3273
+ title: u && m ? t : void 0,
3274
+ "aria-label": u ? t : void 0,
3275
+ "aria-current": n ? "page" : void 0
3276
+ };
3277
+ return f && !s ? /* @__PURE__ */ i("a", {
3278
+ href: f,
3279
+ ...y,
3280
+ children: v
3281
+ }) : /* @__PURE__ */ i("button", {
3282
+ type: "button",
3283
+ disabled: s,
3284
+ onClick: d,
3285
+ ...y,
3286
+ children: v
3287
+ });
3288
+ }, wn = {
3289
+ subItem: "_subItem_b3cst_2",
3290
+ "subItem--disabled": "_subItem--disabled_b3cst_24",
3291
+ "subItem--active": "_subItem--active_b3cst_25",
3292
+ subItem__dot: "_subItem__dot_b3cst_29",
3293
+ subItem__label: "_subItem__label_b3cst_39"
3294
+ }, Tn = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
3295
+ let c = {
3296
+ className: [
3297
+ wn.subItem,
3298
+ t ? wn["subItem--active"] : "",
3299
+ n ? wn["subItem--disabled"] : ""
3300
+ ].filter(Boolean).join(" "),
3301
+ "aria-current": t ? "page" : void 0
3302
+ }, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
3303
+ className: wn.subItem__dot,
3304
+ "aria-hidden": "true"
3305
+ }), /* @__PURE__ */ i("span", {
3306
+ className: wn.subItem__label,
3307
+ children: e
3308
+ })] });
3309
+ return s && !n ? /* @__PURE__ */ i("a", {
3310
+ href: s,
3311
+ ...c,
3312
+ children: l
3313
+ }) : /* @__PURE__ */ i("button", {
3314
+ type: "button",
3315
+ disabled: n,
3316
+ onClick: o,
3317
+ ...c,
3318
+ children: l
3319
+ });
3320
+ }, En = {
3321
+ skeleton: "_skeleton_94hr3_9",
3322
+ "skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
3323
+ "skeleton--text": "_skeleton--text_94hr3_22",
3324
+ "skeleton--rect": "_skeleton--rect_94hr3_29",
3325
+ "skeleton--circle": "_skeleton--circle_94hr3_35"
3326
+ }, Dn = ({ variant: e = "text", width: t, height: n, className: r }) => {
3327
+ let a = {};
3328
+ return t !== void 0 && (a.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (a.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ i("span", {
3329
+ "aria-hidden": "true",
3330
+ className: [
3331
+ En.skeleton,
3332
+ En[`skeleton--${e}`],
3333
+ r ?? ""
3334
+ ].filter(Boolean).join(" "),
3335
+ style: a
3336
+ });
3337
+ }, On = {
3338
+ field: "_field_drnb1_3",
3339
+ header: "_header_drnb1_4",
3340
+ label: "_label_drnb1_5",
3341
+ value: "_value_drnb1_6",
3342
+ slider: "_slider_drnb1_8"
3343
+ }, kn = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
3344
+ let h = e.useId(), g = u ?? h, _ = Number(s ?? c ?? r), [v, y] = e.useState(_), b = s === void 0 ? v : Number(s), x = (b - r) / (o - r) * 100;
3345
+ return /* @__PURE__ */ a("div", {
3346
+ className: [On.field, d ?? ""].filter(Boolean).join(" "),
3347
+ children: [(t || n) && /* @__PURE__ */ a("div", {
3348
+ className: On.header,
3349
+ children: [t && /* @__PURE__ */ i("label", {
3350
+ htmlFor: g,
3351
+ className: On.label,
3352
+ children: t
3353
+ }), n && /* @__PURE__ */ i("span", {
3354
+ className: On.value,
3355
+ children: b
3356
+ })]
3357
+ }), /* @__PURE__ */ i("input", {
3358
+ ref: m,
3359
+ id: g,
3360
+ type: "range",
3361
+ min: r,
3362
+ max: o,
3363
+ value: s,
3364
+ defaultValue: s === void 0 ? c : void 0,
3365
+ disabled: l,
3366
+ onChange: (e) => {
3367
+ s === void 0 && y(Number(e.target.value)), f?.(e);
3368
+ },
3369
+ className: On.slider,
3370
+ style: { "--pct": `${x}%` },
3371
+ ...p
3372
+ })]
3373
+ });
3374
+ });
3375
+ kn.displayName = "Slider";
3376
+ var Q = {
3377
+ wrap: "_wrap_okjfz_6",
3378
+ "wrap--bordered": "_wrap--bordered_okjfz_17",
3379
+ table: "_table_okjfz_22",
3380
+ headerRow: "_headerRow_okjfz_44",
3381
+ headerCell: "_headerCell_okjfz_45",
3382
+ bodyRow: "_bodyRow_okjfz_61",
3383
+ "bodyRow--selected": "_bodyRow--selected_okjfz_66",
3384
+ bodyCell: "_bodyCell_okjfz_68",
3385
+ checkCell: "_checkCell_okjfz_80",
3386
+ checkbox: "_checkbox_okjfz_104",
3387
+ checkbox__input: "_checkbox__input_okjfz_111",
3388
+ checkbox__box: "_checkbox__box_okjfz_113",
3389
+ checkbox__check: "_checkbox__check_okjfz_134",
3390
+ checkbox__dash: "_checkbox__dash_okjfz_141",
3391
+ stackedList: "_stackedList_okjfz_160",
3392
+ card: "_card_okjfz_167",
3393
+ "card--selected": "_card--selected_okjfz_177",
3394
+ card__field: "_card__field_okjfz_179",
3395
+ card__label: "_card__label_okjfz_187",
3396
+ card__value: "_card__value_okjfz_193",
3397
+ card__selectRow: "_card__selectRow_okjfz_203",
3398
+ "bodyRow--draggable": "_bodyRow--draggable_okjfz_213",
3399
+ "bodyRow--dragging": "_bodyRow--dragging_okjfz_215",
3400
+ "bodyRow--dropTarget": "_bodyRow--dropTarget_okjfz_216"
3401
+ }, An = 640;
3402
+ function jn(t) {
3403
+ let [n, r] = e.useState(!1);
3404
+ return e.useEffect(() => {
3405
+ if (t !== "auto") return;
3406
+ let e = window.matchMedia(`(max-width: ${An}px)`);
3407
+ r(e.matches);
3408
+ let n = (e) => r(e.matches);
3409
+ return e.addEventListener("change", n), () => e.removeEventListener("change", n);
3410
+ }, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
3411
+ }
3412
+ var Mn = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
3413
+ let s = e.useRef(null);
3414
+ return e.useEffect(() => {
3415
+ s.current && (s.current.indeterminate = !!n);
3416
+ }, [n]), /* @__PURE__ */ a("label", {
3417
+ className: Q.checkbox,
3418
+ children: [/* @__PURE__ */ i("input", {
3419
+ ref: s,
3420
+ type: "checkbox",
3421
+ checked: t,
3422
+ onChange: r,
3423
+ className: Q.checkbox__input,
3424
+ "aria-label": o
3425
+ }), /* @__PURE__ */ a("span", {
3426
+ className: Q.checkbox__box,
3427
+ "aria-hidden": "true",
3428
+ children: [/* @__PURE__ */ i("svg", {
3429
+ className: Q.checkbox__check,
3430
+ width: 12,
3431
+ height: 12,
3432
+ viewBox: "0 0 24 24",
3433
+ fill: "none",
3434
+ stroke: "currentColor",
3435
+ strokeWidth: 3,
3436
+ strokeLinecap: "round",
3437
+ strokeLinejoin: "round",
3438
+ children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
3439
+ }), /* @__PURE__ */ i("span", { className: Q.checkbox__dash })]
3440
+ })]
3441
+ });
3442
+ };
3443
+ function Nn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
3444
+ let m = jn(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
3445
+ h || _(e), s?.(e);
3446
+ }, b = n.length > 0 && v.length === n.length, x = v.length > 0 && !b, [S, C] = e.useState(null), [w, T] = e.useState(null), E = () => {
3447
+ if (S === null || w === null || S === w) {
3448
+ C(null), T(null);
3449
+ return;
3450
+ }
3451
+ let e = [...n], [t] = e.splice(S, 1);
3452
+ e.splice(w, 0, t), u?.(e), C(null), T(null);
3453
+ }, ee = () => y(b ? [] : n.map((e, t) => t)), te = (e) => y(v.includes(e) ? v.filter((t) => t !== e) : [...v, e]);
3454
+ return m === "stacked" ? /* @__PURE__ */ i("div", {
3455
+ className: [Q.stackedList, p ?? ""].filter(Boolean).join(" "),
3456
+ role: "list",
3457
+ children: n.map((e, n) => {
3458
+ let o = v.includes(n);
3459
+ return /* @__PURE__ */ a("div", {
3460
+ role: "listitem",
3461
+ className: [Q.card, o ? Q["card--selected"] : ""].filter(Boolean).join(" "),
3462
+ children: [r && /* @__PURE__ */ i("div", {
3463
+ className: Q.card__selectRow,
3464
+ children: /* @__PURE__ */ i(Mn, {
3465
+ checked: o,
3466
+ onChange: () => te(n),
3467
+ label: `Select row ${n + 1}`
3468
+ })
3469
+ }), t.map((t) => /* @__PURE__ */ a("div", {
3470
+ className: Q.card__field,
3471
+ children: [/* @__PURE__ */ i("span", {
3472
+ className: Q.card__label,
3473
+ children: t.header
3474
+ }), /* @__PURE__ */ i("span", {
3475
+ className: Q.card__value,
3476
+ children: t.render ? t.render(e) : String(e[t.key] ?? "")
3477
+ })]
3478
+ }, t.key))]
3479
+ }, c ? c(e, n) : n);
3480
+ })
3481
+ }) : /* @__PURE__ */ i("div", {
3482
+ className: [
3483
+ Q.wrap,
3484
+ d ? Q["wrap--bordered"] : "",
3485
+ p ?? ""
3486
+ ].filter(Boolean).join(" "),
3487
+ children: /* @__PURE__ */ a("table", {
3488
+ className: Q.table,
3489
+ children: [/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", {
3490
+ className: Q.headerRow,
3491
+ children: [r && /* @__PURE__ */ i("th", {
3492
+ className: Q.checkCell,
3493
+ children: /* @__PURE__ */ i(Mn, {
3494
+ checked: b,
3495
+ indeterminate: x,
3496
+ onChange: ee,
3497
+ label: "Select all rows"
3498
+ })
3499
+ }), t.map((e) => /* @__PURE__ */ i("th", {
3500
+ className: Q.headerCell,
3501
+ style: {
3502
+ textAlign: e.align ?? "left",
3503
+ width: e.width
3504
+ },
3505
+ children: e.header
3506
+ }, e.key))]
3507
+ }) }), /* @__PURE__ */ i("tbody", { children: n.map((e, n) => {
3508
+ let o = v.includes(n);
3509
+ return /* @__PURE__ */ a("tr", {
3510
+ draggable: l || void 0,
3511
+ onDragStart: l ? () => C(n) : void 0,
3512
+ onDragOver: l ? (e) => {
3513
+ e.preventDefault(), T(n);
3514
+ } : void 0,
3515
+ onDrop: l ? E : void 0,
3516
+ onDragEnd: l ? () => {
3517
+ C(null), T(null);
3518
+ } : void 0,
3519
+ className: [
3520
+ Q.bodyRow,
3521
+ o ? Q["bodyRow--selected"] : "",
3522
+ l ? Q["bodyRow--draggable"] : "",
3523
+ w === n && S !== null && S !== n ? Q["bodyRow--dropTarget"] : "",
3524
+ S === n ? Q["bodyRow--dragging"] : ""
3525
+ ].filter(Boolean).join(" "),
3526
+ children: [r && /* @__PURE__ */ i("td", {
3527
+ className: Q.checkCell,
3528
+ children: /* @__PURE__ */ i(Mn, {
3529
+ checked: o,
3530
+ onChange: () => te(n),
3531
+ label: `Select row ${n + 1}`
3532
+ })
3533
+ }), t.map((t) => /* @__PURE__ */ i("td", {
3534
+ className: Q.bodyCell,
3535
+ style: { textAlign: t.align ?? "left" },
3536
+ children: t.render ? t.render(e) : String(e[t.key] ?? "")
3537
+ }, t.key))]
3538
+ }, c ? c(e, n) : n);
3539
+ }) })]
3540
+ })
3541
+ });
3542
+ }
3543
+ var Pn = {
3544
+ tabs: "_tabs_1122j_3",
3545
+ "tabs--borderless": "_tabs--borderless_1122j_16",
3546
+ "tabs--fill": "_tabs--fill_1122j_21",
3547
+ tab: "_tab_1122j_3",
3548
+ "tab--disabled": "_tab--disabled_1122j_61",
3549
+ "tab--active": "_tab--active_1122j_63",
3550
+ indicator: "_indicator_1122j_74",
3551
+ "indicator--animated": "_indicator--animated_1122j_88"
3552
+ }, Fn = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
3553
+ let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
3554
+ u || f(e), o?.(e);
3555
+ }, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
3556
+ return e.useLayoutEffect(() => {
3557
+ let e = () => {
3558
+ let e = g.current[p];
3559
+ !e || !h.current || v({
3560
+ left: e.offsetLeft,
3561
+ width: e.offsetWidth
3562
+ });
3563
+ };
3564
+ e();
3565
+ let t = window.requestAnimationFrame(() => b(!0)), n = new ResizeObserver(e);
3566
+ return h.current && n.observe(h.current), () => {
3567
+ window.cancelAnimationFrame(t), n.disconnect();
3568
+ };
3569
+ }, [p, t]), /* @__PURE__ */ a("div", {
3570
+ ref: h,
3571
+ role: "tablist",
3572
+ className: [
3573
+ Pn.tabs,
3574
+ s ? "" : Pn["tabs--borderless"],
3575
+ c ? Pn["tabs--fill"] : "",
3576
+ l ?? ""
3577
+ ].filter(Boolean).join(" "),
3578
+ children: [t.map((e) => {
3579
+ let t = e.value === p, n = e.icon;
3580
+ return /* @__PURE__ */ a("button", {
3581
+ ref: (t) => {
3582
+ g.current[e.value] = t;
3583
+ },
3584
+ role: "tab",
3585
+ type: "button",
3586
+ "aria-selected": t,
3587
+ disabled: e.disabled,
3588
+ className: [
3589
+ Pn.tab,
3590
+ t ? Pn["tab--active"] : "",
3591
+ e.disabled ? Pn["tab--disabled"] : ""
3592
+ ].filter(Boolean).join(" "),
3593
+ onClick: () => m(e.value),
3594
+ children: [n && /* @__PURE__ */ i(n, {
3595
+ size: 16,
3596
+ strokeWidth: D(16),
3597
+ "aria-hidden": "true"
3598
+ }), e.label]
3599
+ }, e.value);
3600
+ }), _ && /* @__PURE__ */ i("span", {
3601
+ "aria-hidden": "true",
3602
+ className: [Pn.indicator, y ? Pn["indicator--animated"] : ""].filter(Boolean).join(" "),
3603
+ style: {
3604
+ transform: `translateX(${_.left}px)`,
3605
+ width: _.width
3606
+ }
3607
+ })]
3608
+ });
3609
+ }, In = {
3610
+ wrapper: "_wrapper_w6wtp_8",
3611
+ bubble: "_bubble_w6wtp_8",
3612
+ bubble__title: "_bubble__title_w6wtp_46",
3613
+ bubble__subtitle: "_bubble__subtitle_w6wtp_53",
3614
+ caret: "_caret_w6wtp_66",
3615
+ "bubble--top-left": "_bubble--top-left_w6wtp_69",
3616
+ "bubble--top-center": "_bubble--top-center_w6wtp_70",
3617
+ "bubble--top-right": "_bubble--top-right_w6wtp_71",
3618
+ "caret--top-left": "_caret--top-left_w6wtp_78",
3619
+ "caret--top-center": "_caret--top-center_w6wtp_79",
3620
+ "caret--top-right": "_caret--top-right_w6wtp_80",
3621
+ "bubble--bottom-left": "_bubble--bottom-left_w6wtp_91",
3622
+ "bubble--bottom-center": "_bubble--bottom-center_w6wtp_92",
3623
+ "bubble--bottom-right": "_bubble--bottom-right_w6wtp_93",
3624
+ "caret--bottom-left": "_caret--bottom-left_w6wtp_100",
3625
+ "caret--bottom-center": "_caret--bottom-center_w6wtp_101",
3626
+ "caret--bottom-right": "_caret--bottom-right_w6wtp_102",
3627
+ "bubble--center-left": "_bubble--center-left_w6wtp_113",
3628
+ "caret--center-left": "_caret--center-left_w6wtp_121",
3629
+ "bubble--center-right": "_bubble--center-right_w6wtp_131",
3630
+ "caret--center-right": "_caret--center-right_w6wtp_139"
3631
+ }, Ln = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
3632
+ let [c, l] = e.useState(!1);
3633
+ return e.useEffect(() => {
3634
+ let e = (e) => {
3635
+ e.key === "Escape" && l(!0);
3636
+ };
3637
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3638
+ }, []), /* @__PURE__ */ a("span", {
3639
+ className: [In.wrapper, s ?? ""].filter(Boolean).join(" "),
3640
+ "data-dismissed": c || void 0,
3641
+ onMouseLeave: () => l(!1),
3642
+ onBlur: () => l(!1),
3643
+ children: [o, /* @__PURE__ */ a("span", {
3644
+ role: "tooltip",
3645
+ className: [In.bubble, In[`bubble--${r}`]].join(" "),
3646
+ children: [
3647
+ /* @__PURE__ */ i("span", {
3648
+ className: In.bubble__title,
3649
+ children: t
3650
+ }),
3651
+ n && /* @__PURE__ */ i("span", {
3652
+ className: In.bubble__subtitle,
3653
+ children: n
3654
+ }),
3655
+ /* @__PURE__ */ i("span", {
3656
+ className: [In.caret, In[`caret--${r}`]].join(" "),
3657
+ "aria-hidden": "true"
3658
+ })
3659
+ ]
3660
+ })]
3661
+ });
3662
+ }, $ = {
3663
+ bar: "_bar_1fiq0_2",
3664
+ "bar--md": "_bar--md_1fiq0_11",
3665
+ "bar--sm": "_bar--sm_1fiq0_12",
3666
+ bar__leftGroup: "_bar__leftGroup_1fiq0_20",
3667
+ bar__left: "_bar__left_1fiq0_20",
3668
+ bar__spacer: "_bar__spacer_1fiq0_27",
3669
+ bar__right: "_bar__right_1fiq0_30",
3670
+ bar__icon: "_bar__icon_1fiq0_36",
3671
+ bar__bell: "_bar__bell_1fiq0_43",
3672
+ bar__dot: "_bar__dot_1fiq0_44",
3673
+ bar__divider: "_bar__divider_1fiq0_49",
3674
+ bar__account: "_bar__account_1fiq0_50",
3675
+ "bar--chat": "_bar--chat_1fiq0_56",
3676
+ bar__chatAvatar: "_bar__chatAvatar_1fiq0_64",
3677
+ bar__chatMeta: "_bar__chatMeta_1fiq0_65",
3678
+ bar__chatTitle: "_bar__chatTitle_1fiq0_66",
3679
+ bar__chatSubtitle: "_bar__chatSubtitle_1fiq0_71",
3680
+ bar__chatActions: "_bar__chatActions_1fiq0_75",
3681
+ "bar__left--search": "_bar__left--search_1fiq0_79",
3682
+ bar__accountChevron: "_bar__accountChevron_1fiq0_91",
3683
+ "bar__accountChevron--open": "_bar__accountChevron--open_1fiq0_97"
3684
+ }, Rn = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = C, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: g, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
3685
+ let w = t === "md" ? 20 : 18, T = D(w);
3686
+ return /* @__PURE__ */ i("header", {
3687
+ className: [
3688
+ $.bar,
3689
+ $[`bar--${t}`],
3690
+ $[`bar--${e}`],
3691
+ S ?? ""
3692
+ ].filter(Boolean).join(" "),
3693
+ children: e === "chat" ? /* @__PURE__ */ a(r, { children: [
3694
+ v && /* @__PURE__ */ i("span", {
3695
+ className: $.bar__chatAvatar,
3696
+ children: v
3697
+ }),
3698
+ /* @__PURE__ */ a("span", {
3699
+ className: $.bar__chatMeta,
3700
+ children: [y && /* @__PURE__ */ i("span", {
3701
+ className: $.bar__chatTitle,
3702
+ children: y
3703
+ }), b && /* @__PURE__ */ i("span", {
3704
+ className: $.bar__chatSubtitle,
3705
+ children: b
3706
+ })]
3707
+ }),
3708
+ /* @__PURE__ */ i("div", { className: $.bar__spacer }),
3709
+ x && /* @__PURE__ */ i("div", {
3710
+ className: $.bar__chatActions,
3711
+ children: x
3712
+ })
3713
+ ] }) : /* @__PURE__ */ a(r, { children: [
3714
+ /* @__PURE__ */ a("div", {
3715
+ className: $.bar__leftGroup,
3716
+ children: [s && /* @__PURE__ */ i("button", {
3717
+ type: "button",
3718
+ className: $.bar__icon,
3719
+ onClick: c,
3720
+ "aria-label": "Toggle sidebar",
3721
+ children: /* @__PURE__ */ i(l, {
3722
+ size: w,
3723
+ strokeWidth: T
3724
+ })
3725
+ }), /* @__PURE__ */ i("div", {
3726
+ className: [$.bar__left, e === "search" ? $["bar__left--search"] : ""].filter(Boolean).join(" "),
3727
+ "data-type": e,
3728
+ children: n
3729
+ })]
3730
+ }),
3731
+ /* @__PURE__ */ i("div", { className: $.bar__spacer }),
3732
+ /* @__PURE__ */ a("div", {
3733
+ className: $.bar__right,
3734
+ children: [
3735
+ m,
3736
+ u && /* @__PURE__ */ a(r, { children: [
3737
+ f && /* @__PURE__ */ i("button", {
3738
+ type: "button",
3739
+ className: $.bar__icon,
3740
+ "aria-label": "Help",
3741
+ children: /* @__PURE__ */ i(h, {
3742
+ size: w,
3743
+ strokeWidth: T
3744
+ })
3745
+ }),
3746
+ /* @__PURE__ */ i("button", {
3747
+ type: "button",
3748
+ className: $.bar__icon,
3749
+ "aria-label": "Notifications",
3750
+ children: /* @__PURE__ */ a("span", {
3751
+ className: $.bar__bell,
3752
+ children: [/* @__PURE__ */ i(o, {
3753
+ size: w,
3754
+ strokeWidth: T
3755
+ }), p && /* @__PURE__ */ i("span", {
3756
+ className: $.bar__dot,
3757
+ "aria-hidden": "true"
3758
+ })]
3759
+ })
3760
+ }),
3761
+ /* @__PURE__ */ i("span", { className: $.bar__divider })
3762
+ ] }),
3763
+ g && /* @__PURE__ */ a("div", {
3764
+ className: $.bar__account,
3765
+ children: [g, /* @__PURE__ */ i(d, {
3766
+ size: 16,
3767
+ strokeWidth: D(16),
3768
+ className: [$.bar__accountChevron, _ ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
3769
+ })]
3770
+ })
3771
+ ]
3772
+ })
3773
+ ] })
3774
+ });
3775
+ };
3776
+ //#endregion
3777
+ export { We as $, Lt as A, yt as B, Xt as C, Vt as D, Wt as E, Ot as F, at as G, mt as H, Dt as I, et as J, it as K, wt as L, Nt as M, At as N, Bt as O, kt as P, Ke as Q, St as R, Zt as S, Gt as T, ft as U, _t as V, ot as W, Ye as X, Qe as Y, qe as Z, cn as _, kn as a, Ae as at, $t as b, Cn as c, Se as ct, yn as d, ge as dt, He as et, _n as f, D as ft, ln as g, fn as h, Nn as i, A as it, Ft as j, Rt as k, Sn as l, xe as lt, mn as m, Ln as n, Me as nt, Dn as o, De as ot, hn as p, nt as q, Fn as r, je as rt, Tn as s, Te as st, Rn as t, Be as tt, xn as u, _e as ut, an as v, Jt as w, Qt as x, nn as y, xt as z };