@tipp/ui 1.6.26 → 1.6.28
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/app/index.cjs +426 -430
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +8 -8
- package/dist/app/platform/coach-question-list.cjs +82 -86
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -4
- package/dist/app/platform/contents-card.cjs +66 -70
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +4 -4
- package/dist/app/platform/edit-coaching-time.cjs +155 -159
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +6 -6
- package/dist/app/platform/edit-service-type.cjs +142 -146
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +6 -6
- package/dist/app/platform/goal-manage-card-edit.cjs +150 -154
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +5 -5
- package/dist/app/platform/goal-manage-card-read.cjs +124 -128
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +4 -4
- package/dist/app/platform/on-offline-radio-card.cjs +130 -134
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +5 -5
- package/dist/app/platform/report-card.cjs +85 -89
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +4 -4
- package/dist/app/platform/reservation-card.cjs +187 -191
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +5 -5
- package/dist/app/platform/session-card.cjs +210 -214
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +8 -8
- package/dist/app/platform/session-review-simple-read.cjs +85 -89
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +116 -120
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +93 -97
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +96 -100
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +82 -86
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +92 -96
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +4 -4
- package/dist/app/platform/userInfos/utils.cjs +84 -88
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +4 -4
- package/dist/atoms/dialog.cjs +2 -2
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/ellipsis-tooltip.cjs +42 -101
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +3 -4
- package/dist/atoms/index.cjs +146 -170
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +1 -5
- package/dist/atoms/index.d.ts +1 -5
- package/dist/atoms/index.js +5 -11
- package/dist/atoms/scroll-area.cjs +1 -2
- package/dist/atoms/scroll-area.cjs.map +1 -1
- package/dist/atoms/scroll-area.d.cts +1 -10
- package/dist/atoms/scroll-area.d.ts +1 -10
- package/dist/atoms/scroll-area.js +1 -1
- package/dist/atoms/tooltip.cjs +3 -67
- package/dist/atoms/tooltip.cjs.map +1 -1
- package/dist/atoms/tooltip.d.cts +1 -9
- package/dist/atoms/tooltip.d.ts +1 -9
- package/dist/atoms/tooltip.js +3 -9
- package/dist/chunk-4ZLXDFP3.js +145 -0
- package/dist/chunk-4ZLXDFP3.js.map +1 -0
- package/dist/chunk-5L3GY3OV.js +106 -0
- package/dist/chunk-5L3GY3OV.js.map +1 -0
- package/dist/chunk-7QGUMO7V.js +54 -0
- package/dist/chunk-7QGUMO7V.js.map +1 -0
- package/dist/chunk-B3TMWAJI.js +145 -0
- package/dist/chunk-B3TMWAJI.js.map +1 -0
- package/dist/chunk-B6JJT4VK.js +174 -0
- package/dist/chunk-B6JJT4VK.js.map +1 -0
- package/dist/chunk-DDXBIVPL.js +54 -0
- package/dist/chunk-DDXBIVPL.js.map +1 -0
- package/dist/chunk-L75KKLZS.js +106 -0
- package/dist/chunk-L75KKLZS.js.map +1 -0
- package/dist/chunk-ME5XT4JY.js +145 -0
- package/dist/chunk-ME5XT4JY.js.map +1 -0
- package/dist/chunk-UAUXUQWQ.js +174 -0
- package/dist/chunk-UAUXUQWQ.js.map +1 -0
- package/dist/chunk-WKQZJK7O.js +357 -0
- package/dist/chunk-WKQZJK7O.js.map +1 -0
- package/dist/index.cjs +643 -667
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +9 -15
- package/dist/molecules/date-picker/date-picker-button.cjs +96 -100
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -4
- package/dist/molecules/expand-table/index.cjs +134 -138
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/expand-table/row.cjs +91 -95
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -4
- package/dist/molecules/index.cjs +314 -319
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +5 -5
- package/dist/molecules/navigation.cjs +82 -86
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -4
- package/dist/molecules/radio-button-card.cjs +86 -90
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +4 -4
- package/dist/molecules/tag-selector.cjs +97 -102
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/time-select.cjs +84 -88
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -4
- package/package.json +1 -1
- package/src/atoms/dialog.tsx +2 -2
- package/src/atoms/ellipsis-tooltip.tsx +20 -39
- package/src/atoms/scroll-area.tsx +1 -8
- package/src/atoms/tooltip.tsx +1 -72
package/dist/index.cjs
CHANGED
|
@@ -178,7 +178,7 @@ __export(src_exports, {
|
|
|
178
178
|
RocketIcon: () => import_react_icons2.RocketIcon,
|
|
179
179
|
Root: () => Root6,
|
|
180
180
|
RowsIcon: () => import_react_icons2.RowsIcon,
|
|
181
|
-
ScrollArea: () => ScrollArea,
|
|
181
|
+
ScrollArea: () => import_themes35.ScrollArea,
|
|
182
182
|
Section: () => import_themes36.Section,
|
|
183
183
|
SegmentedControl: () => import_themes37.SegmentedControl,
|
|
184
184
|
Select: () => Select,
|
|
@@ -190,7 +190,7 @@ __export(src_exports, {
|
|
|
190
190
|
Skeleton: () => import_themes40.Skeleton,
|
|
191
191
|
SpeakerLoudIcon: () => import_react_icons2.SpeakerLoudIcon,
|
|
192
192
|
SpeakerOffIcon: () => import_react_icons2.SpeakerOffIcon,
|
|
193
|
-
Spinner: () =>
|
|
193
|
+
Spinner: () => import_themes49.Spinner,
|
|
194
194
|
Stepper: () => Stepper,
|
|
195
195
|
Strong: () => import_themes41.Strong,
|
|
196
196
|
Switch: () => import_themes42.Switch,
|
|
@@ -204,10 +204,7 @@ __export(src_exports, {
|
|
|
204
204
|
TimeSelect: () => TimeSelect,
|
|
205
205
|
TimerIcon: () => import_react_icons2.TimerIcon,
|
|
206
206
|
ToastContainer: () => ToastContainer,
|
|
207
|
-
Tooltip: () => Tooltip,
|
|
208
|
-
TooltipContent: () => TooltipContent,
|
|
209
|
-
TooltipProvider: () => TooltipProvider,
|
|
210
|
-
TooltipTrigger: () => TooltipTrigger,
|
|
207
|
+
Tooltip: () => import_themes48.Tooltip,
|
|
211
208
|
TrashIcon: () => import_react_icons2.TrashIcon,
|
|
212
209
|
TriangleArrowDownIcon: () => TriangleArrowDownIcon,
|
|
213
210
|
TriangleArrowUpIcon: () => TriangleArrowUpIcon,
|
|
@@ -226,7 +223,7 @@ __export(src_exports, {
|
|
|
226
223
|
toast: () => import_react_toastify2.toast,
|
|
227
224
|
uiProps: () => uiProps,
|
|
228
225
|
usePortalContainer: () => usePortalContainer,
|
|
229
|
-
useThemeContext: () =>
|
|
226
|
+
useThemeContext: () => import_themes53.useThemeContext
|
|
230
227
|
});
|
|
231
228
|
module.exports = __toCommonJS(src_exports);
|
|
232
229
|
|
|
@@ -615,8 +612,8 @@ function Content2(props) {
|
|
|
615
612
|
}, style)
|
|
616
613
|
}, rest), {
|
|
617
614
|
children: [
|
|
618
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", children: [
|
|
619
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, {
|
|
615
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
616
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
620
617
|
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons.Cross1Icon, {}) }) })
|
|
621
618
|
] }),
|
|
622
619
|
children,
|
|
@@ -734,7 +731,6 @@ var import_themes34 = require("@radix-ui/themes");
|
|
|
734
731
|
|
|
735
732
|
// src/atoms/scroll-area.tsx
|
|
736
733
|
var import_themes35 = require("@radix-ui/themes");
|
|
737
|
-
var ScrollArea = import_themes35.ScrollArea;
|
|
738
734
|
|
|
739
735
|
// src/atoms/section.tsx
|
|
740
736
|
var import_themes36 = require("@radix-ui/themes");
|
|
@@ -890,75 +886,46 @@ Root4.displayName = "TextField.Root";
|
|
|
890
886
|
var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };
|
|
891
887
|
|
|
892
888
|
// src/atoms/tooltip.tsx
|
|
893
|
-
var
|
|
894
|
-
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
895
|
-
var import_react_popover = require("@radix-ui/react-popover");
|
|
896
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
897
|
-
var TouchContext = (0, import_react15.createContext)(void 0);
|
|
898
|
-
var useTouch = () => (0, import_react15.useContext)(TouchContext);
|
|
899
|
-
function TooltipProvider(_a) {
|
|
900
|
-
var _b = _a, {
|
|
901
|
-
children
|
|
902
|
-
} = _b, props = __objRest(_b, [
|
|
903
|
-
"children"
|
|
904
|
-
]);
|
|
905
|
-
const [isTouch, setIsTouch] = (0, import_react15.useState)(void 0);
|
|
906
|
-
(0, import_react15.useEffect)(() => {
|
|
907
|
-
setIsTouch(window.matchMedia("(pointer: coarse)").matches);
|
|
908
|
-
}, []);
|
|
909
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TouchContext.Provider, { value: isTouch, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipProvider, __spreadProps(__spreadValues({}, props), { children })) });
|
|
910
|
-
}
|
|
911
|
-
function Tooltip(props) {
|
|
912
|
-
const isTouch = useTouch();
|
|
913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipProvider, { children: isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.Popover, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.Tooltip, __spreadValues({}, props)) });
|
|
914
|
-
}
|
|
915
|
-
function TooltipTrigger(props) {
|
|
916
|
-
const isTouch = useTouch();
|
|
917
|
-
return isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.PopoverTrigger, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipTrigger, __spreadValues({}, props));
|
|
918
|
-
}
|
|
919
|
-
function TooltipContent(props) {
|
|
920
|
-
const isTouch = useTouch();
|
|
921
|
-
return isTouch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_popover.PopoverContent, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_tooltip.TooltipContent, __spreadValues({}, props));
|
|
922
|
-
}
|
|
889
|
+
var import_themes48 = require("@radix-ui/themes");
|
|
923
890
|
|
|
924
891
|
// src/atoms/collapse.tsx
|
|
925
|
-
var
|
|
926
|
-
var
|
|
892
|
+
var import_react15 = require("react");
|
|
893
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
927
894
|
function Collapse(props) {
|
|
928
895
|
const { children, closedHeight = "0" } = props;
|
|
929
|
-
const [open, setOpen] = (0,
|
|
896
|
+
const [open, setOpen] = (0, import_react15.useState)(() => {
|
|
930
897
|
return props.open || props.defaultOpen || false;
|
|
931
898
|
});
|
|
932
|
-
(0,
|
|
899
|
+
(0, import_react15.useEffect)(() => {
|
|
933
900
|
if (props.open === void 0)
|
|
934
901
|
return;
|
|
935
902
|
setOpen(props.open);
|
|
936
903
|
}, [props.open]);
|
|
937
|
-
const ref = (0,
|
|
938
|
-
(0,
|
|
904
|
+
const ref = (0, import_react15.useRef)(null);
|
|
905
|
+
(0, import_react15.useEffect)(() => {
|
|
939
906
|
if (!ref.current)
|
|
940
907
|
return;
|
|
941
908
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
942
909
|
}, [closedHeight, open]);
|
|
943
|
-
return /* @__PURE__ */ (0,
|
|
910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
944
911
|
}
|
|
945
912
|
|
|
946
913
|
// src/atoms/spinner.tsx
|
|
947
|
-
var
|
|
914
|
+
var import_themes49 = require("@radix-ui/themes");
|
|
948
915
|
|
|
949
916
|
// src/atoms/pagination.tsx
|
|
950
|
-
var
|
|
917
|
+
var import_react16 = require("react");
|
|
951
918
|
|
|
952
919
|
// src/icon.ts
|
|
953
920
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
954
921
|
|
|
955
922
|
// src/icons/phone-ring.tsx
|
|
956
923
|
var React6 = __toESM(require("react"), 1);
|
|
957
|
-
var
|
|
924
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
958
925
|
var PhoneRingIcon = React6.forwardRef(
|
|
959
926
|
(_a, forwardedRef) => {
|
|
960
927
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
961
|
-
return /* @__PURE__ */ (0,
|
|
928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
962
929
|
"svg",
|
|
963
930
|
__spreadProps(__spreadValues({
|
|
964
931
|
fill: "none",
|
|
@@ -969,14 +936,14 @@ var PhoneRingIcon = React6.forwardRef(
|
|
|
969
936
|
}, props), {
|
|
970
937
|
ref: forwardedRef,
|
|
971
938
|
children: [
|
|
972
|
-
/* @__PURE__ */ (0,
|
|
939
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
973
940
|
"path",
|
|
974
941
|
{
|
|
975
942
|
d: "M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
976
943
|
fill: color
|
|
977
944
|
}
|
|
978
945
|
),
|
|
979
|
-
/* @__PURE__ */ (0,
|
|
946
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
980
947
|
"path",
|
|
981
948
|
{
|
|
982
949
|
d: "M9.33335 4.22765C10.4699 4.62936 11.3707 5.53016 11.7724 6.66671M9.97701 2.33337C11.7004 2.93456 13.0655 4.2997 13.6667 6.02305M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
@@ -994,11 +961,11 @@ PhoneRingIcon.displayName = "ArrowUpIcon";
|
|
|
994
961
|
|
|
995
962
|
// src/icons/up.tsx
|
|
996
963
|
var React7 = __toESM(require("react"), 1);
|
|
997
|
-
var
|
|
964
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
998
965
|
var TriangleArrowUpIcon = React7.forwardRef(
|
|
999
966
|
(_a, forwardedRef) => {
|
|
1000
967
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1001
|
-
return /* @__PURE__ */ (0,
|
|
968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1002
969
|
"svg",
|
|
1003
970
|
__spreadProps(__spreadValues({
|
|
1004
971
|
fill: "none",
|
|
@@ -1008,7 +975,7 @@ var TriangleArrowUpIcon = React7.forwardRef(
|
|
|
1008
975
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1009
976
|
}, props), {
|
|
1010
977
|
ref: forwardedRef,
|
|
1011
|
-
children: /* @__PURE__ */ (0,
|
|
978
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1012
979
|
"path",
|
|
1013
980
|
{
|
|
1014
981
|
d: "M0.891555 6.1875L7.10845 6.1875C7.80261 6.1875 8.1771 5.37328 7.72534 4.84623L4.6169 1.21971C4.29263 0.841403 3.70737 0.841403 3.3831 1.21971L0.274659 4.84623C-0.177095 5.37328 0.197393 6.1875 0.891555 6.1875Z",
|
|
@@ -1023,11 +990,11 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
1023
990
|
|
|
1024
991
|
// src/icons/down.tsx
|
|
1025
992
|
var React8 = __toESM(require("react"), 1);
|
|
1026
|
-
var
|
|
993
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1027
994
|
var TriangleArrowDownIcon = React8.forwardRef(
|
|
1028
995
|
(_a, forwardedRef) => {
|
|
1029
996
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1030
|
-
return /* @__PURE__ */ (0,
|
|
997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1031
998
|
"svg",
|
|
1032
999
|
__spreadProps(__spreadValues({
|
|
1033
1000
|
fill: "none",
|
|
@@ -1037,7 +1004,7 @@ var TriangleArrowDownIcon = React8.forwardRef(
|
|
|
1037
1004
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1038
1005
|
}, props), {
|
|
1039
1006
|
ref: forwardedRef,
|
|
1040
|
-
children: /* @__PURE__ */ (0,
|
|
1007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1041
1008
|
"path",
|
|
1042
1009
|
{
|
|
1043
1010
|
d: "M7.10844 0.8125H0.891554C0.197392 0.8125 -0.177096 1.62672 0.274659 2.15377L3.3831 5.78029C3.70737 6.1586 4.29263 6.1586 4.6169 5.78029L7.72534 2.15377C8.1771 1.62672 7.80261 0.8125 7.10844 0.8125Z",
|
|
@@ -1052,11 +1019,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
|
1052
1019
|
|
|
1053
1020
|
// src/icons/mic.tsx
|
|
1054
1021
|
var React9 = __toESM(require("react"), 1);
|
|
1055
|
-
var
|
|
1022
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1056
1023
|
var MicIcon = React9.forwardRef(
|
|
1057
1024
|
(_a, forwardedRef) => {
|
|
1058
1025
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1059
|
-
return /* @__PURE__ */ (0,
|
|
1026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1060
1027
|
"svg",
|
|
1061
1028
|
__spreadProps(__spreadValues({
|
|
1062
1029
|
fill: "none",
|
|
@@ -1067,7 +1034,7 @@ var MicIcon = React9.forwardRef(
|
|
|
1067
1034
|
}, props), {
|
|
1068
1035
|
ref: forwardedRef,
|
|
1069
1036
|
children: [
|
|
1070
|
-
/* @__PURE__ */ (0,
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1071
1038
|
"path",
|
|
1072
1039
|
{
|
|
1073
1040
|
clipRule: "evenodd",
|
|
@@ -1076,7 +1043,7 @@ var MicIcon = React9.forwardRef(
|
|
|
1076
1043
|
fillRule: "evenodd"
|
|
1077
1044
|
}
|
|
1078
1045
|
),
|
|
1079
|
-
/* @__PURE__ */ (0,
|
|
1046
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1080
1047
|
"path",
|
|
1081
1048
|
{
|
|
1082
1049
|
d: "M1.30707 7.51038C1.30707 8.87401 2.61826 12.2831 5.90497 12.2831M5.90497 12.2831V15.4999M5.90497 12.2831C8.8595 11.9148 10.0284 10.8351 10.5203 7.51038M5.90497 15.4999H4.05182M5.90497 15.4999H7.81056",
|
|
@@ -1094,11 +1061,11 @@ MicIcon.displayName = "MicIcon";
|
|
|
1094
1061
|
|
|
1095
1062
|
// src/icons/camera.tsx
|
|
1096
1063
|
var React10 = __toESM(require("react"), 1);
|
|
1097
|
-
var
|
|
1064
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1098
1065
|
var CameraIcon = React10.forwardRef(
|
|
1099
1066
|
(_a, forwardedRef) => {
|
|
1100
1067
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1101
|
-
return /* @__PURE__ */ (0,
|
|
1068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1102
1069
|
"svg",
|
|
1103
1070
|
__spreadProps(__spreadValues({
|
|
1104
1071
|
fill: "none",
|
|
@@ -1108,7 +1075,7 @@ var CameraIcon = React10.forwardRef(
|
|
|
1108
1075
|
width: "16",
|
|
1109
1076
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1110
1077
|
}, props), {
|
|
1111
|
-
children: /* @__PURE__ */ (0,
|
|
1078
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1112
1079
|
"path",
|
|
1113
1080
|
{
|
|
1114
1081
|
d: "M1.41176 2C0.470588 2 0 2.46222 0 3.38667C0 4.31111 0 11.2444 0 12.1689C0 13.0933 0.470588 13.5556 0.941176 13.5556C1.41176 13.5556 9.88235 13.5556 10.8235 13.5556C11.7647 13.5556 11.7647 13.0933 11.7647 12.1689C11.7647 11.5595 11.7647 10.9502 11.7647 10.6056C11.7647 10.4478 11.8926 10.32 12.0504 10.32H12.1689C12.2126 10.32 12.2557 10.33 12.2949 10.3493L14.1176 11.2444L15.5883 11.9667C15.7782 12.06 16 11.9218 16 11.7103V3.86745C16 3.6507 15.768 3.51238 15.577 3.61479C14.6546 4.10924 12.5222 5.23556 12.2353 5.23556C12.1353 5.23556 12.0821 5.23556 12.0502 5.23556C11.8924 5.23556 11.7647 5.10789 11.7647 4.95009C11.7647 4.51892 11.7647 3.71688 11.7647 3.38667C11.7647 2.92444 11.2941 2 10.3529 2C9.41177 2 2.35294 2 1.41176 2Z",
|
|
@@ -1123,11 +1090,11 @@ CameraIcon.displayName = "CameraIcon";
|
|
|
1123
1090
|
|
|
1124
1091
|
// src/icons/camera-disabled.tsx
|
|
1125
1092
|
var React11 = __toESM(require("react"), 1);
|
|
1126
|
-
var
|
|
1093
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1127
1094
|
var CameraDisabledIcon = React11.forwardRef(
|
|
1128
1095
|
(_a, forwardedRef) => {
|
|
1129
1096
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1130
|
-
return /* @__PURE__ */ (0,
|
|
1097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1131
1098
|
"svg",
|
|
1132
1099
|
__spreadProps(__spreadValues({
|
|
1133
1100
|
fill: "none",
|
|
@@ -1137,7 +1104,7 @@ var CameraDisabledIcon = React11.forwardRef(
|
|
|
1137
1104
|
width: "16",
|
|
1138
1105
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1139
1106
|
}, props), {
|
|
1140
|
-
children: /* @__PURE__ */ (0,
|
|
1107
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1141
1108
|
"path",
|
|
1142
1109
|
{
|
|
1143
1110
|
clipRule: "evenodd",
|
|
@@ -1154,11 +1121,11 @@ CameraDisabledIcon.displayName = "VideoDisabledIcon";
|
|
|
1154
1121
|
|
|
1155
1122
|
// src/icons/end-call.tsx
|
|
1156
1123
|
var React12 = __toESM(require("react"), 1);
|
|
1157
|
-
var
|
|
1124
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1158
1125
|
var EndCallIcon = React12.forwardRef(
|
|
1159
1126
|
(_a, forwardedRef) => {
|
|
1160
1127
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1161
|
-
return /* @__PURE__ */ (0,
|
|
1128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1162
1129
|
"svg",
|
|
1163
1130
|
__spreadProps(__spreadValues({
|
|
1164
1131
|
fill: "none",
|
|
@@ -1169,14 +1136,14 @@ var EndCallIcon = React12.forwardRef(
|
|
|
1169
1136
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1170
1137
|
}, props), {
|
|
1171
1138
|
children: [
|
|
1172
|
-
/* @__PURE__ */ (0,
|
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1173
1140
|
"path",
|
|
1174
1141
|
{
|
|
1175
1142
|
d: "M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
1176
1143
|
fill: color
|
|
1177
1144
|
}
|
|
1178
1145
|
),
|
|
1179
|
-
/* @__PURE__ */ (0,
|
|
1146
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1180
1147
|
"path",
|
|
1181
1148
|
{
|
|
1182
1149
|
d: "M2 12H14M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
@@ -1193,11 +1160,11 @@ var EndCallIcon = React12.forwardRef(
|
|
|
1193
1160
|
EndCallIcon.displayName = "EndCallIcon";
|
|
1194
1161
|
|
|
1195
1162
|
// src/atoms/pagination.tsx
|
|
1196
|
-
var
|
|
1163
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1197
1164
|
function Pagination(props) {
|
|
1198
1165
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
1199
|
-
const [page, setPage] = (0,
|
|
1200
|
-
const visibleItems = (0,
|
|
1166
|
+
const [page, setPage] = (0, import_react16.useState)(() => props.page || props.defaultPage || 1);
|
|
1167
|
+
const visibleItems = (0, import_react16.useMemo)(() => {
|
|
1201
1168
|
let start = Math.max(1, page - siblingCount);
|
|
1202
1169
|
let end = Math.min(count, page + siblingCount);
|
|
1203
1170
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -1207,37 +1174,37 @@ function Pagination(props) {
|
|
|
1207
1174
|
}
|
|
1208
1175
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
1209
1176
|
}, [count, page, siblingCount]);
|
|
1210
|
-
(0,
|
|
1177
|
+
(0, import_react16.useEffect)(() => {
|
|
1211
1178
|
onChange == null ? void 0 : onChange(page);
|
|
1212
1179
|
}, [onChange, page]);
|
|
1213
|
-
(0,
|
|
1180
|
+
(0, import_react16.useEffect)(() => {
|
|
1214
1181
|
if (props.page) {
|
|
1215
1182
|
setPage(props.page);
|
|
1216
1183
|
}
|
|
1217
1184
|
}, [props.page]);
|
|
1218
|
-
const prev = (0,
|
|
1185
|
+
const prev = (0, import_react16.useMemo)(() => {
|
|
1219
1186
|
const p = page - 1;
|
|
1220
1187
|
return p < 1 ? void 0 : p;
|
|
1221
1188
|
}, [page]);
|
|
1222
|
-
const next = (0,
|
|
1189
|
+
const next = (0, import_react16.useMemo)(() => {
|
|
1223
1190
|
const n = page + 1;
|
|
1224
1191
|
return n > count ? void 0 : n;
|
|
1225
1192
|
}, [count, page]);
|
|
1226
|
-
const onClickPrev = (0,
|
|
1193
|
+
const onClickPrev = (0, import_react16.useCallback)(() => {
|
|
1227
1194
|
prev && setPage(prev);
|
|
1228
1195
|
}, [prev]);
|
|
1229
|
-
const onClickNext = (0,
|
|
1196
|
+
const onClickNext = (0, import_react16.useCallback)(() => {
|
|
1230
1197
|
next && setPage(next);
|
|
1231
1198
|
}, [next]);
|
|
1232
|
-
const doublePrev = (0,
|
|
1199
|
+
const doublePrev = (0, import_react16.useMemo)(() => {
|
|
1233
1200
|
if (!visibleItems.length)
|
|
1234
1201
|
return;
|
|
1235
1202
|
return Math.max(0, visibleItems[0] - 1);
|
|
1236
1203
|
}, [visibleItems]);
|
|
1237
|
-
const onClickDoublePrev = (0,
|
|
1204
|
+
const onClickDoublePrev = (0, import_react16.useCallback)(() => {
|
|
1238
1205
|
doublePrev && setPage(doublePrev);
|
|
1239
1206
|
}, [doublePrev]);
|
|
1240
|
-
const doubleNext = (0,
|
|
1207
|
+
const doubleNext = (0, import_react16.useMemo)(() => {
|
|
1241
1208
|
if (!visibleItems.length)
|
|
1242
1209
|
return;
|
|
1243
1210
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
@@ -1245,7 +1212,7 @@ function Pagination(props) {
|
|
|
1245
1212
|
return;
|
|
1246
1213
|
return Math.min(count, n);
|
|
1247
1214
|
}, [count, visibleItems]);
|
|
1248
|
-
const onClickDoubleNext = (0,
|
|
1215
|
+
const onClickDoubleNext = (0, import_react16.useCallback)(() => {
|
|
1249
1216
|
doubleNext && setPage(doubleNext);
|
|
1250
1217
|
}, [doubleNext]);
|
|
1251
1218
|
const iconSize = {
|
|
@@ -1257,19 +1224,19 @@ function Pagination(props) {
|
|
|
1257
1224
|
size: "3",
|
|
1258
1225
|
style: { borderRadius: "50%" }
|
|
1259
1226
|
};
|
|
1260
|
-
return /* @__PURE__ */ (0,
|
|
1261
|
-
/* @__PURE__ */ (0,
|
|
1227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
1228
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1262
1229
|
import_themes18.IconButton,
|
|
1263
1230
|
__spreadProps(__spreadValues({
|
|
1264
1231
|
disabled: !doublePrev,
|
|
1265
1232
|
onClick: onClickDoublePrev
|
|
1266
1233
|
}, moveButtonProps), {
|
|
1267
|
-
children: /* @__PURE__ */ (0,
|
|
1234
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons2.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
1268
1235
|
})
|
|
1269
1236
|
),
|
|
1270
|
-
/* @__PURE__ */ (0,
|
|
1271
|
-
/* @__PURE__ */ (0,
|
|
1272
|
-
return /* @__PURE__ */ (0,
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons2.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
1238
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
1239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1273
1240
|
"button",
|
|
1274
1241
|
{
|
|
1275
1242
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -1277,46 +1244,46 @@ function Pagination(props) {
|
|
|
1277
1244
|
setPage(item);
|
|
1278
1245
|
},
|
|
1279
1246
|
type: "button",
|
|
1280
|
-
children: /* @__PURE__ */ (0,
|
|
1247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "body", children: item })
|
|
1281
1248
|
},
|
|
1282
1249
|
item
|
|
1283
1250
|
);
|
|
1284
1251
|
}) }),
|
|
1285
|
-
/* @__PURE__ */ (0,
|
|
1286
|
-
/* @__PURE__ */ (0,
|
|
1252
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons2.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1287
1254
|
import_themes18.IconButton,
|
|
1288
1255
|
__spreadProps(__spreadValues({
|
|
1289
1256
|
disabled: !doubleNext,
|
|
1290
1257
|
onClick: onClickDoubleNext
|
|
1291
1258
|
}, moveButtonProps), {
|
|
1292
|
-
children: /* @__PURE__ */ (0,
|
|
1259
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons2.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
1293
1260
|
})
|
|
1294
1261
|
)
|
|
1295
1262
|
] });
|
|
1296
1263
|
}
|
|
1297
1264
|
|
|
1298
1265
|
// src/atoms/field-error-wrapper.tsx
|
|
1299
|
-
var
|
|
1266
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1300
1267
|
function FieldErrorWrapper({
|
|
1301
1268
|
children,
|
|
1302
1269
|
error
|
|
1303
1270
|
}) {
|
|
1304
|
-
return /* @__PURE__ */ (0,
|
|
1271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
1305
1272
|
children,
|
|
1306
|
-
error ? /* @__PURE__ */ (0,
|
|
1273
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
1307
1274
|
] });
|
|
1308
1275
|
}
|
|
1309
1276
|
|
|
1310
1277
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1311
|
-
var
|
|
1312
|
-
var
|
|
1278
|
+
var import_react17 = require("react");
|
|
1279
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1313
1280
|
function EllipsisTooltip(props) {
|
|
1314
1281
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
1315
|
-
const ref = (0,
|
|
1316
|
-
const [tooltipDisplay, setTooltipDisplay] = (0,
|
|
1282
|
+
const ref = (0, import_react17.useRef)(null);
|
|
1283
|
+
const [tooltipDisplay, setTooltipDisplay] = (0, import_react17.useState)(
|
|
1317
1284
|
"none"
|
|
1318
1285
|
);
|
|
1319
|
-
(0,
|
|
1286
|
+
(0, import_react17.useEffect)(() => {
|
|
1320
1287
|
if (ref.current) {
|
|
1321
1288
|
const typo = ref.current;
|
|
1322
1289
|
const mouseOver = () => {
|
|
@@ -1331,23 +1298,35 @@ function EllipsisTooltip(props) {
|
|
|
1331
1298
|
ref.current.addEventListener("mouseleave", mouseOut);
|
|
1332
1299
|
}
|
|
1333
1300
|
}, [children]);
|
|
1334
|
-
return /* @__PURE__ */ (0,
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1302
|
+
Typo,
|
|
1303
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
1304
|
+
ref,
|
|
1305
|
+
style: __spreadValues({
|
|
1306
|
+
width: "100%",
|
|
1307
|
+
textOverflow: "ellipsis",
|
|
1308
|
+
overflow: "hidden",
|
|
1309
|
+
WebkitLineClamp: lineClamp,
|
|
1310
|
+
display: "-webkit-box",
|
|
1311
|
+
WebkitBoxOrient: "vertical",
|
|
1312
|
+
wordBreak: "break-word"
|
|
1313
|
+
}, style),
|
|
1314
|
+
children
|
|
1315
|
+
})
|
|
1316
|
+
) });
|
|
1338
1317
|
}
|
|
1339
1318
|
|
|
1340
1319
|
// src/atoms/drawer.tsx
|
|
1341
1320
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1342
|
-
var
|
|
1321
|
+
var import_themes50 = require("@radix-ui/themes");
|
|
1343
1322
|
|
|
1344
1323
|
// src/icons/close-panel-arrow.tsx
|
|
1345
1324
|
var React15 = __toESM(require("react"), 1);
|
|
1346
|
-
var
|
|
1325
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1347
1326
|
var ClosePanelArrowIcon = React15.forwardRef(
|
|
1348
1327
|
(_a, forwardedRef) => {
|
|
1349
1328
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1350
|
-
return /* @__PURE__ */ (0,
|
|
1329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1351
1330
|
"svg",
|
|
1352
1331
|
__spreadProps(__spreadValues({
|
|
1353
1332
|
fill: "none",
|
|
@@ -1358,7 +1337,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1358
1337
|
}, props), {
|
|
1359
1338
|
ref: forwardedRef,
|
|
1360
1339
|
children: [
|
|
1361
|
-
/* @__PURE__ */ (0,
|
|
1340
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1362
1341
|
"path",
|
|
1363
1342
|
{
|
|
1364
1343
|
clipRule: "evenodd",
|
|
@@ -1367,7 +1346,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1367
1346
|
fillRule: "evenodd"
|
|
1368
1347
|
}
|
|
1369
1348
|
),
|
|
1370
|
-
/* @__PURE__ */ (0,
|
|
1349
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1371
1350
|
"path",
|
|
1372
1351
|
{
|
|
1373
1352
|
clipRule: "evenodd",
|
|
@@ -1384,9 +1363,9 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1384
1363
|
ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
1385
1364
|
|
|
1386
1365
|
// src/atoms/drawer.tsx
|
|
1387
|
-
var
|
|
1366
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1388
1367
|
function Root6(props) {
|
|
1389
|
-
return /* @__PURE__ */ (0,
|
|
1368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
1390
1369
|
}
|
|
1391
1370
|
var preventDefault2 = (e) => {
|
|
1392
1371
|
e.preventDefault();
|
|
@@ -1397,16 +1376,16 @@ function Content6(props) {
|
|
|
1397
1376
|
const desktopHeaderSize = 64;
|
|
1398
1377
|
const separatorSize = 1;
|
|
1399
1378
|
const { drawerContainerRef } = usePortalContainer();
|
|
1400
|
-
return /* @__PURE__ */ (0,
|
|
1401
|
-
/* @__PURE__ */ (0,
|
|
1402
|
-
/* @__PURE__ */ (0,
|
|
1379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes50.Theme, { children: [
|
|
1380
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
1381
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1403
1382
|
Dialog2.Content,
|
|
1404
1383
|
__spreadProps(__spreadValues({
|
|
1405
1384
|
className: `DrawerContent ${position} ${className || ""}`,
|
|
1406
1385
|
onPointerDownOutside: preventDefault2
|
|
1407
1386
|
}, rest), {
|
|
1408
|
-
children: /* @__PURE__ */ (0,
|
|
1409
|
-
|
|
1387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1388
|
+
import_themes50.Grid,
|
|
1410
1389
|
{
|
|
1411
1390
|
height: "100%",
|
|
1412
1391
|
overflow: "hidden",
|
|
@@ -1415,8 +1394,8 @@ function Content6(props) {
|
|
|
1415
1394
|
sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`
|
|
1416
1395
|
},
|
|
1417
1396
|
children: [
|
|
1418
|
-
/* @__PURE__ */ (0,
|
|
1419
|
-
/* @__PURE__ */ (0,
|
|
1397
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes22.Flex, { align: "center", px: { initial: "4", md: "6" }, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ClosePanelArrowIcon, {}) }) }) }),
|
|
1398
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
|
|
1420
1399
|
children
|
|
1421
1400
|
]
|
|
1422
1401
|
}
|
|
@@ -1426,7 +1405,7 @@ function Content6(props) {
|
|
|
1426
1405
|
] }) });
|
|
1427
1406
|
}
|
|
1428
1407
|
function Trigger5(props) {
|
|
1429
|
-
return /* @__PURE__ */ (0,
|
|
1408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
|
|
1430
1409
|
}
|
|
1431
1410
|
var Drawer = {
|
|
1432
1411
|
Root: Dialog2.Root,
|
|
@@ -1441,12 +1420,12 @@ var Drawer = {
|
|
|
1441
1420
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1442
1421
|
var import_react_toastify = require("react-toastify");
|
|
1443
1422
|
var import_react_toastify2 = require("react-toastify");
|
|
1444
|
-
var
|
|
1423
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1445
1424
|
function CloseButton() {
|
|
1446
1425
|
return null;
|
|
1447
1426
|
}
|
|
1448
1427
|
function ToastContainer(props) {
|
|
1449
|
-
return /* @__PURE__ */ (0,
|
|
1428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1450
1429
|
import_react_toastify.ToastContainer,
|
|
1451
1430
|
__spreadValues({
|
|
1452
1431
|
autoClose: 5e3,
|
|
@@ -1454,7 +1433,7 @@ function ToastContainer(props) {
|
|
|
1454
1433
|
closeOnClick: true,
|
|
1455
1434
|
draggable: true,
|
|
1456
1435
|
hideProgressBar: true,
|
|
1457
|
-
icon: /* @__PURE__ */ (0,
|
|
1436
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.InfoCircledIcon, {}),
|
|
1458
1437
|
newestOnTop: true,
|
|
1459
1438
|
pauseOnFocusLoss: true,
|
|
1460
1439
|
pauseOnHover: true,
|
|
@@ -1467,12 +1446,12 @@ function ToastContainer(props) {
|
|
|
1467
1446
|
|
|
1468
1447
|
// src/molecules/form/form.tsx
|
|
1469
1448
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1470
|
-
var
|
|
1471
|
-
var
|
|
1472
|
-
var Root8 = (0,
|
|
1449
|
+
var import_react18 = require("react");
|
|
1450
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1451
|
+
var Root8 = (0, import_react18.forwardRef)(
|
|
1473
1452
|
(_a, ref) => {
|
|
1474
1453
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1475
|
-
return /* @__PURE__ */ (0,
|
|
1454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1476
1455
|
RadixForm.Root,
|
|
1477
1456
|
__spreadProps(__spreadValues({}, rest), {
|
|
1478
1457
|
className: `FormRoot ${className || ""}`,
|
|
@@ -1483,33 +1462,33 @@ var Root8 = (0, import_react19.forwardRef)(
|
|
|
1483
1462
|
}
|
|
1484
1463
|
);
|
|
1485
1464
|
Root8.displayName = "FORM_ROOT";
|
|
1486
|
-
var FieldContext = (0,
|
|
1465
|
+
var FieldContext = (0, import_react18.createContext)({
|
|
1487
1466
|
name: ""
|
|
1488
1467
|
});
|
|
1489
|
-
var Field2 = (0,
|
|
1468
|
+
var Field2 = (0, import_react18.forwardRef)(
|
|
1490
1469
|
(_a, ref) => {
|
|
1491
1470
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1492
|
-
return /* @__PURE__ */ (0,
|
|
1471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1493
1472
|
RadixForm.Field,
|
|
1494
1473
|
__spreadProps(__spreadValues({}, rest), {
|
|
1495
1474
|
className: `FormField ${className || ""}`,
|
|
1496
1475
|
ref,
|
|
1497
|
-
children: /* @__PURE__ */ (0,
|
|
1476
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FieldContext.Provider, { value: rest, children })
|
|
1498
1477
|
})
|
|
1499
1478
|
);
|
|
1500
1479
|
}
|
|
1501
1480
|
);
|
|
1502
1481
|
Field2.displayName = "FORM_FIELD";
|
|
1503
1482
|
function HeadingLabel(props) {
|
|
1504
|
-
return /* @__PURE__ */ (0,
|
|
1483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
1505
1484
|
}
|
|
1506
1485
|
function CaptionLabel(props) {
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1508
1487
|
}
|
|
1509
|
-
var Label2 = (0,
|
|
1488
|
+
var Label2 = (0, import_react18.forwardRef)(
|
|
1510
1489
|
(_a, ref) => {
|
|
1511
1490
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
1512
|
-
const Comp = (0,
|
|
1491
|
+
const Comp = (0, import_react18.useMemo)(() => {
|
|
1513
1492
|
switch (variant) {
|
|
1514
1493
|
case "title":
|
|
1515
1494
|
return HeadingLabel;
|
|
@@ -1520,42 +1499,42 @@ var Label2 = (0, import_react19.forwardRef)(
|
|
|
1520
1499
|
return Typo;
|
|
1521
1500
|
}
|
|
1522
1501
|
}, [variant]);
|
|
1523
|
-
const fieldProps = (0,
|
|
1524
|
-
return /* @__PURE__ */ (0,
|
|
1502
|
+
const fieldProps = (0, import_react18.useContext)(FieldContext);
|
|
1503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1525
1504
|
RadixForm.Label,
|
|
1526
1505
|
__spreadProps(__spreadValues({}, rest), {
|
|
1527
1506
|
asChild: true,
|
|
1528
1507
|
className: `FormLabel ${className || ""}`,
|
|
1529
1508
|
ref,
|
|
1530
|
-
children: /* @__PURE__ */ (0,
|
|
1509
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Comp, { children: [
|
|
1531
1510
|
children,
|
|
1532
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
1511
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
1533
1512
|
] })
|
|
1534
1513
|
})
|
|
1535
1514
|
);
|
|
1536
1515
|
}
|
|
1537
1516
|
);
|
|
1538
1517
|
Label2.displayName = "FORM_Label";
|
|
1539
|
-
var Message2 = (0,
|
|
1518
|
+
var Message2 = (0, import_react18.forwardRef)(
|
|
1540
1519
|
(_a, ref) => {
|
|
1541
1520
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1542
|
-
return /* @__PURE__ */ (0,
|
|
1521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1543
1522
|
RadixForm.Message,
|
|
1544
1523
|
__spreadProps(__spreadValues({}, rest), {
|
|
1545
1524
|
asChild: true,
|
|
1546
1525
|
className: `FormMessage ${className || ""}`,
|
|
1547
1526
|
ref,
|
|
1548
|
-
children: /* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { color: "red", children })
|
|
1549
1528
|
})
|
|
1550
1529
|
);
|
|
1551
1530
|
}
|
|
1552
1531
|
);
|
|
1553
1532
|
Message2.displayName = "FORM_Message";
|
|
1554
|
-
var Control2 = (0,
|
|
1533
|
+
var Control2 = (0, import_react18.forwardRef)(
|
|
1555
1534
|
(_a, ref) => {
|
|
1556
1535
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1557
|
-
const fieldProps = (0,
|
|
1558
|
-
return /* @__PURE__ */ (0,
|
|
1536
|
+
const fieldProps = (0, import_react18.useContext)(FieldContext);
|
|
1537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1559
1538
|
RadixForm.Control,
|
|
1560
1539
|
__spreadProps(__spreadValues({}, rest), {
|
|
1561
1540
|
className: `FormControl ${className || ""}`,
|
|
@@ -1578,10 +1557,10 @@ function FormItem(_a) {
|
|
|
1578
1557
|
"children",
|
|
1579
1558
|
"errorMessage"
|
|
1580
1559
|
]);
|
|
1581
|
-
return /* @__PURE__ */ (0,
|
|
1582
|
-
/* @__PURE__ */ (0,
|
|
1560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
1561
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
1583
1562
|
children,
|
|
1584
|
-
/* @__PURE__ */ (0,
|
|
1563
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
1585
1564
|
] }));
|
|
1586
1565
|
}
|
|
1587
1566
|
var Form = {
|
|
@@ -1595,69 +1574,69 @@ var Form = {
|
|
|
1595
1574
|
};
|
|
1596
1575
|
|
|
1597
1576
|
// src/atoms/auto-sizing-input.tsx
|
|
1598
|
-
var
|
|
1599
|
-
var
|
|
1600
|
-
var AutoSizingInput = (0,
|
|
1577
|
+
var import_react19 = require("react");
|
|
1578
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1579
|
+
var AutoSizingInput = (0, import_react19.forwardRef)(
|
|
1601
1580
|
(_a, ref) => {
|
|
1602
1581
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
1603
|
-
const [value, setValue] = (0,
|
|
1604
|
-
const [width, setWidth] = (0,
|
|
1605
|
-
const span = (0,
|
|
1606
|
-
(0,
|
|
1582
|
+
const [value, setValue] = (0, import_react19.useState)(_value);
|
|
1583
|
+
const [width, setWidth] = (0, import_react19.useState)(0);
|
|
1584
|
+
const span = (0, import_react19.useRef)(null);
|
|
1585
|
+
(0, import_react19.useEffect)(() => {
|
|
1607
1586
|
span.current && setWidth(span.current.offsetWidth);
|
|
1608
1587
|
}, [value]);
|
|
1609
|
-
const changeHandler = (0,
|
|
1588
|
+
const changeHandler = (0, import_react19.useCallback)(
|
|
1610
1589
|
(evt) => {
|
|
1611
1590
|
onChange == null ? void 0 : onChange(evt);
|
|
1612
1591
|
setValue(evt.target.value);
|
|
1613
1592
|
},
|
|
1614
1593
|
[onChange]
|
|
1615
1594
|
);
|
|
1616
|
-
(0,
|
|
1595
|
+
(0, import_react19.useEffect)(() => {
|
|
1617
1596
|
setValue(_value || "");
|
|
1618
1597
|
}, [_value]);
|
|
1619
|
-
(0,
|
|
1598
|
+
(0, import_react19.useEffect)(() => {
|
|
1620
1599
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1621
1600
|
}, [value, onChangeValue]);
|
|
1622
|
-
return /* @__PURE__ */ (0,
|
|
1623
|
-
/* @__PURE__ */ (0,
|
|
1624
|
-
/* @__PURE__ */ (0,
|
|
1601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
|
|
1625
1604
|
] });
|
|
1626
1605
|
}
|
|
1627
1606
|
);
|
|
1628
1607
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1629
1608
|
|
|
1630
1609
|
// src/atoms/bullet-text.tsx
|
|
1631
|
-
var
|
|
1610
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1632
1611
|
function BulletText(_a) {
|
|
1633
1612
|
var _b = _a, {
|
|
1634
1613
|
children
|
|
1635
1614
|
} = _b, rest = __objRest(_b, [
|
|
1636
1615
|
"children"
|
|
1637
1616
|
]);
|
|
1638
|
-
return /* @__PURE__ */ (0,
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1640
|
-
/* @__PURE__ */ (0,
|
|
1617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
1618
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
1619
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
1641
1620
|
] });
|
|
1642
1621
|
}
|
|
1643
1622
|
|
|
1644
1623
|
// src/molecules/expand-table/index.tsx
|
|
1645
1624
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1646
|
-
var
|
|
1625
|
+
var import_react21 = require("react");
|
|
1647
1626
|
|
|
1648
1627
|
// src/molecules/expand-table/row.tsx
|
|
1649
1628
|
var import_react_table = require("@tanstack/react-table");
|
|
1650
|
-
var
|
|
1651
|
-
var
|
|
1629
|
+
var import_react20 = require("react");
|
|
1630
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1652
1631
|
function Row(props) {
|
|
1653
1632
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1654
|
-
const [open, setOpen] = (0,
|
|
1655
|
-
const onClickRow = (0,
|
|
1633
|
+
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
1634
|
+
const onClickRow = (0, import_react20.useCallback)(() => {
|
|
1656
1635
|
var _a;
|
|
1657
1636
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1658
1637
|
setOpen((prev) => !prev);
|
|
1659
1638
|
}, [props, row.original]);
|
|
1660
|
-
const rowClassName = (0,
|
|
1639
|
+
const rowClassName = (0, import_react20.useMemo)(() => {
|
|
1661
1640
|
const baseCls = ["tr-wrapper"];
|
|
1662
1641
|
if (ExpandComp) {
|
|
1663
1642
|
baseCls.push("expandable");
|
|
@@ -1667,8 +1646,8 @@ function Row(props) {
|
|
|
1667
1646
|
}
|
|
1668
1647
|
return baseCls.join(" ");
|
|
1669
1648
|
}, [ExpandComp, props.onRowClick]);
|
|
1670
|
-
return /* @__PURE__ */ (0,
|
|
1671
|
-
/* @__PURE__ */ (0,
|
|
1649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: rowClassName, children: [
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1672
1651
|
"button",
|
|
1673
1652
|
{
|
|
1674
1653
|
className: "tr",
|
|
@@ -1681,7 +1660,7 @@ function Row(props) {
|
|
|
1681
1660
|
var _a, _b, _c;
|
|
1682
1661
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1683
1662
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1684
|
-
return /* @__PURE__ */ (0,
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1685
1664
|
"div",
|
|
1686
1665
|
{
|
|
1687
1666
|
className: "td",
|
|
@@ -1692,7 +1671,7 @@ function Row(props) {
|
|
|
1692
1671
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
1693
1672
|
children: [
|
|
1694
1673
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1695
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1674
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1696
1675
|
cell.column.columnDef.meta.OpenBtn,
|
|
1697
1676
|
{
|
|
1698
1677
|
data: row.original,
|
|
@@ -1708,12 +1687,12 @@ function Row(props) {
|
|
|
1708
1687
|
},
|
|
1709
1688
|
`tr_${row.id}`
|
|
1710
1689
|
),
|
|
1711
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1690
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ExpandComp, { row }) }) }) : null
|
|
1712
1691
|
] }, `tr-wrapper_${row.id}`);
|
|
1713
1692
|
}
|
|
1714
1693
|
|
|
1715
1694
|
// src/molecules/expand-table/index.tsx
|
|
1716
|
-
var
|
|
1695
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1717
1696
|
function ExpandTable(props) {
|
|
1718
1697
|
const {
|
|
1719
1698
|
data,
|
|
@@ -1731,11 +1710,11 @@ function ExpandTable(props) {
|
|
|
1731
1710
|
getCellStyle
|
|
1732
1711
|
} = props;
|
|
1733
1712
|
const defaultAlign = "left";
|
|
1734
|
-
const [pagination, setPagination] = (0,
|
|
1713
|
+
const [pagination, setPagination] = (0, import_react21.useState)({
|
|
1735
1714
|
pageIndex: pageIndex || 0,
|
|
1736
1715
|
pageSize: pageSize || 9999
|
|
1737
1716
|
});
|
|
1738
|
-
const [sorting, setSorting] = (0,
|
|
1717
|
+
const [sorting, setSorting] = (0, import_react21.useState)([]);
|
|
1739
1718
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
1740
1719
|
data: data || [],
|
|
1741
1720
|
columns,
|
|
@@ -1749,7 +1728,7 @@ function ExpandTable(props) {
|
|
|
1749
1728
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
1750
1729
|
onPaginationChange: setPagination
|
|
1751
1730
|
});
|
|
1752
|
-
const gridTemplateColumns = (0,
|
|
1731
|
+
const gridTemplateColumns = (0, import_react21.useMemo)(() => {
|
|
1753
1732
|
return columns.map((col) => {
|
|
1754
1733
|
var _a;
|
|
1755
1734
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize)
|
|
@@ -1758,16 +1737,16 @@ function ExpandTable(props) {
|
|
|
1758
1737
|
}).join(" ");
|
|
1759
1738
|
}, [columns]);
|
|
1760
1739
|
const rowModels = getRowModel();
|
|
1761
|
-
const onChangePagination = (0,
|
|
1740
|
+
const onChangePagination = (0, import_react21.useCallback)(
|
|
1762
1741
|
(page) => {
|
|
1763
1742
|
setPageIndex(page - 1);
|
|
1764
1743
|
},
|
|
1765
1744
|
[setPageIndex]
|
|
1766
1745
|
);
|
|
1767
|
-
const helpCompRender = (0,
|
|
1746
|
+
const helpCompRender = (0, import_react21.useCallback)(
|
|
1768
1747
|
(rowLength) => {
|
|
1769
1748
|
if (isLoading) {
|
|
1770
|
-
return /* @__PURE__ */ (0,
|
|
1749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1771
1750
|
import_themes22.Flex,
|
|
1772
1751
|
{
|
|
1773
1752
|
align: "center",
|
|
@@ -1775,24 +1754,24 @@ function ExpandTable(props) {
|
|
|
1775
1754
|
justify: "center",
|
|
1776
1755
|
p: "5",
|
|
1777
1756
|
width: "100%",
|
|
1778
|
-
children: /* @__PURE__ */ (0,
|
|
1757
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes49.Spinner, {})
|
|
1779
1758
|
}
|
|
1780
1759
|
);
|
|
1781
1760
|
}
|
|
1782
1761
|
if (rowLength === 0) {
|
|
1783
|
-
return /* @__PURE__ */ (0,
|
|
1762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1784
1763
|
}
|
|
1785
1764
|
return null;
|
|
1786
1765
|
},
|
|
1787
1766
|
[isLoading, placeholder]
|
|
1788
1767
|
);
|
|
1789
|
-
const pageCount = (0,
|
|
1768
|
+
const pageCount = (0, import_react21.useMemo)(() => {
|
|
1790
1769
|
if (!data)
|
|
1791
1770
|
return 0;
|
|
1792
1771
|
return Math.ceil(data.length / pageSize);
|
|
1793
1772
|
}, [data, pageSize]);
|
|
1794
|
-
return /* @__PURE__ */ (0,
|
|
1795
|
-
/* @__PURE__ */ (0,
|
|
1773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1796
1775
|
"div",
|
|
1797
1776
|
{
|
|
1798
1777
|
className: "tr",
|
|
@@ -1802,30 +1781,30 @@ function ExpandTable(props) {
|
|
|
1802
1781
|
const sortable = header.column.getCanSort();
|
|
1803
1782
|
const sortedState = header.column.getIsSorted();
|
|
1804
1783
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1805
|
-
return /* @__PURE__ */ (0,
|
|
1784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1806
1785
|
"button",
|
|
1807
1786
|
{
|
|
1808
1787
|
onClick: header.column.getToggleSortingHandler(),
|
|
1809
1788
|
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
1810
1789
|
type: "button",
|
|
1811
1790
|
children: [
|
|
1812
|
-
/* @__PURE__ */ (0,
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1813
1792
|
header.column.columnDef.header,
|
|
1814
1793
|
header.getContext()
|
|
1815
1794
|
) }),
|
|
1816
|
-
sortable ? /* @__PURE__ */ (0,
|
|
1795
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1817
1796
|
import_themes22.Flex,
|
|
1818
1797
|
{
|
|
1819
1798
|
direction: "column",
|
|
1820
1799
|
style: { marginLeft: "var(--space-2)" },
|
|
1821
1800
|
children: [
|
|
1822
|
-
/* @__PURE__ */ (0,
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1823
1802
|
TriangleArrowUpIcon,
|
|
1824
1803
|
{
|
|
1825
1804
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
1826
1805
|
}
|
|
1827
1806
|
),
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1807
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1829
1808
|
TriangleArrowDownIcon,
|
|
1830
1809
|
{
|
|
1831
1810
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -1841,8 +1820,8 @@ function ExpandTable(props) {
|
|
|
1841
1820
|
},
|
|
1842
1821
|
headerGroup.id
|
|
1843
1822
|
)) }),
|
|
1844
|
-
/* @__PURE__ */ (0,
|
|
1845
|
-
return /* @__PURE__ */ (0,
|
|
1823
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1846
1825
|
Row,
|
|
1847
1826
|
{
|
|
1848
1827
|
ExpandComp,
|
|
@@ -1856,7 +1835,7 @@ function ExpandTable(props) {
|
|
|
1856
1835
|
`row_${row.id}`
|
|
1857
1836
|
);
|
|
1858
1837
|
}) }),
|
|
1859
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1838
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1860
1839
|
Pagination,
|
|
1861
1840
|
{
|
|
1862
1841
|
count: pageCount,
|
|
@@ -1869,14 +1848,14 @@ function ExpandTable(props) {
|
|
|
1869
1848
|
}
|
|
1870
1849
|
|
|
1871
1850
|
// src/molecules/navigation.tsx
|
|
1872
|
-
var
|
|
1851
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1873
1852
|
function Navigation({
|
|
1874
1853
|
items,
|
|
1875
1854
|
fontColor,
|
|
1876
1855
|
backgroundColor,
|
|
1877
1856
|
activeKey
|
|
1878
1857
|
}) {
|
|
1879
|
-
return /* @__PURE__ */ (0,
|
|
1858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1880
1859
|
import_themes22.Flex,
|
|
1881
1860
|
{
|
|
1882
1861
|
direction: "column",
|
|
@@ -1888,13 +1867,13 @@ function Navigation({
|
|
|
1888
1867
|
},
|
|
1889
1868
|
children: items == null ? void 0 : items.map((item) => {
|
|
1890
1869
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1891
|
-
return /* @__PURE__ */ (0,
|
|
1892
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
1871
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1893
1872
|
icon,
|
|
1894
|
-
/* @__PURE__ */ (0,
|
|
1873
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1895
1874
|
] }),
|
|
1896
1875
|
children == null ? void 0 : children.map((menu) => {
|
|
1897
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1876
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1898
1877
|
Button,
|
|
1899
1878
|
{
|
|
1900
1879
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1918,19 +1897,19 @@ function Navigation({
|
|
|
1918
1897
|
}
|
|
1919
1898
|
|
|
1920
1899
|
// src/molecules/date-picker/index.tsx
|
|
1921
|
-
var
|
|
1900
|
+
var import_react22 = require("react");
|
|
1922
1901
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1923
1902
|
var import_react_datepicker = require("react-datepicker");
|
|
1924
1903
|
var import_locale = require("date-fns/locale");
|
|
1925
|
-
var
|
|
1904
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1926
1905
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1927
1906
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1928
1907
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1929
|
-
var DatePicker = (0,
|
|
1908
|
+
var DatePicker = (0, import_react22.forwardRef)(
|
|
1930
1909
|
(props, ref) => {
|
|
1931
1910
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1932
1911
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1933
|
-
return /* @__PURE__ */ (0,
|
|
1912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1934
1913
|
ReactDatePicker,
|
|
1935
1914
|
__spreadProps(__spreadValues({
|
|
1936
1915
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1961,53 +1940,53 @@ var renderCustomHeader = (props) => {
|
|
|
1961
1940
|
} = props;
|
|
1962
1941
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1963
1942
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1964
|
-
return /* @__PURE__ */ (0,
|
|
1965
|
-
/* @__PURE__ */ (0,
|
|
1943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1966
1945
|
import_themes18.IconButton,
|
|
1967
1946
|
{
|
|
1968
1947
|
disabled: prevMonthButtonDisabled,
|
|
1969
1948
|
onClick: decreaseMonth,
|
|
1970
1949
|
type: "button",
|
|
1971
1950
|
variant: "ghost",
|
|
1972
|
-
children: /* @__PURE__ */ (0,
|
|
1951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
1973
1952
|
}
|
|
1974
1953
|
),
|
|
1975
|
-
/* @__PURE__ */ (0,
|
|
1976
|
-
/* @__PURE__ */ (0,
|
|
1954
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
1955
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1977
1956
|
year,
|
|
1978
1957
|
"\uB144"
|
|
1979
1958
|
] }),
|
|
1980
|
-
/* @__PURE__ */ (0,
|
|
1959
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1981
1960
|
month,
|
|
1982
1961
|
"\uC6D4"
|
|
1983
1962
|
] })
|
|
1984
1963
|
] }),
|
|
1985
|
-
/* @__PURE__ */ (0,
|
|
1964
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1986
1965
|
import_themes18.IconButton,
|
|
1987
1966
|
{
|
|
1988
1967
|
disabled: nextMonthButtonDisabled,
|
|
1989
1968
|
onClick: increaseMonth,
|
|
1990
1969
|
type: "button",
|
|
1991
1970
|
variant: "ghost",
|
|
1992
|
-
children: /* @__PURE__ */ (0,
|
|
1971
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
1993
1972
|
}
|
|
1994
1973
|
)
|
|
1995
1974
|
] });
|
|
1996
1975
|
};
|
|
1997
1976
|
|
|
1998
1977
|
// src/molecules/dot-navigation.tsx
|
|
1999
|
-
var
|
|
1978
|
+
var import_react23 = require("react");
|
|
2000
1979
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2001
|
-
var
|
|
1980
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2002
1981
|
function DotNavigation(props) {
|
|
2003
1982
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
2004
|
-
const [currentDot, setCurrentDot] = (0,
|
|
1983
|
+
const [currentDot, setCurrentDot] = (0, import_react23.useState)(
|
|
2005
1984
|
() => {
|
|
2006
1985
|
var _a;
|
|
2007
1986
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
2008
1987
|
}
|
|
2009
1988
|
);
|
|
2010
|
-
const onClickDot = (0,
|
|
1989
|
+
const onClickDot = (0, import_react23.useCallback)(
|
|
2011
1990
|
(i) => {
|
|
2012
1991
|
if (onClick) {
|
|
2013
1992
|
onClick(i);
|
|
@@ -2017,17 +1996,17 @@ function DotNavigation(props) {
|
|
|
2017
1996
|
},
|
|
2018
1997
|
[onClick]
|
|
2019
1998
|
);
|
|
2020
|
-
(0,
|
|
1999
|
+
(0, import_react23.useEffect)(() => {
|
|
2021
2000
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
2022
2001
|
}, [currentDot, onChangeDotIndex]);
|
|
2023
|
-
(0,
|
|
2002
|
+
(0, import_react23.useEffect)(() => {
|
|
2024
2003
|
if (typeof dotIndex === "undefined")
|
|
2025
2004
|
return;
|
|
2026
2005
|
setCurrentDot(dotIndex);
|
|
2027
2006
|
}, [dotIndex]);
|
|
2028
|
-
return /* @__PURE__ */ (0,
|
|
2007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
2029
2008
|
const isSelected = currentDot === index;
|
|
2030
|
-
return /* @__PURE__ */ (0,
|
|
2009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2031
2010
|
import_react_icons4.DotFilledIcon,
|
|
2032
2011
|
{
|
|
2033
2012
|
height: "24px",
|
|
@@ -2046,10 +2025,10 @@ function DotNavigation(props) {
|
|
|
2046
2025
|
}
|
|
2047
2026
|
|
|
2048
2027
|
// src/molecules/stepper.tsx
|
|
2049
|
-
var
|
|
2050
|
-
var
|
|
2051
|
-
var
|
|
2052
|
-
var StepContext = (0,
|
|
2028
|
+
var import_react24 = require("react");
|
|
2029
|
+
var import_themes51 = require("@radix-ui/themes");
|
|
2030
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2031
|
+
var StepContext = (0, import_react24.createContext)({
|
|
2053
2032
|
active: false,
|
|
2054
2033
|
completed: false,
|
|
2055
2034
|
index: 0
|
|
@@ -2063,7 +2042,7 @@ function Root9(props) {
|
|
|
2063
2042
|
maxWidth,
|
|
2064
2043
|
direction = "vertical"
|
|
2065
2044
|
} = props;
|
|
2066
|
-
return /* @__PURE__ */ (0,
|
|
2045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2067
2046
|
import_themes22.Flex,
|
|
2068
2047
|
{
|
|
2069
2048
|
gap: "3",
|
|
@@ -2072,8 +2051,8 @@ function Root9(props) {
|
|
|
2072
2051
|
minWidth,
|
|
2073
2052
|
maxWidth
|
|
2074
2053
|
},
|
|
2075
|
-
children:
|
|
2076
|
-
return /* @__PURE__ */ (0,
|
|
2054
|
+
children: import_react24.Children.map(children, (child, index) => {
|
|
2055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2077
2056
|
StepContext.Provider,
|
|
2078
2057
|
{
|
|
2079
2058
|
value: {
|
|
@@ -2096,9 +2075,9 @@ function Step(props) {
|
|
|
2096
2075
|
completed,
|
|
2097
2076
|
index,
|
|
2098
2077
|
direction = "vertical"
|
|
2099
|
-
} = (0,
|
|
2100
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
2101
|
-
|
|
2078
|
+
} = (0, import_react24.useContext)(StepContext);
|
|
2079
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2080
|
+
import_themes51.Separator,
|
|
2102
2081
|
{
|
|
2103
2082
|
style: {
|
|
2104
2083
|
width: `calc(100% - 40px)`,
|
|
@@ -2108,7 +2087,7 @@ function Step(props) {
|
|
|
2108
2087
|
}
|
|
2109
2088
|
}
|
|
2110
2089
|
) : null;
|
|
2111
|
-
const InnerStep = (0,
|
|
2090
|
+
const InnerStep = (0, import_react24.useMemo)(() => {
|
|
2112
2091
|
if (active) {
|
|
2113
2092
|
return ActiveStep;
|
|
2114
2093
|
}
|
|
@@ -2117,7 +2096,7 @@ function Step(props) {
|
|
|
2117
2096
|
}
|
|
2118
2097
|
return IncompleteStep;
|
|
2119
2098
|
}, [completed, active]);
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
2121
2100
|
import_themes22.Flex,
|
|
2122
2101
|
{
|
|
2123
2102
|
align: "center",
|
|
@@ -2127,22 +2106,22 @@ function Step(props) {
|
|
|
2127
2106
|
style: { flex: 1 },
|
|
2128
2107
|
children: [
|
|
2129
2108
|
connector,
|
|
2130
|
-
/* @__PURE__ */ (0,
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InnerStep, { Icon, children })
|
|
2131
2110
|
]
|
|
2132
2111
|
}
|
|
2133
2112
|
);
|
|
2134
2113
|
}
|
|
2135
2114
|
function CompleteStep(props) {
|
|
2136
2115
|
const { Icon, children } = props;
|
|
2137
|
-
const { completed, active } = (0,
|
|
2116
|
+
const { completed, active } = (0, import_react24.useContext)(StepContext);
|
|
2138
2117
|
const background = "var(--accent-a4)";
|
|
2139
2118
|
const border = "1px solid var(--accent-7)";
|
|
2140
2119
|
const color = "var(--accent-contrast)";
|
|
2141
|
-
return /* @__PURE__ */ (0,
|
|
2142
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
2121
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2143
2122
|
Avatar,
|
|
2144
2123
|
{
|
|
2145
|
-
fallback: /* @__PURE__ */ (0,
|
|
2124
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
2146
2125
|
radius: "full",
|
|
2147
2126
|
size: "medium",
|
|
2148
2127
|
style: {
|
|
@@ -2151,19 +2130,19 @@ function CompleteStep(props) {
|
|
|
2151
2130
|
}
|
|
2152
2131
|
}
|
|
2153
2132
|
),
|
|
2154
|
-
/* @__PURE__ */ (0,
|
|
2133
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
2155
2134
|
] });
|
|
2156
2135
|
}
|
|
2157
2136
|
function IncompleteStep(props) {
|
|
2158
2137
|
const { Icon, children } = props;
|
|
2159
|
-
const { completed, active, index } = (0,
|
|
2138
|
+
const { completed, active, index } = (0, import_react24.useContext)(StepContext);
|
|
2160
2139
|
const background = "var(--gray-5)";
|
|
2161
2140
|
const color = "var(--gray-a11)";
|
|
2162
|
-
return /* @__PURE__ */ (0,
|
|
2163
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
2142
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2164
2143
|
Avatar,
|
|
2165
2144
|
{
|
|
2166
|
-
fallback: /* @__PURE__ */ (0,
|
|
2145
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
2167
2146
|
radius: "full",
|
|
2168
2147
|
size: "medium",
|
|
2169
2148
|
style: {
|
|
@@ -2171,25 +2150,25 @@ function IncompleteStep(props) {
|
|
|
2171
2150
|
}
|
|
2172
2151
|
}
|
|
2173
2152
|
),
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2153
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
2175
2154
|
] });
|
|
2176
2155
|
}
|
|
2177
2156
|
function ActiveStep(props) {
|
|
2178
2157
|
const { Icon, children } = props;
|
|
2179
|
-
const { completed, active, index } = (0,
|
|
2158
|
+
const { completed, active, index } = (0, import_react24.useContext)(StepContext);
|
|
2180
2159
|
const background = "var(--accent-10)";
|
|
2181
2160
|
const color = "var(--accent-contrast)";
|
|
2182
|
-
return /* @__PURE__ */ (0,
|
|
2183
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
2162
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2184
2163
|
Avatar,
|
|
2185
2164
|
{
|
|
2186
|
-
fallback: /* @__PURE__ */ (0,
|
|
2165
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
2187
2166
|
radius: "full",
|
|
2188
2167
|
size: "medium",
|
|
2189
2168
|
style: { background }
|
|
2190
2169
|
}
|
|
2191
2170
|
),
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2171
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2193
2172
|
] });
|
|
2194
2173
|
}
|
|
2195
2174
|
var Stepper = {
|
|
@@ -2198,9 +2177,9 @@ var Stepper = {
|
|
|
2198
2177
|
};
|
|
2199
2178
|
|
|
2200
2179
|
// src/molecules/tag-selector.tsx
|
|
2201
|
-
var
|
|
2180
|
+
var import_react25 = require("react");
|
|
2202
2181
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2203
|
-
var
|
|
2182
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2204
2183
|
var OPTION_HEIGHT = 32;
|
|
2205
2184
|
var DefaultDropdownContainer = (props) => {
|
|
2206
2185
|
return props.children;
|
|
@@ -2218,22 +2197,22 @@ function TagSelector(props) {
|
|
|
2218
2197
|
open: propsOpen,
|
|
2219
2198
|
dropdownItemRender
|
|
2220
2199
|
} = props;
|
|
2221
|
-
const [_selected, _setSelected] = (0,
|
|
2200
|
+
const [_selected, _setSelected] = (0, import_react25.useState)(props.selected || []);
|
|
2222
2201
|
const selected = props.selected || _selected;
|
|
2223
2202
|
const setSelected = props.onChange || _setSelected;
|
|
2224
|
-
const [value, setValue] = (0,
|
|
2225
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
2226
|
-
const [open, setOpen] = (0,
|
|
2227
|
-
const [focus, setFocus] = (0,
|
|
2228
|
-
const fieldRef = (0,
|
|
2229
|
-
const scrollRef = (0,
|
|
2230
|
-
const closeRef = (0,
|
|
2231
|
-
const onFocus = (0,
|
|
2203
|
+
const [value, setValue] = (0, import_react25.useState)("");
|
|
2204
|
+
const [focusIndex, setFocusIndex] = (0, import_react25.useState)(null);
|
|
2205
|
+
const [open, setOpen] = (0, import_react25.useState)(false);
|
|
2206
|
+
const [focus, setFocus] = (0, import_react25.useState)(false);
|
|
2207
|
+
const fieldRef = (0, import_react25.useRef)(null);
|
|
2208
|
+
const scrollRef = (0, import_react25.useRef)(null);
|
|
2209
|
+
const closeRef = (0, import_react25.useRef)();
|
|
2210
|
+
const onFocus = (0, import_react25.useCallback)(() => {
|
|
2232
2211
|
clearTimeout(closeRef.current);
|
|
2233
2212
|
setFocus(true);
|
|
2234
2213
|
setOpen(true);
|
|
2235
2214
|
}, []);
|
|
2236
|
-
const onBlur = (0,
|
|
2215
|
+
const onBlur = (0, import_react25.useCallback)(() => {
|
|
2237
2216
|
closeRef.current = setTimeout(() => {
|
|
2238
2217
|
setFocus(false);
|
|
2239
2218
|
setOpen(false);
|
|
@@ -2242,18 +2221,18 @@ function TagSelector(props) {
|
|
|
2242
2221
|
}, 100);
|
|
2243
2222
|
}, 300);
|
|
2244
2223
|
}, []);
|
|
2245
|
-
const onChangeValue = (0,
|
|
2224
|
+
const onChangeValue = (0, import_react25.useCallback)(
|
|
2246
2225
|
(e) => {
|
|
2247
2226
|
setValue(e.target.value);
|
|
2248
2227
|
},
|
|
2249
2228
|
[]
|
|
2250
2229
|
);
|
|
2251
|
-
const filteredOptions = (0,
|
|
2230
|
+
const filteredOptions = (0, import_react25.useMemo)(() => {
|
|
2252
2231
|
return options.filter((option) => {
|
|
2253
2232
|
return option.name.includes(value);
|
|
2254
2233
|
});
|
|
2255
2234
|
}, [options, value]);
|
|
2256
|
-
const selectedItem = (0,
|
|
2235
|
+
const selectedItem = (0, import_react25.useMemo)(() => {
|
|
2257
2236
|
const result = [];
|
|
2258
2237
|
selected.forEach((id) => {
|
|
2259
2238
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -2262,13 +2241,13 @@ function TagSelector(props) {
|
|
|
2262
2241
|
});
|
|
2263
2242
|
return result;
|
|
2264
2243
|
}, [options, selected]);
|
|
2265
|
-
const onDelete = (0,
|
|
2244
|
+
const onDelete = (0, import_react25.useCallback)(
|
|
2266
2245
|
(id) => {
|
|
2267
2246
|
setSelected(selected.filter((el) => el !== id));
|
|
2268
2247
|
},
|
|
2269
2248
|
[selected, setSelected]
|
|
2270
2249
|
);
|
|
2271
|
-
const onSelect = (0,
|
|
2250
|
+
const onSelect = (0, import_react25.useCallback)(
|
|
2272
2251
|
(id) => {
|
|
2273
2252
|
if (maxCount && selected.length + 1 > maxCount)
|
|
2274
2253
|
return;
|
|
@@ -2276,7 +2255,7 @@ function TagSelector(props) {
|
|
|
2276
2255
|
},
|
|
2277
2256
|
[maxCount, selected, setSelected]
|
|
2278
2257
|
);
|
|
2279
|
-
const toggleItem = (0,
|
|
2258
|
+
const toggleItem = (0, import_react25.useCallback)(
|
|
2280
2259
|
(id) => {
|
|
2281
2260
|
if (selected.includes(id)) {
|
|
2282
2261
|
onDelete(id);
|
|
@@ -2286,7 +2265,7 @@ function TagSelector(props) {
|
|
|
2286
2265
|
},
|
|
2287
2266
|
[onDelete, onSelect, selected]
|
|
2288
2267
|
);
|
|
2289
|
-
const setScroll = (0,
|
|
2268
|
+
const setScroll = (0, import_react25.useCallback)((index) => {
|
|
2290
2269
|
if (scrollRef.current) {
|
|
2291
2270
|
const scrollTop = scrollRef.current.scrollTop;
|
|
2292
2271
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -2298,7 +2277,7 @@ function TagSelector(props) {
|
|
|
2298
2277
|
}
|
|
2299
2278
|
}
|
|
2300
2279
|
}, []);
|
|
2301
|
-
const handleKeyDown = (0,
|
|
2280
|
+
const handleKeyDown = (0, import_react25.useCallback)(
|
|
2302
2281
|
(e) => {
|
|
2303
2282
|
var _a;
|
|
2304
2283
|
const key = e.key;
|
|
@@ -2350,7 +2329,7 @@ function TagSelector(props) {
|
|
|
2350
2329
|
selected
|
|
2351
2330
|
]
|
|
2352
2331
|
);
|
|
2353
|
-
const placeholderVisible = (0,
|
|
2332
|
+
const placeholderVisible = (0, import_react25.useMemo)(() => {
|
|
2354
2333
|
if (selectedItem.length)
|
|
2355
2334
|
return false;
|
|
2356
2335
|
if (value)
|
|
@@ -2359,13 +2338,13 @@ function TagSelector(props) {
|
|
|
2359
2338
|
return false;
|
|
2360
2339
|
return true;
|
|
2361
2340
|
}, [focus, selectedItem.length, value]);
|
|
2362
|
-
(0,
|
|
2341
|
+
(0, import_react25.useEffect)(() => {
|
|
2363
2342
|
setFocusIndex(null);
|
|
2364
2343
|
}, [open]);
|
|
2365
|
-
(0,
|
|
2344
|
+
(0, import_react25.useEffect)(() => {
|
|
2366
2345
|
setFocusIndex(0);
|
|
2367
2346
|
}, [filteredOptions]);
|
|
2368
|
-
const badgeSize = (0,
|
|
2347
|
+
const badgeSize = (0, import_react25.useMemo)(() => {
|
|
2369
2348
|
switch (size) {
|
|
2370
2349
|
case "large":
|
|
2371
2350
|
return "large";
|
|
@@ -2375,7 +2354,7 @@ function TagSelector(props) {
|
|
|
2375
2354
|
return "small";
|
|
2376
2355
|
}
|
|
2377
2356
|
}, [size]);
|
|
2378
|
-
const placeholderVariant = (0,
|
|
2357
|
+
const placeholderVariant = (0, import_react25.useMemo)(() => {
|
|
2379
2358
|
switch (size) {
|
|
2380
2359
|
case "large":
|
|
2381
2360
|
return "subtitle";
|
|
@@ -2387,11 +2366,11 @@ function TagSelector(props) {
|
|
|
2387
2366
|
const focusClassName = focus ? " focused" : "";
|
|
2388
2367
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2389
2368
|
const errorClassName = error ? " error" : "";
|
|
2390
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2391
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2369
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2370
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2392
2371
|
}) });
|
|
2393
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2394
|
-
/* @__PURE__ */ (0,
|
|
2372
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2395
2374
|
import_themes22.Flex,
|
|
2396
2375
|
{
|
|
2397
2376
|
align: "center",
|
|
@@ -2403,22 +2382,22 @@ function TagSelector(props) {
|
|
|
2403
2382
|
selectedItem.map((item) => {
|
|
2404
2383
|
return tagRender ? tagRender(item, () => {
|
|
2405
2384
|
onDelete(item.id);
|
|
2406
|
-
}) : /* @__PURE__ */ (0,
|
|
2385
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Badge, { size: badgeSize, children: [
|
|
2407
2386
|
item.name,
|
|
2408
|
-
/* @__PURE__ */ (0,
|
|
2387
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2409
2388
|
Button,
|
|
2410
2389
|
{
|
|
2411
2390
|
onClick: () => {
|
|
2412
2391
|
onDelete(item.id);
|
|
2413
2392
|
},
|
|
2414
2393
|
variant: "transparent",
|
|
2415
|
-
children: /* @__PURE__ */ (0,
|
|
2394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons5.Cross1Icon, {})
|
|
2416
2395
|
}
|
|
2417
2396
|
)
|
|
2418
2397
|
] }, item.id);
|
|
2419
2398
|
}),
|
|
2420
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2421
|
-
/* @__PURE__ */ (0,
|
|
2399
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2400
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2422
2401
|
AutoSizingInput,
|
|
2423
2402
|
{
|
|
2424
2403
|
onBlur,
|
|
@@ -2432,10 +2411,10 @@ function TagSelector(props) {
|
|
|
2432
2411
|
]
|
|
2433
2412
|
}
|
|
2434
2413
|
),
|
|
2435
|
-
focus ? /* @__PURE__ */ (0,
|
|
2414
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
2436
2415
|
] });
|
|
2437
|
-
return /* @__PURE__ */ (0,
|
|
2438
|
-
/* @__PURE__ */ (0,
|
|
2416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2417
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2439
2418
|
import_themes23.Grid,
|
|
2440
2419
|
{
|
|
2441
2420
|
align: "center",
|
|
@@ -2449,31 +2428,31 @@ function TagSelector(props) {
|
|
|
2449
2428
|
children: readOnly ? readonlyContent : editContent
|
|
2450
2429
|
}
|
|
2451
2430
|
) }),
|
|
2452
|
-
/* @__PURE__ */ (0,
|
|
2431
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2453
2432
|
import_themes29.Popover.Content,
|
|
2454
2433
|
{
|
|
2455
2434
|
onOpenAutoFocus: preventDefault3,
|
|
2456
2435
|
onTouchMove: stopPropagationTouch,
|
|
2457
2436
|
onWheel: stopPropagationWheel,
|
|
2458
2437
|
sticky: "always",
|
|
2459
|
-
children: /* @__PURE__ */ (0,
|
|
2438
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2460
2439
|
DropdownContainer,
|
|
2461
2440
|
{
|
|
2462
2441
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2463
2442
|
items: filteredOptions,
|
|
2464
|
-
children: /* @__PURE__ */ (0,
|
|
2465
|
-
ScrollArea,
|
|
2443
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2444
|
+
import_themes35.ScrollArea,
|
|
2466
2445
|
{
|
|
2467
2446
|
ref: scrollRef,
|
|
2468
2447
|
scrollbars: "vertical",
|
|
2469
2448
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2470
2449
|
type: "auto",
|
|
2471
|
-
children: /* @__PURE__ */ (0,
|
|
2450
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2472
2451
|
const isSelected = Boolean(
|
|
2473
2452
|
selected.find((el) => el === item.id)
|
|
2474
2453
|
);
|
|
2475
2454
|
const isFocus = i === focusIndex;
|
|
2476
|
-
return /* @__PURE__ */ (0,
|
|
2455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2477
2456
|
Button,
|
|
2478
2457
|
{
|
|
2479
2458
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2486,9 +2465,9 @@ function TagSelector(props) {
|
|
|
2486
2465
|
setFocusIndex(i);
|
|
2487
2466
|
},
|
|
2488
2467
|
variant: isSelected ? "soft" : "outline",
|
|
2489
|
-
children: /* @__PURE__ */ (0,
|
|
2468
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2490
2469
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2491
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2470
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
2492
2471
|
] })
|
|
2493
2472
|
},
|
|
2494
2473
|
item.id
|
|
@@ -2513,14 +2492,14 @@ var preventDefault3 = (e) => {
|
|
|
2513
2492
|
};
|
|
2514
2493
|
|
|
2515
2494
|
// src/theme/theme-provider.tsx
|
|
2516
|
-
var
|
|
2517
|
-
var
|
|
2495
|
+
var import_themes52 = require("@radix-ui/themes");
|
|
2496
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2518
2497
|
function ThemeProvider(props) {
|
|
2519
|
-
return /* @__PURE__ */ (0,
|
|
2498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes52.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2520
2499
|
}
|
|
2521
2500
|
|
|
2522
2501
|
// src/molecules/learning-post.tsx
|
|
2523
|
-
var
|
|
2502
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2524
2503
|
function LearningPost(props) {
|
|
2525
2504
|
const {
|
|
2526
2505
|
defaultThemeProps,
|
|
@@ -2532,13 +2511,13 @@ function LearningPost(props) {
|
|
|
2532
2511
|
onPageBack,
|
|
2533
2512
|
children
|
|
2534
2513
|
} = props;
|
|
2535
|
-
return /* @__PURE__ */ (0,
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2536
2515
|
ThemeProvider,
|
|
2537
2516
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2538
2517
|
accentColor: "iris",
|
|
2539
2518
|
scaling: "110%",
|
|
2540
2519
|
style: {},
|
|
2541
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2520
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2542
2521
|
import_themes23.Grid,
|
|
2543
2522
|
{
|
|
2544
2523
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2550,8 +2529,8 @@ function LearningPost(props) {
|
|
|
2550
2529
|
px: "4",
|
|
2551
2530
|
width: "100%",
|
|
2552
2531
|
children: [
|
|
2553
|
-
/* @__PURE__ */ (0,
|
|
2554
|
-
/* @__PURE__ */ (0,
|
|
2532
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", {}),
|
|
2533
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2555
2534
|
import_themes22.Flex,
|
|
2556
2535
|
{
|
|
2557
2536
|
align: "center",
|
|
@@ -2561,15 +2540,15 @@ function LearningPost(props) {
|
|
|
2561
2540
|
overflow: "hidden",
|
|
2562
2541
|
width: "100%",
|
|
2563
2542
|
children: [
|
|
2564
|
-
/* @__PURE__ */ (0,
|
|
2565
|
-
/* @__PURE__ */ (0,
|
|
2543
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2544
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2566
2545
|
import_themes23.Grid,
|
|
2567
2546
|
{
|
|
2568
2547
|
gap: "3",
|
|
2569
2548
|
mb: { initial: "4", sm: "0" },
|
|
2570
2549
|
style: { alignSelf: "flex-start" },
|
|
2571
2550
|
children: [
|
|
2572
|
-
/* @__PURE__ */ (0,
|
|
2551
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2573
2552
|
Heading2,
|
|
2574
2553
|
{
|
|
2575
2554
|
style: {
|
|
@@ -2581,17 +2560,17 @@ function LearningPost(props) {
|
|
|
2581
2560
|
children: title
|
|
2582
2561
|
}
|
|
2583
2562
|
),
|
|
2584
|
-
/* @__PURE__ */ (0,
|
|
2585
|
-
/* @__PURE__ */ (0,
|
|
2563
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { children: metaDescription }),
|
|
2564
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2586
2565
|
var _a;
|
|
2587
2566
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
|
|
2588
2567
|
return;
|
|
2589
|
-
return /* @__PURE__ */ (0,
|
|
2568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2590
2569
|
}) })
|
|
2591
2570
|
]
|
|
2592
2571
|
}
|
|
2593
2572
|
),
|
|
2594
|
-
/* @__PURE__ */ (0,
|
|
2573
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2595
2574
|
import_themes2.AspectRatio,
|
|
2596
2575
|
{
|
|
2597
2576
|
ratio: 5 / 3,
|
|
@@ -2604,7 +2583,7 @@ function LearningPost(props) {
|
|
|
2604
2583
|
}
|
|
2605
2584
|
)
|
|
2606
2585
|
] }),
|
|
2607
|
-
/* @__PURE__ */ (0,
|
|
2586
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2608
2587
|
"div",
|
|
2609
2588
|
{
|
|
2610
2589
|
className: "gh-content",
|
|
@@ -2617,7 +2596,7 @@ function LearningPost(props) {
|
|
|
2617
2596
|
children
|
|
2618
2597
|
]
|
|
2619
2598
|
}
|
|
2620
|
-
) : /* @__PURE__ */ (0,
|
|
2599
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2621
2600
|
import_themes22.Flex,
|
|
2622
2601
|
{
|
|
2623
2602
|
align: "center",
|
|
@@ -2627,8 +2606,8 @@ function LearningPost(props) {
|
|
|
2627
2606
|
justify: "center",
|
|
2628
2607
|
width: "100%",
|
|
2629
2608
|
children: [
|
|
2630
|
-
/* @__PURE__ */ (0,
|
|
2631
|
-
/* @__PURE__ */ (0,
|
|
2609
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2610
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2632
2611
|
Heading2,
|
|
2633
2612
|
{
|
|
2634
2613
|
align: "center",
|
|
@@ -2639,7 +2618,7 @@ function LearningPost(props) {
|
|
|
2639
2618
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2640
2619
|
}
|
|
2641
2620
|
),
|
|
2642
|
-
/* @__PURE__ */ (0,
|
|
2621
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2643
2622
|
]
|
|
2644
2623
|
}
|
|
2645
2624
|
)
|
|
@@ -2649,9 +2628,9 @@ function LearningPost(props) {
|
|
|
2649
2628
|
|
|
2650
2629
|
// src/molecules/force-refresh.tsx
|
|
2651
2630
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
2652
|
-
var
|
|
2631
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2653
2632
|
function CodeSize3(props) {
|
|
2654
|
-
return /* @__PURE__ */ (0,
|
|
2633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2655
2634
|
import_themes13.Code,
|
|
2656
2635
|
{
|
|
2657
2636
|
style: {
|
|
@@ -2664,87 +2643,87 @@ function CodeSize3(props) {
|
|
|
2664
2643
|
);
|
|
2665
2644
|
}
|
|
2666
2645
|
function ForceRefresh() {
|
|
2667
|
-
return /* @__PURE__ */ (0,
|
|
2668
|
-
/* @__PURE__ */ (0,
|
|
2646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2669
2648
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2670
2649
|
" ",
|
|
2671
|
-
/* @__PURE__ */ (0,
|
|
2672
|
-
/* @__PURE__ */ (0,
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(CodeSize3, { children: [
|
|
2651
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
2673
2652
|
"\uB354\uBCF4\uAE30"
|
|
2674
2653
|
] }),
|
|
2675
2654
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2676
2655
|
] }),
|
|
2677
|
-
/* @__PURE__ */ (0,
|
|
2656
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2678
2657
|
"2. ",
|
|
2679
|
-
/* @__PURE__ */ (0,
|
|
2658
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2680
2659
|
" ",
|
|
2681
2660
|
">",
|
|
2682
2661
|
" ",
|
|
2683
|
-
/* @__PURE__ */ (0,
|
|
2662
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2684
2663
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2685
2664
|
] }),
|
|
2686
|
-
/* @__PURE__ */ (0,
|
|
2687
|
-
/* @__PURE__ */ (0,
|
|
2665
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2666
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2688
2667
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2689
|
-
/* @__PURE__ */ (0,
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
2690
2669
|
] }),
|
|
2691
|
-
/* @__PURE__ */ (0,
|
|
2670
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2692
2671
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2693
|
-
/* @__PURE__ */ (0,
|
|
2672
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
2694
2673
|
" + ",
|
|
2695
|
-
/* @__PURE__ */ (0,
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
2696
2675
|
" + ",
|
|
2697
|
-
/* @__PURE__ */ (0,
|
|
2676
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes26.Kbd, { children: "I" })
|
|
2698
2677
|
] })
|
|
2699
2678
|
] }),
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2679
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2701
2680
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2702
2681
|
" ",
|
|
2703
|
-
/* @__PURE__ */ (0,
|
|
2704
|
-
/* @__PURE__ */ (0,
|
|
2682
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(CodeSize3, { children: [
|
|
2683
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons6.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2705
2684
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2706
2685
|
] }),
|
|
2707
2686
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2708
2687
|
] }),
|
|
2709
|
-
/* @__PURE__ */ (0,
|
|
2688
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Typo, { children: [
|
|
2710
2689
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2711
|
-
/* @__PURE__ */ (0,
|
|
2690
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2712
2691
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2713
2692
|
] })
|
|
2714
2693
|
] });
|
|
2715
2694
|
}
|
|
2716
2695
|
|
|
2717
2696
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2718
|
-
var
|
|
2697
|
+
var import_react26 = require("react");
|
|
2719
2698
|
var import_date_fns = require("date-fns");
|
|
2720
2699
|
var import_clsx2 = require("clsx");
|
|
2721
|
-
var
|
|
2700
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2722
2701
|
function DatePickerButton(props) {
|
|
2723
2702
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
2724
|
-
const buttonProps = (0,
|
|
2703
|
+
const buttonProps = (0, import_react26.useMemo)(() => {
|
|
2725
2704
|
const variant = "outline";
|
|
2726
2705
|
const color = "gray";
|
|
2727
2706
|
return { size, color, variant, disabled };
|
|
2728
2707
|
}, [disabled, size]);
|
|
2729
|
-
const selectFormat = (0,
|
|
2708
|
+
const selectFormat = (0, import_react26.useMemo)(() => {
|
|
2730
2709
|
if (formatProps)
|
|
2731
2710
|
return formatProps;
|
|
2732
2711
|
return (date) => {
|
|
2733
2712
|
return date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
2734
2713
|
};
|
|
2735
2714
|
}, [formatProps, placeholder]);
|
|
2736
|
-
const className = (0,
|
|
2715
|
+
const className = (0, import_react26.useMemo)(() => {
|
|
2737
2716
|
return (0, import_clsx2.clsx)(
|
|
2738
2717
|
"date-picker-button",
|
|
2739
2718
|
(disabled || props.readOnly) && "disabled"
|
|
2740
2719
|
);
|
|
2741
2720
|
}, [disabled, props.readOnly]);
|
|
2742
|
-
return /* @__PURE__ */ (0,
|
|
2721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2743
2722
|
DatePicker,
|
|
2744
2723
|
__spreadProps(__spreadValues({
|
|
2745
|
-
customInput: /* @__PURE__ */ (0,
|
|
2724
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
2746
2725
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2747
|
-
/* @__PURE__ */ (0,
|
|
2726
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons2.CalendarIcon, {})
|
|
2748
2727
|
] }) })),
|
|
2749
2728
|
wrapperClassName: "full-width"
|
|
2750
2729
|
}, rest), {
|
|
@@ -2754,7 +2733,7 @@ function DatePickerButton(props) {
|
|
|
2754
2733
|
}
|
|
2755
2734
|
|
|
2756
2735
|
// src/molecules/time-select.tsx
|
|
2757
|
-
var
|
|
2736
|
+
var import_react27 = require("react");
|
|
2758
2737
|
var import_date_fns2 = require("date-fns");
|
|
2759
2738
|
|
|
2760
2739
|
// src/utils/get-cell-align.ts
|
|
@@ -2829,7 +2808,7 @@ var getTimeOption = (time) => {
|
|
|
2829
2808
|
};
|
|
2830
2809
|
|
|
2831
2810
|
// src/molecules/time-select.tsx
|
|
2832
|
-
var
|
|
2811
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2833
2812
|
var getOptionValue = (date, timeValue) => {
|
|
2834
2813
|
if (date && timeValue) {
|
|
2835
2814
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2849,31 +2828,31 @@ function TimeSelect(_a) {
|
|
|
2849
2828
|
"minTime",
|
|
2850
2829
|
"time"
|
|
2851
2830
|
]);
|
|
2852
|
-
const timeOptions = (0,
|
|
2831
|
+
const timeOptions = (0, import_react27.useMemo)(() => {
|
|
2853
2832
|
return getTimeOptions();
|
|
2854
2833
|
}, []);
|
|
2855
|
-
const [minOption, maxOption] = (0,
|
|
2834
|
+
const [minOption, maxOption] = (0, import_react27.useMemo)(() => {
|
|
2856
2835
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2857
2836
|
}, [maxTime, minTime, time]);
|
|
2858
|
-
return /* @__PURE__ */ (0,
|
|
2859
|
-
/* @__PURE__ */ (0,
|
|
2860
|
-
/* @__PURE__ */ (0,
|
|
2837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2838
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2839
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2861
2840
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2862
2841
|
if (!visible) {
|
|
2863
2842
|
return null;
|
|
2864
2843
|
}
|
|
2865
|
-
return /* @__PURE__ */ (0,
|
|
2844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2866
2845
|
}) })
|
|
2867
2846
|
] }));
|
|
2868
2847
|
}
|
|
2869
2848
|
|
|
2870
2849
|
// src/molecules/radio-button-card.tsx
|
|
2871
|
-
var
|
|
2872
|
-
var
|
|
2873
|
-
var RadioCardContext = (0,
|
|
2850
|
+
var import_react28 = require("react");
|
|
2851
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2852
|
+
var RadioCardContext = (0, import_react28.createContext)({});
|
|
2874
2853
|
function Root10(props) {
|
|
2875
|
-
const [value, setValue] = (0,
|
|
2876
|
-
const onValueChange = (0,
|
|
2854
|
+
const [value, setValue] = (0, import_react28.useState)(props.value || props.defaultValue);
|
|
2855
|
+
const onValueChange = (0, import_react28.useCallback)(
|
|
2877
2856
|
(v) => {
|
|
2878
2857
|
var _a;
|
|
2879
2858
|
setValue(v);
|
|
@@ -2881,7 +2860,7 @@ function Root10(props) {
|
|
|
2881
2860
|
},
|
|
2882
2861
|
[props]
|
|
2883
2862
|
);
|
|
2884
|
-
return /* @__PURE__ */ (0,
|
|
2863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2885
2864
|
}
|
|
2886
2865
|
function Item(_a) {
|
|
2887
2866
|
var _b = _a, {
|
|
@@ -2889,18 +2868,18 @@ function Item(_a) {
|
|
|
2889
2868
|
} = _b, itemRest = __objRest(_b, [
|
|
2890
2869
|
"children"
|
|
2891
2870
|
]);
|
|
2892
|
-
const _a2 = (0,
|
|
2871
|
+
const _a2 = (0, import_react28.useContext)(RadioCardContext), {
|
|
2893
2872
|
value,
|
|
2894
2873
|
justify,
|
|
2895
|
-
RadioWrapper =
|
|
2874
|
+
RadioWrapper = import_react28.Fragment
|
|
2896
2875
|
} = _a2, rootRest = __objRest(_a2, [
|
|
2897
2876
|
"value",
|
|
2898
2877
|
"justify",
|
|
2899
2878
|
"RadioWrapper"
|
|
2900
2879
|
]);
|
|
2901
|
-
return /* @__PURE__ */ (0,
|
|
2880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2902
2881
|
children,
|
|
2903
|
-
/* @__PURE__ */ (0,
|
|
2882
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2904
2883
|
import_themes32.Radio,
|
|
2905
2884
|
{
|
|
2906
2885
|
checked: itemRest.value === value,
|
|
@@ -2917,24 +2896,24 @@ var RadioButtonCard = {
|
|
|
2917
2896
|
|
|
2918
2897
|
// src/molecules/download-card.tsx
|
|
2919
2898
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
2920
|
-
var
|
|
2899
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2921
2900
|
function DownloadCard({
|
|
2922
2901
|
fileName,
|
|
2923
2902
|
url,
|
|
2924
2903
|
createdAt,
|
|
2925
2904
|
size
|
|
2926
2905
|
}) {
|
|
2927
|
-
return /* @__PURE__ */ (0,
|
|
2906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2928
2907
|
import_themes18.IconButton,
|
|
2929
2908
|
{
|
|
2930
2909
|
mt: "3",
|
|
2931
2910
|
size: "4",
|
|
2932
2911
|
style: { width: "100%", height: 56 },
|
|
2933
2912
|
variant: "soft",
|
|
2934
|
-
children: /* @__PURE__ */ (0,
|
|
2935
|
-
/* @__PURE__ */ (0,
|
|
2936
|
-
/* @__PURE__ */ (0,
|
|
2937
|
-
/* @__PURE__ */ (0,
|
|
2913
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons7.DownloadIcon, { height: 20, width: 20 }) }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
2916
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2938
2917
|
Typo,
|
|
2939
2918
|
{
|
|
2940
2919
|
style: {
|
|
@@ -2944,7 +2923,7 @@ function DownloadCard({
|
|
|
2944
2923
|
children: fileName
|
|
2945
2924
|
}
|
|
2946
2925
|
),
|
|
2947
|
-
/* @__PURE__ */ (0,
|
|
2926
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
2948
2927
|
] })
|
|
2949
2928
|
] })
|
|
2950
2929
|
}
|
|
@@ -2952,22 +2931,22 @@ function DownloadCard({
|
|
|
2952
2931
|
}
|
|
2953
2932
|
|
|
2954
2933
|
// src/molecules/ghost-post.tsx
|
|
2955
|
-
var
|
|
2934
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2956
2935
|
function GhostPost(props) {
|
|
2957
2936
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
2958
|
-
return /* @__PURE__ */ (0,
|
|
2937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2959
2938
|
ThemeProvider,
|
|
2960
2939
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2961
2940
|
accentColor: "iris",
|
|
2962
2941
|
scaling: "110%",
|
|
2963
2942
|
style: {},
|
|
2964
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2943
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2965
2944
|
"div",
|
|
2966
2945
|
{
|
|
2967
2946
|
className: "gh-content",
|
|
2968
2947
|
dangerouslySetInnerHTML: { __html: html }
|
|
2969
2948
|
}
|
|
2970
|
-
) }) : /* @__PURE__ */ (0,
|
|
2949
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
2971
2950
|
import_themes22.Flex,
|
|
2972
2951
|
{
|
|
2973
2952
|
align: "center",
|
|
@@ -2977,8 +2956,8 @@ function GhostPost(props) {
|
|
|
2977
2956
|
justify: "center",
|
|
2978
2957
|
width: "100%",
|
|
2979
2958
|
children: [
|
|
2980
|
-
/* @__PURE__ */ (0,
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
2959
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2982
2961
|
Heading2,
|
|
2983
2962
|
{
|
|
2984
2963
|
align: "center",
|
|
@@ -2989,7 +2968,7 @@ function GhostPost(props) {
|
|
|
2989
2968
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2990
2969
|
}
|
|
2991
2970
|
),
|
|
2992
|
-
/* @__PURE__ */ (0,
|
|
2971
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2993
2972
|
]
|
|
2994
2973
|
}
|
|
2995
2974
|
)
|
|
@@ -2998,28 +2977,28 @@ function GhostPost(props) {
|
|
|
2998
2977
|
}
|
|
2999
2978
|
|
|
3000
2979
|
// src/theme/use-theme.tsx
|
|
3001
|
-
var
|
|
2980
|
+
var import_themes53 = require("@radix-ui/themes");
|
|
3002
2981
|
|
|
3003
2982
|
// src/ui-props/index.ts
|
|
3004
2983
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
3005
2984
|
|
|
3006
2985
|
// src/charts/horizontal-bar-chart.tsx
|
|
3007
|
-
var
|
|
2986
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3008
2987
|
function HorizontalBarChart(props) {
|
|
3009
2988
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
3010
|
-
return /* @__PURE__ */ (0,
|
|
2989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3011
2990
|
"div",
|
|
3012
2991
|
{
|
|
3013
2992
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
3014
2993
|
style: { height, backgroundColor },
|
|
3015
|
-
children: /* @__PURE__ */ (0,
|
|
2994
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3016
2995
|
"div",
|
|
3017
2996
|
{
|
|
3018
2997
|
style: {
|
|
3019
2998
|
width: `${Math.round(value / total * 100)}%`,
|
|
3020
2999
|
height: "100%"
|
|
3021
3000
|
},
|
|
3022
|
-
children: /* @__PURE__ */ (0,
|
|
3001
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
3023
3002
|
}
|
|
3024
3003
|
)
|
|
3025
3004
|
}
|
|
@@ -3175,23 +3154,23 @@ var EchartDefaultProps = {
|
|
|
3175
3154
|
};
|
|
3176
3155
|
|
|
3177
3156
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
3178
|
-
var
|
|
3157
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3179
3158
|
function CoachingCustomerInfoSmall({
|
|
3180
3159
|
customer,
|
|
3181
3160
|
children,
|
|
3182
3161
|
badge
|
|
3183
3162
|
}) {
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3185
3164
|
import_themes22.Flex,
|
|
3186
3165
|
{
|
|
3187
3166
|
direction: { initial: "column", xs: "row" },
|
|
3188
3167
|
gap: "3",
|
|
3189
3168
|
justify: "between",
|
|
3190
3169
|
children: [
|
|
3191
|
-
/* @__PURE__ */ (0,
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3193
|
-
/* @__PURE__ */ (0,
|
|
3194
|
-
/* @__PURE__ */ (0,
|
|
3170
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
3171
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3172
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
3173
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
3195
3174
|
] }) }),
|
|
3196
3175
|
children
|
|
3197
3176
|
]
|
|
@@ -3202,7 +3181,7 @@ function CoachingCustomerInfoSmall({
|
|
|
3202
3181
|
// src/app/platform/userInfos/utils.tsx
|
|
3203
3182
|
var import_date_fns3 = require("date-fns");
|
|
3204
3183
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
3205
|
-
var
|
|
3184
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3206
3185
|
var infoList = [
|
|
3207
3186
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
3208
3187
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -3262,21 +3241,21 @@ var sessionList = [
|
|
|
3262
3241
|
var renderItem = (args) => {
|
|
3263
3242
|
const { info, data, onClickCopy } = args;
|
|
3264
3243
|
const value = info.getValue(data);
|
|
3265
|
-
return /* @__PURE__ */ (0,
|
|
3244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
3266
3245
|
info.render ? info.render(value) : value || "-",
|
|
3267
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
3246
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
3268
3247
|
] });
|
|
3269
3248
|
};
|
|
3270
3249
|
var renderDataListItem = (args) => {
|
|
3271
3250
|
const { info, data, onClickCopy } = args;
|
|
3272
|
-
return /* @__PURE__ */ (0,
|
|
3273
|
-
/* @__PURE__ */ (0,
|
|
3274
|
-
/* @__PURE__ */ (0,
|
|
3251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3252
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
3253
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
3275
3254
|
] }, info.label);
|
|
3276
3255
|
};
|
|
3277
3256
|
function CopyButton(props) {
|
|
3278
3257
|
const { value, onClickCopy } = props;
|
|
3279
|
-
return /* @__PURE__ */ (0,
|
|
3258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3280
3259
|
Button,
|
|
3281
3260
|
{
|
|
3282
3261
|
color: "gray",
|
|
@@ -3285,13 +3264,13 @@ function CopyButton(props) {
|
|
|
3285
3264
|
},
|
|
3286
3265
|
style: { marginLeft: "0", marginTop: "0" },
|
|
3287
3266
|
variant: "transparent",
|
|
3288
|
-
children: /* @__PURE__ */ (0,
|
|
3267
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons8.CopyIcon, {})
|
|
3289
3268
|
}
|
|
3290
3269
|
);
|
|
3291
3270
|
}
|
|
3292
3271
|
|
|
3293
3272
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
3294
|
-
var
|
|
3273
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3295
3274
|
function CoachingCustomerInfoMedium({
|
|
3296
3275
|
customer,
|
|
3297
3276
|
session,
|
|
@@ -3299,28 +3278,28 @@ function CoachingCustomerInfoMedium({
|
|
|
3299
3278
|
badge,
|
|
3300
3279
|
onClickCopy
|
|
3301
3280
|
}) {
|
|
3302
|
-
return /* @__PURE__ */ (0,
|
|
3303
|
-
/* @__PURE__ */ (0,
|
|
3304
|
-
/* @__PURE__ */ (0,
|
|
3305
|
-
/* @__PURE__ */ (0,
|
|
3281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3282
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes6.Box, { children: [
|
|
3283
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
3284
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3306
3285
|
badge
|
|
3307
3286
|
] }),
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
3287
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
3309
3288
|
] }),
|
|
3310
3289
|
children,
|
|
3311
|
-
/* @__PURE__ */ (0,
|
|
3290
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
3312
3291
|
(el) => renderDataListItem({
|
|
3313
3292
|
info: el,
|
|
3314
3293
|
data: session,
|
|
3315
3294
|
onClickCopy
|
|
3316
3295
|
})
|
|
3317
3296
|
) }) }),
|
|
3318
|
-
/* @__PURE__ */ (0,
|
|
3319
|
-
/* @__PURE__ */ (0,
|
|
3320
|
-
/* @__PURE__ */ (0,
|
|
3297
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
3298
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes39.Separator, { size: "4" })
|
|
3321
3300
|
] }),
|
|
3322
|
-
/* @__PURE__ */ (0,
|
|
3323
|
-
return /* @__PURE__ */ (0,
|
|
3301
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
3302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Typo, { children: renderItem({
|
|
3324
3303
|
info: el,
|
|
3325
3304
|
data: customer,
|
|
3326
3305
|
onClickCopy
|
|
@@ -3330,7 +3309,7 @@ function CoachingCustomerInfoMedium({
|
|
|
3330
3309
|
}
|
|
3331
3310
|
|
|
3332
3311
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
3333
|
-
var
|
|
3312
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3334
3313
|
function CoachingCustomerInfoLarge({
|
|
3335
3314
|
customer,
|
|
3336
3315
|
session,
|
|
@@ -3338,24 +3317,24 @@ function CoachingCustomerInfoLarge({
|
|
|
3338
3317
|
badge,
|
|
3339
3318
|
onClickCopy
|
|
3340
3319
|
}) {
|
|
3341
|
-
return /* @__PURE__ */ (0,
|
|
3342
|
-
/* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes6.Box, { children: [
|
|
3322
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
3323
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3345
3324
|
badge
|
|
3346
3325
|
] }),
|
|
3347
|
-
/* @__PURE__ */ (0,
|
|
3326
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
3348
3327
|
] }),
|
|
3349
3328
|
children,
|
|
3350
|
-
/* @__PURE__ */ (0,
|
|
3329
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3351
3330
|
(el) => renderDataListItem({
|
|
3352
3331
|
info: el,
|
|
3353
3332
|
data: session,
|
|
3354
3333
|
onClickCopy
|
|
3355
3334
|
})
|
|
3356
3335
|
) }) }),
|
|
3357
|
-
/* @__PURE__ */ (0,
|
|
3358
|
-
/* @__PURE__ */ (0,
|
|
3336
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes39.Separator, { size: "4" }),
|
|
3337
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3359
3338
|
(info) => renderDataListItem({
|
|
3360
3339
|
info,
|
|
3361
3340
|
data: customer,
|
|
@@ -3366,19 +3345,19 @@ function CoachingCustomerInfoLarge({
|
|
|
3366
3345
|
}
|
|
3367
3346
|
|
|
3368
3347
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
3369
|
-
var
|
|
3348
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3370
3349
|
function CoachingCustomerInfo(props) {
|
|
3371
|
-
return /* @__PURE__ */ (0,
|
|
3372
|
-
/* @__PURE__ */ (0,
|
|
3373
|
-
/* @__PURE__ */ (0,
|
|
3374
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
3351
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
3352
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
3353
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
3375
3354
|
] });
|
|
3376
3355
|
}
|
|
3377
3356
|
|
|
3378
3357
|
// src/app/platform/goal-manage-card-read.tsx
|
|
3379
|
-
var
|
|
3358
|
+
var import_react29 = require("react");
|
|
3380
3359
|
var import_date_fns4 = require("date-fns");
|
|
3381
|
-
var
|
|
3360
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3382
3361
|
function GoalManageCardRead(props) {
|
|
3383
3362
|
const {
|
|
3384
3363
|
title,
|
|
@@ -3392,12 +3371,12 @@ function GoalManageCardRead(props) {
|
|
|
3392
3371
|
onClickIncomplete,
|
|
3393
3372
|
onClickComplete
|
|
3394
3373
|
} = props;
|
|
3395
|
-
const [open, setOpen] = (0,
|
|
3396
|
-
const onClickOpen = (0,
|
|
3374
|
+
const [open, setOpen] = (0, import_react29.useState)(Boolean(defaultOpen));
|
|
3375
|
+
const onClickOpen = (0, import_react29.useCallback)(() => {
|
|
3397
3376
|
setOpen((p) => !p);
|
|
3398
3377
|
}, []);
|
|
3399
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
3400
|
-
const badgeMeta = (0,
|
|
3378
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
3379
|
+
const badgeMeta = (0, import_react29.useMemo)(() => {
|
|
3401
3380
|
if (!completed && dueDate) {
|
|
3402
3381
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
3403
3382
|
return {
|
|
@@ -3408,41 +3387,41 @@ function GoalManageCardRead(props) {
|
|
|
3408
3387
|
}
|
|
3409
3388
|
return null;
|
|
3410
3389
|
}, [completed, dueDate]);
|
|
3411
|
-
const renderSubTitle = (0,
|
|
3412
|
-
return /* @__PURE__ */ (0,
|
|
3390
|
+
const renderSubTitle = (0, import_react29.useCallback)((subTitle) => {
|
|
3391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
3413
3392
|
}, []);
|
|
3414
|
-
const renderSubContent = (0,
|
|
3415
|
-
return /* @__PURE__ */ (0,
|
|
3393
|
+
const renderSubContent = (0, import_react29.useCallback)((content) => {
|
|
3394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
3416
3395
|
}, []);
|
|
3417
|
-
const renderCompleteButton = (0,
|
|
3396
|
+
const renderCompleteButton = (0, import_react29.useCallback)(() => {
|
|
3418
3397
|
if (completed) {
|
|
3419
|
-
return /* @__PURE__ */ (0,
|
|
3398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
3420
3399
|
}
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3422
|
-
/* @__PURE__ */ (0,
|
|
3423
|
-
/* @__PURE__ */ (0,
|
|
3400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes29.Popover.Root, { children: [
|
|
3401
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Button, { size: "small", children: [
|
|
3402
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.RocketIcon, {}),
|
|
3424
3403
|
"\uB2EC\uC131\uD558\uAE30"
|
|
3425
3404
|
] }) }),
|
|
3426
|
-
/* @__PURE__ */ (0,
|
|
3427
|
-
/* @__PURE__ */ (0,
|
|
3428
|
-
/* @__PURE__ */ (0,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3430
|
-
/* @__PURE__ */ (0,
|
|
3405
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes29.Popover.Content, { children: [
|
|
3406
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
3408
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
3431
3410
|
] })
|
|
3432
3411
|
] })
|
|
3433
3412
|
] });
|
|
3434
3413
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
3435
|
-
return /* @__PURE__ */ (0,
|
|
3436
|
-
/* @__PURE__ */ (0,
|
|
3437
|
-
/* @__PURE__ */ (0,
|
|
3438
|
-
/* @__PURE__ */ (0,
|
|
3439
|
-
/* @__PURE__ */ (0,
|
|
3440
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
3441
|
-
/* @__PURE__ */ (0,
|
|
3414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
3415
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes18.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
3416
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3417
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
3419
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
3420
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
3442
3421
|
] }),
|
|
3443
3422
|
renderCompleteButton()
|
|
3444
3423
|
] }),
|
|
3445
|
-
open ? /* @__PURE__ */ (0,
|
|
3424
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3446
3425
|
import_themes39.Separator,
|
|
3447
3426
|
{
|
|
3448
3427
|
mb: "4",
|
|
@@ -3451,37 +3430,37 @@ function GoalManageCardRead(props) {
|
|
|
3451
3430
|
style: { gridColumnStart: "span 2" }
|
|
3452
3431
|
}
|
|
3453
3432
|
) : null,
|
|
3454
|
-
/* @__PURE__ */ (0,
|
|
3455
|
-
/* @__PURE__ */ (0,
|
|
3456
|
-
/* @__PURE__ */ (0,
|
|
3433
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Collapse, { open, children: [
|
|
3434
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3435
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes6.Box, { children: [
|
|
3457
3436
|
renderSubTitle(
|
|
3458
3437
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
3459
3438
|
),
|
|
3460
3439
|
renderSubContent(expectedEffect)
|
|
3461
3440
|
] }),
|
|
3462
|
-
/* @__PURE__ */ (0,
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes6.Box, { children: [
|
|
3463
3442
|
renderSubTitle(
|
|
3464
3443
|
"\uBAA9\uD45C\uB97C \uC774\uB8E8\uAE30\uAE4C\uC9C0 \uBC29\uD574\uAC00 \uB420 \uC218 \uC788\uB294 \uC694\uC18C\uB4E4\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4"
|
|
3465
3444
|
),
|
|
3466
3445
|
renderSubContent(huddle)
|
|
3467
3446
|
] })
|
|
3468
3447
|
] }),
|
|
3469
|
-
/* @__PURE__ */ (0,
|
|
3470
|
-
/* @__PURE__ */ (0,
|
|
3471
|
-
/* @__PURE__ */ (0,
|
|
3472
|
-
/* @__PURE__ */ (0,
|
|
3448
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
3449
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes29.Popover.Root, { children: [
|
|
3450
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
3451
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.TrashIcon, {}),
|
|
3473
3452
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
3474
3453
|
] }) }),
|
|
3475
|
-
/* @__PURE__ */ (0,
|
|
3476
|
-
/* @__PURE__ */ (0,
|
|
3477
|
-
/* @__PURE__ */ (0,
|
|
3478
|
-
/* @__PURE__ */ (0,
|
|
3479
|
-
/* @__PURE__ */ (0,
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes29.Popover.Content, { children: [
|
|
3455
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
3456
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
3457
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
3458
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
3480
3459
|
] })
|
|
3481
3460
|
] })
|
|
3482
3461
|
] }),
|
|
3483
|
-
/* @__PURE__ */ (0,
|
|
3484
|
-
/* @__PURE__ */ (0,
|
|
3462
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
3463
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
3485
3464
|
"\uC218\uC815\uD558\uAE30"
|
|
3486
3465
|
] })
|
|
3487
3466
|
] })
|
|
@@ -3490,9 +3469,9 @@ function GoalManageCardRead(props) {
|
|
|
3490
3469
|
}
|
|
3491
3470
|
|
|
3492
3471
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
3493
|
-
var
|
|
3472
|
+
var import_react30 = require("react");
|
|
3494
3473
|
var import_date_fns5 = require("date-fns");
|
|
3495
|
-
var
|
|
3474
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3496
3475
|
var initialValues = {
|
|
3497
3476
|
goal: "",
|
|
3498
3477
|
effect: "",
|
|
@@ -3503,8 +3482,8 @@ var dummyFn = () => {
|
|
|
3503
3482
|
};
|
|
3504
3483
|
function GoalManageCardEdit(props) {
|
|
3505
3484
|
const { defaultValues, errors } = props;
|
|
3506
|
-
const [values, setValues] = (0,
|
|
3507
|
-
const onChange = (0,
|
|
3485
|
+
const [values, setValues] = (0, import_react30.useState)(defaultValues || initialValues);
|
|
3486
|
+
const onChange = (0, import_react30.useCallback)(
|
|
3508
3487
|
(v) => {
|
|
3509
3488
|
var _a;
|
|
3510
3489
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -3512,20 +3491,20 @@ function GoalManageCardEdit(props) {
|
|
|
3512
3491
|
},
|
|
3513
3492
|
[props]
|
|
3514
3493
|
);
|
|
3515
|
-
const onClickInit = (0,
|
|
3494
|
+
const onClickInit = (0, import_react30.useCallback)(() => {
|
|
3516
3495
|
var _a;
|
|
3517
3496
|
setValues(initialValues);
|
|
3518
3497
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
3519
3498
|
}, [defaultValues, props]);
|
|
3520
|
-
const onClickSubmit = (0,
|
|
3499
|
+
const onClickSubmit = (0, import_react30.useCallback)(() => {
|
|
3521
3500
|
var _a;
|
|
3522
3501
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
3523
3502
|
}, [props, values]);
|
|
3524
|
-
return /* @__PURE__ */ (0,
|
|
3525
|
-
/* @__PURE__ */ (0,
|
|
3526
|
-
/* @__PURE__ */ (0,
|
|
3527
|
-
/* @__PURE__ */ (0,
|
|
3528
|
-
/* @__PURE__ */ (0,
|
|
3503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Field, { name: "title", children: [
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3529
3508
|
TextField.Root,
|
|
3530
3509
|
{
|
|
3531
3510
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -3536,11 +3515,11 @@ function GoalManageCardEdit(props) {
|
|
|
3536
3515
|
value: values.goal
|
|
3537
3516
|
}
|
|
3538
3517
|
),
|
|
3539
|
-
/* @__PURE__ */ (0,
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
3540
3519
|
] }),
|
|
3541
|
-
/* @__PURE__ */ (0,
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3543
|
-
/* @__PURE__ */ (0,
|
|
3520
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Field, { name: "effect", children: [
|
|
3521
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
3522
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3544
3523
|
TextArea,
|
|
3545
3524
|
{
|
|
3546
3525
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -3552,11 +3531,11 @@ function GoalManageCardEdit(props) {
|
|
|
3552
3531
|
value: values.effect
|
|
3553
3532
|
}
|
|
3554
3533
|
),
|
|
3555
|
-
/* @__PURE__ */ (0,
|
|
3534
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
3556
3535
|
] }),
|
|
3557
|
-
/* @__PURE__ */ (0,
|
|
3558
|
-
/* @__PURE__ */ (0,
|
|
3559
|
-
/* @__PURE__ */ (0,
|
|
3536
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Field, { name: "huddle", children: [
|
|
3537
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
3538
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3560
3539
|
TextArea,
|
|
3561
3540
|
{
|
|
3562
3541
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -3570,11 +3549,11 @@ function GoalManageCardEdit(props) {
|
|
|
3570
3549
|
value: values.huddle
|
|
3571
3550
|
}
|
|
3572
3551
|
),
|
|
3573
|
-
/* @__PURE__ */ (0,
|
|
3552
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
3574
3553
|
] }),
|
|
3575
|
-
/* @__PURE__ */ (0,
|
|
3576
|
-
/* @__PURE__ */ (0,
|
|
3577
|
-
/* @__PURE__ */ (0,
|
|
3554
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
3555
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
3556
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3578
3557
|
DatePickerButton,
|
|
3579
3558
|
{
|
|
3580
3559
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -3585,11 +3564,11 @@ function GoalManageCardEdit(props) {
|
|
|
3585
3564
|
selected: values.dueDate
|
|
3586
3565
|
}
|
|
3587
3566
|
),
|
|
3588
|
-
/* @__PURE__ */ (0,
|
|
3567
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
3589
3568
|
] })
|
|
3590
3569
|
] }),
|
|
3591
|
-
/* @__PURE__ */ (0,
|
|
3592
|
-
/* @__PURE__ */ (0,
|
|
3570
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
3571
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3593
3572
|
Button,
|
|
3594
3573
|
{
|
|
3595
3574
|
color: "gray",
|
|
@@ -3600,18 +3579,18 @@ function GoalManageCardEdit(props) {
|
|
|
3600
3579
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
3601
3580
|
}
|
|
3602
3581
|
),
|
|
3603
|
-
/* @__PURE__ */ (0,
|
|
3582
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
3604
3583
|
] })
|
|
3605
3584
|
] }) });
|
|
3606
3585
|
}
|
|
3607
3586
|
|
|
3608
3587
|
// src/app/platform/session-card.tsx
|
|
3609
|
-
var
|
|
3588
|
+
var import_react33 = require("react");
|
|
3610
3589
|
var import_date_fns6 = require("date-fns");
|
|
3611
3590
|
|
|
3612
3591
|
// src/app/platform/edit-coaching-time.tsx
|
|
3613
|
-
var
|
|
3614
|
-
var
|
|
3592
|
+
var import_react31 = require("react");
|
|
3593
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3615
3594
|
var getValueFromDefaultValue = (args) => {
|
|
3616
3595
|
return {
|
|
3617
3596
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -3631,14 +3610,14 @@ var getDateFromValue = (date, time) => {
|
|
|
3631
3610
|
};
|
|
3632
3611
|
function EditCoachingTime(props) {
|
|
3633
3612
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
3634
|
-
const [values, setValues] = (0,
|
|
3613
|
+
const [values, setValues] = (0, import_react31.useState)(() => {
|
|
3635
3614
|
return getValueFromDefaultValue({
|
|
3636
3615
|
startAt: defaultStartAt,
|
|
3637
3616
|
endAt: defaultEndAt
|
|
3638
3617
|
});
|
|
3639
3618
|
});
|
|
3640
|
-
const [timeError, setTimeError] = (0,
|
|
3641
|
-
const checkTimeError = (0,
|
|
3619
|
+
const [timeError, setTimeError] = (0, import_react31.useState)("");
|
|
3620
|
+
const checkTimeError = (0, import_react31.useCallback)(
|
|
3642
3621
|
(startTime, endTime) => {
|
|
3643
3622
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
3644
3623
|
if (error) {
|
|
@@ -3649,7 +3628,7 @@ function EditCoachingTime(props) {
|
|
|
3649
3628
|
},
|
|
3650
3629
|
[]
|
|
3651
3630
|
);
|
|
3652
|
-
const onChangeStartTime = (0,
|
|
3631
|
+
const onChangeStartTime = (0, import_react31.useCallback)(
|
|
3653
3632
|
(v) => {
|
|
3654
3633
|
checkTimeError(v, values.endTime);
|
|
3655
3634
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3658,7 +3637,7 @@ function EditCoachingTime(props) {
|
|
|
3658
3637
|
},
|
|
3659
3638
|
[checkTimeError, values.endTime]
|
|
3660
3639
|
);
|
|
3661
|
-
const onChangeEndTime = (0,
|
|
3640
|
+
const onChangeEndTime = (0, import_react31.useCallback)(
|
|
3662
3641
|
(v) => {
|
|
3663
3642
|
checkTimeError(values.startTime, v);
|
|
3664
3643
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3667,12 +3646,12 @@ function EditCoachingTime(props) {
|
|
|
3667
3646
|
},
|
|
3668
3647
|
[checkTimeError, values.startTime]
|
|
3669
3648
|
);
|
|
3670
|
-
const onChangeDate = (0,
|
|
3649
|
+
const onChangeDate = (0, import_react31.useCallback)((date) => {
|
|
3671
3650
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
3672
3651
|
date
|
|
3673
3652
|
}));
|
|
3674
3653
|
}, []);
|
|
3675
|
-
const onClickSave = (0,
|
|
3654
|
+
const onClickSave = (0, import_react31.useCallback)(() => {
|
|
3676
3655
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
3677
3656
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
3678
3657
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -3681,10 +3660,10 @@ function EditCoachingTime(props) {
|
|
|
3681
3660
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
3682
3661
|
}
|
|
3683
3662
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
3684
|
-
return /* @__PURE__ */ (0,
|
|
3685
|
-
/* @__PURE__ */ (0,
|
|
3686
|
-
/* @__PURE__ */ (0,
|
|
3687
|
-
/* @__PURE__ */ (0,
|
|
3663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Root, { children: [
|
|
3664
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Field, { name: "date", children: [
|
|
3665
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
3666
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3688
3667
|
DatePickerButton,
|
|
3689
3668
|
{
|
|
3690
3669
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -3694,7 +3673,7 @@ function EditCoachingTime(props) {
|
|
|
3694
3673
|
}
|
|
3695
3674
|
)
|
|
3696
3675
|
] }),
|
|
3697
|
-
/* @__PURE__ */ (0,
|
|
3676
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3698
3677
|
import_themes23.Grid,
|
|
3699
3678
|
{
|
|
3700
3679
|
align: "center",
|
|
@@ -3709,10 +3688,10 @@ function EditCoachingTime(props) {
|
|
|
3709
3688
|
mt: "5",
|
|
3710
3689
|
width: "100%",
|
|
3711
3690
|
children: [
|
|
3712
|
-
/* @__PURE__ */ (0,
|
|
3713
|
-
/* @__PURE__ */ (0,
|
|
3714
|
-
/* @__PURE__ */ (0,
|
|
3715
|
-
/* @__PURE__ */ (0,
|
|
3691
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
3692
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", {}),
|
|
3693
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
3694
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3716
3695
|
TimeSelect,
|
|
3717
3696
|
{
|
|
3718
3697
|
onValueChange: onChangeStartTime,
|
|
@@ -3720,8 +3699,8 @@ function EditCoachingTime(props) {
|
|
|
3720
3699
|
value: values.startTime
|
|
3721
3700
|
}
|
|
3722
3701
|
),
|
|
3723
|
-
/* @__PURE__ */ (0,
|
|
3724
|
-
/* @__PURE__ */ (0,
|
|
3702
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes39.Separator, {}) }),
|
|
3703
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3725
3704
|
TimeSelect,
|
|
3726
3705
|
{
|
|
3727
3706
|
onValueChange: onChangeEndTime,
|
|
@@ -3729,36 +3708,36 @@ function EditCoachingTime(props) {
|
|
|
3729
3708
|
value: values.endTime
|
|
3730
3709
|
}
|
|
3731
3710
|
),
|
|
3732
|
-
/* @__PURE__ */ (0,
|
|
3711
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
3733
3712
|
]
|
|
3734
3713
|
}
|
|
3735
3714
|
),
|
|
3736
|
-
/* @__PURE__ */ (0,
|
|
3737
|
-
/* @__PURE__ */ (0,
|
|
3738
|
-
/* @__PURE__ */ (0,
|
|
3715
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
3739
3718
|
] })
|
|
3740
3719
|
] }) });
|
|
3741
3720
|
}
|
|
3742
3721
|
|
|
3743
3722
|
// src/app/platform/edit-service-type.tsx
|
|
3744
|
-
var
|
|
3723
|
+
var import_react32 = require("react");
|
|
3745
3724
|
|
|
3746
3725
|
// src/app/platform/on-offline-radio-card.tsx
|
|
3747
3726
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
3748
|
-
var
|
|
3727
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3749
3728
|
var SERVICE_TYPE = {
|
|
3750
3729
|
onlineCoaching: "onlineCoaching",
|
|
3751
3730
|
offlineCoaching: "offlineCoaching"
|
|
3752
3731
|
};
|
|
3753
3732
|
var breakpoint = "sm";
|
|
3754
3733
|
function HideSmallBox(props) {
|
|
3755
|
-
return /* @__PURE__ */ (0,
|
|
3734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
3756
3735
|
}
|
|
3757
3736
|
function OnOfflineRadioCard(props) {
|
|
3758
3737
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
3759
3738
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
3760
3739
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
3761
|
-
return /* @__PURE__ */ (0,
|
|
3740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3762
3741
|
RadioButtonCard.Root,
|
|
3763
3742
|
__spreadProps(__spreadValues({
|
|
3764
3743
|
RadioWrapper: Wrapper,
|
|
@@ -3767,13 +3746,13 @@ function OnOfflineRadioCard(props) {
|
|
|
3767
3746
|
justify
|
|
3768
3747
|
}, props), {
|
|
3769
3748
|
children: [
|
|
3770
|
-
/* @__PURE__ */ (0,
|
|
3771
|
-
/* @__PURE__ */ (0,
|
|
3772
|
-
/* @__PURE__ */ (0,
|
|
3749
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_icons9.GlobeIcon, {}) }),
|
|
3751
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
3773
3752
|
] }) }),
|
|
3774
|
-
/* @__PURE__ */ (0,
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
3776
|
-
/* @__PURE__ */ (0,
|
|
3753
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3754
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_icons9.BackpackIcon, {}) }),
|
|
3755
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
3777
3756
|
] }) })
|
|
3778
3757
|
]
|
|
3779
3758
|
})
|
|
@@ -3781,18 +3760,18 @@ function OnOfflineRadioCard(props) {
|
|
|
3781
3760
|
}
|
|
3782
3761
|
|
|
3783
3762
|
// src/app/platform/edit-service-type.tsx
|
|
3784
|
-
var
|
|
3763
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3785
3764
|
function EditServiceType(props) {
|
|
3786
3765
|
const { defaultServiceType, onClickCancel } = props;
|
|
3787
|
-
const [sessionType, setSessionType] = (0,
|
|
3766
|
+
const [sessionType, setSessionType] = (0, import_react32.useState)(
|
|
3788
3767
|
defaultServiceType
|
|
3789
3768
|
);
|
|
3790
|
-
const onClickSave = (0,
|
|
3769
|
+
const onClickSave = (0, import_react32.useCallback)(() => {
|
|
3791
3770
|
var _a;
|
|
3792
3771
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
3793
3772
|
}, [props, sessionType]);
|
|
3794
|
-
return /* @__PURE__ */ (0,
|
|
3795
|
-
/* @__PURE__ */ (0,
|
|
3773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes6.Box, { children: [
|
|
3774
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3796
3775
|
Typo,
|
|
3797
3776
|
{
|
|
3798
3777
|
as: "p",
|
|
@@ -3802,16 +3781,16 @@ function EditServiceType(props) {
|
|
|
3802
3781
|
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
3803
3782
|
}
|
|
3804
3783
|
),
|
|
3805
|
-
/* @__PURE__ */ (0,
|
|
3806
|
-
/* @__PURE__ */ (0,
|
|
3807
|
-
/* @__PURE__ */ (0,
|
|
3808
|
-
/* @__PURE__ */ (0,
|
|
3784
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
3785
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
3786
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
3787
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
3809
3788
|
] })
|
|
3810
3789
|
] });
|
|
3811
3790
|
}
|
|
3812
3791
|
|
|
3813
3792
|
// src/app/platform/session-card.tsx
|
|
3814
|
-
var
|
|
3793
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3815
3794
|
var preventDefault4 = (e) => {
|
|
3816
3795
|
e.preventDefault();
|
|
3817
3796
|
};
|
|
@@ -3841,34 +3820,34 @@ function SessionCard(props) {
|
|
|
3841
3820
|
"endAt",
|
|
3842
3821
|
"sessionType"
|
|
3843
3822
|
]);
|
|
3844
|
-
const renderEditButton = (0,
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
3823
|
+
const renderEditButton = (0, import_react33.useCallback)(() => {
|
|
3824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
3846
3825
|
}, []);
|
|
3847
|
-
const sessionTimeStr = (0,
|
|
3826
|
+
const sessionTimeStr = (0, import_react33.useMemo)(() => {
|
|
3848
3827
|
if (!startAt || !endAt)
|
|
3849
3828
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
3850
3829
|
return `${(0, import_date_fns6.format)(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${(0, import_date_fns6.format)(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
3851
3830
|
}, [startAt, endAt]);
|
|
3852
|
-
return /* @__PURE__ */ (0,
|
|
3853
|
-
/* @__PURE__ */ (0,
|
|
3854
|
-
/* @__PURE__ */ (0,
|
|
3831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
3832
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
3833
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
3855
3834
|
TitleExtra,
|
|
3856
|
-
error ? /* @__PURE__ */ (0,
|
|
3835
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
3857
3836
|
] }),
|
|
3858
|
-
/* @__PURE__ */ (0,
|
|
3859
|
-
/* @__PURE__ */ (0,
|
|
3860
|
-
/* @__PURE__ */ (0,
|
|
3861
|
-
/* @__PURE__ */ (0,
|
|
3837
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes15.DataList.Root, { children: [
|
|
3838
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3839
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
3840
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes15.DataList.Value, { children: [
|
|
3862
3841
|
sessionTimeStr,
|
|
3863
|
-
editable ? /* @__PURE__ */ (0,
|
|
3864
|
-
/* @__PURE__ */ (0,
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3842
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Dialog.Root, { children: [
|
|
3843
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3866
3845
|
Dialog.Content,
|
|
3867
3846
|
{
|
|
3868
3847
|
onOpenAutoFocus: preventDefault4,
|
|
3869
3848
|
style: { overflow: "visible" },
|
|
3870
3849
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
3871
|
-
children: /* @__PURE__ */ (0,
|
|
3850
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3872
3851
|
EditCoachingTime,
|
|
3873
3852
|
{
|
|
3874
3853
|
defaultEndAt: endAt,
|
|
@@ -3881,18 +3860,18 @@ function SessionCard(props) {
|
|
|
3881
3860
|
] }) : null
|
|
3882
3861
|
] })
|
|
3883
3862
|
] }),
|
|
3884
|
-
/* @__PURE__ */ (0,
|
|
3885
|
-
/* @__PURE__ */ (0,
|
|
3886
|
-
/* @__PURE__ */ (0,
|
|
3887
|
-
/* @__PURE__ */ (0,
|
|
3863
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes15.DataList.Value, { children: [
|
|
3888
3867
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
3889
|
-
editable ? /* @__PURE__ */ (0,
|
|
3890
|
-
/* @__PURE__ */ (0,
|
|
3891
|
-
/* @__PURE__ */ (0,
|
|
3868
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Dialog.Root, { children: [
|
|
3869
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
3870
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3892
3871
|
Dialog.Content,
|
|
3893
3872
|
{
|
|
3894
3873
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
3895
|
-
children: /* @__PURE__ */ (0,
|
|
3874
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3896
3875
|
EditServiceType,
|
|
3897
3876
|
{
|
|
3898
3877
|
defaultServiceType: sessionType,
|
|
@@ -3904,32 +3883,32 @@ function SessionCard(props) {
|
|
|
3904
3883
|
] }) : null
|
|
3905
3884
|
] })
|
|
3906
3885
|
] }),
|
|
3907
|
-
/* @__PURE__ */ (0,
|
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
3908
3887
|
] })
|
|
3909
3888
|
] })
|
|
3910
3889
|
] }) }));
|
|
3911
3890
|
}
|
|
3912
3891
|
|
|
3913
3892
|
// src/app/platform/coach-question-list.tsx
|
|
3914
|
-
var
|
|
3893
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3915
3894
|
function QuestionItem({ question, answer }) {
|
|
3916
|
-
return /* @__PURE__ */ (0,
|
|
3917
|
-
/* @__PURE__ */ (0,
|
|
3918
|
-
/* @__PURE__ */ (0,
|
|
3895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes6.Box, { children: [
|
|
3896
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
3897
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
3919
3898
|
] }, question);
|
|
3920
3899
|
}
|
|
3921
3900
|
function CoachQuestionList({
|
|
3922
3901
|
questions
|
|
3923
3902
|
}) {
|
|
3924
|
-
return /* @__PURE__ */ (0,
|
|
3925
|
-
return /* @__PURE__ */ (0,
|
|
3903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
3904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
3926
3905
|
}) });
|
|
3927
3906
|
}
|
|
3928
3907
|
|
|
3929
3908
|
// src/app/platform/reservation-card.tsx
|
|
3930
|
-
var
|
|
3909
|
+
var import_react34 = require("react");
|
|
3931
3910
|
var import_date_fns7 = require("date-fns");
|
|
3932
|
-
var
|
|
3911
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3933
3912
|
function ReservationCard(props) {
|
|
3934
3913
|
const {
|
|
3935
3914
|
sessionNumber,
|
|
@@ -3944,30 +3923,30 @@ function ReservationCard(props) {
|
|
|
3944
3923
|
onClickCancel,
|
|
3945
3924
|
onClickCompleteSession
|
|
3946
3925
|
} = props;
|
|
3947
|
-
const [editValues, setEditValues] = (0,
|
|
3926
|
+
const [editValues, setEditValues] = (0, import_react34.useState)({
|
|
3948
3927
|
date: props.defaultTime,
|
|
3949
3928
|
type: props.defaultType
|
|
3950
3929
|
});
|
|
3951
3930
|
const date = readonly ? defaultTime : editValues.date;
|
|
3952
3931
|
const type = readonly ? defaultType : editValues.type;
|
|
3953
3932
|
const time = date && getTimeOption(date);
|
|
3954
|
-
const onClickSave = (0,
|
|
3933
|
+
const onClickSave = (0, import_react34.useCallback)(() => {
|
|
3955
3934
|
var _a;
|
|
3956
3935
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
3957
3936
|
}, [editValues, props]);
|
|
3958
|
-
const onClickReset = (0,
|
|
3937
|
+
const onClickReset = (0, import_react34.useCallback)(() => {
|
|
3959
3938
|
setEditValues({
|
|
3960
3939
|
date: defaultTime,
|
|
3961
3940
|
type: defaultType
|
|
3962
3941
|
});
|
|
3963
3942
|
}, [defaultTime, defaultType]);
|
|
3964
|
-
const ActionButtons = (0,
|
|
3943
|
+
const ActionButtons = (0, import_react34.useMemo)(() => {
|
|
3965
3944
|
if (readonly) {
|
|
3966
|
-
return /* @__PURE__ */ (0,
|
|
3945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
3967
3946
|
}
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
3947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
3969
3948
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
3970
|
-
const onChangeDate = (0,
|
|
3949
|
+
const onChangeDate = (0, import_react34.useCallback)(
|
|
3971
3950
|
(newDate) => {
|
|
3972
3951
|
if (!newDate)
|
|
3973
3952
|
return;
|
|
@@ -3980,14 +3959,14 @@ function ReservationCard(props) {
|
|
|
3980
3959
|
},
|
|
3981
3960
|
[time]
|
|
3982
3961
|
);
|
|
3983
|
-
const onChangeType = (0,
|
|
3962
|
+
const onChangeType = (0, import_react34.useCallback)((newType) => {
|
|
3984
3963
|
setEditValues((prev) => {
|
|
3985
3964
|
return __spreadProps(__spreadValues({}, prev), {
|
|
3986
3965
|
type: newType
|
|
3987
3966
|
});
|
|
3988
3967
|
});
|
|
3989
3968
|
}, []);
|
|
3990
|
-
const onChangeTime = (0,
|
|
3969
|
+
const onChangeTime = (0, import_react34.useCallback)(
|
|
3991
3970
|
(v) => {
|
|
3992
3971
|
const { hour, minute } = parseTimeOption(v);
|
|
3993
3972
|
if (typeof v === "undefined") {
|
|
@@ -4005,7 +3984,7 @@ function ReservationCard(props) {
|
|
|
4005
3984
|
},
|
|
4006
3985
|
[date]
|
|
4007
3986
|
);
|
|
4008
|
-
(0,
|
|
3987
|
+
(0, import_react34.useEffect)(() => {
|
|
4009
3988
|
if (!minTime || !editValues.date || readonly)
|
|
4010
3989
|
return;
|
|
4011
3990
|
if (editValues.date < minTime) {
|
|
@@ -4017,7 +3996,7 @@ function ReservationCard(props) {
|
|
|
4017
3996
|
});
|
|
4018
3997
|
}
|
|
4019
3998
|
}, [editValues, minTime, readonly]);
|
|
4020
|
-
(0,
|
|
3999
|
+
(0, import_react34.useEffect)(() => {
|
|
4021
4000
|
if (!maxTime || !editValues.date || readonly)
|
|
4022
4001
|
return;
|
|
4023
4002
|
if (editValues.date > maxTime) {
|
|
@@ -4029,47 +4008,47 @@ function ReservationCard(props) {
|
|
|
4029
4008
|
});
|
|
4030
4009
|
}
|
|
4031
4010
|
}, [editValues, maxTime, readonly]);
|
|
4032
|
-
return /* @__PURE__ */ (0,
|
|
4011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4033
4012
|
Card,
|
|
4034
4013
|
{
|
|
4035
4014
|
error: Boolean(error),
|
|
4036
4015
|
size: "3",
|
|
4037
4016
|
style: { overflow: "visible", contain: "initial" },
|
|
4038
4017
|
children: [
|
|
4039
|
-
/* @__PURE__ */ (0,
|
|
4040
|
-
/* @__PURE__ */ (0,
|
|
4018
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4041
4020
|
import_themes23.Grid,
|
|
4042
4021
|
{
|
|
4043
4022
|
align: "center",
|
|
4044
4023
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
4045
4024
|
gapY: "2",
|
|
4046
4025
|
children: [
|
|
4047
|
-
/* @__PURE__ */ (0,
|
|
4048
|
-
/* @__PURE__ */ (0,
|
|
4026
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
4027
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Heading2, { variant: "heading4", children: [
|
|
4049
4028
|
customerName || "-",
|
|
4050
4029
|
"\uB2D8 ",
|
|
4051
4030
|
sessionNumber || "-",
|
|
4052
4031
|
"\uD68C\uCC28 \uC138\uC158"
|
|
4053
4032
|
] }),
|
|
4054
|
-
/* @__PURE__ */ (0,
|
|
4033
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
4055
4034
|
] }),
|
|
4056
|
-
error ? /* @__PURE__ */ (0,
|
|
4035
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
4057
4036
|
]
|
|
4058
4037
|
}
|
|
4059
4038
|
),
|
|
4060
|
-
/* @__PURE__ */ (0,
|
|
4039
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
4061
4040
|
] }),
|
|
4062
|
-
/* @__PURE__ */ (0,
|
|
4041
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4063
4042
|
Form.Root,
|
|
4064
4043
|
{
|
|
4065
4044
|
onSubmit: (e) => {
|
|
4066
4045
|
e.preventDefault();
|
|
4067
4046
|
},
|
|
4068
|
-
children: /* @__PURE__ */ (0,
|
|
4069
|
-
/* @__PURE__ */ (0,
|
|
4070
|
-
/* @__PURE__ */ (0,
|
|
4071
|
-
/* @__PURE__ */ (0,
|
|
4072
|
-
/* @__PURE__ */ (0,
|
|
4047
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Form.Field, { name: "date", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Form.Label, { asChild: true, children: [
|
|
4049
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes23.Grid, { columns: "1fr auto", gap: "4", children: [
|
|
4051
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4073
4052
|
DatePickerButton,
|
|
4074
4053
|
{
|
|
4075
4054
|
disabled: readonly,
|
|
@@ -4081,7 +4060,7 @@ function ReservationCard(props) {
|
|
|
4081
4060
|
size: "large"
|
|
4082
4061
|
}
|
|
4083
4062
|
),
|
|
4084
|
-
/* @__PURE__ */ (0,
|
|
4063
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4085
4064
|
TimeSelect,
|
|
4086
4065
|
{
|
|
4087
4066
|
disabled: readonly,
|
|
@@ -4095,9 +4074,9 @@ function ReservationCard(props) {
|
|
|
4095
4074
|
)
|
|
4096
4075
|
] })
|
|
4097
4076
|
] }) }),
|
|
4098
|
-
/* @__PURE__ */ (0,
|
|
4099
|
-
/* @__PURE__ */ (0,
|
|
4100
|
-
/* @__PURE__ */ (0,
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Form.Field, { name: "type", children: [
|
|
4078
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Form.Label, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }) }),
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Form.Control, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4101
4080
|
OnOfflineRadioCard,
|
|
4102
4081
|
{
|
|
4103
4082
|
disabled: readonly,
|
|
@@ -4107,8 +4086,8 @@ function ReservationCard(props) {
|
|
|
4107
4086
|
}
|
|
4108
4087
|
) })
|
|
4109
4088
|
] }),
|
|
4110
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
4111
|
-
/* @__PURE__ */ (0,
|
|
4089
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4112
4091
|
Button,
|
|
4113
4092
|
{
|
|
4114
4093
|
color: "gray",
|
|
@@ -4118,12 +4097,12 @@ function ReservationCard(props) {
|
|
|
4118
4097
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
4119
4098
|
}
|
|
4120
4099
|
),
|
|
4121
|
-
/* @__PURE__ */ (0,
|
|
4100
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
4122
4101
|
] })
|
|
4123
4102
|
] })
|
|
4124
4103
|
}
|
|
4125
4104
|
) }),
|
|
4126
|
-
readonly ? /* @__PURE__ */ (0,
|
|
4105
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4127
4106
|
import_themes6.Box,
|
|
4128
4107
|
{
|
|
4129
4108
|
mt: "5",
|
|
@@ -4131,14 +4110,14 @@ function ReservationCard(props) {
|
|
|
4131
4110
|
py: "4",
|
|
4132
4111
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
4133
4112
|
width: "100%",
|
|
4134
|
-
children: /* @__PURE__ */ (0,
|
|
4135
|
-
/* @__PURE__ */ (0,
|
|
4113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
4114
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Typo, { children: [
|
|
4136
4115
|
sessionNumber || "-",
|
|
4137
4116
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
4138
4117
|
] }),
|
|
4139
|
-
/* @__PURE__ */ (0,
|
|
4118
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
4140
4119
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
4141
|
-
/* @__PURE__ */ (0,
|
|
4120
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
4142
4121
|
] })
|
|
4143
4122
|
] })
|
|
4144
4123
|
}
|
|
@@ -4149,22 +4128,22 @@ function ReservationCard(props) {
|
|
|
4149
4128
|
}
|
|
4150
4129
|
|
|
4151
4130
|
// src/app/platform/session-review-simple-read.tsx
|
|
4152
|
-
var
|
|
4153
|
-
var
|
|
4131
|
+
var import_react35 = require("react");
|
|
4132
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4154
4133
|
function SubTitleWrapper({
|
|
4155
4134
|
children,
|
|
4156
4135
|
title
|
|
4157
4136
|
}) {
|
|
4158
|
-
return /* @__PURE__ */ (0,
|
|
4159
|
-
/* @__PURE__ */ (0,
|
|
4160
|
-
/* @__PURE__ */ (0,
|
|
4137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes6.Box, { children })
|
|
4161
4140
|
] });
|
|
4162
4141
|
}
|
|
4163
4142
|
function SessionReviewSimpleRead({
|
|
4164
4143
|
helpfulness,
|
|
4165
4144
|
review
|
|
4166
4145
|
}) {
|
|
4167
|
-
const helpfulnessMeta = (0,
|
|
4146
|
+
const helpfulnessMeta = (0, import_react35.useMemo)(() => {
|
|
4168
4147
|
if (helpfulness) {
|
|
4169
4148
|
return {
|
|
4170
4149
|
text: "\uB124",
|
|
@@ -4182,22 +4161,22 @@ function SessionReviewSimpleRead({
|
|
|
4182
4161
|
color: "error"
|
|
4183
4162
|
};
|
|
4184
4163
|
}, [helpfulness]);
|
|
4185
|
-
return /* @__PURE__ */ (0,
|
|
4186
|
-
/* @__PURE__ */ (0,
|
|
4187
|
-
/* @__PURE__ */ (0,
|
|
4164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
4165
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
4166
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
4188
4167
|
] }) });
|
|
4189
4168
|
}
|
|
4190
4169
|
|
|
4191
4170
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
4192
|
-
var
|
|
4171
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4193
4172
|
function SectionWrapper({
|
|
4194
4173
|
title,
|
|
4195
4174
|
children
|
|
4196
4175
|
}) {
|
|
4197
|
-
return /* @__PURE__ */ (0,
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4199
|
-
/* @__PURE__ */ (0,
|
|
4200
|
-
/* @__PURE__ */ (0,
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes6.Box, { children: [
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
4179
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes39.Separator, { size: "4" })
|
|
4201
4180
|
] }),
|
|
4202
4181
|
children
|
|
4203
4182
|
] });
|
|
@@ -4207,22 +4186,22 @@ function SessionUserInfoDetail({
|
|
|
4207
4186
|
session,
|
|
4208
4187
|
onClickCopy
|
|
4209
4188
|
}) {
|
|
4210
|
-
return /* @__PURE__ */ (0,
|
|
4211
|
-
/* @__PURE__ */ (0,
|
|
4189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
4190
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
4212
4191
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
4213
4192
|
) }) }),
|
|
4214
|
-
/* @__PURE__ */ (0,
|
|
4193
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
4215
4194
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
4216
4195
|
) }) })
|
|
4217
4196
|
] });
|
|
4218
4197
|
}
|
|
4219
4198
|
|
|
4220
4199
|
// src/app/platform/report-card.tsx
|
|
4221
|
-
var
|
|
4222
|
-
var
|
|
4200
|
+
var import_react36 = require("react");
|
|
4201
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4223
4202
|
function ReportCard(props) {
|
|
4224
4203
|
const { title, file, status } = props;
|
|
4225
|
-
const onClickDownload = (0,
|
|
4204
|
+
const onClickDownload = (0, import_react36.useCallback)(() => {
|
|
4226
4205
|
if (!file)
|
|
4227
4206
|
return;
|
|
4228
4207
|
const { url, fileName } = file;
|
|
@@ -4235,21 +4214,21 @@ function ReportCard(props) {
|
|
|
4235
4214
|
document.body.removeChild(link);
|
|
4236
4215
|
}, [file]);
|
|
4237
4216
|
if (status) {
|
|
4238
|
-
return /* @__PURE__ */ (0,
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
4218
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4240
4219
|
status
|
|
4241
4220
|
] }) });
|
|
4242
4221
|
}
|
|
4243
|
-
return /* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4244
4223
|
import_themes22.Flex,
|
|
4245
4224
|
{
|
|
4246
4225
|
direction: { initial: "column", xs: "row" },
|
|
4247
4226
|
gapY: "2",
|
|
4248
4227
|
justify: "between",
|
|
4249
4228
|
children: [
|
|
4250
|
-
/* @__PURE__ */ (0,
|
|
4251
|
-
/* @__PURE__ */ (0,
|
|
4252
|
-
/* @__PURE__ */ (0,
|
|
4229
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4230
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
4231
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
4253
4232
|
file == null ? void 0 : file.buttonName
|
|
4254
4233
|
] }) }, file == null ? void 0 : file.url)
|
|
4255
4234
|
]
|
|
@@ -4258,9 +4237,9 @@ function ReportCard(props) {
|
|
|
4258
4237
|
}
|
|
4259
4238
|
|
|
4260
4239
|
// src/app/platform/contents-card.tsx
|
|
4261
|
-
var
|
|
4262
|
-
var
|
|
4263
|
-
var ContentsCard = (0,
|
|
4240
|
+
var import_react37 = require("react");
|
|
4241
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4242
|
+
var ContentsCard = (0, import_react37.forwardRef)(
|
|
4264
4243
|
({
|
|
4265
4244
|
title,
|
|
4266
4245
|
description,
|
|
@@ -4270,7 +4249,7 @@ var ContentsCard = (0, import_react38.forwardRef)(
|
|
|
4270
4249
|
onClickCard,
|
|
4271
4250
|
isLoading = false
|
|
4272
4251
|
}, ref) => {
|
|
4273
|
-
return /* @__PURE__ */ (0,
|
|
4252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4274
4253
|
Card,
|
|
4275
4254
|
{
|
|
4276
4255
|
onClick: onClickCard,
|
|
@@ -4283,7 +4262,7 @@ var ContentsCard = (0, import_react38.forwardRef)(
|
|
|
4283
4262
|
maxHeight: "450px"
|
|
4284
4263
|
},
|
|
4285
4264
|
children: [
|
|
4286
|
-
/* @__PURE__ */ (0,
|
|
4265
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4287
4266
|
import_themes6.Box,
|
|
4288
4267
|
{
|
|
4289
4268
|
height: "210px",
|
|
@@ -4295,12 +4274,12 @@ var ContentsCard = (0, import_react38.forwardRef)(
|
|
|
4295
4274
|
width: "100%"
|
|
4296
4275
|
}
|
|
4297
4276
|
) }) }),
|
|
4298
|
-
/* @__PURE__ */ (0,
|
|
4299
|
-
/* @__PURE__ */ (0,
|
|
4300
|
-
/* @__PURE__ */ (0,
|
|
4301
|
-
/* @__PURE__ */ (0,
|
|
4277
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
4278
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes6.Box, { children: [
|
|
4279
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
4280
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
4302
4281
|
] }),
|
|
4303
|
-
/* @__PURE__ */ (0,
|
|
4282
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4304
4283
|
import_themes23.Grid,
|
|
4305
4284
|
{
|
|
4306
4285
|
align: "center",
|
|
@@ -4310,10 +4289,10 @@ var ContentsCard = (0, import_react38.forwardRef)(
|
|
|
4310
4289
|
style: { marginTop: "auto" },
|
|
4311
4290
|
width: "100%",
|
|
4312
4291
|
children: [
|
|
4313
|
-
/* @__PURE__ */ (0,
|
|
4314
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
4315
|
-
/* @__PURE__ */ (0,
|
|
4316
|
-
/* @__PURE__ */ (0,
|
|
4292
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
4293
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(DropdownMenu.Root, { children: [
|
|
4294
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
4295
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4317
4296
|
DropdownMenu.Item,
|
|
4318
4297
|
{
|
|
4319
4298
|
onClick: (e) => {
|
|
@@ -4337,7 +4316,7 @@ var ContentsCard = (0, import_react38.forwardRef)(
|
|
|
4337
4316
|
ContentsCard.displayName = "ContentsCard";
|
|
4338
4317
|
|
|
4339
4318
|
// src/app/platform/curriculum-card.tsx
|
|
4340
|
-
var
|
|
4319
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4341
4320
|
function CurriculumCard(props) {
|
|
4342
4321
|
const {
|
|
4343
4322
|
title,
|
|
@@ -4348,7 +4327,7 @@ function CurriculumCard(props) {
|
|
|
4348
4327
|
bgColor,
|
|
4349
4328
|
onClick
|
|
4350
4329
|
} = props;
|
|
4351
|
-
return /* @__PURE__ */ (0,
|
|
4330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4352
4331
|
import_themes23.Grid,
|
|
4353
4332
|
{
|
|
4354
4333
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -4357,7 +4336,7 @@ function CurriculumCard(props) {
|
|
|
4357
4336
|
onClick,
|
|
4358
4337
|
style: { cursor: "pointer" },
|
|
4359
4338
|
children: [
|
|
4360
|
-
/* @__PURE__ */ (0,
|
|
4339
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4361
4340
|
import_themes6.Box,
|
|
4362
4341
|
{
|
|
4363
4342
|
height: "165px",
|
|
@@ -4372,32 +4351,32 @@ function CurriculumCard(props) {
|
|
|
4372
4351
|
backgroundAttachment: "local"
|
|
4373
4352
|
},
|
|
4374
4353
|
width: "100%",
|
|
4375
|
-
children: /* @__PURE__ */ (0,
|
|
4354
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
4376
4355
|
}
|
|
4377
4356
|
),
|
|
4378
|
-
/* @__PURE__ */ (0,
|
|
4379
|
-
/* @__PURE__ */ (0,
|
|
4380
|
-
/* @__PURE__ */ (0,
|
|
4381
|
-
/* @__PURE__ */ (0,
|
|
4357
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
4358
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
4359
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
4360
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4382
4361
|
Badge,
|
|
4383
4362
|
{
|
|
4384
4363
|
size: "medium",
|
|
4385
4364
|
style: { justifySelf: "flex-start" },
|
|
4386
4365
|
variant: "outline",
|
|
4387
|
-
children: /* @__PURE__ */ (0,
|
|
4388
|
-
/* @__PURE__ */ (0,
|
|
4366
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
4367
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons2.TimerIcon, {}),
|
|
4389
4368
|
runningTime
|
|
4390
4369
|
] })
|
|
4391
4370
|
}
|
|
4392
4371
|
)
|
|
4393
4372
|
] }),
|
|
4394
|
-
/* @__PURE__ */ (0,
|
|
4395
|
-
return /* @__PURE__ */ (0,
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
4374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
4396
4375
|
}) }) }),
|
|
4397
|
-
/* @__PURE__ */ (0,
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4399
|
-
/* @__PURE__ */ (0,
|
|
4400
|
-
/* @__PURE__ */ (0,
|
|
4376
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4377
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
4378
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
4379
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
4401
4380
|
] })
|
|
4402
4381
|
] })
|
|
4403
4382
|
]
|
|
@@ -4552,9 +4531,6 @@ function CurriculumCard(props) {
|
|
|
4552
4531
|
TimerIcon,
|
|
4553
4532
|
ToastContainer,
|
|
4554
4533
|
Tooltip,
|
|
4555
|
-
TooltipContent,
|
|
4556
|
-
TooltipProvider,
|
|
4557
|
-
TooltipTrigger,
|
|
4558
4534
|
TrashIcon,
|
|
4559
4535
|
TriangleArrowDownIcon,
|
|
4560
4536
|
TriangleArrowUpIcon,
|