@tipp/ui 1.5.9 → 1.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +143 -110
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +57 -57
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +26 -26
- package/dist/app/platform/edit-coaching-time.cjs +27 -3
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +32 -32
- package/dist/app/platform/edit-service-type.cjs +1 -0
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +32 -32
- package/dist/app/platform/goal-manage-card-edit.cjs +3 -2
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +32 -32
- package/dist/app/platform/goal-manage-card-read.cjs +9 -7
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +26 -26
- package/dist/app/platform/on-offline-radio-card.cjs +1 -0
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +31 -31
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +26 -26
- package/dist/app/platform/reservation-card.cjs +60 -6
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.d.cts +2 -0
- package/dist/app/platform/reservation-card.d.ts +2 -0
- package/dist/app/platform/reservation-card.js +32 -32
- package/dist/app/platform/session-card.cjs +29 -5
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +34 -34
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +9 -33
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +3 -10
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.d.cts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.d.ts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +3 -10
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.d.cts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.d.ts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +3 -11
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.d.cts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.d.ts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +26 -26
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +27 -27
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.d.cts +1 -0
- package/dist/app/platform/userInfos/utils.d.ts +1 -0
- package/dist/app/platform/userInfos/utils.js +26 -26
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/drawer.cjs +38 -9
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +2 -1
- package/dist/atoms/index.cjs +1 -0
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +64 -64
- package/dist/chunk-2MNNK576.js +52 -0
- package/dist/chunk-2MNNK576.js.map +1 -0
- package/dist/chunk-4DHKHART.js +177 -0
- package/dist/chunk-4DHKHART.js.map +1 -0
- package/dist/chunk-4VVKVY67.js +45 -0
- package/dist/chunk-4VVKVY67.js.map +1 -0
- package/dist/chunk-55BS56C7.js +165 -0
- package/dist/chunk-55BS56C7.js.map +1 -0
- package/dist/chunk-5LZPM7LK.js +244 -0
- package/dist/chunk-5LZPM7LK.js.map +1 -0
- package/dist/chunk-5QXQPRW7.js +89 -0
- package/dist/chunk-5QXQPRW7.js.map +1 -0
- package/dist/chunk-5UQKNYGN.js +145 -0
- package/dist/chunk-5UQKNYGN.js.map +1 -0
- package/dist/chunk-6LNT56PI.js +30 -0
- package/dist/chunk-6LNT56PI.js.map +1 -0
- package/dist/chunk-6NK4TENV.js +244 -0
- package/dist/chunk-6NK4TENV.js.map +1 -0
- package/dist/chunk-7HTPOEYY.js +60 -0
- package/dist/chunk-7HTPOEYY.js.map +1 -0
- package/dist/chunk-7QSHSKGH.js +250 -0
- package/dist/chunk-7QSHSKGH.js.map +1 -0
- package/dist/chunk-7XPVJ35J.js +177 -0
- package/dist/chunk-7XPVJ35J.js.map +1 -0
- package/dist/chunk-AEM57IUZ.js +145 -0
- package/dist/chunk-AEM57IUZ.js.map +1 -0
- package/dist/chunk-BN23HSLB.js +145 -0
- package/dist/chunk-BN23HSLB.js.map +1 -0
- package/dist/chunk-BSDY5S2S.js +177 -0
- package/dist/chunk-BSDY5S2S.js.map +1 -0
- package/dist/chunk-BTTNE5ED.js +177 -0
- package/dist/chunk-BTTNE5ED.js.map +1 -0
- package/dist/chunk-BXSGWGPX.js +51 -0
- package/dist/chunk-BXSGWGPX.js.map +1 -0
- package/dist/chunk-DEC74YZM.js +277 -0
- package/dist/chunk-DEC74YZM.js.map +1 -0
- package/dist/chunk-EDGXK4S3.js +30 -0
- package/dist/chunk-EDGXK4S3.js.map +1 -0
- package/dist/chunk-FLHTCZJ6.js +145 -0
- package/dist/chunk-FLHTCZJ6.js.map +1 -0
- package/dist/chunk-FYMXBVJN.js +163 -0
- package/dist/chunk-FYMXBVJN.js.map +1 -0
- package/dist/chunk-GCYWN5DT.js +145 -0
- package/dist/chunk-GCYWN5DT.js.map +1 -0
- package/dist/chunk-GWJPOXZB.js +145 -0
- package/dist/chunk-GWJPOXZB.js.map +1 -0
- package/dist/chunk-GWV7ZQS7.js +165 -0
- package/dist/chunk-GWV7ZQS7.js.map +1 -0
- package/dist/chunk-HVKX7LGP.js +63 -0
- package/dist/chunk-HVKX7LGP.js.map +1 -0
- package/dist/chunk-HW5TXRPH.js +51 -0
- package/dist/chunk-HW5TXRPH.js.map +1 -0
- package/dist/chunk-HXUZQJQY.js +60 -0
- package/dist/chunk-HXUZQJQY.js.map +1 -0
- package/dist/chunk-I5NKXTH5.js +63 -0
- package/dist/chunk-I5NKXTH5.js.map +1 -0
- package/dist/chunk-JHZGOPC4.js +104 -0
- package/dist/chunk-JHZGOPC4.js.map +1 -0
- package/dist/chunk-KEVIRRIU.js +250 -0
- package/dist/chunk-KEVIRRIU.js.map +1 -0
- package/dist/chunk-LSZ6443S.js +250 -0
- package/dist/chunk-LSZ6443S.js.map +1 -0
- package/dist/chunk-MEVO4WQM.js +163 -0
- package/dist/chunk-MEVO4WQM.js.map +1 -0
- package/dist/chunk-NCAJKLJL.js +277 -0
- package/dist/chunk-NCAJKLJL.js.map +1 -0
- package/dist/chunk-NTS2GASQ.js +30 -0
- package/dist/chunk-NTS2GASQ.js.map +1 -0
- package/dist/chunk-OCCR3BYX.js +145 -0
- package/dist/chunk-OCCR3BYX.js.map +1 -0
- package/dist/chunk-OES4ONRT.js +244 -0
- package/dist/chunk-OES4ONRT.js.map +1 -0
- package/dist/chunk-P3IQELLW.js +103 -0
- package/dist/chunk-P3IQELLW.js.map +1 -0
- package/dist/chunk-P7MEVIA2.js +177 -0
- package/dist/chunk-P7MEVIA2.js.map +1 -0
- package/dist/chunk-PM2MEPSY.js +145 -0
- package/dist/chunk-PM2MEPSY.js.map +1 -0
- package/dist/chunk-Q4B4TVV6.js +52 -0
- package/dist/chunk-Q4B4TVV6.js.map +1 -0
- package/dist/chunk-Q76YER7W.js +177 -0
- package/dist/chunk-Q76YER7W.js.map +1 -0
- package/dist/chunk-QLCKJ5EX.js +145 -0
- package/dist/chunk-QLCKJ5EX.js.map +1 -0
- package/dist/chunk-QW3Q5PDH.js +250 -0
- package/dist/chunk-QW3Q5PDH.js.map +1 -0
- package/dist/chunk-S3F7WBI2.js +45 -0
- package/dist/chunk-S3F7WBI2.js.map +1 -0
- package/dist/chunk-SDY76VWM.js +145 -0
- package/dist/chunk-SDY76VWM.js.map +1 -0
- package/dist/chunk-SNL4BT3L.js +249 -0
- package/dist/chunk-SNL4BT3L.js.map +1 -0
- package/dist/chunk-T24Z37LZ.js +51 -0
- package/dist/chunk-T24Z37LZ.js.map +1 -0
- package/dist/chunk-TU453YST.js +63 -0
- package/dist/chunk-TU453YST.js.map +1 -0
- package/dist/chunk-UTBSTESQ.js +30 -0
- package/dist/chunk-UTBSTESQ.js.map +1 -0
- package/dist/chunk-UTZELZYS.js +177 -0
- package/dist/chunk-UTZELZYS.js.map +1 -0
- package/dist/chunk-VIOAD7BY.js +145 -0
- package/dist/chunk-VIOAD7BY.js.map +1 -0
- package/dist/chunk-VKXZLSWB.js +249 -0
- package/dist/chunk-VKXZLSWB.js.map +1 -0
- package/dist/chunk-VVGQQQTB.js +145 -0
- package/dist/chunk-VVGQQQTB.js.map +1 -0
- package/dist/chunk-VVZ6M3AZ.js +145 -0
- package/dist/chunk-VVZ6M3AZ.js.map +1 -0
- package/dist/chunk-WNSDISYV.js +54 -0
- package/dist/chunk-WNSDISYV.js.map +1 -0
- package/dist/chunk-YCKBTTAJ.js +177 -0
- package/dist/chunk-YCKBTTAJ.js.map +1 -0
- package/dist/chunk-YDPVHTY2.js +163 -0
- package/dist/chunk-YDPVHTY2.js.map +1 -0
- package/dist/index.cjs +128 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +103 -103
- package/dist/layouts/index.cjs.map +1 -1
- package/dist/layouts/index.js +25 -25
- package/dist/layouts/response-display.cjs.map +1 -1
- package/dist/layouts/response-display.js +25 -25
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +25 -25
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +25 -25
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +25 -25
- package/dist/molecules/index.cjs +26 -3
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +31 -31
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +25 -25
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +25 -25
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +26 -26
- package/dist/molecules/time-select.cjs +26 -3
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.d.cts +6 -1
- package/dist/molecules/time-select.d.ts +6 -1
- package/dist/molecules/time-select.js +26 -26
- package/package.json +1 -1
- package/src/app/platform/edit-coaching-time.tsx +1 -0
- package/src/app/platform/goal-manage-card-read.tsx +10 -7
- package/src/app/platform/reservation-card.tsx +39 -1
- package/src/app/platform/userInfos/coaching-customer-info/large.tsx +3 -15
- package/src/app/platform/userInfos/coaching-customer-info/medium.tsx +3 -15
- package/src/app/platform/userInfos/coaching-customer-info/small.tsx +4 -18
- package/src/app/platform/userInfos/utils.tsx +1 -0
- package/src/atoms/drawer.tsx +2 -0
- package/src/molecules/time-select.tsx +37 -6
package/dist/app/index.cjs
CHANGED
|
@@ -936,20 +936,12 @@ function BulletText(_a) {
|
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
939
|
-
var import_react20 = require("react");
|
|
940
|
-
var import_biz_utils = require("@tipp/biz-utils");
|
|
941
939
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
942
940
|
function CoachingCustomerInfoSmall({
|
|
943
941
|
customer,
|
|
944
|
-
|
|
945
|
-
|
|
942
|
+
children,
|
|
943
|
+
badge
|
|
946
944
|
}) {
|
|
947
|
-
const badgeColor = (0, import_react20.useMemo)(() => {
|
|
948
|
-
return (0, import_biz_utils.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
949
|
-
}, [session == null ? void 0 : session.state]);
|
|
950
|
-
const sessionText = (0, import_react20.useMemo)(() => {
|
|
951
|
-
return (0, import_biz_utils.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
952
|
-
}, [session == null ? void 0 : session.state]);
|
|
953
945
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
954
946
|
import_themes22.Flex,
|
|
955
947
|
{
|
|
@@ -960,7 +952,7 @@ function CoachingCustomerInfoSmall({
|
|
|
960
952
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
961
953
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
962
954
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
963
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children:
|
|
955
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
964
956
|
] }) }),
|
|
965
957
|
children
|
|
966
958
|
]
|
|
@@ -968,10 +960,6 @@ function CoachingCustomerInfoSmall({
|
|
|
968
960
|
);
|
|
969
961
|
}
|
|
970
962
|
|
|
971
|
-
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
972
|
-
var import_react21 = require("react");
|
|
973
|
-
var import_biz_utils2 = require("@tipp/biz-utils");
|
|
974
|
-
|
|
975
963
|
// src/app/platform/userInfos/utils.tsx
|
|
976
964
|
var import_date_fns = require("date-fns");
|
|
977
965
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
@@ -1062,19 +1050,14 @@ var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
|
1062
1050
|
function CoachingCustomerInfoMedium({
|
|
1063
1051
|
customer,
|
|
1064
1052
|
session,
|
|
1065
|
-
children
|
|
1053
|
+
children,
|
|
1054
|
+
badge
|
|
1066
1055
|
}) {
|
|
1067
|
-
const badgeColor = (0, import_react21.useMemo)(() => {
|
|
1068
|
-
return (0, import_biz_utils2.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
1069
|
-
}, [session == null ? void 0 : session.state]);
|
|
1070
|
-
const sessionText = (0, import_react21.useMemo)(() => {
|
|
1071
|
-
return (0, import_biz_utils2.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
1072
|
-
}, [session == null ? void 0 : session.state]);
|
|
1073
1056
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1074
1057
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes6.Box, { children: [
|
|
1075
1058
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
1076
1059
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
1077
|
-
|
|
1060
|
+
badge
|
|
1078
1061
|
] }),
|
|
1079
1062
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
1080
1063
|
] }),
|
|
@@ -1091,25 +1074,18 @@ function CoachingCustomerInfoMedium({
|
|
|
1091
1074
|
}
|
|
1092
1075
|
|
|
1093
1076
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
1094
|
-
var import_react22 = require("react");
|
|
1095
|
-
var import_biz_utils3 = require("@tipp/biz-utils");
|
|
1096
1077
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1097
1078
|
function CoachingCustomerInfoLarge({
|
|
1098
1079
|
customer,
|
|
1099
1080
|
session,
|
|
1100
|
-
children
|
|
1081
|
+
children,
|
|
1082
|
+
badge
|
|
1101
1083
|
}) {
|
|
1102
|
-
const badgeColor = (0, import_react22.useMemo)(() => {
|
|
1103
|
-
return (0, import_biz_utils3.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
1104
|
-
}, [session == null ? void 0 : session.state]);
|
|
1105
|
-
const sessionText = (0, import_react22.useMemo)(() => {
|
|
1106
|
-
return (0, import_biz_utils3.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
1107
|
-
}, [session == null ? void 0 : session.state]);
|
|
1108
1084
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1109
1085
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes6.Box, { children: [
|
|
1110
1086
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
1111
1087
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
1112
|
-
|
|
1088
|
+
badge
|
|
1113
1089
|
] }),
|
|
1114
1090
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
1115
1091
|
] }),
|
|
@@ -1131,7 +1107,7 @@ function CoachingCustomerInfo(props) {
|
|
|
1131
1107
|
}
|
|
1132
1108
|
|
|
1133
1109
|
// src/app/platform/goal-manage-card-read.tsx
|
|
1134
|
-
var
|
|
1110
|
+
var import_react20 = require("react");
|
|
1135
1111
|
var import_date_fns2 = require("date-fns");
|
|
1136
1112
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1137
1113
|
function GoalManageCardRead(props) {
|
|
@@ -1147,29 +1123,29 @@ function GoalManageCardRead(props) {
|
|
|
1147
1123
|
onClickIncomplete,
|
|
1148
1124
|
onClickComplete
|
|
1149
1125
|
} = props;
|
|
1150
|
-
const [open, setOpen] = (0,
|
|
1151
|
-
const onClickOpen = (0,
|
|
1126
|
+
const [open, setOpen] = (0, import_react20.useState)(Boolean(defaultOpen));
|
|
1127
|
+
const onClickOpen = (0, import_react20.useCallback)(() => {
|
|
1152
1128
|
setOpen((p) => !p);
|
|
1153
1129
|
}, []);
|
|
1154
1130
|
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons3.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons3.ChevronDownIcon, {});
|
|
1155
|
-
const badgeMeta = (0,
|
|
1131
|
+
const badgeMeta = (0, import_react20.useMemo)(() => {
|
|
1156
1132
|
if (!completed && dueDate) {
|
|
1157
|
-
if (dueDate
|
|
1158
|
-
return {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
};
|
|
1133
|
+
if (dueDate >= (0, import_date_fns2.startOfDay)(/* @__PURE__ */ new Date()))
|
|
1134
|
+
return {
|
|
1135
|
+
color: "success",
|
|
1136
|
+
children: "\uC9C4\uD589 \uC911"
|
|
1137
|
+
};
|
|
1138
|
+
return { color: "error", children: "\uBBF8\uB2EC\uC131" };
|
|
1163
1139
|
}
|
|
1164
1140
|
return null;
|
|
1165
1141
|
}, [completed, dueDate]);
|
|
1166
|
-
const renderSubTitle = (0,
|
|
1142
|
+
const renderSubTitle = (0, import_react20.useCallback)((subTitle) => {
|
|
1167
1143
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
1168
1144
|
}, []);
|
|
1169
|
-
const renderSubContent = (0,
|
|
1145
|
+
const renderSubContent = (0, import_react20.useCallback)((content) => {
|
|
1170
1146
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
1171
1147
|
}, []);
|
|
1172
|
-
const renderCompleteButton = (0,
|
|
1148
|
+
const renderCompleteButton = (0, import_react20.useCallback)(() => {
|
|
1173
1149
|
if (completed) {
|
|
1174
1150
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
1175
1151
|
}
|
|
@@ -1215,7 +1191,9 @@ function GoalManageCardRead(props) {
|
|
|
1215
1191
|
renderSubContent(expectedEffect)
|
|
1216
1192
|
] }),
|
|
1217
1193
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes6.Box, { children: [
|
|
1218
|
-
renderSubTitle(
|
|
1194
|
+
renderSubTitle(
|
|
1195
|
+
"\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"
|
|
1196
|
+
),
|
|
1219
1197
|
renderSubContent(huddle)
|
|
1220
1198
|
] })
|
|
1221
1199
|
] }),
|
|
@@ -1243,17 +1221,17 @@ function GoalManageCardRead(props) {
|
|
|
1243
1221
|
}
|
|
1244
1222
|
|
|
1245
1223
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
1246
|
-
var
|
|
1247
|
-
var
|
|
1224
|
+
var import_react30 = require("react");
|
|
1225
|
+
var import_date_fns5 = require("date-fns");
|
|
1248
1226
|
|
|
1249
1227
|
// src/molecules/expand-table/index.tsx
|
|
1250
1228
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1251
|
-
var
|
|
1229
|
+
var import_react22 = require("react");
|
|
1252
1230
|
|
|
1253
1231
|
// src/icons/down.tsx
|
|
1254
|
-
var
|
|
1232
|
+
var React11 = __toESM(require("react"), 1);
|
|
1255
1233
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1256
|
-
var TriangleArrowDownIcon =
|
|
1234
|
+
var TriangleArrowDownIcon = React11.forwardRef(
|
|
1257
1235
|
(_a, forwardedRef) => {
|
|
1258
1236
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1259
1237
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -1280,9 +1258,9 @@ var TriangleArrowDownIcon = React14.forwardRef(
|
|
|
1280
1258
|
TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
1281
1259
|
|
|
1282
1260
|
// src/icons/up.tsx
|
|
1283
|
-
var
|
|
1261
|
+
var React12 = __toESM(require("react"), 1);
|
|
1284
1262
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1285
|
-
var TriangleArrowUpIcon =
|
|
1263
|
+
var TriangleArrowUpIcon = React12.forwardRef(
|
|
1286
1264
|
(_a, forwardedRef) => {
|
|
1287
1265
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1288
1266
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
@@ -1310,7 +1288,7 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
1310
1288
|
|
|
1311
1289
|
// src/molecules/expand-table/row.tsx
|
|
1312
1290
|
var import_react_table = require("@tanstack/react-table");
|
|
1313
|
-
var
|
|
1291
|
+
var import_react21 = require("react");
|
|
1314
1292
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1315
1293
|
|
|
1316
1294
|
// src/molecules/expand-table/index.tsx
|
|
@@ -1320,7 +1298,7 @@ var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
|
1320
1298
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1321
1299
|
|
|
1322
1300
|
// src/molecules/date-picker/index.tsx
|
|
1323
|
-
var
|
|
1301
|
+
var import_react23 = require("react");
|
|
1324
1302
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1325
1303
|
var import_react_datepicker = require("react-datepicker");
|
|
1326
1304
|
var import_locale = require("date-fns/locale");
|
|
@@ -1328,7 +1306,7 @@ var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
|
1328
1306
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1329
1307
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1330
1308
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1331
|
-
var DatePicker = (0,
|
|
1309
|
+
var DatePicker = (0, import_react23.forwardRef)(
|
|
1332
1310
|
(props, ref) => {
|
|
1333
1311
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1334
1312
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
@@ -1398,22 +1376,22 @@ var renderCustomHeader = (props) => {
|
|
|
1398
1376
|
};
|
|
1399
1377
|
|
|
1400
1378
|
// src/molecules/dot-navigation.tsx
|
|
1401
|
-
var
|
|
1379
|
+
var import_react24 = require("react");
|
|
1402
1380
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
1403
1381
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1404
1382
|
|
|
1405
1383
|
// src/molecules/stepper.tsx
|
|
1406
|
-
var
|
|
1384
|
+
var import_react25 = require("react");
|
|
1407
1385
|
var import_themes51 = require("@radix-ui/themes");
|
|
1408
1386
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1409
|
-
var StepContext = (0,
|
|
1387
|
+
var StepContext = (0, import_react25.createContext)({
|
|
1410
1388
|
active: false,
|
|
1411
1389
|
completed: false,
|
|
1412
1390
|
index: 0
|
|
1413
1391
|
});
|
|
1414
1392
|
|
|
1415
1393
|
// src/molecules/tag-selector.tsx
|
|
1416
|
-
var
|
|
1394
|
+
var import_react26 = require("react");
|
|
1417
1395
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
1418
1396
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1419
1397
|
|
|
@@ -1429,7 +1407,7 @@ var import_react_icons7 = require("@radix-ui/react-icons");
|
|
|
1429
1407
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1430
1408
|
|
|
1431
1409
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
1432
|
-
var
|
|
1410
|
+
var import_react27 = require("react");
|
|
1433
1411
|
var import_date_fns3 = require("date-fns");
|
|
1434
1412
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1435
1413
|
function DatePickerButton(props) {
|
|
@@ -1441,7 +1419,7 @@ function DatePickerButton(props) {
|
|
|
1441
1419
|
width: "100%"
|
|
1442
1420
|
};
|
|
1443
1421
|
const buttonProps = { size, color, style, variant };
|
|
1444
|
-
const selectFormat = (0,
|
|
1422
|
+
const selectFormat = (0, import_react27.useMemo)(() => {
|
|
1445
1423
|
if (formatProps)
|
|
1446
1424
|
return formatProps;
|
|
1447
1425
|
return (date) => date ? (0, import_date_fns3.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
@@ -1461,7 +1439,8 @@ function DatePickerButton(props) {
|
|
|
1461
1439
|
}
|
|
1462
1440
|
|
|
1463
1441
|
// src/molecules/time-select.tsx
|
|
1464
|
-
var
|
|
1442
|
+
var import_react28 = require("react");
|
|
1443
|
+
var import_date_fns4 = require("date-fns");
|
|
1465
1444
|
|
|
1466
1445
|
// src/utils/get-time-options.ts
|
|
1467
1446
|
var getTimeOptions = () => {
|
|
@@ -1485,28 +1464,50 @@ var getTimeOption = (time) => {
|
|
|
1485
1464
|
|
|
1486
1465
|
// src/molecules/time-select.tsx
|
|
1487
1466
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1467
|
+
var getOptionValue = (date, timeValue) => {
|
|
1468
|
+
if (date && timeValue) {
|
|
1469
|
+
if ((0, import_date_fns4.format)(date, "yyyyMMdd") === (0, import_date_fns4.format)(timeValue, "yyyyMMdd")) {
|
|
1470
|
+
return (0, import_date_fns4.format)(date, "HH:mm");
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1488
1474
|
function TimeSelect(_a) {
|
|
1489
1475
|
var _b = _a, {
|
|
1490
|
-
value
|
|
1476
|
+
value,
|
|
1477
|
+
maxTime,
|
|
1478
|
+
minTime,
|
|
1479
|
+
time
|
|
1491
1480
|
} = _b, rest = __objRest(_b, [
|
|
1492
|
-
"value"
|
|
1481
|
+
"value",
|
|
1482
|
+
"maxTime",
|
|
1483
|
+
"minTime",
|
|
1484
|
+
"time"
|
|
1493
1485
|
]);
|
|
1494
|
-
const timeOptions = (0,
|
|
1486
|
+
const timeOptions = (0, import_react28.useMemo)(() => {
|
|
1495
1487
|
return getTimeOptions();
|
|
1496
1488
|
}, []);
|
|
1489
|
+
const [minOption, maxOption] = (0, import_react28.useMemo)(() => {
|
|
1490
|
+
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
1491
|
+
}, [maxTime, minTime, time]);
|
|
1497
1492
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
1498
1493
|
/* @__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" } }) }),
|
|
1499
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Content, { children: timeOptions.map((
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
1495
|
+
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
1496
|
+
if (!visible) {
|
|
1497
|
+
return null;
|
|
1498
|
+
}
|
|
1499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Item, { value: option, children: option }, option);
|
|
1500
|
+
}) })
|
|
1500
1501
|
] }));
|
|
1501
1502
|
}
|
|
1502
1503
|
|
|
1503
1504
|
// src/molecules/radio-button-card.tsx
|
|
1504
|
-
var
|
|
1505
|
+
var import_react29 = require("react");
|
|
1505
1506
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1506
|
-
var RadioCardContext = (0,
|
|
1507
|
+
var RadioCardContext = (0, import_react29.createContext)({});
|
|
1507
1508
|
function Root8(props) {
|
|
1508
|
-
const [value, setValue] = (0,
|
|
1509
|
-
const onValueChange = (0,
|
|
1509
|
+
const [value, setValue] = (0, import_react29.useState)(props.value || props.defaultValue);
|
|
1510
|
+
const onValueChange = (0, import_react29.useCallback)(
|
|
1510
1511
|
(v) => {
|
|
1511
1512
|
var _a;
|
|
1512
1513
|
setValue(v);
|
|
@@ -1522,10 +1523,10 @@ function Item(_a) {
|
|
|
1522
1523
|
} = _b, itemRest = __objRest(_b, [
|
|
1523
1524
|
"children"
|
|
1524
1525
|
]);
|
|
1525
|
-
const _a2 = (0,
|
|
1526
|
+
const _a2 = (0, import_react29.useContext)(RadioCardContext), {
|
|
1526
1527
|
value,
|
|
1527
1528
|
justify,
|
|
1528
|
-
RadioWrapper =
|
|
1529
|
+
RadioWrapper = import_react29.Fragment
|
|
1529
1530
|
} = _a2, rootRest = __objRest(_a2, [
|
|
1530
1531
|
"value",
|
|
1531
1532
|
"justify",
|
|
@@ -1564,8 +1565,8 @@ var dummyFn = () => {
|
|
|
1564
1565
|
};
|
|
1565
1566
|
function GoalManageCardEdit(props) {
|
|
1566
1567
|
const { defaultValues, errors } = props;
|
|
1567
|
-
const [values, setValues] = (0,
|
|
1568
|
-
const onChange = (0,
|
|
1568
|
+
const [values, setValues] = (0, import_react30.useState)(defaultValues || initialValues);
|
|
1569
|
+
const onChange = (0, import_react30.useCallback)(
|
|
1569
1570
|
(v) => {
|
|
1570
1571
|
var _a;
|
|
1571
1572
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -1573,12 +1574,12 @@ function GoalManageCardEdit(props) {
|
|
|
1573
1574
|
},
|
|
1574
1575
|
[props]
|
|
1575
1576
|
);
|
|
1576
|
-
const onClickInit = (0,
|
|
1577
|
+
const onClickInit = (0, import_react30.useCallback)(() => {
|
|
1577
1578
|
var _a;
|
|
1578
1579
|
setValues(initialValues);
|
|
1579
1580
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
1580
1581
|
}, [defaultValues, props]);
|
|
1581
|
-
const onClickSubmit = (0,
|
|
1582
|
+
const onClickSubmit = (0, import_react30.useCallback)(() => {
|
|
1582
1583
|
var _a;
|
|
1583
1584
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
1584
1585
|
}, [props, values]);
|
|
@@ -1638,7 +1639,7 @@ function GoalManageCardEdit(props) {
|
|
|
1638
1639
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
1639
1640
|
DatePickerButton,
|
|
1640
1641
|
{
|
|
1641
|
-
format: (v) => (0,
|
|
1642
|
+
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
1642
1643
|
onChange: (date) => {
|
|
1643
1644
|
date && onChange({ dueDate: date });
|
|
1644
1645
|
},
|
|
@@ -1667,11 +1668,11 @@ function GoalManageCardEdit(props) {
|
|
|
1667
1668
|
}
|
|
1668
1669
|
|
|
1669
1670
|
// src/app/platform/session-card.tsx
|
|
1670
|
-
var
|
|
1671
|
-
var
|
|
1671
|
+
var import_react33 = require("react");
|
|
1672
|
+
var import_date_fns6 = require("date-fns");
|
|
1672
1673
|
|
|
1673
1674
|
// src/app/platform/edit-coaching-time.tsx
|
|
1674
|
-
var
|
|
1675
|
+
var import_react31 = require("react");
|
|
1675
1676
|
|
|
1676
1677
|
// src/layouts/response-display.tsx
|
|
1677
1678
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
@@ -1732,14 +1733,14 @@ var getDateFromValue = (date, time) => {
|
|
|
1732
1733
|
};
|
|
1733
1734
|
function EditCoachingTime(props) {
|
|
1734
1735
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
1735
|
-
const [values, setValues] = (0,
|
|
1736
|
+
const [values, setValues] = (0, import_react31.useState)(() => {
|
|
1736
1737
|
return getValueFromDefaultValue({
|
|
1737
1738
|
startAt: defaultStartAt,
|
|
1738
1739
|
endAt: defaultEndAt
|
|
1739
1740
|
});
|
|
1740
1741
|
});
|
|
1741
|
-
const [timeError, setTimeError] = (0,
|
|
1742
|
-
const checkTimeError = (0,
|
|
1742
|
+
const [timeError, setTimeError] = (0, import_react31.useState)("");
|
|
1743
|
+
const checkTimeError = (0, import_react31.useCallback)(
|
|
1743
1744
|
(startTime, endTime) => {
|
|
1744
1745
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
1745
1746
|
if (error) {
|
|
@@ -1750,7 +1751,7 @@ function EditCoachingTime(props) {
|
|
|
1750
1751
|
},
|
|
1751
1752
|
[]
|
|
1752
1753
|
);
|
|
1753
|
-
const onChangeStartTime = (0,
|
|
1754
|
+
const onChangeStartTime = (0, import_react31.useCallback)(
|
|
1754
1755
|
(v) => {
|
|
1755
1756
|
checkTimeError(v, values.endTime);
|
|
1756
1757
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -1759,7 +1760,7 @@ function EditCoachingTime(props) {
|
|
|
1759
1760
|
},
|
|
1760
1761
|
[checkTimeError, values.endTime]
|
|
1761
1762
|
);
|
|
1762
|
-
const onChangeEndTime = (0,
|
|
1763
|
+
const onChangeEndTime = (0, import_react31.useCallback)(
|
|
1763
1764
|
(v) => {
|
|
1764
1765
|
checkTimeError(values.startTime, v);
|
|
1765
1766
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -1768,12 +1769,12 @@ function EditCoachingTime(props) {
|
|
|
1768
1769
|
},
|
|
1769
1770
|
[checkTimeError, values.startTime]
|
|
1770
1771
|
);
|
|
1771
|
-
const onChangeDate = (0,
|
|
1772
|
+
const onChangeDate = (0, import_react31.useCallback)((date) => {
|
|
1772
1773
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
1773
1774
|
date
|
|
1774
1775
|
}));
|
|
1775
1776
|
}, []);
|
|
1776
|
-
const onClickSave = (0,
|
|
1777
|
+
const onClickSave = (0, import_react31.useCallback)(() => {
|
|
1777
1778
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
1778
1779
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
1779
1780
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -1788,6 +1789,7 @@ function EditCoachingTime(props) {
|
|
|
1788
1789
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
1789
1790
|
DatePickerButton,
|
|
1790
1791
|
{
|
|
1792
|
+
maxDate: /* @__PURE__ */ new Date(),
|
|
1791
1793
|
onChange: onChangeDate,
|
|
1792
1794
|
selected: values.date,
|
|
1793
1795
|
size: { initial: "large", xs: "medium" }
|
|
@@ -1841,7 +1843,7 @@ function EditCoachingTime(props) {
|
|
|
1841
1843
|
}
|
|
1842
1844
|
|
|
1843
1845
|
// src/app/platform/edit-service-type.tsx
|
|
1844
|
-
var
|
|
1846
|
+
var import_react32 = require("react");
|
|
1845
1847
|
|
|
1846
1848
|
// src/app/platform/on-offline-radio-card.tsx
|
|
1847
1849
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
@@ -1884,10 +1886,10 @@ function OnOfflineRadioCard(props) {
|
|
|
1884
1886
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1885
1887
|
function EditServiceType(props) {
|
|
1886
1888
|
const { defaultServiceType, onClickCancel } = props;
|
|
1887
|
-
const [sessionType, setSessionType] = (0,
|
|
1889
|
+
const [sessionType, setSessionType] = (0, import_react32.useState)(
|
|
1888
1890
|
defaultServiceType
|
|
1889
1891
|
);
|
|
1890
|
-
const onClickSave = (0,
|
|
1892
|
+
const onClickSave = (0, import_react32.useCallback)(() => {
|
|
1891
1893
|
var _a;
|
|
1892
1894
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
1893
1895
|
}, [props, sessionType]);
|
|
@@ -1941,13 +1943,13 @@ function SessionCard(props) {
|
|
|
1941
1943
|
"endAt",
|
|
1942
1944
|
"sessionType"
|
|
1943
1945
|
]);
|
|
1944
|
-
const renderEditButton = (0,
|
|
1946
|
+
const renderEditButton = (0, import_react33.useCallback)(() => {
|
|
1945
1947
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons3.Pencil1Icon, {}) });
|
|
1946
1948
|
}, []);
|
|
1947
|
-
const sessionTimeStr = (0,
|
|
1949
|
+
const sessionTimeStr = (0, import_react33.useMemo)(() => {
|
|
1948
1950
|
if (!startAt || !endAt)
|
|
1949
1951
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
1950
|
-
return `${(0,
|
|
1952
|
+
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")}`;
|
|
1951
1953
|
}, [startAt, endAt]);
|
|
1952
1954
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
1953
1955
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
@@ -2027,8 +2029,8 @@ function CoachQuestionList({
|
|
|
2027
2029
|
}
|
|
2028
2030
|
|
|
2029
2031
|
// src/app/platform/reservation-card.tsx
|
|
2030
|
-
var
|
|
2031
|
-
var
|
|
2032
|
+
var import_react34 = require("react");
|
|
2033
|
+
var import_date_fns7 = require("date-fns");
|
|
2032
2034
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2033
2035
|
function ReservationCard(props) {
|
|
2034
2036
|
const {
|
|
@@ -2038,64 +2040,90 @@ function ReservationCard(props) {
|
|
|
2038
2040
|
defaultTime,
|
|
2039
2041
|
defaultType,
|
|
2040
2042
|
error,
|
|
2043
|
+
minTime,
|
|
2044
|
+
maxTime,
|
|
2041
2045
|
onClickReserve,
|
|
2042
2046
|
onClickCancel,
|
|
2043
2047
|
onClickCompleteSession
|
|
2044
2048
|
} = props;
|
|
2045
|
-
const [editValues, setEditValues] = (0,
|
|
2049
|
+
const [editValues, setEditValues] = (0, import_react34.useState)({
|
|
2046
2050
|
date: props.defaultTime,
|
|
2047
2051
|
type: props.defaultType
|
|
2048
2052
|
});
|
|
2049
2053
|
const date = readonly ? defaultTime : editValues.date;
|
|
2050
2054
|
const type = readonly ? defaultType : editValues.type;
|
|
2051
2055
|
const time = date && getTimeOption(date);
|
|
2052
|
-
const onClickSave = (0,
|
|
2056
|
+
const onClickSave = (0, import_react34.useCallback)(() => {
|
|
2053
2057
|
var _a;
|
|
2054
2058
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
2055
2059
|
}, [editValues, props]);
|
|
2056
|
-
const onClickReset = (0,
|
|
2060
|
+
const onClickReset = (0, import_react34.useCallback)(() => {
|
|
2057
2061
|
setEditValues({
|
|
2058
2062
|
date: defaultTime,
|
|
2059
2063
|
type: defaultType
|
|
2060
2064
|
});
|
|
2061
2065
|
}, [defaultTime, defaultType]);
|
|
2062
|
-
const ActionButtons = (0,
|
|
2066
|
+
const ActionButtons = (0, import_react34.useMemo)(() => {
|
|
2063
2067
|
if (readonly) {
|
|
2064
2068
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
2065
2069
|
}
|
|
2066
2070
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons3.Cross1Icon, {}) });
|
|
2067
2071
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
2068
|
-
const onChangeDate = (0,
|
|
2072
|
+
const onChangeDate = (0, import_react34.useCallback)(
|
|
2069
2073
|
(newDate) => {
|
|
2070
2074
|
if (!newDate)
|
|
2071
2075
|
return;
|
|
2072
2076
|
const { hour = 0, minute = 0 } = time ? parseTimeOption(time) : {};
|
|
2073
2077
|
setEditValues((prev) => {
|
|
2074
2078
|
return __spreadProps(__spreadValues({}, prev), {
|
|
2075
|
-
date: (0,
|
|
2079
|
+
date: (0, import_date_fns7.setMinutes)((0, import_date_fns7.setHours)(newDate, hour), minute)
|
|
2076
2080
|
});
|
|
2077
2081
|
});
|
|
2078
2082
|
},
|
|
2079
2083
|
[time]
|
|
2080
2084
|
);
|
|
2081
|
-
const onChangeType = (0,
|
|
2085
|
+
const onChangeType = (0, import_react34.useCallback)((newType) => {
|
|
2082
2086
|
setEditValues((prev) => {
|
|
2083
2087
|
return __spreadProps(__spreadValues({}, prev), {
|
|
2084
2088
|
type: newType
|
|
2085
2089
|
});
|
|
2086
2090
|
});
|
|
2087
2091
|
}, []);
|
|
2088
|
-
const onChangeTime = (0,
|
|
2092
|
+
const onChangeTime = (0, import_react34.useCallback)(
|
|
2089
2093
|
(v) => {
|
|
2090
2094
|
const { hour, minute } = parseTimeOption(v);
|
|
2091
2095
|
setEditValues((prev) => {
|
|
2092
2096
|
return __spreadProps(__spreadValues({}, prev), {
|
|
2093
|
-
date: (0,
|
|
2097
|
+
date: (0, import_date_fns7.setMinutes)((0, import_date_fns7.setHours)(date || /* @__PURE__ */ new Date(), hour), minute)
|
|
2094
2098
|
});
|
|
2095
2099
|
});
|
|
2096
2100
|
},
|
|
2097
2101
|
[date]
|
|
2098
2102
|
);
|
|
2103
|
+
(0, import_react34.useEffect)(() => {
|
|
2104
|
+
if (!minTime || !editValues.date)
|
|
2105
|
+
return;
|
|
2106
|
+
if (editValues.date < minTime) {
|
|
2107
|
+
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
2108
|
+
setEditValues((prev) => {
|
|
2109
|
+
return __spreadProps(__spreadValues({}, prev), {
|
|
2110
|
+
date: minTime
|
|
2111
|
+
});
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
}, [editValues, minTime]);
|
|
2115
|
+
(0, import_react34.useEffect)(() => {
|
|
2116
|
+
if (!maxTime || !editValues.date)
|
|
2117
|
+
return;
|
|
2118
|
+
if (editValues.date > maxTime) {
|
|
2119
|
+
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
2120
|
+
setEditValues((prev) => {
|
|
2121
|
+
return __spreadProps(__spreadValues({}, prev), {
|
|
2122
|
+
date: maxTime
|
|
2123
|
+
});
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
}, [editValues, maxTime]);
|
|
2099
2127
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2100
2128
|
Card,
|
|
2101
2129
|
{
|
|
@@ -2140,6 +2168,8 @@ function ReservationCard(props) {
|
|
|
2140
2168
|
DatePickerButton,
|
|
2141
2169
|
{
|
|
2142
2170
|
disabled: readonly,
|
|
2171
|
+
maxDate: maxTime,
|
|
2172
|
+
minDate: minTime,
|
|
2143
2173
|
onChange: onChangeDate,
|
|
2144
2174
|
placeholder: "\uC77C\uC790\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694",
|
|
2145
2175
|
selected: date,
|
|
@@ -2150,8 +2180,11 @@ function ReservationCard(props) {
|
|
|
2150
2180
|
TimeSelect,
|
|
2151
2181
|
{
|
|
2152
2182
|
disabled: readonly,
|
|
2183
|
+
maxTime,
|
|
2184
|
+
minTime,
|
|
2153
2185
|
onValueChange: onChangeTime,
|
|
2154
2186
|
size: "3",
|
|
2187
|
+
time: date,
|
|
2155
2188
|
value: time
|
|
2156
2189
|
}
|
|
2157
2190
|
)
|
|
@@ -2211,7 +2244,7 @@ function ReservationCard(props) {
|
|
|
2211
2244
|
}
|
|
2212
2245
|
|
|
2213
2246
|
// src/app/platform/session-review-simple-read.tsx
|
|
2214
|
-
var
|
|
2247
|
+
var import_react35 = require("react");
|
|
2215
2248
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2216
2249
|
function SubTitleWrapper({
|
|
2217
2250
|
children,
|
|
@@ -2226,7 +2259,7 @@ function SessionReviewSimpleRead({
|
|
|
2226
2259
|
helpfulness,
|
|
2227
2260
|
review
|
|
2228
2261
|
}) {
|
|
2229
|
-
const helpfulnessMeta = (0,
|
|
2262
|
+
const helpfulnessMeta = (0, import_react35.useMemo)(() => {
|
|
2230
2263
|
if (helpfulness) {
|
|
2231
2264
|
return {
|
|
2232
2265
|
text: "\uB124",
|
|
@@ -2275,11 +2308,11 @@ function SessionUserInfoDetail({
|
|
|
2275
2308
|
}
|
|
2276
2309
|
|
|
2277
2310
|
// src/app/platform/report-card.tsx
|
|
2278
|
-
var
|
|
2311
|
+
var import_react36 = require("react");
|
|
2279
2312
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2280
2313
|
function ReportCard(props) {
|
|
2281
2314
|
const { title, file, status } = props;
|
|
2282
|
-
const onClickDownload = (0,
|
|
2315
|
+
const onClickDownload = (0, import_react36.useCallback)(() => {
|
|
2283
2316
|
if (!file)
|
|
2284
2317
|
return;
|
|
2285
2318
|
const { url, fileName } = file;
|