@rovula/ui 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/cjs/bundle.css +14 -0
  2. package/dist/cjs/bundle.js +1 -1
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/Button/Button.d.ts +14 -3
  5. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +8 -6
  6. package/dist/cjs/types/components/DataTable/DataTable.d.ts +14 -0
  7. package/dist/cjs/types/components/DataTable/DataTable.stories.d.ts +19 -0
  8. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +29 -3
  9. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +31 -30
  10. package/dist/cjs/types/components/Label/Label.stories.d.ts +1 -1
  11. package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +1 -1
  12. package/dist/cjs/types/components/Text/Text.d.ts +3 -3
  13. package/dist/cjs/types/components/Text/Text.stories.d.ts +3 -9
  14. package/dist/cjs/types/components/TextInput/TextInput.d.ts +20 -2
  15. package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +28 -1
  16. package/dist/cjs/types/components/ui/table.d.ts +10 -0
  17. package/dist/cjs/types/index.d.ts +3 -0
  18. package/dist/components/Button/Button.js +4 -3
  19. package/dist/components/DataTable/DataTable.js +32 -0
  20. package/dist/components/DataTable/DataTable.stories.js +66 -0
  21. package/dist/components/Dropdown/Dropdown.js +15 -5
  22. package/dist/components/Dropdown/Dropdown.stories.js +48 -0
  23. package/dist/components/Text/Text.js +3 -2
  24. package/dist/components/TextInput/TextInput.js +5 -7
  25. package/dist/components/TextInput/TextInput.stories.js +22 -0
  26. package/dist/components/ui/table.js +66 -0
  27. package/dist/esm/bundle.css +14 -0
  28. package/dist/esm/bundle.js +1 -1
  29. package/dist/esm/bundle.js.map +1 -1
  30. package/dist/esm/types/components/Button/Button.d.ts +14 -3
  31. package/dist/esm/types/components/Button/Buttons.stories.d.ts +8 -6
  32. package/dist/esm/types/components/DataTable/DataTable.d.ts +14 -0
  33. package/dist/esm/types/components/DataTable/DataTable.stories.d.ts +19 -0
  34. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +29 -3
  35. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +31 -30
  36. package/dist/esm/types/components/Label/Label.stories.d.ts +1 -1
  37. package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +1 -1
  38. package/dist/esm/types/components/Text/Text.d.ts +3 -3
  39. package/dist/esm/types/components/Text/Text.stories.d.ts +3 -9
  40. package/dist/esm/types/components/TextInput/TextInput.d.ts +20 -2
  41. package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +28 -1
  42. package/dist/esm/types/components/ui/table.d.ts +10 -0
  43. package/dist/esm/types/index.d.ts +3 -0
  44. package/dist/index.d.ts +61 -7
  45. package/dist/src/theme/global.css +18 -0
  46. package/package.json +2 -1
  47. package/src/components/Button/Button.tsx +47 -39
  48. package/src/components/DataTable/DataTable.stories.tsx +76 -0
  49. package/src/components/DataTable/DataTable.tsx +105 -0
  50. package/src/components/Dropdown/Dropdown.stories.tsx +87 -3
  51. package/src/components/Dropdown/Dropdown.tsx +147 -109
  52. package/src/components/Text/Text.tsx +21 -19
  53. package/src/components/TextInput/TextInput.stories.tsx +46 -1
  54. package/src/components/TextInput/TextInput.tsx +7 -7
  55. package/src/components/ui/table.tsx +117 -0
  56. package/src/index.ts +5 -0
@@ -10,7 +10,10 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useRef } from "react";
13
14
  import Dropdown from "./Dropdown";
15
+ import Button from "../Button/Button";
16
+ import { cn } from "@/utils/cn";
14
17
  // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
15
18
  var meta = {
16
19
  title: "Components/Dropdown",
@@ -41,3 +44,48 @@ export var Default = {
41
44
  return (_jsxs("div", { className: "flex flex-row gap-4 w-full", children: [_jsx(Dropdown, __assign({ id: "1", size: "lg", options: options }, args)), _jsx(Dropdown, __assign({ id: "2", size: "md", options: options }, args)), _jsx(Dropdown, __assign({ id: "3", size: "sm", options: options }, args))] }));
42
45
  },
43
46
  };
47
+ var DropdownWithRef = function (props) {
48
+ var inputRef = useRef(null);
49
+ return (_jsx(Dropdown, __assign({ id: "1", size: "lg" }, props, { ref: inputRef, labelClassName: "peer-focus:bg-red-500", onKeyDown: function (e) {
50
+ var _a, _b;
51
+ if (e.code === "Enter") {
52
+ (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur) === null || _b === void 0 ? void 0 : _b.call(_a);
53
+ }
54
+ } })));
55
+ };
56
+ export var WithRef = {
57
+ args: {
58
+ label: "Choose an option:",
59
+ fullwidth: true,
60
+ options: options,
61
+ filterMode: true,
62
+ },
63
+ render: function (args) {
64
+ console.log("args ", args);
65
+ var props = __assign({}, args);
66
+ return (_jsxs("div", { className: "flex flex-row gap-4 w-full", children: [_jsx(DropdownWithRef, __assign({ id: "1", size: "lg", options: options }, args)), "\\"] }));
67
+ },
68
+ };
69
+ var customOptions = new Array(100).fill("").map(function (__, index) { return ({
70
+ value: "option".concat(index + 1),
71
+ label: "Option ".concat(index + 1),
72
+ renderLabel: function (config) {
73
+ return (_jsxs("div", { className: cn(config, "w-full flex justify-between"), onMouseDown: config.handleOnClick, children: [_jsx("span", { children: "Test custom" }), _jsx(Button, { onMouseDown: function (e) {
74
+ // e.stopPropagation();
75
+ alert("SSS");
76
+ }, children: "Add action" })] }));
77
+ },
78
+ }); });
79
+ export var CustomOption = {
80
+ args: {
81
+ label: "Choose an option:",
82
+ fullwidth: true,
83
+ options: customOptions,
84
+ filterMode: true,
85
+ },
86
+ render: function (args) {
87
+ console.log("args ", args);
88
+ var props = __assign({}, args);
89
+ return (_jsxs("div", { className: "flex flex-row gap-4 w-full", children: [_jsx(DropdownWithRef, __assign({ id: "1", size: "lg", options: options }, args)), "\\"] }));
90
+ },
91
+ };
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- var Text = function (_a) {
2
+ import { forwardRef } from "react";
3
+ var Text = forwardRef(function (_a) {
3
4
  var _b = _a.variant, variant = _b === void 0 ? "body1" : _b, _c = _a.tag, Tag = _c === void 0 ? "p" : _c, children = _a.children, className = _a.className, color = _a.color, style = _a.style;
4
5
  return (_jsx(Tag, { className: "typography-".concat(variant, " text-").concat(color, " ").concat(className), style: style, children: children }));
5
- };
6
+ });
6
7
  export default Text;
@@ -23,10 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { forwardRef, useImperativeHandle, useRef, } from "react";
25
25
  import { helperTextVariant, iconVariant, iconWrapperVariant, inputVariant, labelVariant, } from "./TextInput.styles";
26
- import { twMerge } from "tailwind-merge";
27
26
  import { XCircleIcon, ExclamationCircleIcon } from "@heroicons/react/16/solid";
