myshell-react-lib 0.1.67 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +922 -280
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -1
- package/dist/index.d.ts +73 -1
- package/dist/index.js +911 -277
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark.scss +2 -2
- package/dist/styles/design2-dark.scss +5 -5
- package/dist/styles/design2-light.scss +5 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4453,6 +4453,9 @@ __export(index_exports, {
|
|
|
4453
4453
|
ModalTitle: function() {
|
|
4454
4454
|
return ModalTitle;
|
|
4455
4455
|
},
|
|
4456
|
+
MultipleSelector: function() {
|
|
4457
|
+
return MultipleSelector;
|
|
4458
|
+
},
|
|
4456
4459
|
NetworkErrorState: function() {
|
|
4457
4460
|
return NetworkErrorState;
|
|
4458
4461
|
},
|
|
@@ -4696,6 +4699,9 @@ __export(index_exports, {
|
|
|
4696
4699
|
toggleVariants: function() {
|
|
4697
4700
|
return toggleVariants;
|
|
4698
4701
|
},
|
|
4702
|
+
useDebounce: function() {
|
|
4703
|
+
return useDebounce;
|
|
4704
|
+
},
|
|
4699
4705
|
useDevice: function() {
|
|
4700
4706
|
return useDevice;
|
|
4701
4707
|
},
|
|
@@ -7219,7 +7225,7 @@ var CommandItem = React16.forwardRef(function(_param, ref) {
|
|
|
7219
7225
|
]);
|
|
7220
7226
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_cmdk.Command.Item, _object_spread({
|
|
7221
7227
|
ref: ref,
|
|
7222
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
7228
|
+
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-Colors-Background-Normal-Primary-Hover aria-selected:text-Colors-Text-Default data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
|
|
7223
7229
|
}, props));
|
|
7224
7230
|
});
|
|
7225
7231
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
@@ -11428,7 +11434,6 @@ NumberInput.displayName = "NumberInput";
|
|
|
11428
11434
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
11429
11435
|
// src/components/radio-group.tsx
|
|
11430
11436
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
11431
|
-
var import_lucide_react9 = require("lucide-react");
|
|
11432
11437
|
var React30 = __toESM(require("react"), 1);
|
|
11433
11438
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
11434
11439
|
var RadioGroupItem = React30.forwardRef(function(_param, ref) {
|
|
@@ -11437,12 +11442,12 @@ var RadioGroupItem = React30.forwardRef(function(_param, ref) {
|
|
|
11437
11442
|
]);
|
|
11438
11443
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
11439
11444
|
ref: ref,
|
|
11440
|
-
className: cn("aspect-square h-5 w-5
|
|
11445
|
+
className: cn("aspect-square h-5 w-5 shrink-0 border-[1.5px] rounded-full border-cc-Check-Box-border-default hover:border-cc-Check-Box-border-hover hover:disabled:border-cc-Check-Box-border-disabled disabled:bg-cc-Check-Box-bg-disabled disabled:data-[state=checked]:border-cc-Check-Box-border-disabled hover:data-[state=checked]:bg-cc-Check-Box-border-hovered data-[state=checked]:border-none data-[state=checked]:bg-cc-Check-Box-bg-default disabled:data-[state=checked]:bg-cc-Check-Box-border-disabled disabled:cursor-not-allowed disabled:opacity-40", className)
|
|
11441
11446
|
}, props), {
|
|
11442
11447
|
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupPrimitive.Indicator, {
|
|
11443
11448
|
className: "flex items-center justify-center",
|
|
11444
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
11445
|
-
className: "
|
|
11449
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", {
|
|
11450
|
+
className: cn("w-2 h-2 rounded-full bg-cc-Check-Box-fg-default", props.disabled && "bg-cc-Check-Box-fg-alt")
|
|
11446
11451
|
})
|
|
11447
11452
|
})
|
|
11448
11453
|
}));
|
|
@@ -11454,7 +11459,9 @@ var RadioGroup4 = React30.forwardRef(function(_param, ref) {
|
|
|
11454
11459
|
"options"
|
|
11455
11460
|
]);
|
|
11456
11461
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
11457
|
-
className: cn("grid gap-2", className
|
|
11462
|
+
className: cn("grid gap-2", className, {
|
|
11463
|
+
"grid-flow-col space-x-4": props.orientation === "horizontal"
|
|
11464
|
+
})
|
|
11458
11465
|
}, props), {
|
|
11459
11466
|
ref: ref,
|
|
11460
11467
|
children: options === null || options === void 0 ? void 0 : options.map(function(option) {
|
|
@@ -11463,11 +11470,14 @@ var RadioGroup4 = React30.forwardRef(function(_param, ref) {
|
|
|
11463
11470
|
children: [
|
|
11464
11471
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupItem, {
|
|
11465
11472
|
value: option.value,
|
|
11466
|
-
id: option.value
|
|
11473
|
+
id: option.value,
|
|
11474
|
+
disabled: option.disabled
|
|
11467
11475
|
}),
|
|
11468
11476
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Label3, {
|
|
11469
11477
|
htmlFor: option.value,
|
|
11470
|
-
className: "font-normal",
|
|
11478
|
+
className: cn("font-normal", {
|
|
11479
|
+
"cursor-not-allowed opacity-40": option.disabled
|
|
11480
|
+
}),
|
|
11471
11481
|
children: option.label
|
|
11472
11482
|
})
|
|
11473
11483
|
]
|
|
@@ -11658,7 +11668,7 @@ function TopNavigationBar(param) {
|
|
|
11658
11668
|
// src/components/select.tsx
|
|
11659
11669
|
var import_outline = require("@heroicons/react/24/outline");
|
|
11660
11670
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
11661
|
-
var
|
|
11671
|
+
var import_lucide_react9 = require("lucide-react");
|
|
11662
11672
|
var React33 = __toESM(require("react"), 1);
|
|
11663
11673
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11664
11674
|
var Select = React33.forwardRef(function(_param, ref) {
|
|
@@ -11718,7 +11728,7 @@ var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
|
11718
11728
|
children,
|
|
11719
11729
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Icon, {
|
|
11720
11730
|
asChild: true,
|
|
11721
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
11731
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react9.ChevronDown, {
|
|
11722
11732
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
11723
11733
|
})
|
|
11724
11734
|
})
|
|
@@ -11734,7 +11744,7 @@ var SelectScrollUpButton = React33.forwardRef(function(_param, ref) {
|
|
|
11734
11744
|
ref: ref,
|
|
11735
11745
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11736
11746
|
}, props), {
|
|
11737
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
11747
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react9.ChevronUp, {
|
|
11738
11748
|
className: "h-4 w-4"
|
|
11739
11749
|
})
|
|
11740
11750
|
}));
|
|
@@ -11748,7 +11758,7 @@ var SelectScrollDownButton = React33.forwardRef(function(_param, ref) {
|
|
|
11748
11758
|
ref: ref,
|
|
11749
11759
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11750
11760
|
}, props), {
|
|
11751
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
11761
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react9.ChevronDown, {
|
|
11752
11762
|
className: "h-4 w-4"
|
|
11753
11763
|
})
|
|
11754
11764
|
}));
|
|
@@ -11861,21 +11871,651 @@ var SelectSeparator = React33.forwardRef(function(_param, ref) {
|
|
|
11861
11871
|
}, props));
|
|
11862
11872
|
});
|
|
11863
11873
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
11874
|
+
// src/components/multiple-selector.tsx
|
|
11875
|
+
var import_cmdk2 = require("cmdk");
|
|
11876
|
+
var import_lucide_react10 = require("lucide-react");
|
|
11877
|
+
var React34 = __toESM(require("react"), 1);
|
|
11878
|
+
var import_react16 = require("react");
|
|
11879
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
11880
|
+
function useDebounce(value1, delay) {
|
|
11881
|
+
var _React34_useState = _sliced_to_array(React34.useState(value1), 2), debouncedValue = _React34_useState[0], setDebouncedValue = _React34_useState[1];
|
|
11882
|
+
(0, import_react16.useEffect)(function() {
|
|
11883
|
+
var timer = setTimeout(function() {
|
|
11884
|
+
return setDebouncedValue(value1);
|
|
11885
|
+
}, delay || 500);
|
|
11886
|
+
return function() {
|
|
11887
|
+
clearTimeout(timer);
|
|
11888
|
+
};
|
|
11889
|
+
}, [
|
|
11890
|
+
value1,
|
|
11891
|
+
delay
|
|
11892
|
+
]);
|
|
11893
|
+
return debouncedValue;
|
|
11894
|
+
}
|
|
11895
|
+
function transToGroupOption(options, groupBy) {
|
|
11896
|
+
if (options.length === 0) {
|
|
11897
|
+
return {};
|
|
11898
|
+
}
|
|
11899
|
+
if (!groupBy) {
|
|
11900
|
+
return {
|
|
11901
|
+
"": options
|
|
11902
|
+
};
|
|
11903
|
+
}
|
|
11904
|
+
var groupOption = {};
|
|
11905
|
+
options.forEach(function(option) {
|
|
11906
|
+
var key = option[groupBy] || "";
|
|
11907
|
+
if (!groupOption[key]) {
|
|
11908
|
+
groupOption[key] = [];
|
|
11909
|
+
}
|
|
11910
|
+
groupOption[key].push(option);
|
|
11911
|
+
});
|
|
11912
|
+
return groupOption;
|
|
11913
|
+
}
|
|
11914
|
+
function removePickedOption(groupOption, picked) {
|
|
11915
|
+
var cloneOption = JSON.parse(JSON.stringify(groupOption));
|
|
11916
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
11917
|
+
try {
|
|
11918
|
+
for(var _iterator = Object.entries(cloneOption)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
11919
|
+
var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], value1 = _step_value[1];
|
|
11920
|
+
cloneOption[key] = value1.filter(function(val) {
|
|
11921
|
+
return !picked.find(function(p) {
|
|
11922
|
+
return p.value === val.value;
|
|
11923
|
+
});
|
|
11924
|
+
});
|
|
11925
|
+
}
|
|
11926
|
+
} catch (err) {
|
|
11927
|
+
_didIteratorError = true;
|
|
11928
|
+
_iteratorError = err;
|
|
11929
|
+
} finally{
|
|
11930
|
+
try {
|
|
11931
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
11932
|
+
_iterator.return();
|
|
11933
|
+
}
|
|
11934
|
+
} finally{
|
|
11935
|
+
if (_didIteratorError) {
|
|
11936
|
+
throw _iteratorError;
|
|
11937
|
+
}
|
|
11938
|
+
}
|
|
11939
|
+
}
|
|
11940
|
+
return cloneOption;
|
|
11941
|
+
}
|
|
11942
|
+
function isOptionsExist(groupOption, targetOption) {
|
|
11943
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
11944
|
+
try {
|
|
11945
|
+
for(var _iterator = Object.entries(groupOption)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
11946
|
+
var _step_value = _sliced_to_array(_step.value, 2), value1 = _step_value[1];
|
|
11947
|
+
if (value1.some(function(option) {
|
|
11948
|
+
return targetOption.find(function(p) {
|
|
11949
|
+
return p.value === option.value;
|
|
11950
|
+
});
|
|
11951
|
+
})) {
|
|
11952
|
+
return true;
|
|
11953
|
+
}
|
|
11954
|
+
}
|
|
11955
|
+
} catch (err) {
|
|
11956
|
+
_didIteratorError = true;
|
|
11957
|
+
_iteratorError = err;
|
|
11958
|
+
} finally{
|
|
11959
|
+
try {
|
|
11960
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
11961
|
+
_iterator.return();
|
|
11962
|
+
}
|
|
11963
|
+
} finally{
|
|
11964
|
+
if (_didIteratorError) {
|
|
11965
|
+
throw _iteratorError;
|
|
11966
|
+
}
|
|
11967
|
+
}
|
|
11968
|
+
}
|
|
11969
|
+
return false;
|
|
11970
|
+
}
|
|
11971
|
+
var CommandEmpty2 = (0, import_react16.forwardRef)(function(_param, forwardedRef) {
|
|
11972
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
11973
|
+
"className"
|
|
11974
|
+
]);
|
|
11975
|
+
var render = (0, import_cmdk2.useCommandState)(function(state) {
|
|
11976
|
+
return state.filtered.count === 0;
|
|
11977
|
+
});
|
|
11978
|
+
if (!render) return null;
|
|
11979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", _object_spread({
|
|
11980
|
+
ref: forwardedRef,
|
|
11981
|
+
className: cn("py-6 text-center text-sm", className),
|
|
11982
|
+
"cmdk-empty": "",
|
|
11983
|
+
role: "presentation"
|
|
11984
|
+
}, props));
|
|
11985
|
+
});
|
|
11986
|
+
CommandEmpty2.displayName = "CommandEmpty";
|
|
11987
|
+
var MultipleSelector = React34.forwardRef(function(param, ref) {
|
|
11988
|
+
var value1 = param.value, onChange = param.onChange, placeholder = param.placeholder, tmp = param.// defaultOptions: arrayDefaultOptions = [],
|
|
11989
|
+
options, arrayOptions = tmp === void 0 ? [] : tmp, delay = param.delay, onSearch = param.onSearch, onSearchSync = param.onSearchSync, loadingIndicator = param.loadingIndicator, emptyIndicator = param.emptyIndicator, _param_maxSelected = param.maxSelected, maxSelected = _param_maxSelected === void 0 ? Number.MAX_SAFE_INTEGER : _param_maxSelected, onMaxSelected = param.onMaxSelected, _param_hidePlaceholderWhenSelected = param.hidePlaceholderWhenSelected, hidePlaceholderWhenSelected = _param_hidePlaceholderWhenSelected === void 0 ? true : _param_hidePlaceholderWhenSelected, disabled = param.disabled, groupBy = param.groupBy, className = param.className, badgeClassName = param.badgeClassName, _param_selectFirstItem = param.selectFirstItem, selectFirstItem = _param_selectFirstItem === void 0 ? true : _param_selectFirstItem, _param_creatable = param.creatable, creatable = _param_creatable === void 0 ? false : _param_creatable, _param_triggerSearchOnFocus = param.triggerSearchOnFocus, triggerSearchOnFocus = _param_triggerSearchOnFocus === void 0 ? false : _param_triggerSearchOnFocus, commandProps = param.commandProps, inputProps = param.inputProps, _param_hideClearAllButton = param.hideClearAllButton, hideClearAllButton = _param_hideClearAllButton === void 0 ? false : _param_hideClearAllButton;
|
|
11990
|
+
var inputRef = React34.useRef(null);
|
|
11991
|
+
var _React34_useState = _sliced_to_array(React34.useState(false), 2), open = _React34_useState[0], setOpen = _React34_useState[1];
|
|
11992
|
+
var _React34_useState1 = _sliced_to_array(React34.useState(false), 2), onScrollbar = _React34_useState1[0], setOnScrollbar = _React34_useState1[1];
|
|
11993
|
+
var _React34_useState2 = _sliced_to_array(React34.useState(false), 2), isLoading = _React34_useState2[0], setIsLoading = _React34_useState2[1];
|
|
11994
|
+
var dropdownRef = React34.useRef(null);
|
|
11995
|
+
var _React34_useState3 = _sliced_to_array(React34.useState((arrayOptions === null || arrayOptions === void 0 ? void 0 : arrayOptions.filter(function(item) {
|
|
11996
|
+
return value1 === null || value1 === void 0 ? void 0 : value1.includes(item.value);
|
|
11997
|
+
})) || []), 2), selected = _React34_useState3[0], setSelected = _React34_useState3[1];
|
|
11998
|
+
var _React34_useState4 = _sliced_to_array(React34.useState(transToGroupOption(arrayOptions, groupBy)), 2), options = _React34_useState4[0], setOptions = _React34_useState4[1];
|
|
11999
|
+
var _React34_useState5 = _sliced_to_array(React34.useState(""), 2), inputValue = _React34_useState5[0], setInputValue = _React34_useState5[1];
|
|
12000
|
+
var debouncedSearchTerm = useDebounce(inputValue, delay || 500);
|
|
12001
|
+
React34.useImperativeHandle(ref, function() {
|
|
12002
|
+
return {
|
|
12003
|
+
selectedValue: _to_consumable_array(selected),
|
|
12004
|
+
input: inputRef.current,
|
|
12005
|
+
focus: function() {
|
|
12006
|
+
var _inputRef_current;
|
|
12007
|
+
return inputRef === null || inputRef === void 0 ? void 0 : (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
12008
|
+
},
|
|
12009
|
+
reset: function() {
|
|
12010
|
+
return setSelected([]);
|
|
12011
|
+
}
|
|
12012
|
+
};
|
|
12013
|
+
}, [
|
|
12014
|
+
selected
|
|
12015
|
+
]);
|
|
12016
|
+
var handleClickOutside = function(event) {
|
|
12017
|
+
if (dropdownRef.current && !dropdownRef.current.contains(event.target) && inputRef.current && !inputRef.current.contains(event.target)) {
|
|
12018
|
+
setOpen(false);
|
|
12019
|
+
inputRef.current.blur();
|
|
12020
|
+
}
|
|
12021
|
+
};
|
|
12022
|
+
var handleUnselect = React34.useCallback(function(option) {
|
|
12023
|
+
var newOptions = selected.filter(function(s) {
|
|
12024
|
+
return s.value !== option.value;
|
|
12025
|
+
});
|
|
12026
|
+
setSelected(newOptions);
|
|
12027
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newOptions.map(function(item) {
|
|
12028
|
+
return item.value;
|
|
12029
|
+
}));
|
|
12030
|
+
}, [
|
|
12031
|
+
onChange,
|
|
12032
|
+
selected
|
|
12033
|
+
]);
|
|
12034
|
+
var handleKeyDown = React34.useCallback(function(e) {
|
|
12035
|
+
var input = inputRef.current;
|
|
12036
|
+
if (input) {
|
|
12037
|
+
if (e.key === "Delete" || e.key === "Backspace") {
|
|
12038
|
+
if (input.value === "" && selected.length > 0) {
|
|
12039
|
+
var lastSelectOption = selected[selected.length - 1];
|
|
12040
|
+
if (!lastSelectOption.fixed) {
|
|
12041
|
+
handleUnselect(selected[selected.length - 1]);
|
|
12042
|
+
}
|
|
12043
|
+
}
|
|
12044
|
+
}
|
|
12045
|
+
if (e.key === "Escape") {
|
|
12046
|
+
input.blur();
|
|
12047
|
+
}
|
|
12048
|
+
}
|
|
12049
|
+
}, [
|
|
12050
|
+
handleUnselect,
|
|
12051
|
+
selected
|
|
12052
|
+
]);
|
|
12053
|
+
(0, import_react16.useEffect)(function() {
|
|
12054
|
+
if (open) {
|
|
12055
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
12056
|
+
document.addEventListener("touchend", handleClickOutside);
|
|
12057
|
+
} else {
|
|
12058
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
12059
|
+
document.removeEventListener("touchend", handleClickOutside);
|
|
12060
|
+
}
|
|
12061
|
+
return function() {
|
|
12062
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
12063
|
+
document.removeEventListener("touchend", handleClickOutside);
|
|
12064
|
+
};
|
|
12065
|
+
}, [
|
|
12066
|
+
open
|
|
12067
|
+
]);
|
|
12068
|
+
(0, import_react16.useEffect)(function() {
|
|
12069
|
+
if (value1) {
|
|
12070
|
+
setSelected((arrayOptions === null || arrayOptions === void 0 ? void 0 : arrayOptions.filter(function(item) {
|
|
12071
|
+
return value1 === null || value1 === void 0 ? void 0 : value1.includes(item.value);
|
|
12072
|
+
})) || []);
|
|
12073
|
+
}
|
|
12074
|
+
}, [
|
|
12075
|
+
value1
|
|
12076
|
+
]);
|
|
12077
|
+
(0, import_react16.useEffect)(function() {
|
|
12078
|
+
if (!arrayOptions || onSearch) {
|
|
12079
|
+
return;
|
|
12080
|
+
}
|
|
12081
|
+
var newOption = transToGroupOption(arrayOptions || [], groupBy);
|
|
12082
|
+
if (JSON.stringify(newOption) !== JSON.stringify(options)) {
|
|
12083
|
+
setOptions(newOption);
|
|
12084
|
+
}
|
|
12085
|
+
}, [
|
|
12086
|
+
arrayOptions,
|
|
12087
|
+
groupBy,
|
|
12088
|
+
onSearch,
|
|
12089
|
+
options
|
|
12090
|
+
]);
|
|
12091
|
+
(0, import_react16.useEffect)(function() {
|
|
12092
|
+
var doSearchSync = function() {
|
|
12093
|
+
var res = onSearchSync === null || onSearchSync === void 0 ? void 0 : onSearchSync(debouncedSearchTerm);
|
|
12094
|
+
setOptions(transToGroupOption(res || [], groupBy));
|
|
12095
|
+
};
|
|
12096
|
+
var exec = /*#__PURE__*/ function() {
|
|
12097
|
+
var _ref = _async_to_generator(function() {
|
|
12098
|
+
return _ts_generator(this, function(_state) {
|
|
12099
|
+
if (!onSearchSync || !open) return [
|
|
12100
|
+
2
|
|
12101
|
+
];
|
|
12102
|
+
if (triggerSearchOnFocus) {
|
|
12103
|
+
doSearchSync();
|
|
12104
|
+
}
|
|
12105
|
+
if (debouncedSearchTerm) {
|
|
12106
|
+
doSearchSync();
|
|
12107
|
+
}
|
|
12108
|
+
return [
|
|
12109
|
+
2
|
|
12110
|
+
];
|
|
12111
|
+
});
|
|
12112
|
+
});
|
|
12113
|
+
return function exec() {
|
|
12114
|
+
return _ref.apply(this, arguments);
|
|
12115
|
+
};
|
|
12116
|
+
}();
|
|
12117
|
+
void exec();
|
|
12118
|
+
}, [
|
|
12119
|
+
debouncedSearchTerm,
|
|
12120
|
+
groupBy,
|
|
12121
|
+
open,
|
|
12122
|
+
triggerSearchOnFocus
|
|
12123
|
+
]);
|
|
12124
|
+
(0, import_react16.useEffect)(function() {
|
|
12125
|
+
var doSearch = /*#__PURE__*/ function() {
|
|
12126
|
+
var _ref = _async_to_generator(function() {
|
|
12127
|
+
var res;
|
|
12128
|
+
return _ts_generator(this, function(_state) {
|
|
12129
|
+
switch(_state.label){
|
|
12130
|
+
case 0:
|
|
12131
|
+
setIsLoading(true);
|
|
12132
|
+
return [
|
|
12133
|
+
4,
|
|
12134
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch(debouncedSearchTerm)
|
|
12135
|
+
];
|
|
12136
|
+
case 1:
|
|
12137
|
+
res = _state.sent();
|
|
12138
|
+
setOptions(transToGroupOption(res || [], groupBy));
|
|
12139
|
+
setIsLoading(false);
|
|
12140
|
+
return [
|
|
12141
|
+
2
|
|
12142
|
+
];
|
|
12143
|
+
}
|
|
12144
|
+
});
|
|
12145
|
+
});
|
|
12146
|
+
return function doSearch() {
|
|
12147
|
+
return _ref.apply(this, arguments);
|
|
12148
|
+
};
|
|
12149
|
+
}();
|
|
12150
|
+
var exec = /*#__PURE__*/ function() {
|
|
12151
|
+
var _ref = _async_to_generator(function() {
|
|
12152
|
+
return _ts_generator(this, function(_state) {
|
|
12153
|
+
switch(_state.label){
|
|
12154
|
+
case 0:
|
|
12155
|
+
if (!onSearch || !open) return [
|
|
12156
|
+
2
|
|
12157
|
+
];
|
|
12158
|
+
if (!triggerSearchOnFocus) return [
|
|
12159
|
+
3,
|
|
12160
|
+
2
|
|
12161
|
+
];
|
|
12162
|
+
return [
|
|
12163
|
+
4,
|
|
12164
|
+
doSearch()
|
|
12165
|
+
];
|
|
12166
|
+
case 1:
|
|
12167
|
+
_state.sent();
|
|
12168
|
+
_state.label = 2;
|
|
12169
|
+
case 2:
|
|
12170
|
+
if (!debouncedSearchTerm) return [
|
|
12171
|
+
3,
|
|
12172
|
+
4
|
|
12173
|
+
];
|
|
12174
|
+
return [
|
|
12175
|
+
4,
|
|
12176
|
+
doSearch()
|
|
12177
|
+
];
|
|
12178
|
+
case 3:
|
|
12179
|
+
_state.sent();
|
|
12180
|
+
_state.label = 4;
|
|
12181
|
+
case 4:
|
|
12182
|
+
return [
|
|
12183
|
+
2
|
|
12184
|
+
];
|
|
12185
|
+
}
|
|
12186
|
+
});
|
|
12187
|
+
});
|
|
12188
|
+
return function exec() {
|
|
12189
|
+
return _ref.apply(this, arguments);
|
|
12190
|
+
};
|
|
12191
|
+
}();
|
|
12192
|
+
void exec();
|
|
12193
|
+
}, [
|
|
12194
|
+
debouncedSearchTerm,
|
|
12195
|
+
groupBy,
|
|
12196
|
+
open,
|
|
12197
|
+
triggerSearchOnFocus
|
|
12198
|
+
]);
|
|
12199
|
+
var CreatableItem = function() {
|
|
12200
|
+
if (!creatable) return void 0;
|
|
12201
|
+
if (isOptionsExist(options, [
|
|
12202
|
+
{
|
|
12203
|
+
value: inputValue,
|
|
12204
|
+
label: inputValue
|
|
12205
|
+
}
|
|
12206
|
+
]) || selected.find(function(s) {
|
|
12207
|
+
return s.value === inputValue;
|
|
12208
|
+
})) {
|
|
12209
|
+
return void 0;
|
|
12210
|
+
}
|
|
12211
|
+
var Item8 = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandItem, {
|
|
12212
|
+
value: inputValue,
|
|
12213
|
+
className: "cursor-pointer",
|
|
12214
|
+
onMouseDown: function(e) {
|
|
12215
|
+
e.preventDefault();
|
|
12216
|
+
e.stopPropagation();
|
|
12217
|
+
},
|
|
12218
|
+
onSelect: function(value2) {
|
|
12219
|
+
if (selected.length >= maxSelected) {
|
|
12220
|
+
onMaxSelected === null || onMaxSelected === void 0 ? void 0 : onMaxSelected(selected.length);
|
|
12221
|
+
return;
|
|
12222
|
+
}
|
|
12223
|
+
setInputValue("");
|
|
12224
|
+
var newOptions = _to_consumable_array(selected).concat([
|
|
12225
|
+
{
|
|
12226
|
+
value: value2,
|
|
12227
|
+
label: value2
|
|
12228
|
+
}
|
|
12229
|
+
]);
|
|
12230
|
+
setSelected(newOptions);
|
|
12231
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newOptions.map(function(item) {
|
|
12232
|
+
return item.value;
|
|
12233
|
+
}));
|
|
12234
|
+
},
|
|
12235
|
+
children: 'Create "'.concat(inputValue, '"')
|
|
12236
|
+
});
|
|
12237
|
+
if (!onSearch && inputValue.length > 0) {
|
|
12238
|
+
return Item8;
|
|
12239
|
+
}
|
|
12240
|
+
if (onSearch && debouncedSearchTerm.length > 0 && !isLoading) {
|
|
12241
|
+
return Item8;
|
|
12242
|
+
}
|
|
12243
|
+
return void 0;
|
|
12244
|
+
};
|
|
12245
|
+
var EmptyItem = React34.useCallback(function() {
|
|
12246
|
+
if (!emptyIndicator) return void 0;
|
|
12247
|
+
if (onSearch && !creatable && Object.keys(options).length === 0) {
|
|
12248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandItem, {
|
|
12249
|
+
value: "-",
|
|
12250
|
+
disabled: true,
|
|
12251
|
+
children: emptyIndicator
|
|
12252
|
+
});
|
|
12253
|
+
}
|
|
12254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandEmpty2, {
|
|
12255
|
+
children: emptyIndicator
|
|
12256
|
+
});
|
|
12257
|
+
}, [
|
|
12258
|
+
creatable,
|
|
12259
|
+
emptyIndicator,
|
|
12260
|
+
onSearch,
|
|
12261
|
+
options
|
|
12262
|
+
]);
|
|
12263
|
+
var selectables = React34.useMemo(function() {
|
|
12264
|
+
return removePickedOption(options, selected);
|
|
12265
|
+
}, [
|
|
12266
|
+
options,
|
|
12267
|
+
selected
|
|
12268
|
+
]);
|
|
12269
|
+
var commandFilter = React34.useCallback(function() {
|
|
12270
|
+
if (commandProps === null || commandProps === void 0 ? void 0 : commandProps.filter) {
|
|
12271
|
+
return commandProps.filter;
|
|
12272
|
+
}
|
|
12273
|
+
if (creatable) {
|
|
12274
|
+
return function(value2, search) {
|
|
12275
|
+
return value2.toLowerCase().includes(search.toLowerCase()) ? 1 : -1;
|
|
12276
|
+
};
|
|
12277
|
+
}
|
|
12278
|
+
return void 0;
|
|
12279
|
+
}, [
|
|
12280
|
+
creatable,
|
|
12281
|
+
commandProps === null || commandProps === void 0 ? void 0 : commandProps.filter
|
|
12282
|
+
]);
|
|
12283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Command, _object_spread_props(_object_spread({
|
|
12284
|
+
ref: dropdownRef
|
|
12285
|
+
}, commandProps), {
|
|
12286
|
+
onKeyDown: function(e) {
|
|
12287
|
+
var _commandProps_onKeyDown;
|
|
12288
|
+
handleKeyDown(e);
|
|
12289
|
+
commandProps === null || commandProps === void 0 ? void 0 : (_commandProps_onKeyDown = commandProps.onKeyDown) === null || _commandProps_onKeyDown === void 0 ? void 0 : _commandProps_onKeyDown.call(commandProps, e);
|
|
12290
|
+
},
|
|
12291
|
+
className: cn("h-auto overflow-visible bg-transparent", commandProps === null || commandProps === void 0 ? void 0 : commandProps.className),
|
|
12292
|
+
shouldFilter: (commandProps === null || commandProps === void 0 ? void 0 : commandProps.shouldFilter) !== void 0 ? commandProps.shouldFilter : !onSearch,
|
|
12293
|
+
filter: commandFilter(),
|
|
12294
|
+
children: [
|
|
12295
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", {
|
|
12296
|
+
className: cn("aria-[invalid=true]:focus-visible:ring-error min-h-10 rounded-sm border border-Colors-Border-Default text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 md:text-sm bg-cc-Input-bg-default text-Colors-Text-Default focus:shadow-cc-Focus-Rings-Brand-default placeholder:text-Colors-Text-Subtlest focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-30 [&>span]:line-clamp-1 [&>.select-chevron]:aria-expanded:rotate-180", {
|
|
12297
|
+
"px-3 py-[5px]": selected.length !== 0,
|
|
12298
|
+
"cursor-text": !disabled && selected.length !== 0
|
|
12299
|
+
}, className),
|
|
12300
|
+
onClick: function() {
|
|
12301
|
+
var _inputRef_current;
|
|
12302
|
+
if (disabled) return;
|
|
12303
|
+
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
12304
|
+
},
|
|
12305
|
+
onWheel: function(e) {
|
|
12306
|
+
return e.stopPropagation();
|
|
12307
|
+
},
|
|
12308
|
+
onWheelCapture: function(e) {
|
|
12309
|
+
return e.stopPropagation();
|
|
12310
|
+
},
|
|
12311
|
+
onMouseDownCapture: function(e) {
|
|
12312
|
+
return e.stopPropagation();
|
|
12313
|
+
},
|
|
12314
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", {
|
|
12315
|
+
className: "flex items-center justify-between",
|
|
12316
|
+
children: [
|
|
12317
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", {
|
|
12318
|
+
className: "flex flex-wrap items-center gap-1 pr-6",
|
|
12319
|
+
children: [
|
|
12320
|
+
selected.map(function(option) {
|
|
12321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", {
|
|
12322
|
+
className: cn("flex h-7 items-center justify-center rounded-sm bg-Colors-Background-Neutral-On-Surface-Hover px-2 data-[disabled]:opacity-30 data-[fixed]:opacity-30", badgeClassName),
|
|
12323
|
+
"data-fixed": option.fixed,
|
|
12324
|
+
"data-disabled": disabled || void 0,
|
|
12325
|
+
children: [
|
|
12326
|
+
option.label,
|
|
12327
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("button", {
|
|
12328
|
+
className: cn("ring-offset-background focus:ring-brand ml-1 rounded-full outline-none focus:ring-2 focus:ring-offset-2", (disabled || option.fixed) && "hidden"),
|
|
12329
|
+
onKeyDown: function(e) {
|
|
12330
|
+
if (e.key === "Enter") {
|
|
12331
|
+
handleUnselect(option);
|
|
12332
|
+
}
|
|
12333
|
+
},
|
|
12334
|
+
onMouseDown: function(e) {
|
|
12335
|
+
e.preventDefault();
|
|
12336
|
+
e.stopPropagation();
|
|
12337
|
+
},
|
|
12338
|
+
onClick: function() {
|
|
12339
|
+
return handleUnselect(option);
|
|
12340
|
+
},
|
|
12341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react10.X, {
|
|
12342
|
+
className: "hover:text-foreground text-subtler h-3 w-3"
|
|
12343
|
+
})
|
|
12344
|
+
})
|
|
12345
|
+
]
|
|
12346
|
+
}, option.value);
|
|
12347
|
+
}),
|
|
12348
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_cmdk2.Command.Input, _object_spread_props(_object_spread({}, inputProps), {
|
|
12349
|
+
ref: inputRef,
|
|
12350
|
+
value: inputValue,
|
|
12351
|
+
disabled: disabled,
|
|
12352
|
+
onValueChange: function(value2) {
|
|
12353
|
+
var _inputProps_onValueChange;
|
|
12354
|
+
setInputValue(value2);
|
|
12355
|
+
inputProps === null || inputProps === void 0 ? void 0 : (_inputProps_onValueChange = inputProps.onValueChange) === null || _inputProps_onValueChange === void 0 ? void 0 : _inputProps_onValueChange.call(inputProps, value2);
|
|
12356
|
+
},
|
|
12357
|
+
onBlur: function(event) {
|
|
12358
|
+
var _inputProps_onBlur;
|
|
12359
|
+
if (!onScrollbar) {
|
|
12360
|
+
setOpen(false);
|
|
12361
|
+
}
|
|
12362
|
+
inputProps === null || inputProps === void 0 ? void 0 : (_inputProps_onBlur = inputProps.onBlur) === null || _inputProps_onBlur === void 0 ? void 0 : _inputProps_onBlur.call(inputProps, event);
|
|
12363
|
+
},
|
|
12364
|
+
onFocus: function(event) {
|
|
12365
|
+
var _inputProps_onFocus;
|
|
12366
|
+
setOpen(true);
|
|
12367
|
+
inputProps === null || inputProps === void 0 ? void 0 : (_inputProps_onFocus = inputProps.onFocus) === null || _inputProps_onFocus === void 0 ? void 0 : _inputProps_onFocus.call(inputProps, event);
|
|
12368
|
+
},
|
|
12369
|
+
placeholder: hidePlaceholderWhenSelected && selected.length !== 0 ? "" : placeholder,
|
|
12370
|
+
className: cn("placeholder:text-subtler h-[38px] flex-1 bg-transparent outline-none", {
|
|
12371
|
+
"w-full": hidePlaceholderWhenSelected,
|
|
12372
|
+
"px-3 py-[5px]": selected.length === 0,
|
|
12373
|
+
"ml-1 h-7": selected.length !== 0
|
|
12374
|
+
}, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className)
|
|
12375
|
+
}))
|
|
12376
|
+
]
|
|
12377
|
+
}),
|
|
12378
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(IconButton, {
|
|
12379
|
+
type: "button",
|
|
12380
|
+
onClick: function() {
|
|
12381
|
+
setSelected(selected.filter(function(s) {
|
|
12382
|
+
return s.fixed;
|
|
12383
|
+
}));
|
|
12384
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(selected.filter(function(s) {
|
|
12385
|
+
return s.fixed;
|
|
12386
|
+
}).map(function(item) {
|
|
12387
|
+
return item.value;
|
|
12388
|
+
}));
|
|
12389
|
+
},
|
|
12390
|
+
variant: "plain",
|
|
12391
|
+
size: "sm",
|
|
12392
|
+
icon: import_lucide_react10.X,
|
|
12393
|
+
className: cn("text-Colors-Text-Subtle h-6 w-6 p-0", (hideClearAllButton || disabled || selected.length < 1 || selected.filter(function(s) {
|
|
12394
|
+
return s.fixed;
|
|
12395
|
+
}).length === selected.length) && "hidden")
|
|
12396
|
+
}),
|
|
12397
|
+
selected.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(IconButton, {
|
|
12398
|
+
variant: "plain",
|
|
12399
|
+
size: "sm",
|
|
12400
|
+
icon: import_lucide_react10.ChevronDown,
|
|
12401
|
+
className: cn("text-Colors-Text-Subtle mr-3 h-6 w-6 p-0", open && "rotate-180"),
|
|
12402
|
+
onClick: function() {
|
|
12403
|
+
return setOpen(!open);
|
|
12404
|
+
}
|
|
12405
|
+
}) : null
|
|
12406
|
+
]
|
|
12407
|
+
})
|
|
12408
|
+
}),
|
|
12409
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", {
|
|
12410
|
+
className: "relative",
|
|
12411
|
+
onWheel: function(e) {
|
|
12412
|
+
return e.stopPropagation();
|
|
12413
|
+
},
|
|
12414
|
+
onWheelCapture: function(e) {
|
|
12415
|
+
return e.stopPropagation();
|
|
12416
|
+
},
|
|
12417
|
+
onMouseDownCapture: function(e) {
|
|
12418
|
+
return e.stopPropagation();
|
|
12419
|
+
},
|
|
12420
|
+
children: open && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandList, {
|
|
12421
|
+
className: "no-scrollbar text-Colors-Text-Default absolute top-1 z-10 max-h-60 w-full min-w-[8rem] rounded-sm border border-cc-Input-bg-default bg-Colors-Background-Normal-Primary-Default shadow-modal-default",
|
|
12422
|
+
onMouseLeave: function() {
|
|
12423
|
+
setOnScrollbar(false);
|
|
12424
|
+
},
|
|
12425
|
+
onMouseEnter: function() {
|
|
12426
|
+
setOnScrollbar(true);
|
|
12427
|
+
},
|
|
12428
|
+
onMouseUp: function() {
|
|
12429
|
+
var _inputRef_current;
|
|
12430
|
+
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
12431
|
+
},
|
|
12432
|
+
onWheel: function(e) {
|
|
12433
|
+
return e.stopPropagation();
|
|
12434
|
+
},
|
|
12435
|
+
onWheelCapture: function(e) {
|
|
12436
|
+
return e.stopPropagation();
|
|
12437
|
+
},
|
|
12438
|
+
onMouseDownCapture: function(e) {
|
|
12439
|
+
return e.stopPropagation();
|
|
12440
|
+
},
|
|
12441
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {
|
|
12442
|
+
children: loadingIndicator
|
|
12443
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, {
|
|
12444
|
+
children: [
|
|
12445
|
+
EmptyItem(),
|
|
12446
|
+
CreatableItem(),
|
|
12447
|
+
!selectFirstItem && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandItem, {
|
|
12448
|
+
value: "-",
|
|
12449
|
+
className: "hidden"
|
|
12450
|
+
}),
|
|
12451
|
+
Object.entries(selectables).map(function(param) {
|
|
12452
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], dropdowns = _param[1];
|
|
12453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandGroup, {
|
|
12454
|
+
heading: key,
|
|
12455
|
+
className: "h-full overflow-auto",
|
|
12456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", {
|
|
12457
|
+
className: "flex flex-col space-y-1",
|
|
12458
|
+
onWheel: function(e) {
|
|
12459
|
+
return e.stopPropagation();
|
|
12460
|
+
},
|
|
12461
|
+
onWheelCapture: function(e) {
|
|
12462
|
+
return e.stopPropagation();
|
|
12463
|
+
},
|
|
12464
|
+
onMouseDownCapture: function(e) {
|
|
12465
|
+
return e.stopPropagation();
|
|
12466
|
+
},
|
|
12467
|
+
children: dropdowns.map(function(option) {
|
|
12468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandItem, {
|
|
12469
|
+
value: option.label,
|
|
12470
|
+
disabled: option.disable,
|
|
12471
|
+
onMouseDown: function(e) {
|
|
12472
|
+
e.preventDefault();
|
|
12473
|
+
e.stopPropagation();
|
|
12474
|
+
},
|
|
12475
|
+
className: "cursor-pointer disabled:cursor-not-allowed",
|
|
12476
|
+
onSelect: function() {
|
|
12477
|
+
if (selected.length >= maxSelected) {
|
|
12478
|
+
onMaxSelected === null || onMaxSelected === void 0 ? void 0 : onMaxSelected(selected.length);
|
|
12479
|
+
return;
|
|
12480
|
+
}
|
|
12481
|
+
setInputValue("");
|
|
12482
|
+
var newOptions = _to_consumable_array(selected).concat([
|
|
12483
|
+
option
|
|
12484
|
+
]);
|
|
12485
|
+
setSelected(newOptions);
|
|
12486
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newOptions.map(function(item) {
|
|
12487
|
+
return item.value;
|
|
12488
|
+
}));
|
|
12489
|
+
},
|
|
12490
|
+
children: option.label
|
|
12491
|
+
}, option.value);
|
|
12492
|
+
})
|
|
12493
|
+
})
|
|
12494
|
+
}, key);
|
|
12495
|
+
})
|
|
12496
|
+
]
|
|
12497
|
+
})
|
|
12498
|
+
})
|
|
12499
|
+
})
|
|
12500
|
+
]
|
|
12501
|
+
}));
|
|
12502
|
+
});
|
|
12503
|
+
MultipleSelector.displayName = "MultipleSelector";
|
|
11864
12504
|
// src/components/sheet.tsx
|
|
11865
12505
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
11866
12506
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
11867
12507
|
var import_lucide_react11 = require("lucide-react");
|
|
11868
|
-
var
|
|
11869
|
-
var
|
|
12508
|
+
var React35 = __toESM(require("react"), 1);
|
|
12509
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
11870
12510
|
var Sheet = SheetPrimitive.Root;
|
|
11871
12511
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11872
12512
|
var SheetClose = SheetPrimitive.Close;
|
|
11873
12513
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11874
|
-
var SheetOverlay =
|
|
12514
|
+
var SheetOverlay = React35.forwardRef(function(_param, ref) {
|
|
11875
12515
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11876
12516
|
"className"
|
|
11877
12517
|
]);
|
|
11878
|
-
return /* @__PURE__ */ (0,
|
|
12518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11879
12519
|
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
|
|
11880
12520
|
}, props), {
|
|
11881
12521
|
ref: ref
|
|
@@ -11895,16 +12535,16 @@ var sheetVariants = (0, import_class_variance_authority14.cva)("fixed z-50 gap-4
|
|
|
11895
12535
|
side: "right"
|
|
11896
12536
|
}
|
|
11897
12537
|
});
|
|
11898
|
-
var SheetContent =
|
|
12538
|
+
var SheetContent = React35.forwardRef(function(_param, ref) {
|
|
11899
12539
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11900
12540
|
"side",
|
|
11901
12541
|
"className",
|
|
11902
12542
|
"children"
|
|
11903
12543
|
]);
|
|
11904
|
-
return /* @__PURE__ */ (0,
|
|
12544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPortal, {
|
|
11905
12545
|
children: [
|
|
11906
|
-
/* @__PURE__ */ (0,
|
|
11907
|
-
/* @__PURE__ */ (0,
|
|
12546
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetOverlay, {}),
|
|
12547
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11908
12548
|
ref: ref,
|
|
11909
12549
|
className: cn(sheetVariants({
|
|
11910
12550
|
side: side
|
|
@@ -11912,13 +12552,13 @@ var SheetContent = React34.forwardRef(function(_param, ref) {
|
|
|
11912
12552
|
}, props), {
|
|
11913
12553
|
children: [
|
|
11914
12554
|
children,
|
|
11915
|
-
/* @__PURE__ */ (0,
|
|
12555
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPrimitive.Close, {
|
|
11916
12556
|
className: "absolute right-4 top-4 rounded-xxs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800",
|
|
11917
12557
|
children: [
|
|
11918
|
-
/* @__PURE__ */ (0,
|
|
12558
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react11.X, {
|
|
11919
12559
|
className: "h-4 w-4"
|
|
11920
12560
|
}),
|
|
11921
|
-
/* @__PURE__ */ (0,
|
|
12561
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", {
|
|
11922
12562
|
className: "sr-only",
|
|
11923
12563
|
children: "Close"
|
|
11924
12564
|
})
|
|
@@ -11934,7 +12574,7 @@ var SheetHeader = function(_param) {
|
|
|
11934
12574
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11935
12575
|
"className"
|
|
11936
12576
|
]);
|
|
11937
|
-
return /* @__PURE__ */ (0,
|
|
12577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", _object_spread({
|
|
11938
12578
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
11939
12579
|
}, props));
|
|
11940
12580
|
};
|
|
@@ -11943,65 +12583,65 @@ var SheetFooter = function(_param) {
|
|
|
11943
12583
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11944
12584
|
"className"
|
|
11945
12585
|
]);
|
|
11946
|
-
return /* @__PURE__ */ (0,
|
|
12586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", _object_spread({
|
|
11947
12587
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
11948
12588
|
}, props));
|
|
11949
12589
|
};
|
|
11950
12590
|
SheetFooter.displayName = "SheetFooter";
|
|
11951
|
-
var SheetTitle =
|
|
12591
|
+
var SheetTitle = React35.forwardRef(function(_param, ref) {
|
|
11952
12592
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11953
12593
|
"className"
|
|
11954
12594
|
]);
|
|
11955
|
-
return /* @__PURE__ */ (0,
|
|
12595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetPrimitive.Title, _object_spread({
|
|
11956
12596
|
ref: ref,
|
|
11957
12597
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
11958
12598
|
}, props));
|
|
11959
12599
|
});
|
|
11960
12600
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
11961
|
-
var SheetDescription =
|
|
12601
|
+
var SheetDescription = React35.forwardRef(function(_param, ref) {
|
|
11962
12602
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11963
12603
|
"className"
|
|
11964
12604
|
]);
|
|
11965
|
-
return /* @__PURE__ */ (0,
|
|
12605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetPrimitive.Description, _object_spread({
|
|
11966
12606
|
ref: ref,
|
|
11967
12607
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
11968
12608
|
}, props));
|
|
11969
12609
|
});
|
|
11970
12610
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
11971
12611
|
// src/components/skeleton.tsx
|
|
11972
|
-
var
|
|
12612
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
11973
12613
|
function Skeleton(_param) {
|
|
11974
12614
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
11975
12615
|
"className",
|
|
11976
12616
|
"animate"
|
|
11977
12617
|
]);
|
|
11978
|
-
return /* @__PURE__ */ (0,
|
|
12618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", _object_spread({
|
|
11979
12619
|
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Hover", className, animate && "animate-pulse")
|
|
11980
12620
|
}, props));
|
|
11981
12621
|
}
|
|
11982
12622
|
// src/components/slider.tsx
|
|
11983
12623
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
11984
|
-
var
|
|
11985
|
-
var
|
|
11986
|
-
var Slider =
|
|
12624
|
+
var React36 = __toESM(require("react"), 1);
|
|
12625
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
12626
|
+
var Slider = React36.forwardRef(function(_param, ref) {
|
|
11987
12627
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
11988
12628
|
"className",
|
|
11989
12629
|
"size"
|
|
11990
12630
|
]);
|
|
11991
|
-
return /* @__PURE__ */ (0,
|
|
12631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", {
|
|
11992
12632
|
className: "w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 focus-visible-style file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible-style disabled:cursor-not-allowed disabled:opacity-30",
|
|
11993
|
-
children: /* @__PURE__ */ (0,
|
|
12633
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11994
12634
|
ref: ref,
|
|
11995
12635
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
11996
12636
|
}, props), {
|
|
11997
12637
|
children: [
|
|
11998
|
-
/* @__PURE__ */ (0,
|
|
12638
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Track, {
|
|
11999
12639
|
className: cn("relative w-full grow overflow-hidden rounded-full bg-Colors-Background-Neutral-Primary-Hover data-[disabled]:opacity-30", size === "sm" ? "h-0.5" : "h-1.5"),
|
|
12000
|
-
children: /* @__PURE__ */ (0,
|
|
12640
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Range, {
|
|
12001
12641
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
12002
12642
|
})
|
|
12003
12643
|
}),
|
|
12004
|
-
/* @__PURE__ */ (0,
|
|
12644
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Thumb, {
|
|
12005
12645
|
className: cn("block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible-style data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]")
|
|
12006
12646
|
})
|
|
12007
12647
|
]
|
|
@@ -12009,7 +12649,7 @@ var Slider = React35.forwardRef(function(_param, ref) {
|
|
|
12009
12649
|
});
|
|
12010
12650
|
});
|
|
12011
12651
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
12012
|
-
var SliderSingle =
|
|
12652
|
+
var SliderSingle = React36.forwardRef(function(_param, ref) {
|
|
12013
12653
|
var className = _param.className, containerClassName = _param.containerClassName, trackClassName = _param.trackClassName, rangeClassName = _param.rangeClassName, thumbClassName = _param.thumbClassName, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, value1 = _param.value, defaultValue = _param.defaultValue, onValueChange = _param.onValueChange, onValueCommit = _param.onValueCommit, _param_settable = _param.settable, settable = _param_settable === void 0 ? true : _param_settable, props = _object_without_properties(_param, [
|
|
12014
12654
|
"className",
|
|
12015
12655
|
"containerClassName",
|
|
@@ -12023,12 +12663,12 @@ var SliderSingle = React35.forwardRef(function(_param, ref) {
|
|
|
12023
12663
|
"onValueCommit",
|
|
12024
12664
|
"settable"
|
|
12025
12665
|
]);
|
|
12026
|
-
return /* @__PURE__ */ (0,
|
|
12666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", {
|
|
12027
12667
|
className: "flex w-full items-center space-x-1.5",
|
|
12028
12668
|
children: [
|
|
12029
|
-
/* @__PURE__ */ (0,
|
|
12669
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", {
|
|
12030
12670
|
className: cn("w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 focus-visible-style file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible-style disabled:cursor-not-allowed disabled:opacity-30", containerClassName),
|
|
12031
|
-
children: /* @__PURE__ */ (0,
|
|
12671
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
12032
12672
|
ref: ref,
|
|
12033
12673
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
12034
12674
|
value: typeof value1 === "number" ? [
|
|
@@ -12045,21 +12685,21 @@ var SliderSingle = React35.forwardRef(function(_param, ref) {
|
|
|
12045
12685
|
}
|
|
12046
12686
|
}, props), {
|
|
12047
12687
|
children: [
|
|
12048
|
-
/* @__PURE__ */ (0,
|
|
12688
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Track, {
|
|
12049
12689
|
className: cn("relative w-full grow overflow-hidden rounded-full bg-Colors-Background-Neutral-Primary-Hover data-[disabled]:opacity-30", size === "sm" ? "h-0.5" : "h-1.5", trackClassName),
|
|
12050
|
-
children: /* @__PURE__ */ (0,
|
|
12690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Range, {
|
|
12051
12691
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
12052
12692
|
})
|
|
12053
12693
|
}),
|
|
12054
|
-
/* @__PURE__ */ (0,
|
|
12694
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SliderPrimitive.Thumb, {
|
|
12055
12695
|
className: cn("cursor-pointer block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible-style data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]", thumbClassName)
|
|
12056
12696
|
})
|
|
12057
12697
|
]
|
|
12058
12698
|
}))
|
|
12059
12699
|
}),
|
|
12060
|
-
settable && /* @__PURE__ */ (0,
|
|
12700
|
+
settable && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", {
|
|
12061
12701
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
12062
|
-
children: /* @__PURE__ */ (0,
|
|
12702
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NumberInput, {
|
|
12063
12703
|
value: value1,
|
|
12064
12704
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
12065
12705
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -12078,7 +12718,7 @@ SliderSingle.displayName = "SliderSingle";
|
|
|
12078
12718
|
// src/components/spinner.tsx
|
|
12079
12719
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
12080
12720
|
var import_lucide_react12 = require("lucide-react");
|
|
12081
|
-
var
|
|
12721
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
12082
12722
|
var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin", {
|
|
12083
12723
|
variants: {
|
|
12084
12724
|
size: {
|
|
@@ -12110,7 +12750,7 @@ var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin",
|
|
|
12110
12750
|
});
|
|
12111
12751
|
function Spinner(props) {
|
|
12112
12752
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
12113
|
-
return /* @__PURE__ */ (0,
|
|
12753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react12.Loader2, {
|
|
12114
12754
|
className: cn(spinnerVariants({
|
|
12115
12755
|
size: size,
|
|
12116
12756
|
speed: speed,
|
|
@@ -12121,8 +12761,8 @@ function Spinner(props) {
|
|
|
12121
12761
|
// src/components/switch.tsx
|
|
12122
12762
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
12123
12763
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
12124
|
-
var
|
|
12125
|
-
var
|
|
12764
|
+
var React37 = __toESM(require("react"), 1);
|
|
12765
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
12126
12766
|
var switchSize = {
|
|
12127
12767
|
sm: "w-7 h-4",
|
|
12128
12768
|
md: "w-[34px] h-5",
|
|
@@ -12218,7 +12858,7 @@ var switchThumbIconVariants = (0, import_class_variance_authority16.cva)("flex i
|
|
|
12218
12858
|
}
|
|
12219
12859
|
}
|
|
12220
12860
|
});
|
|
12221
|
-
var Switch =
|
|
12861
|
+
var Switch = React37.forwardRef(function(_param, ref) {
|
|
12222
12862
|
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, iconClassName = _param.iconClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
12223
12863
|
"className",
|
|
12224
12864
|
"size",
|
|
@@ -12228,25 +12868,25 @@ var Switch = React36.forwardRef(function(_param, ref) {
|
|
|
12228
12868
|
"vertical",
|
|
12229
12869
|
"icon"
|
|
12230
12870
|
]);
|
|
12231
|
-
var Component = label ? "div" :
|
|
12871
|
+
var Component = label ? "div" : React37.Fragment;
|
|
12232
12872
|
var componentProps = label ? {
|
|
12233
12873
|
className: cn("flex items-center justify-center space-x-1.5 text-Colors-Text-Default", vertical && "flex-col space-x-0 space-y-1.5")
|
|
12234
12874
|
} : {};
|
|
12235
|
-
return /* @__PURE__ */ (0,
|
|
12875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Component, _object_spread_props(_object_spread({}, componentProps), {
|
|
12236
12876
|
children: [
|
|
12237
|
-
/* @__PURE__ */ (0,
|
|
12877
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
12238
12878
|
className: cn(switchRootVariants({
|
|
12239
12879
|
size: size,
|
|
12240
12880
|
vertical: vertical
|
|
12241
12881
|
}), className, vertical && "flex-col")
|
|
12242
12882
|
}, props), {
|
|
12243
12883
|
ref: ref,
|
|
12244
|
-
children: /* @__PURE__ */ (0,
|
|
12884
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SwitchPrimitives.Thumb, {
|
|
12245
12885
|
className: cn(switchThumbVariants({
|
|
12246
12886
|
size: size,
|
|
12247
12887
|
vertical: vertical
|
|
12248
12888
|
}), "flex items-center justify-center"),
|
|
12249
|
-
children: icon && /* @__PURE__ */ (0,
|
|
12889
|
+
children: icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, {
|
|
12250
12890
|
component: icon,
|
|
12251
12891
|
className: cn("text-Colors-Foreground-Static-Black", switchThumbIconVariants({
|
|
12252
12892
|
size: size
|
|
@@ -12254,7 +12894,7 @@ var Switch = React36.forwardRef(function(_param, ref) {
|
|
|
12254
12894
|
})
|
|
12255
12895
|
})
|
|
12256
12896
|
})),
|
|
12257
|
-
label && /* @__PURE__ */ (0,
|
|
12897
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", {
|
|
12258
12898
|
className: cn("text-sm", labelClassName),
|
|
12259
12899
|
children: label
|
|
12260
12900
|
})
|
|
@@ -12265,8 +12905,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
12265
12905
|
// src/components/tabs.tsx
|
|
12266
12906
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
12267
12907
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
12268
|
-
var
|
|
12269
|
-
var
|
|
12908
|
+
var React38 = __toESM(require("react"), 1);
|
|
12909
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
12270
12910
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12271
12911
|
var TabsList = TabsPrimitive.List;
|
|
12272
12912
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
@@ -12415,7 +13055,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12415
13055
|
rounded: "default"
|
|
12416
13056
|
}
|
|
12417
13057
|
});
|
|
12418
|
-
var Tabs2 =
|
|
13058
|
+
var Tabs2 = React38.forwardRef(function(_param, ref) {
|
|
12419
13059
|
var className = _param.className, listClassName = _param.listClassName, listBoxClassName = _param.listBoxClassName, contentClassName = _param.contentClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, size = _param.size, _param_isLink = _param.isLink, isLink = _param_isLink === void 0 ? false : _param_isLink, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, items = _param.items, props = _object_without_properties(_param, [
|
|
12420
13060
|
"className",
|
|
12421
13061
|
"listClassName",
|
|
@@ -12427,14 +13067,14 @@ var Tabs2 = React37.forwardRef(function(_param, ref) {
|
|
|
12427
13067
|
"rounded",
|
|
12428
13068
|
"items"
|
|
12429
13069
|
]);
|
|
12430
|
-
return /* @__PURE__ */ (0,
|
|
13070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
12431
13071
|
ref: ref,
|
|
12432
13072
|
className: cn(className)
|
|
12433
13073
|
}, props), {
|
|
12434
13074
|
children: [
|
|
12435
|
-
/* @__PURE__ */ (0,
|
|
13075
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {
|
|
12436
13076
|
className: cn("w-full flex justify-start items-center", listBoxClassName),
|
|
12437
|
-
children: /* @__PURE__ */ (0,
|
|
13077
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
12438
13078
|
ref: ref,
|
|
12439
13079
|
className: cn(tabListVariants({
|
|
12440
13080
|
variant: variant,
|
|
@@ -12443,7 +13083,7 @@ var Tabs2 = React37.forwardRef(function(_param, ref) {
|
|
|
12443
13083
|
}), listClassName)
|
|
12444
13084
|
}, props), {
|
|
12445
13085
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12446
|
-
return /* @__PURE__ */ (0,
|
|
13086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tab, _object_spread({
|
|
12447
13087
|
isLink: isLink,
|
|
12448
13088
|
variant: variant,
|
|
12449
13089
|
size: size,
|
|
@@ -12452,10 +13092,10 @@ var Tabs2 = React37.forwardRef(function(_param, ref) {
|
|
|
12452
13092
|
})
|
|
12453
13093
|
}))
|
|
12454
13094
|
}),
|
|
12455
|
-
!isLink && /* @__PURE__ */ (0,
|
|
13095
|
+
!isLink && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {
|
|
12456
13096
|
className: "w-full",
|
|
12457
13097
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12458
|
-
return /* @__PURE__ */ (0,
|
|
13098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsContent, {
|
|
12459
13099
|
value: item.value,
|
|
12460
13100
|
className: contentClassName,
|
|
12461
13101
|
children: item.children
|
|
@@ -12466,7 +13106,7 @@ var Tabs2 = React37.forwardRef(function(_param, ref) {
|
|
|
12466
13106
|
}));
|
|
12467
13107
|
});
|
|
12468
13108
|
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
|
12469
|
-
var Tab =
|
|
13109
|
+
var Tab = React38.forwardRef(function(_param, ref) {
|
|
12470
13110
|
var className = _param.className, variant = _param.variant, size = _param.size, isLink = _param.isLink, link = _param.link, count2 = _param.count, label = _param.label, icon = _param.icon, tooltip = _param.tooltip, hasUnRead = _param.hasUnRead, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, onClickCallback = _param.onClickCallback, props = _object_without_properties(_param, [
|
|
12471
13111
|
"className",
|
|
12472
13112
|
"variant",
|
|
@@ -12481,10 +13121,10 @@ var Tab = React37.forwardRef(function(_param, ref) {
|
|
|
12481
13121
|
"rounded",
|
|
12482
13122
|
"onClickCallback"
|
|
12483
13123
|
]);
|
|
12484
|
-
return /* @__PURE__ */ (0,
|
|
13124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12485
13125
|
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12486
13126
|
}, tooltip), {
|
|
12487
|
-
children: /* @__PURE__ */ (0,
|
|
13127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12488
13128
|
ref: ref,
|
|
12489
13129
|
className: cn("tabtrigger min-w-fit outline-none focus:!outline-none focus-visible:!outline-none", tabVariants({
|
|
12490
13130
|
variant: variant,
|
|
@@ -12496,7 +13136,7 @@ var Tab = React37.forwardRef(function(_param, ref) {
|
|
|
12496
13136
|
e.stopPropagation();
|
|
12497
13137
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
12498
13138
|
},
|
|
12499
|
-
children: isLink && link ? /* @__PURE__ */ (0,
|
|
13139
|
+
children: isLink && link ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(link_default, {
|
|
12500
13140
|
prefetch: true,
|
|
12501
13141
|
href: link,
|
|
12502
13142
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -12507,28 +13147,28 @@ var Tab = React37.forwardRef(function(_param, ref) {
|
|
|
12507
13147
|
},
|
|
12508
13148
|
children: [
|
|
12509
13149
|
label,
|
|
12510
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
13150
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge, {
|
|
12511
13151
|
className: "-mt-2.5"
|
|
12512
13152
|
})
|
|
12513
13153
|
]
|
|
12514
|
-
}) : /* @__PURE__ */ (0,
|
|
13154
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", {
|
|
12515
13155
|
className: cn("relative flex justify-center items-center", variant === "underline" && "pb-2"),
|
|
12516
13156
|
children: [
|
|
12517
|
-
label && /* @__PURE__ */ (0,
|
|
13157
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", {
|
|
12518
13158
|
className: cn("text-inherit"),
|
|
12519
13159
|
children: label
|
|
12520
13160
|
}),
|
|
12521
|
-
icon && /* @__PURE__ */ (0,
|
|
13161
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, {
|
|
12522
13162
|
component: icon,
|
|
12523
13163
|
size: "md",
|
|
12524
13164
|
className: "text-inherit"
|
|
12525
13165
|
}),
|
|
12526
|
-
count2 ? /* @__PURE__ */ (0,
|
|
13166
|
+
count2 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, {
|
|
12527
13167
|
size: "sm",
|
|
12528
13168
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
12529
13169
|
children: count2
|
|
12530
13170
|
}) : null,
|
|
12531
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
13171
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge, {
|
|
12532
13172
|
className: "-mt-2.5"
|
|
12533
13173
|
})
|
|
12534
13174
|
]
|
|
@@ -12537,20 +13177,20 @@ var Tab = React37.forwardRef(function(_param, ref) {
|
|
|
12537
13177
|
}));
|
|
12538
13178
|
});
|
|
12539
13179
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
12540
|
-
var TabsContent =
|
|
13180
|
+
var TabsContent = React38.forwardRef(function(_param, ref) {
|
|
12541
13181
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12542
13182
|
"className"
|
|
12543
13183
|
]);
|
|
12544
|
-
return /* @__PURE__ */ (0,
|
|
13184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.Content, _object_spread({
|
|
12545
13185
|
ref: ref,
|
|
12546
13186
|
className: cn("mt-2 ring-offset-background focus-visible:!outline-none focus-visible:ring-offset-0", className)
|
|
12547
13187
|
}, props));
|
|
12548
13188
|
});
|
|
12549
13189
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12550
13190
|
// src/components/textarea.tsx
|
|
12551
|
-
var
|
|
12552
|
-
var
|
|
12553
|
-
var Textarea =
|
|
13191
|
+
var React39 = __toESM(require("react"), 1);
|
|
13192
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
13193
|
+
var Textarea = React39.forwardRef(function(_param, ref) {
|
|
12554
13194
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
12555
13195
|
"className",
|
|
12556
13196
|
"maxLength",
|
|
@@ -12559,21 +13199,21 @@ var Textarea = React38.forwardRef(function(_param, ref) {
|
|
|
12559
13199
|
"maxLengthClassName"
|
|
12560
13200
|
]);
|
|
12561
13201
|
var _value_toString, _value_toString1;
|
|
12562
|
-
return /* @__PURE__ */ (0,
|
|
13202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", {
|
|
12563
13203
|
children: [
|
|
12564
|
-
/* @__PURE__ */ (0,
|
|
13204
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", {
|
|
12565
13205
|
className: "relative",
|
|
12566
13206
|
children: [
|
|
12567
|
-
/* @__PURE__ */ (0,
|
|
13207
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("textarea", _object_spread({
|
|
12568
13208
|
className: cn("w-full min-h-[123px] p-3 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "border border-transparent hover:border-cc-Input-border-default bg-cc-Input-bg-default aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "focus-visible-style file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler", "disabled:cursor-not-allowed disabled:opacity-30", className),
|
|
12569
13209
|
ref: ref,
|
|
12570
13210
|
maxLength: maxLength,
|
|
12571
13211
|
value: value1,
|
|
12572
13212
|
"aria-invalid": maxLength && ((value1 === null || value1 === void 0 ? void 0 : (_value_toString = value1.toString()) === null || _value_toString === void 0 ? void 0 : _value_toString.length) || 0) > maxLength || error ? "true" : "false"
|
|
12573
13213
|
}, props)),
|
|
12574
|
-
maxLength ? /* @__PURE__ */ (0,
|
|
13214
|
+
maxLength ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {
|
|
12575
13215
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
12576
|
-
children: /* @__PURE__ */ (0,
|
|
13216
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Text, {
|
|
12577
13217
|
size: "sm",
|
|
12578
13218
|
color: "subtlest",
|
|
12579
13219
|
children: "".concat((value1 === null || value1 === void 0 ? void 0 : (_value_toString1 = value1.toString()) === null || _value_toString1 === void 0 ? void 0 : _value_toString1.length) || 0, "/").concat(maxLength)
|
|
@@ -12581,9 +13221,9 @@ var Textarea = React38.forwardRef(function(_param, ref) {
|
|
|
12581
13221
|
}) : null
|
|
12582
13222
|
]
|
|
12583
13223
|
}),
|
|
12584
|
-
error && /* @__PURE__ */ (0,
|
|
13224
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {
|
|
12585
13225
|
className: "w-full",
|
|
12586
|
-
children: /* @__PURE__ */ (0,
|
|
13226
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Text, {
|
|
12587
13227
|
className: "text-wrap",
|
|
12588
13228
|
size: "sm",
|
|
12589
13229
|
weight: "regular",
|
|
@@ -12598,8 +13238,8 @@ Textarea.displayName = "Textarea";
|
|
|
12598
13238
|
// src/components/toggle.tsx
|
|
12599
13239
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
12600
13240
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
12601
|
-
var
|
|
12602
|
-
var
|
|
13241
|
+
var React40 = __toESM(require("react"), 1);
|
|
13242
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
12603
13243
|
var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex items-center justify-center rounded-sm text-sm font-medium ring-offset-white text-Colors-Text-Subtlest hover:bg-slate-100 hover:text-slate-500 focus-visible:outline-cc-Focus-Rings-Brand-default focus-visible:outline-none focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-Colors-Background-Normal-Primary-Active data-[state=on]:text-Colors-Text-Brand-Default [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:hover:text-Colors-Text-Brand-Default dark:focus-visible:ring-slate-300 dark:data-[state=on]:bg-Colors-Background-Normal-Primary-Active dark:data-[state=on]:text-Colors-Text-Brand-Default", {
|
|
12604
13244
|
variants: {
|
|
12605
13245
|
variant: {
|
|
@@ -12618,13 +13258,13 @@ var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex ite
|
|
|
12618
13258
|
size: "default"
|
|
12619
13259
|
}
|
|
12620
13260
|
});
|
|
12621
|
-
var Toggle =
|
|
13261
|
+
var Toggle = React40.forwardRef(function(_param, ref) {
|
|
12622
13262
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12623
13263
|
"className",
|
|
12624
13264
|
"variant",
|
|
12625
13265
|
"size"
|
|
12626
13266
|
]);
|
|
12627
|
-
return /* @__PURE__ */ (0,
|
|
13267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TogglePrimitive.Root, _object_spread({
|
|
12628
13268
|
ref: ref,
|
|
12629
13269
|
className: cn(toggleVariants({
|
|
12630
13270
|
variant: variant,
|
|
@@ -12636,24 +13276,24 @@ var Toggle = React39.forwardRef(function(_param, ref) {
|
|
|
12636
13276
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
12637
13277
|
// src/components/toggle-group.tsx
|
|
12638
13278
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
12639
|
-
var
|
|
12640
|
-
var
|
|
12641
|
-
var ToggleGroupContext =
|
|
13279
|
+
var React41 = __toESM(require("react"), 1);
|
|
13280
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
13281
|
+
var ToggleGroupContext = React41.createContext({
|
|
12642
13282
|
size: "default",
|
|
12643
13283
|
variant: "default"
|
|
12644
13284
|
});
|
|
12645
|
-
var ToggleGroup =
|
|
13285
|
+
var ToggleGroup = React41.forwardRef(function(_param, ref) {
|
|
12646
13286
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
12647
13287
|
"className",
|
|
12648
13288
|
"variant",
|
|
12649
13289
|
"size",
|
|
12650
13290
|
"children"
|
|
12651
13291
|
]);
|
|
12652
|
-
return /* @__PURE__ */ (0,
|
|
13292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
12653
13293
|
ref: ref,
|
|
12654
13294
|
className: cn("flex items-center justify-center gap-1 p-0.5 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default", className)
|
|
12655
13295
|
}, props), {
|
|
12656
|
-
children: /* @__PURE__ */ (0,
|
|
13296
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToggleGroupContext.Provider, {
|
|
12657
13297
|
value: {
|
|
12658
13298
|
variant: variant,
|
|
12659
13299
|
size: size
|
|
@@ -12663,15 +13303,15 @@ var ToggleGroup = React40.forwardRef(function(_param, ref) {
|
|
|
12663
13303
|
}));
|
|
12664
13304
|
});
|
|
12665
13305
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
12666
|
-
var ToggleGroupItem =
|
|
13306
|
+
var ToggleGroupItem = React41.forwardRef(function(_param, ref) {
|
|
12667
13307
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12668
13308
|
"className",
|
|
12669
13309
|
"children",
|
|
12670
13310
|
"variant",
|
|
12671
13311
|
"size"
|
|
12672
13312
|
]);
|
|
12673
|
-
var context =
|
|
12674
|
-
return /* @__PURE__ */ (0,
|
|
13313
|
+
var context = React41.useContext(ToggleGroupContext);
|
|
13314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
12675
13315
|
ref: ref,
|
|
12676
13316
|
className: cn(toggleVariants({
|
|
12677
13317
|
variant: context.variant || variant,
|
|
@@ -12684,7 +13324,7 @@ var ToggleGroupItem = React40.forwardRef(function(_param, ref) {
|
|
|
12684
13324
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
12685
13325
|
// src/components/chips.tsx
|
|
12686
13326
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12687
|
-
var
|
|
13327
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12688
13328
|
var chipsVariants = (0, import_class_variance_authority19.cva)('flex items-center justify-center text-Colors-Text-Subtle rounded-sm px-1.5 text-sm cursor-pointer focus-visible-style data-[disabled="true"]:cursor-not-allowed font-medium data-[selected="true"]:text-Colors-Text-Bolder data-[disabled="true"]:data-[selected="true"]:text-Colors-Text-Bolder data-[selected="true"]:bg-cc-Chips-Primary-bg-select data-[disabled="true"]:data-[selected="true"]:bg-cc-Chips-Primary-bg-select-disabled', {
|
|
12689
13329
|
variants: {
|
|
12690
13330
|
variant: {
|
|
@@ -12703,7 +13343,7 @@ var chipsVariants = (0, import_class_variance_authority19.cva)('flex items-cente
|
|
|
12703
13343
|
});
|
|
12704
13344
|
function Chips(props) {
|
|
12705
13345
|
var variant = props.variant, size = props.size, count2 = props.count, className = props.className, label = props.label, disabled = props.disabled, selected = props.selected;
|
|
12706
|
-
return /* @__PURE__ */ (0,
|
|
13346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", {
|
|
12707
13347
|
"data-disabled": disabled,
|
|
12708
13348
|
"data-selected": selected,
|
|
12709
13349
|
className: cn(chipsVariants({
|
|
@@ -12712,7 +13352,7 @@ function Chips(props) {
|
|
|
12712
13352
|
}), className),
|
|
12713
13353
|
children: [
|
|
12714
13354
|
label,
|
|
12715
|
-
count2 && count2 > 0 ? /* @__PURE__ */ (0,
|
|
13355
|
+
count2 && count2 > 0 ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", {
|
|
12716
13356
|
className: "h-full pt-0.5 ml-1 font-medium text-xs leading-[1.3]",
|
|
12717
13357
|
children: count2
|
|
12718
13358
|
}) : null
|
|
@@ -12722,9 +13362,9 @@ function Chips(props) {
|
|
|
12722
13362
|
// src/components/button/link-button.tsx
|
|
12723
13363
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
12724
13364
|
var import_lucide_react13 = require("lucide-react");
|
|
12725
|
-
var
|
|
12726
|
-
var
|
|
12727
|
-
var LinkButton =
|
|
13365
|
+
var React42 = __toESM(require("react"), 1);
|
|
13366
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
13367
|
+
var LinkButton = React42.forwardRef(function(_param, ref) {
|
|
12728
13368
|
var _param_className = _param.className, className = _param_className === void 0 ? "" : _param_className, iconClassName = _param.iconClassName, _param_color = _param.color, color = _param_color === void 0 ? "default" : _param_color, icon = _param.icon, _param_iconDirection = _param.iconDirection, iconDirection = _param_iconDirection === void 0 ? "left" : _param_iconDirection, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, _param_loading = _param.loading, loading = _param_loading === void 0 ? false : _param_loading, _param_noStyle = _param.noStyle, noStyle = _param_noStyle === void 0 ? false : _param_noStyle, _param_iconOutBox = _param.iconOutBox, iconOutBox = _param_iconOutBox === void 0 ? false : _param_iconOutBox, _param_isBlock = _param.isBlock, isBlock = _param_isBlock === void 0 ? false : _param_isBlock, disabled = _param.disabled, children = _param.children, autoFocus = _param.autoFocus, asset = _param.asset, _param_assetNumber = _param.assetNumber, assetNumber = _param_assetNumber === void 0 ? 0 : _param_assetNumber, props = _object_without_properties(_param, [
|
|
12729
13369
|
"className",
|
|
12730
13370
|
"iconClassName",
|
|
@@ -12745,7 +13385,7 @@ var LinkButton = React41.forwardRef(function(_param, ref) {
|
|
|
12745
13385
|
]);
|
|
12746
13386
|
var Comp = asChild ? import_react_slot5.Slot : "button";
|
|
12747
13387
|
var disable = disabled || loading;
|
|
12748
|
-
return /* @__PURE__ */ (0,
|
|
13388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Comp, _object_spread_props(_object_spread({
|
|
12749
13389
|
className: noStyle ? className : cn(buttonVariants({
|
|
12750
13390
|
variant: "link",
|
|
12751
13391
|
color: color,
|
|
@@ -12757,9 +13397,9 @@ var LinkButton = React41.forwardRef(function(_param, ref) {
|
|
|
12757
13397
|
autoFocus: autoFocus
|
|
12758
13398
|
}, props), {
|
|
12759
13399
|
children: [
|
|
12760
|
-
loading && /* @__PURE__ */ (0,
|
|
13400
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", {
|
|
12761
13401
|
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
12762
|
-
children: /* @__PURE__ */ (0,
|
|
13402
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react13.Loader2, {
|
|
12763
13403
|
className: cn(iconVariants2({
|
|
12764
13404
|
variant: "link",
|
|
12765
13405
|
size: size
|
|
@@ -12772,7 +13412,7 @@ var LinkButton = React41.forwardRef(function(_param, ref) {
|
|
|
12772
13412
|
iconClassName: iconClassName,
|
|
12773
13413
|
size: size
|
|
12774
13414
|
}),
|
|
12775
|
-
/* @__PURE__ */ (0,
|
|
13415
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", {
|
|
12776
13416
|
className: cn("inline-flex w-full items-center justify-center", loading ? "opacity-0" : "opacity-100"),
|
|
12777
13417
|
children: [
|
|
12778
13418
|
!asset && icon && !iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
@@ -12782,20 +13422,20 @@ var LinkButton = React41.forwardRef(function(_param, ref) {
|
|
|
12782
13422
|
size: size
|
|
12783
13423
|
}),
|
|
12784
13424
|
children,
|
|
12785
|
-
asset ? /* @__PURE__ */ (0,
|
|
13425
|
+
asset ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, {
|
|
12786
13426
|
children: [
|
|
12787
|
-
/* @__PURE__ */ (0,
|
|
13427
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Separator, {
|
|
12788
13428
|
orientation: "vertical",
|
|
12789
13429
|
className: cn("mx-1.5 h-3")
|
|
12790
13430
|
}),
|
|
12791
|
-
/* @__PURE__ */ (0,
|
|
13431
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Image2, {
|
|
12792
13432
|
src: asset === "energy" ? getAssetsUrl("image/bot/tag/20231214/1719340128612116720.png") : "",
|
|
12793
13433
|
alt: asset,
|
|
12794
13434
|
width: 16,
|
|
12795
13435
|
height: 16,
|
|
12796
13436
|
className: "flex-shrink-0"
|
|
12797
13437
|
}),
|
|
12798
|
-
/* @__PURE__ */ (0,
|
|
13438
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, {
|
|
12799
13439
|
size: "xs",
|
|
12800
13440
|
className: cn("ml-0.5 text-inherit"),
|
|
12801
13441
|
children: assetNumber
|
|
@@ -12821,7 +13461,7 @@ var LinkButton = React41.forwardRef(function(_param, ref) {
|
|
|
12821
13461
|
});
|
|
12822
13462
|
var renderIcon2 = function(icon, direction, param) {
|
|
12823
13463
|
var loading = param.loading, noStyle = param.noStyle, iconClassName = param.iconClassName, _param_size = param.size, size = _param_size === void 0 ? "lg" : _param_size;
|
|
12824
|
-
return /* @__PURE__ */ (0,
|
|
13464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, {
|
|
12825
13465
|
component: icon,
|
|
12826
13466
|
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
12827
13467
|
variant: "link",
|
|
@@ -12832,7 +13472,7 @@ var renderIcon2 = function(icon, direction, param) {
|
|
|
12832
13472
|
LinkButton.displayName = "LinkButton";
|
|
12833
13473
|
// src/components/state.tsx
|
|
12834
13474
|
var import_navigation = require("next/navigation");
|
|
12835
|
-
var
|
|
13475
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
12836
13476
|
var stateIconUrls = {
|
|
12837
13477
|
"not-found": "https://myshellstatic.com/image/website/20250425/page-no-results.png",
|
|
12838
13478
|
"no-page": "https://myshellstatic.com/image/website/20250425/page-not-found.png",
|
|
@@ -12850,40 +13490,40 @@ var State2 = function(param) {
|
|
|
12850
13490
|
}
|
|
12851
13491
|
};
|
|
12852
13492
|
var IconComponent2 = icon ? function() {
|
|
12853
|
-
return /* @__PURE__ */ (0,
|
|
13493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, {
|
|
12854
13494
|
component: icon,
|
|
12855
13495
|
size: "4xl",
|
|
12856
13496
|
className: iconClassName
|
|
12857
13497
|
});
|
|
12858
13498
|
} : function() {
|
|
12859
|
-
return /* @__PURE__ */ (0,
|
|
13499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", {
|
|
12860
13500
|
className: "w-[146px] md:w-[220px] h-[146px] md:h-[220px] rounded-full object-cover",
|
|
12861
|
-
children: /* @__PURE__ */ (0,
|
|
13501
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Image2, {
|
|
12862
13502
|
src: logo || stateIconUrls[variant],
|
|
12863
13503
|
alt: "state icon",
|
|
12864
13504
|
className: cn("w-full h-full rounded-full object-cover", logoClassName)
|
|
12865
13505
|
})
|
|
12866
13506
|
});
|
|
12867
13507
|
};
|
|
12868
|
-
return /* @__PURE__ */ (0,
|
|
13508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", {
|
|
12869
13509
|
className: cn("flex flex-col items-center", className, {
|
|
12870
13510
|
"space-y-6": !icon,
|
|
12871
13511
|
"space-y-3": icon
|
|
12872
13512
|
}),
|
|
12873
13513
|
children: [
|
|
12874
|
-
!hideLogo && /* @__PURE__ */ (0,
|
|
12875
|
-
/* @__PURE__ */ (0,
|
|
13514
|
+
!hideLogo && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IconComponent2, {}),
|
|
13515
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", {
|
|
12876
13516
|
className: "flex flex-col items-center space-y-4",
|
|
12877
13517
|
children: [
|
|
12878
|
-
/* @__PURE__ */ (0,
|
|
13518
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", {
|
|
12879
13519
|
className: "flex flex-col items-center space-y-1",
|
|
12880
13520
|
children: [
|
|
12881
|
-
title && /* @__PURE__ */ (0,
|
|
13521
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Display, {
|
|
12882
13522
|
size: "sm",
|
|
12883
13523
|
className: titleClassName,
|
|
12884
13524
|
children: title
|
|
12885
13525
|
}),
|
|
12886
|
-
/* @__PURE__ */ (0,
|
|
13526
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, {
|
|
12887
13527
|
size: "sm",
|
|
12888
13528
|
color: "subtle",
|
|
12889
13529
|
className: descriptionClassName,
|
|
@@ -12891,7 +13531,7 @@ var State2 = function(param) {
|
|
|
12891
13531
|
})
|
|
12892
13532
|
]
|
|
12893
13533
|
}),
|
|
12894
|
-
backBtnText && /* @__PURE__ */ (0,
|
|
13534
|
+
backBtnText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, {
|
|
12895
13535
|
size: "lg",
|
|
12896
13536
|
onClick: handleBack,
|
|
12897
13537
|
children: backBtnText
|
|
@@ -12902,31 +13542,31 @@ var State2 = function(param) {
|
|
|
12902
13542
|
});
|
|
12903
13543
|
};
|
|
12904
13544
|
var ErrorState = function(args) {
|
|
12905
|
-
return /* @__PURE__ */ (0,
|
|
13545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12906
13546
|
variant: "error"
|
|
12907
13547
|
}));
|
|
12908
13548
|
};
|
|
12909
13549
|
var NetworkErrorState = function(args) {
|
|
12910
|
-
return /* @__PURE__ */ (0,
|
|
13550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12911
13551
|
variant: "network-error"
|
|
12912
13552
|
}));
|
|
12913
13553
|
};
|
|
12914
13554
|
var NotFoundState = function(args) {
|
|
12915
|
-
return /* @__PURE__ */ (0,
|
|
13555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12916
13556
|
variant: "not-found"
|
|
12917
13557
|
}));
|
|
12918
13558
|
};
|
|
12919
13559
|
var NoPageState = function(args) {
|
|
12920
|
-
return /* @__PURE__ */ (0,
|
|
13560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12921
13561
|
variant: "no-page"
|
|
12922
13562
|
}));
|
|
12923
13563
|
};
|
|
12924
13564
|
// src/components/toast/toast.tsx
|
|
12925
13565
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
12926
13566
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
12927
|
-
var
|
|
13567
|
+
var React43 = __toESM(require("react"), 1);
|
|
12928
13568
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12929
|
-
var
|
|
13569
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
12930
13570
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12931
13571
|
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-max-content p-0 gap-2", {
|
|
12932
13572
|
variants: {
|
|
@@ -12945,12 +13585,12 @@ var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed
|
|
|
12945
13585
|
position: "top-right"
|
|
12946
13586
|
}
|
|
12947
13587
|
});
|
|
12948
|
-
var ToastViewport =
|
|
13588
|
+
var ToastViewport = React43.forwardRef(function(_param, ref) {
|
|
12949
13589
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12950
13590
|
"className",
|
|
12951
13591
|
"position"
|
|
12952
13592
|
]);
|
|
12953
|
-
return /* @__PURE__ */ (0,
|
|
13593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
12954
13594
|
ref: ref,
|
|
12955
13595
|
className: cn(viewportPositionVariants({
|
|
12956
13596
|
position: position
|
|
@@ -12982,13 +13622,13 @@ var toastVariants = (0, import_class_variance_authority20.cva)("group pointer-ev
|
|
|
12982
13622
|
position: "top-right"
|
|
12983
13623
|
}
|
|
12984
13624
|
});
|
|
12985
|
-
var Toast =
|
|
13625
|
+
var Toast = React43.forwardRef(function(_param, ref) {
|
|
12986
13626
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12987
13627
|
"className",
|
|
12988
13628
|
"variant",
|
|
12989
13629
|
"position"
|
|
12990
13630
|
]);
|
|
12991
|
-
return /* @__PURE__ */ (0,
|
|
13631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Root, _object_spread({
|
|
12992
13632
|
ref: ref,
|
|
12993
13633
|
className: cn(toastVariants({
|
|
12994
13634
|
variant: variant,
|
|
@@ -12998,46 +13638,46 @@ var Toast = React42.forwardRef(function(_param, ref) {
|
|
|
12998
13638
|
}, props));
|
|
12999
13639
|
});
|
|
13000
13640
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
13001
|
-
var ToastAction =
|
|
13641
|
+
var ToastAction = React43.forwardRef(function(_param, ref) {
|
|
13002
13642
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
13003
13643
|
"className"
|
|
13004
13644
|
]);
|
|
13005
|
-
return /* @__PURE__ */ (0,
|
|
13645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Action, _object_spread({
|
|
13006
13646
|
ref: ref,
|
|
13007
13647
|
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-sm border border-slate-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-slate-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-slate-50 group-[.destructive]:focus:ring-red-500 dark:border-slate-800 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:focus:ring-slate-300 dark:group-[.destructive]:border-slate-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-slate-50 dark:group-[.destructive]:focus:ring-red-900", className)
|
|
13008
13648
|
}, props));
|
|
13009
13649
|
});
|
|
13010
13650
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
13011
|
-
var ToastClose =
|
|
13651
|
+
var ToastClose = React43.forwardRef(function(_param, ref) {
|
|
13012
13652
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
13013
13653
|
"className"
|
|
13014
13654
|
]);
|
|
13015
|
-
return /* @__PURE__ */ (0,
|
|
13655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
13016
13656
|
ref: ref,
|
|
13017
13657
|
className: cn("absolute right-4 top-4 rounded-sm p-1 text-slate-950/50 transition-opacity hover:text-slate-950 outline-none focus:outline-none focus:ring-2 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:text-slate-50/50 dark:hover:text-slate-50", className),
|
|
13018
13658
|
"toast-close": ""
|
|
13019
13659
|
}, props), {
|
|
13020
|
-
children: /* @__PURE__ */ (0,
|
|
13660
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_XMarkIcon3.default, {
|
|
13021
13661
|
className: "h-5 w-5"
|
|
13022
13662
|
})
|
|
13023
13663
|
}));
|
|
13024
13664
|
});
|
|
13025
13665
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
13026
|
-
var ToastTitle =
|
|
13666
|
+
var ToastTitle = React43.forwardRef(function(_param, ref) {
|
|
13027
13667
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
13028
13668
|
"className"
|
|
13029
13669
|
]);
|
|
13030
|
-
return /* @__PURE__ */ (0,
|
|
13670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Title, _object_spread({
|
|
13031
13671
|
ref: ref,
|
|
13032
13672
|
className: cn("text-sm font-semibold", className)
|
|
13033
13673
|
}, props));
|
|
13034
13674
|
});
|
|
13035
13675
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
13036
|
-
var ToastDescription =
|
|
13676
|
+
var ToastDescription = React43.forwardRef(function(_param, ref) {
|
|
13037
13677
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
13038
13678
|
"className"
|
|
13039
13679
|
]);
|
|
13040
|
-
return /* @__PURE__ */ (0,
|
|
13680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastPrimitives.Description, _object_spread({
|
|
13041
13681
|
ref: ref,
|
|
13042
13682
|
className: cn("text-sm opacity-90", className)
|
|
13043
13683
|
}, props));
|
|
@@ -13048,8 +13688,8 @@ var import_CheckCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/C
|
|
|
13048
13688
|
var import_InformationCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/InformationCircleIcon"), 1);
|
|
13049
13689
|
var import_XCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/XCircleIcon"), 1);
|
|
13050
13690
|
// src/components/toast/use-toast.tsx
|
|
13051
|
-
var
|
|
13052
|
-
var
|
|
13691
|
+
var React44 = __toESM(require("react"), 1);
|
|
13692
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
13053
13693
|
var TOAST_LIMIT = 8;
|
|
13054
13694
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
13055
13695
|
var count = 0;
|
|
@@ -13152,10 +13792,10 @@ function toast(_param) {
|
|
|
13152
13792
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
13153
13793
|
position: position
|
|
13154
13794
|
}), actions && {
|
|
13155
|
-
action: /* @__PURE__ */ (0,
|
|
13795
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", {
|
|
13156
13796
|
className: "flex justify-start items-center gap-2",
|
|
13157
13797
|
children: [
|
|
13158
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0,
|
|
13798
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, {
|
|
13159
13799
|
size: "sm",
|
|
13160
13800
|
weight: "medium",
|
|
13161
13801
|
color: "brand",
|
|
@@ -13165,13 +13805,13 @@ function toast(_param) {
|
|
|
13165
13805
|
},
|
|
13166
13806
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
13167
13807
|
}),
|
|
13168
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0,
|
|
13808
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(link_default, {
|
|
13169
13809
|
href: actions.viewUrl,
|
|
13170
13810
|
target: "_blank",
|
|
13171
13811
|
rel: "noreferrer noopener",
|
|
13172
|
-
children: /* @__PURE__ */ (0,
|
|
13812
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {
|
|
13173
13813
|
className: "flex items-center gap-1.5",
|
|
13174
|
-
children: /* @__PURE__ */ (0,
|
|
13814
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, {
|
|
13175
13815
|
size: "sm",
|
|
13176
13816
|
weight: "medium",
|
|
13177
13817
|
color: "default",
|
|
@@ -13197,8 +13837,8 @@ function toast(_param) {
|
|
|
13197
13837
|
};
|
|
13198
13838
|
}
|
|
13199
13839
|
function useToast() {
|
|
13200
|
-
var
|
|
13201
|
-
|
|
13840
|
+
var _React44_useState = _sliced_to_array(React44.useState(memoryState), 2), state = _React44_useState[0], setState = _React44_useState[1];
|
|
13841
|
+
React44.useEffect(function() {
|
|
13202
13842
|
listeners.push(setState);
|
|
13203
13843
|
return function() {
|
|
13204
13844
|
var index = listeners.indexOf(setState);
|
|
@@ -13220,13 +13860,13 @@ function useToast() {
|
|
|
13220
13860
|
});
|
|
13221
13861
|
}
|
|
13222
13862
|
// src/components/toast/toaster.tsx
|
|
13223
|
-
var
|
|
13863
|
+
var import_react17 = __toESM(require("react"), 1);
|
|
13224
13864
|
var import_outline2 = require("@heroicons/react/24/outline");
|
|
13225
|
-
var
|
|
13865
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13226
13866
|
function Toaster() {
|
|
13227
13867
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_position = _ref.position, position = _ref_position === void 0 ? "top-right" : _ref_position;
|
|
13228
13868
|
var toasts = useToast().toasts;
|
|
13229
|
-
var positionGroups =
|
|
13869
|
+
var positionGroups = import_react17.default.useMemo(function() {
|
|
13230
13870
|
var groups = {};
|
|
13231
13871
|
var allPositions = [
|
|
13232
13872
|
"top-left",
|
|
@@ -13259,19 +13899,19 @@ function Toaster() {
|
|
|
13259
13899
|
var renderIcon3 = function(variant2) {
|
|
13260
13900
|
switch(variant2){
|
|
13261
13901
|
case "info":
|
|
13262
|
-
return /* @__PURE__ */ (0,
|
|
13902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_InformationCircleIcon2.default, {
|
|
13263
13903
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13264
13904
|
});
|
|
13265
13905
|
case "success":
|
|
13266
|
-
return /* @__PURE__ */ (0,
|
|
13906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_CheckCircleIcon2.default, {
|
|
13267
13907
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13268
13908
|
});
|
|
13269
13909
|
case "warning":
|
|
13270
|
-
return /* @__PURE__ */ (0,
|
|
13910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_outline2.ExclamationTriangleIcon, {
|
|
13271
13911
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13272
13912
|
});
|
|
13273
13913
|
case "error":
|
|
13274
|
-
return /* @__PURE__ */ (0,
|
|
13914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_XCircleIcon2.default, {
|
|
13275
13915
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13276
13916
|
});
|
|
13277
13917
|
}
|
|
@@ -13288,26 +13928,26 @@ function Toaster() {
|
|
|
13288
13928
|
return "bg-Colors-Background-Critical-Default";
|
|
13289
13929
|
}
|
|
13290
13930
|
};
|
|
13291
|
-
return /* @__PURE__ */ (0,
|
|
13931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
13292
13932
|
position: toastPosition,
|
|
13293
13933
|
children: [
|
|
13294
|
-
/* @__PURE__ */ (0,
|
|
13934
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
13295
13935
|
className: "flex flex-col gap-3",
|
|
13296
|
-
children: /* @__PURE__ */ (0,
|
|
13936
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", {
|
|
13297
13937
|
className: "flex items-start gap-3",
|
|
13298
13938
|
children: [
|
|
13299
|
-
/* @__PURE__ */ (0,
|
|
13939
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
13300
13940
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
13301
13941
|
children: renderIcon3(variant)
|
|
13302
13942
|
}),
|
|
13303
|
-
/* @__PURE__ */ (0,
|
|
13943
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", {
|
|
13304
13944
|
className: "grid gap-1",
|
|
13305
13945
|
children: [
|
|
13306
|
-
title && /* @__PURE__ */ (0,
|
|
13946
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastTitle, {
|
|
13307
13947
|
className: "text-base text-Colors-Text-Default",
|
|
13308
13948
|
children: title
|
|
13309
13949
|
}),
|
|
13310
|
-
description && /* @__PURE__ */ (0,
|
|
13950
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastDescription, {
|
|
13311
13951
|
className: "text-sm text-Colors-Text-Subtle",
|
|
13312
13952
|
children: description
|
|
13313
13953
|
}),
|
|
@@ -13317,17 +13957,17 @@ function Toaster() {
|
|
|
13317
13957
|
]
|
|
13318
13958
|
})
|
|
13319
13959
|
}),
|
|
13320
|
-
/* @__PURE__ */ (0,
|
|
13960
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastClose, {})
|
|
13321
13961
|
]
|
|
13322
13962
|
}), id);
|
|
13323
13963
|
};
|
|
13324
|
-
return /* @__PURE__ */ (0,
|
|
13964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastProvider, {
|
|
13325
13965
|
children: Object.entries(positionGroups).map(function(param) {
|
|
13326
13966
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
13327
|
-
return /* @__PURE__ */ (0,
|
|
13967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react17.default.Fragment, {
|
|
13328
13968
|
children: [
|
|
13329
13969
|
toastsForPosition.map(renderToast),
|
|
13330
|
-
toastsForPosition.length > 0 && /* @__PURE__ */ (0,
|
|
13970
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastViewport, {
|
|
13331
13971
|
position: pos
|
|
13332
13972
|
})
|
|
13333
13973
|
]
|
|
@@ -13337,10 +13977,10 @@ function Toaster() {
|
|
|
13337
13977
|
}
|
|
13338
13978
|
// src/components/swiper/index.tsx
|
|
13339
13979
|
var import_class_variance_authority21 = require("class-variance-authority");
|
|
13340
|
-
var
|
|
13980
|
+
var import_react18 = require("react");
|
|
13341
13981
|
var import_navigation2 = require("next/navigation");
|
|
13342
13982
|
var import_modules = require("swiper/modules");
|
|
13343
|
-
var
|
|
13983
|
+
var import_react19 = require("swiper/react");
|
|
13344
13984
|
var import_css = require("swiper/css");
|
|
13345
13985
|
var import_navigation3 = require("swiper/css/navigation");
|
|
13346
13986
|
var import_free_mode = require("swiper/css/free-mode");
|
|
@@ -13349,7 +13989,7 @@ var import_pagination = require("swiper/css/pagination");
|
|
|
13349
13989
|
// src/components/swiper/index.module.scss
|
|
13350
13990
|
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3hpYW9ndWFuZy9jb2RlL215c2hlbGwtcmVhY3QtbGliL3NyYy9jb21wb25lbnRzL3N3aXBlciIsInNvdXJjZXMiOlsiaW5kZXgubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTs7QUFHRTtFQUNFO0VBQ0E7O0FBRUY7RUFDRTtFQUNBOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUVFOztBQUVGO0VBRUU7O0FBRUY7RUFDRTs7QUFHRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFLRjtFQUNFOztBQUNFO0VBQ0U7O0FBR047RUFDRTs7QUFDRTtFQUNFOzs7QUFPUjtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLnN3aXBlckJveHtcbiAgQGFwcGx5IHctZnVsbCBoLWZpdDtcbiAgXG4gIDpnbG9iYWwoLnN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgYmctY29udGFpbiBiZy1uby1yZXBlYXQ7XG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RhdGE6aW1hZ2Uvc3ZnK3htbDtiYXNlNjQsUEhOMlp5QjRiV3h1Y3owaWFIUjBjRG92TDNkM2R5NTNNeTV2Y21jdk1qQXdNQzl6ZG1jaUlIWnBaWGRDYjNnOUlqQWdNQ0F5TUNBeU1DSWdabWxzYkQwaUl6UXhORE0wTlNJZ1kyeGhjM005SW5OcGVtVXROU0krQ2lBZ1BIQmhkR2dnWm1sc2JDMXlkV3hsUFNKbGRtVnViMlJrSWlCa1BTSk5NVEV1TnpnZ05TNHlNbUV1TnpVdU56VWdNQ0F3SURFZ01DQXhMakEyVERndU1EWWdNVEJzTXk0M01pQXpMamN5WVM0M05TNDNOU0F3SURFZ01TMHhMakEySURFdU1EWnNMVFF1TWpVdE5DNHlOV0V1TnpVdU56VWdNQ0F3SURFZ01DMHhMakEyYkRRdU1qVXROQzR5TldFdU56VXVOelVnTUNBd0lERWdNUzR3TmlBd1dpSWdZMnhwY0MxeWRXeGxQU0psZG1WdWIyUmtJaUF2UGdvOEwzTjJaejRLJyk7IFxuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGJnLWNvbnRhaW4gYmctbm8tcmVwZWF0O1xuICAgICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKCdkYXRhOmltYWdlL3N2Zyt4bWw7YmFzZTY0LFBITjJaeUI0Yld4dWN6MGlhSFIwY0RvdkwzZDNkeTUzTXk1dmNtY3ZNakF3TUM5emRtY2lJSFpwWlhkQ2IzZzlJakFnTUNBeU1DQXlNQ0lnWm1sc2JEMGlJelF4TkRNME5TSWdZMnhoYzNNOUluTnBlbVV0TlNJK0NpQWdQSEJoZEdnZ1ptbHNiQzF5ZFd4bFBTSmxkbVZ1YjJSa0lpQmtQU0pOT0M0eU1pQTFMakl5WVM0M05TNDNOU0F3SURBZ01TQXhMakEySURCc05DNHlOU0EwTGpJMVlTNDNOUzQzTlNBd0lEQWdNU0F3SURFdU1EWnNMVFF1TWpVZ05DNHlOV0V1TnpVdU56VWdNQ0F3SURFdE1TNHdOaTB4TGpBMlRERXhMamswSURFd0lEZ3VNaklnTmk0eU9HRXVOelV1TnpVZ01DQXdJREVnTUMweExqQTJXaUlnWTJ4cGNDMXlkV3hsUFNKbGRtVnViMlJrSWlBdlBnbzhMM04yWno0S0NnPT0nKTsgXG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldjo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBjb250ZW50LW5vbmU7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dDo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBjb250ZW50LW5vbmU7XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5iYW5uZXItc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtcHJldikge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1yaWdodDtcbiAgICB9XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtbmV4dCkge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1sZWZ0O1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItc2xpZGUtYWN0aXZlKSB7XG4gICAgICBAYXBwbHkgb3BhY2l0eS0xMDA7XG4gICAgICAvLyB0cmFuc2Zvcm06IHNjYWxlKDEpIHRyYW5zbGF0ZVgoMCk7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgLXJpZ2h0LTQgbWQ6cmlnaHQtMCAzeGw6cmlnaHQtW2NhbGMoKDEwMCUtMTIwMHB4KS8yLTE2cHgpXTtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSAtbGVmdC00IG1kOmxlZnQtMCAzeGw6bGVmdC1bY2FsYygoMTAwJS0xMjAwcHgpLzItMTZweCldO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIuZmVhdHVyZS1zd2lwZXIpIHtcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IHJpZ2h0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgbGVmdC0wO1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLWRpc2FibGVkKSB7XG4gICAgICBAYXBwbHkgaGlkZGVuO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIucGF0cm9uLWJhZGdlLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgcmlnaHQtMDtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBsZWZ0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tZGlzYWJsZWQpIHtcbiAgICAgIEBhcHBseSBoaWRkZW47XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5ncmlkLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci13cmFwcGVyKSB7XG4gICAgICBAYXBwbHkgdy1bMTAwdnddIG1kOnctZnVsbCBmbGV4LXdyYXAgZmxleC1jb2wgbS0wO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIpIHtcbiAgICBcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGhpZGRlbiBtZDpmbGV4IGp1c3RpZnktY2VudGVyIGl0ZW1zLWNlbnRlciBhYnNvbHV0ZSB0b3AtWzUwJV0gdy04IGgtOCBmb250LXNlbWlib2xkIHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBib3JkZXIgYm9yZGVyLUNvbG9ycy1Cb3JkZXItRGVmYXVsdCBiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1EZWZhdWx0IHJvdW5kZWQtZnVsbCBjdXJzb3ItcG9pbnRlciBob3ZlcjpiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1Ib3ZlciBhY3RpdmU6YmctQ29sb3JzLUJhY2tncm91bmQtTm9ybWFsLVByaW1hcnktQWN0aXZlO1xuICAgICAgICAmOjphZnRlciB7XG4gICAgICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCB0ZXh0LXhzIGZvbnQtYm9sZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgaGlkZGVuIG1kOmZsZXgganVzdGlmeS1jZW50ZXIgaXRlbXMtY2VudGVyIGFic29sdXRlIHRvcC1bNTAlXSB3LTggaC04IGZvbnQtc2VtaWJvbGQgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IGJvcmRlciBib3JkZXItQ29sb3JzLUJvcmRlci1EZWZhdWx0IGJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LURlZmF1bHQgcm91bmRlZC1mdWxsIGN1cnNvci1wb2ludGVyIGhvdmVyOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUhvdmVyIGFjdGl2ZTpiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1BY3RpdmU7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICBAYXBwbHkgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IHRleHQteHMgZm9udC1ib2xkO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG4uYW5pbWF0ZSB7XG4gIDpnbG9iYWwoLnN3aXBlci1zbGlkZSkge1xuICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybSA1MDBtcyBsaW5lYXI7XG4gIH1cbn1cbiJdfQ== */';
|
|
13351
13991
|
// src/components/swiper/index.tsx
|
|
13352
|
-
var
|
|
13992
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13353
13993
|
var swiperVariants = (0, import_class_variance_authority21.cva)("", {
|
|
13354
13994
|
variants: {
|
|
13355
13995
|
rounded: {
|
|
@@ -13375,7 +14015,7 @@ function Swiper(props) {
|
|
|
13375
14015
|
var isGrid = swiperType === "grid";
|
|
13376
14016
|
var router = (0, import_navigation2.useRouter)();
|
|
13377
14017
|
var Com = component || "div";
|
|
13378
|
-
var swiperList = (0,
|
|
14018
|
+
var swiperList = (0, import_react18.useMemo)(function() {
|
|
13379
14019
|
var length = dataList.length;
|
|
13380
14020
|
if (length < 2 || isGrid || isFeatured) {
|
|
13381
14021
|
return dataList;
|
|
@@ -13390,7 +14030,7 @@ function Swiper(props) {
|
|
|
13390
14030
|
var autoPlayOptions = {
|
|
13391
14031
|
delay: delay
|
|
13392
14032
|
};
|
|
13393
|
-
var swiperRef = (0,
|
|
14033
|
+
var swiperRef = (0, import_react18.useRef)();
|
|
13394
14034
|
var fgconfigs = {
|
|
13395
14035
|
0: {
|
|
13396
14036
|
slidesPerView: 1.014,
|
|
@@ -13454,8 +14094,8 @@ function Swiper(props) {
|
|
|
13454
14094
|
import_modules.Grid
|
|
13455
14095
|
]
|
|
13456
14096
|
});
|
|
13457
|
-
var _ref = _sliced_to_array((0,
|
|
13458
|
-
(0,
|
|
14097
|
+
var _ref = _sliced_to_array((0, import_react18.useState)(false), 2), animate = _ref[0], setAnimate = _ref[1];
|
|
14098
|
+
(0, import_react18.useEffect)(function() {
|
|
13459
14099
|
setTimeout(function() {
|
|
13460
14100
|
setAnimate(true);
|
|
13461
14101
|
}, 200);
|
|
@@ -13485,9 +14125,9 @@ function Swiper(props) {
|
|
|
13485
14125
|
}
|
|
13486
14126
|
}
|
|
13487
14127
|
};
|
|
13488
|
-
return /* @__PURE__ */ (0,
|
|
14128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13489
14129
|
className: index_module_default.swiperBox,
|
|
13490
|
-
children: /* @__PURE__ */ (0,
|
|
14130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Swiper, _object_spread_props(_object_spread({
|
|
13491
14131
|
observer: true,
|
|
13492
14132
|
observeParents: true
|
|
13493
14133
|
}, swiperConfigs), {
|
|
@@ -13497,9 +14137,9 @@ function Swiper(props) {
|
|
|
13497
14137
|
swiperRef.current = swiper;
|
|
13498
14138
|
},
|
|
13499
14139
|
children: swiperList.map(function(item, index) {
|
|
13500
|
-
return /* @__PURE__ */ (0,
|
|
14140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.SwiperSlide, {
|
|
13501
14141
|
className: cn(isBanner && "banner-swiper-slide !w-[90%] md:!w-[98%] h-[220px] md:h-auto max-w-[1200px] aspect-[4/1] rounded-2xl opacity-30", isFeatured && "rounded-2xl !w-[100%-32px] md:!w-[100%-72px]", isGrid && "grid-swiper-slide !w-[100%-32px] md:!w-[100%-72px] !h-[100%/3] flex justify-center items-center rounded-2xl", "text-clip", slideClassName),
|
|
13502
|
-
children: /* @__PURE__ */ (0,
|
|
14142
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Com, {
|
|
13503
14143
|
item: item,
|
|
13504
14144
|
index: index,
|
|
13505
14145
|
onClick: handleSlideItemClick,
|
|
@@ -13520,48 +14160,48 @@ var import_ExclamationCircleIcon = __toESM(require("@heroicons/react/24/solid/es
|
|
|
13520
14160
|
var import_InformationCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/InformationCircleIcon"), 1);
|
|
13521
14161
|
var import_XCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/XCircleIcon"), 1);
|
|
13522
14162
|
var import_react_hot_toast = require("react-hot-toast");
|
|
13523
|
-
var
|
|
14163
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13524
14164
|
function CustomNotification(param) {
|
|
13525
14165
|
var tProps = param.tProps, customProps = param.customProps;
|
|
13526
14166
|
var type = customProps.type, title = customProps.title, content = customProps.content, _customProps_isClosable = customProps.isClosable, isClosable = _customProps_isClosable === void 0 ? false : _customProps_isClosable, action = customProps.action, loading = customProps.loading;
|
|
13527
14167
|
var id = tProps.id;
|
|
13528
14168
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
13529
|
-
return /* @__PURE__ */ (0,
|
|
13530
|
-
children: /* @__PURE__ */ (0,
|
|
14169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", {
|
|
14170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", {
|
|
13531
14171
|
id: id,
|
|
13532
14172
|
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal px-3 py-2 shadow-modal-default md:max-w-[560px]",
|
|
13533
|
-
children: /* @__PURE__ */ (0,
|
|
14173
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", {
|
|
13534
14174
|
className: "flex w-full items-center justify-center gap-2",
|
|
13535
14175
|
children: [
|
|
13536
|
-
loading && /* @__PURE__ */ (0,
|
|
13537
|
-
!loading && type && /* @__PURE__ */ (0,
|
|
14176
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Spinner, {}),
|
|
14177
|
+
!loading && type && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", {
|
|
13538
14178
|
className: "flex flex-shrink-0 items-center",
|
|
13539
14179
|
children: [
|
|
13540
|
-
type === "info" && /* @__PURE__ */ (0,
|
|
14180
|
+
type === "info" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_InformationCircleIcon3.default, {
|
|
13541
14181
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13542
14182
|
}),
|
|
13543
|
-
type === "success" && /* @__PURE__ */ (0,
|
|
14183
|
+
type === "success" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_CheckCircleIcon3.default, {
|
|
13544
14184
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13545
14185
|
}),
|
|
13546
|
-
type === "warning" && /* @__PURE__ */ (0,
|
|
14186
|
+
type === "warning" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_ExclamationCircleIcon.default, {
|
|
13547
14187
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13548
14188
|
}),
|
|
13549
|
-
type === "error" && /* @__PURE__ */ (0,
|
|
14189
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_XCircleIcon3.default, {
|
|
13550
14190
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13551
14191
|
})
|
|
13552
14192
|
]
|
|
13553
14193
|
}),
|
|
13554
|
-
/* @__PURE__ */ (0,
|
|
14194
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", {
|
|
13555
14195
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
13556
14196
|
children: [
|
|
13557
|
-
title && /* @__PURE__ */ (0,
|
|
14197
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, {
|
|
13558
14198
|
size: "sm",
|
|
13559
14199
|
weight: "regular",
|
|
13560
14200
|
color: "default",
|
|
13561
14201
|
children: title
|
|
13562
14202
|
}),
|
|
13563
|
-
/* @__PURE__ */ (0,
|
|
13564
|
-
children: /* @__PURE__ */ (0,
|
|
14203
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", {
|
|
14204
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, {
|
|
13565
14205
|
size: "sm",
|
|
13566
14206
|
weight: "regular",
|
|
13567
14207
|
color: "default",
|
|
@@ -13570,16 +14210,16 @@ function CustomNotification(param) {
|
|
|
13570
14210
|
})
|
|
13571
14211
|
]
|
|
13572
14212
|
}),
|
|
13573
|
-
action && /* @__PURE__ */ (0,
|
|
14213
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, {
|
|
13574
14214
|
children: [
|
|
13575
|
-
/* @__PURE__ */ (0,
|
|
14215
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Separator, {
|
|
13576
14216
|
orientation: "vertical",
|
|
13577
14217
|
className: "h-3"
|
|
13578
14218
|
}),
|
|
13579
14219
|
action
|
|
13580
14220
|
]
|
|
13581
14221
|
}),
|
|
13582
|
-
isClosable && /* @__PURE__ */ (0,
|
|
14222
|
+
isClosable && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(IconButton, {
|
|
13583
14223
|
size: "sm",
|
|
13584
14224
|
variant: "plain",
|
|
13585
14225
|
icon: import_XMarkIcon4.default,
|
|
@@ -13594,16 +14234,16 @@ function CustomNotification(param) {
|
|
|
13594
14234
|
});
|
|
13595
14235
|
}
|
|
13596
14236
|
// src/common/hooks/useNotification.tsx
|
|
13597
|
-
var
|
|
14237
|
+
var import_react20 = require("react");
|
|
13598
14238
|
var import_react_hot_toast2 = require("react-hot-toast");
|
|
13599
|
-
var
|
|
14239
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
13600
14240
|
function useNotification() {
|
|
13601
|
-
var addToast = (0,
|
|
14241
|
+
var addToast = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13602
14242
|
if (config2.id) {
|
|
13603
14243
|
import_react_hot_toast2.toast.remove(config2.id);
|
|
13604
14244
|
}
|
|
13605
14245
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13606
|
-
return /* @__PURE__ */ (0,
|
|
14246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CustomNotification, {
|
|
13607
14247
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13608
14248
|
duration: duration2
|
|
13609
14249
|
}),
|
|
@@ -13614,30 +14254,30 @@ function useNotification() {
|
|
|
13614
14254
|
duration: duration2
|
|
13615
14255
|
});
|
|
13616
14256
|
}, []);
|
|
13617
|
-
var message = (0,
|
|
14257
|
+
var message = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13618
14258
|
return addToast(_object_spread({}, config2), duration2);
|
|
13619
14259
|
}, []);
|
|
13620
|
-
var success = (0,
|
|
14260
|
+
var success = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13621
14261
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
13622
14262
|
type: "success"
|
|
13623
14263
|
}), duration2);
|
|
13624
14264
|
}, []);
|
|
13625
|
-
var error = (0,
|
|
14265
|
+
var error = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13626
14266
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
13627
14267
|
type: "error"
|
|
13628
14268
|
}), duration2);
|
|
13629
14269
|
}, []);
|
|
13630
|
-
var warning = (0,
|
|
14270
|
+
var warning = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13631
14271
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
13632
14272
|
type: "warning"
|
|
13633
14273
|
}), duration2);
|
|
13634
14274
|
}, []);
|
|
13635
|
-
var info = (0,
|
|
14275
|
+
var info = (0, import_react20.useCallback)(function(config2, duration2) {
|
|
13636
14276
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
13637
14277
|
type: "info"
|
|
13638
14278
|
}), duration2);
|
|
13639
14279
|
}, []);
|
|
13640
|
-
var close = (0,
|
|
14280
|
+
var close = (0, import_react20.useCallback)(function(id) {
|
|
13641
14281
|
import_react_hot_toast2.toast.dismiss(id);
|
|
13642
14282
|
}, []);
|
|
13643
14283
|
return {
|
|
@@ -13664,7 +14304,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13664
14304
|
}
|
|
13665
14305
|
var addToast = function() {
|
|
13666
14306
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13667
|
-
return /* @__PURE__ */ (0,
|
|
14307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CustomNotification, {
|
|
13668
14308
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13669
14309
|
duration: duration2
|
|
13670
14310
|
}),
|
|
@@ -13720,11 +14360,11 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13720
14360
|
return Message;
|
|
13721
14361
|
}();
|
|
13722
14362
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
13723
|
-
var
|
|
13724
|
-
var
|
|
13725
|
-
var ArrowUpTrayIcon =
|
|
13726
|
-
return /* @__PURE__ */ (0,
|
|
13727
|
-
children: /* @__PURE__ */ (0,
|
|
14363
|
+
var React46 = __toESM(require("react"), 1);
|
|
14364
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
14365
|
+
var ArrowUpTrayIcon = React46.forwardRef(function(props, ref) {
|
|
14366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14367
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", {
|
|
13728
14368
|
ref: ref,
|
|
13729
14369
|
className: "w-full h-full",
|
|
13730
14370
|
viewBox: "0 0 24 24",
|
|
@@ -13732,7 +14372,7 @@ var ArrowUpTrayIcon = React45.forwardRef(function(props, ref) {
|
|
|
13732
14372
|
strokeWidth: "1.5",
|
|
13733
14373
|
stroke: "currentColor",
|
|
13734
14374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13735
|
-
children: /* @__PURE__ */ (0,
|
|
14375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", {
|
|
13736
14376
|
strokeLinecap: "round",
|
|
13737
14377
|
strokeLinejoin: "round",
|
|
13738
14378
|
d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"
|
|
@@ -13741,11 +14381,11 @@ var ArrowUpTrayIcon = React45.forwardRef(function(props, ref) {
|
|
|
13741
14381
|
}));
|
|
13742
14382
|
});
|
|
13743
14383
|
// src/components/icons/outline/WindowIcon.tsx
|
|
13744
|
-
var
|
|
13745
|
-
var
|
|
13746
|
-
var WindowIcon =
|
|
13747
|
-
return /* @__PURE__ */ (0,
|
|
13748
|
-
children: /* @__PURE__ */ (0,
|
|
14384
|
+
var React47 = __toESM(require("react"), 1);
|
|
14385
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
14386
|
+
var WindowIcon = React47.forwardRef(function(props, ref) {
|
|
14387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14388
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", {
|
|
13749
14389
|
ref: ref,
|
|
13750
14390
|
className: "w-full h-full",
|
|
13751
14391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13753,7 +14393,7 @@ var WindowIcon = React46.forwardRef(function(props, ref) {
|
|
|
13753
14393
|
fill: "none",
|
|
13754
14394
|
strokeWidth: "1.5",
|
|
13755
14395
|
stroke: "currentColor",
|
|
13756
|
-
children: /* @__PURE__ */ (0,
|
|
14396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", {
|
|
13757
14397
|
strokeLinecap: "round",
|
|
13758
14398
|
strokeLinejoin: "round",
|
|
13759
14399
|
d: "M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"
|
|
@@ -13762,21 +14402,21 @@ var WindowIcon = React46.forwardRef(function(props, ref) {
|
|
|
13762
14402
|
}));
|
|
13763
14403
|
});
|
|
13764
14404
|
// src/components/icons/outline/CheckCircleIcon.tsx
|
|
13765
|
-
var
|
|
13766
|
-
var
|
|
13767
|
-
var CheckCircleIcon4 =
|
|
13768
|
-
return /* @__PURE__ */ (0,
|
|
13769
|
-
children: /* @__PURE__ */ (0,
|
|
14405
|
+
var React48 = __toESM(require("react"), 1);
|
|
14406
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
14407
|
+
var CheckCircleIcon4 = React48.forwardRef(function(props, ref) {
|
|
14408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14409
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("svg", {
|
|
13770
14410
|
ref: ref,
|
|
13771
14411
|
className: "w-full h-full",
|
|
13772
14412
|
viewBox: "0 0 24 24",
|
|
13773
14413
|
fill: "currentColor",
|
|
13774
14414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13775
14415
|
children: [
|
|
13776
|
-
/* @__PURE__ */ (0,
|
|
14416
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13777
14417
|
d: "M15.4359 9.1397C15.773 9.38046 15.8511 9.84887 15.6103 10.1859L11.8603 15.4359C11.7322 15.6153 11.5316 15.7293 11.3119 15.7474C11.0921 15.7656 10.8756 15.6862 10.7197 15.5303L8.46967 13.2803C8.17678 12.9874 8.17678 12.5126 8.46967 12.2197C8.76256 11.9268 9.23744 11.9268 9.53033 12.2197L11.1543 13.8436L14.3897 9.31407C14.6305 8.97701 15.0989 8.89894 15.4359 9.1397Z"
|
|
13778
14418
|
}),
|
|
13779
|
-
/* @__PURE__ */ (0,
|
|
14419
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13780
14420
|
fillRule: "evenodd",
|
|
13781
14421
|
clipRule: "evenodd",
|
|
13782
14422
|
d: "M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75Z"
|
|
@@ -13786,11 +14426,11 @@ var CheckCircleIcon4 = React47.forwardRef(function(props, ref) {
|
|
|
13786
14426
|
}));
|
|
13787
14427
|
});
|
|
13788
14428
|
// src/components/icons/outline/PencilSquareIcon.tsx
|
|
13789
|
-
var
|
|
13790
|
-
var
|
|
13791
|
-
var PencilSquareIcon =
|
|
13792
|
-
return /* @__PURE__ */ (0,
|
|
13793
|
-
children: /* @__PURE__ */ (0,
|
|
14429
|
+
var React49 = __toESM(require("react"), 1);
|
|
14430
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
14431
|
+
var PencilSquareIcon = React49.forwardRef(function(props, ref) {
|
|
14432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14433
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", {
|
|
13794
14434
|
ref: ref,
|
|
13795
14435
|
className: "w-full h-full",
|
|
13796
14436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13798,7 +14438,7 @@ var PencilSquareIcon = React48.forwardRef(function(props, ref) {
|
|
|
13798
14438
|
viewBox: "0 0 24 24",
|
|
13799
14439
|
strokeWidth: "1.5",
|
|
13800
14440
|
stroke: "currentColor",
|
|
13801
|
-
children: /* @__PURE__ */ (0,
|
|
14441
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", {
|
|
13802
14442
|
strokeLinecap: "round",
|
|
13803
14443
|
strokeLinejoin: "round",
|
|
13804
14444
|
d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
|
|
@@ -13807,35 +14447,35 @@ var PencilSquareIcon = React48.forwardRef(function(props, ref) {
|
|
|
13807
14447
|
}));
|
|
13808
14448
|
});
|
|
13809
14449
|
// src/components/icons/outline/ConfigIcon.tsx
|
|
13810
|
-
var
|
|
13811
|
-
var
|
|
13812
|
-
var ConfigIcon =
|
|
13813
|
-
return /* @__PURE__ */ (0,
|
|
13814
|
-
children: /* @__PURE__ */ (0,
|
|
14450
|
+
var React50 = __toESM(require("react"), 1);
|
|
14451
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
14452
|
+
var ConfigIcon = React50.forwardRef(function(props, ref) {
|
|
14453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14454
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("svg", {
|
|
13815
14455
|
width: "18",
|
|
13816
14456
|
height: "18",
|
|
13817
14457
|
viewBox: "0 0 18 18",
|
|
13818
14458
|
fill: "none",
|
|
13819
14459
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13820
14460
|
className: "cursor-pointer",
|
|
13821
|
-
children: /* @__PURE__ */ (0,
|
|
14461
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("g", {
|
|
13822
14462
|
id: "wrapper",
|
|
13823
|
-
children: /* @__PURE__ */ (0,
|
|
14463
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("g", {
|
|
13824
14464
|
id: "Union",
|
|
13825
14465
|
children: [
|
|
13826
|
-
/* @__PURE__ */ (0,
|
|
14466
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13827
14467
|
fillRule: "evenodd",
|
|
13828
14468
|
clipRule: "evenodd",
|
|
13829
14469
|
d: "M4.5 2.25C4.81066 2.25 5.0625 2.50184 5.0625 2.8125L5.0625 9.65852C5.71792 9.89018 6.1875 10.5153 6.1875 11.25C6.1875 11.9847 5.71792 12.6098 5.0625 12.8415V15.1875C5.0625 15.4982 4.81066 15.75 4.5 15.75C4.18934 15.75 3.9375 15.4982 3.9375 15.1875V12.8415C3.28208 12.6098 2.8125 11.9847 2.8125 11.25C2.8125 10.5153 3.28208 9.89018 3.9375 9.65852L3.9375 2.8125C3.9375 2.50184 4.18934 2.25 4.5 2.25ZM4.5 10.6875C4.18934 10.6875 3.9375 10.9393 3.9375 11.25C3.9375 11.5607 4.18934 11.8125 4.5 11.8125C4.81066 11.8125 5.0625 11.5607 5.0625 11.25C5.0625 10.9393 4.81066 10.6875 4.5 10.6875Z",
|
|
13830
14470
|
fill: "#6D7175"
|
|
13831
14471
|
}),
|
|
13832
|
-
/* @__PURE__ */ (0,
|
|
14472
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13833
14473
|
fillRule: "evenodd",
|
|
13834
14474
|
clipRule: "evenodd",
|
|
13835
14475
|
d: "M9 2.25C9.31066 2.25 9.5625 2.50184 9.5625 2.8125V5.15852C10.2179 5.39018 10.6875 6.01525 10.6875 6.75C10.6875 7.48475 10.2179 8.10982 9.5625 8.34148V15.1875C9.5625 15.4982 9.31066 15.75 9 15.75C8.68934 15.75 8.4375 15.4982 8.4375 15.1875V8.34148C7.78208 8.10982 7.3125 7.48475 7.3125 6.75C7.3125 6.01525 7.78208 5.39018 8.4375 5.15852V2.8125C8.4375 2.50184 8.68934 2.25 9 2.25ZM9 6.1875C8.68934 6.1875 8.4375 6.43934 8.4375 6.75C8.4375 7.06066 8.68934 7.3125 9 7.3125C9.31066 7.3125 9.5625 7.06066 9.5625 6.75C9.5625 6.43934 9.31066 6.1875 9 6.1875Z",
|
|
13836
14476
|
fill: "#6D7175"
|
|
13837
14477
|
}),
|
|
13838
|
-
/* @__PURE__ */ (0,
|
|
14478
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13839
14479
|
fillRule: "evenodd",
|
|
13840
14480
|
clipRule: "evenodd",
|
|
13841
14481
|
d: "M13.5 2.25C13.8107 2.25 14.0625 2.50184 14.0625 2.8125V9.65852C14.7179 9.89018 15.1875 10.5153 15.1875 11.25C15.1875 11.9847 14.7179 12.6098 14.0625 12.8415L14.0625 15.1875C14.0625 15.4982 13.8107 15.75 13.5 15.75C13.1893 15.75 12.9375 15.4982 12.9375 15.1875L12.9375 12.8415C12.2821 12.6098 11.8125 11.9847 11.8125 11.25C11.8125 10.5153 12.2821 9.89018 12.9375 9.65852V2.8125C12.9375 2.50184 13.1893 2.25 13.5 2.25ZM13.5 10.6875C13.1893 10.6875 12.9375 10.9393 12.9375 11.25C12.9375 11.5607 13.1893 11.8125 13.5 11.8125C13.8107 11.8125 14.0625 11.5607 14.0625 11.25C14.0625 10.9393 13.8107 10.6875 13.5 10.6875Z",
|
|
@@ -13848,18 +14488,18 @@ var ConfigIcon = React49.forwardRef(function(props, ref) {
|
|
|
13848
14488
|
}));
|
|
13849
14489
|
});
|
|
13850
14490
|
// src/components/icons/outline/FilterIcon.tsx
|
|
13851
|
-
var
|
|
13852
|
-
var
|
|
13853
|
-
var FilterIcon =
|
|
13854
|
-
return /* @__PURE__ */ (0,
|
|
13855
|
-
children: /* @__PURE__ */ (0,
|
|
14491
|
+
var import_react21 = __toESM(require("react"), 1);
|
|
14492
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
14493
|
+
var FilterIcon = import_react21.default.forwardRef(function(props, ref) {
|
|
14494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("svg", {
|
|
13856
14496
|
className: props === null || props === void 0 ? void 0 : props.className,
|
|
13857
14497
|
width: "22",
|
|
13858
14498
|
height: "22",
|
|
13859
14499
|
viewBox: "0 0 22 22",
|
|
13860
14500
|
fill: "none",
|
|
13861
14501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13862
|
-
children: /* @__PURE__ */ (0,
|
|
14502
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", {
|
|
13863
14503
|
fillRule: "evenodd",
|
|
13864
14504
|
clipRule: "evenodd",
|
|
13865
14505
|
fill: "currentColor",
|
|
@@ -13869,38 +14509,38 @@ var FilterIcon = import_react20.default.forwardRef(function(props, ref) {
|
|
|
13869
14509
|
}));
|
|
13870
14510
|
});
|
|
13871
14511
|
// src/components/icons/solid/CaretDownIcon.tsx
|
|
13872
|
-
var
|
|
13873
|
-
var
|
|
13874
|
-
var CaretDownIcon =
|
|
13875
|
-
return /* @__PURE__ */ (0,
|
|
13876
|
-
children: /* @__PURE__ */ (0,
|
|
14512
|
+
var React52 = __toESM(require("react"), 1);
|
|
14513
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
14514
|
+
var CaretDownIcon = React52.forwardRef(function(props, ref) {
|
|
14515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14516
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("svg", {
|
|
13877
14517
|
ref: ref,
|
|
13878
14518
|
className: "w-full h-full",
|
|
13879
14519
|
viewBox: "0 0 24 24",
|
|
13880
14520
|
fill: "currentColor",
|
|
13881
14521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13882
|
-
children: /* @__PURE__ */ (0,
|
|
14522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", {
|
|
13883
14523
|
d: "M13.5119 17.7818C12.7143 18.7028 11.2857 18.7028 10.4881 17.7818L2.74159 8.83689C1.61984 7.54161 2.53995 5.52759 4.25345 5.52759L19.7466 5.52759C21.4601 5.52759 22.3802 7.54161 21.2584 8.8369L13.5119 17.7818Z"
|
|
13884
14524
|
})
|
|
13885
14525
|
})
|
|
13886
14526
|
}));
|
|
13887
14527
|
});
|
|
13888
14528
|
// src/components/icons/solid/CodeIcon.tsx
|
|
13889
|
-
var
|
|
13890
|
-
var
|
|
13891
|
-
var CodeIcon =
|
|
13892
|
-
return /* @__PURE__ */ (0,
|
|
13893
|
-
children: /* @__PURE__ */ (0,
|
|
14529
|
+
var React53 = __toESM(require("react"), 1);
|
|
14530
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
14531
|
+
var CodeIcon = React53.forwardRef(function(props, ref) {
|
|
14532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14533
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("svg", {
|
|
13894
14534
|
ref: ref,
|
|
13895
14535
|
className: "w-full h-full",
|
|
13896
14536
|
viewBox: "0 0 24 24",
|
|
13897
14537
|
fill: "currentColor",
|
|
13898
14538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13899
14539
|
children: [
|
|
13900
|
-
/* @__PURE__ */ (0,
|
|
14540
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", {
|
|
13901
14541
|
d: "M15.3995 7.375C15.6066 7.01628 15.4837 6.55759 15.125 6.35048C14.7663 6.14337 14.3076 6.26628 14.1005 6.625L8.35048 16.5843C8.14337 16.943 8.26628 17.4017 8.625 17.6088C8.98372 17.8159 9.44241 17.693 9.64952 17.3343L15.3995 7.375Z"
|
|
13902
14542
|
}),
|
|
13903
|
-
/* @__PURE__ */ (0,
|
|
14543
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", {
|
|
13904
14544
|
fillRule: "evenodd",
|
|
13905
14545
|
clipRule: "evenodd",
|
|
13906
14546
|
d: "M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3H6ZM4.5 6C4.5 5.17157 5.17157 4.5 6 4.5H18C18.8284 4.5 19.5 5.17157 19.5 6V18C19.5 18.8284 18.8284 19.5 18 19.5H6C5.17157 19.5 4.5 18.8284 4.5 18V6Z"
|
|
@@ -13910,17 +14550,17 @@ var CodeIcon = React52.forwardRef(function(props, ref) {
|
|
|
13910
14550
|
}));
|
|
13911
14551
|
});
|
|
13912
14552
|
// src/components/icons/solid/DragIcon.tsx
|
|
13913
|
-
var
|
|
13914
|
-
var
|
|
13915
|
-
var DragIcon =
|
|
13916
|
-
return /* @__PURE__ */ (0,
|
|
13917
|
-
children: /* @__PURE__ */ (0,
|
|
14553
|
+
var React54 = __toESM(require("react"), 1);
|
|
14554
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
14555
|
+
var DragIcon = React54.forwardRef(function(props, ref) {
|
|
14556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14557
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", {
|
|
13918
14558
|
ref: ref,
|
|
13919
14559
|
className: "w-full h-full",
|
|
13920
14560
|
viewBox: "0 0 24 24",
|
|
13921
14561
|
fill: "currentColor",
|
|
13922
14562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13923
|
-
children: /* @__PURE__ */ (0,
|
|
14563
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", {
|
|
13924
14564
|
fillRule: "evenodd",
|
|
13925
14565
|
clipRule: "evenodd",
|
|
13926
14566
|
d: "M7.5 5C7.5 4.17157 8.17157 3.5 9 3.5C9.82843 3.5 10.5 4.17157 10.5 5C10.5 5.82843 9.82843 6.5 9 6.5C8.17157 6.5 7.5 5.82843 7.5 5ZM13.5 5C13.5 4.17157 14.1716 3.5 15 3.5C15.8284 3.5 16.5 4.17157 16.5 5C16.5 5.82843 15.8284 6.5 15 6.5C14.1716 6.5 13.5 5.82843 13.5 5ZM7.5 12C7.5 11.1716 8.17157 10.5 9 10.5C9.82843 10.5 10.5 11.1716 10.5 12C10.5 12.8284 9.82843 13.5 9 13.5C8.17157 13.5 7.5 12.8284 7.5 12ZM13.5 12C13.5 11.1716 14.1716 10.5 15 10.5C15.8284 10.5 16.5 11.1716 16.5 12C16.5 12.8284 15.8284 13.5 15 13.5C14.1716 13.5 13.5 12.8284 13.5 12ZM7.5 19C7.5 18.1716 8.17157 17.5 9 17.5C9.82843 17.5 10.5 18.1716 10.5 19C10.5 19.8284 9.82843 20.5 9 20.5C8.17157 20.5 7.5 19.8284 7.5 19ZM13.5 19C13.5 18.1716 14.1716 17.5 15 17.5C15.8284 17.5 16.5 18.1716 16.5 19C16.5 19.8284 15.8284 20.5 15 20.5C14.1716 20.5 13.5 19.8284 13.5 19Z"
|
|
@@ -13929,17 +14569,17 @@ var DragIcon = React53.forwardRef(function(props, ref) {
|
|
|
13929
14569
|
}));
|
|
13930
14570
|
});
|
|
13931
14571
|
// src/components/icons/solid/RectangleGroupIcon.tsx
|
|
13932
|
-
var
|
|
13933
|
-
var
|
|
13934
|
-
var RectangleGroupIcon =
|
|
13935
|
-
return /* @__PURE__ */ (0,
|
|
13936
|
-
children: /* @__PURE__ */ (0,
|
|
14572
|
+
var React55 = __toESM(require("react"), 1);
|
|
14573
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
14574
|
+
var RectangleGroupIcon = React55.forwardRef(function(props, ref) {
|
|
14575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
14576
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", {
|
|
13937
14577
|
ref: ref,
|
|
13938
14578
|
className: "w-full h-full",
|
|
13939
14579
|
viewBox: "0 0 24 24",
|
|
13940
14580
|
fill: "currentColor",
|
|
13941
14581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13942
|
-
children: /* @__PURE__ */ (0,
|
|
14582
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("path", {
|
|
13943
14583
|
fillRule: "evenodd",
|
|
13944
14584
|
clipRule: "evenodd",
|
|
13945
14585
|
d: "M1.5 7.125C1.5 6.08947 2.33947 5.25 3.375 5.25H9.375C10.4105 5.25 11.25 6.08947 11.25 7.125V10.875C11.25 11.9105 10.4105 12.75 9.375 12.75H3.375C2.33947 12.75 1.5 11.9105 1.5 10.875V7.125ZM13.5 8.625C13.5 7.58947 14.3395 6.75 15.375 6.75H20.625C21.6605 6.75 22.5 7.58947 22.5 8.625V16.875C22.5 17.9105 21.6605 18.75 20.625 18.75H15.375C14.3395 18.75 13.5 17.9105 13.5 16.875V8.625ZM3 16.125C3 15.0895 3.83947 14.25 4.875 14.25H10.125C11.1605 14.25 12 15.0895 12 16.125V18.375C12 19.4105 11.1605 20.25 10.125 20.25H4.875C3.83947 20.25 3 19.4105 3 18.375V16.125Z"
|
|
@@ -14087,6 +14727,7 @@ var RectangleGroupIcon = React54.forwardRef(function(props, ref) {
|
|
|
14087
14727
|
ModalOverlay: ModalOverlay,
|
|
14088
14728
|
ModalRoot: ModalRoot,
|
|
14089
14729
|
ModalTitle: ModalTitle,
|
|
14730
|
+
MultipleSelector: MultipleSelector,
|
|
14090
14731
|
NetworkErrorState: NetworkErrorState,
|
|
14091
14732
|
NoPageState: NoPageState,
|
|
14092
14733
|
NotFoundState: NotFoundState,
|
|
@@ -14168,6 +14809,7 @@ var RectangleGroupIcon = React54.forwardRef(function(props, ref) {
|
|
|
14168
14809
|
reducer: reducer,
|
|
14169
14810
|
toast: toast,
|
|
14170
14811
|
toggleVariants: toggleVariants,
|
|
14812
|
+
useDebounce: useDebounce,
|
|
14171
14813
|
useDevice: useDevice,
|
|
14172
14814
|
useFormField: useFormField,
|
|
14173
14815
|
useIsMobileByWindowWidth: useIsMobileByWindowWidth,
|