@clickhouse/click-ui 0.0.191 → 0.0.192

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.
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("styled-components"), require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "styled-components", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["click-ui"] = {}, global2.jsxRuntime, global2.styled, global2.React, global2.ReactDOM));
3
- })(this, function(exports2, jsxRuntime, styledComponents, React, ReactDOM) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("styled-components"), require("react"), require("react-dom"), require("dayjs")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "styled-components", "react", "react-dom", "dayjs"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["click-ui"] = {}, global2.jsxRuntime, global2.styled, global2.React, global2.ReactDOM, global2.dayjs));
3
+ })(this, function(exports2, jsxRuntime, styledComponents, React, ReactDOM, dayjs) {
4
4
  "use strict";var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
6
  var __publicField = (obj, key, value) => {
@@ -9672,6 +9672,110 @@ var __publicField = (obj, key, value) => {
9672
9672
  }) => theme2.click.button.basic.size.icon.all, ({
9673
9673
  theme: theme2
9674
9674
  }) => theme2.click.button.basic.size.icon.all);
9675
+ const Header$4 = styledComponents.styled.div.withConfig({
9676
+ componentId: "sc-1qnbjoa-0"
9677
+ })(["max-width:100%;gap:inherit;"]);
9678
+ const Description = styledComponents.styled.div.withConfig({
9679
+ componentId: "sc-1qnbjoa-1"
9680
+ })(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
9681
+ theme: theme2
9682
+ }) => theme2.click.card.horizontal.space.gap);
9683
+ const Wrapper$a = styledComponents.styled.div.withConfig({
9684
+ componentId: "sc-1qnbjoa-2"
9685
+ })(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
9686
+ theme: theme2,
9687
+ $color,
9688
+ $isSelected,
9689
+ $disabled
9690
+ }) => `
9691
+ background: ${theme2.click.card.horizontal[$color].color.background.default};
9692
+ color: ${theme2.click.card.horizontal[$color].color.title.default};
9693
+ border-radius: ${theme2.click.card.horizontal.radii.all};
9694
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
9695
+ padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
9696
+ gap: ${theme2.click.card.horizontal.space.gap};
9697
+ font: ${theme2.click.card.horizontal.typography.title.default};
9698
+ ${Description} {
9699
+ color: ${theme2.click.card.horizontal[$color].color.description.default};
9700
+ font: ${theme2.click.card.horizontal.typography.description.default};
9701
+ }
9702
+ &:hover{
9703
+ background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
9704
+ color: ${theme2.click.card.horizontal[$color].color.title.hover};
9705
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
9706
+ cursor: pointer;
9707
+ font: ${theme2.click.card.horizontal.typography.title.hover};
9708
+ ${Description} {
9709
+ color: ${theme2.click.card.horizontal[$color].color.description.hover};
9710
+ font: ${theme2.click.card.horizontal.typography.description.hover};
9711
+ }
9712
+ }
9713
+
9714
+ &:active, &:focus, &:focus-within {
9715
+ background-color: ${theme2.click.card.horizontal[$color].color.background.active};
9716
+ color: ${theme2.click.card.horizontal[$color].color.title.active};
9717
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
9718
+ ${Description} {
9719
+ color: ${theme2.click.card.horizontal[$color].color.description.active};
9720
+ font: ${theme2.click.card.horizontal.typography.description.active};
9721
+ }
9722
+ }
9723
+ ${$disabled ? `
9724
+ pointer-events: none;
9725
+ &,
9726
+ &:hover,
9727
+ &:active, &:focus, &:focus-within {
9728
+ background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
9729
+ color: ${theme2.click.card.horizontal[$color].color.title.disabled};
9730
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
9731
+ cursor: not-allowed;
9732
+ ${Description} {
9733
+ color: ${theme2.click.card.horizontal[$color].color.description.disabled};
9734
+ font: ${theme2.click.card.horizontal.typography.description.disabled};
9735
+ }
9736
+ },
9737
+ &:active, &:focus, &:focus-within {
9738
+ border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
9739
+ }
9740
+ ` : ""}
9741
+ `);
9742
+ const CardIcon$1 = styledComponents.styled(SvgImage).withConfig({
9743
+ componentId: "sc-1qnbjoa-3"
9744
+ })(["", ""], ({
9745
+ theme: theme2
9746
+ }) => `
9747
+ height: ${theme2.click.card.horizontal.icon.size.all};
9748
+ width: ${theme2.click.card.horizontal.icon.size.all};
9749
+ `);
9750
+ const ContentWrapper = styledComponents.styled.div.withConfig({
9751
+ componentId: "sc-1qnbjoa-4"
9752
+ })(["display:flex;flex-direction:column;width:100%;"]);
9753
+ const CardHorizontal = ({
9754
+ title,
9755
+ icon,
9756
+ description,
9757
+ disabled = false,
9758
+ isSelected,
9759
+ children,
9760
+ color = "default",
9761
+ badgeText,
9762
+ badgeState,
9763
+ badgeIcon,
9764
+ badgeIconDir,
9765
+ ...props
9766
+ }) => {
9767
+ return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
9768
+ icon && /* @__PURE__ */ jsxRuntime.jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
9769
+ /* @__PURE__ */ jsxRuntime.jsxs(ContentWrapper, { children: [
9770
+ title && /* @__PURE__ */ jsxRuntime.jsxs(Header$4, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
9771
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
9772
+ badgeText && /* @__PURE__ */ jsxRuntime.jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
9773
+ ] }),
9774
+ description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: description }),
9775
+ children && /* @__PURE__ */ jsxRuntime.jsx(Description, { children })
9776
+ ] })
9777
+ ] });
9778
+ };
9675
9779
  const Title$2 = React.forwardRef(({
9676
9780
  align,
9677
9781
  size: size2,
@@ -9725,111 +9829,6 @@ var __publicField = (obj, key, value) => {
9725
9829
  }) => $fillWidth && "width: 100%");
9726
9830
  _Text.displayName = "Text";
9727
9831
  const Text = React.forwardRef(_Text);
9728
- const Header$4 = styledComponents.styled.div.withConfig({
9729
- componentId: "sc-1drx130-0"
9730
- })(["display:flex;justify-content:space-between;align-items:center;"]);
9731
- const HeaderLeft = styledComponents.styled.div.withConfig({
9732
- componentId: "sc-1drx130-1"
9733
- })(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
9734
- theme: theme2
9735
- }) => theme2.click.card.secondary.space.gap, ({
9736
- $disabled,
9737
- theme: theme2
9738
- }) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
9739
- const Content$3 = styledComponents.styled.div.withConfig({
9740
- componentId: "sc-1drx130-2"
9741
- })(["display:flex;flex-direction:column;flex:1;"]);
9742
- const CustomIcon$1 = styledComponents.styled.img.withConfig({
9743
- componentId: "sc-1drx130-3"
9744
- })(["height:", ";width:", ";"], ({
9745
- theme: theme2
9746
- }) => theme2.click.image.lg.size.height, ({
9747
- theme: theme2
9748
- }) => theme2.click.image.lg.size.width);
9749
- const InfoLink = styledComponents.styled.a.withConfig({
9750
- componentId: "sc-1drx130-4"
9751
- })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
9752
- theme: theme2
9753
- }) => theme2.click.card.secondary.color.link.default, ({
9754
- theme: theme2
9755
- }) => theme2.click.card.secondary.space.link.gap);
9756
- const LinkIconContainer = styledComponents.styled(SvgImage).withConfig({
9757
- componentId: "sc-1drx130-5"
9758
- })(["color:", ";height:", ";width:", ";"], ({
9759
- theme: theme2
9760
- }) => theme2.click.card.secondary.color.link.default, ({
9761
- theme: theme2
9762
- }) => theme2.click.image.md.size.height, ({
9763
- theme: theme2
9764
- }) => theme2.click.image.md.size.width);
9765
- const LinkText = styledComponents.styled(Text).withConfig({
9766
- componentId: "sc-1drx130-6"
9767
- })([""]);
9768
- const LinkIcon = styledComponents.styled(LinkIconContainer).withConfig({
9769
- componentId: "sc-1drx130-7"
9770
- })([""]);
9771
- const Wrapper$a = styledComponents.styled.div.withConfig({
9772
- componentId: "sc-1drx130-8"
9773
- })(["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;', "}"], ({
9774
- theme: theme2
9775
- }) => theme2.click.card.secondary.color.background.default, ({
9776
- theme: theme2
9777
- }) => theme2.click.card.secondary.radii.all, ({
9778
- theme: theme2
9779
- }) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
9780
- theme: theme2
9781
- }) => theme2.click.card.secondary.space.all, ({
9782
- theme: theme2
9783
- }) => theme2.click.card.secondary.space.gap, ({
9784
- $hasShadow,
9785
- theme: theme2
9786
- }) => $hasShadow ? theme2.shadow[1] : "none", ({
9787
- theme: theme2
9788
- }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
9789
- theme: theme2
9790
- }) => theme2.click.card.secondary.color.link.hover, ({
9791
- theme: theme2
9792
- }) => `
9793
- background-color: ${theme2.click.card.secondary.color.background.disabled};
9794
- color: ${theme2.click.card.secondary.color.title.disabled};
9795
- border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
9796
- cursor: not-allowed;
9797
-
9798
- ${LinkText},
9799
- ${LinkIcon} {
9800
- color: ${theme2.click.card.secondary.color.link.disabled};
9801
- }
9802
- `);
9803
- const CardSecondary = ({
9804
- title,
9805
- icon,
9806
- iconUrl,
9807
- badgeState,
9808
- badgeText = "",
9809
- hasShadow = false,
9810
- disabled = false,
9811
- description,
9812
- infoUrl,
9813
- infoText,
9814
- infoIcon = "chevron-right",
9815
- infoIconSize = "md",
9816
- ...props
9817
- }) => {
9818
- return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
9819
- /* @__PURE__ */ jsxRuntime.jsxs(Header$4, { children: [
9820
- /* @__PURE__ */ jsxRuntime.jsxs(HeaderLeft, { $disabled: disabled, children: [
9821
- iconUrl ? /* @__PURE__ */ jsxRuntime.jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
9822
- /* @__PURE__ */ jsxRuntime.jsx(Title$2, { type: "h3", children: title })
9823
- ] }),
9824
- badgeText && /* @__PURE__ */ jsxRuntime.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
9825
- ] }),
9826
- /* @__PURE__ */ jsxRuntime.jsx(Content$3, { children: /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", children: description }) }),
9827
- (infoUrl || infoText) && /* @__PURE__ */ jsxRuntime.jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
9828
- /* @__PURE__ */ jsxRuntime.jsx(LinkText, { children: infoText }),
9829
- /* @__PURE__ */ jsxRuntime.jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
9830
- ] })
9831
- ] });
9832
- };
9833
9832
  const _Container = ({
9834
9833
  component,
9835
9834
  alignItems,
@@ -9991,7 +9990,7 @@ var __publicField = (obj, key, value) => {
9991
9990
  $size = "md",
9992
9991
  theme: theme2
9993
9992
  }) => theme2.click.card.primary.size.icon[$size].all);
