@clickhouse/click-ui 0.0.191 → 0.0.193

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.
@@ -10,6 +10,7 @@ import * as React from "react";
10
10
  import React__default, { forwardRef, useCallback, createContext, useMemo, createElement as createElement$1, useContext, useRef, useEffect, useState, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useReducer, useId, PureComponent, Component, memo } from "react";
11
11
  import * as ReactDOM from "react-dom";
12
12
  import ReactDOM__default, { flushSync, createPortal } from "react-dom";
13
+ import dayjs from "dayjs";
13
14
  const UsersIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
14
15
  /* @__PURE__ */ jsx("path", { d: "M15.2158 11.2407C17.0021 11.1757 18.42 9.71476 18.4314 7.92732C18.4038 6.17864 16.9645 4.78308 15.2158 4.80945", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
15
16
  /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.42753 11.2407C11.2138 11.1757 12.6317 9.71476 12.6432 7.92732C12.6156 6.17864 11.1762 4.78308 9.42753 4.80945C7.67884 4.78308 6.23952 6.17864 6.21191 7.92732C6.22292 9.71494 7.64104 11.1762 9.42753 11.2407V11.2407Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -9656,6 +9657,110 @@ const ButtonIcon = styled(SvgImage).withConfig({
9656
9657
  }) => theme2.click.button.basic.size.icon.all, ({
9657
9658
  theme: theme2
9658
9659
  }) => theme2.click.button.basic.size.icon.all);
9660
+ const Header$4 = styled.div.withConfig({
9661
+ componentId: "sc-1qnbjoa-0"
9662
+ })(["max-width:100%;gap:inherit;"]);
9663
+ const Description = styled.div.withConfig({
9664
+ componentId: "sc-1qnbjoa-1"
9665
+ })(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
9666
+ theme: theme2
9667
+ }) => theme2.click.card.horizontal.space.gap);
9668
+ const Wrapper$a = styled.div.withConfig({
9669
+ componentId: "sc-1qnbjoa-2"
9670
+ })(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
9671
+ theme: theme2,
9672
+ $color,
9673
+ $isSelected,
9674
+ $disabled
9675
+ }) => `
9676
+ background: ${theme2.click.card.horizontal[$color].color.background.default};
9677
+ color: ${theme2.click.card.horizontal[$color].color.title.default};
9678
+ border-radius: ${theme2.click.card.horizontal.radii.all};
9679
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
9680
+ padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
9681
+ gap: ${theme2.click.card.horizontal.space.gap};
9682
+ font: ${theme2.click.card.horizontal.typography.title.default};
9683
+ ${Description} {
9684
+ color: ${theme2.click.card.horizontal[$color].color.description.default};
9685
+ font: ${theme2.click.card.horizontal.typography.description.default};
9686
+ }
9687
+ &:hover{
9688
+ background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
9689
+ color: ${theme2.click.card.horizontal[$color].color.title.hover};
9690
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
9691
+ cursor: pointer;
9692
+ font: ${theme2.click.card.horizontal.typography.title.hover};
9693
+ ${Description} {
9694
+ color: ${theme2.click.card.horizontal[$color].color.description.hover};
9695
+ font: ${theme2.click.card.horizontal.typography.description.hover};
9696
+ }
9697
+ }
9698
+
9699
+ &:active, &:focus, &:focus-within {
9700
+ background-color: ${theme2.click.card.horizontal[$color].color.background.active};
9701
+ color: ${theme2.click.card.horizontal[$color].color.title.active};
9702
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
9703
+ ${Description} {
9704
+ color: ${theme2.click.card.horizontal[$color].color.description.active};
9705
+ font: ${theme2.click.card.horizontal.typography.description.active};
9706
+ }
9707
+ }
9708
+ ${$disabled ? `
9709
+ pointer-events: none;
9710
+ &,
9711
+ &:hover,
9712
+ &:active, &:focus, &:focus-within {
9713
+ background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
9714
+ color: ${theme2.click.card.horizontal[$color].color.title.disabled};
9715
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
9716
+ cursor: not-allowed;
9717
+ ${Description} {
9718
+ color: ${theme2.click.card.horizontal[$color].color.description.disabled};
9719
+ font: ${theme2.click.card.horizontal.typography.description.disabled};
9720
+ }
9721
+ },
9722
+ &:active, &:focus, &:focus-within {
9723
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
9724
+ }
9725
+ ` : ""}
9726
+ `);
9727
+ const CardIcon$1 = styled(SvgImage).withConfig({
9728
+ componentId: "sc-1qnbjoa-3"
9729
+ })(["", ""], ({
9730
+ theme: theme2
9731
+ }) => `
9732
+ height: ${theme2.click.card.horizontal.icon.size.all};
9733
+ width: ${theme2.click.card.horizontal.icon.size.all};
9734
+ `);
9735
+ const ContentWrapper = styled.div.withConfig({
9736
+ componentId: "sc-1qnbjoa-4"
9737
+ })(["display:flex;flex-direction:column;width:100%;"]);
9738
+ const CardHorizontal = ({
9739
+ title,
9740
+ icon,
9741
+ description,
9742
+ disabled = false,
9743
+ isSelected,
9744
+ children,
9745
+ color = "default",
9746
+ badgeText,
9747
+ badgeState,
9748
+ badgeIcon,
9749
+ badgeIconDir,
9750
+ ...props
9751
+ }) => {
9752
+ return /* @__PURE__ */ jsxs(Wrapper$a, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
9753
+ icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
9754
+ /* @__PURE__ */ jsxs(ContentWrapper, { children: [
9755
+ title && /* @__PURE__ */ jsxs(Header$4, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
9756
+ /* @__PURE__ */ jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
9757
+ badgeText && /* @__PURE__ */ jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
9758
+ ] }),
9759
+ description && /* @__PURE__ */ jsx(Description, { children: description }),
9760
+ children && /* @__PURE__ */ jsx(Description, { children })
9761
+ ] })
9762
+ ] });
9763
+ };
9659
9764
  const Title$2 = forwardRef(({
9660
9765
  align,
9661
9766
  size: size2,
@@ -9709,111 +9814,6 @@ const CuiText = styled.p.withConfig({
9709
9814
  }) => $fillWidth && "width: 100%");
9710
9815
  _Text.displayName = "Text";
9711
9816
  const Text = forwardRef(_Text);
9712
- const Header$4 = styled.div.withConfig({
9713
- componentId: "sc-1drx130-0"
9714
- })(["display:flex;justify-content:space-between;align-items:center;"]);
9715
- const HeaderLeft = styled.div.withConfig({
9716
- componentId: "sc-1drx130-1"
9717
- })(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
9718
- theme: theme2
9719
- }) => theme2.click.card.secondary.space.gap, ({
9720
- $disabled,
9721
- theme: theme2
9722
- }) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
9723
- const Content$3 = styled.div.withConfig({
9724
- componentId: "sc-1drx130-2"
9725
- })(["display:flex;flex-direction:column;flex:1;"]);
9726
- const CustomIcon$1 = styled.img.withConfig({
9727
- componentId: "sc-1drx130-3"
9728
- })(["height:", ";width:", ";"], ({
9729
- theme: theme2
9730
- }) => theme2.click.image.lg.size.height, ({
9731
- theme: theme2
9732
- }) => theme2.click.image.lg.size.width);
9733
- const InfoLink = styled.a.withConfig({
9734
- componentId: "sc-1drx130-4"
9735
- })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
9736
- theme: theme2
9737
- }) => theme2.click.card.secondary.color.link.default, ({
9738
- theme: theme2
9739
- }) => theme2.click.card.secondary.space.link.gap);
9740
- const LinkIconContainer = styled(SvgImage).withConfig({
9741
- componentId: "sc-1drx130-5"
9742
- })(["color:", ";height:", ";width:", ";"], ({
9743
- theme: theme2
9744
- }) => theme2.click.card.secondary.color.link.default, ({
9745
- theme: theme2
9746
- }) => theme2.click.image.md.size.height, ({
9747
- theme: theme2
9748
- }) => theme2.click.image.md.size.width);
9749
- const LinkText = styled(Text).withConfig({
9750
- componentId: "sc-1drx130-6"
9751
- })([""]);
9752
- const LinkIcon = styled(LinkIconContainer).withConfig({
9753
- componentId: "sc-1drx130-7"
9754
- })([""]);
9755
- const Wrapper$a = styled.div.withConfig({
9756
- componentId: "sc-1drx130-8"
9757
- })(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{pointer-events:none;', "}"], ({
9758
- theme: theme2
9759
- }) => theme2.click.card.secondary.color.background.default, ({
9760
- theme: theme2
9761
- }) => theme2.click.card.secondary.radii.all, ({
9762
- theme: theme2
9763
- }) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
9764
- theme: theme2
9765
- }) => theme2.click.card.secondary.space.all, ({
9766
- theme: theme2
9767
- }) => theme2.click.card.secondary.space.gap, ({
9768
- $hasShadow,
9769
- theme: theme2
9770
- }) => $hasShadow ? theme2.shadow[1] : "none", ({
9771
- theme: theme2
9772
- }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
9773
- theme: theme2
9774
- }) => theme2.click.card.secondary.color.link.hover, ({
9775
- theme: theme2
9776
- }) => `
9777
- background-color: ${theme2.click.card.secondary.color.background.disabled};
9778
- color: ${theme2.click.card.secondary.color.title.disabled};
9779
- border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
9780
- cursor: not-allowed;
9781
-
9782
- ${LinkText},
9783
- ${LinkIcon} {
9784
- color: ${theme2.click.card.secondary.color.link.disabled};
9785
- }
9786
- `);
9787
- const CardSecondary = ({
9788
- title,
9789
- icon,
9790
- iconUrl,
9791
- badgeState,
9792
- badgeText = "",
9793
- hasShadow = false,
9794
- disabled = false,
9795
- description,
9796
- infoUrl,
9797
- infoText,
9798
- infoIcon = "chevron-right",
9799
- infoIconSize = "md",
9800
- ...props
9801
- }) => {
9802
- return /* @__PURE__ */ jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
9803
- /* @__PURE__ */ jsxs(Header$4, { children: [
9804
- /* @__PURE__ */ jsxs(HeaderLeft, { $disabled: disabled, children: [
9805
- iconUrl ? /* @__PURE__ */ jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
9806
- /* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
9807
- ] }),
9808
- badgeText && /* @__PURE__ */ jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
9809
- ] }),
9810
- /* @__PURE__ */ jsx(Content$3, { children: /* @__PURE__ */ jsx(Text, { color: "muted", children: description }) }),
9811
- (infoUrl || infoText) && /* @__PURE__ */ jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
9812
- /* @__PURE__ */ jsx(LinkText, { children: infoText }),
9813
- /* @__PURE__ */ jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
9814
- ] })
9815
- ] });
9816
- };
9817
9817
  const _Container = ({
9818
9818
  component,
9819
9819
  alignItems,
@@ -9975,7 +9975,7 @@ const Header$3 = styled.div.withConfig({
9975
9975
  $size = "md",
9976
9976
  theme: theme2
9977
9977
  }) => theme2.click.card.primary.size.icon[$size].all);
9978
- const Content$2 = styled.div.withConfig({
9978
+ const Content$3 = styled.div.withConfig({
9979
9979
  componentId: "sc-2dguvi-2"
9980
9980
  })(["width:100%;display:flex;flex-direction:column;align-self:", ";gap:", ";flex:1;"], ({
9981
9981
  $alignContent = "center"
@@ -10019,7 +10019,7 @@ const Card = ({
10019
10019
  iconUrl ? /* @__PURE__ */ jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true }),
10020
10020
  title && /* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
10021
10021
  ] }),
10022
- (description || children) && /* @__PURE__ */ jsxs(Content$2, { $size: size2, $alignContent: alignContent, children: [
10022
+ (description || children) && /* @__PURE__ */ jsxs(Content$3, { $size: size2, $alignContent: alignContent, children: [
10023
10023
  description && /* @__PURE__ */ jsx(Text, { color: "muted", align: convertCardAlignToTextAlign(alignContent ?? "start"), children: description }),
10024
10024
  children
10025
10025
  ] }),
@@ -10028,110 +10028,6 @@ const Card = ({
10028
10028
  ] });
10029
10029
  };
10030
10030
  const CardPrimary = withTopBadge(Card);
10031
- const Header$2 = styled.div.withConfig({
10032
- componentId: "sc-1qnbjoa-0"
10033
- })(["max-width:100%;gap:inherit;"]);
10034
- const Description = styled.div.withConfig({
10035
- componentId: "sc-1qnbjoa-1"
10036
- })(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
10037
- theme: theme2
10038
- }) => theme2.click.card.horizontal.space.gap);
10039
- const Wrapper$7 = styled.div.withConfig({
10040
- componentId: "sc-1qnbjoa-2"
10041
- })(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
10042
- theme: theme2,
10043
- $color,
10044
- $isSelected,
10045
- $disabled
10046
- }) => `
10047
- background: ${theme2.click.card.horizontal[$color].color.background.default};
10048
- color: ${theme2.click.card.horizontal[$color].color.title.default};
10049
- border-radius: ${theme2.click.card.horizontal.radii.all};
10050
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
10051
- padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
10052
- gap: ${theme2.click.card.horizontal.space.gap};
10053
- font: ${theme2.click.card.horizontal.typography.title.default};
10054
- ${Description} {
10055
- color: ${theme2.click.card.horizontal[$color].color.description.default};
10056
- font: ${theme2.click.card.horizontal.typography.description.default};
10057
- }
10058
- &:hover{
10059
- background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
10060
- color: ${theme2.click.card.horizontal[$color].color.title.hover};
10061
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
10062
- cursor: pointer;
10063
- font: ${theme2.click.card.horizontal.typography.title.hover};
10064
- ${Description} {
10065
- color: ${theme2.click.card.horizontal[$color].color.description.hover};
10066
- font: ${theme2.click.card.horizontal.typography.description.hover};
10067
- }
10068
- }
10069
-
10070
- &:active, &:focus, &:focus-within {
10071
- background-color: ${theme2.click.card.horizontal[$color].color.background.active};
10072
- color: ${theme2.click.card.horizontal[$color].color.title.active};
10073
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10074
- ${Description} {
10075
- color: ${theme2.click.card.horizontal[$color].color.description.active};
10076
- font: ${theme2.click.card.horizontal.typography.description.active};
10077
- }
10078
- }
10079
- ${$disabled ? `
10080
- pointer-events: none;
10081
- &,
10082
- &:hover,
10083
- &:active, &:focus, &:focus-within {
10084
- background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
10085
- color: ${theme2.click.card.horizontal[$color].color.title.disabled};
10086
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
10087
- cursor: not-allowed;
10088
- ${Description} {
10089
- color: ${theme2.click.card.horizontal[$color].color.description.disabled};
10090
- font: ${theme2.click.card.horizontal.typography.description.disabled};
10091
- }
10092
- },
10093
- &:active, &:focus, &:focus-within {
10094
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10095
- }
10096
- ` : ""}
10097
- `);
10098
- const CardIcon$1 = styled(SvgImage).withConfig({
10099
- componentId: "sc-1qnbjoa-3"
10100
- })(["", ""], ({
10101
- theme: theme2
10102
- }) => `
10103
- height: ${theme2.click.card.horizontal.icon.size.all};
10104
- width: ${theme2.click.card.horizontal.icon.size.all};
10105
- `);
10106
- const ContentWrapper = styled.div.withConfig({
10107
- componentId: "sc-1qnbjoa-4"
10108
- })(["display:flex;flex-direction:column;width:100%;"]);
10109
- const CardHorizontal = ({
10110
- title,
10111
- icon,
10112
- description,
10113
- disabled = false,
10114
- isSelected,
10115
- children,
10116
- color = "default",
10117
- badgeText,
10118
- badgeState,
10119
- badgeIcon,
10120
- badgeIconDir,
10121
- ...props
10122
- }) => {
10123
- return /* @__PURE__ */ jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
10124
- icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
10125
- /* @__PURE__ */ jsxs(ContentWrapper, { children: [
10126
- title && /* @__PURE__ */ jsxs(Header$2, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
10127
- /* @__PURE__ */ jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
10128
- badgeText && /* @__PURE__ */ jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
10129
- ] }),
10130
- description && /* @__PURE__ */ jsx(Description, { children: description }),
10131
- children && /* @__PURE__ */ jsx(Description, { children })
10132
- ] })
10133
- ] });
10134
- };
10135
10031
  const Background = styled.div.withConfig({
10136
10032
  componentId: "sc-6jamj6-0"
10137
10033
  })(["", ""], ({
@@ -10147,7 +10043,7 @@ const Background = styled.div.withConfig({
10147
10043
  background: ${theme2.click.card.promotion.color.stroke.focus};
10148
10044
  }
10149
10045
  `);
10150
- const Wrapper$6 = styled.div.withConfig({
10046
+ const Wrapper$7 = styled.div.withConfig({
10151
10047
  componentId: "sc-6jamj6-1"
10152
10048
  })(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
10153
10049
  theme: theme2
@@ -10188,12 +10084,117 @@ const CardPromotion = ({
10188
10084
  ...props
10189
10085
  }) => {
10190
10086
  const [isVisible, setIsVisible] = useState(true);
10191
- return isVisible ? /* @__PURE__ */ jsx(Background, { children: /* @__PURE__ */ jsxs(Wrapper$6, { $dismissible: dismissible, ...props, children: [
10087
+ return isVisible ? /* @__PURE__ */ jsx(Background, { children: /* @__PURE__ */ jsxs(Wrapper$7, { $dismissible: dismissible, ...props, children: [
10192
10088
  /* @__PURE__ */ jsx(CardIcon, { name: icon, "aria-hidden": true }),
10193
10089
  /* @__PURE__ */ jsx(Text, { children: label }),
10194
10090
  dismissible && /* @__PURE__ */ jsx(DismissWrapper, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
10195
10091
  ] }) }) : null;
10196
10092
  };
10093
+ const Header$2 = styled.div.withConfig({
10094
+ componentId: "sc-1drx130-0"
10095
+ })(["display:flex;justify-content:space-between;align-items:center;"]);
10096
+ const HeaderLeft = styled.div.withConfig({
10097
+ componentId: "sc-1drx130-1"
10098
+ })(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
10099
+ theme: theme2
10100
+ }) => theme2.click.card.secondary.space.gap, ({
10101
+ $disabled,
10102
+ theme: theme2
10103
+ }) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
10104
+ const Content$2 = styled.div.withConfig({
10105
+ componentId: "sc-1drx130-2"
10106
+ })(["display:flex;flex-direction:column;flex:1;"]);
10107
+ const CustomIcon$1 = styled.img.withConfig({
10108
+ componentId: "sc-1drx130-3"
10109
+ })(["height:", ";width:", ";"], ({
10110
+ theme: theme2
10111
+ }) => theme2.click.image.lg.size.height, ({
10112
+ theme: theme2
10113
+ }) => theme2.click.image.lg.size.width);
10114
+ const InfoLink = styled.a.withConfig({
10115
+ componentId: "sc-1drx130-4"
10116
+ })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
10117
+ theme: theme2
10118
+ }) => theme2.click.card.secondary.color.link.default, ({
10119
+ theme: theme2
10120
+ }) => theme2.click.card.secondary.space.link.gap);
10121
+ const LinkIconContainer = styled(SvgImage).withConfig({
10122
+ componentId: "sc-1drx130-5"
10123
+ })(["color:", ";height:", ";width:", ";"], ({
10124
+ theme: theme2
10125
+ }) => theme2.click.card.secondary.color.link.default, ({
10126
+ theme: theme2
10127
+ }) => theme2.click.image.md.size.height, ({
10128
+ theme: theme2
10129
+ }) => theme2.click.image.md.size.width);
10130
+ const LinkText = styled(Text).withConfig({
10131
+ componentId: "sc-1drx130-6"
10132
+ })([""]);
10133
+ const LinkIcon = styled(LinkIconContainer).withConfig({
10134
+ componentId: "sc-1drx130-7"
10135
+ })([""]);
10136
+ const Wrapper$6 = styled.div.withConfig({
10137
+ componentId: "sc-1drx130-8"
10138
+ })(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{pointer-events:none;', "}"], ({
10139
+ theme: theme2
10140
+ }) => theme2.click.card.secondary.color.background.default, ({
10141
+ theme: theme2
10142
+ }) => theme2.click.card.secondary.radii.all, ({
10143
+ theme: theme2
10144
+ }) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
10145
+ theme: theme2
10146
+ }) => theme2.click.card.secondary.space.all, ({
10147
+ theme: theme2
10148
+ }) => theme2.click.card.secondary.space.gap, ({
10149
+ $hasShadow,
10150
+ theme: theme2
10151
+ }) => $hasShadow ? theme2.shadow[1] : "none", ({
10152
+ theme: theme2
10153
+ }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
10154
+ theme: theme2
10155
+ }) => theme2.click.card.secondary.color.link.hover, ({
10156
+ theme: theme2
10157
+ }) => `
10158
+ background-color: ${theme2.click.card.secondary.color.background.disabled};
10159
+ color: ${theme2.click.card.secondary.color.title.disabled};
10160
+ border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
10161
+ cursor: not-allowed;
10162
+
10163
+ ${LinkText},
10164
+ ${LinkIcon} {
10165
+ color: ${theme2.click.card.secondary.color.link.disabled};
10166
+ }
10167
+ `);
10168
+ const CardSecondary = ({
10169
+ title,
10170
+ icon,
10171
+ iconUrl,
10172
+ badgeState,
10173
+ badgeText = "",
10174
+ hasShadow = false,
10175
+ disabled = false,
10176
+ description,
10177
+ infoUrl,
10178
+ infoText,
10179
+ infoIcon = "chevron-right",
10180
+ infoIconSize = "md",
10181
+ ...props
10182
+ }) => {
10183
+ return /* @__PURE__ */ jsxs(Wrapper$6, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
10184
+ /* @__PURE__ */ jsxs(Header$2, { children: [
10185
+ /* @__PURE__ */ jsxs(HeaderLeft, { $disabled: disabled, children: [
10186
+ iconUrl ? /* @__PURE__ */ jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
10187
+ /* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
10188
+ ] }),
10189
+ badgeText && /* @__PURE__ */ jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
10190
+ ] }),
10191
+ /* @__PURE__ */ jsx(Content$2, { children: /* @__PURE__ */ jsx(Text, { color: "muted", children: description }) }),
10192
+ (infoUrl || infoText) && /* @__PURE__ */ jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
10193
+ /* @__PURE__ */ jsx(LinkText, { children: infoText }),
10194
+ /* @__PURE__ */ jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
10195
+ ] })
10196
+ ] });
10197
+ };
10197
10198
  function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
10198
10199
  const ref = useRef({
10199
10200
  value,
@@ -14578,6 +14579,1088 @@ const CodeBlock = ({
14578
14579
  }, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
14579
14580
  ] });
14580
14581
  };
14582
+ const ActionsWrapper = styled.div.withConfig({
14583
+ componentId: "sc-6eozxy-0"
14584
+ })(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
14585
+ const DialogContent$1 = styled.div.withConfig({
14586
+ componentId: "sc-6eozxy-1"
14587
+ })(["overflow:hidden;display:flex;flex-direction:column;"]);
14588
+ const ConfirmationDialog = ({
14589
+ children,
14590
+ disabled,
14591
+ loading,
14592
+ message,
14593
+ onCancel,
14594
+ onConfirm,
14595
+ open: open2,
14596
+ primaryActionLabel = "Confirm",
14597
+ primaryActionType = "primary",
14598
+ secondaryActionLabel = "Cancel",
14599
+ showClose,
14600
+ title,
14601
+ ...props
14602
+ }) => {
14603
+ if (children && message) {
14604
+ throw new Error("You can't pass children and message props at the same time");
14605
+ }
14606
+ return /* @__PURE__ */ jsx(Dialog, { open: open2, onOpenChange: (open22) => {
14607
+ !open22 && onCancel && onCancel();
14608
+ }, children: /* @__PURE__ */ jsxs(DialogContent$1, { as: Dialog.Content, title, showClose, ...props, children: [
14609
+ /* @__PURE__ */ jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsx(Text, { children: message }) }),
14610
+ /* @__PURE__ */ jsx(Separator, { size: "xl" }),
14611
+ /* @__PURE__ */ jsxs(ActionsWrapper, { children: [
14612
+ /* @__PURE__ */ jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
14613
+ /* @__PURE__ */ jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
14614
+ if (onConfirm) {
14615
+ onConfirm();
14616
+ }
14617
+ }, "data-testid": "confirm-action-button" })
14618
+ ] })
14619
+ ] }) });
14620
+ };
14621
+ const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
14622
+ const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
14623
+ $6cc32821e9371a1c$export$4027731b685e72eb
14624
+ ]);
14625
+ const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
14626
+ const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
14627
+ const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
14628
+ const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
14629
+ const [open1, setOpen] = useState(false);
14630
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14631
+ const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
14632
+ const handleOpenChange = useCallback((open2) => {
14633
+ setOpen(open2);
14634
+ handleOpenChangeProp(open2);
14635
+ }, [
14636
+ handleOpenChangeProp
14637
+ ]);
14638
+ return /* @__PURE__ */ createElement$1($1b0217ee4a91d156$var$ContextMenuProvider, {
14639
+ scope: __scopeContextMenu,
14640
+ open: open1,
14641
+ onOpenChange: handleOpenChange,
14642
+ modal
14643
+ }, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
14644
+ dir,
14645
+ open: open1,
14646
+ onOpenChange: handleOpenChange,
14647
+ modal
14648
+ }), children));
14649
+ };
14650
+ const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
14651
+ const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14652
+ const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
14653
+ const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
14654
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14655
+ const pointRef = useRef({
14656
+ x: 0,
14657
+ y: 0
14658
+ });
14659
+ const virtualRef = useRef({
14660
+ getBoundingClientRect: () => DOMRect.fromRect({
14661
+ width: 0,
14662
+ height: 0,
14663
+ ...pointRef.current
14664
+ })
14665
+ });
14666
+ const longPressTimerRef = useRef(0);
14667
+ const clearLongPress = useCallback(
14668
+ () => window.clearTimeout(longPressTimerRef.current),
14669
+ []
14670
+ );
14671
+ const handleOpen = (event) => {
14672
+ pointRef.current = {
14673
+ x: event.clientX,
14674
+ y: event.clientY
14675
+ };
14676
+ context.onOpenChange(true);
14677
+ };
14678
+ useEffect(
14679
+ () => clearLongPress,
14680
+ [
14681
+ clearLongPress
14682
+ ]
14683
+ );
14684
+ useEffect(
14685
+ () => void (disabled && clearLongPress()),
14686
+ [
14687
+ disabled,
14688
+ clearLongPress
14689
+ ]
14690
+ );
14691
+ return /* @__PURE__ */ createElement$1(Fragment, null, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
14692
+ virtualRef
14693
+ })), /* @__PURE__ */ createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
14694
+ "data-state": context.open ? "open" : "closed",
14695
+ "data-disabled": disabled ? "" : void 0
14696
+ }, triggerProps, {
14697
+ ref: forwardedRef,
14698
+ style: {
14699
+ WebkitTouchCallout: "none",
14700
+ ...props.style
14701
+ },
14702
+ onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
14703
+ clearLongPress();
14704
+ handleOpen(event);
14705
+ event.preventDefault();
14706
+ }),
14707
+ onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
14708
+ clearLongPress();
14709
+ longPressTimerRef.current = window.setTimeout(
14710
+ () => handleOpen(event),
14711
+ 700
14712
+ );
14713
+ })),
14714
+ onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
14715
+ onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
14716
+ onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
14717
+ })));
14718
+ });
14719
+ const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
14720
+ const { __scopeContextMenu, ...portalProps } = props;
14721
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14722
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
14723
+ };
14724
+ const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
14725
+ const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14726
+ const { __scopeContextMenu, ...contentProps } = props;
14727
+ const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
14728
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14729
+ const hasInteractedOutsideRef = useRef(false);
14730
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
14731
+ ref: forwardedRef,
14732
+ side: "right",
14733
+ sideOffset: 2,
14734
+ align: "start",
14735
+ onCloseAutoFocus: (event) => {
14736
+ var _props$onCloseAutoFoc;
14737
+ (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
14738
+ if (!event.defaultPrevented && hasInteractedOutsideRef.current)
14739
+ event.preventDefault();
14740
+ hasInteractedOutsideRef.current = false;
14741
+ },
14742
+ onInteractOutside: (event) => {
14743
+ var _props$onInteractOuts;
14744
+ (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
14745
+ if (!event.defaultPrevented && !context.modal)
14746
+ hasInteractedOutsideRef.current = true;
14747
+ },
14748
+ style: {
14749
+ ...props.style,
14750
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
14751
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
14752
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
14753
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
14754
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
14755
+ }
14756
+ }));
14757
+ });
14758
+ const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14759
+ const { __scopeContextMenu, ...groupProps } = props;
14760
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14761
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
14762
+ ref: forwardedRef
14763
+ }));
14764
+ });
14765
+ const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14766
+ const { __scopeContextMenu, ...itemProps } = props;
14767
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14768
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
14769
+ ref: forwardedRef
14770
+ }));
14771
+ });
14772
+ const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14773
+ const { __scopeContextMenu, ...arrowProps } = props;
14774
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14775
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
14776
+ ref: forwardedRef
14777
+ }));
14778
+ });
14779
+ const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
14780
+ const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
14781
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14782
+ const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14783
+ prop: openProp,
14784
+ defaultProp: defaultOpen,
14785
+ onChange: onOpenChange
14786
+ });
14787
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
14788
+ open: open2,
14789
+ onOpenChange: setOpen
14790
+ }), children);
14791
+ };
14792
+ const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14793
+ const { __scopeContextMenu, ...triggerItemProps } = props;
14794
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14795
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
14796
+ ref: forwardedRef
14797
+ }));
14798
+ });
14799
+ const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
14800
+ const { __scopeContextMenu, ...subContentProps } = props;
14801
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14802
+ return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
14803
+ ref: forwardedRef,
14804
+ style: {
14805
+ ...props.style,
14806
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
14807
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
14808
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
14809
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
14810
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
14811
+ }
14812
+ }));
14813
+ });
14814
+ function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
14815
+ return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
14816
+ }
14817
+ const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
14818
+ const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
14819
+ const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
14820
+ const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
14821
+ const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
14822
+ const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
14823
+ const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
14824
+ const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
14825
+ const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
14826
+ const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
14827
+ const ContextMenu = (props) => /* @__PURE__ */ jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
14828
+ const ContextMenuTrigger$1 = forwardRef(({
14829
+ disabled,
14830
+ ...props
14831
+ }, ref) => {
14832
+ return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsx("div", { ref, ...props }) });
14833
+ });
14834
+ ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
14835
+ ContextMenu.Trigger = ContextMenuTrigger$1;
14836
+ const ContextMenuSubTrigger = ({
14837
+ icon,
14838
+ iconDir,
14839
+ children,
14840
+ ...props
14841
+ }) => {
14842
+ return /* @__PURE__ */ jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
14843
+ /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }),
14844
+ /* @__PURE__ */ jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsx(SvgImage, { name: "chevron-right" }) })
14845
+ ] });
14846
+ };
14847
+ ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
14848
+ ContextMenu.SubTrigger = ContextMenuSubTrigger;
14849
+ const RightMenuContent = styled(GenericMenuPanel).withConfig({
14850
+ componentId: "sc-8z6kye-0"
14851
+ })(["flex-direction:column;z-index:1;", ";"], ({
14852
+ $showArrow
14853
+ }) => $showArrow ? `
14854
+ &[data-side="bottom"] {
14855
+ margin-top: -1px;
14856
+ }
14857
+ &[data-side="top"] {
14858
+ margin-bottom: -1px;
14859
+ }
14860
+ &[data-side="left"] {
14861
+ margin-right: -1px;
14862
+ .popover-arrow {
14863
+ margin-right: 1rem;
14864
+ }
14865
+ }
14866
+ }
14867
+ &[data-side="right"] {
14868
+ margin-left: -1px;
14869
+ .popover-arrow {
14870
+ margin-left: 1rem;
14871
+ }
14872
+ }
14873
+ ` : "");
14874
+ const ContextMenuContent = ({
14875
+ sub,
14876
+ children,
14877
+ showArrow,
14878
+ ...props
14879
+ }) => {
14880
+ const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
14881
+ return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
14882
+ showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, { className: "popover-arrow" }) }),
14883
+ children
14884
+ ] }) });
14885
+ };
14886
+ ContextMenuContent.displayName = "ContextMenuContent";
14887
+ ContextMenu.Content = ContextMenuContent;
14888
+ const RightMenuGroup = styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
14889
+ componentId: "sc-8z6kye-1"
14890
+ })(["width:100%;border-bottom:1px solid ", ";"], ({
14891
+ theme: theme2
14892
+ }) => theme2.click.genericMenu.item.color.stroke.default);
14893
+ const ContextMenuGroup = (props) => {
14894
+ return /* @__PURE__ */ jsx(RightMenuGroup, { ...props });
14895
+ };
14896
+ ContextMenuGroup.displayName = "ContextMenuGroup";
14897
+ ContextMenu.Group = ContextMenuGroup;
14898
+ const RightMenuSub = styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
14899
+ componentId: "sc-8z6kye-2"
14900
+ })(["border-bottom:1px solid ", ";"], ({
14901
+ theme: theme2
14902
+ }) => theme2.click.genericMenu.item.color.stroke.default);
14903
+ const ContextMenuSub = ({
14904
+ ...props
14905
+ }) => {
14906
+ return /* @__PURE__ */ jsx(RightMenuSub, { ...props });
14907
+ };
14908
+ ContextMenuSub.displayName = "ContextMenuSub";
14909
+ ContextMenu.Sub = ContextMenuSub;
14910
+ const ContextMenuItem = ({
14911
+ icon,
14912
+ iconDir,
14913
+ children,
14914
+ ...props
14915
+ }) => {
14916
+ return /* @__PURE__ */ jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }) });
14917
+ };
14918
+ ContextMenuItem.displayName = "ContextMenuItem";
14919
+ ContextMenu.Item = ContextMenuItem;
14920
+ var advancedFormat$1 = { exports: {} };
14921
+ (function(module, exports) {
14922
+ !function(e, t) {
14923
+ module.exports = t();
14924
+ }(commonjsGlobal, function() {
14925
+ return function(e, t) {
14926
+ var r = t.prototype, n = r.format;
14927
+ r.format = function(e2) {
14928
+ var t2 = this, r2 = this.$locale();
14929
+ if (!this.isValid())
14930
+ return n.bind(this)(e2);
14931
+ var s2 = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e3) {
14932
+ switch (e3) {
14933
+ case "Q":
14934
+ return Math.ceil((t2.$M + 1) / 3);
14935
+ case "Do":
14936
+ return r2.ordinal(t2.$D);
14937
+ case "gggg":
14938
+ return t2.weekYear();
14939
+ case "GGGG":
14940
+ return t2.isoWeekYear();
14941
+ case "wo":
14942
+ return r2.ordinal(t2.week(), "W");
14943
+ case "w":
14944
+ case "ww":
14945
+ return s2.s(t2.week(), "w" === e3 ? 1 : 2, "0");
14946
+ case "W":
14947
+ case "WW":
14948
+ return s2.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
14949
+ case "k":
14950
+ case "kk":
14951
+ return s2.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
14952
+ case "X":
14953
+ return Math.floor(t2.$d.getTime() / 1e3);
14954
+ case "x":
14955
+ return t2.$d.getTime();
14956
+ case "z":
14957
+ return "[" + t2.offsetName() + "]";
14958
+ case "zzz":
14959
+ return "[" + t2.offsetName("long") + "]";
14960
+ default:
14961
+ return e3;
14962
+ }
14963
+ });
14964
+ return n.bind(this)(a);
14965
+ };
14966
+ };
14967
+ });
14968
+ })(advancedFormat$1);
14969
+ var advancedFormatExports = advancedFormat$1.exports;
14970
+ const advancedFormat = /* @__PURE__ */ getDefaultExportFromCjs(advancedFormatExports);
14971
+ var duration$1 = { exports: {} };
14972
+ (function(module, exports) {
14973
+ !function(t, s2) {
14974
+ module.exports = s2();
14975
+ }(commonjsGlobal, function() {
14976
+ var t, s2, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
14977
+ return t2 instanceof g;
14978
+ }, f = function(t2, s3, n2) {
14979
+ return new g(t2, n2, s3.$l);
14980
+ }, m = function(t2) {
14981
+ return s2.p(t2) + "s";
14982
+ }, l2 = function(t2) {
14983
+ return t2 < 0;
14984
+ }, $ = function(t2) {
14985
+ return l2(t2) ? Math.ceil(t2) : Math.floor(t2);
14986
+ }, y = function(t2) {
14987
+ return Math.abs(t2);
14988
+ }, v = function(t2, s3) {
14989
+ return t2 ? l2(t2) ? { negative: true, format: "" + y(t2) + s3 } : { negative: false, format: "" + t2 + s3 } : { negative: false, format: "" };
14990
+ }, g = function() {
14991
+ function l3(t2, s3, n2) {
14992
+ var i2 = this;
14993
+ if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s3)
14994
+ return f(t2 * h[m(s3)], this);
14995
+ if ("number" == typeof t2)
14996
+ return this.$ms = t2, this.parseFromMilliseconds(), this;
14997
+ if ("object" == typeof t2)
14998
+ return Object.keys(t2).forEach(function(s4) {
14999
+ i2.$d[m(s4)] = t2[s4];
15000
+ }), this.calMilliseconds(), this;
15001
+ if ("string" == typeof t2) {
15002
+ var e2 = t2.match(a);
15003
+ if (e2) {
15004
+ var r2 = e2.slice(2).map(function(t3) {
15005
+ return null != t3 ? Number(t3) : 0;
15006
+ });
15007
+ return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
15008
+ }
15009
+ }
15010
+ return this;
15011
+ }
15012
+ var y2 = l3.prototype;
15013
+ return y2.calMilliseconds = function() {
15014
+ var t2 = this;
15015
+ this.$ms = Object.keys(this.$d).reduce(function(s3, n2) {
15016
+ return s3 + (t2.$d[n2] || 0) * h[n2];
15017
+ }, 0);
15018
+ }, y2.parseFromMilliseconds = function() {
15019
+ var t2 = this.$ms;
15020
+ this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / d), t2 %= d, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
15021
+ }, y2.toISOString = function() {
15022
+ var t2 = v(this.$d.years, "Y"), s3 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
15023
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
15024
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
15025
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
15026
+ var u2 = v(o2, "S"), d2 = t2.negative || s3.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t2.format + s3.format + i2.format + a2 + e2.format + r2.format + u2.format;
15027
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
15028
+ }, y2.toJSON = function() {
15029
+ return this.toISOString();
15030
+ }, y2.format = function(t2) {
15031
+ var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s2.s(this.$d.years, 2, "0"), YYYY: s2.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s2.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s2.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s2.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s2.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s2.s(this.$d.seconds, 2, "0"), SSS: s2.s(this.$d.milliseconds, 3, "0") };
15032
+ return n2.replace(o, function(t3, s3) {
15033
+ return s3 || String(i2[t3]);
15034
+ });
15035
+ }, y2.as = function(t2) {
15036
+ return this.$ms / h[m(t2)];
15037
+ }, y2.get = function(t2) {
15038
+ var s3 = this.$ms, n2 = m(t2);
15039
+ return "milliseconds" === n2 ? s3 %= 1e3 : s3 = "weeks" === n2 ? $(s3 / h[n2]) : this.$d[n2], s3 || 0;
15040
+ }, y2.add = function(t2, s3, n2) {
15041
+ var i2;
15042
+ return i2 = s3 ? t2 * h[m(s3)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
15043
+ }, y2.subtract = function(t2, s3) {
15044
+ return this.add(t2, s3, true);
15045
+ }, y2.locale = function(t2) {
15046
+ var s3 = this.clone();
15047
+ return s3.$l = t2, s3;
15048
+ }, y2.clone = function() {
15049
+ return f(this.$ms, this);
15050
+ }, y2.humanize = function(s3) {
15051
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s3);
15052
+ }, y2.valueOf = function() {
15053
+ return this.asMilliseconds();
15054
+ }, y2.milliseconds = function() {
15055
+ return this.get("milliseconds");
15056
+ }, y2.asMilliseconds = function() {
15057
+ return this.as("milliseconds");
15058
+ }, y2.seconds = function() {
15059
+ return this.get("seconds");
15060
+ }, y2.asSeconds = function() {
15061
+ return this.as("seconds");
15062
+ }, y2.minutes = function() {
15063
+ return this.get("minutes");
15064
+ }, y2.asMinutes = function() {
15065
+ return this.as("minutes");
15066
+ }, y2.hours = function() {
15067
+ return this.get("hours");
15068
+ }, y2.asHours = function() {
15069
+ return this.as("hours");
15070
+ }, y2.days = function() {
15071
+ return this.get("days");
15072
+ }, y2.asDays = function() {
15073
+ return this.as("days");
15074
+ }, y2.weeks = function() {
15075
+ return this.get("weeks");
15076
+ }, y2.asWeeks = function() {
15077
+ return this.as("weeks");
15078
+ }, y2.months = function() {
15079
+ return this.get("months");
15080
+ }, y2.asMonths = function() {
15081
+ return this.as("months");
15082
+ }, y2.years = function() {
15083
+ return this.get("years");
15084
+ }, y2.asYears = function() {
15085
+ return this.as("years");
15086
+ }, l3;
15087
+ }(), p = function(t2, s3, n2) {
15088
+ return t2.add(s3.years() * n2, "y").add(s3.months() * n2, "M").add(s3.days() * n2, "d").add(s3.hours() * n2, "h").add(s3.minutes() * n2, "m").add(s3.seconds() * n2, "s").add(s3.milliseconds() * n2, "ms");
15089
+ };
15090
+ return function(n2, i2, e2) {
15091
+ t = e2, s2 = e2().$utils(), e2.duration = function(t2, s3) {
15092
+ var n3 = e2.locale();
15093
+ return f(t2, { $l: n3 }, s3);
15094
+ }, e2.isDuration = c;
15095
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
15096
+ i2.prototype.add = function(t2, s3) {
15097
+ return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s3);
15098
+ }, i2.prototype.subtract = function(t2, s3) {
15099
+ return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s3);
15100
+ };
15101
+ };
15102
+ });
15103
+ })(duration$1);
15104
+ var durationExports = duration$1.exports;
15105
+ const duration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
15106
+ var localizedFormat$1 = { exports: {} };
15107
+ (function(module, exports) {
15108
+ !function(e, t) {
15109
+ module.exports = t();
15110
+ }(commonjsGlobal, function() {
15111
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
15112
+ return function(t, o, n) {
15113
+ var r = o.prototype, i = r.format;
15114
+ n.en.formats = e, r.format = function(t2) {
15115
+ void 0 === t2 && (t2 = "YYYY-MM-DDTHH:mm:ssZ");
15116
+ var o2 = this.$locale().formats, n2 = function(t3, o3) {
15117
+ return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r2) {
15118
+ var i2 = r2 && r2.toUpperCase();
15119
+ return n3 || o3[r2] || e[r2] || o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, o4) {
15120
+ return t5 || o4.slice(1);
15121
+ });
15122
+ });
15123
+ }(t2, void 0 === o2 ? {} : o2);
15124
+ return i.call(this, n2);
15125
+ };
15126
+ };
15127
+ });
15128
+ })(localizedFormat$1);
15129
+ var localizedFormatExports = localizedFormat$1.exports;
15130
+ const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
15131
+ var relativeTime$1 = { exports: {} };
15132
+ (function(module, exports) {
15133
+ !function(r, e) {
15134
+ module.exports = e();
15135
+ }(commonjsGlobal, function() {
15136
+ return function(r, e, t) {
15137
+ r = r || {};
15138
+ var n = e.prototype, o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
15139
+ function i(r2, e2, t2, o2) {
15140
+ return n.fromToBase(r2, e2, t2, o2);
15141
+ }
15142
+ t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
15143
+ for (var f, a, s2, l2 = i2.$locale().relativeTime || o, h = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
15144
+ var y = h[c];
15145
+ y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
15146
+ var p = (r.rounding || Math.round)(Math.abs(f));
15147
+ if (s2 = f > 0, p <= y.r || !y.r) {
15148
+ p <= 1 && c > 0 && (y = h[c - 1]);
15149
+ var v = l2[y.l];
15150
+ u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s2);
15151
+ break;
15152
+ }
15153
+ }
15154
+ if (n2)
15155
+ return a;
15156
+ var M = s2 ? l2.future : l2.past;
15157
+ return "function" == typeof M ? M(a) : M.replace("%s", a);
15158
+ }, n.to = function(r2, e2) {
15159
+ return i(r2, e2, this, true);
15160
+ }, n.from = function(r2, e2) {
15161
+ return i(r2, e2, this);
15162
+ };
15163
+ var d = function(r2) {
15164
+ return r2.$u ? t.utc() : t();
15165
+ };
15166
+ n.toNow = function(r2) {
15167
+ return this.to(d(this), r2);
15168
+ }, n.fromNow = function(r2) {
15169
+ return this.from(d(this), r2);
15170
+ };
15171
+ };
15172
+ });
15173
+ })(relativeTime$1);
15174
+ var relativeTimeExports = relativeTime$1.exports;
15175
+ const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
15176
+ var timezone$1 = { exports: {} };
15177
+ (function(module, exports) {
15178
+ !function(t, e) {
15179
+ module.exports = e();
15180
+ }(commonjsGlobal, function() {
15181
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
15182
+ return function(n, i, o) {
15183
+ var r, a = function(t2, n2, i2) {
15184
+ void 0 === i2 && (i2 = {});
15185
+ var o2 = new Date(t2), r2 = function(t3, n3) {
15186
+ void 0 === n3 && (n3 = {});
15187
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
15188
+ return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
15189
+ }(n2, i2);
15190
+ return r2.formatToParts(o2);
15191
+ }, u = function(e2, n2) {
15192
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
15193
+ var f2 = i2[u2], s3 = f2.type, m = f2.value, c = t[s3];
15194
+ c >= 0 && (r2[c] = parseInt(m, 10));
15195
+ }
15196
+ var d = r2[3], l2 = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l2 + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
15197
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
15198
+ }, f = i.prototype;
15199
+ f.tz = function(t2, e2) {
15200
+ void 0 === t2 && (t2 = r);
15201
+ var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s3 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
15202
+ if (!Number(s3))
15203
+ n2 = this.utcOffset(0, e2);
15204
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s3, true), e2) {
15205
+ var m = n2.utcOffset();
15206
+ n2 = n2.add(i2 - m, "minute");
15207
+ }
15208
+ return n2.$x.$timezone = t2, n2;
15209
+ }, f.offsetName = function(t2) {
15210
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
15211
+ return "timezonename" === t3.type.toLowerCase();
15212
+ });
15213
+ return n2 && n2.value;
15214
+ };
15215
+ var s2 = f.startOf;
15216
+ f.startOf = function(t2, e2) {
15217
+ if (!this.$x || !this.$x.$timezone)
15218
+ return s2.call(this, t2, e2);
15219
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
15220
+ return s2.call(n2, t2, e2).tz(this.$x.$timezone, true);
15221
+ }, o.tz = function(t2, e2, n2) {
15222
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
15223
+ if ("string" != typeof t2)
15224
+ return o(t2).tz(a2);
15225
+ var s3 = function(t3, e3, n3) {
15226
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
15227
+ if (e3 === o2)
15228
+ return [i3, e3];
15229
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
15230
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
15231
+ }(o.utc(t2, i2).valueOf(), f2, a2), m = s3[0], c = s3[1], d = o(m).utcOffset(c);
15232
+ return d.$x.$timezone = a2, d;
15233
+ }, o.tz.guess = function() {
15234
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
15235
+ }, o.tz.setDefault = function(t2) {
15236
+ r = t2;
15237
+ };
15238
+ };
15239
+ });
15240
+ })(timezone$1);
15241
+ var timezoneExports = timezone$1.exports;
15242
+ const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
15243
+ var updateLocale$1 = { exports: {} };
15244
+ (function(module, exports) {
15245
+ !function(e, n) {
15246
+ module.exports = n();
15247
+ }(commonjsGlobal, function() {
15248
+ return function(e, n, t) {
15249
+ t.updateLocale = function(e2, n2) {
15250
+ var o = t.Ls[e2];
15251
+ if (o)
15252
+ return (n2 ? Object.keys(n2) : []).forEach(function(e3) {
15253
+ o[e3] = n2[e3];
15254
+ }), o;
15255
+ };
15256
+ };
15257
+ });
15258
+ })(updateLocale$1);
15259
+ var updateLocaleExports = updateLocale$1.exports;
15260
+ const updateLocale = /* @__PURE__ */ getDefaultExportFromCjs(updateLocaleExports);
15261
+ var utc$1 = { exports: {} };
15262
+ (function(module, exports) {
15263
+ !function(t, i) {
15264
+ module.exports = i();
15265
+ }(commonjsGlobal, function() {
15266
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
15267
+ return function(s2, f, n) {
15268
+ var u = f.prototype;
15269
+ n.utc = function(t2) {
15270
+ var i2 = { date: t2, utc: true, args: arguments };
15271
+ return new f(i2);
15272
+ }, u.utc = function(i2) {
15273
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
15274
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
15275
+ }, u.local = function() {
15276
+ return n(this.toDate(), { locale: this.$L, utc: false });
15277
+ };
15278
+ var o = u.parse;
15279
+ u.parse = function(t2) {
15280
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
15281
+ };
15282
+ var r = u.init;
15283
+ u.init = function() {
15284
+ if (this.$u) {
15285
+ var t2 = this.$d;
15286
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
15287
+ } else
15288
+ r.call(this);
15289
+ };
15290
+ var a = u.utcOffset;
15291
+ u.utcOffset = function(s3, f2) {
15292
+ var n2 = this.$utils().u;
15293
+ if (n2(s3))
15294
+ return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
15295
+ if ("string" == typeof s3 && (s3 = function(t2) {
15296
+ void 0 === t2 && (t2 = "");
15297
+ var s4 = t2.match(i);
15298
+ if (!s4)
15299
+ return null;
15300
+ var f3 = ("" + s4[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
15301
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
15302
+ }(s3), null === s3))
15303
+ return this;
15304
+ var u2 = Math.abs(s3) <= 16 ? 60 * s3 : s3, o2 = this;
15305
+ if (f2)
15306
+ return o2.$offset = u2, o2.$u = 0 === s3, o2;
15307
+ if (0 !== s3) {
15308
+ var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
15309
+ (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
15310
+ } else
15311
+ o2 = this.utc();
15312
+ return o2;
15313
+ };
15314
+ var h = u.format;
15315
+ u.format = function(t2) {
15316
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
15317
+ return h.call(this, i2);
15318
+ }, u.valueOf = function() {
15319
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
15320
+ return this.$d.valueOf() - 6e4 * t2;
15321
+ }, u.isUTC = function() {
15322
+ return !!this.$u;
15323
+ }, u.toISOString = function() {
15324
+ return this.toDate().toISOString();
15325
+ }, u.toString = function() {
15326
+ return this.toDate().toUTCString();
15327
+ };
15328
+ var l2 = u.toDate;
15329
+ u.toDate = function(t2) {
15330
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l2.call(this);
15331
+ };
15332
+ var c = u.diff;
15333
+ u.diff = function(t2, i2, e2) {
15334
+ if (t2 && this.$u === t2.$u)
15335
+ return c.call(this, t2, i2, e2);
15336
+ var s3 = this.local(), f2 = n(t2).local();
15337
+ return c.call(s3, f2, i2, e2);
15338
+ };
15339
+ };
15340
+ });
15341
+ })(utc$1);
15342
+ var utcExports = utc$1.exports;
15343
+ const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
15344
+ const Popover = ({
15345
+ children,
15346
+ ...props
15347
+ }) => {
15348
+ return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
15349
+ };
15350
+ const Trigger$4 = styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
15351
+ componentId: "sc-1dii14g-0"
15352
+ })(["background:inherit;border:none;color:inherit;cursor:pointer;font:inherit;width:fit-content;"]);
15353
+ const PopoverTrigger = ({
15354
+ anchor,
15355
+ children,
15356
+ ...props
15357
+ }) => {
15358
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
15359
+ /* @__PURE__ */ jsx(Trigger$4, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) }),
15360
+ anchor && /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
15361
+ ] });
15362
+ };
15363
+ PopoverTrigger.displayName = "PopoverTrigger";
15364
+ Popover.Trigger = PopoverTrigger;
15365
+ const MenuPanel = styled(GenericMenuPanel).withConfig({
15366
+ componentId: "sc-1dii14g-1"
15367
+ })(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
15368
+ theme: theme2
15369
+ }) => theme2.click.popover.space.y, ({
15370
+ theme: theme2
15371
+ }) => theme2.click.popover.space.x, ({
15372
+ theme: theme2
15373
+ }) => theme2.click.popover.color.panel.background.default, ({
15374
+ theme: theme2
15375
+ }) => theme2.click.popover.color.panel.stroke.default, ({
15376
+ theme: theme2
15377
+ }) => theme2.click.popover.radii.all, ({
15378
+ theme: theme2
15379
+ }) => theme2.click.popover.shadow.default, ({
15380
+ $showClose
15381
+ }) => $showClose ? "padding-top: 1rem;" : "");
15382
+ const CloseButton$1 = styled(EmptyButton$1).withConfig({
15383
+ componentId: "sc-1dii14g-2"
15384
+ })(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
15385
+ theme: theme2
15386
+ }) => theme2.click.popover.space.y, ({
15387
+ theme: theme2
15388
+ }) => theme2.click.popover.space.x, ({
15389
+ theme: theme2
15390
+ }) => theme2.click.popover.icon.size.width, ({
15391
+ theme: theme2
15392
+ }) => theme2.click.popover.icon.size.height);
15393
+ const PopoverContent = ({
15394
+ children,
15395
+ showArrow,
15396
+ showClose,
15397
+ forceMount,
15398
+ container,
15399
+ ...props
15400
+ }) => {
15401
+ return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
15402
+ showClose && /* @__PURE__ */ jsx(CloseButton$1, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross" }) }),
15403
+ showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, {}) }),
15404
+ children
15405
+ ] }) });
15406
+ };
15407
+ PopoverContent.displayName = "PopoverContent";
15408
+ Popover.Content = PopoverContent;
15409
+ const linkStyles = css$1(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
15410
+ $size,
15411
+ $weight = "normal",
15412
+ theme: theme2
15413
+ }) => theme2.typography.styles.product.text[$weight][$size], ({
15414
+ theme: theme2
15415
+ }) => theme2.click.global.color.text.link.default, ({
15416
+ $size,
15417
+ theme: theme2
15418
+ }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
15419
+ $size,
15420
+ theme: theme2
15421
+ }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
15422
+ theme: theme2
15423
+ }) => theme2.click.global.color.text.link.hover, ({
15424
+ theme: theme2
15425
+ }) => theme2.transition.default, ({
15426
+ theme: theme2
15427
+ }) => theme2.click.global.color.text.link.default);
15428
+ const GridContainer$1 = ({
15429
+ alignItems = "stretch",
15430
+ alignContent = "stretch",
15431
+ children,
15432
+ columnGap,
15433
+ gap,
15434
+ gridAutoColumns,
15435
+ gridAutoFlow,
15436
+ gridAutoRows,
15437
+ gridTemplateAreas,
15438
+ gridTemplateColumns,
15439
+ gridTemplateRows,
15440
+ gridTemplate,
15441
+ inline = false,
15442
+ isResponsive = true,
15443
+ justifyContent = "stretch",
15444
+ justifyItems = "stretch",
15445
+ rowGap,
15446
+ height,
15447
+ maxHeight,
15448
+ minHeight,
15449
+ fillWidth = true,
15450
+ maxWidth,
15451
+ minWidth,
15452
+ overflow,
15453
+ ...props
15454
+ }) => {
15455
+ return /* @__PURE__ */ jsx(Wrapper$4, { $alignItems: alignItems, $alignContent: alignContent, $columnGap: columnGap, $gap: gap, $gridAutoColumns: gridAutoColumns, $gridAutoFlow: gridAutoFlow, $gridAutoRows: gridAutoRows, $gridTemplateAreas: gridTemplateAreas, $gridTemplateColumns: gridTemplateColumns, $gridTemplateRows: gridTemplateRows, $gridTemplate: gridTemplate, $inline: inline, $isResponsive: isResponsive, $justifyContent: justifyContent, $justifyItems: justifyItems, $rowGap: rowGap, $height: height, $maxHeight: maxHeight, $minHeight: minHeight, $fillWidth: fillWidth, $maxWidth: maxWidth, $minWidth: minWidth, $overflow: overflow, "data-testid": "grid-container", ...props, children });
15456
+ };
15457
+ const Wrapper$4 = styled.div.withConfig({
15458
+ componentId: "sc-r57kdn-0"
15459
+ })(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
15460
+ $alignItems = "stretch"
15461
+ }) => $alignItems, ({
15462
+ $alignContent = "stretch"
15463
+ }) => $alignContent, ({
15464
+ $inline
15465
+ }) => $inline === true ? "inline-grid" : "grid", ({
15466
+ $gridAutoColumns
15467
+ }) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
15468
+ $gridAutoFlow
15469
+ }) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
15470
+ $gridAutoRows
15471
+ }) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
15472
+ $gridTemplateAreas
15473
+ }) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
15474
+ $gridTemplateColumns
15475
+ }) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
15476
+ $gridTemplateRows
15477
+ }) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
15478
+ $gridTemplate
15479
+ }) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
15480
+ $justifyContent = "stretch"
15481
+ }) => $justifyContent, ({
15482
+ $justifyItems = "stretch"
15483
+ }) => $justifyItems, ({
15484
+ theme: theme2,
15485
+ $gap,
15486
+ $columnGap,
15487
+ $rowGap
15488
+ }) => `
15489
+ gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
15490
+ ${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
15491
+ ${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
15492
+ `, ({
15493
+ $fillWidth,
15494
+ $maxWidth,
15495
+ $minWidth
15496
+ }) => `
15497
+ width: ${$fillWidth ? "100%" : "auto"};
15498
+ ${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
15499
+ ${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
15500
+ `, ({
15501
+ $height,
15502
+ $maxHeight,
15503
+ $minHeight
15504
+ }) => `
15505
+ ${typeof $height === "string" && `height: ${$height}`};
15506
+ ${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
15507
+ ${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
15508
+ `, ({
15509
+ $overflow
15510
+ }) => `
15511
+ ${typeof $overflow === "string" && `overflow: ${$overflow}`};
15512
+ `, ({
15513
+ theme: theme2
15514
+ }) => theme2.breakpoint.sizes.md, ({
15515
+ $isResponsive = true
15516
+ }) => $isResponsive === true ? "1fr" : ({
15517
+ $gridTemplateColumns
15518
+ }) => $gridTemplateColumns || "auto");
15519
+ dayjs.extend(advancedFormat);
15520
+ dayjs.extend(duration);
15521
+ dayjs.extend(localizedFormat);
15522
+ dayjs.extend(updateLocale);
15523
+ dayjs.extend(utc);
15524
+ const thresholds = [{
15525
+ l: "s",
15526
+ r: 1,
15527
+ d: "second"
15528
+ }, {
15529
+ l: "ss",
15530
+ r: 56,
15531
+ d: "second"
15532
+ }, {
15533
+ l: "m",
15534
+ r: 90,
15535
+ d: "second"
15536
+ }, {
15537
+ l: "mm",
15538
+ r: 55,
15539
+ d: "minute"
15540
+ }, {
15541
+ l: "h",
15542
+ r: 90,
15543
+ d: "minute"
15544
+ }, {
15545
+ l: "hh",
15546
+ r: 22,
15547
+ d: "hour"
15548
+ }, {
15549
+ l: "d",
15550
+ r: 40,
15551
+ d: "hour"
15552
+ }, {
15553
+ l: "dd",
15554
+ r: 31,
15555
+ d: "day"
15556
+ }, {
15557
+ l: "M",
15558
+ r: 45,
15559
+ d: "day"
15560
+ }, {
15561
+ l: "MM",
15562
+ r: 11,
15563
+ d: "month"
15564
+ }, {
15565
+ l: "y",
15566
+ r: 17,
15567
+ d: "month"
15568
+ }, {
15569
+ l: "yy",
15570
+ r: 2,
15571
+ d: "year"
15572
+ }];
15573
+ dayjs.extend(relativeTime, {
15574
+ thresholds
15575
+ });
15576
+ dayjs.updateLocale("en", {
15577
+ relativeTime: {
15578
+ future: "In %s",
15579
+ past: "%s ago",
15580
+ s: "a few seconds",
15581
+ ss: "%d seconds",
15582
+ m: "1 minute",
15583
+ mm: "%d minutes",
15584
+ h: "1 hour",
15585
+ hh: "%d hours",
15586
+ d: "1 day",
15587
+ dd: "%d days",
15588
+ w: "1 week",
15589
+ ww: "%d weeks",
15590
+ M: "1 month",
15591
+ MM: "%d months",
15592
+ y: "1 year",
15593
+ yy: "%d years"
15594
+ }
15595
+ });
15596
+ const UnderlinedTrigger = styled(Popover.Trigger).withConfig({
15597
+ componentId: "sc-17qquw8-0"
15598
+ })(["", ""], linkStyles);
15599
+ const formatDateDetails = (date, timezone2) => {
15600
+ const isCurrentYear = dayjs().year() === date.year();
15601
+ const formatForCurrentYear = "MMM D, h:mm a";
15602
+ const formatForPastYear = "MMM D, YYYY, h:mm a";
15603
+ if (isCurrentYear) {
15604
+ if (timezone2) {
15605
+ const dateWithTimezone = date.tz(timezone2);
15606
+ return dateWithTimezone.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
15607
+ }
15608
+ return date.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
15609
+ }
15610
+ if (timezone2) {
15611
+ const dateWithTimezone = date.tz(timezone2);
15612
+ return dateWithTimezone.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
15613
+ }
15614
+ return date.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
15615
+ };
15616
+ const formatTimezone = (date, timezone2) => {
15617
+ var _a;
15618
+ return ((_a = new Intl.DateTimeFormat(void 0, {
15619
+ timeZone: timezone2,
15620
+ timeZoneName: "short"
15621
+ }).formatToParts(date.toDate()).find((part) => part.type === "timeZoneName")) == null ? void 0 : _a.value) ?? date.format("z");
15622
+ };
15623
+ const DateDetails = ({
15624
+ date,
15625
+ side = "top",
15626
+ systemTimeZone = "America/New_York"
15627
+ }) => {
15628
+ const dayjsDate = dayjs(date);
15629
+ let systemTime;
15630
+ if (systemTimeZone) {
15631
+ dayjs.extend(timezone);
15632
+ try {
15633
+ systemTime = dayjsDate.tz(systemTimeZone);
15634
+ } catch {
15635
+ systemTime = dayjsDate.tz("America/New_York");
15636
+ }
15637
+ }
15638
+ return /* @__PURE__ */ jsxs(Popover, { children: [
15639
+ /* @__PURE__ */ jsx(UnderlinedTrigger, { $size: "sm", $weight: "medium", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: dayjs.utc(date).fromNow() }) }),
15640
+ /* @__PURE__ */ jsx(Popover.Content, { side, showArrow: true, children: /* @__PURE__ */ jsxs(GridContainer$1, { columnGap: "xl", gridTemplateColumns: "repeat(2, auto)", gap: "sm", children: [
15641
+ /* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "Local" }),
15642
+ /* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
15643
+ formatDateDetails(dayjsDate),
15644
+ " (",
15645
+ formatTimezone(dayjsDate, dayjs.tz.guess()),
15646
+ ")"
15647
+ ] }) }),
15648
+ systemTime && /* @__PURE__ */ jsxs(Fragment$1, { children: [
15649
+ /* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "System" }),
15650
+ /* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
15651
+ formatDateDetails(systemTime, systemTimeZone),
15652
+ " (",
15653
+ formatTimezone(systemTime, systemTimeZone),
15654
+ ")"
15655
+ ] }) })
15656
+ ] }),
15657
+ /* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "UTC" }),
15658
+ /* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: formatDateDetails(dayjsDate.utc(), "UTC") }) }),
15659
+ /* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "Unix" }),
15660
+ /* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: Math.round(date.getTime() / 1e3) }) })
15661
+ ] }) })
15662
+ ] });
15663
+ };
14581
15664
  const constructFromSymbol = Symbol.for("constructDateFrom");
14582
15665
  function constructFrom(date, value) {
14583
15666
  if (typeof date === "function")
@@ -14981,7 +16064,7 @@ function useCalendar({
14981
16064
  [calendar, getBody, getHeaders, setNext, setPrev, viewType]
14982
16065
  );
14983
16066
  }
14984
- const Wrapper$4 = styled.div.withConfig({
16067
+ const Wrapper$3 = styled.div.withConfig({
14985
16068
  componentId: "sc-1pvd2nj-0"
14986
16069
  })(["width:inherit;display:flex;align-items:center;justify-content:space-between;align-items:center;span:first-of-type{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}", ""], ({
14987
16070
  theme: theme2,
@@ -15093,7 +16176,7 @@ const InputWrapper = ({
15093
16176
  }) => {
15094
16177
  return /* @__PURE__ */ jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
15095
16178
  /* @__PURE__ */ jsxs(FormElementContainer, { children: [
15096
- /* @__PURE__ */ jsx(Wrapper$4, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
16179
+ /* @__PURE__ */ jsx(Wrapper$3, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
15097
16180
  !!error2 && error2 !== true && /* @__PURE__ */ jsx(Error$1, { children: error2 })
15098
16181
  ] }),
15099
16182
  label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
@@ -15617,14 +16700,14 @@ const Dialog = ({
15617
16700
  }) => {
15618
16701
  return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children });
15619
16702
  };
15620
- const Trigger$4 = styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
16703
+ const Trigger$3 = styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
15621
16704
  componentId: "sc-1wr6otn-0"
15622
16705
  })(["width:fit-content;background:transparent;border:none;cursor:pointer;"]);
15623
16706
  const DialogTrigger = ({
15624
16707
  children,
15625
16708
  ...props
15626
16709
  }) => {
15627
- return /* @__PURE__ */ jsx(Trigger$4, { ...props, children });
16710
+ return /* @__PURE__ */ jsx(Trigger$3, { ...props, children });
15628
16711
  };
15629
16712
  DialogTrigger.displayName = "DialogTrigger";
15630
16713
  Dialog.Trigger = DialogTrigger;
@@ -15683,10 +16766,10 @@ const Title$1 = styled.h2.withConfig({
15683
16766
  })(["font:", ";padding:0;margin:0;"], ({
15684
16767
  theme: theme2
15685
16768
  }) => theme2.click.dialog.typography.title.default);
15686
- const CloseButton$1 = ({
16769
+ const CloseButton = ({
15687
16770
  onClose
15688
16771
  }) => /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { asChild: true, children: /* @__PURE__ */ jsx(CrossButton, { onClick: onClose, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", size: "lg" }) }) });
15689
- const DialogContent$1 = ({
16772
+ const DialogContent = ({
15690
16773
  title,
15691
16774
  children,
15692
16775
  showClose,
@@ -15701,68 +16784,29 @@ const DialogContent$1 = ({
15701
16784
  /* @__PURE__ */ jsxs(ContentArea, { ...props, children: [
15702
16785
  /* @__PURE__ */ jsxs(TitleArea, { children: [
15703
16786
  /* @__PURE__ */ jsx(Title$1, { children: title }),
15704
- showClose && /* @__PURE__ */ jsx(CloseButton$1, { onClose })
16787
+ showClose && /* @__PURE__ */ jsx(CloseButton, { onClose })
15705
16788
  ] }),
15706
16789
  /* @__PURE__ */ jsx(Spacer, { size: "sm" }),
15707
16790
  children
15708
16791
  ] })
15709
16792
  ] });
15710
16793
  };
15711
- DialogContent$1.displayName = "DialogContent";
15712
- Dialog.Content = DialogContent$1;
15713
- const ActionsWrapper = styled.div.withConfig({
15714
- componentId: "sc-6eozxy-0"
15715
- })(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
15716
- const DialogContent = styled.div.withConfig({
15717
- componentId: "sc-6eozxy-1"
15718
- })(["overflow:hidden;display:flex;flex-direction:column;"]);
15719
- const ConfirmationDialog = ({
15720
- children,
15721
- disabled,
15722
- loading,
15723
- message,
15724
- onCancel,
15725
- onConfirm,
15726
- open: open2,
15727
- primaryActionLabel = "Confirm",
15728
- primaryActionType = "primary",
15729
- secondaryActionLabel = "Cancel",
15730
- showClose,
15731
- title,
15732
- ...props
15733
- }) => {
15734
- if (children && message) {
15735
- throw new Error("You can't pass children and message props at the same time");
15736
- }
15737
- return /* @__PURE__ */ jsx(Dialog, { open: open2, onOpenChange: (open22) => {
15738
- !open22 && onCancel && onCancel();
15739
- }, children: /* @__PURE__ */ jsxs(DialogContent, { as: Dialog.Content, title, showClose, ...props, children: [
15740
- /* @__PURE__ */ jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsx(Text, { children: message }) }),
15741
- /* @__PURE__ */ jsx(Separator, { size: "xl" }),
15742
- /* @__PURE__ */ jsxs(ActionsWrapper, { children: [
15743
- /* @__PURE__ */ jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
15744
- /* @__PURE__ */ jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
15745
- if (onConfirm) {
15746
- onConfirm();
15747
- }
15748
- }, "data-testid": "confirm-action-button" })
15749
- ] })
15750
- ] }) });
15751
- };
16794
+ DialogContent.displayName = "DialogContent";
16795
+ Dialog.Content = DialogContent;
15752
16796
  const Flyout = ({
15753
16797
  modal = false,
15754
16798
  ...props
15755
16799
  }) => {
15756
16800
  return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, { modal, ...props });
15757
16801
  };
15758
- const Trigger$3 = ({
16802
+ const Trigger$2 = ({
15759
16803
  children,
15760
16804
  ...props
15761
16805
  }) => {
15762
16806
  return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) });
15763
16807
  };
15764
- Trigger$3.displayName = "Flyout.Trigger";
15765
- Flyout.Trigger = Trigger$3;
16808
+ Trigger$2.displayName = "Flyout.Trigger";
16809
+ Flyout.Trigger = Trigger$2;
15766
16810
  const animationWidth = () => keyframes({
15767
16811
  from: {
15768
16812
  width: 0
@@ -15990,97 +17034,6 @@ const FormContainer = ({
15990
17034
  ] }),
15991
17035
  label && /* @__PURE__ */ jsx(Label$1, { htmlFor: id, error: !!error2, children: label })
15992
17036
  ] });
15993
- const GridContainer$1 = ({
15994
- alignItems = "stretch",
15995
- alignContent = "stretch",
15996
- children,
15997
- columnGap,
15998
- gap,
15999
- gridAutoColumns,
16000
- gridAutoFlow,
16001
- gridAutoRows,
16002
- gridTemplateAreas,
16003
- gridTemplateColumns,
16004
- gridTemplateRows,
16005
- gridTemplate,
16006
- inline = false,
16007
- isResponsive = true,
16008
- justifyContent = "stretch",
16009
- justifyItems = "stretch",
16010
- rowGap,
16011
- height,
16012
- maxHeight,
16013
- minHeight,
16014
- fillWidth = true,
16015
- maxWidth,
16016
- minWidth,
16017
- overflow,
16018
- ...props
16019
- }) => {
16020
- return /* @__PURE__ */ jsx(Wrapper$3, { $alignItems: alignItems, $alignContent: alignContent, $columnGap: columnGap, $gap: gap, $gridAutoColumns: gridAutoColumns, $gridAutoFlow: gridAutoFlow, $gridAutoRows: gridAutoRows, $gridTemplateAreas: gridTemplateAreas, $gridTemplateColumns: gridTemplateColumns, $gridTemplateRows: gridTemplateRows, $gridTemplate: gridTemplate, $inline: inline, $isResponsive: isResponsive, $justifyContent: justifyContent, $justifyItems: justifyItems, $rowGap: rowGap, $height: height, $maxHeight: maxHeight, $minHeight: minHeight, $fillWidth: fillWidth, $maxWidth: maxWidth, $minWidth: minWidth, $overflow: overflow, "data-testid": "grid-container", ...props, children });
16021
- };
16022
- const Wrapper$3 = styled.div.withConfig({
16023
- componentId: "sc-r57kdn-0"
16024
- })(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
16025
- $alignItems = "stretch"
16026
- }) => $alignItems, ({
16027
- $alignContent = "stretch"
16028
- }) => $alignContent, ({
16029
- $inline
16030
- }) => $inline === true ? "inline-grid" : "grid", ({
16031
- $gridAutoColumns
16032
- }) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
16033
- $gridAutoFlow
16034
- }) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
16035
- $gridAutoRows
16036
- }) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
16037
- $gridTemplateAreas
16038
- }) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
16039
- $gridTemplateColumns
16040
- }) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
16041
- $gridTemplateRows
16042
- }) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
16043
- $gridTemplate
16044
- }) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
16045
- $justifyContent = "stretch"
16046
- }) => $justifyContent, ({
16047
- $justifyItems = "stretch"
16048
- }) => $justifyItems, ({
16049
- theme: theme2,
16050
- $gap,
16051
- $columnGap,
16052
- $rowGap
16053
- }) => `
16054
- gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
16055
- ${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
16056
- ${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
16057
- `, ({
16058
- $fillWidth,
16059
- $maxWidth,
16060
- $minWidth
16061
- }) => `
16062
- width: ${$fillWidth ? "100%" : "auto"};
16063
- ${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
16064
- ${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
16065
- `, ({
16066
- $height,
16067
- $maxHeight,
16068
- $minHeight
16069
- }) => `
16070
- ${typeof $height === "string" && `height: ${$height}`};
16071
- ${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
16072
- ${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
16073
- `, ({
16074
- $overflow
16075
- }) => `
16076
- ${typeof $overflow === "string" && `overflow: ${$overflow}`};
16077
- `, ({
16078
- theme: theme2
16079
- }) => theme2.breakpoint.sizes.md, ({
16080
- $isResponsive = true
16081
- }) => $isResponsive === true ? "1fr" : ({
16082
- $gridTemplateColumns
16083
- }) => $gridTemplateColumns || "auto");
16084
17037
  const InlineContainer = styled.span.withConfig({
16085
17038
  componentId: "sc-ugg5k0-0"
16086
17039
  })(["", ""], ({
@@ -16094,305 +17047,6 @@ const InlineContainer = styled.span.withConfig({
16094
17047
  padding: 0 ${theme2.click.codeInline.space.x};
16095
17048
  `);
16096
17049
  const InlineCodeBlock = (props) => /* @__PURE__ */ jsx(InlineContainer, { ...props });
16097
- const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
16098
- const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
16099
- $6cc32821e9371a1c$export$4027731b685e72eb
16100
- ]);
16101
- const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
16102
- const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
16103
- const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
16104
- const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
16105
- const [open1, setOpen] = useState(false);
16106
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16107
- const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
16108
- const handleOpenChange = useCallback((open2) => {
16109
- setOpen(open2);
16110
- handleOpenChangeProp(open2);
16111
- }, [
16112
- handleOpenChangeProp
16113
- ]);
16114
- return /* @__PURE__ */ createElement$1($1b0217ee4a91d156$var$ContextMenuProvider, {
16115
- scope: __scopeContextMenu,
16116
- open: open1,
16117
- onOpenChange: handleOpenChange,
16118
- modal
16119
- }, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
16120
- dir,
16121
- open: open1,
16122
- onOpenChange: handleOpenChange,
16123
- modal
16124
- }), children));
16125
- };
16126
- const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
16127
- const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16128
- const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
16129
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
16130
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16131
- const pointRef = useRef({
16132
- x: 0,
16133
- y: 0
16134
- });
16135
- const virtualRef = useRef({
16136
- getBoundingClientRect: () => DOMRect.fromRect({
16137
- width: 0,
16138
- height: 0,
16139
- ...pointRef.current
16140
- })
16141
- });
16142
- const longPressTimerRef = useRef(0);
16143
- const clearLongPress = useCallback(
16144
- () => window.clearTimeout(longPressTimerRef.current),
16145
- []
16146
- );
16147
- const handleOpen = (event) => {
16148
- pointRef.current = {
16149
- x: event.clientX,
16150
- y: event.clientY
16151
- };
16152
- context.onOpenChange(true);
16153
- };
16154
- useEffect(
16155
- () => clearLongPress,
16156
- [
16157
- clearLongPress
16158
- ]
16159
- );
16160
- useEffect(
16161
- () => void (disabled && clearLongPress()),
16162
- [
16163
- disabled,
16164
- clearLongPress
16165
- ]
16166
- );
16167
- return /* @__PURE__ */ createElement$1(Fragment, null, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
16168
- virtualRef
16169
- })), /* @__PURE__ */ createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
16170
- "data-state": context.open ? "open" : "closed",
16171
- "data-disabled": disabled ? "" : void 0
16172
- }, triggerProps, {
16173
- ref: forwardedRef,
16174
- style: {
16175
- WebkitTouchCallout: "none",
16176
- ...props.style
16177
- },
16178
- onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
16179
- clearLongPress();
16180
- handleOpen(event);
16181
- event.preventDefault();
16182
- }),
16183
- onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
16184
- clearLongPress();
16185
- longPressTimerRef.current = window.setTimeout(
16186
- () => handleOpen(event),
16187
- 700
16188
- );
16189
- })),
16190
- onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16191
- onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16192
- onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
16193
- })));
16194
- });
16195
- const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
16196
- const { __scopeContextMenu, ...portalProps } = props;
16197
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16198
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
16199
- };
16200
- const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
16201
- const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16202
- const { __scopeContextMenu, ...contentProps } = props;
16203
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
16204
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16205
- const hasInteractedOutsideRef = useRef(false);
16206
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
16207
- ref: forwardedRef,
16208
- side: "right",
16209
- sideOffset: 2,
16210
- align: "start",
16211
- onCloseAutoFocus: (event) => {
16212
- var _props$onCloseAutoFoc;
16213
- (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
16214
- if (!event.defaultPrevented && hasInteractedOutsideRef.current)
16215
- event.preventDefault();
16216
- hasInteractedOutsideRef.current = false;
16217
- },
16218
- onInteractOutside: (event) => {
16219
- var _props$onInteractOuts;
16220
- (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
16221
- if (!event.defaultPrevented && !context.modal)
16222
- hasInteractedOutsideRef.current = true;
16223
- },
16224
- style: {
16225
- ...props.style,
16226
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16227
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16228
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16229
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16230
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16231
- }
16232
- }));
16233
- });
16234
- const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16235
- const { __scopeContextMenu, ...groupProps } = props;
16236
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16237
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
16238
- ref: forwardedRef
16239
- }));
16240
- });
16241
- const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16242
- const { __scopeContextMenu, ...itemProps } = props;
16243
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16244
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
16245
- ref: forwardedRef
16246
- }));
16247
- });
16248
- const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16249
- const { __scopeContextMenu, ...arrowProps } = props;
16250
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16251
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
16252
- ref: forwardedRef
16253
- }));
16254
- });
16255
- const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
16256
- const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
16257
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16258
- const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
16259
- prop: openProp,
16260
- defaultProp: defaultOpen,
16261
- onChange: onOpenChange
16262
- });
16263
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
16264
- open: open2,
16265
- onOpenChange: setOpen
16266
- }), children);
16267
- };
16268
- const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16269
- const { __scopeContextMenu, ...triggerItemProps } = props;
16270
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16271
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
16272
- ref: forwardedRef
16273
- }));
16274
- });
16275
- const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
16276
- const { __scopeContextMenu, ...subContentProps } = props;
16277
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16278
- return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
16279
- ref: forwardedRef,
16280
- style: {
16281
- ...props.style,
16282
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16283
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16284
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16285
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16286
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16287
- }
16288
- }));
16289
- });
16290
- function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
16291
- return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
16292
- }
16293
- const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
16294
- const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
16295
- const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
16296
- const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
16297
- const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
16298
- const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
16299
- const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
16300
- const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
16301
- const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
16302
- const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
16303
- const ContextMenu = (props) => /* @__PURE__ */ jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
16304
- const ContextMenuTrigger$1 = forwardRef(({
16305
- disabled,
16306
- ...props
16307
- }, ref) => {
16308
- return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsx("div", { ref, ...props }) });
16309
- });
16310
- ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
16311
- ContextMenu.Trigger = ContextMenuTrigger$1;
16312
- const ContextMenuSubTrigger = ({
16313
- icon,
16314
- iconDir,
16315
- children,
16316
- ...props
16317
- }) => {
16318
- return /* @__PURE__ */ jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
16319
- /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }),
16320
- /* @__PURE__ */ jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsx(SvgImage, { name: "chevron-right" }) })
16321
- ] });
16322
- };
16323
- ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
16324
- ContextMenu.SubTrigger = ContextMenuSubTrigger;
16325
- const RightMenuContent = styled(GenericMenuPanel).withConfig({
16326
- componentId: "sc-8z6kye-0"
16327
- })(["flex-direction:column;z-index:1;", ";"], ({
16328
- $showArrow
16329
- }) => $showArrow ? `
16330
- &[data-side="bottom"] {
16331
- margin-top: -1px;
16332
- }
16333
- &[data-side="top"] {
16334
- margin-bottom: -1px;
16335
- }
16336
- &[data-side="left"] {
16337
- margin-right: -1px;
16338
- .popover-arrow {
16339
- margin-right: 1rem;
16340
- }
16341
- }
16342
- }
16343
- &[data-side="right"] {
16344
- margin-left: -1px;
16345
- .popover-arrow {
16346
- margin-left: 1rem;
16347
- }
16348
- }
16349
- ` : "");
16350
- const ContextMenuContent = ({
16351
- sub,
16352
- children,
16353
- showArrow,
16354
- ...props
16355
- }) => {
16356
- const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
16357
- return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
16358
- showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, { className: "popover-arrow" }) }),
16359
- children
16360
- ] }) });
16361
- };
16362
- ContextMenuContent.displayName = "ContextMenuContent";
16363
- ContextMenu.Content = ContextMenuContent;
16364
- const RightMenuGroup = styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
16365
- componentId: "sc-8z6kye-1"
16366
- })(["width:100%;border-bottom:1px solid ", ";"], ({
16367
- theme: theme2
16368
- }) => theme2.click.genericMenu.item.color.stroke.default);
16369
- const ContextMenuGroup = (props) => {
16370
- return /* @__PURE__ */ jsx(RightMenuGroup, { ...props });
16371
- };
16372
- ContextMenuGroup.displayName = "ContextMenuGroup";
16373
- ContextMenu.Group = ContextMenuGroup;
16374
- const RightMenuSub = styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
16375
- componentId: "sc-8z6kye-2"
16376
- })(["border-bottom:1px solid ", ";"], ({
16377
- theme: theme2
16378
- }) => theme2.click.genericMenu.item.color.stroke.default);
16379
- const ContextMenuSub = ({
16380
- ...props
16381
- }) => {
16382
- return /* @__PURE__ */ jsx(RightMenuSub, { ...props });
16383
- };
16384
- ContextMenuSub.displayName = "ContextMenuSub";
16385
- ContextMenu.Sub = ContextMenuSub;
16386
- const ContextMenuItem = ({
16387
- icon,
16388
- iconDir,
16389
- children,
16390
- ...props
16391
- }) => {
16392
- return /* @__PURE__ */ jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }) });
16393
- };
16394
- ContextMenuItem.displayName = "ContextMenuItem";
16395
- ContextMenu.Item = ContextMenuItem;
16396
17050
  function _inheritsLoose(subClass, superClass) {
16397
17051
  subClass.prototype = Object.create(superClass.prototype);
16398
17052
  subClass.prototype.constructor = subClass;
@@ -33403,14 +34057,14 @@ const HoverCard = ({
33403
34057
  }) => {
33404
34058
  return /* @__PURE__ */ jsx($cef8881cdc69808e$export$be92b6f5f03c0fe9, { ...props, children });
33405
34059
  };
33406
- const Trigger$2 = styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
34060
+ const Trigger$1 = styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
33407
34061
  componentId: "sc-1ect7b6-0"
33408
34062
  })(["width:fit-content;"]);
