@tipp/ui 2.1.32 → 2.1.34
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 +472 -438
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +95 -94
- package/dist/app/platform/coach-question-list.cjs +58 -52
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +39 -38
- package/dist/app/platform/contents-card.cjs +60 -54
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +39 -38
- package/dist/app/platform/curriculum-card.js +11 -11
- package/dist/app/platform/edit-coaching-time.cjs +206 -172
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +73 -72
- package/dist/app/platform/edit-service-type.cjs +197 -163
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +73 -72
- package/dist/app/platform/goal-manage-card-edit.cjs +167 -161
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +73 -72
- package/dist/app/platform/goal-manage-card-read.cjs +99 -93
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +39 -38
- package/dist/app/platform/on-offline-radio-card.cjs +150 -144
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +72 -71
- package/dist/app/platform/report-card.cjs +63 -57
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +39 -38
- package/dist/app/platform/reservation-card.cjs +190 -184
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +73 -72
- package/dist/app/platform/session-card.cjs +260 -226
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +75 -74
- package/dist/app/platform/session-review-simple-read.cjs +61 -55
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +39 -38
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +92 -86
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +41 -40
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +69 -63
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +39 -38
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +72 -66
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +39 -38
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +58 -52
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +38 -37
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +68 -62
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +39 -38
- package/dist/app/platform/userInfos/utils.cjs +60 -54
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +38 -37
- package/dist/atoms/badge.d.cts +1 -1
- package/dist/atoms/badge.d.ts +1 -1
- package/dist/atoms/dialog.cjs +30 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +2 -1
- package/dist/atoms/dialog.d.ts +2 -1
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/drawer.js +2 -2
- package/dist/atoms/index.cjs +143 -78
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +1 -0
- package/dist/atoms/index.d.ts +1 -0
- package/dist/atoms/index.js +89 -83
- package/dist/atoms/list.cjs +144 -0
- package/dist/atoms/list.cjs.map +1 -0
- package/dist/atoms/list.d.cts +22 -0
- package/dist/atoms/list.d.ts +22 -0
- package/dist/atoms/list.js +13 -0
- package/dist/atoms/list.js.map +1 -0
- package/dist/atoms/pagination.js +10 -10
- package/dist/chunk-27IXBDJQ.js +90 -0
- package/dist/chunk-27IXBDJQ.js.map +1 -0
- package/dist/chunk-2JGT2QQW.js +196 -0
- package/dist/chunk-2JGT2QQW.js.map +1 -0
- package/dist/chunk-2OMXOTNW.js +151 -0
- package/dist/chunk-2OMXOTNW.js.map +1 -0
- package/dist/chunk-2RXLA7OV.js +51 -0
- package/dist/chunk-2RXLA7OV.js.map +1 -0
- package/dist/chunk-2TE2EXNX.js +174 -0
- package/dist/chunk-2TE2EXNX.js.map +1 -0
- package/dist/chunk-2VKZQNCV.js +144 -0
- package/dist/chunk-2VKZQNCV.js.map +1 -0
- package/dist/chunk-2VLAXZJK.js +87 -0
- package/dist/chunk-2VLAXZJK.js.map +1 -0
- package/dist/chunk-34KIRC6F.js +63 -0
- package/dist/chunk-34KIRC6F.js.map +1 -0
- package/dist/chunk-35BL2NBL.js +69 -0
- package/dist/chunk-35BL2NBL.js.map +1 -0
- package/dist/chunk-3GRMLPWM.js +37 -0
- package/dist/chunk-3GRMLPWM.js.map +1 -0
- package/dist/chunk-3JMLCMH4.js +64 -0
- package/dist/chunk-3JMLCMH4.js.map +1 -0
- package/dist/chunk-3SK5EPKI.js +47 -0
- package/dist/chunk-3SK5EPKI.js.map +1 -0
- package/dist/chunk-3WOTHG5M.js +37 -0
- package/dist/chunk-3WOTHG5M.js.map +1 -0
- package/dist/chunk-3XFN6H6U.js +165 -0
- package/dist/chunk-3XFN6H6U.js.map +1 -0
- package/dist/chunk-46P3RBWT.js +63 -0
- package/dist/chunk-46P3RBWT.js.map +1 -0
- package/dist/chunk-475ADHCO.js +29 -0
- package/dist/chunk-475ADHCO.js.map +1 -0
- package/dist/chunk-4BUS3FM6.js +61 -0
- package/dist/chunk-4BUS3FM6.js.map +1 -0
- package/dist/chunk-4LAT6AOV.js +363 -0
- package/dist/chunk-4LAT6AOV.js.map +1 -0
- package/dist/chunk-4MFKSSU4.js +49 -0
- package/dist/chunk-4MFKSSU4.js.map +1 -0
- package/dist/chunk-5GIG2AAT.js +54 -0
- package/dist/chunk-5GIG2AAT.js.map +1 -0
- package/dist/chunk-5WDQPEHO.js +169 -0
- package/dist/chunk-5WDQPEHO.js.map +1 -0
- package/dist/chunk-622FYVC5.js +144 -0
- package/dist/chunk-622FYVC5.js.map +1 -0
- package/dist/chunk-62LTE2PQ.js +51 -0
- package/dist/chunk-62LTE2PQ.js.map +1 -0
- package/dist/chunk-654PDCHT.js +196 -0
- package/dist/chunk-654PDCHT.js.map +1 -0
- package/dist/chunk-67J64K4I.js +43 -0
- package/dist/chunk-67J64K4I.js.map +1 -0
- package/dist/chunk-6JHJ4TQD.js +174 -0
- package/dist/chunk-6JHJ4TQD.js.map +1 -0
- package/dist/chunk-6KHZRBOY.js +174 -0
- package/dist/chunk-6KHZRBOY.js.map +1 -0
- package/dist/chunk-6NUSAUJF.js +144 -0
- package/dist/chunk-6NUSAUJF.js.map +1 -0
- package/dist/chunk-6OSTER2K.js +174 -0
- package/dist/chunk-6OSTER2K.js.map +1 -0
- package/dist/chunk-6P3LKZ7P.js +101 -0
- package/dist/chunk-6P3LKZ7P.js.map +1 -0
- package/dist/chunk-6TM7YGPN.js +144 -0
- package/dist/chunk-6TM7YGPN.js.map +1 -0
- package/dist/chunk-6WLTWUH4.js +54 -0
- package/dist/chunk-6WLTWUH4.js.map +1 -0
- package/dist/chunk-7EW7ITLX.js +99 -0
- package/dist/chunk-7EW7ITLX.js.map +1 -0
- package/dist/chunk-7F2CHUVP.js +120 -0
- package/dist/chunk-7F2CHUVP.js.map +1 -0
- package/dist/chunk-7GDYUWXU.js +70 -0
- package/dist/chunk-7GDYUWXU.js.map +1 -0
- package/dist/chunk-7OZICHBX.js +165 -0
- package/dist/chunk-7OZICHBX.js.map +1 -0
- package/dist/chunk-7U2KTBYL.js +127 -0
- package/dist/chunk-7U2KTBYL.js.map +1 -0
- package/dist/chunk-A33C4B6T.js +125 -0
- package/dist/chunk-A33C4B6T.js.map +1 -0
- package/dist/chunk-A5KGOVLX.js +196 -0
- package/dist/chunk-A5KGOVLX.js.map +1 -0
- package/dist/chunk-AGKQ5QOB.js +117 -0
- package/dist/chunk-AGKQ5QOB.js.map +1 -0
- package/dist/chunk-B3N5QFBU.js +196 -0
- package/dist/chunk-B3N5QFBU.js.map +1 -0
- package/dist/chunk-BCR6KNVT.js +49 -0
- package/dist/chunk-BCR6KNVT.js.map +1 -0
- package/dist/chunk-BKBJG6FJ.js +64 -0
- package/dist/chunk-BKBJG6FJ.js.map +1 -0
- package/dist/chunk-BL4EC2PY.js +49 -0
- package/dist/chunk-BL4EC2PY.js.map +1 -0
- package/dist/chunk-C5ZELKPG.js +228 -0
- package/dist/chunk-C5ZELKPG.js.map +1 -0
- package/dist/chunk-CFUPBURD.js +144 -0
- package/dist/chunk-CFUPBURD.js.map +1 -0
- package/dist/chunk-CHMBHKEE.js +54 -0
- package/dist/chunk-CHMBHKEE.js.map +1 -0
- package/dist/chunk-CIGUY6XH.js +89 -0
- package/dist/chunk-CIGUY6XH.js.map +1 -0
- package/dist/chunk-CTFK7YTW.js +61 -0
- package/dist/chunk-CTFK7YTW.js.map +1 -0
- package/dist/chunk-CVRGXNMT.js +135 -0
- package/dist/chunk-CVRGXNMT.js.map +1 -0
- package/dist/chunk-DDRIETGE.js +123 -0
- package/dist/chunk-DDRIETGE.js.map +1 -0
- package/dist/chunk-DXKCSEHL.js +123 -0
- package/dist/chunk-DXKCSEHL.js.map +1 -0
- package/dist/chunk-E2YDBR4K.js +231 -0
- package/dist/chunk-E2YDBR4K.js.map +1 -0
- package/dist/chunk-EIM3P5F3.js +63 -0
- package/dist/chunk-EIM3P5F3.js.map +1 -0
- package/dist/chunk-EIUAHMCS.js +101 -0
- package/dist/chunk-EIUAHMCS.js.map +1 -0
- package/dist/chunk-EJZDHKCG.js +33 -0
- package/dist/chunk-EJZDHKCG.js.map +1 -0
- package/dist/chunk-EN6XRDGV.js +87 -0
- package/dist/chunk-EN6XRDGV.js.map +1 -0
- package/dist/chunk-ESTPXKUX.js +144 -0
- package/dist/chunk-ESTPXKUX.js.map +1 -0
- package/dist/chunk-ETEI6RB7.js +151 -0
- package/dist/chunk-ETEI6RB7.js.map +1 -0
- package/dist/chunk-EVT2JPJF.js +68 -0
- package/dist/chunk-EVT2JPJF.js.map +1 -0
- package/dist/chunk-EYVJ3NYL.js +144 -0
- package/dist/chunk-EYVJ3NYL.js.map +1 -0
- package/dist/chunk-FCSHFW6Y.js +64 -0
- package/dist/chunk-FCSHFW6Y.js.map +1 -0
- package/dist/chunk-FJNAWOWU.js +49 -0
- package/dist/chunk-FJNAWOWU.js.map +1 -0
- package/dist/chunk-FK4XGWN3.js +101 -0
- package/dist/chunk-FK4XGWN3.js.map +1 -0
- package/dist/chunk-FL76HE2W.js +70 -0
- package/dist/chunk-FL76HE2W.js.map +1 -0
- package/dist/chunk-FM6GARAX.js +54 -0
- package/dist/chunk-FM6GARAX.js.map +1 -0
- package/dist/chunk-FOVALDGG.js +144 -0
- package/dist/chunk-FOVALDGG.js.map +1 -0
- package/dist/chunk-FU6AFL6I.js +145 -0
- package/dist/chunk-FU6AFL6I.js.map +1 -0
- package/dist/chunk-G4VJMH6W.js +89 -0
- package/dist/chunk-G4VJMH6W.js.map +1 -0
- package/dist/chunk-GB67H6CZ.js +30 -0
- package/dist/chunk-GB67H6CZ.js.map +1 -0
- package/dist/chunk-GH53QZCU.js +231 -0
- package/dist/chunk-GH53QZCU.js.map +1 -0
- package/dist/chunk-GKJAOG66.js +174 -0
- package/dist/chunk-GKJAOG66.js.map +1 -0
- package/dist/chunk-GP6PSLJ6.js +144 -0
- package/dist/chunk-GP6PSLJ6.js.map +1 -0
- package/dist/chunk-GPLLJ4CH.js +192 -0
- package/dist/chunk-GPLLJ4CH.js.map +1 -0
- package/dist/chunk-H5UXVAZZ.js +87 -0
- package/dist/chunk-H5UXVAZZ.js.map +1 -0
- package/dist/chunk-HBF6IIVZ.js +1 -0
- package/dist/chunk-HBF6IIVZ.js.map +1 -0
- package/dist/chunk-HBZ5QXXB.js +79 -0
- package/dist/chunk-HBZ5QXXB.js.map +1 -0
- package/dist/chunk-HISC62OE.js +64 -0
- package/dist/chunk-HISC62OE.js.map +1 -0
- package/dist/chunk-HOBCE62P.js +44 -0
- package/dist/chunk-HOBCE62P.js.map +1 -0
- package/dist/chunk-HPZI64PT.js +54 -0
- package/dist/chunk-HPZI64PT.js.map +1 -0
- package/dist/chunk-HYMVCRWV.js +101 -0
- package/dist/chunk-HYMVCRWV.js.map +1 -0
- package/dist/chunk-I5UATPSZ.js +196 -0
- package/dist/chunk-I5UATPSZ.js.map +1 -0
- package/dist/chunk-IDEUPXIR.js +29 -0
- package/dist/chunk-IDEUPXIR.js.map +1 -0
- package/dist/chunk-IGFQAHJL.js +228 -0
- package/dist/chunk-IGFQAHJL.js.map +1 -0
- package/dist/chunk-IP7FQWAX.js +123 -0
- package/dist/chunk-IP7FQWAX.js.map +1 -0
- package/dist/chunk-ITJ2PYOE.js +135 -0
- package/dist/chunk-ITJ2PYOE.js.map +1 -0
- package/dist/chunk-J3XSSNRH.js +151 -0
- package/dist/chunk-J3XSSNRH.js.map +1 -0
- package/dist/chunk-J4SNIRT4.js +64 -0
- package/dist/chunk-J4SNIRT4.js.map +1 -0
- package/dist/chunk-JOSRDNQN.js +174 -0
- package/dist/chunk-JOSRDNQN.js.map +1 -0
- package/dist/chunk-K7CSSGBZ.js +69 -0
- package/dist/chunk-K7CSSGBZ.js.map +1 -0
- package/dist/chunk-KCGJ23AA.js +64 -0
- package/dist/chunk-KCGJ23AA.js.map +1 -0
- package/dist/chunk-KG5UMPMF.js +63 -0
- package/dist/chunk-KG5UMPMF.js.map +1 -0
- package/dist/chunk-KQNWWP5M.js +105 -0
- package/dist/chunk-KQNWWP5M.js.map +1 -0
- package/dist/chunk-KRQ2VPG4.js +117 -0
- package/dist/chunk-KRQ2VPG4.js.map +1 -0
- package/dist/chunk-L34XD255.js +54 -0
- package/dist/chunk-L34XD255.js.map +1 -0
- package/dist/chunk-L7MYSONR.js +196 -0
- package/dist/chunk-L7MYSONR.js.map +1 -0
- package/dist/chunk-LERP3GK2.js +145 -0
- package/dist/chunk-LERP3GK2.js.map +1 -0
- package/dist/chunk-M74YR6B2.js +174 -0
- package/dist/chunk-M74YR6B2.js.map +1 -0
- package/dist/chunk-MLT6OPXG.js +64 -0
- package/dist/chunk-MLT6OPXG.js.map +1 -0
- package/dist/chunk-MS2GLWHY.js +87 -0
- package/dist/chunk-MS2GLWHY.js.map +1 -0
- package/dist/chunk-MUHVMLDB.js +90 -0
- package/dist/chunk-MUHVMLDB.js.map +1 -0
- package/dist/chunk-N4EY6LEK.js +192 -0
- package/dist/chunk-N4EY6LEK.js.map +1 -0
- package/dist/chunk-NFGSIVXS.js +64 -0
- package/dist/chunk-NFGSIVXS.js.map +1 -0
- package/dist/chunk-NIGZA3RF.js +54 -0
- package/dist/chunk-NIGZA3RF.js.map +1 -0
- package/dist/chunk-NJRMOYV5.js +64 -0
- package/dist/chunk-NJRMOYV5.js.map +1 -0
- package/dist/chunk-NPEPCI7G.js +61 -0
- package/dist/chunk-NPEPCI7G.js.map +1 -0
- package/dist/chunk-NVUBDEA4.js +43 -0
- package/dist/chunk-NVUBDEA4.js.map +1 -0
- package/dist/chunk-O45V4P7P.js +89 -0
- package/dist/chunk-O45V4P7P.js.map +1 -0
- package/dist/chunk-O4LYVHQM.js +144 -0
- package/dist/chunk-O4LYVHQM.js.map +1 -0
- package/dist/chunk-O5NVFJKP.js +54 -0
- package/dist/chunk-O5NVFJKP.js.map +1 -0
- package/dist/chunk-ODCUQK4E.js +174 -0
- package/dist/chunk-ODCUQK4E.js.map +1 -0
- package/dist/chunk-OJVKGD4K.js +69 -0
- package/dist/chunk-OJVKGD4K.js.map +1 -0
- package/dist/chunk-OOL7ILBR.js +33 -0
- package/dist/chunk-OOL7ILBR.js.map +1 -0
- package/dist/chunk-OX2FAMRT.js +89 -0
- package/dist/chunk-OX2FAMRT.js.map +1 -0
- package/dist/chunk-OXBD23TL.js +70 -0
- package/dist/chunk-OXBD23TL.js.map +1 -0
- package/dist/chunk-OY7GKEXW.js +37 -0
- package/dist/chunk-OY7GKEXW.js.map +1 -0
- package/dist/chunk-P7HKZJMH.js +196 -0
- package/dist/chunk-P7HKZJMH.js.map +1 -0
- package/dist/chunk-PJMOTDUQ.js +64 -0
- package/dist/chunk-PJMOTDUQ.js.map +1 -0
- package/dist/chunk-PQLG7NGM.js +145 -0
- package/dist/chunk-PQLG7NGM.js.map +1 -0
- package/dist/chunk-PX4CZC22.js +64 -0
- package/dist/chunk-PX4CZC22.js.map +1 -0
- package/dist/chunk-Q2PKN5WG.js +363 -0
- package/dist/chunk-Q2PKN5WG.js.map +1 -0
- package/dist/chunk-QDTJUKKO.js +29 -0
- package/dist/chunk-QDTJUKKO.js.map +1 -0
- package/dist/chunk-QEFBVVFO.js +127 -0
- package/dist/chunk-QEFBVVFO.js.map +1 -0
- package/dist/chunk-QW7JJGPV.js +37 -0
- package/dist/chunk-QW7JJGPV.js.map +1 -0
- package/dist/chunk-QY66Y3EJ.js +363 -0
- package/dist/chunk-QY66Y3EJ.js.map +1 -0
- package/dist/chunk-RCYIIMS3.js +196 -0
- package/dist/chunk-RCYIIMS3.js.map +1 -0
- package/dist/chunk-RJ4UB3J7.js +136 -0
- package/dist/chunk-RJ4UB3J7.js.map +1 -0
- package/dist/chunk-RJGVWB6N.js +64 -0
- package/dist/chunk-RJGVWB6N.js.map +1 -0
- package/dist/chunk-RQ5OU57M.js +99 -0
- package/dist/chunk-RQ5OU57M.js.map +1 -0
- package/dist/chunk-SNACTIHC.js +196 -0
- package/dist/chunk-SNACTIHC.js.map +1 -0
- package/dist/chunk-SO444K26.js +196 -0
- package/dist/chunk-SO444K26.js.map +1 -0
- package/dist/chunk-SSGC3C5T.js +69 -0
- package/dist/chunk-SSGC3C5T.js.map +1 -0
- package/dist/chunk-SWVTBAWM.js +26 -0
- package/dist/chunk-SWVTBAWM.js.map +1 -0
- package/dist/chunk-T4VFQNKS.js +196 -0
- package/dist/chunk-T4VFQNKS.js.map +1 -0
- package/dist/chunk-TFIRB3XY.js +196 -0
- package/dist/chunk-TFIRB3XY.js.map +1 -0
- package/dist/chunk-TVQ5B56X.js +64 -0
- package/dist/chunk-TVQ5B56X.js.map +1 -0
- package/dist/chunk-U6FL2JKD.js +63 -0
- package/dist/chunk-U6FL2JKD.js.map +1 -0
- package/dist/chunk-UC5L5RY7.js +63 -0
- package/dist/chunk-UC5L5RY7.js.map +1 -0
- package/dist/chunk-UQKHEGJH.js +63 -0
- package/dist/chunk-UQKHEGJH.js.map +1 -0
- package/dist/chunk-UZWE2VAP.js +105 -0
- package/dist/chunk-UZWE2VAP.js.map +1 -0
- package/dist/chunk-V6CMKNK2.js +63 -0
- package/dist/chunk-V6CMKNK2.js.map +1 -0
- package/dist/chunk-VC64LH4X.js +151 -0
- package/dist/chunk-VC64LH4X.js.map +1 -0
- package/dist/chunk-VN2JWNYC.js +101 -0
- package/dist/chunk-VN2JWNYC.js.map +1 -0
- package/dist/chunk-VOGIASD5.js +12 -0
- package/dist/chunk-VOGIASD5.js.map +1 -0
- package/dist/chunk-VQXFU7H5.js +39 -0
- package/dist/chunk-VQXFU7H5.js.map +1 -0
- package/dist/chunk-W2ILD6TB.js +105 -0
- package/dist/chunk-W2ILD6TB.js.map +1 -0
- package/dist/chunk-WJUTX4PL.js +151 -0
- package/dist/chunk-WJUTX4PL.js.map +1 -0
- package/dist/chunk-WKVEMGCB.js +68 -0
- package/dist/chunk-WKVEMGCB.js.map +1 -0
- package/dist/chunk-X2OE3M2Z.js +63 -0
- package/dist/chunk-X2OE3M2Z.js.map +1 -0
- package/dist/chunk-XFL7MIQ3.js +174 -0
- package/dist/chunk-XFL7MIQ3.js.map +1 -0
- package/dist/chunk-XHLO7WZC.js +51 -0
- package/dist/chunk-XHLO7WZC.js.map +1 -0
- package/dist/chunk-Y27RDJBU.js +54 -0
- package/dist/chunk-Y27RDJBU.js.map +1 -0
- package/dist/chunk-YBI4D4S2.js +44 -0
- package/dist/chunk-YBI4D4S2.js.map +1 -0
- package/dist/chunk-YMZ3JQMA.js +87 -0
- package/dist/chunk-YMZ3JQMA.js.map +1 -0
- package/dist/chunk-YSCMLGQQ.js +43 -0
- package/dist/chunk-YSCMLGQQ.js.map +1 -0
- package/dist/chunk-YZZNPVHA.js +101 -0
- package/dist/chunk-YZZNPVHA.js.map +1 -0
- package/dist/chunk-Z5SX6G37.js +79 -0
- package/dist/chunk-Z5SX6G37.js.map +1 -0
- package/dist/chunk-ZDBULVVQ.js +228 -0
- package/dist/chunk-ZDBULVVQ.js.map +1 -0
- package/dist/chunk-ZMSM3NG6.js +163 -0
- package/dist/chunk-ZMSM3NG6.js.map +1 -0
- package/dist/chunk-ZW4PTCEW.js +69 -0
- package/dist/chunk-ZW4PTCEW.js.map +1 -0
- package/dist/chunk-ZYCBLMCB.js +89 -0
- package/dist/chunk-ZYCBLMCB.js.map +1 -0
- package/dist/chunk-ZYX72AYO.js +74 -0
- package/dist/chunk-ZYX72AYO.js.map +1 -0
- package/dist/icon.js +15 -15
- package/dist/icons/index.js +15 -15
- package/dist/index.cjs +898 -833
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +20 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +177 -171
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +142 -136
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +47 -46
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +58 -52
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +40 -39
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +108 -102
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +45 -44
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +61 -55
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +38 -37
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +63 -57
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +38 -37
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs +61 -55
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +39 -38
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +84 -78
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +41 -40
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +62 -56
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +41 -40
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +62 -56
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +41 -40
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +69 -63
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +41 -40
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +69 -63
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +39 -38
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +178 -172
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +50 -49
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +77 -71
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +40 -39
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +64 -58
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +39 -38
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +266 -232
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +51 -50
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +59 -53
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +38 -37
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +289 -255
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +54 -53
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +56 -50
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +38 -37
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs +55 -49
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.js +39 -38
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +60 -54
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +40 -39
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +56 -50
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +38 -37
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +82 -76
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +43 -42
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +71 -65
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +42 -41
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +71 -65
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +39 -38
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs +60 -54
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +39 -38
- package/dist/molecules/curriculumV2/index.cjs +334 -300
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +62 -61
- package/dist/molecules/date-picker/date-picker-button.cjs +82 -76
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +40 -39
- package/dist/molecules/date-picker/index.cjs +74 -68
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +39 -38
- package/dist/molecules/expand-table/index.cjs +100 -94
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +39 -38
- package/dist/molecules/expand-table/row.cjs +66 -60
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +38 -37
- package/dist/molecules/ghost-post.js +3 -3
- package/dist/molecules/index.cjs +578 -544
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +88 -87
- package/dist/molecules/learning-post.js +5 -5
- package/dist/molecules/navigation.cjs +58 -52
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +39 -38
- package/dist/molecules/radio-button-card.cjs +62 -56
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +38 -37
- package/dist/molecules/stepper.js +9 -9
- package/dist/molecules/tag-selector.cjs +96 -90
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +39 -38
- package/dist/molecules/time-select.cjs +60 -54
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +39 -38
- package/dist/utils/curriculum.utils.js +6 -6
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
- package/src/atoms/dialog.tsx +46 -3
- package/src/atoms/index.ts +1 -0
- package/src/atoms/list.tsx +61 -0
package/dist/index.cjs
CHANGED
|
@@ -170,6 +170,7 @@ __export(index_exports, {
|
|
|
170
170
|
LearningPost: () => LearningPost,
|
|
171
171
|
Link: () => Link,
|
|
172
172
|
Link2Icon: () => import_react_icons2.Link2Icon,
|
|
173
|
+
List: () => List,
|
|
173
174
|
MagnifyingGlassIcon: () => import_react_icons2.MagnifyingGlassIcon,
|
|
174
175
|
MicIcon: () => MicIcon,
|
|
175
176
|
MixerHorizontalIcon: () => import_react_icons2.MixerHorizontalIcon,
|
|
@@ -197,7 +198,7 @@ __export(index_exports, {
|
|
|
197
198
|
ReservationCard: () => ReservationCard,
|
|
198
199
|
ResetIcon: () => import_react_icons2.ResetIcon,
|
|
199
200
|
RocketIcon: () => import_react_icons2.RocketIcon,
|
|
200
|
-
Root: () =>
|
|
201
|
+
Root: () => Root7,
|
|
201
202
|
RowsIcon: () => import_react_icons2.RowsIcon,
|
|
202
203
|
ScrollArea: () => import_themes35.ScrollArea,
|
|
203
204
|
Section: () => import_themes36.Section,
|
|
@@ -246,6 +247,7 @@ __export(index_exports, {
|
|
|
246
247
|
toast: () => import_react_toastify2.toast,
|
|
247
248
|
uiProps: () => uiProps,
|
|
248
249
|
useCurriculumContext: () => useCurriculumContext,
|
|
250
|
+
useList: () => useList,
|
|
249
251
|
usePortalContainer: () => usePortalContainer,
|
|
250
252
|
useThemeContext: () => import_themes53.useThemeContext
|
|
251
253
|
});
|
|
@@ -505,6 +507,7 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
505
507
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
506
508
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
507
509
|
var import_themes19 = require("@radix-ui/themes");
|
|
510
|
+
var import_react9 = require("react");
|
|
508
511
|
|
|
509
512
|
// src/theme/portal-provider.tsx
|
|
510
513
|
var import_react7 = require("react");
|
|
@@ -662,8 +665,36 @@ function Trigger2(_a) {
|
|
|
662
665
|
]);
|
|
663
666
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
664
667
|
}
|
|
668
|
+
function Root3(props) {
|
|
669
|
+
const prevOpenRef = (0, import_react9.useRef)(void 0);
|
|
670
|
+
const cleanupExecutedRef = (0, import_react9.useRef)(false);
|
|
671
|
+
(0, import_react9.useEffect)(() => {
|
|
672
|
+
const prevOpen = prevOpenRef.current;
|
|
673
|
+
const currentOpen = props.open;
|
|
674
|
+
if (prevOpen === true && currentOpen === false && !cleanupExecutedRef.current) {
|
|
675
|
+
cleanupExecutedRef.current = true;
|
|
676
|
+
const timer = setTimeout(() => {
|
|
677
|
+
var _a;
|
|
678
|
+
try {
|
|
679
|
+
const activeElement = document.activeElement;
|
|
680
|
+
(_a = activeElement == null ? void 0 : activeElement.blur) == null ? void 0 : _a.call(activeElement);
|
|
681
|
+
document.body.style.pointerEvents = "";
|
|
682
|
+
} catch (e) {
|
|
683
|
+
} finally {
|
|
684
|
+
cleanupExecutedRef.current = false;
|
|
685
|
+
}
|
|
686
|
+
}, 100);
|
|
687
|
+
return () => {
|
|
688
|
+
clearTimeout(timer);
|
|
689
|
+
cleanupExecutedRef.current = false;
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
prevOpenRef.current = currentOpen;
|
|
693
|
+
}, [props.open]);
|
|
694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Root, __spreadValues({}, props));
|
|
695
|
+
}
|
|
665
696
|
var Dialog = {
|
|
666
|
-
Root:
|
|
697
|
+
Root: Root3,
|
|
667
698
|
Trigger: Trigger2,
|
|
668
699
|
Content: Content2,
|
|
669
700
|
Close: Close2,
|
|
@@ -673,11 +704,11 @@ var Dialog = {
|
|
|
673
704
|
|
|
674
705
|
// src/atoms/dropdown-menu.tsx
|
|
675
706
|
var import_themes20 = require("@radix-ui/themes");
|
|
676
|
-
var
|
|
707
|
+
var import_react10 = require("react");
|
|
677
708
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
678
|
-
var Content3 = (0,
|
|
709
|
+
var Content3 = (0, import_react10.forwardRef)((props, ref) => {
|
|
679
710
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
680
|
-
const contentClassName = (0,
|
|
711
|
+
const contentClassName = (0, import_react10.useMemo)(() => {
|
|
681
712
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
682
713
|
return [cls, className].join(" ");
|
|
683
714
|
}, [isNavigation, className]);
|
|
@@ -715,12 +746,12 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
715
746
|
|
|
716
747
|
// src/atoms/link.tsx
|
|
717
748
|
var import_themes27 = require("@radix-ui/themes");
|
|
718
|
-
var
|
|
749
|
+
var import_react11 = require("react");
|
|
719
750
|
var import_themes28 = require("@radix-ui/themes");
|
|
720
751
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
721
752
|
function Link(props) {
|
|
722
753
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
723
|
-
const radixSize = (0,
|
|
754
|
+
const radixSize = (0, import_react11.useMemo)(() => {
|
|
724
755
|
switch (variant) {
|
|
725
756
|
case "caption":
|
|
726
757
|
return "1";
|
|
@@ -764,15 +795,15 @@ var import_themes37 = require("@radix-ui/themes");
|
|
|
764
795
|
|
|
765
796
|
// src/atoms/select.tsx
|
|
766
797
|
var import_themes38 = require("@radix-ui/themes");
|
|
767
|
-
var
|
|
798
|
+
var import_react12 = require("react");
|
|
768
799
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
769
|
-
var SelectContext = (0,
|
|
800
|
+
var SelectContext = (0, import_react12.createContext)({
|
|
770
801
|
error: false
|
|
771
802
|
});
|
|
772
|
-
var Content4 = (0,
|
|
803
|
+
var Content4 = (0, import_react12.forwardRef)((props, ref) => {
|
|
773
804
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
774
|
-
const { error } = (0,
|
|
775
|
-
const cls = (0,
|
|
805
|
+
const { error } = (0, import_react12.useContext)(SelectContext);
|
|
806
|
+
const cls = (0, import_react12.useMemo)(() => {
|
|
776
807
|
const etc = isNavigation ? "nav-select" : "";
|
|
777
808
|
const errorCls = error ? "tipp-error" : "";
|
|
778
809
|
return [etc, errorCls, className].join(" ");
|
|
@@ -788,11 +819,11 @@ var Content4 = (0, import_react11.forwardRef)((props, ref) => {
|
|
|
788
819
|
);
|
|
789
820
|
});
|
|
790
821
|
Content4.displayName = "Select.Content";
|
|
791
|
-
var Trigger3 = (0,
|
|
822
|
+
var Trigger3 = (0, import_react12.forwardRef)(
|
|
792
823
|
(props, ref) => {
|
|
793
824
|
const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
|
|
794
|
-
const { error } = (0,
|
|
795
|
-
const cls = (0,
|
|
825
|
+
const { error } = (0, import_react12.useContext)(SelectContext);
|
|
826
|
+
const cls = (0, import_react12.useMemo)(() => {
|
|
796
827
|
const errorCls = error ? "error" : "";
|
|
797
828
|
return [errorCls, className].join(" ");
|
|
798
829
|
}, [className, error]);
|
|
@@ -800,13 +831,13 @@ var Trigger3 = (0, import_react11.forwardRef)(
|
|
|
800
831
|
}
|
|
801
832
|
);
|
|
802
833
|
Trigger3.displayName = "Select.Trigger";
|
|
803
|
-
function
|
|
834
|
+
function Root4(props) {
|
|
804
835
|
const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
|
|
805
836
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes38.Select.Root, __spreadValues({}, rest)) });
|
|
806
837
|
}
|
|
807
|
-
|
|
838
|
+
Root4.displayName = "Select.Root";
|
|
808
839
|
var Select = __spreadProps(__spreadValues({}, import_themes38.Select), {
|
|
809
|
-
Root:
|
|
840
|
+
Root: Root4,
|
|
810
841
|
Trigger: Trigger3,
|
|
811
842
|
Content: Content4
|
|
812
843
|
});
|
|
@@ -831,12 +862,12 @@ var import_themes44 = require("@radix-ui/themes");
|
|
|
831
862
|
|
|
832
863
|
// src/atoms/text-area.tsx
|
|
833
864
|
var import_themes45 = require("@radix-ui/themes");
|
|
834
|
-
var
|
|
865
|
+
var import_react13 = require("react");
|
|
835
866
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
836
|
-
var TextArea = (0,
|
|
867
|
+
var TextArea = (0, import_react13.forwardRef)(
|
|
837
868
|
(props, ref) => {
|
|
838
869
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
839
|
-
const fieldStyle = (0,
|
|
870
|
+
const fieldStyle = (0, import_react13.useMemo)(() => {
|
|
840
871
|
if (!error) return style;
|
|
841
872
|
const errorStyle = {
|
|
842
873
|
boxShadow: "inset 0 0 0 var(--text-area-border-width) var(--error-11)"
|
|
@@ -858,12 +889,12 @@ TextArea.displayName = "TextArea";
|
|
|
858
889
|
|
|
859
890
|
// src/atoms/typo.tsx
|
|
860
891
|
var import_themes46 = require("@radix-ui/themes");
|
|
861
|
-
var
|
|
892
|
+
var import_react14 = require("react");
|
|
862
893
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
863
|
-
var Typo = (0,
|
|
894
|
+
var Typo = (0, import_react14.forwardRef)(
|
|
864
895
|
(props, ref) => {
|
|
865
896
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
866
|
-
const radixSize = (0,
|
|
897
|
+
const radixSize = (0, import_react14.useMemo)(() => {
|
|
867
898
|
if (size !== void 0) return size;
|
|
868
899
|
if (variant === void 0) return "2";
|
|
869
900
|
return mapWithResponsive({
|
|
@@ -888,11 +919,11 @@ Typo.displayName = "Typo";
|
|
|
888
919
|
|
|
889
920
|
// src/atoms/text-field.tsx
|
|
890
921
|
var import_themes47 = require("@radix-ui/themes");
|
|
891
|
-
var
|
|
922
|
+
var import_react15 = require("react");
|
|
892
923
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
893
|
-
var
|
|
924
|
+
var Root5 = (0, import_react15.forwardRef)((props, ref) => {
|
|
894
925
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
895
|
-
const fieldStyle = (0,
|
|
926
|
+
const fieldStyle = (0, import_react15.useMemo)(() => {
|
|
896
927
|
if (!error) return style;
|
|
897
928
|
const errorStyle = {
|
|
898
929
|
boxShadow: "inset 0 0 0 var(--text-field-border-width) var(--error-11)"
|
|
@@ -909,26 +940,26 @@ var Root4 = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
909
940
|
}, rest)
|
|
910
941
|
);
|
|
911
942
|
});
|
|
912
|
-
|
|
913
|
-
var TextField = { Root:
|
|
943
|
+
Root5.displayName = "TextField.Root";
|
|
944
|
+
var TextField = { Root: Root5, Slot: import_themes47.TextField.Slot };
|
|
914
945
|
|
|
915
946
|
// src/atoms/tooltip.tsx
|
|
916
947
|
var import_themes48 = require("@radix-ui/themes");
|
|
917
948
|
|
|
918
949
|
// src/atoms/collapse.tsx
|
|
919
|
-
var
|
|
950
|
+
var import_react16 = require("react");
|
|
920
951
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
921
952
|
function Collapse(props) {
|
|
922
953
|
const { children, closedHeight = "0" } = props;
|
|
923
|
-
const [open, setOpen] = (0,
|
|
954
|
+
const [open, setOpen] = (0, import_react16.useState)(() => {
|
|
924
955
|
return props.open || props.defaultOpen || false;
|
|
925
956
|
});
|
|
926
|
-
(0,
|
|
957
|
+
(0, import_react16.useEffect)(() => {
|
|
927
958
|
if (props.open === void 0) return;
|
|
928
959
|
setOpen(props.open);
|
|
929
960
|
}, [props.open]);
|
|
930
|
-
const ref = (0,
|
|
931
|
-
(0,
|
|
961
|
+
const ref = (0, import_react16.useRef)(null);
|
|
962
|
+
(0, import_react16.useEffect)(() => {
|
|
932
963
|
if (!ref.current) return;
|
|
933
964
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
934
965
|
}, [closedHeight, open]);
|
|
@@ -939,7 +970,7 @@ function Collapse(props) {
|
|
|
939
970
|
var import_themes49 = require("@radix-ui/themes");
|
|
940
971
|
|
|
941
972
|
// src/atoms/pagination.tsx
|
|
942
|
-
var
|
|
973
|
+
var import_react17 = require("react");
|
|
943
974
|
|
|
944
975
|
// src/icon.ts
|
|
945
976
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
@@ -1429,8 +1460,8 @@ CircleChatIcon.displayName = "CircleChatIcon";
|
|
|
1429
1460
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1430
1461
|
function Pagination(props) {
|
|
1431
1462
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
1432
|
-
const [page, setPage] = (0,
|
|
1433
|
-
const visibleItems = (0,
|
|
1463
|
+
const [page, setPage] = (0, import_react17.useState)(() => props.page || props.defaultPage || 1);
|
|
1464
|
+
const visibleItems = (0, import_react17.useMemo)(() => {
|
|
1434
1465
|
let start = Math.max(1, page - siblingCount);
|
|
1435
1466
|
let end = Math.min(count, page + siblingCount);
|
|
1436
1467
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -1440,42 +1471,42 @@ function Pagination(props) {
|
|
|
1440
1471
|
}
|
|
1441
1472
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
1442
1473
|
}, [count, page, siblingCount]);
|
|
1443
|
-
(0,
|
|
1474
|
+
(0, import_react17.useEffect)(() => {
|
|
1444
1475
|
onChange == null ? void 0 : onChange(page);
|
|
1445
1476
|
}, [onChange, page]);
|
|
1446
|
-
(0,
|
|
1477
|
+
(0, import_react17.useEffect)(() => {
|
|
1447
1478
|
if (props.page) {
|
|
1448
1479
|
setPage(props.page);
|
|
1449
1480
|
}
|
|
1450
1481
|
}, [props.page]);
|
|
1451
|
-
const prev = (0,
|
|
1482
|
+
const prev = (0, import_react17.useMemo)(() => {
|
|
1452
1483
|
const p = page - 1;
|
|
1453
1484
|
return p < 1 ? void 0 : p;
|
|
1454
1485
|
}, [page]);
|
|
1455
|
-
const next = (0,
|
|
1486
|
+
const next = (0, import_react17.useMemo)(() => {
|
|
1456
1487
|
const n = page + 1;
|
|
1457
1488
|
return n > count ? void 0 : n;
|
|
1458
1489
|
}, [count, page]);
|
|
1459
|
-
const onClickPrev = (0,
|
|
1490
|
+
const onClickPrev = (0, import_react17.useCallback)(() => {
|
|
1460
1491
|
prev && setPage(prev);
|
|
1461
1492
|
}, [prev]);
|
|
1462
|
-
const onClickNext = (0,
|
|
1493
|
+
const onClickNext = (0, import_react17.useCallback)(() => {
|
|
1463
1494
|
next && setPage(next);
|
|
1464
1495
|
}, [next]);
|
|
1465
|
-
const doublePrev = (0,
|
|
1496
|
+
const doublePrev = (0, import_react17.useMemo)(() => {
|
|
1466
1497
|
if (!visibleItems.length) return;
|
|
1467
1498
|
return Math.max(0, visibleItems[0] - 1);
|
|
1468
1499
|
}, [visibleItems]);
|
|
1469
|
-
const onClickDoublePrev = (0,
|
|
1500
|
+
const onClickDoublePrev = (0, import_react17.useCallback)(() => {
|
|
1470
1501
|
doublePrev && setPage(doublePrev);
|
|
1471
1502
|
}, [doublePrev]);
|
|
1472
|
-
const doubleNext = (0,
|
|
1503
|
+
const doubleNext = (0, import_react17.useMemo)(() => {
|
|
1473
1504
|
if (!visibleItems.length) return;
|
|
1474
1505
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
1475
1506
|
if (n > count) return;
|
|
1476
1507
|
return Math.min(count, n);
|
|
1477
1508
|
}, [count, visibleItems]);
|
|
1478
|
-
const onClickDoubleNext = (0,
|
|
1509
|
+
const onClickDoubleNext = (0, import_react17.useCallback)(() => {
|
|
1479
1510
|
doubleNext && setPage(doubleNext);
|
|
1480
1511
|
}, [doubleNext]);
|
|
1481
1512
|
const iconSize = {
|
|
@@ -1538,15 +1569,15 @@ function FieldErrorWrapper({
|
|
|
1538
1569
|
}
|
|
1539
1570
|
|
|
1540
1571
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1541
|
-
var
|
|
1572
|
+
var import_react18 = require("react");
|
|
1542
1573
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1543
1574
|
function EllipsisTooltip(props) {
|
|
1544
1575
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
1545
|
-
const ref = (0,
|
|
1546
|
-
const [tooltipDisplay, setTooltipDisplay] = (0,
|
|
1576
|
+
const ref = (0, import_react18.useRef)(null);
|
|
1577
|
+
const [tooltipDisplay, setTooltipDisplay] = (0, import_react18.useState)(
|
|
1547
1578
|
"none"
|
|
1548
1579
|
);
|
|
1549
|
-
(0,
|
|
1580
|
+
(0, import_react18.useEffect)(() => {
|
|
1550
1581
|
if (ref.current) {
|
|
1551
1582
|
const typo = ref.current;
|
|
1552
1583
|
const mouseOver = () => {
|
|
@@ -1627,7 +1658,7 @@ ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
|
1627
1658
|
|
|
1628
1659
|
// src/atoms/drawer.tsx
|
|
1629
1660
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1630
|
-
function
|
|
1661
|
+
function Root7(props) {
|
|
1631
1662
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
1632
1663
|
}
|
|
1633
1664
|
var preventDefault2 = (e) => {
|
|
@@ -1726,9 +1757,9 @@ function ToastContainer(props) {
|
|
|
1726
1757
|
|
|
1727
1758
|
// src/molecules/form/form.tsx
|
|
1728
1759
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1729
|
-
var
|
|
1760
|
+
var import_react19 = require("react");
|
|
1730
1761
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1731
|
-
var
|
|
1762
|
+
var Root9 = (0, import_react19.forwardRef)(
|
|
1732
1763
|
(_a, ref) => {
|
|
1733
1764
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1734
1765
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1741,11 +1772,11 @@ var Root8 = (0, import_react18.forwardRef)(
|
|
|
1741
1772
|
);
|
|
1742
1773
|
}
|
|
1743
1774
|
);
|
|
1744
|
-
|
|
1745
|
-
var FieldContext = (0,
|
|
1775
|
+
Root9.displayName = "FORM_ROOT";
|
|
1776
|
+
var FieldContext = (0, import_react19.createContext)({
|
|
1746
1777
|
name: ""
|
|
1747
1778
|
});
|
|
1748
|
-
var Field2 = (0,
|
|
1779
|
+
var Field2 = (0, import_react19.forwardRef)(
|
|
1749
1780
|
(_a, ref) => {
|
|
1750
1781
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1751
1782
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1765,10 +1796,10 @@ function HeadingLabel(props) {
|
|
|
1765
1796
|
function CaptionLabel(props) {
|
|
1766
1797
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1767
1798
|
}
|
|
1768
|
-
var Label2 = (0,
|
|
1799
|
+
var Label2 = (0, import_react19.forwardRef)(
|
|
1769
1800
|
(_a, ref) => {
|
|
1770
1801
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
1771
|
-
const Comp = (0,
|
|
1802
|
+
const Comp = (0, import_react19.useMemo)(() => {
|
|
1772
1803
|
switch (variant) {
|
|
1773
1804
|
case "title":
|
|
1774
1805
|
return HeadingLabel;
|
|
@@ -1779,7 +1810,7 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1779
1810
|
return Typo;
|
|
1780
1811
|
}
|
|
1781
1812
|
}, [variant]);
|
|
1782
|
-
const fieldProps = (0,
|
|
1813
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1783
1814
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1784
1815
|
RadixForm.Label,
|
|
1785
1816
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -1795,7 +1826,7 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1795
1826
|
}
|
|
1796
1827
|
);
|
|
1797
1828
|
Label2.displayName = "FORM_Label";
|
|
1798
|
-
var Message2 = (0,
|
|
1829
|
+
var Message2 = (0, import_react19.forwardRef)(
|
|
1799
1830
|
(_a, ref) => {
|
|
1800
1831
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1801
1832
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1810,10 +1841,10 @@ var Message2 = (0, import_react18.forwardRef)(
|
|
|
1810
1841
|
}
|
|
1811
1842
|
);
|
|
1812
1843
|
Message2.displayName = "FORM_Message";
|
|
1813
|
-
var Control2 = (0,
|
|
1844
|
+
var Control2 = (0, import_react19.forwardRef)(
|
|
1814
1845
|
(_a, ref) => {
|
|
1815
1846
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1816
|
-
const fieldProps = (0,
|
|
1847
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1817
1848
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1818
1849
|
RadixForm.Control,
|
|
1819
1850
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -1844,7 +1875,7 @@ function FormItem(_a) {
|
|
|
1844
1875
|
] }));
|
|
1845
1876
|
}
|
|
1846
1877
|
var Form = {
|
|
1847
|
-
Root:
|
|
1878
|
+
Root: Root9,
|
|
1848
1879
|
Field: Field2,
|
|
1849
1880
|
Label: Label2,
|
|
1850
1881
|
Message: Message2,
|
|
@@ -1854,39 +1885,39 @@ var Form = {
|
|
|
1854
1885
|
};
|
|
1855
1886
|
|
|
1856
1887
|
// src/atoms/auto-sizing-input.tsx
|
|
1857
|
-
var
|
|
1888
|
+
var import_react20 = require("react");
|
|
1858
1889
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1859
|
-
var AutoSizingInput = (0,
|
|
1890
|
+
var AutoSizingInput = (0, import_react20.forwardRef)(
|
|
1860
1891
|
(_a, ref) => {
|
|
1861
1892
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
1862
|
-
const [value, setValue] = (0,
|
|
1863
|
-
const [width, setWidth] = (0,
|
|
1864
|
-
const span = (0,
|
|
1865
|
-
const defaultRef = (0,
|
|
1893
|
+
const [value, setValue] = (0, import_react20.useState)(_value);
|
|
1894
|
+
const [width, setWidth] = (0, import_react20.useState)(0);
|
|
1895
|
+
const span = (0, import_react20.useRef)(null);
|
|
1896
|
+
const defaultRef = (0, import_react20.useRef)(null);
|
|
1866
1897
|
const inputRef = ref || defaultRef;
|
|
1867
|
-
(0,
|
|
1898
|
+
(0, import_react20.useEffect)(() => {
|
|
1868
1899
|
span.current && setWidth(span.current.offsetWidth);
|
|
1869
1900
|
}, [value]);
|
|
1870
|
-
const changeHandler = (0,
|
|
1901
|
+
const changeHandler = (0, import_react20.useCallback)(
|
|
1871
1902
|
(evt) => {
|
|
1872
1903
|
onChange == null ? void 0 : onChange(evt);
|
|
1873
1904
|
setValue(evt.target.value);
|
|
1874
1905
|
},
|
|
1875
1906
|
[onChange]
|
|
1876
1907
|
);
|
|
1877
|
-
(0,
|
|
1908
|
+
(0, import_react20.useEffect)(() => {
|
|
1878
1909
|
setValue(_value || "");
|
|
1879
1910
|
}, [_value]);
|
|
1880
|
-
(0,
|
|
1911
|
+
(0, import_react20.useEffect)(() => {
|
|
1881
1912
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1882
1913
|
}, [value, onChangeValue]);
|
|
1883
|
-
const onClick = (0,
|
|
1914
|
+
const onClick = (0, import_react20.useCallback)(() => {
|
|
1884
1915
|
var _a2;
|
|
1885
1916
|
if ("current" in inputRef) {
|
|
1886
1917
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1887
1918
|
}
|
|
1888
1919
|
}, [inputRef]);
|
|
1889
|
-
const onKeyDown = (0,
|
|
1920
|
+
const onKeyDown = (0, import_react20.useCallback)(
|
|
1890
1921
|
(evt) => {
|
|
1891
1922
|
if (evt.key === "Enter") {
|
|
1892
1923
|
onClick();
|
|
@@ -1934,23 +1965,55 @@ function BulletText(_a) {
|
|
|
1934
1965
|
] });
|
|
1935
1966
|
}
|
|
1936
1967
|
|
|
1968
|
+
// src/atoms/list.tsx
|
|
1969
|
+
var import_react21 = require("react");
|
|
1970
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1971
|
+
function Root10(props) {
|
|
1972
|
+
const { variant, size = "large", children } = props;
|
|
1973
|
+
const Comp = variant === "ol" ? "ol" : "ul";
|
|
1974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes22.Flex, { direction: "column", asChild: true, gap: "1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Comp, { children }) }) });
|
|
1975
|
+
}
|
|
1976
|
+
function Item(props) {
|
|
1977
|
+
const { children } = props;
|
|
1978
|
+
const { size } = useList();
|
|
1979
|
+
const variant = (0, import_react21.useMemo)(() => {
|
|
1980
|
+
return mapWithResponsive({
|
|
1981
|
+
value: size,
|
|
1982
|
+
mapFn: (sizeValue) => {
|
|
1983
|
+
return sizeValue === "small" ? "caption" : "body";
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
}, [
|
|
1987
|
+
size
|
|
1988
|
+
]);
|
|
1989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { children }) });
|
|
1990
|
+
}
|
|
1991
|
+
var ListContext = (0, import_react21.createContext)({ size: "large" });
|
|
1992
|
+
function useList() {
|
|
1993
|
+
return (0, import_react21.useContext)(ListContext);
|
|
1994
|
+
}
|
|
1995
|
+
var List = {
|
|
1996
|
+
Root: Root10,
|
|
1997
|
+
Item
|
|
1998
|
+
};
|
|
1999
|
+
|
|
1937
2000
|
// src/molecules/expand-table/index.tsx
|
|
1938
2001
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1939
|
-
var
|
|
2002
|
+
var import_react23 = require("react");
|
|
1940
2003
|
|
|
1941
2004
|
// src/molecules/expand-table/row.tsx
|
|
1942
2005
|
var import_react_table = require("@tanstack/react-table");
|
|
1943
|
-
var
|
|
1944
|
-
var
|
|
2006
|
+
var import_react22 = require("react");
|
|
2007
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1945
2008
|
function Row(props) {
|
|
1946
2009
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1947
|
-
const [open, setOpen] = (0,
|
|
1948
|
-
const onClickRow = (0,
|
|
2010
|
+
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
2011
|
+
const onClickRow = (0, import_react22.useCallback)(() => {
|
|
1949
2012
|
var _a;
|
|
1950
2013
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1951
2014
|
setOpen((prev) => !prev);
|
|
1952
2015
|
}, [props, row.original]);
|
|
1953
|
-
const rowClassName = (0,
|
|
2016
|
+
const rowClassName = (0, import_react22.useMemo)(() => {
|
|
1954
2017
|
const baseCls = ["tr-wrapper"];
|
|
1955
2018
|
if (ExpandComp) {
|
|
1956
2019
|
baseCls.push("expandable");
|
|
@@ -1960,8 +2023,8 @@ function Row(props) {
|
|
|
1960
2023
|
}
|
|
1961
2024
|
return baseCls.join(" ");
|
|
1962
2025
|
}, [ExpandComp, props.onRowClick]);
|
|
1963
|
-
return /* @__PURE__ */ (0,
|
|
1964
|
-
/* @__PURE__ */ (0,
|
|
2026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: rowClassName, children: [
|
|
2027
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1965
2028
|
"button",
|
|
1966
2029
|
{
|
|
1967
2030
|
className: "tr",
|
|
@@ -1974,7 +2037,7 @@ function Row(props) {
|
|
|
1974
2037
|
var _a, _b, _c;
|
|
1975
2038
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1976
2039
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1977
|
-
return /* @__PURE__ */ (0,
|
|
2040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
1978
2041
|
"div",
|
|
1979
2042
|
{
|
|
1980
2043
|
className: "td",
|
|
@@ -1985,7 +2048,7 @@ function Row(props) {
|
|
|
1985
2048
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
1986
2049
|
children: [
|
|
1987
2050
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1988
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
2051
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1989
2052
|
cell.column.columnDef.meta.OpenBtn,
|
|
1990
2053
|
{
|
|
1991
2054
|
data: row.original,
|
|
@@ -2001,12 +2064,12 @@ function Row(props) {
|
|
|
2001
2064
|
},
|
|
2002
2065
|
`tr_${row.id}`
|
|
2003
2066
|
),
|
|
2004
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
2067
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ExpandComp, { row }) }) }) : null
|
|
2005
2068
|
] }, `tr-wrapper_${row.id}`);
|
|
2006
2069
|
}
|
|
2007
2070
|
|
|
2008
2071
|
// src/molecules/expand-table/index.tsx
|
|
2009
|
-
var
|
|
2072
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2010
2073
|
function ExpandTable(props) {
|
|
2011
2074
|
const {
|
|
2012
2075
|
data,
|
|
@@ -2024,11 +2087,11 @@ function ExpandTable(props) {
|
|
|
2024
2087
|
getCellStyle
|
|
2025
2088
|
} = props;
|
|
2026
2089
|
const defaultAlign = "left";
|
|
2027
|
-
const [pagination, setPagination] = (0,
|
|
2090
|
+
const [pagination, setPagination] = (0, import_react23.useState)({
|
|
2028
2091
|
pageIndex: pageIndex || 0,
|
|
2029
2092
|
pageSize: pageSize || 9999
|
|
2030
2093
|
});
|
|
2031
|
-
const [sorting, setSorting] = (0,
|
|
2094
|
+
const [sorting, setSorting] = (0, import_react23.useState)([]);
|
|
2032
2095
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
2033
2096
|
data: data || [],
|
|
2034
2097
|
columns,
|
|
@@ -2042,7 +2105,7 @@ function ExpandTable(props) {
|
|
|
2042
2105
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
2043
2106
|
onPaginationChange: setPagination
|
|
2044
2107
|
});
|
|
2045
|
-
const gridTemplateColumns = (0,
|
|
2108
|
+
const gridTemplateColumns = (0, import_react23.useMemo)(() => {
|
|
2046
2109
|
return columns.map((col) => {
|
|
2047
2110
|
var _a;
|
|
2048
2111
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
|
|
@@ -2050,16 +2113,16 @@ function ExpandTable(props) {
|
|
|
2050
2113
|
}).join(" ");
|
|
2051
2114
|
}, [columns]);
|
|
2052
2115
|
const rowModels = getRowModel();
|
|
2053
|
-
const onChangePagination = (0,
|
|
2116
|
+
const onChangePagination = (0, import_react23.useCallback)(
|
|
2054
2117
|
(page) => {
|
|
2055
2118
|
setPageIndex(page - 1);
|
|
2056
2119
|
},
|
|
2057
2120
|
[setPageIndex]
|
|
2058
2121
|
);
|
|
2059
|
-
const helpCompRender = (0,
|
|
2122
|
+
const helpCompRender = (0, import_react23.useCallback)(
|
|
2060
2123
|
(rowLength) => {
|
|
2061
2124
|
if (isLoading) {
|
|
2062
|
-
return /* @__PURE__ */ (0,
|
|
2125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2063
2126
|
import_themes22.Flex,
|
|
2064
2127
|
{
|
|
2065
2128
|
align: "center",
|
|
@@ -2067,24 +2130,24 @@ function ExpandTable(props) {
|
|
|
2067
2130
|
justify: "center",
|
|
2068
2131
|
p: "5",
|
|
2069
2132
|
width: "100%",
|
|
2070
|
-
children: /* @__PURE__ */ (0,
|
|
2133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes49.Spinner, {})
|
|
2071
2134
|
}
|
|
2072
2135
|
);
|
|
2073
2136
|
}
|
|
2074
2137
|
if (rowLength === 0) {
|
|
2075
|
-
return /* @__PURE__ */ (0,
|
|
2138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
2076
2139
|
}
|
|
2077
2140
|
return null;
|
|
2078
2141
|
},
|
|
2079
2142
|
[isLoading, placeholder]
|
|
2080
2143
|
);
|
|
2081
|
-
const pageCount = (0,
|
|
2144
|
+
const pageCount = (0, import_react23.useMemo)(() => {
|
|
2082
2145
|
if (!data) return 0;
|
|
2083
2146
|
return Math.ceil(data.length / pageSize);
|
|
2084
2147
|
}, [data, pageSize]);
|
|
2085
|
-
return /* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "expand-table-wrapper", children: [
|
|
2149
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
2150
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2088
2151
|
"div",
|
|
2089
2152
|
{
|
|
2090
2153
|
className: "tr",
|
|
@@ -2094,30 +2157,30 @@ function ExpandTable(props) {
|
|
|
2094
2157
|
const sortable = header.column.getCanSort();
|
|
2095
2158
|
const sortedState = header.column.getIsSorted();
|
|
2096
2159
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
2097
|
-
return /* @__PURE__ */ (0,
|
|
2160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2098
2161
|
"button",
|
|
2099
2162
|
{
|
|
2100
2163
|
onClick: header.column.getToggleSortingHandler(),
|
|
2101
2164
|
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
2102
2165
|
type: "button",
|
|
2103
2166
|
children: [
|
|
2104
|
-
/* @__PURE__ */ (0,
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2105
2168
|
header.column.columnDef.header,
|
|
2106
2169
|
header.getContext()
|
|
2107
2170
|
) }),
|
|
2108
|
-
sortable ? /* @__PURE__ */ (0,
|
|
2171
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2109
2172
|
import_themes22.Flex,
|
|
2110
2173
|
{
|
|
2111
2174
|
direction: "column",
|
|
2112
2175
|
style: { marginLeft: "var(--space-2)" },
|
|
2113
2176
|
children: [
|
|
2114
|
-
/* @__PURE__ */ (0,
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2115
2178
|
TriangleArrowUpIcon,
|
|
2116
2179
|
{
|
|
2117
2180
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2118
2181
|
}
|
|
2119
2182
|
),
|
|
2120
|
-
/* @__PURE__ */ (0,
|
|
2183
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2121
2184
|
TriangleArrowDownIcon,
|
|
2122
2185
|
{
|
|
2123
2186
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -2133,8 +2196,8 @@ function ExpandTable(props) {
|
|
|
2133
2196
|
},
|
|
2134
2197
|
headerGroup.id
|
|
2135
2198
|
)) }),
|
|
2136
|
-
/* @__PURE__ */ (0,
|
|
2137
|
-
return /* @__PURE__ */ (0,
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
2200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2138
2201
|
Row,
|
|
2139
2202
|
{
|
|
2140
2203
|
ExpandComp,
|
|
@@ -2149,7 +2212,7 @@ function ExpandTable(props) {
|
|
|
2149
2212
|
);
|
|
2150
2213
|
}) })
|
|
2151
2214
|
] }),
|
|
2152
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
2215
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2153
2216
|
Pagination,
|
|
2154
2217
|
{
|
|
2155
2218
|
count: pageCount,
|
|
@@ -2162,14 +2225,14 @@ function ExpandTable(props) {
|
|
|
2162
2225
|
}
|
|
2163
2226
|
|
|
2164
2227
|
// src/molecules/navigation.tsx
|
|
2165
|
-
var
|
|
2228
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2166
2229
|
function Navigation({
|
|
2167
2230
|
items,
|
|
2168
2231
|
fontColor,
|
|
2169
2232
|
backgroundColor,
|
|
2170
2233
|
activeKey
|
|
2171
2234
|
}) {
|
|
2172
|
-
return /* @__PURE__ */ (0,
|
|
2235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2173
2236
|
import_themes22.Flex,
|
|
2174
2237
|
{
|
|
2175
2238
|
direction: "column",
|
|
@@ -2181,13 +2244,13 @@ function Navigation({
|
|
|
2181
2244
|
},
|
|
2182
2245
|
children: items == null ? void 0 : items.map((item) => {
|
|
2183
2246
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
2184
|
-
return /* @__PURE__ */ (0,
|
|
2185
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
2247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
2248
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
2186
2249
|
icon,
|
|
2187
|
-
/* @__PURE__ */ (0,
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, { variant: "subtitle", children: title })
|
|
2188
2251
|
] }),
|
|
2189
2252
|
children == null ? void 0 : children.map((menu) => {
|
|
2190
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
2253
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2191
2254
|
Button,
|
|
2192
2255
|
{
|
|
2193
2256
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -2211,17 +2274,17 @@ function Navigation({
|
|
|
2211
2274
|
}
|
|
2212
2275
|
|
|
2213
2276
|
// src/molecules/date-picker/index.tsx
|
|
2214
|
-
var
|
|
2277
|
+
var import_react24 = require("react");
|
|
2215
2278
|
var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
2216
2279
|
var import_locale = require("date-fns/locale");
|
|
2217
|
-
var
|
|
2218
|
-
var DatePicker = (0,
|
|
2280
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2281
|
+
var DatePicker = (0, import_react24.forwardRef)(
|
|
2219
2282
|
(props, ref) => {
|
|
2220
2283
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
2221
2284
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
2222
|
-
const [isYearDropdownOpen, setIsYearDropdownOpen] = (0,
|
|
2223
|
-
const [isMonthDropdownOpen, setIsMonthDropdownOpen] = (0,
|
|
2224
|
-
const renderCustomHeader = (0,
|
|
2285
|
+
const [isYearDropdownOpen, setIsYearDropdownOpen] = (0, import_react24.useState)(false);
|
|
2286
|
+
const [isMonthDropdownOpen, setIsMonthDropdownOpen] = (0, import_react24.useState)(false);
|
|
2287
|
+
const renderCustomHeader = (0, import_react24.useMemo)(() => {
|
|
2225
2288
|
const getYears = () => {
|
|
2226
2289
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2227
2290
|
return Array.from(
|
|
@@ -2245,7 +2308,7 @@ var DatePicker = (0, import_react22.forwardRef)(
|
|
|
2245
2308
|
setIsMonthDropdownOpen
|
|
2246
2309
|
}));
|
|
2247
2310
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
2248
|
-
return /* @__PURE__ */ (0,
|
|
2311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2249
2312
|
import_react_datepicker.default,
|
|
2250
2313
|
__spreadProps(__spreadValues({
|
|
2251
2314
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -2279,8 +2342,8 @@ function DropdownSelector({
|
|
|
2279
2342
|
selectedValue,
|
|
2280
2343
|
suffix
|
|
2281
2344
|
}) {
|
|
2282
|
-
const scrollContainerRef = (0,
|
|
2283
|
-
(0,
|
|
2345
|
+
const scrollContainerRef = (0, import_react24.useRef)(null);
|
|
2346
|
+
(0, import_react24.useEffect)(() => {
|
|
2284
2347
|
if (isOpen) {
|
|
2285
2348
|
queueMicrotask(() => {
|
|
2286
2349
|
var _a;
|
|
@@ -2293,19 +2356,19 @@ function DropdownSelector({
|
|
|
2293
2356
|
});
|
|
2294
2357
|
}
|
|
2295
2358
|
}, [isOpen]);
|
|
2296
|
-
return /* @__PURE__ */ (0,
|
|
2297
|
-
/* @__PURE__ */ (0,
|
|
2359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes29.Popover.Root, { onOpenChange, open: isOpen, modal: true, children: [
|
|
2360
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Button, { variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
2298
2361
|
selectedValue,
|
|
2299
2362
|
suffix
|
|
2300
2363
|
] }) }) }),
|
|
2301
|
-
/* @__PURE__ */ (0,
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes29.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2302
2365
|
import_themes6.Box,
|
|
2303
2366
|
{
|
|
2304
2367
|
maxHeight: "200px",
|
|
2305
2368
|
overflowY: "auto",
|
|
2306
2369
|
ref: scrollContainerRef,
|
|
2307
2370
|
style: { scrollbarWidth: "none" },
|
|
2308
|
-
children: /* @__PURE__ */ (0,
|
|
2371
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes22.Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2309
2372
|
Button,
|
|
2310
2373
|
{
|
|
2311
2374
|
color: "gray",
|
|
@@ -2319,7 +2382,7 @@ function DropdownSelector({
|
|
|
2319
2382
|
onSelect(item);
|
|
2320
2383
|
},
|
|
2321
2384
|
variant: "transparent",
|
|
2322
|
-
children: /* @__PURE__ */ (0,
|
|
2385
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
2323
2386
|
item,
|
|
2324
2387
|
suffix
|
|
2325
2388
|
] })
|
|
@@ -2350,19 +2413,19 @@ var getRenderCustomHeader = (props) => {
|
|
|
2350
2413
|
} = props;
|
|
2351
2414
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
2352
2415
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
2353
|
-
return /* @__PURE__ */ (0,
|
|
2354
|
-
/* @__PURE__ */ (0,
|
|
2416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
|
|
2417
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2355
2418
|
import_themes18.IconButton,
|
|
2356
2419
|
{
|
|
2357
2420
|
disabled: prevMonthButtonDisabled,
|
|
2358
2421
|
onClick: decreaseMonth,
|
|
2359
2422
|
type: "button",
|
|
2360
2423
|
variant: "ghost",
|
|
2361
|
-
children: /* @__PURE__ */ (0,
|
|
2424
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
2362
2425
|
}
|
|
2363
2426
|
),
|
|
2364
|
-
/* @__PURE__ */ (0,
|
|
2365
|
-
/* @__PURE__ */ (0,
|
|
2427
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
2428
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2366
2429
|
DropdownSelector,
|
|
2367
2430
|
{
|
|
2368
2431
|
isOpen: isYearDropdownOpen,
|
|
@@ -2376,7 +2439,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2376
2439
|
suffix: "\uB144"
|
|
2377
2440
|
}
|
|
2378
2441
|
),
|
|
2379
|
-
/* @__PURE__ */ (0,
|
|
2442
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2380
2443
|
DropdownSelector,
|
|
2381
2444
|
{
|
|
2382
2445
|
isOpen: isMonthDropdownOpen,
|
|
@@ -2391,14 +2454,14 @@ var getRenderCustomHeader = (props) => {
|
|
|
2391
2454
|
}
|
|
2392
2455
|
)
|
|
2393
2456
|
] }),
|
|
2394
|
-
/* @__PURE__ */ (0,
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2395
2458
|
import_themes18.IconButton,
|
|
2396
2459
|
{
|
|
2397
2460
|
disabled: nextMonthButtonDisabled,
|
|
2398
2461
|
onClick: increaseMonth,
|
|
2399
2462
|
type: "button",
|
|
2400
2463
|
variant: "ghost",
|
|
2401
|
-
children: /* @__PURE__ */ (0,
|
|
2464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
2402
2465
|
}
|
|
2403
2466
|
)
|
|
2404
2467
|
] });
|
|
@@ -2407,18 +2470,18 @@ var getRenderCustomHeader = (props) => {
|
|
|
2407
2470
|
};
|
|
2408
2471
|
|
|
2409
2472
|
// src/molecules/dot-navigation.tsx
|
|
2410
|
-
var
|
|
2473
|
+
var import_react25 = require("react");
|
|
2411
2474
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2412
|
-
var
|
|
2475
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2413
2476
|
function DotNavigation(props) {
|
|
2414
2477
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
2415
|
-
const [currentDot, setCurrentDot] = (0,
|
|
2478
|
+
const [currentDot, setCurrentDot] = (0, import_react25.useState)(
|
|
2416
2479
|
() => {
|
|
2417
2480
|
var _a;
|
|
2418
2481
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
2419
2482
|
}
|
|
2420
2483
|
);
|
|
2421
|
-
const onClickDot = (0,
|
|
2484
|
+
const onClickDot = (0, import_react25.useCallback)(
|
|
2422
2485
|
(i) => {
|
|
2423
2486
|
if (onClick) {
|
|
2424
2487
|
onClick(i);
|
|
@@ -2428,16 +2491,16 @@ function DotNavigation(props) {
|
|
|
2428
2491
|
},
|
|
2429
2492
|
[onClick]
|
|
2430
2493
|
);
|
|
2431
|
-
(0,
|
|
2494
|
+
(0, import_react25.useEffect)(() => {
|
|
2432
2495
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
2433
2496
|
}, [currentDot, onChangeDotIndex]);
|
|
2434
|
-
(0,
|
|
2497
|
+
(0, import_react25.useEffect)(() => {
|
|
2435
2498
|
if (typeof dotIndex === "undefined") return;
|
|
2436
2499
|
setCurrentDot(dotIndex);
|
|
2437
2500
|
}, [dotIndex]);
|
|
2438
|
-
return /* @__PURE__ */ (0,
|
|
2501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
2439
2502
|
const isSelected = currentDot === index;
|
|
2440
|
-
return /* @__PURE__ */ (0,
|
|
2503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2441
2504
|
import_react_icons4.DotFilledIcon,
|
|
2442
2505
|
{
|
|
2443
2506
|
height: "24px",
|
|
@@ -2456,15 +2519,15 @@ function DotNavigation(props) {
|
|
|
2456
2519
|
}
|
|
2457
2520
|
|
|
2458
2521
|
// src/molecules/stepper.tsx
|
|
2459
|
-
var
|
|
2522
|
+
var import_react26 = require("react");
|
|
2460
2523
|
var import_themes51 = require("@radix-ui/themes");
|
|
2461
|
-
var
|
|
2462
|
-
var StepContext = (0,
|
|
2524
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2525
|
+
var StepContext = (0, import_react26.createContext)({
|
|
2463
2526
|
active: false,
|
|
2464
2527
|
completed: false,
|
|
2465
2528
|
index: 0
|
|
2466
2529
|
});
|
|
2467
|
-
function
|
|
2530
|
+
function Root11(props) {
|
|
2468
2531
|
const {
|
|
2469
2532
|
activeStep = 0,
|
|
2470
2533
|
children,
|
|
@@ -2473,7 +2536,7 @@ function Root9(props) {
|
|
|
2473
2536
|
maxWidth,
|
|
2474
2537
|
direction = "vertical"
|
|
2475
2538
|
} = props;
|
|
2476
|
-
return /* @__PURE__ */ (0,
|
|
2539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2477
2540
|
import_themes22.Flex,
|
|
2478
2541
|
{
|
|
2479
2542
|
gap: "3",
|
|
@@ -2482,8 +2545,8 @@ function Root9(props) {
|
|
|
2482
2545
|
minWidth,
|
|
2483
2546
|
maxWidth
|
|
2484
2547
|
},
|
|
2485
|
-
children:
|
|
2486
|
-
return /* @__PURE__ */ (0,
|
|
2548
|
+
children: import_react26.Children.map(children, (child, index) => {
|
|
2549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2487
2550
|
StepContext.Provider,
|
|
2488
2551
|
{
|
|
2489
2552
|
value: {
|
|
@@ -2506,8 +2569,8 @@ function Step(props) {
|
|
|
2506
2569
|
completed,
|
|
2507
2570
|
index,
|
|
2508
2571
|
direction = "vertical"
|
|
2509
|
-
} = (0,
|
|
2510
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
2572
|
+
} = (0, import_react26.useContext)(StepContext);
|
|
2573
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2511
2574
|
import_themes51.Separator,
|
|
2512
2575
|
{
|
|
2513
2576
|
style: {
|
|
@@ -2518,7 +2581,7 @@ function Step(props) {
|
|
|
2518
2581
|
}
|
|
2519
2582
|
}
|
|
2520
2583
|
) : null;
|
|
2521
|
-
const InnerStep = (0,
|
|
2584
|
+
const InnerStep = (0, import_react26.useMemo)(() => {
|
|
2522
2585
|
if (active) {
|
|
2523
2586
|
return ActiveStep;
|
|
2524
2587
|
}
|
|
@@ -2527,7 +2590,7 @@ function Step(props) {
|
|
|
2527
2590
|
}
|
|
2528
2591
|
return IncompleteStep;
|
|
2529
2592
|
}, [completed, active]);
|
|
2530
|
-
return /* @__PURE__ */ (0,
|
|
2593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2531
2594
|
import_themes22.Flex,
|
|
2532
2595
|
{
|
|
2533
2596
|
align: "center",
|
|
@@ -2537,22 +2600,22 @@ function Step(props) {
|
|
|
2537
2600
|
style: { flex: 1 },
|
|
2538
2601
|
children: [
|
|
2539
2602
|
connector,
|
|
2540
|
-
/* @__PURE__ */ (0,
|
|
2603
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InnerStep, { Icon, children })
|
|
2541
2604
|
]
|
|
2542
2605
|
}
|
|
2543
2606
|
);
|
|
2544
2607
|
}
|
|
2545
2608
|
function CompleteStep(props) {
|
|
2546
2609
|
const { Icon, children } = props;
|
|
2547
|
-
const { completed, active } = (0,
|
|
2610
|
+
const { completed, active } = (0, import_react26.useContext)(StepContext);
|
|
2548
2611
|
const background = "var(--accent-a4)";
|
|
2549
2612
|
const border = "1px solid var(--accent-7)";
|
|
2550
2613
|
const color = "var(--accent-contrast)";
|
|
2551
|
-
return /* @__PURE__ */ (0,
|
|
2552
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
2615
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2553
2616
|
Avatar,
|
|
2554
2617
|
{
|
|
2555
|
-
fallback: /* @__PURE__ */ (0,
|
|
2618
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
2556
2619
|
radius: "full",
|
|
2557
2620
|
size: "medium",
|
|
2558
2621
|
style: {
|
|
@@ -2561,19 +2624,19 @@ function CompleteStep(props) {
|
|
|
2561
2624
|
}
|
|
2562
2625
|
}
|
|
2563
2626
|
),
|
|
2564
|
-
/* @__PURE__ */ (0,
|
|
2627
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
2565
2628
|
] });
|
|
2566
2629
|
}
|
|
2567
2630
|
function IncompleteStep(props) {
|
|
2568
2631
|
const { Icon, children } = props;
|
|
2569
|
-
const { completed, active, index } = (0,
|
|
2632
|
+
const { completed, active, index } = (0, import_react26.useContext)(StepContext);
|
|
2570
2633
|
const background = "var(--gray-5)";
|
|
2571
2634
|
const color = "var(--gray-a11)";
|
|
2572
|
-
return /* @__PURE__ */ (0,
|
|
2573
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
2636
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2574
2637
|
Avatar,
|
|
2575
2638
|
{
|
|
2576
|
-
fallback: /* @__PURE__ */ (0,
|
|
2639
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
2577
2640
|
radius: "full",
|
|
2578
2641
|
size: "medium",
|
|
2579
2642
|
style: {
|
|
@@ -2581,36 +2644,36 @@ function IncompleteStep(props) {
|
|
|
2581
2644
|
}
|
|
2582
2645
|
}
|
|
2583
2646
|
),
|
|
2584
|
-
/* @__PURE__ */ (0,
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
2585
2648
|
] });
|
|
2586
2649
|
}
|
|
2587
2650
|
function ActiveStep(props) {
|
|
2588
2651
|
const { Icon, children } = props;
|
|
2589
|
-
const { completed, active, index } = (0,
|
|
2652
|
+
const { completed, active, index } = (0, import_react26.useContext)(StepContext);
|
|
2590
2653
|
const background = "var(--accent-10)";
|
|
2591
2654
|
const color = "var(--accent-contrast)";
|
|
2592
|
-
return /* @__PURE__ */ (0,
|
|
2593
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
2656
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2594
2657
|
Avatar,
|
|
2595
2658
|
{
|
|
2596
|
-
fallback: /* @__PURE__ */ (0,
|
|
2659
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
2597
2660
|
radius: "full",
|
|
2598
2661
|
size: "medium",
|
|
2599
2662
|
style: { background }
|
|
2600
2663
|
}
|
|
2601
2664
|
),
|
|
2602
|
-
/* @__PURE__ */ (0,
|
|
2665
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2603
2666
|
] });
|
|
2604
2667
|
}
|
|
2605
2668
|
var Stepper = {
|
|
2606
|
-
Root:
|
|
2669
|
+
Root: Root11,
|
|
2607
2670
|
Step
|
|
2608
2671
|
};
|
|
2609
2672
|
|
|
2610
2673
|
// src/molecules/tag-selector.tsx
|
|
2611
|
-
var
|
|
2674
|
+
var import_react27 = require("react");
|
|
2612
2675
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2613
|
-
var
|
|
2676
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2614
2677
|
var OPTION_HEIGHT = 32;
|
|
2615
2678
|
var stopDefaultEvents = (e) => {
|
|
2616
2679
|
e.preventDefault();
|
|
@@ -2632,24 +2695,24 @@ function TagSelector(props) {
|
|
|
2632
2695
|
open: propsOpen,
|
|
2633
2696
|
dropdownItemRender
|
|
2634
2697
|
} = props;
|
|
2635
|
-
const [_selected, _setSelected] = (0,
|
|
2698
|
+
const [_selected, _setSelected] = (0, import_react27.useState)(props.selected || []);
|
|
2636
2699
|
const selected = props.selected || _selected;
|
|
2637
2700
|
const setSelected = props.onChange || _setSelected;
|
|
2638
|
-
const [value, setValue] = (0,
|
|
2639
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
2640
|
-
const [open, setOpen] = (0,
|
|
2641
|
-
const [focus, setFocus] = (0,
|
|
2642
|
-
const fieldRef = (0,
|
|
2643
|
-
const scrollRef = (0,
|
|
2644
|
-
const closeRef = (0,
|
|
2645
|
-
const onFocus = (0,
|
|
2701
|
+
const [value, setValue] = (0, import_react27.useState)("");
|
|
2702
|
+
const [focusIndex, setFocusIndex] = (0, import_react27.useState)(null);
|
|
2703
|
+
const [open, setOpen] = (0, import_react27.useState)(false);
|
|
2704
|
+
const [focus, setFocus] = (0, import_react27.useState)(false);
|
|
2705
|
+
const fieldRef = (0, import_react27.useRef)(null);
|
|
2706
|
+
const scrollRef = (0, import_react27.useRef)(null);
|
|
2707
|
+
const closeRef = (0, import_react27.useRef)(null);
|
|
2708
|
+
const onFocus = (0, import_react27.useCallback)(() => {
|
|
2646
2709
|
if (closeRef.current) {
|
|
2647
2710
|
clearTimeout(closeRef.current);
|
|
2648
2711
|
}
|
|
2649
2712
|
setFocus(true);
|
|
2650
2713
|
setOpen(true);
|
|
2651
2714
|
}, []);
|
|
2652
|
-
const onBlur = (0,
|
|
2715
|
+
const onBlur = (0, import_react27.useCallback)(() => {
|
|
2653
2716
|
closeRef.current = setTimeout(() => {
|
|
2654
2717
|
setFocus(false);
|
|
2655
2718
|
setOpen(false);
|
|
@@ -2658,18 +2721,18 @@ function TagSelector(props) {
|
|
|
2658
2721
|
}, 100);
|
|
2659
2722
|
}, 300);
|
|
2660
2723
|
}, []);
|
|
2661
|
-
const onChangeValue = (0,
|
|
2724
|
+
const onChangeValue = (0, import_react27.useCallback)(
|
|
2662
2725
|
(e) => {
|
|
2663
2726
|
setValue(e.target.value);
|
|
2664
2727
|
},
|
|
2665
2728
|
[]
|
|
2666
2729
|
);
|
|
2667
|
-
const filteredOptions = (0,
|
|
2730
|
+
const filteredOptions = (0, import_react27.useMemo)(() => {
|
|
2668
2731
|
return options.filter((option) => {
|
|
2669
2732
|
return option.name.includes(value);
|
|
2670
2733
|
});
|
|
2671
2734
|
}, [options, value]);
|
|
2672
|
-
const selectedItem = (0,
|
|
2735
|
+
const selectedItem = (0, import_react27.useMemo)(() => {
|
|
2673
2736
|
const result = [];
|
|
2674
2737
|
selected.forEach((id) => {
|
|
2675
2738
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -2677,20 +2740,20 @@ function TagSelector(props) {
|
|
|
2677
2740
|
});
|
|
2678
2741
|
return result;
|
|
2679
2742
|
}, [options, selected]);
|
|
2680
|
-
const onDelete = (0,
|
|
2743
|
+
const onDelete = (0, import_react27.useCallback)(
|
|
2681
2744
|
(id) => {
|
|
2682
2745
|
setSelected(selected.filter((el) => el !== id));
|
|
2683
2746
|
},
|
|
2684
2747
|
[selected, setSelected]
|
|
2685
2748
|
);
|
|
2686
|
-
const onSelect = (0,
|
|
2749
|
+
const onSelect = (0, import_react27.useCallback)(
|
|
2687
2750
|
(id) => {
|
|
2688
2751
|
if (maxCount && selected.length + 1 > maxCount) return;
|
|
2689
2752
|
setSelected([...selected, id]);
|
|
2690
2753
|
},
|
|
2691
2754
|
[maxCount, selected, setSelected]
|
|
2692
2755
|
);
|
|
2693
|
-
const toggleItem = (0,
|
|
2756
|
+
const toggleItem = (0, import_react27.useCallback)(
|
|
2694
2757
|
(id) => {
|
|
2695
2758
|
if (selected.includes(id)) {
|
|
2696
2759
|
onDelete(id);
|
|
@@ -2700,7 +2763,7 @@ function TagSelector(props) {
|
|
|
2700
2763
|
},
|
|
2701
2764
|
[onDelete, onSelect, selected]
|
|
2702
2765
|
);
|
|
2703
|
-
const setScroll = (0,
|
|
2766
|
+
const setScroll = (0, import_react27.useCallback)((index) => {
|
|
2704
2767
|
if (scrollRef.current) {
|
|
2705
2768
|
const scrollTop = scrollRef.current.scrollTop;
|
|
2706
2769
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -2712,7 +2775,7 @@ function TagSelector(props) {
|
|
|
2712
2775
|
}
|
|
2713
2776
|
}
|
|
2714
2777
|
}, []);
|
|
2715
|
-
const handleKeyDown = (0,
|
|
2778
|
+
const handleKeyDown = (0, import_react27.useCallback)(
|
|
2716
2779
|
(e) => {
|
|
2717
2780
|
var _a;
|
|
2718
2781
|
const key = e.key;
|
|
@@ -2766,19 +2829,19 @@ function TagSelector(props) {
|
|
|
2766
2829
|
selected
|
|
2767
2830
|
]
|
|
2768
2831
|
);
|
|
2769
|
-
const placeholderVisible = (0,
|
|
2832
|
+
const placeholderVisible = (0, import_react27.useMemo)(() => {
|
|
2770
2833
|
if (selectedItem.length) return false;
|
|
2771
2834
|
if (value) return false;
|
|
2772
2835
|
if (focus) return false;
|
|
2773
2836
|
return true;
|
|
2774
2837
|
}, [focus, selectedItem.length, value]);
|
|
2775
|
-
(0,
|
|
2838
|
+
(0, import_react27.useEffect)(() => {
|
|
2776
2839
|
setFocusIndex(null);
|
|
2777
2840
|
}, [open]);
|
|
2778
|
-
(0,
|
|
2841
|
+
(0, import_react27.useEffect)(() => {
|
|
2779
2842
|
setFocusIndex(0);
|
|
2780
2843
|
}, [filteredOptions]);
|
|
2781
|
-
const badgeSize = (0,
|
|
2844
|
+
const badgeSize = (0, import_react27.useMemo)(() => {
|
|
2782
2845
|
switch (size) {
|
|
2783
2846
|
case "large":
|
|
2784
2847
|
return "large";
|
|
@@ -2788,7 +2851,7 @@ function TagSelector(props) {
|
|
|
2788
2851
|
return "small";
|
|
2789
2852
|
}
|
|
2790
2853
|
}, [size]);
|
|
2791
|
-
const placeholderVariant = (0,
|
|
2854
|
+
const placeholderVariant = (0, import_react27.useMemo)(() => {
|
|
2792
2855
|
switch (size) {
|
|
2793
2856
|
case "large":
|
|
2794
2857
|
return "subtitle";
|
|
@@ -2800,11 +2863,11 @@ function TagSelector(props) {
|
|
|
2800
2863
|
const focusClassName = focus ? " focused" : "";
|
|
2801
2864
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2802
2865
|
const errorClassName = error ? " error" : "";
|
|
2803
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2804
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2866
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2867
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2805
2868
|
}) });
|
|
2806
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2807
|
-
/* @__PURE__ */ (0,
|
|
2869
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
2870
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2808
2871
|
import_themes22.Flex,
|
|
2809
2872
|
{
|
|
2810
2873
|
align: "center",
|
|
@@ -2816,22 +2879,22 @@ function TagSelector(props) {
|
|
|
2816
2879
|
selectedItem.map((item) => {
|
|
2817
2880
|
return tagRender ? tagRender(item, () => {
|
|
2818
2881
|
onDelete(item.id);
|
|
2819
|
-
}) : /* @__PURE__ */ (0,
|
|
2882
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Badge, { size: badgeSize, children: [
|
|
2820
2883
|
item.name,
|
|
2821
|
-
/* @__PURE__ */ (0,
|
|
2884
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2822
2885
|
Button,
|
|
2823
2886
|
{
|
|
2824
2887
|
onClick: () => {
|
|
2825
2888
|
onDelete(item.id);
|
|
2826
2889
|
},
|
|
2827
2890
|
variant: "transparent",
|
|
2828
|
-
children: /* @__PURE__ */ (0,
|
|
2891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons5.Cross1Icon, {})
|
|
2829
2892
|
}
|
|
2830
2893
|
)
|
|
2831
2894
|
] }, item.id);
|
|
2832
2895
|
}),
|
|
2833
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2834
|
-
/* @__PURE__ */ (0,
|
|
2896
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2897
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2835
2898
|
AutoSizingInput,
|
|
2836
2899
|
{
|
|
2837
2900
|
onBlur,
|
|
@@ -2845,10 +2908,10 @@ function TagSelector(props) {
|
|
|
2845
2908
|
]
|
|
2846
2909
|
}
|
|
2847
2910
|
),
|
|
2848
|
-
focus ? /* @__PURE__ */ (0,
|
|
2911
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
2849
2912
|
] });
|
|
2850
|
-
return /* @__PURE__ */ (0,
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2852
2915
|
import_themes23.Grid,
|
|
2853
2916
|
{
|
|
2854
2917
|
align: "center",
|
|
@@ -2862,7 +2925,7 @@ function TagSelector(props) {
|
|
|
2862
2925
|
children: readOnly ? readonlyContent : editContent
|
|
2863
2926
|
}
|
|
2864
2927
|
) }),
|
|
2865
|
-
/* @__PURE__ */ (0,
|
|
2928
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2866
2929
|
import_themes29.Popover.Content,
|
|
2867
2930
|
{
|
|
2868
2931
|
onOpenAutoFocus: preventDefault3,
|
|
@@ -2872,24 +2935,24 @@ function TagSelector(props) {
|
|
|
2872
2935
|
style: {
|
|
2873
2936
|
pointerEvents: "fill"
|
|
2874
2937
|
},
|
|
2875
|
-
children: /* @__PURE__ */ (0,
|
|
2938
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2876
2939
|
DropdownContainer,
|
|
2877
2940
|
{
|
|
2878
2941
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2879
2942
|
items: filteredOptions,
|
|
2880
|
-
children: /* @__PURE__ */ (0,
|
|
2943
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2881
2944
|
import_themes35.ScrollArea,
|
|
2882
2945
|
{
|
|
2883
2946
|
ref: scrollRef,
|
|
2884
2947
|
scrollbars: "vertical",
|
|
2885
2948
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2886
2949
|
type: "auto",
|
|
2887
|
-
children: /* @__PURE__ */ (0,
|
|
2950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2888
2951
|
const isSelected = Boolean(
|
|
2889
2952
|
selected.find((el) => el === item.id)
|
|
2890
2953
|
);
|
|
2891
2954
|
const isFocus = i === focusIndex;
|
|
2892
|
-
return /* @__PURE__ */ (0,
|
|
2955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2893
2956
|
Button,
|
|
2894
2957
|
{
|
|
2895
2958
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2902,9 +2965,9 @@ function TagSelector(props) {
|
|
|
2902
2965
|
setFocusIndex(i);
|
|
2903
2966
|
},
|
|
2904
2967
|
variant: isSelected ? "soft" : "outline",
|
|
2905
|
-
children: /* @__PURE__ */ (0,
|
|
2968
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2906
2969
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2907
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2970
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
2908
2971
|
] })
|
|
2909
2972
|
},
|
|
2910
2973
|
item.id
|
|
@@ -2930,13 +2993,13 @@ var preventDefault3 = (e) => {
|
|
|
2930
2993
|
|
|
2931
2994
|
// src/theme/theme-provider.tsx
|
|
2932
2995
|
var import_themes52 = require("@radix-ui/themes");
|
|
2933
|
-
var
|
|
2996
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2934
2997
|
function ThemeProvider(props) {
|
|
2935
|
-
return /* @__PURE__ */ (0,
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes52.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2936
2999
|
}
|
|
2937
3000
|
|
|
2938
3001
|
// src/molecules/learning-post.tsx
|
|
2939
|
-
var
|
|
3002
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2940
3003
|
function LearningPost(props) {
|
|
2941
3004
|
const {
|
|
2942
3005
|
defaultThemeProps,
|
|
@@ -2948,13 +3011,13 @@ function LearningPost(props) {
|
|
|
2948
3011
|
onPageBack,
|
|
2949
3012
|
children
|
|
2950
3013
|
} = props;
|
|
2951
|
-
return /* @__PURE__ */ (0,
|
|
3014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2952
3015
|
ThemeProvider,
|
|
2953
3016
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2954
3017
|
accentColor: "iris",
|
|
2955
3018
|
scaling: "110%",
|
|
2956
3019
|
style: {},
|
|
2957
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3020
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2958
3021
|
import_themes23.Grid,
|
|
2959
3022
|
{
|
|
2960
3023
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2966,8 +3029,8 @@ function LearningPost(props) {
|
|
|
2966
3029
|
px: "4",
|
|
2967
3030
|
width: "100%",
|
|
2968
3031
|
children: [
|
|
2969
|
-
/* @__PURE__ */ (0,
|
|
2970
|
-
/* @__PURE__ */ (0,
|
|
3032
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", {}),
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2971
3034
|
import_themes22.Flex,
|
|
2972
3035
|
{
|
|
2973
3036
|
align: "center",
|
|
@@ -2977,15 +3040,15 @@ function LearningPost(props) {
|
|
|
2977
3040
|
overflow: "hidden",
|
|
2978
3041
|
width: "100%",
|
|
2979
3042
|
children: [
|
|
2980
|
-
/* @__PURE__ */ (0,
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
3043
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
3044
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2982
3045
|
import_themes23.Grid,
|
|
2983
3046
|
{
|
|
2984
3047
|
gap: "3",
|
|
2985
3048
|
mb: { initial: "4", sm: "0" },
|
|
2986
3049
|
style: { alignSelf: "flex-start" },
|
|
2987
3050
|
children: [
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2989
3052
|
Heading2,
|
|
2990
3053
|
{
|
|
2991
3054
|
style: {
|
|
@@ -2997,16 +3060,16 @@ function LearningPost(props) {
|
|
|
2997
3060
|
children: title
|
|
2998
3061
|
}
|
|
2999
3062
|
),
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3001
|
-
/* @__PURE__ */ (0,
|
|
3063
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typo, { children: metaDescription }),
|
|
3064
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
3002
3065
|
var _a;
|
|
3003
3066
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
3004
|
-
return /* @__PURE__ */ (0,
|
|
3067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
3005
3068
|
}) })
|
|
3006
3069
|
]
|
|
3007
3070
|
}
|
|
3008
3071
|
),
|
|
3009
|
-
/* @__PURE__ */ (0,
|
|
3072
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3010
3073
|
import_themes2.AspectRatio,
|
|
3011
3074
|
{
|
|
3012
3075
|
ratio: 5 / 3,
|
|
@@ -3019,7 +3082,7 @@ function LearningPost(props) {
|
|
|
3019
3082
|
}
|
|
3020
3083
|
)
|
|
3021
3084
|
] }),
|
|
3022
|
-
/* @__PURE__ */ (0,
|
|
3085
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3023
3086
|
"div",
|
|
3024
3087
|
{
|
|
3025
3088
|
className: "gh-content",
|
|
@@ -3032,7 +3095,7 @@ function LearningPost(props) {
|
|
|
3032
3095
|
children
|
|
3033
3096
|
]
|
|
3034
3097
|
}
|
|
3035
|
-
) : /* @__PURE__ */ (0,
|
|
3098
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3036
3099
|
import_themes22.Flex,
|
|
3037
3100
|
{
|
|
3038
3101
|
align: "center",
|
|
@@ -3042,8 +3105,8 @@ function LearningPost(props) {
|
|
|
3042
3105
|
justify: "center",
|
|
3043
3106
|
width: "100%",
|
|
3044
3107
|
children: [
|
|
3045
|
-
/* @__PURE__ */ (0,
|
|
3046
|
-
/* @__PURE__ */ (0,
|
|
3108
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
3109
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3047
3110
|
Heading2,
|
|
3048
3111
|
{
|
|
3049
3112
|
align: "center",
|
|
@@ -3054,7 +3117,7 @@ function LearningPost(props) {
|
|
|
3054
3117
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3055
3118
|
}
|
|
3056
3119
|
),
|
|
3057
|
-
/* @__PURE__ */ (0,
|
|
3120
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3058
3121
|
]
|
|
3059
3122
|
}
|
|
3060
3123
|
)
|
|
@@ -3064,9 +3127,9 @@ function LearningPost(props) {
|
|
|
3064
3127
|
|
|
3065
3128
|
// src/molecules/force-refresh.tsx
|
|
3066
3129
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
3067
|
-
var
|
|
3130
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3068
3131
|
function CodeSize3(props) {
|
|
3069
|
-
return /* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3070
3133
|
import_themes13.Code,
|
|
3071
3134
|
{
|
|
3072
3135
|
style: {
|
|
@@ -3079,86 +3142,86 @@ function CodeSize3(props) {
|
|
|
3079
3142
|
);
|
|
3080
3143
|
}
|
|
3081
3144
|
function ForceRefresh() {
|
|
3082
|
-
return /* @__PURE__ */ (0,
|
|
3083
|
-
/* @__PURE__ */ (0,
|
|
3145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3084
3147
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
3085
3148
|
" ",
|
|
3086
|
-
/* @__PURE__ */ (0,
|
|
3087
|
-
/* @__PURE__ */ (0,
|
|
3149
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(CodeSize3, { children: [
|
|
3150
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
3088
3151
|
"\uB354\uBCF4\uAE30"
|
|
3089
3152
|
] }),
|
|
3090
3153
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3091
3154
|
] }),
|
|
3092
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3093
3156
|
"2. ",
|
|
3094
|
-
/* @__PURE__ */ (0,
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
3095
3158
|
" ",
|
|
3096
3159
|
">",
|
|
3097
3160
|
" ",
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
3161
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
3099
3162
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
3100
3163
|
] }),
|
|
3101
|
-
/* @__PURE__ */ (0,
|
|
3102
|
-
/* @__PURE__ */ (0,
|
|
3164
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
3165
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3103
3166
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
3104
|
-
/* @__PURE__ */ (0,
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
3105
3168
|
] }),
|
|
3106
|
-
/* @__PURE__ */ (0,
|
|
3169
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3107
3170
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
3108
|
-
/* @__PURE__ */ (0,
|
|
3171
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
3109
3172
|
" + ",
|
|
3110
|
-
/* @__PURE__ */ (0,
|
|
3173
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
3111
3174
|
" + ",
|
|
3112
|
-
/* @__PURE__ */ (0,
|
|
3175
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "I" })
|
|
3113
3176
|
] })
|
|
3114
3177
|
] }),
|
|
3115
|
-
/* @__PURE__ */ (0,
|
|
3178
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3116
3179
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
3117
3180
|
" ",
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
3119
|
-
/* @__PURE__ */ (0,
|
|
3181
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(CodeSize3, { children: [
|
|
3182
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_icons6.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
3120
3183
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
3121
3184
|
] }),
|
|
3122
3185
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3123
3186
|
] }),
|
|
3124
|
-
/* @__PURE__ */ (0,
|
|
3187
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3125
3188
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
3126
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
3127
3190
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3128
3191
|
] })
|
|
3129
3192
|
] });
|
|
3130
3193
|
}
|
|
3131
3194
|
|
|
3132
3195
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
3133
|
-
var
|
|
3196
|
+
var import_react28 = require("react");
|
|
3134
3197
|
var import_date_fns = require("date-fns");
|
|
3135
3198
|
var import_clsx2 = require("clsx");
|
|
3136
|
-
var
|
|
3199
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3137
3200
|
function DatePickerButton(props) {
|
|
3138
3201
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
3139
|
-
const buttonProps = (0,
|
|
3202
|
+
const buttonProps = (0, import_react28.useMemo)(() => {
|
|
3140
3203
|
const variant = "outline";
|
|
3141
3204
|
const color = "gray";
|
|
3142
3205
|
return { size, color, variant, disabled };
|
|
3143
3206
|
}, [disabled, size]);
|
|
3144
|
-
const selectFormat = (0,
|
|
3207
|
+
const selectFormat = (0, import_react28.useMemo)(() => {
|
|
3145
3208
|
if (formatProps) return formatProps;
|
|
3146
3209
|
return (date) => {
|
|
3147
3210
|
return date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
3148
3211
|
};
|
|
3149
3212
|
}, [formatProps, placeholder]);
|
|
3150
|
-
const className = (0,
|
|
3213
|
+
const className = (0, import_react28.useMemo)(() => {
|
|
3151
3214
|
return (0, import_clsx2.clsx)(
|
|
3152
3215
|
"date-picker-button",
|
|
3153
3216
|
(disabled || props.readOnly) && "disabled"
|
|
3154
3217
|
);
|
|
3155
3218
|
}, [disabled, props.readOnly]);
|
|
3156
|
-
return /* @__PURE__ */ (0,
|
|
3219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3157
3220
|
DatePicker,
|
|
3158
3221
|
__spreadProps(__spreadValues({
|
|
3159
|
-
customInput: /* @__PURE__ */ (0,
|
|
3222
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
3160
3223
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
3161
|
-
/* @__PURE__ */ (0,
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons2.CalendarIcon, {})
|
|
3162
3225
|
] }) })),
|
|
3163
3226
|
wrapperClassName: "full-width"
|
|
3164
3227
|
}, rest), {
|
|
@@ -3168,7 +3231,7 @@ function DatePickerButton(props) {
|
|
|
3168
3231
|
}
|
|
3169
3232
|
|
|
3170
3233
|
// src/molecules/time-select.tsx
|
|
3171
|
-
var
|
|
3234
|
+
var import_react29 = require("react");
|
|
3172
3235
|
var import_date_fns2 = require("date-fns");
|
|
3173
3236
|
|
|
3174
3237
|
// src/utils/get-cell-align.ts
|
|
@@ -3240,7 +3303,7 @@ var getTimeOption = (time) => {
|
|
|
3240
3303
|
};
|
|
3241
3304
|
|
|
3242
3305
|
// src/molecules/time-select.tsx
|
|
3243
|
-
var
|
|
3306
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3244
3307
|
var getOptionValue = (date, timeValue) => {
|
|
3245
3308
|
if (date && timeValue) {
|
|
3246
3309
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -3260,31 +3323,31 @@ function TimeSelect(_a) {
|
|
|
3260
3323
|
"minTime",
|
|
3261
3324
|
"time"
|
|
3262
3325
|
]);
|
|
3263
|
-
const timeOptions = (0,
|
|
3326
|
+
const timeOptions = (0, import_react29.useMemo)(() => {
|
|
3264
3327
|
return getTimeOptions();
|
|
3265
3328
|
}, []);
|
|
3266
|
-
const [minOption, maxOption] = (0,
|
|
3329
|
+
const [minOption, maxOption] = (0, import_react29.useMemo)(() => {
|
|
3267
3330
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
3268
3331
|
}, [maxTime, minTime, time]);
|
|
3269
|
-
return /* @__PURE__ */ (0,
|
|
3270
|
-
/* @__PURE__ */ (0,
|
|
3271
|
-
/* @__PURE__ */ (0,
|
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
3333
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
3334
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
3272
3335
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
3273
3336
|
if (!visible) {
|
|
3274
3337
|
return null;
|
|
3275
3338
|
}
|
|
3276
|
-
return /* @__PURE__ */ (0,
|
|
3339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Select.Item, { value: option, children: option }, option);
|
|
3277
3340
|
}) })
|
|
3278
3341
|
] }));
|
|
3279
3342
|
}
|
|
3280
3343
|
|
|
3281
3344
|
// src/molecules/radio-button-card.tsx
|
|
3282
|
-
var
|
|
3283
|
-
var
|
|
3284
|
-
var RadioCardContext = (0,
|
|
3285
|
-
function
|
|
3286
|
-
const [value, setValue] = (0,
|
|
3287
|
-
const onValueChange = (0,
|
|
3345
|
+
var import_react30 = require("react");
|
|
3346
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3347
|
+
var RadioCardContext = (0, import_react30.createContext)({});
|
|
3348
|
+
function Root12(props) {
|
|
3349
|
+
const [value, setValue] = (0, import_react30.useState)(props.value || props.defaultValue);
|
|
3350
|
+
const onValueChange = (0, import_react30.useCallback)(
|
|
3288
3351
|
(v) => {
|
|
3289
3352
|
var _a;
|
|
3290
3353
|
setValue(v);
|
|
@@ -3292,26 +3355,26 @@ function Root10(props) {
|
|
|
3292
3355
|
},
|
|
3293
3356
|
[props]
|
|
3294
3357
|
);
|
|
3295
|
-
return /* @__PURE__ */ (0,
|
|
3358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
3296
3359
|
}
|
|
3297
|
-
function
|
|
3360
|
+
function Item2(_a) {
|
|
3298
3361
|
var _b = _a, {
|
|
3299
3362
|
children
|
|
3300
3363
|
} = _b, itemRest = __objRest(_b, [
|
|
3301
3364
|
"children"
|
|
3302
3365
|
]);
|
|
3303
|
-
const _a2 = (0,
|
|
3366
|
+
const _a2 = (0, import_react30.useContext)(RadioCardContext), {
|
|
3304
3367
|
value,
|
|
3305
3368
|
justify,
|
|
3306
|
-
RadioWrapper =
|
|
3369
|
+
RadioWrapper = import_react30.Fragment
|
|
3307
3370
|
} = _a2, rootRest = __objRest(_a2, [
|
|
3308
3371
|
"value",
|
|
3309
3372
|
"justify",
|
|
3310
3373
|
"RadioWrapper"
|
|
3311
3374
|
]);
|
|
3312
|
-
return /* @__PURE__ */ (0,
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
3313
3376
|
children,
|
|
3314
|
-
/* @__PURE__ */ (0,
|
|
3377
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3315
3378
|
import_themes32.Radio,
|
|
3316
3379
|
{
|
|
3317
3380
|
checked: itemRest.value === value,
|
|
@@ -3322,30 +3385,30 @@ function Item(_a) {
|
|
|
3322
3385
|
] }) }));
|
|
3323
3386
|
}
|
|
3324
3387
|
var RadioButtonCard = {
|
|
3325
|
-
Root:
|
|
3326
|
-
Item
|
|
3388
|
+
Root: Root12,
|
|
3389
|
+
Item: Item2
|
|
3327
3390
|
};
|
|
3328
3391
|
|
|
3329
3392
|
// src/molecules/download-card.tsx
|
|
3330
3393
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
3331
|
-
var
|
|
3394
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3332
3395
|
function DownloadCard({
|
|
3333
3396
|
fileName,
|
|
3334
3397
|
url,
|
|
3335
3398
|
createdAt,
|
|
3336
3399
|
size
|
|
3337
3400
|
}) {
|
|
3338
|
-
return /* @__PURE__ */ (0,
|
|
3401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3339
3402
|
import_themes18.IconButton,
|
|
3340
3403
|
{
|
|
3341
3404
|
mt: "3",
|
|
3342
3405
|
size: "4",
|
|
3343
3406
|
style: { width: "100%", height: 56 },
|
|
3344
3407
|
variant: "soft",
|
|
3345
|
-
children: /* @__PURE__ */ (0,
|
|
3346
|
-
/* @__PURE__ */ (0,
|
|
3347
|
-
/* @__PURE__ */ (0,
|
|
3348
|
-
/* @__PURE__ */ (0,
|
|
3408
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons7.DownloadIcon, { height: 20, width: 20 }) }),
|
|
3410
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
3411
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3349
3412
|
Typo,
|
|
3350
3413
|
{
|
|
3351
3414
|
style: {
|
|
@@ -3355,7 +3418,7 @@ function DownloadCard({
|
|
|
3355
3418
|
children: fileName
|
|
3356
3419
|
}
|
|
3357
3420
|
),
|
|
3358
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
3359
3422
|
] })
|
|
3360
3423
|
] })
|
|
3361
3424
|
}
|
|
@@ -3363,22 +3426,22 @@ function DownloadCard({
|
|
|
3363
3426
|
}
|
|
3364
3427
|
|
|
3365
3428
|
// src/molecules/ghost-post.tsx
|
|
3366
|
-
var
|
|
3429
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3367
3430
|
function GhostPost(props) {
|
|
3368
3431
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
3369
|
-
return /* @__PURE__ */ (0,
|
|
3432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3370
3433
|
ThemeProvider,
|
|
3371
3434
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
3372
3435
|
accentColor: "iris",
|
|
3373
3436
|
scaling: "110%",
|
|
3374
3437
|
style: {},
|
|
3375
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3438
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3376
3439
|
"div",
|
|
3377
3440
|
{
|
|
3378
3441
|
className: "gh-content",
|
|
3379
3442
|
dangerouslySetInnerHTML: { __html: html }
|
|
3380
3443
|
}
|
|
3381
|
-
) }) : /* @__PURE__ */ (0,
|
|
3444
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3382
3445
|
import_themes22.Flex,
|
|
3383
3446
|
{
|
|
3384
3447
|
align: "center",
|
|
@@ -3388,8 +3451,8 @@ function GhostPost(props) {
|
|
|
3388
3451
|
justify: "center",
|
|
3389
3452
|
width: "100%",
|
|
3390
3453
|
children: [
|
|
3391
|
-
/* @__PURE__ */ (0,
|
|
3392
|
-
/* @__PURE__ */ (0,
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
3455
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3393
3456
|
Heading2,
|
|
3394
3457
|
{
|
|
3395
3458
|
align: "center",
|
|
@@ -3400,7 +3463,7 @@ function GhostPost(props) {
|
|
|
3400
3463
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3401
3464
|
}
|
|
3402
3465
|
),
|
|
3403
|
-
/* @__PURE__ */ (0,
|
|
3466
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3404
3467
|
]
|
|
3405
3468
|
}
|
|
3406
3469
|
)
|
|
@@ -3409,9 +3472,9 @@ function GhostPost(props) {
|
|
|
3409
3472
|
}
|
|
3410
3473
|
|
|
3411
3474
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
3412
|
-
var
|
|
3413
|
-
var
|
|
3414
|
-
var CurriculumContext = (0,
|
|
3475
|
+
var import_react31 = require("react");
|
|
3476
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3477
|
+
var CurriculumContext = (0, import_react31.createContext)(
|
|
3415
3478
|
void 0
|
|
3416
3479
|
);
|
|
3417
3480
|
function CurriculumProvider(props) {
|
|
@@ -3427,8 +3490,8 @@ function CurriculumProvider(props) {
|
|
|
3427
3490
|
onActionButtonClick,
|
|
3428
3491
|
initialSelectedIndex
|
|
3429
3492
|
} = props;
|
|
3430
|
-
const sidebarRef = (0,
|
|
3431
|
-
const scrollNavItem = (0,
|
|
3493
|
+
const sidebarRef = (0, import_react31.useRef)(null);
|
|
3494
|
+
const scrollNavItem = (0, import_react31.useCallback)((index) => {
|
|
3432
3495
|
var _a;
|
|
3433
3496
|
const element = (_a = sidebarRef.current) == null ? void 0 : _a.querySelector(
|
|
3434
3497
|
`[data-curriculum-item-index="${index}"]`
|
|
@@ -3438,14 +3501,14 @@ function CurriculumProvider(props) {
|
|
|
3438
3501
|
}
|
|
3439
3502
|
}, []);
|
|
3440
3503
|
const list = curriculum.contents.list;
|
|
3441
|
-
const selectableIndexes = (0,
|
|
3504
|
+
const selectableIndexes = (0, import_react31.useMemo)(
|
|
3442
3505
|
() => list.map((item, i) => item.type !== "sectionTitle" ? i : null).filter((i) => i !== null),
|
|
3443
3506
|
[list]
|
|
3444
3507
|
);
|
|
3445
|
-
const [selectedIndexState, setSelectedIndexState] = (0,
|
|
3508
|
+
const [selectedIndexState, setSelectedIndexState] = (0, import_react31.useState)(
|
|
3446
3509
|
initialSelectedIndex != null ? initialSelectedIndex : selectableIndexes[0]
|
|
3447
3510
|
);
|
|
3448
|
-
const setSelectedIndex = (0,
|
|
3511
|
+
const setSelectedIndex = (0, import_react31.useCallback)(
|
|
3449
3512
|
(idx) => {
|
|
3450
3513
|
if (selectableIndexes.includes(idx)) {
|
|
3451
3514
|
setSelectedIndexState(idx);
|
|
@@ -3458,13 +3521,13 @@ function CurriculumProvider(props) {
|
|
|
3458
3521
|
},
|
|
3459
3522
|
[selectableIndexes]
|
|
3460
3523
|
);
|
|
3461
|
-
const selectablePos = (0,
|
|
3524
|
+
const selectablePos = (0, import_react31.useMemo)(
|
|
3462
3525
|
() => selectableIndexes.indexOf(selectedIndexState),
|
|
3463
3526
|
[selectableIndexes, selectedIndexState]
|
|
3464
3527
|
);
|
|
3465
3528
|
const hasPrev = selectablePos > 0;
|
|
3466
3529
|
const hasNext = selectablePos < selectableIndexes.length - 1;
|
|
3467
|
-
const selectPrev = (0,
|
|
3530
|
+
const selectPrev = (0, import_react31.useCallback)(
|
|
3468
3531
|
(cb) => {
|
|
3469
3532
|
setSelectedIndexState((cur) => {
|
|
3470
3533
|
let prevIndex = cur;
|
|
@@ -3478,7 +3541,7 @@ function CurriculumProvider(props) {
|
|
|
3478
3541
|
},
|
|
3479
3542
|
[selectableIndexes]
|
|
3480
3543
|
);
|
|
3481
|
-
const selectNext = (0,
|
|
3544
|
+
const selectNext = (0, import_react31.useCallback)(
|
|
3482
3545
|
(cb) => {
|
|
3483
3546
|
setSelectedIndexState((cur) => {
|
|
3484
3547
|
let nextIndex = cur;
|
|
@@ -3492,25 +3555,25 @@ function CurriculumProvider(props) {
|
|
|
3492
3555
|
},
|
|
3493
3556
|
[selectableIndexes]
|
|
3494
3557
|
);
|
|
3495
|
-
const selectedId = (0,
|
|
3558
|
+
const selectedId = (0, import_react31.useMemo)(
|
|
3496
3559
|
() => {
|
|
3497
3560
|
var _a, _b;
|
|
3498
3561
|
return (_b = (_a = list[selectedIndexState]) == null ? void 0 : _a.uuid) != null ? _b : "";
|
|
3499
3562
|
},
|
|
3500
3563
|
[list, selectedIndexState]
|
|
3501
3564
|
);
|
|
3502
|
-
const selectedItem = (0,
|
|
3565
|
+
const selectedItem = (0, import_react31.useMemo)(() => {
|
|
3503
3566
|
return list[selectedIndexState];
|
|
3504
3567
|
}, [list, selectedIndexState]);
|
|
3505
|
-
const selectedSectionTitle = (0,
|
|
3568
|
+
const selectedSectionTitle = (0, import_react31.useMemo)(() => {
|
|
3506
3569
|
var _a;
|
|
3507
3570
|
const prevItems = list.slice(0, selectedIndexState).reverse();
|
|
3508
3571
|
return (_a = prevItems.find((item) => item.type === "sectionTitle")) != null ? _a : null;
|
|
3509
3572
|
}, [list, selectedIndexState]);
|
|
3510
|
-
(0,
|
|
3573
|
+
(0, import_react31.useEffect)(() => {
|
|
3511
3574
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(selectedItem);
|
|
3512
3575
|
}, [selectedItem]);
|
|
3513
|
-
return /* @__PURE__ */ (0,
|
|
3576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CurriculumContext.Provider, { value: {
|
|
3514
3577
|
curriculum,
|
|
3515
3578
|
scrollNavItem,
|
|
3516
3579
|
selectedIndex: selectedIndexState,
|
|
@@ -3532,7 +3595,7 @@ function CurriculumProvider(props) {
|
|
|
3532
3595
|
}, children });
|
|
3533
3596
|
}
|
|
3534
3597
|
function useCurriculumContext() {
|
|
3535
|
-
const ctx = (0,
|
|
3598
|
+
const ctx = (0, import_react31.useContext)(CurriculumContext);
|
|
3536
3599
|
if (!ctx)
|
|
3537
3600
|
throw new Error(
|
|
3538
3601
|
"useCurriculumContext must be used within CurriculumProvider"
|
|
@@ -3541,8 +3604,8 @@ function useCurriculumContext() {
|
|
|
3541
3604
|
}
|
|
3542
3605
|
|
|
3543
3606
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3544
|
-
var
|
|
3545
|
-
var
|
|
3607
|
+
var import_react32 = require("react");
|
|
3608
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3546
3609
|
function CurriculumSubNav() {
|
|
3547
3610
|
const {
|
|
3548
3611
|
selectedItem,
|
|
@@ -3553,17 +3616,17 @@ function CurriculumSubNav() {
|
|
|
3553
3616
|
selectNext,
|
|
3554
3617
|
scrollNavItem
|
|
3555
3618
|
} = useCurriculumContext();
|
|
3556
|
-
const onClickPrev = (0,
|
|
3619
|
+
const onClickPrev = (0, import_react32.useCallback)(() => {
|
|
3557
3620
|
selectPrev((moveIndex) => {
|
|
3558
3621
|
scrollNavItem(moveIndex.toString());
|
|
3559
3622
|
});
|
|
3560
3623
|
}, [selectPrev, scrollNavItem]);
|
|
3561
|
-
const onClickNext = (0,
|
|
3624
|
+
const onClickNext = (0, import_react32.useCallback)(() => {
|
|
3562
3625
|
selectNext((moveIndex) => {
|
|
3563
3626
|
scrollNavItem(moveIndex.toString());
|
|
3564
3627
|
});
|
|
3565
3628
|
}, [selectNext, scrollNavItem]);
|
|
3566
|
-
return /* @__PURE__ */ (0,
|
|
3629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3567
3630
|
import_themes23.Grid,
|
|
3568
3631
|
{
|
|
3569
3632
|
align: "center",
|
|
@@ -3573,44 +3636,44 @@ function CurriculumSubNav() {
|
|
|
3573
3636
|
py: "2",
|
|
3574
3637
|
rows: "auto",
|
|
3575
3638
|
children: [
|
|
3576
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
3639
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3577
3640
|
import_themes18.IconButton,
|
|
3578
3641
|
{
|
|
3579
3642
|
color: "gray",
|
|
3580
3643
|
onClick: onClickPrev,
|
|
3581
3644
|
size: { initial: "3", md: "4" },
|
|
3582
3645
|
variant: "ghost",
|
|
3583
|
-
children: /* @__PURE__ */ (0,
|
|
3646
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons2.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3584
3647
|
}
|
|
3585
|
-
) : /* @__PURE__ */ (0,
|
|
3586
|
-
/* @__PURE__ */ (0,
|
|
3587
|
-
/* @__PURE__ */ (0,
|
|
3588
|
-
/* @__PURE__ */ (0,
|
|
3589
|
-
/* @__PURE__ */ (0,
|
|
3648
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, {}),
|
|
3649
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes6.Box, { width: "100%", children: [
|
|
3650
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
3651
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
3652
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { as: "p", color: "gray", mt: "1", style: { textOverflow: "ellipsis" }, variant: "caption", children: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title })
|
|
3590
3653
|
] }),
|
|
3591
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
3654
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3592
3655
|
import_themes18.IconButton,
|
|
3593
3656
|
{
|
|
3594
3657
|
color: "gray",
|
|
3595
3658
|
onClick: onClickNext,
|
|
3596
3659
|
size: { initial: "3", md: "4" },
|
|
3597
3660
|
variant: "ghost",
|
|
3598
|
-
children: /* @__PURE__ */ (0,
|
|
3661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons2.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3599
3662
|
}
|
|
3600
|
-
) : /* @__PURE__ */ (0,
|
|
3663
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, {})
|
|
3601
3664
|
]
|
|
3602
3665
|
}
|
|
3603
3666
|
);
|
|
3604
3667
|
}
|
|
3605
3668
|
|
|
3606
3669
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3607
|
-
var
|
|
3608
|
-
var
|
|
3670
|
+
var import_react33 = require("react");
|
|
3671
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3609
3672
|
function CurriculumVideo(props) {
|
|
3610
3673
|
const { item } = props;
|
|
3611
3674
|
const { url } = item;
|
|
3612
|
-
const [isLoading, setIsLoading] = (0,
|
|
3613
|
-
return /* @__PURE__ */ (0,
|
|
3675
|
+
const [isLoading, setIsLoading] = (0, import_react33.useState)(true);
|
|
3676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3614
3677
|
import_themes22.Flex,
|
|
3615
3678
|
{
|
|
3616
3679
|
align: "center",
|
|
@@ -3622,7 +3685,7 @@ function CurriculumVideo(props) {
|
|
|
3622
3685
|
position: "relative"
|
|
3623
3686
|
},
|
|
3624
3687
|
children: [
|
|
3625
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
3688
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3626
3689
|
import_themes22.Flex,
|
|
3627
3690
|
{
|
|
3628
3691
|
align: "center",
|
|
@@ -3637,10 +3700,10 @@ function CurriculumVideo(props) {
|
|
|
3637
3700
|
color: "white"
|
|
3638
3701
|
},
|
|
3639
3702
|
width: "100%",
|
|
3640
|
-
children: /* @__PURE__ */ (0,
|
|
3703
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes49.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
3641
3704
|
}
|
|
3642
3705
|
) : null,
|
|
3643
|
-
/* @__PURE__ */ (0,
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3644
3707
|
"iframe",
|
|
3645
3708
|
{
|
|
3646
3709
|
allowFullScreen: true,
|
|
@@ -3662,16 +3725,16 @@ function CurriculumVideo(props) {
|
|
|
3662
3725
|
var curriculum_video_default = CurriculumVideo;
|
|
3663
3726
|
|
|
3664
3727
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
3665
|
-
var
|
|
3728
|
+
var import_react36 = require("react");
|
|
3666
3729
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
3667
3730
|
|
|
3668
3731
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/curriculum-review-context.tsx
|
|
3669
|
-
var
|
|
3732
|
+
var import_react34 = require("react");
|
|
3670
3733
|
var import_formik = require("formik");
|
|
3671
3734
|
var import_lodash_es = require("lodash-es");
|
|
3672
3735
|
var Yup = __toESM(require("yup"), 1);
|
|
3673
|
-
var
|
|
3674
|
-
var CurriculumReviewContext = (0,
|
|
3736
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3737
|
+
var CurriculumReviewContext = (0, import_react34.createContext)(void 0);
|
|
3675
3738
|
function getInitialAnswers(defaultValues, questions) {
|
|
3676
3739
|
return questions.reduce((acc, q) => {
|
|
3677
3740
|
var _a;
|
|
@@ -3709,7 +3772,7 @@ function CurriculumReviewProvider({
|
|
|
3709
3772
|
onReviewValueChange,
|
|
3710
3773
|
done
|
|
3711
3774
|
}) {
|
|
3712
|
-
const fixedReviewContents = (0,
|
|
3775
|
+
const fixedReviewContents = (0, import_react34.useMemo)(() => {
|
|
3713
3776
|
const result = (0, import_lodash_es.cloneDeep)(_reviewContents);
|
|
3714
3777
|
result.questions = result.questions.map((question) => {
|
|
3715
3778
|
if (question.type === "question_satisfaction_option") {
|
|
@@ -3726,8 +3789,8 @@ function CurriculumReviewProvider({
|
|
|
3726
3789
|
curriculum.contents.satisfactionTextMeta,
|
|
3727
3790
|
_reviewContents
|
|
3728
3791
|
]);
|
|
3729
|
-
const [step, setStep] = (0,
|
|
3730
|
-
const answersYupSchema = (0,
|
|
3792
|
+
const [step, setStep] = (0, import_react34.useState)(0);
|
|
3793
|
+
const answersYupSchema = (0, import_react34.useMemo)(
|
|
3731
3794
|
() => createAnswersYupSchema(fixedReviewContents.questions),
|
|
3732
3795
|
[fixedReviewContents.questions]
|
|
3733
3796
|
);
|
|
@@ -3752,10 +3815,10 @@ function CurriculumReviewProvider({
|
|
|
3752
3815
|
validateOnChange: true
|
|
3753
3816
|
});
|
|
3754
3817
|
const questions = fixedReviewContents.questions;
|
|
3755
|
-
const handleStart = (0,
|
|
3818
|
+
const handleStart = (0, import_react34.useCallback)(() => {
|
|
3756
3819
|
setStep(1);
|
|
3757
3820
|
}, []);
|
|
3758
|
-
const handleNext = (0,
|
|
3821
|
+
const handleNext = (0, import_react34.useCallback)(() => {
|
|
3759
3822
|
if (step < questions.length) {
|
|
3760
3823
|
setStep(step + 1);
|
|
3761
3824
|
} else {
|
|
@@ -3763,27 +3826,27 @@ function CurriculumReviewProvider({
|
|
|
3763
3826
|
setStep(questions.length + 1);
|
|
3764
3827
|
}
|
|
3765
3828
|
}, [step, questions.length, formik]);
|
|
3766
|
-
const handlePrev = (0,
|
|
3829
|
+
const handlePrev = (0, import_react34.useCallback)(() => {
|
|
3767
3830
|
if (step > 1) {
|
|
3768
3831
|
setStep(step - 1);
|
|
3769
3832
|
}
|
|
3770
3833
|
}, [step]);
|
|
3771
|
-
const onClickReviewMyAnswer = (0,
|
|
3834
|
+
const onClickReviewMyAnswer = (0, import_react34.useCallback)(() => {
|
|
3772
3835
|
setStep(0);
|
|
3773
3836
|
}, []);
|
|
3774
|
-
const handleSubmit = (0,
|
|
3837
|
+
const handleSubmit = (0, import_react34.useCallback)(() => {
|
|
3775
3838
|
formik.handleSubmit();
|
|
3776
3839
|
}, [formik]);
|
|
3777
|
-
const currentQuestion = (0,
|
|
3840
|
+
const currentQuestion = (0, import_react34.useMemo)(() => {
|
|
3778
3841
|
return step > 0 && step <= questions.length ? questions[step - 1] : void 0;
|
|
3779
3842
|
}, [step, questions]);
|
|
3780
|
-
const currentAnswer = (0,
|
|
3843
|
+
const currentAnswer = (0, import_react34.useMemo)(() => {
|
|
3781
3844
|
return currentQuestion ? formik.values.answers[currentQuestion.uuid] : "";
|
|
3782
3845
|
}, [currentQuestion, formik.values.answers]);
|
|
3783
|
-
const currentError = (0,
|
|
3846
|
+
const currentError = (0, import_react34.useMemo)(() => {
|
|
3784
3847
|
return currentQuestion && formik.errors.answers && formik.errors.answers[currentQuestion.uuid];
|
|
3785
3848
|
}, [currentQuestion, formik.errors.answers]);
|
|
3786
|
-
const handleAnswerChange = (0,
|
|
3849
|
+
const handleAnswerChange = (0, import_react34.useCallback)(
|
|
3787
3850
|
(value) => {
|
|
3788
3851
|
if (currentQuestion) {
|
|
3789
3852
|
void formik.setFieldValue(`answers.${currentQuestion.uuid}`, value);
|
|
@@ -3791,7 +3854,7 @@ function CurriculumReviewProvider({
|
|
|
3791
3854
|
},
|
|
3792
3855
|
[currentQuestion, formik]
|
|
3793
3856
|
);
|
|
3794
|
-
(0,
|
|
3857
|
+
(0, import_react34.useEffect)(() => {
|
|
3795
3858
|
if (currentQuestion) {
|
|
3796
3859
|
onReviewValueChange({
|
|
3797
3860
|
reviewId: currentQuestion.uuid,
|
|
@@ -3799,7 +3862,7 @@ function CurriculumReviewProvider({
|
|
|
3799
3862
|
});
|
|
3800
3863
|
}
|
|
3801
3864
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
3802
|
-
return /* @__PURE__ */ (0,
|
|
3865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3803
3866
|
CurriculumReviewContext.Provider,
|
|
3804
3867
|
{
|
|
3805
3868
|
value: {
|
|
@@ -3826,7 +3889,7 @@ function CurriculumReviewProvider({
|
|
|
3826
3889
|
);
|
|
3827
3890
|
}
|
|
3828
3891
|
function useCurriculumReviewContext() {
|
|
3829
|
-
const context = (0,
|
|
3892
|
+
const context = (0, import_react34.useContext)(CurriculumReviewContext);
|
|
3830
3893
|
if (!context) {
|
|
3831
3894
|
throw new Error(
|
|
3832
3895
|
"useCurriculumReviewContext must be used within a CurriculumReviewProvider"
|
|
@@ -3913,7 +3976,7 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
3913
3976
|
};
|
|
3914
3977
|
|
|
3915
3978
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
3916
|
-
var
|
|
3979
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3917
3980
|
var renderPreviewContent = (args) => {
|
|
3918
3981
|
const { question } = args;
|
|
3919
3982
|
const Icon = getCurriculumIcon({
|
|
@@ -3926,7 +3989,7 @@ var renderPreviewContent = (args) => {
|
|
|
3926
3989
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
3927
3990
|
].filter(Boolean).join(" | ");
|
|
3928
3991
|
};
|
|
3929
|
-
return /* @__PURE__ */ (0,
|
|
3992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3930
3993
|
import_themes23.Grid,
|
|
3931
3994
|
{
|
|
3932
3995
|
columns: "16px 1fr",
|
|
@@ -3935,10 +3998,10 @@ var renderPreviewContent = (args) => {
|
|
|
3935
3998
|
py: "2",
|
|
3936
3999
|
width: "100%",
|
|
3937
4000
|
children: [
|
|
3938
|
-
/* @__PURE__ */ (0,
|
|
3939
|
-
/* @__PURE__ */ (0,
|
|
3940
|
-
/* @__PURE__ */ (0,
|
|
3941
|
-
/* @__PURE__ */ (0,
|
|
4001
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes6.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
4002
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes6.Box, { children: [
|
|
4003
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
4004
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3942
4005
|
] })
|
|
3943
4006
|
]
|
|
3944
4007
|
},
|
|
@@ -3961,7 +4024,7 @@ var renderReviewContent = (args) => {
|
|
|
3961
4024
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
3962
4025
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3963
4026
|
const value = getReviewContentValue(question, answer);
|
|
3964
|
-
return /* @__PURE__ */ (0,
|
|
4027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3965
4028
|
import_themes23.Grid,
|
|
3966
4029
|
{
|
|
3967
4030
|
columns: "16px 1fr",
|
|
@@ -3970,10 +4033,10 @@ var renderReviewContent = (args) => {
|
|
|
3970
4033
|
py: "2",
|
|
3971
4034
|
width: "100%",
|
|
3972
4035
|
children: [
|
|
3973
|
-
/* @__PURE__ */ (0,
|
|
3974
|
-
/* @__PURE__ */ (0,
|
|
3975
|
-
/* @__PURE__ */ (0,
|
|
3976
|
-
/* @__PURE__ */ (0,
|
|
4036
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { color }) }),
|
|
4037
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes6.Box, { children: [
|
|
4038
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
4039
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3977
4040
|
] })
|
|
3978
4041
|
]
|
|
3979
4042
|
},
|
|
@@ -3982,7 +4045,7 @@ var renderReviewContent = (args) => {
|
|
|
3982
4045
|
};
|
|
3983
4046
|
function StartReview({ onStart }) {
|
|
3984
4047
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
4048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3986
4049
|
import_themes22.Flex,
|
|
3987
4050
|
{
|
|
3988
4051
|
align: "center",
|
|
@@ -3990,7 +4053,7 @@ function StartReview({ onStart }) {
|
|
|
3990
4053
|
height: "100%",
|
|
3991
4054
|
justify: "center",
|
|
3992
4055
|
width: "100%",
|
|
3993
|
-
children: /* @__PURE__ */ (0,
|
|
4056
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3994
4057
|
import_themes22.Flex,
|
|
3995
4058
|
{
|
|
3996
4059
|
align: "center",
|
|
@@ -4003,21 +4066,21 @@ function StartReview({ onStart }) {
|
|
|
4003
4066
|
px: { initial: "4", sm: "0" },
|
|
4004
4067
|
width: "100%",
|
|
4005
4068
|
children: [
|
|
4006
|
-
/* @__PURE__ */ (0,
|
|
4007
|
-
/* @__PURE__ */ (0,
|
|
4008
|
-
/* @__PURE__ */ (0,
|
|
4009
|
-
/* @__PURE__ */ (0,
|
|
4010
|
-
/* @__PURE__ */ (0,
|
|
4069
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
4070
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
4071
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes39.Separator, { my: "4", style: { width: 100 } }),
|
|
4072
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
4073
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
4011
4074
|
" ",
|
|
4012
|
-
/* @__PURE__ */ (0,
|
|
4075
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { children: reviewContents.description })
|
|
4013
4076
|
] }),
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes6.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
4015
4078
|
if (done) {
|
|
4016
4079
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
4017
4080
|
}
|
|
4018
4081
|
return renderPreviewContent({ question });
|
|
4019
4082
|
}) }),
|
|
4020
|
-
/* @__PURE__ */ (0,
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
4021
4084
|
]
|
|
4022
4085
|
}
|
|
4023
4086
|
)
|
|
@@ -4027,13 +4090,13 @@ function StartReview({ onStart }) {
|
|
|
4027
4090
|
var start_review_default = StartReview;
|
|
4028
4091
|
|
|
4029
4092
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
4030
|
-
var
|
|
4093
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4031
4094
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
4032
4095
|
function CompleteReview(props) {
|
|
4033
4096
|
const { onClickReviewMyAnswer } = props;
|
|
4034
4097
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
4035
4098
|
const { reviewMeta } = curriculum.contents;
|
|
4036
|
-
return /* @__PURE__ */ (0,
|
|
4099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4037
4100
|
import_themes22.Flex,
|
|
4038
4101
|
{
|
|
4039
4102
|
align: "center",
|
|
@@ -4046,9 +4109,9 @@ function CompleteReview(props) {
|
|
|
4046
4109
|
my: "6",
|
|
4047
4110
|
width: "100%",
|
|
4048
4111
|
children: [
|
|
4049
|
-
/* @__PURE__ */ (0,
|
|
4050
|
-
/* @__PURE__ */ (0,
|
|
4051
|
-
/* @__PURE__ */ (0,
|
|
4112
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes22.Flex, { align: "center", direction: "column", children: [
|
|
4113
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { mb: "6", variant: "heading5", weight: "regular", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewTopTitle) || "\uC751\uB2F5\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uC81C\uCD9C\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
4114
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4052
4115
|
"img",
|
|
4053
4116
|
{
|
|
4054
4117
|
alt: "complete-review",
|
|
@@ -4057,19 +4120,19 @@ function CompleteReview(props) {
|
|
|
4057
4120
|
width: 118
|
|
4058
4121
|
}
|
|
4059
4122
|
),
|
|
4060
|
-
/* @__PURE__ */ (0,
|
|
4061
|
-
/* @__PURE__ */ (0,
|
|
4062
|
-
/* @__PURE__ */ (0,
|
|
4123
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
4124
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { variant: "heading5", children: reviewContents.title }),
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Typo, { align: "center", color: "gray", mt: "6", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewDescription) || `\uC774\uBC88 \uD559\uC2B5\uC774 \uB9AC\uB354\uC2ED\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4.
|
|
4063
4126
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
4064
4127
|
] }),
|
|
4065
|
-
/* @__PURE__ */ (0,
|
|
4066
|
-
/* @__PURE__ */ (0,
|
|
4128
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes23.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
4129
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
4067
4130
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
4068
|
-
/* @__PURE__ */ (0,
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.ResetIcon, {})
|
|
4069
4132
|
] }),
|
|
4070
|
-
/* @__PURE__ */ (0,
|
|
4133
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
4071
4134
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
4072
|
-
/* @__PURE__ */ (0,
|
|
4135
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.HomeIcon, {})
|
|
4073
4136
|
] })
|
|
4074
4137
|
] })
|
|
4075
4138
|
]
|
|
@@ -4079,9 +4142,9 @@ function CompleteReview(props) {
|
|
|
4079
4142
|
var complete_review_default = CompleteReview;
|
|
4080
4143
|
|
|
4081
4144
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
4082
|
-
var
|
|
4145
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4083
4146
|
function AlignCenter(props) {
|
|
4084
|
-
return /* @__PURE__ */ (0,
|
|
4147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4085
4148
|
import_themes22.Flex,
|
|
4086
4149
|
__spreadValues({
|
|
4087
4150
|
align: "center",
|
|
@@ -4096,7 +4159,7 @@ function ReviewQuestionLayout({
|
|
|
4096
4159
|
Body,
|
|
4097
4160
|
Footer
|
|
4098
4161
|
}) {
|
|
4099
|
-
return /* @__PURE__ */ (0,
|
|
4162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4100
4163
|
import_themes23.Grid,
|
|
4101
4164
|
{
|
|
4102
4165
|
align: "center",
|
|
@@ -4109,18 +4172,18 @@ function ReviewQuestionLayout({
|
|
|
4109
4172
|
},
|
|
4110
4173
|
width: "100%",
|
|
4111
4174
|
children: [
|
|
4112
|
-
/* @__PURE__ */ (0,
|
|
4113
|
-
/* @__PURE__ */ (0,
|
|
4114
|
-
/* @__PURE__ */ (0,
|
|
4175
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
4176
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4115
4178
|
AlignCenter,
|
|
4116
4179
|
{
|
|
4117
4180
|
p: "3",
|
|
4118
4181
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
4119
|
-
children: /* @__PURE__ */ (0,
|
|
4182
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
4120
4183
|
}
|
|
4121
4184
|
),
|
|
4122
|
-
/* @__PURE__ */ (0,
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4185
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4186
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
4124
4187
|
]
|
|
4125
4188
|
}
|
|
4126
4189
|
);
|
|
@@ -4128,14 +4191,14 @@ function ReviewQuestionLayout({
|
|
|
4128
4191
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
4129
4192
|
|
|
4130
4193
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
4131
|
-
var
|
|
4194
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4132
4195
|
function ReviewQuestionHeader({
|
|
4133
4196
|
index,
|
|
4134
4197
|
total
|
|
4135
4198
|
}) {
|
|
4136
4199
|
const { reviewContents } = useCurriculumReviewContext();
|
|
4137
|
-
return /* @__PURE__ */ (0,
|
|
4138
|
-
/* @__PURE__ */ (0,
|
|
4200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes6.Box, { height: "100%", width: "100%", children: [
|
|
4201
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes23.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4139
4202
|
Heading2,
|
|
4140
4203
|
{
|
|
4141
4204
|
mb: "3",
|
|
@@ -4144,22 +4207,22 @@ function ReviewQuestionHeader({
|
|
|
4144
4207
|
children: reviewContents.title
|
|
4145
4208
|
}
|
|
4146
4209
|
) }),
|
|
4147
|
-
/* @__PURE__ */ (0,
|
|
4148
|
-
/* @__PURE__ */ (0,
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4210
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes22.Flex, { justify: "between", mb: "2", width: "100%", children: [
|
|
4211
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: "\uC9C4\uD589 \uC0C1\uD669" }),
|
|
4212
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: [
|
|
4150
4213
|
index + 1,
|
|
4151
4214
|
" / ",
|
|
4152
4215
|
total,
|
|
4153
4216
|
" \uC644\uB8CC"
|
|
4154
4217
|
] })
|
|
4155
4218
|
] }),
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4219
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes30.Progress, { color: "iris", max: total, value: index + 1 })
|
|
4157
4220
|
] });
|
|
4158
4221
|
}
|
|
4159
4222
|
var review_question_header_default = ReviewQuestionHeader;
|
|
4160
4223
|
|
|
4161
4224
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
4162
|
-
var
|
|
4225
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4163
4226
|
function ReviewQuestionFooter({
|
|
4164
4227
|
index,
|
|
4165
4228
|
onNext,
|
|
@@ -4169,22 +4232,22 @@ function ReviewQuestionFooter({
|
|
|
4169
4232
|
onSubmit,
|
|
4170
4233
|
isLoading
|
|
4171
4234
|
}) {
|
|
4172
|
-
return /* @__PURE__ */ (0,
|
|
4173
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
4174
|
-
/* @__PURE__ */ (0,
|
|
4235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes23.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
4236
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
4237
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons2.ChevronLeftIcon, {}),
|
|
4175
4238
|
"\uC774\uC804\uC73C\uB85C"
|
|
4176
|
-
] }) : /* @__PURE__ */ (0,
|
|
4177
|
-
isLast ? /* @__PURE__ */ (0,
|
|
4178
|
-
/* @__PURE__ */ (0,
|
|
4239
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, {}),
|
|
4240
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
4241
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons2.PaperPlaneIcon, {}),
|
|
4179
4242
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
4180
|
-
] }) : /* @__PURE__ */ (0,
|
|
4243
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
4181
4244
|
Button,
|
|
4182
4245
|
{
|
|
4183
4246
|
disabled: isNextButtonDisabled,
|
|
4184
4247
|
onClick: onNext,
|
|
4185
4248
|
variant: "surface",
|
|
4186
4249
|
children: [
|
|
4187
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons2.ChevronRightIcon, {}),
|
|
4188
4251
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
4189
4252
|
]
|
|
4190
4253
|
}
|
|
@@ -4194,10 +4257,10 @@ function ReviewQuestionFooter({
|
|
|
4194
4257
|
var review_question_footer_default = ReviewQuestionFooter;
|
|
4195
4258
|
|
|
4196
4259
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4197
|
-
var
|
|
4260
|
+
var import_react35 = require("react");
|
|
4198
4261
|
|
|
4199
4262
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
4200
|
-
var
|
|
4263
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4201
4264
|
function ReviewQuestionContentHeader({
|
|
4202
4265
|
type,
|
|
4203
4266
|
title,
|
|
@@ -4205,9 +4268,9 @@ function ReviewQuestionContentHeader({
|
|
|
4205
4268
|
icon
|
|
4206
4269
|
}) {
|
|
4207
4270
|
const Icon = getCurriculumIcon({ type, icon });
|
|
4208
|
-
return /* @__PURE__ */ (0,
|
|
4209
|
-
/* @__PURE__ */ (0,
|
|
4210
|
-
/* @__PURE__ */ (0,
|
|
4271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes6.Box, { children: [
|
|
4272
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { gap: "2", mb: "3", children: [
|
|
4273
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4211
4274
|
Icon,
|
|
4212
4275
|
{
|
|
4213
4276
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -4215,32 +4278,32 @@ function ReviewQuestionContentHeader({
|
|
|
4215
4278
|
width: "16"
|
|
4216
4279
|
}
|
|
4217
4280
|
) }),
|
|
4218
|
-
/* @__PURE__ */ (0,
|
|
4281
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
4219
4282
|
] }),
|
|
4220
|
-
/* @__PURE__ */ (0,
|
|
4283
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
4221
4284
|
] });
|
|
4222
4285
|
}
|
|
4223
4286
|
|
|
4224
4287
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4225
|
-
var
|
|
4288
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4226
4289
|
var correctAnswerStyle = {
|
|
4227
4290
|
backgroundColor: "var(--green-a2)"
|
|
4228
4291
|
};
|
|
4229
4292
|
function ReviewQuestionRadio(props) {
|
|
4230
4293
|
const { question, answer, onChange } = props;
|
|
4231
|
-
const [isCheckAnswer, setIsCheckAnswer] = (0,
|
|
4232
|
-
const checkAnswer = (0,
|
|
4294
|
+
const [isCheckAnswer, setIsCheckAnswer] = (0, import_react35.useState)(false);
|
|
4295
|
+
const checkAnswer = (0, import_react35.useCallback)(() => {
|
|
4233
4296
|
setIsCheckAnswer(true);
|
|
4234
4297
|
}, []);
|
|
4235
4298
|
const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;
|
|
4236
4299
|
const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;
|
|
4237
|
-
const radioColor = (0,
|
|
4300
|
+
const radioColor = (0, import_react35.useMemo)(() => {
|
|
4238
4301
|
if (isCorrect) return "green";
|
|
4239
4302
|
if (isWrong) return "red";
|
|
4240
4303
|
return void 0;
|
|
4241
4304
|
}, [isCorrect, isWrong]);
|
|
4242
|
-
return /* @__PURE__ */ (0,
|
|
4243
|
-
/* @__PURE__ */ (0,
|
|
4305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4306
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4244
4307
|
ReviewQuestionContentHeader,
|
|
4245
4308
|
{
|
|
4246
4309
|
icon: question.icon,
|
|
@@ -4249,8 +4312,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4249
4312
|
type: question.type
|
|
4250
4313
|
}
|
|
4251
4314
|
) }),
|
|
4252
|
-
/* @__PURE__ */ (0,
|
|
4253
|
-
/* @__PURE__ */ (0,
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes23.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
4316
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes6.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4254
4317
|
RadioButtonCard.Root,
|
|
4255
4318
|
{
|
|
4256
4319
|
color: radioColor,
|
|
@@ -4262,7 +4325,7 @@ function ReviewQuestionRadio(props) {
|
|
|
4262
4325
|
position: "absolute"
|
|
4263
4326
|
},
|
|
4264
4327
|
value: answer,
|
|
4265
|
-
children: /* @__PURE__ */ (0,
|
|
4328
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes22.Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
4266
4329
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
4267
4330
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
4268
4331
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -4270,15 +4333,15 @@ function ReviewQuestionRadio(props) {
|
|
|
4270
4333
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
4271
4334
|
return {};
|
|
4272
4335
|
})();
|
|
4273
|
-
return /* @__PURE__ */ (0,
|
|
4336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4274
4337
|
RadioButtonCard.Item,
|
|
4275
4338
|
{
|
|
4276
4339
|
style,
|
|
4277
4340
|
value: i.toString(),
|
|
4278
|
-
children: /* @__PURE__ */ (0,
|
|
4279
|
-
/* @__PURE__ */ (0,
|
|
4280
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
4281
|
-
isThisOptionWrong ? /* @__PURE__ */ (0,
|
|
4341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes6.Box, { children: [
|
|
4342
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { as: "p", children: option.label }),
|
|
4343
|
+
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
4344
|
+
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
4282
4345
|
] })
|
|
4283
4346
|
},
|
|
4284
4347
|
`${option.label}-${i}`
|
|
@@ -4286,19 +4349,19 @@ function ReviewQuestionRadio(props) {
|
|
|
4286
4349
|
}) })
|
|
4287
4350
|
}
|
|
4288
4351
|
) }),
|
|
4289
|
-
/* @__PURE__ */ (0,
|
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes22.Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
4290
4353
|
] })
|
|
4291
4354
|
] });
|
|
4292
4355
|
}
|
|
4293
4356
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
4294
4357
|
|
|
4295
4358
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4296
|
-
var
|
|
4359
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4297
4360
|
function ReviewQuestionText(props) {
|
|
4298
4361
|
const { question, answer, onChange } = props;
|
|
4299
4362
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4300
4363
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4301
|
-
return /* @__PURE__ */ (0,
|
|
4364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4302
4365
|
Card,
|
|
4303
4366
|
{
|
|
4304
4367
|
size: "2",
|
|
@@ -4306,9 +4369,9 @@ function ReviewQuestionText(props) {
|
|
|
4306
4369
|
width: "100%",
|
|
4307
4370
|
height: "100%"
|
|
4308
4371
|
},
|
|
4309
|
-
children: /* @__PURE__ */ (0,
|
|
4310
|
-
/* @__PURE__ */ (0,
|
|
4311
|
-
/* @__PURE__ */ (0,
|
|
4372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes23.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4374
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4312
4375
|
ReviewQuestionContentHeader,
|
|
4313
4376
|
{
|
|
4314
4377
|
icon: question.icon,
|
|
@@ -4317,7 +4380,7 @@ function ReviewQuestionText(props) {
|
|
|
4317
4380
|
type: question.type
|
|
4318
4381
|
}
|
|
4319
4382
|
),
|
|
4320
|
-
/* @__PURE__ */ (0,
|
|
4383
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4321
4384
|
TextArea,
|
|
4322
4385
|
{
|
|
4323
4386
|
mt: "2",
|
|
@@ -4329,17 +4392,17 @@ function ReviewQuestionText(props) {
|
|
|
4329
4392
|
}
|
|
4330
4393
|
)
|
|
4331
4394
|
] }),
|
|
4332
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4333
|
-
/* @__PURE__ */ (0,
|
|
4334
|
-
question.minLengthInfoMessage ? /* @__PURE__ */ (0,
|
|
4395
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes6.Box, { mt: "2", children: [
|
|
4396
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
4397
|
+
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4335
4398
|
import_themes8.Callout.Root,
|
|
4336
4399
|
{
|
|
4337
4400
|
color: "iris",
|
|
4338
4401
|
mt: "2",
|
|
4339
4402
|
style: { alignItems: "center" },
|
|
4340
4403
|
children: [
|
|
4341
|
-
/* @__PURE__ */ (0,
|
|
4342
|
-
/* @__PURE__ */ (0,
|
|
4404
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes8.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons2.BellIcon, {}) }),
|
|
4405
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes8.Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
4343
4406
|
]
|
|
4344
4407
|
}
|
|
4345
4408
|
) : null
|
|
@@ -4351,12 +4414,12 @@ function ReviewQuestionText(props) {
|
|
|
4351
4414
|
var review_question_text_default = ReviewQuestionText;
|
|
4352
4415
|
|
|
4353
4416
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4354
|
-
var
|
|
4417
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4355
4418
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4356
4419
|
var _a, _b, _c;
|
|
4357
4420
|
const { question, answer, onChange } = props;
|
|
4358
|
-
return /* @__PURE__ */ (0,
|
|
4359
|
-
/* @__PURE__ */ (0,
|
|
4421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
|
|
4422
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4360
4423
|
ReviewQuestionContentHeader,
|
|
4361
4424
|
{
|
|
4362
4425
|
icon: question.icon,
|
|
@@ -4365,18 +4428,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4365
4428
|
type: question.type
|
|
4366
4429
|
}
|
|
4367
4430
|
) }),
|
|
4368
|
-
/* @__PURE__ */ (0,
|
|
4431
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes34.RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes22.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes34.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
4369
4432
|
] });
|
|
4370
4433
|
}
|
|
4371
4434
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4372
4435
|
|
|
4373
4436
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4374
|
-
var
|
|
4437
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4375
4438
|
function ReviewQuestionSatisfisText(props) {
|
|
4376
4439
|
var _a, _b;
|
|
4377
4440
|
const { question, answer, onChange } = props;
|
|
4378
|
-
return /* @__PURE__ */ (0,
|
|
4379
|
-
/* @__PURE__ */ (0,
|
|
4441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
4442
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4380
4443
|
ReviewQuestionContentHeader,
|
|
4381
4444
|
{
|
|
4382
4445
|
icon: question.icon,
|
|
@@ -4385,7 +4448,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4385
4448
|
type: question.type
|
|
4386
4449
|
}
|
|
4387
4450
|
),
|
|
4388
|
-
/* @__PURE__ */ (0,
|
|
4451
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4389
4452
|
TextArea,
|
|
4390
4453
|
{
|
|
4391
4454
|
mt: "2",
|
|
@@ -4403,11 +4466,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4403
4466
|
}
|
|
4404
4467
|
|
|
4405
4468
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4406
|
-
var
|
|
4469
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4407
4470
|
function ReviewQuestionBody(props) {
|
|
4408
4471
|
const { question, answer, error, onChange } = props;
|
|
4409
4472
|
if (question.type === "question_radio") {
|
|
4410
|
-
return /* @__PURE__ */ (0,
|
|
4473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4411
4474
|
review_question_radio_default,
|
|
4412
4475
|
{
|
|
4413
4476
|
answer,
|
|
@@ -4418,7 +4481,7 @@ function ReviewQuestionBody(props) {
|
|
|
4418
4481
|
);
|
|
4419
4482
|
}
|
|
4420
4483
|
if (question.type === "question_text") {
|
|
4421
|
-
return /* @__PURE__ */ (0,
|
|
4484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4422
4485
|
review_question_text_default,
|
|
4423
4486
|
{
|
|
4424
4487
|
answer,
|
|
@@ -4429,7 +4492,7 @@ function ReviewQuestionBody(props) {
|
|
|
4429
4492
|
);
|
|
4430
4493
|
}
|
|
4431
4494
|
if (question.type === "question_satisfaction_option") {
|
|
4432
|
-
return /* @__PURE__ */ (0,
|
|
4495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4433
4496
|
review_question_satisfaction_option_default,
|
|
4434
4497
|
{
|
|
4435
4498
|
answer,
|
|
@@ -4440,7 +4503,7 @@ function ReviewQuestionBody(props) {
|
|
|
4440
4503
|
);
|
|
4441
4504
|
}
|
|
4442
4505
|
if (question.type === "question_satisfaction_text") {
|
|
4443
|
-
return /* @__PURE__ */ (0,
|
|
4506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4444
4507
|
ReviewQuestionSatisfisText,
|
|
4445
4508
|
{
|
|
4446
4509
|
answer,
|
|
@@ -4455,7 +4518,7 @@ function ReviewQuestionBody(props) {
|
|
|
4455
4518
|
var review_question_body_default = ReviewQuestionBody;
|
|
4456
4519
|
|
|
4457
4520
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4458
|
-
var
|
|
4521
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4459
4522
|
function ReviewQuestion({
|
|
4460
4523
|
question,
|
|
4461
4524
|
index,
|
|
@@ -4470,10 +4533,10 @@ function ReviewQuestion({
|
|
|
4470
4533
|
onSubmit,
|
|
4471
4534
|
isLoading
|
|
4472
4535
|
}) {
|
|
4473
|
-
return /* @__PURE__ */ (0,
|
|
4536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4474
4537
|
review_question_layout_default,
|
|
4475
4538
|
{
|
|
4476
|
-
Body: /* @__PURE__ */ (0,
|
|
4539
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4477
4540
|
review_question_body_default,
|
|
4478
4541
|
{
|
|
4479
4542
|
answer,
|
|
@@ -4482,7 +4545,7 @@ function ReviewQuestion({
|
|
|
4482
4545
|
question
|
|
4483
4546
|
}
|
|
4484
4547
|
),
|
|
4485
|
-
Footer: /* @__PURE__ */ (0,
|
|
4548
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4486
4549
|
review_question_footer_default,
|
|
4487
4550
|
{
|
|
4488
4551
|
index,
|
|
@@ -4494,14 +4557,14 @@ function ReviewQuestion({
|
|
|
4494
4557
|
onSubmit
|
|
4495
4558
|
}
|
|
4496
4559
|
),
|
|
4497
|
-
Header: /* @__PURE__ */ (0,
|
|
4560
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(review_question_header_default, { index, total })
|
|
4498
4561
|
}
|
|
4499
4562
|
);
|
|
4500
4563
|
}
|
|
4501
4564
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4502
4565
|
|
|
4503
4566
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4504
|
-
var
|
|
4567
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4505
4568
|
function CurriculumReviewStepsInner() {
|
|
4506
4569
|
const {
|
|
4507
4570
|
formik,
|
|
@@ -4519,10 +4582,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4519
4582
|
} = useCurriculumReviewContext();
|
|
4520
4583
|
const { questions } = reviewContents;
|
|
4521
4584
|
if (step === 0) {
|
|
4522
|
-
return /* @__PURE__ */ (0,
|
|
4585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(start_review_default, { onStart: handleStart });
|
|
4523
4586
|
}
|
|
4524
4587
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4525
|
-
return /* @__PURE__ */ (0,
|
|
4588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4526
4589
|
ReviewQuestion_default,
|
|
4527
4590
|
{
|
|
4528
4591
|
answer: currentAnswer,
|
|
@@ -4540,7 +4603,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4540
4603
|
}
|
|
4541
4604
|
);
|
|
4542
4605
|
}
|
|
4543
|
-
return /* @__PURE__ */ (0,
|
|
4606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4544
4607
|
}
|
|
4545
4608
|
function CurriculumReviewSteps({
|
|
4546
4609
|
contents,
|
|
@@ -4553,7 +4616,7 @@ function CurriculumReviewSteps({
|
|
|
4553
4616
|
mode,
|
|
4554
4617
|
done
|
|
4555
4618
|
}) {
|
|
4556
|
-
return /* @__PURE__ */ (0,
|
|
4619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4557
4620
|
CurriculumReviewProvider,
|
|
4558
4621
|
{
|
|
4559
4622
|
curriculum,
|
|
@@ -4565,14 +4628,14 @@ function CurriculumReviewSteps({
|
|
|
4565
4628
|
onSubmit,
|
|
4566
4629
|
reviewContents: contents,
|
|
4567
4630
|
sectionTitle: title,
|
|
4568
|
-
children: /* @__PURE__ */ (0,
|
|
4631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CurriculumReviewStepsInner, {})
|
|
4569
4632
|
}
|
|
4570
4633
|
);
|
|
4571
4634
|
}
|
|
4572
4635
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4573
4636
|
|
|
4574
4637
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4575
|
-
var
|
|
4638
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4576
4639
|
function CurriculumReview(props) {
|
|
4577
4640
|
const { item, sectionTitle } = props;
|
|
4578
4641
|
const { description, buttonTitle } = item;
|
|
@@ -4584,10 +4647,10 @@ function CurriculumReview(props) {
|
|
|
4584
4647
|
tempCurriculumReviewAnswers,
|
|
4585
4648
|
curriculumCompleteMap
|
|
4586
4649
|
} = useCurriculumContext();
|
|
4587
|
-
const [open, setOpen] = (0,
|
|
4588
|
-
const [isChanged, setIsChanged] = (0,
|
|
4589
|
-
const [closeDialogOpen, setCloseDialogOpen] = (0,
|
|
4590
|
-
const onReviewValueChange = (0,
|
|
4650
|
+
const [open, setOpen] = (0, import_react36.useState)(false);
|
|
4651
|
+
const [isChanged, setIsChanged] = (0, import_react36.useState)(false);
|
|
4652
|
+
const [closeDialogOpen, setCloseDialogOpen] = (0, import_react36.useState)(false);
|
|
4653
|
+
const onReviewValueChange = (0, import_react36.useCallback)(
|
|
4591
4654
|
({
|
|
4592
4655
|
reviewId,
|
|
4593
4656
|
answer
|
|
@@ -4600,7 +4663,7 @@ function CurriculumReview(props) {
|
|
|
4600
4663
|
},
|
|
4601
4664
|
[_onReviewValueChange, curriculumReviewAnswers]
|
|
4602
4665
|
);
|
|
4603
|
-
const onReviewSubmit = (0,
|
|
4666
|
+
const onReviewSubmit = (0, import_react36.useCallback)(
|
|
4604
4667
|
(values) => {
|
|
4605
4668
|
return _onReviewSubmit({ reviewId: item.uuid, answer: values }).then(
|
|
4606
4669
|
(result) => {
|
|
@@ -4611,34 +4674,34 @@ function CurriculumReview(props) {
|
|
|
4611
4674
|
},
|
|
4612
4675
|
[item.uuid, _onReviewSubmit]
|
|
4613
4676
|
);
|
|
4614
|
-
const onClickEndReview = (0,
|
|
4677
|
+
const onClickEndReview = (0, import_react36.useCallback)(() => {
|
|
4615
4678
|
setOpen(false);
|
|
4616
4679
|
}, []);
|
|
4617
|
-
const onClickCloseDrawer = (0,
|
|
4680
|
+
const onClickCloseDrawer = (0, import_react36.useCallback)(() => {
|
|
4618
4681
|
if (isChanged) {
|
|
4619
4682
|
setCloseDialogOpen(true);
|
|
4620
4683
|
} else {
|
|
4621
4684
|
setOpen(false);
|
|
4622
4685
|
}
|
|
4623
4686
|
}, [isChanged]);
|
|
4624
|
-
const mode = (0,
|
|
4687
|
+
const mode = (0, import_react36.useMemo)(() => {
|
|
4625
4688
|
return item.questions.every(
|
|
4626
4689
|
(question) => curriculumReviewAnswers[question.uuid] && curriculumReviewAnswers[question.uuid] !== ""
|
|
4627
4690
|
) ? "edit" : "create";
|
|
4628
4691
|
}, [curriculumReviewAnswers, item.questions]);
|
|
4629
|
-
const defaultValues = (0,
|
|
4692
|
+
const defaultValues = (0, import_react36.useMemo)(() => {
|
|
4630
4693
|
const allAnswers = __spreadValues(__spreadValues({}, tempCurriculumReviewAnswers), curriculumReviewAnswers);
|
|
4631
4694
|
return item.questions.reduce((acc, question) => {
|
|
4632
4695
|
acc[question.uuid] = allAnswers[question.uuid] || "";
|
|
4633
4696
|
return acc;
|
|
4634
4697
|
}, {});
|
|
4635
4698
|
}, [curriculumReviewAnswers, item.questions, tempCurriculumReviewAnswers]);
|
|
4636
|
-
const done = (0,
|
|
4699
|
+
const done = (0, import_react36.useMemo)(() => {
|
|
4637
4700
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4638
4701
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4639
4702
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4640
|
-
return /* @__PURE__ */ (0,
|
|
4641
|
-
/* @__PURE__ */ (0,
|
|
4703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
4704
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
4642
4705
|
import_themes22.Flex,
|
|
4643
4706
|
{
|
|
4644
4707
|
align: "center",
|
|
@@ -4655,21 +4718,21 @@ function CurriculumReview(props) {
|
|
|
4655
4718
|
},
|
|
4656
4719
|
width: "100%",
|
|
4657
4720
|
children: [
|
|
4658
|
-
/* @__PURE__ */ (0,
|
|
4659
|
-
/* @__PURE__ */ (0,
|
|
4660
|
-
/* @__PURE__ */ (0,
|
|
4721
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
|
|
4722
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4723
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4661
4724
|
Button,
|
|
4662
4725
|
{
|
|
4663
4726
|
mt: "3",
|
|
4664
4727
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
4665
4728
|
variant: done ? "outline" : "solid",
|
|
4666
|
-
children: /* @__PURE__ */ (0,
|
|
4729
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
|
|
4667
4730
|
}
|
|
4668
4731
|
) })
|
|
4669
4732
|
]
|
|
4670
4733
|
}
|
|
4671
4734
|
),
|
|
4672
|
-
/* @__PURE__ */ (0,
|
|
4735
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4673
4736
|
Dialog.Content,
|
|
4674
4737
|
{
|
|
4675
4738
|
height: "100%",
|
|
@@ -4677,7 +4740,7 @@ function CurriculumReview(props) {
|
|
|
4677
4740
|
style: { borderRadius: 0, padding: 0 },
|
|
4678
4741
|
title: "",
|
|
4679
4742
|
width: "100%",
|
|
4680
|
-
children: /* @__PURE__ */ (0,
|
|
4743
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
4681
4744
|
import_themes22.Flex,
|
|
4682
4745
|
{
|
|
4683
4746
|
align: "center",
|
|
@@ -4687,7 +4750,7 @@ function CurriculumReview(props) {
|
|
|
4687
4750
|
position: "relative",
|
|
4688
4751
|
width: "100%",
|
|
4689
4752
|
children: [
|
|
4690
|
-
/* @__PURE__ */ (0,
|
|
4753
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4691
4754
|
CurriculumReviewSteps_default,
|
|
4692
4755
|
{
|
|
4693
4756
|
contents: item,
|
|
@@ -4701,27 +4764,27 @@ function CurriculumReview(props) {
|
|
|
4701
4764
|
title: sectionTitle
|
|
4702
4765
|
}
|
|
4703
4766
|
),
|
|
4704
|
-
/* @__PURE__ */ (0,
|
|
4767
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes6.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
4705
4768
|
import_themes18.IconButton,
|
|
4706
4769
|
{
|
|
4707
4770
|
color: "gray",
|
|
4708
4771
|
onClick: onClickCloseDrawer,
|
|
4709
4772
|
variant: "ghost",
|
|
4710
4773
|
children: [
|
|
4711
|
-
/* @__PURE__ */ (0,
|
|
4712
|
-
/* @__PURE__ */ (0,
|
|
4774
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes6.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons8.Cross1Icon, { height: 20, width: 20 }) }),
|
|
4775
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes6.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons8.Cross1Icon, { height: 16, width: 16 }) })
|
|
4713
4776
|
]
|
|
4714
4777
|
}
|
|
4715
4778
|
) }),
|
|
4716
|
-
/* @__PURE__ */ (0,
|
|
4779
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4717
4780
|
Dialog.Content,
|
|
4718
4781
|
{
|
|
4719
|
-
buttons: /* @__PURE__ */ (0,
|
|
4720
|
-
/* @__PURE__ */ (0,
|
|
4721
|
-
/* @__PURE__ */ (0,
|
|
4782
|
+
buttons: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
4783
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
|
|
4784
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
|
|
4722
4785
|
] }),
|
|
4723
4786
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
4724
|
-
children: /* @__PURE__ */ (0,
|
|
4787
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, { children: "\uD398\uC774\uC9C0\uC5D0\uC11C \uBC97\uC5B4\uB098\uBA74 \uC791\uC131\uD55C \uB0B4\uC6A9\uC774 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4." })
|
|
4725
4788
|
}
|
|
4726
4789
|
) })
|
|
4727
4790
|
]
|
|
@@ -4734,18 +4797,18 @@ function CurriculumReview(props) {
|
|
|
4734
4797
|
var curriculum_review_default = CurriculumReview;
|
|
4735
4798
|
|
|
4736
4799
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
4737
|
-
var
|
|
4738
|
-
var
|
|
4800
|
+
var import_react37 = require("react");
|
|
4801
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4739
4802
|
function CurriculumAiTraning({
|
|
4740
4803
|
item
|
|
4741
4804
|
}) {
|
|
4742
4805
|
const { title, description, buttonTitle } = item;
|
|
4743
4806
|
const { curriculumCompleteMap, onActionButtonClick } = useCurriculumContext();
|
|
4744
|
-
const done = (0,
|
|
4807
|
+
const done = (0, import_react37.useMemo)(() => {
|
|
4745
4808
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4746
4809
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4747
4810
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4748
|
-
return /* @__PURE__ */ (0,
|
|
4811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4749
4812
|
import_themes22.Flex,
|
|
4750
4813
|
{
|
|
4751
4814
|
align: "center",
|
|
@@ -4760,9 +4823,9 @@ function CurriculumAiTraning({
|
|
|
4760
4823
|
},
|
|
4761
4824
|
width: "100%",
|
|
4762
4825
|
children: [
|
|
4763
|
-
/* @__PURE__ */ (0,
|
|
4764
|
-
/* @__PURE__ */ (0,
|
|
4765
|
-
/* @__PURE__ */ (0,
|
|
4826
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4827
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4828
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4766
4829
|
Button,
|
|
4767
4830
|
{
|
|
4768
4831
|
mt: "3",
|
|
@@ -4773,7 +4836,7 @@ function CurriculumAiTraning({
|
|
|
4773
4836
|
variant: done ? "outline" : "solid",
|
|
4774
4837
|
children: [
|
|
4775
4838
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
4776
|
-
done ? /* @__PURE__ */ (0,
|
|
4839
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons2.ResetIcon, {}) : null
|
|
4777
4840
|
]
|
|
4778
4841
|
}
|
|
4779
4842
|
)
|
|
@@ -4784,14 +4847,14 @@ function CurriculumAiTraning({
|
|
|
4784
4847
|
var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
4785
4848
|
|
|
4786
4849
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
4787
|
-
var
|
|
4850
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4788
4851
|
function CurriculumBody() {
|
|
4789
4852
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
4790
4853
|
switch (selectedItem.type) {
|
|
4791
4854
|
case "video":
|
|
4792
|
-
return /* @__PURE__ */ (0,
|
|
4855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(curriculum_video_default, { item: selectedItem });
|
|
4793
4856
|
case "review":
|
|
4794
|
-
return /* @__PURE__ */ (0,
|
|
4857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4795
4858
|
curriculum_review_default,
|
|
4796
4859
|
{
|
|
4797
4860
|
item: selectedItem,
|
|
@@ -4799,9 +4862,9 @@ function CurriculumBody() {
|
|
|
4799
4862
|
}
|
|
4800
4863
|
);
|
|
4801
4864
|
case "aiTraining":
|
|
4802
|
-
return /* @__PURE__ */ (0,
|
|
4865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
4803
4866
|
default:
|
|
4804
|
-
return /* @__PURE__ */ (0,
|
|
4867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4805
4868
|
import_themes22.Flex,
|
|
4806
4869
|
{
|
|
4807
4870
|
align: "center",
|
|
@@ -4811,9 +4874,9 @@ function CurriculumBody() {
|
|
|
4811
4874
|
justify: "center",
|
|
4812
4875
|
width: "100%",
|
|
4813
4876
|
children: [
|
|
4814
|
-
/* @__PURE__ */ (0,
|
|
4815
|
-
/* @__PURE__ */ (0,
|
|
4816
|
-
/* @__PURE__ */ (0,
|
|
4877
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons2.InfoCircledIcon, { height: 24, width: 24 }),
|
|
4878
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
4879
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
4817
4880
|
${JSON.stringify(selectedItem)}` })
|
|
4818
4881
|
]
|
|
4819
4882
|
}
|
|
@@ -4822,12 +4885,12 @@ function CurriculumBody() {
|
|
|
4822
4885
|
}
|
|
4823
4886
|
|
|
4824
4887
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4825
|
-
var
|
|
4888
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4826
4889
|
function SectionTitle(props) {
|
|
4827
4890
|
const { title, duration } = props;
|
|
4828
|
-
return /* @__PURE__ */ (0,
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
4830
|
-
/* @__PURE__ */ (0,
|
|
4891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_themes23.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
4892
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { color: "gray", children: title }),
|
|
4893
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4831
4894
|
duration,
|
|
4832
4895
|
"\uBD84"
|
|
4833
4896
|
] })
|
|
@@ -4836,14 +4899,14 @@ function SectionTitle(props) {
|
|
|
4836
4899
|
var section_title_default = SectionTitle;
|
|
4837
4900
|
|
|
4838
4901
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
4839
|
-
var
|
|
4902
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4840
4903
|
function CurriculumSidebarItemWrapper({
|
|
4841
4904
|
children,
|
|
4842
4905
|
isSelected,
|
|
4843
4906
|
onClick,
|
|
4844
4907
|
index
|
|
4845
4908
|
}) {
|
|
4846
|
-
return /* @__PURE__ */ (0,
|
|
4909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
4847
4910
|
import_themes23.Grid,
|
|
4848
4911
|
{
|
|
4849
4912
|
align: "center",
|
|
@@ -4859,7 +4922,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4859
4922
|
cursor: onClick ? "pointer" : void 0
|
|
4860
4923
|
},
|
|
4861
4924
|
children: [
|
|
4862
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4925
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4863
4926
|
import_themes39.Separator,
|
|
4864
4927
|
{
|
|
4865
4928
|
color: "yellow",
|
|
@@ -4876,15 +4939,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
4876
4939
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
4877
4940
|
|
|
4878
4941
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
4879
|
-
var
|
|
4942
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4880
4943
|
function CurriculumItemTitle({
|
|
4881
4944
|
title,
|
|
4882
4945
|
subText,
|
|
4883
4946
|
duration
|
|
4884
4947
|
}) {
|
|
4885
|
-
return /* @__PURE__ */ (0,
|
|
4886
|
-
/* @__PURE__ */ (0,
|
|
4887
|
-
/* @__PURE__ */ (0,
|
|
4948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
4949
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4950
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4888
4951
|
subText,
|
|
4889
4952
|
duration ? ` | ${duration}\uBD84` : ""
|
|
4890
4953
|
] })
|
|
@@ -4893,7 +4956,7 @@ function CurriculumItemTitle({
|
|
|
4893
4956
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
4894
4957
|
|
|
4895
4958
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
4896
|
-
var
|
|
4959
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4897
4960
|
function SectionCommonItem({
|
|
4898
4961
|
title,
|
|
4899
4962
|
duration,
|
|
@@ -4902,21 +4965,21 @@ function SectionCommonItem({
|
|
|
4902
4965
|
color = "gray"
|
|
4903
4966
|
}) {
|
|
4904
4967
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
4905
|
-
return /* @__PURE__ */ (0,
|
|
4906
|
-
/* @__PURE__ */ (0,
|
|
4907
|
-
/* @__PURE__ */ (0,
|
|
4968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
4969
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(IconComp, { color }),
|
|
4970
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(curriculum_item_title_default, { duration, subText: getCurriculumContentSubTypeText(type), title })
|
|
4908
4971
|
] });
|
|
4909
4972
|
}
|
|
4910
4973
|
var section_item_default = SectionCommonItem;
|
|
4911
4974
|
|
|
4912
4975
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
4913
|
-
var
|
|
4976
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4914
4977
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
4915
4978
|
if (item.type === "sectionTitle") {
|
|
4916
|
-
return /* @__PURE__ */ (0,
|
|
4979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
4917
4980
|
}
|
|
4918
4981
|
const isSelected = selectedIndex === index;
|
|
4919
|
-
return /* @__PURE__ */ (0,
|
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4920
4983
|
curriculum_sidebar_item_wrapper_default,
|
|
4921
4984
|
{
|
|
4922
4985
|
index,
|
|
@@ -4924,7 +4987,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4924
4987
|
onClick: () => {
|
|
4925
4988
|
setSelectedIndex(index);
|
|
4926
4989
|
},
|
|
4927
|
-
children: /* @__PURE__ */ (0,
|
|
4990
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4928
4991
|
section_item_default,
|
|
4929
4992
|
__spreadProps(__spreadValues({}, item), {
|
|
4930
4993
|
color: getCurriculumIconColor({
|
|
@@ -4940,7 +5003,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4940
5003
|
var sidebar_item_default = SidebarItem;
|
|
4941
5004
|
|
|
4942
5005
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4943
|
-
var
|
|
5006
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4944
5007
|
var TAB_LIST = [
|
|
4945
5008
|
{
|
|
4946
5009
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -4950,9 +5013,9 @@ var TAB_LIST = [
|
|
|
4950
5013
|
function CurriculumSidebar() {
|
|
4951
5014
|
const { curriculum, selectedIndex, setSelectedIndex, scrollAreaRef, curriculumCompleteMap } = useCurriculumContext();
|
|
4952
5015
|
const list = curriculum.contents.list;
|
|
4953
|
-
return /* @__PURE__ */ (0,
|
|
4954
|
-
/* @__PURE__ */ (0,
|
|
4955
|
-
/* @__PURE__ */ (0,
|
|
5016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes44.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_themes23.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
5017
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes44.Tabs.List, { style: { padding: "0 var(--space-3)" }, children: TAB_LIST.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes44.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
5018
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4956
5019
|
import_themes6.Box,
|
|
4957
5020
|
{
|
|
4958
5021
|
height: "100%",
|
|
@@ -4960,7 +5023,7 @@ function CurriculumSidebar() {
|
|
|
4960
5023
|
position: "relative",
|
|
4961
5024
|
ref: scrollAreaRef,
|
|
4962
5025
|
width: "100%",
|
|
4963
|
-
children: /* @__PURE__ */ (0,
|
|
5026
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
4964
5027
|
import_themes44.Tabs.Content,
|
|
4965
5028
|
{
|
|
4966
5029
|
style: {
|
|
@@ -4970,8 +5033,8 @@ function CurriculumSidebar() {
|
|
|
4970
5033
|
},
|
|
4971
5034
|
value: TAB_LIST[0].value,
|
|
4972
5035
|
children: [
|
|
4973
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
4974
|
-
/* @__PURE__ */ (0,
|
|
5036
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(sidebar_item_default, { done: curriculumCompleteMap[item.uuid], index, item, selectedIndex, setSelectedIndex }, item.uuid)),
|
|
5037
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes6.Box, { height: "150px" })
|
|
4975
5038
|
]
|
|
4976
5039
|
}
|
|
4977
5040
|
)
|
|
@@ -4981,11 +5044,11 @@ function CurriculumSidebar() {
|
|
|
4981
5044
|
}
|
|
4982
5045
|
|
|
4983
5046
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
4984
|
-
var
|
|
5047
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4985
5048
|
function CurriculumV2Layout(props) {
|
|
4986
5049
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4987
|
-
return /* @__PURE__ */ (0,
|
|
4988
|
-
/* @__PURE__ */ (0,
|
|
5050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_themes23.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
5051
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4989
5052
|
import_themes22.Flex,
|
|
4990
5053
|
{
|
|
4991
5054
|
align: "center",
|
|
@@ -4994,8 +5057,8 @@ function CurriculumV2Layout(props) {
|
|
|
4994
5057
|
children: NavBar
|
|
4995
5058
|
}
|
|
4996
5059
|
),
|
|
4997
|
-
/* @__PURE__ */ (0,
|
|
4998
|
-
/* @__PURE__ */ (0,
|
|
5060
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes39.Separator, { size: "4" }),
|
|
5061
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4999
5062
|
import_themes22.Flex,
|
|
5000
5063
|
{
|
|
5001
5064
|
align: "center",
|
|
@@ -5003,7 +5066,7 @@ function CurriculumV2Layout(props) {
|
|
|
5003
5066
|
justify: "center",
|
|
5004
5067
|
overflow: "hidden",
|
|
5005
5068
|
width: "100%",
|
|
5006
|
-
children: /* @__PURE__ */ (0,
|
|
5069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
5007
5070
|
import_themes23.Grid,
|
|
5008
5071
|
{
|
|
5009
5072
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -5012,8 +5075,8 @@ function CurriculumV2Layout(props) {
|
|
|
5012
5075
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
5013
5076
|
width: "100%",
|
|
5014
5077
|
children: [
|
|
5015
|
-
/* @__PURE__ */ (0,
|
|
5016
|
-
/* @__PURE__ */ (0,
|
|
5078
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_themes6.Box, { height: "100%", width: "100%", children: [
|
|
5079
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes2.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
5017
5080
|
SideNav
|
|
5018
5081
|
] }),
|
|
5019
5082
|
SideBar
|
|
@@ -5032,22 +5095,22 @@ var import_themes53 = require("@radix-ui/themes");
|
|
|
5032
5095
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
5033
5096
|
|
|
5034
5097
|
// src/charts/horizontal-bar-chart.tsx
|
|
5035
|
-
var
|
|
5098
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5036
5099
|
function HorizontalBarChart(props) {
|
|
5037
5100
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
5038
|
-
return /* @__PURE__ */ (0,
|
|
5101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5039
5102
|
"div",
|
|
5040
5103
|
{
|
|
5041
5104
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
5042
5105
|
style: { height, backgroundColor },
|
|
5043
|
-
children: /* @__PURE__ */ (0,
|
|
5106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5044
5107
|
"div",
|
|
5045
5108
|
{
|
|
5046
5109
|
style: {
|
|
5047
5110
|
width: `${Math.round(value / total * 100)}%`,
|
|
5048
5111
|
height: "100%"
|
|
5049
5112
|
},
|
|
5050
|
-
children: /* @__PURE__ */ (0,
|
|
5113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
5051
5114
|
}
|
|
5052
5115
|
)
|
|
5053
5116
|
}
|
|
@@ -5203,23 +5266,23 @@ var EchartDefaultProps = {
|
|
|
5203
5266
|
};
|
|
5204
5267
|
|
|
5205
5268
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
5206
|
-
var
|
|
5269
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5207
5270
|
function CoachingCustomerInfoSmall({
|
|
5208
5271
|
customer,
|
|
5209
5272
|
children,
|
|
5210
5273
|
badge
|
|
5211
5274
|
}) {
|
|
5212
|
-
return /* @__PURE__ */ (0,
|
|
5275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
5213
5276
|
import_themes22.Flex,
|
|
5214
5277
|
{
|
|
5215
5278
|
direction: { initial: "column", xs: "row" },
|
|
5216
5279
|
gap: "3",
|
|
5217
5280
|
justify: "between",
|
|
5218
5281
|
children: [
|
|
5219
|
-
/* @__PURE__ */ (0,
|
|
5220
|
-
/* @__PURE__ */ (0,
|
|
5221
|
-
/* @__PURE__ */ (0,
|
|
5222
|
-
/* @__PURE__ */ (0,
|
|
5282
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
5283
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
5284
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
5285
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
5223
5286
|
] }) }),
|
|
5224
5287
|
children
|
|
5225
5288
|
]
|
|
@@ -5230,7 +5293,7 @@ function CoachingCustomerInfoSmall({
|
|
|
5230
5293
|
// src/app/platform/userInfos/utils.tsx
|
|
5231
5294
|
var import_date_fns3 = require("date-fns");
|
|
5232
5295
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
5233
|
-
var
|
|
5296
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5234
5297
|
var infoList = [
|
|
5235
5298
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
5236
5299
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -5290,21 +5353,21 @@ var sessionList = [
|
|
|
5290
5353
|
var renderItem = (args) => {
|
|
5291
5354
|
const { info, data, onClickCopy } = args;
|
|
5292
5355
|
const value = info.getValue(data);
|
|
5293
|
-
return /* @__PURE__ */ (0,
|
|
5356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
5294
5357
|
info.render ? info.render(value) : value || "-",
|
|
5295
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
5358
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
5296
5359
|
] });
|
|
5297
5360
|
};
|
|
5298
5361
|
var renderDataListItem = (args) => {
|
|
5299
5362
|
const { info, data, onClickCopy } = args;
|
|
5300
|
-
return /* @__PURE__ */ (0,
|
|
5301
|
-
/* @__PURE__ */ (0,
|
|
5302
|
-
/* @__PURE__ */ (0,
|
|
5363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes15.DataList.Item, { children: [
|
|
5364
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
5365
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
5303
5366
|
] }, info.label);
|
|
5304
5367
|
};
|
|
5305
5368
|
function CopyButton(props) {
|
|
5306
5369
|
const { value, onClickCopy } = props;
|
|
5307
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5308
5371
|
Button,
|
|
5309
5372
|
{
|
|
5310
5373
|
color: "gray",
|
|
@@ -5313,13 +5376,13 @@ function CopyButton(props) {
|
|
|
5313
5376
|
},
|
|
5314
5377
|
style: { marginLeft: "0", marginTop: "0" },
|
|
5315
5378
|
variant: "transparent",
|
|
5316
|
-
children: /* @__PURE__ */ (0,
|
|
5379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons9.CopyIcon, {})
|
|
5317
5380
|
}
|
|
5318
5381
|
);
|
|
5319
5382
|
}
|
|
5320
5383
|
|
|
5321
5384
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
5322
|
-
var
|
|
5385
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5323
5386
|
function CoachingCustomerInfoMedium({
|
|
5324
5387
|
customer,
|
|
5325
5388
|
session,
|
|
@@ -5327,28 +5390,28 @@ function CoachingCustomerInfoMedium({
|
|
|
5327
5390
|
badge,
|
|
5328
5391
|
onClickCopy
|
|
5329
5392
|
}) {
|
|
5330
|
-
return /* @__PURE__ */ (0,
|
|
5331
|
-
/* @__PURE__ */ (0,
|
|
5332
|
-
/* @__PURE__ */ (0,
|
|
5333
|
-
/* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
5394
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes6.Box, { children: [
|
|
5395
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
5396
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
5334
5397
|
badge
|
|
5335
5398
|
] }),
|
|
5336
|
-
/* @__PURE__ */ (0,
|
|
5399
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
5337
5400
|
] }),
|
|
5338
5401
|
children,
|
|
5339
|
-
/* @__PURE__ */ (0,
|
|
5402
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
5340
5403
|
(el) => renderDataListItem({
|
|
5341
5404
|
info: el,
|
|
5342
5405
|
data: session,
|
|
5343
5406
|
onClickCopy
|
|
5344
5407
|
})
|
|
5345
5408
|
) }) }),
|
|
5346
|
-
/* @__PURE__ */ (0,
|
|
5347
|
-
/* @__PURE__ */ (0,
|
|
5348
|
-
/* @__PURE__ */ (0,
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
5410
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
5411
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes39.Separator, { size: "4" })
|
|
5349
5412
|
] }),
|
|
5350
|
-
/* @__PURE__ */ (0,
|
|
5351
|
-
return /* @__PURE__ */ (0,
|
|
5413
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
5414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { children: renderItem({
|
|
5352
5415
|
info: el,
|
|
5353
5416
|
data: customer,
|
|
5354
5417
|
onClickCopy
|
|
@@ -5358,7 +5421,7 @@ function CoachingCustomerInfoMedium({
|
|
|
5358
5421
|
}
|
|
5359
5422
|
|
|
5360
5423
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
5361
|
-
var
|
|
5424
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5362
5425
|
function CoachingCustomerInfoLarge({
|
|
5363
5426
|
customer,
|
|
5364
5427
|
session,
|
|
@@ -5366,24 +5429,24 @@ function CoachingCustomerInfoLarge({
|
|
|
5366
5429
|
badge,
|
|
5367
5430
|
onClickCopy
|
|
5368
5431
|
}) {
|
|
5369
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
-
/* @__PURE__ */ (0,
|
|
5371
|
-
/* @__PURE__ */ (0,
|
|
5372
|
-
/* @__PURE__ */ (0,
|
|
5432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
5433
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes6.Box, { children: [
|
|
5434
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
5435
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
5373
5436
|
badge
|
|
5374
5437
|
] }),
|
|
5375
|
-
/* @__PURE__ */ (0,
|
|
5438
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
5376
5439
|
] }),
|
|
5377
5440
|
children,
|
|
5378
|
-
/* @__PURE__ */ (0,
|
|
5441
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
5379
5442
|
(el) => renderDataListItem({
|
|
5380
5443
|
info: el,
|
|
5381
5444
|
data: session,
|
|
5382
5445
|
onClickCopy
|
|
5383
5446
|
})
|
|
5384
5447
|
) }) }),
|
|
5385
|
-
/* @__PURE__ */ (0,
|
|
5386
|
-
/* @__PURE__ */ (0,
|
|
5448
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes39.Separator, { size: "4" }),
|
|
5449
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
5387
5450
|
(info) => renderDataListItem({
|
|
5388
5451
|
info,
|
|
5389
5452
|
data: customer,
|
|
@@ -5394,19 +5457,19 @@ function CoachingCustomerInfoLarge({
|
|
|
5394
5457
|
}
|
|
5395
5458
|
|
|
5396
5459
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
5397
|
-
var
|
|
5460
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5398
5461
|
function CoachingCustomerInfo(props) {
|
|
5399
|
-
return /* @__PURE__ */ (0,
|
|
5400
|
-
/* @__PURE__ */ (0,
|
|
5401
|
-
/* @__PURE__ */ (0,
|
|
5402
|
-
/* @__PURE__ */ (0,
|
|
5462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
5463
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
5464
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
5465
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
5403
5466
|
] });
|
|
5404
5467
|
}
|
|
5405
5468
|
|
|
5406
5469
|
// src/app/platform/goal-manage-card-read.tsx
|
|
5407
|
-
var
|
|
5470
|
+
var import_react38 = require("react");
|
|
5408
5471
|
var import_date_fns4 = require("date-fns");
|
|
5409
|
-
var
|
|
5472
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5410
5473
|
function GoalManageCardRead(props) {
|
|
5411
5474
|
const {
|
|
5412
5475
|
title,
|
|
@@ -5420,12 +5483,12 @@ function GoalManageCardRead(props) {
|
|
|
5420
5483
|
onClickIncomplete,
|
|
5421
5484
|
onClickComplete
|
|
5422
5485
|
} = props;
|
|
5423
|
-
const [open, setOpen] = (0,
|
|
5424
|
-
const onClickOpen = (0,
|
|
5486
|
+
const [open, setOpen] = (0, import_react38.useState)(Boolean(defaultOpen));
|
|
5487
|
+
const onClickOpen = (0, import_react38.useCallback)(() => {
|
|
5425
5488
|
setOpen((p) => !p);
|
|
5426
5489
|
}, []);
|
|
5427
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
5428
|
-
const badgeMeta = (0,
|
|
5490
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
5491
|
+
const badgeMeta = (0, import_react38.useMemo)(() => {
|
|
5429
5492
|
if (!completed && dueDate) {
|
|
5430
5493
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
5431
5494
|
return {
|
|
@@ -5436,41 +5499,41 @@ function GoalManageCardRead(props) {
|
|
|
5436
5499
|
}
|
|
5437
5500
|
return null;
|
|
5438
5501
|
}, [completed, dueDate]);
|
|
5439
|
-
const renderSubTitle = (0,
|
|
5440
|
-
return /* @__PURE__ */ (0,
|
|
5502
|
+
const renderSubTitle = (0, import_react38.useCallback)((subTitle) => {
|
|
5503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
5441
5504
|
}, []);
|
|
5442
|
-
const renderSubContent = (0,
|
|
5443
|
-
return /* @__PURE__ */ (0,
|
|
5505
|
+
const renderSubContent = (0, import_react38.useCallback)((content) => {
|
|
5506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
5444
5507
|
}, []);
|
|
5445
|
-
const renderCompleteButton = (0,
|
|
5508
|
+
const renderCompleteButton = (0, import_react38.useCallback)(() => {
|
|
5446
5509
|
if (completed) {
|
|
5447
|
-
return /* @__PURE__ */ (0,
|
|
5510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
5448
5511
|
}
|
|
5449
|
-
return /* @__PURE__ */ (0,
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5451
|
-
/* @__PURE__ */ (0,
|
|
5512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes29.Popover.Root, { children: [
|
|
5513
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Button, { size: "small", children: [
|
|
5514
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_icons2.RocketIcon, {}),
|
|
5452
5515
|
"\uB2EC\uC131\uD558\uAE30"
|
|
5453
5516
|
] }) }),
|
|
5454
|
-
/* @__PURE__ */ (0,
|
|
5455
|
-
/* @__PURE__ */ (0,
|
|
5456
|
-
/* @__PURE__ */ (0,
|
|
5457
|
-
/* @__PURE__ */ (0,
|
|
5458
|
-
/* @__PURE__ */ (0,
|
|
5517
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes29.Popover.Content, { children: [
|
|
5518
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
5520
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
5521
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
5459
5522
|
] })
|
|
5460
5523
|
] })
|
|
5461
5524
|
] });
|
|
5462
5525
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
5463
|
-
return /* @__PURE__ */ (0,
|
|
5464
|
-
/* @__PURE__ */ (0,
|
|
5465
|
-
/* @__PURE__ */ (0,
|
|
5466
|
-
/* @__PURE__ */ (0,
|
|
5467
|
-
/* @__PURE__ */ (0,
|
|
5468
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
5469
|
-
/* @__PURE__ */ (0,
|
|
5526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
5527
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes18.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
5529
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
5530
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
5531
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
5532
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
5470
5533
|
] }),
|
|
5471
5534
|
renderCompleteButton()
|
|
5472
5535
|
] }),
|
|
5473
|
-
open ? /* @__PURE__ */ (0,
|
|
5536
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5474
5537
|
import_themes39.Separator,
|
|
5475
5538
|
{
|
|
5476
5539
|
mb: "4",
|
|
@@ -5479,37 +5542,37 @@ function GoalManageCardRead(props) {
|
|
|
5479
5542
|
style: { gridColumnStart: "span 2" }
|
|
5480
5543
|
}
|
|
5481
5544
|
) : null,
|
|
5482
|
-
/* @__PURE__ */ (0,
|
|
5483
|
-
/* @__PURE__ */ (0,
|
|
5484
|
-
/* @__PURE__ */ (0,
|
|
5545
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Collapse, { open, children: [
|
|
5546
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
5547
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes6.Box, { children: [
|
|
5485
5548
|
renderSubTitle(
|
|
5486
5549
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
5487
5550
|
),
|
|
5488
5551
|
renderSubContent(expectedEffect)
|
|
5489
5552
|
] }),
|
|
5490
|
-
/* @__PURE__ */ (0,
|
|
5553
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes6.Box, { children: [
|
|
5491
5554
|
renderSubTitle(
|
|
5492
5555
|
"\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"
|
|
5493
5556
|
),
|
|
5494
5557
|
renderSubContent(huddle)
|
|
5495
5558
|
] })
|
|
5496
5559
|
] }),
|
|
5497
|
-
/* @__PURE__ */ (0,
|
|
5498
|
-
/* @__PURE__ */ (0,
|
|
5499
|
-
/* @__PURE__ */ (0,
|
|
5500
|
-
/* @__PURE__ */ (0,
|
|
5560
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
5561
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes29.Popover.Root, { children: [
|
|
5562
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
5563
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_icons2.TrashIcon, {}),
|
|
5501
5564
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
5502
5565
|
] }) }),
|
|
5503
|
-
/* @__PURE__ */ (0,
|
|
5504
|
-
/* @__PURE__ */ (0,
|
|
5505
|
-
/* @__PURE__ */ (0,
|
|
5506
|
-
/* @__PURE__ */ (0,
|
|
5507
|
-
/* @__PURE__ */ (0,
|
|
5566
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes29.Popover.Content, { children: [
|
|
5567
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
5568
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
5569
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
5570
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
5508
5571
|
] })
|
|
5509
5572
|
] })
|
|
5510
5573
|
] }),
|
|
5511
|
-
/* @__PURE__ */ (0,
|
|
5512
|
-
/* @__PURE__ */ (0,
|
|
5574
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
5575
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
5513
5576
|
"\uC218\uC815\uD558\uAE30"
|
|
5514
5577
|
] })
|
|
5515
5578
|
] })
|
|
@@ -5518,9 +5581,9 @@ function GoalManageCardRead(props) {
|
|
|
5518
5581
|
}
|
|
5519
5582
|
|
|
5520
5583
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
5521
|
-
var
|
|
5584
|
+
var import_react39 = require("react");
|
|
5522
5585
|
var import_date_fns5 = require("date-fns");
|
|
5523
|
-
var
|
|
5586
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5524
5587
|
var initialValues = {
|
|
5525
5588
|
goal: "",
|
|
5526
5589
|
effect: "",
|
|
@@ -5531,8 +5594,8 @@ var dummyFn = () => {
|
|
|
5531
5594
|
};
|
|
5532
5595
|
function GoalManageCardEdit(props) {
|
|
5533
5596
|
const { defaultValues, errors } = props;
|
|
5534
|
-
const [values, setValues] = (0,
|
|
5535
|
-
const onChange = (0,
|
|
5597
|
+
const [values, setValues] = (0, import_react39.useState)(defaultValues || initialValues);
|
|
5598
|
+
const onChange = (0, import_react39.useCallback)(
|
|
5536
5599
|
(v) => {
|
|
5537
5600
|
var _a;
|
|
5538
5601
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -5540,20 +5603,20 @@ function GoalManageCardEdit(props) {
|
|
|
5540
5603
|
},
|
|
5541
5604
|
[props]
|
|
5542
5605
|
);
|
|
5543
|
-
const onClickInit = (0,
|
|
5606
|
+
const onClickInit = (0, import_react39.useCallback)(() => {
|
|
5544
5607
|
var _a;
|
|
5545
5608
|
setValues(initialValues);
|
|
5546
5609
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
5547
5610
|
}, [defaultValues, props]);
|
|
5548
|
-
const onClickSubmit = (0,
|
|
5611
|
+
const onClickSubmit = (0, import_react39.useCallback)(() => {
|
|
5549
5612
|
var _a;
|
|
5550
5613
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
5551
5614
|
}, [props, values]);
|
|
5552
|
-
return /* @__PURE__ */ (0,
|
|
5553
|
-
/* @__PURE__ */ (0,
|
|
5554
|
-
/* @__PURE__ */ (0,
|
|
5555
|
-
/* @__PURE__ */ (0,
|
|
5556
|
-
/* @__PURE__ */ (0,
|
|
5615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
5616
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
5617
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Form.Field, { name: "title", children: [
|
|
5618
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
5619
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5557
5620
|
TextField.Root,
|
|
5558
5621
|
{
|
|
5559
5622
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -5564,11 +5627,11 @@ function GoalManageCardEdit(props) {
|
|
|
5564
5627
|
value: values.goal
|
|
5565
5628
|
}
|
|
5566
5629
|
),
|
|
5567
|
-
/* @__PURE__ */ (0,
|
|
5630
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
5568
5631
|
] }),
|
|
5569
|
-
/* @__PURE__ */ (0,
|
|
5570
|
-
/* @__PURE__ */ (0,
|
|
5571
|
-
/* @__PURE__ */ (0,
|
|
5632
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Form.Field, { name: "effect", children: [
|
|
5633
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5572
5635
|
TextArea,
|
|
5573
5636
|
{
|
|
5574
5637
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -5580,11 +5643,11 @@ function GoalManageCardEdit(props) {
|
|
|
5580
5643
|
value: values.effect
|
|
5581
5644
|
}
|
|
5582
5645
|
),
|
|
5583
|
-
/* @__PURE__ */ (0,
|
|
5646
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
5584
5647
|
] }),
|
|
5585
|
-
/* @__PURE__ */ (0,
|
|
5586
|
-
/* @__PURE__ */ (0,
|
|
5587
|
-
/* @__PURE__ */ (0,
|
|
5648
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Form.Field, { name: "huddle", children: [
|
|
5649
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
5650
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5588
5651
|
TextArea,
|
|
5589
5652
|
{
|
|
5590
5653
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -5598,11 +5661,11 @@ function GoalManageCardEdit(props) {
|
|
|
5598
5661
|
value: values.huddle
|
|
5599
5662
|
}
|
|
5600
5663
|
),
|
|
5601
|
-
/* @__PURE__ */ (0,
|
|
5664
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
5602
5665
|
] }),
|
|
5603
|
-
/* @__PURE__ */ (0,
|
|
5604
|
-
/* @__PURE__ */ (0,
|
|
5605
|
-
/* @__PURE__ */ (0,
|
|
5666
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
5668
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5606
5669
|
DatePickerButton,
|
|
5607
5670
|
{
|
|
5608
5671
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -5613,11 +5676,11 @@ function GoalManageCardEdit(props) {
|
|
|
5613
5676
|
selected: values.dueDate
|
|
5614
5677
|
}
|
|
5615
5678
|
),
|
|
5616
|
-
/* @__PURE__ */ (0,
|
|
5679
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
5617
5680
|
] })
|
|
5618
5681
|
] }),
|
|
5619
|
-
/* @__PURE__ */ (0,
|
|
5620
|
-
/* @__PURE__ */ (0,
|
|
5682
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
5683
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5621
5684
|
Button,
|
|
5622
5685
|
{
|
|
5623
5686
|
color: "gray",
|
|
@@ -5628,18 +5691,18 @@ function GoalManageCardEdit(props) {
|
|
|
5628
5691
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
5629
5692
|
}
|
|
5630
5693
|
),
|
|
5631
|
-
/* @__PURE__ */ (0,
|
|
5694
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
5632
5695
|
] })
|
|
5633
5696
|
] }) });
|
|
5634
5697
|
}
|
|
5635
5698
|
|
|
5636
5699
|
// src/app/platform/session-card.tsx
|
|
5637
|
-
var
|
|
5700
|
+
var import_react42 = require("react");
|
|
5638
5701
|
var import_date_fns6 = require("date-fns");
|
|
5639
5702
|
|
|
5640
5703
|
// src/app/platform/edit-coaching-time.tsx
|
|
5641
|
-
var
|
|
5642
|
-
var
|
|
5704
|
+
var import_react40 = require("react");
|
|
5705
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5643
5706
|
var getValueFromDefaultValue = (args) => {
|
|
5644
5707
|
return {
|
|
5645
5708
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -5659,14 +5722,14 @@ var getDateFromValue = (date, time) => {
|
|
|
5659
5722
|
};
|
|
5660
5723
|
function EditCoachingTime(props) {
|
|
5661
5724
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
5662
|
-
const [values, setValues] = (0,
|
|
5725
|
+
const [values, setValues] = (0, import_react40.useState)(() => {
|
|
5663
5726
|
return getValueFromDefaultValue({
|
|
5664
5727
|
startAt: defaultStartAt,
|
|
5665
5728
|
endAt: defaultEndAt
|
|
5666
5729
|
});
|
|
5667
5730
|
});
|
|
5668
|
-
const [timeError, setTimeError] = (0,
|
|
5669
|
-
const checkTimeError = (0,
|
|
5731
|
+
const [timeError, setTimeError] = (0, import_react40.useState)("");
|
|
5732
|
+
const checkTimeError = (0, import_react40.useCallback)(
|
|
5670
5733
|
(startTime, endTime) => {
|
|
5671
5734
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
5672
5735
|
if (error) {
|
|
@@ -5677,7 +5740,7 @@ function EditCoachingTime(props) {
|
|
|
5677
5740
|
},
|
|
5678
5741
|
[]
|
|
5679
5742
|
);
|
|
5680
|
-
const onChangeStartTime = (0,
|
|
5743
|
+
const onChangeStartTime = (0, import_react40.useCallback)(
|
|
5681
5744
|
(v) => {
|
|
5682
5745
|
checkTimeError(v, values.endTime);
|
|
5683
5746
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -5686,7 +5749,7 @@ function EditCoachingTime(props) {
|
|
|
5686
5749
|
},
|
|
5687
5750
|
[checkTimeError, values.endTime]
|
|
5688
5751
|
);
|
|
5689
|
-
const onChangeEndTime = (0,
|
|
5752
|
+
const onChangeEndTime = (0, import_react40.useCallback)(
|
|
5690
5753
|
(v) => {
|
|
5691
5754
|
checkTimeError(values.startTime, v);
|
|
5692
5755
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -5695,12 +5758,12 @@ function EditCoachingTime(props) {
|
|
|
5695
5758
|
},
|
|
5696
5759
|
[checkTimeError, values.startTime]
|
|
5697
5760
|
);
|
|
5698
|
-
const onChangeDate = (0,
|
|
5761
|
+
const onChangeDate = (0, import_react40.useCallback)((date) => {
|
|
5699
5762
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
5700
5763
|
date
|
|
5701
5764
|
}));
|
|
5702
5765
|
}, []);
|
|
5703
|
-
const onClickSave = (0,
|
|
5766
|
+
const onClickSave = (0, import_react40.useCallback)(() => {
|
|
5704
5767
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
5705
5768
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
5706
5769
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -5709,10 +5772,10 @@ function EditCoachingTime(props) {
|
|
|
5709
5772
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
5710
5773
|
}
|
|
5711
5774
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
5712
|
-
return /* @__PURE__ */ (0,
|
|
5713
|
-
/* @__PURE__ */ (0,
|
|
5714
|
-
/* @__PURE__ */ (0,
|
|
5715
|
-
/* @__PURE__ */ (0,
|
|
5775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Form.Root, { children: [
|
|
5776
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Form.Field, { name: "date", children: [
|
|
5777
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
5778
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5716
5779
|
DatePickerButton,
|
|
5717
5780
|
{
|
|
5718
5781
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -5722,7 +5785,7 @@ function EditCoachingTime(props) {
|
|
|
5722
5785
|
}
|
|
5723
5786
|
)
|
|
5724
5787
|
] }),
|
|
5725
|
-
/* @__PURE__ */ (0,
|
|
5788
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
5726
5789
|
import_themes23.Grid,
|
|
5727
5790
|
{
|
|
5728
5791
|
align: "center",
|
|
@@ -5737,10 +5800,10 @@ function EditCoachingTime(props) {
|
|
|
5737
5800
|
mt: "5",
|
|
5738
5801
|
width: "100%",
|
|
5739
5802
|
children: [
|
|
5740
|
-
/* @__PURE__ */ (0,
|
|
5741
|
-
/* @__PURE__ */ (0,
|
|
5742
|
-
/* @__PURE__ */ (0,
|
|
5743
|
-
/* @__PURE__ */ (0,
|
|
5803
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
5804
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", {}),
|
|
5805
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
5806
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5744
5807
|
TimeSelect,
|
|
5745
5808
|
{
|
|
5746
5809
|
onValueChange: onChangeStartTime,
|
|
@@ -5748,8 +5811,8 @@ function EditCoachingTime(props) {
|
|
|
5748
5811
|
value: values.startTime
|
|
5749
5812
|
}
|
|
5750
5813
|
),
|
|
5751
|
-
/* @__PURE__ */ (0,
|
|
5752
|
-
/* @__PURE__ */ (0,
|
|
5814
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes39.Separator, {}) }),
|
|
5815
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5753
5816
|
TimeSelect,
|
|
5754
5817
|
{
|
|
5755
5818
|
onValueChange: onChangeEndTime,
|
|
@@ -5757,36 +5820,36 @@ function EditCoachingTime(props) {
|
|
|
5757
5820
|
value: values.endTime
|
|
5758
5821
|
}
|
|
5759
5822
|
),
|
|
5760
|
-
/* @__PURE__ */ (0,
|
|
5823
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
5761
5824
|
]
|
|
5762
5825
|
}
|
|
5763
5826
|
),
|
|
5764
|
-
/* @__PURE__ */ (0,
|
|
5765
|
-
/* @__PURE__ */ (0,
|
|
5766
|
-
/* @__PURE__ */ (0,
|
|
5827
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
5828
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
5829
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
5767
5830
|
] })
|
|
5768
5831
|
] }) });
|
|
5769
5832
|
}
|
|
5770
5833
|
|
|
5771
5834
|
// src/app/platform/edit-service-type.tsx
|
|
5772
|
-
var
|
|
5835
|
+
var import_react41 = require("react");
|
|
5773
5836
|
|
|
5774
5837
|
// src/app/platform/on-offline-radio-card.tsx
|
|
5775
5838
|
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
5776
|
-
var
|
|
5839
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
5777
5840
|
var SERVICE_TYPE = {
|
|
5778
5841
|
onlineCoaching: "onlineCoaching",
|
|
5779
5842
|
offlineCoaching: "offlineCoaching"
|
|
5780
5843
|
};
|
|
5781
5844
|
var breakpoint = "sm";
|
|
5782
5845
|
function HideSmallBox(props) {
|
|
5783
|
-
return /* @__PURE__ */ (0,
|
|
5846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
5784
5847
|
}
|
|
5785
5848
|
function OnOfflineRadioCard(props) {
|
|
5786
5849
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
5787
5850
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
5788
5851
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
5789
|
-
return /* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
5790
5853
|
RadioButtonCard.Root,
|
|
5791
5854
|
__spreadProps(__spreadValues({
|
|
5792
5855
|
RadioWrapper: Wrapper,
|
|
@@ -5795,13 +5858,13 @@ function OnOfflineRadioCard(props) {
|
|
|
5795
5858
|
justify
|
|
5796
5859
|
}, props), {
|
|
5797
5860
|
children: [
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
5799
|
-
/* @__PURE__ */ (0,
|
|
5800
|
-
/* @__PURE__ */ (0,
|
|
5861
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
5862
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_icons10.GlobeIcon, {}) }),
|
|
5863
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
5801
5864
|
] }) }),
|
|
5802
|
-
/* @__PURE__ */ (0,
|
|
5803
|
-
/* @__PURE__ */ (0,
|
|
5804
|
-
/* @__PURE__ */ (0,
|
|
5865
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
5866
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_icons10.BackpackIcon, {}) }),
|
|
5867
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
5805
5868
|
] }) })
|
|
5806
5869
|
]
|
|
5807
5870
|
})
|
|
@@ -5809,18 +5872,18 @@ function OnOfflineRadioCard(props) {
|
|
|
5809
5872
|
}
|
|
5810
5873
|
|
|
5811
5874
|
// src/app/platform/edit-service-type.tsx
|
|
5812
|
-
var
|
|
5875
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
5813
5876
|
function EditServiceType(props) {
|
|
5814
5877
|
const { defaultServiceType, onClickCancel } = props;
|
|
5815
|
-
const [sessionType, setSessionType] = (0,
|
|
5878
|
+
const [sessionType, setSessionType] = (0, import_react41.useState)(
|
|
5816
5879
|
defaultServiceType
|
|
5817
5880
|
);
|
|
5818
|
-
const onClickSave = (0,
|
|
5881
|
+
const onClickSave = (0, import_react41.useCallback)(() => {
|
|
5819
5882
|
var _a;
|
|
5820
5883
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
5821
5884
|
}, [props, sessionType]);
|
|
5822
|
-
return /* @__PURE__ */ (0,
|
|
5823
|
-
/* @__PURE__ */ (0,
|
|
5885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes6.Box, { children: [
|
|
5886
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
5824
5887
|
Typo,
|
|
5825
5888
|
{
|
|
5826
5889
|
as: "p",
|
|
@@ -5830,16 +5893,16 @@ function EditServiceType(props) {
|
|
|
5830
5893
|
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"
|
|
5831
5894
|
}
|
|
5832
5895
|
),
|
|
5833
|
-
/* @__PURE__ */ (0,
|
|
5834
|
-
/* @__PURE__ */ (0,
|
|
5835
|
-
/* @__PURE__ */ (0,
|
|
5836
|
-
/* @__PURE__ */ (0,
|
|
5896
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
5897
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
5898
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
5899
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
5837
5900
|
] })
|
|
5838
5901
|
] });
|
|
5839
5902
|
}
|
|
5840
5903
|
|
|
5841
5904
|
// src/app/platform/session-card.tsx
|
|
5842
|
-
var
|
|
5905
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
5843
5906
|
var preventDefault4 = (e) => {
|
|
5844
5907
|
e.preventDefault();
|
|
5845
5908
|
};
|
|
@@ -5869,33 +5932,33 @@ function SessionCard(props) {
|
|
|
5869
5932
|
"endAt",
|
|
5870
5933
|
"sessionType"
|
|
5871
5934
|
]);
|
|
5872
|
-
const renderEditButton = (0,
|
|
5873
|
-
return /* @__PURE__ */ (0,
|
|
5935
|
+
const renderEditButton = (0, import_react42.useCallback)(() => {
|
|
5936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
5874
5937
|
}, []);
|
|
5875
|
-
const sessionTimeStr = (0,
|
|
5938
|
+
const sessionTimeStr = (0, import_react42.useMemo)(() => {
|
|
5876
5939
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
5877
5940
|
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")}`;
|
|
5878
5941
|
}, [startAt, endAt]);
|
|
5879
|
-
return /* @__PURE__ */ (0,
|
|
5880
|
-
/* @__PURE__ */ (0,
|
|
5881
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
5943
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
5944
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
5882
5945
|
TitleExtra,
|
|
5883
|
-
error ? /* @__PURE__ */ (0,
|
|
5946
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
5884
5947
|
] }),
|
|
5885
|
-
/* @__PURE__ */ (0,
|
|
5886
|
-
/* @__PURE__ */ (0,
|
|
5887
|
-
/* @__PURE__ */ (0,
|
|
5888
|
-
/* @__PURE__ */ (0,
|
|
5948
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes15.DataList.Root, { children: [
|
|
5949
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes15.DataList.Item, { children: [
|
|
5950
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
5951
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes15.DataList.Value, { children: [
|
|
5889
5952
|
sessionTimeStr,
|
|
5890
|
-
editable ? /* @__PURE__ */ (0,
|
|
5891
|
-
/* @__PURE__ */ (0,
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
5953
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Dialog.Root, { children: [
|
|
5954
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
5955
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5893
5956
|
Dialog.Content,
|
|
5894
5957
|
{
|
|
5895
5958
|
onOpenAutoFocus: preventDefault4,
|
|
5896
5959
|
style: { overflow: "visible" },
|
|
5897
5960
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
5898
|
-
children: /* @__PURE__ */ (0,
|
|
5961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5899
5962
|
EditCoachingTime,
|
|
5900
5963
|
{
|
|
5901
5964
|
defaultEndAt: endAt,
|
|
@@ -5908,18 +5971,18 @@ function SessionCard(props) {
|
|
|
5908
5971
|
] }) : null
|
|
5909
5972
|
] })
|
|
5910
5973
|
] }),
|
|
5911
|
-
/* @__PURE__ */ (0,
|
|
5912
|
-
/* @__PURE__ */ (0,
|
|
5913
|
-
/* @__PURE__ */ (0,
|
|
5914
|
-
/* @__PURE__ */ (0,
|
|
5974
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
5975
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes15.DataList.Item, { children: [
|
|
5976
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
5977
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes15.DataList.Value, { children: [
|
|
5915
5978
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
5916
|
-
editable ? /* @__PURE__ */ (0,
|
|
5917
|
-
/* @__PURE__ */ (0,
|
|
5918
|
-
/* @__PURE__ */ (0,
|
|
5979
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Dialog.Root, { children: [
|
|
5980
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
5981
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5919
5982
|
Dialog.Content,
|
|
5920
5983
|
{
|
|
5921
5984
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
5922
|
-
children: /* @__PURE__ */ (0,
|
|
5985
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5923
5986
|
EditServiceType,
|
|
5924
5987
|
{
|
|
5925
5988
|
defaultServiceType: sessionType,
|
|
@@ -5931,33 +5994,33 @@ function SessionCard(props) {
|
|
|
5931
5994
|
] }) : null
|
|
5932
5995
|
] })
|
|
5933
5996
|
] }),
|
|
5934
|
-
/* @__PURE__ */ (0,
|
|
5997
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
5935
5998
|
] })
|
|
5936
5999
|
] })
|
|
5937
6000
|
] }) }));
|
|
5938
6001
|
}
|
|
5939
6002
|
|
|
5940
6003
|
// src/app/platform/coach-question-list.tsx
|
|
5941
|
-
var
|
|
6004
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
5942
6005
|
function QuestionItem({ question, answer }) {
|
|
5943
|
-
return /* @__PURE__ */ (0,
|
|
5944
|
-
/* @__PURE__ */ (0,
|
|
5945
|
-
/* @__PURE__ */ (0,
|
|
6006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes6.Box, { children: [
|
|
6007
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
6008
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
5946
6009
|
] }, question);
|
|
5947
6010
|
}
|
|
5948
6011
|
function CoachQuestionList({
|
|
5949
6012
|
questions
|
|
5950
6013
|
}) {
|
|
5951
|
-
return /* @__PURE__ */ (0,
|
|
5952
|
-
return /* @__PURE__ */ (0,
|
|
6014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
6015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
5953
6016
|
}) });
|
|
5954
6017
|
}
|
|
5955
6018
|
|
|
5956
6019
|
// src/app/platform/reservation-card.tsx
|
|
5957
|
-
var
|
|
6020
|
+
var import_react43 = require("react");
|
|
5958
6021
|
var import_date_fns7 = require("date-fns");
|
|
5959
6022
|
var import_locale2 = require("date-fns/locale");
|
|
5960
|
-
var
|
|
6023
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
5961
6024
|
function ReservationCard(props) {
|
|
5962
6025
|
const {
|
|
5963
6026
|
sessionNumber,
|
|
@@ -5972,29 +6035,29 @@ function ReservationCard(props) {
|
|
|
5972
6035
|
onClickCancel,
|
|
5973
6036
|
onClickCompleteSession
|
|
5974
6037
|
} = props;
|
|
5975
|
-
const [editValues, setEditValues] = (0,
|
|
6038
|
+
const [editValues, setEditValues] = (0, import_react43.useState)({
|
|
5976
6039
|
date: props.defaultTime,
|
|
5977
6040
|
type: props.defaultType
|
|
5978
6041
|
});
|
|
5979
6042
|
const date = readonly ? defaultTime : editValues.date;
|
|
5980
6043
|
const type = readonly ? defaultType : editValues.type;
|
|
5981
|
-
const onClickSave = (0,
|
|
6044
|
+
const onClickSave = (0, import_react43.useCallback)(() => {
|
|
5982
6045
|
var _a;
|
|
5983
6046
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
5984
6047
|
}, [editValues, props]);
|
|
5985
|
-
const onClickReset = (0,
|
|
6048
|
+
const onClickReset = (0, import_react43.useCallback)(() => {
|
|
5986
6049
|
setEditValues({
|
|
5987
6050
|
date: defaultTime,
|
|
5988
6051
|
type: defaultType
|
|
5989
6052
|
});
|
|
5990
6053
|
}, [defaultTime, defaultType]);
|
|
5991
|
-
const ActionButtons = (0,
|
|
6054
|
+
const ActionButtons = (0, import_react43.useMemo)(() => {
|
|
5992
6055
|
if (readonly) {
|
|
5993
|
-
return /* @__PURE__ */ (0,
|
|
6056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
5994
6057
|
}
|
|
5995
|
-
return /* @__PURE__ */ (0,
|
|
6058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
5996
6059
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
5997
|
-
const onChangeDate = (0,
|
|
6060
|
+
const onChangeDate = (0, import_react43.useCallback)((newDate) => {
|
|
5998
6061
|
if (!newDate) return;
|
|
5999
6062
|
setEditValues((prev) => {
|
|
6000
6063
|
return __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6002,17 +6065,17 @@ function ReservationCard(props) {
|
|
|
6002
6065
|
});
|
|
6003
6066
|
});
|
|
6004
6067
|
}, []);
|
|
6005
|
-
const onChangeType = (0,
|
|
6068
|
+
const onChangeType = (0, import_react43.useCallback)((newType) => {
|
|
6006
6069
|
setEditValues((prev) => {
|
|
6007
6070
|
return __spreadProps(__spreadValues({}, prev), {
|
|
6008
6071
|
type: newType
|
|
6009
6072
|
});
|
|
6010
6073
|
});
|
|
6011
6074
|
}, []);
|
|
6012
|
-
const formatDate = (0,
|
|
6075
|
+
const formatDate = (0, import_react43.useCallback)((v) => {
|
|
6013
6076
|
return (0, import_date_fns7.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C(EEE) aa h:mm", { locale: import_locale2.ko });
|
|
6014
6077
|
}, []);
|
|
6015
|
-
(0,
|
|
6078
|
+
(0, import_react43.useEffect)(() => {
|
|
6016
6079
|
if (!minTime || !editValues.date || readonly) return;
|
|
6017
6080
|
if (editValues.date < minTime) {
|
|
6018
6081
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6023,7 +6086,7 @@ function ReservationCard(props) {
|
|
|
6023
6086
|
});
|
|
6024
6087
|
}
|
|
6025
6088
|
}, [editValues, minTime, readonly]);
|
|
6026
|
-
(0,
|
|
6089
|
+
(0, import_react43.useEffect)(() => {
|
|
6027
6090
|
if (!maxTime || !editValues.date || readonly) return;
|
|
6028
6091
|
if (editValues.date > maxTime) {
|
|
6029
6092
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6034,39 +6097,39 @@ function ReservationCard(props) {
|
|
|
6034
6097
|
});
|
|
6035
6098
|
}
|
|
6036
6099
|
}, [editValues, maxTime, readonly]);
|
|
6037
|
-
return /* @__PURE__ */ (0,
|
|
6100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6038
6101
|
Card,
|
|
6039
6102
|
{
|
|
6040
6103
|
error: Boolean(error),
|
|
6041
6104
|
size: "3",
|
|
6042
6105
|
style: { overflow: "visible", contain: "initial" },
|
|
6043
6106
|
children: [
|
|
6044
|
-
/* @__PURE__ */ (0,
|
|
6045
|
-
/* @__PURE__ */ (0,
|
|
6107
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
6108
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6046
6109
|
import_themes23.Grid,
|
|
6047
6110
|
{
|
|
6048
6111
|
align: "center",
|
|
6049
6112
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
6050
6113
|
gapY: "2",
|
|
6051
6114
|
children: [
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6053
|
-
/* @__PURE__ */ (0,
|
|
6115
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
6116
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Heading2, { variant: "heading4", children: [
|
|
6054
6117
|
customerName || "-",
|
|
6055
6118
|
"\uB2D8 ",
|
|
6056
6119
|
sessionNumber || "-",
|
|
6057
6120
|
"\uD68C\uCC28 \uC138\uC158"
|
|
6058
6121
|
] }),
|
|
6059
|
-
/* @__PURE__ */ (0,
|
|
6122
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
6060
6123
|
] }),
|
|
6061
|
-
error ? /* @__PURE__ */ (0,
|
|
6124
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
6062
6125
|
]
|
|
6063
6126
|
}
|
|
6064
6127
|
),
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6128
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
6066
6129
|
] }),
|
|
6067
|
-
/* @__PURE__ */ (0,
|
|
6068
|
-
/* @__PURE__ */ (0,
|
|
6069
|
-
/* @__PURE__ */ (0,
|
|
6130
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6131
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
6132
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6070
6133
|
DatePickerButton,
|
|
6071
6134
|
{
|
|
6072
6135
|
disabled: readonly,
|
|
@@ -6080,8 +6143,8 @@ function ReservationCard(props) {
|
|
|
6080
6143
|
size: "large"
|
|
6081
6144
|
}
|
|
6082
6145
|
),
|
|
6083
|
-
/* @__PURE__ */ (0,
|
|
6084
|
-
/* @__PURE__ */ (0,
|
|
6146
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }),
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6085
6148
|
OnOfflineRadioCard,
|
|
6086
6149
|
{
|
|
6087
6150
|
disabled: readonly,
|
|
@@ -6090,8 +6153,8 @@ function ReservationCard(props) {
|
|
|
6090
6153
|
value: type
|
|
6091
6154
|
}
|
|
6092
6155
|
),
|
|
6093
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
6094
|
-
/* @__PURE__ */ (0,
|
|
6156
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
6157
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6095
6158
|
Button,
|
|
6096
6159
|
{
|
|
6097
6160
|
color: "gray",
|
|
@@ -6101,10 +6164,10 @@ function ReservationCard(props) {
|
|
|
6101
6164
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6102
6165
|
}
|
|
6103
6166
|
),
|
|
6104
|
-
/* @__PURE__ */ (0,
|
|
6167
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6105
6168
|
] })
|
|
6106
6169
|
] }) }),
|
|
6107
|
-
readonly ? /* @__PURE__ */ (0,
|
|
6170
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6108
6171
|
import_themes6.Box,
|
|
6109
6172
|
{
|
|
6110
6173
|
mt: "5",
|
|
@@ -6112,14 +6175,14 @@ function ReservationCard(props) {
|
|
|
6112
6175
|
py: "4",
|
|
6113
6176
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
6114
6177
|
width: "100%",
|
|
6115
|
-
children: /* @__PURE__ */ (0,
|
|
6116
|
-
/* @__PURE__ */ (0,
|
|
6178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
6179
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Typo, { children: [
|
|
6117
6180
|
sessionNumber || "-",
|
|
6118
6181
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
6119
6182
|
] }),
|
|
6120
|
-
/* @__PURE__ */ (0,
|
|
6183
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
6121
6184
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
6122
|
-
/* @__PURE__ */ (0,
|
|
6185
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
6123
6186
|
] })
|
|
6124
6187
|
] })
|
|
6125
6188
|
}
|
|
@@ -6130,22 +6193,22 @@ function ReservationCard(props) {
|
|
|
6130
6193
|
}
|
|
6131
6194
|
|
|
6132
6195
|
// src/app/platform/session-review-simple-read.tsx
|
|
6133
|
-
var
|
|
6134
|
-
var
|
|
6196
|
+
var import_react44 = require("react");
|
|
6197
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
6135
6198
|
function SubTitleWrapper({
|
|
6136
6199
|
children,
|
|
6137
6200
|
title
|
|
6138
6201
|
}) {
|
|
6139
|
-
return /* @__PURE__ */ (0,
|
|
6140
|
-
/* @__PURE__ */ (0,
|
|
6141
|
-
/* @__PURE__ */ (0,
|
|
6202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
6203
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
6204
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes6.Box, { children })
|
|
6142
6205
|
] });
|
|
6143
6206
|
}
|
|
6144
6207
|
function SessionReviewSimpleRead({
|
|
6145
6208
|
helpfulness,
|
|
6146
6209
|
review
|
|
6147
6210
|
}) {
|
|
6148
|
-
const helpfulnessMeta = (0,
|
|
6211
|
+
const helpfulnessMeta = (0, import_react44.useMemo)(() => {
|
|
6149
6212
|
if (helpfulness) {
|
|
6150
6213
|
return {
|
|
6151
6214
|
text: "\uB124",
|
|
@@ -6163,22 +6226,22 @@ function SessionReviewSimpleRead({
|
|
|
6163
6226
|
color: "error"
|
|
6164
6227
|
};
|
|
6165
6228
|
}, [helpfulness]);
|
|
6166
|
-
return /* @__PURE__ */ (0,
|
|
6167
|
-
/* @__PURE__ */ (0,
|
|
6168
|
-
/* @__PURE__ */ (0,
|
|
6229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6230
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.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_runtime96.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
6231
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
6169
6232
|
] }) });
|
|
6170
6233
|
}
|
|
6171
6234
|
|
|
6172
6235
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
6173
|
-
var
|
|
6236
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6174
6237
|
function SectionWrapper({
|
|
6175
6238
|
title,
|
|
6176
6239
|
children
|
|
6177
6240
|
}) {
|
|
6178
|
-
return /* @__PURE__ */ (0,
|
|
6179
|
-
/* @__PURE__ */ (0,
|
|
6180
|
-
/* @__PURE__ */ (0,
|
|
6181
|
-
/* @__PURE__ */ (0,
|
|
6241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes6.Box, { children: [
|
|
6242
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
6243
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
6244
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes39.Separator, { size: "4" })
|
|
6182
6245
|
] }),
|
|
6183
6246
|
children
|
|
6184
6247
|
] });
|
|
@@ -6188,22 +6251,22 @@ function SessionUserInfoDetail({
|
|
|
6188
6251
|
session,
|
|
6189
6252
|
onClickCopy
|
|
6190
6253
|
}) {
|
|
6191
|
-
return /* @__PURE__ */ (0,
|
|
6192
|
-
/* @__PURE__ */ (0,
|
|
6254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
6255
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
6193
6256
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
6194
6257
|
) }) }),
|
|
6195
|
-
/* @__PURE__ */ (0,
|
|
6258
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
6196
6259
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
6197
6260
|
) }) })
|
|
6198
6261
|
] });
|
|
6199
6262
|
}
|
|
6200
6263
|
|
|
6201
6264
|
// src/app/platform/report-card.tsx
|
|
6202
|
-
var
|
|
6203
|
-
var
|
|
6265
|
+
var import_react45 = require("react");
|
|
6266
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6204
6267
|
function ReportCard(props) {
|
|
6205
6268
|
const { title, file, status, subtitle } = props;
|
|
6206
|
-
const onClickDownload = (0,
|
|
6269
|
+
const onClickDownload = (0, import_react45.useCallback)(() => {
|
|
6207
6270
|
if (!file) return;
|
|
6208
6271
|
const { url, fileName } = file;
|
|
6209
6272
|
const link = document.createElement("a");
|
|
@@ -6215,24 +6278,24 @@ function ReportCard(props) {
|
|
|
6215
6278
|
document.body.removeChild(link);
|
|
6216
6279
|
}, [file]);
|
|
6217
6280
|
if (status) {
|
|
6218
|
-
return /* @__PURE__ */ (0,
|
|
6219
|
-
/* @__PURE__ */ (0,
|
|
6281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
6282
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6220
6283
|
status
|
|
6221
6284
|
] }) });
|
|
6222
6285
|
}
|
|
6223
|
-
return /* @__PURE__ */ (0,
|
|
6286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
6224
6287
|
import_themes22.Flex,
|
|
6225
6288
|
{
|
|
6226
6289
|
direction: { initial: "column", xs: "row" },
|
|
6227
6290
|
gapY: "2",
|
|
6228
6291
|
justify: "between",
|
|
6229
6292
|
children: [
|
|
6230
|
-
/* @__PURE__ */ (0,
|
|
6231
|
-
/* @__PURE__ */ (0,
|
|
6232
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
6293
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes6.Box, { children: [
|
|
6294
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6295
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Typo, { color: "gray", children: subtitle }) : null
|
|
6233
6296
|
] }),
|
|
6234
|
-
/* @__PURE__ */ (0,
|
|
6235
|
-
/* @__PURE__ */ (0,
|
|
6297
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
6298
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
6236
6299
|
file == null ? void 0 : file.buttonName
|
|
6237
6300
|
] }) }, file == null ? void 0 : file.url)
|
|
6238
6301
|
]
|
|
@@ -6241,9 +6304,9 @@ function ReportCard(props) {
|
|
|
6241
6304
|
}
|
|
6242
6305
|
|
|
6243
6306
|
// src/app/platform/contents-card.tsx
|
|
6244
|
-
var
|
|
6245
|
-
var
|
|
6246
|
-
var ContentsCard = (0,
|
|
6307
|
+
var import_react46 = require("react");
|
|
6308
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6309
|
+
var ContentsCard = (0, import_react46.forwardRef)(
|
|
6247
6310
|
({
|
|
6248
6311
|
title,
|
|
6249
6312
|
description,
|
|
@@ -6253,7 +6316,7 @@ var ContentsCard = (0, import_react44.forwardRef)(
|
|
|
6253
6316
|
onClickCard,
|
|
6254
6317
|
isLoading = false
|
|
6255
6318
|
}, ref) => {
|
|
6256
|
-
return /* @__PURE__ */ (0,
|
|
6319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
6257
6320
|
Card,
|
|
6258
6321
|
{
|
|
6259
6322
|
onClick: onClickCard,
|
|
@@ -6266,7 +6329,7 @@ var ContentsCard = (0, import_react44.forwardRef)(
|
|
|
6266
6329
|
maxHeight: "450px"
|
|
6267
6330
|
},
|
|
6268
6331
|
children: [
|
|
6269
|
-
/* @__PURE__ */ (0,
|
|
6332
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6270
6333
|
import_themes6.Box,
|
|
6271
6334
|
{
|
|
6272
6335
|
height: "210px",
|
|
@@ -6278,12 +6341,12 @@ var ContentsCard = (0, import_react44.forwardRef)(
|
|
|
6278
6341
|
width: "100%"
|
|
6279
6342
|
}
|
|
6280
6343
|
) }) }),
|
|
6281
|
-
/* @__PURE__ */ (0,
|
|
6282
|
-
/* @__PURE__ */ (0,
|
|
6283
|
-
/* @__PURE__ */ (0,
|
|
6284
|
-
/* @__PURE__ */ (0,
|
|
6344
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
6345
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes6.Box, { children: [
|
|
6346
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
6347
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
6285
6348
|
] }),
|
|
6286
|
-
/* @__PURE__ */ (0,
|
|
6349
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
6287
6350
|
import_themes23.Grid,
|
|
6288
6351
|
{
|
|
6289
6352
|
align: "center",
|
|
@@ -6293,10 +6356,10 @@ var ContentsCard = (0, import_react44.forwardRef)(
|
|
|
6293
6356
|
style: { marginTop: "auto" },
|
|
6294
6357
|
width: "100%",
|
|
6295
6358
|
children: [
|
|
6296
|
-
/* @__PURE__ */ (0,
|
|
6297
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
6298
|
-
/* @__PURE__ */ (0,
|
|
6299
|
-
/* @__PURE__ */ (0,
|
|
6359
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
6360
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(DropdownMenu.Root, { children: [
|
|
6361
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
6362
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6300
6363
|
DropdownMenu.Item,
|
|
6301
6364
|
{
|
|
6302
6365
|
onClick: (e) => {
|
|
@@ -6320,7 +6383,7 @@ var ContentsCard = (0, import_react44.forwardRef)(
|
|
|
6320
6383
|
ContentsCard.displayName = "ContentsCard";
|
|
6321
6384
|
|
|
6322
6385
|
// src/app/platform/curriculum-card.tsx
|
|
6323
|
-
var
|
|
6386
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6324
6387
|
function CurriculumCard(props) {
|
|
6325
6388
|
const {
|
|
6326
6389
|
title,
|
|
@@ -6331,7 +6394,7 @@ function CurriculumCard(props) {
|
|
|
6331
6394
|
bgColor,
|
|
6332
6395
|
onClick
|
|
6333
6396
|
} = props;
|
|
6334
|
-
return /* @__PURE__ */ (0,
|
|
6397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
6335
6398
|
import_themes23.Grid,
|
|
6336
6399
|
{
|
|
6337
6400
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -6340,7 +6403,7 @@ function CurriculumCard(props) {
|
|
|
6340
6403
|
onClick,
|
|
6341
6404
|
style: { cursor: "pointer" },
|
|
6342
6405
|
children: [
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6406
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6344
6407
|
import_themes6.Box,
|
|
6345
6408
|
{
|
|
6346
6409
|
height: "165px",
|
|
@@ -6355,32 +6418,32 @@ function CurriculumCard(props) {
|
|
|
6355
6418
|
backgroundAttachment: "local"
|
|
6356
6419
|
},
|
|
6357
6420
|
width: "100%",
|
|
6358
|
-
children: /* @__PURE__ */ (0,
|
|
6421
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
6359
6422
|
}
|
|
6360
6423
|
),
|
|
6361
|
-
/* @__PURE__ */ (0,
|
|
6362
|
-
/* @__PURE__ */ (0,
|
|
6363
|
-
/* @__PURE__ */ (0,
|
|
6364
|
-
/* @__PURE__ */ (0,
|
|
6424
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
6425
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
6426
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6427
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6365
6428
|
Badge,
|
|
6366
6429
|
{
|
|
6367
6430
|
size: "medium",
|
|
6368
6431
|
style: { justifySelf: "flex-start" },
|
|
6369
6432
|
variant: "outline",
|
|
6370
|
-
children: /* @__PURE__ */ (0,
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6433
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
6434
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_icons2.TimerIcon, {}),
|
|
6372
6435
|
runningTime
|
|
6373
6436
|
] })
|
|
6374
6437
|
}
|
|
6375
6438
|
)
|
|
6376
6439
|
] }),
|
|
6377
|
-
/* @__PURE__ */ (0,
|
|
6378
|
-
return /* @__PURE__ */ (0,
|
|
6440
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
6441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
6379
6442
|
}) }) }),
|
|
6380
|
-
/* @__PURE__ */ (0,
|
|
6381
|
-
/* @__PURE__ */ (0,
|
|
6382
|
-
/* @__PURE__ */ (0,
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6443
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes39.Separator, { size: "4" }),
|
|
6444
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
6445
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
6446
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
6384
6447
|
] })
|
|
6385
6448
|
] })
|
|
6386
6449
|
]
|
|
@@ -6500,6 +6563,7 @@ function CurriculumCard(props) {
|
|
|
6500
6563
|
LearningPost,
|
|
6501
6564
|
Link,
|
|
6502
6565
|
Link2Icon,
|
|
6566
|
+
List,
|
|
6503
6567
|
MagnifyingGlassIcon,
|
|
6504
6568
|
MicIcon,
|
|
6505
6569
|
MixerHorizontalIcon,
|
|
@@ -6576,6 +6640,7 @@ function CurriculumCard(props) {
|
|
|
6576
6640
|
toast,
|
|
6577
6641
|
uiProps,
|
|
6578
6642
|
useCurriculumContext,
|
|
6643
|
+
useList,
|
|
6579
6644
|
usePortalContainer,
|
|
6580
6645
|
useThemeContext
|
|
6581
6646
|
});
|