@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/app/index.cjs
CHANGED
|
@@ -2027,7 +2027,7 @@ function GoalManageCardRead(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
2029
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
2030
|
-
var
|
|
2030
|
+
var import_react48 = require("react");
|
|
2031
2031
|
var import_date_fns5 = require("date-fns");
|
|
2032
2032
|
|
|
2033
2033
|
// src/molecules/expand-table/index.tsx
|
|
@@ -2595,8 +2595,13 @@ var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
|
2595
2595
|
// src/molecules/description-json-render.tsx
|
|
2596
2596
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
2597
2597
|
|
|
2598
|
-
// src/
|
|
2598
|
+
// src/molecules/training-info-guideline.tsx
|
|
2599
|
+
var import_react47 = require("react");
|
|
2600
|
+
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
2599
2601
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
2602
|
+
|
|
2603
|
+
// src/app/platform/goal-manage-card-edit.tsx
|
|
2604
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
2600
2605
|
var initialValues = {
|
|
2601
2606
|
goal: "",
|
|
2602
2607
|
effect: "",
|
|
@@ -2607,8 +2612,8 @@ var dummyFn = () => {
|
|
|
2607
2612
|
};
|
|
2608
2613
|
function GoalManageCardEdit(props) {
|
|
2609
2614
|
const { defaultValues, errors } = props;
|
|
2610
|
-
const [values, setValues] = (0,
|
|
2611
|
-
const onChange = (0,
|
|
2615
|
+
const [values, setValues] = (0, import_react48.useState)(defaultValues || initialValues);
|
|
2616
|
+
const onChange = (0, import_react48.useCallback)(
|
|
2612
2617
|
(v) => {
|
|
2613
2618
|
var _a;
|
|
2614
2619
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -2616,20 +2621,20 @@ function GoalManageCardEdit(props) {
|
|
|
2616
2621
|
},
|
|
2617
2622
|
[props]
|
|
2618
2623
|
);
|
|
2619
|
-
const onClickInit = (0,
|
|
2624
|
+
const onClickInit = (0, import_react48.useCallback)(() => {
|
|
2620
2625
|
var _a;
|
|
2621
2626
|
setValues(initialValues);
|
|
2622
2627
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
2623
2628
|
}, [defaultValues, props]);
|
|
2624
|
-
const onClickSubmit = (0,
|
|
2629
|
+
const onClickSubmit = (0, import_react48.useCallback)(() => {
|
|
2625
2630
|
var _a;
|
|
2626
2631
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
2627
2632
|
}, [props, values]);
|
|
2628
|
-
return /* @__PURE__ */ (0,
|
|
2629
|
-
/* @__PURE__ */ (0,
|
|
2630
|
-
/* @__PURE__ */ (0,
|
|
2631
|
-
/* @__PURE__ */ (0,
|
|
2632
|
-
/* @__PURE__ */ (0,
|
|
2633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
2634
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2635
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Form.Field, { name: "title", children: [
|
|
2636
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
2637
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
2633
2638
|
TextField.Root,
|
|
2634
2639
|
{
|
|
2635
2640
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -2640,11 +2645,11 @@ function GoalManageCardEdit(props) {
|
|
|
2640
2645
|
value: values.goal
|
|
2641
2646
|
}
|
|
2642
2647
|
),
|
|
2643
|
-
/* @__PURE__ */ (0,
|
|
2648
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
2644
2649
|
] }),
|
|
2645
|
-
/* @__PURE__ */ (0,
|
|
2646
|
-
/* @__PURE__ */ (0,
|
|
2647
|
-
/* @__PURE__ */ (0,
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Form.Field, { name: "effect", children: [
|
|
2651
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
2652
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
2648
2653
|
TextArea,
|
|
2649
2654
|
{
|
|
2650
2655
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -2656,11 +2661,11 @@ function GoalManageCardEdit(props) {
|
|
|
2656
2661
|
value: values.effect
|
|
2657
2662
|
}
|
|
2658
2663
|
),
|
|
2659
|
-
/* @__PURE__ */ (0,
|
|
2664
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
2660
2665
|
] }),
|
|
2661
|
-
/* @__PURE__ */ (0,
|
|
2662
|
-
/* @__PURE__ */ (0,
|
|
2663
|
-
/* @__PURE__ */ (0,
|
|
2666
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Form.Field, { name: "huddle", children: [
|
|
2667
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
2664
2669
|
TextArea,
|
|
2665
2670
|
{
|
|
2666
2671
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -2674,11 +2679,11 @@ function GoalManageCardEdit(props) {
|
|
|
2674
2679
|
value: values.huddle
|
|
2675
2680
|
}
|
|
2676
2681
|
),
|
|
2677
|
-
/* @__PURE__ */ (0,
|
|
2682
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
2678
2683
|
] }),
|
|
2679
|
-
/* @__PURE__ */ (0,
|
|
2680
|
-
/* @__PURE__ */ (0,
|
|
2681
|
-
/* @__PURE__ */ (0,
|
|
2684
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
2685
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
2686
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
2682
2687
|
DatePickerButton,
|
|
2683
2688
|
{
|
|
2684
2689
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -2689,11 +2694,11 @@ function GoalManageCardEdit(props) {
|
|
|
2689
2694
|
selected: values.dueDate
|
|
2690
2695
|
}
|
|
2691
2696
|
),
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2697
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
2693
2698
|
] })
|
|
2694
2699
|
] }),
|
|
2695
|
-
/* @__PURE__ */ (0,
|
|
2696
|
-
/* @__PURE__ */ (0,
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
2701
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
2697
2702
|
Button,
|
|
2698
2703
|
{
|
|
2699
2704
|
color: "gray",
|
|
@@ -2704,18 +2709,18 @@ function GoalManageCardEdit(props) {
|
|
|
2704
2709
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
2705
2710
|
}
|
|
2706
2711
|
),
|
|
2707
|
-
/* @__PURE__ */ (0,
|
|
2712
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
2708
2713
|
] })
|
|
2709
2714
|
] }) });
|
|
2710
2715
|
}
|
|
2711
2716
|
|
|
2712
2717
|
// src/app/platform/session-card.tsx
|
|
2713
|
-
var
|
|
2718
|
+
var import_react51 = require("react");
|
|
2714
2719
|
var import_date_fns6 = require("date-fns");
|
|
2715
2720
|
|
|
2716
2721
|
// src/app/platform/edit-coaching-time.tsx
|
|
2717
|
-
var
|
|
2718
|
-
var
|
|
2722
|
+
var import_react49 = require("react");
|
|
2723
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
2719
2724
|
var getValueFromDefaultValue = (args) => {
|
|
2720
2725
|
return {
|
|
2721
2726
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -2735,14 +2740,14 @@ var getDateFromValue = (date, time) => {
|
|
|
2735
2740
|
};
|
|
2736
2741
|
function EditCoachingTime(props) {
|
|
2737
2742
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
2738
|
-
const [values, setValues] = (0,
|
|
2743
|
+
const [values, setValues] = (0, import_react49.useState)(() => {
|
|
2739
2744
|
return getValueFromDefaultValue({
|
|
2740
2745
|
startAt: defaultStartAt,
|
|
2741
2746
|
endAt: defaultEndAt
|
|
2742
2747
|
});
|
|
2743
2748
|
});
|
|
2744
|
-
const [timeError, setTimeError] = (0,
|
|
2745
|
-
const checkTimeError = (0,
|
|
2749
|
+
const [timeError, setTimeError] = (0, import_react49.useState)("");
|
|
2750
|
+
const checkTimeError = (0, import_react49.useCallback)(
|
|
2746
2751
|
(startTime, endTime) => {
|
|
2747
2752
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
2748
2753
|
if (error) {
|
|
@@ -2753,7 +2758,7 @@ function EditCoachingTime(props) {
|
|
|
2753
2758
|
},
|
|
2754
2759
|
[]
|
|
2755
2760
|
);
|
|
2756
|
-
const onChangeStartTime = (0,
|
|
2761
|
+
const onChangeStartTime = (0, import_react49.useCallback)(
|
|
2757
2762
|
(v) => {
|
|
2758
2763
|
checkTimeError(v, values.endTime);
|
|
2759
2764
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -2762,7 +2767,7 @@ function EditCoachingTime(props) {
|
|
|
2762
2767
|
},
|
|
2763
2768
|
[checkTimeError, values.endTime]
|
|
2764
2769
|
);
|
|
2765
|
-
const onChangeEndTime = (0,
|
|
2770
|
+
const onChangeEndTime = (0, import_react49.useCallback)(
|
|
2766
2771
|
(v) => {
|
|
2767
2772
|
checkTimeError(values.startTime, v);
|
|
2768
2773
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -2771,12 +2776,12 @@ function EditCoachingTime(props) {
|
|
|
2771
2776
|
},
|
|
2772
2777
|
[checkTimeError, values.startTime]
|
|
2773
2778
|
);
|
|
2774
|
-
const onChangeDate = (0,
|
|
2779
|
+
const onChangeDate = (0, import_react49.useCallback)((date) => {
|
|
2775
2780
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
2776
2781
|
date
|
|
2777
2782
|
}));
|
|
2778
2783
|
}, []);
|
|
2779
|
-
const onClickSave = (0,
|
|
2784
|
+
const onClickSave = (0, import_react49.useCallback)(() => {
|
|
2780
2785
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
2781
2786
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
2782
2787
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -2785,10 +2790,10 @@ function EditCoachingTime(props) {
|
|
|
2785
2790
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
2786
2791
|
}
|
|
2787
2792
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
2788
|
-
return /* @__PURE__ */ (0,
|
|
2789
|
-
/* @__PURE__ */ (0,
|
|
2790
|
-
/* @__PURE__ */ (0,
|
|
2791
|
-
/* @__PURE__ */ (0,
|
|
2793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Root, { children: [
|
|
2794
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "date", children: [
|
|
2795
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
2796
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
2792
2797
|
DatePickerButton,
|
|
2793
2798
|
{
|
|
2794
2799
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -2798,7 +2803,7 @@ function EditCoachingTime(props) {
|
|
|
2798
2803
|
}
|
|
2799
2804
|
)
|
|
2800
2805
|
] }),
|
|
2801
|
-
/* @__PURE__ */ (0,
|
|
2806
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
2802
2807
|
import_themes23.Grid,
|
|
2803
2808
|
{
|
|
2804
2809
|
align: "center",
|
|
@@ -2813,10 +2818,10 @@ function EditCoachingTime(props) {
|
|
|
2813
2818
|
mt: "5",
|
|
2814
2819
|
width: "100%",
|
|
2815
2820
|
children: [
|
|
2816
|
-
/* @__PURE__ */ (0,
|
|
2817
|
-
/* @__PURE__ */ (0,
|
|
2818
|
-
/* @__PURE__ */ (0,
|
|
2819
|
-
/* @__PURE__ */ (0,
|
|
2821
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
2822
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", {}),
|
|
2823
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
2824
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
2820
2825
|
TimeSelect,
|
|
2821
2826
|
{
|
|
2822
2827
|
onValueChange: onChangeStartTime,
|
|
@@ -2824,8 +2829,8 @@ function EditCoachingTime(props) {
|
|
|
2824
2829
|
value: values.startTime
|
|
2825
2830
|
}
|
|
2826
2831
|
),
|
|
2827
|
-
/* @__PURE__ */ (0,
|
|
2828
|
-
/* @__PURE__ */ (0,
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes39.Separator, {}) }),
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
2829
2834
|
TimeSelect,
|
|
2830
2835
|
{
|
|
2831
2836
|
onValueChange: onChangeEndTime,
|
|
@@ -2833,36 +2838,36 @@ function EditCoachingTime(props) {
|
|
|
2833
2838
|
value: values.endTime
|
|
2834
2839
|
}
|
|
2835
2840
|
),
|
|
2836
|
-
/* @__PURE__ */ (0,
|
|
2841
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
2837
2842
|
]
|
|
2838
2843
|
}
|
|
2839
2844
|
),
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2841
|
-
/* @__PURE__ */ (0,
|
|
2842
|
-
/* @__PURE__ */ (0,
|
|
2845
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
2846
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
2843
2848
|
] })
|
|
2844
2849
|
] }) });
|
|
2845
2850
|
}
|
|
2846
2851
|
|
|
2847
2852
|
// src/app/platform/edit-service-type.tsx
|
|
2848
|
-
var
|
|
2853
|
+
var import_react50 = require("react");
|
|
2849
2854
|
|
|
2850
2855
|
// src/app/platform/on-offline-radio-card.tsx
|
|
2851
|
-
var
|
|
2852
|
-
var
|
|
2856
|
+
var import_react_icons11 = require("@radix-ui/react-icons");
|
|
2857
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
2853
2858
|
var SERVICE_TYPE = {
|
|
2854
2859
|
onlineCoaching: "onlineCoaching",
|
|
2855
2860
|
offlineCoaching: "offlineCoaching"
|
|
2856
2861
|
};
|
|
2857
2862
|
var breakpoint = "sm";
|
|
2858
2863
|
function HideSmallBox(props) {
|
|
2859
|
-
return /* @__PURE__ */ (0,
|
|
2864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
2860
2865
|
}
|
|
2861
2866
|
function OnOfflineRadioCard(props) {
|
|
2862
2867
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
2863
2868
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
2864
2869
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
2865
|
-
return /* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
2866
2871
|
RadioButtonCard.Root,
|
|
2867
2872
|
__spreadProps(__spreadValues({
|
|
2868
2873
|
RadioWrapper: Wrapper,
|
|
@@ -2871,13 +2876,13 @@ function OnOfflineRadioCard(props) {
|
|
|
2871
2876
|
justify
|
|
2872
2877
|
}, props), {
|
|
2873
2878
|
children: [
|
|
2874
|
-
/* @__PURE__ */ (0,
|
|
2875
|
-
/* @__PURE__ */ (0,
|
|
2876
|
-
/* @__PURE__ */ (0,
|
|
2879
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
2880
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_icons11.GlobeIcon, {}) }),
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
2877
2882
|
] }) }),
|
|
2878
|
-
/* @__PURE__ */ (0,
|
|
2879
|
-
/* @__PURE__ */ (0,
|
|
2880
|
-
/* @__PURE__ */ (0,
|
|
2883
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
2884
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_icons11.BackpackIcon, {}) }),
|
|
2885
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
2881
2886
|
] }) })
|
|
2882
2887
|
]
|
|
2883
2888
|
})
|
|
@@ -2885,18 +2890,18 @@ function OnOfflineRadioCard(props) {
|
|
|
2885
2890
|
}
|
|
2886
2891
|
|
|
2887
2892
|
// src/app/platform/edit-service-type.tsx
|
|
2888
|
-
var
|
|
2893
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
2889
2894
|
function EditServiceType(props) {
|
|
2890
2895
|
const { defaultServiceType, onClickCancel } = props;
|
|
2891
|
-
const [sessionType, setSessionType] = (0,
|
|
2896
|
+
const [sessionType, setSessionType] = (0, import_react50.useState)(
|
|
2892
2897
|
defaultServiceType
|
|
2893
2898
|
);
|
|
2894
|
-
const onClickSave = (0,
|
|
2899
|
+
const onClickSave = (0, import_react50.useCallback)(() => {
|
|
2895
2900
|
var _a;
|
|
2896
2901
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
2897
2902
|
}, [props, sessionType]);
|
|
2898
|
-
return /* @__PURE__ */ (0,
|
|
2899
|
-
/* @__PURE__ */ (0,
|
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes6.Box, { children: [
|
|
2904
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
2900
2905
|
Typo,
|
|
2901
2906
|
{
|
|
2902
2907
|
as: "p",
|
|
@@ -2906,16 +2911,16 @@ function EditServiceType(props) {
|
|
|
2906
2911
|
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"
|
|
2907
2912
|
}
|
|
2908
2913
|
),
|
|
2909
|
-
/* @__PURE__ */ (0,
|
|
2910
|
-
/* @__PURE__ */ (0,
|
|
2911
|
-
/* @__PURE__ */ (0,
|
|
2912
|
-
/* @__PURE__ */ (0,
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
2916
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
2917
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
2913
2918
|
] })
|
|
2914
2919
|
] });
|
|
2915
2920
|
}
|
|
2916
2921
|
|
|
2917
2922
|
// src/app/platform/session-card.tsx
|
|
2918
|
-
var
|
|
2923
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
2919
2924
|
var preventDefault2 = (e) => {
|
|
2920
2925
|
e.preventDefault();
|
|
2921
2926
|
};
|
|
@@ -2945,33 +2950,33 @@ function SessionCard(props) {
|
|
|
2945
2950
|
"endAt",
|
|
2946
2951
|
"sessionType"
|
|
2947
2952
|
]);
|
|
2948
|
-
const renderEditButton = (0,
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
2953
|
+
const renderEditButton = (0, import_react51.useCallback)(() => {
|
|
2954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
2950
2955
|
}, []);
|
|
2951
|
-
const sessionTimeStr = (0,
|
|
2956
|
+
const sessionTimeStr = (0, import_react51.useMemo)(() => {
|
|
2952
2957
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
2953
2958
|
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")}`;
|
|
2954
2959
|
}, [startAt, endAt]);
|
|
2955
|
-
return /* @__PURE__ */ (0,
|
|
2956
|
-
/* @__PURE__ */ (0,
|
|
2957
|
-
/* @__PURE__ */ (0,
|
|
2960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
2961
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
2962
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
2958
2963
|
TitleExtra,
|
|
2959
|
-
error ? /* @__PURE__ */ (0,
|
|
2964
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
2960
2965
|
] }),
|
|
2961
|
-
/* @__PURE__ */ (0,
|
|
2962
|
-
/* @__PURE__ */ (0,
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
2964
|
-
/* @__PURE__ */ (0,
|
|
2966
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes15.DataList.Root, { children: [
|
|
2967
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes15.DataList.Item, { children: [
|
|
2968
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
2969
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes15.DataList.Value, { children: [
|
|
2965
2970
|
sessionTimeStr,
|
|
2966
|
-
editable ? /* @__PURE__ */ (0,
|
|
2967
|
-
/* @__PURE__ */ (0,
|
|
2968
|
-
/* @__PURE__ */ (0,
|
|
2971
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Dialog.Root, { children: [
|
|
2972
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
2973
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
2969
2974
|
Dialog.Content,
|
|
2970
2975
|
{
|
|
2971
2976
|
onOpenAutoFocus: preventDefault2,
|
|
2972
2977
|
style: { overflow: "visible" },
|
|
2973
2978
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
2974
|
-
children: /* @__PURE__ */ (0,
|
|
2979
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
2975
2980
|
EditCoachingTime,
|
|
2976
2981
|
{
|
|
2977
2982
|
defaultEndAt: endAt,
|
|
@@ -2984,18 +2989,18 @@ function SessionCard(props) {
|
|
|
2984
2989
|
] }) : null
|
|
2985
2990
|
] })
|
|
2986
2991
|
] }),
|
|
2987
|
-
/* @__PURE__ */ (0,
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
2989
|
-
/* @__PURE__ */ (0,
|
|
2990
|
-
/* @__PURE__ */ (0,
|
|
2992
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
2993
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes15.DataList.Item, { children: [
|
|
2994
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes15.DataList.Value, { children: [
|
|
2991
2996
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
2992
|
-
editable ? /* @__PURE__ */ (0,
|
|
2993
|
-
/* @__PURE__ */ (0,
|
|
2994
|
-
/* @__PURE__ */ (0,
|
|
2997
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Dialog.Root, { children: [
|
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
2999
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
2995
3000
|
Dialog.Content,
|
|
2996
3001
|
{
|
|
2997
3002
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
2998
|
-
children: /* @__PURE__ */ (0,
|
|
3003
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
2999
3004
|
EditServiceType,
|
|
3000
3005
|
{
|
|
3001
3006
|
defaultServiceType: sessionType,
|
|
@@ -3007,33 +3012,33 @@ function SessionCard(props) {
|
|
|
3007
3012
|
] }) : null
|
|
3008
3013
|
] })
|
|
3009
3014
|
] }),
|
|
3010
|
-
/* @__PURE__ */ (0,
|
|
3015
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
3011
3016
|
] })
|
|
3012
3017
|
] })
|
|
3013
3018
|
] }) }));
|
|
3014
3019
|
}
|
|
3015
3020
|
|
|
3016
3021
|
// src/app/platform/coach-question-list.tsx
|
|
3017
|
-
var
|
|
3022
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
3018
3023
|
function QuestionItem({ question, answer }) {
|
|
3019
|
-
return /* @__PURE__ */ (0,
|
|
3020
|
-
/* @__PURE__ */ (0,
|
|
3021
|
-
/* @__PURE__ */ (0,
|
|
3024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes6.Box, { children: [
|
|
3025
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
3026
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
3022
3027
|
] }, question);
|
|
3023
3028
|
}
|
|
3024
3029
|
function CoachQuestionList({
|
|
3025
3030
|
questions
|
|
3026
3031
|
}) {
|
|
3027
|
-
return /* @__PURE__ */ (0,
|
|
3028
|
-
return /* @__PURE__ */ (0,
|
|
3032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
3033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
3029
3034
|
}) });
|
|
3030
3035
|
}
|
|
3031
3036
|
|
|
3032
3037
|
// src/app/platform/reservation-card.tsx
|
|
3033
|
-
var
|
|
3038
|
+
var import_react52 = require("react");
|
|
3034
3039
|
var import_date_fns7 = require("date-fns");
|
|
3035
3040
|
var import_locale2 = require("date-fns/locale");
|
|
3036
|
-
var
|
|
3041
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
3037
3042
|
function ReservationCard(props) {
|
|
3038
3043
|
const {
|
|
3039
3044
|
sessionNumber,
|
|
@@ -3048,29 +3053,29 @@ function ReservationCard(props) {
|
|
|
3048
3053
|
onClickCancel,
|
|
3049
3054
|
onClickCompleteSession
|
|
3050
3055
|
} = props;
|
|
3051
|
-
const [editValues, setEditValues] = (0,
|
|
3056
|
+
const [editValues, setEditValues] = (0, import_react52.useState)({
|
|
3052
3057
|
date: props.defaultTime,
|
|
3053
3058
|
type: props.defaultType
|
|
3054
3059
|
});
|
|
3055
3060
|
const date = readonly ? defaultTime : editValues.date;
|
|
3056
3061
|
const type = readonly ? defaultType : editValues.type;
|
|
3057
|
-
const onClickSave = (0,
|
|
3062
|
+
const onClickSave = (0, import_react52.useCallback)(() => {
|
|
3058
3063
|
var _a;
|
|
3059
3064
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
3060
3065
|
}, [editValues, props]);
|
|
3061
|
-
const onClickReset = (0,
|
|
3066
|
+
const onClickReset = (0, import_react52.useCallback)(() => {
|
|
3062
3067
|
setEditValues({
|
|
3063
3068
|
date: defaultTime,
|
|
3064
3069
|
type: defaultType
|
|
3065
3070
|
});
|
|
3066
3071
|
}, [defaultTime, defaultType]);
|
|
3067
|
-
const ActionButtons = (0,
|
|
3072
|
+
const ActionButtons = (0, import_react52.useMemo)(() => {
|
|
3068
3073
|
if (readonly) {
|
|
3069
|
-
return /* @__PURE__ */ (0,
|
|
3074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
3070
3075
|
}
|
|
3071
|
-
return /* @__PURE__ */ (0,
|
|
3076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
3072
3077
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
3073
|
-
const onChangeDate = (0,
|
|
3078
|
+
const onChangeDate = (0, import_react52.useCallback)((newDate) => {
|
|
3074
3079
|
if (!newDate) return;
|
|
3075
3080
|
setEditValues((prev) => {
|
|
3076
3081
|
return __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3078,17 +3083,17 @@ function ReservationCard(props) {
|
|
|
3078
3083
|
});
|
|
3079
3084
|
});
|
|
3080
3085
|
}, []);
|
|
3081
|
-
const onChangeType = (0,
|
|
3086
|
+
const onChangeType = (0, import_react52.useCallback)((newType) => {
|
|
3082
3087
|
setEditValues((prev) => {
|
|
3083
3088
|
return __spreadProps(__spreadValues({}, prev), {
|
|
3084
3089
|
type: newType
|
|
3085
3090
|
});
|
|
3086
3091
|
});
|
|
3087
3092
|
}, []);
|
|
3088
|
-
const formatDate = (0,
|
|
3093
|
+
const formatDate = (0, import_react52.useCallback)((v) => {
|
|
3089
3094
|
return (0, import_date_fns7.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C(EEE) aa h:mm", { locale: import_locale2.ko });
|
|
3090
3095
|
}, []);
|
|
3091
|
-
(0,
|
|
3096
|
+
(0, import_react52.useEffect)(() => {
|
|
3092
3097
|
if (!minTime || !editValues.date || readonly) return;
|
|
3093
3098
|
if (editValues.date < minTime) {
|
|
3094
3099
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -3099,7 +3104,7 @@ function ReservationCard(props) {
|
|
|
3099
3104
|
});
|
|
3100
3105
|
}
|
|
3101
3106
|
}, [editValues, minTime, readonly]);
|
|
3102
|
-
(0,
|
|
3107
|
+
(0, import_react52.useEffect)(() => {
|
|
3103
3108
|
if (!maxTime || !editValues.date || readonly) return;
|
|
3104
3109
|
if (editValues.date > maxTime) {
|
|
3105
3110
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -3110,39 +3115,39 @@ function ReservationCard(props) {
|
|
|
3110
3115
|
});
|
|
3111
3116
|
}
|
|
3112
3117
|
}, [editValues, maxTime, readonly]);
|
|
3113
|
-
return /* @__PURE__ */ (0,
|
|
3118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
3114
3119
|
Card,
|
|
3115
3120
|
{
|
|
3116
3121
|
error: Boolean(error),
|
|
3117
3122
|
size: "3",
|
|
3118
3123
|
style: { overflow: "visible", contain: "initial" },
|
|
3119
3124
|
children: [
|
|
3120
|
-
/* @__PURE__ */ (0,
|
|
3121
|
-
/* @__PURE__ */ (0,
|
|
3125
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
3126
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
3122
3127
|
import_themes23.Grid,
|
|
3123
3128
|
{
|
|
3124
3129
|
align: "center",
|
|
3125
3130
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
3126
3131
|
gapY: "2",
|
|
3127
3132
|
children: [
|
|
3128
|
-
/* @__PURE__ */ (0,
|
|
3129
|
-
/* @__PURE__ */ (0,
|
|
3133
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(Heading2, { variant: "heading4", children: [
|
|
3130
3135
|
customerName || "-",
|
|
3131
3136
|
"\uB2D8 ",
|
|
3132
3137
|
sessionNumber || "-",
|
|
3133
3138
|
"\uD68C\uCC28 \uC138\uC158"
|
|
3134
3139
|
] }),
|
|
3135
|
-
/* @__PURE__ */ (0,
|
|
3140
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
3136
3141
|
] }),
|
|
3137
|
-
error ? /* @__PURE__ */ (0,
|
|
3142
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
3138
3143
|
]
|
|
3139
3144
|
}
|
|
3140
3145
|
),
|
|
3141
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
3142
3147
|
] }),
|
|
3143
|
-
/* @__PURE__ */ (0,
|
|
3144
|
-
/* @__PURE__ */ (0,
|
|
3145
|
-
/* @__PURE__ */ (0,
|
|
3148
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3149
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
3150
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
3146
3151
|
DatePickerButton,
|
|
3147
3152
|
{
|
|
3148
3153
|
disabled: readonly,
|
|
@@ -3156,8 +3161,8 @@ function ReservationCard(props) {
|
|
|
3156
3161
|
size: "large"
|
|
3157
3162
|
}
|
|
3158
3163
|
),
|
|
3159
|
-
/* @__PURE__ */ (0,
|
|
3160
|
-
/* @__PURE__ */ (0,
|
|
3164
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }),
|
|
3165
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
3161
3166
|
OnOfflineRadioCard,
|
|
3162
3167
|
{
|
|
3163
3168
|
disabled: readonly,
|
|
@@ -3166,8 +3171,8 @@ function ReservationCard(props) {
|
|
|
3166
3171
|
value: type
|
|
3167
3172
|
}
|
|
3168
3173
|
),
|
|
3169
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
3170
|
-
/* @__PURE__ */ (0,
|
|
3174
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
3175
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
3171
3176
|
Button,
|
|
3172
3177
|
{
|
|
3173
3178
|
color: "gray",
|
|
@@ -3177,10 +3182,10 @@ function ReservationCard(props) {
|
|
|
3177
3182
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
3178
3183
|
}
|
|
3179
3184
|
),
|
|
3180
|
-
/* @__PURE__ */ (0,
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
3181
3186
|
] })
|
|
3182
3187
|
] }) }),
|
|
3183
|
-
readonly ? /* @__PURE__ */ (0,
|
|
3188
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
3184
3189
|
import_themes6.Box,
|
|
3185
3190
|
{
|
|
3186
3191
|
mt: "5",
|
|
@@ -3188,14 +3193,14 @@ function ReservationCard(props) {
|
|
|
3188
3193
|
py: "4",
|
|
3189
3194
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
3190
3195
|
width: "100%",
|
|
3191
|
-
children: /* @__PURE__ */ (0,
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3196
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
3197
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(Typo, { children: [
|
|
3193
3198
|
sessionNumber || "-",
|
|
3194
3199
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
3195
3200
|
] }),
|
|
3196
|
-
/* @__PURE__ */ (0,
|
|
3201
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
3197
3202
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
3198
|
-
/* @__PURE__ */ (0,
|
|
3203
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
3199
3204
|
] })
|
|
3200
3205
|
] })
|
|
3201
3206
|
}
|
|
@@ -3206,22 +3211,22 @@ function ReservationCard(props) {
|
|
|
3206
3211
|
}
|
|
3207
3212
|
|
|
3208
3213
|
// src/app/platform/session-review-simple-read.tsx
|
|
3209
|
-
var
|
|
3210
|
-
var
|
|
3214
|
+
var import_react53 = require("react");
|
|
3215
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
3211
3216
|
function SubTitleWrapper({
|
|
3212
3217
|
children,
|
|
3213
3218
|
title
|
|
3214
3219
|
}) {
|
|
3215
|
-
return /* @__PURE__ */ (0,
|
|
3216
|
-
/* @__PURE__ */ (0,
|
|
3217
|
-
/* @__PURE__ */ (0,
|
|
3220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
3222
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes6.Box, { children })
|
|
3218
3223
|
] });
|
|
3219
3224
|
}
|
|
3220
3225
|
function SessionReviewSimpleRead({
|
|
3221
3226
|
helpfulness,
|
|
3222
3227
|
review
|
|
3223
3228
|
}) {
|
|
3224
|
-
const helpfulnessMeta = (0,
|
|
3229
|
+
const helpfulnessMeta = (0, import_react53.useMemo)(() => {
|
|
3225
3230
|
if (helpfulness) {
|
|
3226
3231
|
return {
|
|
3227
3232
|
text: "\uB124",
|
|
@@ -3239,22 +3244,22 @@ function SessionReviewSimpleRead({
|
|
|
3239
3244
|
color: "error"
|
|
3240
3245
|
};
|
|
3241
3246
|
}, [helpfulness]);
|
|
3242
|
-
return /* @__PURE__ */ (0,
|
|
3243
|
-
/* @__PURE__ */ (0,
|
|
3244
|
-
/* @__PURE__ */ (0,
|
|
3247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3248
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.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_runtime106.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
3249
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
3245
3250
|
] }) });
|
|
3246
3251
|
}
|
|
3247
3252
|
|
|
3248
3253
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
3249
|
-
var
|
|
3254
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
3250
3255
|
function SectionWrapper({
|
|
3251
3256
|
title,
|
|
3252
3257
|
children
|
|
3253
3258
|
}) {
|
|
3254
|
-
return /* @__PURE__ */ (0,
|
|
3255
|
-
/* @__PURE__ */ (0,
|
|
3256
|
-
/* @__PURE__ */ (0,
|
|
3257
|
-
/* @__PURE__ */ (0,
|
|
3259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes6.Box, { children: [
|
|
3260
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
3261
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
3262
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes39.Separator, { size: "4" })
|
|
3258
3263
|
] }),
|
|
3259
3264
|
children
|
|
3260
3265
|
] });
|
|
@@ -3264,22 +3269,22 @@ function SessionUserInfoDetail({
|
|
|
3264
3269
|
session,
|
|
3265
3270
|
onClickCopy
|
|
3266
3271
|
}) {
|
|
3267
|
-
return /* @__PURE__ */ (0,
|
|
3268
|
-
/* @__PURE__ */ (0,
|
|
3272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
3273
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3269
3274
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
3270
3275
|
) }) }),
|
|
3271
|
-
/* @__PURE__ */ (0,
|
|
3276
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3272
3277
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
3273
3278
|
) }) })
|
|
3274
3279
|
] });
|
|
3275
3280
|
}
|
|
3276
3281
|
|
|
3277
3282
|
// src/app/platform/report-card.tsx
|
|
3278
|
-
var
|
|
3279
|
-
var
|
|
3283
|
+
var import_react54 = require("react");
|
|
3284
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
3280
3285
|
function ReportCard(props) {
|
|
3281
3286
|
const { title, file, status, subtitle } = props;
|
|
3282
|
-
const onClickDownload = (0,
|
|
3287
|
+
const onClickDownload = (0, import_react54.useCallback)(() => {
|
|
3283
3288
|
if (!file) return;
|
|
3284
3289
|
const { url, fileName } = file;
|
|
3285
3290
|
const link = document.createElement("a");
|
|
@@ -3291,24 +3296,24 @@ function ReportCard(props) {
|
|
|
3291
3296
|
document.body.removeChild(link);
|
|
3292
3297
|
}, [file]);
|
|
3293
3298
|
if (status) {
|
|
3294
|
-
return /* @__PURE__ */ (0,
|
|
3295
|
-
/* @__PURE__ */ (0,
|
|
3299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3296
3301
|
status
|
|
3297
3302
|
] }) });
|
|
3298
3303
|
}
|
|
3299
|
-
return /* @__PURE__ */ (0,
|
|
3304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
3300
3305
|
import_themes22.Flex,
|
|
3301
3306
|
{
|
|
3302
3307
|
direction: { initial: "column", xs: "row" },
|
|
3303
3308
|
gapY: "2",
|
|
3304
3309
|
justify: "between",
|
|
3305
3310
|
children: [
|
|
3306
|
-
/* @__PURE__ */ (0,
|
|
3307
|
-
/* @__PURE__ */ (0,
|
|
3308
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
3311
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes6.Box, { children: [
|
|
3312
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3313
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Typo, { color: "gray", children: subtitle }) : null
|
|
3309
3314
|
] }),
|
|
3310
|
-
/* @__PURE__ */ (0,
|
|
3311
|
-
/* @__PURE__ */ (0,
|
|
3315
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
3316
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
3312
3317
|
file == null ? void 0 : file.buttonName
|
|
3313
3318
|
] }) }, file == null ? void 0 : file.url)
|
|
3314
3319
|
]
|
|
@@ -3317,9 +3322,9 @@ function ReportCard(props) {
|
|
|
3317
3322
|
}
|
|
3318
3323
|
|
|
3319
3324
|
// src/app/platform/contents-card.tsx
|
|
3320
|
-
var
|
|
3321
|
-
var
|
|
3322
|
-
var ContentsCard = (0,
|
|
3325
|
+
var import_react55 = require("react");
|
|
3326
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
3327
|
+
var ContentsCard = (0, import_react55.forwardRef)(
|
|
3323
3328
|
({
|
|
3324
3329
|
title,
|
|
3325
3330
|
description,
|
|
@@ -3329,7 +3334,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
3329
3334
|
onClickCard,
|
|
3330
3335
|
isLoading = false
|
|
3331
3336
|
}, ref) => {
|
|
3332
|
-
return /* @__PURE__ */ (0,
|
|
3337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
3333
3338
|
Card,
|
|
3334
3339
|
{
|
|
3335
3340
|
onClick: onClickCard,
|
|
@@ -3342,7 +3347,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
3342
3347
|
maxHeight: "450px"
|
|
3343
3348
|
},
|
|
3344
3349
|
children: [
|
|
3345
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
3346
3351
|
import_themes6.Box,
|
|
3347
3352
|
{
|
|
3348
3353
|
height: "210px",
|
|
@@ -3354,12 +3359,12 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
3354
3359
|
width: "100%"
|
|
3355
3360
|
}
|
|
3356
3361
|
) }) }),
|
|
3357
|
-
/* @__PURE__ */ (0,
|
|
3358
|
-
/* @__PURE__ */ (0,
|
|
3359
|
-
/* @__PURE__ */ (0,
|
|
3360
|
-
/* @__PURE__ */ (0,
|
|
3362
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
3363
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes6.Box, { children: [
|
|
3364
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
3365
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
3361
3366
|
] }),
|
|
3362
|
-
/* @__PURE__ */ (0,
|
|
3367
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
3363
3368
|
import_themes23.Grid,
|
|
3364
3369
|
{
|
|
3365
3370
|
align: "center",
|
|
@@ -3369,10 +3374,10 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
3369
3374
|
style: { marginTop: "auto" },
|
|
3370
3375
|
width: "100%",
|
|
3371
3376
|
children: [
|
|
3372
|
-
/* @__PURE__ */ (0,
|
|
3373
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
3374
|
-
/* @__PURE__ */ (0,
|
|
3375
|
-
/* @__PURE__ */ (0,
|
|
3377
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
3378
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(DropdownMenu.Root, { children: [
|
|
3379
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
3376
3381
|
DropdownMenu.Item,
|
|
3377
3382
|
{
|
|
3378
3383
|
onClick: (e) => {
|
|
@@ -3396,7 +3401,7 @@ var ContentsCard = (0, import_react54.forwardRef)(
|
|
|
3396
3401
|
ContentsCard.displayName = "ContentsCard";
|
|
3397
3402
|
|
|
3398
3403
|
// src/app/platform/curriculum-card.tsx
|
|
3399
|
-
var
|
|
3404
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
3400
3405
|
function CurriculumCard(props) {
|
|
3401
3406
|
const {
|
|
3402
3407
|
title,
|
|
@@ -3407,7 +3412,7 @@ function CurriculumCard(props) {
|
|
|
3407
3412
|
bgColor,
|
|
3408
3413
|
onClick
|
|
3409
3414
|
} = props;
|
|
3410
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
3411
3416
|
import_themes23.Grid,
|
|
3412
3417
|
{
|
|
3413
3418
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -3416,7 +3421,7 @@ function CurriculumCard(props) {
|
|
|
3416
3421
|
onClick,
|
|
3417
3422
|
style: { cursor: "pointer" },
|
|
3418
3423
|
children: [
|
|
3419
|
-
/* @__PURE__ */ (0,
|
|
3424
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
3420
3425
|
import_themes6.Box,
|
|
3421
3426
|
{
|
|
3422
3427
|
height: "165px",
|
|
@@ -3431,32 +3436,32 @@ function CurriculumCard(props) {
|
|
|
3431
3436
|
backgroundAttachment: "local"
|
|
3432
3437
|
},
|
|
3433
3438
|
width: "100%",
|
|
3434
|
-
children: /* @__PURE__ */ (0,
|
|
3439
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
3435
3440
|
}
|
|
3436
3441
|
),
|
|
3437
|
-
/* @__PURE__ */ (0,
|
|
3438
|
-
/* @__PURE__ */ (0,
|
|
3439
|
-
/* @__PURE__ */ (0,
|
|
3440
|
-
/* @__PURE__ */ (0,
|
|
3442
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
3443
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
3444
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3445
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
3441
3446
|
Badge,
|
|
3442
3447
|
{
|
|
3443
3448
|
size: "medium",
|
|
3444
3449
|
style: { justifySelf: "flex-start" },
|
|
3445
3450
|
variant: "outline",
|
|
3446
|
-
children: /* @__PURE__ */ (0,
|
|
3447
|
-
/* @__PURE__ */ (0,
|
|
3451
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
3452
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_icons2.TimerIcon, {}),
|
|
3448
3453
|
runningTime
|
|
3449
3454
|
] })
|
|
3450
3455
|
}
|
|
3451
3456
|
)
|
|
3452
3457
|
] }),
|
|
3453
|
-
/* @__PURE__ */ (0,
|
|
3454
|
-
return /* @__PURE__ */ (0,
|
|
3458
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
3459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
3455
3460
|
}) }) }),
|
|
3456
|
-
/* @__PURE__ */ (0,
|
|
3457
|
-
/* @__PURE__ */ (0,
|
|
3458
|
-
/* @__PURE__ */ (0,
|
|
3459
|
-
/* @__PURE__ */ (0,
|
|
3461
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes39.Separator, { size: "4" }),
|
|
3462
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
3463
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
3464
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
3460
3465
|
] })
|
|
3461
3466
|
] })
|
|
3462
3467
|
]
|