@clickhouse/click-ui 0.0.190 → 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) => {
@@ -82,6 +82,38 @@ var __publicField = (obj, key, value) => {
82
82
  /* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 12v5" })
83
83
  ] });
84
84
  const CheckIcon$3 = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6.5L9 17.5L4 12.5", stroke: "#161517", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
85
+ const ChartArea = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
86
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V13.5972L8.25594 9.4375C8.38536 9.32421 8.54978 9.25885 8.72165 9.25236C8.89353 9.24587 9.06241 9.29866 9.2 9.40188L14.7134 13.5372L20.2559 8.6875C20.3286 8.61556 20.4152 8.55925 20.5105 8.52201C20.6057 8.48478 20.7075 8.46741 20.8097 8.47097C20.9119 8.47454 21.0123 8.49896 21.1047 8.54275C21.1971 8.58653 21.2796 8.64875 21.3471 8.72557C21.4146 8.8024 21.4656 8.89222 21.4971 8.9895C21.5286 9.08678 21.5399 9.18948 21.5302 9.29128C21.5206 9.39307 21.4902 9.49182 21.441 9.58146C21.3918 9.67109 21.3248 9.74972 21.2441 9.8125L15.2441 15.0625C15.1146 15.1758 14.9502 15.2412 14.7783 15.2476C14.6065 15.2541 14.4376 15.2013 14.3 15.0981L8.78656 10.9647L3.5 15.5903V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75Z", fill: "white" }),
87
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.75 6.75L8.9319 6.02239L8.78057 5.98456L8.6267 6.0102L8.75 6.75ZM14.75 8.25L14.5681 8.97761L14.8373 9.0449L15.0854 8.92082L14.75 8.25ZM21.0854 5.92082C21.4559 5.73558 21.6061 5.28507 21.4208 4.91459C21.2356 4.54411 20.7851 4.39394 20.4146 4.57918L21.0854 5.92082ZM2.8733 8.4898L8.8733 7.4898L8.6267 6.0102L2.6267 7.0102L2.8733 8.4898ZM8.5681 7.47761L14.5681 8.97761L14.9319 7.52239L8.9319 6.02239L8.5681 7.47761ZM15.0854 8.92082L21.0854 5.92082L20.4146 4.57918L14.4146 7.57918L15.0854 8.92082Z", fill: "white" })
88
+ ] });
89
+ const ChartBarHorizontal = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20.25 9H16.5V5.25C16.5 5.05109 16.421 4.86032 16.2803 4.71967C16.1397 4.57902 15.9489 4.5 15.75 4.5H4.5V3.75C4.5 3.55109 4.42098 3.36032 4.28033 3.21967C4.13968 3.07902 3.94891 3 3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V20.25C3 20.4489 3.07902 20.6397 3.21967 20.7803C3.36032 20.921 3.55109 21 3.75 21C3.94891 21 4.13968 20.921 4.28033 20.7803C4.42098 20.6397 4.5 20.4489 4.5 20.25V19.5H12.75C12.9489 19.5 13.1397 19.421 13.2803 19.2803C13.421 19.1397 13.5 18.9489 13.5 18.75V15H20.25C20.4489 15 20.6397 14.921 20.7803 14.7803C20.921 14.6397 21 14.4489 21 14.25V9.75C21 9.55109 20.921 9.36032 20.7803 9.21967C20.6397 9.07902 20.4489 9 20.25 9ZM15 6V9H4.5V6H15ZM12 18H4.5V15H12V18ZM19.5 13.5H4.5V10.5H19.5V13.5Z", fill: "white" }) });
90
+ const ChartDonut = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12.0003 2.25C11.8014 2.25 11.6106 2.32902 11.47 2.46967C11.3293 2.61032 11.2503 2.80109 11.2503 3V8.25C11.2503 8.44891 11.3293 8.63968 11.47 8.78033C11.6106 8.92098 11.8014 9 12.0003 9C12.6607 9.00015 13.3025 9.21819 13.8264 9.6203C14.3502 10.0224 14.7267 10.5861 14.8975 11.224C15.0683 11.8619 15.0239 12.5384 14.7711 13.1484C14.5183 13.7585 14.0713 14.2681 13.4993 14.5982C12.9274 14.9284 12.2625 15.0606 11.6078 14.9743C10.9531 14.888 10.3451 14.5882 9.87818 14.1212C9.41125 13.6542 9.11145 13.0462 9.02527 12.3915C8.93909 11.7368 9.07135 11.0719 9.40154 10.5C9.4508 10.4147 9.48278 10.3205 9.49564 10.2228C9.50849 10.1252 9.50198 10.0259 9.47647 9.93075C9.45097 9.83559 9.40696 9.7464 9.34697 9.66825C9.28698 9.59011 9.21218 9.52454 9.12685 9.47531L4.57998 6.85031C4.49466 6.80105 4.40048 6.76907 4.30281 6.75622C4.20513 6.74336 4.10588 6.74987 4.01073 6.77538C3.91557 6.80089 3.82637 6.84489 3.74823 6.90488C3.67008 6.96487 3.60452 7.03967 3.55529 7.125C2.48216 8.98371 2.05232 11.1446 2.33243 13.2725C2.61254 15.4004 3.58694 17.3764 5.10452 18.8941C6.62211 20.4117 8.59806 21.3863 10.7259 21.6665C12.8538 21.9468 15.0147 21.5171 16.8735 20.4441C18.7323 19.3711 20.1851 17.7147 21.0066 15.7319C21.8281 13.7491 21.9723 11.5506 21.4171 9.47742C20.8618 7.40424 19.6379 5.57222 17.9353 4.26547C16.2327 2.95872 14.1465 2.25028 12.0003 2.25ZM4.50873 8.54062L7.78154 10.4306C7.5953 10.9329 7.50006 11.4643 7.50029 12C7.50029 12.1434 7.50779 12.2812 7.52091 12.4237L3.87029 13.4062C3.5856 11.7571 3.80823 10.0605 4.50873 8.54062ZM4.25841 14.8509L7.91466 13.8722C8.22035 14.5385 8.68389 15.1203 9.26512 15.5671C9.84635 16.0139 10.5278 16.3122 11.2503 16.4363V20.2153C9.69763 20.0714 8.2173 19.4914 6.98016 18.5422C5.74301 17.593 4.79946 16.3134 4.25841 14.8509ZM12.7503 20.2153V16.4363C13.7984 16.2586 14.7498 15.7156 15.4359 14.9035C16.1219 14.0914 16.4983 13.0626 16.4983 11.9995C16.4983 10.9364 16.1219 9.90768 15.4359 9.09557C14.7498 8.28347 13.7984 7.74047 12.7503 7.56281V3.78375C14.7998 3.97101 16.7054 4.91756 18.0929 6.43761C19.4804 7.95767 20.2497 9.94144 20.2497 11.9995C20.2497 14.0576 19.4804 16.0414 18.0929 17.5614C16.7054 19.0815 14.7998 20.0281 12.7503 20.2153Z", fill: "white" }) });
91
+ const ChartHeatmap = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
92
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75Z", fill: "white" }),
93
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "10.5", cy: "11.5", r: "2.5", fill: "white" }),
94
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "16", cy: "15", r: "2", fill: "white" }),
95
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "7", cy: "7", r: "1", fill: "white" }),
96
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "14", cy: "8", r: "4", fill: "white" })
97
+ ] });
98
+ const ChartScatter = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75ZM12.125 15.25C12.3475 15.25 12.565 15.184 12.75 15.0604C12.935 14.9368 13.0792 14.7611 13.1644 14.5555C13.2495 14.35 13.2718 14.1238 13.2284 13.9055C13.185 13.6873 13.0778 13.4868 12.9205 13.3295C12.7632 13.1722 12.5627 13.065 12.3445 13.0216C12.1262 12.9782 11.9 13.0005 11.6945 13.0856C11.4889 13.1708 11.3132 13.315 11.1896 13.5C11.066 13.685 11 13.9025 11 14.125C11 14.4234 11.1185 14.7095 11.3295 14.9205C11.5405 15.1315 11.8266 15.25 12.125 15.25ZM9.875 10C10.0975 10 10.315 9.93402 10.5 9.8104C10.685 9.68679 10.8292 9.51109 10.9144 9.30552C10.9995 9.09995 11.0218 8.87375 10.9784 8.65552C10.935 8.43729 10.8278 8.23684 10.6705 8.0795C10.5132 7.92217 10.3127 7.81502 10.0945 7.77162C9.87625 7.72821 9.65005 7.75049 9.44448 7.83564C9.23891 7.92078 9.06321 8.06498 8.9396 8.24998C8.81598 8.43499 8.75 8.6525 8.75 8.875C8.75 9.17337 8.86853 9.45952 9.0795 9.6705C9.29048 9.88147 9.57663 10 9.875 10ZM6.875 16.75C7.0975 16.75 7.31501 16.684 7.50002 16.5604C7.68502 16.4368 7.82922 16.2611 7.91436 16.0555C7.99951 15.85 8.02179 15.6238 7.97838 15.4055C7.93498 15.1873 7.82783 14.9868 7.6705 14.8295C7.51316 14.6722 7.31271 14.565 7.09448 14.5216C6.87625 14.4782 6.65005 14.5005 6.44448 14.5856C6.23891 14.6708 6.06321 14.815 5.9396 15C5.81598 15.185 5.75 15.4025 5.75 15.625C5.75 15.9234 5.86853 16.2095 6.0795 16.4205C6.29048 16.6315 6.57663 16.75 6.875 16.75ZM15.875 12.25C16.0975 12.25 16.315 12.184 16.5 12.0604C16.685 11.9368 16.8292 11.7611 16.9144 11.5555C16.9995 11.35 17.0218 11.1238 16.9784 10.9055C16.935 10.6873 16.8278 10.4868 16.6705 10.3295C16.5132 10.1722 16.3127 10.065 16.0945 10.0216C15.8762 9.97821 15.65 10.0005 15.4445 10.0856C15.2389 10.1708 15.0632 10.315 14.9396 10.5C14.816 10.685 14.75 10.9025 14.75 11.125C14.75 11.4234 14.8685 11.7095 15.0795 11.9205C15.2905 12.1315 15.5766 12.25 15.875 12.25ZM18.125 8.5C18.3475 8.5 18.565 8.43402 18.75 8.3104C18.935 8.18679 19.0792 8.01109 19.1644 7.80552C19.2495 7.59995 19.2718 7.37375 19.2284 7.15552C19.185 6.93729 19.0778 6.73684 18.9205 6.5795C18.7632 6.42217 18.5627 6.31502 18.3445 6.27162C18.1262 6.22821 17.9 6.25049 17.6945 6.33564C17.4889 6.42078 17.3132 6.56498 17.1896 6.74998C17.066 6.93499 17 7.1525 17 7.375C17 7.67337 17.1185 7.95952 17.3295 8.1705C17.5405 8.38147 17.8266 8.5 18.125 8.5ZM16.25 15.625C16.25 15.8475 16.316 16.065 16.4396 16.25C16.5632 16.435 16.7389 16.5792 16.9445 16.6644C17.15 16.7495 17.3762 16.7718 17.5945 16.7284C17.8127 16.685 18.0132 16.5778 18.1705 16.4205C18.3278 16.2632 18.435 16.0627 18.4784 15.8445C18.5218 15.6262 18.4995 15.4 18.4144 15.1945C18.3292 14.9889 18.185 14.8132 18 14.6896C17.815 14.566 17.5975 14.5 17.375 14.5C17.0766 14.5 16.7905 14.6185 16.5795 14.8295C16.3685 15.0405 16.25 15.3266 16.25 15.625Z", fill: "white" }) });
99
+ const ChartStackedHorizontal = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
100
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3.5 3L3.5 21", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
101
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 14.333L15.5 14.333V18C15.5 18.552 15.052 19 14.5 19H3.5L3.5 14.333Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
102
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 14.3301H10.5V17.9994C10.5 18.5518 10.2387 19.0001 9.91667 19.0001H3.5L3.5 14.3301Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
103
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 9.66699L20.5 9.66699C21.052 9.66699 21.5 10.115 21.5 10.667V13.334C21.5 13.886 21.052 14.334 20.5 14.334H3.5L3.5 9.66699Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
104
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 9.66992H12C12.276 9.66992 12.5 10.1182 12.5 10.6706V13.3393C12.5 13.8916 12.276 14.3399 12 14.3399H3.5L3.5 9.66992Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
105
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 5L17.5 5C18.052 5 18.5 5.448 18.5 6V9.667H3.5L3.5 5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
106
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 5L10.0333 5C10.2909 5 10.5 5.44829 10.5 6.00064V9.67H3.5L3.5 5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
107
+ ] });
108
+ const ChartStackedVertical = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
109
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 21H21", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
110
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.333 21V9H18C18.552 9 19 9.448 19 10V21H14.333Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
111
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.3301 21V14H17.9994C18.5518 14 19.0001 14.2613 19.0001 14.5833V21H14.3301Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
112
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.66699 21L9.66699 4C9.66699 3.448 10.115 3 10.667 3H13.334C13.886 3 14.334 3.448 14.334 4V21H9.66699Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
113
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.66992 21V12.5C9.66992 12.224 10.1182 12 10.6706 12H13.3393C13.8916 12 14.3399 12.224 14.3399 12.5V21H9.66992Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
114
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 21L5 7C5 6.448 5.448 6 6 6H9.667V21H5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
115
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 21V14.4667C5 14.2091 5.44829 14 6.00064 14H9.67V21H5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
116
+ ] });
85
117
  const InformationIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
86
118
  /* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.854 11.877h1.15v4.252M10.845 16.128h2.31" }),
87
119
  /* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M11.946 7.872a.25.25 0 1 1-.25-.25" }),
@@ -734,6 +766,13 @@ var __publicField = (obj, key, value) => {
734
766
  cards: Cards,
735
767
  "cell-tower": CellTower,
736
768
  chat: ChatIcon,
769
+ "chart-area": ChartArea,
770
+ "chart-bar-horizontal": ChartBarHorizontal,
771
+ "chart-donut": ChartDonut,
772
+ "chart-heatmap": ChartHeatmap,
773
+ "chart-scatter": ChartScatter,
774
+ "chart-stacked-horizontal": ChartStackedHorizontal,
775
+ "chart-stacked-vertical": ChartStackedVertical,
737
776
  check: CheckIcon$3,
738
777
  "check-in-circle": CheckInCircle,
739
778
  "chevron-down": ChevronDown,
@@ -7886,18 +7925,20 @@ var __publicField = (obj, key, value) => {
7886
7925
  width,
7887
7926
  height,
7888
7927
  children,
7928
+ ellipsisContent = true,
7889
7929
  ...props
7890
7930
  }) => {
7931
+ const TextWrapper2 = ellipsisContent ? EllipsisContent : "div";
7891
7932
  return /* @__PURE__ */ jsxRuntime.jsxs(LabelContainer$1, { $hasIcon: typeof icon === "string", $iconDir: iconDir, ...props, children: [
7892
7933
  icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: size2, width, height }),
7893
- /* @__PURE__ */ jsxRuntime.jsx(EllipsisContent, { children }),
7934
+ /* @__PURE__ */ jsxRuntime.jsx(TextWrapper2, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-icon-wrapper-text`, children }),
7894
7935
  icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: size2, width, height })
7895
7936
  ] });
7896
7937
  };
7897
7938
  const Dropdown = (props) => /* @__PURE__ */ jsxRuntime.jsx($d08ef79370b62062$export$be92b6f5f03c0fe9, { ...props });
7898
7939
  const DropdownMenuItem = styledComponents.styled(GenericMenuItem).withConfig({
7899
7940
  componentId: "sc-18bhwbw-0"
7900
- })(['position:relative;display:flex;&[data-state="open"]{', "}"], ({
7941
+ })(['position:relative;display:flex;min-height:32px;&[data-state="open"]{', "}"], ({
7901
7942
  theme: theme2
7902
7943
  }) => `
7903
7944
  font: ${theme2.click.genericMenu.item.typography.label.hover};
@@ -7930,9 +7971,11 @@ var __publicField = (obj, key, value) => {
7930
7971
  Dropdown.Trigger = DropdownTrigger;
7931
7972
  const DropdownMenuContent = styledComponents.styled(GenericMenuPanel).withConfig({
7932
7973
  componentId: "sc-18bhwbw-2"
7933
- })(["min-width:", ";flex-direction:column;z-index:1;"], ({
7974
+ })(["min-width:", ";flex-direction:column;z-index:1;overflow-y:scroll;max-height:calc( (var(--radix-", "-content-available-height) - 100px) );"], ({
7934
7975
  theme: theme2
7935
- }) => theme2.click.genericMenu.item.size.minWidth);
7976
+ }) => theme2.click.genericMenu.item.size.minWidth, ({
7977
+ $type
7978
+ }) => $type);
7936
7979
  const DropdownContent$1 = ({
7937
7980
  sub,
7938
7981
  children,
@@ -9389,9 +9432,10 @@ var __publicField = (obj, key, value) => {
9389
9432
  type,
9390
9433
  dismissible,
9391
9434
  onClose,
9435
+ ellipsisContent = true,
9392
9436
  ...props
9393
- }) => /* @__PURE__ */ jsxRuntime.jsx(Wrapper$c, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(Content$4, { children: [
9394
- /* @__PURE__ */ jsxRuntime.jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, children: text2 }),
9437
+ }) => /* @__PURE__ */ jsxRuntime.jsx(Wrapper$c, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(Content$4, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-badge-content`, children: [
9438
+ /* @__PURE__ */ jsxRuntime.jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, ellipsisContent, children: text2 }),
9395
9439
  dismissible && /* @__PURE__ */ jsxRuntime.jsx(SvgContainer, { name: "cross", $state: state, as: SvgImage, onClick: onClose, "aria-label": "close" })
9396
9440
  ] }) });
9397
9441
  const BigStat = ({
@@ -9628,6 +9672,110 @@ var __publicField = (obj, key, value) => {
9628
9672
  }) => theme2.click.button.basic.size.icon.all, ({
9629
9673
  theme: theme2
9630
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
+ };
9631
9779
  const Title$2 = React.forwardRef(({
9632
9780
  align,
9633
9781
  size: size2,
@@ -9681,111 +9829,6 @@ var __publicField = (obj, key, value) => {
9681
9829
  }) => $fillWidth && "width: 100%");
9682
9830
  _Text.displayName = "Text";
9683
9831
  const Text = React.forwardRef(_Text);
9684
- const Header$4 = styledComponents.styled.div.withConfig({
9685
- componentId: "sc-1drx130-0"
9686
- })(["display:flex;justify-content:space-between;align-items:center;"]);
9687
- const HeaderLeft = styledComponents.styled.div.withConfig({
9688
- componentId: "sc-1drx130-1"
9689
- })(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
9690
- theme: theme2
9691
- }) => theme2.click.card.secondary.space.gap, ({
9692
- $disabled,
9693
- theme: theme2
9694
- }) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
9695
- const Content$3 = styledComponents.styled.div.withConfig({
9696
- componentId: "sc-1drx130-2"
9697
- })(["display:flex;flex-direction:column;flex:1;"]);
9698
- const CustomIcon$1 = styledComponents.styled.img.withConfig({
9699
- componentId: "sc-1drx130-3"
9700
- })(["height:", ";width:", ";"], ({
9701
- theme: theme2
9702
- }) => theme2.click.image.lg.size.height, ({
9703
- theme: theme2
9704
- }) => theme2.click.image.lg.size.width);
9705
- const InfoLink = styledComponents.styled.a.withConfig({
9706
- componentId: "sc-1drx130-4"
9707
- })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
9708
- theme: theme2
9709
- }) => theme2.click.card.secondary.color.link.default, ({
9710
- theme: theme2
9711
- }) => theme2.click.card.secondary.space.link.gap);
9712
- const LinkIconContainer = styledComponents.styled(SvgImage).withConfig({
9713
- componentId: "sc-1drx130-5"
9714
- })(["color:", ";height:", ";width:", ";"], ({
9715
- theme: theme2
9716
- }) => theme2.click.card.secondary.color.link.default, ({
9717
- theme: theme2
9718
- }) => theme2.click.image.md.size.height, ({
9719
- theme: theme2
9720
- }) => theme2.click.image.md.size.width);
9721
- const LinkText = styledComponents.styled(Text).withConfig({
9722
- componentId: "sc-1drx130-6"
9723
- })([""]);
9724
- const LinkIcon = styledComponents.styled(LinkIconContainer).withConfig({
9725
- componentId: "sc-1drx130-7"
9726
- })([""]);
9727
- const Wrapper$a = styledComponents.styled.div.withConfig({
9728
- componentId: "sc-1drx130-8"
9729
- })(["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;', "}"], ({
9730
- theme: theme2
9731
- }) => theme2.click.card.secondary.color.background.default, ({
9732
- theme: theme2
9733
- }) => theme2.click.card.secondary.radii.all, ({
9734
- theme: theme2
9735
- }) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
9736
- theme: theme2
9737
- }) => theme2.click.card.secondary.space.all, ({
9738
- theme: theme2
9739
- }) => theme2.click.card.secondary.space.gap, ({
9740
- $hasShadow,
9741
- theme: theme2
9742
- }) => $hasShadow ? theme2.shadow[1] : "none", ({
9743
- theme: theme2
9744
- }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
9745
- theme: theme2
9746
- }) => theme2.click.card.secondary.color.link.hover, ({
9747
- theme: theme2
9748
- }) => `
9749
- background-color: ${theme2.click.card.secondary.color.background.disabled};
9750
- color: ${theme2.click.card.secondary.color.title.disabled};
9751
- border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
9752
- cursor: not-allowed;
9753
-
9754
- ${LinkText},
9755
- ${LinkIcon} {
9756
- color: ${theme2.click.card.secondary.color.link.disabled};
9757
- }
9758
- `);
9759
- const CardSecondary = ({
9760
- title,
9761
- icon,
9762
- iconUrl,
9763
- badgeState,
9764
- badgeText = "",
9765
- hasShadow = false,
9766
- disabled = false,
9767
- description,
9768
- infoUrl,
9769
- infoText,
9770
- infoIcon = "chevron-right",
9771
- infoIconSize = "md",
9772
- ...props
9773
- }) => {
9774
- return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
9775
- /* @__PURE__ */ jsxRuntime.jsxs(Header$4, { children: [
9776
- /* @__PURE__ */ jsxRuntime.jsxs(HeaderLeft, { $disabled: disabled, children: [
9777
- 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" }),
9778
- /* @__PURE__ */ jsxRuntime.jsx(Title$2, { type: "h3", children: title })
9779
- ] }),
9780
- badgeText && /* @__PURE__ */ jsxRuntime.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
9781
- ] }),
9782
- /* @__PURE__ */ jsxRuntime.jsx(Content$3, { children: /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", children: description }) }),
9783
- (infoUrl || infoText) && /* @__PURE__ */ jsxRuntime.jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
9784
- /* @__PURE__ */ jsxRuntime.jsx(LinkText, { children: infoText }),
9785
- /* @__PURE__ */ jsxRuntime.jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
9786
- ] })
9787
- ] });
9788
- };
9789
9832
  const _Container = ({
9790
9833
  component,
9791
9834
  alignItems,
@@ -9947,7 +9990,7 @@ var __publicField = (obj, key, value) => {
9947
9990
  $size = "md",
9948
9991
  theme: theme2
9949
9992
  }) => theme2.click.card.primary.size.icon[$size].all);
9950
- const Content$2 = styledComponents.styled.div.withConfig({
9993
+ const Content$3 = styledComponents.styled.div.withConfig({
9951
9994
  componentId: "sc-2dguvi-2"
9952
9995
  })(["width:100%;display:flex;flex-direction:column;align-self:", ";gap:", ";flex:1;"], ({
9953
9996
  $alignContent = "center"
@@ -9991,7 +10034,7 @@ var __publicField = (obj, key, value) => {
9991
10034
  iconUrl ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, "aria-hidden": true }),
9992
10035
  title && /* @__PURE__ */ jsxRuntime.jsx(Title$2, { type: "h3", children: title })
9993
10036
  ] }),
9994
- (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: [
9995
10038
  description && /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted", align: convertCardAlignToTextAlign(alignContent ?? "start"), children: description }),
9996
10039
  children
9997
10040
  ] }),
@@ -10000,110 +10043,6 @@ var __publicField = (obj, key, value) => {
10000
10043
  ] });
10001
10044
  };
10002
10045
  const CardPrimary = withTopBadge(Card);
10003
- const Header$2 = styledComponents.styled.div.withConfig({
10004
- componentId: "sc-1qnbjoa-0"
10005
- })(["max-width:100%;gap:inherit;"]);
10006
- const Description = styledComponents.styled.div.withConfig({
10007
- componentId: "sc-1qnbjoa-1"
10008
- })(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
10009
- theme: theme2
10010
- }) => theme2.click.card.horizontal.space.gap);
10011
- const Wrapper$7 = styledComponents.styled.div.withConfig({
10012
- componentId: "sc-1qnbjoa-2"
10013
- })(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
10014
- theme: theme2,
10015
- $color,
10016
- $isSelected,
10017
- $disabled
10018
- }) => `
10019
- background: ${theme2.click.card.horizontal[$color].color.background.default};
10020
- color: ${theme2.click.card.horizontal[$color].color.title.default};
10021
- border-radius: ${theme2.click.card.horizontal.radii.all};
10022
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
10023
- padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
10024
- gap: ${theme2.click.card.horizontal.space.gap};
10025
- font: ${theme2.click.card.horizontal.typography.title.default};
10026
- ${Description} {
10027
- color: ${theme2.click.card.horizontal[$color].color.description.default};
10028
- font: ${theme2.click.card.horizontal.typography.description.default};
10029
- }
10030
- &:hover{
10031
- background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
10032
- color: ${theme2.click.card.horizontal[$color].color.title.hover};
10033
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
10034
- cursor: pointer;
10035
- font: ${theme2.click.card.horizontal.typography.title.hover};
10036
- ${Description} {
10037
- color: ${theme2.click.card.horizontal[$color].color.description.hover};
10038
- font: ${theme2.click.card.horizontal.typography.description.hover};
10039
- }
10040
- }
10041
-
10042
- &:active, &:focus, &:focus-within {
10043
- background-color: ${theme2.click.card.horizontal[$color].color.background.active};
10044
- color: ${theme2.click.card.horizontal[$color].color.title.active};
10045
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10046
- ${Description} {
10047
- color: ${theme2.click.card.horizontal[$color].color.description.active};
10048
- font: ${theme2.click.card.horizontal.typography.description.active};
10049
- }
10050
- }
10051
- ${$disabled ? `
10052
- pointer-events: none;
10053
- &,
10054
- &:hover,
10055
- &:active, &:focus, &:focus-within {
10056
- background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
10057
- color: ${theme2.click.card.horizontal[$color].color.title.disabled};
10058
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
10059
- cursor: not-allowed;
10060
- ${Description} {
10061
- color: ${theme2.click.card.horizontal[$color].color.description.disabled};
10062
- font: ${theme2.click.card.horizontal.typography.description.disabled};
10063
- }
10064
- },
10065
- &:active, &:focus, &:focus-within {
10066
- border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
10067
- }
10068
- ` : ""}
10069
- `);
10070
- const CardIcon$1 = styledComponents.styled(SvgImage).withConfig({
10071
- componentId: "sc-1qnbjoa-3"
10072
- })(["", ""], ({
10073
- theme: theme2
10074
- }) => `
10075
- height: ${theme2.click.card.horizontal.icon.size.all};
10076
- width: ${theme2.click.card.horizontal.icon.size.all};
10077
- `);
10078
- const ContentWrapper = styledComponents.styled.div.withConfig({
10079
- componentId: "sc-1qnbjoa-4"
10080
- })(["display:flex;flex-direction:column;width:100%;"]);
10081
- const CardHorizontal = ({
10082
- title,
10083
- icon,
10084
- description,
10085
- disabled = false,
10086
- isSelected,
10087
- children,
10088
- color = "default",
10089
- badgeText,
10090
- badgeState,
10091
- badgeIcon,
10092
- badgeIconDir,
10093
- ...props
10094
- }) => {
10095
- return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
10096
- icon && /* @__PURE__ */ jsxRuntime.jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
10097
- /* @__PURE__ */ jsxRuntime.jsxs(ContentWrapper, { children: [
10098
- title && /* @__PURE__ */ jsxRuntime.jsxs(Header$2, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
10099
- /* @__PURE__ */ jsxRuntime.jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
10100
- 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 }) })
10101
- ] }),
10102
- description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: description }),
10103
- children && /* @__PURE__ */ jsxRuntime.jsx(Description, { children })
10104
- ] })
10105
- ] });
10106
- };
10107
10046
  const Background = styledComponents.styled.div.withConfig({
10108
10047
  componentId: "sc-6jamj6-0"
10109
10048
  })(["", ""], ({
@@ -10119,7 +10058,7 @@ var __publicField = (obj, key, value) => {
10119
10058
  background: ${theme2.click.card.promotion.color.stroke.focus};
10120
10059
  }
10121
10060
  `);
10122
- const Wrapper$6 = styledComponents.styled.div.withConfig({
10061
+ const Wrapper$7 = styledComponents.styled.div.withConfig({
10123
10062
  componentId: "sc-6jamj6-1"
10124
10063
  })(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
10125
10064
  theme: theme2
@@ -10160,12 +10099,117 @@ var __publicField = (obj, key, value) => {
10160
10099
  ...props
10161
10100
  }) => {
10162
10101
  const [isVisible, setIsVisible] = React.useState(true);
10163
- 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: [
10164
10103
  /* @__PURE__ */ jsxRuntime.jsx(CardIcon, { name: icon, "aria-hidden": true }),
10165
10104
  /* @__PURE__ */ jsxRuntime.jsx(Text, { children: label }),
10166
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" }) })
10167
10106
  ] }) }) : null;
10168
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
+ };
10169
10213
  function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
10170
10214
  const ref = React.useRef({
10171
10215
  value,
@@ -14550,6 +14594,1088 @@ var __publicField = (obj, key, value) => {
14550
14594
  }, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
14551
14595
  ] });
14552
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
+ };
14553
15679
  const constructFromSymbol = Symbol.for("constructDateFrom");
14554
15680
  function constructFrom(date, value) {
14555
15681
  if (typeof date === "function")
@@ -14953,7 +16079,7 @@ var __publicField = (obj, key, value) => {
14953
16079
  [calendar, getBody, getHeaders, setNext, setPrev, viewType]
14954
16080
  );
14955
16081
  }
14956
- const Wrapper$4 = styledComponents.styled.div.withConfig({
16082
+ const Wrapper$3 = styledComponents.styled.div.withConfig({
14957
16083
  componentId: "sc-1pvd2nj-0"
14958
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;}", ""], ({
14959
16085
  theme: theme2,
@@ -15065,7 +16191,7 @@ var __publicField = (obj, key, value) => {
15065
16191
  }) => {
15066
16192
  return /* @__PURE__ */ jsxRuntime.jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
15067
16193
  /* @__PURE__ */ jsxRuntime.jsxs(FormElementContainer, { children: [
15068
- /* @__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 }),
15069
16195
  !!error2 && error2 !== true && /* @__PURE__ */ jsxRuntime.jsx(Error$1, { children: error2 })
15070
16196
  ] }),
15071
16197
  label && /* @__PURE__ */ jsxRuntime.jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
@@ -15589,14 +16715,14 @@ var __publicField = (obj, key, value) => {
15589
16715
  }) => {
15590
16716
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children });
15591
16717
  };
15592
- const Trigger$4 = styledComponents.styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
16718
+ const Trigger$3 = styledComponents.styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
15593
16719
  componentId: "sc-1wr6otn-0"
15594
16720
  })(["width:fit-content;background:transparent;border:none;cursor:pointer;"]);