33409
34063
  const HoverCardTrigger = ({
33410
34064
  children,
33411
34065
  ...props
33412
34066
  }) => {
33413
- return /* @__PURE__ */ jsx(Trigger$2, { ...props, children });
34067
+ return /* @__PURE__ */ jsx(Trigger$1, { ...props, children });
33414
34068
  };
33415
34069
  HoverCardTrigger.displayName = "HoverCardTrigger";
33416
34070
  HoverCard.Trigger = HoverCardTrigger;
@@ -33428,25 +34082,6 @@ const HoverCardContent = ({
33428
34082
  };
33429
34083
  HoverCardContent.displayName = "HoverCardContent";
33430
34084
  HoverCard.Content = HoverCardContent;
33431
- const linkStyles = css$1(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
33432
- $size,
33433
- $weight = "normal",
33434
- theme: theme2
33435
- }) => theme2.typography.styles.product.text[$weight][$size], ({
33436
- theme: theme2
33437
- }) => theme2.click.global.color.text.link.default, ({
33438
- $size,
33439
- theme: theme2
33440
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33441
- $size,
33442
- theme: theme2
33443
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33444
- theme: theme2
33445
- }) => theme2.click.global.color.text.link.hover, ({
33446
- theme: theme2
33447
- }) => theme2.transition.default, ({
33448
- theme: theme2
33449
- }) => theme2.click.global.color.text.link.default);
33450
34085
  const CuiLink = styled.a.withConfig({
33451
34086
  componentId: "sc-1bwz77u-0"
33452
34087
  })(["", ""], linkStyles);
