@tipp/ui 2.1.33 → 2.1.35
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 +399 -382
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +40 -39
- package/dist/app/platform/coach-question-list.cjs +11 -6
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +7 -6
- package/dist/app/platform/contents-card.cjs +19 -14
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +7 -6
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs +139 -122
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +29 -28
- package/dist/app/platform/edit-service-type.cjs +129 -112
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +29 -28
- package/dist/app/platform/goal-manage-card-edit.cjs +120 -115
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +28 -27
- package/dist/app/platform/goal-manage-card-read.cjs +48 -43
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +7 -6
- package/dist/app/platform/on-offline-radio-card.cjs +103 -98
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +28 -27
- package/dist/app/platform/report-card.cjs +16 -11
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +7 -6
- package/dist/app/platform/reservation-card.cjs +143 -138
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +28 -27
- package/dist/app/platform/session-card.cjs +191 -174
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +31 -30
- package/dist/app/platform/session-review-simple-read.cjs +14 -9
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +7 -6
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +45 -40
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +7 -6
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +22 -17
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +7 -6
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +25 -20
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +7 -6
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -6
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +7 -6
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +21 -16
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +7 -6
- package/dist/app/platform/userInfos/utils.cjs +13 -8
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +7 -6
- package/dist/atoms/dialog.cjs +16 -4
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/index.cjs +54 -6
- 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 +16 -10
- 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 +2 -2
- 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-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-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-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-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-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-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 +6 -6
- package/dist/icons/index.js +6 -6
- package/dist/index.cjs +809 -761
- 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 +58 -52
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +95 -90
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +15 -14
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +11 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +9 -8
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +60 -55
- 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 +14 -13
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +14 -9
- 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 +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +16 -11
- 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 +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs +14 -9
- 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 +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +36 -31
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +15 -10
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +15 -10
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +22 -17
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +22 -17
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +131 -126
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +17 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +30 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +9 -8
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +16 -11
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +197 -180
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +18 -17
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +12 -7
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +220 -203
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +20 -19
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +9 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs +8 -3
- 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 +7 -6
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +13 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +9 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +9 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +34 -29
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +11 -10
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +24 -19
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +10 -9
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +23 -18
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +7 -6
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs +13 -8
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +7 -6
- package/dist/molecules/curriculumV2/index.cjs +266 -249
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +23 -22
- package/dist/molecules/date-picker/date-picker-button.cjs +35 -30
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +7 -6
- package/dist/molecules/date-picker/index.cjs +27 -22
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +7 -6
- package/dist/molecules/expand-table/index.cjs +37 -32
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +8 -7
- package/dist/molecules/expand-table/row.cjs +15 -10
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +7 -6
- package/dist/molecules/index.cjs +491 -474
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +32 -31
- package/dist/molecules/navigation.cjs +11 -6
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +7 -6
- package/dist/molecules/radio-button-card.cjs +15 -10
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +7 -6
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs +49 -44
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +8 -7
- package/dist/molecules/time-select.cjs +13 -8
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +8 -7
- package/dist/utils/curriculum.utils.js +3 -3
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
- package/src/atoms/dialog.tsx +30 -14
- 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,
|
|
@@ -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
|
});
|
|
@@ -664,18 +666,30 @@ function Trigger2(_a) {
|
|
|
664
666
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
665
667
|
}
|
|
666
668
|
function Root3(props) {
|
|
669
|
+
const prevOpenRef = (0, import_react9.useRef)(void 0);
|
|
670
|
+
const cleanupExecutedRef = (0, import_react9.useRef)(false);
|
|
667
671
|
(0, import_react9.useEffect)(() => {
|
|
668
|
-
|
|
672
|
+
const prevOpen = prevOpenRef.current;
|
|
673
|
+
const currentOpen = props.open;
|
|
674
|
+
if (prevOpen === true && currentOpen === false && !cleanupExecutedRef.current) {
|
|
675
|
+
cleanupExecutedRef.current = true;
|
|
669
676
|
const timer = setTimeout(() => {
|
|
670
677
|
var _a;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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
|
+
}
|
|
674
686
|
}, 100);
|
|
675
687
|
return () => {
|
|
676
688
|
clearTimeout(timer);
|
|
689
|
+
cleanupExecutedRef.current = false;
|
|
677
690
|
};
|
|
678
691
|
}
|
|
692
|
+
prevOpenRef.current = currentOpen;
|
|
679
693
|
}, [props.open]);
|
|
680
694
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Root, __spreadValues({}, props));
|
|
681
695
|
}
|
|
@@ -1951,23 +1965,55 @@ function BulletText(_a) {
|
|
|
1951
1965
|
] });
|
|
1952
1966
|
}
|
|
1953
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
|
+
|
|
1954
2000
|
// src/molecules/expand-table/index.tsx
|
|
1955
2001
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1956
|
-
var
|
|
2002
|
+
var import_react23 = require("react");
|
|
1957
2003
|
|
|
1958
2004
|
// src/molecules/expand-table/row.tsx
|
|
1959
2005
|
var import_react_table = require("@tanstack/react-table");
|
|
1960
|
-
var
|
|
1961
|
-
var
|
|
2006
|
+
var import_react22 = require("react");
|
|
2007
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1962
2008
|
function Row(props) {
|
|
1963
2009
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1964
|
-
const [open, setOpen] = (0,
|
|
1965
|
-
const onClickRow = (0,
|
|
2010
|
+
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
2011
|
+
const onClickRow = (0, import_react22.useCallback)(() => {
|
|
1966
2012
|
var _a;
|
|
1967
2013
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1968
2014
|
setOpen((prev) => !prev);
|
|
1969
2015
|
}, [props, row.original]);
|
|
1970
|
-
const rowClassName = (0,
|
|
2016
|
+
const rowClassName = (0, import_react22.useMemo)(() => {
|
|
1971
2017
|
const baseCls = ["tr-wrapper"];
|
|
1972
2018
|
if (ExpandComp) {
|
|
1973
2019
|
baseCls.push("expandable");
|
|
@@ -1977,8 +2023,8 @@ function Row(props) {
|
|
|
1977
2023
|
}
|
|
1978
2024
|
return baseCls.join(" ");
|
|
1979
2025
|
}, [ExpandComp, props.onRowClick]);
|
|
1980
|
-
return /* @__PURE__ */ (0,
|
|
1981
|
-
/* @__PURE__ */ (0,
|
|
2026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: rowClassName, children: [
|
|
2027
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1982
2028
|
"button",
|
|
1983
2029
|
{
|
|
1984
2030
|
className: "tr",
|
|
@@ -1991,7 +2037,7 @@ function Row(props) {
|
|
|
1991
2037
|
var _a, _b, _c;
|
|
1992
2038
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1993
2039
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1994
|
-
return /* @__PURE__ */ (0,
|
|
2040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
1995
2041
|
"div",
|
|
1996
2042
|
{
|
|
1997
2043
|
className: "td",
|
|
@@ -2002,7 +2048,7 @@ function Row(props) {
|
|
|
2002
2048
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
2003
2049
|
children: [
|
|
2004
2050
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
2005
|
-
((_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)(
|
|
2006
2052
|
cell.column.columnDef.meta.OpenBtn,
|
|
2007
2053
|
{
|
|
2008
2054
|
data: row.original,
|
|
@@ -2018,12 +2064,12 @@ function Row(props) {
|
|
|
2018
2064
|
},
|
|
2019
2065
|
`tr_${row.id}`
|
|
2020
2066
|
),
|
|
2021
|
-
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
|
|
2022
2068
|
] }, `tr-wrapper_${row.id}`);
|
|
2023
2069
|
}
|
|
2024
2070
|
|
|
2025
2071
|
// src/molecules/expand-table/index.tsx
|
|
2026
|
-
var
|
|
2072
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2027
2073
|
function ExpandTable(props) {
|
|
2028
2074
|
const {
|
|
2029
2075
|
data,
|
|
@@ -2041,11 +2087,11 @@ function ExpandTable(props) {
|
|
|
2041
2087
|
getCellStyle
|
|
2042
2088
|
} = props;
|
|
2043
2089
|
const defaultAlign = "left";
|
|
2044
|
-
const [pagination, setPagination] = (0,
|
|
2090
|
+
const [pagination, setPagination] = (0, import_react23.useState)({
|
|
2045
2091
|
pageIndex: pageIndex || 0,
|
|
2046
2092
|
pageSize: pageSize || 9999
|
|
2047
2093
|
});
|
|
2048
|
-
const [sorting, setSorting] = (0,
|
|
2094
|
+
const [sorting, setSorting] = (0, import_react23.useState)([]);
|
|
2049
2095
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
2050
2096
|
data: data || [],
|
|
2051
2097
|
columns,
|
|
@@ -2059,7 +2105,7 @@ function ExpandTable(props) {
|
|
|
2059
2105
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
2060
2106
|
onPaginationChange: setPagination
|
|
2061
2107
|
});
|
|
2062
|
-
const gridTemplateColumns = (0,
|
|
2108
|
+
const gridTemplateColumns = (0, import_react23.useMemo)(() => {
|
|
2063
2109
|
return columns.map((col) => {
|
|
2064
2110
|
var _a;
|
|
2065
2111
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
|
|
@@ -2067,16 +2113,16 @@ function ExpandTable(props) {
|
|
|
2067
2113
|
}).join(" ");
|
|
2068
2114
|
}, [columns]);
|
|
2069
2115
|
const rowModels = getRowModel();
|
|
2070
|
-
const onChangePagination = (0,
|
|
2116
|
+
const onChangePagination = (0, import_react23.useCallback)(
|
|
2071
2117
|
(page) => {
|
|
2072
2118
|
setPageIndex(page - 1);
|
|
2073
2119
|
},
|
|
2074
2120
|
[setPageIndex]
|
|
2075
2121
|
);
|
|
2076
|
-
const helpCompRender = (0,
|
|
2122
|
+
const helpCompRender = (0, import_react23.useCallback)(
|
|
2077
2123
|
(rowLength) => {
|
|
2078
2124
|
if (isLoading) {
|
|
2079
|
-
return /* @__PURE__ */ (0,
|
|
2125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2080
2126
|
import_themes22.Flex,
|
|
2081
2127
|
{
|
|
2082
2128
|
align: "center",
|
|
@@ -2084,24 +2130,24 @@ function ExpandTable(props) {
|
|
|
2084
2130
|
justify: "center",
|
|
2085
2131
|
p: "5",
|
|
2086
2132
|
width: "100%",
|
|
2087
|
-
children: /* @__PURE__ */ (0,
|
|
2133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes49.Spinner, {})
|
|
2088
2134
|
}
|
|
2089
2135
|
);
|
|
2090
2136
|
}
|
|
2091
2137
|
if (rowLength === 0) {
|
|
2092
|
-
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");
|
|
2093
2139
|
}
|
|
2094
2140
|
return null;
|
|
2095
2141
|
},
|
|
2096
2142
|
[isLoading, placeholder]
|
|
2097
2143
|
);
|
|
2098
|
-
const pageCount = (0,
|
|
2144
|
+
const pageCount = (0, import_react23.useMemo)(() => {
|
|
2099
2145
|
if (!data) return 0;
|
|
2100
2146
|
return Math.ceil(data.length / pageSize);
|
|
2101
2147
|
}, [data, pageSize]);
|
|
2102
|
-
return /* @__PURE__ */ (0,
|
|
2103
|
-
/* @__PURE__ */ (0,
|
|
2104
|
-
/* @__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)(
|
|
2105
2151
|
"div",
|
|
2106
2152
|
{
|
|
2107
2153
|
className: "tr",
|
|
@@ -2111,30 +2157,30 @@ function ExpandTable(props) {
|
|
|
2111
2157
|
const sortable = header.column.getCanSort();
|
|
2112
2158
|
const sortedState = header.column.getIsSorted();
|
|
2113
2159
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
2114
|
-
return /* @__PURE__ */ (0,
|
|
2160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2115
2161
|
"button",
|
|
2116
2162
|
{
|
|
2117
2163
|
onClick: header.column.getToggleSortingHandler(),
|
|
2118
2164
|
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
2119
2165
|
type: "button",
|
|
2120
2166
|
children: [
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2122
2168
|
header.column.columnDef.header,
|
|
2123
2169
|
header.getContext()
|
|
2124
2170
|
) }),
|
|
2125
|
-
sortable ? /* @__PURE__ */ (0,
|
|
2171
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2126
2172
|
import_themes22.Flex,
|
|
2127
2173
|
{
|
|
2128
2174
|
direction: "column",
|
|
2129
2175
|
style: { marginLeft: "var(--space-2)" },
|
|
2130
2176
|
children: [
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2132
2178
|
TriangleArrowUpIcon,
|
|
2133
2179
|
{
|
|
2134
2180
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2135
2181
|
}
|
|
2136
2182
|
),
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2183
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2138
2184
|
TriangleArrowDownIcon,
|
|
2139
2185
|
{
|
|
2140
2186
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -2150,8 +2196,8 @@ function ExpandTable(props) {
|
|
|
2150
2196
|
},
|
|
2151
2197
|
headerGroup.id
|
|
2152
2198
|
)) }),
|
|
2153
|
-
/* @__PURE__ */ (0,
|
|
2154
|
-
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)(
|
|
2155
2201
|
Row,
|
|
2156
2202
|
{
|
|
2157
2203
|
ExpandComp,
|
|
@@ -2166,7 +2212,7 @@ function ExpandTable(props) {
|
|
|
2166
2212
|
);
|
|
2167
2213
|
}) })
|
|
2168
2214
|
] }),
|
|
2169
|
-
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)(
|
|
2170
2216
|
Pagination,
|
|
2171
2217
|
{
|
|
2172
2218
|
count: pageCount,
|
|
@@ -2179,14 +2225,14 @@ function ExpandTable(props) {
|
|
|
2179
2225
|
}
|
|
2180
2226
|
|
|
2181
2227
|
// src/molecules/navigation.tsx
|
|
2182
|
-
var
|
|
2228
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2183
2229
|
function Navigation({
|
|
2184
2230
|
items,
|
|
2185
2231
|
fontColor,
|
|
2186
2232
|
backgroundColor,
|
|
2187
2233
|
activeKey
|
|
2188
2234
|
}) {
|
|
2189
|
-
return /* @__PURE__ */ (0,
|
|
2235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2190
2236
|
import_themes22.Flex,
|
|
2191
2237
|
{
|
|
2192
2238
|
direction: "column",
|
|
@@ -2198,13 +2244,13 @@ function Navigation({
|
|
|
2198
2244
|
},
|
|
2199
2245
|
children: items == null ? void 0 : items.map((item) => {
|
|
2200
2246
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
2201
|
-
return /* @__PURE__ */ (0,
|
|
2202
|
-
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: [
|
|
2203
2249
|
icon,
|
|
2204
|
-
/* @__PURE__ */ (0,
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, { variant: "subtitle", children: title })
|
|
2205
2251
|
] }),
|
|
2206
2252
|
children == null ? void 0 : children.map((menu) => {
|
|
2207
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
2253
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2208
2254
|
Button,
|
|
2209
2255
|
{
|
|
2210
2256
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -2228,17 +2274,17 @@ function Navigation({
|
|
|
2228
2274
|
}
|
|
2229
2275
|
|
|
2230
2276
|
// src/molecules/date-picker/index.tsx
|
|
2231
|
-
var
|
|
2277
|
+
var import_react24 = require("react");
|
|
2232
2278
|
var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
2233
2279
|
var import_locale = require("date-fns/locale");
|
|
2234
|
-
var
|
|
2235
|
-
var DatePicker = (0,
|
|
2280
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2281
|
+
var DatePicker = (0, import_react24.forwardRef)(
|
|
2236
2282
|
(props, ref) => {
|
|
2237
2283
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
2238
2284
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
2239
|
-
const [isYearDropdownOpen, setIsYearDropdownOpen] = (0,
|
|
2240
|
-
const [isMonthDropdownOpen, setIsMonthDropdownOpen] = (0,
|
|
2241
|
-
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)(() => {
|
|
2242
2288
|
const getYears = () => {
|
|
2243
2289
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2244
2290
|
return Array.from(
|
|
@@ -2262,7 +2308,7 @@ var DatePicker = (0, import_react23.forwardRef)(
|
|
|
2262
2308
|
setIsMonthDropdownOpen
|
|
2263
2309
|
}));
|
|
2264
2310
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
2265
|
-
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)(
|
|
2266
2312
|
import_react_datepicker.default,
|
|
2267
2313
|
__spreadProps(__spreadValues({
|
|
2268
2314
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -2296,8 +2342,8 @@ function DropdownSelector({
|
|
|
2296
2342
|
selectedValue,
|
|
2297
2343
|
suffix
|
|
2298
2344
|
}) {
|
|
2299
|
-
const scrollContainerRef = (0,
|
|
2300
|
-
(0,
|
|
2345
|
+
const scrollContainerRef = (0, import_react24.useRef)(null);
|
|
2346
|
+
(0, import_react24.useEffect)(() => {
|
|
2301
2347
|
if (isOpen) {
|
|
2302
2348
|
queueMicrotask(() => {
|
|
2303
2349
|
var _a;
|
|
@@ -2310,19 +2356,19 @@ function DropdownSelector({
|
|
|
2310
2356
|
});
|
|
2311
2357
|
}
|
|
2312
2358
|
}, [isOpen]);
|
|
2313
|
-
return /* @__PURE__ */ (0,
|
|
2314
|
-
/* @__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: [
|
|
2315
2361
|
selectedValue,
|
|
2316
2362
|
suffix
|
|
2317
2363
|
] }) }) }),
|
|
2318
|
-
/* @__PURE__ */ (0,
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes29.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2319
2365
|
import_themes6.Box,
|
|
2320
2366
|
{
|
|
2321
2367
|
maxHeight: "200px",
|
|
2322
2368
|
overflowY: "auto",
|
|
2323
2369
|
ref: scrollContainerRef,
|
|
2324
2370
|
style: { scrollbarWidth: "none" },
|
|
2325
|
-
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)(
|
|
2326
2372
|
Button,
|
|
2327
2373
|
{
|
|
2328
2374
|
color: "gray",
|
|
@@ -2336,7 +2382,7 @@ function DropdownSelector({
|
|
|
2336
2382
|
onSelect(item);
|
|
2337
2383
|
},
|
|
2338
2384
|
variant: "transparent",
|
|
2339
|
-
children: /* @__PURE__ */ (0,
|
|
2385
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
2340
2386
|
item,
|
|
2341
2387
|
suffix
|
|
2342
2388
|
] })
|
|
@@ -2367,19 +2413,19 @@ var getRenderCustomHeader = (props) => {
|
|
|
2367
2413
|
} = props;
|
|
2368
2414
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
2369
2415
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
2370
|
-
return /* @__PURE__ */ (0,
|
|
2371
|
-
/* @__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)(
|
|
2372
2418
|
import_themes18.IconButton,
|
|
2373
2419
|
{
|
|
2374
2420
|
disabled: prevMonthButtonDisabled,
|
|
2375
2421
|
onClick: decreaseMonth,
|
|
2376
2422
|
type: "button",
|
|
2377
2423
|
variant: "ghost",
|
|
2378
|
-
children: /* @__PURE__ */ (0,
|
|
2424
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
2379
2425
|
}
|
|
2380
2426
|
),
|
|
2381
|
-
/* @__PURE__ */ (0,
|
|
2382
|
-
/* @__PURE__ */ (0,
|
|
2427
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
2428
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2383
2429
|
DropdownSelector,
|
|
2384
2430
|
{
|
|
2385
2431
|
isOpen: isYearDropdownOpen,
|
|
@@ -2393,7 +2439,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2393
2439
|
suffix: "\uB144"
|
|
2394
2440
|
}
|
|
2395
2441
|
),
|
|
2396
|
-
/* @__PURE__ */ (0,
|
|
2442
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2397
2443
|
DropdownSelector,
|
|
2398
2444
|
{
|
|
2399
2445
|
isOpen: isMonthDropdownOpen,
|
|
@@ -2408,14 +2454,14 @@ var getRenderCustomHeader = (props) => {
|
|
|
2408
2454
|
}
|
|
2409
2455
|
)
|
|
2410
2456
|
] }),
|
|
2411
|
-
/* @__PURE__ */ (0,
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2412
2458
|
import_themes18.IconButton,
|
|
2413
2459
|
{
|
|
2414
2460
|
disabled: nextMonthButtonDisabled,
|
|
2415
2461
|
onClick: increaseMonth,
|
|
2416
2462
|
type: "button",
|
|
2417
2463
|
variant: "ghost",
|
|
2418
|
-
children: /* @__PURE__ */ (0,
|
|
2464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
2419
2465
|
}
|
|
2420
2466
|
)
|
|
2421
2467
|
] });
|
|
@@ -2424,18 +2470,18 @@ var getRenderCustomHeader = (props) => {
|
|
|
2424
2470
|
};
|
|
2425
2471
|
|
|
2426
2472
|
// src/molecules/dot-navigation.tsx
|
|
2427
|
-
var
|
|
2473
|
+
var import_react25 = require("react");
|
|
2428
2474
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2429
|
-
var
|
|
2475
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2430
2476
|
function DotNavigation(props) {
|
|
2431
2477
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
2432
|
-
const [currentDot, setCurrentDot] = (0,
|
|
2478
|
+
const [currentDot, setCurrentDot] = (0, import_react25.useState)(
|
|
2433
2479
|
() => {
|
|
2434
2480
|
var _a;
|
|
2435
2481
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
2436
2482
|
}
|
|
2437
2483
|
);
|
|
2438
|
-
const onClickDot = (0,
|
|
2484
|
+
const onClickDot = (0, import_react25.useCallback)(
|
|
2439
2485
|
(i) => {
|
|
2440
2486
|
if (onClick) {
|
|
2441
2487
|
onClick(i);
|
|
@@ -2445,16 +2491,16 @@ function DotNavigation(props) {
|
|
|
2445
2491
|
},
|
|
2446
2492
|
[onClick]
|
|
2447
2493
|
);
|
|
2448
|
-
(0,
|
|
2494
|
+
(0, import_react25.useEffect)(() => {
|
|
2449
2495
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
2450
2496
|
}, [currentDot, onChangeDotIndex]);
|
|
2451
|
-
(0,
|
|
2497
|
+
(0, import_react25.useEffect)(() => {
|
|
2452
2498
|
if (typeof dotIndex === "undefined") return;
|
|
2453
2499
|
setCurrentDot(dotIndex);
|
|
2454
2500
|
}, [dotIndex]);
|
|
2455
|
-
return /* @__PURE__ */ (0,
|
|
2501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
2456
2502
|
const isSelected = currentDot === index;
|
|
2457
|
-
return /* @__PURE__ */ (0,
|
|
2503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2458
2504
|
import_react_icons4.DotFilledIcon,
|
|
2459
2505
|
{
|
|
2460
2506
|
height: "24px",
|
|
@@ -2473,15 +2519,15 @@ function DotNavigation(props) {
|
|
|
2473
2519
|
}
|
|
2474
2520
|
|
|
2475
2521
|
// src/molecules/stepper.tsx
|
|
2476
|
-
var
|
|
2522
|
+
var import_react26 = require("react");
|
|
2477
2523
|
var import_themes51 = require("@radix-ui/themes");
|
|
2478
|
-
var
|
|
2479
|
-
var StepContext = (0,
|
|
2524
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2525
|
+
var StepContext = (0, import_react26.createContext)({
|
|
2480
2526
|
active: false,
|
|
2481
2527
|
completed: false,
|
|
2482
2528
|
index: 0
|
|
2483
2529
|
});
|
|
2484
|
-
function
|
|
2530
|
+
function Root11(props) {
|
|
2485
2531
|
const {
|
|
2486
2532
|
activeStep = 0,
|
|
2487
2533
|
children,
|
|
@@ -2490,7 +2536,7 @@ function Root10(props) {
|
|
|
2490
2536
|
maxWidth,
|
|
2491
2537
|
direction = "vertical"
|
|
2492
2538
|
} = props;
|
|
2493
|
-
return /* @__PURE__ */ (0,
|
|
2539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2494
2540
|
import_themes22.Flex,
|
|
2495
2541
|
{
|
|
2496
2542
|
gap: "3",
|
|
@@ -2499,8 +2545,8 @@ function Root10(props) {
|
|
|
2499
2545
|
minWidth,
|
|
2500
2546
|
maxWidth
|
|
2501
2547
|
},
|
|
2502
|
-
children:
|
|
2503
|
-
return /* @__PURE__ */ (0,
|
|
2548
|
+
children: import_react26.Children.map(children, (child, index) => {
|
|
2549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2504
2550
|
StepContext.Provider,
|
|
2505
2551
|
{
|
|
2506
2552
|
value: {
|
|
@@ -2523,8 +2569,8 @@ function Step(props) {
|
|
|
2523
2569
|
completed,
|
|
2524
2570
|
index,
|
|
2525
2571
|
direction = "vertical"
|
|
2526
|
-
} = (0,
|
|
2527
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
2572
|
+
} = (0, import_react26.useContext)(StepContext);
|
|
2573
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2528
2574
|
import_themes51.Separator,
|
|
2529
2575
|
{
|
|
2530
2576
|
style: {
|
|
@@ -2535,7 +2581,7 @@ function Step(props) {
|
|
|
2535
2581
|
}
|
|
2536
2582
|
}
|
|
2537
2583
|
) : null;
|
|
2538
|
-
const InnerStep = (0,
|
|
2584
|
+
const InnerStep = (0, import_react26.useMemo)(() => {
|
|
2539
2585
|
if (active) {
|
|
2540
2586
|
return ActiveStep;
|
|
2541
2587
|
}
|
|
@@ -2544,7 +2590,7 @@ function Step(props) {
|
|
|
2544
2590
|
}
|
|
2545
2591
|
return IncompleteStep;
|
|
2546
2592
|
}, [completed, active]);
|
|
2547
|
-
return /* @__PURE__ */ (0,
|
|
2593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2548
2594
|
import_themes22.Flex,
|
|
2549
2595
|
{
|
|
2550
2596
|
align: "center",
|
|
@@ -2554,22 +2600,22 @@ function Step(props) {
|
|
|
2554
2600
|
style: { flex: 1 },
|
|
2555
2601
|
children: [
|
|
2556
2602
|
connector,
|
|
2557
|
-
/* @__PURE__ */ (0,
|
|
2603
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InnerStep, { Icon, children })
|
|
2558
2604
|
]
|
|
2559
2605
|
}
|
|
2560
2606
|
);
|
|
2561
2607
|
}
|
|
2562
2608
|
function CompleteStep(props) {
|
|
2563
2609
|
const { Icon, children } = props;
|
|
2564
|
-
const { completed, active } = (0,
|
|
2610
|
+
const { completed, active } = (0, import_react26.useContext)(StepContext);
|
|
2565
2611
|
const background = "var(--accent-a4)";
|
|
2566
2612
|
const border = "1px solid var(--accent-7)";
|
|
2567
2613
|
const color = "var(--accent-contrast)";
|
|
2568
|
-
return /* @__PURE__ */ (0,
|
|
2569
|
-
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)(
|
|
2570
2616
|
Avatar,
|
|
2571
2617
|
{
|
|
2572
|
-
fallback: /* @__PURE__ */ (0,
|
|
2618
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
2573
2619
|
radius: "full",
|
|
2574
2620
|
size: "medium",
|
|
2575
2621
|
style: {
|
|
@@ -2578,19 +2624,19 @@ function CompleteStep(props) {
|
|
|
2578
2624
|
}
|
|
2579
2625
|
}
|
|
2580
2626
|
),
|
|
2581
|
-
/* @__PURE__ */ (0,
|
|
2627
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
2582
2628
|
] });
|
|
2583
2629
|
}
|
|
2584
2630
|
function IncompleteStep(props) {
|
|
2585
2631
|
const { Icon, children } = props;
|
|
2586
|
-
const { completed, active, index } = (0,
|
|
2632
|
+
const { completed, active, index } = (0, import_react26.useContext)(StepContext);
|
|
2587
2633
|
const background = "var(--gray-5)";
|
|
2588
2634
|
const color = "var(--gray-a11)";
|
|
2589
|
-
return /* @__PURE__ */ (0,
|
|
2590
|
-
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)(
|
|
2591
2637
|
Avatar,
|
|
2592
2638
|
{
|
|
2593
|
-
fallback: /* @__PURE__ */ (0,
|
|
2639
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
2594
2640
|
radius: "full",
|
|
2595
2641
|
size: "medium",
|
|
2596
2642
|
style: {
|
|
@@ -2598,36 +2644,36 @@ function IncompleteStep(props) {
|
|
|
2598
2644
|
}
|
|
2599
2645
|
}
|
|
2600
2646
|
),
|
|
2601
|
-
/* @__PURE__ */ (0,
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
2602
2648
|
] });
|
|
2603
2649
|
}
|
|
2604
2650
|
function ActiveStep(props) {
|
|
2605
2651
|
const { Icon, children } = props;
|
|
2606
|
-
const { completed, active, index } = (0,
|
|
2652
|
+
const { completed, active, index } = (0, import_react26.useContext)(StepContext);
|
|
2607
2653
|
const background = "var(--accent-10)";
|
|
2608
2654
|
const color = "var(--accent-contrast)";
|
|
2609
|
-
return /* @__PURE__ */ (0,
|
|
2610
|
-
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)(
|
|
2611
2657
|
Avatar,
|
|
2612
2658
|
{
|
|
2613
|
-
fallback: /* @__PURE__ */ (0,
|
|
2659
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
2614
2660
|
radius: "full",
|
|
2615
2661
|
size: "medium",
|
|
2616
2662
|
style: { background }
|
|
2617
2663
|
}
|
|
2618
2664
|
),
|
|
2619
|
-
/* @__PURE__ */ (0,
|
|
2665
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2620
2666
|
] });
|
|
2621
2667
|
}
|
|
2622
2668
|
var Stepper = {
|
|
2623
|
-
Root:
|
|
2669
|
+
Root: Root11,
|
|
2624
2670
|
Step
|
|
2625
2671
|
};
|
|
2626
2672
|
|
|
2627
2673
|
// src/molecules/tag-selector.tsx
|
|
2628
|
-
var
|
|
2674
|
+
var import_react27 = require("react");
|
|
2629
2675
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2630
|
-
var
|
|
2676
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2631
2677
|
var OPTION_HEIGHT = 32;
|
|
2632
2678
|
var stopDefaultEvents = (e) => {
|
|
2633
2679
|
e.preventDefault();
|
|
@@ -2649,24 +2695,24 @@ function TagSelector(props) {
|
|
|
2649
2695
|
open: propsOpen,
|
|
2650
2696
|
dropdownItemRender
|
|
2651
2697
|
} = props;
|
|
2652
|
-
const [_selected, _setSelected] = (0,
|
|
2698
|
+
const [_selected, _setSelected] = (0, import_react27.useState)(props.selected || []);
|
|
2653
2699
|
const selected = props.selected || _selected;
|
|
2654
2700
|
const setSelected = props.onChange || _setSelected;
|
|
2655
|
-
const [value, setValue] = (0,
|
|
2656
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
2657
|
-
const [open, setOpen] = (0,
|
|
2658
|
-
const [focus, setFocus] = (0,
|
|
2659
|
-
const fieldRef = (0,
|
|
2660
|
-
const scrollRef = (0,
|
|
2661
|
-
const closeRef = (0,
|
|
2662
|
-
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)(() => {
|
|
2663
2709
|
if (closeRef.current) {
|
|
2664
2710
|
clearTimeout(closeRef.current);
|
|
2665
2711
|
}
|
|
2666
2712
|
setFocus(true);
|
|
2667
2713
|
setOpen(true);
|
|
2668
2714
|
}, []);
|
|
2669
|
-
const onBlur = (0,
|
|
2715
|
+
const onBlur = (0, import_react27.useCallback)(() => {
|
|
2670
2716
|
closeRef.current = setTimeout(() => {
|
|
2671
2717
|
setFocus(false);
|
|
2672
2718
|
setOpen(false);
|
|
@@ -2675,18 +2721,18 @@ function TagSelector(props) {
|
|
|
2675
2721
|
}, 100);
|
|
2676
2722
|
}, 300);
|
|
2677
2723
|
}, []);
|
|
2678
|
-
const onChangeValue = (0,
|
|
2724
|
+
const onChangeValue = (0, import_react27.useCallback)(
|
|
2679
2725
|
(e) => {
|
|
2680
2726
|
setValue(e.target.value);
|
|
2681
2727
|
},
|
|
2682
2728
|
[]
|
|
2683
2729
|
);
|
|
2684
|
-
const filteredOptions = (0,
|
|
2730
|
+
const filteredOptions = (0, import_react27.useMemo)(() => {
|
|
2685
2731
|
return options.filter((option) => {
|
|
2686
2732
|
return option.name.includes(value);
|
|
2687
2733
|
});
|
|
2688
2734
|
}, [options, value]);
|
|
2689
|
-
const selectedItem = (0,
|
|
2735
|
+
const selectedItem = (0, import_react27.useMemo)(() => {
|
|
2690
2736
|
const result = [];
|
|
2691
2737
|
selected.forEach((id) => {
|
|
2692
2738
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -2694,20 +2740,20 @@ function TagSelector(props) {
|
|
|
2694
2740
|
});
|
|
2695
2741
|
return result;
|
|
2696
2742
|
}, [options, selected]);
|
|
2697
|
-
const onDelete = (0,
|
|
2743
|
+
const onDelete = (0, import_react27.useCallback)(
|
|
2698
2744
|
(id) => {
|
|
2699
2745
|
setSelected(selected.filter((el) => el !== id));
|
|
2700
2746
|
},
|
|
2701
2747
|
[selected, setSelected]
|
|
2702
2748
|
);
|
|
2703
|
-
const onSelect = (0,
|
|
2749
|
+
const onSelect = (0, import_react27.useCallback)(
|
|
2704
2750
|
(id) => {
|
|
2705
2751
|
if (maxCount && selected.length + 1 > maxCount) return;
|
|
2706
2752
|
setSelected([...selected, id]);
|
|
2707
2753
|
},
|
|
2708
2754
|
[maxCount, selected, setSelected]
|
|
2709
2755
|
);
|
|
2710
|
-
const toggleItem = (0,
|
|
2756
|
+
const toggleItem = (0, import_react27.useCallback)(
|
|
2711
2757
|
(id) => {
|
|
2712
2758
|
if (selected.includes(id)) {
|
|
2713
2759
|
onDelete(id);
|
|
@@ -2717,7 +2763,7 @@ function TagSelector(props) {
|
|
|
2717
2763
|
},
|
|
2718
2764
|
[onDelete, onSelect, selected]
|
|
2719
2765
|
);
|
|
2720
|
-
const setScroll = (0,
|
|
2766
|
+
const setScroll = (0, import_react27.useCallback)((index) => {
|
|
2721
2767
|
if (scrollRef.current) {
|
|
2722
2768
|
const scrollTop = scrollRef.current.scrollTop;
|
|
2723
2769
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -2729,7 +2775,7 @@ function TagSelector(props) {
|
|
|
2729
2775
|
}
|
|
2730
2776
|
}
|
|
2731
2777
|
}, []);
|
|
2732
|
-
const handleKeyDown = (0,
|
|
2778
|
+
const handleKeyDown = (0, import_react27.useCallback)(
|
|
2733
2779
|
(e) => {
|
|
2734
2780
|
var _a;
|
|
2735
2781
|
const key = e.key;
|
|
@@ -2783,19 +2829,19 @@ function TagSelector(props) {
|
|
|
2783
2829
|
selected
|
|
2784
2830
|
]
|
|
2785
2831
|
);
|
|
2786
|
-
const placeholderVisible = (0,
|
|
2832
|
+
const placeholderVisible = (0, import_react27.useMemo)(() => {
|
|
2787
2833
|
if (selectedItem.length) return false;
|
|
2788
2834
|
if (value) return false;
|
|
2789
2835
|
if (focus) return false;
|
|
2790
2836
|
return true;
|
|
2791
2837
|
}, [focus, selectedItem.length, value]);
|
|
2792
|
-
(0,
|
|
2838
|
+
(0, import_react27.useEffect)(() => {
|
|
2793
2839
|
setFocusIndex(null);
|
|
2794
2840
|
}, [open]);
|
|
2795
|
-
(0,
|
|
2841
|
+
(0, import_react27.useEffect)(() => {
|
|
2796
2842
|
setFocusIndex(0);
|
|
2797
2843
|
}, [filteredOptions]);
|
|
2798
|
-
const badgeSize = (0,
|
|
2844
|
+
const badgeSize = (0, import_react27.useMemo)(() => {
|
|
2799
2845
|
switch (size) {
|
|
2800
2846
|
case "large":
|
|
2801
2847
|
return "large";
|
|
@@ -2805,7 +2851,7 @@ function TagSelector(props) {
|
|
|
2805
2851
|
return "small";
|
|
2806
2852
|
}
|
|
2807
2853
|
}, [size]);
|
|
2808
|
-
const placeholderVariant = (0,
|
|
2854
|
+
const placeholderVariant = (0, import_react27.useMemo)(() => {
|
|
2809
2855
|
switch (size) {
|
|
2810
2856
|
case "large":
|
|
2811
2857
|
return "subtitle";
|
|
@@ -2817,11 +2863,11 @@ function TagSelector(props) {
|
|
|
2817
2863
|
const focusClassName = focus ? " focused" : "";
|
|
2818
2864
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2819
2865
|
const errorClassName = error ? " error" : "";
|
|
2820
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2821
|
-
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);
|
|
2822
2868
|
}) });
|
|
2823
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2824
|
-
/* @__PURE__ */ (0,
|
|
2869
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
2870
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2825
2871
|
import_themes22.Flex,
|
|
2826
2872
|
{
|
|
2827
2873
|
align: "center",
|
|
@@ -2833,22 +2879,22 @@ function TagSelector(props) {
|
|
|
2833
2879
|
selectedItem.map((item) => {
|
|
2834
2880
|
return tagRender ? tagRender(item, () => {
|
|
2835
2881
|
onDelete(item.id);
|
|
2836
|
-
}) : /* @__PURE__ */ (0,
|
|
2882
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Badge, { size: badgeSize, children: [
|
|
2837
2883
|
item.name,
|
|
2838
|
-
/* @__PURE__ */ (0,
|
|
2884
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2839
2885
|
Button,
|
|
2840
2886
|
{
|
|
2841
2887
|
onClick: () => {
|
|
2842
2888
|
onDelete(item.id);
|
|
2843
2889
|
},
|
|
2844
2890
|
variant: "transparent",
|
|
2845
|
-
children: /* @__PURE__ */ (0,
|
|
2891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons5.Cross1Icon, {})
|
|
2846
2892
|
}
|
|
2847
2893
|
)
|
|
2848
2894
|
] }, item.id);
|
|
2849
2895
|
}),
|
|
2850
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2851
|
-
/* @__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)(
|
|
2852
2898
|
AutoSizingInput,
|
|
2853
2899
|
{
|
|
2854
2900
|
onBlur,
|
|
@@ -2862,10 +2908,10 @@ function TagSelector(props) {
|
|
|
2862
2908
|
]
|
|
2863
2909
|
}
|
|
2864
2910
|
),
|
|
2865
|
-
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, {})
|
|
2866
2912
|
] });
|
|
2867
|
-
return /* @__PURE__ */ (0,
|
|
2868
|
-
/* @__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)(
|
|
2869
2915
|
import_themes23.Grid,
|
|
2870
2916
|
{
|
|
2871
2917
|
align: "center",
|
|
@@ -2879,7 +2925,7 @@ function TagSelector(props) {
|
|
|
2879
2925
|
children: readOnly ? readonlyContent : editContent
|
|
2880
2926
|
}
|
|
2881
2927
|
) }),
|
|
2882
|
-
/* @__PURE__ */ (0,
|
|
2928
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2883
2929
|
import_themes29.Popover.Content,
|
|
2884
2930
|
{
|
|
2885
2931
|
onOpenAutoFocus: preventDefault3,
|
|
@@ -2889,24 +2935,24 @@ function TagSelector(props) {
|
|
|
2889
2935
|
style: {
|
|
2890
2936
|
pointerEvents: "fill"
|
|
2891
2937
|
},
|
|
2892
|
-
children: /* @__PURE__ */ (0,
|
|
2938
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2893
2939
|
DropdownContainer,
|
|
2894
2940
|
{
|
|
2895
2941
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2896
2942
|
items: filteredOptions,
|
|
2897
|
-
children: /* @__PURE__ */ (0,
|
|
2943
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2898
2944
|
import_themes35.ScrollArea,
|
|
2899
2945
|
{
|
|
2900
2946
|
ref: scrollRef,
|
|
2901
2947
|
scrollbars: "vertical",
|
|
2902
2948
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2903
2949
|
type: "auto",
|
|
2904
|
-
children: /* @__PURE__ */ (0,
|
|
2950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2905
2951
|
const isSelected = Boolean(
|
|
2906
2952
|
selected.find((el) => el === item.id)
|
|
2907
2953
|
);
|
|
2908
2954
|
const isFocus = i === focusIndex;
|
|
2909
|
-
return /* @__PURE__ */ (0,
|
|
2955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2910
2956
|
Button,
|
|
2911
2957
|
{
|
|
2912
2958
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2919,9 +2965,9 @@ function TagSelector(props) {
|
|
|
2919
2965
|
setFocusIndex(i);
|
|
2920
2966
|
},
|
|
2921
2967
|
variant: isSelected ? "soft" : "outline",
|
|
2922
|
-
children: /* @__PURE__ */ (0,
|
|
2968
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2923
2969
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2924
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2970
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
2925
2971
|
] })
|
|
2926
2972
|
},
|
|
2927
2973
|
item.id
|
|
@@ -2947,13 +2993,13 @@ var preventDefault3 = (e) => {
|
|
|
2947
2993
|
|
|
2948
2994
|
// src/theme/theme-provider.tsx
|
|
2949
2995
|
var import_themes52 = require("@radix-ui/themes");
|
|
2950
|
-
var
|
|
2996
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2951
2997
|
function ThemeProvider(props) {
|
|
2952
|
-
return /* @__PURE__ */ (0,
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes52.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2953
2999
|
}
|
|
2954
3000
|
|
|
2955
3001
|
// src/molecules/learning-post.tsx
|
|
2956
|
-
var
|
|
3002
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2957
3003
|
function LearningPost(props) {
|
|
2958
3004
|
const {
|
|
2959
3005
|
defaultThemeProps,
|
|
@@ -2965,13 +3011,13 @@ function LearningPost(props) {
|
|
|
2965
3011
|
onPageBack,
|
|
2966
3012
|
children
|
|
2967
3013
|
} = props;
|
|
2968
|
-
return /* @__PURE__ */ (0,
|
|
3014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2969
3015
|
ThemeProvider,
|
|
2970
3016
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2971
3017
|
accentColor: "iris",
|
|
2972
3018
|
scaling: "110%",
|
|
2973
3019
|
style: {},
|
|
2974
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3020
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2975
3021
|
import_themes23.Grid,
|
|
2976
3022
|
{
|
|
2977
3023
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2983,8 +3029,8 @@ function LearningPost(props) {
|
|
|
2983
3029
|
px: "4",
|
|
2984
3030
|
width: "100%",
|
|
2985
3031
|
children: [
|
|
2986
|
-
/* @__PURE__ */ (0,
|
|
2987
|
-
/* @__PURE__ */ (0,
|
|
3032
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", {}),
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2988
3034
|
import_themes22.Flex,
|
|
2989
3035
|
{
|
|
2990
3036
|
align: "center",
|
|
@@ -2994,15 +3040,15 @@ function LearningPost(props) {
|
|
|
2994
3040
|
overflow: "hidden",
|
|
2995
3041
|
width: "100%",
|
|
2996
3042
|
children: [
|
|
2997
|
-
/* @__PURE__ */ (0,
|
|
2998
|
-
/* @__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)(
|
|
2999
3045
|
import_themes23.Grid,
|
|
3000
3046
|
{
|
|
3001
3047
|
gap: "3",
|
|
3002
3048
|
mb: { initial: "4", sm: "0" },
|
|
3003
3049
|
style: { alignSelf: "flex-start" },
|
|
3004
3050
|
children: [
|
|
3005
|
-
/* @__PURE__ */ (0,
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3006
3052
|
Heading2,
|
|
3007
3053
|
{
|
|
3008
3054
|
style: {
|
|
@@ -3014,16 +3060,16 @@ function LearningPost(props) {
|
|
|
3014
3060
|
children: title
|
|
3015
3061
|
}
|
|
3016
3062
|
),
|
|
3017
|
-
/* @__PURE__ */ (0,
|
|
3018
|
-
/* @__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) => {
|
|
3019
3065
|
var _a;
|
|
3020
3066
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
3021
|
-
return /* @__PURE__ */ (0,
|
|
3067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
3022
3068
|
}) })
|
|
3023
3069
|
]
|
|
3024
3070
|
}
|
|
3025
3071
|
),
|
|
3026
|
-
/* @__PURE__ */ (0,
|
|
3072
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3027
3073
|
import_themes2.AspectRatio,
|
|
3028
3074
|
{
|
|
3029
3075
|
ratio: 5 / 3,
|
|
@@ -3036,7 +3082,7 @@ function LearningPost(props) {
|
|
|
3036
3082
|
}
|
|
3037
3083
|
)
|
|
3038
3084
|
] }),
|
|
3039
|
-
/* @__PURE__ */ (0,
|
|
3085
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3040
3086
|
"div",
|
|
3041
3087
|
{
|
|
3042
3088
|
className: "gh-content",
|
|
@@ -3049,7 +3095,7 @@ function LearningPost(props) {
|
|
|
3049
3095
|
children
|
|
3050
3096
|
]
|
|
3051
3097
|
}
|
|
3052
|
-
) : /* @__PURE__ */ (0,
|
|
3098
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3053
3099
|
import_themes22.Flex,
|
|
3054
3100
|
{
|
|
3055
3101
|
align: "center",
|
|
@@ -3059,8 +3105,8 @@ function LearningPost(props) {
|
|
|
3059
3105
|
justify: "center",
|
|
3060
3106
|
width: "100%",
|
|
3061
3107
|
children: [
|
|
3062
|
-
/* @__PURE__ */ (0,
|
|
3063
|
-
/* @__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)(
|
|
3064
3110
|
Heading2,
|
|
3065
3111
|
{
|
|
3066
3112
|
align: "center",
|
|
@@ -3071,7 +3117,7 @@ function LearningPost(props) {
|
|
|
3071
3117
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3072
3118
|
}
|
|
3073
3119
|
),
|
|
3074
|
-
/* @__PURE__ */ (0,
|
|
3120
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3075
3121
|
]
|
|
3076
3122
|
}
|
|
3077
3123
|
)
|
|
@@ -3081,9 +3127,9 @@ function LearningPost(props) {
|
|
|
3081
3127
|
|
|
3082
3128
|
// src/molecules/force-refresh.tsx
|
|
3083
3129
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
3084
|
-
var
|
|
3130
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3085
3131
|
function CodeSize3(props) {
|
|
3086
|
-
return /* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3087
3133
|
import_themes13.Code,
|
|
3088
3134
|
{
|
|
3089
3135
|
style: {
|
|
@@ -3096,86 +3142,86 @@ function CodeSize3(props) {
|
|
|
3096
3142
|
);
|
|
3097
3143
|
}
|
|
3098
3144
|
function ForceRefresh() {
|
|
3099
|
-
return /* @__PURE__ */ (0,
|
|
3100
|
-
/* @__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: [
|
|
3101
3147
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
3102
3148
|
" ",
|
|
3103
|
-
/* @__PURE__ */ (0,
|
|
3104
|
-
/* @__PURE__ */ (0,
|
|
3149
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(CodeSize3, { children: [
|
|
3150
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
3105
3151
|
"\uB354\uBCF4\uAE30"
|
|
3106
3152
|
] }),
|
|
3107
3153
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3108
3154
|
] }),
|
|
3109
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3110
3156
|
"2. ",
|
|
3111
|
-
/* @__PURE__ */ (0,
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
3112
3158
|
" ",
|
|
3113
3159
|
">",
|
|
3114
3160
|
" ",
|
|
3115
|
-
/* @__PURE__ */ (0,
|
|
3161
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
3116
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.)"
|
|
3117
3163
|
] }),
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
3119
|
-
/* @__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: [
|
|
3120
3166
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
3121
|
-
/* @__PURE__ */ (0,
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
3122
3168
|
] }),
|
|
3123
|
-
/* @__PURE__ */ (0,
|
|
3169
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3124
3170
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
3125
|
-
/* @__PURE__ */ (0,
|
|
3171
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
3126
3172
|
" + ",
|
|
3127
|
-
/* @__PURE__ */ (0,
|
|
3173
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
3128
3174
|
" + ",
|
|
3129
|
-
/* @__PURE__ */ (0,
|
|
3175
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes26.Kbd, { children: "I" })
|
|
3130
3176
|
] })
|
|
3131
3177
|
] }),
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3178
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3133
3179
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
3134
3180
|
" ",
|
|
3135
|
-
/* @__PURE__ */ (0,
|
|
3136
|
-
/* @__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" } }),
|
|
3137
3183
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
3138
3184
|
] }),
|
|
3139
3185
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3140
3186
|
] }),
|
|
3141
|
-
/* @__PURE__ */ (0,
|
|
3187
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { children: [
|
|
3142
3188
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
3143
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
3144
3190
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3145
3191
|
] })
|
|
3146
3192
|
] });
|
|
3147
3193
|
}
|
|
3148
3194
|
|
|
3149
3195
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
3150
|
-
var
|
|
3196
|
+
var import_react28 = require("react");
|
|
3151
3197
|
var import_date_fns = require("date-fns");
|
|
3152
3198
|
var import_clsx2 = require("clsx");
|
|
3153
|
-
var
|
|
3199
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3154
3200
|
function DatePickerButton(props) {
|
|
3155
3201
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
3156
|
-
const buttonProps = (0,
|
|
3202
|
+
const buttonProps = (0, import_react28.useMemo)(() => {
|
|
3157
3203
|
const variant = "outline";
|
|
3158
3204
|
const color = "gray";
|
|
3159
3205
|
return { size, color, variant, disabled };
|
|
3160
3206
|
}, [disabled, size]);
|
|
3161
|
-
const selectFormat = (0,
|
|
3207
|
+
const selectFormat = (0, import_react28.useMemo)(() => {
|
|
3162
3208
|
if (formatProps) return formatProps;
|
|
3163
3209
|
return (date) => {
|
|
3164
3210
|
return date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
3165
3211
|
};
|
|
3166
3212
|
}, [formatProps, placeholder]);
|
|
3167
|
-
const className = (0,
|
|
3213
|
+
const className = (0, import_react28.useMemo)(() => {
|
|
3168
3214
|
return (0, import_clsx2.clsx)(
|
|
3169
3215
|
"date-picker-button",
|
|
3170
3216
|
(disabled || props.readOnly) && "disabled"
|
|
3171
3217
|
);
|
|
3172
3218
|
}, [disabled, props.readOnly]);
|
|
3173
|
-
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)(
|
|
3174
3220
|
DatePicker,
|
|
3175
3221
|
__spreadProps(__spreadValues({
|
|
3176
|
-
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: [
|
|
3177
3223
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
3178
|
-
/* @__PURE__ */ (0,
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons2.CalendarIcon, {})
|
|
3179
3225
|
] }) })),
|
|
3180
3226
|
wrapperClassName: "full-width"
|
|
3181
3227
|
}, rest), {
|
|
@@ -3185,7 +3231,7 @@ function DatePickerButton(props) {
|
|
|
3185
3231
|
}
|
|
3186
3232
|
|
|
3187
3233
|
// src/molecules/time-select.tsx
|
|
3188
|
-
var
|
|
3234
|
+
var import_react29 = require("react");
|
|
3189
3235
|
var import_date_fns2 = require("date-fns");
|
|
3190
3236
|
|
|
3191
3237
|
// src/utils/get-cell-align.ts
|
|
@@ -3257,7 +3303,7 @@ var getTimeOption = (time) => {
|
|
|
3257
3303
|
};
|
|
3258
3304
|
|
|
3259
3305
|
// src/molecules/time-select.tsx
|
|
3260
|
-
var
|
|
3306
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3261
3307
|
var getOptionValue = (date, timeValue) => {
|
|
3262
3308
|
if (date && timeValue) {
|
|
3263
3309
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -3277,31 +3323,31 @@ function TimeSelect(_a) {
|
|
|
3277
3323
|
"minTime",
|
|
3278
3324
|
"time"
|
|
3279
3325
|
]);
|
|
3280
|
-
const timeOptions = (0,
|
|
3326
|
+
const timeOptions = (0, import_react29.useMemo)(() => {
|
|
3281
3327
|
return getTimeOptions();
|
|
3282
3328
|
}, []);
|
|
3283
|
-
const [minOption, maxOption] = (0,
|
|
3329
|
+
const [minOption, maxOption] = (0, import_react29.useMemo)(() => {
|
|
3284
3330
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
3285
3331
|
}, [maxTime, minTime, time]);
|
|
3286
|
-
return /* @__PURE__ */ (0,
|
|
3287
|
-
/* @__PURE__ */ (0,
|
|
3288
|
-
/* @__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) => {
|
|
3289
3335
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
3290
3336
|
if (!visible) {
|
|
3291
3337
|
return null;
|
|
3292
3338
|
}
|
|
3293
|
-
return /* @__PURE__ */ (0,
|
|
3339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Select.Item, { value: option, children: option }, option);
|
|
3294
3340
|
}) })
|
|
3295
3341
|
] }));
|
|
3296
3342
|
}
|
|
3297
3343
|
|
|
3298
3344
|
// src/molecules/radio-button-card.tsx
|
|
3299
|
-
var
|
|
3300
|
-
var
|
|
3301
|
-
var RadioCardContext = (0,
|
|
3302
|
-
function
|
|
3303
|
-
const [value, setValue] = (0,
|
|
3304
|
-
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)(
|
|
3305
3351
|
(v) => {
|
|
3306
3352
|
var _a;
|
|
3307
3353
|
setValue(v);
|
|
@@ -3309,26 +3355,26 @@ function Root11(props) {
|
|
|
3309
3355
|
},
|
|
3310
3356
|
[props]
|
|
3311
3357
|
);
|
|
3312
|
-
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 })) });
|
|
3313
3359
|
}
|
|
3314
|
-
function
|
|
3360
|
+
function Item2(_a) {
|
|
3315
3361
|
var _b = _a, {
|
|
3316
3362
|
children
|
|
3317
3363
|
} = _b, itemRest = __objRest(_b, [
|
|
3318
3364
|
"children"
|
|
3319
3365
|
]);
|
|
3320
|
-
const _a2 = (0,
|
|
3366
|
+
const _a2 = (0, import_react30.useContext)(RadioCardContext), {
|
|
3321
3367
|
value,
|
|
3322
3368
|
justify,
|
|
3323
|
-
RadioWrapper =
|
|
3369
|
+
RadioWrapper = import_react30.Fragment
|
|
3324
3370
|
} = _a2, rootRest = __objRest(_a2, [
|
|
3325
3371
|
"value",
|
|
3326
3372
|
"justify",
|
|
3327
3373
|
"RadioWrapper"
|
|
3328
3374
|
]);
|
|
3329
|
-
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: [
|
|
3330
3376
|
children,
|
|
3331
|
-
/* @__PURE__ */ (0,
|
|
3377
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3332
3378
|
import_themes32.Radio,
|
|
3333
3379
|
{
|
|
3334
3380
|
checked: itemRest.value === value,
|
|
@@ -3339,30 +3385,30 @@ function Item(_a) {
|
|
|
3339
3385
|
] }) }));
|
|
3340
3386
|
}
|
|
3341
3387
|
var RadioButtonCard = {
|
|
3342
|
-
Root:
|
|
3343
|
-
Item
|
|
3388
|
+
Root: Root12,
|
|
3389
|
+
Item: Item2
|
|
3344
3390
|
};
|
|
3345
3391
|
|
|
3346
3392
|
// src/molecules/download-card.tsx
|
|
3347
3393
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
3348
|
-
var
|
|
3394
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3349
3395
|
function DownloadCard({
|
|
3350
3396
|
fileName,
|
|
3351
3397
|
url,
|
|
3352
3398
|
createdAt,
|
|
3353
3399
|
size
|
|
3354
3400
|
}) {
|
|
3355
|
-
return /* @__PURE__ */ (0,
|
|
3401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3356
3402
|
import_themes18.IconButton,
|
|
3357
3403
|
{
|
|
3358
3404
|
mt: "3",
|
|
3359
3405
|
size: "4",
|
|
3360
3406
|
style: { width: "100%", height: 56 },
|
|
3361
3407
|
variant: "soft",
|
|
3362
|
-
children: /* @__PURE__ */ (0,
|
|
3363
|
-
/* @__PURE__ */ (0,
|
|
3364
|
-
/* @__PURE__ */ (0,
|
|
3365
|
-
/* @__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)(
|
|
3366
3412
|
Typo,
|
|
3367
3413
|
{
|
|
3368
3414
|
style: {
|
|
@@ -3372,7 +3418,7 @@ function DownloadCard({
|
|
|
3372
3418
|
children: fileName
|
|
3373
3419
|
}
|
|
3374
3420
|
),
|
|
3375
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
3376
3422
|
] })
|
|
3377
3423
|
] })
|
|
3378
3424
|
}
|
|
@@ -3380,22 +3426,22 @@ function DownloadCard({
|
|
|
3380
3426
|
}
|
|
3381
3427
|
|
|
3382
3428
|
// src/molecules/ghost-post.tsx
|
|
3383
|
-
var
|
|
3429
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3384
3430
|
function GhostPost(props) {
|
|
3385
3431
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
3386
|
-
return /* @__PURE__ */ (0,
|
|
3432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3387
3433
|
ThemeProvider,
|
|
3388
3434
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
3389
3435
|
accentColor: "iris",
|
|
3390
3436
|
scaling: "110%",
|
|
3391
3437
|
style: {},
|
|
3392
|
-
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)(
|
|
3393
3439
|
"div",
|
|
3394
3440
|
{
|
|
3395
3441
|
className: "gh-content",
|
|
3396
3442
|
dangerouslySetInnerHTML: { __html: html }
|
|
3397
3443
|
}
|
|
3398
|
-
) }) : /* @__PURE__ */ (0,
|
|
3444
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3399
3445
|
import_themes22.Flex,
|
|
3400
3446
|
{
|
|
3401
3447
|
align: "center",
|
|
@@ -3405,8 +3451,8 @@ function GhostPost(props) {
|
|
|
3405
3451
|
justify: "center",
|
|
3406
3452
|
width: "100%",
|
|
3407
3453
|
children: [
|
|
3408
|
-
/* @__PURE__ */ (0,
|
|
3409
|
-
/* @__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)(
|
|
3410
3456
|
Heading2,
|
|
3411
3457
|
{
|
|
3412
3458
|
align: "center",
|
|
@@ -3417,7 +3463,7 @@ function GhostPost(props) {
|
|
|
3417
3463
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3418
3464
|
}
|
|
3419
3465
|
),
|
|
3420
|
-
/* @__PURE__ */ (0,
|
|
3466
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3421
3467
|
]
|
|
3422
3468
|
}
|
|
3423
3469
|
)
|
|
@@ -3426,9 +3472,9 @@ function GhostPost(props) {
|
|
|
3426
3472
|
}
|
|
3427
3473
|
|
|
3428
3474
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
3429
|
-
var
|
|
3430
|
-
var
|
|
3431
|
-
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)(
|
|
3432
3478
|
void 0
|
|
3433
3479
|
);
|
|
3434
3480
|
function CurriculumProvider(props) {
|
|
@@ -3444,8 +3490,8 @@ function CurriculumProvider(props) {
|
|
|
3444
3490
|
onActionButtonClick,
|
|
3445
3491
|
initialSelectedIndex
|
|
3446
3492
|
} = props;
|
|
3447
|
-
const sidebarRef = (0,
|
|
3448
|
-
const scrollNavItem = (0,
|
|
3493
|
+
const sidebarRef = (0, import_react31.useRef)(null);
|
|
3494
|
+
const scrollNavItem = (0, import_react31.useCallback)((index) => {
|
|
3449
3495
|
var _a;
|
|
3450
3496
|
const element = (_a = sidebarRef.current) == null ? void 0 : _a.querySelector(
|
|
3451
3497
|
`[data-curriculum-item-index="${index}"]`
|
|
@@ -3455,14 +3501,14 @@ function CurriculumProvider(props) {
|
|
|
3455
3501
|
}
|
|
3456
3502
|
}, []);
|
|
3457
3503
|
const list = curriculum.contents.list;
|
|
3458
|
-
const selectableIndexes = (0,
|
|
3504
|
+
const selectableIndexes = (0, import_react31.useMemo)(
|
|
3459
3505
|
() => list.map((item, i) => item.type !== "sectionTitle" ? i : null).filter((i) => i !== null),
|
|
3460
3506
|
[list]
|
|
3461
3507
|
);
|
|
3462
|
-
const [selectedIndexState, setSelectedIndexState] = (0,
|
|
3508
|
+
const [selectedIndexState, setSelectedIndexState] = (0, import_react31.useState)(
|
|
3463
3509
|
initialSelectedIndex != null ? initialSelectedIndex : selectableIndexes[0]
|
|
3464
3510
|
);
|
|
3465
|
-
const setSelectedIndex = (0,
|
|
3511
|
+
const setSelectedIndex = (0, import_react31.useCallback)(
|
|
3466
3512
|
(idx) => {
|
|
3467
3513
|
if (selectableIndexes.includes(idx)) {
|
|
3468
3514
|
setSelectedIndexState(idx);
|
|
@@ -3475,13 +3521,13 @@ function CurriculumProvider(props) {
|
|
|
3475
3521
|
},
|
|
3476
3522
|
[selectableIndexes]
|
|
3477
3523
|
);
|
|
3478
|
-
const selectablePos = (0,
|
|
3524
|
+
const selectablePos = (0, import_react31.useMemo)(
|
|
3479
3525
|
() => selectableIndexes.indexOf(selectedIndexState),
|
|
3480
3526
|
[selectableIndexes, selectedIndexState]
|
|
3481
3527
|
);
|
|
3482
3528
|
const hasPrev = selectablePos > 0;
|
|
3483
3529
|
const hasNext = selectablePos < selectableIndexes.length - 1;
|
|
3484
|
-
const selectPrev = (0,
|
|
3530
|
+
const selectPrev = (0, import_react31.useCallback)(
|
|
3485
3531
|
(cb) => {
|
|
3486
3532
|
setSelectedIndexState((cur) => {
|
|
3487
3533
|
let prevIndex = cur;
|
|
@@ -3495,7 +3541,7 @@ function CurriculumProvider(props) {
|
|
|
3495
3541
|
},
|
|
3496
3542
|
[selectableIndexes]
|
|
3497
3543
|
);
|
|
3498
|
-
const selectNext = (0,
|
|
3544
|
+
const selectNext = (0, import_react31.useCallback)(
|
|
3499
3545
|
(cb) => {
|
|
3500
3546
|
setSelectedIndexState((cur) => {
|
|
3501
3547
|
let nextIndex = cur;
|
|
@@ -3509,25 +3555,25 @@ function CurriculumProvider(props) {
|
|
|
3509
3555
|
},
|
|
3510
3556
|
[selectableIndexes]
|
|
3511
3557
|
);
|
|
3512
|
-
const selectedId = (0,
|
|
3558
|
+
const selectedId = (0, import_react31.useMemo)(
|
|
3513
3559
|
() => {
|
|
3514
3560
|
var _a, _b;
|
|
3515
3561
|
return (_b = (_a = list[selectedIndexState]) == null ? void 0 : _a.uuid) != null ? _b : "";
|
|
3516
3562
|
},
|
|
3517
3563
|
[list, selectedIndexState]
|
|
3518
3564
|
);
|
|
3519
|
-
const selectedItem = (0,
|
|
3565
|
+
const selectedItem = (0, import_react31.useMemo)(() => {
|
|
3520
3566
|
return list[selectedIndexState];
|
|
3521
3567
|
}, [list, selectedIndexState]);
|
|
3522
|
-
const selectedSectionTitle = (0,
|
|
3568
|
+
const selectedSectionTitle = (0, import_react31.useMemo)(() => {
|
|
3523
3569
|
var _a;
|
|
3524
3570
|
const prevItems = list.slice(0, selectedIndexState).reverse();
|
|
3525
3571
|
return (_a = prevItems.find((item) => item.type === "sectionTitle")) != null ? _a : null;
|
|
3526
3572
|
}, [list, selectedIndexState]);
|
|
3527
|
-
(0,
|
|
3573
|
+
(0, import_react31.useEffect)(() => {
|
|
3528
3574
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(selectedItem);
|
|
3529
3575
|
}, [selectedItem]);
|
|
3530
|
-
return /* @__PURE__ */ (0,
|
|
3576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CurriculumContext.Provider, { value: {
|
|
3531
3577
|
curriculum,
|
|
3532
3578
|
scrollNavItem,
|
|
3533
3579
|
selectedIndex: selectedIndexState,
|
|
@@ -3549,7 +3595,7 @@ function CurriculumProvider(props) {
|
|
|
3549
3595
|
}, children });
|
|
3550
3596
|
}
|
|
3551
3597
|
function useCurriculumContext() {
|
|
3552
|
-
const ctx = (0,
|
|
3598
|
+
const ctx = (0, import_react31.useContext)(CurriculumContext);
|
|
3553
3599
|
if (!ctx)
|
|
3554
3600
|
throw new Error(
|
|
3555
3601
|
"useCurriculumContext must be used within CurriculumProvider"
|
|
@@ -3558,8 +3604,8 @@ function useCurriculumContext() {
|
|
|
3558
3604
|
}
|
|
3559
3605
|
|
|
3560
3606
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3561
|
-
var
|
|
3562
|
-
var
|
|
3607
|
+
var import_react32 = require("react");
|
|
3608
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3563
3609
|
function CurriculumSubNav() {
|
|
3564
3610
|
const {
|
|
3565
3611
|
selectedItem,
|
|
@@ -3570,17 +3616,17 @@ function CurriculumSubNav() {
|
|
|
3570
3616
|
selectNext,
|
|
3571
3617
|
scrollNavItem
|
|
3572
3618
|
} = useCurriculumContext();
|
|
3573
|
-
const onClickPrev = (0,
|
|
3619
|
+
const onClickPrev = (0, import_react32.useCallback)(() => {
|
|
3574
3620
|
selectPrev((moveIndex) => {
|
|
3575
3621
|
scrollNavItem(moveIndex.toString());
|
|
3576
3622
|
});
|
|
3577
3623
|
}, [selectPrev, scrollNavItem]);
|
|
3578
|
-
const onClickNext = (0,
|
|
3624
|
+
const onClickNext = (0, import_react32.useCallback)(() => {
|
|
3579
3625
|
selectNext((moveIndex) => {
|
|
3580
3626
|
scrollNavItem(moveIndex.toString());
|
|
3581
3627
|
});
|
|
3582
3628
|
}, [selectNext, scrollNavItem]);
|
|
3583
|
-
return /* @__PURE__ */ (0,
|
|
3629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3584
3630
|
import_themes23.Grid,
|
|
3585
3631
|
{
|
|
3586
3632
|
align: "center",
|
|
@@ -3590,44 +3636,44 @@ function CurriculumSubNav() {
|
|
|
3590
3636
|
py: "2",
|
|
3591
3637
|
rows: "auto",
|
|
3592
3638
|
children: [
|
|
3593
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
3639
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3594
3640
|
import_themes18.IconButton,
|
|
3595
3641
|
{
|
|
3596
3642
|
color: "gray",
|
|
3597
3643
|
onClick: onClickPrev,
|
|
3598
3644
|
size: { initial: "3", md: "4" },
|
|
3599
3645
|
variant: "ghost",
|
|
3600
|
-
children: /* @__PURE__ */ (0,
|
|
3646
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons2.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3601
3647
|
}
|
|
3602
|
-
) : /* @__PURE__ */ (0,
|
|
3603
|
-
/* @__PURE__ */ (0,
|
|
3604
|
-
/* @__PURE__ */ (0,
|
|
3605
|
-
/* @__PURE__ */ (0,
|
|
3606
|
-
/* @__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 })
|
|
3607
3653
|
] }),
|
|
3608
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
3654
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3609
3655
|
import_themes18.IconButton,
|
|
3610
3656
|
{
|
|
3611
3657
|
color: "gray",
|
|
3612
3658
|
onClick: onClickNext,
|
|
3613
3659
|
size: { initial: "3", md: "4" },
|
|
3614
3660
|
variant: "ghost",
|
|
3615
|
-
children: /* @__PURE__ */ (0,
|
|
3661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons2.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3616
3662
|
}
|
|
3617
|
-
) : /* @__PURE__ */ (0,
|
|
3663
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, {})
|
|
3618
3664
|
]
|
|
3619
3665
|
}
|
|
3620
3666
|
);
|
|
3621
3667
|
}
|
|
3622
3668
|
|
|
3623
3669
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3624
|
-
var
|
|
3625
|
-
var
|
|
3670
|
+
var import_react33 = require("react");
|
|
3671
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3626
3672
|
function CurriculumVideo(props) {
|
|
3627
3673
|
const { item } = props;
|
|
3628
3674
|
const { url } = item;
|
|
3629
|
-
const [isLoading, setIsLoading] = (0,
|
|
3630
|
-
return /* @__PURE__ */ (0,
|
|
3675
|
+
const [isLoading, setIsLoading] = (0, import_react33.useState)(true);
|
|
3676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3631
3677
|
import_themes22.Flex,
|
|
3632
3678
|
{
|
|
3633
3679
|
align: "center",
|
|
@@ -3639,7 +3685,7 @@ function CurriculumVideo(props) {
|
|
|
3639
3685
|
position: "relative"
|
|
3640
3686
|
},
|
|
3641
3687
|
children: [
|
|
3642
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
3688
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3643
3689
|
import_themes22.Flex,
|
|
3644
3690
|
{
|
|
3645
3691
|
align: "center",
|
|
@@ -3654,10 +3700,10 @@ function CurriculumVideo(props) {
|
|
|
3654
3700
|
color: "white"
|
|
3655
3701
|
},
|
|
3656
3702
|
width: "100%",
|
|
3657
|
-
children: /* @__PURE__ */ (0,
|
|
3703
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes49.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
3658
3704
|
}
|
|
3659
3705
|
) : null,
|
|
3660
|
-
/* @__PURE__ */ (0,
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3661
3707
|
"iframe",
|
|
3662
3708
|
{
|
|
3663
3709
|
allowFullScreen: true,
|
|
@@ -3679,16 +3725,16 @@ function CurriculumVideo(props) {
|
|
|
3679
3725
|
var curriculum_video_default = CurriculumVideo;
|
|
3680
3726
|
|
|
3681
3727
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
3682
|
-
var
|
|
3728
|
+
var import_react36 = require("react");
|
|
3683
3729
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
3684
3730
|
|
|
3685
3731
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/curriculum-review-context.tsx
|
|
3686
|
-
var
|
|
3732
|
+
var import_react34 = require("react");
|
|
3687
3733
|
var import_formik = require("formik");
|
|
3688
3734
|
var import_lodash_es = require("lodash-es");
|
|
3689
3735
|
var Yup = __toESM(require("yup"), 1);
|
|
3690
|
-
var
|
|
3691
|
-
var CurriculumReviewContext = (0,
|
|
3736
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3737
|
+
var CurriculumReviewContext = (0, import_react34.createContext)(void 0);
|
|
3692
3738
|
function getInitialAnswers(defaultValues, questions) {
|
|
3693
3739
|
return questions.reduce((acc, q) => {
|
|
3694
3740
|
var _a;
|
|
@@ -3726,7 +3772,7 @@ function CurriculumReviewProvider({
|
|
|
3726
3772
|
onReviewValueChange,
|
|
3727
3773
|
done
|
|
3728
3774
|
}) {
|
|
3729
|
-
const fixedReviewContents = (0,
|
|
3775
|
+
const fixedReviewContents = (0, import_react34.useMemo)(() => {
|
|
3730
3776
|
const result = (0, import_lodash_es.cloneDeep)(_reviewContents);
|
|
3731
3777
|
result.questions = result.questions.map((question) => {
|
|
3732
3778
|
if (question.type === "question_satisfaction_option") {
|
|
@@ -3743,8 +3789,8 @@ function CurriculumReviewProvider({
|
|
|
3743
3789
|
curriculum.contents.satisfactionTextMeta,
|
|
3744
3790
|
_reviewContents
|
|
3745
3791
|
]);
|
|
3746
|
-
const [step, setStep] = (0,
|
|
3747
|
-
const answersYupSchema = (0,
|
|
3792
|
+
const [step, setStep] = (0, import_react34.useState)(0);
|
|
3793
|
+
const answersYupSchema = (0, import_react34.useMemo)(
|
|
3748
3794
|
() => createAnswersYupSchema(fixedReviewContents.questions),
|
|
3749
3795
|
[fixedReviewContents.questions]
|
|
3750
3796
|
);
|
|
@@ -3769,10 +3815,10 @@ function CurriculumReviewProvider({
|
|
|
3769
3815
|
validateOnChange: true
|
|
3770
3816
|
});
|
|
3771
3817
|
const questions = fixedReviewContents.questions;
|
|
3772
|
-
const handleStart = (0,
|
|
3818
|
+
const handleStart = (0, import_react34.useCallback)(() => {
|
|
3773
3819
|
setStep(1);
|
|
3774
3820
|
}, []);
|
|
3775
|
-
const handleNext = (0,
|
|
3821
|
+
const handleNext = (0, import_react34.useCallback)(() => {
|
|
3776
3822
|
if (step < questions.length) {
|
|
3777
3823
|
setStep(step + 1);
|
|
3778
3824
|
} else {
|
|
@@ -3780,27 +3826,27 @@ function CurriculumReviewProvider({
|
|
|
3780
3826
|
setStep(questions.length + 1);
|
|
3781
3827
|
}
|
|
3782
3828
|
}, [step, questions.length, formik]);
|
|
3783
|
-
const handlePrev = (0,
|
|
3829
|
+
const handlePrev = (0, import_react34.useCallback)(() => {
|
|
3784
3830
|
if (step > 1) {
|
|
3785
3831
|
setStep(step - 1);
|
|
3786
3832
|
}
|
|
3787
3833
|
}, [step]);
|
|
3788
|
-
const onClickReviewMyAnswer = (0,
|
|
3834
|
+
const onClickReviewMyAnswer = (0, import_react34.useCallback)(() => {
|
|
3789
3835
|
setStep(0);
|
|
3790
3836
|
}, []);
|
|
3791
|
-
const handleSubmit = (0,
|
|
3837
|
+
const handleSubmit = (0, import_react34.useCallback)(() => {
|
|
3792
3838
|
formik.handleSubmit();
|
|
3793
3839
|
}, [formik]);
|
|
3794
|
-
const currentQuestion = (0,
|
|
3840
|
+
const currentQuestion = (0, import_react34.useMemo)(() => {
|
|
3795
3841
|
return step > 0 && step <= questions.length ? questions[step - 1] : void 0;
|
|
3796
3842
|
}, [step, questions]);
|
|
3797
|
-
const currentAnswer = (0,
|
|
3843
|
+
const currentAnswer = (0, import_react34.useMemo)(() => {
|
|
3798
3844
|
return currentQuestion ? formik.values.answers[currentQuestion.uuid] : "";
|
|
3799
3845
|
}, [currentQuestion, formik.values.answers]);
|
|
3800
|
-
const currentError = (0,
|
|
3846
|
+
const currentError = (0, import_react34.useMemo)(() => {
|
|
3801
3847
|
return currentQuestion && formik.errors.answers && formik.errors.answers[currentQuestion.uuid];
|
|
3802
3848
|
}, [currentQuestion, formik.errors.answers]);
|
|
3803
|
-
const handleAnswerChange = (0,
|
|
3849
|
+
const handleAnswerChange = (0, import_react34.useCallback)(
|
|
3804
3850
|
(value) => {
|
|
3805
3851
|
if (currentQuestion) {
|
|
3806
3852
|
void formik.setFieldValue(`answers.${currentQuestion.uuid}`, value);
|
|
@@ -3808,7 +3854,7 @@ function CurriculumReviewProvider({
|
|
|
3808
3854
|
},
|
|
3809
3855
|
[currentQuestion, formik]
|
|
3810
3856
|
);
|
|
3811
|
-
(0,
|
|
3857
|
+
(0, import_react34.useEffect)(() => {
|
|
3812
3858
|
if (currentQuestion) {
|
|
3813
3859
|
onReviewValueChange({
|
|
3814
3860
|
reviewId: currentQuestion.uuid,
|
|
@@ -3816,7 +3862,7 @@ function CurriculumReviewProvider({
|
|
|
3816
3862
|
});
|
|
3817
3863
|
}
|
|
3818
3864
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
3819
|
-
return /* @__PURE__ */ (0,
|
|
3865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3820
3866
|
CurriculumReviewContext.Provider,
|
|
3821
3867
|
{
|
|
3822
3868
|
value: {
|
|
@@ -3843,7 +3889,7 @@ function CurriculumReviewProvider({
|
|
|
3843
3889
|
);
|
|
3844
3890
|
}
|
|
3845
3891
|
function useCurriculumReviewContext() {
|
|
3846
|
-
const context = (0,
|
|
3892
|
+
const context = (0, import_react34.useContext)(CurriculumReviewContext);
|
|
3847
3893
|
if (!context) {
|
|
3848
3894
|
throw new Error(
|
|
3849
3895
|
"useCurriculumReviewContext must be used within a CurriculumReviewProvider"
|
|
@@ -3930,7 +3976,7 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
3930
3976
|
};
|
|
3931
3977
|
|
|
3932
3978
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
3933
|
-
var
|
|
3979
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3934
3980
|
var renderPreviewContent = (args) => {
|
|
3935
3981
|
const { question } = args;
|
|
3936
3982
|
const Icon = getCurriculumIcon({
|
|
@@ -3943,7 +3989,7 @@ var renderPreviewContent = (args) => {
|
|
|
3943
3989
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
3944
3990
|
].filter(Boolean).join(" | ");
|
|
3945
3991
|
};
|
|
3946
|
-
return /* @__PURE__ */ (0,
|
|
3992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3947
3993
|
import_themes23.Grid,
|
|
3948
3994
|
{
|
|
3949
3995
|
columns: "16px 1fr",
|
|
@@ -3952,10 +3998,10 @@ var renderPreviewContent = (args) => {
|
|
|
3952
3998
|
py: "2",
|
|
3953
3999
|
width: "100%",
|
|
3954
4000
|
children: [
|
|
3955
|
-
/* @__PURE__ */ (0,
|
|
3956
|
-
/* @__PURE__ */ (0,
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3958
|
-
/* @__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() })
|
|
3959
4005
|
] })
|
|
3960
4006
|
]
|
|
3961
4007
|
},
|
|
@@ -3978,7 +4024,7 @@ var renderReviewContent = (args) => {
|
|
|
3978
4024
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
3979
4025
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3980
4026
|
const value = getReviewContentValue(question, answer);
|
|
3981
|
-
return /* @__PURE__ */ (0,
|
|
4027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3982
4028
|
import_themes23.Grid,
|
|
3983
4029
|
{
|
|
3984
4030
|
columns: "16px 1fr",
|
|
@@ -3987,10 +4033,10 @@ var renderReviewContent = (args) => {
|
|
|
3987
4033
|
py: "2",
|
|
3988
4034
|
width: "100%",
|
|
3989
4035
|
children: [
|
|
3990
|
-
/* @__PURE__ */ (0,
|
|
3991
|
-
/* @__PURE__ */ (0,
|
|
3992
|
-
/* @__PURE__ */ (0,
|
|
3993
|
-
/* @__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)" })
|
|
3994
4040
|
] })
|
|
3995
4041
|
]
|
|
3996
4042
|
},
|
|
@@ -3999,7 +4045,7 @@ var renderReviewContent = (args) => {
|
|
|
3999
4045
|
};
|
|
4000
4046
|
function StartReview({ onStart }) {
|
|
4001
4047
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
4002
|
-
return /* @__PURE__ */ (0,
|
|
4048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4003
4049
|
import_themes22.Flex,
|
|
4004
4050
|
{
|
|
4005
4051
|
align: "center",
|
|
@@ -4007,7 +4053,7 @@ function StartReview({ onStart }) {
|
|
|
4007
4053
|
height: "100%",
|
|
4008
4054
|
justify: "center",
|
|
4009
4055
|
width: "100%",
|
|
4010
|
-
children: /* @__PURE__ */ (0,
|
|
4056
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4011
4057
|
import_themes22.Flex,
|
|
4012
4058
|
{
|
|
4013
4059
|
align: "center",
|
|
@@ -4020,21 +4066,21 @@ function StartReview({ onStart }) {
|
|
|
4020
4066
|
px: { initial: "4", sm: "0" },
|
|
4021
4067
|
width: "100%",
|
|
4022
4068
|
children: [
|
|
4023
|
-
/* @__PURE__ */ (0,
|
|
4024
|
-
/* @__PURE__ */ (0,
|
|
4025
|
-
/* @__PURE__ */ (0,
|
|
4026
|
-
/* @__PURE__ */ (0,
|
|
4027
|
-
/* @__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 }),
|
|
4028
4074
|
" ",
|
|
4029
|
-
/* @__PURE__ */ (0,
|
|
4075
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { children: reviewContents.description })
|
|
4030
4076
|
] }),
|
|
4031
|
-
/* @__PURE__ */ (0,
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes6.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
4032
4078
|
if (done) {
|
|
4033
4079
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
4034
4080
|
}
|
|
4035
4081
|
return renderPreviewContent({ question });
|
|
4036
4082
|
}) }),
|
|
4037
|
-
/* @__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 })
|
|
4038
4084
|
]
|
|
4039
4085
|
}
|
|
4040
4086
|
)
|
|
@@ -4044,13 +4090,13 @@ function StartReview({ onStart }) {
|
|
|
4044
4090
|
var start_review_default = StartReview;
|
|
4045
4091
|
|
|
4046
4092
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
4047
|
-
var
|
|
4093
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4048
4094
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
4049
4095
|
function CompleteReview(props) {
|
|
4050
4096
|
const { onClickReviewMyAnswer } = props;
|
|
4051
4097
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
4052
4098
|
const { reviewMeta } = curriculum.contents;
|
|
4053
|
-
return /* @__PURE__ */ (0,
|
|
4099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4054
4100
|
import_themes22.Flex,
|
|
4055
4101
|
{
|
|
4056
4102
|
align: "center",
|
|
@@ -4063,9 +4109,9 @@ function CompleteReview(props) {
|
|
|
4063
4109
|
my: "6",
|
|
4064
4110
|
width: "100%",
|
|
4065
4111
|
children: [
|
|
4066
|
-
/* @__PURE__ */ (0,
|
|
4067
|
-
/* @__PURE__ */ (0,
|
|
4068
|
-
/* @__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)(
|
|
4069
4115
|
"img",
|
|
4070
4116
|
{
|
|
4071
4117
|
alt: "complete-review",
|
|
@@ -4074,19 +4120,19 @@ function CompleteReview(props) {
|
|
|
4074
4120
|
width: 118
|
|
4075
4121
|
}
|
|
4076
4122
|
),
|
|
4077
|
-
/* @__PURE__ */ (0,
|
|
4078
|
-
/* @__PURE__ */ (0,
|
|
4079
|
-
/* @__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.
|
|
4080
4126
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
4081
4127
|
] }),
|
|
4082
|
-
/* @__PURE__ */ (0,
|
|
4083
|
-
/* @__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: [
|
|
4084
4130
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
4085
|
-
/* @__PURE__ */ (0,
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.ResetIcon, {})
|
|
4086
4132
|
] }),
|
|
4087
|
-
/* @__PURE__ */ (0,
|
|
4133
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
4088
4134
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
4089
|
-
/* @__PURE__ */ (0,
|
|
4135
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.HomeIcon, {})
|
|
4090
4136
|
] })
|
|
4091
4137
|
] })
|
|
4092
4138
|
]
|
|
@@ -4096,9 +4142,9 @@ function CompleteReview(props) {
|
|
|
4096
4142
|
var complete_review_default = CompleteReview;
|
|
4097
4143
|
|
|
4098
4144
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
4099
|
-
var
|
|
4145
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4100
4146
|
function AlignCenter(props) {
|
|
4101
|
-
return /* @__PURE__ */ (0,
|
|
4147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4102
4148
|
import_themes22.Flex,
|
|
4103
4149
|
__spreadValues({
|
|
4104
4150
|
align: "center",
|
|
@@ -4113,7 +4159,7 @@ function ReviewQuestionLayout({
|
|
|
4113
4159
|
Body,
|
|
4114
4160
|
Footer
|
|
4115
4161
|
}) {
|
|
4116
|
-
return /* @__PURE__ */ (0,
|
|
4162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4117
4163
|
import_themes23.Grid,
|
|
4118
4164
|
{
|
|
4119
4165
|
align: "center",
|
|
@@ -4126,18 +4172,18 @@ function ReviewQuestionLayout({
|
|
|
4126
4172
|
},
|
|
4127
4173
|
width: "100%",
|
|
4128
4174
|
children: [
|
|
4129
|
-
/* @__PURE__ */ (0,
|
|
4130
|
-
/* @__PURE__ */ (0,
|
|
4131
|
-
/* @__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)(
|
|
4132
4178
|
AlignCenter,
|
|
4133
4179
|
{
|
|
4134
4180
|
p: "3",
|
|
4135
4181
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
4136
|
-
children: /* @__PURE__ */ (0,
|
|
4182
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes6.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
4137
4183
|
}
|
|
4138
4184
|
),
|
|
4139
|
-
/* @__PURE__ */ (0,
|
|
4140
|
-
/* @__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 }) })
|
|
4141
4187
|
]
|
|
4142
4188
|
}
|
|
4143
4189
|
);
|
|
@@ -4145,14 +4191,14 @@ function ReviewQuestionLayout({
|
|
|
4145
4191
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
4146
4192
|
|
|
4147
4193
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
4148
|
-
var
|
|
4194
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4149
4195
|
function ReviewQuestionHeader({
|
|
4150
4196
|
index,
|
|
4151
4197
|
total
|
|
4152
4198
|
}) {
|
|
4153
4199
|
const { reviewContents } = useCurriculumReviewContext();
|
|
4154
|
-
return /* @__PURE__ */ (0,
|
|
4155
|
-
/* @__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)(
|
|
4156
4202
|
Heading2,
|
|
4157
4203
|
{
|
|
4158
4204
|
mb: "3",
|
|
@@ -4161,22 +4207,22 @@ function ReviewQuestionHeader({
|
|
|
4161
4207
|
children: reviewContents.title
|
|
4162
4208
|
}
|
|
4163
4209
|
) }),
|
|
4164
|
-
/* @__PURE__ */ (0,
|
|
4165
|
-
/* @__PURE__ */ (0,
|
|
4166
|
-
/* @__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: [
|
|
4167
4213
|
index + 1,
|
|
4168
4214
|
" / ",
|
|
4169
4215
|
total,
|
|
4170
4216
|
" \uC644\uB8CC"
|
|
4171
4217
|
] })
|
|
4172
4218
|
] }),
|
|
4173
|
-
/* @__PURE__ */ (0,
|
|
4219
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes30.Progress, { color: "iris", max: total, value: index + 1 })
|
|
4174
4220
|
] });
|
|
4175
4221
|
}
|
|
4176
4222
|
var review_question_header_default = ReviewQuestionHeader;
|
|
4177
4223
|
|
|
4178
4224
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
4179
|
-
var
|
|
4225
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4180
4226
|
function ReviewQuestionFooter({
|
|
4181
4227
|
index,
|
|
4182
4228
|
onNext,
|
|
@@ -4186,22 +4232,22 @@ function ReviewQuestionFooter({
|
|
|
4186
4232
|
onSubmit,
|
|
4187
4233
|
isLoading
|
|
4188
4234
|
}) {
|
|
4189
|
-
return /* @__PURE__ */ (0,
|
|
4190
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
4191
|
-
/* @__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, {}),
|
|
4192
4238
|
"\uC774\uC804\uC73C\uB85C"
|
|
4193
|
-
] }) : /* @__PURE__ */ (0,
|
|
4194
|
-
isLast ? /* @__PURE__ */ (0,
|
|
4195
|
-
/* @__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, {}),
|
|
4196
4242
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
4197
|
-
] }) : /* @__PURE__ */ (0,
|
|
4243
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
4198
4244
|
Button,
|
|
4199
4245
|
{
|
|
4200
4246
|
disabled: isNextButtonDisabled,
|
|
4201
4247
|
onClick: onNext,
|
|
4202
4248
|
variant: "surface",
|
|
4203
4249
|
children: [
|
|
4204
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons2.ChevronRightIcon, {}),
|
|
4205
4251
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
4206
4252
|
]
|
|
4207
4253
|
}
|
|
@@ -4211,10 +4257,10 @@ function ReviewQuestionFooter({
|
|
|
4211
4257
|
var review_question_footer_default = ReviewQuestionFooter;
|
|
4212
4258
|
|
|
4213
4259
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4214
|
-
var
|
|
4260
|
+
var import_react35 = require("react");
|
|
4215
4261
|
|
|
4216
4262
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
4217
|
-
var
|
|
4263
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4218
4264
|
function ReviewQuestionContentHeader({
|
|
4219
4265
|
type,
|
|
4220
4266
|
title,
|
|
@@ -4222,9 +4268,9 @@ function ReviewQuestionContentHeader({
|
|
|
4222
4268
|
icon
|
|
4223
4269
|
}) {
|
|
4224
4270
|
const Icon = getCurriculumIcon({ type, icon });
|
|
4225
|
-
return /* @__PURE__ */ (0,
|
|
4226
|
-
/* @__PURE__ */ (0,
|
|
4227
|
-
/* @__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)(
|
|
4228
4274
|
Icon,
|
|
4229
4275
|
{
|
|
4230
4276
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -4232,32 +4278,32 @@ function ReviewQuestionContentHeader({
|
|
|
4232
4278
|
width: "16"
|
|
4233
4279
|
}
|
|
4234
4280
|
) }),
|
|
4235
|
-
/* @__PURE__ */ (0,
|
|
4281
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
4236
4282
|
] }),
|
|
4237
|
-
/* @__PURE__ */ (0,
|
|
4283
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
4238
4284
|
] });
|
|
4239
4285
|
}
|
|
4240
4286
|
|
|
4241
4287
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4242
|
-
var
|
|
4288
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4243
4289
|
var correctAnswerStyle = {
|
|
4244
4290
|
backgroundColor: "var(--green-a2)"
|
|
4245
4291
|
};
|
|
4246
4292
|
function ReviewQuestionRadio(props) {
|
|
4247
4293
|
const { question, answer, onChange } = props;
|
|
4248
|
-
const [isCheckAnswer, setIsCheckAnswer] = (0,
|
|
4249
|
-
const checkAnswer = (0,
|
|
4294
|
+
const [isCheckAnswer, setIsCheckAnswer] = (0, import_react35.useState)(false);
|
|
4295
|
+
const checkAnswer = (0, import_react35.useCallback)(() => {
|
|
4250
4296
|
setIsCheckAnswer(true);
|
|
4251
4297
|
}, []);
|
|
4252
4298
|
const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;
|
|
4253
4299
|
const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;
|
|
4254
|
-
const radioColor = (0,
|
|
4300
|
+
const radioColor = (0, import_react35.useMemo)(() => {
|
|
4255
4301
|
if (isCorrect) return "green";
|
|
4256
4302
|
if (isWrong) return "red";
|
|
4257
4303
|
return void 0;
|
|
4258
4304
|
}, [isCorrect, isWrong]);
|
|
4259
|
-
return /* @__PURE__ */ (0,
|
|
4260
|
-
/* @__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)(
|
|
4261
4307
|
ReviewQuestionContentHeader,
|
|
4262
4308
|
{
|
|
4263
4309
|
icon: question.icon,
|
|
@@ -4266,8 +4312,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4266
4312
|
type: question.type
|
|
4267
4313
|
}
|
|
4268
4314
|
) }),
|
|
4269
|
-
/* @__PURE__ */ (0,
|
|
4270
|
-
/* @__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)(
|
|
4271
4317
|
RadioButtonCard.Root,
|
|
4272
4318
|
{
|
|
4273
4319
|
color: radioColor,
|
|
@@ -4279,7 +4325,7 @@ function ReviewQuestionRadio(props) {
|
|
|
4279
4325
|
position: "absolute"
|
|
4280
4326
|
},
|
|
4281
4327
|
value: answer,
|
|
4282
|
-
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) => {
|
|
4283
4329
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
4284
4330
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
4285
4331
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -4287,15 +4333,15 @@ function ReviewQuestionRadio(props) {
|
|
|
4287
4333
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
4288
4334
|
return {};
|
|
4289
4335
|
})();
|
|
4290
|
-
return /* @__PURE__ */ (0,
|
|
4336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4291
4337
|
RadioButtonCard.Item,
|
|
4292
4338
|
{
|
|
4293
4339
|
style,
|
|
4294
4340
|
value: i.toString(),
|
|
4295
|
-
children: /* @__PURE__ */ (0,
|
|
4296
|
-
/* @__PURE__ */ (0,
|
|
4297
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
4298
|
-
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
|
|
4299
4345
|
] })
|
|
4300
4346
|
},
|
|
4301
4347
|
`${option.label}-${i}`
|
|
@@ -4303,19 +4349,19 @@ function ReviewQuestionRadio(props) {
|
|
|
4303
4349
|
}) })
|
|
4304
4350
|
}
|
|
4305
4351
|
) }),
|
|
4306
|
-
/* @__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" }) })
|
|
4307
4353
|
] })
|
|
4308
4354
|
] });
|
|
4309
4355
|
}
|
|
4310
4356
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
4311
4357
|
|
|
4312
4358
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4313
|
-
var
|
|
4359
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4314
4360
|
function ReviewQuestionText(props) {
|
|
4315
4361
|
const { question, answer, onChange } = props;
|
|
4316
4362
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4317
4363
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4318
|
-
return /* @__PURE__ */ (0,
|
|
4364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4319
4365
|
Card,
|
|
4320
4366
|
{
|
|
4321
4367
|
size: "2",
|
|
@@ -4323,9 +4369,9 @@ function ReviewQuestionText(props) {
|
|
|
4323
4369
|
width: "100%",
|
|
4324
4370
|
height: "100%"
|
|
4325
4371
|
},
|
|
4326
|
-
children: /* @__PURE__ */ (0,
|
|
4327
|
-
/* @__PURE__ */ (0,
|
|
4328
|
-
/* @__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)(
|
|
4329
4375
|
ReviewQuestionContentHeader,
|
|
4330
4376
|
{
|
|
4331
4377
|
icon: question.icon,
|
|
@@ -4334,7 +4380,7 @@ function ReviewQuestionText(props) {
|
|
|
4334
4380
|
type: question.type
|
|
4335
4381
|
}
|
|
4336
4382
|
),
|
|
4337
|
-
/* @__PURE__ */ (0,
|
|
4383
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4338
4384
|
TextArea,
|
|
4339
4385
|
{
|
|
4340
4386
|
mt: "2",
|
|
@@ -4346,17 +4392,17 @@ function ReviewQuestionText(props) {
|
|
|
4346
4392
|
}
|
|
4347
4393
|
)
|
|
4348
4394
|
] }),
|
|
4349
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4350
|
-
/* @__PURE__ */ (0,
|
|
4351
|
-
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)(
|
|
4352
4398
|
import_themes8.Callout.Root,
|
|
4353
4399
|
{
|
|
4354
4400
|
color: "iris",
|
|
4355
4401
|
mt: "2",
|
|
4356
4402
|
style: { alignItems: "center" },
|
|
4357
4403
|
children: [
|
|
4358
|
-
/* @__PURE__ */ (0,
|
|
4359
|
-
/* @__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 }) })
|
|
4360
4406
|
]
|
|
4361
4407
|
}
|
|
4362
4408
|
) : null
|
|
@@ -4368,12 +4414,12 @@ function ReviewQuestionText(props) {
|
|
|
4368
4414
|
var review_question_text_default = ReviewQuestionText;
|
|
4369
4415
|
|
|
4370
4416
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4371
|
-
var
|
|
4417
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4372
4418
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4373
4419
|
var _a, _b, _c;
|
|
4374
4420
|
const { question, answer, onChange } = props;
|
|
4375
|
-
return /* @__PURE__ */ (0,
|
|
4376
|
-
/* @__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)(
|
|
4377
4423
|
ReviewQuestionContentHeader,
|
|
4378
4424
|
{
|
|
4379
4425
|
icon: question.icon,
|
|
@@ -4382,18 +4428,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4382
4428
|
type: question.type
|
|
4383
4429
|
}
|
|
4384
4430
|
) }),
|
|
4385
|
-
/* @__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)) }) })
|
|
4386
4432
|
] });
|
|
4387
4433
|
}
|
|
4388
4434
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4389
4435
|
|
|
4390
4436
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4391
|
-
var
|
|
4437
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4392
4438
|
function ReviewQuestionSatisfisText(props) {
|
|
4393
4439
|
var _a, _b;
|
|
4394
4440
|
const { question, answer, onChange } = props;
|
|
4395
|
-
return /* @__PURE__ */ (0,
|
|
4396
|
-
/* @__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)(
|
|
4397
4443
|
ReviewQuestionContentHeader,
|
|
4398
4444
|
{
|
|
4399
4445
|
icon: question.icon,
|
|
@@ -4402,7 +4448,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4402
4448
|
type: question.type
|
|
4403
4449
|
}
|
|
4404
4450
|
),
|
|
4405
|
-
/* @__PURE__ */ (0,
|
|
4451
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4406
4452
|
TextArea,
|
|
4407
4453
|
{
|
|
4408
4454
|
mt: "2",
|
|
@@ -4420,11 +4466,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4420
4466
|
}
|
|
4421
4467
|
|
|
4422
4468
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4423
|
-
var
|
|
4469
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4424
4470
|
function ReviewQuestionBody(props) {
|
|
4425
4471
|
const { question, answer, error, onChange } = props;
|
|
4426
4472
|
if (question.type === "question_radio") {
|
|
4427
|
-
return /* @__PURE__ */ (0,
|
|
4473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4428
4474
|
review_question_radio_default,
|
|
4429
4475
|
{
|
|
4430
4476
|
answer,
|
|
@@ -4435,7 +4481,7 @@ function ReviewQuestionBody(props) {
|
|
|
4435
4481
|
);
|
|
4436
4482
|
}
|
|
4437
4483
|
if (question.type === "question_text") {
|
|
4438
|
-
return /* @__PURE__ */ (0,
|
|
4484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4439
4485
|
review_question_text_default,
|
|
4440
4486
|
{
|
|
4441
4487
|
answer,
|
|
@@ -4446,7 +4492,7 @@ function ReviewQuestionBody(props) {
|
|
|
4446
4492
|
);
|
|
4447
4493
|
}
|
|
4448
4494
|
if (question.type === "question_satisfaction_option") {
|
|
4449
|
-
return /* @__PURE__ */ (0,
|
|
4495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4450
4496
|
review_question_satisfaction_option_default,
|
|
4451
4497
|
{
|
|
4452
4498
|
answer,
|
|
@@ -4457,7 +4503,7 @@ function ReviewQuestionBody(props) {
|
|
|
4457
4503
|
);
|
|
4458
4504
|
}
|
|
4459
4505
|
if (question.type === "question_satisfaction_text") {
|
|
4460
|
-
return /* @__PURE__ */ (0,
|
|
4506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4461
4507
|
ReviewQuestionSatisfisText,
|
|
4462
4508
|
{
|
|
4463
4509
|
answer,
|
|
@@ -4472,7 +4518,7 @@ function ReviewQuestionBody(props) {
|
|
|
4472
4518
|
var review_question_body_default = ReviewQuestionBody;
|
|
4473
4519
|
|
|
4474
4520
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4475
|
-
var
|
|
4521
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4476
4522
|
function ReviewQuestion({
|
|
4477
4523
|
question,
|
|
4478
4524
|
index,
|
|
@@ -4487,10 +4533,10 @@ function ReviewQuestion({
|
|
|
4487
4533
|
onSubmit,
|
|
4488
4534
|
isLoading
|
|
4489
4535
|
}) {
|
|
4490
|
-
return /* @__PURE__ */ (0,
|
|
4536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4491
4537
|
review_question_layout_default,
|
|
4492
4538
|
{
|
|
4493
|
-
Body: /* @__PURE__ */ (0,
|
|
4539
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4494
4540
|
review_question_body_default,
|
|
4495
4541
|
{
|
|
4496
4542
|
answer,
|
|
@@ -4499,7 +4545,7 @@ function ReviewQuestion({
|
|
|
4499
4545
|
question
|
|
4500
4546
|
}
|
|
4501
4547
|
),
|
|
4502
|
-
Footer: /* @__PURE__ */ (0,
|
|
4548
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4503
4549
|
review_question_footer_default,
|
|
4504
4550
|
{
|
|
4505
4551
|
index,
|
|
@@ -4511,14 +4557,14 @@ function ReviewQuestion({
|
|
|
4511
4557
|
onSubmit
|
|
4512
4558
|
}
|
|
4513
4559
|
),
|
|
4514
|
-
Header: /* @__PURE__ */ (0,
|
|
4560
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(review_question_header_default, { index, total })
|
|
4515
4561
|
}
|
|
4516
4562
|
);
|
|
4517
4563
|
}
|
|
4518
4564
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4519
4565
|
|
|
4520
4566
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4521
|
-
var
|
|
4567
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4522
4568
|
function CurriculumReviewStepsInner() {
|
|
4523
4569
|
const {
|
|
4524
4570
|
formik,
|
|
@@ -4536,10 +4582,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4536
4582
|
} = useCurriculumReviewContext();
|
|
4537
4583
|
const { questions } = reviewContents;
|
|
4538
4584
|
if (step === 0) {
|
|
4539
|
-
return /* @__PURE__ */ (0,
|
|
4585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(start_review_default, { onStart: handleStart });
|
|
4540
4586
|
}
|
|
4541
4587
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4542
|
-
return /* @__PURE__ */ (0,
|
|
4588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4543
4589
|
ReviewQuestion_default,
|
|
4544
4590
|
{
|
|
4545
4591
|
answer: currentAnswer,
|
|
@@ -4557,7 +4603,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4557
4603
|
}
|
|
4558
4604
|
);
|
|
4559
4605
|
}
|
|
4560
|
-
return /* @__PURE__ */ (0,
|
|
4606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4561
4607
|
}
|
|
4562
4608
|
function CurriculumReviewSteps({
|
|
4563
4609
|
contents,
|
|
@@ -4570,7 +4616,7 @@ function CurriculumReviewSteps({
|
|
|
4570
4616
|
mode,
|
|
4571
4617
|
done
|
|
4572
4618
|
}) {
|
|
4573
|
-
return /* @__PURE__ */ (0,
|
|
4619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4574
4620
|
CurriculumReviewProvider,
|
|
4575
4621
|
{
|
|
4576
4622
|
curriculum,
|
|
@@ -4582,14 +4628,14 @@ function CurriculumReviewSteps({
|
|
|
4582
4628
|
onSubmit,
|
|
4583
4629
|
reviewContents: contents,
|
|
4584
4630
|
sectionTitle: title,
|
|
4585
|
-
children: /* @__PURE__ */ (0,
|
|
4631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CurriculumReviewStepsInner, {})
|
|
4586
4632
|
}
|
|
4587
4633
|
);
|
|
4588
4634
|
}
|
|
4589
4635
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4590
4636
|
|
|
4591
4637
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4592
|
-
var
|
|
4638
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4593
4639
|
function CurriculumReview(props) {
|
|
4594
4640
|
const { item, sectionTitle } = props;
|
|
4595
4641
|
const { description, buttonTitle } = item;
|
|
@@ -4601,10 +4647,10 @@ function CurriculumReview(props) {
|
|
|
4601
4647
|
tempCurriculumReviewAnswers,
|
|
4602
4648
|
curriculumCompleteMap
|
|
4603
4649
|
} = useCurriculumContext();
|
|
4604
|
-
const [open, setOpen] = (0,
|
|
4605
|
-
const [isChanged, setIsChanged] = (0,
|
|
4606
|
-
const [closeDialogOpen, setCloseDialogOpen] = (0,
|
|
4607
|
-
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)(
|
|
4608
4654
|
({
|
|
4609
4655
|
reviewId,
|
|
4610
4656
|
answer
|
|
@@ -4617,7 +4663,7 @@ function CurriculumReview(props) {
|
|
|
4617
4663
|
},
|
|
4618
4664
|
[_onReviewValueChange, curriculumReviewAnswers]
|
|
4619
4665
|
);
|
|
4620
|
-
const onReviewSubmit = (0,
|
|
4666
|
+
const onReviewSubmit = (0, import_react36.useCallback)(
|
|
4621
4667
|
(values) => {
|
|
4622
4668
|
return _onReviewSubmit({ reviewId: item.uuid, answer: values }).then(
|
|
4623
4669
|
(result) => {
|
|
@@ -4628,34 +4674,34 @@ function CurriculumReview(props) {
|
|
|
4628
4674
|
},
|
|
4629
4675
|
[item.uuid, _onReviewSubmit]
|
|
4630
4676
|
);
|
|
4631
|
-
const onClickEndReview = (0,
|
|
4677
|
+
const onClickEndReview = (0, import_react36.useCallback)(() => {
|
|
4632
4678
|
setOpen(false);
|
|
4633
4679
|
}, []);
|
|
4634
|
-
const onClickCloseDrawer = (0,
|
|
4680
|
+
const onClickCloseDrawer = (0, import_react36.useCallback)(() => {
|
|
4635
4681
|
if (isChanged) {
|
|
4636
4682
|
setCloseDialogOpen(true);
|
|
4637
4683
|
} else {
|
|
4638
4684
|
setOpen(false);
|
|
4639
4685
|
}
|
|
4640
4686
|
}, [isChanged]);
|
|
4641
|
-
const mode = (0,
|
|
4687
|
+
const mode = (0, import_react36.useMemo)(() => {
|
|
4642
4688
|
return item.questions.every(
|
|
4643
4689
|
(question) => curriculumReviewAnswers[question.uuid] && curriculumReviewAnswers[question.uuid] !== ""
|
|
4644
4690
|
) ? "edit" : "create";
|
|
4645
4691
|
}, [curriculumReviewAnswers, item.questions]);
|
|
4646
|
-
const defaultValues = (0,
|
|
4692
|
+
const defaultValues = (0, import_react36.useMemo)(() => {
|
|
4647
4693
|
const allAnswers = __spreadValues(__spreadValues({}, tempCurriculumReviewAnswers), curriculumReviewAnswers);
|
|
4648
4694
|
return item.questions.reduce((acc, question) => {
|
|
4649
4695
|
acc[question.uuid] = allAnswers[question.uuid] || "";
|
|
4650
4696
|
return acc;
|
|
4651
4697
|
}, {});
|
|
4652
4698
|
}, [curriculumReviewAnswers, item.questions, tempCurriculumReviewAnswers]);
|
|
4653
|
-
const done = (0,
|
|
4699
|
+
const done = (0, import_react36.useMemo)(() => {
|
|
4654
4700
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4655
4701
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4656
4702
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4657
|
-
return /* @__PURE__ */ (0,
|
|
4658
|
-
/* @__PURE__ */ (0,
|
|
4703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
4704
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
4659
4705
|
import_themes22.Flex,
|
|
4660
4706
|
{
|
|
4661
4707
|
align: "center",
|
|
@@ -4672,21 +4718,21 @@ function CurriculumReview(props) {
|
|
|
4672
4718
|
},
|
|
4673
4719
|
width: "100%",
|
|
4674
4720
|
children: [
|
|
4675
|
-
/* @__PURE__ */ (0,
|
|
4676
|
-
/* @__PURE__ */ (0,
|
|
4677
|
-
/* @__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)(
|
|
4678
4724
|
Button,
|
|
4679
4725
|
{
|
|
4680
4726
|
mt: "3",
|
|
4681
4727
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
4682
4728
|
variant: done ? "outline" : "solid",
|
|
4683
|
-
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 })
|
|
4684
4730
|
}
|
|
4685
4731
|
) })
|
|
4686
4732
|
]
|
|
4687
4733
|
}
|
|
4688
4734
|
),
|
|
4689
|
-
/* @__PURE__ */ (0,
|
|
4735
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4690
4736
|
Dialog.Content,
|
|
4691
4737
|
{
|
|
4692
4738
|
height: "100%",
|
|
@@ -4694,7 +4740,7 @@ function CurriculumReview(props) {
|
|
|
4694
4740
|
style: { borderRadius: 0, padding: 0 },
|
|
4695
4741
|
title: "",
|
|
4696
4742
|
width: "100%",
|
|
4697
|
-
children: /* @__PURE__ */ (0,
|
|
4743
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
4698
4744
|
import_themes22.Flex,
|
|
4699
4745
|
{
|
|
4700
4746
|
align: "center",
|
|
@@ -4704,7 +4750,7 @@ function CurriculumReview(props) {
|
|
|
4704
4750
|
position: "relative",
|
|
4705
4751
|
width: "100%",
|
|
4706
4752
|
children: [
|
|
4707
|
-
/* @__PURE__ */ (0,
|
|
4753
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4708
4754
|
CurriculumReviewSteps_default,
|
|
4709
4755
|
{
|
|
4710
4756
|
contents: item,
|
|
@@ -4718,27 +4764,27 @@ function CurriculumReview(props) {
|
|
|
4718
4764
|
title: sectionTitle
|
|
4719
4765
|
}
|
|
4720
4766
|
),
|
|
4721
|
-
/* @__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)(
|
|
4722
4768
|
import_themes18.IconButton,
|
|
4723
4769
|
{
|
|
4724
4770
|
color: "gray",
|
|
4725
4771
|
onClick: onClickCloseDrawer,
|
|
4726
4772
|
variant: "ghost",
|
|
4727
4773
|
children: [
|
|
4728
|
-
/* @__PURE__ */ (0,
|
|
4729
|
-
/* @__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 }) })
|
|
4730
4776
|
]
|
|
4731
4777
|
}
|
|
4732
4778
|
) }),
|
|
4733
|
-
/* @__PURE__ */ (0,
|
|
4779
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4734
4780
|
Dialog.Content,
|
|
4735
4781
|
{
|
|
4736
|
-
buttons: /* @__PURE__ */ (0,
|
|
4737
|
-
/* @__PURE__ */ (0,
|
|
4738
|
-
/* @__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" }) })
|
|
4739
4785
|
] }),
|
|
4740
4786
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
4741
|
-
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." })
|
|
4742
4788
|
}
|
|
4743
4789
|
) })
|
|
4744
4790
|
]
|
|
@@ -4751,18 +4797,18 @@ function CurriculumReview(props) {
|
|
|
4751
4797
|
var curriculum_review_default = CurriculumReview;
|
|
4752
4798
|
|
|
4753
4799
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
4754
|
-
var
|
|
4755
|
-
var
|
|
4800
|
+
var import_react37 = require("react");
|
|
4801
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4756
4802
|
function CurriculumAiTraning({
|
|
4757
4803
|
item
|
|
4758
4804
|
}) {
|
|
4759
4805
|
const { title, description, buttonTitle } = item;
|
|
4760
4806
|
const { curriculumCompleteMap, onActionButtonClick } = useCurriculumContext();
|
|
4761
|
-
const done = (0,
|
|
4807
|
+
const done = (0, import_react37.useMemo)(() => {
|
|
4762
4808
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4763
4809
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4764
4810
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4765
|
-
return /* @__PURE__ */ (0,
|
|
4811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4766
4812
|
import_themes22.Flex,
|
|
4767
4813
|
{
|
|
4768
4814
|
align: "center",
|
|
@@ -4777,9 +4823,9 @@ function CurriculumAiTraning({
|
|
|
4777
4823
|
},
|
|
4778
4824
|
width: "100%",
|
|
4779
4825
|
children: [
|
|
4780
|
-
/* @__PURE__ */ (0,
|
|
4781
|
-
/* @__PURE__ */ (0,
|
|
4782
|
-
/* @__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)(
|
|
4783
4829
|
Button,
|
|
4784
4830
|
{
|
|
4785
4831
|
mt: "3",
|
|
@@ -4790,7 +4836,7 @@ function CurriculumAiTraning({
|
|
|
4790
4836
|
variant: done ? "outline" : "solid",
|
|
4791
4837
|
children: [
|
|
4792
4838
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
4793
|
-
done ? /* @__PURE__ */ (0,
|
|
4839
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons2.ResetIcon, {}) : null
|
|
4794
4840
|
]
|
|
4795
4841
|
}
|
|
4796
4842
|
)
|
|
@@ -4801,14 +4847,14 @@ function CurriculumAiTraning({
|
|
|
4801
4847
|
var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
4802
4848
|
|
|
4803
4849
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
4804
|
-
var
|
|
4850
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4805
4851
|
function CurriculumBody() {
|
|
4806
4852
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
4807
4853
|
switch (selectedItem.type) {
|
|
4808
4854
|
case "video":
|
|
4809
|
-
return /* @__PURE__ */ (0,
|
|
4855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(curriculum_video_default, { item: selectedItem });
|
|
4810
4856
|
case "review":
|
|
4811
|
-
return /* @__PURE__ */ (0,
|
|
4857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4812
4858
|
curriculum_review_default,
|
|
4813
4859
|
{
|
|
4814
4860
|
item: selectedItem,
|
|
@@ -4816,9 +4862,9 @@ function CurriculumBody() {
|
|
|
4816
4862
|
}
|
|
4817
4863
|
);
|
|
4818
4864
|
case "aiTraining":
|
|
4819
|
-
return /* @__PURE__ */ (0,
|
|
4865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
4820
4866
|
default:
|
|
4821
|
-
return /* @__PURE__ */ (0,
|
|
4867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4822
4868
|
import_themes22.Flex,
|
|
4823
4869
|
{
|
|
4824
4870
|
align: "center",
|
|
@@ -4828,9 +4874,9 @@ function CurriculumBody() {
|
|
|
4828
4874
|
justify: "center",
|
|
4829
4875
|
width: "100%",
|
|
4830
4876
|
children: [
|
|
4831
|
-
/* @__PURE__ */ (0,
|
|
4832
|
-
/* @__PURE__ */ (0,
|
|
4833
|
-
/* @__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]
|
|
4834
4880
|
${JSON.stringify(selectedItem)}` })
|
|
4835
4881
|
]
|
|
4836
4882
|
}
|
|
@@ -4839,12 +4885,12 @@ function CurriculumBody() {
|
|
|
4839
4885
|
}
|
|
4840
4886
|
|
|
4841
4887
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4842
|
-
var
|
|
4888
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4843
4889
|
function SectionTitle(props) {
|
|
4844
4890
|
const { title, duration } = props;
|
|
4845
|
-
return /* @__PURE__ */ (0,
|
|
4846
|
-
/* @__PURE__ */ (0,
|
|
4847
|
-
/* @__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: [
|
|
4848
4894
|
duration,
|
|
4849
4895
|
"\uBD84"
|
|
4850
4896
|
] })
|
|
@@ -4853,14 +4899,14 @@ function SectionTitle(props) {
|
|
|
4853
4899
|
var section_title_default = SectionTitle;
|
|
4854
4900
|
|
|
4855
4901
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
4856
|
-
var
|
|
4902
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4857
4903
|
function CurriculumSidebarItemWrapper({
|
|
4858
4904
|
children,
|
|
4859
4905
|
isSelected,
|
|
4860
4906
|
onClick,
|
|
4861
4907
|
index
|
|
4862
4908
|
}) {
|
|
4863
|
-
return /* @__PURE__ */ (0,
|
|
4909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
4864
4910
|
import_themes23.Grid,
|
|
4865
4911
|
{
|
|
4866
4912
|
align: "center",
|
|
@@ -4876,7 +4922,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4876
4922
|
cursor: onClick ? "pointer" : void 0
|
|
4877
4923
|
},
|
|
4878
4924
|
children: [
|
|
4879
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4925
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4880
4926
|
import_themes39.Separator,
|
|
4881
4927
|
{
|
|
4882
4928
|
color: "yellow",
|
|
@@ -4893,15 +4939,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
4893
4939
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
4894
4940
|
|
|
4895
4941
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
4896
|
-
var
|
|
4942
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4897
4943
|
function CurriculumItemTitle({
|
|
4898
4944
|
title,
|
|
4899
4945
|
subText,
|
|
4900
4946
|
duration
|
|
4901
4947
|
}) {
|
|
4902
|
-
return /* @__PURE__ */ (0,
|
|
4903
|
-
/* @__PURE__ */ (0,
|
|
4904
|
-
/* @__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: [
|
|
4905
4951
|
subText,
|
|
4906
4952
|
duration ? ` | ${duration}\uBD84` : ""
|
|
4907
4953
|
] })
|
|
@@ -4910,7 +4956,7 @@ function CurriculumItemTitle({
|
|
|
4910
4956
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
4911
4957
|
|
|
4912
4958
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
4913
|
-
var
|
|
4959
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4914
4960
|
function SectionCommonItem({
|
|
4915
4961
|
title,
|
|
4916
4962
|
duration,
|
|
@@ -4919,21 +4965,21 @@ function SectionCommonItem({
|
|
|
4919
4965
|
color = "gray"
|
|
4920
4966
|
}) {
|
|
4921
4967
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
4922
|
-
return /* @__PURE__ */ (0,
|
|
4923
|
-
/* @__PURE__ */ (0,
|
|
4924
|
-
/* @__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 })
|
|
4925
4971
|
] });
|
|
4926
4972
|
}
|
|
4927
4973
|
var section_item_default = SectionCommonItem;
|
|
4928
4974
|
|
|
4929
4975
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
4930
|
-
var
|
|
4976
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4931
4977
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
4932
4978
|
if (item.type === "sectionTitle") {
|
|
4933
|
-
return /* @__PURE__ */ (0,
|
|
4979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
4934
4980
|
}
|
|
4935
4981
|
const isSelected = selectedIndex === index;
|
|
4936
|
-
return /* @__PURE__ */ (0,
|
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4937
4983
|
curriculum_sidebar_item_wrapper_default,
|
|
4938
4984
|
{
|
|
4939
4985
|
index,
|
|
@@ -4941,7 +4987,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4941
4987
|
onClick: () => {
|
|
4942
4988
|
setSelectedIndex(index);
|
|
4943
4989
|
},
|
|
4944
|
-
children: /* @__PURE__ */ (0,
|
|
4990
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4945
4991
|
section_item_default,
|
|
4946
4992
|
__spreadProps(__spreadValues({}, item), {
|
|
4947
4993
|
color: getCurriculumIconColor({
|
|
@@ -4957,7 +5003,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4957
5003
|
var sidebar_item_default = SidebarItem;
|
|
4958
5004
|
|
|
4959
5005
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4960
|
-
var
|
|
5006
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4961
5007
|
var TAB_LIST = [
|
|
4962
5008
|
{
|
|
4963
5009
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -4967,9 +5013,9 @@ var TAB_LIST = [
|
|
|
4967
5013
|
function CurriculumSidebar() {
|
|
4968
5014
|
const { curriculum, selectedIndex, setSelectedIndex, scrollAreaRef, curriculumCompleteMap } = useCurriculumContext();
|
|
4969
5015
|
const list = curriculum.contents.list;
|
|
4970
|
-
return /* @__PURE__ */ (0,
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
4972
|
-
/* @__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)(
|
|
4973
5019
|
import_themes6.Box,
|
|
4974
5020
|
{
|
|
4975
5021
|
height: "100%",
|
|
@@ -4977,7 +5023,7 @@ function CurriculumSidebar() {
|
|
|
4977
5023
|
position: "relative",
|
|
4978
5024
|
ref: scrollAreaRef,
|
|
4979
5025
|
width: "100%",
|
|
4980
|
-
children: /* @__PURE__ */ (0,
|
|
5026
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
4981
5027
|
import_themes44.Tabs.Content,
|
|
4982
5028
|
{
|
|
4983
5029
|
style: {
|
|
@@ -4987,8 +5033,8 @@ function CurriculumSidebar() {
|
|
|
4987
5033
|
},
|
|
4988
5034
|
value: TAB_LIST[0].value,
|
|
4989
5035
|
children: [
|
|
4990
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
4991
|
-
/* @__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" })
|
|
4992
5038
|
]
|
|
4993
5039
|
}
|
|
4994
5040
|
)
|
|
@@ -4998,11 +5044,11 @@ function CurriculumSidebar() {
|
|
|
4998
5044
|
}
|
|
4999
5045
|
|
|
5000
5046
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
5001
|
-
var
|
|
5047
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5002
5048
|
function CurriculumV2Layout(props) {
|
|
5003
5049
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
5004
|
-
return /* @__PURE__ */ (0,
|
|
5005
|
-
/* @__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)(
|
|
5006
5052
|
import_themes22.Flex,
|
|
5007
5053
|
{
|
|
5008
5054
|
align: "center",
|
|
@@ -5011,8 +5057,8 @@ function CurriculumV2Layout(props) {
|
|
|
5011
5057
|
children: NavBar
|
|
5012
5058
|
}
|
|
5013
5059
|
),
|
|
5014
|
-
/* @__PURE__ */ (0,
|
|
5015
|
-
/* @__PURE__ */ (0,
|
|
5060
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes39.Separator, { size: "4" }),
|
|
5061
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5016
5062
|
import_themes22.Flex,
|
|
5017
5063
|
{
|
|
5018
5064
|
align: "center",
|
|
@@ -5020,7 +5066,7 @@ function CurriculumV2Layout(props) {
|
|
|
5020
5066
|
justify: "center",
|
|
5021
5067
|
overflow: "hidden",
|
|
5022
5068
|
width: "100%",
|
|
5023
|
-
children: /* @__PURE__ */ (0,
|
|
5069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
5024
5070
|
import_themes23.Grid,
|
|
5025
5071
|
{
|
|
5026
5072
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -5029,8 +5075,8 @@ function CurriculumV2Layout(props) {
|
|
|
5029
5075
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
5030
5076
|
width: "100%",
|
|
5031
5077
|
children: [
|
|
5032
|
-
/* @__PURE__ */ (0,
|
|
5033
|
-
/* @__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 }),
|
|
5034
5080
|
SideNav
|
|
5035
5081
|
] }),
|
|
5036
5082
|
SideBar
|
|
@@ -5049,22 +5095,22 @@ var import_themes53 = require("@radix-ui/themes");
|
|
|
5049
5095
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
5050
5096
|
|
|
5051
5097
|
// src/charts/horizontal-bar-chart.tsx
|
|
5052
|
-
var
|
|
5098
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5053
5099
|
function HorizontalBarChart(props) {
|
|
5054
5100
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
5055
|
-
return /* @__PURE__ */ (0,
|
|
5101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5056
5102
|
"div",
|
|
5057
5103
|
{
|
|
5058
5104
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
5059
5105
|
style: { height, backgroundColor },
|
|
5060
|
-
children: /* @__PURE__ */ (0,
|
|
5106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5061
5107
|
"div",
|
|
5062
5108
|
{
|
|
5063
5109
|
style: {
|
|
5064
5110
|
width: `${Math.round(value / total * 100)}%`,
|
|
5065
5111
|
height: "100%"
|
|
5066
5112
|
},
|
|
5067
|
-
children: /* @__PURE__ */ (0,
|
|
5113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
5068
5114
|
}
|
|
5069
5115
|
)
|
|
5070
5116
|
}
|
|
@@ -5220,23 +5266,23 @@ var EchartDefaultProps = {
|
|
|
5220
5266
|
};
|
|
5221
5267
|
|
|
5222
5268
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
5223
|
-
var
|
|
5269
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5224
5270
|
function CoachingCustomerInfoSmall({
|
|
5225
5271
|
customer,
|
|
5226
5272
|
children,
|
|
5227
5273
|
badge
|
|
5228
5274
|
}) {
|
|
5229
|
-
return /* @__PURE__ */ (0,
|
|
5275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
5230
5276
|
import_themes22.Flex,
|
|
5231
5277
|
{
|
|
5232
5278
|
direction: { initial: "column", xs: "row" },
|
|
5233
5279
|
gap: "3",
|
|
5234
5280
|
justify: "between",
|
|
5235
5281
|
children: [
|
|
5236
|
-
/* @__PURE__ */ (0,
|
|
5237
|
-
/* @__PURE__ */ (0,
|
|
5238
|
-
/* @__PURE__ */ (0,
|
|
5239
|
-
/* @__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 })
|
|
5240
5286
|
] }) }),
|
|
5241
5287
|
children
|
|
5242
5288
|
]
|
|
@@ -5247,7 +5293,7 @@ function CoachingCustomerInfoSmall({
|
|
|
5247
5293
|
// src/app/platform/userInfos/utils.tsx
|
|
5248
5294
|
var import_date_fns3 = require("date-fns");
|
|
5249
5295
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
5250
|
-
var
|
|
5296
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5251
5297
|
var infoList = [
|
|
5252
5298
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
5253
5299
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -5307,21 +5353,21 @@ var sessionList = [
|
|
|
5307
5353
|
var renderItem = (args) => {
|
|
5308
5354
|
const { info, data, onClickCopy } = args;
|
|
5309
5355
|
const value = info.getValue(data);
|
|
5310
|
-
return /* @__PURE__ */ (0,
|
|
5356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
5311
5357
|
info.render ? info.render(value) : value || "-",
|
|
5312
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
5358
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
5313
5359
|
] });
|
|
5314
5360
|
};
|
|
5315
5361
|
var renderDataListItem = (args) => {
|
|
5316
5362
|
const { info, data, onClickCopy } = args;
|
|
5317
|
-
return /* @__PURE__ */ (0,
|
|
5318
|
-
/* @__PURE__ */ (0,
|
|
5319
|
-
/* @__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 }) })
|
|
5320
5366
|
] }, info.label);
|
|
5321
5367
|
};
|
|
5322
5368
|
function CopyButton(props) {
|
|
5323
5369
|
const { value, onClickCopy } = props;
|
|
5324
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5325
5371
|
Button,
|
|
5326
5372
|
{
|
|
5327
5373
|
color: "gray",
|
|
@@ -5330,13 +5376,13 @@ function CopyButton(props) {
|
|
|
5330
5376
|
},
|
|
5331
5377
|
style: { marginLeft: "0", marginTop: "0" },
|
|
5332
5378
|
variant: "transparent",
|
|
5333
|
-
children: /* @__PURE__ */ (0,
|
|
5379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons9.CopyIcon, {})
|
|
5334
5380
|
}
|
|
5335
5381
|
);
|
|
5336
5382
|
}
|
|
5337
5383
|
|
|
5338
5384
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
5339
|
-
var
|
|
5385
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5340
5386
|
function CoachingCustomerInfoMedium({
|
|
5341
5387
|
customer,
|
|
5342
5388
|
session,
|
|
@@ -5344,28 +5390,28 @@ function CoachingCustomerInfoMedium({
|
|
|
5344
5390
|
badge,
|
|
5345
5391
|
onClickCopy
|
|
5346
5392
|
}) {
|
|
5347
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
-
/* @__PURE__ */ (0,
|
|
5349
|
-
/* @__PURE__ */ (0,
|
|
5350
|
-
/* @__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" }),
|
|
5351
5397
|
badge
|
|
5352
5398
|
] }),
|
|
5353
|
-
/* @__PURE__ */ (0,
|
|
5399
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
5354
5400
|
] }),
|
|
5355
5401
|
children,
|
|
5356
|
-
/* @__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(
|
|
5357
5403
|
(el) => renderDataListItem({
|
|
5358
5404
|
info: el,
|
|
5359
5405
|
data: session,
|
|
5360
5406
|
onClickCopy
|
|
5361
5407
|
})
|
|
5362
5408
|
) }) }),
|
|
5363
|
-
/* @__PURE__ */ (0,
|
|
5364
|
-
/* @__PURE__ */ (0,
|
|
5365
|
-
/* @__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" })
|
|
5366
5412
|
] }),
|
|
5367
|
-
/* @__PURE__ */ (0,
|
|
5368
|
-
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({
|
|
5369
5415
|
info: el,
|
|
5370
5416
|
data: customer,
|
|
5371
5417
|
onClickCopy
|
|
@@ -5375,7 +5421,7 @@ function CoachingCustomerInfoMedium({
|
|
|
5375
5421
|
}
|
|
5376
5422
|
|
|
5377
5423
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
5378
|
-
var
|
|
5424
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5379
5425
|
function CoachingCustomerInfoLarge({
|
|
5380
5426
|
customer,
|
|
5381
5427
|
session,
|
|
@@ -5383,24 +5429,24 @@ function CoachingCustomerInfoLarge({
|
|
|
5383
5429
|
badge,
|
|
5384
5430
|
onClickCopy
|
|
5385
5431
|
}) {
|
|
5386
|
-
return /* @__PURE__ */ (0,
|
|
5387
|
-
/* @__PURE__ */ (0,
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
5389
|
-
/* @__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" }),
|
|
5390
5436
|
badge
|
|
5391
5437
|
] }),
|
|
5392
|
-
/* @__PURE__ */ (0,
|
|
5438
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
5393
5439
|
] }),
|
|
5394
5440
|
children,
|
|
5395
|
-
/* @__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(
|
|
5396
5442
|
(el) => renderDataListItem({
|
|
5397
5443
|
info: el,
|
|
5398
5444
|
data: session,
|
|
5399
5445
|
onClickCopy
|
|
5400
5446
|
})
|
|
5401
5447
|
) }) }),
|
|
5402
|
-
/* @__PURE__ */ (0,
|
|
5403
|
-
/* @__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(
|
|
5404
5450
|
(info) => renderDataListItem({
|
|
5405
5451
|
info,
|
|
5406
5452
|
data: customer,
|
|
@@ -5411,19 +5457,19 @@ function CoachingCustomerInfoLarge({
|
|
|
5411
5457
|
}
|
|
5412
5458
|
|
|
5413
5459
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
5414
|
-
var
|
|
5460
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5415
5461
|
function CoachingCustomerInfo(props) {
|
|
5416
|
-
return /* @__PURE__ */ (0,
|
|
5417
|
-
/* @__PURE__ */ (0,
|
|
5418
|
-
/* @__PURE__ */ (0,
|
|
5419
|
-
/* @__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)) })
|
|
5420
5466
|
] });
|
|
5421
5467
|
}
|
|
5422
5468
|
|
|
5423
5469
|
// src/app/platform/goal-manage-card-read.tsx
|
|
5424
|
-
var
|
|
5470
|
+
var import_react38 = require("react");
|
|
5425
5471
|
var import_date_fns4 = require("date-fns");
|
|
5426
|
-
var
|
|
5472
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5427
5473
|
function GoalManageCardRead(props) {
|
|
5428
5474
|
const {
|
|
5429
5475
|
title,
|
|
@@ -5437,12 +5483,12 @@ function GoalManageCardRead(props) {
|
|
|
5437
5483
|
onClickIncomplete,
|
|
5438
5484
|
onClickComplete
|
|
5439
5485
|
} = props;
|
|
5440
|
-
const [open, setOpen] = (0,
|
|
5441
|
-
const onClickOpen = (0,
|
|
5486
|
+
const [open, setOpen] = (0, import_react38.useState)(Boolean(defaultOpen));
|
|
5487
|
+
const onClickOpen = (0, import_react38.useCallback)(() => {
|
|
5442
5488
|
setOpen((p) => !p);
|
|
5443
5489
|
}, []);
|
|
5444
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
5445
|
-
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)(() => {
|
|
5446
5492
|
if (!completed && dueDate) {
|
|
5447
5493
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
5448
5494
|
return {
|
|
@@ -5453,41 +5499,41 @@ function GoalManageCardRead(props) {
|
|
|
5453
5499
|
}
|
|
5454
5500
|
return null;
|
|
5455
5501
|
}, [completed, dueDate]);
|
|
5456
|
-
const renderSubTitle = (0,
|
|
5457
|
-
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 });
|
|
5458
5504
|
}, []);
|
|
5459
|
-
const renderSubContent = (0,
|
|
5460
|
-
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 });
|
|
5461
5507
|
}, []);
|
|
5462
|
-
const renderCompleteButton = (0,
|
|
5508
|
+
const renderCompleteButton = (0, import_react38.useCallback)(() => {
|
|
5463
5509
|
if (completed) {
|
|
5464
|
-
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" });
|
|
5465
5511
|
}
|
|
5466
|
-
return /* @__PURE__ */ (0,
|
|
5467
|
-
/* @__PURE__ */ (0,
|
|
5468
|
-
/* @__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, {}),
|
|
5469
5515
|
"\uB2EC\uC131\uD558\uAE30"
|
|
5470
5516
|
] }) }),
|
|
5471
|
-
/* @__PURE__ */ (0,
|
|
5472
|
-
/* @__PURE__ */ (0,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5474
|
-
/* @__PURE__ */ (0,
|
|
5475
|
-
/* @__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" }) })
|
|
5476
5522
|
] })
|
|
5477
5523
|
] })
|
|
5478
5524
|
] });
|
|
5479
5525
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
5480
|
-
return /* @__PURE__ */ (0,
|
|
5481
|
-
/* @__PURE__ */ (0,
|
|
5482
|
-
/* @__PURE__ */ (0,
|
|
5483
|
-
/* @__PURE__ */ (0,
|
|
5484
|
-
/* @__PURE__ */ (0,
|
|
5485
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
5486
|
-
/* @__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 })
|
|
5487
5533
|
] }),
|
|
5488
5534
|
renderCompleteButton()
|
|
5489
5535
|
] }),
|
|
5490
|
-
open ? /* @__PURE__ */ (0,
|
|
5536
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5491
5537
|
import_themes39.Separator,
|
|
5492
5538
|
{
|
|
5493
5539
|
mb: "4",
|
|
@@ -5496,37 +5542,37 @@ function GoalManageCardRead(props) {
|
|
|
5496
5542
|
style: { gridColumnStart: "span 2" }
|
|
5497
5543
|
}
|
|
5498
5544
|
) : null,
|
|
5499
|
-
/* @__PURE__ */ (0,
|
|
5500
|
-
/* @__PURE__ */ (0,
|
|
5501
|
-
/* @__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: [
|
|
5502
5548
|
renderSubTitle(
|
|
5503
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"
|
|
5504
5550
|
),
|
|
5505
5551
|
renderSubContent(expectedEffect)
|
|
5506
5552
|
] }),
|
|
5507
|
-
/* @__PURE__ */ (0,
|
|
5553
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes6.Box, { children: [
|
|
5508
5554
|
renderSubTitle(
|
|
5509
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"
|
|
5510
5556
|
),
|
|
5511
5557
|
renderSubContent(huddle)
|
|
5512
5558
|
] })
|
|
5513
5559
|
] }),
|
|
5514
|
-
/* @__PURE__ */ (0,
|
|
5515
|
-
/* @__PURE__ */ (0,
|
|
5516
|
-
/* @__PURE__ */ (0,
|
|
5517
|
-
/* @__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, {}),
|
|
5518
5564
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
5519
5565
|
] }) }),
|
|
5520
|
-
/* @__PURE__ */ (0,
|
|
5521
|
-
/* @__PURE__ */ (0,
|
|
5522
|
-
/* @__PURE__ */ (0,
|
|
5523
|
-
/* @__PURE__ */ (0,
|
|
5524
|
-
/* @__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" }) })
|
|
5525
5571
|
] })
|
|
5526
5572
|
] })
|
|
5527
5573
|
] }),
|
|
5528
|
-
/* @__PURE__ */ (0,
|
|
5529
|
-
/* @__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, {}),
|
|
5530
5576
|
"\uC218\uC815\uD558\uAE30"
|
|
5531
5577
|
] })
|
|
5532
5578
|
] })
|
|
@@ -5535,9 +5581,9 @@ function GoalManageCardRead(props) {
|
|
|
5535
5581
|
}
|
|
5536
5582
|
|
|
5537
5583
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
5538
|
-
var
|
|
5584
|
+
var import_react39 = require("react");
|
|
5539
5585
|
var import_date_fns5 = require("date-fns");
|
|
5540
|
-
var
|
|
5586
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5541
5587
|
var initialValues = {
|
|
5542
5588
|
goal: "",
|
|
5543
5589
|
effect: "",
|
|
@@ -5548,8 +5594,8 @@ var dummyFn = () => {
|
|
|
5548
5594
|
};
|
|
5549
5595
|
function GoalManageCardEdit(props) {
|
|
5550
5596
|
const { defaultValues, errors } = props;
|
|
5551
|
-
const [values, setValues] = (0,
|
|
5552
|
-
const onChange = (0,
|
|
5597
|
+
const [values, setValues] = (0, import_react39.useState)(defaultValues || initialValues);
|
|
5598
|
+
const onChange = (0, import_react39.useCallback)(
|
|
5553
5599
|
(v) => {
|
|
5554
5600
|
var _a;
|
|
5555
5601
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -5557,20 +5603,20 @@ function GoalManageCardEdit(props) {
|
|
|
5557
5603
|
},
|
|
5558
5604
|
[props]
|
|
5559
5605
|
);
|
|
5560
|
-
const onClickInit = (0,
|
|
5606
|
+
const onClickInit = (0, import_react39.useCallback)(() => {
|
|
5561
5607
|
var _a;
|
|
5562
5608
|
setValues(initialValues);
|
|
5563
5609
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
5564
5610
|
}, [defaultValues, props]);
|
|
5565
|
-
const onClickSubmit = (0,
|
|
5611
|
+
const onClickSubmit = (0, import_react39.useCallback)(() => {
|
|
5566
5612
|
var _a;
|
|
5567
5613
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
5568
5614
|
}, [props, values]);
|
|
5569
|
-
return /* @__PURE__ */ (0,
|
|
5570
|
-
/* @__PURE__ */ (0,
|
|
5571
|
-
/* @__PURE__ */ (0,
|
|
5572
|
-
/* @__PURE__ */ (0,
|
|
5573
|
-
/* @__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)(
|
|
5574
5620
|
TextField.Root,
|
|
5575
5621
|
{
|
|
5576
5622
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -5581,11 +5627,11 @@ function GoalManageCardEdit(props) {
|
|
|
5581
5627
|
value: values.goal
|
|
5582
5628
|
}
|
|
5583
5629
|
),
|
|
5584
|
-
/* @__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 })
|
|
5585
5631
|
] }),
|
|
5586
|
-
/* @__PURE__ */ (0,
|
|
5587
|
-
/* @__PURE__ */ (0,
|
|
5588
|
-
/* @__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)(
|
|
5589
5635
|
TextArea,
|
|
5590
5636
|
{
|
|
5591
5637
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -5597,11 +5643,11 @@ function GoalManageCardEdit(props) {
|
|
|
5597
5643
|
value: values.effect
|
|
5598
5644
|
}
|
|
5599
5645
|
),
|
|
5600
|
-
/* @__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 })
|
|
5601
5647
|
] }),
|
|
5602
|
-
/* @__PURE__ */ (0,
|
|
5603
|
-
/* @__PURE__ */ (0,
|
|
5604
|
-
/* @__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)(
|
|
5605
5651
|
TextArea,
|
|
5606
5652
|
{
|
|
5607
5653
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -5615,11 +5661,11 @@ function GoalManageCardEdit(props) {
|
|
|
5615
5661
|
value: values.huddle
|
|
5616
5662
|
}
|
|
5617
5663
|
),
|
|
5618
|
-
/* @__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 })
|
|
5619
5665
|
] }),
|
|
5620
|
-
/* @__PURE__ */ (0,
|
|
5621
|
-
/* @__PURE__ */ (0,
|
|
5622
|
-
/* @__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)(
|
|
5623
5669
|
DatePickerButton,
|
|
5624
5670
|
{
|
|
5625
5671
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -5630,11 +5676,11 @@ function GoalManageCardEdit(props) {
|
|
|
5630
5676
|
selected: values.dueDate
|
|
5631
5677
|
}
|
|
5632
5678
|
),
|
|
5633
|
-
/* @__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 })
|
|
5634
5680
|
] })
|
|
5635
5681
|
] }),
|
|
5636
|
-
/* @__PURE__ */ (0,
|
|
5637
|
-
/* @__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)(
|
|
5638
5684
|
Button,
|
|
5639
5685
|
{
|
|
5640
5686
|
color: "gray",
|
|
@@ -5645,18 +5691,18 @@ function GoalManageCardEdit(props) {
|
|
|
5645
5691
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
5646
5692
|
}
|
|
5647
5693
|
),
|
|
5648
|
-
/* @__PURE__ */ (0,
|
|
5694
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
5649
5695
|
] })
|
|
5650
5696
|
] }) });
|
|
5651
5697
|
}
|
|
5652
5698
|
|
|
5653
5699
|
// src/app/platform/session-card.tsx
|
|
5654
|
-
var
|
|
5700
|
+
var import_react42 = require("react");
|
|
5655
5701
|
var import_date_fns6 = require("date-fns");
|
|
5656
5702
|
|
|
5657
5703
|
// src/app/platform/edit-coaching-time.tsx
|
|
5658
|
-
var
|
|
5659
|
-
var
|
|
5704
|
+
var import_react40 = require("react");
|
|
5705
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5660
5706
|
var getValueFromDefaultValue = (args) => {
|
|
5661
5707
|
return {
|
|
5662
5708
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -5676,14 +5722,14 @@ var getDateFromValue = (date, time) => {
|
|
|
5676
5722
|
};
|
|
5677
5723
|
function EditCoachingTime(props) {
|
|
5678
5724
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
5679
|
-
const [values, setValues] = (0,
|
|
5725
|
+
const [values, setValues] = (0, import_react40.useState)(() => {
|
|
5680
5726
|
return getValueFromDefaultValue({
|
|
5681
5727
|
startAt: defaultStartAt,
|
|
5682
5728
|
endAt: defaultEndAt
|
|
5683
5729
|
});
|
|
5684
5730
|
});
|
|
5685
|
-
const [timeError, setTimeError] = (0,
|
|
5686
|
-
const checkTimeError = (0,
|
|
5731
|
+
const [timeError, setTimeError] = (0, import_react40.useState)("");
|
|
5732
|
+
const checkTimeError = (0, import_react40.useCallback)(
|
|
5687
5733
|
(startTime, endTime) => {
|
|
5688
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." : "";
|
|
5689
5735
|
if (error) {
|
|
@@ -5694,7 +5740,7 @@ function EditCoachingTime(props) {
|
|
|
5694
5740
|
},
|
|
5695
5741
|
[]
|
|
5696
5742
|
);
|
|
5697
|
-
const onChangeStartTime = (0,
|
|
5743
|
+
const onChangeStartTime = (0, import_react40.useCallback)(
|
|
5698
5744
|
(v) => {
|
|
5699
5745
|
checkTimeError(v, values.endTime);
|
|
5700
5746
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -5703,7 +5749,7 @@ function EditCoachingTime(props) {
|
|
|
5703
5749
|
},
|
|
5704
5750
|
[checkTimeError, values.endTime]
|
|
5705
5751
|
);
|
|
5706
|
-
const onChangeEndTime = (0,
|
|
5752
|
+
const onChangeEndTime = (0, import_react40.useCallback)(
|
|
5707
5753
|
(v) => {
|
|
5708
5754
|
checkTimeError(values.startTime, v);
|
|
5709
5755
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -5712,12 +5758,12 @@ function EditCoachingTime(props) {
|
|
|
5712
5758
|
},
|
|
5713
5759
|
[checkTimeError, values.startTime]
|
|
5714
5760
|
);
|
|
5715
|
-
const onChangeDate = (0,
|
|
5761
|
+
const onChangeDate = (0, import_react40.useCallback)((date) => {
|
|
5716
5762
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
5717
5763
|
date
|
|
5718
5764
|
}));
|
|
5719
5765
|
}, []);
|
|
5720
|
-
const onClickSave = (0,
|
|
5766
|
+
const onClickSave = (0, import_react40.useCallback)(() => {
|
|
5721
5767
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
5722
5768
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
5723
5769
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -5726,10 +5772,10 @@ function EditCoachingTime(props) {
|
|
|
5726
5772
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
5727
5773
|
}
|
|
5728
5774
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
5729
|
-
return /* @__PURE__ */ (0,
|
|
5730
|
-
/* @__PURE__ */ (0,
|
|
5731
|
-
/* @__PURE__ */ (0,
|
|
5732
|
-
/* @__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)(
|
|
5733
5779
|
DatePickerButton,
|
|
5734
5780
|
{
|
|
5735
5781
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -5739,7 +5785,7 @@ function EditCoachingTime(props) {
|
|
|
5739
5785
|
}
|
|
5740
5786
|
)
|
|
5741
5787
|
] }),
|
|
5742
|
-
/* @__PURE__ */ (0,
|
|
5788
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
5743
5789
|
import_themes23.Grid,
|
|
5744
5790
|
{
|
|
5745
5791
|
align: "center",
|
|
@@ -5754,10 +5800,10 @@ function EditCoachingTime(props) {
|
|
|
5754
5800
|
mt: "5",
|
|
5755
5801
|
width: "100%",
|
|
5756
5802
|
children: [
|
|
5757
|
-
/* @__PURE__ */ (0,
|
|
5758
|
-
/* @__PURE__ */ (0,
|
|
5759
|
-
/* @__PURE__ */ (0,
|
|
5760
|
-
/* @__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)(
|
|
5761
5807
|
TimeSelect,
|
|
5762
5808
|
{
|
|
5763
5809
|
onValueChange: onChangeStartTime,
|
|
@@ -5765,8 +5811,8 @@ function EditCoachingTime(props) {
|
|
|
5765
5811
|
value: values.startTime
|
|
5766
5812
|
}
|
|
5767
5813
|
),
|
|
5768
|
-
/* @__PURE__ */ (0,
|
|
5769
|
-
/* @__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)(
|
|
5770
5816
|
TimeSelect,
|
|
5771
5817
|
{
|
|
5772
5818
|
onValueChange: onChangeEndTime,
|
|
@@ -5774,36 +5820,36 @@ function EditCoachingTime(props) {
|
|
|
5774
5820
|
value: values.endTime
|
|
5775
5821
|
}
|
|
5776
5822
|
),
|
|
5777
|
-
/* @__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 }) })
|
|
5778
5824
|
]
|
|
5779
5825
|
}
|
|
5780
5826
|
),
|
|
5781
|
-
/* @__PURE__ */ (0,
|
|
5782
|
-
/* @__PURE__ */ (0,
|
|
5783
|
-
/* @__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" }) })
|
|
5784
5830
|
] })
|
|
5785
5831
|
] }) });
|
|
5786
5832
|
}
|
|
5787
5833
|
|
|
5788
5834
|
// src/app/platform/edit-service-type.tsx
|
|
5789
|
-
var
|
|
5835
|
+
var import_react41 = require("react");
|
|
5790
5836
|
|
|
5791
5837
|
// src/app/platform/on-offline-radio-card.tsx
|
|
5792
5838
|
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
5793
|
-
var
|
|
5839
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
5794
5840
|
var SERVICE_TYPE = {
|
|
5795
5841
|
onlineCoaching: "onlineCoaching",
|
|
5796
5842
|
offlineCoaching: "offlineCoaching"
|
|
5797
5843
|
};
|
|
5798
5844
|
var breakpoint = "sm";
|
|
5799
5845
|
function HideSmallBox(props) {
|
|
5800
|
-
return /* @__PURE__ */ (0,
|
|
5846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
5801
5847
|
}
|
|
5802
5848
|
function OnOfflineRadioCard(props) {
|
|
5803
5849
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
5804
5850
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
5805
5851
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
5806
|
-
return /* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
5807
5853
|
RadioButtonCard.Root,
|
|
5808
5854
|
__spreadProps(__spreadValues({
|
|
5809
5855
|
RadioWrapper: Wrapper,
|
|
@@ -5812,13 +5858,13 @@ function OnOfflineRadioCard(props) {
|
|
|
5812
5858
|
justify
|
|
5813
5859
|
}, props), {
|
|
5814
5860
|
children: [
|
|
5815
|
-
/* @__PURE__ */ (0,
|
|
5816
|
-
/* @__PURE__ */ (0,
|
|
5817
|
-
/* @__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" })
|
|
5818
5864
|
] }) }),
|
|
5819
|
-
/* @__PURE__ */ (0,
|
|
5820
|
-
/* @__PURE__ */ (0,
|
|
5821
|
-
/* @__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" })
|
|
5822
5868
|
] }) })
|
|
5823
5869
|
]
|
|
5824
5870
|
})
|
|
@@ -5826,18 +5872,18 @@ function OnOfflineRadioCard(props) {
|
|
|
5826
5872
|
}
|
|
5827
5873
|
|
|
5828
5874
|
// src/app/platform/edit-service-type.tsx
|
|
5829
|
-
var
|
|
5875
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
5830
5876
|
function EditServiceType(props) {
|
|
5831
5877
|
const { defaultServiceType, onClickCancel } = props;
|
|
5832
|
-
const [sessionType, setSessionType] = (0,
|
|
5878
|
+
const [sessionType, setSessionType] = (0, import_react41.useState)(
|
|
5833
5879
|
defaultServiceType
|
|
5834
5880
|
);
|
|
5835
|
-
const onClickSave = (0,
|
|
5881
|
+
const onClickSave = (0, import_react41.useCallback)(() => {
|
|
5836
5882
|
var _a;
|
|
5837
5883
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
5838
5884
|
}, [props, sessionType]);
|
|
5839
|
-
return /* @__PURE__ */ (0,
|
|
5840
|
-
/* @__PURE__ */ (0,
|
|
5885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes6.Box, { children: [
|
|
5886
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
5841
5887
|
Typo,
|
|
5842
5888
|
{
|
|
5843
5889
|
as: "p",
|
|
@@ -5847,16 +5893,16 @@ function EditServiceType(props) {
|
|
|
5847
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"
|
|
5848
5894
|
}
|
|
5849
5895
|
),
|
|
5850
|
-
/* @__PURE__ */ (0,
|
|
5851
|
-
/* @__PURE__ */ (0,
|
|
5852
|
-
/* @__PURE__ */ (0,
|
|
5853
|
-
/* @__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" }) })
|
|
5854
5900
|
] })
|
|
5855
5901
|
] });
|
|
5856
5902
|
}
|
|
5857
5903
|
|
|
5858
5904
|
// src/app/platform/session-card.tsx
|
|
5859
|
-
var
|
|
5905
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
5860
5906
|
var preventDefault4 = (e) => {
|
|
5861
5907
|
e.preventDefault();
|
|
5862
5908
|
};
|
|
@@ -5886,33 +5932,33 @@ function SessionCard(props) {
|
|
|
5886
5932
|
"endAt",
|
|
5887
5933
|
"sessionType"
|
|
5888
5934
|
]);
|
|
5889
|
-
const renderEditButton = (0,
|
|
5890
|
-
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, {}) });
|
|
5891
5937
|
}, []);
|
|
5892
|
-
const sessionTimeStr = (0,
|
|
5938
|
+
const sessionTimeStr = (0, import_react42.useMemo)(() => {
|
|
5893
5939
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
5894
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")}`;
|
|
5895
5941
|
}, [startAt, endAt]);
|
|
5896
|
-
return /* @__PURE__ */ (0,
|
|
5897
|
-
/* @__PURE__ */ (0,
|
|
5898
|
-
/* @__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` }),
|
|
5899
5945
|
TitleExtra,
|
|
5900
|
-
error ? /* @__PURE__ */ (0,
|
|
5946
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
5901
5947
|
] }),
|
|
5902
|
-
/* @__PURE__ */ (0,
|
|
5903
|
-
/* @__PURE__ */ (0,
|
|
5904
|
-
/* @__PURE__ */ (0,
|
|
5905
|
-
/* @__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: [
|
|
5906
5952
|
sessionTimeStr,
|
|
5907
|
-
editable ? /* @__PURE__ */ (0,
|
|
5908
|
-
/* @__PURE__ */ (0,
|
|
5909
|
-
/* @__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)(
|
|
5910
5956
|
Dialog.Content,
|
|
5911
5957
|
{
|
|
5912
5958
|
onOpenAutoFocus: preventDefault4,
|
|
5913
5959
|
style: { overflow: "visible" },
|
|
5914
5960
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
5915
|
-
children: /* @__PURE__ */ (0,
|
|
5961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5916
5962
|
EditCoachingTime,
|
|
5917
5963
|
{
|
|
5918
5964
|
defaultEndAt: endAt,
|
|
@@ -5925,18 +5971,18 @@ function SessionCard(props) {
|
|
|
5925
5971
|
] }) : null
|
|
5926
5972
|
] })
|
|
5927
5973
|
] }),
|
|
5928
|
-
/* @__PURE__ */ (0,
|
|
5929
|
-
/* @__PURE__ */ (0,
|
|
5930
|
-
/* @__PURE__ */ (0,
|
|
5931
|
-
/* @__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: [
|
|
5932
5978
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
5933
|
-
editable ? /* @__PURE__ */ (0,
|
|
5934
|
-
/* @__PURE__ */ (0,
|
|
5935
|
-
/* @__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)(
|
|
5936
5982
|
Dialog.Content,
|
|
5937
5983
|
{
|
|
5938
5984
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
5939
|
-
children: /* @__PURE__ */ (0,
|
|
5985
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5940
5986
|
EditServiceType,
|
|
5941
5987
|
{
|
|
5942
5988
|
defaultServiceType: sessionType,
|
|
@@ -5948,33 +5994,33 @@ function SessionCard(props) {
|
|
|
5948
5994
|
] }) : null
|
|
5949
5995
|
] })
|
|
5950
5996
|
] }),
|
|
5951
|
-
/* @__PURE__ */ (0,
|
|
5997
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
5952
5998
|
] })
|
|
5953
5999
|
] })
|
|
5954
6000
|
] }) }));
|
|
5955
6001
|
}
|
|
5956
6002
|
|
|
5957
6003
|
// src/app/platform/coach-question-list.tsx
|
|
5958
|
-
var
|
|
6004
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
5959
6005
|
function QuestionItem({ question, answer }) {
|
|
5960
|
-
return /* @__PURE__ */ (0,
|
|
5961
|
-
/* @__PURE__ */ (0,
|
|
5962
|
-
/* @__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." }) })
|
|
5963
6009
|
] }, question);
|
|
5964
6010
|
}
|
|
5965
6011
|
function CoachQuestionList({
|
|
5966
6012
|
questions
|
|
5967
6013
|
}) {
|
|
5968
|
-
return /* @__PURE__ */ (0,
|
|
5969
|
-
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);
|
|
5970
6016
|
}) });
|
|
5971
6017
|
}
|
|
5972
6018
|
|
|
5973
6019
|
// src/app/platform/reservation-card.tsx
|
|
5974
|
-
var
|
|
6020
|
+
var import_react43 = require("react");
|
|
5975
6021
|
var import_date_fns7 = require("date-fns");
|
|
5976
6022
|
var import_locale2 = require("date-fns/locale");
|
|
5977
|
-
var
|
|
6023
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
5978
6024
|
function ReservationCard(props) {
|
|
5979
6025
|
const {
|
|
5980
6026
|
sessionNumber,
|
|
@@ -5989,29 +6035,29 @@ function ReservationCard(props) {
|
|
|
5989
6035
|
onClickCancel,
|
|
5990
6036
|
onClickCompleteSession
|
|
5991
6037
|
} = props;
|
|
5992
|
-
const [editValues, setEditValues] = (0,
|
|
6038
|
+
const [editValues, setEditValues] = (0, import_react43.useState)({
|
|
5993
6039
|
date: props.defaultTime,
|
|
5994
6040
|
type: props.defaultType
|
|
5995
6041
|
});
|
|
5996
6042
|
const date = readonly ? defaultTime : editValues.date;
|
|
5997
6043
|
const type = readonly ? defaultType : editValues.type;
|
|
5998
|
-
const onClickSave = (0,
|
|
6044
|
+
const onClickSave = (0, import_react43.useCallback)(() => {
|
|
5999
6045
|
var _a;
|
|
6000
6046
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
6001
6047
|
}, [editValues, props]);
|
|
6002
|
-
const onClickReset = (0,
|
|
6048
|
+
const onClickReset = (0, import_react43.useCallback)(() => {
|
|
6003
6049
|
setEditValues({
|
|
6004
6050
|
date: defaultTime,
|
|
6005
6051
|
type: defaultType
|
|
6006
6052
|
});
|
|
6007
6053
|
}, [defaultTime, defaultType]);
|
|
6008
|
-
const ActionButtons = (0,
|
|
6054
|
+
const ActionButtons = (0, import_react43.useMemo)(() => {
|
|
6009
6055
|
if (readonly) {
|
|
6010
|
-
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" });
|
|
6011
6057
|
}
|
|
6012
|
-
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, {}) });
|
|
6013
6059
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
6014
|
-
const onChangeDate = (0,
|
|
6060
|
+
const onChangeDate = (0, import_react43.useCallback)((newDate) => {
|
|
6015
6061
|
if (!newDate) return;
|
|
6016
6062
|
setEditValues((prev) => {
|
|
6017
6063
|
return __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6019,17 +6065,17 @@ function ReservationCard(props) {
|
|
|
6019
6065
|
});
|
|
6020
6066
|
});
|
|
6021
6067
|
}, []);
|
|
6022
|
-
const onChangeType = (0,
|
|
6068
|
+
const onChangeType = (0, import_react43.useCallback)((newType) => {
|
|
6023
6069
|
setEditValues((prev) => {
|
|
6024
6070
|
return __spreadProps(__spreadValues({}, prev), {
|
|
6025
6071
|
type: newType
|
|
6026
6072
|
});
|
|
6027
6073
|
});
|
|
6028
6074
|
}, []);
|
|
6029
|
-
const formatDate = (0,
|
|
6075
|
+
const formatDate = (0, import_react43.useCallback)((v) => {
|
|
6030
6076
|
return (0, import_date_fns7.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C(EEE) aa h:mm", { locale: import_locale2.ko });
|
|
6031
6077
|
}, []);
|
|
6032
|
-
(0,
|
|
6078
|
+
(0, import_react43.useEffect)(() => {
|
|
6033
6079
|
if (!minTime || !editValues.date || readonly) return;
|
|
6034
6080
|
if (editValues.date < minTime) {
|
|
6035
6081
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6040,7 +6086,7 @@ function ReservationCard(props) {
|
|
|
6040
6086
|
});
|
|
6041
6087
|
}
|
|
6042
6088
|
}, [editValues, minTime, readonly]);
|
|
6043
|
-
(0,
|
|
6089
|
+
(0, import_react43.useEffect)(() => {
|
|
6044
6090
|
if (!maxTime || !editValues.date || readonly) return;
|
|
6045
6091
|
if (editValues.date > maxTime) {
|
|
6046
6092
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6051,39 +6097,39 @@ function ReservationCard(props) {
|
|
|
6051
6097
|
});
|
|
6052
6098
|
}
|
|
6053
6099
|
}, [editValues, maxTime, readonly]);
|
|
6054
|
-
return /* @__PURE__ */ (0,
|
|
6100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6055
6101
|
Card,
|
|
6056
6102
|
{
|
|
6057
6103
|
error: Boolean(error),
|
|
6058
6104
|
size: "3",
|
|
6059
6105
|
style: { overflow: "visible", contain: "initial" },
|
|
6060
6106
|
children: [
|
|
6061
|
-
/* @__PURE__ */ (0,
|
|
6062
|
-
/* @__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)(
|
|
6063
6109
|
import_themes23.Grid,
|
|
6064
6110
|
{
|
|
6065
6111
|
align: "center",
|
|
6066
6112
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
6067
6113
|
gapY: "2",
|
|
6068
6114
|
children: [
|
|
6069
|
-
/* @__PURE__ */ (0,
|
|
6070
|
-
/* @__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: [
|
|
6071
6117
|
customerName || "-",
|
|
6072
6118
|
"\uB2D8 ",
|
|
6073
6119
|
sessionNumber || "-",
|
|
6074
6120
|
"\uD68C\uCC28 \uC138\uC158"
|
|
6075
6121
|
] }),
|
|
6076
|
-
/* @__PURE__ */ (0,
|
|
6122
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
6077
6123
|
] }),
|
|
6078
|
-
error ? /* @__PURE__ */ (0,
|
|
6124
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
6079
6125
|
]
|
|
6080
6126
|
}
|
|
6081
6127
|
),
|
|
6082
|
-
/* @__PURE__ */ (0,
|
|
6128
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
6083
6129
|
] }),
|
|
6084
|
-
/* @__PURE__ */ (0,
|
|
6085
|
-
/* @__PURE__ */ (0,
|
|
6086
|
-
/* @__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)(
|
|
6087
6133
|
DatePickerButton,
|
|
6088
6134
|
{
|
|
6089
6135
|
disabled: readonly,
|
|
@@ -6097,8 +6143,8 @@ function ReservationCard(props) {
|
|
|
6097
6143
|
size: "large"
|
|
6098
6144
|
}
|
|
6099
6145
|
),
|
|
6100
|
-
/* @__PURE__ */ (0,
|
|
6101
|
-
/* @__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)(
|
|
6102
6148
|
OnOfflineRadioCard,
|
|
6103
6149
|
{
|
|
6104
6150
|
disabled: readonly,
|
|
@@ -6107,8 +6153,8 @@ function ReservationCard(props) {
|
|
|
6107
6153
|
value: type
|
|
6108
6154
|
}
|
|
6109
6155
|
),
|
|
6110
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
6111
|
-
/* @__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)(
|
|
6112
6158
|
Button,
|
|
6113
6159
|
{
|
|
6114
6160
|
color: "gray",
|
|
@@ -6118,10 +6164,10 @@ function ReservationCard(props) {
|
|
|
6118
6164
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6119
6165
|
}
|
|
6120
6166
|
),
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6167
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6122
6168
|
] })
|
|
6123
6169
|
] }) }),
|
|
6124
|
-
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)(
|
|
6125
6171
|
import_themes6.Box,
|
|
6126
6172
|
{
|
|
6127
6173
|
mt: "5",
|
|
@@ -6129,14 +6175,14 @@ function ReservationCard(props) {
|
|
|
6129
6175
|
py: "4",
|
|
6130
6176
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
6131
6177
|
width: "100%",
|
|
6132
|
-
children: /* @__PURE__ */ (0,
|
|
6133
|
-
/* @__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: [
|
|
6134
6180
|
sessionNumber || "-",
|
|
6135
6181
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
6136
6182
|
] }),
|
|
6137
|
-
/* @__PURE__ */ (0,
|
|
6183
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
6138
6184
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
6139
|
-
/* @__PURE__ */ (0,
|
|
6185
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
6140
6186
|
] })
|
|
6141
6187
|
] })
|
|
6142
6188
|
}
|
|
@@ -6147,22 +6193,22 @@ function ReservationCard(props) {
|
|
|
6147
6193
|
}
|
|
6148
6194
|
|
|
6149
6195
|
// src/app/platform/session-review-simple-read.tsx
|
|
6150
|
-
var
|
|
6151
|
-
var
|
|
6196
|
+
var import_react44 = require("react");
|
|
6197
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
6152
6198
|
function SubTitleWrapper({
|
|
6153
6199
|
children,
|
|
6154
6200
|
title
|
|
6155
6201
|
}) {
|
|
6156
|
-
return /* @__PURE__ */ (0,
|
|
6157
|
-
/* @__PURE__ */ (0,
|
|
6158
|
-
/* @__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 })
|
|
6159
6205
|
] });
|
|
6160
6206
|
}
|
|
6161
6207
|
function SessionReviewSimpleRead({
|
|
6162
6208
|
helpfulness,
|
|
6163
6209
|
review
|
|
6164
6210
|
}) {
|
|
6165
|
-
const helpfulnessMeta = (0,
|
|
6211
|
+
const helpfulnessMeta = (0, import_react44.useMemo)(() => {
|
|
6166
6212
|
if (helpfulness) {
|
|
6167
6213
|
return {
|
|
6168
6214
|
text: "\uB124",
|
|
@@ -6180,22 +6226,22 @@ function SessionReviewSimpleRead({
|
|
|
6180
6226
|
color: "error"
|
|
6181
6227
|
};
|
|
6182
6228
|
}, [helpfulness]);
|
|
6183
|
-
return /* @__PURE__ */ (0,
|
|
6184
|
-
/* @__PURE__ */ (0,
|
|
6185
|
-
/* @__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." }) }) })
|
|
6186
6232
|
] }) });
|
|
6187
6233
|
}
|
|
6188
6234
|
|
|
6189
6235
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
6190
|
-
var
|
|
6236
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6191
6237
|
function SectionWrapper({
|
|
6192
6238
|
title,
|
|
6193
6239
|
children
|
|
6194
6240
|
}) {
|
|
6195
|
-
return /* @__PURE__ */ (0,
|
|
6196
|
-
/* @__PURE__ */ (0,
|
|
6197
|
-
/* @__PURE__ */ (0,
|
|
6198
|
-
/* @__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" })
|
|
6199
6245
|
] }),
|
|
6200
6246
|
children
|
|
6201
6247
|
] });
|
|
@@ -6205,22 +6251,22 @@ function SessionUserInfoDetail({
|
|
|
6205
6251
|
session,
|
|
6206
6252
|
onClickCopy
|
|
6207
6253
|
}) {
|
|
6208
|
-
return /* @__PURE__ */ (0,
|
|
6209
|
-
/* @__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(
|
|
6210
6256
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
6211
6257
|
) }) }),
|
|
6212
|
-
/* @__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(
|
|
6213
6259
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
6214
6260
|
) }) })
|
|
6215
6261
|
] });
|
|
6216
6262
|
}
|
|
6217
6263
|
|
|
6218
6264
|
// src/app/platform/report-card.tsx
|
|
6219
|
-
var
|
|
6220
|
-
var
|
|
6265
|
+
var import_react45 = require("react");
|
|
6266
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6221
6267
|
function ReportCard(props) {
|
|
6222
6268
|
const { title, file, status, subtitle } = props;
|
|
6223
|
-
const onClickDownload = (0,
|
|
6269
|
+
const onClickDownload = (0, import_react45.useCallback)(() => {
|
|
6224
6270
|
if (!file) return;
|
|
6225
6271
|
const { url, fileName } = file;
|
|
6226
6272
|
const link = document.createElement("a");
|
|
@@ -6232,24 +6278,24 @@ function ReportCard(props) {
|
|
|
6232
6278
|
document.body.removeChild(link);
|
|
6233
6279
|
}, [file]);
|
|
6234
6280
|
if (status) {
|
|
6235
|
-
return /* @__PURE__ */ (0,
|
|
6236
|
-
/* @__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 }),
|
|
6237
6283
|
status
|
|
6238
6284
|
] }) });
|
|
6239
6285
|
}
|
|
6240
|
-
return /* @__PURE__ */ (0,
|
|
6286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
6241
6287
|
import_themes22.Flex,
|
|
6242
6288
|
{
|
|
6243
6289
|
direction: { initial: "column", xs: "row" },
|
|
6244
6290
|
gapY: "2",
|
|
6245
6291
|
justify: "between",
|
|
6246
6292
|
children: [
|
|
6247
|
-
/* @__PURE__ */ (0,
|
|
6248
|
-
/* @__PURE__ */ (0,
|
|
6249
|
-
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
|
|
6250
6296
|
] }),
|
|
6251
|
-
/* @__PURE__ */ (0,
|
|
6252
|
-
/* @__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, {}),
|
|
6253
6299
|
file == null ? void 0 : file.buttonName
|
|
6254
6300
|
] }) }, file == null ? void 0 : file.url)
|
|
6255
6301
|
]
|
|
@@ -6258,9 +6304,9 @@ function ReportCard(props) {
|
|
|
6258
6304
|
}
|
|
6259
6305
|
|
|
6260
6306
|
// src/app/platform/contents-card.tsx
|
|
6261
|
-
var
|
|
6262
|
-
var
|
|
6263
|
-
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)(
|
|
6264
6310
|
({
|
|
6265
6311
|
title,
|
|
6266
6312
|
description,
|
|
@@ -6270,7 +6316,7 @@ var ContentsCard = (0, import_react45.forwardRef)(
|
|
|
6270
6316
|
onClickCard,
|
|
6271
6317
|
isLoading = false
|
|
6272
6318
|
}, ref) => {
|
|
6273
|
-
return /* @__PURE__ */ (0,
|
|
6319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
6274
6320
|
Card,
|
|
6275
6321
|
{
|
|
6276
6322
|
onClick: onClickCard,
|
|
@@ -6283,7 +6329,7 @@ var ContentsCard = (0, import_react45.forwardRef)(
|
|
|
6283
6329
|
maxHeight: "450px"
|
|
6284
6330
|
},
|
|
6285
6331
|
children: [
|
|
6286
|
-
/* @__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)(
|
|
6287
6333
|
import_themes6.Box,
|
|
6288
6334
|
{
|
|
6289
6335
|
height: "210px",
|
|
@@ -6295,12 +6341,12 @@ var ContentsCard = (0, import_react45.forwardRef)(
|
|
|
6295
6341
|
width: "100%"
|
|
6296
6342
|
}
|
|
6297
6343
|
) }) }),
|
|
6298
|
-
/* @__PURE__ */ (0,
|
|
6299
|
-
/* @__PURE__ */ (0,
|
|
6300
|
-
/* @__PURE__ */ (0,
|
|
6301
|
-
/* @__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 }) })
|
|
6302
6348
|
] }),
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6349
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
6304
6350
|
import_themes23.Grid,
|
|
6305
6351
|
{
|
|
6306
6352
|
align: "center",
|
|
@@ -6310,10 +6356,10 @@ var ContentsCard = (0, import_react45.forwardRef)(
|
|
|
6310
6356
|
style: { marginTop: "auto" },
|
|
6311
6357
|
width: "100%",
|
|
6312
6358
|
children: [
|
|
6313
|
-
/* @__PURE__ */ (0,
|
|
6314
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
6315
|
-
/* @__PURE__ */ (0,
|
|
6316
|
-
/* @__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)(
|
|
6317
6363
|
DropdownMenu.Item,
|
|
6318
6364
|
{
|
|
6319
6365
|
onClick: (e) => {
|
|
@@ -6337,7 +6383,7 @@ var ContentsCard = (0, import_react45.forwardRef)(
|
|
|
6337
6383
|
ContentsCard.displayName = "ContentsCard";
|
|
6338
6384
|
|
|
6339
6385
|
// src/app/platform/curriculum-card.tsx
|
|
6340
|
-
var
|
|
6386
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6341
6387
|
function CurriculumCard(props) {
|
|
6342
6388
|
const {
|
|
6343
6389
|
title,
|
|
@@ -6348,7 +6394,7 @@ function CurriculumCard(props) {
|
|
|
6348
6394
|
bgColor,
|
|
6349
6395
|
onClick
|
|
6350
6396
|
} = props;
|
|
6351
|
-
return /* @__PURE__ */ (0,
|
|
6397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
6352
6398
|
import_themes23.Grid,
|
|
6353
6399
|
{
|
|
6354
6400
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -6357,7 +6403,7 @@ function CurriculumCard(props) {
|
|
|
6357
6403
|
onClick,
|
|
6358
6404
|
style: { cursor: "pointer" },
|
|
6359
6405
|
children: [
|
|
6360
|
-
/* @__PURE__ */ (0,
|
|
6406
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6361
6407
|
import_themes6.Box,
|
|
6362
6408
|
{
|
|
6363
6409
|
height: "165px",
|
|
@@ -6372,32 +6418,32 @@ function CurriculumCard(props) {
|
|
|
6372
6418
|
backgroundAttachment: "local"
|
|
6373
6419
|
},
|
|
6374
6420
|
width: "100%",
|
|
6375
|
-
children: /* @__PURE__ */ (0,
|
|
6421
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
6376
6422
|
}
|
|
6377
6423
|
),
|
|
6378
|
-
/* @__PURE__ */ (0,
|
|
6379
|
-
/* @__PURE__ */ (0,
|
|
6380
|
-
/* @__PURE__ */ (0,
|
|
6381
|
-
/* @__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)(
|
|
6382
6428
|
Badge,
|
|
6383
6429
|
{
|
|
6384
6430
|
size: "medium",
|
|
6385
6431
|
style: { justifySelf: "flex-start" },
|
|
6386
6432
|
variant: "outline",
|
|
6387
|
-
children: /* @__PURE__ */ (0,
|
|
6388
|
-
/* @__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, {}),
|
|
6389
6435
|
runningTime
|
|
6390
6436
|
] })
|
|
6391
6437
|
}
|
|
6392
6438
|
)
|
|
6393
6439
|
] }),
|
|
6394
|
-
/* @__PURE__ */ (0,
|
|
6395
|
-
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);
|
|
6396
6442
|
}) }) }),
|
|
6397
|
-
/* @__PURE__ */ (0,
|
|
6398
|
-
/* @__PURE__ */ (0,
|
|
6399
|
-
/* @__PURE__ */ (0,
|
|
6400
|
-
/* @__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" })
|
|
6401
6447
|
] })
|
|
6402
6448
|
] })
|
|
6403
6449
|
]
|
|
@@ -6517,6 +6563,7 @@ function CurriculumCard(props) {
|
|
|
6517
6563
|
LearningPost,
|
|
6518
6564
|
Link,
|
|
6519
6565
|
Link2Icon,
|
|
6566
|
+
List,
|
|
6520
6567
|
MagnifyingGlassIcon,
|
|
6521
6568
|
MicIcon,
|
|
6522
6569
|
MixerHorizontalIcon,
|
|
@@ -6593,6 +6640,7 @@ function CurriculumCard(props) {
|
|
|
6593
6640
|
toast,
|
|
6594
6641
|
uiProps,
|
|
6595
6642
|
useCurriculumContext,
|
|
6643
|
+
useList,
|
|
6596
6644
|
usePortalContainer,
|
|
6597
6645
|
useThemeContext
|
|
6598
6646
|
});
|