9994
- const Content$2 = styledComponents.styled.div.withConfig({
9993
+ const Content$3 = styledComponents.styled.div.withConfig({
9995
9994
  componentId: "sc-2dguvi-2"
9996
9995
  })(["width:100%;display:flex;flex-direction:column;align-self:", ";gap:", ";flex:1;"], ({
9997
9996
  $alignContent = "center"
@@ -10035,7 +10034,7 @@ var __publicField = (obj, key, value) => {
10035
10034
  iconUrl ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, "aria-hidden": true }),
10036
10035
  title && /* @__PURE__ */ jsxRuntime.jsx(Title$2, { type: "h3", children: title })
10037
10036
  ] }),
10038
- (description || children) && /* @__PURE__ */ jsxRuntime.jsxs(Content$2, { $size: size2, $alignContent: alignContent, children: [
10037
+ (description || children) && /* @__PURE__ */ jsxRuntime.jsxs(Content$3, { $size: size2, $alignContent: alignContent, children: [
10039
10038
  description && /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", align: convertCardAlignToTextAlign(alignContent ?? "start"), children: description }),
10040
10039
  children
10041
10040
  ] }),
@@ -10044,110 +10043,6 @@ var __publicField = (obj, key, value) => {
10044
10043
  ] });
10045
10044
  };
10046
10045
  const CardPrimary = withTopBadge(Card);
10047
- const Header$2 = styledComponents.styled.div.withConfig({
10048
- componentId: "sc-1qnbjoa-0"
10049
- })(["max-width:100%;gap:inherit;"]);
10050
- const Description = styledComponents.styled.div.withConfig({
10051
- componentId: "sc-1qnbjoa-1"
10052
- })(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
10053
- theme: theme2
10054
- }) => theme2.click.card.horizontal.space.gap);
10055
- const Wrapper$7 = styledComponents.styled.div.withConfig({
10056
- componentId: "sc-1qnbjoa-2"
10057
- })(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
10058
- theme: theme2,
10059
- $color,
10060
- $isSelected,
10061
- $disabled
10062
- }) => `
10063
- background: ${theme2.click.card.horizontal[$color].color.background.default};
10064
- color: ${theme2.click.card.horizontal[$color].color.title.default};
10065
- border-radius: ${theme2.click.card.horizontal.radii.all};
10066
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
10067
- padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
10068
- gap: ${theme2.click.card.horizontal.space.gap};
10069
- font: ${theme2.click.card.horizontal.typography.title.default};
10070
- ${Description} {
10071
- color: ${theme2.click.card.horizontal[$color].color.description.default};
10072
- font: ${theme2.click.card.horizontal.typography.description.default};
10073
- }
10074
- &:hover{
10075
- background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
10076
- color: ${theme2.click.card.horizontal[$color].color.title.hover};
10077
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
10078
- cursor: pointer;
10079
- font: ${theme2.click.card.horizontal.typography.title.hover};
10080
- ${Description} {
10081
- color: ${theme2.click.card.horizontal[$color].color.description.hover};
10082
- font: ${theme2.click.card.horizontal.typography.description.hover};
10083
- }
10084
- }
10085
-
10086
- &:active, &:focus, &:focus-within {
10087
- background-color: ${theme2.click.card.horizontal[$color].color.background.active};
10088
- color: ${theme2.click.card.horizontal[$color].color.title.active};
10089
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10090
- ${Description} {
10091
- color: ${theme2.click.card.horizontal[$color].color.description.active};
10092
- font: ${theme2.click.card.horizontal.typography.description.active};
10093
- }
10094
- }
10095
- ${$disabled ? `
10096
- pointer-events: none;
10097
- &,
10098
- &:hover,
10099
- &:active, &:focus, &:focus-within {
10100
- background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
10101
- color: ${theme2.click.card.horizontal[$color].color.title.disabled};
10102
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
10103
- cursor: not-allowed;
10104
- ${Description} {
10105
- color: ${theme2.click.card.horizontal[$color].color.description.disabled};
10106
- font: ${theme2.click.card.horizontal.typography.description.disabled};
10107
- }
10108
- },
10109
- &:active, &:focus, &:focus-within {
10110
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10111
- }
10112
- ` : ""}
10113
- `);
10114
- const CardIcon$1 = styledComponents.styled(SvgImage).withConfig({
10115
- componentId: "sc-1qnbjoa-3"
10116
- })(["", ""], ({
10117
- theme: theme2
10118
- }) => `
10119
- height: ${theme2.click.card.horizontal.icon.size.all};
10120
- width: ${theme2.click.card.horizontal.icon.size.all};
10121
- `);
10122
- const ContentWrapper = styledComponents.styled.div.withConfig({
10123
- componentId: "sc-1qnbjoa-4"
10124
- })(["display:flex;flex-direction:column;width:100%;"]);
10125
- const CardHorizontal = ({
10126
- title,
10127
- icon,
10128
- description,
10129
- disabled = false,
10130
- isSelected,
10131
- children,
10132
- color = "default",
10133
- badgeText,
10134
- badgeState,
10135
- badgeIcon,
10136
- badgeIconDir,
10137
- ...props
10138
- }) => {
10139
- return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
10140
- icon && /* @__PURE__ */ jsxRuntime.jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
10141
- /* @__PURE__ */ jsxRuntime.jsxs(ContentWrapper, { children: [
10142
- title && /* @__PURE__ */ jsxRuntime.jsxs(Header$2, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
10143
- /* @__PURE__ */ jsxRuntime.jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
10144
- badgeText && /* @__PURE__ */ jsxRuntime.jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
10145
- ] }),
10146
- description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: description }),
10147
- children && /* @__PURE__ */ jsxRuntime.jsx(Description, { children })
10148
- ] })
10149
- ] });
10150
- };
10151
10046
  const Background = styledComponents.styled.div.withConfig({
10152
10047
  componentId: "sc-6jamj6-0"
10153
10048
  })(["", ""], ({
@@ -10163,7 +10058,7 @@ var __publicField = (obj, key, value) => {
10163
10058
  background: ${theme2.click.card.promotion.color.stroke.focus};
10164
10059
  }
10165
10060
  `);
10166
- const Wrapper$6 = styledComponents.styled.div.withConfig({
10061
+ const Wrapper$7 = styledComponents.styled.div.withConfig({
10167
10062
  componentId: "sc-6jamj6-1"
10168
10063
  })(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
10169
10064
  theme: theme2
@@ -10204,12 +10099,117 @@ var __publicField = (obj, key, value) => {
10204
10099
  ...props
10205
10100
  }) => {
10206
10101
  const [isVisible, setIsVisible] = React.useState(true);
10207
- return isVisible ? /* @__PURE__ */ jsxRuntime.jsx(Background, { children: /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$6, { $dismissible: dismissible, ...props, children: [
10102
+ return isVisible ? /* @__PURE__ */ jsxRuntime.jsx(Background, { children: /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$7, { $dismissible: dismissible, ...props, children: [
10208
10103
  /* @__PURE__ */ jsxRuntime.jsx(CardIcon, { name: icon, "aria-hidden": true }),
10209
10104
  /* @__PURE__ */ jsxRuntime.jsx(Text, { children: label }),
10210
10105
  dismissible && /* @__PURE__ */ jsxRuntime.jsx(DismissWrapper, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
10211
10106
  ] }) }) : null;
10212
10107
  };
10108
+ const Header$2 = styledComponents.styled.div.withConfig({
10109
+ componentId: "sc-1drx130-0"
10110
+ })(["display:flex;justify-content:space-between;align-items:center;"]);
10111
+ const HeaderLeft = styledComponents.styled.div.withConfig({
10112
+ componentId: "sc-1drx130-1"
10113
+ })(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
10114
+ theme: theme2
10115
+ }) => theme2.click.card.secondary.space.gap, ({
10116
+ $disabled,
10117
+ theme: theme2
10118
+ }) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
10119
+ const Content$2 = styledComponents.styled.div.withConfig({
10120
+ componentId: "sc-1drx130-2"
10121
+ })(["display:flex;flex-direction:column;flex:1;"]);
10122
+ const CustomIcon$1 = styledComponents.styled.img.withConfig({
10123
+ componentId: "sc-1drx130-3"
10124
+ })(["height:", ";width:", ";"], ({
10125
+ theme: theme2
10126
+ }) => theme2.click.image.lg.size.height, ({
10127
+ theme: theme2
10128
+ }) => theme2.click.image.lg.size.width);
10129
+ const InfoLink = styledComponents.styled.a.withConfig({
10130
+ componentId: "sc-1drx130-4"
10131
+ })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
10132
+ theme: theme2
10133
+ }) => theme2.click.card.secondary.color.link.default, ({
10134
+ theme: theme2
10135
+ }) => theme2.click.card.secondary.space.link.gap);
10136
+ const LinkIconContainer = styledComponents.styled(SvgImage).withConfig({
10137
+ componentId: "sc-1drx130-5"
10138
+ })(["color:", ";height:", ";width:", ";"], ({
10139
+ theme: theme2
10140
+ }) => theme2.click.card.secondary.color.link.default, ({
10141
+ theme: theme2
10142
+ }) => theme2.click.image.md.size.height, ({
10143
+ theme: theme2
10144
+ }) => theme2.click.image.md.size.width);
10145
+ const LinkText = styledComponents.styled(Text).withConfig({
10146
+ componentId: "sc-1drx130-6"
10147
+ })([""]);
10148
+ const LinkIcon = styledComponents.styled(LinkIconContainer).withConfig({
10149
+ componentId: "sc-1drx130-7"
10150
+ })([""]);
10151
+ const Wrapper$6 = styledComponents.styled.div.withConfig({
10152
+ componentId: "sc-1drx130-8"
10153
+ })(["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;', "}"], ({
10154
+ theme: theme2
10155
+ }) => theme2.click.card.secondary.color.background.default, ({
10156
+ theme: theme2
10157
+ }) => theme2.click.card.secondary.radii.all, ({
10158
+ theme: theme2
10159
+ }) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
10160
+ theme: theme2
10161
+ }) => theme2.click.card.secondary.space.all, ({
10162
+ theme: theme2
10163
+ }) => theme2.click.card.secondary.space.gap, ({
10164
+ $hasShadow,
10165
+ theme: theme2
10166
+ }) => $hasShadow ? theme2.shadow[1] : "none", ({
10167
+ theme: theme2
10168
+ }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
10169
+ theme: theme2
10170
+ }) => theme2.click.card.secondary.color.link.hover, ({
10171
+ theme: theme2
10172
+ }) => `
10173
+ background-color: ${theme2.click.card.secondary.color.background.disabled};
10174
+ color: ${theme2.click.card.secondary.color.title.disabled};
10175
+ border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
10176
+ cursor: not-allowed;
10177
+
10178
+ ${LinkText},
10179
+ ${LinkIcon} {
10180
+ color: ${theme2.click.card.secondary.color.link.disabled};
10181
+ }
10182
+ `);
10183
+ const CardSecondary = ({
10184
+ title,
10185
+ icon,
10186
+ iconUrl,
10187
+ badgeState,
10188
+ badgeText = "",
10189
+ hasShadow = false,
10190
+ disabled = false,
10191
+ description,
10192
+ infoUrl,
10193
+ infoText,
10194
+ infoIcon = "chevron-right",
10195
+ infoIconSize = "md",
10196
+ ...props
10197
+ }) => {
10198
+ return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$6, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
10199
+ /* @__PURE__ */ jsxRuntime.jsxs(Header$2, { children: [
10200
+ /* @__PURE__ */ jsxRuntime.jsxs(HeaderLeft, { $disabled: disabled, children: [
10201
+ iconUrl ? /* @__PURE__ */ jsxRuntime.jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
10202
+ /* @__PURE__ */ jsxRuntime.jsx(Title$2, { type: "h3", children: title })
10203
+ ] }),
10204
+ badgeText && /* @__PURE__ */ jsxRuntime.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
10205
+ ] }),
10206
+ /* @__PURE__ */ jsxRuntime.jsx(Content$2, { children: /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", children: description }) }),
10207
+ (infoUrl || infoText) && /* @__PURE__ */ jsxRuntime.jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
10208
+ /* @__PURE__ */ jsxRuntime.jsx(LinkText, { children: infoText }),
10209
+ /* @__PURE__ */ jsxRuntime.jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
10210
+ ] })
10211
+ ] });
10212
+ };
10213
10213
  function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
10214
10214
  const ref = React.useRef({
10215
10215
  value,
@@ -14594,6 +14594,1088 @@ var __publicField = (obj, key, value) => {
14594
14594
  }, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
14595
14595
  ] });
14596
14596
  };
14597
+ const ActionsWrapper = styledComponents.styled.div.withConfig({
14598
+ componentId: "sc-6eozxy-0"
14599
+ })(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
14600
+ const DialogContent$1 = styledComponents.styled.div.withConfig({
14601
+ componentId: "sc-6eozxy-1"
14602
+ })(["overflow:hidden;display:flex;flex-direction:column;"]);
14603
+ const ConfirmationDialog = ({
14604
+ children,
14605
+ disabled,
14606
+ loading,
14607
+ message,
14608
+ onCancel,
14609
+ onConfirm,
14610
+ open: open2,
14611
+ primaryActionLabel = "Confirm",
14612
+ primaryActionType = "primary",
14613
+ secondaryActionLabel = "Cancel",
14614
+ showClose,
14615
+ title,
14616
+ ...props
14617
+ }) => {
14618
+ if (children && message) {
14619
+ throw new Error("You can't pass children and message props at the same time");
14620
+ }
14621
+ return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: open2, onOpenChange: (open22) => {
14622
+ !open22 && onCancel && onCancel();
14623
+ }, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent$1, { as: Dialog.Content, title, showClose, ...props, children: [
14624
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsxRuntime.jsx(Text, { children: message }) }),
14625
+ /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "xl" }),
14626
+ /* @__PURE__ */ jsxRuntime.jsxs(ActionsWrapper, { children: [
14627
+ /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
14628
+ /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
14629
+ if (onConfirm) {
14630
+ onConfirm();
14631
+ }
14632
+ }, "data-testid": "confirm-action-button" })
14633
+ ] })
14634
+ ] }) });
14635
+ };
14636
+ const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
14637
+ const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
14638
+ $6cc32821e9371a1c$export$4027731b685e72eb
14639
+ ]);
14640
+ const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
14641
+ const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
14642
+ const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
14643
+ const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
14644
+ const [open1, setOpen] = React.useState(false);
14645
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14646
+ const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
14647
+ const handleOpenChange = React.useCallback((open2) => {
14648
+ setOpen(open2);
14649
+ handleOpenChangeProp(open2);
14650
+ }, [
14651
+ handleOpenChangeProp
14652
+ ]);
14653
+ return /* @__PURE__ */ React.createElement($1b0217ee4a91d156$var$ContextMenuProvider, {
14654
+ scope: __scopeContextMenu,
14655
+ open: open1,
14656
+ onOpenChange: handleOpenChange,
14657
+ modal
14658
+ }, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
14659
+ dir,
14660
+ open: open1,
14661
+ onOpenChange: handleOpenChange,
14662
+ modal
14663
+ }), children));
14664
+ };
14665
+ const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
14666
+ const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14667
+ const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
14668
+ const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
14669
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14670
+ const pointRef = React.useRef({
14671
+ x: 0,
14672
+ y: 0
14673
+ });
14674
+ const virtualRef = React.useRef({
14675
+ getBoundingClientRect: () => DOMRect.fromRect({
14676
+ width: 0,
14677
+ height: 0,
14678
+ ...pointRef.current
14679
+ })
14680
+ });
14681
+ const longPressTimerRef = React.useRef(0);
14682
+ const clearLongPress = React.useCallback(
14683
+ () => window.clearTimeout(longPressTimerRef.current),
14684
+ []
14685
+ );
14686
+ const handleOpen = (event) => {
14687
+ pointRef.current = {
14688
+ x: event.clientX,
14689
+ y: event.clientY
14690
+ };
14691
+ context.onOpenChange(true);
14692
+ };
14693
+ React.useEffect(
14694
+ () => clearLongPress,
14695
+ [
14696
+ clearLongPress
14697
+ ]
14698
+ );
14699
+ React.useEffect(
14700
+ () => void (disabled && clearLongPress()),
14701
+ [
14702
+ disabled,
14703
+ clearLongPress
14704
+ ]
14705
+ );
14706
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
14707
+ virtualRef
14708
+ })), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
14709
+ "data-state": context.open ? "open" : "closed",
14710
+ "data-disabled": disabled ? "" : void 0
14711
+ }, triggerProps, {
14712
+ ref: forwardedRef,
14713
+ style: {
14714
+ WebkitTouchCallout: "none",
14715
+ ...props.style
14716
+ },
14717
+ onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
14718
+ clearLongPress();
14719
+ handleOpen(event);
14720
+ event.preventDefault();
14721
+ }),
14722
+ onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
14723
+ clearLongPress();
14724
+ longPressTimerRef.current = window.setTimeout(
14725
+ () => handleOpen(event),
14726
+ 700
14727
+ );
14728
+ })),
14729
+ onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
14730
+ onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
14731
+ onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
14732
+ })));
14733
+ });
14734
+ const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
14735
+ const { __scopeContextMenu, ...portalProps } = props;
14736
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14737
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
14738
+ };
14739
+ const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
14740
+ const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14741
+ const { __scopeContextMenu, ...contentProps } = props;
14742
+ const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
14743
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14744
+ const hasInteractedOutsideRef = React.useRef(false);
14745
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
14746
+ ref: forwardedRef,
14747
+ side: "right",
14748
+ sideOffset: 2,
14749
+ align: "start",
14750
+ onCloseAutoFocus: (event) => {
14751
+ var _props$onCloseAutoFoc;
14752
+ (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
14753
+ if (!event.defaultPrevented && hasInteractedOutsideRef.current)
14754
+ event.preventDefault();
14755
+ hasInteractedOutsideRef.current = false;
14756
+ },
14757
+ onInteractOutside: (event) => {
14758
+ var _props$onInteractOuts;
14759
+ (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
14760
+ if (!event.defaultPrevented && !context.modal)
14761
+ hasInteractedOutsideRef.current = true;
14762
+ },
14763
+ style: {
14764
+ ...props.style,
14765
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
14766
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
14767
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
14768
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
14769
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
14770
+ }
14771
+ }));
14772
+ });
14773
+ const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14774
+ const { __scopeContextMenu, ...groupProps } = props;
14775
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14776
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
14777
+ ref: forwardedRef
14778
+ }));
14779
+ });
14780
+ const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14781
+ const { __scopeContextMenu, ...itemProps } = props;
14782
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14783
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
14784
+ ref: forwardedRef
14785
+ }));
14786
+ });
14787
+ const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14788
+ const { __scopeContextMenu, ...arrowProps } = props;
14789
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14790
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
14791
+ ref: forwardedRef
14792
+ }));
14793
+ });
14794
+ const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
14795
+ const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
14796
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14797
+ const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
14798
+ prop: openProp,
14799
+ defaultProp: defaultOpen,
14800
+ onChange: onOpenChange
14801
+ });
14802
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
14803
+ open: open2,
14804
+ onOpenChange: setOpen
14805
+ }), children);
14806
+ };
14807
+ const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14808
+ const { __scopeContextMenu, ...triggerItemProps } = props;
14809
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14810
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
14811
+ ref: forwardedRef
14812
+ }));
14813
+ });
14814
+ const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
14815
+ const { __scopeContextMenu, ...subContentProps } = props;
14816
+ const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
14817
+ return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
14818
+ ref: forwardedRef,
14819
+ style: {
14820
+ ...props.style,
14821
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
14822
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
14823
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
14824
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
14825
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
14826
+ }
14827
+ }));
14828
+ });
14829
+ function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
14830
+ return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
14831
+ }
14832
+ const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
14833
+ const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
14834
+ const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
14835
+ const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
14836
+ const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
14837
+ const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
14838
+ const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
14839
+ const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
14840
+ const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
14841
+ const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
14842
+ const ContextMenu = (props) => /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
14843
+ const ContextMenuTrigger$1 = React.forwardRef(({
14844
+ disabled,
14845
+ ...props
14846
+ }, ref) => {
14847
+ return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props }) });
14848
+ });
14849
+ ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
14850
+ ContextMenu.Trigger = ContextMenuTrigger$1;
14851
+ const ContextMenuSubTrigger = ({
14852
+ icon,
14853
+ iconDir,
14854
+ children,
14855
+ ...props
14856
+ }) => {
14857
+ return /* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
14858
+ /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }),
14859
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "chevron-right" }) })
14860
+ ] });
14861
+ };
14862
+ ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
14863
+ ContextMenu.SubTrigger = ContextMenuSubTrigger;
14864
+ const RightMenuContent = styledComponents.styled(GenericMenuPanel).withConfig({
14865
+ componentId: "sc-8z6kye-0"
14866
+ })(["flex-direction:column;z-index:1;", ";"], ({
14867
+ $showArrow
14868
+ }) => $showArrow ? `
14869
+ &[data-side="bottom"] {
14870
+ margin-top: -1px;
14871
+ }
14872
+ &[data-side="top"] {
14873
+ margin-bottom: -1px;
14874
+ }
14875
+ &[data-side="left"] {
14876
+ margin-right: -1px;
14877
+ .popover-arrow {
14878
+ margin-right: 1rem;
14879
+ }
14880
+ }
14881
+ }
14882
+ &[data-side="right"] {
14883
+ margin-left: -1px;
14884
+ .popover-arrow {
14885
+ margin-left: 1rem;
14886
+ }
14887
+ }
14888
+ ` : "");
14889
+ const ContextMenuContent = ({
14890
+ sub,
14891
+ children,
14892
+ showArrow,
14893
+ ...props
14894
+ }) => {
14895
+ const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
14896
+ return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntime.jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
14897
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, { className: "popover-arrow" }) }),
14898
+ children
14899
+ ] }) });
14900
+ };
14901
+ ContextMenuContent.displayName = "ContextMenuContent";
14902
+ ContextMenu.Content = ContextMenuContent;
14903
+ const RightMenuGroup = styledComponents.styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
14904
+ componentId: "sc-8z6kye-1"
14905
+ })(["width:100%;border-bottom:1px solid ", ";"], ({
14906
+ theme: theme2
14907
+ }) => theme2.click.genericMenu.item.color.stroke.default);
14908
+ const ContextMenuGroup = (props) => {
14909
+ return /* @__PURE__ */ jsxRuntime.jsx(RightMenuGroup, { ...props });
14910
+ };
14911
+ ContextMenuGroup.displayName = "ContextMenuGroup";
14912
+ ContextMenu.Group = ContextMenuGroup;
14913
+ const RightMenuSub = styledComponents.styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
14914
+ componentId: "sc-8z6kye-2"
14915
+ })(["border-bottom:1px solid ", ";"], ({
14916
+ theme: theme2
14917
+ }) => theme2.click.genericMenu.item.color.stroke.default);
14918
+ const ContextMenuSub = ({
14919
+ ...props
14920
+ }) => {
14921
+ return /* @__PURE__ */ jsxRuntime.jsx(RightMenuSub, { ...props });
14922
+ };
14923
+ ContextMenuSub.displayName = "ContextMenuSub";
14924
+ ContextMenu.Sub = ContextMenuSub;
14925
+ const ContextMenuItem = ({
14926
+ icon,
14927
+ iconDir,
14928
+ children,
14929
+ ...props
14930
+ }) => {
14931
+ return /* @__PURE__ */ jsxRuntime.jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }) });
14932
+ };
14933
+ ContextMenuItem.displayName = "ContextMenuItem";
14934
+ ContextMenu.Item = ContextMenuItem;
14935
+ var advancedFormat$1 = { exports: {} };
14936
+ (function(module2, exports3) {
14937
+ !function(e, t) {
14938
+ module2.exports = t();
14939
+ }(commonjsGlobal, function() {
14940
+ return function(e, t) {
14941
+ var r = t.prototype, n = r.format;
14942
+ r.format = function(e2) {
14943
+ var t2 = this, r2 = this.$locale();
14944
+ if (!this.isValid())
14945
+ return n.bind(this)(e2);
14946
+ 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) {
14947
+ switch (e3) {
14948
+ case "Q":
14949
+ return Math.ceil((t2.$M + 1) / 3);
14950
+ case "Do":
14951
+ return r2.ordinal(t2.$D);
14952
+ case "gggg":
14953
+ return t2.weekYear();
14954
+ case "GGGG":
14955
+ return t2.isoWeekYear();
14956
+ case "wo":
14957
+ return r2.ordinal(t2.week(), "W");
14958
+ case "w":
14959
+ case "ww":
14960
+ return s2.s(t2.week(), "w" === e3 ? 1 : 2, "0");
14961
+ case "W":
14962
+ case "WW":
14963
+ return s2.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
14964
+ case "k":
14965
+ case "kk":
14966
+ return s2.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
14967
+ case "X":
14968
+ return Math.floor(t2.$d.getTime() / 1e3);
14969
+ case "x":
14970
+ return t2.$d.getTime();
14971
+ case "z":
14972
+ return "[" + t2.offsetName() + "]";
14973
+ case "zzz":
14974
+ return "[" + t2.offsetName("long") + "]";
14975
+ default:
14976
+ return e3;
14977
+ }
14978
+ });
14979
+ return n.bind(this)(a);
14980
+ };
14981
+ };
14982
+ });
14983
+ })(advancedFormat$1);
14984
+ var advancedFormatExports = advancedFormat$1.exports;
14985
+ const advancedFormat = /* @__PURE__ */ getDefaultExportFromCjs(advancedFormatExports);
14986
+ var duration$1 = { exports: {} };
14987
+ (function(module2, exports3) {
14988
+ !function(t, s2) {
14989
+ module2.exports = s2();
14990
+ }(commonjsGlobal, function() {
14991
+ 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) {
14992
+ return t2 instanceof g;
14993
+ }, f = function(t2, s3, n2) {
14994
+ return new g(t2, n2, s3.$l);
14995
+ }, m = function(t2) {
14996
+ return s2.p(t2) + "s";
14997
+ }, l2 = function(t2) {
14998
+ return t2 < 0;
14999
+ }, $ = function(t2) {
15000
+ return l2(t2) ? Math.ceil(t2) : Math.floor(t2);
15001
+ }, y = function(t2) {
15002
+ return Math.abs(t2);
15003
+ }, v = function(t2, s3) {
15004
+ return t2 ? l2(t2) ? { negative: true, format: "" + y(t2) + s3 } : { negative: false, format: "" + t2 + s3 } : { negative: false, format: "" };
15005
+ }, g = function() {
15006
+ function l3(t2, s3, n2) {
15007
+ var i2 = this;
15008
+ if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s3)
15009
+ return f(t2 * h[m(s3)], this);
15010
+ if ("number" == typeof t2)
15011
+ return this.$ms = t2, this.parseFromMilliseconds(), this;
15012
+ if ("object" == typeof t2)
15013
+ return Object.keys(t2).forEach(function(s4) {
15014
+ i2.$d[m(s4)] = t2[s4];
15015
+ }), this.calMilliseconds(), this;
15016
+ if ("string" == typeof t2) {
15017
+ var e2 = t2.match(a);
15018
+ if (e2) {
15019
+ var r2 = e2.slice(2).map(function(t3) {
15020
+ return null != t3 ? Number(t3) : 0;
15021
+ });
15022
+ 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;
15023
+ }
15024
+ }
15025
+ return this;
15026
+ }
15027
+ var y2 = l3.prototype;
15028
+ return y2.calMilliseconds = function() {
15029
+ var t2 = this;
15030
+ this.$ms = Object.keys(this.$d).reduce(function(s3, n2) {
15031
+ return s3 + (t2.$d[n2] || 0) * h[n2];
15032
+ }, 0);
15033
+ }, y2.parseFromMilliseconds = function() {
15034
+ var t2 = this.$ms;
15035
+ 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;
15036
+ }, y2.toISOString = function() {
15037
+ var t2 = v(this.$d.years, "Y"), s3 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
15038
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
15039
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
15040
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
15041
+ 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;
15042
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
15043
+ }, y2.toJSON = function() {
15044
+ return this.toISOString();
15045
+ }, y2.format = function(t2) {
15046
+ 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") };
15047
+ return n2.replace(o, function(t3, s3) {
15048
+ return s3 || String(i2[t3]);
15049
+ });
15050
+ }, y2.as = function(t2) {
15051
+ return this.$ms / h[m(t2)];
15052
+ }, y2.get = function(t2) {
15053
+ var s3 = this.$ms, n2 = m(t2);
15054
+ return "milliseconds" === n2 ? s3 %= 1e3 : s3 = "weeks" === n2 ? $(s3 / h[n2]) : this.$d[n2], s3 || 0;
15055
+ }, y2.add = function(t2, s3, n2) {
15056
+ var i2;
15057
+ return i2 = s3 ? t2 * h[m(s3)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
15058
+ }, y2.subtract = function(t2, s3) {
15059
+ return this.add(t2, s3, true);
15060
+ }, y2.locale = function(t2) {
15061
+ var s3 = this.clone();
15062
+ return s3.$l = t2, s3;
15063
+ }, y2.clone = function() {
15064
+ return f(this.$ms, this);
15065
+ }, y2.humanize = function(s3) {
15066
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s3);
15067
+ }, y2.valueOf = function() {
15068
+ return this.asMilliseconds();
15069
+ }, y2.milliseconds = function() {
15070
+ return this.get("milliseconds");
15071
+ }, y2.asMilliseconds = function() {
15072
+ return this.as("milliseconds");
15073
+ }, y2.seconds = function() {
15074
+ return this.get("seconds");
15075
+ }, y2.asSeconds = function() {
15076
+ return this.as("seconds");
15077
+ }, y2.minutes = function() {
15078
+ return this.get("minutes");
15079
+ }, y2.asMinutes = function() {
15080
+ return this.as("minutes");
15081
+ }, y2.hours = function() {
15082
+ return this.get("hours");
15083
+ }, y2.asHours = function() {
15084
+ return this.as("hours");
15085
+ }, y2.days = function() {
15086
+ return this.get("days");
15087
+ }, y2.asDays = function() {
15088
+ return this.as("days");
15089
+ }, y2.weeks = function() {
15090
+ return this.get("weeks");
15091
+ }, y2.asWeeks = function() {
15092
+ return this.as("weeks");
15093
+ }, y2.months = function() {
15094
+ return this.get("months");
15095
+ }, y2.asMonths = function() {
15096
+ return this.as("months");
15097
+ }, y2.years = function() {
15098
+ return this.get("years");
15099
+ }, y2.asYears = function() {
15100
+ return this.as("years");
15101
+ }, l3;
15102
+ }(), p = function(t2, s3, n2) {
15103
+ 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");
15104
+ };
15105
+ return function(n2, i2, e2) {
15106
+ t = e2, s2 = e2().$utils(), e2.duration = function(t2, s3) {
15107
+ var n3 = e2.locale();
15108
+ return f(t2, { $l: n3 }, s3);
15109
+ }, e2.isDuration = c;
15110
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
15111
+ i2.prototype.add = function(t2, s3) {
15112
+ return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s3);
15113
+ }, i2.prototype.subtract = function(t2, s3) {
15114
+ return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s3);
15115
+ };
15116
+ };
15117
+ });
15118
+ })(duration$1);
15119
+ var durationExports = duration$1.exports;
15120
+ const duration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
15121
+ var localizedFormat$1 = { exports: {} };
15122
+ (function(module2, exports3) {
15123
+ !function(e, t) {
15124
+ module2.exports = t();
15125
+ }(commonjsGlobal, function() {
15126
+ 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" };
15127
+ return function(t, o, n) {
15128
+ var r = o.prototype, i = r.format;
15129
+ n.en.formats = e, r.format = function(t2) {
15130
+ void 0 === t2 && (t2 = "YYYY-MM-DDTHH:mm:ssZ");
15131
+ var o2 = this.$locale().formats, n2 = function(t3, o3) {
15132
+ return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r2) {
15133
+ var i2 = r2 && r2.toUpperCase();
15134
+ return n3 || o3[r2] || e[r2] || o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, o4) {
15135
+ return t5 || o4.slice(1);
15136
+ });
15137
+ });
15138
+ }(t2, void 0 === o2 ? {} : o2);
15139
+ return i.call(this, n2);
15140
+ };
15141
+ };
15142
+ });
15143
+ })(localizedFormat$1);
15144
+ var localizedFormatExports = localizedFormat$1.exports;
15145
+ const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
15146
+ var relativeTime$1 = { exports: {} };
15147
+ (function(module2, exports3) {
15148
+ !function(r, e) {
15149
+ module2.exports = e();
15150
+ }(commonjsGlobal, function() {
15151
+ return function(r, e, t) {
15152
+ r = r || {};
15153
+ 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" };
15154
+ function i(r2, e2, t2, o2) {
15155
+ return n.fromToBase(r2, e2, t2, o2);
15156
+ }
15157
+ t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
15158
+ 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) {
15159
+ var y = h[c];
15160
+ y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
15161
+ var p = (r.rounding || Math.round)(Math.abs(f));
15162
+ if (s2 = f > 0, p <= y.r || !y.r) {
15163
+ p <= 1 && c > 0 && (y = h[c - 1]);
15164
+ var v = l2[y.l];
15165
+ u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s2);
15166
+ break;
15167
+ }
15168
+ }
15169
+ if (n2)
15170
+ return a;
15171
+ var M = s2 ? l2.future : l2.past;
15172
+ return "function" == typeof M ? M(a) : M.replace("%s", a);
15173
+ }, n.to = function(r2, e2) {
15174
+ return i(r2, e2, this, true);
15175
+ }, n.from = function(r2, e2) {
15176
+ return i(r2, e2, this);
15177
+ };
15178
+ var d = function(r2) {
15179
+ return r2.$u ? t.utc() : t();
15180
+ };
15181
+ n.toNow = function(r2) {
15182
+ return this.to(d(this), r2);
15183
+ }, n.fromNow = function(r2) {
15184
+ return this.from(d(this), r2);
15185
+ };
15186
+ };
15187
+ });
15188
+ })(relativeTime$1);
15189
+ var relativeTimeExports = relativeTime$1.exports;
15190
+ const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
15191
+ var timezone$1 = { exports: {} };
15192
+ (function(module2, exports3) {
15193
+ !function(t, e) {
15194
+ module2.exports = e();
15195
+ }(commonjsGlobal, function() {
15196
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
15197
+ return function(n, i, o) {
15198
+ var r, a = function(t2, n2, i2) {
15199
+ void 0 === i2 && (i2 = {});
15200
+ var o2 = new Date(t2), r2 = function(t3, n3) {
15201
+ void 0 === n3 && (n3 = {});
15202
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
15203
+ 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;
15204
+ }(n2, i2);
15205
+ return r2.formatToParts(o2);
15206
+ }, u = function(e2, n2) {
15207
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
15208
+ var f2 = i2[u2], s3 = f2.type, m = f2.value, c = t[s3];
15209
+ c >= 0 && (r2[c] = parseInt(m, 10));
15210
+ }
15211
+ var d = r2[3], l2 = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l2 + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
15212
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
15213
+ }, f = i.prototype;
15214
+ f.tz = function(t2, e2) {
15215
+ void 0 === t2 && (t2 = r);
15216
+ 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;
15217
+ if (!Number(s3))
15218
+ n2 = this.utcOffset(0, e2);
15219
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s3, true), e2) {
15220
+ var m = n2.utcOffset();
15221
+ n2 = n2.add(i2 - m, "minute");
15222
+ }
15223
+ return n2.$x.$timezone = t2, n2;
15224
+ }, f.offsetName = function(t2) {
15225
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
15226
+ return "timezonename" === t3.type.toLowerCase();
15227
+ });
15228
+ return n2 && n2.value;
15229
+ };
15230
+ var s2 = f.startOf;
15231
+ f.startOf = function(t2, e2) {
15232
+ if (!this.$x || !this.$x.$timezone)
15233
+ return s2.call(this, t2, e2);
15234
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
15235
+ return s2.call(n2, t2, e2).tz(this.$x.$timezone, true);
15236
+ }, o.tz = function(t2, e2, n2) {
15237
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
15238
+ if ("string" != typeof t2)
15239
+ return o(t2).tz(a2);
15240
+ var s3 = function(t3, e3, n3) {
15241
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
15242
+ if (e3 === o2)
15243
+ return [i3, e3];
15244
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
15245
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
15246
+ }(o.utc(t2, i2).valueOf(), f2, a2), m = s3[0], c = s3[1], d = o(m).utcOffset(c);
15247
+ return d.$x.$timezone = a2, d;
15248
+ }, o.tz.guess = function() {
15249
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
15250
+ }, o.tz.setDefault = function(t2) {
15251
+ r = t2;
15252
+ };
15253
+ };
15254
+ });
15255
+ })(timezone$1);
15256
+ var timezoneExports = timezone$1.exports;
15257
+ const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
15258
+ var updateLocale$1 = { exports: {} };
15259
+ (function(module2, exports3) {
15260
+ !function(e, n) {
15261
+ module2.exports = n();
15262
+ }(commonjsGlobal, function() {
15263
+ return function(e, n, t) {
15264
+ t.updateLocale = function(e2, n2) {
15265
+ var o = t.Ls[e2];
15266
+ if (o)
15267
+ return (n2 ? Object.keys(n2) : []).forEach(function(e3) {
15268
+ o[e3] = n2[e3];
15269
+ }), o;
15270
+ };
15271
+ };
15272
+ });
15273
+ })(updateLocale$1);
15274
+ var updateLocaleExports = updateLocale$1.exports;
15275
+ const updateLocale = /* @__PURE__ */ getDefaultExportFromCjs(updateLocaleExports);
15276
+ var utc$1 = { exports: {} };
15277
+ (function(module2, exports3) {
15278
+ !function(t, i) {
15279
+ module2.exports = i();
15280
+ }(commonjsGlobal, function() {
15281
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
15282
+ return function(s2, f, n) {
15283
+ var u = f.prototype;
15284
+ n.utc = function(t2) {
15285
+ var i2 = { date: t2, utc: true, args: arguments };
15286
+ return new f(i2);
15287
+ }, u.utc = function(i2) {
15288
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
15289
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
15290
+ }, u.local = function() {
15291
+ return n(this.toDate(), { locale: this.$L, utc: false });
15292
+ };
15293
+ var o = u.parse;
15294
+ u.parse = function(t2) {
15295
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
15296
+ };
15297
+ var r = u.init;
15298
+ u.init = function() {
15299
+ if (this.$u) {
15300
+ var t2 = this.$d;
15301
+ 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();
15302
+ } else
15303
+ r.call(this);
15304
+ };
15305
+ var a = u.utcOffset;
15306
+ u.utcOffset = function(s3, f2) {
15307
+ var n2 = this.$utils().u;
15308
+ if (n2(s3))
15309
+ return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
15310
+ if ("string" == typeof s3 && (s3 = function(t2) {
15311
+ void 0 === t2 && (t2 = "");
15312
+ var s4 = t2.match(i);
15313
+ if (!s4)
15314
+ return null;
15315
+ var f3 = ("" + s4[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
15316
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
15317
+ }(s3), null === s3))
15318
+ return this;
15319
+ var u2 = Math.abs(s3) <= 16 ? 60 * s3 : s3, o2 = this;
15320
+ if (f2)
15321
+ return o2.$offset = u2, o2.$u = 0 === s3, o2;
15322
+ if (0 !== s3) {
15323
+ var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
15324
+ (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
15325
+ } else
15326
+ o2 = this.utc();
15327
+ return o2;
15328
+ };
15329
+ var h = u.format;
15330
+ u.format = function(t2) {
15331
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
15332
+ return h.call(this, i2);
15333
+ }, u.valueOf = function() {
15334
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
15335
+ return this.$d.valueOf() - 6e4 * t2;
15336
+ }, u.isUTC = function() {
15337
+ return !!this.$u;
15338
+ }, u.toISOString = function() {
15339
+ return this.toDate().toISOString();
15340
+ }, u.toString = function() {
15341
+ return this.toDate().toUTCString();
15342
+ };
15343
+ var l2 = u.toDate;
15344
+ u.toDate = function(t2) {
15345
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l2.call(this);
15346
+ };
15347
+ var c = u.diff;
15348
+ u.diff = function(t2, i2, e2) {
15349
+ if (t2 && this.$u === t2.$u)
15350
+ return c.call(this, t2, i2, e2);
15351
+ var s3 = this.local(), f2 = n(t2).local();
15352
+ return c.call(s3, f2, i2, e2);
15353
+ };
15354
+ };
15355
+ });
15356
+ })(utc$1);
15357
+ var utcExports = utc$1.exports;
15358
+ const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
15359
+ const Popover = ({
15360
+ children,
15361
+ ...props
15362
+ }) => {
15363
+ return /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
15364
+ };
15365
+ const Trigger$4 = styledComponents.styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
15366
+ componentId: "sc-1dii14g-0"
15367
+ })(["background:inherit;border:none;color:inherit;cursor:pointer;font:inherit;width:fit-content;"]);
15368
+ const PopoverTrigger = ({
15369
+ anchor,
15370
+ children,
15371
+ ...props
15372
+ }) => {
15373
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15374
+ /* @__PURE__ */ jsxRuntime.jsx(Trigger$4, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }),
15375
+ anchor && /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
15376
+ ] });
15377
+ };
15378
+ PopoverTrigger.displayName = "PopoverTrigger";
15379
+ Popover.Trigger = PopoverTrigger;
15380
+ const MenuPanel = styledComponents.styled(GenericMenuPanel).withConfig({
15381
+ componentId: "sc-1dii14g-1"
15382
+ })(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
15383
+ theme: theme2
15384
+ }) => theme2.click.popover.space.y, ({
15385
+ theme: theme2
15386
+ }) => theme2.click.popover.space.x, ({
15387
+ theme: theme2
15388
+ }) => theme2.click.popover.color.panel.background.default, ({
15389
+ theme: theme2
15390
+ }) => theme2.click.popover.color.panel.stroke.default, ({
15391
+ theme: theme2
15392
+ }) => theme2.click.popover.radii.all, ({
15393
+ theme: theme2
15394
+ }) => theme2.click.popover.shadow.default, ({
15395
+ $showClose
15396
+ }) => $showClose ? "padding-top: 1rem;" : "");
15397
+ const CloseButton$1 = styledComponents.styled(EmptyButton$1).withConfig({
15398
+ componentId: "sc-1dii14g-2"
15399
+ })(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
15400
+ theme: theme2
15401
+ }) => theme2.click.popover.space.y, ({
15402
+ theme: theme2
15403
+ }) => theme2.click.popover.space.x, ({
15404
+ theme: theme2
15405
+ }) => theme2.click.popover.icon.size.width, ({
15406
+ theme: theme2
15407
+ }) => theme2.click.popover.icon.size.height);
15408
+ const PopoverContent = ({
15409
+ children,
15410
+ showArrow,
15411
+ showClose,
15412
+ forceMount,
15413
+ container,
15414
+ ...props
15415
+ }) => {
15416
+ return /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxRuntime.jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
15417
+ showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton$1, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross" }) }),
15418
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, {}) }),
15419
+ children
15420
+ ] }) });
15421
+ };
15422
+ PopoverContent.displayName = "PopoverContent";
15423
+ Popover.Content = PopoverContent;
15424
+ const linkStyles = styledComponents.css(["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:", ";}"], ({
15425
+ $size,
15426
+ $weight = "normal",
15427
+ theme: theme2
15428
+ }) => theme2.typography.styles.product.text[$weight][$size], ({
15429
+ theme: theme2
15430
+ }) => theme2.click.global.color.text.link.default, ({
15431
+ $size,
15432
+ theme: theme2
15433
+ }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
15434
+ $size,
15435
+ theme: theme2
15436
+ }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
15437
+ theme: theme2
15438
+ }) => theme2.click.global.color.text.link.hover, ({
15439
+ theme: theme2
15440
+ }) => theme2.transition.default, ({
15441
+ theme: theme2
15442
+ }) => theme2.click.global.color.text.link.default);
15443
+ const GridContainer$1 = ({
15444
+ alignItems = "stretch",
15445
+ alignContent = "stretch",
15446
+ children,
15447
+ columnGap,
15448
+ gap,
15449
+ gridAutoColumns,
15450
+ gridAutoFlow,
15451
+ gridAutoRows,
15452
+ gridTemplateAreas,
15453
+ gridTemplateColumns,
15454
+ gridTemplateRows,
15455
+ gridTemplate,
15456
+ inline = false,
15457
+ isResponsive = true,
15458
+ justifyContent = "stretch",
15459
+ justifyItems = "stretch",
15460
+ rowGap,
15461
+ height,
15462
+ maxHeight,
15463
+ minHeight,
15464
+ fillWidth = true,
15465
+ maxWidth,
15466
+ minWidth,
15467
+ overflow,
15468
+ ...props
15469
+ }) => {
15470
+ return /* @__PURE__ */ jsxRuntime.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 });
15471
+ };
15472
+ const Wrapper$4 = styledComponents.styled.div.withConfig({
15473
+ componentId: "sc-r57kdn-0"
15474
+ })(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
15475
+ $alignItems = "stretch"
15476
+ }) => $alignItems, ({
15477
+ $alignContent = "stretch"
15478
+ }) => $alignContent, ({
15479
+ $inline
15480
+ }) => $inline === true ? "inline-grid" : "grid", ({
15481
+ $gridAutoColumns
15482
+ }) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
15483
+ $gridAutoFlow
15484
+ }) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
15485
+ $gridAutoRows
15486
+ }) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
15487
+ $gridTemplateAreas
15488
+ }) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
15489
+ $gridTemplateColumns
15490
+ }) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
15491
+ $gridTemplateRows
15492
+ }) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
15493
+ $gridTemplate
15494
+ }) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
15495
+ $justifyContent = "stretch"
15496
+ }) => $justifyContent, ({
15497
+ $justifyItems = "stretch"
15498
+ }) => $justifyItems, ({
15499
+ theme: theme2,
15500
+ $gap,
15501
+ $columnGap,
15502
+ $rowGap
15503
+ }) => `
15504
+ gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
15505
+ ${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
15506
+ ${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
15507
+ `, ({
15508
+ $fillWidth,
15509
+ $maxWidth,
15510
+ $minWidth
15511
+ }) => `
15512
+ width: ${$fillWidth ? "100%" : "auto"};
15513
+ ${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
15514
+ ${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
15515
+ `, ({
15516
+ $height,
15517
+ $maxHeight,
15518
+ $minHeight
15519
+ }) => `
15520
+ ${typeof $height === "string" && `height: ${$height}`};
15521
+ ${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
15522
+ ${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
15523
+ `, ({
15524
+ $overflow
15525
+ }) => `
15526
+ ${typeof $overflow === "string" && `overflow: ${$overflow}`};
15527
+ `, ({
15528
+ theme: theme2
15529
+ }) => theme2.breakpoint.sizes.md, ({
15530
+ $isResponsive = true
15531
+ }) => $isResponsive === true ? "1fr" : ({
15532
+ $gridTemplateColumns
15533
+ }) => $gridTemplateColumns || "auto");
15534
+ dayjs.extend(advancedFormat);
15535
+ dayjs.extend(duration);
15536
+ dayjs.extend(localizedFormat);
15537
+ dayjs.extend(updateLocale);
15538
+ dayjs.extend(utc);
15539
+ const thresholds = [{
15540
+ l: "s",
15541
+ r: 1,
15542
+ d: "second"
15543
+ }, {
15544
+ l: "ss",
15545
+ r: 56,
15546
+ d: "second"
15547
+ }, {
15548
+ l: "m",
15549
+ r: 90,
15550
+ d: "second"
15551
+ }, {
15552
+ l: "mm",
15553
+ r: 55,
15554
+ d: "minute"
15555
+ }, {
15556
+ l: "h",
15557
+ r: 90,
15558
+ d: "minute"
15559
+ }, {
15560
+ l: "hh",
15561
+ r: 22,
15562
+ d: "hour"
15563
+ }, {
15564
+ l: "d",
15565
+ r: 40,
15566
+ d: "hour"
15567
+ }, {
15568
+ l: "dd",
15569
+ r: 31,
15570
+ d: "day"
15571
+ }, {
15572
+ l: "M",
15573
+ r: 45,
15574
+ d: "day"
15575
+ }, {
15576
+ l: "MM",
15577
+ r: 11,
15578
+ d: "month"
15579
+ }, {
15580
+ l: "y",
15581
+ r: 17,
15582
+ d: "month"
15583
+ }, {
15584
+ l: "yy",
15585
+ r: 2,
15586
+ d: "year"
15587
+ }];
15588
+ dayjs.extend(relativeTime, {
15589
+ thresholds
15590
+ });
15591
+ dayjs.updateLocale("en", {
15592
+ relativeTime: {
15593
+ future: "In %s",
15594
+ past: "%s ago",
15595
+ s: "a few seconds",
15596
+ ss: "%d seconds",
15597
+ m: "1 minute",
15598
+ mm: "%d minutes",
15599
+ h: "1 hour",
15600
+ hh: "%d hours",
15601
+ d: "1 day",
15602
+ dd: "%d days",
15603
+ w: "1 week",
15604
+ ww: "%d weeks",
15605
+ M: "1 month",
15606
+ MM: "%d months",
15607
+ y: "1 year",
15608
+ yy: "%d years"
15609
+ }
15610
+ });
15611
+ const UnderlinedTrigger = styledComponents.styled(Popover.Trigger).withConfig({
15612
+ componentId: "sc-17qquw8-0"
15613
+ })(["", ""], linkStyles);
15614
+ const formatDateDetails = (date, timezone2) => {
15615
+ const isCurrentYear = dayjs().year() === date.year();
15616
+ const formatForCurrentYear = "MMM D, h:mm a";
15617
+ const formatForPastYear = "MMM D, YYYY, h:mm a";
15618
+ if (isCurrentYear) {
15619
+ if (timezone2) {
15620
+ const dateWithTimezone = date.tz(timezone2);
15621
+ return dateWithTimezone.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
15622
+ }
15623
+ return date.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
15624
+ }
15625
+ if (timezone2) {
15626
+ const dateWithTimezone = date.tz(timezone2);
15627
+ return dateWithTimezone.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
15628
+ }
15629
+ return date.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
15630
+ };
15631
+ const formatTimezone = (date, timezone2) => {
15632
+ var _a;
15633
+ return ((_a = new Intl.DateTimeFormat(void 0, {
15634
+ timeZone: timezone2,
15635
+ timeZoneName: "short"
15636
+ }).formatToParts(date.toDate()).find((part) => part.type === "timeZoneName")) == null ? void 0 : _a.value) ?? date.format("z");
15637
+ };
15638
+ const DateDetails = ({
15639
+ date,
15640
+ side = "top",
15641
+ systemTimeZone = "America/New_York"
15642
+ }) => {
15643
+ const dayjsDate = dayjs(date);
15644
+ let systemTime;
15645
+ if (systemTimeZone) {
15646
+ dayjs.extend(timezone);
15647
+ try {
15648
+ systemTime = dayjsDate.tz(systemTimeZone);
15649
+ } catch {
15650
+ systemTime = dayjsDate.tz("America/New_York");
15651
+ }
15652
+ }
15653
+ return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { children: [
15654
+ /* @__PURE__ */ jsxRuntime.jsx(UnderlinedTrigger, { $size: "sm", $weight: "medium", children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", children: dayjs.utc(date).fromNow() }) }),
15655
+ /* @__PURE__ */ jsxRuntime.jsx(Popover.Content, { side, showArrow: true, children: /* @__PURE__ */ jsxRuntime.jsxs(GridContainer$1, { columnGap: "xl", gridTemplateColumns: "repeat(2, auto)", gap: "sm", children: [
15656
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", size: "sm", children: "Local" }),
15657
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: "sm", children: [
15658
+ formatDateDetails(dayjsDate),
15659
+ " (",
15660
+ formatTimezone(dayjsDate, dayjs.tz.guess()),
15661
+ ")"
15662
+ ] }) }),
15663
+ systemTime && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15664
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", size: "sm", children: "System" }),
15665
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: "sm", children: [
15666
+ formatDateDetails(systemTime, systemTimeZone),
15667
+ " (",
15668
+ formatTimezone(systemTime, systemTimeZone),
15669
+ ")"
15670
+ ] }) })
15671
+ ] }),
15672
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", size: "sm", children: "UTC" }),
15673
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", children: formatDateDetails(dayjsDate.utc(), "UTC") }) }),
15674
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", size: "sm", children: "Unix" }),
15675
+ /* @__PURE__ */ jsxRuntime.jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", children: Math.round(date.getTime() / 1e3) }) })
15676
+ ] }) })
15677
+ ] });
15678
+ };
14597
15679
  const constructFromSymbol = Symbol.for("constructDateFrom");
14598
15680
  function constructFrom(date, value) {
14599
15681
  if (typeof date === "function")
@@ -14997,7 +16079,7 @@ var __publicField = (obj, key, value) => {
14997
16079
  [calendar, getBody, getHeaders, setNext, setPrev, viewType]
14998
16080
  );
14999
16081
  }
15000
- const Wrapper$4 = styledComponents.styled.div.withConfig({
16082
+ const Wrapper$3 = styledComponents.styled.div.withConfig({
15001
16083
  componentId: "sc-1pvd2nj-0"
15002
16084
  })(["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;}", ""], ({
15003
16085
  theme: theme2,
@@ -15109,7 +16191,7 @@ var __publicField = (obj, key, value) => {
15109
16191
  }) => {
15110
16192
  return /* @__PURE__ */ jsxRuntime.jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
15111
16193
  /* @__PURE__ */ jsxRuntime.jsxs(FormElementContainer, { children: [
15112
- /* @__PURE__ */ jsxRuntime.jsx(Wrapper$4, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
16194
+ /* @__PURE__ */ jsxRuntime.jsx(Wrapper$3, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
15113
16195
  !!error2 && error2 !== true && /* @__PURE__ */ jsxRuntime.jsx(Error$1, { children: error2 })
15114
16196
  ] }),
15115
16197
  label && /* @__PURE__ */ jsxRuntime.jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
@@ -15633,14 +16715,14 @@ var __publicField = (obj, key, value) => {
15633
16715
  }) => {
15634
16716
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children });
15635
16717
  };
15636
- const Trigger$4 = styledComponents.styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
16718
+ const Trigger$3 = styledComponents.styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
15637
16719
  componentId: "sc-1wr6otn-0"
15638
16720
  })(["width:fit-content;background:transparent;border:none;cursor:pointer;"]);
15639
16721
  const DialogTrigger = ({
15640
16722
  children,
15641
16723
  ...props
15642
16724
  }) => {
15643
- return /* @__PURE__ */ jsxRuntime.jsx(Trigger$4, { ...props, children });
16725
+ return /* @__PURE__ */ jsxRuntime.jsx(Trigger$3, { ...props, children });
15644
16726
  };
15645
16727
  DialogTrigger.displayName = "DialogTrigger";
15646
16728
  Dialog.Trigger = DialogTrigger;
@@ -15699,10 +16781,10 @@ var __publicField = (obj, key, value) => {
15699
16781
  })(["font:", ";padding:0;margin:0;"], ({
15700
16782
  theme: theme2
15701
16783
  }) => theme2.click.dialog.typography.title.default);
15702
- const CloseButton$1 = ({
16784
+ const CloseButton = ({
15703
16785
  onClose
15704
16786
  }) => /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(CrossButton, { onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross", size: "lg" }) }) });
15705
- const DialogContent$1 = ({
16787
+ const DialogContent = ({
15706
16788
  title,
15707
16789
  children,
15708
16790
  showClose,
@@ -15717,68 +16799,29 @@ var __publicField = (obj, key, value) => {
15717
16799
  /* @__PURE__ */ jsxRuntime.jsxs(ContentArea, { ...props, children: [
15718
16800
  /* @__PURE__ */ jsxRuntime.jsxs(TitleArea, { children: [
15719
16801
  /* @__PURE__ */ jsxRuntime.jsx(Title$1, { children: title }),
15720
- showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton$1, { onClose })
16802
+ showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClose })
15721
16803
  ] }),
15722
16804
  /* @__PURE__ */ jsxRuntime.jsx(Spacer, { size: "sm" }),
15723
16805
  children
15724
16806
  ] })
15725
16807
  ] });
15726
16808
  };
15727
- DialogContent$1.displayName = "DialogContent";
15728
- Dialog.Content = DialogContent$1;
15729
- const ActionsWrapper = styledComponents.styled.div.withConfig({
15730
- componentId: "sc-6eozxy-0"
15731
- })(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
15732
- const DialogContent = styledComponents.styled.div.withConfig({
15733
- componentId: "sc-6eozxy-1"
15734
- })(["overflow:hidden;display:flex;flex-direction:column;"]);
15735
- const ConfirmationDialog = ({
15736
- children,
15737
- disabled,
15738
- loading,
15739
- message,
15740
- onCancel,
15741
- onConfirm,
15742
- open: open2,
15743
- primaryActionLabel = "Confirm",
15744
- primaryActionType = "primary",
15745
- secondaryActionLabel = "Cancel",
15746
- showClose,
15747
- title,
15748
- ...props
15749
- }) => {
15750
- if (children && message) {
15751
- throw new Error("You can't pass children and message props at the same time");
15752
- }
15753
- return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: open2, onOpenChange: (open22) => {
15754
- !open22 && onCancel && onCancel();
15755
- }, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { as: Dialog.Content, title, showClose, ...props, children: [
15756
- /* @__PURE__ */ jsxRuntime.jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsxRuntime.jsx(Text, { children: message }) }),
15757
- /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "xl" }),
15758
- /* @__PURE__ */ jsxRuntime.jsxs(ActionsWrapper, { children: [
15759
- /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
15760
- /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
15761
- if (onConfirm) {
15762
- onConfirm();
15763
- }
15764
- }, "data-testid": "confirm-action-button" })
15765
- ] })
15766
- ] }) });
15767
- };
16809
+ DialogContent.displayName = "DialogContent";
16810
+ Dialog.Content = DialogContent;
15768
16811
  const Flyout = ({
15769
16812
  modal = false,
15770
16813
  ...props
15771
16814
  }) => {
15772
16815
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, { modal, ...props });
15773
16816
  };
15774
- const Trigger$3 = ({
16817
+ const Trigger$2 = ({
15775
16818
  children,
15776
16819
  ...props
15777
16820
  }) => {
15778
16821
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) });
15779
16822
  };
15780
- Trigger$3.displayName = "Flyout.Trigger";
15781
- Flyout.Trigger = Trigger$3;
16823
+ Trigger$2.displayName = "Flyout.Trigger";
16824
+ Flyout.Trigger = Trigger$2;
15782
16825
  const animationWidth = () => styledComponents.keyframes({
15783
16826
  from: {
15784
16827
  width: 0
@@ -16006,97 +17049,6 @@ var __publicField = (obj, key, value) => {
16006
17049
  ] }),
16007
17050
  label && /* @__PURE__ */ jsxRuntime.jsx(Label$1, { htmlFor: id, error: !!error2, children: label })
16008
17051
  ] });
16009
- const GridContainer$1 = ({
16010
- alignItems = "stretch",
16011
- alignContent = "stretch",
16012
- children,
16013
- columnGap,
16014
- gap,
16015
- gridAutoColumns,
16016
- gridAutoFlow,
16017
- gridAutoRows,
16018
- gridTemplateAreas,
16019
- gridTemplateColumns,
16020
- gridTemplateRows,
16021
- gridTemplate,
16022
- inline = false,
16023
- isResponsive = true,
16024
- justifyContent = "stretch",
16025
- justifyItems = "stretch",
16026
- rowGap,
16027
- height,
16028
- maxHeight,
16029
- minHeight,
16030
- fillWidth = true,
16031
- maxWidth,
16032
- minWidth,
16033
- overflow,
16034
- ...props
16035
- }) => {
16036
- return /* @__PURE__ */ jsxRuntime.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 });
16037
- };
16038
- const Wrapper$3 = styledComponents.styled.div.withConfig({
16039
- componentId: "sc-r57kdn-0"
16040
- })(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
16041
- $alignItems = "stretch"
16042
- }) => $alignItems, ({
16043
- $alignContent = "stretch"
16044
- }) => $alignContent, ({
16045
- $inline
16046
- }) => $inline === true ? "inline-grid" : "grid", ({
16047
- $gridAutoColumns
16048
- }) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
16049
- $gridAutoFlow
16050
- }) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
16051
- $gridAutoRows
16052
- }) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
16053
- $gridTemplateAreas
16054
- }) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
16055
- $gridTemplateColumns
16056
- }) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
16057
- $gridTemplateRows
16058
- }) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
16059
- $gridTemplate
16060
- }) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
16061
- $justifyContent = "stretch"
16062
- }) => $justifyContent, ({
16063
- $justifyItems = "stretch"
16064
- }) => $justifyItems, ({
16065
- theme: theme2,
16066
- $gap,
16067
- $columnGap,
16068
- $rowGap
16069
- }) => `
16070
- gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
16071
- ${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
16072
- ${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
16073
- `, ({
16074
- $fillWidth,
16075
- $maxWidth,
16076
- $minWidth
16077
- }) => `
16078
- width: ${$fillWidth ? "100%" : "auto"};
16079
- ${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
16080
- ${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
16081
- `, ({
16082
- $height,
16083
- $maxHeight,
16084
- $minHeight
16085
- }) => `
16086
- ${typeof $height === "string" && `height: ${$height}`};
16087
- ${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
16088
- ${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
16089
- `, ({
16090
- $overflow
16091
- }) => `
16092
- ${typeof $overflow === "string" && `overflow: ${$overflow}`};
16093
- `, ({
16094
- theme: theme2
16095
- }) => theme2.breakpoint.sizes.md, ({
16096
- $isResponsive = true
16097
- }) => $isResponsive === true ? "1fr" : ({
16098
- $gridTemplateColumns
16099
- }) => $gridTemplateColumns || "auto");
16100
17052
  const InlineContainer = styledComponents.styled.span.withConfig({
16101
17053
  componentId: "sc-ugg5k0-0"
16102
17054
  })(["", ""], ({
@@ -16110,305 +17062,6 @@ var __publicField = (obj, key, value) => {
16110
17062
  padding: 0 ${theme2.click.codeInline.space.x};
16111
17063
  `);
16112
17064
  const InlineCodeBlock = (props) => /* @__PURE__ */ jsxRuntime.jsx(InlineContainer, { ...props });
16113
- const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
16114
- const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
16115
- $6cc32821e9371a1c$export$4027731b685e72eb
16116
- ]);
16117
- const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
16118
- const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
16119
- const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
16120
- const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
16121
- const [open1, setOpen] = React.useState(false);
16122
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16123
- const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
16124
- const handleOpenChange = React.useCallback((open2) => {
16125
- setOpen(open2);
16126
- handleOpenChangeProp(open2);
16127
- }, [
16128
- handleOpenChangeProp
16129
- ]);
16130
- return /* @__PURE__ */ React.createElement($1b0217ee4a91d156$var$ContextMenuProvider, {
16131
- scope: __scopeContextMenu,
16132
- open: open1,
16133
- onOpenChange: handleOpenChange,
16134
- modal
16135
- }, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
16136
- dir,
16137
- open: open1,
16138
- onOpenChange: handleOpenChange,
16139
- modal
16140
- }), children));
16141
- };
16142
- const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
16143
- const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16144
- const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
16145
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
16146
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16147
- const pointRef = React.useRef({
16148
- x: 0,
16149
- y: 0
16150
- });
16151
- const virtualRef = React.useRef({
16152
- getBoundingClientRect: () => DOMRect.fromRect({
16153
- width: 0,
16154
- height: 0,
16155
- ...pointRef.current
16156
- })
16157
- });
16158
- const longPressTimerRef = React.useRef(0);
16159
- const clearLongPress = React.useCallback(
16160
- () => window.clearTimeout(longPressTimerRef.current),
16161
- []
16162
- );
16163
- const handleOpen = (event) => {
16164
- pointRef.current = {
16165
- x: event.clientX,
16166
- y: event.clientY
16167
- };
16168
- context.onOpenChange(true);
16169
- };
16170
- React.useEffect(
16171
- () => clearLongPress,
16172
- [
16173
- clearLongPress
16174
- ]
16175
- );
16176
- React.useEffect(
16177
- () => void (disabled && clearLongPress()),
16178
- [
16179
- disabled,
16180
- clearLongPress
16181
- ]
16182
- );
16183
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
16184
- virtualRef
16185
- })), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
16186
- "data-state": context.open ? "open" : "closed",
16187
- "data-disabled": disabled ? "" : void 0
16188
- }, triggerProps, {
16189
- ref: forwardedRef,
16190
- style: {
16191
- WebkitTouchCallout: "none",
16192
- ...props.style
16193
- },
16194
- onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
16195
- clearLongPress();
16196
- handleOpen(event);
16197
- event.preventDefault();
16198
- }),
16199
- onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
16200
- clearLongPress();
16201
- longPressTimerRef.current = window.setTimeout(
16202
- () => handleOpen(event),
16203
- 700
16204
- );
16205
- })),
16206
- onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16207
- onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16208
- onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
16209
- })));
16210
- });
16211
- const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
16212
- const { __scopeContextMenu, ...portalProps } = props;
16213
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16214
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
16215
- };
16216
- const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
16217
- const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16218
- const { __scopeContextMenu, ...contentProps } = props;
16219
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
16220
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16221
- const hasInteractedOutsideRef = React.useRef(false);
16222
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
16223
- ref: forwardedRef,
16224
- side: "right",
16225
- sideOffset: 2,
16226
- align: "start",
16227
- onCloseAutoFocus: (event) => {
16228
- var _props$onCloseAutoFoc;
16229
- (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
16230
- if (!event.defaultPrevented && hasInteractedOutsideRef.current)
16231
- event.preventDefault();
16232
- hasInteractedOutsideRef.current = false;
16233
- },
16234
- onInteractOutside: (event) => {
16235
- var _props$onInteractOuts;
16236
- (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
16237
- if (!event.defaultPrevented && !context.modal)
16238
- hasInteractedOutsideRef.current = true;
16239
- },
16240
- style: {
16241
- ...props.style,
16242
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16243
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16244
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16245
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16246
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16247
- }
16248
- }));
16249
- });
16250
- const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16251
- const { __scopeContextMenu, ...groupProps } = props;
16252
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16253
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
16254
- ref: forwardedRef
16255
- }));
16256
- });
16257
- const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16258
- const { __scopeContextMenu, ...itemProps } = props;
16259
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16260
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
16261
- ref: forwardedRef
16262
- }));
16263
- });
16264
- const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16265
- const { __scopeContextMenu, ...arrowProps } = props;
16266
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16267
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
16268
- ref: forwardedRef
16269
- }));
16270
- });
16271
- const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
16272
- const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
16273
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16274
- const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
16275
- prop: openProp,
16276
- defaultProp: defaultOpen,
16277
- onChange: onOpenChange
16278
- });
16279
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
16280
- open: open2,
16281
- onOpenChange: setOpen
16282
- }), children);
16283
- };
16284
- const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16285
- const { __scopeContextMenu, ...triggerItemProps } = props;
16286
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16287
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
16288
- ref: forwardedRef
16289
- }));
16290
- });
16291
- const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16292
- const { __scopeContextMenu, ...subContentProps } = props;
16293
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16294
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
16295
- ref: forwardedRef,
16296
- style: {
16297
- ...props.style,
16298
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16299
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16300
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16301
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16302
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16303
- }
16304
- }));
16305
- });
16306
- function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
16307
- return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
16308
- }
16309
- const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
16310
- const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
16311
- const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
16312
- const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
16313
- const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
16314
- const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
16315
- const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
16316
- const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
16317
- const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
16318
- const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
16319
- const ContextMenu = (props) => /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
16320
- const ContextMenuTrigger$1 = React.forwardRef(({
16321
- disabled,
16322
- ...props
16323
- }, ref) => {
16324
- return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props }) });
16325
- });
16326
- ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
16327
- ContextMenu.Trigger = ContextMenuTrigger$1;
16328
- const ContextMenuSubTrigger = ({
16329
- icon,
16330
- iconDir,
16331
- children,
16332
- ...props
16333
- }) => {
16334
- return /* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
16335
- /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }),
16336
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "chevron-right" }) })
16337
- ] });
16338
- };
16339
- ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
16340
- ContextMenu.SubTrigger = ContextMenuSubTrigger;
16341
- const RightMenuContent = styledComponents.styled(GenericMenuPanel).withConfig({
16342
- componentId: "sc-8z6kye-0"
16343
- })(["flex-direction:column;z-index:1;", ";"], ({
16344
- $showArrow
16345
- }) => $showArrow ? `
16346
- &[data-side="bottom"] {
16347
- margin-top: -1px;
16348
- }
16349
- &[data-side="top"] {
16350
- margin-bottom: -1px;
16351
- }
16352
- &[data-side="left"] {
16353
- margin-right: -1px;
16354
- .popover-arrow {
16355
- margin-right: 1rem;
16356
- }
16357
- }
16358
- }
16359
- &[data-side="right"] {
16360
- margin-left: -1px;
16361
- .popover-arrow {
16362
- margin-left: 1rem;
16363
- }
16364
- }
16365
- ` : "");
16366
- const ContextMenuContent = ({
16367
- sub,
16368
- children,
16369
- showArrow,
16370
- ...props
16371
- }) => {
16372
- const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
16373
- return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntime.jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
16374
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, { className: "popover-arrow" }) }),
16375
- children
16376
- ] }) });
16377
- };
16378
- ContextMenuContent.displayName = "ContextMenuContent";
16379
- ContextMenu.Content = ContextMenuContent;
16380
- const RightMenuGroup = styledComponents.styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
16381
- componentId: "sc-8z6kye-1"
16382
- })(["width:100%;border-bottom:1px solid ", ";"], ({
16383
- theme: theme2
16384
- }) => theme2.click.genericMenu.item.color.stroke.default);
16385
- const ContextMenuGroup = (props) => {
16386
- return /* @__PURE__ */ jsxRuntime.jsx(RightMenuGroup, { ...props });
16387
- };
16388
- ContextMenuGroup.displayName = "ContextMenuGroup";
16389
- ContextMenu.Group = ContextMenuGroup;
16390
- const RightMenuSub = styledComponents.styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
16391
- componentId: "sc-8z6kye-2"
16392
- })(["border-bottom:1px solid ", ";"], ({
16393
- theme: theme2
16394
- }) => theme2.click.genericMenu.item.color.stroke.default);
16395
- const ContextMenuSub = ({
16396
- ...props
16397
- }) => {
16398
- return /* @__PURE__ */ jsxRuntime.jsx(RightMenuSub, { ...props });
16399
- };
16400
- ContextMenuSub.displayName = "ContextMenuSub";
16401
- ContextMenu.Sub = ContextMenuSub;
16402
- const ContextMenuItem = ({
16403
- icon,
16404
- iconDir,
16405
- children,
16406
- ...props
16407
- }) => {
16408
- return /* @__PURE__ */ jsxRuntime.jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }) });
16409
- };
16410
- ContextMenuItem.displayName = "ContextMenuItem";
16411
- ContextMenu.Item = ContextMenuItem;
16412
17065
  function _inheritsLoose(subClass, superClass) {
16413
17066
  subClass.prototype = Object.create(superClass.prototype);
16414
17067
  subClass.prototype.constructor = subClass;
@@ -33419,14 +34072,14 @@ var __publicField = (obj, key, value) => {
33419
34072
  }) => {
33420
34073
  return /* @__PURE__ */ jsxRuntime.jsx($cef8881cdc69808e$export$be92b6f5f03c0fe9, { ...props, children });
33421
34074
  };