@@ -33517,71 +34152,6 @@ const PasswordField = forwardRef(({
33517
34152
  /* @__PURE__ */ jsx(IconButton, { disabled, onClick: togglePasswordViewer, $show: value.length > 0, children: /* @__PURE__ */ jsx(SvgImage, { name: viewPassword ? "eye-closed" : "eye", size: "md" }) })
33518
34153
  ] });
33519
34154
  });
33520
- const Popover = ({
33521
- children,
33522
- ...props
33523
- }) => {
33524
- return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
33525
- };
33526
- const Trigger$1 = styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
33527
- componentId: "sc-1dii14g-0"
33528
- })(["width:fit-content;font:inherit;color:inherit;background:inherit;border:none;"]);
33529
- const PopoverTrigger = ({
33530
- anchor,
33531
- children,
33532
- ...props
33533
- }) => {
33534
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
33535
- /* @__PURE__ */ jsx(Trigger$1, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) }),
33536
- anchor && /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
33537
- ] });
33538
- };
33539
- PopoverTrigger.displayName = "PopoverTrigger";
33540
- Popover.Trigger = PopoverTrigger;
33541
- const MenuPanel = styled(GenericMenuPanel).withConfig({
33542
- componentId: "sc-1dii14g-1"
33543
- })(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
33544
- theme: theme2
33545
- }) => theme2.click.popover.space.y, ({
33546
- theme: theme2
33547
- }) => theme2.click.popover.space.x, ({
33548
- theme: theme2
33549
- }) => theme2.click.popover.color.panel.background.default, ({
33550
- theme: theme2
33551
- }) => theme2.click.popover.color.panel.stroke.default, ({
33552
- theme: theme2
33553
- }) => theme2.click.popover.radii.all, ({
33554
- theme: theme2
33555
- }) => theme2.click.popover.shadow.default, ({
33556
- $showClose
33557
- }) => $showClose ? "padding-top: 1rem;" : "");
33558
- const CloseButton = styled(EmptyButton$1).withConfig({
33559
- componentId: "sc-1dii14g-2"
33560
- })(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
33561
- theme: theme2
33562
- }) => theme2.click.popover.space.y, ({
33563
- theme: theme2
33564
- }) => theme2.click.popover.space.x, ({
33565
- theme: theme2
33566
- }) => theme2.click.popover.icon.size.width, ({
33567
- theme: theme2
33568
- }) => theme2.click.popover.icon.size.height);
33569
- const PopoverContent = ({
33570
- children,
33571
- showArrow,
33572
- showClose,
33573
- forceMount,
33574
- container,
33575
- ...props
33576
- }) => {
33577
- return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
33578
- showClose && /* @__PURE__ */ jsx(CloseButton, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross" }) }),
33579
- showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, {}) }),
33580
- children
33581
- ] }) });
33582
- };
33583
- PopoverContent.displayName = "PopoverContent";
33584
- Popover.Content = PopoverContent;
33585
34155
  const CustomSelect = styled.div.withConfig({
33586
34156
  componentId: "sc-dicnqe-0"
33587
34157
  })(["width:150px;"]);
