@tipp/ui 2.3.14 → 2.3.15
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 +182 -159
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +98 -96
- 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 +39 -16
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +74 -72
- package/dist/app/platform/edit-service-type.cjs +41 -16
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +75 -73
- package/dist/app/platform/goal-manage-card-edit.cjs +47 -22
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +74 -72
- package/dist/app/platform/goal-manage-card-read.js +29 -29
- package/dist/app/platform/on-offline-radio-card.cjs +45 -22
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +74 -72
- package/dist/app/platform/report-card.js +29 -29
- package/dist/app/platform/reservation-card.cjs +58 -33
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +75 -73
- package/dist/app/platform/session-card.cjs +78 -55
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +77 -75
- package/dist/app/platform/session-review-simple-read.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +34 -34
- 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-2GWB6C4M.js +63 -0
- package/dist/chunk-2GWB6C4M.js.map +1 -0
- package/dist/chunk-3INEXJIV.js +37 -0
- package/dist/chunk-3INEXJIV.js.map +1 -0
- package/dist/chunk-3UOA73MU.js +196 -0
- package/dist/chunk-3UOA73MU.js.map +1 -0
- package/dist/chunk-4F2XOUIR.js +51 -0
- package/dist/chunk-4F2XOUIR.js.map +1 -0
- package/dist/chunk-6DAL2GRI.js +196 -0
- package/dist/chunk-6DAL2GRI.js.map +1 -0
- package/dist/chunk-7XUN3OQT.js +1 -0
- package/dist/chunk-7XUN3OQT.js.map +1 -0
- package/dist/chunk-A2DBM6WR.js +51 -0
- package/dist/chunk-A2DBM6WR.js.map +1 -0
- package/dist/chunk-AULDM6SL.js +89 -0
- package/dist/chunk-AULDM6SL.js.map +1 -0
- package/dist/chunk-CMFHPI3J.js +51 -0
- package/dist/chunk-CMFHPI3J.js.map +1 -0
- package/dist/chunk-FFAGYBAB.js +64 -0
- package/dist/chunk-FFAGYBAB.js.map +1 -0
- package/dist/chunk-G6ZTIOUH.js +54 -0
- package/dist/chunk-G6ZTIOUH.js.map +1 -0
- package/dist/chunk-K7NSOSIE.js +1 -0
- package/dist/chunk-K7NSOSIE.js.map +1 -0
- package/dist/chunk-MFAW7E6L.js +69 -0
- package/dist/chunk-MFAW7E6L.js.map +1 -0
- package/dist/chunk-N7WM36NN.js +64 -0
- package/dist/chunk-N7WM36NN.js.map +1 -0
- package/dist/chunk-PZXLZLQH.js +64 -0
- package/dist/chunk-PZXLZLQH.js.map +1 -0
- package/dist/chunk-QOA6EEKP.js +89 -0
- package/dist/chunk-QOA6EEKP.js.map +1 -0
- package/dist/chunk-SLV7LKTR.js +51 -0
- package/dist/chunk-SLV7LKTR.js.map +1 -0
- package/dist/chunk-TTVJOFG5.js +30 -0
- package/dist/chunk-TTVJOFG5.js.map +1 -0
- package/dist/chunk-WU6EJCDT.js +196 -0
- package/dist/chunk-WU6EJCDT.js.map +1 -0
- package/dist/chunk-ZP5VSS77.js +89 -0
- package/dist/chunk-ZP5VSS77.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +301 -239
- 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 +164 -154
- 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-review.js +22 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +25 -25
- 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 +9 -9
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +6 -6
- 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.cjs +722 -0
- package/dist/molecules/description-json-render.cjs.map +1 -0
- package/dist/molecules/description-json-render.d.cts +27 -0
- package/dist/molecules/description-json-render.d.ts +27 -0
- package/dist/molecules/description-json-render.js +30 -0
- package/dist/molecules/description-json-render.js.map +1 -0
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +4 -4
- package/dist/molecules/dynamic-form.js +5 -5
- 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 +58 -0
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +1 -0
- package/dist/molecules/index.d.ts +1 -0
- package/dist/molecules/index.js +80 -75
- 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/time-select.cjs +519 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +18 -2
- package/dist/utils/getCalloutIconComponent.cjs +580 -0
- package/dist/utils/getCalloutIconComponent.cjs.map +1 -0
- package/dist/utils/getCalloutIconComponent.d.cts +11 -0
- package/dist/utils/getCalloutIconComponent.d.ts +11 -0
- package/dist/utils/getCalloutIconComponent.js +25 -0
- package/dist/utils/getCalloutIconComponent.js.map +1 -0
- package/dist/utils/index.cjs +535 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +24 -3
- package/package.json +3 -3
- package/src/molecules/description-json-render.tsx +85 -0
- package/src/molecules/index.ts +2 -1
- package/src/utils/getCalloutIconComponent.ts +39 -0
- package/src/utils/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -79,6 +79,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
79
79
|
// src/index.ts
|
|
80
80
|
var index_exports = {};
|
|
81
81
|
__export(index_exports, {
|
|
82
|
+
AI_CALLOUT_ICON_OPTIONS: () => AI_CALLOUT_ICON_OPTIONS,
|
|
82
83
|
AlertDialog: () => import_themes.AlertDialog,
|
|
83
84
|
ArchiveIcon: () => import_react_icons2.ArchiveIcon,
|
|
84
85
|
ArrowLeftIcon: () => import_react_icons2.ArrowLeftIcon,
|
|
@@ -144,6 +145,7 @@ __export(index_exports, {
|
|
|
144
145
|
DataList: () => import_themes15.DataList,
|
|
145
146
|
DatePicker: () => DatePicker,
|
|
146
147
|
DatePickerButton: () => DatePickerButton,
|
|
148
|
+
DescriptionJsonRender: () => DescriptionJsonRender,
|
|
147
149
|
Dialog: () => Dialog,
|
|
148
150
|
DotNavigation: () => DotNavigation,
|
|
149
151
|
DotsHorizontalIcon: () => import_react_icons2.DotsHorizontalIcon,
|
|
@@ -268,6 +270,7 @@ __export(index_exports, {
|
|
|
268
270
|
VideoIcon: () => import_react_icons2.VideoIcon,
|
|
269
271
|
createColumnHelper: () => import_react_table2.createColumnHelper,
|
|
270
272
|
createYupValidation: () => createYupValidation,
|
|
273
|
+
getCalloutIconComponent: () => getCalloutIconComponent,
|
|
271
274
|
getCellAlign: () => getCellAlign,
|
|
272
275
|
getColumnMeta: () => getColumnMeta,
|
|
273
276
|
getTimeOption: () => getTimeOption,
|
|
@@ -3575,6 +3578,31 @@ var getTimeOption = (time) => {
|
|
|
3575
3578
|
return `${hour < 10 ? `0${hour}` : hour}:${minute < 10 ? `0${minute}` : minute}`;
|
|
3576
3579
|
};
|
|
3577
3580
|
|
|
3581
|
+
// src/utils/getCalloutIconComponent.ts
|
|
3582
|
+
var DEFAULT_ICON = import_react_icons2.InfoCircledIcon;
|
|
3583
|
+
var AI_CALLOUT_ICON_OPTIONS = [
|
|
3584
|
+
{ label: "Info", value: "InfoCircledIcon", Component: import_react_icons2.InfoCircledIcon },
|
|
3585
|
+
{
|
|
3586
|
+
label: "Warning",
|
|
3587
|
+
value: "ExclamationTriangleIcon",
|
|
3588
|
+
Component: import_react_icons2.ExclamationTriangleIcon
|
|
3589
|
+
},
|
|
3590
|
+
{ label: "Check", value: "CheckCircledIcon", Component: import_react_icons2.CheckCircledIcon },
|
|
3591
|
+
{
|
|
3592
|
+
label: "Question",
|
|
3593
|
+
value: "QuestionMarkCircledIcon",
|
|
3594
|
+
Component: import_react_icons2.QuestionMarkCircledIcon
|
|
3595
|
+
}
|
|
3596
|
+
];
|
|
3597
|
+
var iconByName = {};
|
|
3598
|
+
for (const opt of AI_CALLOUT_ICON_OPTIONS) {
|
|
3599
|
+
iconByName[opt.value] = opt.Component;
|
|
3600
|
+
}
|
|
3601
|
+
function getCalloutIconComponent(iconName) {
|
|
3602
|
+
var _a;
|
|
3603
|
+
return (_a = iconByName[iconName]) != null ? _a : DEFAULT_ICON;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3578
3606
|
// src/molecules/time-select.tsx
|
|
3579
3607
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3580
3608
|
var getOptionValue = (date, timeValue) => {
|
|
@@ -5899,6 +5927,37 @@ function OneOnOneGuideList(props) {
|
|
|
5899
5927
|
] });
|
|
5900
5928
|
}
|
|
5901
5929
|
|
|
5930
|
+
// src/molecules/description-json-render.tsx
|
|
5931
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5932
|
+
function DescriptionJsonRender(props) {
|
|
5933
|
+
const { value } = props;
|
|
5934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: value.values.map((block, index) => {
|
|
5935
|
+
if (block.type === "bullet-list") {
|
|
5936
|
+
return (
|
|
5937
|
+
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5938
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes6.Box, { mb: "2", pl: "4", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(List.Root, { preSpace: "small", children: block.value.map((v, i) => (
|
|
5939
|
+
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5940
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(List.Item, { children: v }, `${index}-${i}`)
|
|
5941
|
+
)) }) }, `${block.type}-${index}`)
|
|
5942
|
+
);
|
|
5943
|
+
}
|
|
5944
|
+
if (block.type === "callout") {
|
|
5945
|
+
const Icon = getCalloutIconComponent(block.icon);
|
|
5946
|
+
return (
|
|
5947
|
+
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5948
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes6.Box, { mb: "2", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes8.Callout.Root, { children: [
|
|
5949
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes8.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, {}) }),
|
|
5950
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes8.Callout.Text, { children: block.value })
|
|
5951
|
+
] }) }, `${block.type}-${index}`)
|
|
5952
|
+
);
|
|
5953
|
+
}
|
|
5954
|
+
return (
|
|
5955
|
+
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5956
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typo, { mb: "2", weight: "regular", children: block.value }, `${block.type}-${index}`)
|
|
5957
|
+
);
|
|
5958
|
+
}) });
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5902
5961
|
// src/theme/use-theme.tsx
|
|
5903
5962
|
var import_themes56 = require("@radix-ui/themes");
|
|
5904
5963
|
|
|
@@ -5906,22 +5965,22 @@ var import_themes56 = require("@radix-ui/themes");
|
|
|
5906
5965
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
5907
5966
|
|
|
5908
5967
|
// src/charts/horizontal-bar-chart.tsx
|
|
5909
|
-
var
|
|
5968
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5910
5969
|
function HorizontalBarChart(props) {
|
|
5911
5970
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
5912
|
-
return /* @__PURE__ */ (0,
|
|
5971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5913
5972
|
"div",
|
|
5914
5973
|
{
|
|
5915
5974
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
5916
5975
|
style: { height, backgroundColor },
|
|
5917
|
-
children: /* @__PURE__ */ (0,
|
|
5976
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5918
5977
|
"div",
|
|
5919
5978
|
{
|
|
5920
5979
|
style: {
|
|
5921
5980
|
width: `${Math.round(value / total * 100)}%`,
|
|
5922
5981
|
height: "100%"
|
|
5923
5982
|
},
|
|
5924
|
-
children: /* @__PURE__ */ (0,
|
|
5983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
5925
5984
|
}
|
|
5926
5985
|
)
|
|
5927
5986
|
}
|
|
@@ -6077,23 +6136,23 @@ var EchartDefaultProps = {
|
|
|
6077
6136
|
};
|
|
6078
6137
|
|
|
6079
6138
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
6080
|
-
var
|
|
6139
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6081
6140
|
function CoachingCustomerInfoSmall({
|
|
6082
6141
|
customer,
|
|
6083
6142
|
children,
|
|
6084
6143
|
badge
|
|
6085
6144
|
}) {
|
|
6086
|
-
return /* @__PURE__ */ (0,
|
|
6145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
6087
6146
|
import_themes22.Flex,
|
|
6088
6147
|
{
|
|
6089
6148
|
direction: { initial: "column", xs: "row" },
|
|
6090
6149
|
gap: "3",
|
|
6091
6150
|
justify: "between",
|
|
6092
6151
|
children: [
|
|
6093
|
-
/* @__PURE__ */ (0,
|
|
6094
|
-
/* @__PURE__ */ (0,
|
|
6095
|
-
/* @__PURE__ */ (0,
|
|
6096
|
-
/* @__PURE__ */ (0,
|
|
6152
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
6153
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
6097
6156
|
] }) }),
|
|
6098
6157
|
children
|
|
6099
6158
|
]
|
|
@@ -6104,7 +6163,7 @@ function CoachingCustomerInfoSmall({
|
|
|
6104
6163
|
// src/app/platform/userInfos/utils.tsx
|
|
6105
6164
|
var import_date_fns3 = require("date-fns");
|
|
6106
6165
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
6107
|
-
var
|
|
6166
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6108
6167
|
var infoList = [
|
|
6109
6168
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
6110
6169
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -6164,21 +6223,21 @@ var sessionList = [
|
|
|
6164
6223
|
var renderItem = (args) => {
|
|
6165
6224
|
const { info, data, onClickCopy } = args;
|
|
6166
6225
|
const value = info.getValue(data);
|
|
6167
|
-
return /* @__PURE__ */ (0,
|
|
6226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
6168
6227
|
info.render ? info.render(value) : value || "-",
|
|
6169
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
6228
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
6170
6229
|
] });
|
|
6171
6230
|
};
|
|
6172
6231
|
var renderDataListItem = (args) => {
|
|
6173
6232
|
const { info, data, onClickCopy } = args;
|
|
6174
|
-
return /* @__PURE__ */ (0,
|
|
6175
|
-
/* @__PURE__ */ (0,
|
|
6176
|
-
/* @__PURE__ */ (0,
|
|
6233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes15.DataList.Item, { children: [
|
|
6234
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
6235
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
6177
6236
|
] }, info.label);
|
|
6178
6237
|
};
|
|
6179
6238
|
function CopyButton(props) {
|
|
6180
6239
|
const { value, onClickCopy } = props;
|
|
6181
|
-
return /* @__PURE__ */ (0,
|
|
6240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6182
6241
|
Button,
|
|
6183
6242
|
{
|
|
6184
6243
|
color: "gray",
|
|
@@ -6187,13 +6246,13 @@ function CopyButton(props) {
|
|
|
6187
6246
|
},
|
|
6188
6247
|
style: { marginLeft: "0", marginTop: "0" },
|
|
6189
6248
|
variant: "transparent",
|
|
6190
|
-
children: /* @__PURE__ */ (0,
|
|
6249
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons9.CopyIcon, {})
|
|
6191
6250
|
}
|
|
6192
6251
|
);
|
|
6193
6252
|
}
|
|
6194
6253
|
|
|
6195
6254
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
6196
|
-
var
|
|
6255
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6197
6256
|
function CoachingCustomerInfoMedium({
|
|
6198
6257
|
customer,
|
|
6199
6258
|
session,
|
|
@@ -6201,28 +6260,28 @@ function CoachingCustomerInfoMedium({
|
|
|
6201
6260
|
badge,
|
|
6202
6261
|
onClickCopy
|
|
6203
6262
|
}) {
|
|
6204
|
-
return /* @__PURE__ */ (0,
|
|
6205
|
-
/* @__PURE__ */ (0,
|
|
6206
|
-
/* @__PURE__ */ (0,
|
|
6207
|
-
/* @__PURE__ */ (0,
|
|
6263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6264
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes6.Box, { children: [
|
|
6265
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6266
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6208
6267
|
badge
|
|
6209
6268
|
] }),
|
|
6210
|
-
/* @__PURE__ */ (0,
|
|
6269
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6211
6270
|
] }),
|
|
6212
6271
|
children,
|
|
6213
|
-
/* @__PURE__ */ (0,
|
|
6272
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
6214
6273
|
(el) => renderDataListItem({
|
|
6215
6274
|
info: el,
|
|
6216
6275
|
data: session,
|
|
6217
6276
|
onClickCopy
|
|
6218
6277
|
})
|
|
6219
6278
|
) }) }),
|
|
6220
|
-
/* @__PURE__ */ (0,
|
|
6221
|
-
/* @__PURE__ */ (0,
|
|
6222
|
-
/* @__PURE__ */ (0,
|
|
6279
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
6280
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
6281
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes39.Separator, { size: "4" })
|
|
6223
6282
|
] }),
|
|
6224
|
-
/* @__PURE__ */ (0,
|
|
6225
|
-
return /* @__PURE__ */ (0,
|
|
6283
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
6284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Typo, { children: renderItem({
|
|
6226
6285
|
info: el,
|
|
6227
6286
|
data: customer,
|
|
6228
6287
|
onClickCopy
|
|
@@ -6232,7 +6291,7 @@ function CoachingCustomerInfoMedium({
|
|
|
6232
6291
|
}
|
|
6233
6292
|
|
|
6234
6293
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
6235
|
-
var
|
|
6294
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6236
6295
|
function CoachingCustomerInfoLarge({
|
|
6237
6296
|
customer,
|
|
6238
6297
|
session,
|
|
@@ -6240,24 +6299,24 @@ function CoachingCustomerInfoLarge({
|
|
|
6240
6299
|
badge,
|
|
6241
6300
|
onClickCopy
|
|
6242
6301
|
}) {
|
|
6243
|
-
return /* @__PURE__ */ (0,
|
|
6244
|
-
/* @__PURE__ */ (0,
|
|
6245
|
-
/* @__PURE__ */ (0,
|
|
6246
|
-
/* @__PURE__ */ (0,
|
|
6302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6303
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes6.Box, { children: [
|
|
6304
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6305
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6247
6306
|
badge
|
|
6248
6307
|
] }),
|
|
6249
|
-
/* @__PURE__ */ (0,
|
|
6308
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6250
6309
|
] }),
|
|
6251
6310
|
children,
|
|
6252
|
-
/* @__PURE__ */ (0,
|
|
6311
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
6253
6312
|
(el) => renderDataListItem({
|
|
6254
6313
|
info: el,
|
|
6255
6314
|
data: session,
|
|
6256
6315
|
onClickCopy
|
|
6257
6316
|
})
|
|
6258
6317
|
) }) }),
|
|
6259
|
-
/* @__PURE__ */ (0,
|
|
6260
|
-
/* @__PURE__ */ (0,
|
|
6318
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes39.Separator, { size: "4" }),
|
|
6319
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
6261
6320
|
(info) => renderDataListItem({
|
|
6262
6321
|
info,
|
|
6263
6322
|
data: customer,
|
|
@@ -6268,19 +6327,19 @@ function CoachingCustomerInfoLarge({
|
|
|
6268
6327
|
}
|
|
6269
6328
|
|
|
6270
6329
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
6271
|
-
var
|
|
6330
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
6272
6331
|
function CoachingCustomerInfo(props) {
|
|
6273
|
-
return /* @__PURE__ */ (0,
|
|
6274
|
-
/* @__PURE__ */ (0,
|
|
6275
|
-
/* @__PURE__ */ (0,
|
|
6276
|
-
/* @__PURE__ */ (0,
|
|
6332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
6333
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
6334
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
6335
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
6277
6336
|
] });
|
|
6278
6337
|
}
|
|
6279
6338
|
|
|
6280
6339
|
// src/app/platform/goal-manage-card-read.tsx
|
|
6281
6340
|
var import_react45 = require("react");
|
|
6282
6341
|
var import_date_fns4 = require("date-fns");
|
|
6283
|
-
var
|
|
6342
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
6284
6343
|
function GoalManageCardRead(props) {
|
|
6285
6344
|
const {
|
|
6286
6345
|
title,
|
|
@@ -6298,7 +6357,7 @@ function GoalManageCardRead(props) {
|
|
|
6298
6357
|
const onClickOpen = (0, import_react45.useCallback)(() => {
|
|
6299
6358
|
setOpen((p) => !p);
|
|
6300
6359
|
}, []);
|
|
6301
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
6360
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
6302
6361
|
const badgeMeta = (0, import_react45.useMemo)(() => {
|
|
6303
6362
|
if (!completed && dueDate) {
|
|
6304
6363
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
@@ -6311,40 +6370,40 @@ function GoalManageCardRead(props) {
|
|
|
6311
6370
|
return null;
|
|
6312
6371
|
}, [completed, dueDate]);
|
|
6313
6372
|
const renderSubTitle = (0, import_react45.useCallback)((subTitle) => {
|
|
6314
|
-
return /* @__PURE__ */ (0,
|
|
6373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
6315
6374
|
}, []);
|
|
6316
6375
|
const renderSubContent = (0, import_react45.useCallback)((content) => {
|
|
6317
|
-
return /* @__PURE__ */ (0,
|
|
6376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
6318
6377
|
}, []);
|
|
6319
6378
|
const renderCompleteButton = (0, import_react45.useCallback)(() => {
|
|
6320
6379
|
if (completed) {
|
|
6321
|
-
return /* @__PURE__ */ (0,
|
|
6380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
6322
6381
|
}
|
|
6323
|
-
return /* @__PURE__ */ (0,
|
|
6324
|
-
/* @__PURE__ */ (0,
|
|
6325
|
-
/* @__PURE__ */ (0,
|
|
6382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6383
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Button, { size: "small", children: [
|
|
6384
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons2.RocketIcon, {}),
|
|
6326
6385
|
"\uB2EC\uC131\uD558\uAE30"
|
|
6327
6386
|
] }) }),
|
|
6328
|
-
/* @__PURE__ */ (0,
|
|
6329
|
-
/* @__PURE__ */ (0,
|
|
6330
|
-
/* @__PURE__ */ (0,
|
|
6331
|
-
/* @__PURE__ */ (0,
|
|
6332
|
-
/* @__PURE__ */ (0,
|
|
6387
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6388
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6389
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6390
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6391
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
6333
6392
|
] })
|
|
6334
6393
|
] })
|
|
6335
6394
|
] });
|
|
6336
6395
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
6337
|
-
return /* @__PURE__ */ (0,
|
|
6338
|
-
/* @__PURE__ */ (0,
|
|
6339
|
-
/* @__PURE__ */ (0,
|
|
6340
|
-
/* @__PURE__ */ (0,
|
|
6341
|
-
/* @__PURE__ */ (0,
|
|
6342
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
6397
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
6398
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6399
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
6400
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
6401
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
6402
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
6344
6403
|
] }),
|
|
6345
6404
|
renderCompleteButton()
|
|
6346
6405
|
] }),
|
|
6347
|
-
open ? /* @__PURE__ */ (0,
|
|
6406
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
6348
6407
|
import_themes39.Separator,
|
|
6349
6408
|
{
|
|
6350
6409
|
mb: "4",
|
|
@@ -6353,37 +6412,37 @@ function GoalManageCardRead(props) {
|
|
|
6353
6412
|
style: { gridColumnStart: "span 2" }
|
|
6354
6413
|
}
|
|
6355
6414
|
) : null,
|
|
6356
|
-
/* @__PURE__ */ (0,
|
|
6357
|
-
/* @__PURE__ */ (0,
|
|
6358
|
-
/* @__PURE__ */ (0,
|
|
6415
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Collapse, { open, children: [
|
|
6416
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6417
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes6.Box, { children: [
|
|
6359
6418
|
renderSubTitle(
|
|
6360
6419
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
6361
6420
|
),
|
|
6362
6421
|
renderSubContent(expectedEffect)
|
|
6363
6422
|
] }),
|
|
6364
|
-
/* @__PURE__ */ (0,
|
|
6423
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes6.Box, { children: [
|
|
6365
6424
|
renderSubTitle(
|
|
6366
6425
|
"\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"
|
|
6367
6426
|
),
|
|
6368
6427
|
renderSubContent(huddle)
|
|
6369
6428
|
] })
|
|
6370
6429
|
] }),
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6373
|
-
/* @__PURE__ */ (0,
|
|
6374
|
-
/* @__PURE__ */ (0,
|
|
6430
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
6431
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6432
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
6433
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons2.TrashIcon, {}),
|
|
6375
6434
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
6376
6435
|
] }) }),
|
|
6377
|
-
/* @__PURE__ */ (0,
|
|
6378
|
-
/* @__PURE__ */ (0,
|
|
6379
|
-
/* @__PURE__ */ (0,
|
|
6380
|
-
/* @__PURE__ */ (0,
|
|
6381
|
-
/* @__PURE__ */ (0,
|
|
6436
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6437
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6438
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6439
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6440
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
6382
6441
|
] })
|
|
6383
6442
|
] })
|
|
6384
6443
|
] }),
|
|
6385
|
-
/* @__PURE__ */ (0,
|
|
6386
|
-
/* @__PURE__ */ (0,
|
|
6444
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
6445
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
6387
6446
|
"\uC218\uC815\uD558\uAE30"
|
|
6388
6447
|
] })
|
|
6389
6448
|
] })
|
|
@@ -6394,7 +6453,7 @@ function GoalManageCardRead(props) {
|
|
|
6394
6453
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
6395
6454
|
var import_react46 = require("react");
|
|
6396
6455
|
var import_date_fns5 = require("date-fns");
|
|
6397
|
-
var
|
|
6456
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6398
6457
|
var initialValues = {
|
|
6399
6458
|
goal: "",
|
|
6400
6459
|
effect: "",
|
|
@@ -6423,11 +6482,11 @@ function GoalManageCardEdit(props) {
|
|
|
6423
6482
|
var _a;
|
|
6424
6483
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
6425
6484
|
}, [props, values]);
|
|
6426
|
-
return /* @__PURE__ */ (0,
|
|
6427
|
-
/* @__PURE__ */ (0,
|
|
6428
|
-
/* @__PURE__ */ (0,
|
|
6429
|
-
/* @__PURE__ */ (0,
|
|
6430
|
-
/* @__PURE__ */ (0,
|
|
6485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
6486
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6487
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Form.Field, { name: "title", children: [
|
|
6488
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6489
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6431
6490
|
TextField.Root,
|
|
6432
6491
|
{
|
|
6433
6492
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -6438,11 +6497,11 @@ function GoalManageCardEdit(props) {
|
|
|
6438
6497
|
value: values.goal
|
|
6439
6498
|
}
|
|
6440
6499
|
),
|
|
6441
|
-
/* @__PURE__ */ (0,
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
6442
6501
|
] }),
|
|
6443
|
-
/* @__PURE__ */ (0,
|
|
6444
|
-
/* @__PURE__ */ (0,
|
|
6445
|
-
/* @__PURE__ */ (0,
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Form.Field, { name: "effect", children: [
|
|
6503
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6446
6505
|
TextArea,
|
|
6447
6506
|
{
|
|
6448
6507
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -6454,11 +6513,11 @@ function GoalManageCardEdit(props) {
|
|
|
6454
6513
|
value: values.effect
|
|
6455
6514
|
}
|
|
6456
6515
|
),
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6516
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
6458
6517
|
] }),
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6460
|
-
/* @__PURE__ */ (0,
|
|
6461
|
-
/* @__PURE__ */ (0,
|
|
6518
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Form.Field, { name: "huddle", children: [
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
6520
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6462
6521
|
TextArea,
|
|
6463
6522
|
{
|
|
6464
6523
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -6472,11 +6531,11 @@ function GoalManageCardEdit(props) {
|
|
|
6472
6531
|
value: values.huddle
|
|
6473
6532
|
}
|
|
6474
6533
|
),
|
|
6475
|
-
/* @__PURE__ */ (0,
|
|
6534
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
6476
6535
|
] }),
|
|
6477
|
-
/* @__PURE__ */ (0,
|
|
6478
|
-
/* @__PURE__ */ (0,
|
|
6479
|
-
/* @__PURE__ */ (0,
|
|
6536
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
6537
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6538
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6480
6539
|
DatePickerButton,
|
|
6481
6540
|
{
|
|
6482
6541
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -6487,11 +6546,11 @@ function GoalManageCardEdit(props) {
|
|
|
6487
6546
|
selected: values.dueDate
|
|
6488
6547
|
}
|
|
6489
6548
|
),
|
|
6490
|
-
/* @__PURE__ */ (0,
|
|
6549
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
6491
6550
|
] })
|
|
6492
6551
|
] }),
|
|
6493
|
-
/* @__PURE__ */ (0,
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6552
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
6553
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6495
6554
|
Button,
|
|
6496
6555
|
{
|
|
6497
6556
|
color: "gray",
|
|
@@ -6502,7 +6561,7 @@ function GoalManageCardEdit(props) {
|
|
|
6502
6561
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6503
6562
|
}
|
|
6504
6563
|
),
|
|
6505
|
-
/* @__PURE__ */ (0,
|
|
6564
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6506
6565
|
] })
|
|
6507
6566
|
] }) });
|
|
6508
6567
|
}
|
|
@@ -6513,7 +6572,7 @@ var import_date_fns6 = require("date-fns");
|
|
|
6513
6572
|
|
|
6514
6573
|
// src/app/platform/edit-coaching-time.tsx
|
|
6515
6574
|
var import_react47 = require("react");
|
|
6516
|
-
var
|
|
6575
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6517
6576
|
var getValueFromDefaultValue = (args) => {
|
|
6518
6577
|
return {
|
|
6519
6578
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -6583,10 +6642,10 @@ function EditCoachingTime(props) {
|
|
|
6583
6642
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
6584
6643
|
}
|
|
6585
6644
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
6586
|
-
return /* @__PURE__ */ (0,
|
|
6587
|
-
/* @__PURE__ */ (0,
|
|
6588
|
-
/* @__PURE__ */ (0,
|
|
6589
|
-
/* @__PURE__ */ (0,
|
|
6645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(Form.Root, { children: [
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(Form.Field, { name: "date", children: [
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6590
6649
|
DatePickerButton,
|
|
6591
6650
|
{
|
|
6592
6651
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -6596,7 +6655,7 @@ function EditCoachingTime(props) {
|
|
|
6596
6655
|
}
|
|
6597
6656
|
)
|
|
6598
6657
|
] }),
|
|
6599
|
-
/* @__PURE__ */ (0,
|
|
6658
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
6600
6659
|
import_themes23.Grid,
|
|
6601
6660
|
{
|
|
6602
6661
|
align: "center",
|
|
@@ -6611,10 +6670,10 @@ function EditCoachingTime(props) {
|
|
|
6611
6670
|
mt: "5",
|
|
6612
6671
|
width: "100%",
|
|
6613
6672
|
children: [
|
|
6614
|
-
/* @__PURE__ */ (0,
|
|
6615
|
-
/* @__PURE__ */ (0,
|
|
6616
|
-
/* @__PURE__ */ (0,
|
|
6617
|
-
/* @__PURE__ */ (0,
|
|
6673
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
6674
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", {}),
|
|
6675
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
6676
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6618
6677
|
TimeSelect,
|
|
6619
6678
|
{
|
|
6620
6679
|
onValueChange: onChangeStartTime,
|
|
@@ -6622,8 +6681,8 @@ function EditCoachingTime(props) {
|
|
|
6622
6681
|
value: values.startTime
|
|
6623
6682
|
}
|
|
6624
6683
|
),
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6684
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes39.Separator, {}) }),
|
|
6685
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6627
6686
|
TimeSelect,
|
|
6628
6687
|
{
|
|
6629
6688
|
onValueChange: onChangeEndTime,
|
|
@@ -6631,13 +6690,13 @@ function EditCoachingTime(props) {
|
|
|
6631
6690
|
value: values.endTime
|
|
6632
6691
|
}
|
|
6633
6692
|
),
|
|
6634
|
-
/* @__PURE__ */ (0,
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
6635
6694
|
]
|
|
6636
6695
|
}
|
|
6637
6696
|
),
|
|
6638
|
-
/* @__PURE__ */ (0,
|
|
6639
|
-
/* @__PURE__ */ (0,
|
|
6640
|
-
/* @__PURE__ */ (0,
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6641
6700
|
] })
|
|
6642
6701
|
] }) });
|
|
6643
6702
|
}
|
|
@@ -6647,20 +6706,20 @@ var import_react48 = require("react");
|
|
|
6647
6706
|
|
|
6648
6707
|
// src/app/platform/on-offline-radio-card.tsx
|
|
6649
6708
|
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
6650
|
-
var
|
|
6709
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6651
6710
|
var SERVICE_TYPE = {
|
|
6652
6711
|
onlineCoaching: "onlineCoaching",
|
|
6653
6712
|
offlineCoaching: "offlineCoaching"
|
|
6654
6713
|
};
|
|
6655
6714
|
var breakpoint = "sm";
|
|
6656
6715
|
function HideSmallBox(props) {
|
|
6657
|
-
return /* @__PURE__ */ (0,
|
|
6716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
6658
6717
|
}
|
|
6659
6718
|
function OnOfflineRadioCard(props) {
|
|
6660
6719
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
6661
6720
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
6662
6721
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
6663
|
-
return /* @__PURE__ */ (0,
|
|
6722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
6664
6723
|
RadioButtonCard.Root,
|
|
6665
6724
|
__spreadProps(__spreadValues({
|
|
6666
6725
|
RadioWrapper: Wrapper,
|
|
@@ -6669,13 +6728,13 @@ function OnOfflineRadioCard(props) {
|
|
|
6669
6728
|
justify
|
|
6670
6729
|
}, props), {
|
|
6671
6730
|
children: [
|
|
6672
|
-
/* @__PURE__ */ (0,
|
|
6673
|
-
/* @__PURE__ */ (0,
|
|
6674
|
-
/* @__PURE__ */ (0,
|
|
6731
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6732
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons10.GlobeIcon, {}) }),
|
|
6733
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
6675
6734
|
] }) }),
|
|
6676
|
-
/* @__PURE__ */ (0,
|
|
6677
|
-
/* @__PURE__ */ (0,
|
|
6678
|
-
/* @__PURE__ */ (0,
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6736
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons10.BackpackIcon, {}) }),
|
|
6737
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
6679
6738
|
] }) })
|
|
6680
6739
|
]
|
|
6681
6740
|
})
|
|
@@ -6683,7 +6742,7 @@ function OnOfflineRadioCard(props) {
|
|
|
6683
6742
|
}
|
|
6684
6743
|
|
|
6685
6744
|
// src/app/platform/edit-service-type.tsx
|
|
6686
|
-
var
|
|
6745
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6687
6746
|
function EditServiceType(props) {
|
|
6688
6747
|
const { defaultServiceType, onClickCancel } = props;
|
|
6689
6748
|
const [sessionType, setSessionType] = (0, import_react48.useState)(
|
|
@@ -6693,8 +6752,8 @@ function EditServiceType(props) {
|
|
|
6693
6752
|
var _a;
|
|
6694
6753
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
6695
6754
|
}, [props, sessionType]);
|
|
6696
|
-
return /* @__PURE__ */ (0,
|
|
6697
|
-
/* @__PURE__ */ (0,
|
|
6755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes6.Box, { children: [
|
|
6756
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6698
6757
|
Typo,
|
|
6699
6758
|
{
|
|
6700
6759
|
as: "p",
|
|
@@ -6704,16 +6763,16 @@ function EditServiceType(props) {
|
|
|
6704
6763
|
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"
|
|
6705
6764
|
}
|
|
6706
6765
|
),
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6708
|
-
/* @__PURE__ */ (0,
|
|
6709
|
-
/* @__PURE__ */ (0,
|
|
6710
|
-
/* @__PURE__ */ (0,
|
|
6766
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
6767
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
6768
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
6769
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6711
6770
|
] })
|
|
6712
6771
|
] });
|
|
6713
6772
|
}
|
|
6714
6773
|
|
|
6715
6774
|
// src/app/platform/session-card.tsx
|
|
6716
|
-
var
|
|
6775
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
6717
6776
|
var preventDefault4 = (e) => {
|
|
6718
6777
|
e.preventDefault();
|
|
6719
6778
|
};
|
|
@@ -6744,32 +6803,32 @@ function SessionCard(props) {
|
|
|
6744
6803
|
"sessionType"
|
|
6745
6804
|
]);
|
|
6746
6805
|
const renderEditButton = (0, import_react49.useCallback)(() => {
|
|
6747
|
-
return /* @__PURE__ */ (0,
|
|
6806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
6748
6807
|
}, []);
|
|
6749
6808
|
const sessionTimeStr = (0, import_react49.useMemo)(() => {
|
|
6750
6809
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
6751
6810
|
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")}`;
|
|
6752
6811
|
}, [startAt, endAt]);
|
|
6753
|
-
return /* @__PURE__ */ (0,
|
|
6754
|
-
/* @__PURE__ */ (0,
|
|
6755
|
-
/* @__PURE__ */ (0,
|
|
6812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
6813
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
6814
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
6756
6815
|
TitleExtra,
|
|
6757
|
-
error ? /* @__PURE__ */ (0,
|
|
6816
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
6758
6817
|
] }),
|
|
6759
|
-
/* @__PURE__ */ (0,
|
|
6760
|
-
/* @__PURE__ */ (0,
|
|
6761
|
-
/* @__PURE__ */ (0,
|
|
6762
|
-
/* @__PURE__ */ (0,
|
|
6818
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes15.DataList.Root, { children: [
|
|
6819
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes15.DataList.Item, { children: [
|
|
6820
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
6821
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6763
6822
|
sessionTimeStr,
|
|
6764
|
-
editable ? /* @__PURE__ */ (0,
|
|
6765
|
-
/* @__PURE__ */ (0,
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6823
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Dialog.Root, { children: [
|
|
6824
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6767
6826
|
Dialog.Content,
|
|
6768
6827
|
{
|
|
6769
6828
|
onOpenAutoFocus: preventDefault4,
|
|
6770
6829
|
style: { overflow: "visible" },
|
|
6771
6830
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
6772
|
-
children: /* @__PURE__ */ (0,
|
|
6831
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6773
6832
|
EditCoachingTime,
|
|
6774
6833
|
{
|
|
6775
6834
|
defaultEndAt: endAt,
|
|
@@ -6782,18 +6841,18 @@ function SessionCard(props) {
|
|
|
6782
6841
|
] }) : null
|
|
6783
6842
|
] })
|
|
6784
6843
|
] }),
|
|
6785
|
-
/* @__PURE__ */ (0,
|
|
6786
|
-
/* @__PURE__ */ (0,
|
|
6787
|
-
/* @__PURE__ */ (0,
|
|
6788
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
6845
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes15.DataList.Item, { children: [
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6789
6848
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
6790
|
-
editable ? /* @__PURE__ */ (0,
|
|
6791
|
-
/* @__PURE__ */ (0,
|
|
6792
|
-
/* @__PURE__ */ (0,
|
|
6849
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Dialog.Root, { children: [
|
|
6850
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
6851
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6793
6852
|
Dialog.Content,
|
|
6794
6853
|
{
|
|
6795
6854
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
6796
|
-
children: /* @__PURE__ */ (0,
|
|
6855
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6797
6856
|
EditServiceType,
|
|
6798
6857
|
{
|
|
6799
6858
|
defaultServiceType: sessionType,
|
|
@@ -6805,25 +6864,25 @@ function SessionCard(props) {
|
|
|
6805
6864
|
] }) : null
|
|
6806
6865
|
] })
|
|
6807
6866
|
] }),
|
|
6808
|
-
/* @__PURE__ */ (0,
|
|
6867
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
6809
6868
|
] })
|
|
6810
6869
|
] })
|
|
6811
6870
|
] }) }));
|
|
6812
6871
|
}
|
|
6813
6872
|
|
|
6814
6873
|
// src/app/platform/coach-question-list.tsx
|
|
6815
|
-
var
|
|
6874
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
6816
6875
|
function QuestionItem({ question, answer }) {
|
|
6817
|
-
return /* @__PURE__ */ (0,
|
|
6818
|
-
/* @__PURE__ */ (0,
|
|
6819
|
-
/* @__PURE__ */ (0,
|
|
6876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes6.Box, { children: [
|
|
6877
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
6878
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
6820
6879
|
] }, question);
|
|
6821
6880
|
}
|
|
6822
6881
|
function CoachQuestionList({
|
|
6823
6882
|
questions
|
|
6824
6883
|
}) {
|
|
6825
|
-
return /* @__PURE__ */ (0,
|
|
6826
|
-
return /* @__PURE__ */ (0,
|
|
6884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
6885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
6827
6886
|
}) });
|
|
6828
6887
|
}
|
|
6829
6888
|
|
|
@@ -6831,7 +6890,7 @@ function CoachQuestionList({
|
|
|
6831
6890
|
var import_react50 = require("react");
|
|
6832
6891
|
var import_date_fns7 = require("date-fns");
|
|
6833
6892
|
var import_locale2 = require("date-fns/locale");
|
|
6834
|
-
var
|
|
6893
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6835
6894
|
function ReservationCard(props) {
|
|
6836
6895
|
const {
|
|
6837
6896
|
sessionNumber,
|
|
@@ -6864,9 +6923,9 @@ function ReservationCard(props) {
|
|
|
6864
6923
|
}, [defaultTime, defaultType]);
|
|
6865
6924
|
const ActionButtons = (0, import_react50.useMemo)(() => {
|
|
6866
6925
|
if (readonly) {
|
|
6867
|
-
return /* @__PURE__ */ (0,
|
|
6926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
6868
6927
|
}
|
|
6869
|
-
return /* @__PURE__ */ (0,
|
|
6928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
6870
6929
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
6871
6930
|
const onChangeDate = (0, import_react50.useCallback)((newDate) => {
|
|
6872
6931
|
if (!newDate) return;
|
|
@@ -6908,39 +6967,39 @@ function ReservationCard(props) {
|
|
|
6908
6967
|
});
|
|
6909
6968
|
}
|
|
6910
6969
|
}, [editValues, maxTime, readonly]);
|
|
6911
|
-
return /* @__PURE__ */ (0,
|
|
6970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
6912
6971
|
Card,
|
|
6913
6972
|
{
|
|
6914
6973
|
error: Boolean(error),
|
|
6915
6974
|
size: "3",
|
|
6916
6975
|
style: { overflow: "visible", contain: "initial" },
|
|
6917
6976
|
children: [
|
|
6918
|
-
/* @__PURE__ */ (0,
|
|
6919
|
-
/* @__PURE__ */ (0,
|
|
6977
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
6978
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
6920
6979
|
import_themes23.Grid,
|
|
6921
6980
|
{
|
|
6922
6981
|
align: "center",
|
|
6923
6982
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
6924
6983
|
gapY: "2",
|
|
6925
6984
|
children: [
|
|
6926
|
-
/* @__PURE__ */ (0,
|
|
6927
|
-
/* @__PURE__ */ (0,
|
|
6985
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
6986
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Heading2, { variant: "heading4", children: [
|
|
6928
6987
|
customerName || "-",
|
|
6929
6988
|
"\uB2D8 ",
|
|
6930
6989
|
sessionNumber || "-",
|
|
6931
6990
|
"\uD68C\uCC28 \uC138\uC158"
|
|
6932
6991
|
] }),
|
|
6933
|
-
/* @__PURE__ */ (0,
|
|
6992
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
6934
6993
|
] }),
|
|
6935
|
-
error ? /* @__PURE__ */ (0,
|
|
6994
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
6936
6995
|
]
|
|
6937
6996
|
}
|
|
6938
6997
|
),
|
|
6939
|
-
/* @__PURE__ */ (0,
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
6940
6999
|
] }),
|
|
6941
|
-
/* @__PURE__ */ (0,
|
|
6942
|
-
/* @__PURE__ */ (0,
|
|
6943
|
-
/* @__PURE__ */ (0,
|
|
7000
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7001
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
7002
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6944
7003
|
DatePickerButton,
|
|
6945
7004
|
{
|
|
6946
7005
|
disabled: readonly,
|
|
@@ -6954,8 +7013,8 @@ function ReservationCard(props) {
|
|
|
6954
7013
|
size: "large"
|
|
6955
7014
|
}
|
|
6956
7015
|
),
|
|
6957
|
-
/* @__PURE__ */ (0,
|
|
6958
|
-
/* @__PURE__ */ (0,
|
|
7016
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }),
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6959
7018
|
OnOfflineRadioCard,
|
|
6960
7019
|
{
|
|
6961
7020
|
disabled: readonly,
|
|
@@ -6964,8 +7023,8 @@ function ReservationCard(props) {
|
|
|
6964
7023
|
value: type
|
|
6965
7024
|
}
|
|
6966
7025
|
),
|
|
6967
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
7026
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
7027
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6969
7028
|
Button,
|
|
6970
7029
|
{
|
|
6971
7030
|
color: "gray",
|
|
@@ -6975,10 +7034,10 @@ function ReservationCard(props) {
|
|
|
6975
7034
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6976
7035
|
}
|
|
6977
7036
|
),
|
|
6978
|
-
/* @__PURE__ */ (0,
|
|
7037
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6979
7038
|
] })
|
|
6980
7039
|
] }) }),
|
|
6981
|
-
readonly ? /* @__PURE__ */ (0,
|
|
7040
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6982
7041
|
import_themes6.Box,
|
|
6983
7042
|
{
|
|
6984
7043
|
mt: "5",
|
|
@@ -6986,14 +7045,14 @@ function ReservationCard(props) {
|
|
|
6986
7045
|
py: "4",
|
|
6987
7046
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
6988
7047
|
width: "100%",
|
|
6989
|
-
children: /* @__PURE__ */ (0,
|
|
6990
|
-
/* @__PURE__ */ (0,
|
|
7048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
7049
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Typo, { children: [
|
|
6991
7050
|
sessionNumber || "-",
|
|
6992
7051
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
6993
7052
|
] }),
|
|
6994
|
-
/* @__PURE__ */ (0,
|
|
7053
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
6995
7054
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
6996
|
-
/* @__PURE__ */ (0,
|
|
7055
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
6997
7056
|
] })
|
|
6998
7057
|
] })
|
|
6999
7058
|
}
|
|
@@ -7005,14 +7064,14 @@ function ReservationCard(props) {
|
|
|
7005
7064
|
|
|
7006
7065
|
// src/app/platform/session-review-simple-read.tsx
|
|
7007
7066
|
var import_react51 = require("react");
|
|
7008
|
-
var
|
|
7067
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
7009
7068
|
function SubTitleWrapper({
|
|
7010
7069
|
children,
|
|
7011
7070
|
title
|
|
7012
7071
|
}) {
|
|
7013
|
-
return /* @__PURE__ */ (0,
|
|
7014
|
-
/* @__PURE__ */ (0,
|
|
7015
|
-
/* @__PURE__ */ (0,
|
|
7072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
7073
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
7074
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes6.Box, { children })
|
|
7016
7075
|
] });
|
|
7017
7076
|
}
|
|
7018
7077
|
function SessionReviewSimpleRead({
|
|
@@ -7037,22 +7096,22 @@ function SessionReviewSimpleRead({
|
|
|
7037
7096
|
color: "error"
|
|
7038
7097
|
};
|
|
7039
7098
|
}, [helpfulness]);
|
|
7040
|
-
return /* @__PURE__ */ (0,
|
|
7041
|
-
/* @__PURE__ */ (0,
|
|
7042
|
-
/* @__PURE__ */ (0,
|
|
7099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7100
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.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_runtime104.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
7101
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
7043
7102
|
] }) });
|
|
7044
7103
|
}
|
|
7045
7104
|
|
|
7046
7105
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
7047
|
-
var
|
|
7106
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
7048
7107
|
function SectionWrapper({
|
|
7049
7108
|
title,
|
|
7050
7109
|
children
|
|
7051
7110
|
}) {
|
|
7052
|
-
return /* @__PURE__ */ (0,
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7054
|
-
/* @__PURE__ */ (0,
|
|
7055
|
-
/* @__PURE__ */ (0,
|
|
7111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes6.Box, { children: [
|
|
7112
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
7113
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
7114
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes39.Separator, { size: "4" })
|
|
7056
7115
|
] }),
|
|
7057
7116
|
children
|
|
7058
7117
|
] });
|
|
@@ -7062,11 +7121,11 @@ function SessionUserInfoDetail({
|
|
|
7062
7121
|
session,
|
|
7063
7122
|
onClickCopy
|
|
7064
7123
|
}) {
|
|
7065
|
-
return /* @__PURE__ */ (0,
|
|
7066
|
-
/* @__PURE__ */ (0,
|
|
7124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
7125
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
7067
7126
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
7068
7127
|
) }) }),
|
|
7069
|
-
/* @__PURE__ */ (0,
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
7070
7129
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
7071
7130
|
) }) })
|
|
7072
7131
|
] });
|
|
@@ -7074,7 +7133,7 @@ function SessionUserInfoDetail({
|
|
|
7074
7133
|
|
|
7075
7134
|
// src/app/platform/report-card.tsx
|
|
7076
7135
|
var import_react52 = require("react");
|
|
7077
|
-
var
|
|
7136
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
7078
7137
|
function ReportCard(props) {
|
|
7079
7138
|
const { title, file, status, subtitle } = props;
|
|
7080
7139
|
const onClickDownload = (0, import_react52.useCallback)(() => {
|
|
@@ -7089,24 +7148,24 @@ function ReportCard(props) {
|
|
|
7089
7148
|
document.body.removeChild(link);
|
|
7090
7149
|
}, [file]);
|
|
7091
7150
|
if (status) {
|
|
7092
|
-
return /* @__PURE__ */ (0,
|
|
7093
|
-
/* @__PURE__ */ (0,
|
|
7151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
7152
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7094
7153
|
status
|
|
7095
7154
|
] }) });
|
|
7096
7155
|
}
|
|
7097
|
-
return /* @__PURE__ */ (0,
|
|
7156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
7098
7157
|
import_themes22.Flex,
|
|
7099
7158
|
{
|
|
7100
7159
|
direction: { initial: "column", xs: "row" },
|
|
7101
7160
|
gapY: "2",
|
|
7102
7161
|
justify: "between",
|
|
7103
7162
|
children: [
|
|
7104
|
-
/* @__PURE__ */ (0,
|
|
7105
|
-
/* @__PURE__ */ (0,
|
|
7106
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
7163
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes6.Box, { children: [
|
|
7164
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7165
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Typo, { color: "gray", children: subtitle }) : null
|
|
7107
7166
|
] }),
|
|
7108
|
-
/* @__PURE__ */ (0,
|
|
7109
|
-
/* @__PURE__ */ (0,
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
7168
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
7110
7169
|
file == null ? void 0 : file.buttonName
|
|
7111
7170
|
] }) }, file == null ? void 0 : file.url)
|
|
7112
7171
|
]
|
|
@@ -7116,7 +7175,7 @@ function ReportCard(props) {
|
|
|
7116
7175
|
|
|
7117
7176
|
// src/app/platform/contents-card.tsx
|
|
7118
7177
|
var import_react53 = require("react");
|
|
7119
|
-
var
|
|
7178
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
7120
7179
|
var ContentsCard = (0, import_react53.forwardRef)(
|
|
7121
7180
|
({
|
|
7122
7181
|
title,
|
|
@@ -7127,7 +7186,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7127
7186
|
onClickCard,
|
|
7128
7187
|
isLoading = false
|
|
7129
7188
|
}, ref) => {
|
|
7130
|
-
return /* @__PURE__ */ (0,
|
|
7189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
7131
7190
|
Card,
|
|
7132
7191
|
{
|
|
7133
7192
|
onClick: onClickCard,
|
|
@@ -7140,7 +7199,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7140
7199
|
maxHeight: "450px"
|
|
7141
7200
|
},
|
|
7142
7201
|
children: [
|
|
7143
|
-
/* @__PURE__ */ (0,
|
|
7202
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
7144
7203
|
import_themes6.Box,
|
|
7145
7204
|
{
|
|
7146
7205
|
height: "210px",
|
|
@@ -7152,12 +7211,12 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7152
7211
|
width: "100%"
|
|
7153
7212
|
}
|
|
7154
7213
|
) }) }),
|
|
7155
|
-
/* @__PURE__ */ (0,
|
|
7156
|
-
/* @__PURE__ */ (0,
|
|
7157
|
-
/* @__PURE__ */ (0,
|
|
7158
|
-
/* @__PURE__ */ (0,
|
|
7214
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
7215
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes6.Box, { children: [
|
|
7216
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
7217
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
7159
7218
|
] }),
|
|
7160
|
-
/* @__PURE__ */ (0,
|
|
7219
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
7161
7220
|
import_themes23.Grid,
|
|
7162
7221
|
{
|
|
7163
7222
|
align: "center",
|
|
@@ -7167,10 +7226,10 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7167
7226
|
style: { marginTop: "auto" },
|
|
7168
7227
|
width: "100%",
|
|
7169
7228
|
children: [
|
|
7170
|
-
/* @__PURE__ */ (0,
|
|
7171
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
7172
|
-
/* @__PURE__ */ (0,
|
|
7173
|
-
/* @__PURE__ */ (0,
|
|
7229
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
7230
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(DropdownMenu.Root, { children: [
|
|
7231
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
7232
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
7174
7233
|
DropdownMenu.Item,
|
|
7175
7234
|
{
|
|
7176
7235
|
onClick: (e) => {
|
|
@@ -7194,7 +7253,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7194
7253
|
ContentsCard.displayName = "ContentsCard";
|
|
7195
7254
|
|
|
7196
7255
|
// src/app/platform/curriculum-card.tsx
|
|
7197
|
-
var
|
|
7256
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
7198
7257
|
function CurriculumCard(props) {
|
|
7199
7258
|
const {
|
|
7200
7259
|
title,
|
|
@@ -7205,7 +7264,7 @@ function CurriculumCard(props) {
|
|
|
7205
7264
|
bgColor,
|
|
7206
7265
|
onClick
|
|
7207
7266
|
} = props;
|
|
7208
|
-
return /* @__PURE__ */ (0,
|
|
7267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
7209
7268
|
import_themes23.Grid,
|
|
7210
7269
|
{
|
|
7211
7270
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -7214,7 +7273,7 @@ function CurriculumCard(props) {
|
|
|
7214
7273
|
onClick,
|
|
7215
7274
|
style: { cursor: "pointer" },
|
|
7216
7275
|
children: [
|
|
7217
|
-
/* @__PURE__ */ (0,
|
|
7276
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7218
7277
|
import_themes6.Box,
|
|
7219
7278
|
{
|
|
7220
7279
|
height: "165px",
|
|
@@ -7229,32 +7288,32 @@ function CurriculumCard(props) {
|
|
|
7229
7288
|
backgroundAttachment: "local"
|
|
7230
7289
|
},
|
|
7231
7290
|
width: "100%",
|
|
7232
|
-
children: /* @__PURE__ */ (0,
|
|
7291
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
7233
7292
|
}
|
|
7234
7293
|
),
|
|
7235
|
-
/* @__PURE__ */ (0,
|
|
7236
|
-
/* @__PURE__ */ (0,
|
|
7237
|
-
/* @__PURE__ */ (0,
|
|
7238
|
-
/* @__PURE__ */ (0,
|
|
7294
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
7295
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
7296
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7297
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7239
7298
|
Badge,
|
|
7240
7299
|
{
|
|
7241
7300
|
size: "medium",
|
|
7242
7301
|
style: { justifySelf: "flex-start" },
|
|
7243
7302
|
variant: "outline",
|
|
7244
|
-
children: /* @__PURE__ */ (0,
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7303
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
7304
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_icons2.TimerIcon, {}),
|
|
7246
7305
|
runningTime
|
|
7247
7306
|
] })
|
|
7248
7307
|
}
|
|
7249
7308
|
)
|
|
7250
7309
|
] }),
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7252
|
-
return /* @__PURE__ */ (0,
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
7311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
7253
7312
|
}) }) }),
|
|
7254
|
-
/* @__PURE__ */ (0,
|
|
7255
|
-
/* @__PURE__ */ (0,
|
|
7256
|
-
/* @__PURE__ */ (0,
|
|
7257
|
-
/* @__PURE__ */ (0,
|
|
7313
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes39.Separator, { size: "4" }),
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
7315
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
7316
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
7258
7317
|
] })
|
|
7259
7318
|
] })
|
|
7260
7319
|
]
|
|
@@ -7263,6 +7322,7 @@ function CurriculumCard(props) {
|
|
|
7263
7322
|
}
|
|
7264
7323
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7265
7324
|
0 && (module.exports = {
|
|
7325
|
+
AI_CALLOUT_ICON_OPTIONS,
|
|
7266
7326
|
AlertDialog,
|
|
7267
7327
|
ArchiveIcon,
|
|
7268
7328
|
ArrowLeftIcon,
|
|
@@ -7328,6 +7388,7 @@ function CurriculumCard(props) {
|
|
|
7328
7388
|
DataList,
|
|
7329
7389
|
DatePicker,
|
|
7330
7390
|
DatePickerButton,
|
|
7391
|
+
DescriptionJsonRender,
|
|
7331
7392
|
Dialog,
|
|
7332
7393
|
DotNavigation,
|
|
7333
7394
|
DotsHorizontalIcon,
|
|
@@ -7452,6 +7513,7 @@ function CurriculumCard(props) {
|
|
|
7452
7513
|
VideoIcon,
|
|
7453
7514
|
createColumnHelper,
|
|
7454
7515
|
createYupValidation,
|
|
7516
|
+
getCalloutIconComponent,
|
|
7455
7517
|
getCellAlign,
|
|
7456
7518
|
getColumnMeta,
|
|
7457
7519
|
getTimeOption,
|