33422
- const Trigger$2 = styledComponents.styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
34075
+ const Trigger$1 = styledComponents.styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
33423
34076
  componentId: "sc-1ect7b6-0"
33424
34077
  })(["width:fit-content;"]);
33425
34078
  const HoverCardTrigger = ({
33426
34079
  children,
33427
34080
  ...props
33428
34081
  }) => {
33429
- return /* @__PURE__ */ jsxRuntime.jsx(Trigger$2, { ...props, children });
34082
+ return /* @__PURE__ */ jsxRuntime.jsx(Trigger$1, { ...props, children });
33430
34083
  };
33431
34084
  HoverCardTrigger.displayName = "HoverCardTrigger";
33432
34085
  HoverCard.Trigger = HoverCardTrigger;
@@ -33444,25 +34097,6 @@ var __publicField = (obj, key, value) => {
33444
34097
  };
33445
34098
  HoverCardContent.displayName = "HoverCardContent";
33446
34099
  HoverCard.Content = HoverCardContent;
33447
- const linkStyles = styledComponents.css(["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:", ";}"], ({
33448
- $size,
33449
- $weight = "normal",
33450
- theme: theme2
33451
- }) => theme2.typography.styles.product.text[$weight][$size], ({
33452
- theme: theme2
33453
- }) => theme2.click.global.color.text.link.default, ({
33454
- $size,
33455
- theme: theme2
33456
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33457
- $size,
33458
- theme: theme2
33459
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33460
- theme: theme2
33461
- }) => theme2.click.global.color.text.link.hover, ({
33462
- theme: theme2
33463
- }) => theme2.transition.default, ({
33464
- theme: theme2
33465
- }) => theme2.click.global.color.text.link.default);
33466
34100
  const CuiLink = styledComponents.styled.a.withConfig({
33467
34101
  componentId: "sc-1bwz77u-0"
33468
34102
  })(["", ""], linkStyles);