@@ -34880,8 +35450,8 @@ function AnimationStateManager() {
34880
35450
  }
34881
35451
  animationStates = [];
34882
35452
  },
34883
- animate: function animate(target, currentRect, toRect, duration) {
34884
- if (duration) {
35453
+ animate: function animate(target, currentRect, toRect, duration2) {
35454
+ if (duration2) {
34885
35455
  css(target, "transition", "");
34886
35456
  css(target, "transform", "");
34887
35457
  var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
@@ -34889,7 +35459,7 @@ function AnimationStateManager() {
34889
35459
  target.animatingY = !!translateY;
34890
35460
  css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
34891
35461
  this.forRepaintDummy = repaint(target);
34892
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
35462
+ css(target, "transition", "transform " + duration2 + "ms" + (this.options.easing ? " " + this.options.easing : ""));
34893
35463
  css(target, "transform", "translate3d(0,0,0)");
34894
35464
  typeof target.animated === "number" && clearTimeout(target.animated);
34895
35465
  target.animated = setTimeout(function() {
@@ -34898,7 +35468,7 @@ function AnimationStateManager() {
34898
35468
  target.animated = false;
34899
35469
  target.animatingX = false;
34900
35470
  target.animatingY = false;
34901
- }, duration);
35471
+ }, duration2);
34902
35472
  }
34903
35473
  }
34904
35474
  };
@@ -37662,15 +38232,15 @@ const SingleSelectValue = ({
37662
38232
  valueNode,
37663
38233
  value
37664
38234
  }) => {
38235
+ if (value === void 0 || value === null) {
38236
+ return null;
38237
+ }
37665
38238
  const {
37666
38239
  icon,
37667
38240
  iconDir,
37668
38241
  children,
37669
38242
  label
37670
38243
  } = valueNode ?? {};
37671
- if (!value) {
37672
- return null;
37673
- }
37674
38244
  return /* @__PURE__ */ jsx(SelectValueContainer, { children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label ?? children ?? value }) });
