@tipp/ui 1.6.23 → 1.6.24
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 +387 -397
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +18 -17
- package/dist/app/platform/coach-question-list.cjs +78 -72
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -3
- package/dist/app/platform/contents-card.cjs +61 -55
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +4 -3
- package/dist/app/platform/edit-coaching-time.cjs +155 -165
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +8 -7
- package/dist/app/platform/edit-service-type.cjs +148 -158
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +8 -7
- package/dist/app/platform/goal-manage-card-edit.cjs +124 -118
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +7 -6
- package/dist/app/platform/goal-manage-card-read.cjs +112 -106
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +4 -3
- package/dist/app/platform/on-offline-radio-card.cjs +108 -102
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +7 -6
- package/dist/app/platform/report-card.cjs +79 -73
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +4 -3
- package/dist/app/platform/reservation-card.cjs +150 -144
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +8 -7
- package/dist/app/platform/session-card.cjs +200 -210
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +10 -9
- package/dist/app/platform/session-review-simple-read.cjs +79 -73
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +112 -106
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +8 -7
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +89 -83
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +92 -86
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +78 -72
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -3
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +88 -82
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +4 -3
- package/dist/app/platform/userInfos/utils.cjs +80 -74
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +4 -3
- package/dist/atoms/button.d.cts +1 -1
- package/dist/atoms/button.d.ts +1 -1
- package/dist/atoms/dialog.cjs +41 -56
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/drawer.cjs +23 -41
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +2 -2
- package/dist/atoms/index.cjs +159 -151
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +7 -6
- package/dist/chunk-2NQ4PYPH.js +145 -0
- package/dist/chunk-2NQ4PYPH.js.map +1 -0
- package/dist/chunk-36BWVY4R.js +30 -0
- package/dist/chunk-36BWVY4R.js.map +1 -0
- package/dist/chunk-3F6KWGBZ.js +89 -0
- package/dist/chunk-3F6KWGBZ.js.map +1 -0
- package/dist/chunk-3FNXJ35I.js +54 -0
- package/dist/chunk-3FNXJ35I.js.map +1 -0
- package/dist/chunk-3TWYP5FO.js +57 -0
- package/dist/chunk-3TWYP5FO.js.map +1 -0
- package/dist/chunk-3WEXXGSP.js +53 -0
- package/dist/chunk-3WEXXGSP.js.map +1 -0
- package/dist/chunk-3X6SIK3W.js +106 -0
- package/dist/chunk-3X6SIK3W.js.map +1 -0
- package/dist/chunk-3XMCL5X4.js +106 -0
- package/dist/chunk-3XMCL5X4.js.map +1 -0
- package/dist/chunk-42MNZ5HL.js +54 -0
- package/dist/chunk-42MNZ5HL.js.map +1 -0
- package/dist/chunk-43TEFEIM.js +63 -0
- package/dist/chunk-43TEFEIM.js.map +1 -0
- package/dist/chunk-4TI72EQY.js +54 -0
- package/dist/chunk-4TI72EQY.js.map +1 -0
- package/dist/chunk-4VRGGFOT.js +54 -0
- package/dist/chunk-4VRGGFOT.js.map +1 -0
- package/dist/chunk-57F5B7FE.js +84 -0
- package/dist/chunk-57F5B7FE.js.map +1 -0
- package/dist/chunk-5F7NVKMI.js +74 -0
- package/dist/chunk-5F7NVKMI.js.map +1 -0
- package/dist/chunk-5JJVLL2A.js +30 -0
- package/dist/chunk-5JJVLL2A.js.map +1 -0
- package/dist/chunk-5QCIYLYC.js +70 -0
- package/dist/chunk-5QCIYLYC.js.map +1 -0
- package/dist/chunk-5RXSBHAF.js +284 -0
- package/dist/chunk-5RXSBHAF.js.map +1 -0
- package/dist/chunk-64UUNUIF.js +74 -0
- package/dist/chunk-64UUNUIF.js.map +1 -0
- package/dist/chunk-6ERCSTEP.js +357 -0
- package/dist/chunk-6ERCSTEP.js.map +1 -0
- package/dist/chunk-6HY2JAC2.js +145 -0
- package/dist/chunk-6HY2JAC2.js.map +1 -0
- package/dist/chunk-6X3CZMIC.js +174 -0
- package/dist/chunk-6X3CZMIC.js.map +1 -0
- package/dist/chunk-7SWVQEY6.js +73 -0
- package/dist/chunk-7SWVQEY6.js.map +1 -0
- package/dist/chunk-7ZXUG6W4.js +145 -0
- package/dist/chunk-7ZXUG6W4.js.map +1 -0
- package/dist/chunk-APHK52I3.js +164 -0
- package/dist/chunk-APHK52I3.js.map +1 -0
- package/dist/chunk-AQXVWKH6.js +19 -0
- package/dist/chunk-AQXVWKH6.js.map +1 -0
- package/dist/chunk-B7P4NYMW.js +164 -0
- package/dist/chunk-B7P4NYMW.js.map +1 -0
- package/dist/chunk-BNB3AEFM.js +70 -0
- package/dist/chunk-BNB3AEFM.js.map +1 -0
- package/dist/chunk-BUPPCVDT.js +30 -0
- package/dist/chunk-BUPPCVDT.js.map +1 -0
- package/dist/chunk-BVNUNZXK.js +30 -0
- package/dist/chunk-BVNUNZXK.js.map +1 -0
- package/dist/chunk-CBVIUEJB.js +117 -0
- package/dist/chunk-CBVIUEJB.js.map +1 -0
- package/dist/chunk-CC7CR4NT.js +174 -0
- package/dist/chunk-CC7CR4NT.js.map +1 -0
- package/dist/chunk-CXPOD6VX.js +58 -0
- package/dist/chunk-CXPOD6VX.js.map +1 -0
- package/dist/chunk-D2GFXT7B.js +164 -0
- package/dist/chunk-D2GFXT7B.js.map +1 -0
- package/dist/chunk-DEJVT5GM.js +58 -0
- package/dist/chunk-DEJVT5GM.js.map +1 -0
- package/dist/chunk-DEQLZ43V.js +117 -0
- package/dist/chunk-DEQLZ43V.js.map +1 -0
- package/dist/chunk-DJN2IEY6.js +23 -0
- package/dist/chunk-DJN2IEY6.js.map +1 -0
- package/dist/chunk-DSVS6ALA.js +174 -0
- package/dist/chunk-DSVS6ALA.js.map +1 -0
- package/dist/chunk-E2B4MIBN.js +60 -0
- package/dist/chunk-E2B4MIBN.js.map +1 -0
- package/dist/chunk-E3YG43CK.js +70 -0
- package/dist/chunk-E3YG43CK.js.map +1 -0
- package/dist/chunk-F5JCHRHO.js +102 -0
- package/dist/chunk-F5JCHRHO.js.map +1 -0
- package/dist/chunk-FJP2F6IC.js +39 -0
- package/dist/chunk-FJP2F6IC.js.map +1 -0
- package/dist/chunk-FX7FMZ2U.js +15 -0
- package/dist/chunk-FX7FMZ2U.js.map +1 -0
- package/dist/chunk-G2JN23PG.js +64 -0
- package/dist/chunk-G2JN23PG.js.map +1 -0
- package/dist/chunk-GDSTYYNT.js +106 -0
- package/dist/chunk-GDSTYYNT.js.map +1 -0
- package/dist/chunk-GDZ3OYPF.js +70 -0
- package/dist/chunk-GDZ3OYPF.js.map +1 -0
- package/dist/chunk-H76H7C6P.js +284 -0
- package/dist/chunk-H76H7C6P.js.map +1 -0
- package/dist/chunk-HQSSAZHP.js +84 -0
- package/dist/chunk-HQSSAZHP.js.map +1 -0
- package/dist/chunk-HRAIZGAV.js +164 -0
- package/dist/chunk-HRAIZGAV.js.map +1 -0
- package/dist/chunk-IWW6ST7Q.js +30 -0
- package/dist/chunk-IWW6ST7Q.js.map +1 -0
- package/dist/chunk-IYJ77DVE.js +63 -0
- package/dist/chunk-IYJ77DVE.js.map +1 -0
- package/dist/chunk-IZUCJFWS.js +357 -0
- package/dist/chunk-IZUCJFWS.js.map +1 -0
- package/dist/chunk-J5675IX6.js +145 -0
- package/dist/chunk-J5675IX6.js.map +1 -0
- package/dist/chunk-JPKBLDEX.js +174 -0
- package/dist/chunk-JPKBLDEX.js.map +1 -0
- package/dist/chunk-K2PTIGO7.js +54 -0
- package/dist/chunk-K2PTIGO7.js.map +1 -0
- package/dist/chunk-K7ITFD4P.js +45 -0
- package/dist/chunk-K7ITFD4P.js.map +1 -0
- package/dist/chunk-LCGQYQ2Y.js +145 -0
- package/dist/chunk-LCGQYQ2Y.js.map +1 -0
- package/dist/chunk-LGF7FERG.js +23 -0
- package/dist/chunk-LGF7FERG.js.map +1 -0
- package/dist/chunk-LSYQLE32.js +19 -0
- package/dist/chunk-LSYQLE32.js.map +1 -0
- package/dist/chunk-MEA2GIR7.js +192 -0
- package/dist/chunk-MEA2GIR7.js.map +1 -0
- package/dist/chunk-MMNUPVIX.js +128 -0
- package/dist/chunk-MMNUPVIX.js.map +1 -0
- package/dist/chunk-MRSCXF6Z.js +70 -0
- package/dist/chunk-MRSCXF6Z.js.map +1 -0
- package/dist/chunk-NHOR6XDA.js +30 -0
- package/dist/chunk-NHOR6XDA.js.map +1 -0
- package/dist/chunk-NVZTJG7X.js +57 -0
- package/dist/chunk-NVZTJG7X.js.map +1 -0
- package/dist/chunk-NWF4LV6Z.js +30 -0
- package/dist/chunk-NWF4LV6Z.js.map +1 -0
- package/dist/chunk-O33F7L7R.js +165 -0
- package/dist/chunk-O33F7L7R.js.map +1 -0
- package/dist/chunk-O5EI5UQD.js +102 -0
- package/dist/chunk-O5EI5UQD.js.map +1 -0
- package/dist/chunk-OFBTS6ZD.js +145 -0
- package/dist/chunk-OFBTS6ZD.js.map +1 -0
- package/dist/chunk-ON6X4DAK.js +45 -0
- package/dist/chunk-ON6X4DAK.js.map +1 -0
- package/dist/chunk-OWSYPSKK.js +84 -0
- package/dist/chunk-OWSYPSKK.js.map +1 -0
- package/dist/chunk-Q6Q7AOOQ.js +174 -0
- package/dist/chunk-Q6Q7AOOQ.js.map +1 -0
- package/dist/chunk-QC63I2BG.js +89 -0
- package/dist/chunk-QC63I2BG.js.map +1 -0
- package/dist/chunk-QIBROLOP.js +169 -0
- package/dist/chunk-QIBROLOP.js.map +1 -0
- package/dist/chunk-QIY5KHBO.js +64 -0
- package/dist/chunk-QIY5KHBO.js.map +1 -0
- package/dist/chunk-R23QFNIZ.js +84 -0
- package/dist/chunk-R23QFNIZ.js.map +1 -0
- package/dist/chunk-RFD5H6F6.js +174 -0
- package/dist/chunk-RFD5H6F6.js.map +1 -0
- package/dist/chunk-RNGCQ6Q5.js +54 -0
- package/dist/chunk-RNGCQ6Q5.js.map +1 -0
- package/dist/chunk-S2P3RYT2.js +174 -0
- package/dist/chunk-S2P3RYT2.js.map +1 -0
- package/dist/chunk-S4UCJELU.js +64 -0
- package/dist/chunk-S4UCJELU.js.map +1 -0
- package/dist/chunk-SM5ETU3K.js +284 -0
- package/dist/chunk-SM5ETU3K.js.map +1 -0
- package/dist/chunk-SMZIRKPK.js +70 -0
- package/dist/chunk-SMZIRKPK.js.map +1 -0
- package/dist/chunk-SNHJQ4GS.js +64 -0
- package/dist/chunk-SNHJQ4GS.js.map +1 -0
- package/dist/chunk-T23U4R7A.js +84 -0
- package/dist/chunk-T23U4R7A.js.map +1 -0
- package/dist/chunk-TD45ZF7D.js +31 -0
- package/dist/chunk-TD45ZF7D.js.map +1 -0
- package/dist/chunk-TTGSVKIG.js +99 -0
- package/dist/chunk-TTGSVKIG.js.map +1 -0
- package/dist/chunk-UB44BWD3.js +54 -0
- package/dist/chunk-UB44BWD3.js.map +1 -0
- package/dist/chunk-UL52QKAX.js +106 -0
- package/dist/chunk-UL52QKAX.js.map +1 -0
- package/dist/chunk-ULK3LVLV.js +145 -0
- package/dist/chunk-ULK3LVLV.js.map +1 -0
- package/dist/chunk-UQVTXKJY.js +30 -0
- package/dist/chunk-UQVTXKJY.js.map +1 -0
- package/dist/chunk-URCFWXSS.js +145 -0
- package/dist/chunk-URCFWXSS.js.map +1 -0
- package/dist/chunk-USAO24JU.js +164 -0
- package/dist/chunk-USAO24JU.js.map +1 -0
- package/dist/chunk-V3LWCHYU.js +101 -0
- package/dist/chunk-V3LWCHYU.js.map +1 -0
- package/dist/chunk-VEHJL7YX.js +145 -0
- package/dist/chunk-VEHJL7YX.js.map +1 -0
- package/dist/chunk-VGA7OYBC.js +165 -0
- package/dist/chunk-VGA7OYBC.js.map +1 -0
- package/dist/chunk-VHFAY5XN.js +146 -0
- package/dist/chunk-VHFAY5XN.js.map +1 -0
- package/dist/chunk-W3WQTY36.js +99 -0
- package/dist/chunk-W3WQTY36.js.map +1 -0
- package/dist/chunk-WL6DTHGM.js +164 -0
- package/dist/chunk-WL6DTHGM.js.map +1 -0
- package/dist/chunk-WLQ43ESH.js +89 -0
- package/dist/chunk-WLQ43ESH.js.map +1 -0
- package/dist/chunk-WNEXIUQ7.js +63 -0
- package/dist/chunk-WNEXIUQ7.js.map +1 -0
- package/dist/chunk-WW753CRQ.js +145 -0
- package/dist/chunk-WW753CRQ.js.map +1 -0
- package/dist/chunk-X3Z66RK2.js +85 -0
- package/dist/chunk-X3Z66RK2.js.map +1 -0
- package/dist/chunk-XD7T627Q.js +174 -0
- package/dist/chunk-XD7T627Q.js.map +1 -0
- package/dist/chunk-Y6WM6YGH.js +117 -0
- package/dist/chunk-Y6WM6YGH.js.map +1 -0
- package/dist/chunk-YFWG4PQ3.js +39 -0
- package/dist/chunk-YFWG4PQ3.js.map +1 -0
- package/dist/chunk-ZIB6X7QU.js +284 -0
- package/dist/chunk-ZIB6X7QU.js.map +1 -0
- package/dist/chunk-ZWYM5QVI.js +63 -0
- package/dist/chunk-ZWYM5QVI.js.map +1 -0
- package/dist/index.cjs +610 -589
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +120 -75
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +28 -22
- package/dist/molecules/date-picker/date-picker-button.cjs +86 -80
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -3
- package/dist/molecules/expand-table/index.cjs +112 -106
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +4 -3
- package/dist/molecules/expand-table/row.cjs +82 -76
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -3
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +2 -2
- package/dist/molecules/index.cjs +237 -231
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +7 -6
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.cjs +78 -72
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -3
- package/dist/molecules/radio-button-card.cjs +76 -70
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +4 -3
- package/dist/molecules/tag-selector.cjs +77 -71
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +4 -3
- package/dist/molecules/time-select.cjs +77 -71
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -3
- package/dist/theme/portal-provider.cjs +56 -0
- package/dist/theme/portal-provider.cjs.map +1 -0
- package/dist/theme/portal-provider.d.cts +13 -0
- package/dist/theme/portal-provider.d.ts +13 -0
- package/dist/theme/portal-provider.js +12 -0
- package/dist/theme/portal-provider.js.map +1 -0
- package/dist/theme/theme-provider.cjs.map +1 -1
- package/dist/theme/theme-provider.d.cts +1 -1
- package/dist/theme/theme-provider.d.ts +1 -1
- package/dist/theme/theme-provider.js +1 -1
- package/package.json +2 -2
- package/src/atoms/dialog.tsx +3 -3
- package/src/atoms/drawer.tsx +4 -9
- package/src/index.ts +1 -0
- package/src/theme/portal-provider.tsx +38 -0
- package/src/theme/theme-provider.tsx +1 -1
package/dist/app/index.cjs
CHANGED
|
@@ -333,40 +333,27 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
333
333
|
|
|
334
334
|
// src/atoms/dialog.tsx
|
|
335
335
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
336
|
-
var
|
|
336
|
+
var import_react_icons = require("@radix-ui/react-icons");
|
|
337
337
|
var import_themes19 = require("@radix-ui/themes");
|
|
338
338
|
|
|
339
|
-
// src/
|
|
340
|
-
var
|
|
341
|
-
var import_react_toastify = require("react-toastify");
|
|
342
|
-
var import_react_toastify2 = require("react-toastify");
|
|
339
|
+
// src/theme/portal-provider.tsx
|
|
340
|
+
var import_react7 = require("react");
|
|
343
341
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
hideProgressBar: true,
|
|
356
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons.InfoCircledIcon, {}),
|
|
357
|
-
newestOnTop: true,
|
|
358
|
-
pauseOnFocusLoss: true,
|
|
359
|
-
pauseOnHover: true,
|
|
360
|
-
position: "bottom-right",
|
|
361
|
-
rtl: false,
|
|
362
|
-
style: { zIndex: 999999 }
|
|
363
|
-
}, props)
|
|
364
|
-
);
|
|
365
|
-
}
|
|
342
|
+
var PortalContext = (0, import_react7.createContext)(
|
|
343
|
+
null
|
|
344
|
+
);
|
|
345
|
+
var usePortalContainer = () => {
|
|
346
|
+
try {
|
|
347
|
+
const state = (0, import_react7.useContext)(PortalContext);
|
|
348
|
+
return state;
|
|
349
|
+
} catch (error) {
|
|
350
|
+
throw new Error("PortalProvider not found");
|
|
351
|
+
}
|
|
352
|
+
};
|
|
366
353
|
|
|
367
354
|
// src/atoms/heading.tsx
|
|
368
355
|
var import_themes16 = require("@radix-ui/themes");
|
|
369
|
-
var
|
|
356
|
+
var import_react8 = require("react");
|
|
370
357
|
|
|
371
358
|
// src/utils/map-with-responsive.ts
|
|
372
359
|
var mapWithResponsive = (args) => {
|
|
@@ -407,7 +394,7 @@ var mapVariant = (variant) => {
|
|
|
407
394
|
};
|
|
408
395
|
function Heading2(props) {
|
|
409
396
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
410
|
-
const radixSize = (0,
|
|
397
|
+
const radixSize = (0, import_react8.useMemo)(() => {
|
|
411
398
|
return variant ? mapWithResponsive({
|
|
412
399
|
value: variant,
|
|
413
400
|
mapFn: mapVariant
|
|
@@ -452,33 +439,31 @@ function Content2(props) {
|
|
|
452
439
|
"hideCloseButton",
|
|
453
440
|
"className"
|
|
454
441
|
]);
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastContainer, {})
|
|
481
|
-
] }) }) });
|
|
442
|
+
const { dialogContainerRef } = usePortalContainer();
|
|
443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
444
|
+
RadixDialog.Content,
|
|
445
|
+
__spreadProps(__spreadValues({
|
|
446
|
+
className: `DialogContent ${className || ""}`,
|
|
447
|
+
onPointerDownOutside: preventDefault,
|
|
448
|
+
style: __spreadValues({
|
|
449
|
+
width,
|
|
450
|
+
maxWidth,
|
|
451
|
+
minWidth,
|
|
452
|
+
maxHeight,
|
|
453
|
+
height,
|
|
454
|
+
minHeight
|
|
455
|
+
}, style)
|
|
456
|
+
}, rest), {
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", children: [
|
|
459
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, { align: "center", mb: "2", variant: "heading3", children: title }) : title }),
|
|
460
|
+
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons.Cross1Icon, {}) }) })
|
|
461
|
+
] }),
|
|
462
|
+
children,
|
|
463
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
464
|
+
]
|
|
465
|
+
})
|
|
466
|
+
) }) }) });
|
|
482
467
|
}
|
|
483
468
|
function Close2(_a) {
|
|
484
469
|
var _b = _a, {
|
|
@@ -507,11 +492,11 @@ var Dialog = {
|
|
|
507
492
|
|
|
508
493
|
// src/atoms/dropdown-menu.tsx
|
|
509
494
|
var import_themes20 = require("@radix-ui/themes");
|
|
510
|
-
var
|
|
495
|
+
var import_react9 = require("react");
|
|
511
496
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
512
|
-
var Content3 = (0,
|
|
497
|
+
var Content3 = (0, import_react9.forwardRef)((props, ref) => {
|
|
513
498
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
514
|
-
const contentClassName = (0,
|
|
499
|
+
const contentClassName = (0, import_react9.useMemo)(() => {
|
|
515
500
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
516
501
|
return [cls, className].join(" ");
|
|
517
502
|
}, [isNavigation, className]);
|
|
@@ -549,7 +534,7 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
549
534
|
|
|
550
535
|
// src/atoms/link.tsx
|
|
551
536
|
var import_themes27 = require("@radix-ui/themes");
|
|
552
|
-
var
|
|
537
|
+
var import_react10 = require("react");
|
|
553
538
|
var import_themes28 = require("@radix-ui/themes");
|
|
554
539
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
555
540
|
|
|
@@ -582,15 +567,15 @@ var import_themes37 = require("@radix-ui/themes");
|
|
|
582
567
|
|
|
583
568
|
// src/atoms/select.tsx
|
|
584
569
|
var import_themes38 = require("@radix-ui/themes");
|
|
585
|
-
var
|
|
570
|
+
var import_react11 = require("react");
|
|
586
571
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
587
|
-
var SelectContext = (0,
|
|
572
|
+
var SelectContext = (0, import_react11.createContext)({
|
|
588
573
|
error: false
|
|
589
574
|
});
|
|
590
|
-
var Content4 = (0,
|
|
575
|
+
var Content4 = (0, import_react11.forwardRef)((props, ref) => {
|
|
591
576
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
592
|
-
const { error } = (0,
|
|
593
|
-
const cls = (0,
|
|
577
|
+
const { error } = (0, import_react11.useContext)(SelectContext);
|
|
578
|
+
const cls = (0, import_react11.useMemo)(() => {
|
|
594
579
|
const etc = isNavigation ? "nav-select" : "";
|
|
595
580
|
const errorCls = error ? "tipp-error" : "";
|
|
596
581
|
return [etc, errorCls, className].join(" ");
|
|
@@ -606,11 +591,11 @@ var Content4 = (0, import_react10.forwardRef)((props, ref) => {
|
|
|
606
591
|
);
|
|
607
592
|
});
|
|
608
593
|
Content4.displayName = "Select.Content";
|
|
609
|
-
var Trigger3 = (0,
|
|
594
|
+
var Trigger3 = (0, import_react11.forwardRef)(
|
|
610
595
|
(props, ref) => {
|
|
611
596
|
const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
|
|
612
|
-
const { error } = (0,
|
|
613
|
-
const cls = (0,
|
|
597
|
+
const { error } = (0, import_react11.useContext)(SelectContext);
|
|
598
|
+
const cls = (0, import_react11.useMemo)(() => {
|
|
614
599
|
const errorCls = error ? "error" : "";
|
|
615
600
|
return [errorCls, className].join(" ");
|
|
616
601
|
}, [className, error]);
|
|
@@ -649,12 +634,12 @@ var import_themes44 = require("@radix-ui/themes");
|
|
|
649
634
|
|
|
650
635
|
// src/atoms/text-area.tsx
|
|
651
636
|
var import_themes45 = require("@radix-ui/themes");
|
|
652
|
-
var
|
|
637
|
+
var import_react12 = require("react");
|
|
653
638
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
654
|
-
var TextArea = (0,
|
|
639
|
+
var TextArea = (0, import_react12.forwardRef)(
|
|
655
640
|
(props, ref) => {
|
|
656
641
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
657
|
-
const fieldStyle = (0,
|
|
642
|
+
const fieldStyle = (0, import_react12.useMemo)(() => {
|
|
658
643
|
if (!error)
|
|
659
644
|
return style;
|
|
660
645
|
const errorStyle = {
|
|
@@ -677,12 +662,12 @@ TextArea.displayName = "TextArea";
|
|
|
677
662
|
|
|
678
663
|
// src/atoms/typo.tsx
|
|
679
664
|
var import_themes46 = require("@radix-ui/themes");
|
|
680
|
-
var
|
|
665
|
+
var import_react13 = require("react");
|
|
681
666
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
682
|
-
var Typo = (0,
|
|
667
|
+
var Typo = (0, import_react13.forwardRef)(
|
|
683
668
|
(props, ref) => {
|
|
684
669
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
685
|
-
const radixSize = (0,
|
|
670
|
+
const radixSize = (0, import_react13.useMemo)(() => {
|
|
686
671
|
if (size !== void 0)
|
|
687
672
|
return size;
|
|
688
673
|
switch (variant) {
|
|
@@ -702,11 +687,11 @@ Typo.displayName = "Typo";
|
|
|
702
687
|
|
|
703
688
|
// src/atoms/text-field.tsx
|
|
704
689
|
var import_themes47 = require("@radix-ui/themes");
|
|
705
|
-
var
|
|
690
|
+
var import_react14 = require("react");
|
|
706
691
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
707
|
-
var Root4 = (0,
|
|
692
|
+
var Root4 = (0, import_react14.forwardRef)((props, ref) => {
|
|
708
693
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
709
|
-
const fieldStyle = (0,
|
|
694
|
+
const fieldStyle = (0, import_react14.useMemo)(() => {
|
|
710
695
|
if (!error)
|
|
711
696
|
return style;
|
|
712
697
|
const errorStyle = {
|
|
@@ -731,20 +716,20 @@ var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };
|
|
|
731
716
|
var import_themes48 = require("@radix-ui/themes");
|
|
732
717
|
|
|
733
718
|
// src/atoms/collapse.tsx
|
|
734
|
-
var
|
|
719
|
+
var import_react15 = require("react");
|
|
735
720
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
736
721
|
function Collapse(props) {
|
|
737
722
|
const { children, closedHeight = "0" } = props;
|
|
738
|
-
const [open, setOpen] = (0,
|
|
723
|
+
const [open, setOpen] = (0, import_react15.useState)(() => {
|
|
739
724
|
return props.open || props.defaultOpen || false;
|
|
740
725
|
});
|
|
741
|
-
(0,
|
|
726
|
+
(0, import_react15.useEffect)(() => {
|
|
742
727
|
if (props.open === void 0)
|
|
743
728
|
return;
|
|
744
729
|
setOpen(props.open);
|
|
745
730
|
}, [props.open]);
|
|
746
|
-
const ref = (0,
|
|
747
|
-
(0,
|
|
731
|
+
const ref = (0, import_react15.useRef)(null);
|
|
732
|
+
(0, import_react15.useEffect)(() => {
|
|
748
733
|
if (!ref.current)
|
|
749
734
|
return;
|
|
750
735
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
@@ -756,15 +741,15 @@ function Collapse(props) {
|
|
|
756
741
|
var import_themes49 = require("@radix-ui/themes");
|
|
757
742
|
|
|
758
743
|
// src/atoms/pagination.tsx
|
|
759
|
-
var
|
|
744
|
+
var import_react16 = require("react");
|
|
760
745
|
|
|
761
746
|
// src/icon.ts
|
|
762
|
-
var
|
|
747
|
+
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
763
748
|
|
|
764
749
|
// src/icons/phone-ring.tsx
|
|
765
|
-
var
|
|
750
|
+
var React6 = __toESM(require("react"), 1);
|
|
766
751
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
767
|
-
var PhoneRingIcon =
|
|
752
|
+
var PhoneRingIcon = React6.forwardRef(
|
|
768
753
|
(_a, forwardedRef) => {
|
|
769
754
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
770
755
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
@@ -802,9 +787,9 @@ var PhoneRingIcon = React5.forwardRef(
|
|
|
802
787
|
PhoneRingIcon.displayName = "ArrowUpIcon";
|
|
803
788
|
|
|
804
789
|
// src/icons/up.tsx
|
|
805
|
-
var
|
|
790
|
+
var React7 = __toESM(require("react"), 1);
|
|
806
791
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
807
|
-
var TriangleArrowUpIcon =
|
|
792
|
+
var TriangleArrowUpIcon = React7.forwardRef(
|
|
808
793
|
(_a, forwardedRef) => {
|
|
809
794
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
810
795
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
@@ -831,9 +816,9 @@ var TriangleArrowUpIcon = React6.forwardRef(
|
|
|
831
816
|
TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
832
817
|
|
|
833
818
|
// src/icons/down.tsx
|
|
834
|
-
var
|
|
819
|
+
var React8 = __toESM(require("react"), 1);
|
|
835
820
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
836
|
-
var TriangleArrowDownIcon =
|
|
821
|
+
var TriangleArrowDownIcon = React8.forwardRef(
|
|
837
822
|
(_a, forwardedRef) => {
|
|
838
823
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
839
824
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
@@ -860,9 +845,9 @@ var TriangleArrowDownIcon = React7.forwardRef(
|
|
|
860
845
|
TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
861
846
|
|
|
862
847
|
// src/icons/mic.tsx
|
|
863
|
-
var
|
|
848
|
+
var React9 = __toESM(require("react"), 1);
|
|
864
849
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
865
|
-
var MicIcon =
|
|
850
|
+
var MicIcon = React9.forwardRef(
|
|
866
851
|
(_a, forwardedRef) => {
|
|
867
852
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
868
853
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
@@ -902,9 +887,9 @@ var MicIcon = React8.forwardRef(
|
|
|
902
887
|
MicIcon.displayName = "MicIcon";
|
|
903
888
|
|
|
904
889
|
// src/icons/camera.tsx
|
|
905
|
-
var
|
|
890
|
+
var React10 = __toESM(require("react"), 1);
|
|
906
891
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
907
|
-
var CameraIcon =
|
|
892
|
+
var CameraIcon = React10.forwardRef(
|
|
908
893
|
(_a, forwardedRef) => {
|
|
909
894
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
910
895
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
@@ -931,9 +916,9 @@ var CameraIcon = React9.forwardRef(
|
|
|
931
916
|
CameraIcon.displayName = "CameraIcon";
|
|
932
917
|
|
|
933
918
|
// src/icons/camera-disabled.tsx
|
|
934
|
-
var
|
|
919
|
+
var React11 = __toESM(require("react"), 1);
|
|
935
920
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
936
|
-
var CameraDisabledIcon =
|
|
921
|
+
var CameraDisabledIcon = React11.forwardRef(
|
|
937
922
|
(_a, forwardedRef) => {
|
|
938
923
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
939
924
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -962,9 +947,9 @@ var CameraDisabledIcon = React10.forwardRef(
|
|
|
962
947
|
CameraDisabledIcon.displayName = "VideoDisabledIcon";
|
|
963
948
|
|
|
964
949
|
// src/icons/end-call.tsx
|
|
965
|
-
var
|
|
950
|
+
var React12 = __toESM(require("react"), 1);
|
|
966
951
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
967
|
-
var EndCallIcon =
|
|
952
|
+
var EndCallIcon = React12.forwardRef(
|
|
968
953
|
(_a, forwardedRef) => {
|
|
969
954
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
970
955
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
@@ -1008,18 +993,17 @@ var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
|
1008
993
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1009
994
|
|
|
1010
995
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1011
|
-
var
|
|
996
|
+
var import_react17 = require("react");
|
|
1012
997
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1013
998
|
|
|
1014
999
|
// src/atoms/drawer.tsx
|
|
1015
|
-
var import_react17 = require("react");
|
|
1016
1000
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1017
1001
|
var import_themes50 = require("@radix-ui/themes");
|
|
1018
1002
|
|
|
1019
1003
|
// src/icons/close-panel-arrow.tsx
|
|
1020
|
-
var
|
|
1004
|
+
var React15 = __toESM(require("react"), 1);
|
|
1021
1005
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1022
|
-
var ClosePanelArrowIcon =
|
|
1006
|
+
var ClosePanelArrowIcon = React15.forwardRef(
|
|
1023
1007
|
(_a, forwardedRef) => {
|
|
1024
1008
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1025
1009
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
@@ -1061,14 +1045,20 @@ ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
|
1061
1045
|
// src/atoms/drawer.tsx
|
|
1062
1046
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1063
1047
|
|
|
1048
|
+
// src/atoms/toast.tsx
|
|
1049
|
+
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1050
|
+
var import_react_toastify = require("react-toastify");
|
|
1051
|
+
var import_react_toastify2 = require("react-toastify");
|
|
1052
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1053
|
+
|
|
1064
1054
|
// src/molecules/form/form.tsx
|
|
1065
1055
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1066
1056
|
var import_react18 = require("react");
|
|
1067
|
-
var
|
|
1057
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1068
1058
|
var Root7 = (0, import_react18.forwardRef)(
|
|
1069
1059
|
(_a, ref) => {
|
|
1070
1060
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1071
|
-
return /* @__PURE__ */ (0,
|
|
1061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1072
1062
|
RadixForm.Root,
|
|
1073
1063
|
__spreadProps(__spreadValues({}, rest), {
|
|
1074
1064
|
className: `FormRoot ${className || ""}`,
|
|
@@ -1085,22 +1075,22 @@ var FieldContext = (0, import_react18.createContext)({
|
|
|
1085
1075
|
var Field2 = (0, import_react18.forwardRef)(
|
|
1086
1076
|
(_a, ref) => {
|
|
1087
1077
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1088
|
-
return /* @__PURE__ */ (0,
|
|
1078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1089
1079
|
RadixForm.Field,
|
|
1090
1080
|
__spreadProps(__spreadValues({}, rest), {
|
|
1091
1081
|
className: `FormField ${className || ""}`,
|
|
1092
1082
|
ref,
|
|
1093
|
-
children: /* @__PURE__ */ (0,
|
|
1083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FieldContext.Provider, { value: rest, children })
|
|
1094
1084
|
})
|
|
1095
1085
|
);
|
|
1096
1086
|
}
|
|
1097
1087
|
);
|
|
1098
1088
|
Field2.displayName = "FORM_FIELD";
|
|
1099
1089
|
function HeadingLabel(props) {
|
|
1100
|
-
return /* @__PURE__ */ (0,
|
|
1090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
1101
1091
|
}
|
|
1102
1092
|
function CaptionLabel(props) {
|
|
1103
|
-
return /* @__PURE__ */ (0,
|
|
1093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1104
1094
|
}
|
|
1105
1095
|
var Label2 = (0, import_react18.forwardRef)(
|
|
1106
1096
|
(_a, ref) => {
|
|
@@ -1117,15 +1107,15 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1117
1107
|
}
|
|
1118
1108
|
}, [variant]);
|
|
1119
1109
|
const fieldProps = (0, import_react18.useContext)(FieldContext);
|
|
1120
|
-
return /* @__PURE__ */ (0,
|
|
1110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1121
1111
|
RadixForm.Label,
|
|
1122
1112
|
__spreadProps(__spreadValues({}, rest), {
|
|
1123
1113
|
asChild: true,
|
|
1124
1114
|
className: `FormLabel ${className || ""}`,
|
|
1125
1115
|
ref,
|
|
1126
|
-
children: /* @__PURE__ */ (0,
|
|
1116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Comp, { children: [
|
|
1127
1117
|
children,
|
|
1128
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
1118
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
1129
1119
|
] })
|
|
1130
1120
|
})
|
|
1131
1121
|
);
|
|
@@ -1135,13 +1125,13 @@ Label2.displayName = "FORM_Label";
|
|
|
1135
1125
|
var Message2 = (0, import_react18.forwardRef)(
|
|
1136
1126
|
(_a, ref) => {
|
|
1137
1127
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1138
|
-
return /* @__PURE__ */ (0,
|
|
1128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1139
1129
|
RadixForm.Message,
|
|
1140
1130
|
__spreadProps(__spreadValues({}, rest), {
|
|
1141
1131
|
asChild: true,
|
|
1142
1132
|
className: `FormMessage ${className || ""}`,
|
|
1143
1133
|
ref,
|
|
1144
|
-
children: /* @__PURE__ */ (0,
|
|
1134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { color: "red", children })
|
|
1145
1135
|
})
|
|
1146
1136
|
);
|
|
1147
1137
|
}
|
|
@@ -1151,7 +1141,7 @@ var Control2 = (0, import_react18.forwardRef)(
|
|
|
1151
1141
|
(_a, ref) => {
|
|
1152
1142
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1153
1143
|
const fieldProps = (0, import_react18.useContext)(FieldContext);
|
|
1154
|
-
return /* @__PURE__ */ (0,
|
|
1144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1155
1145
|
RadixForm.Control,
|
|
1156
1146
|
__spreadProps(__spreadValues({}, rest), {
|
|
1157
1147
|
className: `FormControl ${className || ""}`,
|
|
@@ -1174,10 +1164,10 @@ function FormItem(_a) {
|
|
|
1174
1164
|
"children",
|
|
1175
1165
|
"errorMessage"
|
|
1176
1166
|
]);
|
|
1177
|
-
return /* @__PURE__ */ (0,
|
|
1178
|
-
/* @__PURE__ */ (0,
|
|
1167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
1179
1169
|
children,
|
|
1180
|
-
/* @__PURE__ */ (0,
|
|
1170
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
1181
1171
|
] }));
|
|
1182
1172
|
}
|
|
1183
1173
|
var Form = {
|
|
@@ -1192,7 +1182,7 @@ var Form = {
|
|
|
1192
1182
|
|
|
1193
1183
|
// src/atoms/auto-sizing-input.tsx
|
|
1194
1184
|
var import_react19 = require("react");
|
|
1195
|
-
var
|
|
1185
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1196
1186
|
var AutoSizingInput = (0, import_react19.forwardRef)(
|
|
1197
1187
|
(_a, ref) => {
|
|
1198
1188
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
@@ -1215,46 +1205,46 @@ var AutoSizingInput = (0, import_react19.forwardRef)(
|
|
|
1215
1205
|
(0, import_react19.useEffect)(() => {
|
|
1216
1206
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1217
1207
|
}, [value, onChangeValue]);
|
|
1218
|
-
return /* @__PURE__ */ (0,
|
|
1219
|
-
/* @__PURE__ */ (0,
|
|
1220
|
-
/* @__PURE__ */ (0,
|
|
1208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
1209
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
|
|
1210
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
|
|
1221
1211
|
] });
|
|
1222
1212
|
}
|
|
1223
1213
|
);
|
|
1224
1214
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1225
1215
|
|
|
1226
1216
|
// src/atoms/bullet-text.tsx
|
|
1227
|
-
var
|
|
1217
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1228
1218
|
function BulletText(_a) {
|
|
1229
1219
|
var _b = _a, {
|
|
1230
1220
|
children
|
|
1231
1221
|
} = _b, rest = __objRest(_b, [
|
|
1232
1222
|
"children"
|
|
1233
1223
|
]);
|
|
1234
|
-
return /* @__PURE__ */ (0,
|
|
1235
|
-
/* @__PURE__ */ (0,
|
|
1236
|
-
/* @__PURE__ */ (0,
|
|
1224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
1226
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
1237
1227
|
] });
|
|
1238
1228
|
}
|
|
1239
1229
|
|
|
1240
1230
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
1241
|
-
var
|
|
1231
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1242
1232
|
function CoachingCustomerInfoSmall({
|
|
1243
1233
|
customer,
|
|
1244
1234
|
children,
|
|
1245
1235
|
badge
|
|
1246
1236
|
}) {
|
|
1247
|
-
return /* @__PURE__ */ (0,
|
|
1237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1248
1238
|
import_themes22.Flex,
|
|
1249
1239
|
{
|
|
1250
1240
|
direction: { initial: "column", xs: "row" },
|
|
1251
1241
|
gap: "3",
|
|
1252
1242
|
justify: "between",
|
|
1253
1243
|
children: [
|
|
1254
|
-
/* @__PURE__ */ (0,
|
|
1255
|
-
/* @__PURE__ */ (0,
|
|
1256
|
-
/* @__PURE__ */ (0,
|
|
1257
|
-
/* @__PURE__ */ (0,
|
|
1244
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
1245
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
1246
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
1247
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
1258
1248
|
] }) }),
|
|
1259
1249
|
children
|
|
1260
1250
|
]
|
|
@@ -1265,7 +1255,7 @@ function CoachingCustomerInfoSmall({
|
|
|
1265
1255
|
// src/app/platform/userInfos/utils.tsx
|
|
1266
1256
|
var import_date_fns = require("date-fns");
|
|
1267
1257
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
1268
|
-
var
|
|
1258
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1269
1259
|
var infoList = [
|
|
1270
1260
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
1271
1261
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -1325,21 +1315,21 @@ var sessionList = [
|
|
|
1325
1315
|
var renderItem = (args) => {
|
|
1326
1316
|
const { info, data, onClickCopy } = args;
|
|
1327
1317
|
const value = info.getValue(data);
|
|
1328
|
-
return /* @__PURE__ */ (0,
|
|
1318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
1329
1319
|
info.render ? info.render(value) : value || "-",
|
|
1330
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
1320
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
1331
1321
|
] });
|
|
1332
1322
|
};
|
|
1333
1323
|
var renderDataListItem = (args) => {
|
|
1334
1324
|
const { info, data, onClickCopy } = args;
|
|
1335
|
-
return /* @__PURE__ */ (0,
|
|
1336
|
-
/* @__PURE__ */ (0,
|
|
1337
|
-
/* @__PURE__ */ (0,
|
|
1325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes15.DataList.Item, { children: [
|
|
1326
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
1327
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
1338
1328
|
] }, info.label);
|
|
1339
1329
|
};
|
|
1340
1330
|
function CopyButton(props) {
|
|
1341
1331
|
const { value, onClickCopy } = props;
|
|
1342
|
-
return /* @__PURE__ */ (0,
|
|
1332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1343
1333
|
Button,
|
|
1344
1334
|
{
|
|
1345
1335
|
color: "gray",
|
|
@@ -1348,13 +1338,13 @@ function CopyButton(props) {
|
|
|
1348
1338
|
},
|
|
1349
1339
|
style: { marginLeft: "0", marginTop: "0" },
|
|
1350
1340
|
variant: "transparent",
|
|
1351
|
-
children: /* @__PURE__ */ (0,
|
|
1341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons4.CopyIcon, {})
|
|
1352
1342
|
}
|
|
1353
1343
|
);
|
|
1354
1344
|
}
|
|
1355
1345
|
|
|
1356
1346
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
1357
|
-
var
|
|
1347
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1358
1348
|
function CoachingCustomerInfoMedium({
|
|
1359
1349
|
customer,
|
|
1360
1350
|
session,
|
|
@@ -1362,28 +1352,28 @@ function CoachingCustomerInfoMedium({
|
|
|
1362
1352
|
badge,
|
|
1363
1353
|
onClickCopy
|
|
1364
1354
|
}) {
|
|
1365
|
-
return /* @__PURE__ */ (0,
|
|
1366
|
-
/* @__PURE__ */ (0,
|
|
1367
|
-
/* @__PURE__ */ (0,
|
|
1368
|
-
/* @__PURE__ */ (0,
|
|
1355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1356
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes6.Box, { children: [
|
|
1357
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
1358
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
1369
1359
|
badge
|
|
1370
1360
|
] }),
|
|
1371
|
-
/* @__PURE__ */ (0,
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
1372
1362
|
] }),
|
|
1373
1363
|
children,
|
|
1374
|
-
/* @__PURE__ */ (0,
|
|
1364
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
1375
1365
|
(el) => renderDataListItem({
|
|
1376
1366
|
info: el,
|
|
1377
1367
|
data: session,
|
|
1378
1368
|
onClickCopy
|
|
1379
1369
|
})
|
|
1380
1370
|
) }) }),
|
|
1381
|
-
/* @__PURE__ */ (0,
|
|
1382
|
-
/* @__PURE__ */ (0,
|
|
1383
|
-
/* @__PURE__ */ (0,
|
|
1371
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
1373
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes39.Separator, { size: "4" })
|
|
1384
1374
|
] }),
|
|
1385
|
-
/* @__PURE__ */ (0,
|
|
1386
|
-
return /* @__PURE__ */ (0,
|
|
1375
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
1376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { children: renderItem({
|
|
1387
1377
|
info: el,
|
|
1388
1378
|
data: customer,
|
|
1389
1379
|
onClickCopy
|
|
@@ -1393,7 +1383,7 @@ function CoachingCustomerInfoMedium({
|
|
|
1393
1383
|
}
|
|
1394
1384
|
|
|
1395
1385
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
1396
|
-
var
|
|
1386
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1397
1387
|
function CoachingCustomerInfoLarge({
|
|
1398
1388
|
customer,
|
|
1399
1389
|
session,
|
|
@@ -1401,24 +1391,24 @@ function CoachingCustomerInfoLarge({
|
|
|
1401
1391
|
badge,
|
|
1402
1392
|
onClickCopy
|
|
1403
1393
|
}) {
|
|
1404
|
-
return /* @__PURE__ */ (0,
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1406
|
-
/* @__PURE__ */ (0,
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1395
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes6.Box, { children: [
|
|
1396
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
1397
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
1408
1398
|
badge
|
|
1409
1399
|
] }),
|
|
1410
|
-
/* @__PURE__ */ (0,
|
|
1400
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
1411
1401
|
] }),
|
|
1412
1402
|
children,
|
|
1413
|
-
/* @__PURE__ */ (0,
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
1414
1404
|
(el) => renderDataListItem({
|
|
1415
1405
|
info: el,
|
|
1416
1406
|
data: session,
|
|
1417
1407
|
onClickCopy
|
|
1418
1408
|
})
|
|
1419
1409
|
) }) }),
|
|
1420
|
-
/* @__PURE__ */ (0,
|
|
1421
|
-
/* @__PURE__ */ (0,
|
|
1410
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes39.Separator, { size: "4" }),
|
|
1411
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
1422
1412
|
(info) => renderDataListItem({
|
|
1423
1413
|
info,
|
|
1424
1414
|
data: customer,
|
|
@@ -1429,19 +1419,19 @@ function CoachingCustomerInfoLarge({
|
|
|
1429
1419
|
}
|
|
1430
1420
|
|
|
1431
1421
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
1432
|
-
var
|
|
1422
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1433
1423
|
function CoachingCustomerInfo(props) {
|
|
1434
|
-
return /* @__PURE__ */ (0,
|
|
1435
|
-
/* @__PURE__ */ (0,
|
|
1436
|
-
/* @__PURE__ */ (0,
|
|
1437
|
-
/* @__PURE__ */ (0,
|
|
1424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
1426
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
1427
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
1438
1428
|
] });
|
|
1439
1429
|
}
|
|
1440
1430
|
|
|
1441
1431
|
// src/app/platform/goal-manage-card-read.tsx
|
|
1442
1432
|
var import_react20 = require("react");
|
|
1443
1433
|
var import_date_fns2 = require("date-fns");
|
|
1444
|
-
var
|
|
1434
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1445
1435
|
function GoalManageCardRead(props) {
|
|
1446
1436
|
const {
|
|
1447
1437
|
title,
|
|
@@ -1459,7 +1449,7 @@ function GoalManageCardRead(props) {
|
|
|
1459
1449
|
const onClickOpen = (0, import_react20.useCallback)(() => {
|
|
1460
1450
|
setOpen((p) => !p);
|
|
1461
1451
|
}, []);
|
|
1462
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
1452
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
1463
1453
|
const badgeMeta = (0, import_react20.useMemo)(() => {
|
|
1464
1454
|
if (!completed && dueDate) {
|
|
1465
1455
|
if (dueDate >= (0, import_date_fns2.startOfDay)(/* @__PURE__ */ new Date()))
|
|
@@ -1472,40 +1462,40 @@ function GoalManageCardRead(props) {
|
|
|
1472
1462
|
return null;
|
|
1473
1463
|
}, [completed, dueDate]);
|
|
1474
1464
|
const renderSubTitle = (0, import_react20.useCallback)((subTitle) => {
|
|
1475
|
-
return /* @__PURE__ */ (0,
|
|
1465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
1476
1466
|
}, []);
|
|
1477
1467
|
const renderSubContent = (0, import_react20.useCallback)((content) => {
|
|
1478
|
-
return /* @__PURE__ */ (0,
|
|
1468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
1479
1469
|
}, []);
|
|
1480
1470
|
const renderCompleteButton = (0, import_react20.useCallback)(() => {
|
|
1481
1471
|
if (completed) {
|
|
1482
|
-
return /* @__PURE__ */ (0,
|
|
1472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
1483
1473
|
}
|
|
1484
|
-
return /* @__PURE__ */ (0,
|
|
1485
|
-
/* @__PURE__ */ (0,
|
|
1486
|
-
/* @__PURE__ */ (0,
|
|
1474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes29.Popover.Root, { children: [
|
|
1475
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Button, { size: "small", children: [
|
|
1476
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.RocketIcon, {}),
|
|
1487
1477
|
"\uB2EC\uC131\uD558\uAE30"
|
|
1488
1478
|
] }) }),
|
|
1489
|
-
/* @__PURE__ */ (0,
|
|
1490
|
-
/* @__PURE__ */ (0,
|
|
1491
|
-
/* @__PURE__ */ (0,
|
|
1492
|
-
/* @__PURE__ */ (0,
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1479
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes29.Popover.Content, { children: [
|
|
1480
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
1483
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
1494
1484
|
] })
|
|
1495
1485
|
] })
|
|
1496
1486
|
] });
|
|
1497
1487
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1499
|
-
/* @__PURE__ */ (0,
|
|
1500
|
-
/* @__PURE__ */ (0,
|
|
1501
|
-
/* @__PURE__ */ (0,
|
|
1502
|
-
/* @__PURE__ */ (0,
|
|
1503
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
1504
|
-
/* @__PURE__ */ (0,
|
|
1488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes18.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
1491
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
1492
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
1493
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns2.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
1505
1495
|
] }),
|
|
1506
1496
|
renderCompleteButton()
|
|
1507
1497
|
] }),
|
|
1508
|
-
open ? /* @__PURE__ */ (0,
|
|
1498
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1509
1499
|
import_themes39.Separator,
|
|
1510
1500
|
{
|
|
1511
1501
|
mb: "4",
|
|
@@ -1514,37 +1504,37 @@ function GoalManageCardRead(props) {
|
|
|
1514
1504
|
style: { gridColumnStart: "span 2" }
|
|
1515
1505
|
}
|
|
1516
1506
|
) : null,
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1518
|
-
/* @__PURE__ */ (0,
|
|
1519
|
-
/* @__PURE__ */ (0,
|
|
1507
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Collapse, { open, children: [
|
|
1508
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1509
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes6.Box, { children: [
|
|
1520
1510
|
renderSubTitle(
|
|
1521
1511
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
1522
1512
|
),
|
|
1523
1513
|
renderSubContent(expectedEffect)
|
|
1524
1514
|
] }),
|
|
1525
|
-
/* @__PURE__ */ (0,
|
|
1515
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes6.Box, { children: [
|
|
1526
1516
|
renderSubTitle(
|
|
1527
1517
|
"\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"
|
|
1528
1518
|
),
|
|
1529
1519
|
renderSubContent(huddle)
|
|
1530
1520
|
] })
|
|
1531
1521
|
] }),
|
|
1532
|
-
/* @__PURE__ */ (0,
|
|
1533
|
-
/* @__PURE__ */ (0,
|
|
1534
|
-
/* @__PURE__ */ (0,
|
|
1535
|
-
/* @__PURE__ */ (0,
|
|
1522
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes29.Popover.Root, { children: [
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
1525
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.TrashIcon, {}),
|
|
1536
1526
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
1537
1527
|
] }) }),
|
|
1538
|
-
/* @__PURE__ */ (0,
|
|
1539
|
-
/* @__PURE__ */ (0,
|
|
1540
|
-
/* @__PURE__ */ (0,
|
|
1541
|
-
/* @__PURE__ */ (0,
|
|
1542
|
-
/* @__PURE__ */ (0,
|
|
1528
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes29.Popover.Content, { children: [
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
1532
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
1543
1533
|
] })
|
|
1544
1534
|
] })
|
|
1545
1535
|
] }),
|
|
1546
|
-
/* @__PURE__ */ (0,
|
|
1547
|
-
/* @__PURE__ */ (0,
|
|
1536
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
1537
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
1548
1538
|
"\uC218\uC815\uD558\uAE30"
|
|
1549
1539
|
] })
|
|
1550
1540
|
] })
|
|
@@ -1563,20 +1553,20 @@ var import_react22 = require("react");
|
|
|
1563
1553
|
// src/molecules/expand-table/row.tsx
|
|
1564
1554
|
var import_react_table = require("@tanstack/react-table");
|
|
1565
1555
|
var import_react21 = require("react");
|
|
1566
|
-
var
|
|
1556
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1567
1557
|
|
|
1568
1558
|
// src/molecules/expand-table/index.tsx
|
|
1569
|
-
var
|
|
1559
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1570
1560
|
|
|
1571
1561
|
// src/molecules/navigation.tsx
|
|
1572
|
-
var
|
|
1562
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1573
1563
|
|
|
1574
1564
|
// src/molecules/date-picker/index.tsx
|
|
1575
1565
|
var import_react23 = require("react");
|
|
1576
1566
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1577
1567
|
var import_react_datepicker = require("react-datepicker");
|
|
1578
1568
|
var import_locale = require("date-fns/locale");
|
|
1579
|
-
var
|
|
1569
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1580
1570
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1581
1571
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1582
1572
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
@@ -1584,7 +1574,7 @@ var DatePicker = (0, import_react23.forwardRef)(
|
|
|
1584
1574
|
(props, ref) => {
|
|
1585
1575
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1586
1576
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1587
|
-
return /* @__PURE__ */ (0,
|
|
1577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1588
1578
|
ReactDatePicker,
|
|
1589
1579
|
__spreadProps(__spreadValues({
|
|
1590
1580
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1615,35 +1605,35 @@ var renderCustomHeader = (props) => {
|
|
|
1615
1605
|
} = props;
|
|
1616
1606
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1617
1607
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1618
|
-
return /* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1609
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1620
1610
|
import_themes18.IconButton,
|
|
1621
1611
|
{
|
|
1622
1612
|
disabled: prevMonthButtonDisabled,
|
|
1623
1613
|
onClick: decreaseMonth,
|
|
1624
1614
|
type: "button",
|
|
1625
1615
|
variant: "ghost",
|
|
1626
|
-
children: /* @__PURE__ */ (0,
|
|
1616
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
1627
1617
|
}
|
|
1628
1618
|
),
|
|
1629
|
-
/* @__PURE__ */ (0,
|
|
1630
|
-
/* @__PURE__ */ (0,
|
|
1619
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
1620
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1631
1621
|
year,
|
|
1632
1622
|
"\uB144"
|
|
1633
1623
|
] }),
|
|
1634
|
-
/* @__PURE__ */ (0,
|
|
1624
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1635
1625
|
month,
|
|
1636
1626
|
"\uC6D4"
|
|
1637
1627
|
] })
|
|
1638
1628
|
] }),
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1640
1630
|
import_themes18.IconButton,
|
|
1641
1631
|
{
|
|
1642
1632
|
disabled: nextMonthButtonDisabled,
|
|
1643
1633
|
onClick: increaseMonth,
|
|
1644
1634
|
type: "button",
|
|
1645
1635
|
variant: "ghost",
|
|
1646
|
-
children: /* @__PURE__ */ (0,
|
|
1636
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
1647
1637
|
}
|
|
1648
1638
|
)
|
|
1649
1639
|
] });
|
|
@@ -1652,12 +1642,12 @@ var renderCustomHeader = (props) => {
|
|
|
1652
1642
|
// src/molecules/dot-navigation.tsx
|
|
1653
1643
|
var import_react24 = require("react");
|
|
1654
1644
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
1655
|
-
var
|
|
1645
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1656
1646
|
|
|
1657
1647
|
// src/molecules/stepper.tsx
|
|
1658
1648
|
var import_react25 = require("react");
|
|
1659
1649
|
var import_themes51 = require("@radix-ui/themes");
|
|
1660
|
-
var
|
|
1650
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1661
1651
|
var StepContext = (0, import_react25.createContext)({
|
|
1662
1652
|
active: false,
|
|
1663
1653
|
completed: false,
|
|
@@ -1667,24 +1657,24 @@ var StepContext = (0, import_react25.createContext)({
|
|
|
1667
1657
|
// src/molecules/tag-selector.tsx
|
|
1668
1658
|
var import_react26 = require("react");
|
|
1669
1659
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
1670
|
-
var
|
|
1660
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1671
1661
|
|
|
1672
1662
|
// src/theme/theme-provider.tsx
|
|
1673
1663
|
var import_themes52 = require("@radix-ui/themes");
|
|
1674
|
-
var
|
|
1664
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1675
1665
|
|
|
1676
1666
|
// src/molecules/learning-post.tsx
|
|
1677
|
-
var
|
|
1667
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1678
1668
|
|
|
1679
1669
|
// src/molecules/force-refresh.tsx
|
|
1680
1670
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
1681
|
-
var
|
|
1671
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1682
1672
|
|
|
1683
1673
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
1684
1674
|
var import_react27 = require("react");
|
|
1685
1675
|
var import_date_fns3 = require("date-fns");
|
|
1686
1676
|
var import_clsx2 = require("clsx");
|
|
1687
|
-
var
|
|
1677
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1688
1678
|
function DatePickerButton(props) {
|
|
1689
1679
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
1690
1680
|
const buttonProps = (0, import_react27.useMemo)(() => {
|
|
@@ -1705,12 +1695,12 @@ function DatePickerButton(props) {
|
|
|
1705
1695
|
(disabled || props.readOnly) && "disabled"
|
|
1706
1696
|
);
|
|
1707
1697
|
}, [disabled, props.readOnly]);
|
|
1708
|
-
return /* @__PURE__ */ (0,
|
|
1698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
1709
1699
|
DatePicker,
|
|
1710
1700
|
__spreadProps(__spreadValues({
|
|
1711
|
-
customInput: /* @__PURE__ */ (0,
|
|
1701
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
1712
1702
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
1713
|
-
/* @__PURE__ */ (0,
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_icons2.CalendarIcon, {})
|
|
1714
1704
|
] }) })),
|
|
1715
1705
|
wrapperClassName: "full-width"
|
|
1716
1706
|
}, rest), {
|
|
@@ -1746,7 +1736,7 @@ var getTimeOption = (time) => {
|
|
|
1746
1736
|
};
|
|
1747
1737
|
|
|
1748
1738
|
// src/molecules/time-select.tsx
|
|
1749
|
-
var
|
|
1739
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1750
1740
|
var getOptionValue = (date, timeValue) => {
|
|
1751
1741
|
if (date && timeValue) {
|
|
1752
1742
|
if ((0, import_date_fns4.format)(date, "yyyyMMdd") === (0, import_date_fns4.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -1772,21 +1762,21 @@ function TimeSelect(_a) {
|
|
|
1772
1762
|
const [minOption, maxOption] = (0, import_react28.useMemo)(() => {
|
|
1773
1763
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
1774
1764
|
}, [maxTime, minTime, time]);
|
|
1775
|
-
return /* @__PURE__ */ (0,
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1777
|
-
/* @__PURE__ */ (0,
|
|
1765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
1766
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
1767
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
1778
1768
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
1779
1769
|
if (!visible) {
|
|
1780
1770
|
return null;
|
|
1781
1771
|
}
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Select.Item, { value: option, children: option }, option);
|
|
1783
1773
|
}) })
|
|
1784
1774
|
] }));
|
|
1785
1775
|
}
|
|
1786
1776
|
|
|
1787
1777
|
// src/molecules/radio-button-card.tsx
|
|
1788
1778
|
var import_react29 = require("react");
|
|
1789
|
-
var
|
|
1779
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1790
1780
|
var RadioCardContext = (0, import_react29.createContext)({});
|
|
1791
1781
|
function Root8(props) {
|
|
1792
1782
|
const [value, setValue] = (0, import_react29.useState)(props.value || props.defaultValue);
|
|
@@ -1798,7 +1788,7 @@ function Root8(props) {
|
|
|
1798
1788
|
},
|
|
1799
1789
|
[props]
|
|
1800
1790
|
);
|
|
1801
|
-
return /* @__PURE__ */ (0,
|
|
1791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
1802
1792
|
}
|
|
1803
1793
|
function Item(_a) {
|
|
1804
1794
|
var _b = _a, {
|
|
@@ -1815,9 +1805,9 @@ function Item(_a) {
|
|
|
1815
1805
|
"justify",
|
|
1816
1806
|
"RadioWrapper"
|
|
1817
1807
|
]);
|
|
1818
|
-
return /* @__PURE__ */ (0,
|
|
1808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
1819
1809
|
children,
|
|
1820
|
-
/* @__PURE__ */ (0,
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1821
1811
|
import_themes32.Radio,
|
|
1822
1812
|
{
|
|
1823
1813
|
checked: itemRest.value === value,
|
|
@@ -1834,13 +1824,13 @@ var RadioButtonCard = {
|
|
|
1834
1824
|
|
|
1835
1825
|
// src/molecules/download-card.tsx
|
|
1836
1826
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
1837
|
-
var
|
|
1827
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1838
1828
|
|
|
1839
1829
|
// src/molecules/ghost-post.tsx
|
|
1840
|
-
var
|
|
1830
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1841
1831
|
|
|
1842
1832
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
1843
|
-
var
|
|
1833
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1844
1834
|
var initialValues = {
|
|
1845
1835
|
goal: "",
|
|
1846
1836
|
effect: "",
|
|
@@ -1869,11 +1859,11 @@ function GoalManageCardEdit(props) {
|
|
|
1869
1859
|
var _a;
|
|
1870
1860
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
1871
1861
|
}, [props, values]);
|
|
1872
|
-
return /* @__PURE__ */ (0,
|
|
1873
|
-
/* @__PURE__ */ (0,
|
|
1874
|
-
/* @__PURE__ */ (0,
|
|
1875
|
-
/* @__PURE__ */ (0,
|
|
1876
|
-
/* @__PURE__ */ (0,
|
|
1862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
1863
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Form.Field, { name: "title", children: [
|
|
1865
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1877
1867
|
TextField.Root,
|
|
1878
1868
|
{
|
|
1879
1869
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -1884,11 +1874,11 @@ function GoalManageCardEdit(props) {
|
|
|
1884
1874
|
value: values.goal
|
|
1885
1875
|
}
|
|
1886
1876
|
),
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
1888
1878
|
] }),
|
|
1889
|
-
/* @__PURE__ */ (0,
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
1891
|
-
/* @__PURE__ */ (0,
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Form.Field, { name: "effect", children: [
|
|
1880
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
1881
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1892
1882
|
TextArea,
|
|
1893
1883
|
{
|
|
1894
1884
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -1900,11 +1890,11 @@ function GoalManageCardEdit(props) {
|
|
|
1900
1890
|
value: values.effect
|
|
1901
1891
|
}
|
|
1902
1892
|
),
|
|
1903
|
-
/* @__PURE__ */ (0,
|
|
1893
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
1904
1894
|
] }),
|
|
1905
|
-
/* @__PURE__ */ (0,
|
|
1906
|
-
/* @__PURE__ */ (0,
|
|
1907
|
-
/* @__PURE__ */ (0,
|
|
1895
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Form.Field, { name: "huddle", children: [
|
|
1896
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
1897
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1908
1898
|
TextArea,
|
|
1909
1899
|
{
|
|
1910
1900
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -1918,11 +1908,11 @@ function GoalManageCardEdit(props) {
|
|
|
1918
1908
|
value: values.huddle
|
|
1919
1909
|
}
|
|
1920
1910
|
),
|
|
1921
|
-
/* @__PURE__ */ (0,
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
1922
1912
|
] }),
|
|
1923
|
-
/* @__PURE__ */ (0,
|
|
1924
|
-
/* @__PURE__ */ (0,
|
|
1925
|
-
/* @__PURE__ */ (0,
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
1914
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1926
1916
|
DatePickerButton,
|
|
1927
1917
|
{
|
|
1928
1918
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -1933,11 +1923,11 @@ function GoalManageCardEdit(props) {
|
|
|
1933
1923
|
selected: values.dueDate
|
|
1934
1924
|
}
|
|
1935
1925
|
),
|
|
1936
|
-
/* @__PURE__ */ (0,
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
1937
1927
|
] })
|
|
1938
1928
|
] }),
|
|
1939
|
-
/* @__PURE__ */ (0,
|
|
1940
|
-
/* @__PURE__ */ (0,
|
|
1929
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1941
1931
|
Button,
|
|
1942
1932
|
{
|
|
1943
1933
|
color: "gray",
|
|
@@ -1948,7 +1938,7 @@ function GoalManageCardEdit(props) {
|
|
|
1948
1938
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
1949
1939
|
}
|
|
1950
1940
|
),
|
|
1951
|
-
/* @__PURE__ */ (0,
|
|
1941
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
1952
1942
|
] })
|
|
1953
1943
|
] }) });
|
|
1954
1944
|
}
|
|
@@ -1959,7 +1949,7 @@ var import_date_fns6 = require("date-fns");
|
|
|
1959
1949
|
|
|
1960
1950
|
// src/app/platform/edit-coaching-time.tsx
|
|
1961
1951
|
var import_react31 = require("react");
|
|
1962
|
-
var
|
|
1952
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1963
1953
|
var getValueFromDefaultValue = (args) => {
|
|
1964
1954
|
return {
|
|
1965
1955
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -2029,10 +2019,10 @@ function EditCoachingTime(props) {
|
|
|
2029
2019
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
2030
2020
|
}
|
|
2031
2021
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
2032
|
-
return /* @__PURE__ */ (0,
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2034
|
-
/* @__PURE__ */ (0,
|
|
2035
|
-
/* @__PURE__ */ (0,
|
|
2022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Root, { children: [
|
|
2023
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Form.Field, { name: "date", children: [
|
|
2024
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2036
2026
|
DatePickerButton,
|
|
2037
2027
|
{
|
|
2038
2028
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -2042,7 +2032,7 @@ function EditCoachingTime(props) {
|
|
|
2042
2032
|
}
|
|
2043
2033
|
)
|
|
2044
2034
|
] }),
|
|
2045
|
-
/* @__PURE__ */ (0,
|
|
2035
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
2046
2036
|
import_themes23.Grid,
|
|
2047
2037
|
{
|
|
2048
2038
|
align: "center",
|
|
@@ -2057,10 +2047,10 @@ function EditCoachingTime(props) {
|
|
|
2057
2047
|
mt: "5",
|
|
2058
2048
|
width: "100%",
|
|
2059
2049
|
children: [
|
|
2060
|
-
/* @__PURE__ */ (0,
|
|
2061
|
-
/* @__PURE__ */ (0,
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2063
|
-
/* @__PURE__ */ (0,
|
|
2050
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
2051
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", {}),
|
|
2052
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2064
2054
|
TimeSelect,
|
|
2065
2055
|
{
|
|
2066
2056
|
onValueChange: onChangeStartTime,
|
|
@@ -2068,8 +2058,8 @@ function EditCoachingTime(props) {
|
|
|
2068
2058
|
value: values.startTime
|
|
2069
2059
|
}
|
|
2070
2060
|
),
|
|
2071
|
-
/* @__PURE__ */ (0,
|
|
2072
|
-
/* @__PURE__ */ (0,
|
|
2061
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes39.Separator, {}) }),
|
|
2062
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2073
2063
|
TimeSelect,
|
|
2074
2064
|
{
|
|
2075
2065
|
onValueChange: onChangeEndTime,
|
|
@@ -2077,13 +2067,13 @@ function EditCoachingTime(props) {
|
|
|
2077
2067
|
value: values.endTime
|
|
2078
2068
|
}
|
|
2079
2069
|
),
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2070
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
2081
2071
|
]
|
|
2082
2072
|
}
|
|
2083
2073
|
),
|
|
2084
|
-
/* @__PURE__ */ (0,
|
|
2085
|
-
/* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
2076
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
2087
2077
|
] })
|
|
2088
2078
|
] }) });
|
|
2089
2079
|
}
|
|
@@ -2093,20 +2083,20 @@ var import_react32 = require("react");
|
|
|
2093
2083
|
|
|
2094
2084
|
// src/app/platform/on-offline-radio-card.tsx
|
|
2095
2085
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
2096
|
-
var
|
|
2086
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2097
2087
|
var SERVICE_TYPE = {
|
|
2098
2088
|
onlineCoaching: "onlineCoaching",
|
|
2099
2089
|
offlineCoaching: "offlineCoaching"
|
|
2100
2090
|
};
|
|
2101
2091
|
var breakpoint = "sm";
|
|
2102
2092
|
function HideSmallBox(props) {
|
|
2103
|
-
return /* @__PURE__ */ (0,
|
|
2093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
2104
2094
|
}
|
|
2105
2095
|
function OnOfflineRadioCard(props) {
|
|
2106
2096
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
2107
2097
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
2108
2098
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
2109
|
-
return /* @__PURE__ */ (0,
|
|
2099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
2110
2100
|
RadioButtonCard.Root,
|
|
2111
2101
|
__spreadProps(__spreadValues({
|
|
2112
2102
|
RadioWrapper: Wrapper,
|
|
@@ -2115,13 +2105,13 @@ function OnOfflineRadioCard(props) {
|
|
|
2115
2105
|
justify
|
|
2116
2106
|
}, props), {
|
|
2117
2107
|
children: [
|
|
2118
|
-
/* @__PURE__ */ (0,
|
|
2119
|
-
/* @__PURE__ */ (0,
|
|
2120
|
-
/* @__PURE__ */ (0,
|
|
2108
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons9.GlobeIcon, {}) }),
|
|
2110
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
2121
2111
|
] }) }),
|
|
2122
|
-
/* @__PURE__ */ (0,
|
|
2123
|
-
/* @__PURE__ */ (0,
|
|
2124
|
-
/* @__PURE__ */ (0,
|
|
2112
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
2113
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons9.BackpackIcon, {}) }),
|
|
2114
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
2125
2115
|
] }) })
|
|
2126
2116
|
]
|
|
2127
2117
|
})
|
|
@@ -2129,7 +2119,7 @@ function OnOfflineRadioCard(props) {
|
|
|
2129
2119
|
}
|
|
2130
2120
|
|
|
2131
2121
|
// src/app/platform/edit-service-type.tsx
|
|
2132
|
-
var
|
|
2122
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2133
2123
|
function EditServiceType(props) {
|
|
2134
2124
|
const { defaultServiceType, onClickCancel } = props;
|
|
2135
2125
|
const [sessionType, setSessionType] = (0, import_react32.useState)(
|
|
@@ -2139,8 +2129,8 @@ function EditServiceType(props) {
|
|
|
2139
2129
|
var _a;
|
|
2140
2130
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
2141
2131
|
}, [props, sessionType]);
|
|
2142
|
-
return /* @__PURE__ */ (0,
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes6.Box, { children: [
|
|
2133
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2144
2134
|
Typo,
|
|
2145
2135
|
{
|
|
2146
2136
|
as: "p",
|
|
@@ -2150,16 +2140,16 @@ function EditServiceType(props) {
|
|
|
2150
2140
|
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"
|
|
2151
2141
|
}
|
|
2152
2142
|
),
|
|
2153
|
-
/* @__PURE__ */ (0,
|
|
2154
|
-
/* @__PURE__ */ (0,
|
|
2155
|
-
/* @__PURE__ */ (0,
|
|
2156
|
-
/* @__PURE__ */ (0,
|
|
2143
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
2145
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
2146
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
2157
2147
|
] })
|
|
2158
2148
|
] });
|
|
2159
2149
|
}
|
|
2160
2150
|
|
|
2161
2151
|
// src/app/platform/session-card.tsx
|
|
2162
|
-
var
|
|
2152
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2163
2153
|
var preventDefault2 = (e) => {
|
|
2164
2154
|
e.preventDefault();
|
|
2165
2155
|
};
|
|
@@ -2190,33 +2180,33 @@ function SessionCard(props) {
|
|
|
2190
2180
|
"sessionType"
|
|
2191
2181
|
]);
|
|
2192
2182
|
const renderEditButton = (0, import_react33.useCallback)(() => {
|
|
2193
|
-
return /* @__PURE__ */ (0,
|
|
2183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
2194
2184
|
}, []);
|
|
2195
2185
|
const sessionTimeStr = (0, import_react33.useMemo)(() => {
|
|
2196
2186
|
if (!startAt || !endAt)
|
|
2197
2187
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
2198
2188
|
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")}`;
|
|
2199
2189
|
}, [startAt, endAt]);
|
|
2200
|
-
return /* @__PURE__ */ (0,
|
|
2201
|
-
/* @__PURE__ */ (0,
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
2191
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
2203
2193
|
TitleExtra,
|
|
2204
|
-
error ? /* @__PURE__ */ (0,
|
|
2194
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
2205
2195
|
] }),
|
|
2206
|
-
/* @__PURE__ */ (0,
|
|
2207
|
-
/* @__PURE__ */ (0,
|
|
2208
|
-
/* @__PURE__ */ (0,
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2196
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes15.DataList.Root, { children: [
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes15.DataList.Item, { children: [
|
|
2198
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes15.DataList.Value, { children: [
|
|
2210
2200
|
sessionTimeStr,
|
|
2211
|
-
editable ? /* @__PURE__ */ (0,
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2213
|
-
/* @__PURE__ */ (0,
|
|
2201
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Dialog.Root, { children: [
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
2203
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2214
2204
|
Dialog.Content,
|
|
2215
2205
|
{
|
|
2216
2206
|
onOpenAutoFocus: preventDefault2,
|
|
2217
2207
|
style: { overflow: "visible" },
|
|
2218
2208
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
2219
|
-
children: /* @__PURE__ */ (0,
|
|
2209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2220
2210
|
EditCoachingTime,
|
|
2221
2211
|
{
|
|
2222
2212
|
defaultEndAt: endAt,
|
|
@@ -2229,18 +2219,18 @@ function SessionCard(props) {
|
|
|
2229
2219
|
] }) : null
|
|
2230
2220
|
] })
|
|
2231
2221
|
] }),
|
|
2232
|
-
/* @__PURE__ */ (0,
|
|
2233
|
-
/* @__PURE__ */ (0,
|
|
2234
|
-
/* @__PURE__ */ (0,
|
|
2235
|
-
/* @__PURE__ */ (0,
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
2223
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes15.DataList.Item, { children: [
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
2225
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes15.DataList.Value, { children: [
|
|
2236
2226
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
2237
|
-
editable ? /* @__PURE__ */ (0,
|
|
2238
|
-
/* @__PURE__ */ (0,
|
|
2239
|
-
/* @__PURE__ */ (0,
|
|
2227
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Dialog.Root, { children: [
|
|
2228
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
2229
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2240
2230
|
Dialog.Content,
|
|
2241
2231
|
{
|
|
2242
2232
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
2243
|
-
children: /* @__PURE__ */ (0,
|
|
2233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2244
2234
|
EditServiceType,
|
|
2245
2235
|
{
|
|
2246
2236
|
defaultServiceType: sessionType,
|
|
@@ -2252,32 +2242,32 @@ function SessionCard(props) {
|
|
|
2252
2242
|
] }) : null
|
|
2253
2243
|
] })
|
|
2254
2244
|
] }),
|
|
2255
|
-
/* @__PURE__ */ (0,
|
|
2245
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
2256
2246
|
] })
|
|
2257
2247
|
] })
|
|
2258
2248
|
] }) }));
|
|
2259
2249
|
}
|
|
2260
2250
|
|
|
2261
2251
|
// src/app/platform/coach-question-list.tsx
|
|
2262
|
-
var
|
|
2252
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2263
2253
|
function QuestionItem({ question, answer }) {
|
|
2264
|
-
return /* @__PURE__ */ (0,
|
|
2265
|
-
/* @__PURE__ */ (0,
|
|
2266
|
-
/* @__PURE__ */ (0,
|
|
2254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes6.Box, { children: [
|
|
2255
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
2267
2257
|
] }, question);
|
|
2268
2258
|
}
|
|
2269
2259
|
function CoachQuestionList({
|
|
2270
2260
|
questions
|
|
2271
2261
|
}) {
|
|
2272
|
-
return /* @__PURE__ */ (0,
|
|
2273
|
-
return /* @__PURE__ */ (0,
|
|
2262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
2263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
2274
2264
|
}) });
|
|
2275
2265
|
}
|
|
2276
2266
|
|
|
2277
2267
|
// src/app/platform/reservation-card.tsx
|
|
2278
2268
|
var import_react34 = require("react");
|
|
2279
2269
|
var import_date_fns7 = require("date-fns");
|
|
2280
|
-
var
|
|
2270
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2281
2271
|
function ReservationCard(props) {
|
|
2282
2272
|
const {
|
|
2283
2273
|
sessionNumber,
|
|
@@ -2311,9 +2301,9 @@ function ReservationCard(props) {
|
|
|
2311
2301
|
}, [defaultTime, defaultType]);
|
|
2312
2302
|
const ActionButtons = (0, import_react34.useMemo)(() => {
|
|
2313
2303
|
if (readonly) {
|
|
2314
|
-
return /* @__PURE__ */ (0,
|
|
2304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
2315
2305
|
}
|
|
2316
|
-
return /* @__PURE__ */ (0,
|
|
2306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
2317
2307
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
2318
2308
|
const onChangeDate = (0, import_react34.useCallback)(
|
|
2319
2309
|
(newDate) => {
|
|
@@ -2377,47 +2367,47 @@ function ReservationCard(props) {
|
|
|
2377
2367
|
});
|
|
2378
2368
|
}
|
|
2379
2369
|
}, [editValues, maxTime, readonly]);
|
|
2380
|
-
return /* @__PURE__ */ (0,
|
|
2370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2381
2371
|
Card,
|
|
2382
2372
|
{
|
|
2383
2373
|
error: Boolean(error),
|
|
2384
2374
|
size: "3",
|
|
2385
2375
|
style: { overflow: "visible", contain: "initial" },
|
|
2386
2376
|
children: [
|
|
2387
|
-
/* @__PURE__ */ (0,
|
|
2388
|
-
/* @__PURE__ */ (0,
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
2378
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2389
2379
|
import_themes23.Grid,
|
|
2390
2380
|
{
|
|
2391
2381
|
align: "center",
|
|
2392
2382
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
2393
2383
|
gapY: "2",
|
|
2394
2384
|
children: [
|
|
2395
|
-
/* @__PURE__ */ (0,
|
|
2396
|
-
/* @__PURE__ */ (0,
|
|
2385
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
2386
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Heading2, { variant: "heading4", children: [
|
|
2397
2387
|
customerName || "-",
|
|
2398
2388
|
"\uB2D8 ",
|
|
2399
2389
|
sessionNumber || "-",
|
|
2400
2390
|
"\uD68C\uCC28 \uC138\uC158"
|
|
2401
2391
|
] }),
|
|
2402
|
-
/* @__PURE__ */ (0,
|
|
2392
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
2403
2393
|
] }),
|
|
2404
|
-
error ? /* @__PURE__ */ (0,
|
|
2394
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
2405
2395
|
]
|
|
2406
2396
|
}
|
|
2407
2397
|
),
|
|
2408
|
-
/* @__PURE__ */ (0,
|
|
2398
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
2409
2399
|
] }),
|
|
2410
|
-
/* @__PURE__ */ (0,
|
|
2400
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2411
2401
|
Form.Root,
|
|
2412
2402
|
{
|
|
2413
2403
|
onSubmit: (e) => {
|
|
2414
2404
|
e.preventDefault();
|
|
2415
2405
|
},
|
|
2416
|
-
children: /* @__PURE__ */ (0,
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2418
|
-
/* @__PURE__ */ (0,
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2420
|
-
/* @__PURE__ */ (0,
|
|
2406
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2407
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Form.Field, { name: "date", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Form.Label, { asChild: true, children: [
|
|
2408
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
2409
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes23.Grid, { columns: "1fr auto", gap: "4", children: [
|
|
2410
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2421
2411
|
DatePickerButton,
|
|
2422
2412
|
{
|
|
2423
2413
|
disabled: readonly,
|
|
@@ -2429,7 +2419,7 @@ function ReservationCard(props) {
|
|
|
2429
2419
|
size: "large"
|
|
2430
2420
|
}
|
|
2431
2421
|
),
|
|
2432
|
-
/* @__PURE__ */ (0,
|
|
2422
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2433
2423
|
TimeSelect,
|
|
2434
2424
|
{
|
|
2435
2425
|
disabled: readonly,
|
|
@@ -2443,9 +2433,9 @@ function ReservationCard(props) {
|
|
|
2443
2433
|
)
|
|
2444
2434
|
] })
|
|
2445
2435
|
] }) }),
|
|
2446
|
-
/* @__PURE__ */ (0,
|
|
2447
|
-
/* @__PURE__ */ (0,
|
|
2448
|
-
/* @__PURE__ */ (0,
|
|
2436
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Form.Field, { name: "type", children: [
|
|
2437
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Form.Label, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }) }),
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Form.Control, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2449
2439
|
OnOfflineRadioCard,
|
|
2450
2440
|
{
|
|
2451
2441
|
disabled: readonly,
|
|
@@ -2455,8 +2445,8 @@ function ReservationCard(props) {
|
|
|
2455
2445
|
}
|
|
2456
2446
|
) })
|
|
2457
2447
|
] }),
|
|
2458
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
2459
|
-
/* @__PURE__ */ (0,
|
|
2448
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2460
2450
|
Button,
|
|
2461
2451
|
{
|
|
2462
2452
|
color: "gray",
|
|
@@ -2466,12 +2456,12 @@ function ReservationCard(props) {
|
|
|
2466
2456
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
2467
2457
|
}
|
|
2468
2458
|
),
|
|
2469
|
-
/* @__PURE__ */ (0,
|
|
2459
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
2470
2460
|
] })
|
|
2471
2461
|
] })
|
|
2472
2462
|
}
|
|
2473
2463
|
) }),
|
|
2474
|
-
readonly ? /* @__PURE__ */ (0,
|
|
2464
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2475
2465
|
import_themes6.Box,
|
|
2476
2466
|
{
|
|
2477
2467
|
mt: "5",
|
|
@@ -2479,14 +2469,14 @@ function ReservationCard(props) {
|
|
|
2479
2469
|
py: "4",
|
|
2480
2470
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
2481
2471
|
width: "100%",
|
|
2482
|
-
children: /* @__PURE__ */ (0,
|
|
2483
|
-
/* @__PURE__ */ (0,
|
|
2472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
2473
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Typo, { children: [
|
|
2484
2474
|
sessionNumber || "-",
|
|
2485
2475
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
2486
2476
|
] }),
|
|
2487
|
-
/* @__PURE__ */ (0,
|
|
2477
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
2488
2478
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
2489
|
-
/* @__PURE__ */ (0,
|
|
2479
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
2490
2480
|
] })
|
|
2491
2481
|
] })
|
|
2492
2482
|
}
|
|
@@ -2498,14 +2488,14 @@ function ReservationCard(props) {
|
|
|
2498
2488
|
|
|
2499
2489
|
// src/app/platform/session-review-simple-read.tsx
|
|
2500
2490
|
var import_react35 = require("react");
|
|
2501
|
-
var
|
|
2491
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2502
2492
|
function SubTitleWrapper({
|
|
2503
2493
|
children,
|
|
2504
2494
|
title
|
|
2505
2495
|
}) {
|
|
2506
|
-
return /* @__PURE__ */ (0,
|
|
2507
|
-
/* @__PURE__ */ (0,
|
|
2508
|
-
/* @__PURE__ */ (0,
|
|
2496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
2498
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { children })
|
|
2509
2499
|
] });
|
|
2510
2500
|
}
|
|
2511
2501
|
function SessionReviewSimpleRead({
|
|
@@ -2530,22 +2520,22 @@ function SessionReviewSimpleRead({
|
|
|
2530
2520
|
color: "error"
|
|
2531
2521
|
};
|
|
2532
2522
|
}, [helpfulness]);
|
|
2533
|
-
return /* @__PURE__ */ (0,
|
|
2534
|
-
/* @__PURE__ */ (0,
|
|
2535
|
-
/* @__PURE__ */ (0,
|
|
2523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2524
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.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_runtime61.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
2525
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
2536
2526
|
] }) });
|
|
2537
2527
|
}
|
|
2538
2528
|
|
|
2539
2529
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
2540
|
-
var
|
|
2530
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2541
2531
|
function SectionWrapper({
|
|
2542
2532
|
title,
|
|
2543
2533
|
children
|
|
2544
2534
|
}) {
|
|
2545
|
-
return /* @__PURE__ */ (0,
|
|
2546
|
-
/* @__PURE__ */ (0,
|
|
2547
|
-
/* @__PURE__ */ (0,
|
|
2548
|
-
/* @__PURE__ */ (0,
|
|
2535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes6.Box, { children: [
|
|
2536
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
2537
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
2538
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes39.Separator, { size: "4" })
|
|
2549
2539
|
] }),
|
|
2550
2540
|
children
|
|
2551
2541
|
] });
|
|
@@ -2555,11 +2545,11 @@ function SessionUserInfoDetail({
|
|
|
2555
2545
|
session,
|
|
2556
2546
|
onClickCopy
|
|
2557
2547
|
}) {
|
|
2558
|
-
return /* @__PURE__ */ (0,
|
|
2559
|
-
/* @__PURE__ */ (0,
|
|
2548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
2549
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
2560
2550
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
2561
2551
|
) }) }),
|
|
2562
|
-
/* @__PURE__ */ (0,
|
|
2552
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
2563
2553
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
2564
2554
|
) }) })
|
|
2565
2555
|
] });
|
|
@@ -2567,7 +2557,7 @@ function SessionUserInfoDetail({
|
|
|
2567
2557
|
|
|
2568
2558
|
// src/app/platform/report-card.tsx
|
|
2569
2559
|
var import_react36 = require("react");
|
|
2570
|
-
var
|
|
2560
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2571
2561
|
function ReportCard(props) {
|
|
2572
2562
|
const { title, file, status } = props;
|
|
2573
2563
|
const onClickDownload = (0, import_react36.useCallback)(() => {
|
|
@@ -2583,21 +2573,21 @@ function ReportCard(props) {
|
|
|
2583
2573
|
document.body.removeChild(link);
|
|
2584
2574
|
}, [file]);
|
|
2585
2575
|
if (status) {
|
|
2586
|
-
return /* @__PURE__ */ (0,
|
|
2587
|
-
/* @__PURE__ */ (0,
|
|
2576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
2577
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
2588
2578
|
status
|
|
2589
2579
|
] }) });
|
|
2590
2580
|
}
|
|
2591
|
-
return /* @__PURE__ */ (0,
|
|
2581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2592
2582
|
import_themes22.Flex,
|
|
2593
2583
|
{
|
|
2594
2584
|
direction: { initial: "column", xs: "row" },
|
|
2595
2585
|
gapY: "2",
|
|
2596
2586
|
justify: "between",
|
|
2597
2587
|
children: [
|
|
2598
|
-
/* @__PURE__ */ (0,
|
|
2599
|
-
/* @__PURE__ */ (0,
|
|
2600
|
-
/* @__PURE__ */ (0,
|
|
2588
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
2589
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
2590
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
2601
2591
|
file == null ? void 0 : file.buttonName
|
|
2602
2592
|
] }) }, file == null ? void 0 : file.url)
|
|
2603
2593
|
]
|
|
@@ -2607,7 +2597,7 @@ function ReportCard(props) {
|
|
|
2607
2597
|
|
|
2608
2598
|
// src/app/platform/contents-card.tsx
|
|
2609
2599
|
var import_react37 = require("react");
|
|
2610
|
-
var
|
|
2600
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2611
2601
|
var ContentsCard = (0, import_react37.forwardRef)(
|
|
2612
2602
|
({
|
|
2613
2603
|
title,
|
|
@@ -2618,7 +2608,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
2618
2608
|
onClickCard,
|
|
2619
2609
|
isLoading = false
|
|
2620
2610
|
}, ref) => {
|
|
2621
|
-
return /* @__PURE__ */ (0,
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
2622
2612
|
Card,
|
|
2623
2613
|
{
|
|
2624
2614
|
onClick: onClickCard,
|
|
@@ -2631,7 +2621,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
2631
2621
|
maxHeight: "450px"
|
|
2632
2622
|
},
|
|
2633
2623
|
children: [
|
|
2634
|
-
/* @__PURE__ */ (0,
|
|
2624
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2635
2625
|
import_themes6.Box,
|
|
2636
2626
|
{
|
|
2637
2627
|
height: "210px",
|
|
@@ -2643,12 +2633,12 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
2643
2633
|
width: "100%"
|
|
2644
2634
|
}
|
|
2645
2635
|
) }) }),
|
|
2646
|
-
/* @__PURE__ */ (0,
|
|
2647
|
-
/* @__PURE__ */ (0,
|
|
2648
|
-
/* @__PURE__ */ (0,
|
|
2649
|
-
/* @__PURE__ */ (0,
|
|
2636
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
2637
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes6.Box, { children: [
|
|
2638
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
2639
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
2650
2640
|
] }),
|
|
2651
|
-
/* @__PURE__ */ (0,
|
|
2641
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
2652
2642
|
import_themes23.Grid,
|
|
2653
2643
|
{
|
|
2654
2644
|
align: "center",
|
|
@@ -2658,10 +2648,10 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
2658
2648
|
style: { marginTop: "auto" },
|
|
2659
2649
|
width: "100%",
|
|
2660
2650
|
children: [
|
|
2661
|
-
/* @__PURE__ */ (0,
|
|
2662
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
2663
|
-
/* @__PURE__ */ (0,
|
|
2664
|
-
/* @__PURE__ */ (0,
|
|
2651
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
2652
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(DropdownMenu.Root, { children: [
|
|
2653
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
2654
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2665
2655
|
DropdownMenu.Item,
|
|
2666
2656
|
{
|
|
2667
2657
|
onClick: (e) => {
|
|
@@ -2685,7 +2675,7 @@ var ContentsCard = (0, import_react37.forwardRef)(
|
|
|
2685
2675
|
ContentsCard.displayName = "ContentsCard";
|
|
2686
2676
|
|
|
2687
2677
|
// src/app/platform/curriculum-card.tsx
|
|
2688
|
-
var
|
|
2678
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2689
2679
|
function CurriculumCard(props) {
|
|
2690
2680
|
const {
|
|
2691
2681
|
title,
|
|
@@ -2696,7 +2686,7 @@ function CurriculumCard(props) {
|
|
|
2696
2686
|
bgColor,
|
|
2697
2687
|
onClick
|
|
2698
2688
|
} = props;
|
|
2699
|
-
return /* @__PURE__ */ (0,
|
|
2689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
2700
2690
|
import_themes23.Grid,
|
|
2701
2691
|
{
|
|
2702
2692
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -2705,7 +2695,7 @@ function CurriculumCard(props) {
|
|
|
2705
2695
|
onClick,
|
|
2706
2696
|
style: { cursor: "pointer" },
|
|
2707
2697
|
children: [
|
|
2708
|
-
/* @__PURE__ */ (0,
|
|
2698
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2709
2699
|
import_themes6.Box,
|
|
2710
2700
|
{
|
|
2711
2701
|
height: "165px",
|
|
@@ -2720,32 +2710,32 @@ function CurriculumCard(props) {
|
|
|
2720
2710
|
backgroundAttachment: "local"
|
|
2721
2711
|
},
|
|
2722
2712
|
width: "100%",
|
|
2723
|
-
children: /* @__PURE__ */ (0,
|
|
2713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
2724
2714
|
}
|
|
2725
2715
|
),
|
|
2726
|
-
/* @__PURE__ */ (0,
|
|
2727
|
-
/* @__PURE__ */ (0,
|
|
2728
|
-
/* @__PURE__ */ (0,
|
|
2729
|
-
/* @__PURE__ */ (0,
|
|
2716
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
2717
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
2718
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
2719
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2730
2720
|
Badge,
|
|
2731
2721
|
{
|
|
2732
2722
|
size: "medium",
|
|
2733
2723
|
style: { justifySelf: "flex-start" },
|
|
2734
2724
|
variant: "outline",
|
|
2735
|
-
children: /* @__PURE__ */ (0,
|
|
2736
|
-
/* @__PURE__ */ (0,
|
|
2725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
2726
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons2.TimerIcon, {}),
|
|
2737
2727
|
runningTime
|
|
2738
2728
|
] })
|
|
2739
2729
|
}
|
|
2740
2730
|
)
|
|
2741
2731
|
] }),
|
|
2742
|
-
/* @__PURE__ */ (0,
|
|
2743
|
-
return /* @__PURE__ */ (0,
|
|
2732
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
2733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
2744
2734
|
}) }) }),
|
|
2745
|
-
/* @__PURE__ */ (0,
|
|
2746
|
-
/* @__PURE__ */ (0,
|
|
2747
|
-
/* @__PURE__ */ (0,
|
|
2748
|
-
/* @__PURE__ */ (0,
|
|
2735
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes39.Separator, { size: "4" }),
|
|
2736
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
2737
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
2738
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
2749
2739
|
] })
|
|
2750
2740
|
] })
|
|
2751
2741
|
]
|