@@ -33533,71 +34167,6 @@ var __publicField = (obj, key, value) => {
33533
34167
  /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: togglePasswordViewer, $show: value.length > 0, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: viewPassword ? "eye-closed" : "eye", size: "md" }) })
33534
34168
  ] });
33535
34169
  });
33536
- const Popover = ({
33537
- children,
33538
- ...props
33539
- }) => {
33540
- return /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
33541
- };
33542
- const Trigger$1 = styledComponents.styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
33543
- componentId: "sc-1dii14g-0"
33544
- })(["width:fit-content;font:inherit;color:inherit;background:inherit;border:none;"]);
33545
- const PopoverTrigger = ({
33546
- anchor,
33547
- children,
33548
- ...props
33549
- }) => {
33550
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
33551
- /* @__PURE__ */ jsxRuntime.jsx(Trigger$1, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }),
33552
- anchor && /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
33553
- ] });
33554
- };
33555
- PopoverTrigger.displayName = "PopoverTrigger";
33556
- Popover.Trigger = PopoverTrigger;
33557
- const MenuPanel = styledComponents.styled(GenericMenuPanel).withConfig({
33558
- componentId: "sc-1dii14g-1"
33559
- })(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
33560
- theme: theme2
33561
- }) => theme2.click.popover.space.y, ({
33562
- theme: theme2
33563
- }) => theme2.click.popover.space.x, ({
33564
- theme: theme2
33565
- }) => theme2.click.popover.color.panel.background.default, ({
33566
- theme: theme2
33567
- }) => theme2.click.popover.color.panel.stroke.default, ({
33568
- theme: theme2
33569
- }) => theme2.click.popover.radii.all, ({
33570
- theme: theme2
33571
- }) => theme2.click.popover.shadow.default, ({
33572
- $showClose
33573
- }) => $showClose ? "padding-top: 1rem;" : "");
33574
- const CloseButton = styledComponents.styled(EmptyButton$1).withConfig({
33575
- componentId: "sc-1dii14g-2"
33576
- })(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
33577
- theme: theme2
33578
- }) => theme2.click.popover.space.y, ({
33579
- theme: theme2
33580
- }) => theme2.click.popover.space.x, ({
33581
- theme: theme2
33582
- }) => theme2.click.popover.icon.size.width, ({
33583
- theme: theme2
33584
- }) => theme2.click.popover.icon.size.height);
33585
- const PopoverContent = ({
33586
- children,
33587
- showArrow,
33588
- showClose,
33589
- forceMount,
33590
- container,
33591
- ...props
33592
- }) => {
33593
- return /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxRuntime.jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
33594
- showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross" }) }),
33595
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, {}) }),
33596
- children
33597
- ] }) });
33598
- };
33599
- PopoverContent.displayName = "PopoverContent";
33600
- Popover.Content = PopoverContent;
33601
34170
  const CustomSelect = styledComponents.styled.div.withConfig({
33602
34171
  componentId: "sc-dicnqe-0"
33603
34172
  })(["width:150px;"]);
