welcome-ui 1.0.0-beta.8 → 7.0.0-alpha.6
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.
- package/dist/{AXB53BZF-DCqNWRx3.mjs → AXB53BZF-CGoc4K3d.mjs} +3 -3
- package/dist/{AXB53BZF-CAQ85RSy.js → AXB53BZF-KWM2jKTz.js} +1 -1
- package/dist/Accordion.js +3 -3
- package/dist/Accordion.mjs +11 -11
- package/dist/Alert.js +4 -4
- package/dist/Alert.mjs +29 -29
- package/dist/AspectRatio.js +1 -1
- package/dist/AspectRatio.mjs +5 -5
- package/dist/Avatar.js +3 -3
- package/dist/Avatar.mjs +8 -8
- package/dist/{BYC7LY2E-BE1a2svb.js → BYC7LY2E-BkAEL2VD.js} +1 -1
- package/dist/{BYC7LY2E-BNqcw1O8.mjs → BYC7LY2E-CVjUW1dr.mjs} +4 -4
- package/dist/Badge.js +1 -1
- package/dist/Badge.mjs +5 -5
- package/dist/Breadcrumb.js +54 -1
- package/dist/Breadcrumb.mjs +438 -8
- package/dist/Button.js +4 -4
- package/dist/Button.mjs +10 -10
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonGroup.mjs +5 -5
- package/dist/Card.js +2 -2
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ClearButton.js +3 -3
- package/dist/ClearButton.mjs +10 -10
- package/dist/CloseButton.js +2 -2
- package/dist/CloseButton.mjs +6 -6
- package/dist/CustomInput-BCCxIle7.mjs +7826 -0
- package/dist/CustomInput-CDNZy-pz.js +1070 -0
- package/dist/DatePicker.js +1 -1
- package/dist/DatePicker.mjs +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/DateTimePicker.mjs +15 -15
- package/dist/DateTimePickerCommon.js +1 -1
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.js +64 -1
- package/dist/Drawer.mjs +266 -10
- package/dist/DropdownMenu.js +1 -1
- package/dist/DropdownMenu.mjs +9 -9
- package/dist/Field.js +2 -2
- package/dist/Field.mjs +10 -10
- package/dist/FieldGroup.js +1 -1
- package/dist/FieldGroup.mjs +8 -8
- package/dist/FileDrop.js +46 -1
- package/dist/FileDrop.mjs +2324 -8
- package/dist/FileUpload.js +2 -2
- package/dist/FileUpload.mjs +10 -10
- package/dist/Hint.js +1 -1
- package/dist/Hint.mjs +6 -6
- package/dist/{ITI7HKP4-Couz1Z73.mjs → ITI7HKP4-BONrZ9Pq.mjs} +3 -3
- package/dist/Icon.js +1 -1
- package/dist/Icon.mjs +5 -5
- package/dist/{index.js → Icons.js} +6 -23
- package/dist/{index.mjs → Icons.mjs} +1346 -3475
- package/dist/{IconFont.js → IconsFont.js} +1 -1
- package/dist/{IconFont.mjs → IconsFont.mjs} +2 -2
- package/dist/InputText.js +3 -3
- package/dist/InputText.mjs +14 -14
- package/dist/{JC64G2H7-HxATiU-t.mjs → JC64G2H7-Dey-8h60.mjs} +4 -4
- package/dist/{JC64G2H7-VmOGyhc1.js → JC64G2H7-YkBMNrtl.js} +1 -1
- package/dist/{KUU7WJ55-bC4FU_j7.mjs → KUU7WJ55-3sP-w1F1.mjs} +13 -13
- package/dist/{LVA2YJMS-Dm5ieEMw.mjs → LVA2YJMS-qFC9J-lt.mjs} +18 -18
- package/dist/Label.js +35 -1
- package/dist/Label.mjs +76 -7
- package/dist/Link.js +2 -2
- package/dist/Link.mjs +9 -9
- package/dist/Loader.js +3 -3
- package/dist/Loader.mjs +9 -9
- package/dist/Logo.js +3 -1
- package/dist/Logo.mjs +45 -5
- package/dist/{MTZPJQMC-D0pYOjc_.js → MTZPJQMC-5Xg78Uyy.js} +1 -1
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +13 -0
- package/dist/Modal.js +5 -5
- package/dist/Modal.mjs +14 -14
- package/dist/{NLEBE274-FThuwZH_.mjs → NLEBE274-C94QU78N.mjs} +19 -19
- package/dist/{P2CTZE2T-5jxBu6ix.mjs → P2CTZE2T-YPes1GXe.mjs} +28 -28
- package/dist/{P4IRICAX-C0oIr4wI.mjs → P4IRICAX-DzXqUYe-.mjs} +10 -10
- package/dist/{P4IRICAX-t3xfwWga.js → P4IRICAX-nhgZ26A1.js} +1 -1
- package/dist/Pagination.js +3 -3
- package/dist/Pagination.mjs +10 -10
- package/dist/PasswordInput.js +1 -1
- package/dist/PasswordInput.mjs +53 -5
- package/dist/Picker.js +2 -2
- package/dist/Picker.mjs +13 -13
- package/dist/Popover.js +31 -1
- package/dist/Popover.mjs +141 -5
- package/dist/{QYJ6MIDR-YegHsExc.mjs → QYJ6MIDR-BLLqyXdd.mjs} +12 -12
- package/dist/{QYJ6MIDR-T-fJ_t8N.js → QYJ6MIDR-CRK3satR.js} +1 -1
- package/dist/Radio.js +3 -3
- package/dist/Radio.mjs +16 -16
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioGroup.mjs +11 -11
- package/dist/RadioTab.js +4 -4
- package/dist/RadioTab.mjs +12 -12
- package/dist/{SYRFVSLH-Babm193P.js → SYRFVSLH-BpAfr7UE.js} +1 -1
- package/dist/{SYRFVSLH-DXZgEwus.mjs → SYRFVSLH-cVmYtx36.mjs} +6 -6
- package/dist/Search.js +8 -8
- package/dist/Search.mjs +46 -46
- package/dist/Select.js +122 -1
- package/dist/Select.mjs +1070 -11
- package/dist/Shape.js +3 -3
- package/dist/Shape.mjs +5 -5
- package/dist/Slider.js +1 -1
- package/dist/Slider.mjs +3 -3
- package/dist/Swiper.js +2 -2
- package/dist/Swiper.mjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.js +8 -8
- package/dist/Tabs.mjs +178 -173
- package/dist/Tag.js +3 -3
- package/dist/Tag.mjs +10 -10
- package/dist/Text.js +1 -1
- package/dist/Text.mjs +4 -4
- package/dist/Textarea.js +1 -1
- package/dist/Textarea.mjs +9 -9
- package/dist/TimePicker.js +2 -2
- package/dist/TimePicker.mjs +11 -11
- package/dist/Toast.js +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/Toggle.mjs +7 -7
- package/dist/Tooltip.js +1 -1
- package/dist/Tooltip.mjs +10 -10
- package/dist/UniversalLink.js +1 -1
- package/dist/UniversalLink.mjs +4 -4
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +20 -0
- package/dist/{VEVQD5MH-Cal9SWXl.js → VEVQD5MH-mN1wMozH.js} +1 -1
- package/dist/{VGCJ63VH-BqPfqkK_.mjs → VGCJ63VH-B39w1tBw.mjs} +19 -19
- package/dist/{VGCJ63VH-Cuf7P3qW.js → VGCJ63VH-BNLwLOaC.js} +1 -1
- package/dist/VariantIcon.js +8 -1
- package/dist/VariantIcon.mjs +30 -4
- package/dist/WelcomeLoader.js +11 -1
- package/dist/WelcomeLoader.mjs +5086 -25
- package/dist/X5NMLKT6-uFSu0Lii.mjs +25 -0
- package/dist/{YV4JVR4I-1ezWeCCz.mjs → YV4JVR4I-BGfUf3Nu.mjs} +1 -1
- package/dist/downshift.esm-BOfUfcgd.mjs +1085 -0
- package/dist/downshift.esm-dvOEflhK.js +1 -0
- package/dist/hex-to-rgba-BIDK-3ab.mjs +11 -0
- package/dist/hex-to-rgba-cCYXRc5D.js +1 -0
- package/dist/index-23RJrN0D.js +1 -0
- package/dist/{index-CQyLvMJP.js → index-BHi0wohR.js} +23 -23
- package/dist/index-BJAZgeHL.mjs +11 -0
- package/dist/index-BJzGkA7x.js +1 -0
- package/dist/index-BLom3M2B.js +2 -0
- package/dist/index-BNGGwOCo.mjs +11 -0
- package/dist/index-BQtDgQBH.mjs +11 -0
- package/dist/{index-BZmKn5VO.mjs → index-BYdkhqH4.mjs} +14 -11
- package/dist/{index-DCOLdphy.mjs → index-CDjY0N2Z.mjs} +11 -11
- package/dist/index-CExLVjET.mjs +26 -0
- package/dist/{index-C_r0bVmL.js → index-CUtaVckz.js} +1 -1
- package/dist/{index-BxWjuyQw.js → index-CxDKPhvU.js} +1 -1
- package/dist/index-D4H6DSEx.mjs +133 -0
- package/dist/index-D6MJAN7T.js +1 -0
- package/dist/index-DEJJvyGk.mjs +66 -0
- package/dist/index-DTx8atxB.js +1 -0
- package/dist/index-Db47iJVz.js +1 -0
- package/dist/{index-DRa_xux4.mjs → index-RUkz9Z2V.mjs} +27 -53
- package/dist/index-SbQUT2mU.mjs +639 -0
- package/dist/index-_wqLxu7x.js +1 -0
- package/dist/index-gts_19_n.js +1 -0
- package/dist/{index-CQ1IPLlk.mjs → index-u1oHKa7X.mjs} +13 -61
- package/dist/{radio-group-29lMl-2M.mjs → radio-group-CGC6DTFJ.mjs} +14 -14
- package/dist/theme.js +18 -0
- package/dist/theme.mjs +1649 -0
- package/dist/types/components/Badge/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +2 -2
- package/dist/types/components/Drawer/styles.d.ts +1 -1
- package/dist/types/components/DropdownMenu/index.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +1 -1
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +1 -1
- package/dist/types/components/Icon/styles.d.ts +1 -1
- package/dist/types/components/IconsFont/_hash.d.ts +1 -0
- package/dist/types/components/{IconFont → IconsFont}/index.d.ts +4 -4
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/Logo/index.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +2 -2
- package/dist/types/components/Modal/Assets/styles.d.ts +1 -1
- package/dist/types/components/Modal/index.d.ts +4 -4
- package/dist/types/components/Popover/Popover.d.ts +1 -1
- package/dist/types/components/Popover/PopoverHover.d.ts +1 -1
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/RadioTab/index.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Select/index.d.ts +2 -2
- package/dist/types/components/Slider/Range.d.ts +1 -1
- package/dist/types/components/Slider/index.d.ts +1 -1
- package/dist/types/components/Tabs/TabList.d.ts +1 -1
- package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +1 -1
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +1 -1
- package/dist/types/components/Toast/styles.d.ts +4 -4
- package/dist/utils.js +1 -0
- package/dist/utils.mjs +77 -0
- package/package.json +52 -67
- package/dist/CustomInput-CHhz-wtr.js +0 -1064
- package/dist/CustomInput-DsJYqH0X.mjs +0 -1272
- package/dist/MTZPJQMC-C9lHSyrL.mjs +0 -13
- package/dist/VEVQD5MH-DOp_qaPw.mjs +0 -20
- package/dist/Welcome-BNr4uu5n.mjs +0 -48
- package/dist/Welcome-Dw9OaREs.js +0 -3
- package/dist/X5NMLKT6-DGZEtYXj.mjs +0 -25
- package/dist/index-B8roHPE-.js +0 -64
- package/dist/index-BFQbRuqA.mjs +0 -165
- package/dist/index-BjGfAqCk.mjs +0 -209
- package/dist/index-Bn9aiaUQ.mjs +0 -193
- package/dist/index-CiYwvMF0.js +0 -8
- package/dist/index-Cjf3wLkx.mjs +0 -272
- package/dist/index-CmBs24Im.mjs +0 -413
- package/dist/index-D3Tnfi3U.mjs +0 -83
- package/dist/index-DG7ovxHW.js +0 -117
- package/dist/index-DHCyCfRv.js +0 -35
- package/dist/index-DSZG0Sqy.js +0 -54
- package/dist/index-DhF591OM.js +0 -42
- package/dist/index-gPtu0TOV.js +0 -1
- package/dist/types/components/index.d.ts +0 -60
- package/dist/types/index.d.ts +0 -3
- package/dist/usePopover-AbS2gpZq.mjs +0 -144
- package/dist/usePopover-CzPtX0h_.js +0 -31
- package/dist/types/components/{IconFont → IconsFont}/styles.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u } from "./P4IRICAX-
|
|
3
|
-
import {
|
|
4
|
-
import { c as l, _ as p, i as D, a,
|
|
2
|
+
import { u } from "./P4IRICAX-DzXqUYe-.mjs";
|
|
3
|
+
import { a as c } from "./VGCJ63VH-B39w1tBw.mjs";
|
|
4
|
+
import { c as l, _ as p, i as D, g as a, s as m, f as g, h as v } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
5
5
|
var f = "button", d = l(
|
|
6
6
|
function(r) {
|
|
7
7
|
var s = r, { store: o } = s, e = p(s, ["store"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const c=require("./P4IRICAX-
|
|
1
|
+
"use client";"use strict";const c=require("./P4IRICAX-nhgZ26A1.js"),l=require("./VGCJ63VH-BNLwLOaC.js"),e=require("./LVA2YJMS-B2HZjIhJ.js");var D="button",i=e.createHook(function(t){var s=t,{store:o}=s,r=e.__objRest(s,["store"]);const n=l.useDialogProviderContext();o=o||n,e.invariant(o,process.env.NODE_ENV!=="production"&&"DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component.");const u=o.useState("contentElement");return r=e.__spreadValues({"aria-haspopup":e.getPopupRole(u,"dialog")},r),r=c.useDisclosure(e.__spreadValues({store:o},r)),r}),p=e.forwardRef2(function(t){const s=i(t);return e.createElement(D,s)});exports.DialogDisclosure=p;exports.useDialogDisclosure=i;
|
package/dist/Accordion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react")
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("@xstyled/styled-components"),u=require("./P4IRICAX-nhgZ26A1.js"),c=require("./VGCJ63VH-BNLwLOaC.js");require("./Icon.js");const m=require("./index-BNwz4P5j.js"),p=require("./System.js"),g=e.div`
|
|
2
2
|
${e.th("accordions.wrapper")};
|
|
3
3
|
${e.system};
|
|
4
4
|
transition: medium;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
& *:first-child {
|
|
21
21
|
margin: auto;
|
|
22
22
|
}
|
|
23
|
-
`,f=e(
|
|
23
|
+
`,f=e(u.Disclosure)`
|
|
24
24
|
${e.th("accordions.title")};
|
|
25
25
|
width: 100%;
|
|
26
26
|
padding: ${e.th("accordions.padding")};
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
padding: ${e.th("accordions.padding")};
|
|
73
73
|
padding-top: 0;
|
|
74
74
|
color: neutral-70;
|
|
75
|
-
`,y=
|
|
75
|
+
`,y=p.forwardRef(({children:o,dataTestId:n,icon:d=t.createElement(m.RightIcon,null),store:i,title:a,...s},l)=>t.createElement(g,{"data-testid":n,ref:l,...s},t.createElement(f,{"data-testid":n?`${n}-title`:void 0,store:i},a,t.createElement(r,null,t.cloneElement(d,{size:"sm"}))),t.createElement(h,{"data-testid":n?`${n}-content`:void 0,store:i},t.createElement("div",null,t.createElement($,null,o)))));function w(o){return c.useDisclosureStore({animated:!0,...o})}exports.Accordion=y;exports.useAccordion=w;
|
package/dist/Accordion.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import t, { cloneElement as m } from "react";
|
|
3
|
+
import r, { th as o, system as u } from "@xstyled/styled-components";
|
|
4
|
+
import { D as p } from "./P4IRICAX-DzXqUYe-.mjs";
|
|
5
|
+
import { d as f, e as g } from "./VGCJ63VH-B39w1tBw.mjs";
|
|
3
6
|
import "./Icon.mjs";
|
|
4
|
-
import { R as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import r, { th as o, system as f } from "@xstyled/styled-components";
|
|
7
|
-
import { D as g } from "./P4IRICAX-C0oIr4wI.mjs";
|
|
8
|
-
import { d as h, e as $ } from "./VGCJ63VH-BqPfqkK_.mjs";
|
|
7
|
+
import { R as h } from "./index-BRDOakbf.mjs";
|
|
8
|
+
import { forwardRef as $ } from "./System.mjs";
|
|
9
9
|
const w = r.div`
|
|
10
10
|
${o("accordions.wrapper")};
|
|
11
|
-
${
|
|
11
|
+
${u};
|
|
12
12
|
transition: medium;
|
|
13
13
|
|
|
14
14
|
&:hover {
|
|
@@ -28,7 +28,7 @@ const w = r.div`
|
|
|
28
28
|
& *:first-child {
|
|
29
29
|
margin: auto;
|
|
30
30
|
}
|
|
31
|
-
`, x = r(
|
|
31
|
+
`, x = r(p)`
|
|
32
32
|
${o("accordions.title")};
|
|
33
33
|
width: 100%;
|
|
34
34
|
padding: ${o("accordions.padding")};
|
|
@@ -59,7 +59,7 @@ const w = r.div`
|
|
|
59
59
|
color: inherit;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`, E = r(
|
|
62
|
+
`, E = r(f)`
|
|
63
63
|
display: grid;
|
|
64
64
|
grid-template-rows: 0fr;
|
|
65
65
|
transition-property: grid-template-rows;
|
|
@@ -80,11 +80,11 @@ const w = r.div`
|
|
|
80
80
|
padding: ${o("accordions.padding")};
|
|
81
81
|
padding-top: 0;
|
|
82
82
|
color: neutral-70;
|
|
83
|
-
`, A =
|
|
84
|
-
({ children: i, dataTestId: e, icon: c = /* @__PURE__ */ t.createElement(
|
|
83
|
+
`, A = $(
|
|
84
|
+
({ children: i, dataTestId: e, icon: c = /* @__PURE__ */ t.createElement(h, null), store: a, title: d, ...s }, l) => /* @__PURE__ */ t.createElement(w, { "data-testid": e, ref: l, ...s }, /* @__PURE__ */ t.createElement(x, { "data-testid": e ? `${e}-title` : void 0, store: a }, d, /* @__PURE__ */ t.createElement(n, null, m(c, { size: "sm" }))), /* @__PURE__ */ t.createElement(E, { "data-testid": e ? `${e}-content` : void 0, store: a }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement(v, null, i))))
|
|
85
85
|
);
|
|
86
86
|
function j(i) {
|
|
87
|
-
return
|
|
87
|
+
return g({ animated: !0, ...i });
|
|
88
88
|
}
|
|
89
89
|
export {
|
|
90
90
|
A as Accordion,
|
package/dist/Alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@xstyled/styled-components"),v=require("./Text.js"),I=require("./VariantIcon.js"),T=require("./CloseButton.js"),x=require("./Button.js"),f=require("./System.js"),u=require("./Box.js"),m=t.divBox`
|
|
2
2
|
flex: 1;
|
|
3
|
-
`,y=t(
|
|
3
|
+
`,y=t(I.VariantIcon)`
|
|
4
4
|
position: absolute;
|
|
5
5
|
align-self: flex-start;
|
|
6
6
|
`,R=t.divBox(({icon:r,isFullWidth:o,size:s,variant:a})=>t.css`
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
margin-top: -3;
|
|
30
30
|
}
|
|
31
31
|
`}
|
|
32
|
-
`),V=t(
|
|
32
|
+
`),V=t(v.Text)(({variant:r})=>t.css`
|
|
33
33
|
font-weight: medium;
|
|
34
34
|
${t.th("alerts.title.default")};
|
|
35
35
|
${t.th(`alerts.title.sizes.${r}`)};
|
|
36
36
|
${t.system};
|
|
37
|
-
`),g=({children:r,dataTestId:o,variant:s})=>e.createElement(V,{"data-testid":o,variant:s},r),j=f.forwardRef(({children:r,cta:o,dataTestId:s,handleClose:a,icon:c,isFullWidth:w,size:l="sm",variant:i="default",...b},h)=>{const q=s?`${s}-close-button`:void 0,A=i==="beige"?"default":i,C=e.Children.toArray(r).map(n=>n.type===g?e.cloneElement(n,{variant:l}):n),p=n=>{var $;if(n){if(n.type===B)return e.cloneElement(n,{size:l});if(n.type===E)return e.cloneElement(n,{size:l});if(($=n.props)!=null&&$.children)return e.cloneElement(n,{...n.props,children:e.Children.map(n.props.children,S=>p(S))})}return n},d=e.isValidElement(o)?p(o):o;return e.createElement(R,{"data-testid":s,icon:c,isFullWidth:w,ref:h,size:l,variant:i,...b},!!a&&e.createElement(
|
|
37
|
+
`),g=({children:r,dataTestId:o,variant:s})=>e.createElement(V,{"data-testid":o,variant:s},r),j=f.forwardRef(({children:r,cta:o,dataTestId:s,handleClose:a,icon:c,isFullWidth:w,size:l="sm",variant:i="default",...b},h)=>{const q=s?`${s}-close-button`:void 0,A=i==="beige"?"default":i,C=e.Children.toArray(r).map(n=>n.type===g?e.cloneElement(n,{variant:l}):n),p=n=>{var $;if(n){if(n.type===B)return e.cloneElement(n,{size:l});if(n.type===E)return e.cloneElement(n,{size:l});if(($=n.props)!=null&&$.children)return e.cloneElement(n,{...n.props,children:e.Children.map(n.props.children,S=>p(S))})}return n},d=e.isValidElement(o)?p(o):o;return e.createElement(R,{"data-testid":s,icon:c,isFullWidth:w,ref:h,size:l,variant:i,...b},!!a&&e.createElement(T.CloseButton,{dataTestId:q,onClick:a,position:"absolute",right:"sm",size:"xs",top:"sm"}),c!==null&&e.createElement(y,{icon:c,size:l,variant:A}),e.createElement(m,null,e.createElement(u.Box,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:"md",justifyContent:"space-between"},e.createElement(u.Box,{flex:1},C),!!d&&e.createElement(u.Box,{alignItems:"center",display:"flex",gap:"sm"},d))))}),B=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"secondary"})),E=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"tertiary"})),k=Object.assign(j,{Title:g,Button:B,SecondaryButton:E});exports.Alert=k;
|
package/dist/Alert.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import r, { Children as E, cloneElement as i } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import c, { css as m, th as l, system as B } from "@xstyled/styled-components";
|
|
4
|
+
import { Text as D } from "./Text.mjs";
|
|
5
|
+
import { VariantIcon as R } from "./VariantIcon.mjs";
|
|
6
|
+
import { CloseButton as O } from "./CloseButton.mjs";
|
|
7
|
+
import { Button as w } from "./Button.mjs";
|
|
5
8
|
import { forwardRef as d } from "./System.mjs";
|
|
6
9
|
import { Box as p } from "./Box.mjs";
|
|
7
|
-
import c, { css as m, th as a, system as w } from "@xstyled/styled-components";
|
|
8
|
-
import { Text as R } from "./Text.mjs";
|
|
9
|
-
import { V as O } from "./index-DRa_xux4.mjs";
|
|
10
10
|
const $ = c.divBox`
|
|
11
11
|
flex: 1;
|
|
12
|
-
`, A = c(
|
|
12
|
+
`, A = c(R)`
|
|
13
13
|
position: absolute;
|
|
14
14
|
align-self: flex-start;
|
|
15
15
|
`, q = c.divBox(({ icon: e, isFullWidth: n, size: o, variant: s }) => m`
|
|
@@ -18,31 +18,31 @@ const $ = c.divBox`
|
|
|
18
18
|
align-items: flex-start;
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-width: ${n ? "100%" : "max-content"};
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
21
|
+
${l("alerts.default")};
|
|
22
|
+
${l(`alerts.${s}`)};
|
|
23
|
+
${l(`alerts.sizes.${o}`)};
|
|
24
|
+
${B};
|
|
25
25
|
|
|
26
26
|
${e !== null && o === "sm" && m`
|
|
27
27
|
${$} {
|
|
28
|
-
margin-left: calc(${
|
|
28
|
+
margin-left: calc(${l("icons.sm")} + ${l("space.md")});
|
|
29
29
|
}
|
|
30
30
|
`}
|
|
31
31
|
|
|
32
32
|
${e !== null && o === "md" && m`
|
|
33
33
|
${$} {
|
|
34
|
-
margin-left: calc(${
|
|
34
|
+
margin-left: calc(${l("icons.md")} + ${l("space.lg")});
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
${A} {
|
|
38
38
|
margin-top: -3;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`), F = c(
|
|
41
|
+
`), F = c(D)(({ variant: e }) => m`
|
|
42
42
|
font-weight: medium;
|
|
43
|
-
${
|
|
44
|
-
${
|
|
45
|
-
${
|
|
43
|
+
${l("alerts.title.default")};
|
|
44
|
+
${l(`alerts.title.sizes.${e}`)};
|
|
45
|
+
${B};
|
|
46
46
|
`), b = ({ children: e, dataTestId: n, variant: o }) => /* @__PURE__ */ r.createElement(F, { "data-testid": n, variant: o }, e), G = d(
|
|
47
47
|
({
|
|
48
48
|
children: e,
|
|
@@ -51,15 +51,15 @@ const $ = c.divBox`
|
|
|
51
51
|
handleClose: s,
|
|
52
52
|
icon: f,
|
|
53
53
|
isFullWidth: I,
|
|
54
|
-
size:
|
|
54
|
+
size: a = "sm",
|
|
55
55
|
variant: u = "default",
|
|
56
56
|
...S
|
|
57
|
-
},
|
|
58
|
-
const
|
|
57
|
+
}, _) => {
|
|
58
|
+
const k = o ? `${o}-close-button` : void 0, T = u === "beige" ? "default" : u, V = E.toArray(e).map((t) => t.type === b ? i(t, { variant: a }) : t), x = (t) => {
|
|
59
59
|
var y;
|
|
60
60
|
if (t) {
|
|
61
|
-
if (t.type === v) return i(t, { size:
|
|
62
|
-
if (t.type === C) return i(t, { size:
|
|
61
|
+
if (t.type === v) return i(t, { size: a });
|
|
62
|
+
if (t.type === C) return i(t, { size: a });
|
|
63
63
|
if ((y = t.props) != null && y.children)
|
|
64
64
|
return i(t, {
|
|
65
65
|
...t.props,
|
|
@@ -77,15 +77,15 @@ const $ = c.divBox`
|
|
|
77
77
|
"data-testid": o,
|
|
78
78
|
icon: f,
|
|
79
79
|
isFullWidth: I,
|
|
80
|
-
ref:
|
|
81
|
-
size:
|
|
80
|
+
ref: _,
|
|
81
|
+
size: a,
|
|
82
82
|
variant: u,
|
|
83
83
|
...S
|
|
84
84
|
},
|
|
85
85
|
!!s && /* @__PURE__ */ r.createElement(
|
|
86
|
-
|
|
86
|
+
O,
|
|
87
87
|
{
|
|
88
|
-
dataTestId:
|
|
88
|
+
dataTestId: k,
|
|
89
89
|
onClick: s,
|
|
90
90
|
position: "absolute",
|
|
91
91
|
right: "sm",
|
|
@@ -93,7 +93,7 @@ const $ = c.divBox`
|
|
|
93
93
|
top: "sm"
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
f !== null && /* @__PURE__ */ r.createElement(A, { icon: f, size:
|
|
96
|
+
f !== null && /* @__PURE__ */ r.createElement(A, { icon: f, size: a, variant: T }),
|
|
97
97
|
/* @__PURE__ */ r.createElement($, null, /* @__PURE__ */ r.createElement(
|
|
98
98
|
p,
|
|
99
99
|
{
|
|
@@ -103,13 +103,13 @@ const $ = c.divBox`
|
|
|
103
103
|
gap: "md",
|
|
104
104
|
justifyContent: "space-between"
|
|
105
105
|
},
|
|
106
|
-
/* @__PURE__ */ r.createElement(p, { flex: 1 },
|
|
106
|
+
/* @__PURE__ */ r.createElement(p, { flex: 1 }, V),
|
|
107
107
|
!!g && /* @__PURE__ */ r.createElement(p, { alignItems: "center", display: "flex", gap: "sm" }, g)
|
|
108
108
|
))
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
), v = d((e, n) => /* @__PURE__ */ r.createElement(
|
|
112
|
-
(e, n) => /* @__PURE__ */ r.createElement(
|
|
111
|
+
), v = d((e, n) => /* @__PURE__ */ r.createElement(w, { flexShrink: 0, ref: n, w: "fit-content", ...e, variant: "secondary" })), C = d(
|
|
112
|
+
(e, n) => /* @__PURE__ */ r.createElement(w, { flexShrink: 0, ref: n, w: "fit-content", ...e, variant: "tertiary" })
|
|
113
113
|
), U = Object.assign(G, {
|
|
114
114
|
Title: b,
|
|
115
115
|
Button: v,
|
package/dist/AspectRatio.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),t=require("@xstyled/styled-components"),r=require("./System.js"),n=t.divBox(({ratio:e})=>t.css`
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
4
|
& > * {
|
package/dist/AspectRatio.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const c =
|
|
6
|
-
({ ratio: t }) =>
|
|
3
|
+
import r, { css as s } from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as a } from "./System.mjs";
|
|
5
|
+
const c = r.divBox(
|
|
6
|
+
({ ratio: t }) => s`
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
& > * {
|
|
@@ -32,7 +32,7 @@ const c = s.divBox(
|
|
|
32
32
|
padding-bottom: ${1 / t * 100}%;
|
|
33
33
|
}
|
|
34
34
|
`
|
|
35
|
-
), n =
|
|
35
|
+
), n = a(
|
|
36
36
|
({ ratio: t = 4 / 3, ...e }, o) => /* @__PURE__ */ i.createElement(c, { ratio: t, ref: o, ...e })
|
|
37
37
|
);
|
|
38
38
|
n.displayName = "AspectRatio";
|
package/dist/Avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@xstyled/styled-components"),y=require("./
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@xstyled/styled-components"),y=require("./Shape.js"),x=require("./Text.js"),S=require("./System.js"),b=require("./Box.js");function q(o,e=""){const t=Object.keys(o).filter(r=>r.startsWith("secondary-")),n=e.length%t.length;return t[n]}function A(o=""){const[e,t]=o.split(" ");return e&&t?`${e.charAt(0).toUpperCase()}${t.charAt(0).toUpperCase()}`:e.substring(0,2).toUpperCase()}const C=s(y.Shape)`
|
|
2
2
|
flex-shrink: 0;
|
|
3
|
-
`,$=s(
|
|
3
|
+
`,$=s(x.Text)`
|
|
4
4
|
${s.th("avatars.text")};
|
|
5
|
-
`,h=a.memo(
|
|
5
|
+
`,h=a.memo(S.forwardRef(({color:o,fontSize:e,getInitials:t=A,h:n,name:r,shape:m="circle",size:g="md",src:c,w:i,...d},p)=>{const l=s.useTheme(),f=o||q(l.colors,r),u=l.avatars.sizes[g],v=e||`calc(${i?l.toRem(i):u} / 2.5)`;return a.createElement(C,{"aria-label":r,backgroundColor:f,h:n||u,ref:p,role:"img",shape:m,w:i||u,...d},c&&a.createElement("img",{alt:r,src:c}),!c&&a.createElement(b.Box,null,a.createElement($,{fontSize:v,m:0},t(r))))}));h.displayName="Avatar";exports.Avatar=h;
|
package/dist/Avatar.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import a, { memo as x } from "react";
|
|
3
3
|
import m, { th as v, useTheme as y } from "@xstyled/styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { Shape as C } from "./Shape.mjs";
|
|
5
|
+
import { Text as $ } from "./Text.mjs";
|
|
6
|
+
import { forwardRef as b } from "./System.mjs";
|
|
7
|
+
import { Box as A } from "./Box.mjs";
|
|
8
8
|
function z(o, t = "") {
|
|
9
9
|
const e = Object.keys(o).filter((r) => r.startsWith("secondary-")), s = t.length % e.length;
|
|
10
10
|
return e[s];
|
|
@@ -13,12 +13,12 @@ function E(o = "") {
|
|
|
13
13
|
const [t, e] = o.split(" ");
|
|
14
14
|
return t && e ? `${t.charAt(0).toUpperCase()}${e.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
|
|
15
15
|
}
|
|
16
|
-
const S = m(
|
|
16
|
+
const S = m(C)`
|
|
17
17
|
flex-shrink: 0;
|
|
18
|
-
`, T = m(
|
|
18
|
+
`, T = m($)`
|
|
19
19
|
${v("avatars.text")};
|
|
20
20
|
`, _ = x(
|
|
21
|
-
|
|
21
|
+
b(
|
|
22
22
|
({
|
|
23
23
|
color: o,
|
|
24
24
|
fontSize: t,
|
|
@@ -45,7 +45,7 @@ const S = m(b)`
|
|
|
45
45
|
...u
|
|
46
46
|
},
|
|
47
47
|
n && /* @__PURE__ */ a.createElement("img", { alt: r, src: n }),
|
|
48
|
-
!n && /* @__PURE__ */ a.createElement(
|
|
48
|
+
!n && /* @__PURE__ */ a.createElement(A, null, /* @__PURE__ */ a.createElement(T, { fontSize: g, m: 0 }, e(r)))
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const de=require("./JC64G2H7-VmOGyhc1.js"),D=require("./YV4JVR4I-DIthYWMj.js"),c=require("./LVA2YJMS-B2HZjIhJ.js"),ce=require("./MTZPJQMC-D0pYOjc_.js"),C=require("react");function Je(e={}){var n=e,{popover:o}=n,t=c.__objRest$1(n,["popover"]);const i=D.mergeStore(t.store,D.omit2(o,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"]));D.throwOnConflictingProps(t,i);const r=i==null?void 0:i.getState(),u=de.createDialogStore(c.__spreadProps$1(c.__spreadValues$1({},t),{store:i})),a=c.defaultValue(t.placement,r==null?void 0:r.placement,"bottom"),l=c.__spreadProps$1(c.__spreadValues$1({},u.getState()),{placement:a,currentPlacement:a,anchorElement:c.defaultValue(r==null?void 0:r.anchorElement,null),popoverElement:c.defaultValue(r==null?void 0:r.popoverElement,null),arrowElement:c.defaultValue(r==null?void 0:r.arrowElement,null),rendered:Symbol("rendered")}),s=D.createStore(l,u,i);return c.__spreadProps$1(c.__spreadValues$1(c.__spreadValues$1({},u),s),{setAnchorElement:d=>s.setState("anchorElement",d),setPopoverElement:d=>s.setState("popoverElement",d),setArrowElement:d=>s.setState("arrowElement",d),render:()=>s.setState("rendered",Symbol("rendered"))})}function Ue(e,n,o){return c.useUpdateEffect(n,[o.popover]),D.useStoreProps(e,o,"placement"),de.useDialogStoreProps(e,n,o)}function gt(e={}){const[n,o]=D.useStore(Je,e);return Ue(n,o,e)}function ue(e){return e.split("-")[1]}function Te(e){return e==="y"?"height":"width"}function q(e){return e.split("-")[0]}function ee(e){return["top","bottom"].includes(q(e))?"x":"y"}function ke(e,n,o){let{reference:t,floating:i}=e;const r=t.x+t.width/2-i.width/2,u=t.y+t.height/2-i.height/2,a=ee(n),l=Te(a),s=t[l]/2-i[l]/2,d=a==="x";let f;switch(q(n)){case"top":f={x:r,y:t.y-i.height};break;case"bottom":f={x:r,y:t.y+t.height};break;case"right":f={x:t.x+t.width,y:u};break;case"left":f={x:t.x-i.width,y:u};break;default:f={x:t.x,y:t.y}}switch(ue(n)){case"start":f[a]-=s*(o&&d?-1:1);break;case"end":f[a]+=s*(o&&d?-1:1)}return f}const vt=async(e,n,o)=>{const{placement:t="bottom",strategy:i="absolute",middleware:r=[],platform:u}=o,a=r.filter(Boolean),l=await(u.isRTL==null?void 0:u.isRTL(n));let s=await u.getElementRects({reference:e,floating:n,strategy:i}),{x:d,y:f}=ke(s,t,l),h=t,m={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:x}=a[g],{x:w,y:b,data:E,reset:y}=await x({x:d,y:f,initialPlacement:t,placement:h,strategy:i,middlewareData:m,rects:s,platform:u,elements:{reference:e,floating:n}});d=w??d,f=b??f,m={...m,[v]:{...m[v],...E}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(s=y.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:i}):y.rects),{x:d,y:f}=ke(s,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};function X(e,n){return typeof e=="function"?e(n):e}function Ze(e){return typeof e!="number"?function(n){return{top:0,right:0,bottom:0,left:0,...n}}(e):{top:e,right:e,bottom:e,left:e}}function xe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function $e(e,n){var o;n===void 0&&(n={});const{x:t,y:i,platform:r,rects:u,elements:a,strategy:l}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=X(n,e),p=Ze(m),g=a[h?f==="floating"?"reference":"floating":f],v=xe(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(g)))==null||o?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:d,strategy:l})),x=f==="floating"?{...u.floating,x:t,y:i}:u.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(w))&&await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1},E=xe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:w,strategy:l}):x);return{top:(v.top-E.top+p.top)/b.y,bottom:(E.bottom-v.bottom+p.bottom)/b.y,left:(v.left-E.left+p.left)/b.x,right:(E.right-v.right+p.right)/b.x}}const ae=Math.min,Z=Math.max;function _e(e,n,o){return Z(e,ae(n,o))}const xt=e=>({name:"arrow",options:e,async fn(n){const{x:o,y:t,placement:i,rects:r,platform:u,elements:a}=n,{element:l,padding:s=0}=X(e,n)||{};if(l==null)return{};const d=Ze(s),f={x:o,y:t},h=ee(i),m=Te(h),p=await u.getDimensions(l),g=h==="y",v=g?"top":"left",x=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[h]-f[h]-r.floating[m],E=f[h]-r.reference[h],y=await(u.getOffsetParent==null?void 0:u.getOffsetParent(l));let S=y?y[w]:0;S&&await(u.isElement==null?void 0:u.isElement(y))||(S=a.floating[w]||r.floating[m]);const $=b/2-E/2,H=S/2-p[m]/2-1,L=ae(d[v],H),_=ae(d[x],H),A=L,M=S-p[m]-_,P=S/2-p[m]/2+$,O=_e(A,P,M),R=ue(i)!=null&&P!=O&&r.reference[m]/2-(P<A?L:_)-p[m]/2<0?P<A?A-P:M-P:0;return{[h]:f[h]-R,data:{[h]:O,centerOffset:P-O+R}}}}),wt=["top","right","bottom","left"];wt.reduce((e,n)=>e.concat(n,n+"-start",n+"-end"),[]);const yt={left:"right",right:"left",bottom:"top",top:"bottom"};function we(e){return e.replace(/left|right|bottom|top/g,n=>yt[n])}function Pt(e,n,o){o===void 0&&(o=!1);const t=ue(e),i=ee(e),r=Te(i);let u=i==="x"?t===(o?"end":"start")?"right":"left":t==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(u=we(u)),{main:u,cross:we(u)}}const bt={start:"end",end:"start"};function Se(e){return e.replace(/start|end/g,n=>bt[n])}const Et=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o;const{placement:t,middlewareData:i,rects:r,initialPlacement:u,platform:a,elements:l}=n,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...g}=X(e,n),v=q(t),x=q(u)===u,w=await(a.isRTL==null?void 0:a.isRTL(l.floating)),b=f||(x||!p?[we(u)]:function(A){const M=we(A);return[Se(A),M,Se(M)]}(u));f||m==="none"||b.push(...function(A,M,P,O){const R=ue(A);let T=function(V,k,G){const j=["left","right"],B=["right","left"],U=["top","bottom"],te=["bottom","top"];switch(V){case"top":case"bottom":return G?k?B:j:k?j:B;case"left":case"right":return k?U:te;default:return[]}}(q(A),P==="start",O);return R&&(T=T.map(V=>V+"-"+R),M&&(T=T.concat(T.map(Se)))),T}(u,p,m,w));const E=[u,...b],y=await $e(n,g),S=[];let $=((o=i.flip)==null?void 0:o.overflows)||[];if(s&&S.push(y[v]),d){const{main:A,cross:M}=Pt(t,r,w);S.push(y[A],y[M])}if($=[...$,{placement:t,overflows:S}],!S.every(A=>A<=0)){var H,L;const A=(((H=i.flip)==null?void 0:H.index)||0)+1,M=E[A];if(M)return{data:{index:A,overflows:$},reset:{placement:M}};let P=(L=$.filter(O=>O.overflows[0]<=0).sort((O,R)=>O.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(h){case"bestFit":{var _;const O=(_=$.map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,V)=>T+V,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:_[0];O&&(P=O);break}case"initialPlacement":P=u}if(t!==P)return{reset:{placement:P}}}return{}}}},St=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:o,y:t}=n,i=await async function(r,u){const{placement:a,platform:l,elements:s}=r,d=await(l.isRTL==null?void 0:l.isRTL(s.floating)),f=q(a),h=ue(a),m=ee(a)==="x",p=["left","top"].includes(f)?-1:1,g=d&&m?-1:1,v=X(u,r);let{mainAxis:x,crossAxis:w,alignmentAxis:b}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return h&&typeof b=="number"&&(w=h==="end"?-1*b:b),m?{x:w*g,y:x*p}:{x:x*p,y:w*g}}(n,e);return{x:o+i.x,y:t+i.y,data:i}}}};function Qe(e){return e==="x"?"y":"x"}const Rt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:t,placement:i}=n,{mainAxis:r=!0,crossAxis:u=!1,limiter:a={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...l}=X(e,n),s={x:o,y:t},d=await $e(n,l),f=ee(q(i)),h=Qe(f);let m=s[f],p=s[h];if(r){const v=f==="y"?"bottom":"right";m=_e(m+d[f==="y"?"top":"left"],m,m-d[v])}if(u){const v=h==="y"?"bottom":"right";p=_e(p+d[h==="y"?"top":"left"],p,p-d[v])}const g=a.fn({...n,[f]:m,[h]:p});return{...g,data:{x:g.x-o,y:g.y-t}}}}},_t=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:t,placement:i,rects:r,middlewareData:u}=n,{offset:a=0,mainAxis:l=!0,crossAxis:s=!0}=X(e,n),d={x:o,y:t},f=ee(i),h=Qe(f);let m=d[f],p=d[h];const g=X(a,n),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=f==="y"?"height":"width",E=r.reference[f]-r.floating[b]+v.mainAxis,y=r.reference[f]+r.reference[b]-v.mainAxis;m<E?m=E:m>y&&(m=y)}if(s){var x,w;const b=f==="y"?"width":"height",E=["top","left"].includes(q(i)),y=r.reference[h]-r.floating[b]+(E&&((x=u.offset)==null?void 0:x[h])||0)+(E?0:v.crossAxis),S=r.reference[h]+r.reference[b]+(E?0:((w=u.offset)==null?void 0:w[h])||0)-(E?v.crossAxis:0);p<y?p=y:p>S&&(p=S)}return{[f]:m,[h]:p}}}},At=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:o,rects:t,platform:i,elements:r}=n,{apply:u=()=>{},...a}=X(e,n),l=await $e(n,a),s=q(o),d=ue(o),f=ee(o)==="x",{width:h,height:m}=t.floating;let p,g;s==="top"||s==="bottom"?(p=s,g=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=s,p=d==="end"?"top":"bottom");const v=m-l[p],x=h-l[g],w=!n.middlewareData.shift;let b=v,E=x;if(f){const S=h-l.left-l.right;E=d||w?ae(x,S):S}else{const S=m-l.top-l.bottom;b=d||w?ae(v,S):S}if(w&&!d){const S=Z(l.left,0),$=Z(l.right,0),H=Z(l.top,0),L=Z(l.bottom,0);f?E=h-2*(S!==0||$!==0?S+$:Z(l.left,l.right)):b=m-2*(H!==0||L!==0?H+L:Z(l.top,l.bottom))}await u({...n,availableWidth:E,availableHeight:b});const y=await i.getDimensions(r.floating);return h!==y.width||m!==y.height?{reset:{rects:!0}}:{}}}};function F(e){var n;return((n=e.ownerDocument)==null?void 0:n.defaultView)||window}function N(e){return F(e).getComputedStyle(e)}function Ke(e){return e instanceof F(e).Node}function J(e){return Ke(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){return e instanceof F(e).HTMLElement}function I(e){return e instanceof F(e).Element}function Ne(e){return typeof ShadowRoot<"u"&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}function fe(e){const{overflow:n,overflowX:o,overflowY:t,display:i}=N(e);return/auto|scroll|overlay|hidden|clip/.test(n+t+o)&&!["inline","contents"].includes(i)}function Ot(e){return["table","td","th"].includes(J(e))}function Ae(e){const n=He(),o=N(e);return o.transform!=="none"||o.perspective!=="none"||!n&&!!o.backdropFilter&&o.backdropFilter!=="none"||!n&&!!o.filter&&o.filter!=="none"||["transform","perspective","filter"].some(t=>(o.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(o.contain||"").includes(t))}function He(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function be(e){return["html","body","#document"].includes(J(e))}const Oe=Math.min,re=Math.max,ye=Math.round,ve=Math.floor,Q=e=>({x:e,y:e});function et(e){const n=N(e);let o=parseFloat(n.width)||0,t=parseFloat(n.height)||0;const i=W(e),r=i?e.offsetWidth:o,u=i?e.offsetHeight:t,a=ye(o)!==r||ye(t)!==u;return a&&(o=r,t=u),{width:o,height:t,$:a}}function Ce(e){return I(e)?e:e.contextElement}function ie(e){const n=Ce(e);if(!W(n))return Q(1);const o=n.getBoundingClientRect(),{width:t,height:i,$:r}=et(n);let u=(r?ye(o.width):o.width)/t,a=(r?ye(o.height):o.height)/i;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}const We=Q(0);function tt(e,n,o){var t,i;if(n===void 0&&(n=!0),!He())return We;const r=e?F(e):window;return!o||n&&o!==r?We:{x:((t=r.visualViewport)==null?void 0:t.offsetLeft)||0,y:((i=r.visualViewport)==null?void 0:i.offsetTop)||0}}function K(e,n,o,t){n===void 0&&(n=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),r=Ce(e);let u=Q(1);n&&(t?I(t)&&(u=ie(t)):u=ie(e));const a=tt(r,o,t);let l=(i.left+a.x)/u.x,s=(i.top+a.y)/u.y,d=i.width/u.x,f=i.height/u.y;if(r){const h=F(r),m=t&&I(t)?F(t):t;let p=h.frameElement;for(;p&&t&&m!==h;){const g=ie(p),v=p.getBoundingClientRect(),x=getComputedStyle(p),w=v.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,b=v.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,s*=g.y,d*=g.x,f*=g.y,l+=w,s+=b,p=F(p).frameElement}}return xe({width:d,height:f,x:l,y:s})}function Y(e){return((Ke(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ee(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){return K(Y(e)).left+Ee(e).scrollLeft}function se(e){if(J(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Ne(e)&&e.host||Y(e);return Ne(n)?n.host:n}function ot(e){const n=se(e);return be(n)?e.ownerDocument?e.ownerDocument.body:e.body:W(n)&&fe(n)?n:ot(n)}function Pe(e,n){var o;n===void 0&&(n=[]);const t=ot(e),i=t===((o=e.ownerDocument)==null?void 0:o.body),r=F(t);return i?n.concat(r,r.visualViewport||[],fe(t)?t:[]):n.concat(t,Pe(t))}function je(e,n,o){let t;if(n==="viewport")t=function(i,r){const u=F(i),a=Y(i),l=u.visualViewport;let s=a.clientWidth,d=a.clientHeight,f=0,h=0;if(l){s=l.width,d=l.height;const m=He();(!m||m&&r==="fixed")&&(f=l.offsetLeft,h=l.offsetTop)}return{width:s,height:d,x:f,y:h}}(e,o);else if(n==="document")t=function(i){const r=Y(i),u=Ee(i),a=i.ownerDocument.body,l=re(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),s=re(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let d=-u.scrollLeft+nt(i);const f=-u.scrollTop;return N(a).direction==="rtl"&&(d+=re(r.clientWidth,a.clientWidth)-l),{width:l,height:s,x:d,y:f}}(Y(e));else if(I(n))t=function(i,r){const u=K(i,!0,r==="fixed"),a=u.top+i.clientTop,l=u.left+i.clientLeft,s=W(i)?ie(i):Q(1);return{width:i.clientWidth*s.x,height:i.clientHeight*s.y,x:l*s.x,y:a*s.y}}(n,o);else{const i=tt(e);t={...n,x:n.x-i.x,y:n.y-i.y}}return xe(t)}function rt(e,n){const o=se(e);return!(o===n||!I(o)||be(o))&&(N(o).position==="fixed"||rt(o,n))}function Be(e,n){return W(e)&&N(e).position!=="fixed"?n?n(e):e.offsetParent:null}function ze(e,n){const o=F(e);if(!W(e))return o;let t=Be(e,n);for(;t&&Ot(t)&&N(t).position==="static";)t=Be(t,n);return t&&(J(t)==="html"||J(t)==="body"&&N(t).position==="static"&&!Ae(t))?o:t||function(i){let r=se(i);for(;W(r)&&!be(r);){if(Ae(r))return r;r=se(r)}return null}(e)||o}function Tt(e,n,o){const t=W(n),i=Y(n),r=o==="fixed",u=K(e,!0,r,n);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if(t||!t&&!r)if((J(n)!=="body"||fe(i))&&(a=Ee(n)),W(n)){const s=K(n,!0,r,n);l.x=s.x+n.clientLeft,l.y=s.y+n.clientTop}else i&&(l.x=nt(i));return{x:u.left+a.scrollLeft-l.x,y:u.top+a.scrollTop-l.y,width:u.width,height:u.height}}const $t={getClippingRect:function(e){let{element:n,boundary:o,rootBoundary:t,strategy:i}=e;const r=o==="clippingAncestors"?function(s,d){const f=d.get(s);if(f)return f;let h=Pe(s).filter(v=>I(v)&&J(v)!=="body"),m=null;const p=N(s).position==="fixed";let g=p?se(s):s;for(;I(g)&&!be(g);){const v=N(g),x=Ae(g);x||v.position!=="fixed"||(m=null),(p?!x&&!m:!x&&v.position==="static"&&m&&["absolute","fixed"].includes(m.position)||fe(g)&&!x&&rt(s,g))?h=h.filter(w=>w!==g):m=v,g=se(g)}return d.set(s,h),h}(n,this._c):[].concat(o),u=[...r,t],a=u[0],l=u.reduce((s,d)=>{const f=je(n,d,i);return s.top=re(f.top,s.top),s.right=Oe(f.right,s.right),s.bottom=Oe(f.bottom,s.bottom),s.left=re(f.left,s.left),s},je(n,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:n,offsetParent:o,strategy:t}=e;const i=W(o),r=Y(o);if(o===r)return n;let u={scrollLeft:0,scrollTop:0},a=Q(1);const l=Q(0);if((i||!i&&t!=="fixed")&&((J(o)!=="body"||fe(r))&&(u=Ee(o)),W(o))){const s=K(o);a=ie(o),l.x=s.x+o.clientLeft,l.y=s.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-u.scrollLeft*a.x+l.x,y:n.y*a.y-u.scrollTop*a.y+l.y}},isElement:I,getDimensions:function(e){return et(e)},getOffsetParent:ze,getDocumentElement:Y,getScale:ie,async getElementRects(e){let{reference:n,floating:o,strategy:t}=e;const i=this.getOffsetParent||ze,r=this.getDimensions;return{reference:Tt(n,await i(o),t),floating:{x:0,y:0,...await r(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>N(e).direction==="rtl"};function Ht(e,n,o,t){t===void 0&&(t={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:u=!0,layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=t,s=Ce(e),d=i||r?[...s?Pe(s):[],...Pe(n)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const f=s&&a?function(g,v){let x,w=null;const b=Y(g);function E(){clearTimeout(x),w&&w.disconnect(),w=null}return function y(S,$){S===void 0&&(S=!1),$===void 0&&($=1),E();const{left:H,top:L,width:_,height:A}=g.getBoundingClientRect();if(S||v(),!_||!A)return;const M=ve(L),P=ve(b.clientWidth-(H+_)),O=ve(b.clientHeight-(L+A)),R=ve(H);let T=!0;w=new IntersectionObserver(V=>{const k=V[0].intersectionRatio;if(k!==$){if(!T)return y();k?y(!1,k):x=setTimeout(()=>{y(!1,1e-7)},100)}T=!1},{rootMargin:-M+"px "+-P+"px "+-O+"px "+-R+"px",threshold:re(0,Oe(1,$))||1}),w.observe(g)}(!0),E}(s,o):null;let h,m=null;u&&(m=new ResizeObserver(o),s&&!l&&m.observe(s),m.observe(n));let p=l?K(e):null;return l&&function g(){const v=K(e);!p||v.x===p.x&&v.y===p.y&&v.width===p.width&&v.height===p.height||o(),p=v,h=requestAnimationFrame(g)}(),o(),()=>{d.forEach(g=>{i&&g.removeEventListener("scroll",o),r&&g.removeEventListener("resize",o)}),f&&f(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const Ct=(e,n,o)=>{const t=new Map,i={platform:$t,...o},r={...i.platform,_c:t};return vt(e,n,{...i,platform:r})};var Mt="div";function qe(e=0,n=0,o=0,t=0){if(typeof DOMRect=="function")return new DOMRect(e,n,o,t);const i={x:e,y:n,width:o,height:t,top:n,right:e+o,bottom:n+t,left:e};return c.__spreadProps(c.__spreadValues({},i),{toJSON:()=>i})}function Vt(e){if(!e)return qe();const{x:n,y:o,width:t,height:i}=e;return qe(n,o,t,i)}function Lt(e,n){return{contextElement:e||void 0,getBoundingClientRect:()=>{const t=e,i=n==null?void 0:n(t);return i||!t?Vt(i):t.getBoundingClientRect()}}}function Dt(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Ie(e){const n=window.devicePixelRatio||1;return Math.round(e*n)/n}function Ft(e,n){return St(({placement:o})=>{var t;const i=((e==null?void 0:e.clientHeight)||0)/2,r=typeof n.gutter=="number"?n.gutter+i:(t=n.gutter)!=null?t:i;return{crossAxis:!!o.split("-")[1]?void 0:n.shift,mainAxis:r,alignmentAxis:n.shift}})}function kt(e){if(e.flip===!1)return;const n=typeof e.flip=="string"?e.flip.split(" "):void 0;return c.invariant(!n||n.every(Dt),process.env.NODE_ENV!=="production"&&"`flip` expects a spaced-delimited list of placements"),Et({padding:e.overflowPadding,fallbackPlacements:n})}function Nt(e){if(!(!e.slide&&!e.overlap))return Rt({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:_t()})}function Wt(e){return At({padding:e.overflowPadding,apply({elements:n,availableWidth:o,availableHeight:t,rects:i}){const r=n.floating,u=Math.round(i.reference.width);o=Math.floor(o),t=Math.floor(t),r.style.setProperty("--popover-anchor-width",`${u}px`),r.style.setProperty("--popover-available-width",`${o}px`),r.style.setProperty("--popover-available-height",`${t}px`),e.sameWidth&&(r.style.width=`${u}px`),e.fitViewport&&(r.style.maxWidth=`${o}px`,r.style.maxHeight=`${t}px`)}})}function jt(e,n){if(e)return xt({element:e,padding:n.arrowPadding})}var it=c.createHook(function(n){var o=n,{store:t,modal:i=!1,portal:r=!!i,preserveTabOrder:u=!0,autoFocusOnShow:a=!0,wrapperProps:l,fixed:s=!1,flip:d=!0,shift:f=0,slide:h=!0,overlap:m=!1,sameWidth:p=!1,fitViewport:g=!1,gutter:v,arrowPadding:x=4,overflowPadding:w=8,getAnchorRect:b,updatePosition:E}=o,y=c.__objRest(o,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const S=ce.usePopoverProviderContext();t=t||S,c.invariant(t,process.env.NODE_ENV!=="production"&&"Popover must receive a `store` prop or be wrapped in a PopoverProvider component.");const $=t.useState("arrowElement"),H=t.useState("anchorElement"),L=t.useState("disclosureElement"),_=t.useState("popoverElement"),A=t.useState("contentElement"),M=t.useState("placement"),P=t.useState("mounted"),O=t.useState("rendered"),R=C.useRef(null),[T,V]=C.useState(!1),{portalRef:k,domReady:G}=c.usePortalRef(r,y.portalRef),j=c.useEvent(b),B=c.useEvent(E),U=!!E;c.useSafeLayoutEffect(()=>{if(!(_!=null&&_.isConnected))return;_.style.setProperty("--popover-overflow-padding",`${w}px`);const z=Lt(H,j),le=async()=>{if(!P)return;$||(R.current=R.current||document.createElement("div"));const ne=$||R.current,pt=[Ft(ne,{gutter:v,shift:f}),kt({flip:d,overflowPadding:w}),Nt({slide:h,shift:f,overlap:m,overflowPadding:w}),jt(ne,{arrowPadding:x}),Wt({sameWidth:p,fitViewport:g,overflowPadding:w})],oe=await Ct(z,_,{placement:M,strategy:s?"fixed":"absolute",middleware:pt});t==null||t.setState("currentPlacement",oe.placement),V(!0);const mt=Ie(oe.x),ht=Ie(oe.y);if(Object.assign(_.style,{top:"0",left:"0",transform:`translate3d(${mt}px,${ht}px,0)`}),ne&&oe.middlewareData.arrow){const{x:pe,y:me}=oe.middlewareData.arrow,Le=oe.placement.split("-")[0],he=ne.clientWidth/2,ge=ne.clientHeight/2,De=pe!=null?pe+he:-he,Fe=me!=null?me+ge:-ge;_.style.setProperty("--popover-transform-origin",{top:`${De}px calc(100% + ${ge}px)`,bottom:`${De}px ${-ge}px`,left:`calc(100% + ${he}px) ${Fe}px`,right:`${-he}px ${Fe}px`}[Le]),Object.assign(ne.style,{left:pe!=null?`${pe}px`:"",top:me!=null?`${me}px`:"",[Le]:"100%"})}},dt=Ht(z,_,async()=>{U?(await B({updatePosition:le}),V(!0)):await le()},{elementResize:typeof ResizeObserver=="function"});return()=>{V(!1),dt()}},[t,O,_,$,H,_,M,P,G,s,d,f,h,m,p,g,v,x,w,j,U,B]),c.useSafeLayoutEffect(()=>{if(!P||!G||!(_!=null&&_.isConnected)||!(A!=null&&A.isConnected))return;const z=()=>{_.style.zIndex=getComputedStyle(A).zIndex};z();let le=requestAnimationFrame(()=>{le=requestAnimationFrame(z)});return()=>cancelAnimationFrame(le)},[P,G,_,A]);const te=s?"fixed":"absolute";return y=c.useWrapElement(y,z=>c.jsxRuntimeExports.jsx("div",c.__spreadProps(c.__spreadValues({},l),{style:c.__spreadValues({position:te,top:0,left:0,width:"max-content"},l==null?void 0:l.style),ref:t==null?void 0:t.setPopoverElement,children:z})),[t,te,l]),y=c.useWrapElement(y,z=>c.jsxRuntimeExports.jsx(ce.PopoverScopedContextProvider,{value:t,children:z}),[t]),y=c.__spreadProps(c.__spreadValues({"data-placing":!T||void 0},y),{style:c.__spreadValues({position:"relative"},y.style)}),y=de.useDialog(c.__spreadProps(c.__spreadValues({store:t,modal:i,portal:r,preserveTabOrder:u,preserveTabOrderAnchor:L||H,autoFocusOnShow:T&&a},y),{portalRef:k})),y}),Bt=de.createDialogComponent(c.forwardRef2(function(n){const o=it(n);return c.createElement(Mt,o)}),ce.usePopoverProviderContext),Me=c.createStoreContext([ce.PopoverContextProvider],[ce.PopoverScopedContextProvider]),Ve=Me.useProviderContext,zt=Me.ContextProvider,st=Me.ScopedContextProvider;function ut(e={}){var n;const o=(n=e.store)==null?void 0:n.getState(),t=Je(c.__spreadProps$1(c.__spreadValues$1({},e),{placement:c.defaultValue(e.placement,o==null?void 0:o.placement,"bottom")})),i=c.defaultValue(e.timeout,o==null?void 0:o.timeout,500),r=c.__spreadProps$1(c.__spreadValues$1({},t.getState()),{timeout:i,showTimeout:c.defaultValue(e.showTimeout,o==null?void 0:o.showTimeout),hideTimeout:c.defaultValue(e.hideTimeout,o==null?void 0:o.hideTimeout),autoFocusOnShow:c.defaultValue(o==null?void 0:o.autoFocusOnShow,!1)}),u=D.createStore(r,t,e.store);return c.__spreadProps$1(c.__spreadValues$1(c.__spreadValues$1({},t),u),{setAutoFocusOnShow:a=>u.setState("autoFocusOnShow",a)})}function lt(e,n,o){return D.useStoreProps(e,o,"timeout"),D.useStoreProps(e,o,"showTimeout"),D.useStoreProps(e,o,"hideTimeout"),Ue(e,n,o)}function qt(e={}){const[n,o]=D.useStore(ut,e);return lt(n,o,e)}function Re(e){return[e.clientX,e.clientY]}function Ye(e,n){const[o,t]=e;let i=!1;const r=n.length;for(let u=r,a=0,l=u-1;a<u;l=a++){const[s,d]=n[a],[f,h]=n[l],[,m]=n[l===0?u-1:l-1]||[0,0],p=(d-h)*(o-s)-(s-f)*(t-d);if(h<d){if(t>=h&&t<d){if(p===0)return!0;p>0&&(t===h?t>m&&(i=!i):i=!i)}}else if(d<h){if(t>d&&t<=h){if(p===0)return!0;p<0&&(t===h?t<m&&(i=!i):i=!i)}}else if(t===d&&(o>=f&&o<=s||o>=s&&o<=f))return!0}return i}function It(e,n){const{top:o,right:t,bottom:i,left:r}=n,[u,a]=e,l=u<r?"left":u>t?"right":null,s=a<o?"top":a>i?"bottom":null;return[l,s]}function Ge(e,n){const o=e.getBoundingClientRect(),{top:t,right:i,bottom:r,left:u}=o,[a,l]=It(n,o),s=[n];return a?(l!=="top"&&s.push([a==="left"?u:i,t]),s.push([a==="left"?i:u,t]),s.push([a==="left"?i:u,r]),l!=="bottom"&&s.push([a==="left"?u:i,r])):l==="top"?(s.push([u,t]),s.push([u,r]),s.push([i,r]),s.push([i,t])):(s.push([u,r]),s.push([u,t]),s.push([i,t]),s.push([i,r])),s}var Yt="div";function ct(e,n,o,t){return c.hasFocusWithin(n)?!0:e?!!(c.contains(n,e)||o&&c.contains(o,e)||t!=null&&t.some(i=>ct(e,i,o))):!1}function Gt(e){var n=e,{store:o}=n,t=c.__objRest(n,["store"]);const[i,r]=C.useState(!1),u=o.useState("mounted");C.useEffect(()=>{u||r(!1)},[u]);const a=t.onFocus,l=c.useEvent(d=>{a==null||a(d),!d.defaultPrevented&&r(!0)}),s=C.useRef(null);return C.useEffect(()=>D.sync(o,["anchorElement"],d=>{s.current=d.anchorElement}),[]),t=c.__spreadProps(c.__spreadValues({autoFocusOnHide:i,finalFocus:s},t),{onFocus:l}),t}var Xe=C.createContext(null),at=c.createHook(function(n){var o=n,{store:t,modal:i=!1,portal:r=!!i,hideOnEscape:u=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:l=!!a}=o,s=c.__objRest(o,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=Ve();t=t||d,c.invariant(t,process.env.NODE_ENV!=="production"&&"Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component.");const f=C.useRef(null),[h,m]=C.useState([]),p=C.useRef(0),g=C.useRef(null),{portalRef:v,domReady:x}=c.usePortalRef(r,s.portalRef),w=c.useIsMouseMoving(),b=!!a,E=c.useBooleanEvent(a),y=!!l,S=c.useBooleanEvent(l),$=t.useState("open"),H=t.useState("mounted");C.useEffect(()=>{if(!x||!H||!b&&!y)return;const P=f.current;if(!P)return;const O=R=>{if(!t||!w())return;const{anchorElement:T,hideTimeout:V,timeout:k}=t.getState(),G=g.current,[j]=R.composedPath(),B=T;if(ct(j,P,B,h)){g.current=j&&B&&c.contains(B,j)?Re(R):null,window.clearTimeout(p.current),p.current=0;return}if(!p.current){if(G){const U=Re(R),te=Ge(P,G);if(Ye(U,te)){if(g.current=U,!S(R))return;R.preventDefault(),R.stopPropagation();return}}E(R)&&(p.current=window.setTimeout(()=>{p.current=0,t==null||t.hide()},V??k))}};return c.chain(c.addGlobalEventListener("mousemove",O,!0),()=>clearTimeout(p.current))},[t,w,x,H,b,y,h,S,E]),C.useEffect(()=>{if(!x||!H||!y)return;const P=O=>{const R=f.current;if(!R)return;const T=g.current;if(!T)return;const V=Ge(R,T);if(Ye(Re(O),V)){if(!S(O))return;O.preventDefault(),O.stopPropagation()}};return c.chain(c.addGlobalEventListener("mouseenter",P,!0),c.addGlobalEventListener("mouseover",P,!0),c.addGlobalEventListener("mouseout",P,!0),c.addGlobalEventListener("mouseleave",P,!0))},[x,H,y,S]),C.useEffect(()=>{x&&($||t==null||t.setAutoFocusOnShow(!1))},[t,x,$]);const L=c.useLiveRef($);C.useEffect(()=>{if(x)return()=>{L.current||t==null||t.setAutoFocusOnShow(!1)}},[t,x]);const _=C.useContext(Xe);c.useSafeLayoutEffect(()=>{if(i||!r||!H||!x)return;const P=f.current;if(P)return _==null?void 0:_(P)},[i,r,H,x]);const A=C.useCallback(P=>{m(R=>[...R,P]);const O=_==null?void 0:_(P);return()=>{m(R=>R.filter(T=>T!==P)),O==null||O()}},[_]);s=c.useWrapElement(s,P=>c.jsxRuntimeExports.jsx(st,{value:t,children:c.jsxRuntimeExports.jsx(Xe.Provider,{value:A,children:P})}),[t,A]),s=c.__spreadProps(c.__spreadValues({},s),{ref:c.useMergeRefs(f,s.ref)}),s=Gt(c.__spreadValues({store:t},s));const M=t.useState(P=>i||P.autoFocusOnShow);return s=it(c.__spreadProps(c.__spreadValues({store:t,modal:i,portal:r,autoFocusOnShow:M},s),{portalRef:v,hideOnEscape(P){return c.isFalsyBooleanCallback(u,P)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{t==null||t.hide()})}),!0)}})),s}),Xt=de.createDialogComponent(c.forwardRef2(function(n){const o=at(n);return c.createElement(Yt,o)}),Ve),Jt="a",ft=c.createHook(function(n){var o=n,{store:t,showOnHover:i=!0}=o,r=c.__objRest(o,["store","showOnHover"]);const u=Ve();t=t||u,c.invariant(t,process.env.NODE_ENV!=="production"&&"HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component.");const a=c.disabledFromProps(r),l=C.useRef(0);C.useEffect(()=>()=>window.clearTimeout(l.current),[]),C.useEffect(()=>{const v=x=>{if(!t)return;const{anchorElement:w}=t.getState();w&&x.target===w&&(window.clearTimeout(l.current),l.current=0)};return c.addGlobalEventListener("mouseleave",v,!0)},[t]);const s=r.onMouseMove,d=c.useBooleanEvent(i),f=c.useIsMouseMoving(),h=c.useEvent(v=>{if(s==null||s(v),a||!t||v.defaultPrevented||l.current||!f()||!d(v))return;const x=v.currentTarget;t.setAnchorElement(x),t.setDisclosureElement(x);const{showTimeout:w,timeout:b}=t.getState(),E=()=>{l.current=0,f()&&(t==null||t.setAnchorElement(x),t==null||t.show(),queueMicrotask(()=>{t==null||t.setDisclosureElement(x)}))},y=w??b;y===0?E():l.current=window.setTimeout(E,y)}),m=r.onClick,p=c.useEvent(v=>{m==null||m(v),t&&(window.clearTimeout(l.current),l.current=0)}),g=C.useCallback(v=>{if(!t)return;const{anchorElement:x}=t.getState();x!=null&&x.isConnected||t.setAnchorElement(v)},[t]);return r=c.__spreadProps(c.__spreadValues({},r),{ref:c.useMergeRefs(g,r.ref),onMouseMove:h,onClick:p}),r=c.useFocusable(r),r}),Ut=c.forwardRef2(function(n){const o=ft(n);return c.createElement(Jt,o)});exports.Hovercard=Xt;exports.HovercardAnchor=Ut;exports.HovercardContextProvider=zt;exports.HovercardScopedContextProvider=st;exports.Popover=Bt;exports.createHovercardStore=ut;exports.useHovercard=at;exports.useHovercardAnchor=ft;exports.useHovercardStore=qt;exports.useHovercardStoreProps=lt;exports.usePopoverStore=gt;
|
|
1
|
+
"use client";"use strict";const de=require("./JC64G2H7-YkBMNrtl.js"),D=require("./YV4JVR4I-DIthYWMj.js"),c=require("./LVA2YJMS-B2HZjIhJ.js"),ce=require("./MTZPJQMC-5Xg78Uyy.js"),C=require("react");function Je(e={}){var n=e,{popover:o}=n,t=c.__objRest$1(n,["popover"]);const i=D.mergeStore(t.store,D.omit2(o,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"]));D.throwOnConflictingProps(t,i);const r=i==null?void 0:i.getState(),u=de.createDialogStore(c.__spreadProps$1(c.__spreadValues$1({},t),{store:i})),a=c.defaultValue(t.placement,r==null?void 0:r.placement,"bottom"),l=c.__spreadProps$1(c.__spreadValues$1({},u.getState()),{placement:a,currentPlacement:a,anchorElement:c.defaultValue(r==null?void 0:r.anchorElement,null),popoverElement:c.defaultValue(r==null?void 0:r.popoverElement,null),arrowElement:c.defaultValue(r==null?void 0:r.arrowElement,null),rendered:Symbol("rendered")}),s=D.createStore(l,u,i);return c.__spreadProps$1(c.__spreadValues$1(c.__spreadValues$1({},u),s),{setAnchorElement:d=>s.setState("anchorElement",d),setPopoverElement:d=>s.setState("popoverElement",d),setArrowElement:d=>s.setState("arrowElement",d),render:()=>s.setState("rendered",Symbol("rendered"))})}function Ue(e,n,o){return c.useUpdateEffect(n,[o.popover]),D.useStoreProps(e,o,"placement"),de.useDialogStoreProps(e,n,o)}function gt(e={}){const[n,o]=D.useStore(Je,e);return Ue(n,o,e)}function ue(e){return e.split("-")[1]}function Te(e){return e==="y"?"height":"width"}function q(e){return e.split("-")[0]}function ee(e){return["top","bottom"].includes(q(e))?"x":"y"}function ke(e,n,o){let{reference:t,floating:i}=e;const r=t.x+t.width/2-i.width/2,u=t.y+t.height/2-i.height/2,a=ee(n),l=Te(a),s=t[l]/2-i[l]/2,d=a==="x";let f;switch(q(n)){case"top":f={x:r,y:t.y-i.height};break;case"bottom":f={x:r,y:t.y+t.height};break;case"right":f={x:t.x+t.width,y:u};break;case"left":f={x:t.x-i.width,y:u};break;default:f={x:t.x,y:t.y}}switch(ue(n)){case"start":f[a]-=s*(o&&d?-1:1);break;case"end":f[a]+=s*(o&&d?-1:1)}return f}const vt=async(e,n,o)=>{const{placement:t="bottom",strategy:i="absolute",middleware:r=[],platform:u}=o,a=r.filter(Boolean),l=await(u.isRTL==null?void 0:u.isRTL(n));let s=await u.getElementRects({reference:e,floating:n,strategy:i}),{x:d,y:f}=ke(s,t,l),h=t,m={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:x}=a[g],{x:w,y:b,data:E,reset:y}=await x({x:d,y:f,initialPlacement:t,placement:h,strategy:i,middlewareData:m,rects:s,platform:u,elements:{reference:e,floating:n}});d=w??d,f=b??f,m={...m,[v]:{...m[v],...E}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(s=y.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:i}):y.rects),{x:d,y:f}=ke(s,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};function X(e,n){return typeof e=="function"?e(n):e}function Ze(e){return typeof e!="number"?function(n){return{top:0,right:0,bottom:0,left:0,...n}}(e):{top:e,right:e,bottom:e,left:e}}function xe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function $e(e,n){var o;n===void 0&&(n={});const{x:t,y:i,platform:r,rects:u,elements:a,strategy:l}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=X(n,e),p=Ze(m),g=a[h?f==="floating"?"reference":"floating":f],v=xe(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(g)))==null||o?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:d,strategy:l})),x=f==="floating"?{...u.floating,x:t,y:i}:u.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(w))&&await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1},E=xe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:w,strategy:l}):x);return{top:(v.top-E.top+p.top)/b.y,bottom:(E.bottom-v.bottom+p.bottom)/b.y,left:(v.left-E.left+p.left)/b.x,right:(E.right-v.right+p.right)/b.x}}const ae=Math.min,Z=Math.max;function _e(e,n,o){return Z(e,ae(n,o))}const xt=e=>({name:"arrow",options:e,async fn(n){const{x:o,y:t,placement:i,rects:r,platform:u,elements:a}=n,{element:l,padding:s=0}=X(e,n)||{};if(l==null)return{};const d=Ze(s),f={x:o,y:t},h=ee(i),m=Te(h),p=await u.getDimensions(l),g=h==="y",v=g?"top":"left",x=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[h]-f[h]-r.floating[m],E=f[h]-r.reference[h],y=await(u.getOffsetParent==null?void 0:u.getOffsetParent(l));let S=y?y[w]:0;S&&await(u.isElement==null?void 0:u.isElement(y))||(S=a.floating[w]||r.floating[m]);const $=b/2-E/2,H=S/2-p[m]/2-1,L=ae(d[v],H),_=ae(d[x],H),A=L,M=S-p[m]-_,P=S/2-p[m]/2+$,O=_e(A,P,M),R=ue(i)!=null&&P!=O&&r.reference[m]/2-(P<A?L:_)-p[m]/2<0?P<A?A-P:M-P:0;return{[h]:f[h]-R,data:{[h]:O,centerOffset:P-O+R}}}}),wt=["top","right","bottom","left"];wt.reduce((e,n)=>e.concat(n,n+"-start",n+"-end"),[]);const yt={left:"right",right:"left",bottom:"top",top:"bottom"};function we(e){return e.replace(/left|right|bottom|top/g,n=>yt[n])}function Pt(e,n,o){o===void 0&&(o=!1);const t=ue(e),i=ee(e),r=Te(i);let u=i==="x"?t===(o?"end":"start")?"right":"left":t==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(u=we(u)),{main:u,cross:we(u)}}const bt={start:"end",end:"start"};function Se(e){return e.replace(/start|end/g,n=>bt[n])}const Et=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o;const{placement:t,middlewareData:i,rects:r,initialPlacement:u,platform:a,elements:l}=n,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...g}=X(e,n),v=q(t),x=q(u)===u,w=await(a.isRTL==null?void 0:a.isRTL(l.floating)),b=f||(x||!p?[we(u)]:function(A){const M=we(A);return[Se(A),M,Se(M)]}(u));f||m==="none"||b.push(...function(A,M,P,O){const R=ue(A);let T=function(V,k,G){const j=["left","right"],B=["right","left"],U=["top","bottom"],te=["bottom","top"];switch(V){case"top":case"bottom":return G?k?B:j:k?j:B;case"left":case"right":return k?U:te;default:return[]}}(q(A),P==="start",O);return R&&(T=T.map(V=>V+"-"+R),M&&(T=T.concat(T.map(Se)))),T}(u,p,m,w));const E=[u,...b],y=await $e(n,g),S=[];let $=((o=i.flip)==null?void 0:o.overflows)||[];if(s&&S.push(y[v]),d){const{main:A,cross:M}=Pt(t,r,w);S.push(y[A],y[M])}if($=[...$,{placement:t,overflows:S}],!S.every(A=>A<=0)){var H,L;const A=(((H=i.flip)==null?void 0:H.index)||0)+1,M=E[A];if(M)return{data:{index:A,overflows:$},reset:{placement:M}};let P=(L=$.filter(O=>O.overflows[0]<=0).sort((O,R)=>O.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(h){case"bestFit":{var _;const O=(_=$.map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,V)=>T+V,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:_[0];O&&(P=O);break}case"initialPlacement":P=u}if(t!==P)return{reset:{placement:P}}}return{}}}},St=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:o,y:t}=n,i=await async function(r,u){const{placement:a,platform:l,elements:s}=r,d=await(l.isRTL==null?void 0:l.isRTL(s.floating)),f=q(a),h=ue(a),m=ee(a)==="x",p=["left","top"].includes(f)?-1:1,g=d&&m?-1:1,v=X(u,r);let{mainAxis:x,crossAxis:w,alignmentAxis:b}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return h&&typeof b=="number"&&(w=h==="end"?-1*b:b),m?{x:w*g,y:x*p}:{x:x*p,y:w*g}}(n,e);return{x:o+i.x,y:t+i.y,data:i}}}};function Qe(e){return e==="x"?"y":"x"}const Rt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:t,placement:i}=n,{mainAxis:r=!0,crossAxis:u=!1,limiter:a={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...l}=X(e,n),s={x:o,y:t},d=await $e(n,l),f=ee(q(i)),h=Qe(f);let m=s[f],p=s[h];if(r){const v=f==="y"?"bottom":"right";m=_e(m+d[f==="y"?"top":"left"],m,m-d[v])}if(u){const v=h==="y"?"bottom":"right";p=_e(p+d[h==="y"?"top":"left"],p,p-d[v])}const g=a.fn({...n,[f]:m,[h]:p});return{...g,data:{x:g.x-o,y:g.y-t}}}}},_t=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:t,placement:i,rects:r,middlewareData:u}=n,{offset:a=0,mainAxis:l=!0,crossAxis:s=!0}=X(e,n),d={x:o,y:t},f=ee(i),h=Qe(f);let m=d[f],p=d[h];const g=X(a,n),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=f==="y"?"height":"width",E=r.reference[f]-r.floating[b]+v.mainAxis,y=r.reference[f]+r.reference[b]-v.mainAxis;m<E?m=E:m>y&&(m=y)}if(s){var x,w;const b=f==="y"?"width":"height",E=["top","left"].includes(q(i)),y=r.reference[h]-r.floating[b]+(E&&((x=u.offset)==null?void 0:x[h])||0)+(E?0:v.crossAxis),S=r.reference[h]+r.reference[b]+(E?0:((w=u.offset)==null?void 0:w[h])||0)-(E?v.crossAxis:0);p<y?p=y:p>S&&(p=S)}return{[f]:m,[h]:p}}}},At=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:o,rects:t,platform:i,elements:r}=n,{apply:u=()=>{},...a}=X(e,n),l=await $e(n,a),s=q(o),d=ue(o),f=ee(o)==="x",{width:h,height:m}=t.floating;let p,g;s==="top"||s==="bottom"?(p=s,g=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=s,p=d==="end"?"top":"bottom");const v=m-l[p],x=h-l[g],w=!n.middlewareData.shift;let b=v,E=x;if(f){const S=h-l.left-l.right;E=d||w?ae(x,S):S}else{const S=m-l.top-l.bottom;b=d||w?ae(v,S):S}if(w&&!d){const S=Z(l.left,0),$=Z(l.right,0),H=Z(l.top,0),L=Z(l.bottom,0);f?E=h-2*(S!==0||$!==0?S+$:Z(l.left,l.right)):b=m-2*(H!==0||L!==0?H+L:Z(l.top,l.bottom))}await u({...n,availableWidth:E,availableHeight:b});const y=await i.getDimensions(r.floating);return h!==y.width||m!==y.height?{reset:{rects:!0}}:{}}}};function F(e){var n;return((n=e.ownerDocument)==null?void 0:n.defaultView)||window}function N(e){return F(e).getComputedStyle(e)}function Ke(e){return e instanceof F(e).Node}function J(e){return Ke(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){return e instanceof F(e).HTMLElement}function I(e){return e instanceof F(e).Element}function Ne(e){return typeof ShadowRoot<"u"&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}function fe(e){const{overflow:n,overflowX:o,overflowY:t,display:i}=N(e);return/auto|scroll|overlay|hidden|clip/.test(n+t+o)&&!["inline","contents"].includes(i)}function Ot(e){return["table","td","th"].includes(J(e))}function Ae(e){const n=He(),o=N(e);return o.transform!=="none"||o.perspective!=="none"||!n&&!!o.backdropFilter&&o.backdropFilter!=="none"||!n&&!!o.filter&&o.filter!=="none"||["transform","perspective","filter"].some(t=>(o.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(o.contain||"").includes(t))}function He(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function be(e){return["html","body","#document"].includes(J(e))}const Oe=Math.min,re=Math.max,ye=Math.round,ve=Math.floor,Q=e=>({x:e,y:e});function et(e){const n=N(e);let o=parseFloat(n.width)||0,t=parseFloat(n.height)||0;const i=W(e),r=i?e.offsetWidth:o,u=i?e.offsetHeight:t,a=ye(o)!==r||ye(t)!==u;return a&&(o=r,t=u),{width:o,height:t,$:a}}function Ce(e){return I(e)?e:e.contextElement}function ie(e){const n=Ce(e);if(!W(n))return Q(1);const o=n.getBoundingClientRect(),{width:t,height:i,$:r}=et(n);let u=(r?ye(o.width):o.width)/t,a=(r?ye(o.height):o.height)/i;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}const We=Q(0);function tt(e,n,o){var t,i;if(n===void 0&&(n=!0),!He())return We;const r=e?F(e):window;return!o||n&&o!==r?We:{x:((t=r.visualViewport)==null?void 0:t.offsetLeft)||0,y:((i=r.visualViewport)==null?void 0:i.offsetTop)||0}}function K(e,n,o,t){n===void 0&&(n=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),r=Ce(e);let u=Q(1);n&&(t?I(t)&&(u=ie(t)):u=ie(e));const a=tt(r,o,t);let l=(i.left+a.x)/u.x,s=(i.top+a.y)/u.y,d=i.width/u.x,f=i.height/u.y;if(r){const h=F(r),m=t&&I(t)?F(t):t;let p=h.frameElement;for(;p&&t&&m!==h;){const g=ie(p),v=p.getBoundingClientRect(),x=getComputedStyle(p),w=v.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,b=v.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,s*=g.y,d*=g.x,f*=g.y,l+=w,s+=b,p=F(p).frameElement}}return xe({width:d,height:f,x:l,y:s})}function Y(e){return((Ke(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ee(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){return K(Y(e)).left+Ee(e).scrollLeft}function se(e){if(J(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Ne(e)&&e.host||Y(e);return Ne(n)?n.host:n}function ot(e){const n=se(e);return be(n)?e.ownerDocument?e.ownerDocument.body:e.body:W(n)&&fe(n)?n:ot(n)}function Pe(e,n){var o;n===void 0&&(n=[]);const t=ot(e),i=t===((o=e.ownerDocument)==null?void 0:o.body),r=F(t);return i?n.concat(r,r.visualViewport||[],fe(t)?t:[]):n.concat(t,Pe(t))}function je(e,n,o){let t;if(n==="viewport")t=function(i,r){const u=F(i),a=Y(i),l=u.visualViewport;let s=a.clientWidth,d=a.clientHeight,f=0,h=0;if(l){s=l.width,d=l.height;const m=He();(!m||m&&r==="fixed")&&(f=l.offsetLeft,h=l.offsetTop)}return{width:s,height:d,x:f,y:h}}(e,o);else if(n==="document")t=function(i){const r=Y(i),u=Ee(i),a=i.ownerDocument.body,l=re(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),s=re(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let d=-u.scrollLeft+nt(i);const f=-u.scrollTop;return N(a).direction==="rtl"&&(d+=re(r.clientWidth,a.clientWidth)-l),{width:l,height:s,x:d,y:f}}(Y(e));else if(I(n))t=function(i,r){const u=K(i,!0,r==="fixed"),a=u.top+i.clientTop,l=u.left+i.clientLeft,s=W(i)?ie(i):Q(1);return{width:i.clientWidth*s.x,height:i.clientHeight*s.y,x:l*s.x,y:a*s.y}}(n,o);else{const i=tt(e);t={...n,x:n.x-i.x,y:n.y-i.y}}return xe(t)}function rt(e,n){const o=se(e);return!(o===n||!I(o)||be(o))&&(N(o).position==="fixed"||rt(o,n))}function Be(e,n){return W(e)&&N(e).position!=="fixed"?n?n(e):e.offsetParent:null}function ze(e,n){const o=F(e);if(!W(e))return o;let t=Be(e,n);for(;t&&Ot(t)&&N(t).position==="static";)t=Be(t,n);return t&&(J(t)==="html"||J(t)==="body"&&N(t).position==="static"&&!Ae(t))?o:t||function(i){let r=se(i);for(;W(r)&&!be(r);){if(Ae(r))return r;r=se(r)}return null}(e)||o}function Tt(e,n,o){const t=W(n),i=Y(n),r=o==="fixed",u=K(e,!0,r,n);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if(t||!t&&!r)if((J(n)!=="body"||fe(i))&&(a=Ee(n)),W(n)){const s=K(n,!0,r,n);l.x=s.x+n.clientLeft,l.y=s.y+n.clientTop}else i&&(l.x=nt(i));return{x:u.left+a.scrollLeft-l.x,y:u.top+a.scrollTop-l.y,width:u.width,height:u.height}}const $t={getClippingRect:function(e){let{element:n,boundary:o,rootBoundary:t,strategy:i}=e;const r=o==="clippingAncestors"?function(s,d){const f=d.get(s);if(f)return f;let h=Pe(s).filter(v=>I(v)&&J(v)!=="body"),m=null;const p=N(s).position==="fixed";let g=p?se(s):s;for(;I(g)&&!be(g);){const v=N(g),x=Ae(g);x||v.position!=="fixed"||(m=null),(p?!x&&!m:!x&&v.position==="static"&&m&&["absolute","fixed"].includes(m.position)||fe(g)&&!x&&rt(s,g))?h=h.filter(w=>w!==g):m=v,g=se(g)}return d.set(s,h),h}(n,this._c):[].concat(o),u=[...r,t],a=u[0],l=u.reduce((s,d)=>{const f=je(n,d,i);return s.top=re(f.top,s.top),s.right=Oe(f.right,s.right),s.bottom=Oe(f.bottom,s.bottom),s.left=re(f.left,s.left),s},je(n,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:n,offsetParent:o,strategy:t}=e;const i=W(o),r=Y(o);if(o===r)return n;let u={scrollLeft:0,scrollTop:0},a=Q(1);const l=Q(0);if((i||!i&&t!=="fixed")&&((J(o)!=="body"||fe(r))&&(u=Ee(o)),W(o))){const s=K(o);a=ie(o),l.x=s.x+o.clientLeft,l.y=s.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-u.scrollLeft*a.x+l.x,y:n.y*a.y-u.scrollTop*a.y+l.y}},isElement:I,getDimensions:function(e){return et(e)},getOffsetParent:ze,getDocumentElement:Y,getScale:ie,async getElementRects(e){let{reference:n,floating:o,strategy:t}=e;const i=this.getOffsetParent||ze,r=this.getDimensions;return{reference:Tt(n,await i(o),t),floating:{x:0,y:0,...await r(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>N(e).direction==="rtl"};function Ht(e,n,o,t){t===void 0&&(t={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:u=!0,layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=t,s=Ce(e),d=i||r?[...s?Pe(s):[],...Pe(n)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const f=s&&a?function(g,v){let x,w=null;const b=Y(g);function E(){clearTimeout(x),w&&w.disconnect(),w=null}return function y(S,$){S===void 0&&(S=!1),$===void 0&&($=1),E();const{left:H,top:L,width:_,height:A}=g.getBoundingClientRect();if(S||v(),!_||!A)return;const M=ve(L),P=ve(b.clientWidth-(H+_)),O=ve(b.clientHeight-(L+A)),R=ve(H);let T=!0;w=new IntersectionObserver(V=>{const k=V[0].intersectionRatio;if(k!==$){if(!T)return y();k?y(!1,k):x=setTimeout(()=>{y(!1,1e-7)},100)}T=!1},{rootMargin:-M+"px "+-P+"px "+-O+"px "+-R+"px",threshold:re(0,Oe(1,$))||1}),w.observe(g)}(!0),E}(s,o):null;let h,m=null;u&&(m=new ResizeObserver(o),s&&!l&&m.observe(s),m.observe(n));let p=l?K(e):null;return l&&function g(){const v=K(e);!p||v.x===p.x&&v.y===p.y&&v.width===p.width&&v.height===p.height||o(),p=v,h=requestAnimationFrame(g)}(),o(),()=>{d.forEach(g=>{i&&g.removeEventListener("scroll",o),r&&g.removeEventListener("resize",o)}),f&&f(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const Ct=(e,n,o)=>{const t=new Map,i={platform:$t,...o},r={...i.platform,_c:t};return vt(e,n,{...i,platform:r})};var Mt="div";function qe(e=0,n=0,o=0,t=0){if(typeof DOMRect=="function")return new DOMRect(e,n,o,t);const i={x:e,y:n,width:o,height:t,top:n,right:e+o,bottom:n+t,left:e};return c.__spreadProps(c.__spreadValues({},i),{toJSON:()=>i})}function Vt(e){if(!e)return qe();const{x:n,y:o,width:t,height:i}=e;return qe(n,o,t,i)}function Lt(e,n){return{contextElement:e||void 0,getBoundingClientRect:()=>{const t=e,i=n==null?void 0:n(t);return i||!t?Vt(i):t.getBoundingClientRect()}}}function Dt(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Ie(e){const n=window.devicePixelRatio||1;return Math.round(e*n)/n}function Ft(e,n){return St(({placement:o})=>{var t;const i=((e==null?void 0:e.clientHeight)||0)/2,r=typeof n.gutter=="number"?n.gutter+i:(t=n.gutter)!=null?t:i;return{crossAxis:!!o.split("-")[1]?void 0:n.shift,mainAxis:r,alignmentAxis:n.shift}})}function kt(e){if(e.flip===!1)return;const n=typeof e.flip=="string"?e.flip.split(" "):void 0;return c.invariant(!n||n.every(Dt),process.env.NODE_ENV!=="production"&&"`flip` expects a spaced-delimited list of placements"),Et({padding:e.overflowPadding,fallbackPlacements:n})}function Nt(e){if(!(!e.slide&&!e.overlap))return Rt({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:_t()})}function Wt(e){return At({padding:e.overflowPadding,apply({elements:n,availableWidth:o,availableHeight:t,rects:i}){const r=n.floating,u=Math.round(i.reference.width);o=Math.floor(o),t=Math.floor(t),r.style.setProperty("--popover-anchor-width",`${u}px`),r.style.setProperty("--popover-available-width",`${o}px`),r.style.setProperty("--popover-available-height",`${t}px`),e.sameWidth&&(r.style.width=`${u}px`),e.fitViewport&&(r.style.maxWidth=`${o}px`,r.style.maxHeight=`${t}px`)}})}function jt(e,n){if(e)return xt({element:e,padding:n.arrowPadding})}var it=c.createHook(function(n){var o=n,{store:t,modal:i=!1,portal:r=!!i,preserveTabOrder:u=!0,autoFocusOnShow:a=!0,wrapperProps:l,fixed:s=!1,flip:d=!0,shift:f=0,slide:h=!0,overlap:m=!1,sameWidth:p=!1,fitViewport:g=!1,gutter:v,arrowPadding:x=4,overflowPadding:w=8,getAnchorRect:b,updatePosition:E}=o,y=c.__objRest(o,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const S=ce.usePopoverProviderContext();t=t||S,c.invariant(t,process.env.NODE_ENV!=="production"&&"Popover must receive a `store` prop or be wrapped in a PopoverProvider component.");const $=t.useState("arrowElement"),H=t.useState("anchorElement"),L=t.useState("disclosureElement"),_=t.useState("popoverElement"),A=t.useState("contentElement"),M=t.useState("placement"),P=t.useState("mounted"),O=t.useState("rendered"),R=C.useRef(null),[T,V]=C.useState(!1),{portalRef:k,domReady:G}=c.usePortalRef(r,y.portalRef),j=c.useEvent(b),B=c.useEvent(E),U=!!E;c.useSafeLayoutEffect(()=>{if(!(_!=null&&_.isConnected))return;_.style.setProperty("--popover-overflow-padding",`${w}px`);const z=Lt(H,j),le=async()=>{if(!P)return;$||(R.current=R.current||document.createElement("div"));const ne=$||R.current,pt=[Ft(ne,{gutter:v,shift:f}),kt({flip:d,overflowPadding:w}),Nt({slide:h,shift:f,overlap:m,overflowPadding:w}),jt(ne,{arrowPadding:x}),Wt({sameWidth:p,fitViewport:g,overflowPadding:w})],oe=await Ct(z,_,{placement:M,strategy:s?"fixed":"absolute",middleware:pt});t==null||t.setState("currentPlacement",oe.placement),V(!0);const mt=Ie(oe.x),ht=Ie(oe.y);if(Object.assign(_.style,{top:"0",left:"0",transform:`translate3d(${mt}px,${ht}px,0)`}),ne&&oe.middlewareData.arrow){const{x:pe,y:me}=oe.middlewareData.arrow,Le=oe.placement.split("-")[0],he=ne.clientWidth/2,ge=ne.clientHeight/2,De=pe!=null?pe+he:-he,Fe=me!=null?me+ge:-ge;_.style.setProperty("--popover-transform-origin",{top:`${De}px calc(100% + ${ge}px)`,bottom:`${De}px ${-ge}px`,left:`calc(100% + ${he}px) ${Fe}px`,right:`${-he}px ${Fe}px`}[Le]),Object.assign(ne.style,{left:pe!=null?`${pe}px`:"",top:me!=null?`${me}px`:"",[Le]:"100%"})}},dt=Ht(z,_,async()=>{U?(await B({updatePosition:le}),V(!0)):await le()},{elementResize:typeof ResizeObserver=="function"});return()=>{V(!1),dt()}},[t,O,_,$,H,_,M,P,G,s,d,f,h,m,p,g,v,x,w,j,U,B]),c.useSafeLayoutEffect(()=>{if(!P||!G||!(_!=null&&_.isConnected)||!(A!=null&&A.isConnected))return;const z=()=>{_.style.zIndex=getComputedStyle(A).zIndex};z();let le=requestAnimationFrame(()=>{le=requestAnimationFrame(z)});return()=>cancelAnimationFrame(le)},[P,G,_,A]);const te=s?"fixed":"absolute";return y=c.useWrapElement(y,z=>c.jsxRuntimeExports.jsx("div",c.__spreadProps(c.__spreadValues({},l),{style:c.__spreadValues({position:te,top:0,left:0,width:"max-content"},l==null?void 0:l.style),ref:t==null?void 0:t.setPopoverElement,children:z})),[t,te,l]),y=c.useWrapElement(y,z=>c.jsxRuntimeExports.jsx(ce.PopoverScopedContextProvider,{value:t,children:z}),[t]),y=c.__spreadProps(c.__spreadValues({"data-placing":!T||void 0},y),{style:c.__spreadValues({position:"relative"},y.style)}),y=de.useDialog(c.__spreadProps(c.__spreadValues({store:t,modal:i,portal:r,preserveTabOrder:u,preserveTabOrderAnchor:L||H,autoFocusOnShow:T&&a},y),{portalRef:k})),y}),Bt=de.createDialogComponent(c.forwardRef2(function(n){const o=it(n);return c.createElement(Mt,o)}),ce.usePopoverProviderContext),Me=c.createStoreContext([ce.PopoverContextProvider],[ce.PopoverScopedContextProvider]),Ve=Me.useProviderContext,zt=Me.ContextProvider,st=Me.ScopedContextProvider;function ut(e={}){var n;const o=(n=e.store)==null?void 0:n.getState(),t=Je(c.__spreadProps$1(c.__spreadValues$1({},e),{placement:c.defaultValue(e.placement,o==null?void 0:o.placement,"bottom")})),i=c.defaultValue(e.timeout,o==null?void 0:o.timeout,500),r=c.__spreadProps$1(c.__spreadValues$1({},t.getState()),{timeout:i,showTimeout:c.defaultValue(e.showTimeout,o==null?void 0:o.showTimeout),hideTimeout:c.defaultValue(e.hideTimeout,o==null?void 0:o.hideTimeout),autoFocusOnShow:c.defaultValue(o==null?void 0:o.autoFocusOnShow,!1)}),u=D.createStore(r,t,e.store);return c.__spreadProps$1(c.__spreadValues$1(c.__spreadValues$1({},t),u),{setAutoFocusOnShow:a=>u.setState("autoFocusOnShow",a)})}function lt(e,n,o){return D.useStoreProps(e,o,"timeout"),D.useStoreProps(e,o,"showTimeout"),D.useStoreProps(e,o,"hideTimeout"),Ue(e,n,o)}function qt(e={}){const[n,o]=D.useStore(ut,e);return lt(n,o,e)}function Re(e){return[e.clientX,e.clientY]}function Ye(e,n){const[o,t]=e;let i=!1;const r=n.length;for(let u=r,a=0,l=u-1;a<u;l=a++){const[s,d]=n[a],[f,h]=n[l],[,m]=n[l===0?u-1:l-1]||[0,0],p=(d-h)*(o-s)-(s-f)*(t-d);if(h<d){if(t>=h&&t<d){if(p===0)return!0;p>0&&(t===h?t>m&&(i=!i):i=!i)}}else if(d<h){if(t>d&&t<=h){if(p===0)return!0;p<0&&(t===h?t<m&&(i=!i):i=!i)}}else if(t===d&&(o>=f&&o<=s||o>=s&&o<=f))return!0}return i}function It(e,n){const{top:o,right:t,bottom:i,left:r}=n,[u,a]=e,l=u<r?"left":u>t?"right":null,s=a<o?"top":a>i?"bottom":null;return[l,s]}function Ge(e,n){const o=e.getBoundingClientRect(),{top:t,right:i,bottom:r,left:u}=o,[a,l]=It(n,o),s=[n];return a?(l!=="top"&&s.push([a==="left"?u:i,t]),s.push([a==="left"?i:u,t]),s.push([a==="left"?i:u,r]),l!=="bottom"&&s.push([a==="left"?u:i,r])):l==="top"?(s.push([u,t]),s.push([u,r]),s.push([i,r]),s.push([i,t])):(s.push([u,r]),s.push([u,t]),s.push([i,t]),s.push([i,r])),s}var Yt="div";function ct(e,n,o,t){return c.hasFocusWithin(n)?!0:e?!!(c.contains(n,e)||o&&c.contains(o,e)||t!=null&&t.some(i=>ct(e,i,o))):!1}function Gt(e){var n=e,{store:o}=n,t=c.__objRest(n,["store"]);const[i,r]=C.useState(!1),u=o.useState("mounted");C.useEffect(()=>{u||r(!1)},[u]);const a=t.onFocus,l=c.useEvent(d=>{a==null||a(d),!d.defaultPrevented&&r(!0)}),s=C.useRef(null);return C.useEffect(()=>D.sync(o,["anchorElement"],d=>{s.current=d.anchorElement}),[]),t=c.__spreadProps(c.__spreadValues({autoFocusOnHide:i,finalFocus:s},t),{onFocus:l}),t}var Xe=C.createContext(null),at=c.createHook(function(n){var o=n,{store:t,modal:i=!1,portal:r=!!i,hideOnEscape:u=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:l=!!a}=o,s=c.__objRest(o,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=Ve();t=t||d,c.invariant(t,process.env.NODE_ENV!=="production"&&"Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component.");const f=C.useRef(null),[h,m]=C.useState([]),p=C.useRef(0),g=C.useRef(null),{portalRef:v,domReady:x}=c.usePortalRef(r,s.portalRef),w=c.useIsMouseMoving(),b=!!a,E=c.useBooleanEvent(a),y=!!l,S=c.useBooleanEvent(l),$=t.useState("open"),H=t.useState("mounted");C.useEffect(()=>{if(!x||!H||!b&&!y)return;const P=f.current;if(!P)return;const O=R=>{if(!t||!w())return;const{anchorElement:T,hideTimeout:V,timeout:k}=t.getState(),G=g.current,[j]=R.composedPath(),B=T;if(ct(j,P,B,h)){g.current=j&&B&&c.contains(B,j)?Re(R):null,window.clearTimeout(p.current),p.current=0;return}if(!p.current){if(G){const U=Re(R),te=Ge(P,G);if(Ye(U,te)){if(g.current=U,!S(R))return;R.preventDefault(),R.stopPropagation();return}}E(R)&&(p.current=window.setTimeout(()=>{p.current=0,t==null||t.hide()},V??k))}};return c.chain(c.addGlobalEventListener("mousemove",O,!0),()=>clearTimeout(p.current))},[t,w,x,H,b,y,h,S,E]),C.useEffect(()=>{if(!x||!H||!y)return;const P=O=>{const R=f.current;if(!R)return;const T=g.current;if(!T)return;const V=Ge(R,T);if(Ye(Re(O),V)){if(!S(O))return;O.preventDefault(),O.stopPropagation()}};return c.chain(c.addGlobalEventListener("mouseenter",P,!0),c.addGlobalEventListener("mouseover",P,!0),c.addGlobalEventListener("mouseout",P,!0),c.addGlobalEventListener("mouseleave",P,!0))},[x,H,y,S]),C.useEffect(()=>{x&&($||t==null||t.setAutoFocusOnShow(!1))},[t,x,$]);const L=c.useLiveRef($);C.useEffect(()=>{if(x)return()=>{L.current||t==null||t.setAutoFocusOnShow(!1)}},[t,x]);const _=C.useContext(Xe);c.useSafeLayoutEffect(()=>{if(i||!r||!H||!x)return;const P=f.current;if(P)return _==null?void 0:_(P)},[i,r,H,x]);const A=C.useCallback(P=>{m(R=>[...R,P]);const O=_==null?void 0:_(P);return()=>{m(R=>R.filter(T=>T!==P)),O==null||O()}},[_]);s=c.useWrapElement(s,P=>c.jsxRuntimeExports.jsx(st,{value:t,children:c.jsxRuntimeExports.jsx(Xe.Provider,{value:A,children:P})}),[t,A]),s=c.__spreadProps(c.__spreadValues({},s),{ref:c.useMergeRefs(f,s.ref)}),s=Gt(c.__spreadValues({store:t},s));const M=t.useState(P=>i||P.autoFocusOnShow);return s=it(c.__spreadProps(c.__spreadValues({store:t,modal:i,portal:r,autoFocusOnShow:M},s),{portalRef:v,hideOnEscape(P){return c.isFalsyBooleanCallback(u,P)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{t==null||t.hide()})}),!0)}})),s}),Xt=de.createDialogComponent(c.forwardRef2(function(n){const o=at(n);return c.createElement(Yt,o)}),Ve),Jt="a",ft=c.createHook(function(n){var o=n,{store:t,showOnHover:i=!0}=o,r=c.__objRest(o,["store","showOnHover"]);const u=Ve();t=t||u,c.invariant(t,process.env.NODE_ENV!=="production"&&"HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component.");const a=c.disabledFromProps(r),l=C.useRef(0);C.useEffect(()=>()=>window.clearTimeout(l.current),[]),C.useEffect(()=>{const v=x=>{if(!t)return;const{anchorElement:w}=t.getState();w&&x.target===w&&(window.clearTimeout(l.current),l.current=0)};return c.addGlobalEventListener("mouseleave",v,!0)},[t]);const s=r.onMouseMove,d=c.useBooleanEvent(i),f=c.useIsMouseMoving(),h=c.useEvent(v=>{if(s==null||s(v),a||!t||v.defaultPrevented||l.current||!f()||!d(v))return;const x=v.currentTarget;t.setAnchorElement(x),t.setDisclosureElement(x);const{showTimeout:w,timeout:b}=t.getState(),E=()=>{l.current=0,f()&&(t==null||t.setAnchorElement(x),t==null||t.show(),queueMicrotask(()=>{t==null||t.setDisclosureElement(x)}))},y=w??b;y===0?E():l.current=window.setTimeout(E,y)}),m=r.onClick,p=c.useEvent(v=>{m==null||m(v),t&&(window.clearTimeout(l.current),l.current=0)}),g=C.useCallback(v=>{if(!t)return;const{anchorElement:x}=t.getState();x!=null&&x.isConnected||t.setAnchorElement(v)},[t]);return r=c.__spreadProps(c.__spreadValues({},r),{ref:c.useMergeRefs(g,r.ref),onMouseMove:h,onClick:p}),r=c.useFocusable(r),r}),Ut=c.forwardRef2(function(n){const o=ft(n);return c.createElement(Jt,o)});exports.Hovercard=Xt;exports.HovercardAnchor=Ut;exports.HovercardContextProvider=zt;exports.HovercardScopedContextProvider=st;exports.Popover=Bt;exports.createHovercardStore=ut;exports.useHovercard=at;exports.useHovercardAnchor=ft;exports.useHovercardStore=qt;exports.useHovercardStoreProps=lt;exports.usePopoverStore=gt;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as kt, b as Nt, c as dt, d as Vt } from "./JC64G2H7-
|
|
3
|
-
import { m as Wt, o as Bt, t as jt, c as pt, a as mt, b as Pe, d as zt } from "./YV4JVR4I-
|
|
4
|
-
import { A as Yt, B as le, D as q, C as j, H as It, c as Be, f as je, _ as Te, i as He, a6 as ht,
|
|
5
|
-
import { u as vt, P as xt, a as Qt } from "./MTZPJQMC-
|
|
2
|
+
import { a as kt, b as Nt, c as dt, d as Vt } from "./JC64G2H7-Dey-8h60.mjs";
|
|
3
|
+
import { m as Wt, o as Bt, t as jt, c as pt, a as mt, b as Pe, d as zt } from "./YV4JVR4I-BGfUf3Nu.mjs";
|
|
4
|
+
import { A as Yt, B as le, D as q, C as j, H as It, c as Be, f as je, _ as Te, i as He, a6 as ht, b as me, F as De, E as Le, d as G, g as _, h as ze, t as Ee, v as Xt, a7 as gt, u as _e, Q as et, a8 as se, a5 as qt, e as wt, Y as Ut, Z as ke, a9 as Gt, l as Zt, r as Jt } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
5
|
+
import { u as vt, P as xt, a as Qt } from "./MTZPJQMC-C0Xe_WK4.mjs";
|
|
6
6
|
import { useRef as ce, useState as Ye, createContext as Kt, useEffect as U, useContext as en, useCallback as yt } from "react";
|
|
7
7
|
function bt(e = {}) {
|
|
8
8
|
var n = e, {
|
package/dist/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),e=require("@xstyled/styled-components"),b=require("./System.js"),f=e.div(({disabled:t,length:d,size:s,variant:a})=>e.css`
|
|
2
2
|
${e.th("badges.default")};
|
|
3
3
|
${e.th(`badges.variants.${a}`)};
|
|
4
4
|
${e.th(`badges.sizes.${s}`)};
|
package/dist/Badge.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import $ from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const p =
|
|
3
|
+
import u, { css as g, th as t, system as b } from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as c } from "./System.mjs";
|
|
5
|
+
const p = u.div(
|
|
6
6
|
({ disabled: e, length: i, size: s, variant: a }) => g`
|
|
7
7
|
${t("badges.default")};
|
|
8
8
|
${t(`badges.variants.${a}`)};
|
|
@@ -10,7 +10,7 @@ const p = b.div(
|
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
|
-
${
|
|
13
|
+
${b};
|
|
14
14
|
|
|
15
15
|
${e && g`
|
|
16
16
|
${t(`badges.disabled.${a}`)};
|
|
@@ -20,7 +20,7 @@ const p = b.div(
|
|
|
20
20
|
width: ${t(`badges.sizes.${s}.height`)};
|
|
21
21
|
`}
|
|
22
22
|
`
|
|
23
|
-
), y =
|
|
23
|
+
), y = c(
|
|
24
24
|
({
|
|
25
25
|
children: e,
|
|
26
26
|
dataTestId: i,
|