28
- var TextInput = forwardRef(function (_a, ref) {
29
- var id = _a.id, label = _a.label, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.rounded, rounded = _c === void 0 ? "normal" : _c, _d = _a.variant, variant = _d === void 0 ? "outline" : _d, _e = _a.type, type = _e === void 0 ? "text" : _e, helperText = _a.helperText, errorMessage = _a.errorMessage, _f = _a.fullwidth, fullwidth = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, _h = _a.error, error = _h === void 0 ? false : _h, _j = _a.required, required = _j === void 0 ? true : _j, _k = _a.hasClearIcon, hasClearIcon = _k === void 0 ? true : _k, endIcon = _a.endIcon, props = __rest(_a, ["id", "label", "size", "rounded", "variant", "type", "helperText", "errorMessage", "fullwidth", "disabled", "error", "required", "hasClearIcon", "endIcon"]);
27
+ import { cn } from "@/utils/cn";
28
+ export var TextInput = forwardRef(function (_a, ref) {
29
+ var id = _a.id, label = _a.label, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.rounded, rounded = _c === void 0 ? "normal" : _c, _d = _a.variant, variant = _d === void 0 ? "outline" : _d, _e = _a.type, type = _e === void 0 ? "text" : _e, helperText = _a.helperText, errorMessage = _a.errorMessage, _f = _a.fullwidth, fullwidth = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, _h = _a.error, error = _h === void 0 ? false : _h, _j = _a.required, required = _j === void 0 ? true : _j, _k = _a.hasClearIcon, hasClearIcon = _k === void 0 ? true : _k, endIcon = _a.endIcon, labelClassName = _a.labelClassName, props = __rest(_a, ["id", "label", "size", "rounded", "variant", "type", "helperText", "errorMessage", "fullwidth", "disabled", "error", "required", "hasClearIcon", "endIcon", "labelClassName"]);
30
30
  var inputRef = useRef(null);
31
31
  var _id = id || "".concat(type, "-").concat(label, "-input");
32
32
  var inputClassname = inputVariant({
@@ -46,14 +46,12 @@ var TextInput = forwardRef(function (_a, ref) {
46
46
  var helperTextClassname = helperTextVariant({ size: size, error: error, disabled: disabled });
47
47
  var iconWrapperClassname = iconWrapperVariant({ size: size });
48
48
  var iconClassname = iconVariant({ size: size });
49
- useImperativeHandle(ref, function () { return ({
50
- clearInput: handleClearInput,
51
- }); });
49
+ useImperativeHandle(ref, function () { return inputRef === null || inputRef === void 0 ? void 0 : inputRef.current; });
52
50
  var handleClearInput = function () {
53
51
  if (inputRef.current) {
54
52
  inputRef.current.value = "";
55
53
  }
56
54
  };
57
- return (_jsxs("div", { className: "inline-flex flex-col ".concat(fullwidth ? "w-full" : ""), children: [_jsxs("div", { className: "relative", children: [_jsx("input", __assign({}, props, { placeholder: " ", ref: inputRef, type: type, id: _id, disabled: disabled, className: twMerge(inputClassname, props.className) })), hasClearIcon && (_jsx("div", { className: iconWrapperClassname, children: _jsx(XCircleIcon, { type: "button", className: iconClassname, onMouseDown: handleClearInput }) })), endIcon, _jsxs("label", { htmlFor: _id, className: labelClassname, children: [label, " ", required && _jsx("span", { className: "text-error", children: "*" })] })] }), (errorMessage || helperText) && (_jsxs("span", { className: helperTextClassname, children: [_jsx(ExclamationCircleIcon, { width: 16, height: 16, className: error ? "fill-error" : "" }), " ", errorMessage || helperText] }))] }));
55
+ return (_jsxs("div", { className: "inline-flex flex-col ".concat(fullwidth ? "w-full" : ""), children: [_jsxs("div", { className: "relative", children: [_jsx("input", __assign({}, props, { placeholder: " ", ref: inputRef, type: type, id: _id, disabled: disabled, className: cn(inputClassname, props.className) })), hasClearIcon && (_jsx("div", { className: iconWrapperClassname, children: _jsx(XCircleIcon, { type: "button", className: iconClassname, onMouseDown: handleClearInput }) })), endIcon, _jsxs("label", { htmlFor: _id, className: cn(labelClassname, labelClassName), children: [label, " ", required && _jsx("span", { className: "text-error", children: "*" })] })] }), (errorMessage || helperText) && (_jsxs("span", { className: helperTextClassname, children: [_jsx(ExclamationCircleIcon, { width: 16, height: 16, className: error ? "fill-error" : "" }), " ", errorMessage || helperText] }))] }));
58
56
  });
59
57
  export default TextInput;
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useRef } from "react";
13
14
  import TextInput from "./TextInput";
14
15
  // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
15
16
  var meta = {
@@ -37,3 +38,24 @@ export var Default = {
37
38
  return (_jsxs("div", { className: "flex flex-row gap-4 w-full", children: [_jsx(TextInput, __assign({ id: "1", size: "lg" }, args)), _jsx(TextInput, __assign({ id: "2", size: "md" }, args)), _jsx(TextInput, __assign({ id: "3", size: "sm" }, args))] }));
38
39
  },
39
40
  };
41
+ var InputWithRef = function (props) {
42
+ var inputRef = useRef(null);
43
+ return (_jsx(TextInput, __assign({ id: "1", size: "lg" }, props, { ref: inputRef, labelClassName: "peer-focus:bg-red-500", onKeyDown: function (e) {
44
+ var _a, _b;
45
+ if (e.code === "Enter") {
46
+ (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur) === null || _b === void 0 ? void 0 : _b.call(_a);
47
+ }
48
+ } })));
49
+ };
50
+ export var CustomLabel = {
51
+ args: {
52
+ label: "Lorem Ipsum",
53
+ // value: "Lorem Ipsum",
54
+ fullwidth: true,
55
+ },
56
+ render: function (args) {
57
+ console.log("args ", args);
58
+ var props = __assign({}, args);
59
+ return (_jsxs("div", { className: "flex flex-row gap-4 w-full", children: [_jsx(TextInput, __assign({ id: "1", size: "lg" }, args, { labelClassName: "peer-focus:bg-red-500" })), _jsx(InputWithRef, __assign({ id: "2", size: "md" }, args)), _jsx(TextInput, __assign({ id: "3", size: "sm" }, args))] }));
60
+ },
61
+ };
@@ -0,0 +1,66 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import * as React from "react";
25
+ import { cn } from "@/utils/cn";
26
+ var Table = React.forwardRef(function (_a, ref) {
27
+ var className = _a.className, props = __rest(_a, ["className"]);
28
+ return (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", __assign({ ref: ref, className: cn("w-full caption-bottom text-sm", className) }, props)) }));
29
+ });
30
+ Table.displayName = "Table";
31
+ var TableHeader = React.forwardRef(function (_a, ref) {
32
+ var className = _a.className, props = __rest(_a, ["className"]);
33
+ return (_jsx("thead", __assign({ ref: ref, className: cn("[&_tr]:border-b", className) }, props)));
34
+ });
35
+ TableHeader.displayName = "TableHeader";
36
+ var TableBody = React.forwardRef(function (_a, ref) {
37
+ var className = _a.className, props = __rest(_a, ["className"]);
38
+ return (_jsx("tbody", __assign({ ref: ref, className: cn("[&_tr:last-child]:border-0", className) }, props)));
39
+ });
40
+ TableBody.displayName = "TableBody";
41
+ var TableFooter = React.forwardRef(function (_a, ref) {
42
+ var className = _a.className, props = __rest(_a, ["className"]);
43
+ return (_jsx("tfoot", __assign({ ref: ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className) }, props)));
44
+ });
45
+ TableFooter.displayName = "TableFooter";
46
+ var TableRow = React.forwardRef(function (_a, ref) {
47
+ var className = _a.className, props = __rest(_a, ["className"]);
48
+ return (_jsx("tr", __assign({ ref: ref, className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className) }, props)));
49
+ });
50
+ TableRow.displayName = "TableRow";
51
+ var TableHead = React.forwardRef(function (_a, ref) {
52
+ var className = _a.className, props = __rest(_a, ["className"]);
53
+ return (_jsx("th", __assign({ ref: ref, className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className) }, props)));
54
+ });
55
+ TableHead.displayName = "TableHead";
56
+ var TableCell = React.forwardRef(function (_a, ref) {
57
+ var className = _a.className, props = __rest(_a, ["className"]);
58
+ return (_jsx("td", __assign({ ref: ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className) }, props)));
59
+ });
60
+ TableCell.displayName = "TableCell";
61
+ var TableCaption = React.forwardRef(function (_a, ref) {
62
+ var className = _a.className, props = __rest(_a, ["className"]);
63
+ return (_jsx("caption", __assign({ ref: ref, className: cn("mt-4 text-sm text-muted-foreground", className) }, props)));
64
+ });
65
+ TableCaption.displayName = "TableCaption";
66
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -864,6 +864,9 @@ video {
864
864
  .h-12 {
865
865
  height: 3rem;
866
866
  }
867
+ .h-24 {
868
+ height: 6rem;
869
+ }
867
870
  .h-4 {
868
871
  height: 1rem;
869
872
  }
@@ -949,6 +952,9 @@ video {
949
952
  .justify-center {
950
953
  justify-content: center;
951
954
  }
955
+ .justify-between {
956
+ justify-content: space-between;
957
+ }
952
958
  .gap-1 {
953
959
  gap: 0.25rem;
954
960
  }
@@ -1550,6 +1556,10 @@ video {
1550
1556
  .ring-offset-background {
1551
1557
  --tw-ring-offset-color: hsl(var(--background));
1552
1558
  }
1559
+ .blur {
1560
+ --tw-blur: blur(8px);
1561
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1562
+ }
1553
1563
  .filter {
1554
1564
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1555
1565
  }
@@ -1919,6 +1929,10 @@ video {
1919
1929
  --tw-bg-opacity: 1;
1920
1930
  background-color: rgb(var(--input-label-background-color) / var(--tw-bg-opacity));
1921
1931
  }
1932
+ .peer:focus ~ .peer-focus\:bg-red-500 {
1933
+ --tw-bg-opacity: 1;
1934
+ background-color: rgb(239 68 68 / var(--tw-bg-opacity));
1935
+ }
1922
1936
  .peer:focus ~ .peer-focus\:text-input-text-active {
1923
1937
  --tw-text-opacity: 1;
1924
1938
  color: rgb(var(--input-active-text-color) / var(--tw-text-opacity));
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";import{twMerge as o}from"tailwind-merge";import*as a from"react";import{forwardRef as i,useRef as l,useImperativeHandle as s,useState as c,useEffect as u,useCallback as d,useMemo as f,createContext as p,createElement as m,useContext as v,useLayoutEffect as g,Children as h,cloneElement as b,useReducer as y,isValidElement as w,Fragment as N}from"react";import x,{flushSync as E}from"react-dom";var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var D=r(["gap-2 font-bold text-white hover:bg-opacity-90 active:scale-[98%]"],{variants:{color:{primary:"bg-primary border-primary text-primary hover:bg-primary-80",secondary:"border-secondary bg-secondary-100 text-secondary-foreground hover:bg-secondary-120",tertiary:"border-tertiary-120 bg-tertiary-120 text-tertiary-120 hover:bg-tertiary-100",success:"border-success bg-success text-success hover:bg-success-120",info:"border-info bg-info text-info hover:bg-info-100",warning:"border-warning bg-warning text-warning hover:bg-warning-100 hover:border-warning-100",error:"border-error bg-error text-error hover:bg-error-120 hover:border-error-120"},size:{sm:"px-3 py-1 text-sm rounded-[--btn-rounded-sm]",md:"px-4 py-2 text-sm rounded-[--btn-rounded-md]",lg:"px-6 py-4 text-base rounded-[--btn-rounded-lg]"},variant:{solid:"border",outline:"border bg-transparent hover:bg-opacity-20",flat:"bg-transparent hover:bg-opacity-20",link:"bg-transparent underline underline-offset-4 hover:bg-transparent hover:text-opacity-80"},disabled:{true:"pointer-events-none border-transparent bg-secondary-110 text-secondary-130"},fullwidth:{true:"w-full"}},compoundVariants:[{variant:["flat","link"],disabled:!0,class:"border-transparent bg-transparent"},{variant:"solid",color:"primary",class:"text-primary-foreground"},{variant:"solid",color:"secondary",class:"text-secondary-foreground"},{variant:"solid",disabled:!0,color:"secondary",class:"text-white"},{variant:"solid",color:"tertiary",class:"text-tertiary-foreground"},{variant:"solid",color:"success",class:"text-success-foreground"},{variant:"solid",color:"info",class:"text-info-foreground"},{variant:"solid",color:"warning",class:"text-warning-foreground"},{variant:"solid",color:"error",class:"text-error-foreground"}],defaultVariants:{size:"md",color:"primary",variant:"solid",fullwidth:!0}});function T(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T(e))&&(r&&(r+=" "),r+=t);return r}(e))}var A=function(r){var o=r.size,a=void 0===o?"md":o,i=r.color,l=void 0===i?"primary":i,s=r.variant,c=void 0===s?"solid":s,u=r.title,d=r.children,f=r.startIcon,p=r.endIcon,m=r.disabled,v=void 0!==m&&m,g=r.fullwidth,h=void 0!==g&&g,b=r.isLoading,y=void 0!==b&&b,w=r.className,N=k(r,["size","color","variant","title","children","startIcon","endIcon","disabled","fullwidth","isLoading","className"]),x=v||y;return e("button",C({type:"button"},N,{"aria-disabled":x||void 0,tabIndex:x?-1:0,className:O(D({size:a,color:l,variant:c,disabled:v,fullwidth:h}),w),disabled:x,children:t(n,{children:[f,d||u,p]})}))},_=r(["border-0 outline-none","p-1 flex w-auto box-border","peer text-black placeholder:text-transparent"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitile4",lg:"p-4 typography-subtitile1"},rounded:{none:"rounded-none",normal:"rounded-xl",full:"rounded-full"},variant:{flat:"",outline:"ring-1 ring-inset ring-input-stroke hover:ring-input-active focus:ring-1 focus:ring-inset focus:ring-input-stroke-active",underline:"border-b-2 border-input-stroke transition-colors hover:border-input-stroke-active focus:border-input-stroke"},fullwidth:{true:"w-full"},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled"},error:{true:"ring-error focus:ring-error"},hasClearIcon:{true:""}},compoundVariants:[{variant:"underline",className:"rounded-none"},{hasClearIcon:!0,size:"sm",class:"focus:pe-6"},{hasClearIcon:!0,size:"md",class:"focus:pe-8"},{hasClearIcon:!0,size:"lg",class:"focus:pe-10"}],defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hasClearIcon:!1}}),S=r(["absolute block duration-450 transition-all px-[2px] text-input-text peer-focus:text-input-text-active peer-focus:bg-input-label-background"],{variants:{size:{sm:["left-3 -top-1.5 typography-label2 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"],md:["left-3 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitile4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"],lg:["left-4 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitile1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled"},error:{true:"ring-error"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),I=r(["text-small1 flex flex-row items-center gap-1"],{variants:{size:{sm:"mt-1",md:"mt-[6px]",lg:"mt-[6px]"},disabled:{true:"text-input-text-disabled"},error:{true:"text-error",false:"text-input-text"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),L=r(["absolute inset-y-0 right-0 items-center justify-center hidden peer-focus:flex"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}}),R=r(["cursor-pointer z-50 fill-input-stroke-active hover:fill-input-text"],{variants:{size:{sm:"size-3",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}});const P=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}));const M=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}));const z=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}));const F=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z",clipRule:"evenodd"}))}));const j=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"}))}));var B=i((function(n,r){var a=n.id,i=n.label,c=n.size,u=void 0===c?"md":c,d=n.rounded,f=void 0===d?"normal":d,p=n.variant,m=void 0===p?"outline":p,v=n.type,g=void 0===v?"text":v,h=n.helperText,b=n.errorMessage,y=n.fullwidth,w=void 0===y||y,N=n.disabled,x=void 0!==N&&N,E=n.error,D=void 0!==E&&E,T=n.required,O=void 0===T||T,A=n.hasClearIcon,P=void 0===A||A,M=n.endIcon,j=k(n,["id","label","size","rounded","variant","type","helperText","errorMessage","fullwidth","disabled","error","required","hasClearIcon","endIcon"]),B=l(null),W=a||"".concat(g,"-").concat(i,"-input"),U=_({size:u,rounded:f,variant:m,fullwidth:w,disabled:x,error:D,hasClearIcon:P}),H=S({size:u,disabled:x,error:D}),Z=I({size:u,error:D,disabled:x}),K=L({size:u}),q=R({size:u});s(r,(function(){return{clearInput:V}}));var V=function(){B.current&&(B.current.value="")};return t("div",{className:"inline-flex flex-col ".concat(w?"w-full":""),children:[t("div",{className:"relative",children:[e("input",C({},j,{placeholder:" ",ref:B,type:g,id:W,disabled:x,className:o(U,j.className)})),P&&e("div",{className:K,children:e(F,{type:"button",className:q,onMouseDown:V})}),M,t("label",{htmlFor:W,className:H,children:[i," ",O&&e("span",{className:"text-error",children:"*"})]})]}),(b||h)&&t("span",{className:Z,children:[e(z,{width:16,height:16,className:D?"fill-error":""})," ",b||h]})]})})),W=function(t){var n=t.variant,r=void 0===n?"body1":n,o=t.tag,a=void 0===o?"p":o,i=t.children,l=t.className,s=t.color,c=t.style;return e(a,{className:"typography-".concat(r," text-").concat(s," ").concat(l),style:c,children:i})},U=function(n){var r,o=n.tabs,a=void 0===o?[]:o,i=n.initialTab,l=c(void 0===i?0:i),s=l[0],u=l[1];return t("div",{className:"w-full space-y-4",children:[e("div",{className:"flex border-b border-primary-10 gap-6 h-[54px] box-border",role:"tablist",children:a.map((function(e,n){return t("button",{role:"tab","aria-selected":n===s,"aria-controls":"tab-content-".concat(n),id:"tab-".concat(n),className:O("flex flex-row items-center py-4 px-1 cursor-pointer transition-colors duration-300 box-border gap-3",{"typography-body2 text-textcolor-dark border-b-[3px] border-textcolor-dark":n===s,"typography-body1 text-textcolor-grey-light border-b-[3px] border-transparent hover:text-textcolor-dark ":n!==s}),onClick:function(){return u(n)},children:[e.startTabContent,e.label,e.endTabContent]},n)}))}),e("div",{className:"",role:"tabpanel",id:"tab-content-".concat(s),"aria-labelledby":"tab-".concat(s),children:null===(r=a[s])||void 0===r?void 0:r.content})]})},H=r(["absolute inset-y-0 right-0 flex items-center justify-center"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}}),Z=r(["transition-all"],{variants:{size:{sm:"size-[14px]",md:"size-5",lg:"size-6"},disabled:{true:"fill-input-text-disabled",false:"fill-input-text"},isFocus:{true:"fill-input-text-active rotate-180",false:""}},defaultVariants:{size:"md",disabled:!1,isFocus:!1}}),K=r([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[48px]"}},defaultVariants:{size:"md"}}),q=function(n){var r=n.id,o=n.options,a=n.value,i=n.label,l=n.size,s=void 0===l?"md":l,p=n.rounded,m=void 0===p?"normal":p,v=n.variant,g=void 0===v?"outline":v,h=n.helperText,b=n.errorMessage,y=n.fullwidth,w=void 0===y||y,N=n.disabled,x=void 0!==N&&N,E=n.error,D=void 0!==E&&E,T=n.filterMode,O=void 0!==T&&T,A=n.required,_=void 0===A||A,S=n.onChangeText,I=n.onSelect,L=k(n,["id","options","value","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect"]),R=r||"".concat(i,"-select"),P=c(!1),z=P[0],F=P[1],j=c(null),W=j[0],U=j[1],q=c(""),V=q[0],$=q[1];u((function(){a&&!W&&U(a)}),[a,W]);var X=d((function(e){null==S||S(e),$(e.target.value)}),[S]),Y=d((function(e){U(e),$(e.label),null==I||I(e)}),[I]),G=f((function(){return o.filter((function(e){var t;return!O||(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(null==V?void 0:V.toLowerCase()))}))}),[o,O,V]);return t("div",{className:"relative ".concat(w?"w-full":""),children:[e(B,C({},L,{readOnly:!O,value:V,onChange:X,label:i,placeholder:" ",type:"text",rounded:m,variant:g,helperText:h,errorMessage:b,fullwidth:w,error:D,required:_,id:R,disabled:x,hasClearIcon:!1,size:s,className:K({size:s}),onFocus:function(){return F(!0)},onBlur:function(){return F(!1)},endIcon:e("div",{className:H({size:s}),children:e(M,{className:Z({size:s,isFocus:z})})})})),z&&t("ul",{className:"absolute mt-1 w-full bg-white border border-gray-300 rounded-md shadow-md z-10 max-h-60 overflow-y-auto",children:[G.map((function(t){return e("li",{onMouseDown:function(){return Y(t)},className:"px-4 py-2 hover:bg-gray-100 cursor-pointer ".concat((null==W?void 0:W.value)===t.value?" bg-gray-200":""),children:t.label},t.value)})),0===G.length&&e("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]})]})};function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function $(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function X(...e){return d($(...e),e)}function Y(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>p(e)));return function(n){const r=(null==n?void 0:n[e])||t;return f((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=p(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,s=f((()=>i),Object.values(i));return m(l.Provider,{value:s},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,s=v(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},G(r,...t)]}function G(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return f((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Q(e){const t=l(e);return u((()=>{t.current=e})),f((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ee({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=c(e),[r]=n,o=l(r),a=Q(t);return u((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,s=Q(n);return[i,d((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}const te=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?g:()=>{};const ne=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=c(),r=l({}),o=l(e),a=l("none"),i=e?"mounted":"unmounted",[s,f]=function(e,t){return y(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u((()=>{const e=re(r.current);a.current="mounted"===s?e:"none"}),[s]),te((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=re(t);if(e)f("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))f("UNMOUNT");else{f(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,f]),te((()=>{if(t){const e=e=>{const n=re(r.current).includes(e.animationName);e.target===t&&n&&E((()=>f("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=re(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):h.only(n),a=X(r.ref,o.ref);return"function"==typeof n||r.isPresent?b(o,{ref:a}):null};function re(e){return(null==e?void 0:e.animationName)||"none"}ne.displayName="Presence";const oe=i(((e,t)=>{const{children:n,...r}=e,o=h.toArray(n),a=o.find(le);if(a){const e=a.props.children,n=o.map((t=>t===a?h.count(e)>1?h.only(null):w(e)?e.props.children:null:t));return m(ae,V({},r,{ref:t}),w(e)?b(e,void 0,n):null)}return m(ae,V({},r,{ref:t}),n)}));oe.displayName="Slot";const ae=i(((e,t)=>{const{children:n,...r}=e;return w(n)?b(n,{...se(r,n.props),ref:t?$(t,n.ref):n.ref}):h.count(n)>1?h.only(null):null}));ae.displayName="SlotClone";const ie=({children:e})=>m(N,null,e);function le(e){return w(e)&&e.type===ie}function se(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=i(((e,n)=>{const{asChild:r,...o}=e,a=r?oe:t;return u((()=>{window[Symbol.for("radix-ui")]=!0}),[]),m(a,V({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const ue="Checkbox",[de,fe]=Y(ue),[pe,me]=de(ue),ve=i(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:d="on",onCheckedChange:f,...p}=e,[v,g]=c(null),h=X(t,(e=>g(e))),b=l(!1),y=!v||Boolean(v.closest("form")),[w=!1,N]=ee({prop:o,defaultProp:a,onChange:f}),x=l(w);return u((()=>{const e=null==v?void 0:v.form;if(e){const t=()=>N(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[v,N]),m(pe,{scope:n,state:w,disabled:s},m(ce.button,V({type:"button",role:"checkbox","aria-checked":he(w)?"mixed":w,"aria-required":i,"data-state":be(w),"data-disabled":s?"":void 0,disabled:s,value:d},p,{ref:h,onKeyDown:J(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:J(e.onClick,(e=>{N((e=>!!he(e)||!e)),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))})),y&&m(ge,{control:v,bubbles:!b.current,name:r,value:d,checked:w,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),ge=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=l(null),i=function(e){const t=l({value:e,previous:e});return f((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),s=function(e){const[t,n]=c(void 0);return te((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(t);return u((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=he(n),o.call(e,!he(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),m("input",V({type:"checkbox","aria-hidden":!0,defaultChecked:!he(n)&&n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function he(e){return"indeterminate"===e}function be(e){return he(e)?"indeterminate":e?"checked":"unchecked"}const ye=ve,we=i(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=me("CheckboxIndicator",n);return m(ne,{present:r||he(a.state)||!0===a.state},m(ce.span,V({"data-state":be(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}));var Ne=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(ye,C({ref:n,className:O("peer h-4 w-4 shrink-0 rounded-sm border border-primary-30 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:border-socondary-120 disabled:border-socondary-110",{"data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground":!o.disabled,"bg-grey2-300":o.checked&&o.disabled},r)},o,{children:e(we,{className:O("flex items-center justify-center text-current"),children:e(P,{className:"h-4 w-4"})})}))}));Ne.displayName=ye.displayName;const xe=i(((e,t)=>m(ce.label,V({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))));var Ee=r("typography-label1 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ce=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(xe,C({ref:n,className:O(Ee(),r)},o))}));Ce.displayName=xe.displayName;var ke=a.forwardRef((function(t,n){var r=t.className,o=t.type,a=k(t,["className","type"]);return e("input",C({type:o,className:O("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:n},a))}));ke.displayName="Input";var De=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("div",{className:"relative w-full overflow-auto",children:e("table",C({ref:n,className:O("w-full caption-bottom text-sm",r)},o))})}));De.displayName="Table";var Te=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("thead",C({ref:n,className:O("[&_tr]:border-b",r)},o))}));Te.displayName="TableHeader";var Oe=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tbody",C({ref:n,className:O("[&_tr:last-child]:border-0",r)},o))}));Oe.displayName="TableBody";var Ae=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tfoot",C({ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r)},o))}));Ae.displayName="TableFooter";var _e=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tr",C({ref:n,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r)},o))}));_e.displayName="TableRow";var Se=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("th",C({ref:n,className:O("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r)},o))}));Se.displayName="TableHead";var Ie=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("td",C({ref:n,className:O("p-4 align-middle [&:has([role=checkbox])]:pr-0",r)},o))}));Ie.displayName="TableCell";var Le=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("caption",C({ref:n,className:O("mt-4 text-sm text-muted-foreground",r)},o))}));Le.displayName="TableCaption";const Re=a["useId".toString()]||(()=>{});let Pe=0;function Me(e){const[t,n]=a.useState(Re());return te((()=>{e||n((e=>null!=e?e:String(Pe++)))}),[e]),e||(t?`radix-${t}`:"")}const ze="dismissableLayer.update",Fe="dismissableLayer.pointerDownOutside",je="dismissableLayer.focusOutside";let Be;const We=p({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ue=i(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:d,...f}=e,p=v(We),[g,h]=c(null),b=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=c({}),w=X(t,(e=>h(e))),N=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=N.indexOf(x),C=g?N.indexOf(g):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,D=C>=E,T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e),r=l(!1),o=l((()=>{}));return u((()=>{const e=e=>{if(e.target&&!r.current){const a={originalEvent:e};function i(){Ze(Fe,n,a,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...p.branches].some((e=>e.contains(t)));D&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==d||d())}),b),O=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e),r=l(!1);return u((()=>{const e=e=>{if(e.target&&!r.current){Ze(je,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...p.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==d||d())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e);u((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{C===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),b),u((()=>{if(g)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(Be=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),He(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=Be)}}),[g,b,r,p]),u((()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),He())}),[g,p]),u((()=>{const e=()=>y({});return document.addEventListener(ze,e),()=>document.removeEventListener(ze,e)}),[]),m(ce.div,V({},f,{ref:w,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,O.onFocusCapture),onBlurCapture:J(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,T.onPointerDownCapture)}))}));function He(){const e=new CustomEvent(ze);document.dispatchEvent(e)}function Ze(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&E((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const Ke="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",Ve={bubbles:!1,cancelable:!0},$e=i(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,f]=c(null),p=Q(o),v=Q(a),g=l(null),h=X(t,(e=>f(e))),b=l({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u((()=>{if(r){function e(e){if(b.paused||!s)return;const t=e.target;s.contains(t)?g.current=t:Je(g.current,{select:!0})}function t(e){if(b.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Je(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Je(s)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return s&&o.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,s,b.paused]),u((()=>{if(s){Qe.add(b);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Ke,Ve);s.addEventListener(Ke,p),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}((e=Xe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Je(s))}return()=>{s.removeEventListener(Ke,p),setTimeout((()=>{const e=new CustomEvent(qe,Ve);s.addEventListener(qe,v),s.dispatchEvent(e),e.defaultPrevented||Je(null!=t?t:document.body,{select:!0}),s.removeEventListener(qe,v),Qe.remove(b)}),0)}}var e}),[s,p,v,b]);const y=d((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Xe(e),n=Ye(t,e),r=Ye(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Je(a,{select:!0})):(e.preventDefault(),n&&Je(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return m(ce.div,V({tabIndex:-1},i,{ref:h,onKeyDown:y}))}));function Xe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ye(e,t){for(const n of e)if(!Ge(n,{upTo:t}))return n}function Ge(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Qe=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=et(e,t),e.unshift(t)},remove(t){var n;e=et(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function et(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const tt=i(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?x.createPortal(m(ce.div,V({},o,{ref:t})),r):null}));let nt=0;function rt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ot="right-scroll-bar-position",at="width-before-scroll-bar";function it(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var lt="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,st=new WeakMap;function ct(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach((function(e){return it(e,t)}))},(o=c((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return lt((function(){var t=st.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||it(e,null)})),r.forEach((function(e){n.has(e)||it(e,o)}))}st.set(a,e)}),[e]),a}function ut(e){return e}var dt=function(e){var t=e.sideCar,n=k(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,C({},n))};dt.isSideCarExport=!0;var ft=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ut);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=C({async:!0,ssr:!1},e),t}(),pt=function(){},mt=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:pt,onWheelCapture:pt,onTouchMoveCapture:pt}),o=r[0],i=r[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,h=e.as,b=void 0===h?"div":h,y=k(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,N=ct([n,t]),x=C(C({},y),o);return a.createElement(a.Fragment,null,d&&a.createElement(w,{sideCar:ft,removeScrollBar:u,shards:f,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),l?a.cloneElement(a.Children.only(s),C(C({},x),{ref:N})):a.createElement(b,C({},x,{className:c,ref:N}),s))}));mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mt.classNames={fullWidth:at,zeroRight:ot};function vt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var gt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=vt())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ht=function(){var e,t=(e=gt(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},bt={left:0,top:0,right:0,gap:0},yt=function(e){return parseInt(e||"",10)||0},wt=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[yt(n),yt(r),yt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Nt=ht(),xt="data-scroll-locked",Et=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(xt,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ot," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(at," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ot," .").concat(ot," {\n right: 0 ").concat(r,";\n }\n \n .").concat(at," .").concat(at," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(xt,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Ct=function(){var e=parseInt(document.body.getAttribute(xt)||"0",10);return isFinite(e)?e:0},kt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(xt,(Ct()+1).toString()),function(){var e=Ct()-1;e<=0?document.body.removeAttribute(xt):document.body.setAttribute(xt,e.toString())}}),[]);var i=a.useMemo((function(){return wt(o)}),[o]);return a.createElement(Nt,{styles:Et(i,!t,o,n?"":"!important")})},Dt=!1;if("undefined"!=typeof window)try{var Tt=Object.defineProperty({},"passive",{get:function(){return Dt=!0,!0}});window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch(e){Dt=!1}var Ot=!!Dt&&{passive:!1},At=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_t=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),St(e,n)){var r=It(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},St=function(e,t){return"v"===e?function(e){return At(e,"overflowY")}(t):function(e){return At(e,"overflowX")}(t)},It=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rt=function(e){return[e.deltaX,e.deltaY]},Pt=function(e){return e&&"current"in e?e.current:e},Mt=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},zt=0,Ft=[];var jt,Bt=(jt=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(zt++)[0],i=a.useState((function(){return ht()}))[0],l=a.useRef(e);a.useEffect((function(){l.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Pt),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,a=Lt(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=_t(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=_t(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),c=!1,u=i>0,d=0,f=0;do{var p=It(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&St(e,l)&&(d+=v,f+=m),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!u||0!==d&&o)&&(u||0!==f&&o)||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=a.useCallback((function(e){var n=e;if(Ft.length&&Ft[Ft.length-1]===i){var r="deltaY"in n?Rt(n):Lt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(l.current.shards||[]).map(Pt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?s(n,a[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=a.useCallback((function(e){n.current=Lt(e),r.current=void 0}),[]),f=a.useCallback((function(t){u(t.type,Rt(t),t.target,s(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){u(t.type,Lt(t),t.target,s(t,e.lockRef.current))}),[]);a.useEffect((function(){return Ft.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ot),document.addEventListener("touchmove",c,Ot),document.addEventListener("touchstart",d,Ot),function(){Ft=Ft.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Ot),document.removeEventListener("touchmove",c,Ot),document.removeEventListener("touchstart",d,Ot)}}),[]);var m=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(i,{styles:Mt(o)}):null,m?a.createElement(kt,{gapMode:"margin"}):null)},ft.useMedium(jt),dt),Wt=a.forwardRef((function(e,t){return a.createElement(mt,C({},e,{ref:t,sideCar:Bt}))}));Wt.classNames=mt.classNames;var Ut=new WeakMap,Ht=new WeakMap,Zt={},Kt=0,qt=function(e){return e&&(e.host||qt(e.parentNode))},Vt=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=qt(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var a=Zt[n],i=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(Ut.get(e)||0)+1,c=(a.get(e)||0)+1;Ut.set(e,s),a.set(e,c),i.push(e),1===s&&o&&Ht.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),Kt++,function(){i.forEach((function(e){var t=Ut.get(e)-1,o=a.get(e)-1;Ut.set(e,t),a.set(e,o),t||(Ht.has(e)||e.removeAttribute(r),Ht.delete(e)),o||e.removeAttribute(n)})),--Kt||(Ut=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Zt={})}},$t=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vt(r,o,n,"aria-hidden")):function(){return null}};const Xt="Dialog",[Yt,Gt]=Y(Xt),[Jt,Qt]=Yt(Xt),en=i(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt("DialogTrigger",n),a=X(t,o.triggerRef);return m(ce.button,V({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yn(o.open)},r,{ref:a,onClick:J(e.onClick,o.onOpenToggle)}))})),tn="DialogPortal",[nn,rn]=Yt(tn,{forceMount:void 0}),on="DialogOverlay",an=i(((e,t)=>{const n=rn(on,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Qt(on,e.__scopeDialog);return a.modal?m(ne,{present:r||a.open},m(ln,V({},o,{ref:t}))):null})),ln=i(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(on,n);return m(Wt,{as:oe,allowPinchZoom:!0,shards:[o.contentRef]},m(ce.div,V({"data-state":yn(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),sn="DialogContent",cn=i(((e,t)=>{const n=rn(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Qt(sn,e.__scopeDialog);return m(ne,{present:r||a.open},a.modal?m(un,V({},o,{ref:t})):m(dn,V({},o,{ref:t})))})),un=i(((e,t)=>{const n=Qt(sn,e.__scopeDialog),r=l(null),o=X(t,n.contentRef,r);return u((()=>{const e=r.current;if(e)return $t(e)}),[]),m(fn,V({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:J(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:J(e.onFocusOutside,(e=>e.preventDefault()))}))})),dn=i(((e,t)=>{const n=Qt(sn,e.__scopeDialog),r=l(!1),o=l(!1);return m(fn,V({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),fn=i(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Qt(sn,n),c=X(t,l(null));return u((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:rt()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:rt()),nt++,()=>{1===nt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nt--}}),[]),m(N,null,m($e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},m(Ue,V({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yn(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),pn="DialogTitle",mn=i(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(pn,n);return m(ce.h2,V({id:o.titleId},r,{ref:t}))})),vn="DialogDescription",gn=i(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(vn,n);return m(ce.p,V({id:o.descriptionId},r,{ref:t}))})),hn="DialogClose",bn=i(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(hn,n);return m(ce.button,V({type:"button"},r,{ref:t,onClick:J(e.onClick,(()=>o.onOpenChange(!1)))}))}));function yn(e){return e?"open":"closed"}const[wn,Nn]=function(e,t){const n=p(t);function r(e){const{children:t,...r}=e,o=f((()=>r),Object.values(r));return m(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=v(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:sn,titleName:pn,docsSlug:"dialog"}),xn=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l(null),c=l(null),[u=!1,f]=ee({prop:r,defaultProp:o,onChange:a});return m(Jt,{scope:t,triggerRef:s,contentRef:c,contentId:Me(),titleId:Me(),descriptionId:Me(),open:u,onOpenChange:f,onOpenToggle:d((()=>f((e=>!e))),[f]),modal:i},n)},En=en,Cn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Qt(tn,t);return m(nn,{scope:t,forceMount:n},h.map(r,(e=>m(ne,{present:n||a.open},m(tt,{asChild:!0,container:o},e)))))},kn=an,Dn=cn,Tn=mn,On=gn,An=bn;var _n=xn,Sn=En,In=Cn,Ln=An,Rn=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(kn,C({ref:n,className:O("fixed inset-0 z-50 bg-popup-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},o))}));Rn.displayName=kn.displayName;var Pn=a.forwardRef((function(n,r){var o=n.className,a=n.children,i=k(n,["className","children"]);return t(In,{children:[e(Rn,{}),t(Dn,C({ref:r,className:O("fixed text-textcolor-grey-dark left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--popup-rounded)]",o)},i,{children:[a,t(An,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e(j,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]}))]})}));Pn.displayName=Dn.displayName;var Mn=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col space-y-2 text-center sm:text-left",n)},r))};Mn.displayName="DialogHeader";var zn=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n)},r))};zn.displayName="DialogFooter";var Fn=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(Tn,C({ref:n,className:O("typography-h5 tracking-tight",r)},o))}));Fn.displayName=Tn.displayName;var jn=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(On,C({ref:n,className:O("text-sm",r)},o))}));jn.displayName=On.displayName;const[Bn,Wn]=Y("AlertDialog",[Gt]),Un=Gt(),Hn=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return m(En,V({},o,r,{ref:t}))})),Zn=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return m(kn,V({},o,r,{ref:t}))})),Kn="AlertDialogContent",[qn,Vn]=Bn(Kn),$n=i(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Un(n),i=X(t,l(null)),s=l(null);return m(wn,{contentName:Kn,titleName:Xn,docsSlug:"alert-dialog"},m(qn,{scope:n,cancelRef:s},m(Dn,V({role:"alertdialog"},a,o,{ref:i,onOpenAutoFocus:J(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),m(ie,null,r),!1)))})),Xn="AlertDialogTitle",Yn=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return m(Tn,V({},o,r,{ref:t}))})),Gn=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return m(On,V({},o,r,{ref:t}))})),Jn=Zn,Qn=$n,er=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return m(An,V({},o,r,{ref:t}))})),tr=i(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Vn("AlertDialogCancel",n),a=Un(n),i=X(t,o);return m(An,V({},a,r,{ref:i}))})),nr=Yn,rr=Gn;var or=e=>{const{__scopeAlertDialog:t,...n}=e,r=Un(t);return m(xn,V({},r,n,{modal:!0}))},ar=Hn,ir=e=>{const{__scopeAlertDialog:t,...n}=e,r=Un(t);return m(Cn,V({},r,n))},lr=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(Jn,C({className:O("fixed inset-0 bg-popup-overlay z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},o,{ref:n}))}));lr.displayName=Jn.displayName;var sr=a.forwardRef((function(n,r){var o=n.className,a=k(n,["className"]);return t(ir,{children:[e(lr,{}),e(Qn,C({ref:r,className:O("fixed text-textcolor-grey-dark left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 border bg-popup-background p-8 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--popup-rounded)]",o)},a))]})}));sr.displayName=Qn.displayName;var cr=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col space-y-2 text-center sm:text-left",n)},r))};cr.displayName="AlertDialogHeader";var ur=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n)},r))};ur.displayName="AlertDialogFooter";var dr=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(nr,C({ref:n,className:O("typography-h5",r)},o))}));dr.displayName=nr.displayName;var fr=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(rr,C({ref:n,className:O("text-sm",r)},o))}));fr.displayName=rr.displayName;var pr=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(er,C({ref:n,className:O(D({fullwidth:!1}),r)},o))}));pr.displayName=er.displayName;var mr=a.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(tr,C({ref:n,className:O(D({fullwidth:!1,variant:"outline"}),"mt-2 sm:mt-0",r)},o))}));mr.displayName=tr.displayName;var vr=function(e){return String(e).length>10?e/1e3:e},gr=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t},hr=function(e){var t=new Date(e);return t.setHours(23,59,59,999),t},br=function(){var e=gr(new Date);return{startTime:e,endTime:hr(e)}},yr=function(e){var t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return vr(t)};export{or as AlertDialog,pr as AlertDialogAction,mr as AlertDialogCancel,sr as AlertDialogContent,fr as AlertDialogDescription,ur as AlertDialogFooter,cr as AlertDialogHeader,lr as AlertDialogOverlay,ir as AlertDialogPortal,dr as AlertDialogTitle,ar as AlertDialogTrigger,A as Button,Ne as Checkbox,_n as Dialog,Ln as DialogClose,Pn as DialogContent,jn as DialogDescription,zn as DialogFooter,Mn as DialogHeader,Rn as DialogOverlay,In as DialogPortal,Fn as DialogTitle,Sn as DialogTrigger,q as Dropdown,ke as Input,Ce as Label,De as Table,Oe as TableBody,Le as TableCaption,Ie as TableCell,Ae as TableFooter,Se as TableHead,Te as TableHeader,_e as TableRow,U as Tabs,W as Text,B as TextInput,O as cn,hr as getEndDateOfDay,gr as getStartDateOfDay,br as getStartEndTimestampOfDay,yr as getTimestampUTC,vr as resloveTimestamp};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import{forwardRef as o,useRef as a,useImperativeHandle as i,useState as l,useEffect as s,useCallback as c,useMemo as u,Fragment as d,createContext as f,createElement as p,useContext as m,useLayoutEffect as v,Children as g,cloneElement as h,useReducer as b,isValidElement as y}from"react";import{cva as w}from"class-variance-authority";import{twMerge as N}from"tailwind-merge";import x,{flushSync as E}from"react-dom";var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var D=w(["gap-2 font-bold text-white hover:bg-opacity-90 active:scale-[98%]"],{variants:{color:{primary:"bg-primary border-primary text-primary hover:bg-primary-80",secondary:"border-secondary bg-secondary-100 text-secondary-foreground hover:bg-secondary-120",tertiary:"border-tertiary-120 bg-tertiary-120 text-tertiary-120 hover:bg-tertiary-100",success:"border-success bg-success text-success hover:bg-success-120",info:"border-info bg-info text-info hover:bg-info-100",warning:"border-warning bg-warning text-warning hover:bg-warning-100 hover:border-warning-100",error:"border-error bg-error text-error hover:bg-error-120 hover:border-error-120"},size:{sm:"px-3 py-1 text-sm rounded-[--btn-rounded-sm]",md:"px-4 py-2 text-sm rounded-[--btn-rounded-md]",lg:"px-6 py-4 text-base rounded-[--btn-rounded-lg]"},variant:{solid:"border",outline:"border bg-transparent hover:bg-opacity-20",flat:"bg-transparent hover:bg-opacity-20",link:"bg-transparent underline underline-offset-4 hover:bg-transparent hover:text-opacity-80"},disabled:{true:"pointer-events-none border-transparent bg-secondary-110 text-secondary-130"},fullwidth:{true:"w-full"}},compoundVariants:[{variant:["flat","link"],disabled:!0,class:"border-transparent bg-transparent"},{variant:"solid",color:"primary",class:"text-primary-foreground"},{variant:"solid",color:"secondary",class:"text-secondary-foreground"},{variant:"solid",disabled:!0,color:"secondary",class:"text-white"},{variant:"solid",color:"tertiary",class:"text-tertiary-foreground"},{variant:"solid",color:"success",class:"text-success-foreground"},{variant:"solid",color:"info",class:"text-info-foreground"},{variant:"solid",color:"warning",class:"text-warning-foreground"},{variant:"solid",color:"error",class:"text-error-foreground"}],defaultVariants:{size:"md",color:"primary",variant:"solid",fullwidth:!0}});function T(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T(e))&&(r&&(r+=" "),r+=t);return r}(e))}var A=o((function(r,o){var a=r.size,i=void 0===a?"md":a,l=r.color,s=void 0===l?"primary":l,c=r.variant,u=void 0===c?"solid":c,d=r.title,f=r.children,p=r.startIcon,m=r.endIcon,v=r.disabled,g=void 0!==v&&v,h=r.fullwidth,b=void 0!==h&&h,y=r.isLoading,w=void 0!==y&&y,N=r.className,x=k(r,["size","color","variant","title","children","startIcon","endIcon","disabled","fullwidth","isLoading","className"]),E=g||w;return e("button",C({type:"button"},x,{ref:o,"aria-disabled":E||void 0,tabIndex:E?-1:0,className:O(D({size:i,color:s,variant:u,disabled:g,fullwidth:b}),N),disabled:E,children:t(n,{children:[p,f||d,m]})}))})),_=w(["border-0 outline-none","p-1 flex w-auto box-border","peer text-black placeholder:text-transparent"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitile4",lg:"p-4 typography-subtitile1"},rounded:{none:"rounded-none",normal:"rounded-xl",full:"rounded-full"},variant:{flat:"",outline:"ring-1 ring-inset ring-input-stroke hover:ring-input-active focus:ring-1 focus:ring-inset focus:ring-input-stroke-active",underline:"border-b-2 border-input-stroke transition-colors hover:border-input-stroke-active focus:border-input-stroke"},fullwidth:{true:"w-full"},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled"},error:{true:"ring-error focus:ring-error"},hasClearIcon:{true:""}},compoundVariants:[{variant:"underline",className:"rounded-none"},{hasClearIcon:!0,size:"sm",class:"focus:pe-6"},{hasClearIcon:!0,size:"md",class:"focus:pe-8"},{hasClearIcon:!0,size:"lg",class:"focus:pe-10"}],defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hasClearIcon:!1}}),L=w(["absolute block duration-450 transition-all px-[2px] text-input-text peer-focus:text-input-text-active peer-focus:bg-input-label-background"],{variants:{size:{sm:["left-3 -top-1.5 typography-label2 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"],md:["left-3 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitile4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"],lg:["left-4 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitile1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled"},error:{true:"ring-error"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),S=w(["text-small1 flex flex-row items-center gap-1"],{variants:{size:{sm:"mt-1",md:"mt-[6px]",lg:"mt-[6px]"},disabled:{true:"text-input-text-disabled"},error:{true:"text-error",false:"text-input-text"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),I=w(["absolute inset-y-0 right-0 items-center justify-center hidden peer-focus:flex"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}}),R=w(["cursor-pointer z-50 fill-input-stroke-active hover:fill-input-text"],{variants:{size:{sm:"size-3",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}});const P=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}));const M=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}));const z=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}));const F=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z",clipRule:"evenodd"}))}));const j=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"}))}));var B=o((function(n,r){var o=n.id,l=n.label,s=n.size,c=void 0===s?"md":s,u=n.rounded,d=void 0===u?"normal":u,f=n.variant,p=void 0===f?"outline":f,m=n.type,v=void 0===m?"text":m,g=n.helperText,h=n.errorMessage,b=n.fullwidth,y=void 0===b||b,w=n.disabled,N=void 0!==w&&w,x=n.error,E=void 0!==x&&x,D=n.required,T=void 0===D||D,A=n.hasClearIcon,P=void 0===A||A,M=n.endIcon,j=n.labelClassName,B=k(n,["id","label","size","rounded","variant","type","helperText","errorMessage","fullwidth","disabled","error","required","hasClearIcon","endIcon","labelClassName"]),W=a(null),U=o||"".concat(v,"-").concat(l,"-input"),H=_({size:c,rounded:d,variant:p,fullwidth:y,disabled:N,error:E,hasClearIcon:P}),Z=L({size:c,disabled:N,error:E}),K=S({size:c,error:E,disabled:N}),q=I({size:c}),V=R({size:c});i(r,(function(){return null==W?void 0:W.current}));return t("div",{className:"inline-flex flex-col ".concat(y?"w-full":""),children:[t("div",{className:"relative",children:[e("input",C({},B,{placeholder:" ",ref:W,type:v,id:U,disabled:N,className:O(H,B.className)})),P&&e("div",{className:q,children:e(F,{type:"button",className:V,onMouseDown:function(){W.current&&(W.current.value="")}})}),M,t("label",{htmlFor:U,className:O(Z,j),children:[l," ",T&&e("span",{className:"text-error",children:"*"})]})]}),(h||g)&&t("span",{className:K,children:[e(z,{width:16,height:16,className:E?"fill-error":""})," ",h||g]})]})})),W=o((function(t){var n=t.variant,r=void 0===n?"body1":n,o=t.tag,a=void 0===o?"p":o,i=t.children,l=t.className,s=t.color,c=t.style;return e(a,{className:"typography-".concat(r," text-").concat(s," ").concat(l),style:c,children:i})})),U=function(n){var r,o=n.tabs,a=void 0===o?[]:o,i=n.initialTab,s=l(void 0===i?0:i),c=s[0],u=s[1];return t("div",{className:"w-full space-y-4",children:[e("div",{className:"flex border-b border-primary-10 gap-6 h-[54px] box-border",role:"tablist",children:a.map((function(e,n){return t("button",{role:"tab","aria-selected":n===c,"aria-controls":"tab-content-".concat(n),id:"tab-".concat(n),className:O("flex flex-row items-center py-4 px-1 cursor-pointer transition-colors duration-300 box-border gap-3",{"typography-body2 text-textcolor-dark border-b-[3px] border-textcolor-dark":n===c,"typography-body1 text-textcolor-grey-light border-b-[3px] border-transparent hover:text-textcolor-dark ":n!==c}),onClick:function(){return u(n)},children:[e.startTabContent,e.label,e.endTabContent]},n)}))}),e("div",{className:"",role:"tabpanel",id:"tab-content-".concat(c),"aria-labelledby":"tab-".concat(c),children:null===(r=a[c])||void 0===r?void 0:r.content})]})},H=w(["absolute inset-y-0 right-0 flex items-center justify-center"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}}),Z=w(["transition-all"],{variants:{size:{sm:"size-[14px]",md:"size-5",lg:"size-6"},disabled:{true:"fill-input-text-disabled",false:"fill-input-text"},isFocus:{true:"fill-input-text-active rotate-180",false:""}},defaultVariants:{size:"md",disabled:!1,isFocus:!1}}),K=w([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[48px]"}},defaultVariants:{size:"md"}}),q=o((function(n,r){var o=n.id,a=n.options,i=n.value,f=n.label,p=n.size,m=void 0===p?"md":p,v=n.rounded,g=void 0===v?"normal":v,h=n.variant,b=void 0===h?"outline":h,y=n.helperText,w=n.errorMessage,N=n.fullwidth,x=void 0===N||N,E=n.disabled,D=void 0!==E&&E,T=n.error,O=void 0!==T&&T,A=n.filterMode,_=void 0!==A&&A,L=n.required,S=void 0===L||L,I=n.onChangeText,R=n.onSelect,P=k(n,["id","options","value","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect"]),z=o||"".concat(f,"-select"),F=l(!1),j=F[0],W=F[1],U=l(null),q=U[0],V=U[1],$=l(""),X=$[0],Y=$[1];s((function(){i&&!q&&V(i)}),[i,q]);var G=c((function(e){null==I||I(e),Y(e.target.value)}),[I]),J=c((function(e){V(e),Y(e.label),null==R||R(e)}),[R]),Q=u((function(){return a.filter((function(e){var t;return!_||(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(null==X?void 0:X.toLowerCase()))}))}),[a,_,X]);return t("div",{className:"relative ".concat(x?"w-full":""),children:[e(B,C({},P,{ref:r,readOnly:!_,value:X,onChange:G,label:f,placeholder:" ",type:"text",rounded:g,variant:b,helperText:y,errorMessage:w,fullwidth:x,error:O,required:S,id:z,disabled:D,hasClearIcon:!1,size:m,className:K({size:m}),onFocus:function(){return W(!0)},onBlur:function(){return W(!1)},endIcon:e("div",{className:H({size:m}),children:e(M,{className:Z({size:m,isFocus:j})})})})),j&&t("ul",{className:"absolute mt-1 w-full bg-white border border-gray-300 rounded-md shadow-md z-10 max-h-60 overflow-y-auto",children:[Q.map((function(t){return t.renderLabel?e(d,{children:t.renderLabel({value:t.value,label:t.label,handleOnClick:function(){return J(t)},className:"px-4 py-2 hover:bg-gray-100 cursor-pointer ".concat((null==q?void 0:q.value)===t.value?" bg-gray-200":"")})},t.value):e("li",{onMouseDown:function(){return J(t)},className:"px-4 py-2 hover:bg-gray-100 cursor-pointer ".concat((null==q?void 0:q.value)===t.value?" bg-gray-200":""),children:t.label},t.value)})),0===Q.length&&e("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]})]})}));function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function $(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function X(...e){return c($(...e),e)}function Y(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>f(e)));return function(n){const r=(null==n?void 0:n[e])||t;return u((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=f(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,s=u((()=>i),Object.values(i));return p(l.Provider,{value:s},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,s=m(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},G(r,...t)]}function G(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return u((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Q(e){const t=a(e);return s((()=>{t.current=e})),u((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ee({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=l(e),[r]=n,o=a(r),i=Q(t);return s((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,u=i?e:r,d=Q(n);return[u,c((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&d(n)}else o(t)}),[i,e,o,d])]}const te=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v:()=>{};const ne=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=l(),r=a({}),o=a(e),i=a("none"),u=e?"mounted":"unmounted",[d,f]=function(e,t){return b(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s((()=>{const e=re(r.current);i.current="mounted"===d?e:"none"}),[d]),te((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=re(t);if(e)f("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))f("UNMOUNT");else{f(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,f]),te((()=>{if(t){const e=e=>{const n=re(r.current).includes(e.animationName);e.target===t&&n&&E((()=>f("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=re(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:c((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):g.only(n),i=X(r.ref,o.ref);return"function"==typeof n||r.isPresent?h(o,{ref:i}):null};function re(e){return(null==e?void 0:e.animationName)||"none"}ne.displayName="Presence";const oe=o(((e,t)=>{const{children:n,...r}=e,o=g.toArray(n),a=o.find(le);if(a){const e=a.props.children,n=o.map((t=>t===a?g.count(e)>1?g.only(null):y(e)?e.props.children:null:t));return p(ae,V({},r,{ref:t}),y(e)?h(e,void 0,n):null)}return p(ae,V({},r,{ref:t}),n)}));oe.displayName="Slot";const ae=o(((e,t)=>{const{children:n,...r}=e;return y(n)?h(n,{...se(r,n.props),ref:t?$(t,n.ref):n.ref}):g.count(n)>1?g.only(null):null}));ae.displayName="SlotClone";const ie=({children:e})=>p(d,null,e);function le(e){return y(e)&&e.type===ie}function se(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=o(((e,n)=>{const{asChild:r,...o}=e,a=r?oe:t;return s((()=>{window[Symbol.for("radix-ui")]=!0}),[]),p(a,V({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const ue="Checkbox",[de,fe]=Y(ue),[pe,me]=de(ue),ve=o(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:c,disabled:u,value:d="on",onCheckedChange:f,...m}=e,[v,g]=l(null),h=X(t,(e=>g(e))),b=a(!1),y=!v||Boolean(v.closest("form")),[w=!1,N]=ee({prop:o,defaultProp:i,onChange:f}),x=a(w);return s((()=>{const e=null==v?void 0:v.form;if(e){const t=()=>N(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[v,N]),p(pe,{scope:n,state:w,disabled:u},p(ce.button,V({type:"button",role:"checkbox","aria-checked":he(w)?"mixed":w,"aria-required":c,"data-state":be(w),"data-disabled":u?"":void 0,disabled:u,value:d},m,{ref:h,onKeyDown:J(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:J(e.onClick,(e=>{N((e=>!!he(e)||!e)),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))})),y&&p(ge,{control:v,bubbles:!b.current,name:r,value:d,checked:w,required:c,disabled:u,style:{transform:"translateX(-100%)"}}))})),ge=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=a(null),c=function(e){const t=a({value:e,previous:e});return u((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),d=function(e){const[t,n]=l(void 0);return te((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(t);return s((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=he(n),o.call(e,!he(n)&&n),e.dispatchEvent(t)}}),[c,n,r]),p("input",V({type:"checkbox","aria-hidden":!0,defaultChecked:!he(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function he(e){return"indeterminate"===e}function be(e){return he(e)?"indeterminate":e?"checked":"unchecked"}const ye=ve,we=o(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=me("CheckboxIndicator",n);return p(ne,{present:r||he(a.state)||!0===a.state},p(ce.span,V({"data-state":be(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}));var Ne=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(ye,C({ref:n,className:O("peer h-4 w-4 shrink-0 rounded-sm border border-primary-30 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:border-socondary-120 disabled:border-socondary-110",{"data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground":!o.disabled,"bg-grey2-300":o.checked&&o.disabled},r)},o,{children:e(we,{className:O("flex items-center justify-center text-current"),children:e(P,{className:"h-4 w-4"})})}))}));Ne.displayName=ye.displayName;const xe=o(((e,t)=>p(ce.label,V({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))));var Ee=w("typography-label1 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ce=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(xe,C({ref:n,className:O(Ee(),r)},o))}));Ce.displayName=xe.displayName;var ke=r.forwardRef((function(t,n){var r=t.className,o=t.type,a=k(t,["className","type"]);return e("input",C({type:o,className:O("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:n},a))}));ke.displayName="Input";var De=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("div",{className:"relative w-full overflow-auto",children:e("table",C({ref:n,className:O("w-full caption-bottom text-sm",r)},o))})}));De.displayName="Table";var Te=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("thead",C({ref:n,className:O("[&_tr]:border-b",r)},o))}));Te.displayName="TableHeader";var Oe=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tbody",C({ref:n,className:O("[&_tr:last-child]:border-0",r)},o))}));Oe.displayName="TableBody";var Ae=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tfoot",C({ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r)},o))}));Ae.displayName="TableFooter";var _e=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("tr",C({ref:n,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r)},o))}));_e.displayName="TableRow";var Le=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("th",C({ref:n,className:O("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r)},o))}));Le.displayName="TableHead";var Se=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("td",C({ref:n,className:O("p-4 align-middle [&:has([role=checkbox])]:pr-0",r)},o))}));Se.displayName="TableCell";var Ie=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e("caption",C({ref:n,className:O("mt-4 text-sm text-muted-foreground",r)},o))}));Ie.displayName="TableCaption";const Re=r["useId".toString()]||(()=>{});let Pe=0;function Me(e){const[t,n]=r.useState(Re());return te((()=>{e||n((e=>null!=e?e:String(Pe++)))}),[e]),e||(t?`radix-${t}`:"")}const ze="dismissableLayer.update",Fe="dismissableLayer.pointerDownOutside",je="dismissableLayer.focusOutside";let Be;const We=f({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ue=o(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...f}=e,v=m(We),[g,h]=l(null),b=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=l({}),w=X(t,(e=>h(e))),N=Array.from(v.layers),[x]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=N.indexOf(x),C=g?N.indexOf(g):-1,k=v.layersWithOutsidePointerEventsDisabled.size>0,D=C>=E,T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e),r=a(!1),o=a((()=>{}));return s((()=>{const e=e=>{if(e.target&&!r.current){const a={originalEvent:e};function i(){Ze(Fe,n,a,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...v.branches].some((e=>e.contains(t)));D&&!n&&(null==i||i(e),null==u||u(e),e.defaultPrevented||null==d||d())}),b),O=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e),r=a(!1);return s((()=>{const e=e=>{if(e.target&&!r.current){Ze(je,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...v.branches].some((e=>e.contains(t)))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Q(e);s((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{C===v.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),b),s((()=>{if(g)return r&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(Be=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),He(),()=>{r&&1===v.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=Be)}}),[g,b,r,v]),s((()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),He())}),[g,v]),s((()=>{const e=()=>y({});return document.addEventListener(ze,e),()=>document.removeEventListener(ze,e)}),[]),p(ce.div,V({},f,{ref:w,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,O.onFocusCapture),onBlurCapture:J(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,T.onPointerDownCapture)}))}));function He(){const e=new CustomEvent(ze);document.dispatchEvent(e)}function Ze(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&E((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const Ke="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",Ve={bubbles:!1,cancelable:!0},$e=o(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[d,f]=l(null),m=Q(o),v=Q(i),g=a(null),h=X(t,(e=>f(e))),b=a({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s((()=>{if(r){function e(e){if(b.paused||!d)return;const t=e.target;d.contains(t)?g.current=t:Je(g.current,{select:!0})}function t(e){if(b.paused||!d)return;const t=e.relatedTarget;null!==t&&(d.contains(t)||Je(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Je(d)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return d&&o.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,d,b.paused]),s((()=>{if(d){Qe.add(b);const t=document.activeElement;if(!d.contains(t)){const n=new CustomEvent(Ke,Ve);d.addEventListener(Ke,m),d.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}((e=Xe(d),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Je(d))}return()=>{d.removeEventListener(Ke,m),setTimeout((()=>{const e=new CustomEvent(qe,Ve);d.addEventListener(qe,v),d.dispatchEvent(e),e.defaultPrevented||Je(null!=t?t:document.body,{select:!0}),d.removeEventListener(qe,v),Qe.remove(b)}),0)}}var e}),[d,m,v,b]);const y=c((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Xe(e),n=Ye(t,e),r=Ye(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Je(a,{select:!0})):(e.preventDefault(),n&&Je(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return p(ce.div,V({tabIndex:-1},u,{ref:h,onKeyDown:y}))}));function Xe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ye(e,t){for(const n of e)if(!Ge(n,{upTo:t}))return n}function Ge(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Qe=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=et(e,t),e.unshift(t)},remove(t){var n;e=et(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function et(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const tt=o(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?x.createPortal(p(ce.div,V({},o,{ref:t})),r):null}));let nt=0;function rt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ot="right-scroll-bar-position",at="width-before-scroll-bar";function it(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var lt="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,st=new WeakMap;function ct(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach((function(e){return it(e,t)}))},(o=l((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return lt((function(){var t=st.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||it(e,null)})),r.forEach((function(e){n.has(e)||it(e,o)}))}st.set(a,e)}),[e]),a}function ut(e){return e}var dt=function(e){var t=e.sideCar,n=k(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,C({},n))};dt.isSideCarExport=!0;var ft=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ut);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=C({async:!0,ssr:!1},e),t}(),pt=function(){},mt=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:pt,onWheelCapture:pt,onTouchMoveCapture:pt}),a=o[0],i=o[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,h=e.as,b=void 0===h?"div":h,y=k(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,N=ct([n,t]),x=C(C({},y),a);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:ft,removeScrollBar:u,shards:f,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),l?r.cloneElement(r.Children.only(s),C(C({},x),{ref:N})):r.createElement(b,C({},x,{className:c,ref:N}),s))}));mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mt.classNames={fullWidth:at,zeroRight:ot};function vt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var gt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=vt())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ht=function(){var e,t=(e=gt(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},bt={left:0,top:0,right:0,gap:0},yt=function(e){return parseInt(e||"",10)||0},wt=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[yt(n),yt(r),yt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Nt=ht(),xt="data-scroll-locked",Et=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(xt,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ot," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(at," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ot," .").concat(ot," {\n right: 0 ").concat(r,";\n }\n \n .").concat(at," .").concat(at," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(xt,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Ct=function(){var e=parseInt(document.body.getAttribute(xt)||"0",10);return isFinite(e)?e:0},kt=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(xt,(Ct()+1).toString()),function(){var e=Ct()-1;e<=0?document.body.removeAttribute(xt):document.body.setAttribute(xt,e.toString())}}),[]);var i=r.useMemo((function(){return wt(a)}),[a]);return r.createElement(Nt,{styles:Et(i,!t,a,n?"":"!important")})},Dt=!1;if("undefined"!=typeof window)try{var Tt=Object.defineProperty({},"passive",{get:function(){return Dt=!0,!0}});window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch(e){Dt=!1}var Ot=!!Dt&&{passive:!1},At=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_t=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Lt(e,n)){var r=St(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Lt=function(e,t){return"v"===e?function(e){return At(e,"overflowY")}(t):function(e){return At(e,"overflowX")}(t)},St=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},It=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rt=function(e){return[e.deltaX,e.deltaY]},Pt=function(e){return e&&"current"in e?e.current:e},Mt=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},zt=0,Ft=[];var jt,Bt=(jt=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(zt++)[0],i=r.useState((function(){return ht()}))[0],l=r.useRef(e);r.useEffect((function(){l.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Pt),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,a=It(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=_t(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=_t(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||c)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),c=!1,u=i>0,d=0,f=0;do{var p=St(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&Lt(e,l)&&(d+=v,f+=m),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!u||0!==d&&o)&&(u||0!==f&&o)||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=r.useCallback((function(e){var n=e;if(Ft.length&&Ft[Ft.length-1]===i){var r="deltaY"in n?Rt(n):It(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(l.current.shards||[]).map(Pt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?s(n,a[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=r.useCallback((function(e){n.current=It(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,Rt(t),t.target,s(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,It(t),t.target,s(t,e.lockRef.current))}),[]);r.useEffect((function(){return Ft.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ot),document.addEventListener("touchmove",c,Ot),document.addEventListener("touchstart",d,Ot),function(){Ft=Ft.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Ot),document.removeEventListener("touchmove",c,Ot),document.removeEventListener("touchstart",d,Ot)}}),[]);var m=e.removeScrollBar,v=e.inert;return r.createElement(r.Fragment,null,v?r.createElement(i,{styles:Mt(a)}):null,m?r.createElement(kt,{gapMode:"margin"}):null)},ft.useMedium(jt),dt),Wt=r.forwardRef((function(e,t){return r.createElement(mt,C({},e,{ref:t,sideCar:Bt}))}));Wt.classNames=mt.classNames;var Ut=new WeakMap,Ht=new WeakMap,Zt={},Kt=0,qt=function(e){return e&&(e.host||qt(e.parentNode))},Vt=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=qt(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var a=Zt[n],i=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(Ut.get(e)||0)+1,c=(a.get(e)||0)+1;Ut.set(e,s),a.set(e,c),i.push(e),1===s&&o&&Ht.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),Kt++,function(){i.forEach((function(e){var t=Ut.get(e)-1,o=a.get(e)-1;Ut.set(e,t),a.set(e,o),t||(Ht.has(e)||e.removeAttribute(r),Ht.delete(e)),o||e.removeAttribute(n)})),--Kt||(Ut=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Zt={})}},$t=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vt(r,o,n,"aria-hidden")):function(){return null}};const Xt="Dialog",[Yt,Gt]=Y(Xt),[Jt,Qt]=Yt(Xt),en=o(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt("DialogTrigger",n),a=X(t,o.triggerRef);return p(ce.button,V({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yn(o.open)},r,{ref:a,onClick:J(e.onClick,o.onOpenToggle)}))})),tn="DialogPortal",[nn,rn]=Yt(tn,{forceMount:void 0}),on="DialogOverlay",an=o(((e,t)=>{const n=rn(on,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Qt(on,e.__scopeDialog);return a.modal?p(ne,{present:r||a.open},p(ln,V({},o,{ref:t}))):null})),ln=o(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(on,n);return p(Wt,{as:oe,allowPinchZoom:!0,shards:[o.contentRef]},p(ce.div,V({"data-state":yn(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),sn="DialogContent",cn=o(((e,t)=>{const n=rn(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Qt(sn,e.__scopeDialog);return p(ne,{present:r||a.open},a.modal?p(un,V({},o,{ref:t})):p(dn,V({},o,{ref:t})))})),un=o(((e,t)=>{const n=Qt(sn,e.__scopeDialog),r=a(null),o=X(t,n.contentRef,r);return s((()=>{const e=r.current;if(e)return $t(e)}),[]),p(fn,V({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:J(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:J(e.onFocusOutside,(e=>e.preventDefault()))}))})),dn=o(((e,t)=>{const n=Qt(sn,e.__scopeDialog),r=a(!1),o=a(!1);return p(fn,V({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),fn=o(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,c=Qt(sn,n),u=X(t,a(null));return s((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:rt()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:rt()),nt++,()=>{1===nt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nt--}}),[]),p(d,null,p($e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},p(Ue,V({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":yn(c.open)},l,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)})),pn="DialogTitle",mn=o(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(pn,n);return p(ce.h2,V({id:o.titleId},r,{ref:t}))})),vn="DialogDescription",gn=o(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(vn,n);return p(ce.p,V({id:o.descriptionId},r,{ref:t}))})),hn="DialogClose",bn=o(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Qt(hn,n);return p(ce.button,V({type:"button"},r,{ref:t,onClick:J(e.onClick,(()=>o.onOpenChange(!1)))}))}));function yn(e){return e?"open":"closed"}const[wn,Nn]=function(e,t){const n=f(t);function r(e){const{children:t,...r}=e,o=u((()=>r),Object.values(r));return p(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=m(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:sn,titleName:pn,docsSlug:"dialog"}),xn=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=a(null),u=a(null),[d=!1,f]=ee({prop:r,defaultProp:o,onChange:i});return p(Jt,{scope:t,triggerRef:s,contentRef:u,contentId:Me(),titleId:Me(),descriptionId:Me(),open:d,onOpenChange:f,onOpenToggle:c((()=>f((e=>!e))),[f]),modal:l},n)},En=en,Cn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Qt(tn,t);return p(nn,{scope:t,forceMount:n},g.map(r,(e=>p(ne,{present:n||a.open},p(tt,{asChild:!0,container:o},e)))))},kn=an,Dn=cn,Tn=mn,On=gn,An=bn;var _n=xn,Ln=En,Sn=Cn,In=An,Rn=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(kn,C({ref:n,className:O("fixed inset-0 z-50 bg-popup-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},o))}));Rn.displayName=kn.displayName;var Pn=r.forwardRef((function(n,r){var o=n.className,a=n.children,i=k(n,["className","children"]);return t(Sn,{children:[e(Rn,{}),t(Dn,C({ref:r,className:O("fixed text-textcolor-grey-dark left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--popup-rounded)]",o)},i,{children:[a,t(An,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e(j,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]}))]})}));Pn.displayName=Dn.displayName;var Mn=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col space-y-2 text-center sm:text-left",n)},r))};Mn.displayName="DialogHeader";var zn=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n)},r))};zn.displayName="DialogFooter";var Fn=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(Tn,C({ref:n,className:O("typography-h5 tracking-tight",r)},o))}));Fn.displayName=Tn.displayName;var jn=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(On,C({ref:n,className:O("text-sm",r)},o))}));jn.displayName=On.displayName;const[Bn,Wn]=Y("AlertDialog",[Gt]),Un=Gt(),Hn=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return p(En,V({},o,r,{ref:t}))})),Zn=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return p(kn,V({},o,r,{ref:t}))})),Kn="AlertDialogContent",[qn,Vn]=Bn(Kn),$n=o(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Un(n),l=X(t,a(null)),s=a(null);return p(wn,{contentName:Kn,titleName:Xn,docsSlug:"alert-dialog"},p(qn,{scope:n,cancelRef:s},p(Dn,V({role:"alertdialog"},i,o,{ref:l,onOpenAutoFocus:J(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),p(ie,null,r),!1)))})),Xn="AlertDialogTitle",Yn=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return p(Tn,V({},o,r,{ref:t}))})),Gn=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return p(On,V({},o,r,{ref:t}))})),Jn=Zn,Qn=$n,er=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Un(n);return p(An,V({},o,r,{ref:t}))})),tr=o(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Vn("AlertDialogCancel",n),a=Un(n),i=X(t,o);return p(An,V({},a,r,{ref:i}))})),nr=Yn,rr=Gn;var or=e=>{const{__scopeAlertDialog:t,...n}=e,r=Un(t);return p(xn,V({},r,n,{modal:!0}))},ar=Hn,ir=e=>{const{__scopeAlertDialog:t,...n}=e,r=Un(t);return p(Cn,V({},r,n))},lr=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(Jn,C({className:O("fixed inset-0 bg-popup-overlay z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},o,{ref:n}))}));lr.displayName=Jn.displayName;var sr=r.forwardRef((function(n,r){var o=n.className,a=k(n,["className"]);return t(ir,{children:[e(lr,{}),e(Qn,C({ref:r,className:O("fixed text-textcolor-grey-dark left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 border bg-popup-background p-8 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--popup-rounded)]",o)},a))]})}));sr.displayName=Qn.displayName;var cr=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col space-y-2 text-center sm:text-left",n)},r))};cr.displayName="AlertDialogHeader";var ur=function(t){var n=t.className,r=k(t,["className"]);return e("div",C({className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n)},r))};ur.displayName="AlertDialogFooter";var dr=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(nr,C({ref:n,className:O("typography-h5",r)},o))}));dr.displayName=nr.displayName;var fr=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(rr,C({ref:n,className:O("text-sm",r)},o))}));fr.displayName=rr.displayName;var pr=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(er,C({ref:n,className:O(D({fullwidth:!1}),r)},o))}));pr.displayName=er.displayName;var mr=r.forwardRef((function(t,n){var r=t.className,o=k(t,["className"]);return e(tr,C({ref:n,className:O(D({fullwidth:!1,variant:"outline"}),"mt-2 sm:mt-0",r)},o))}));mr.displayName=tr.displayName;var vr=function(e){return String(e).length>10?e/1e3:e},gr=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t},hr=function(e){var t=new Date(e);return t.setHours(23,59,59,999),t},br=function(){var e=gr(new Date);return{startTime:e,endTime:hr(e)}},yr=function(e){var t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return vr(t)};export{or as AlertDialog,pr as AlertDialogAction,mr as AlertDialogCancel,sr as AlertDialogContent,fr as AlertDialogDescription,ur as AlertDialogFooter,cr as AlertDialogHeader,lr as AlertDialogOverlay,ir as AlertDialogPortal,dr as AlertDialogTitle,ar as AlertDialogTrigger,A as Button,Ne as Checkbox,_n as Dialog,In as DialogClose,Pn as DialogContent,jn as DialogDescription,zn as DialogFooter,Mn as DialogHeader,Rn as DialogOverlay,Sn as DialogPortal,Fn as DialogTitle,Ln as DialogTrigger,q as Dropdown,ke as Input,Ce as Label,De as Table,Oe as TableBody,Ie as TableCaption,Se as TableCell,Ae as TableFooter,Le as TableHead,Te as TableHeader,_e as TableRow,U as Tabs,W as Text,B as TextInput,O as cn,hr as getEndDateOfDay,gr as getStartDateOfDay,br as getStartEndTimestampOfDay,yr as getTimestampUTC,vr as resloveTimestamp};
2
2
  //# sourceMappingURL=bundle.js.map