@@ -34896,8 +35465,8 @@ var __publicField = (obj, key, value) => {
34896
35465
  }
34897
35466
  animationStates = [];
34898
35467
  },
34899
- animate: function animate(target, currentRect, toRect, duration) {
34900
- if (duration) {
35468
+ animate: function animate(target, currentRect, toRect, duration2) {
35469
+ if (duration2) {
34901
35470
  css(target, "transition", "");
34902
35471
  css(target, "transform", "");
34903
35472
  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);
@@ -34905,7 +35474,7 @@ var __publicField = (obj, key, value) => {
34905
35474
  target.animatingY = !!translateY;
34906
35475
  css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
34907
35476
  this.forRepaintDummy = repaint(target);
34908
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
35477
+ css(target, "transition", "transform " + duration2 + "ms" + (this.options.easing ? " " + this.options.easing : ""));
34909
35478
  css(target, "transform", "translate3d(0,0,0)");
34910
35479
  typeof target.animated === "number" && clearTimeout(target.animated);
34911
35480
  target.animated = setTimeout(function() {
@@ -34914,7 +35483,7 @@ var __publicField = (obj, key, value) => {
34914
35483
  target.animated = false;
34915
35484
  target.animatingX = false;
34916
35485
  target.animatingY = false;
34917
- }, duration);
35486
+ }, duration2);
34918
35487
  }
34919
35488
  }
34920
35489
  };