15595
16721
  const DialogTrigger = ({
15596
16722
  children,
15597
16723
  ...props
15598
16724
  }) => {
15599
- return /* @__PURE__ */ jsxRuntime.jsx(Trigger$4, { ...props, children });
16725
+ return /* @__PURE__ */ jsxRuntime.jsx(Trigger$3, { ...props, children });
15600
16726
  };
15601
16727
  DialogTrigger.displayName = "DialogTrigger";
15602
16728
  Dialog.Trigger = DialogTrigger;
@@ -15655,10 +16781,10 @@ var __publicField = (obj, key, value) => {
15655
16781
  })(["font:", ";padding:0;margin:0;"], ({
15656
16782
  theme: theme2
15657
16783
  }) => theme2.click.dialog.typography.title.default);
15658
- const CloseButton$1 = ({
16784
+ const CloseButton = ({
15659
16785
  onClose
15660
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" }) }) });
15661
- const DialogContent$1 = ({
16787
+ const DialogContent = ({
15662
16788
  title,
15663
16789
  children,
15664
16790
  showClose,
@@ -15673,68 +16799,29 @@ var __publicField = (obj, key, value) => {
15673
16799
  /* @__PURE__ */ jsxRuntime.jsxs(ContentArea, { ...props, children: [
15674
16800
  /* @__PURE__ */ jsxRuntime.jsxs(TitleArea, { children: [
15675
16801
  /* @__PURE__ */ jsxRuntime.jsx(Title$1, { children: title }),
15676
- showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton$1, { onClose })
16802
+ showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClose })
15677
16803
  ] }),
15678
16804
  /* @__PURE__ */ jsxRuntime.jsx(Spacer, { size: "sm" }),
15679
16805
  children
15680
16806
  ] })
15681
16807
  ] });
15682
16808
  };
15683
- DialogContent$1.displayName = "DialogContent";
15684
- Dialog.Content = DialogContent$1;
15685
- const ActionsWrapper = styledComponents.styled.div.withConfig({
15686
- componentId: "sc-6eozxy-0"
15687
- })(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
15688
- const DialogContent = styledComponents.styled.div.withConfig({
15689
- componentId: "sc-6eozxy-1"
15690
- })(["overflow:hidden;display:flex;flex-direction:column;"]);
15691
- const ConfirmationDialog = ({
15692
- children,
15693
- disabled,
15694
- loading,
15695
- message,
15696
- onCancel,
15697
- onConfirm,
15698
- open: open2,
15699
- primaryActionLabel = "Confirm",
15700
- primaryActionType = "primary",
15701
- secondaryActionLabel = "Cancel",
15702
- showClose,
15703
- title,
15704
- ...props
15705
- }) => {
15706
- if (children && message) {
15707
- throw new Error("You can't pass children and message props at the same time");
15708
- }
15709
- return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: open2, onOpenChange: (open22) => {
15710
- !open22 && onCancel && onCancel();
15711
- }, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { as: Dialog.Content, title, showClose, ...props, children: [
15712
- /* @__PURE__ */ jsxRuntime.jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsxRuntime.jsx(Text, { children: message }) }),
15713
- /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "xl" }),
15714
- /* @__PURE__ */ jsxRuntime.jsxs(ActionsWrapper, { children: [
15715
- /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
15716
- /* @__PURE__ */ jsxRuntime.jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
15717
- if (onConfirm) {
15718
- onConfirm();
15719
- }
15720
- }, "data-testid": "confirm-action-button" })
15721
- ] })
15722
- ] }) });
15723
- };
16809
+ DialogContent.displayName = "DialogContent";
16810
+ Dialog.Content = DialogContent;
15724
16811
  const Flyout = ({
15725
16812
  modal = false,
15726
16813
  ...props
15727
16814
  }) => {
15728
16815
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, { modal, ...props });
15729
16816
  };