37675
38245
  };
37676
38246
  const useOption = () => {
@@ -38102,7 +38672,7 @@ const Select = ({
38102
38672
  onOpenChange: onOpenChangeProp,
38103
38673
  ...props
38104
38674
  }) => {
38105
- const [selectedValues, setSelectedValues] = useState(valueProp ? [valueProp] : defaultValue ? [defaultValue] : []);
38675
+ const [selectedValues, setSelectedValues] = useState(typeof valueProp === "string" ? [valueProp] : typeof defaultValue === "string" ? [defaultValue] : []);
38106
38676
  const [open2, setOpen] = useState(false);
38107
38677
  const onOpenChange = useCallback((open22) => {
38108
38678
  setOpen(open22);
@@ -38128,7 +38698,7 @@ const Select = ({
38128
38698
  }
38129
38699
  }, [selectedValues, onSelect]);
38130
38700
  useUpdateEffect(() => {
38131
- setSelectedValues(valueProp ? [valueProp] : []);
38701
+ setSelectedValues(typeof valueProp === "string" ? [valueProp] : []);
38132
38702
  }, [valueProp]);
38133
38703
  const conditionalProps = {};
38134
38704
  if (options) {
@@ -38136,7 +38706,7 @@ const Select = ({
38136
38706
  } else {
38137
38707
  conditionalProps.children = children;
38138
38708
  }
38139
- return /* @__PURE__ */ jsx(InternalSelect, { onChange, value: valueProp ? [valueProp] : selectedValues, open: open2, onOpenChange, onSelect, ...conditionalProps, ...props });
38709
+ return /* @__PURE__ */ jsx(InternalSelect, { onChange, value: typeof valueProp === "string" ? [valueProp] : selectedValues, open: open2, onOpenChange, onSelect, ...conditionalProps, ...props });
38140
38710
  };
38141
38711
  Select.Group = SelectGroup;
38142
38712
  Select.Item = SelectItem;
@@ -40266,7 +40836,7 @@ const [$054eb8030ebde76e$var$createToastContext, $054eb8030ebde76e$export$8a359d
40266
40836
  ]);
40267
40837
  const [$054eb8030ebde76e$var$ToastProviderProvider, $054eb8030ebde76e$var$useToastProviderContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$PROVIDER_NAME);
40268
40838
  const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
40269
- const { __scopeToast, label = "Notification", duration = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
40839
+ const { __scopeToast, label = "Notification", duration: duration2 = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
40270
40840
  const [viewport, setViewport] = useState(null);
40271
40841
  const [toastCount, setToastCount] = useState(0);
40272
40842
  const isFocusedToastEscapeKeyDownRef = useRef(false);
@@ -40276,7 +40846,7 @@ const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
40276
40846
  }, /* @__PURE__ */ createElement$1($054eb8030ebde76e$var$ToastProviderProvider, {
40277
40847
  scope: __scopeToast,
40278
40848
  label,
40279
- duration,
40849
+ duration: duration2,
40280
40850
  swipeDirection,
40281
40851
  swipeThreshold,
40282
40852
  toastCount,
@@ -40563,12 +41133,12 @@ const $054eb8030ebde76e$var$ToastImpl = /* @__PURE__ */ forwardRef((props, forwa
40563
41133
  (_context$viewport2 = context.viewport) === null || _context$viewport2 === void 0 || _context$viewport2.focus();
40564
41134
  onClose();
40565
41135
  });
40566
- const startTimer = useCallback((duration) => {
40567
- if (!duration || duration === Infinity)
41136
+ const startTimer = useCallback((duration2) => {
41137
+ if (!duration2 || duration2 === Infinity)
40568
41138
  return;
40569
41139
  window.clearTimeout(closeTimerRef.current);
40570
41140
  closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
40571
- closeTimerRef.current = window.setTimeout(handleClose, duration);
41141
+ closeTimerRef.current = window.setTimeout(handleClose, duration2);
40572
41142
  }, [
40573
41143
  handleClose
40574
41144
  ]);
@@ -41027,7 +41597,7 @@ const Toast = ({
41027
41597
  title,
41028
41598
  description,
41029
41599
  actions = [],
41030
- duration,
41600
+ duration: duration2,
41031
41601
  onClose
41032
41602
  }) => {
41033
41603
  let iconName = "";
@@ -41038,7 +41608,7 @@ const Toast = ({
41038
41608
  } else if (type && ["danger", "warning"].includes(type)) {
41039
41609
  iconName = "warning";
41040
41610
  }
41041
- return /* @__PURE__ */ jsxs(ToastRoot, { onOpenChange: onClose, duration, children: [
41611
+ return /* @__PURE__ */ jsxs(ToastRoot, { onOpenChange: onClose, duration: duration2, children: [
41042
41612
  /* @__PURE__ */ jsxs(ToastHeader, { children: [
41043
41613
  iconName.length > 0 && /* @__PURE__ */ jsx(ToastIcon, { name: iconName, $type: type }),
41044
41614
  /* @__PURE__ */ jsx(Title, { children: title }),
@@ -50400,6 +50970,7 @@ export {
50400
50970
  Container,
50401
50971
  ContextMenu,
50402
50972
  DangerAlert,
50973
+ DateDetails,
50403
50974
  DatePicker,
50404
50975
  Dialog,
50405
50976
  Dropdown,