@tipp/ui 2.3.17 → 2.3.18
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 +200 -195
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +94 -93
- package/dist/app/platform/coach-question-list.js +29 -29
- package/dist/app/platform/contents-card.js +29 -29
- package/dist/app/platform/curriculum-card.js +6 -6
- package/dist/app/platform/edit-coaching-time.cjs +29 -24
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +72 -71
- package/dist/app/platform/edit-service-type.cjs +25 -20
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +73 -72
- package/dist/app/platform/goal-manage-card-edit.cjs +32 -27
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +72 -71
- package/dist/app/platform/goal-manage-card-read.js +29 -29
- package/dist/app/platform/on-offline-radio-card.cjs +38 -33
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +72 -71
- package/dist/app/platform/report-card.js +29 -29
- package/dist/app/platform/reservation-card.cjs +48 -43
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +73 -72
- package/dist/app/platform/session-card.cjs +75 -70
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +75 -74
- package/dist/app/platform/session-review-simple-read.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -29
- package/dist/app/platform/userInfos/session-user-info-detail.js +29 -29
- package/dist/app/platform/userInfos/utils.js +28 -28
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +62 -62
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-2O2CKXEZ.js +69 -0
- package/dist/chunk-2O2CKXEZ.js.map +1 -0
- package/dist/chunk-2VFMVVWT.js +63 -0
- package/dist/chunk-2VFMVVWT.js.map +1 -0
- package/dist/chunk-2XNMU67K.js +69 -0
- package/dist/chunk-2XNMU67K.js.map +1 -0
- package/dist/chunk-2YBJBKBB.js +82 -0
- package/dist/chunk-2YBJBKBB.js.map +1 -0
- package/dist/chunk-367ZYIOP.js +89 -0
- package/dist/chunk-367ZYIOP.js.map +1 -0
- package/dist/chunk-3A45CD76.js +196 -0
- package/dist/chunk-3A45CD76.js.map +1 -0
- package/dist/chunk-4JYSUW7I.js +151 -0
- package/dist/chunk-4JYSUW7I.js.map +1 -0
- package/dist/chunk-5TPNUG3Y.js +63 -0
- package/dist/chunk-5TPNUG3Y.js.map +1 -0
- package/dist/chunk-64JB2NO2.js +51 -0
- package/dist/chunk-64JB2NO2.js.map +1 -0
- package/dist/chunk-6F63WEDJ.js +63 -0
- package/dist/chunk-6F63WEDJ.js.map +1 -0
- package/dist/chunk-6UCGUA3B.js +30 -0
- package/dist/chunk-6UCGUA3B.js.map +1 -0
- package/dist/chunk-7IFK5DP5.js +69 -0
- package/dist/chunk-7IFK5DP5.js.map +1 -0
- package/dist/chunk-7QDV6YRH.js +196 -0
- package/dist/chunk-7QDV6YRH.js.map +1 -0
- package/dist/chunk-7XG4CK7Y.js +89 -0
- package/dist/chunk-7XG4CK7Y.js.map +1 -0
- package/dist/chunk-A5VFSD3T.js +129 -0
- package/dist/chunk-A5VFSD3T.js.map +1 -0
- package/dist/chunk-B5U2JBLX.js +87 -0
- package/dist/chunk-B5U2JBLX.js.map +1 -0
- package/dist/chunk-BDJUL3JV.js +50 -0
- package/dist/chunk-BDJUL3JV.js.map +1 -0
- package/dist/chunk-BI5GANUG.js +75 -0
- package/dist/chunk-BI5GANUG.js.map +1 -0
- package/dist/chunk-BV3ZL4VC.js +196 -0
- package/dist/chunk-BV3ZL4VC.js.map +1 -0
- package/dist/chunk-BWWSZLTV.js +43 -0
- package/dist/chunk-BWWSZLTV.js.map +1 -0
- package/dist/chunk-C5MM3PUD.js +89 -0
- package/dist/chunk-C5MM3PUD.js.map +1 -0
- package/dist/chunk-C5YDIFWN.js +129 -0
- package/dist/chunk-C5YDIFWN.js.map +1 -0
- package/dist/chunk-CC4LSJRN.js +144 -0
- package/dist/chunk-CC4LSJRN.js.map +1 -0
- package/dist/chunk-CIQ7ELE6.js +151 -0
- package/dist/chunk-CIQ7ELE6.js.map +1 -0
- package/dist/chunk-CSLHE7O6.js +196 -0
- package/dist/chunk-CSLHE7O6.js.map +1 -0
- package/dist/chunk-CTCLKPUM.js +50 -0
- package/dist/chunk-CTCLKPUM.js.map +1 -0
- package/dist/chunk-DEAVEZQM.js +1 -0
- package/dist/chunk-DEAVEZQM.js.map +1 -0
- package/dist/chunk-ENVZEWF6.js +98 -0
- package/dist/chunk-ENVZEWF6.js.map +1 -0
- package/dist/chunk-FSJP6HQY.js +49 -0
- package/dist/chunk-FSJP6HQY.js.map +1 -0
- package/dist/chunk-FVAZZ46M.js +69 -0
- package/dist/chunk-FVAZZ46M.js.map +1 -0
- package/dist/chunk-H6UISOMV.js +50 -0
- package/dist/chunk-H6UISOMV.js.map +1 -0
- package/dist/chunk-HZ5LNRVL.js +101 -0
- package/dist/chunk-HZ5LNRVL.js.map +1 -0
- package/dist/chunk-I25D6CHU.js +50 -0
- package/dist/chunk-I25D6CHU.js.map +1 -0
- package/dist/chunk-IF4Q5NV4.js +129 -0
- package/dist/chunk-IF4Q5NV4.js.map +1 -0
- package/dist/chunk-IYVNZW3B.js +196 -0
- package/dist/chunk-IYVNZW3B.js.map +1 -0
- package/dist/chunk-J6D5FMYR.js +75 -0
- package/dist/chunk-J6D5FMYR.js.map +1 -0
- package/dist/chunk-JGM5HN2L.js +69 -0
- package/dist/chunk-JGM5HN2L.js.map +1 -0
- package/dist/chunk-KJC6WEFI.js +75 -0
- package/dist/chunk-KJC6WEFI.js.map +1 -0
- package/dist/chunk-LEIPUJCQ.js +75 -0
- package/dist/chunk-LEIPUJCQ.js.map +1 -0
- package/dist/chunk-LJO2266G.js +64 -0
- package/dist/chunk-LJO2266G.js.map +1 -0
- package/dist/chunk-LPOX4NKE.js +29 -0
- package/dist/chunk-LPOX4NKE.js.map +1 -0
- package/dist/chunk-M2DLW32Z.js +77 -0
- package/dist/chunk-M2DLW32Z.js.map +1 -0
- package/dist/chunk-N662YJXY.js +69 -0
- package/dist/chunk-N662YJXY.js.map +1 -0
- package/dist/chunk-N6LOS7L5.js +89 -0
- package/dist/chunk-N6LOS7L5.js.map +1 -0
- package/dist/chunk-NCCAFJJR.js +83 -0
- package/dist/chunk-NCCAFJJR.js.map +1 -0
- package/dist/chunk-NFI7WDJS.js +50 -0
- package/dist/chunk-NFI7WDJS.js.map +1 -0
- package/dist/chunk-NTJLECYY.js +37 -0
- package/dist/chunk-NTJLECYY.js.map +1 -0
- package/dist/chunk-NTWHDYJV.js +89 -0
- package/dist/chunk-NTWHDYJV.js.map +1 -0
- package/dist/chunk-NVQSH733.js +51 -0
- package/dist/chunk-NVQSH733.js.map +1 -0
- package/dist/chunk-ODHH7CFR.js +196 -0
- package/dist/chunk-ODHH7CFR.js.map +1 -0
- package/dist/chunk-OILH5J7Q.js +101 -0
- package/dist/chunk-OILH5J7Q.js.map +1 -0
- package/dist/chunk-OX5XYAZM.js +37 -0
- package/dist/chunk-OX5XYAZM.js.map +1 -0
- package/dist/chunk-P76FTCUF.js +64 -0
- package/dist/chunk-P76FTCUF.js.map +1 -0
- package/dist/chunk-PF3LVPOZ.js +87 -0
- package/dist/chunk-PF3LVPOZ.js.map +1 -0
- package/dist/chunk-PWF22OOK.js +64 -0
- package/dist/chunk-PWF22OOK.js.map +1 -0
- package/dist/chunk-QU5M7KZM.js +50 -0
- package/dist/chunk-QU5M7KZM.js.map +1 -0
- package/dist/chunk-RWK6HLWM.js +75 -0
- package/dist/chunk-RWK6HLWM.js.map +1 -0
- package/dist/chunk-RYEEDHML.js +64 -0
- package/dist/chunk-RYEEDHML.js.map +1 -0
- package/dist/chunk-SQIJY72J.js +69 -0
- package/dist/chunk-SQIJY72J.js.map +1 -0
- package/dist/chunk-SZ73GYOE.js +98 -0
- package/dist/chunk-SZ73GYOE.js.map +1 -0
- package/dist/chunk-TQ5AJKUH.js +64 -0
- package/dist/chunk-TQ5AJKUH.js.map +1 -0
- package/dist/chunk-UGCYMUQ4.js +89 -0
- package/dist/chunk-UGCYMUQ4.js.map +1 -0
- package/dist/chunk-UK7J2BOO.js +83 -0
- package/dist/chunk-UK7J2BOO.js.map +1 -0
- package/dist/chunk-V4GNPLLT.js +69 -0
- package/dist/chunk-V4GNPLLT.js.map +1 -0
- package/dist/chunk-VKMRA55P.js +144 -0
- package/dist/chunk-VKMRA55P.js.map +1 -0
- package/dist/chunk-VLGR5PZX.js +1 -0
- package/dist/chunk-VLGR5PZX.js.map +1 -0
- package/dist/chunk-VQGBP3JY.js +50 -0
- package/dist/chunk-VQGBP3JY.js.map +1 -0
- package/dist/chunk-WV4WWBKN.js +69 -0
- package/dist/chunk-WV4WWBKN.js.map +1 -0
- package/dist/chunk-X3J2UNWS.js +69 -0
- package/dist/chunk-X3J2UNWS.js.map +1 -0
- package/dist/chunk-X67ER3JU.js +69 -0
- package/dist/chunk-X67ER3JU.js.map +1 -0
- package/dist/chunk-X732NUWY.js +50 -0
- package/dist/chunk-X732NUWY.js.map +1 -0
- package/dist/chunk-X7QZ46BZ.js +63 -0
- package/dist/chunk-X7QZ46BZ.js.map +1 -0
- package/dist/chunk-XDPD6IWK.js +89 -0
- package/dist/chunk-XDPD6IWK.js.map +1 -0
- package/dist/chunk-XKWY6ZQM.js +196 -0
- package/dist/chunk-XKWY6ZQM.js.map +1 -0
- package/dist/chunk-XW3D3GLY.js +113 -0
- package/dist/chunk-XW3D3GLY.js.map +1 -0
- package/dist/chunk-Y6BK7ABB.js +1 -0
- package/dist/chunk-Y6BK7ABB.js.map +1 -0
- package/dist/chunk-Z2XF3EO2.js +75 -0
- package/dist/chunk-Z2XF3EO2.js.map +1 -0
- package/dist/chunk-ZFEXH655.js +144 -0
- package/dist/chunk-ZFEXH655.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +394 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +156 -151
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +16 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +20 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +22 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.js +37 -37
- package/dist/molecules/date-picker/date-picker-button.js +6 -6
- package/dist/molecules/date-picker/index.js +5 -5
- package/dist/molecules/description-json-render.js +5 -5
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +5 -5
- package/dist/molecules/dynamic-form.js +6 -6
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +111 -0
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -0
- package/dist/molecules/index.d.ts +2 -0
- package/dist/molecules/index.js +73 -69
- package/dist/molecules/learning-post.js +5 -5
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/training-info-guideline.cjs +508 -0
- package/dist/molecules/training-info-guideline.cjs.map +1 -0
- package/dist/molecules/training-info-guideline.d.cts +13 -0
- package/dist/molecules/training-info-guideline.d.ts +13 -0
- package/dist/molecules/training-info-guideline.js +19 -0
- package/dist/molecules/training-info-guideline.js.map +1 -0
- package/dist/types/curriculumContents.type.cjs.map +1 -1
- package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +2 -1
- package/dist/types/training-info-guideline-schema-generated.cjs +19 -0
- package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -0
- package/dist/types/training-info-guideline-schema-generated.d.cts +22 -0
- package/dist/types/training-info-guideline-schema-generated.d.ts +22 -0
- package/dist/types/training-info-guideline-schema-generated.js +2 -0
- package/dist/types/training-info-guideline-schema-generated.js.map +1 -0
- package/package.json +2 -2
- package/src/constrant/training-info-guideline.schema.json +45 -0
- package/src/molecules/index.ts +2 -1
- package/src/molecules/training-info-guideline.tsx +130 -0
- package/src/types/curriculumContents.type.ts +1 -0
- package/src/types/dynamic-form-schema-generated.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/training-info-guideline-schema-generated.ts +23 -0
package/dist/index.cjs
CHANGED
|
@@ -259,6 +259,7 @@ __export(index_exports, {
|
|
|
259
259
|
TimerIcon: () => import_react_icons2.TimerIcon,
|
|
260
260
|
ToastContainer: () => ToastContainer,
|
|
261
261
|
Tooltip: () => Tooltip,
|
|
262
|
+
TrainingInfoGuideline: () => TrainingInfoGuideline,
|
|
262
263
|
TrashIcon: () => import_react_icons2.TrashIcon,
|
|
263
264
|
TriangleArrowDownIcon: () => TriangleArrowDownIcon,
|
|
264
265
|
TriangleArrowUpIcon: () => TriangleArrowUpIcon,
|
|
@@ -6109,6 +6110,115 @@ function DescriptionJsonRender(props) {
|
|
|
6109
6110
|
}) });
|
|
6110
6111
|
}
|
|
6111
6112
|
|
|
6113
|
+
// src/molecules/training-info-guideline.tsx
|
|
6114
|
+
var import_react46 = require("react");
|
|
6115
|
+
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
6116
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6117
|
+
function TrainingInfoGuideline({
|
|
6118
|
+
values,
|
|
6119
|
+
onClickFileDownload
|
|
6120
|
+
}) {
|
|
6121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: values.map((value) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6122
|
+
TrainingInfoGuidelineItem,
|
|
6123
|
+
{
|
|
6124
|
+
onClickFileDownload,
|
|
6125
|
+
value
|
|
6126
|
+
},
|
|
6127
|
+
getItemKey(value)
|
|
6128
|
+
)) });
|
|
6129
|
+
}
|
|
6130
|
+
function getItemKey(value) {
|
|
6131
|
+
return value.url;
|
|
6132
|
+
}
|
|
6133
|
+
function TrainingInfoGuidelineItem({
|
|
6134
|
+
value,
|
|
6135
|
+
onClickFileDownload
|
|
6136
|
+
}) {
|
|
6137
|
+
const [isLoading, setIsLoading] = (0, import_react46.useState)(true);
|
|
6138
|
+
if (value.type === "file") {
|
|
6139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
6140
|
+
Button,
|
|
6141
|
+
{
|
|
6142
|
+
onClick: () => {
|
|
6143
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
6144
|
+
},
|
|
6145
|
+
variant: "surface",
|
|
6146
|
+
children: [
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons9.FileTextIcon, {}),
|
|
6148
|
+
value.downloadButtonName
|
|
6149
|
+
]
|
|
6150
|
+
}
|
|
6151
|
+
);
|
|
6152
|
+
}
|
|
6153
|
+
if (value.type === "video") {
|
|
6154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Dialog.Root, { children: [
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Button, { variant: "surface", children: [
|
|
6156
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons9.VideoIcon, {}),
|
|
6157
|
+
value.videoTitle
|
|
6158
|
+
] }) }),
|
|
6159
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6160
|
+
Dialog.Content,
|
|
6161
|
+
{
|
|
6162
|
+
height: "100%",
|
|
6163
|
+
maxHeight: "500px",
|
|
6164
|
+
maxWidth: "800px",
|
|
6165
|
+
title: value.videoTitle,
|
|
6166
|
+
width: "100%",
|
|
6167
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes2.AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
6168
|
+
import_themes22.Flex,
|
|
6169
|
+
{
|
|
6170
|
+
align: "center",
|
|
6171
|
+
justify: "center",
|
|
6172
|
+
style: {
|
|
6173
|
+
width: "100%",
|
|
6174
|
+
height: "100%",
|
|
6175
|
+
backgroundColor: "black",
|
|
6176
|
+
position: "relative"
|
|
6177
|
+
},
|
|
6178
|
+
children: [
|
|
6179
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6180
|
+
import_themes22.Flex,
|
|
6181
|
+
{
|
|
6182
|
+
align: "center",
|
|
6183
|
+
height: "100%",
|
|
6184
|
+
justify: "center",
|
|
6185
|
+
position: "absolute",
|
|
6186
|
+
style: {
|
|
6187
|
+
position: "absolute",
|
|
6188
|
+
top: 0,
|
|
6189
|
+
left: 0,
|
|
6190
|
+
zIndex: 1,
|
|
6191
|
+
color: "white"
|
|
6192
|
+
},
|
|
6193
|
+
width: "100%",
|
|
6194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes49.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
6195
|
+
}
|
|
6196
|
+
) : null,
|
|
6197
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6198
|
+
"iframe",
|
|
6199
|
+
{
|
|
6200
|
+
allowFullScreen: true,
|
|
6201
|
+
onError: () => {
|
|
6202
|
+
setIsLoading(false);
|
|
6203
|
+
},
|
|
6204
|
+
onLoad: () => {
|
|
6205
|
+
setIsLoading(false);
|
|
6206
|
+
},
|
|
6207
|
+
src: `${value.url}?theme=light`,
|
|
6208
|
+
style: { width: "100%", height: "100%", border: "none" },
|
|
6209
|
+
title: "Curriculum Video"
|
|
6210
|
+
}
|
|
6211
|
+
)
|
|
6212
|
+
]
|
|
6213
|
+
}
|
|
6214
|
+
) })
|
|
6215
|
+
}
|
|
6216
|
+
)
|
|
6217
|
+
] });
|
|
6218
|
+
}
|
|
6219
|
+
return null;
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6112
6222
|
// src/theme/use-theme.tsx
|
|
6113
6223
|
var import_themes56 = require("@radix-ui/themes");
|
|
6114
6224
|
|
|
@@ -6116,22 +6226,22 @@ var import_themes56 = require("@radix-ui/themes");
|
|
|
6116
6226
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
6117
6227
|
|
|
6118
6228
|
// src/charts/horizontal-bar-chart.tsx
|
|
6119
|
-
var
|
|
6229
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6120
6230
|
function HorizontalBarChart(props) {
|
|
6121
6231
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
6122
|
-
return /* @__PURE__ */ (0,
|
|
6232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6123
6233
|
"div",
|
|
6124
6234
|
{
|
|
6125
6235
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
6126
6236
|
style: { height, backgroundColor },
|
|
6127
|
-
children: /* @__PURE__ */ (0,
|
|
6237
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6128
6238
|
"div",
|
|
6129
6239
|
{
|
|
6130
6240
|
style: {
|
|
6131
6241
|
width: `${Math.round(value / total * 100)}%`,
|
|
6132
6242
|
height: "100%"
|
|
6133
6243
|
},
|
|
6134
|
-
children: /* @__PURE__ */ (0,
|
|
6244
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
6135
6245
|
}
|
|
6136
6246
|
)
|
|
6137
6247
|
}
|
|
@@ -6287,23 +6397,23 @@ var EchartDefaultProps = {
|
|
|
6287
6397
|
};
|
|
6288
6398
|
|
|
6289
6399
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
6290
|
-
var
|
|
6400
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6291
6401
|
function CoachingCustomerInfoSmall({
|
|
6292
6402
|
customer,
|
|
6293
6403
|
children,
|
|
6294
6404
|
badge
|
|
6295
6405
|
}) {
|
|
6296
|
-
return /* @__PURE__ */ (0,
|
|
6406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
6297
6407
|
import_themes22.Flex,
|
|
6298
6408
|
{
|
|
6299
6409
|
direction: { initial: "column", xs: "row" },
|
|
6300
6410
|
gap: "3",
|
|
6301
6411
|
justify: "between",
|
|
6302
6412
|
children: [
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6304
|
-
/* @__PURE__ */ (0,
|
|
6305
|
-
/* @__PURE__ */ (0,
|
|
6306
|
-
/* @__PURE__ */ (0,
|
|
6413
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
6414
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6415
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
6416
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
6307
6417
|
] }) }),
|
|
6308
6418
|
children
|
|
6309
6419
|
]
|
|
@@ -6313,8 +6423,8 @@ function CoachingCustomerInfoSmall({
|
|
|
6313
6423
|
|
|
6314
6424
|
// src/app/platform/userInfos/utils.tsx
|
|
6315
6425
|
var import_date_fns3 = require("date-fns");
|
|
6316
|
-
var
|
|
6317
|
-
var
|
|
6426
|
+
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
6427
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
6318
6428
|
var infoList = [
|
|
6319
6429
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
6320
6430
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -6374,21 +6484,21 @@ var sessionList = [
|
|
|
6374
6484
|
var renderItem = (args) => {
|
|
6375
6485
|
const { info, data, onClickCopy } = args;
|
|
6376
6486
|
const value = info.getValue(data);
|
|
6377
|
-
return /* @__PURE__ */ (0,
|
|
6487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
6378
6488
|
info.render ? info.render(value) : value || "-",
|
|
6379
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
6489
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
6380
6490
|
] });
|
|
6381
6491
|
};
|
|
6382
6492
|
var renderDataListItem = (args) => {
|
|
6383
6493
|
const { info, data, onClickCopy } = args;
|
|
6384
|
-
return /* @__PURE__ */ (0,
|
|
6385
|
-
/* @__PURE__ */ (0,
|
|
6386
|
-
/* @__PURE__ */ (0,
|
|
6494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes15.DataList.Item, { children: [
|
|
6495
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
6496
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
6387
6497
|
] }, info.label);
|
|
6388
6498
|
};
|
|
6389
6499
|
function CopyButton(props) {
|
|
6390
6500
|
const { value, onClickCopy } = props;
|
|
6391
|
-
return /* @__PURE__ */ (0,
|
|
6501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6392
6502
|
Button,
|
|
6393
6503
|
{
|
|
6394
6504
|
color: "gray",
|
|
@@ -6397,13 +6507,13 @@ function CopyButton(props) {
|
|
|
6397
6507
|
},
|
|
6398
6508
|
style: { marginLeft: "0", marginTop: "0" },
|
|
6399
6509
|
variant: "transparent",
|
|
6400
|
-
children: /* @__PURE__ */ (0,
|
|
6510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons10.CopyIcon, {})
|
|
6401
6511
|
}
|
|
6402
6512
|
);
|
|
6403
6513
|
}
|
|
6404
6514
|
|
|
6405
6515
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
6406
|
-
var
|
|
6516
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
6407
6517
|
function CoachingCustomerInfoMedium({
|
|
6408
6518
|
customer,
|
|
6409
6519
|
session,
|
|
@@ -6411,28 +6521,28 @@ function CoachingCustomerInfoMedium({
|
|
|
6411
6521
|
badge,
|
|
6412
6522
|
onClickCopy
|
|
6413
6523
|
}) {
|
|
6414
|
-
return /* @__PURE__ */ (0,
|
|
6415
|
-
/* @__PURE__ */ (0,
|
|
6416
|
-
/* @__PURE__ */ (0,
|
|
6417
|
-
/* @__PURE__ */ (0,
|
|
6524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6525
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes6.Box, { children: [
|
|
6526
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6418
6528
|
badge
|
|
6419
6529
|
] }),
|
|
6420
|
-
/* @__PURE__ */ (0,
|
|
6530
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6421
6531
|
] }),
|
|
6422
6532
|
children,
|
|
6423
|
-
/* @__PURE__ */ (0,
|
|
6533
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
6424
6534
|
(el) => renderDataListItem({
|
|
6425
6535
|
info: el,
|
|
6426
6536
|
data: session,
|
|
6427
6537
|
onClickCopy
|
|
6428
6538
|
})
|
|
6429
6539
|
) }) }),
|
|
6430
|
-
/* @__PURE__ */ (0,
|
|
6431
|
-
/* @__PURE__ */ (0,
|
|
6432
|
-
/* @__PURE__ */ (0,
|
|
6540
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
6541
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
6542
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes39.Separator, { size: "4" })
|
|
6433
6543
|
] }),
|
|
6434
|
-
/* @__PURE__ */ (0,
|
|
6435
|
-
return /* @__PURE__ */ (0,
|
|
6544
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
6545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { children: renderItem({
|
|
6436
6546
|
info: el,
|
|
6437
6547
|
data: customer,
|
|
6438
6548
|
onClickCopy
|
|
@@ -6442,7 +6552,7 @@ function CoachingCustomerInfoMedium({
|
|
|
6442
6552
|
}
|
|
6443
6553
|
|
|
6444
6554
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
6445
|
-
var
|
|
6555
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6446
6556
|
function CoachingCustomerInfoLarge({
|
|
6447
6557
|
customer,
|
|
6448
6558
|
session,
|
|
@@ -6450,24 +6560,24 @@ function CoachingCustomerInfoLarge({
|
|
|
6450
6560
|
badge,
|
|
6451
6561
|
onClickCopy
|
|
6452
6562
|
}) {
|
|
6453
|
-
return /* @__PURE__ */ (0,
|
|
6454
|
-
/* @__PURE__ */ (0,
|
|
6455
|
-
/* @__PURE__ */ (0,
|
|
6456
|
-
/* @__PURE__ */ (0,
|
|
6563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6564
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes6.Box, { children: [
|
|
6565
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6566
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6457
6567
|
badge
|
|
6458
6568
|
] }),
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6460
6570
|
] }),
|
|
6461
6571
|
children,
|
|
6462
|
-
/* @__PURE__ */ (0,
|
|
6572
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
6463
6573
|
(el) => renderDataListItem({
|
|
6464
6574
|
info: el,
|
|
6465
6575
|
data: session,
|
|
6466
6576
|
onClickCopy
|
|
6467
6577
|
})
|
|
6468
6578
|
) }) }),
|
|
6469
|
-
/* @__PURE__ */ (0,
|
|
6470
|
-
/* @__PURE__ */ (0,
|
|
6579
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes39.Separator, { size: "4" }),
|
|
6580
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
6471
6581
|
(info) => renderDataListItem({
|
|
6472
6582
|
info,
|
|
6473
6583
|
data: customer,
|
|
@@ -6478,19 +6588,19 @@ function CoachingCustomerInfoLarge({
|
|
|
6478
6588
|
}
|
|
6479
6589
|
|
|
6480
6590
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
6481
|
-
var
|
|
6591
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6482
6592
|
function CoachingCustomerInfo(props) {
|
|
6483
|
-
return /* @__PURE__ */ (0,
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6486
|
-
/* @__PURE__ */ (0,
|
|
6593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
6595
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
6596
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
6487
6597
|
] });
|
|
6488
6598
|
}
|
|
6489
6599
|
|
|
6490
6600
|
// src/app/platform/goal-manage-card-read.tsx
|
|
6491
|
-
var
|
|
6601
|
+
var import_react47 = require("react");
|
|
6492
6602
|
var import_date_fns4 = require("date-fns");
|
|
6493
|
-
var
|
|
6603
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6494
6604
|
function GoalManageCardRead(props) {
|
|
6495
6605
|
const {
|
|
6496
6606
|
title,
|
|
@@ -6504,12 +6614,12 @@ function GoalManageCardRead(props) {
|
|
|
6504
6614
|
onClickIncomplete,
|
|
6505
6615
|
onClickComplete
|
|
6506
6616
|
} = props;
|
|
6507
|
-
const [open, setOpen] = (0,
|
|
6508
|
-
const onClickOpen = (0,
|
|
6617
|
+
const [open, setOpen] = (0, import_react47.useState)(Boolean(defaultOpen));
|
|
6618
|
+
const onClickOpen = (0, import_react47.useCallback)(() => {
|
|
6509
6619
|
setOpen((p) => !p);
|
|
6510
6620
|
}, []);
|
|
6511
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
6512
|
-
const badgeMeta = (0,
|
|
6621
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
6622
|
+
const badgeMeta = (0, import_react47.useMemo)(() => {
|
|
6513
6623
|
if (!completed && dueDate) {
|
|
6514
6624
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
6515
6625
|
return {
|
|
@@ -6520,41 +6630,41 @@ function GoalManageCardRead(props) {
|
|
|
6520
6630
|
}
|
|
6521
6631
|
return null;
|
|
6522
6632
|
}, [completed, dueDate]);
|
|
6523
|
-
const renderSubTitle = (0,
|
|
6524
|
-
return /* @__PURE__ */ (0,
|
|
6633
|
+
const renderSubTitle = (0, import_react47.useCallback)((subTitle) => {
|
|
6634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
6525
6635
|
}, []);
|
|
6526
|
-
const renderSubContent = (0,
|
|
6527
|
-
return /* @__PURE__ */ (0,
|
|
6636
|
+
const renderSubContent = (0, import_react47.useCallback)((content) => {
|
|
6637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
6528
6638
|
}, []);
|
|
6529
|
-
const renderCompleteButton = (0,
|
|
6639
|
+
const renderCompleteButton = (0, import_react47.useCallback)(() => {
|
|
6530
6640
|
if (completed) {
|
|
6531
|
-
return /* @__PURE__ */ (0,
|
|
6641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
6532
6642
|
}
|
|
6533
|
-
return /* @__PURE__ */ (0,
|
|
6534
|
-
/* @__PURE__ */ (0,
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6644
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { size: "small", children: [
|
|
6645
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.RocketIcon, {}),
|
|
6536
6646
|
"\uB2EC\uC131\uD558\uAE30"
|
|
6537
6647
|
] }) }),
|
|
6538
|
-
/* @__PURE__ */ (0,
|
|
6539
|
-
/* @__PURE__ */ (0,
|
|
6540
|
-
/* @__PURE__ */ (0,
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6542
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6649
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6650
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6651
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6652
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
6543
6653
|
] })
|
|
6544
6654
|
] })
|
|
6545
6655
|
] });
|
|
6546
6656
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
6547
|
-
return /* @__PURE__ */ (0,
|
|
6548
|
-
/* @__PURE__ */ (0,
|
|
6549
|
-
/* @__PURE__ */ (0,
|
|
6550
|
-
/* @__PURE__ */ (0,
|
|
6551
|
-
/* @__PURE__ */ (0,
|
|
6552
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
6553
|
-
/* @__PURE__ */ (0,
|
|
6657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
6658
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
6659
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
6662
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
6663
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
6554
6664
|
] }),
|
|
6555
6665
|
renderCompleteButton()
|
|
6556
6666
|
] }),
|
|
6557
|
-
open ? /* @__PURE__ */ (0,
|
|
6667
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6558
6668
|
import_themes39.Separator,
|
|
6559
6669
|
{
|
|
6560
6670
|
mb: "4",
|
|
@@ -6563,37 +6673,37 @@ function GoalManageCardRead(props) {
|
|
|
6563
6673
|
style: { gridColumnStart: "span 2" }
|
|
6564
6674
|
}
|
|
6565
6675
|
) : null,
|
|
6566
|
-
/* @__PURE__ */ (0,
|
|
6567
|
-
/* @__PURE__ */ (0,
|
|
6568
|
-
/* @__PURE__ */ (0,
|
|
6676
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Collapse, { open, children: [
|
|
6677
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes6.Box, { children: [
|
|
6569
6679
|
renderSubTitle(
|
|
6570
6680
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
6571
6681
|
),
|
|
6572
6682
|
renderSubContent(expectedEffect)
|
|
6573
6683
|
] }),
|
|
6574
|
-
/* @__PURE__ */ (0,
|
|
6684
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes6.Box, { children: [
|
|
6575
6685
|
renderSubTitle(
|
|
6576
6686
|
"\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"
|
|
6577
6687
|
),
|
|
6578
6688
|
renderSubContent(huddle)
|
|
6579
6689
|
] })
|
|
6580
6690
|
] }),
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6582
|
-
/* @__PURE__ */ (0,
|
|
6583
|
-
/* @__PURE__ */ (0,
|
|
6584
|
-
/* @__PURE__ */ (0,
|
|
6691
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
6692
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
6694
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.TrashIcon, {}),
|
|
6585
6695
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
6586
6696
|
] }) }),
|
|
6587
|
-
/* @__PURE__ */ (0,
|
|
6588
|
-
/* @__PURE__ */ (0,
|
|
6589
|
-
/* @__PURE__ */ (0,
|
|
6590
|
-
/* @__PURE__ */ (0,
|
|
6591
|
-
/* @__PURE__ */ (0,
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6700
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6701
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
6592
6702
|
] })
|
|
6593
6703
|
] })
|
|
6594
6704
|
] }),
|
|
6595
|
-
/* @__PURE__ */ (0,
|
|
6596
|
-
/* @__PURE__ */ (0,
|
|
6705
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
6706
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
6597
6707
|
"\uC218\uC815\uD558\uAE30"
|
|
6598
6708
|
] })
|
|
6599
6709
|
] })
|
|
@@ -6602,9 +6712,9 @@ function GoalManageCardRead(props) {
|
|
|
6602
6712
|
}
|
|
6603
6713
|
|
|
6604
6714
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
6605
|
-
var
|
|
6715
|
+
var import_react48 = require("react");
|
|
6606
6716
|
var import_date_fns5 = require("date-fns");
|
|
6607
|
-
var
|
|
6717
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6608
6718
|
var initialValues = {
|
|
6609
6719
|
goal: "",
|
|
6610
6720
|
effect: "",
|
|
@@ -6615,8 +6725,8 @@ var dummyFn = () => {
|
|
|
6615
6725
|
};
|
|
6616
6726
|
function GoalManageCardEdit(props) {
|
|
6617
6727
|
const { defaultValues, errors } = props;
|
|
6618
|
-
const [values, setValues] = (0,
|
|
6619
|
-
const onChange = (0,
|
|
6728
|
+
const [values, setValues] = (0, import_react48.useState)(defaultValues || initialValues);
|
|
6729
|
+
const onChange = (0, import_react48.useCallback)(
|
|
6620
6730
|
(v) => {
|
|
6621
6731
|
var _a;
|
|
6622
6732
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -6624,20 +6734,20 @@ function GoalManageCardEdit(props) {
|
|
|
6624
6734
|
},
|
|
6625
6735
|
[props]
|
|
6626
6736
|
);
|
|
6627
|
-
const onClickInit = (0,
|
|
6737
|
+
const onClickInit = (0, import_react48.useCallback)(() => {
|
|
6628
6738
|
var _a;
|
|
6629
6739
|
setValues(initialValues);
|
|
6630
6740
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
6631
6741
|
}, [defaultValues, props]);
|
|
6632
|
-
const onClickSubmit = (0,
|
|
6742
|
+
const onClickSubmit = (0, import_react48.useCallback)(() => {
|
|
6633
6743
|
var _a;
|
|
6634
6744
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
6635
6745
|
}, [props, values]);
|
|
6636
|
-
return /* @__PURE__ */ (0,
|
|
6637
|
-
/* @__PURE__ */ (0,
|
|
6638
|
-
/* @__PURE__ */ (0,
|
|
6639
|
-
/* @__PURE__ */ (0,
|
|
6640
|
-
/* @__PURE__ */ (0,
|
|
6746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
6747
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6748
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "title", children: [
|
|
6749
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6750
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6641
6751
|
TextField.Root,
|
|
6642
6752
|
{
|
|
6643
6753
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -6648,11 +6758,11 @@ function GoalManageCardEdit(props) {
|
|
|
6648
6758
|
value: values.goal
|
|
6649
6759
|
}
|
|
6650
6760
|
),
|
|
6651
|
-
/* @__PURE__ */ (0,
|
|
6761
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
6652
6762
|
] }),
|
|
6653
|
-
/* @__PURE__ */ (0,
|
|
6654
|
-
/* @__PURE__ */ (0,
|
|
6655
|
-
/* @__PURE__ */ (0,
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "effect", children: [
|
|
6764
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6656
6766
|
TextArea,
|
|
6657
6767
|
{
|
|
6658
6768
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -6664,11 +6774,11 @@ function GoalManageCardEdit(props) {
|
|
|
6664
6774
|
value: values.effect
|
|
6665
6775
|
}
|
|
6666
6776
|
),
|
|
6667
|
-
/* @__PURE__ */ (0,
|
|
6777
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
6668
6778
|
] }),
|
|
6669
|
-
/* @__PURE__ */ (0,
|
|
6670
|
-
/* @__PURE__ */ (0,
|
|
6671
|
-
/* @__PURE__ */ (0,
|
|
6779
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "huddle", children: [
|
|
6780
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
6781
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6672
6782
|
TextArea,
|
|
6673
6783
|
{
|
|
6674
6784
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -6682,11 +6792,11 @@ function GoalManageCardEdit(props) {
|
|
|
6682
6792
|
value: values.huddle
|
|
6683
6793
|
}
|
|
6684
6794
|
),
|
|
6685
|
-
/* @__PURE__ */ (0,
|
|
6795
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
6686
6796
|
] }),
|
|
6687
|
-
/* @__PURE__ */ (0,
|
|
6688
|
-
/* @__PURE__ */ (0,
|
|
6689
|
-
/* @__PURE__ */ (0,
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6690
6800
|
DatePickerButton,
|
|
6691
6801
|
{
|
|
6692
6802
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -6697,11 +6807,11 @@ function GoalManageCardEdit(props) {
|
|
|
6697
6807
|
selected: values.dueDate
|
|
6698
6808
|
}
|
|
6699
6809
|
),
|
|
6700
|
-
/* @__PURE__ */ (0,
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
6701
6811
|
] })
|
|
6702
6812
|
] }),
|
|
6703
|
-
/* @__PURE__ */ (0,
|
|
6704
|
-
/* @__PURE__ */ (0,
|
|
6813
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
6814
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6705
6815
|
Button,
|
|
6706
6816
|
{
|
|
6707
6817
|
color: "gray",
|
|
@@ -6712,18 +6822,18 @@ function GoalManageCardEdit(props) {
|
|
|
6712
6822
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6713
6823
|
}
|
|
6714
6824
|
),
|
|
6715
|
-
/* @__PURE__ */ (0,
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6716
6826
|
] })
|
|
6717
6827
|
] }) });
|
|
6718
6828
|
}
|
|
6719
6829
|
|
|
6720
6830
|
// src/app/platform/session-card.tsx
|
|
6721
|
-
var
|
|
6831
|
+
var import_react51 = require("react");
|
|
6722
6832
|
var import_date_fns6 = require("date-fns");
|
|
6723
6833
|
|
|
6724
6834
|
// src/app/platform/edit-coaching-time.tsx
|
|
6725
|
-
var
|
|
6726
|
-
var
|
|
6835
|
+
var import_react49 = require("react");
|
|
6836
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
6727
6837
|
var getValueFromDefaultValue = (args) => {
|
|
6728
6838
|
return {
|
|
6729
6839
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -6743,14 +6853,14 @@ var getDateFromValue = (date, time) => {
|
|
|
6743
6853
|
};
|
|
6744
6854
|
function EditCoachingTime(props) {
|
|
6745
6855
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
6746
|
-
const [values, setValues] = (0,
|
|
6856
|
+
const [values, setValues] = (0, import_react49.useState)(() => {
|
|
6747
6857
|
return getValueFromDefaultValue({
|
|
6748
6858
|
startAt: defaultStartAt,
|
|
6749
6859
|
endAt: defaultEndAt
|
|
6750
6860
|
});
|
|
6751
6861
|
});
|
|
6752
|
-
const [timeError, setTimeError] = (0,
|
|
6753
|
-
const checkTimeError = (0,
|
|
6862
|
+
const [timeError, setTimeError] = (0, import_react49.useState)("");
|
|
6863
|
+
const checkTimeError = (0, import_react49.useCallback)(
|
|
6754
6864
|
(startTime, endTime) => {
|
|
6755
6865
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
6756
6866
|
if (error) {
|
|
@@ -6761,7 +6871,7 @@ function EditCoachingTime(props) {
|
|
|
6761
6871
|
},
|
|
6762
6872
|
[]
|
|
6763
6873
|
);
|
|
6764
|
-
const onChangeStartTime = (0,
|
|
6874
|
+
const onChangeStartTime = (0, import_react49.useCallback)(
|
|
6765
6875
|
(v) => {
|
|
6766
6876
|
checkTimeError(v, values.endTime);
|
|
6767
6877
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6770,7 +6880,7 @@ function EditCoachingTime(props) {
|
|
|
6770
6880
|
},
|
|
6771
6881
|
[checkTimeError, values.endTime]
|
|
6772
6882
|
);
|
|
6773
|
-
const onChangeEndTime = (0,
|
|
6883
|
+
const onChangeEndTime = (0, import_react49.useCallback)(
|
|
6774
6884
|
(v) => {
|
|
6775
6885
|
checkTimeError(values.startTime, v);
|
|
6776
6886
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6779,12 +6889,12 @@ function EditCoachingTime(props) {
|
|
|
6779
6889
|
},
|
|
6780
6890
|
[checkTimeError, values.startTime]
|
|
6781
6891
|
);
|
|
6782
|
-
const onChangeDate = (0,
|
|
6892
|
+
const onChangeDate = (0, import_react49.useCallback)((date) => {
|
|
6783
6893
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
6784
6894
|
date
|
|
6785
6895
|
}));
|
|
6786
6896
|
}, []);
|
|
6787
|
-
const onClickSave = (0,
|
|
6897
|
+
const onClickSave = (0, import_react49.useCallback)(() => {
|
|
6788
6898
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
6789
6899
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
6790
6900
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -6793,10 +6903,10 @@ function EditCoachingTime(props) {
|
|
|
6793
6903
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
6794
6904
|
}
|
|
6795
6905
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
6796
|
-
return /* @__PURE__ */ (0,
|
|
6797
|
-
/* @__PURE__ */ (0,
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6799
|
-
/* @__PURE__ */ (0,
|
|
6906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Form.Root, { children: [
|
|
6907
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Form.Field, { name: "date", children: [
|
|
6908
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
6909
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6800
6910
|
DatePickerButton,
|
|
6801
6911
|
{
|
|
6802
6912
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -6806,7 +6916,7 @@ function EditCoachingTime(props) {
|
|
|
6806
6916
|
}
|
|
6807
6917
|
)
|
|
6808
6918
|
] }),
|
|
6809
|
-
/* @__PURE__ */ (0,
|
|
6919
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
6810
6920
|
import_themes23.Grid,
|
|
6811
6921
|
{
|
|
6812
6922
|
align: "center",
|
|
@@ -6821,10 +6931,10 @@ function EditCoachingTime(props) {
|
|
|
6821
6931
|
mt: "5",
|
|
6822
6932
|
width: "100%",
|
|
6823
6933
|
children: [
|
|
6824
|
-
/* @__PURE__ */ (0,
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
6826
|
-
/* @__PURE__ */ (0,
|
|
6827
|
-
/* @__PURE__ */ (0,
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", {}),
|
|
6936
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
6937
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6828
6938
|
TimeSelect,
|
|
6829
6939
|
{
|
|
6830
6940
|
onValueChange: onChangeStartTime,
|
|
@@ -6832,8 +6942,8 @@ function EditCoachingTime(props) {
|
|
|
6832
6942
|
value: values.startTime
|
|
6833
6943
|
}
|
|
6834
6944
|
),
|
|
6835
|
-
/* @__PURE__ */ (0,
|
|
6836
|
-
/* @__PURE__ */ (0,
|
|
6945
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes39.Separator, {}) }),
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6837
6947
|
TimeSelect,
|
|
6838
6948
|
{
|
|
6839
6949
|
onValueChange: onChangeEndTime,
|
|
@@ -6841,36 +6951,36 @@ function EditCoachingTime(props) {
|
|
|
6841
6951
|
value: values.endTime
|
|
6842
6952
|
}
|
|
6843
6953
|
),
|
|
6844
|
-
/* @__PURE__ */ (0,
|
|
6954
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
6845
6955
|
]
|
|
6846
6956
|
}
|
|
6847
6957
|
),
|
|
6848
|
-
/* @__PURE__ */ (0,
|
|
6849
|
-
/* @__PURE__ */ (0,
|
|
6850
|
-
/* @__PURE__ */ (0,
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
6959
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
6960
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6851
6961
|
] })
|
|
6852
6962
|
] }) });
|
|
6853
6963
|
}
|
|
6854
6964
|
|
|
6855
6965
|
// src/app/platform/edit-service-type.tsx
|
|
6856
|
-
var
|
|
6966
|
+
var import_react50 = require("react");
|
|
6857
6967
|
|
|
6858
6968
|
// src/app/platform/on-offline-radio-card.tsx
|
|
6859
|
-
var
|
|
6860
|
-
var
|
|
6969
|
+
var import_react_icons11 = require("@radix-ui/react-icons");
|
|
6970
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
6861
6971
|
var SERVICE_TYPE = {
|
|
6862
6972
|
onlineCoaching: "onlineCoaching",
|
|
6863
6973
|
offlineCoaching: "offlineCoaching"
|
|
6864
6974
|
};
|
|
6865
6975
|
var breakpoint = "sm";
|
|
6866
6976
|
function HideSmallBox(props) {
|
|
6867
|
-
return /* @__PURE__ */ (0,
|
|
6977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
6868
6978
|
}
|
|
6869
6979
|
function OnOfflineRadioCard(props) {
|
|
6870
6980
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
6871
6981
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
6872
6982
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
6873
|
-
return /* @__PURE__ */ (0,
|
|
6983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
6874
6984
|
RadioButtonCard.Root,
|
|
6875
6985
|
__spreadProps(__spreadValues({
|
|
6876
6986
|
RadioWrapper: Wrapper,
|
|
@@ -6879,13 +6989,13 @@ function OnOfflineRadioCard(props) {
|
|
|
6879
6989
|
justify
|
|
6880
6990
|
}, props), {
|
|
6881
6991
|
children: [
|
|
6882
|
-
/* @__PURE__ */ (0,
|
|
6883
|
-
/* @__PURE__ */ (0,
|
|
6884
|
-
/* @__PURE__ */ (0,
|
|
6992
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6993
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_icons11.GlobeIcon, {}) }),
|
|
6994
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
6885
6995
|
] }) }),
|
|
6886
|
-
/* @__PURE__ */ (0,
|
|
6887
|
-
/* @__PURE__ */ (0,
|
|
6888
|
-
/* @__PURE__ */ (0,
|
|
6996
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6997
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_icons11.BackpackIcon, {}) }),
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
6889
6999
|
] }) })
|
|
6890
7000
|
]
|
|
6891
7001
|
})
|
|
@@ -6893,18 +7003,18 @@ function OnOfflineRadioCard(props) {
|
|
|
6893
7003
|
}
|
|
6894
7004
|
|
|
6895
7005
|
// src/app/platform/edit-service-type.tsx
|
|
6896
|
-
var
|
|
7006
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6897
7007
|
function EditServiceType(props) {
|
|
6898
7008
|
const { defaultServiceType, onClickCancel } = props;
|
|
6899
|
-
const [sessionType, setSessionType] = (0,
|
|
7009
|
+
const [sessionType, setSessionType] = (0, import_react50.useState)(
|
|
6900
7010
|
defaultServiceType
|
|
6901
7011
|
);
|
|
6902
|
-
const onClickSave = (0,
|
|
7012
|
+
const onClickSave = (0, import_react50.useCallback)(() => {
|
|
6903
7013
|
var _a;
|
|
6904
7014
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
6905
7015
|
}, [props, sessionType]);
|
|
6906
|
-
return /* @__PURE__ */ (0,
|
|
6907
|
-
/* @__PURE__ */ (0,
|
|
7016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes6.Box, { children: [
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6908
7018
|
Typo,
|
|
6909
7019
|
{
|
|
6910
7020
|
as: "p",
|
|
@@ -6914,16 +7024,16 @@ function EditServiceType(props) {
|
|
|
6914
7024
|
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"
|
|
6915
7025
|
}
|
|
6916
7026
|
),
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
6918
|
-
/* @__PURE__ */ (0,
|
|
6919
|
-
/* @__PURE__ */ (0,
|
|
6920
|
-
/* @__PURE__ */ (0,
|
|
7027
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
7028
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
7029
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
7030
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6921
7031
|
] })
|
|
6922
7032
|
] });
|
|
6923
7033
|
}
|
|
6924
7034
|
|
|
6925
7035
|
// src/app/platform/session-card.tsx
|
|
6926
|
-
var
|
|
7036
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
6927
7037
|
var preventDefault4 = (e) => {
|
|
6928
7038
|
e.preventDefault();
|
|
6929
7039
|
};
|
|
@@ -6953,33 +7063,33 @@ function SessionCard(props) {
|
|
|
6953
7063
|
"endAt",
|
|
6954
7064
|
"sessionType"
|
|
6955
7065
|
]);
|
|
6956
|
-
const renderEditButton = (0,
|
|
6957
|
-
return /* @__PURE__ */ (0,
|
|
7066
|
+
const renderEditButton = (0, import_react51.useCallback)(() => {
|
|
7067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
6958
7068
|
}, []);
|
|
6959
|
-
const sessionTimeStr = (0,
|
|
7069
|
+
const sessionTimeStr = (0, import_react51.useMemo)(() => {
|
|
6960
7070
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
6961
7071
|
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")}`;
|
|
6962
7072
|
}, [startAt, endAt]);
|
|
6963
|
-
return /* @__PURE__ */ (0,
|
|
6964
|
-
/* @__PURE__ */ (0,
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
7073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
7074
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
7075
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
6966
7076
|
TitleExtra,
|
|
6967
|
-
error ? /* @__PURE__ */ (0,
|
|
7077
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
6968
7078
|
] }),
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
6970
|
-
/* @__PURE__ */ (0,
|
|
6971
|
-
/* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
7079
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Root, { children: [
|
|
7080
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Item, { children: [
|
|
7081
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
7082
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6973
7083
|
sessionTimeStr,
|
|
6974
|
-
editable ? /* @__PURE__ */ (0,
|
|
6975
|
-
/* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
7084
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Dialog.Root, { children: [
|
|
7085
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
7086
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6977
7087
|
Dialog.Content,
|
|
6978
7088
|
{
|
|
6979
7089
|
onOpenAutoFocus: preventDefault4,
|
|
6980
7090
|
style: { overflow: "visible" },
|
|
6981
7091
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
6982
|
-
children: /* @__PURE__ */ (0,
|
|
7092
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6983
7093
|
EditCoachingTime,
|
|
6984
7094
|
{
|
|
6985
7095
|
defaultEndAt: endAt,
|
|
@@ -6992,18 +7102,18 @@ function SessionCard(props) {
|
|
|
6992
7102
|
] }) : null
|
|
6993
7103
|
] })
|
|
6994
7104
|
] }),
|
|
6995
|
-
/* @__PURE__ */ (0,
|
|
6996
|
-
/* @__PURE__ */ (0,
|
|
6997
|
-
/* @__PURE__ */ (0,
|
|
6998
|
-
/* @__PURE__ */ (0,
|
|
7105
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
7106
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Item, { children: [
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
7108
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6999
7109
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
7000
|
-
editable ? /* @__PURE__ */ (0,
|
|
7001
|
-
/* @__PURE__ */ (0,
|
|
7002
|
-
/* @__PURE__ */ (0,
|
|
7110
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Dialog.Root, { children: [
|
|
7111
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
7112
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
7003
7113
|
Dialog.Content,
|
|
7004
7114
|
{
|
|
7005
7115
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
7006
|
-
children: /* @__PURE__ */ (0,
|
|
7116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
7007
7117
|
EditServiceType,
|
|
7008
7118
|
{
|
|
7009
7119
|
defaultServiceType: sessionType,
|
|
@@ -7015,33 +7125,33 @@ function SessionCard(props) {
|
|
|
7015
7125
|
] }) : null
|
|
7016
7126
|
] })
|
|
7017
7127
|
] }),
|
|
7018
|
-
/* @__PURE__ */ (0,
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
7019
7129
|
] })
|
|
7020
7130
|
] })
|
|
7021
7131
|
] }) }));
|
|
7022
7132
|
}
|
|
7023
7133
|
|
|
7024
7134
|
// src/app/platform/coach-question-list.tsx
|
|
7025
|
-
var
|
|
7135
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
7026
7136
|
function QuestionItem({ question, answer }) {
|
|
7027
|
-
return /* @__PURE__ */ (0,
|
|
7028
|
-
/* @__PURE__ */ (0,
|
|
7029
|
-
/* @__PURE__ */ (0,
|
|
7137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes6.Box, { children: [
|
|
7138
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
7139
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
7030
7140
|
] }, question);
|
|
7031
7141
|
}
|
|
7032
7142
|
function CoachQuestionList({
|
|
7033
7143
|
questions
|
|
7034
7144
|
}) {
|
|
7035
|
-
return /* @__PURE__ */ (0,
|
|
7036
|
-
return /* @__PURE__ */ (0,
|
|
7145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
7146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
7037
7147
|
}) });
|
|
7038
7148
|
}
|
|
7039
7149
|
|
|
7040
7150
|
// src/app/platform/reservation-card.tsx
|
|
7041
|
-
var
|
|
7151
|
+
var import_react52 = require("react");
|
|
7042
7152
|
var import_date_fns7 = require("date-fns");
|
|
7043
7153
|
var import_locale2 = require("date-fns/locale");
|
|
7044
|
-
var
|
|
7154
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
7045
7155
|
function ReservationCard(props) {
|
|
7046
7156
|
const {
|
|
7047
7157
|
sessionNumber,
|
|
@@ -7056,29 +7166,29 @@ function ReservationCard(props) {
|
|
|
7056
7166
|
onClickCancel,
|
|
7057
7167
|
onClickCompleteSession
|
|
7058
7168
|
} = props;
|
|
7059
|
-
const [editValues, setEditValues] = (0,
|
|
7169
|
+
const [editValues, setEditValues] = (0, import_react52.useState)({
|
|
7060
7170
|
date: props.defaultTime,
|
|
7061
7171
|
type: props.defaultType
|
|
7062
7172
|
});
|
|
7063
7173
|
const date = readonly ? defaultTime : editValues.date;
|
|
7064
7174
|
const type = readonly ? defaultType : editValues.type;
|
|
7065
|
-
const onClickSave = (0,
|
|
7175
|
+
const onClickSave = (0, import_react52.useCallback)(() => {
|
|
7066
7176
|
var _a;
|
|
7067
7177
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
7068
7178
|
}, [editValues, props]);
|
|
7069
|
-
const onClickReset = (0,
|
|
7179
|
+
const onClickReset = (0, import_react52.useCallback)(() => {
|
|
7070
7180
|
setEditValues({
|
|
7071
7181
|
date: defaultTime,
|
|
7072
7182
|
type: defaultType
|
|
7073
7183
|
});
|
|
7074
7184
|
}, [defaultTime, defaultType]);
|
|
7075
|
-
const ActionButtons = (0,
|
|
7185
|
+
const ActionButtons = (0, import_react52.useMemo)(() => {
|
|
7076
7186
|
if (readonly) {
|
|
7077
|
-
return /* @__PURE__ */ (0,
|
|
7187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
7078
7188
|
}
|
|
7079
|
-
return /* @__PURE__ */ (0,
|
|
7189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
7080
7190
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
7081
|
-
const onChangeDate = (0,
|
|
7191
|
+
const onChangeDate = (0, import_react52.useCallback)((newDate) => {
|
|
7082
7192
|
if (!newDate) return;
|
|
7083
7193
|
setEditValues((prev) => {
|
|
7084
7194
|
return __spreadProps(__spreadValues({}, prev), {
|
|
@@ -7086,17 +7196,17 @@ function ReservationCard(props) {
|
|
|
7086
7196
|
});
|
|
7087
7197
|
});
|
|
7088
7198
|
}, []);
|
|
7089
|
-
const onChangeType = (0,
|
|
7199
|
+
const onChangeType = (0, import_react52.useCallback)((newType) => {
|
|
7090
7200
|
setEditValues((prev) => {
|
|
7091
7201
|
return __spreadProps(__spreadValues({}, prev), {
|
|
7092
7202
|
type: newType
|
|
7093
7203
|
});
|
|
7094
7204
|
});
|
|
7095
7205
|
}, []);
|
|
7096
|
-
const formatDate = (0,
|
|
7206
|
+
const formatDate = (0, import_react52.useCallback)((v) => {
|
|
7097
7207
|
return (0, import_date_fns7.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C(EEE) aa h:mm", { locale: import_locale2.ko });
|
|
7098
7208
|
}, []);
|
|
7099
|
-
(0,
|
|
7209
|
+
(0, import_react52.useEffect)(() => {
|
|
7100
7210
|
if (!minTime || !editValues.date || readonly) return;
|
|
7101
7211
|
if (editValues.date < minTime) {
|
|
7102
7212
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -7107,7 +7217,7 @@ function ReservationCard(props) {
|
|
|
7107
7217
|
});
|
|
7108
7218
|
}
|
|
7109
7219
|
}, [editValues, minTime, readonly]);
|
|
7110
|
-
(0,
|
|
7220
|
+
(0, import_react52.useEffect)(() => {
|
|
7111
7221
|
if (!maxTime || !editValues.date || readonly) return;
|
|
7112
7222
|
if (editValues.date > maxTime) {
|
|
7113
7223
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -7118,39 +7228,39 @@ function ReservationCard(props) {
|
|
|
7118
7228
|
});
|
|
7119
7229
|
}
|
|
7120
7230
|
}, [editValues, maxTime, readonly]);
|
|
7121
|
-
return /* @__PURE__ */ (0,
|
|
7231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
7122
7232
|
Card,
|
|
7123
7233
|
{
|
|
7124
7234
|
error: Boolean(error),
|
|
7125
7235
|
size: "3",
|
|
7126
7236
|
style: { overflow: "visible", contain: "initial" },
|
|
7127
7237
|
children: [
|
|
7128
|
-
/* @__PURE__ */ (0,
|
|
7129
|
-
/* @__PURE__ */ (0,
|
|
7238
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
7239
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
7130
7240
|
import_themes23.Grid,
|
|
7131
7241
|
{
|
|
7132
7242
|
align: "center",
|
|
7133
7243
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
7134
7244
|
gapY: "2",
|
|
7135
7245
|
children: [
|
|
7136
|
-
/* @__PURE__ */ (0,
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7246
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
7247
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Heading2, { variant: "heading4", children: [
|
|
7138
7248
|
customerName || "-",
|
|
7139
7249
|
"\uB2D8 ",
|
|
7140
7250
|
sessionNumber || "-",
|
|
7141
7251
|
"\uD68C\uCC28 \uC138\uC158"
|
|
7142
7252
|
] }),
|
|
7143
|
-
/* @__PURE__ */ (0,
|
|
7253
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
7144
7254
|
] }),
|
|
7145
|
-
error ? /* @__PURE__ */ (0,
|
|
7255
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
7146
7256
|
]
|
|
7147
7257
|
}
|
|
7148
7258
|
),
|
|
7149
|
-
/* @__PURE__ */ (0,
|
|
7259
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
7150
7260
|
] }),
|
|
7151
|
-
/* @__PURE__ */ (0,
|
|
7152
|
-
/* @__PURE__ */ (0,
|
|
7153
|
-
/* @__PURE__ */ (0,
|
|
7261
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7262
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
7263
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7154
7264
|
DatePickerButton,
|
|
7155
7265
|
{
|
|
7156
7266
|
disabled: readonly,
|
|
@@ -7164,8 +7274,8 @@ function ReservationCard(props) {
|
|
|
7164
7274
|
size: "large"
|
|
7165
7275
|
}
|
|
7166
7276
|
),
|
|
7167
|
-
/* @__PURE__ */ (0,
|
|
7168
|
-
/* @__PURE__ */ (0,
|
|
7277
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }),
|
|
7278
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7169
7279
|
OnOfflineRadioCard,
|
|
7170
7280
|
{
|
|
7171
7281
|
disabled: readonly,
|
|
@@ -7174,8 +7284,8 @@ function ReservationCard(props) {
|
|
|
7174
7284
|
value: type
|
|
7175
7285
|
}
|
|
7176
7286
|
),
|
|
7177
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7287
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
7288
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7179
7289
|
Button,
|
|
7180
7290
|
{
|
|
7181
7291
|
color: "gray",
|
|
@@ -7185,10 +7295,10 @@ function ReservationCard(props) {
|
|
|
7185
7295
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
7186
7296
|
}
|
|
7187
7297
|
),
|
|
7188
|
-
/* @__PURE__ */ (0,
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
7189
7299
|
] })
|
|
7190
7300
|
] }) }),
|
|
7191
|
-
readonly ? /* @__PURE__ */ (0,
|
|
7301
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7192
7302
|
import_themes6.Box,
|
|
7193
7303
|
{
|
|
7194
7304
|
mt: "5",
|
|
@@ -7196,14 +7306,14 @@ function ReservationCard(props) {
|
|
|
7196
7306
|
py: "4",
|
|
7197
7307
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
7198
7308
|
width: "100%",
|
|
7199
|
-
children: /* @__PURE__ */ (0,
|
|
7200
|
-
/* @__PURE__ */ (0,
|
|
7309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Typo, { children: [
|
|
7201
7311
|
sessionNumber || "-",
|
|
7202
7312
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
7203
7313
|
] }),
|
|
7204
|
-
/* @__PURE__ */ (0,
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
7205
7315
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
7206
|
-
/* @__PURE__ */ (0,
|
|
7316
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
7207
7317
|
] })
|
|
7208
7318
|
] })
|
|
7209
7319
|
}
|
|
@@ -7214,22 +7324,22 @@ function ReservationCard(props) {
|
|
|
7214
7324
|
}
|
|
7215
7325
|
|
|
7216
7326
|
// src/app/platform/session-review-simple-read.tsx
|
|
7217
|
-
var
|
|
7218
|
-
var
|
|
7327
|
+
var import_react53 = require("react");
|
|
7328
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
7219
7329
|
function SubTitleWrapper({
|
|
7220
7330
|
children,
|
|
7221
7331
|
title
|
|
7222
7332
|
}) {
|
|
7223
|
-
return /* @__PURE__ */ (0,
|
|
7224
|
-
/* @__PURE__ */ (0,
|
|
7225
|
-
/* @__PURE__ */ (0,
|
|
7333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
7334
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
7335
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes6.Box, { children })
|
|
7226
7336
|
] });
|
|
7227
7337
|
}
|
|
7228
7338
|
function SessionReviewSimpleRead({
|
|
7229
7339
|
helpfulness,
|
|
7230
7340
|
review
|
|
7231
7341
|
}) {
|
|
7232
|
-
const helpfulnessMeta = (0,
|
|
7342
|
+
const helpfulnessMeta = (0, import_react53.useMemo)(() => {
|
|
7233
7343
|
if (helpfulness) {
|
|
7234
7344
|
return {
|
|
7235
7345
|
text: "\uB124",
|
|
@@ -7247,22 +7357,22 @@ function SessionReviewSimpleRead({
|
|
|
7247
7357
|
color: "error"
|
|
7248
7358
|
};
|
|
7249
7359
|
}, [helpfulness]);
|
|
7250
|
-
return /* @__PURE__ */ (0,
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7252
|
-
/* @__PURE__ */ (0,
|
|
7360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7361
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.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_runtime107.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
7362
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
7253
7363
|
] }) });
|
|
7254
7364
|
}
|
|
7255
7365
|
|
|
7256
7366
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
7257
|
-
var
|
|
7367
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
7258
7368
|
function SectionWrapper({
|
|
7259
7369
|
title,
|
|
7260
7370
|
children
|
|
7261
7371
|
}) {
|
|
7262
|
-
return /* @__PURE__ */ (0,
|
|
7263
|
-
/* @__PURE__ */ (0,
|
|
7264
|
-
/* @__PURE__ */ (0,
|
|
7265
|
-
/* @__PURE__ */ (0,
|
|
7372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes6.Box, { children: [
|
|
7373
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
7375
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes39.Separator, { size: "4" })
|
|
7266
7376
|
] }),
|
|
7267
7377
|
children
|
|
7268
7378
|
] });
|
|
@@ -7272,22 +7382,22 @@ function SessionUserInfoDetail({
|
|
|
7272
7382
|
session,
|
|
7273
7383
|
onClickCopy
|
|
7274
7384
|
}) {
|
|
7275
|
-
return /* @__PURE__ */ (0,
|
|
7276
|
-
/* @__PURE__ */ (0,
|
|
7385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
7386
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
7277
7387
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
7278
7388
|
) }) }),
|
|
7279
|
-
/* @__PURE__ */ (0,
|
|
7389
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
7280
7390
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
7281
7391
|
) }) })
|
|
7282
7392
|
] });
|
|
7283
7393
|
}
|
|
7284
7394
|
|
|
7285
7395
|
// src/app/platform/report-card.tsx
|
|
7286
|
-
var
|
|
7287
|
-
var
|
|
7396
|
+
var import_react54 = require("react");
|
|
7397
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
7288
7398
|
function ReportCard(props) {
|
|
7289
7399
|
const { title, file, status, subtitle } = props;
|
|
7290
|
-
const onClickDownload = (0,
|
|
7400
|
+
const onClickDownload = (0, import_react54.useCallback)(() => {
|
|
7291
7401
|
if (!file) return;
|
|
7292
7402
|
const { url, fileName } = file;
|
|
7293
7403
|
const link = document.createElement("a");
|
|
@@ -7299,24 +7409,24 @@ function ReportCard(props) {
|
|
|
7299
7409
|
document.body.removeChild(link);
|
|
7300
7410
|
}, [file]);
|
|
7301
7411
|
if (status) {
|
|
7302
|
-
return /* @__PURE__ */ (0,
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
7413
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7304
7414
|
status
|
|
7305
7415
|
] }) });
|
|
7306
7416
|
}
|
|
7307
|
-
return /* @__PURE__ */ (0,
|
|
7417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
7308
7418
|
import_themes22.Flex,
|
|
7309
7419
|
{
|
|
7310
7420
|
direction: { initial: "column", xs: "row" },
|
|
7311
7421
|
gapY: "2",
|
|
7312
7422
|
justify: "between",
|
|
7313
7423
|
children: [
|
|
7314
|
-
/* @__PURE__ */ (0,
|
|
7315
|
-
/* @__PURE__ */ (0,
|
|
7316
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
7424
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes6.Box, { children: [
|
|
7425
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7426
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Typo, { color: "gray", children: subtitle }) : null
|
|
7317
7427
|
] }),
|
|
7318
|
-
/* @__PURE__ */ (0,
|
|
7319
|
-
/* @__PURE__ */ (0,
|
|
7428
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
7320
7430
|
file == null ? void 0 : file.buttonName
|
|
7321
7431
|
] }) }, file == null ? void 0 : file.url)
|
|
7322
7432
|
]
|
|
@@ -7325,9 +7435,9 @@ function ReportCard(props) {
|
|
|
7325
7435
|
}
|
|
7326
7436
|
|
|
7327
7437
|
// src/app/platform/contents-card.tsx
|
|
7328
|
-
var
|
|
7329
|
-
var
|
|
7330
|
-
var ContentsCard = (0,
|
|
7438
|
+
var import_react55 = require("react");
|
|
7439
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
7440
|
+
var ContentsCard = (0, import_react55.forwardRef)(
|
|
7331
7441
|
({
|
|
7332
7442
|
title,
|
|
7333
7443
|
description,
|
|
@@ -7337,7 +7447,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
7337
7447
|
onClickCard,
|
|
7338
7448
|
isLoading = false
|
|
7339
7449
|
}, ref) => {
|
|
7340
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
7341
7451
|
Card,
|
|
7342
7452
|
{
|
|
7343
7453
|
onClick: onClickCard,
|
|
@@ -7350,7 +7460,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
7350
7460
|
maxHeight: "450px"
|
|
7351
7461
|
},
|
|
7352
7462
|
children: [
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7463
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7354
7464
|
import_themes6.Box,
|
|
7355
7465
|
{
|
|
7356
7466
|
height: "210px",
|
|
@@ -7362,12 +7472,12 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
7362
7472
|
width: "100%"
|
|
7363
7473
|
}
|
|
7364
7474
|
) }) }),
|
|
7365
|
-
/* @__PURE__ */ (0,
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7367
|
-
/* @__PURE__ */ (0,
|
|
7368
|
-
/* @__PURE__ */ (0,
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
7476
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes6.Box, { children: [
|
|
7477
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
7478
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
7369
7479
|
] }),
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7480
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
7371
7481
|
import_themes23.Grid,
|
|
7372
7482
|
{
|
|
7373
7483
|
align: "center",
|
|
@@ -7377,10 +7487,10 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
7377
7487
|
style: { marginTop: "auto" },
|
|
7378
7488
|
width: "100%",
|
|
7379
7489
|
children: [
|
|
7380
|
-
/* @__PURE__ */ (0,
|
|
7381
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
7382
|
-
/* @__PURE__ */ (0,
|
|
7383
|
-
/* @__PURE__ */ (0,
|
|
7490
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
7491
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(DropdownMenu.Root, { children: [
|
|
7492
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
7493
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7384
7494
|
DropdownMenu.Item,
|
|
7385
7495
|
{
|
|
7386
7496
|
onClick: (e) => {
|
|
@@ -7404,7 +7514,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
7404
7514
|
ContentsCard.displayName = "ContentsCard";
|
|
7405
7515
|
|
|
7406
7516
|
// src/app/platform/curriculum-card.tsx
|
|
7407
|
-
var
|
|
7517
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
7408
7518
|
function CurriculumCard(props) {
|
|
7409
7519
|
const {
|
|
7410
7520
|
title,
|
|
@@ -7415,7 +7525,7 @@ function CurriculumCard(props) {
|
|
|
7415
7525
|
bgColor,
|
|
7416
7526
|
onClick
|
|
7417
7527
|
} = props;
|
|
7418
|
-
return /* @__PURE__ */ (0,
|
|
7528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
7419
7529
|
import_themes23.Grid,
|
|
7420
7530
|
{
|
|
7421
7531
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -7424,7 +7534,7 @@ function CurriculumCard(props) {
|
|
|
7424
7534
|
onClick,
|
|
7425
7535
|
style: { cursor: "pointer" },
|
|
7426
7536
|
children: [
|
|
7427
|
-
/* @__PURE__ */ (0,
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7428
7538
|
import_themes6.Box,
|
|
7429
7539
|
{
|
|
7430
7540
|
height: "165px",
|
|
@@ -7439,32 +7549,32 @@ function CurriculumCard(props) {
|
|
|
7439
7549
|
backgroundAttachment: "local"
|
|
7440
7550
|
},
|
|
7441
7551
|
width: "100%",
|
|
7442
|
-
children: /* @__PURE__ */ (0,
|
|
7552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
7443
7553
|
}
|
|
7444
7554
|
),
|
|
7445
|
-
/* @__PURE__ */ (0,
|
|
7446
|
-
/* @__PURE__ */ (0,
|
|
7447
|
-
/* @__PURE__ */ (0,
|
|
7448
|
-
/* @__PURE__ */ (0,
|
|
7555
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
7556
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
7557
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7558
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7449
7559
|
Badge,
|
|
7450
7560
|
{
|
|
7451
7561
|
size: "medium",
|
|
7452
7562
|
style: { justifySelf: "flex-start" },
|
|
7453
7563
|
variant: "outline",
|
|
7454
|
-
children: /* @__PURE__ */ (0,
|
|
7455
|
-
/* @__PURE__ */ (0,
|
|
7564
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
7565
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_icons2.TimerIcon, {}),
|
|
7456
7566
|
runningTime
|
|
7457
7567
|
] })
|
|
7458
7568
|
}
|
|
7459
7569
|
)
|
|
7460
7570
|
] }),
|
|
7461
|
-
/* @__PURE__ */ (0,
|
|
7462
|
-
return /* @__PURE__ */ (0,
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
7572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
7463
7573
|
}) }) }),
|
|
7464
|
-
/* @__PURE__ */ (0,
|
|
7465
|
-
/* @__PURE__ */ (0,
|
|
7466
|
-
/* @__PURE__ */ (0,
|
|
7467
|
-
/* @__PURE__ */ (0,
|
|
7574
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_themes39.Separator, { size: "4" }),
|
|
7575
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
7576
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
7468
7578
|
] })
|
|
7469
7579
|
] })
|
|
7470
7580
|
]
|
|
@@ -7653,6 +7763,7 @@ function CurriculumCard(props) {
|
|
|
7653
7763
|
TimerIcon,
|
|
7654
7764
|
ToastContainer,
|
|
7655
7765
|
Tooltip,
|
|
7766
|
+
TrainingInfoGuideline,
|
|
7656
7767
|
TrashIcon,
|
|
7657
7768
|
TriangleArrowDownIcon,
|
|
7658
7769
|
TriangleArrowUpIcon,
|