15730
- const Trigger$3 = ({
16817
+ const Trigger$2 = ({
15731
16818
  children,
15732
16819
  ...props
15733
16820
  }) => {
15734
16821
  return /* @__PURE__ */ jsxRuntime.jsx($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) });
15735
16822
  };
15736
- Trigger$3.displayName = "Flyout.Trigger";
15737
- Flyout.Trigger = Trigger$3;
16823
+ Trigger$2.displayName = "Flyout.Trigger";
16824
+ Flyout.Trigger = Trigger$2;
15738
16825
  const animationWidth = () => styledComponents.keyframes({
15739
16826
  from: {
15740
16827
  width: 0
@@ -15962,97 +17049,6 @@ var __publicField = (obj, key, value) => {
15962
17049
  ] }),
15963
17050
  label && /* @__PURE__ */ jsxRuntime.jsx(Label$1, { htmlFor: id, error: !!error2, children: label })
15964
17051
  ] });
15965
- const GridContainer$1 = ({
15966
- alignItems = "stretch",
15967
- alignContent = "stretch",
15968
- children,
15969
- columnGap,
15970
- gap,
15971
- gridAutoColumns,
15972
- gridAutoFlow,
15973
- gridAutoRows,
15974
- gridTemplateAreas,
15975
- gridTemplateColumns,
15976
- gridTemplateRows,
15977
- gridTemplate,
15978
- inline = false,
15979
- isResponsive = true,
15980
- justifyContent = "stretch",
15981
- justifyItems = "stretch",
15982
- rowGap,
15983
- height,
15984
- maxHeight,
15985
- minHeight,
15986
- fillWidth = true,
15987
- maxWidth,
15988
- minWidth,
15989
- overflow,
15990
- ...props
15991
- }) => {
15992
- 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 });
15993
- };
15994
- const Wrapper$3 = styledComponents.styled.div.withConfig({
15995
- componentId: "sc-r57kdn-0"
15996
- })(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
15997
- $alignItems = "stretch"
15998
- }) => $alignItems, ({
15999
- $alignContent = "stretch"
16000
- }) => $alignContent, ({
16001
- $inline
16002
- }) => $inline === true ? "inline-grid" : "grid", ({
16003
- $gridAutoColumns
16004
- }) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
16005
- $gridAutoFlow
16006
- }) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
16007
- $gridAutoRows
16008
- }) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
16009
- $gridTemplateAreas
16010
- }) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
16011
- $gridTemplateColumns
16012
- }) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
16013
- $gridTemplateRows
16014
- }) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
16015
- $gridTemplate
16016
- }) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
16017
- $justifyContent = "stretch"
16018
- }) => $justifyContent, ({
16019
- $justifyItems = "stretch"
16020
- }) => $justifyItems, ({
16021
- theme: theme2,
16022
- $gap,
16023
- $columnGap,
16024
- $rowGap
16025
- }) => `
16026
- gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
16027
- ${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
16028
- ${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
16029
- `, ({
16030
- $fillWidth,
16031
- $maxWidth,
16032
- $minWidth
16033
- }) => `
16034
- width: ${$fillWidth ? "100%" : "auto"};
16035
- ${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
16036
- ${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
16037
- `, ({
16038
- $height,
16039
- $maxHeight,
16040
- $minHeight
16041
- }) => `
16042
- ${typeof $height === "string" && `height: ${$height}`};
16043
- ${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
16044
- ${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
16045
- `, ({
16046
- $overflow
16047
- }) => `
16048
- ${typeof $overflow === "string" && `overflow: ${$overflow}`};
16049
- `, ({
16050
- theme: theme2
16051
- }) => theme2.breakpoint.sizes.md, ({
16052
- $isResponsive = true
16053
- }) => $isResponsive === true ? "1fr" : ({
16054
- $gridTemplateColumns
16055
- }) => $gridTemplateColumns || "auto");
16056
17052
  const InlineContainer = styledComponents.styled.span.withConfig({
16057
17053
  componentId: "sc-ugg5k0-0"
16058
17054
  })(["", ""], ({
@@ -16066,305 +17062,6 @@ var __publicField = (obj, key, value) => {
16066
17062
  padding: 0 ${theme2.click.codeInline.space.x};
16067
17063
  `);
16068
17064
  const InlineCodeBlock = (props) => /* @__PURE__ */ jsxRuntime.jsx(InlineContainer, { ...props });
16069
- const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
16070
- const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
16071
- $6cc32821e9371a1c$export$4027731b685e72eb
16072
- ]);
16073
- const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
16074
- const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
16075
- const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
16076
- const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
16077
- const [open1, setOpen] = React.useState(false);
16078
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16079
- const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
16080
- const handleOpenChange = React.useCallback((open2) => {
16081
- setOpen(open2);
16082
- handleOpenChangeProp(open2);
16083
- }, [
16084
- handleOpenChangeProp
16085
- ]);
16086
- return /* @__PURE__ */ React.createElement($1b0217ee4a91d156$var$ContextMenuProvider, {
16087
- scope: __scopeContextMenu,
16088
- open: open1,
16089
- onOpenChange: handleOpenChange,
16090
- modal
16091
- }, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
16092
- dir,
16093
- open: open1,
16094
- onOpenChange: handleOpenChange,
16095
- modal
16096
- }), children));
16097
- };
16098
- const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
16099
- const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16100
- const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
16101
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
16102
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16103
- const pointRef = React.useRef({
16104
- x: 0,
16105
- y: 0
16106
- });
16107
- const virtualRef = React.useRef({
16108
- getBoundingClientRect: () => DOMRect.fromRect({
16109
- width: 0,
16110
- height: 0,
16111
- ...pointRef.current
16112
- })
16113
- });
16114
- const longPressTimerRef = React.useRef(0);
16115
- const clearLongPress = React.useCallback(
16116
- () => window.clearTimeout(longPressTimerRef.current),
16117
- []
16118
- );
16119
- const handleOpen = (event) => {
16120
- pointRef.current = {
16121
- x: event.clientX,
16122
- y: event.clientY
16123
- };
16124
- context.onOpenChange(true);
16125
- };
16126
- React.useEffect(
16127
- () => clearLongPress,
16128
- [
16129
- clearLongPress
16130
- ]
16131
- );
16132
- React.useEffect(
16133
- () => void (disabled && clearLongPress()),
16134
- [
16135
- disabled,
16136
- clearLongPress
16137
- ]
16138
- );
16139
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
16140
- virtualRef
16141
- })), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
16142
- "data-state": context.open ? "open" : "closed",
16143
- "data-disabled": disabled ? "" : void 0
16144
- }, triggerProps, {
16145
- ref: forwardedRef,
16146
- style: {
16147
- WebkitTouchCallout: "none",
16148
- ...props.style
16149
- },
16150
- onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
16151
- clearLongPress();
16152
- handleOpen(event);
16153
- event.preventDefault();
16154
- }),
16155
- onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
16156
- clearLongPress();
16157
- longPressTimerRef.current = window.setTimeout(
16158
- () => handleOpen(event),
16159
- 700
16160
- );
16161
- })),
16162
- onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16163
- onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
16164
- onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
16165
- })));
16166
- });
16167
- const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
16168
- const { __scopeContextMenu, ...portalProps } = props;
16169
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16170
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
16171
- };
16172
- const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
16173
- const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16174
- const { __scopeContextMenu, ...contentProps } = props;
16175
- const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
16176
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16177
- const hasInteractedOutsideRef = React.useRef(false);
16178
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
16179
- ref: forwardedRef,
16180
- side: "right",
16181
- sideOffset: 2,
16182
- align: "start",
16183
- onCloseAutoFocus: (event) => {
16184
- var _props$onCloseAutoFoc;
16185
- (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
16186
- if (!event.defaultPrevented && hasInteractedOutsideRef.current)
16187
- event.preventDefault();
16188
- hasInteractedOutsideRef.current = false;
16189
- },
16190
- onInteractOutside: (event) => {
16191
- var _props$onInteractOuts;
16192
- (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
16193
- if (!event.defaultPrevented && !context.modal)
16194
- hasInteractedOutsideRef.current = true;
16195
- },
16196
- style: {
16197
- ...props.style,
16198
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16199
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16200
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16201
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16202
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16203
- }
16204
- }));
16205
- });
16206
- const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16207
- const { __scopeContextMenu, ...groupProps } = props;
16208
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16209
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
16210
- ref: forwardedRef
16211
- }));
16212
- });
16213
- const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16214
- const { __scopeContextMenu, ...itemProps } = props;
16215
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16216
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
16217
- ref: forwardedRef
16218
- }));
16219
- });
16220
- const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16221
- const { __scopeContextMenu, ...arrowProps } = props;
16222
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16223
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
16224
- ref: forwardedRef
16225
- }));
16226
- });
16227
- const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
16228
- const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
16229
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16230
- const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
16231
- prop: openProp,
16232
- defaultProp: defaultOpen,
16233
- onChange: onOpenChange
16234
- });
16235
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
16236
- open: open2,
16237
- onOpenChange: setOpen
16238
- }), children);
16239
- };
16240
- const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16241
- const { __scopeContextMenu, ...triggerItemProps } = props;
16242
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16243
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
16244
- ref: forwardedRef
16245
- }));
16246
- });
16247
- const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
16248
- const { __scopeContextMenu, ...subContentProps } = props;
16249
- const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
16250
- return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
16251
- ref: forwardedRef,
16252
- style: {
16253
- ...props.style,
16254
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
16255
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
16256
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
16257
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
16258
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
16259
- }
16260
- }));
16261
- });
16262
- function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
16263
- return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
16264
- }
16265
- const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
16266
- const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
16267
- const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
16268
- const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
16269
- const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
16270
- const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
16271
- const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
16272
- const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
16273
- const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
16274
- const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
16275
- const ContextMenu = (props) => /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
16276
- const ContextMenuTrigger$1 = React.forwardRef(({
16277
- disabled,
16278
- ...props
16279
- }, ref) => {
16280
- return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props }) });
16281
- });
16282
- ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
16283
- ContextMenu.Trigger = ContextMenuTrigger$1;
16284
- const ContextMenuSubTrigger = ({
16285
- icon,
16286
- iconDir,
16287
- children,
16288
- ...props
16289
- }) => {
16290
- return /* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
16291
- /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }),
16292
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "chevron-right" }) })
16293
- ] });
16294
- };
16295
- ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
16296
- ContextMenu.SubTrigger = ContextMenuSubTrigger;
16297
- const RightMenuContent = styledComponents.styled(GenericMenuPanel).withConfig({
16298
- componentId: "sc-8z6kye-0"
16299
- })(["flex-direction:column;z-index:1;", ";"], ({
16300
- $showArrow
16301
- }) => $showArrow ? `
16302
- &[data-side="bottom"] {
16303
- margin-top: -1px;
16304
- }
16305
- &[data-side="top"] {
16306
- margin-bottom: -1px;
16307
- }
16308
- &[data-side="left"] {
16309
- margin-right: -1px;
16310
- .popover-arrow {
16311
- margin-right: 1rem;
16312
- }
16313
- }
16314
- }
16315
- &[data-side="right"] {
16316
- margin-left: -1px;
16317
- .popover-arrow {
16318
- margin-left: 1rem;
16319
- }
16320
- }
16321
- ` : "");
16322
- const ContextMenuContent = ({
16323
- sub,
16324
- children,
16325
- showArrow,
16326
- ...props
16327
- }) => {
16328
- const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
16329
- return /* @__PURE__ */ jsxRuntime.jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntime.jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
16330
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, { className: "popover-arrow" }) }),
16331
- children
16332
- ] }) });
16333
- };
16334
- ContextMenuContent.displayName = "ContextMenuContent";
16335
- ContextMenu.Content = ContextMenuContent;
16336
- const RightMenuGroup = styledComponents.styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
16337
- componentId: "sc-8z6kye-1"
16338
- })(["width:100%;border-bottom:1px solid ", ";"], ({
16339
- theme: theme2
16340
- }) => theme2.click.genericMenu.item.color.stroke.default);
16341
- const ContextMenuGroup = (props) => {
16342
- return /* @__PURE__ */ jsxRuntime.jsx(RightMenuGroup, { ...props });
16343
- };
16344
- ContextMenuGroup.displayName = "ContextMenuGroup";
16345
- ContextMenu.Group = ContextMenuGroup;
16346
- const RightMenuSub = styledComponents.styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
16347
- componentId: "sc-8z6kye-2"
16348
- })(["border-bottom:1px solid ", ";"], ({
16349
- theme: theme2
16350
- }) => theme2.click.genericMenu.item.color.stroke.default);
16351
- const ContextMenuSub = ({
16352
- ...props
16353
- }) => {
16354
- return /* @__PURE__ */ jsxRuntime.jsx(RightMenuSub, { ...props });
16355
- };
16356
- ContextMenuSub.displayName = "ContextMenuSub";
16357
- ContextMenu.Sub = ContextMenuSub;
16358
- const ContextMenuItem = ({
16359
- icon,
16360
- iconDir,
16361
- children,
16362
- ...props
16363
- }) => {
16364
- return /* @__PURE__ */ jsxRuntime.jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir, children }) });
16365
- };
16366
- ContextMenuItem.displayName = "ContextMenuItem";
16367
- ContextMenu.Item = ContextMenuItem;
16368
17065
  function _inheritsLoose(subClass, superClass) {
16369
17066
  subClass.prototype = Object.create(superClass.prototype);
16370
17067
  subClass.prototype.constructor = subClass;
@@ -17461,9 +18158,12 @@ var __publicField = (obj, key, value) => {
17461
18158
  $selectionType,
17462
18159
  $height,
17463
18160
  $type = "body",
17464
- $showBorder
18161
+ $showBorder,
18162
+ $rowAutoHeight
17465
18163
  }) => `
17466
- height: ${$height}px;
18164
+ height: ${$rowAutoHeight ? "100%" : `${$height}px`};
18165
+ min-height: ${$rowAutoHeight ? "auto" : ""};
18166
+ overflow-y: ${$rowAutoHeight ? "auto" : ""};
17467
18167
  background: ${theme2.click.grid[$type].cell.color.background[$selectionType]};
17468
18168
  color: ${$type === "header" ? theme2.click.grid.header.cell.color.title[$selectionType] : theme2.click.grid.body.cell.color.text[$selectionType]};
17469
18169
  font: ${theme2.click.grid.cell.text.default};
@@ -17484,6 +18184,7 @@ var __publicField = (obj, key, value) => {
17484
18184
  ${$isLastColumn ? `
17485
18185
  border-right-color: ${theme2.click.grid[$type].cell.color.stroke[$isFocused ? "selectDirect" : $selectionType]};
17486
18186
  ` : "border-right: none;"}
18187
+ ${$rowAutoHeight && "border: none;"}
17487
18188
  `, ({
17488
18189
  theme: theme2,
17489
18190
  $isLastRow,
@@ -17491,8 +18192,9 @@ var __publicField = (obj, key, value) => {
17491
18192
  $selectionType,
17492
18193
  $type = "body",
17493
18194
  $isSelectedTop,
17494
- $isSelectedLeft
17495
- }) => $isSelectedTop || $isSelectedLeft || $selectionType === "selectDirect" && ($isLastRow || $isLastColumn) ? `
18195
+ $isSelectedLeft,
18196
+ $rowAutoHeight
18197
+ }) => $isSelectedTop || $isSelectedLeft || $selectionType === "selectDirect" && ($isLastRow || $isLastColumn) || $rowAutoHeight ? `
17496
18198
  &::before {
17497
18199
  content: "";
17498
18200
  position: absolute;
@@ -17504,6 +18206,7 @@ var __publicField = (obj, key, value) => {
17504
18206
  ${$isSelectedLeft ? `border-left: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
17505
18207
  ${$selectionType === "selectDirect" && $isLastRow ? `border-bottom: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
17506
18208
  ${$selectionType === "selectDirect" && $isLastColumn ? `border-right: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
18209
+ ${$rowAutoHeight && "border: none;"}
17507
18210
  }
17508
18211
  ` : "");
17509
18212
  const RowNumberColumnContainer = styledComponents.styled.div.withConfig({
@@ -17514,7 +18217,7 @@ var __publicField = (obj, key, value) => {
17514
18217
  }) => `
17515
18218
  top: ${$height}px;
17516
18219
  width: ${$width}px;
17517
- height: 100%;
18220
+ height: 100%
17518
18221
  `, ({
17519
18222
  $scrolledHorizontal,
17520
18223
  theme: theme2
@@ -17523,10 +18226,11 @@ var __publicField = (obj, key, value) => {
17523
18226
  componentId: "sc-7gbi4d-1"
17524
18227
  })(["position:absolute;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;", ""], ({
17525
18228
  $height,
17526
- $rowNumber
18229
+ $rowNumber,
18230
+ $rowAutoHeight
17527
18231
  }) => `
17528
18232
  top: ${$height * $rowNumber}px;
17529
- height: ${$height}px;
18233
+ height: ${$rowAutoHeight ? "100%" : `${$height}px`};
17530
18234
  `);
17531
18235
  const RowNumber = ({
17532
18236
  rowIndex,
@@ -17535,7 +18239,8 @@ var __publicField = (obj, key, value) => {
17535
18239
  isLastRow,
17536
18240
  isFirstRow,
17537
18241
  showBorder,
17538
- rowStart
18242
+ rowStart,
18243
+ rowAutoHeight
17539
18244
  }) => {
17540
18245
  const currentRowIndex = rowIndex + rowStart;
17541
18246
  const selectionType = getSelectionType({
@@ -17548,7 +18253,7 @@ var __publicField = (obj, key, value) => {
17548
18253
  type: "row"
17549
18254
  });
17550
18255
  const isSelectedTop = (topSelectionType === "selectDirect" || isSelected) && topSelectionType !== selectionType;
17551
- return /* @__PURE__ */ jsxRuntime.jsx(RowNumberCell, { $rowNumber: rowIndex, $height: rowHeight, children: /* @__PURE__ */ jsxRuntime.jsx(StyledCell, { $height: rowHeight, $isLastColumn: false, $selectionType: selectionType, $isFirstColumn: true, $type: "header", $isFirstRow: isFirstRow, $isFocused: false, $isLastRow: isLastRow, $isSelectedLeft: isSelected, $isSelectedTop: isSelectedTop, "data-selected": isSelected, "data-grid-row": currentRowIndex, "data-grid-column": -1, "data-testid": `header-cell-${currentRowIndex}-x`, $showBorder: showBorder, "data-align": "right", children: currentRowIndex }) });
18256
+ return /* @__PURE__ */ jsxRuntime.jsx(RowNumberCell, { $rowNumber: rowIndex, $height: rowHeight, $rowAutoHeight: rowAutoHeight, children: /* @__PURE__ */ jsxRuntime.jsx(StyledCell, { $height: rowHeight, $isLastColumn: false, $selectionType: selectionType, $isFirstColumn: true, $type: "header", $isFirstRow: isFirstRow, $isFocused: false, $isLastRow: isLastRow, $isSelectedLeft: isSelected, $isSelectedTop: isSelectedTop, $rowAutoHeight: rowAutoHeight, "data-selected": isSelected, "data-grid-row": currentRowIndex, "data-grid-column": -1, "data-testid": `header-cell-${currentRowIndex}-x`, $showBorder: showBorder, "data-align": "right", children: currentRowIndex }) });
17552
18257
  };
17553
18258
  const RowNumberColumn = ({
17554
18259
  minRow,
@@ -17561,11 +18266,12 @@ var __publicField = (obj, key, value) => {
17561
18266
  showHeader,
17562
18267
  scrolledHorizontal,
17563
18268
  rowStart = 0,
17564
- showBorder
18269
+ showBorder,
18270
+ rowAutoHeight
17565
18271
  }) => {
17566
- return /* @__PURE__ */ jsxRuntime.jsx(RowNumberColumnContainer, { $height: headerHeight, $width: rowWidth, $scrolledHorizontal: scrolledHorizontal, children: Array.from({
18272
+ return /* @__PURE__ */ jsxRuntime.jsx(RowNumberColumnContainer, { $height: headerHeight, $width: rowWidth, $scrolledHorizontal: scrolledHorizontal, $rowAutoHeight: rowAutoHeight, children: Array.from({
17567
18273
  length: maxRow - minRow + 1
17568
- }, (_, index2) => minRow + index2).map((rowIndex) => /* @__PURE__ */ jsxRuntime.jsx(RowNumber, { getSelectionType, rowHeight, rowIndex, isLastRow: rowIndex === rowCount, isFirstRow: !showHeader && rowIndex === 0, showBorder, rowStart }, `row-number-${rowIndex}`)) });
18274
+ }, (_, index2) => minRow + index2).map((rowIndex) => /* @__PURE__ */ jsxRuntime.jsx(RowNumber, { getSelectionType, rowHeight, rowIndex, isLastRow: rowIndex === rowCount, isFirstRow: !showHeader && rowIndex === 0, showBorder, rowStart, rowAutoHeight }, `row-number-${rowIndex}`)) });
17569
18275
  };
17570
18276
  function isObject$a(value) {
17571
18277
  var type = typeof value;
@@ -17947,7 +18653,7 @@ var __publicField = (obj, key, value) => {
17947
18653
  }) => $scrolledHorizontal ? `box-shadow: 0px 0 0px 1px ${theme2.click.grid.header.cell.color.stroke.default};` : "");
17948
18654
  const RowColumn = styledComponents.styled(StyledCell).withConfig({
17949
18655
  componentId: "sc-1oadqc8-4"
17950
- })(["width:100%;text-align:right;"]);
18656
+ })(["width:100%;text-align:right;overflow:hidden;"]);
17951
18657
  const Column = ({
17952
18658
  columnIndex,
17953
18659
  cell,
@@ -18376,7 +19082,9 @@ var __publicField = (obj, key, value) => {
18376
19082
  showRowNumber,
18377
19083
  showHeader,
18378
19084
  rowHeight,
18379
- rowStart
19085
+ rowStart,
19086
+ rowAutoHeight,
19087
+ updateRowHeight
18380
19088
  } = data;
18381
19089
  const currentRowIndex = rowIndex + rowStart;
18382
19090
  const {
@@ -18405,7 +19113,21 @@ var __publicField = (obj, key, value) => {
18405
19113
  const belowSelectionBorder = (selectionType === "selectDirect" || belowSelection === "selectDirect") && selectionType !== belowSelection;
18406
19114
  const selectionBorderLeft = rightOfSelectionBorder || rightOfFocus || isFocused;
18407
19115
  const selectionBorderTop = belowSelectionBorder || belowFocus || isFocused;
18408
- return /* @__PURE__ */ jsxRuntime.jsx("div", { style, "data-row": currentRowIndex, "data-column": columnIndex, children: /* @__PURE__ */ jsxRuntime.jsx(StyledCell, { as: CellData, rowIndex: currentRowIndex, columnIndex, type: "row-cell", "data-selected": isFocused || selectionType === "selectDirect", "data-focused": isFocused, $isSelectedTop: selectionBorderTop, $isSelectedLeft: selectionBorderLeft, $isFocused: isFocused, $isLastRow: rowCount - 1 === rowIndex, $isLastColumn: columnCount - 1 === columnIndex, $isFirstColumn: columnIndex === 0 && !showRowNumber, $isFirstRow: rowIndex === 0 && !showHeader, $selectionType: selectionType, $height: rowHeight, "data-grid-row": currentRowIndex, "data-grid-column": columnIndex, $showBorder: true, ...props }) });
19116
+ const cellRef = React.useRef(null);
19117
+ React.useEffect(() => {
19118
+ if (!rowAutoHeight) {
19119
+ return;
19120
+ }
19121
+ if (cellRef.current) {
19122
+ const height = cellRef.current.getBoundingClientRect().height;
19123
+ updateRowHeight(rowIndex, height);
19124
+ }
19125
+ }, [updateRowHeight, rowIndex, rowAutoHeight]);
19126
+ const styleWithHeight = {
19127
+ ...style,
19128
+ height: "auto"
19129
+ };
19130
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { style: styleWithHeight, "data-row": currentRowIndex, "data-column": columnIndex, ref: cellRef, children: /* @__PURE__ */ jsxRuntime.jsx(StyledCell, { as: CellData, rowIndex: currentRowIndex, columnIndex, type: "row-cell", "data-selected": isFocused || selectionType === "selectDirect", "data-focused": isFocused, $isSelectedTop: selectionBorderTop, $isSelectedLeft: selectionBorderLeft, $isFocused: isFocused, $isLastRow: rowCount - 1 === rowIndex, $isLastColumn: columnCount - 1 === columnIndex, $isFirstColumn: columnIndex === 0 && !showRowNumber, $isFirstRow: rowIndex === 0 && !showHeader, $selectionType: selectionType, $height: rowHeight, "data-grid-row": currentRowIndex, "data-grid-column": columnIndex, $showBorder: true, $rowAutoHeight: rowAutoHeight, ...props }) });
18409
19131
  }, areEqual);
18410
19132
  var reactDomServerLegacy_browser_production_min = {};
18411
19133
  /**
@@ -32615,6 +33337,7 @@ var __publicField = (obj, key, value) => {
32615
33337
  onContextMenu: onContextMenuProp,
32616
33338
  forwardedGridRef,
32617
33339
  onItemsRendered: onItemsRenderedProp,
33340
+ rowAutoHeight,
32618
33341
  ...props
32619
33342
  }, forwardedRef) => {
32620
33343
  const [focus, setFocus] = React.useState(focusProp ?? {
@@ -32658,6 +33381,25 @@ var __publicField = (obj, key, value) => {
32658
33381
  }
32659
33382
  }
32660
33383
  }, [cell, columnCount, focus, focusProp, rowCount, selection, showToast, onCopyCallback]);
33384
+ const rowHeightsRef = React.useRef(/* @__PURE__ */ new Map());
33385
+ const getRowHeight = React.useCallback((index2) => {
33386
+ if (rowAutoHeight && rowHeightsRef.current.get(index2)) {
33387
+ return rowHeightsRef.current.get(index2) + rowHeight;
33388
+ }
33389
+ return rowHeight;
33390
+ }, [rowHeight, rowAutoHeight]);
33391
+ const updateRowHeight = React.useCallback((rowIndex, height) => {
33392
+ if (!rowAutoHeight) {
33393
+ return;
33394
+ }
33395
+ const prevHeight = rowHeightsRef.current.get(rowIndex) ?? 0;
33396
+ if (height > prevHeight) {
33397
+ rowHeightsRef.current.set(rowIndex, height);
33398
+ if (gridRef.current) {
33399
+ gridRef.current.resetAfterRowIndex(rowIndex);
33400
+ }
33401
+ }
33402
+ }, [rowAutoHeight]);
32661
33403
  const customOnCopy = React.useMemo(() => {
32662
33404
  const result = async () => {
32663
33405
  if (onCopyProp) {
@@ -32821,7 +33563,10 @@ var __publicField = (obj, key, value) => {
32821
33563
  rowHeight,
32822
33564
  headerHeight,
32823
33565
  rowNumberWidth,
32824
- rowStart
33566
+ rowStart,
33567
+ rowAutoHeight,
33568
+ updateRowHeight,
33569
+ getRowHeight
32825
33570
  };
32826
33571
  const InnerElementType = React.forwardRef(({
32827
33572
  children,
@@ -32830,7 +33575,7 @@ var __publicField = (obj, key, value) => {
32830
33575
  const [minRow, maxRow, minColumn, maxColumn] = getRenderedCursor(children);
32831
33576
  return /* @__PURE__ */ jsxRuntime.jsxs(GridContainer, { ...containerProps, className: `sticky-grid__container grid-outer ${props.className ?? ""}`, children: [
32832
33577
  /* @__PURE__ */ jsxRuntime.jsx(GridDataContainer, { $top: showHeader ? headerHeight : 0, $left: showRowNumber ? rowNumberWidth : 0, ref, children }),
32833
- showRowNumber && /* @__PURE__ */ jsxRuntime.jsx(RowNumberColumn, { scrolledHorizontal, minRow, maxRow, rowHeight, headerHeight, rowWidth: rowNumberWidth, rowCount, getSelectionType, showHeader, rowStart, showBorder }),
33578
+ showRowNumber && /* @__PURE__ */ jsxRuntime.jsx(RowNumberColumn, { scrolledHorizontal, minRow, maxRow, rowHeight, headerHeight, rowWidth: rowNumberWidth, rowCount, getSelectionType, showHeader, rowStart, showBorder, rowAutoHeight }),
32834
33579
  showHeader && /* @__PURE__ */ jsxRuntime.jsx(Header, { scrolledVertical, scrolledHorizontal, showRowNumber, minColumn, maxColumn, height: headerHeight, getColumnWidth: columnWidth, cell, rowNumberWidth, getSelectionType, columnCount, onColumnResize, getColumnHorizontalPosition, getResizerPosition, showBorder, resizingState })
32835
33580
  ] });
32836
33581
  });
@@ -33083,11 +33828,16 @@ var __publicField = (obj, key, value) => {
33083
33828
  const width = columnWidth(args.columnIndex);
33084
33829
  return /* @__PURE__ */ jsxRuntime.jsx(Cell, { ...args, width });
33085
33830
  };
33831
+ React.useEffect(() => {
33832
+ if (gridRef.current) {
33833
+ gridRef.current.resetAfterRowIndex(0);
33834
+ }
33835
+ }, [rowCount, columnCount]);
33086
33836
  return /* @__PURE__ */ jsxRuntime.jsxs(ContextMenu, { modal: false, onOpenChange: setContextMenuOpen, children: [
33087
33837
  /* @__PURE__ */ jsxRuntime.jsx(ContextMenuTrigger, { as: ContextMenu.Trigger, ref: mergeRefs([forwardedRef, containerRef]), tabIndex: 0, onMouseDown, onMouseMove, onKeyDown, onPointerDown, onPointerUp, onPointerLeave: setPointerCapture, onPointerEnter: setPointerCapture, onContextMenu, $rounded: rounded, $height: autoHeight ? rowCount * rowHeight + (showHeader ? headerHeight : 0) + elementBorderRef.current.scrollBarHeight : void 0, $showBorder: showBorder, children: /* @__PURE__ */ jsxRuntime.jsx(AutoSizer, { onResize, children: ({
33088
33838
  height,
33089
33839
  width
33090
- }) => /* @__PURE__ */ jsxRuntime.jsx(VariableSizeGrid, { ref: forwardedGridRef ? mergeRefs([forwardedGridRef, gridRef]) : gridRef, height, width, columnCount, rowHeight: () => rowHeight, useIsScrolling, innerElementType: InnerElementType, itemData: data, initialScrollTop: focus.row < rowStart ? focus.row * rowHeight : (focus.row - rowStart) * rowHeight, initialScrollLeft: getColumnHorizontalPosition(focus.column), columnWidth, rowCount, onScroll, outerRef, outerElementType: OuterElementType, onItemsRendered, ...props, children: CellWithWidth }) }) }),
33840
+ }) => /* @__PURE__ */ jsxRuntime.jsx(VariableSizeGrid, { ref: forwardedGridRef ? mergeRefs([forwardedGridRef, gridRef]) : gridRef, height, width, columnCount, rowHeight: getRowHeight, useIsScrolling, innerElementType: InnerElementType, itemData: data, initialScrollTop: focus.row < rowStart ? focus.row * rowHeight : (focus.row - rowStart) * rowHeight, initialScrollLeft: getColumnHorizontalPosition(focus.column), columnWidth, rowCount, onScroll, outerRef, outerElementType: OuterElementType, onItemsRendered, ...props, children: CellWithWidth }) }) }),
33091
33841
  /* @__PURE__ */ jsxRuntime.jsx(ContextMenu.Content, { children: menuOptions.map((option, index2) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenu.Item, { onSelect: option.onSelect, children: option.label }, `grid-${index2}`)) })
33092
33842
  ] });
33093
33843
  });
@@ -33322,14 +34072,14 @@ var __publicField = (obj, key, value) => {
33322
34072
  }) => {
33323
34073
  return /* @__PURE__ */ jsxRuntime.jsx($cef8881cdc69808e$export$be92b6f5f03c0fe9, { ...props, children });
33324
34074
  };
33325
- const Trigger$2 = styledComponents.styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
34075
+ const Trigger$1 = styledComponents.styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
33326
34076
  componentId: "sc-1ect7b6-0"
33327
34077
  })(["width:fit-content;"]);
33328
34078
  const HoverCardTrigger = ({
33329
34079
  children,
33330
34080
  ...props
33331
34081
  }) => {
33332
- return /* @__PURE__ */ jsxRuntime.jsx(Trigger$2, { ...props, children });
34082
+ return /* @__PURE__ */ jsxRuntime.jsx(Trigger$1, { ...props, children });
33333
34083
  };
33334
34084
  HoverCardTrigger.displayName = "HoverCardTrigger";
33335
34085
  HoverCard.Trigger = HoverCardTrigger;
@@ -33347,25 +34097,6 @@ var __publicField = (obj, key, value) => {
33347
34097
  };
33348
34098
  HoverCardContent.displayName = "HoverCardContent";
33349
34099
  HoverCard.Content = HoverCardContent;
33350
- 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:", ";}"], ({
33351
- $size,
33352
- $weight = "normal",
33353
- theme: theme2
33354
- }) => theme2.typography.styles.product.text[$weight][$size], ({
33355
- theme: theme2
33356
- }) => theme2.click.global.color.text.link.default, ({
33357
- $size,
33358
- theme: theme2
33359
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33360
- $size,
33361
- theme: theme2
33362
- }) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
33363
- theme: theme2
33364
- }) => theme2.click.global.color.text.link.hover, ({
33365
- theme: theme2
33366
- }) => theme2.transition.default, ({
33367
- theme: theme2
33368
- }) => theme2.click.global.color.text.link.default);
33369
34100
  const CuiLink = styledComponents.styled.a.withConfig({
33370
34101
  componentId: "sc-1bwz77u-0"
33371
34102
  })(["", ""], linkStyles);
@@ -33436,71 +34167,6 @@ var __publicField = (obj, key, value) => {
33436
34167
  /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: togglePasswordViewer, $show: value.length > 0, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: viewPassword ? "eye-closed" : "eye", size: "md" }) })
33437
34168
  ] });
33438
34169
  });
33439
- const Popover = ({
33440
- children,
33441
- ...props
33442
- }) => {
33443
- return /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
33444
- };
33445
- const Trigger$1 = styledComponents.styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
33446
- componentId: "sc-1dii14g-0"
33447
- })(["width:fit-content;font:inherit;color:inherit;background:inherit;border:none;"]);
33448
- const PopoverTrigger = ({
33449
- anchor,
33450
- children,
33451
- ...props
33452
- }) => {
33453
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
33454
- /* @__PURE__ */ jsxRuntime.jsx(Trigger$1, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }),
33455
- anchor && /* @__PURE__ */ jsxRuntime.jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
33456
- ] });
33457
- };
33458
- PopoverTrigger.displayName = "PopoverTrigger";
33459
- Popover.Trigger = PopoverTrigger;
33460
- const MenuPanel = styledComponents.styled(GenericMenuPanel).withConfig({
33461
- componentId: "sc-1dii14g-1"
33462
- })(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
33463
- theme: theme2
33464
- }) => theme2.click.popover.space.y, ({
33465
- theme: theme2
33466
- }) => theme2.click.popover.space.x, ({
33467
- theme: theme2
33468
- }) => theme2.click.popover.color.panel.background.default, ({
33469
- theme: theme2
33470
- }) => theme2.click.popover.color.panel.stroke.default, ({
33471
- theme: theme2
33472
- }) => theme2.click.popover.radii.all, ({
33473
- theme: theme2
33474
- }) => theme2.click.popover.shadow.default, ({
33475
- $showClose
33476
- }) => $showClose ? "padding-top: 1rem;" : "");
33477
- const CloseButton = styledComponents.styled(EmptyButton$1).withConfig({
33478
- componentId: "sc-1dii14g-2"
33479
- })(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
33480
- theme: theme2
33481
- }) => theme2.click.popover.space.y, ({
33482
- theme: theme2
33483
- }) => theme2.click.popover.space.x, ({
33484
- theme: theme2
33485
- }) => theme2.click.popover.icon.size.width, ({
33486
- theme: theme2
33487
- }) => theme2.click.popover.icon.size.height);
33488
- const PopoverContent = ({
33489
- children,
33490
- showArrow,
33491
- showClose,
33492
- forceMount,
33493
- container,
33494
- ...props
33495
- }) => {
33496
- 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: [
33497
- showClose && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross" }) }),
33498
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsxRuntime.jsx(PopoverArrow, {}) }),
33499
- children
33500
- ] }) });
33501
- };
33502
- PopoverContent.displayName = "PopoverContent";
33503
- Popover.Content = PopoverContent;
33504
34170
  const CustomSelect = styledComponents.styled.div.withConfig({
33505
34171
  componentId: "sc-dicnqe-0"
33506
34172
  })(["width:150px;"]);
@@ -34799,8 +35465,8 @@ var __publicField = (obj, key, value) => {
34799
35465
  }
34800
35466
  animationStates = [];
34801
35467
  },
34802
- animate: function animate(target, currentRect, toRect, duration) {
34803
- if (duration) {
35468
+ animate: function animate(target, currentRect, toRect, duration2) {
35469
+ if (duration2) {
34804
35470
  css(target, "transition", "");
34805
35471
  css(target, "transform", "");
34806
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);
@@ -34808,7 +35474,7 @@ var __publicField = (obj, key, value) => {
34808
35474
  target.animatingY = !!translateY;
34809
35475
  css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
34810
35476
  this.forRepaintDummy = repaint(target);
34811
- 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 : ""));
34812
35478
  css(target, "transform", "translate3d(0,0,0)");
34813
35479
  typeof target.animated === "number" && clearTimeout(target.animated);
34814
35480
  target.animated = setTimeout(function() {
@@ -34817,7 +35483,7 @@ var __publicField = (obj, key, value) => {
34817
35483
  target.animated = false;
34818
35484
  target.animatingX = false;
34819
35485
  target.animatingY = false;
34820
- }, duration);
35486
+ }, duration2);
34821
35487
  }
34822
35488
  }
34823
35489
  };
@@ -40185,7 +40851,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40185
40851
  ]);
40186
40852
  const [$054eb8030ebde76e$var$ToastProviderProvider, $054eb8030ebde76e$var$useToastProviderContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$PROVIDER_NAME);
40187
40853
  const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
40188
- 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;
40189
40855
  const [viewport, setViewport] = React.useState(null);
40190
40856
  const [toastCount, setToastCount] = React.useState(0);
40191
40857
  const isFocusedToastEscapeKeyDownRef = React.useRef(false);
@@ -40195,7 +40861,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40195
40861
  }, /* @__PURE__ */ React.createElement($054eb8030ebde76e$var$ToastProviderProvider, {
40196
40862
  scope: __scopeToast,
40197
40863
  label,
40198
- duration,
40864
+ duration: duration2,
40199
40865
  swipeDirection,
40200
40866
  swipeThreshold,
40201
40867
  toastCount,
@@ -40482,12 +41148,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40482
41148
  (_context$viewport2 = context.viewport) === null || _context$viewport2 === void 0 || _context$viewport2.focus();
40483
41149
  onClose();
40484
41150
  });
40485
- const startTimer = React.useCallback((duration) => {
40486
- if (!duration || duration === Infinity)
41151
+ const startTimer = React.useCallback((duration2) => {
41152
+ if (!duration2 || duration2 === Infinity)
40487
41153
  return;
40488
41154
  window.clearTimeout(closeTimerRef.current);
40489
41155
  closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
40490
- closeTimerRef.current = window.setTimeout(handleClose, duration);
41156
+ closeTimerRef.current = window.setTimeout(handleClose, duration2);
40491
41157
  }, [
40492
41158
  handleClose
40493
41159
  ]);
@@ -40946,7 +41612,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40946
41612
  title,
40947
41613
  description,
40948
41614
  actions = [],
40949
- duration,
41615
+ duration: duration2,
40950
41616
  onClose
40951
41617
  }) => {
40952
41618
  let iconName = "";
@@ -40957,7 +41623,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
40957
41623
  } else if (type && ["danger", "warning"].includes(type)) {
40958
41624
  iconName = "warning";
40959
41625
  }
40960
- return /* @__PURE__ */ jsxRuntime.jsxs(ToastRoot, { onOpenChange: onClose, duration, children: [
41626
+ return /* @__PURE__ */ jsxRuntime.jsxs(ToastRoot, { onOpenChange: onClose, duration: duration2, children: [
40961
41627
  /* @__PURE__ */ jsxRuntime.jsxs(ToastHeader, { children: [
40962
41628
  iconName.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ToastIcon, { name: iconName, $type: type }),
40963
41629
  /* @__PURE__ */ jsxRuntime.jsx(Title, { children: title }),
@@ -50318,6 +50984,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
50318
50984
  exports2.Container = Container;
50319
50985
  exports2.ContextMenu = ContextMenu;
50320
50986
  exports2.DangerAlert = DangerAlert;
50987
+ exports2.DateDetails = DateDetails;
50321
50988
  exports2.DatePicker = DatePicker;
50322
50989
  exports2.Dialog = Dialog;
50323
50990
  exports2.Dropdown = Dropdown;