@@ -40282,7 +40851,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40282
40851
  ]);
40283
40852
  const [$054eb8030ebde76e$var$ToastProviderProvider, $054eb8030ebde76e$var$useToastProviderContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$PROVIDER_NAME);
40284
40853
  const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
40285
- const { __scopeToast, label = "Notification", duration = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
40854
+ const { __scopeToast, label = "Notification", duration: duration2 = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
40286
40855
  const [viewport, setViewport] = React.useState(null);
40287
40856
  const [toastCount, setToastCount] = React.useState(0);
40288
40857
  const isFocusedToastEscapeKeyDownRef = React.useRef(false);
@@ -40292,7 +40861,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40292
40861
  }, /* @__PURE__ */ React.createElement($054eb8030ebde76e$var$ToastProviderProvider, {
40293
40862
  scope: __scopeToast,
40294
40863
  label,
40295
- duration,
40864
+ duration: duration2,
40296
40865
  swipeDirection,
40297
40866
  swipeThreshold,
40298
40867
  toastCount,
@@ -40579,12 +41148,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40579
41148
  (_context$viewport2 = context.viewport) === null || _context$viewport2 === void 0 || _context$viewport2.focus();
40580
41149
  onClose();
40581
41150
  });
40582
- const startTimer = React.useCallback((duration) => {
40583
- if (!duration || duration === Infinity)
41151
+ const startTimer = React.useCallback((duration2) => {
41152
+ if (!duration2 || duration2 === Infinity)
40584
41153
  return;
40585
41154
  window.clearTimeout(closeTimerRef.current);
40586
41155
  closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
40587
- closeTimerRef.current = window.setTimeout(handleClose, duration);
41156
+ closeTimerRef.current = window.setTimeout(handleClose, duration2);
40588
41157
  }, [
40589
41158
  handleClose
40590
41159
  ]);
@@ -41043,7 +41612,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
41043
41612
  title,
41044
41613
  description,
41045
41614
  actions = [],
41046
- duration,
41615
+ duration: duration2,
41047
41616
  onClose
41048
41617
  }) => {
41049
41618
  let iconName = "";
@@ -41054,7 +41623,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
41054
41623
  } else if (type && ["danger", "warning"].includes(type)) {
41055
41624
  iconName = "warning";
41056
41625
  }
41057
- return /* @__PURE__ */ jsxRuntime.jsxs(ToastRoot, { onOpenChange: onClose, duration, children: [
41626
+ return /* @__PURE__ */ jsxRuntime.jsxs(ToastRoot, { onOpenChange: onClose, duration: duration2, children: [
41058
41627
  /* @__PURE__ */ jsxRuntime.jsxs(ToastHeader, { children: [
41059
41628
  iconName.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ToastIcon, { name: iconName, $type: type }),
41060
41629
  /* @__PURE__ */ jsxRuntime.jsx(Title, { children: title }),
@@ -50415,6 +50984,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
50415
50984
  exports2.Container = Container;
50416
50985
  exports2.ContextMenu = ContextMenu;
50417
50986
  exports2.DangerAlert = DangerAlert;
50987
+ exports2.DateDetails = DateDetails;
50418
50988
  exports2.DatePicker = DatePicker;
50419
50989
  exports2.Dialog = Dialog;
50420
50990
  exports2.Dropdown = Dropdown;