@tipp/ui 2.3.16 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +435 -382
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +101 -98
- package/dist/app/platform/coach-question-list.cjs +78 -34
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +33 -32
- package/dist/app/platform/contents-card.cjs +110 -66
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +33 -32
- package/dist/app/platform/curriculum-card.cjs +60 -16
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +7 -6
- package/dist/app/platform/edit-coaching-time.cjs +182 -129
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +77 -74
- package/dist/app/platform/edit-service-type.cjs +170 -117
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +78 -75
- package/dist/app/platform/goal-manage-card-edit.cjs +181 -128
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +77 -74
- package/dist/app/platform/goal-manage-card-read.cjs +108 -64
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +33 -32
- package/dist/app/platform/on-offline-radio-card.cjs +220 -167
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +77 -74
- package/dist/app/platform/report-card.cjs +81 -37
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +33 -32
- package/dist/app/platform/reservation-card.cjs +201 -148
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +78 -75
- package/dist/app/platform/session-card.cjs +234 -181
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +80 -77
- package/dist/app/platform/session-review-simple-read.cjs +79 -35
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +112 -68
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -35
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +89 -45
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +92 -48
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +78 -34
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +33 -32
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +88 -44
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +33 -32
- package/dist/app/platform/userInfos/utils.cjs +80 -36
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +32 -31
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +103 -59
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +64 -63
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.cjs +59 -15
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +5 -4
- package/dist/chunk-2CY3V3B4.js +69 -0
- package/dist/chunk-2CY3V3B4.js.map +1 -0
- package/dist/chunk-2EBAEQXE.js +87 -0
- package/dist/chunk-2EBAEQXE.js.map +1 -0
- package/dist/chunk-2ISIAPFS.js +113 -0
- package/dist/chunk-2ISIAPFS.js.map +1 -0
- package/dist/chunk-2O2CKXEZ.js +69 -0
- package/dist/chunk-2O2CKXEZ.js.map +1 -0
- package/dist/chunk-2ROIJPZE.js +98 -0
- package/dist/chunk-2ROIJPZE.js.map +1 -0
- package/dist/chunk-2VFMVVWT.js +63 -0
- package/dist/chunk-2VFMVVWT.js.map +1 -0
- package/dist/chunk-2XNMU67K.js +69 -0
- package/dist/chunk-2XNMU67K.js.map +1 -0
- package/dist/chunk-2YBJBKBB.js +82 -0
- package/dist/chunk-2YBJBKBB.js.map +1 -0
- package/dist/chunk-33TIGUGC.js +54 -0
- package/dist/chunk-33TIGUGC.js.map +1 -0
- package/dist/chunk-367ZYIOP.js +89 -0
- package/dist/chunk-367ZYIOP.js.map +1 -0
- package/dist/chunk-3A45CD76.js +196 -0
- package/dist/chunk-3A45CD76.js.map +1 -0
- package/dist/chunk-3A56IWTP.js +87 -0
- package/dist/chunk-3A56IWTP.js.map +1 -0
- package/dist/chunk-3FO4SXLV.js +89 -0
- package/dist/chunk-3FO4SXLV.js.map +1 -0
- package/dist/chunk-3FVLOOP5.js +29 -0
- package/dist/chunk-3FVLOOP5.js.map +1 -0
- package/dist/chunk-3HXEPDZB.js +100 -0
- package/dist/chunk-3HXEPDZB.js.map +1 -0
- package/dist/chunk-3J4UWGLD.js +98 -0
- package/dist/chunk-3J4UWGLD.js.map +1 -0
- package/dist/chunk-3LTTZSUP.js +49 -0
- package/dist/chunk-3LTTZSUP.js.map +1 -0
- package/dist/chunk-433LEYGO.js +87 -0
- package/dist/chunk-433LEYGO.js.map +1 -0
- package/dist/chunk-43ZKDWEH.js +29 -0
- package/dist/chunk-43ZKDWEH.js.map +1 -0
- package/dist/chunk-47HJ6LKL.js +196 -0
- package/dist/chunk-47HJ6LKL.js.map +1 -0
- package/dist/chunk-4DCGE5IL.js +89 -0
- package/dist/chunk-4DCGE5IL.js.map +1 -0
- package/dist/chunk-4JYSUW7I.js +151 -0
- package/dist/chunk-4JYSUW7I.js.map +1 -0
- package/dist/chunk-4OWD5ASM.js +51 -0
- package/dist/chunk-4OWD5ASM.js.map +1 -0
- package/dist/chunk-4PYFMD24.js +51 -0
- package/dist/chunk-4PYFMD24.js.map +1 -0
- package/dist/chunk-4QHXYLE4.js +151 -0
- package/dist/chunk-4QHXYLE4.js.map +1 -0
- package/dist/chunk-5PMDBUEZ.js +69 -0
- package/dist/chunk-5PMDBUEZ.js.map +1 -0
- package/dist/chunk-5R7XRWRW.js +155 -0
- package/dist/chunk-5R7XRWRW.js.map +1 -0
- package/dist/chunk-5TPNUG3Y.js +63 -0
- package/dist/chunk-5TPNUG3Y.js.map +1 -0
- package/dist/chunk-5TXKQPXT.js +49 -0
- package/dist/chunk-5TXKQPXT.js.map +1 -0
- package/dist/chunk-5V6MQUTB.js +49 -0
- package/dist/chunk-5V6MQUTB.js.map +1 -0
- package/dist/chunk-5ZA5HGOV.js +76 -0
- package/dist/chunk-5ZA5HGOV.js.map +1 -0
- package/dist/chunk-64JB2NO2.js +51 -0
- package/dist/chunk-64JB2NO2.js.map +1 -0
- package/dist/chunk-66YQSIUZ.js +107 -0
- package/dist/chunk-66YQSIUZ.js.map +1 -0
- package/dist/chunk-673WEFQW.js +89 -0
- package/dist/chunk-673WEFQW.js.map +1 -0
- package/dist/chunk-6AN7BUCG.js +69 -0
- package/dist/chunk-6AN7BUCG.js.map +1 -0
- package/dist/chunk-6DSXTUM4.js +63 -0
- package/dist/chunk-6DSXTUM4.js.map +1 -0
- package/dist/chunk-6F63WEDJ.js +63 -0
- package/dist/chunk-6F63WEDJ.js.map +1 -0
- package/dist/chunk-6F7SSDDP.js +89 -0
- package/dist/chunk-6F7SSDDP.js.map +1 -0
- package/dist/chunk-6FAIGS23.js +109 -0
- package/dist/chunk-6FAIGS23.js.map +1 -0
- package/dist/chunk-6JDYIMEZ.js +89 -0
- package/dist/chunk-6JDYIMEZ.js.map +1 -0
- package/dist/chunk-6KBRQPRR.js +69 -0
- package/dist/chunk-6KBRQPRR.js.map +1 -0
- package/dist/chunk-6RW7P4WL.js +101 -0
- package/dist/chunk-6RW7P4WL.js.map +1 -0
- package/dist/chunk-6UCGUA3B.js +30 -0
- package/dist/chunk-6UCGUA3B.js.map +1 -0
- package/dist/chunk-7BTOFCXZ.js +43 -0
- package/dist/chunk-7BTOFCXZ.js.map +1 -0
- package/dist/chunk-7I7PZF5L.js +37 -0
- package/dist/chunk-7I7PZF5L.js.map +1 -0
- package/dist/chunk-7IFK5DP5.js +69 -0
- package/dist/chunk-7IFK5DP5.js.map +1 -0
- package/dist/chunk-7L2LYGFN.js +63 -0
- package/dist/chunk-7L2LYGFN.js.map +1 -0
- package/dist/chunk-7L4G2RWC.js +87 -0
- package/dist/chunk-7L4G2RWC.js.map +1 -0
- package/dist/chunk-7LENR3ZR.js +89 -0
- package/dist/chunk-7LENR3ZR.js.map +1 -0
- package/dist/chunk-7QDV6YRH.js +196 -0
- package/dist/chunk-7QDV6YRH.js.map +1 -0
- package/dist/chunk-7RCPFSEJ.js +196 -0
- package/dist/chunk-7RCPFSEJ.js.map +1 -0
- package/dist/chunk-7VFY7CAB.js +51 -0
- package/dist/chunk-7VFY7CAB.js.map +1 -0
- package/dist/chunk-7XG4CK7Y.js +89 -0
- package/dist/chunk-7XG4CK7Y.js.map +1 -0
- package/dist/chunk-7ZQE47OG.js +37 -0
- package/dist/chunk-7ZQE47OG.js.map +1 -0
- package/dist/chunk-A5VFSD3T.js +129 -0
- package/dist/chunk-A5VFSD3T.js.map +1 -0
- package/dist/chunk-AE7SVVFB.js +98 -0
- package/dist/chunk-AE7SVVFB.js.map +1 -0
- package/dist/chunk-AOUSSOPS.js +101 -0
- package/dist/chunk-AOUSSOPS.js.map +1 -0
- package/dist/chunk-ASA3ASPM.js +196 -0
- package/dist/chunk-ASA3ASPM.js.map +1 -0
- package/dist/chunk-ATVRBFI6.js +151 -0
- package/dist/chunk-ATVRBFI6.js.map +1 -0
- package/dist/chunk-AVXNS5EF.js +43 -0
- package/dist/chunk-AVXNS5EF.js.map +1 -0
- package/dist/chunk-AZ2ZKABM.js +70 -0
- package/dist/chunk-AZ2ZKABM.js.map +1 -0
- package/dist/chunk-AZXSA373.js +43 -0
- package/dist/chunk-AZXSA373.js.map +1 -0
- package/dist/chunk-B554VE2V.js +69 -0
- package/dist/chunk-B554VE2V.js.map +1 -0
- package/dist/chunk-B5U2JBLX.js +87 -0
- package/dist/chunk-B5U2JBLX.js.map +1 -0
- package/dist/chunk-BDJUL3JV.js +50 -0
- package/dist/chunk-BDJUL3JV.js.map +1 -0
- package/dist/chunk-BI5GANUG.js +75 -0
- package/dist/chunk-BI5GANUG.js.map +1 -0
- package/dist/chunk-BJKYVO2J.js +70 -0
- package/dist/chunk-BJKYVO2J.js.map +1 -0
- package/dist/chunk-BV3ZL4VC.js +196 -0
- package/dist/chunk-BV3ZL4VC.js.map +1 -0
- package/dist/chunk-BWWSZLTV.js +43 -0
- package/dist/chunk-BWWSZLTV.js.map +1 -0
- package/dist/chunk-C5MM3PUD.js +89 -0
- package/dist/chunk-C5MM3PUD.js.map +1 -0
- package/dist/chunk-C5YDIFWN.js +129 -0
- package/dist/chunk-C5YDIFWN.js.map +1 -0
- package/dist/chunk-C6GXUQMB.js +196 -0
- package/dist/chunk-C6GXUQMB.js.map +1 -0
- package/dist/chunk-C6LHM344.js +151 -0
- package/dist/chunk-C6LHM344.js.map +1 -0
- package/dist/chunk-CC4LSJRN.js +144 -0
- package/dist/chunk-CC4LSJRN.js.map +1 -0
- package/dist/chunk-CGSZSM7C.js +89 -0
- package/dist/chunk-CGSZSM7C.js.map +1 -0
- package/dist/chunk-CIQ7ELE6.js +151 -0
- package/dist/chunk-CIQ7ELE6.js.map +1 -0
- package/dist/chunk-CIUVO5EU.js +63 -0
- package/dist/chunk-CIUVO5EU.js.map +1 -0
- package/dist/chunk-CLVBL2WX.js +37 -0
- package/dist/chunk-CLVBL2WX.js.map +1 -0
- package/dist/chunk-CNW3YEAK.js +43 -0
- package/dist/chunk-CNW3YEAK.js.map +1 -0
- package/dist/chunk-CSLHE7O6.js +196 -0
- package/dist/chunk-CSLHE7O6.js.map +1 -0
- package/dist/chunk-CTCLKPUM.js +50 -0
- package/dist/chunk-CTCLKPUM.js.map +1 -0
- package/dist/chunk-CWN3GVAR.js +69 -0
- package/dist/chunk-CWN3GVAR.js.map +1 -0
- package/dist/chunk-D7UF2EFC.js +151 -0
- package/dist/chunk-D7UF2EFC.js.map +1 -0
- package/dist/chunk-DCYZ6P5U.js +69 -0
- package/dist/chunk-DCYZ6P5U.js.map +1 -0
- package/dist/chunk-DEAVEZQM.js +1 -0
- package/dist/chunk-DEAVEZQM.js.map +1 -0
- package/dist/chunk-DETEQXCO.js +98 -0
- package/dist/chunk-DETEQXCO.js.map +1 -0
- package/dist/chunk-DINM4XGN.js +98 -0
- package/dist/chunk-DINM4XGN.js.map +1 -0
- package/dist/chunk-DIXAKAOM.js +196 -0
- package/dist/chunk-DIXAKAOM.js.map +1 -0
- package/dist/chunk-DXHCZ3GI.js +69 -0
- package/dist/chunk-DXHCZ3GI.js.map +1 -0
- package/dist/chunk-DZN6YSGV.js +49 -0
- package/dist/chunk-DZN6YSGV.js.map +1 -0
- package/dist/chunk-E3K4OMCC.js +101 -0
- package/dist/chunk-E3K4OMCC.js.map +1 -0
- package/dist/chunk-EKMOO3DM.js +98 -0
- package/dist/chunk-EKMOO3DM.js.map +1 -0
- package/dist/chunk-ENVZEWF6.js +98 -0
- package/dist/chunk-ENVZEWF6.js.map +1 -0
- package/dist/chunk-F4FDZOXM.js +63 -0
- package/dist/chunk-F4FDZOXM.js.map +1 -0
- package/dist/chunk-FSJP6HQY.js +49 -0
- package/dist/chunk-FSJP6HQY.js.map +1 -0
- package/dist/chunk-FVA7DTNU.js +151 -0
- package/dist/chunk-FVA7DTNU.js.map +1 -0
- package/dist/chunk-FVAZZ46M.js +69 -0
- package/dist/chunk-FVAZZ46M.js.map +1 -0
- package/dist/chunk-FVNNXMCQ.js +43 -0
- package/dist/chunk-FVNNXMCQ.js.map +1 -0
- package/dist/chunk-FYF4AUTB.js +29 -0
- package/dist/chunk-FYF4AUTB.js.map +1 -0
- package/dist/chunk-GGPI6PXW.js +29 -0
- package/dist/chunk-GGPI6PXW.js.map +1 -0
- package/dist/chunk-GKOAGSC6.js +69 -0
- package/dist/chunk-GKOAGSC6.js.map +1 -0
- package/dist/chunk-GLRPHCDU.js +196 -0
- package/dist/chunk-GLRPHCDU.js.map +1 -0
- package/dist/chunk-GRENUZZJ.js +118 -0
- package/dist/chunk-GRENUZZJ.js.map +1 -0
- package/dist/chunk-GVXAEMU7.js +37 -0
- package/dist/chunk-GVXAEMU7.js.map +1 -0
- package/dist/chunk-GXG26SHU.js +101 -0
- package/dist/chunk-GXG26SHU.js.map +1 -0
- package/dist/chunk-H6UISOMV.js +50 -0
- package/dist/chunk-H6UISOMV.js.map +1 -0
- package/dist/chunk-HN7RU3Q2.js +49 -0
- package/dist/chunk-HN7RU3Q2.js.map +1 -0
- package/dist/chunk-HWT72ESD.js +37 -0
- package/dist/chunk-HWT72ESD.js.map +1 -0
- package/dist/chunk-HZ5LNRVL.js +101 -0
- package/dist/chunk-HZ5LNRVL.js.map +1 -0
- package/dist/chunk-HZXF2XCN.js +196 -0
- package/dist/chunk-HZXF2XCN.js.map +1 -0
- package/dist/chunk-I25D6CHU.js +50 -0
- package/dist/chunk-I25D6CHU.js.map +1 -0
- package/dist/chunk-IF4Q5NV4.js +129 -0
- package/dist/chunk-IF4Q5NV4.js.map +1 -0
- package/dist/chunk-IYVNZW3B.js +196 -0
- package/dist/chunk-IYVNZW3B.js.map +1 -0
- package/dist/chunk-IZDZTVFJ.js +218 -0
- package/dist/chunk-IZDZTVFJ.js.map +1 -0
- package/dist/chunk-J2PWMTSF.js +69 -0
- package/dist/chunk-J2PWMTSF.js.map +1 -0
- package/dist/chunk-J6D5FMYR.js +75 -0
- package/dist/chunk-J6D5FMYR.js.map +1 -0
- package/dist/chunk-JAH4J4JH.js +87 -0
- package/dist/chunk-JAH4J4JH.js.map +1 -0
- package/dist/chunk-JFJ3N4V5.js +37 -0
- package/dist/chunk-JFJ3N4V5.js.map +1 -0
- package/dist/chunk-JGM5HN2L.js +69 -0
- package/dist/chunk-JGM5HN2L.js.map +1 -0
- package/dist/chunk-JJRJJOA7.js +89 -0
- package/dist/chunk-JJRJJOA7.js.map +1 -0
- package/dist/chunk-K2NRH6DC.js +69 -0
- package/dist/chunk-K2NRH6DC.js.map +1 -0
- package/dist/chunk-KIQLFTMO.js +196 -0
- package/dist/chunk-KIQLFTMO.js.map +1 -0
- package/dist/chunk-KJC6WEFI.js +75 -0
- package/dist/chunk-KJC6WEFI.js.map +1 -0
- package/dist/chunk-KKL4KSVD.js +196 -0
- package/dist/chunk-KKL4KSVD.js.map +1 -0
- package/dist/chunk-KKURA5QN.js +196 -0
- package/dist/chunk-KKURA5QN.js.map +1 -0
- package/dist/chunk-KM74N3OC.js +69 -0
- package/dist/chunk-KM74N3OC.js.map +1 -0
- package/dist/chunk-KMVSJT6Y.js +101 -0
- package/dist/chunk-KMVSJT6Y.js.map +1 -0
- package/dist/chunk-KUIQY5BF.js +196 -0
- package/dist/chunk-KUIQY5BF.js.map +1 -0
- package/dist/chunk-KUX6JRHA.js +29 -0
- package/dist/chunk-KUX6JRHA.js.map +1 -0
- package/dist/chunk-LEIPUJCQ.js +75 -0
- package/dist/chunk-LEIPUJCQ.js.map +1 -0
- package/dist/chunk-LIL4GUDU.js +51 -0
- package/dist/chunk-LIL4GUDU.js.map +1 -0
- package/dist/chunk-LIV5LHHZ.js +29 -0
- package/dist/chunk-LIV5LHHZ.js.map +1 -0
- package/dist/chunk-LJO2266G.js +64 -0
- package/dist/chunk-LJO2266G.js.map +1 -0
- package/dist/chunk-LPOX4NKE.js +29 -0
- package/dist/chunk-LPOX4NKE.js.map +1 -0
- package/dist/chunk-LT5C6QT7.js +29 -0
- package/dist/chunk-LT5C6QT7.js.map +1 -0
- package/dist/chunk-M2DLW32Z.js +77 -0
- package/dist/chunk-M2DLW32Z.js.map +1 -0
- package/dist/chunk-MA7NROB2.js +101 -0
- package/dist/chunk-MA7NROB2.js.map +1 -0
- package/dist/chunk-MIFCA3C4.js +43 -0
- package/dist/chunk-MIFCA3C4.js.map +1 -0
- package/dist/chunk-MKPHOH6Y.js +151 -0
- package/dist/chunk-MKPHOH6Y.js.map +1 -0
- package/dist/chunk-MV5LFNUD.js +113 -0
- package/dist/chunk-MV5LFNUD.js.map +1 -0
- package/dist/chunk-MXMJQTGJ.js +49 -0
- package/dist/chunk-MXMJQTGJ.js.map +1 -0
- package/dist/chunk-MZ5HA7UD.js +51 -0
- package/dist/chunk-MZ5HA7UD.js.map +1 -0
- package/dist/chunk-N3CYLSGV.js +69 -0
- package/dist/chunk-N3CYLSGV.js.map +1 -0
- package/dist/chunk-N662YJXY.js +69 -0
- package/dist/chunk-N662YJXY.js.map +1 -0
- package/dist/chunk-N6LOS7L5.js +89 -0
- package/dist/chunk-N6LOS7L5.js.map +1 -0
- package/dist/chunk-NAPAD66S.js +87 -0
- package/dist/chunk-NAPAD66S.js.map +1 -0
- package/dist/chunk-NCCAFJJR.js +83 -0
- package/dist/chunk-NCCAFJJR.js.map +1 -0
- package/dist/chunk-NFI7WDJS.js +50 -0
- package/dist/chunk-NFI7WDJS.js.map +1 -0
- package/dist/chunk-NKJNVAAZ.js +98 -0
- package/dist/chunk-NKJNVAAZ.js.map +1 -0
- package/dist/chunk-NSDB3FXC.js +145 -0
- package/dist/chunk-NSDB3FXC.js.map +1 -0
- package/dist/chunk-NTJLECYY.js +37 -0
- package/dist/chunk-NTJLECYY.js.map +1 -0
- package/dist/chunk-NTWHDYJV.js +89 -0
- package/dist/chunk-NTWHDYJV.js.map +1 -0
- package/dist/chunk-NVQSH733.js +51 -0
- package/dist/chunk-NVQSH733.js.map +1 -0
- package/dist/chunk-OD3RHKDX.js +69 -0
- package/dist/chunk-OD3RHKDX.js.map +1 -0
- package/dist/chunk-ODHH7CFR.js +196 -0
- package/dist/chunk-ODHH7CFR.js.map +1 -0
- package/dist/chunk-ODWBZCJ3.js +69 -0
- package/dist/chunk-ODWBZCJ3.js.map +1 -0
- package/dist/chunk-OILH5J7Q.js +101 -0
- package/dist/chunk-OILH5J7Q.js.map +1 -0
- package/dist/chunk-OITL4AZ5.js +29 -0
- package/dist/chunk-OITL4AZ5.js.map +1 -0
- package/dist/chunk-OX5XYAZM.js +37 -0
- package/dist/chunk-OX5XYAZM.js.map +1 -0
- package/dist/chunk-OXH6M7PN.js +113 -0
- package/dist/chunk-OXH6M7PN.js.map +1 -0
- package/dist/chunk-P76FTCUF.js +64 -0
- package/dist/chunk-P76FTCUF.js.map +1 -0
- package/dist/chunk-PAS4QBXU.js +89 -0
- package/dist/chunk-PAS4QBXU.js.map +1 -0
- package/dist/chunk-PEFP2QUH.js +76 -0
- package/dist/chunk-PEFP2QUH.js.map +1 -0
- package/dist/chunk-PF3LVPOZ.js +87 -0
- package/dist/chunk-PF3LVPOZ.js.map +1 -0
- package/dist/chunk-PTTZYXYN.js +112 -0
- package/dist/chunk-PTTZYXYN.js.map +1 -0
- package/dist/chunk-PUNFTQ4J.js +51 -0
- package/dist/chunk-PUNFTQ4J.js.map +1 -0
- package/dist/chunk-PWF22OOK.js +64 -0
- package/dist/chunk-PWF22OOK.js.map +1 -0
- package/dist/chunk-PWYQHCEU.js +151 -0
- package/dist/chunk-PWYQHCEU.js.map +1 -0
- package/dist/chunk-Q7AMZ7ES.js +70 -0
- package/dist/chunk-Q7AMZ7ES.js.map +1 -0
- package/dist/chunk-QAX3474A.js +98 -0
- package/dist/chunk-QAX3474A.js.map +1 -0
- package/dist/chunk-QBX3N5H3.js +87 -0
- package/dist/chunk-QBX3N5H3.js.map +1 -0
- package/dist/chunk-QCXP7DD2.js +101 -0
- package/dist/chunk-QCXP7DD2.js.map +1 -0
- package/dist/chunk-QRVC5CUS.js +89 -0
- package/dist/chunk-QRVC5CUS.js.map +1 -0
- package/dist/chunk-QU5M7KZM.js +50 -0
- package/dist/chunk-QU5M7KZM.js.map +1 -0
- package/dist/chunk-QVWUOHQL.js +76 -0
- package/dist/chunk-QVWUOHQL.js.map +1 -0
- package/dist/chunk-R3CV4M6X.js +89 -0
- package/dist/chunk-R3CV4M6X.js.map +1 -0
- package/dist/chunk-R3WM6HV6.js +43 -0
- package/dist/chunk-R3WM6HV6.js.map +1 -0
- package/dist/chunk-RWK6HLWM.js +75 -0
- package/dist/chunk-RWK6HLWM.js.map +1 -0
- package/dist/chunk-RYEEDHML.js +64 -0
- package/dist/chunk-RYEEDHML.js.map +1 -0
- package/dist/chunk-RYL2JHLX.js +63 -0
- package/dist/chunk-RYL2JHLX.js.map +1 -0
- package/dist/chunk-S2DCF4UO.js +151 -0
- package/dist/chunk-S2DCF4UO.js.map +1 -0
- package/dist/chunk-S3SPOFAV.js +101 -0
- package/dist/chunk-S3SPOFAV.js.map +1 -0
- package/dist/chunk-SBN6CBOQ.js +43 -0
- package/dist/chunk-SBN6CBOQ.js.map +1 -0
- package/dist/chunk-SEKTRCZY.js +69 -0
- package/dist/chunk-SEKTRCZY.js.map +1 -0
- package/dist/chunk-SGQUFHFZ.js +98 -0
- package/dist/chunk-SGQUFHFZ.js.map +1 -0
- package/dist/chunk-SI4Y7NUG.js +54 -0
- package/dist/chunk-SI4Y7NUG.js.map +1 -0
- package/dist/chunk-SOZOKRPG.js +37 -0
- package/dist/chunk-SOZOKRPG.js.map +1 -0
- package/dist/chunk-SQIJY72J.js +69 -0
- package/dist/chunk-SQIJY72J.js.map +1 -0
- package/dist/chunk-SXGEOZKS.js +69 -0
- package/dist/chunk-SXGEOZKS.js.map +1 -0
- package/dist/chunk-SZ73GYOE.js +98 -0
- package/dist/chunk-SZ73GYOE.js.map +1 -0
- package/dist/chunk-TDETCBEC.js +63 -0
- package/dist/chunk-TDETCBEC.js.map +1 -0
- package/dist/chunk-TF5J7FEI.js +87 -0
- package/dist/chunk-TF5J7FEI.js.map +1 -0
- package/dist/chunk-TLN5DVTY.js +69 -0
- package/dist/chunk-TLN5DVTY.js.map +1 -0
- package/dist/chunk-TQ5AJKUH.js +64 -0
- package/dist/chunk-TQ5AJKUH.js.map +1 -0
- package/dist/chunk-TTXQOCS6.js +43 -0
- package/dist/chunk-TTXQOCS6.js.map +1 -0
- package/dist/chunk-U6HYOR36.js +51 -0
- package/dist/chunk-U6HYOR36.js.map +1 -0
- package/dist/chunk-UE3FIEY3.js +69 -0
- package/dist/chunk-UE3FIEY3.js.map +1 -0
- package/dist/chunk-UGCYMUQ4.js +89 -0
- package/dist/chunk-UGCYMUQ4.js.map +1 -0
- package/dist/chunk-UGWOWCEK.js +43 -0
- package/dist/chunk-UGWOWCEK.js.map +1 -0
- package/dist/chunk-UK7J2BOO.js +83 -0
- package/dist/chunk-UK7J2BOO.js.map +1 -0
- package/dist/chunk-ULFPO4H7.js +196 -0
- package/dist/chunk-ULFPO4H7.js.map +1 -0
- package/dist/chunk-UOYMF4WS.js +107 -0
- package/dist/chunk-UOYMF4WS.js.map +1 -0
- package/dist/chunk-UUB73FYC.js +49 -0
- package/dist/chunk-UUB73FYC.js.map +1 -0
- package/dist/chunk-UUHY3PR3.js +98 -0
- package/dist/chunk-UUHY3PR3.js.map +1 -0
- package/dist/chunk-V4GNPLLT.js +69 -0
- package/dist/chunk-V4GNPLLT.js.map +1 -0
- package/dist/chunk-V6RS23EX.js +29 -0
- package/dist/chunk-V6RS23EX.js.map +1 -0
- package/dist/chunk-V6XWXDT4.js +37 -0
- package/dist/chunk-V6XWXDT4.js.map +1 -0
- package/dist/chunk-VD7AQ7HK.js +1 -0
- package/dist/chunk-VD7AQ7HK.js.map +1 -0
- package/dist/chunk-VKH2GRVW.js +51 -0
- package/dist/chunk-VKH2GRVW.js.map +1 -0
- package/dist/chunk-VKMRA55P.js +144 -0
- package/dist/chunk-VKMRA55P.js.map +1 -0
- package/dist/chunk-VLGR5PZX.js +1 -0
- package/dist/chunk-VLGR5PZX.js.map +1 -0
- package/dist/chunk-VNZHG4SW.js +87 -0
- package/dist/chunk-VNZHG4SW.js.map +1 -0
- package/dist/chunk-VOYMZLUT.js +63 -0
- package/dist/chunk-VOYMZLUT.js.map +1 -0
- package/dist/chunk-VQGBP3JY.js +50 -0
- package/dist/chunk-VQGBP3JY.js.map +1 -0
- package/dist/chunk-VQIFL36B.js +64 -0
- package/dist/chunk-VQIFL36B.js.map +1 -0
- package/dist/chunk-VURIR6ZF.js +49 -0
- package/dist/chunk-VURIR6ZF.js.map +1 -0
- package/dist/chunk-VVIP5637.js +69 -0
- package/dist/chunk-VVIP5637.js.map +1 -0
- package/dist/chunk-W7TBPRHG.js +49 -0
- package/dist/chunk-W7TBPRHG.js.map +1 -0
- package/dist/chunk-W7XWZ6SN.js +101 -0
- package/dist/chunk-W7XWZ6SN.js.map +1 -0
- package/dist/chunk-WCGSHMNB.js +101 -0
- package/dist/chunk-WCGSHMNB.js.map +1 -0
- package/dist/chunk-WL7ISOGQ.js +87 -0
- package/dist/chunk-WL7ISOGQ.js.map +1 -0
- package/dist/chunk-WLWX7BLC.js +100 -0
- package/dist/chunk-WLWX7BLC.js.map +1 -0
- package/dist/chunk-WV4WWBKN.js +69 -0
- package/dist/chunk-WV4WWBKN.js.map +1 -0
- package/dist/chunk-WXVBUIER.js +151 -0
- package/dist/chunk-WXVBUIER.js.map +1 -0
- package/dist/chunk-X3J2UNWS.js +69 -0
- package/dist/chunk-X3J2UNWS.js.map +1 -0
- package/dist/chunk-X67ER3JU.js +69 -0
- package/dist/chunk-X67ER3JU.js.map +1 -0
- package/dist/chunk-X732NUWY.js +50 -0
- package/dist/chunk-X732NUWY.js.map +1 -0
- package/dist/chunk-X7QZ46BZ.js +63 -0
- package/dist/chunk-X7QZ46BZ.js.map +1 -0
- package/dist/chunk-XBQFTL5A.js +63 -0
- package/dist/chunk-XBQFTL5A.js.map +1 -0
- package/dist/chunk-XDPD6IWK.js +89 -0
- package/dist/chunk-XDPD6IWK.js.map +1 -0
- package/dist/chunk-XEO5X47M.js +100 -0
- package/dist/chunk-XEO5X47M.js.map +1 -0
- package/dist/chunk-XKWY6ZQM.js +196 -0
- package/dist/chunk-XKWY6ZQM.js.map +1 -0
- package/dist/chunk-XPLUHKTF.js +69 -0
- package/dist/chunk-XPLUHKTF.js.map +1 -0
- package/dist/chunk-XW3D3GLY.js +113 -0
- package/dist/chunk-XW3D3GLY.js.map +1 -0
- package/dist/chunk-XXTLEX6M.js +63 -0
- package/dist/chunk-XXTLEX6M.js.map +1 -0
- package/dist/chunk-XYREOBSI.js +113 -0
- package/dist/chunk-XYREOBSI.js.map +1 -0
- package/dist/chunk-Y6BK7ABB.js +1 -0
- package/dist/chunk-Y6BK7ABB.js.map +1 -0
- package/dist/chunk-Y6J3XHWD.js +63 -0
- package/dist/chunk-Y6J3XHWD.js.map +1 -0
- package/dist/chunk-Y7SJF3Y3.js +193 -0
- package/dist/chunk-Y7SJF3Y3.js.map +1 -0
- package/dist/chunk-YE3UDMTZ.js +151 -0
- package/dist/chunk-YE3UDMTZ.js.map +1 -0
- package/dist/chunk-YJAL2LL6.js +49 -0
- package/dist/chunk-YJAL2LL6.js.map +1 -0
- package/dist/chunk-YO7TEJ74.js +63 -0
- package/dist/chunk-YO7TEJ74.js.map +1 -0
- package/dist/chunk-YTOZKF27.js +37 -0
- package/dist/chunk-YTOZKF27.js.map +1 -0
- package/dist/chunk-YVRTZDZ4.js +37 -0
- package/dist/chunk-YVRTZDZ4.js.map +1 -0
- package/dist/chunk-YWTFVF5S.js +98 -0
- package/dist/chunk-YWTFVF5S.js.map +1 -0
- package/dist/chunk-YZZCJCCC.js +51 -0
- package/dist/chunk-YZZCJCCC.js.map +1 -0
- package/dist/chunk-Z2NFJG2U.js +51 -0
- package/dist/chunk-Z2NFJG2U.js.map +1 -0
- package/dist/chunk-Z2XF3EO2.js +75 -0
- package/dist/chunk-Z2XF3EO2.js.map +1 -0
- package/dist/chunk-ZFEXH655.js +144 -0
- package/dist/chunk-ZFEXH655.js.map +1 -0
- package/dist/chunk-ZRMH2UZE.js +29 -0
- package/dist/chunk-ZRMH2UZE.js.map +1 -0
- package/dist/chunk-ZWEBBDKU.js +69 -0
- package/dist/chunk-ZWEBBDKU.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/icon.cjs +46 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +5 -1
- package/dist/icons/circle-file.cjs +111 -0
- package/dist/icons/circle-file.cjs.map +1 -0
- package/dist/icons/circle-file.d.cts +6 -0
- package/dist/icons/circle-file.d.ts +6 -0
- package/dist/icons/circle-file.js +8 -0
- package/dist/icons/circle-file.js.map +1 -0
- package/dist/icons/index.cjs +46 -0
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +5 -1
- package/dist/index.cjs +1016 -753
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +166 -156
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +112 -65
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +21 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +54 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +92 -45
- 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 +53 -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 +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +66 -19
- 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 +9 -8
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +58 -11
- 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 +8 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +58 -11
- 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 +8 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +65 -18
- 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 +8 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +58 -14
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +168 -121
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +24 -23
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +70 -23
- 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 +51 -7
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs +249 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs.map +1 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.d.cts +9 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.d.ts +9 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +14 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js.map +1 -0
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +186 -139
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +27 -26
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +287 -179
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +31 -29
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +61 -12
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +80 -31
- 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 +72 -23
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +8 -7
- package/dist/molecules/curriculumV2/curriculum-context.cjs +44 -4
- package/dist/molecules/curriculumV2/curriculum-context.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-context.d.cts +4 -2
- package/dist/molecules/curriculumV2/curriculum-context.d.ts +4 -2
- package/dist/molecules/curriculumV2/curriculum-context.js +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +57 -13
- 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.js +2 -2
- package/dist/molecules/curriculumV2/index.cjs +378 -228
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +40 -38
- package/dist/molecules/date-picker/date-picker-button.cjs +70 -26
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +8 -7
- package/dist/molecules/date-picker/index.cjs +61 -17
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +7 -6
- package/dist/molecules/description-json-render.cjs +52 -8
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +7 -6
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +6 -6
- package/dist/molecules/dynamic-form.js +7 -7
- package/dist/molecules/expand-table/index.cjs +84 -40
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +7 -6
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +765 -504
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -0
- package/dist/molecules/index.d.ts +2 -0
- package/dist/molecules/index.js +81 -75
- package/dist/molecules/learning-post.js +6 -6
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.cjs +64 -20
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +6 -5
- package/dist/molecules/tag-selector.cjs +64 -20
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +7 -6
- package/dist/molecules/time-select.cjs +49 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +2 -1
- package/dist/molecules/training-info-guideline.cjs +508 -0
- package/dist/molecules/training-info-guideline.cjs.map +1 -0
- package/dist/molecules/training-info-guideline.d.cts +13 -0
- package/dist/molecules/training-info-guideline.d.ts +13 -0
- package/dist/molecules/training-info-guideline.js +19 -0
- package/dist/molecules/training-info-guideline.js.map +1 -0
- package/dist/types/curriculumContents.type.cjs.map +1 -1
- package/dist/types/curriculumContents.type.d.cts +13 -2
- package/dist/types/curriculumContents.type.d.ts +13 -2
- package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.js +2 -1
- package/dist/types/training-info-guideline-schema-generated.cjs +19 -0
- package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -0
- package/dist/types/training-info-guideline-schema-generated.d.cts +22 -0
- package/dist/types/training-info-guideline-schema-generated.d.ts +22 -0
- package/dist/types/training-info-guideline-schema-generated.js +2 -0
- package/dist/types/training-info-guideline-schema-generated.js.map +1 -0
- package/dist/utils/curriculum.utils.cjs +51 -2
- package/dist/utils/curriculum.utils.cjs.map +1 -1
- package/dist/utils/curriculum.utils.d.cts +1 -0
- package/dist/utils/curriculum.utils.d.ts +1 -0
- package/dist/utils/curriculum.utils.js +3 -2
- package/dist/utils/getCalloutIconComponent.cjs +44 -0
- package/dist/utils/getCalloutIconComponent.cjs.map +1 -1
- package/dist/utils/getCalloutIconComponent.js +2 -1
- package/dist/utils/index.cjs +44 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -1
- package/package.json +2 -2
- package/src/constrant/curriculum.schema.json +34 -1
- package/src/constrant/training-info-guideline.schema.json +45 -0
- package/src/icons/circle-file.tsx +35 -0
- package/src/icons/index.ts +2 -1
- package/src/molecules/curriculumV2/CurriculumContents/curriculum-file-download.tsx +84 -0
- package/src/molecules/curriculumV2/CurriculumContents/index.tsx +5 -2
- package/src/molecules/curriculumV2/curriculum-context.tsx +74 -7
- package/src/molecules/index.ts +2 -1
- package/src/molecules/training-info-guideline.tsx +130 -0
- package/src/types/curriculumContents.type.ts +13 -0
- package/src/types/dynamic-form-schema-generated.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/training-info-guideline-schema-generated.ts +23 -0
- package/src/utils/curriculum.utils.ts +10 -4
package/dist/index.cjs
CHANGED
|
@@ -116,6 +116,7 @@ __export(index_exports, {
|
|
|
116
116
|
ChevronUpIcon: () => import_react_icons2.ChevronUpIcon,
|
|
117
117
|
CircleChatIcon: () => CircleChatIcon,
|
|
118
118
|
CircleCheckIcon: () => CircleCheckIcon,
|
|
119
|
+
CircleFileIcon: () => CircleFileIcon,
|
|
119
120
|
CirclePencilIcon: () => CirclePencilIcon,
|
|
120
121
|
CirclePlayIcon: () => CirclePlayIcon,
|
|
121
122
|
CircleQuoteIcon: () => CircleQuoteIcon,
|
|
@@ -258,6 +259,7 @@ __export(index_exports, {
|
|
|
258
259
|
TimerIcon: () => import_react_icons2.TimerIcon,
|
|
259
260
|
ToastContainer: () => ToastContainer,
|
|
260
261
|
Tooltip: () => Tooltip,
|
|
262
|
+
TrainingInfoGuideline: () => TrainingInfoGuideline,
|
|
261
263
|
TrashIcon: () => import_react_icons2.TrashIcon,
|
|
262
264
|
TriangleArrowDownIcon: () => TriangleArrowDownIcon,
|
|
263
265
|
TriangleArrowUpIcon: () => TriangleArrowUpIcon,
|
|
@@ -1619,8 +1621,52 @@ var CircleChatIcon = React19.forwardRef(
|
|
|
1619
1621
|
);
|
|
1620
1622
|
CircleChatIcon.displayName = "CircleChatIcon";
|
|
1621
1623
|
|
|
1622
|
-
// src/
|
|
1624
|
+
// src/icons/circle-file.tsx
|
|
1625
|
+
var React20 = __toESM(require("react"), 1);
|
|
1623
1626
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1627
|
+
var CircleFileIcon = React20.forwardRef(
|
|
1628
|
+
(_a, forwardedRef) => {
|
|
1629
|
+
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1631
|
+
"svg",
|
|
1632
|
+
__spreadProps(__spreadValues({
|
|
1633
|
+
fill: "none",
|
|
1634
|
+
height: "16",
|
|
1635
|
+
viewBox: "0 0 16 16",
|
|
1636
|
+
width: "16",
|
|
1637
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1638
|
+
}, props), {
|
|
1639
|
+
ref: forwardedRef,
|
|
1640
|
+
children: [
|
|
1641
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { fill: color, height: "16", rx: "8", width: "16" }),
|
|
1642
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1643
|
+
"rect",
|
|
1644
|
+
{
|
|
1645
|
+
fill: "white",
|
|
1646
|
+
fillOpacity: "0.01",
|
|
1647
|
+
height: "12",
|
|
1648
|
+
transform: "translate(2 2)",
|
|
1649
|
+
width: "12"
|
|
1650
|
+
}
|
|
1651
|
+
),
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1653
|
+
"path",
|
|
1654
|
+
{
|
|
1655
|
+
clipRule: "evenodd",
|
|
1656
|
+
d: "M4.39998 4.00005C4.39998 3.77914 4.57906 3.60005 4.79998 3.60005H9.26861C9.37469 3.60005 9.47643 3.64219 9.55145 3.71721L11.4829 5.64858C11.5578 5.72359 11.6 5.82534 11.6 5.93142V12C11.6 12.2209 11.4209 12.4 11.2 12.4H4.79998C4.57906 12.4 4.39998 12.2209 4.39998 12V4.00005ZM4.79998 2.80005C4.13723 2.80005 3.59998 3.3373 3.59998 4.00005V12C3.59998 12.6628 4.13723 13.2 4.79998 13.2H11.2C11.8627 13.2 12.4 12.6628 12.4 12V5.93142C12.4 5.61316 12.2736 5.30794 12.0485 5.08289L10.1171 3.15152C9.89209 2.92648 9.58686 2.80005 9.26861 2.80005H4.79998ZM5.59998 5.20005C5.37906 5.20005 5.19998 5.37914 5.19998 5.60005C5.19998 5.82096 5.37906 6.00005 5.59998 6.00005H7.99998C8.22089 6.00005 8.39998 5.82096 8.39998 5.60005C8.39998 5.37914 8.22089 5.20005 7.99998 5.20005H5.59998ZM5.59998 7.60005C5.37906 7.60005 5.19998 7.77914 5.19998 8.00005C5.19998 8.22096 5.37906 8.40005 5.59998 8.40005H10.4C10.6209 8.40005 10.8 8.22096 10.8 8.00005C10.8 7.77914 10.6209 7.60005 10.4 7.60005H5.59998ZM5.59998 10C5.37906 10 5.19998 10.1792 5.19998 10.4C5.19998 10.6209 5.37906 10.8 5.59998 10.8H10.4C10.6209 10.8 10.8 10.6209 10.8 10.4C10.8 10.1792 10.6209 10 10.4 10H5.59998Z",
|
|
1657
|
+
fill: "white",
|
|
1658
|
+
fillRule: "evenodd"
|
|
1659
|
+
}
|
|
1660
|
+
)
|
|
1661
|
+
]
|
|
1662
|
+
})
|
|
1663
|
+
);
|
|
1664
|
+
}
|
|
1665
|
+
);
|
|
1666
|
+
CircleFileIcon.displayName = "CircleFileIcon";
|
|
1667
|
+
|
|
1668
|
+
// src/atoms/pagination.tsx
|
|
1669
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1624
1670
|
function Pagination(props) {
|
|
1625
1671
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
1626
1672
|
const [page, setPage] = (0, import_react20.useState)(() => props.page || props.defaultPage || 1);
|
|
@@ -1681,19 +1727,19 @@ function Pagination(props) {
|
|
|
1681
1727
|
size: "large",
|
|
1682
1728
|
style: { borderRadius: "50%" }
|
|
1683
1729
|
};
|
|
1684
|
-
return /* @__PURE__ */ (0,
|
|
1685
|
-
/* @__PURE__ */ (0,
|
|
1730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", children: [
|
|
1731
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1686
1732
|
IconButton,
|
|
1687
1733
|
__spreadProps(__spreadValues({
|
|
1688
1734
|
disabled: !doublePrev,
|
|
1689
1735
|
onClick: onClickDoublePrev
|
|
1690
1736
|
}, moveButtonProps), {
|
|
1691
|
-
children: /* @__PURE__ */ (0,
|
|
1737
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons2.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
1692
1738
|
})
|
|
1693
1739
|
),
|
|
1694
|
-
/* @__PURE__ */ (0,
|
|
1695
|
-
/* @__PURE__ */ (0,
|
|
1696
|
-
return /* @__PURE__ */ (0,
|
|
1740
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons2.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
1741
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
1742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1697
1743
|
"button",
|
|
1698
1744
|
{
|
|
1699
1745
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -1701,39 +1747,39 @@ function Pagination(props) {
|
|
|
1701
1747
|
setPage(item);
|
|
1702
1748
|
},
|
|
1703
1749
|
type: "button",
|
|
1704
|
-
children: /* @__PURE__ */ (0,
|
|
1750
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { variant: "body", children: item })
|
|
1705
1751
|
},
|
|
1706
1752
|
item
|
|
1707
1753
|
);
|
|
1708
1754
|
}) }),
|
|
1709
|
-
/* @__PURE__ */ (0,
|
|
1710
|
-
/* @__PURE__ */ (0,
|
|
1755
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons2.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1711
1757
|
IconButton,
|
|
1712
1758
|
__spreadProps(__spreadValues({
|
|
1713
1759
|
disabled: !doubleNext,
|
|
1714
1760
|
onClick: onClickDoubleNext
|
|
1715
1761
|
}, moveButtonProps), {
|
|
1716
|
-
children: /* @__PURE__ */ (0,
|
|
1762
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons2.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
1717
1763
|
})
|
|
1718
1764
|
)
|
|
1719
1765
|
] });
|
|
1720
1766
|
}
|
|
1721
1767
|
|
|
1722
1768
|
// src/atoms/field-error-wrapper.tsx
|
|
1723
|
-
var
|
|
1769
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1724
1770
|
function FieldErrorWrapper({
|
|
1725
1771
|
children,
|
|
1726
1772
|
error
|
|
1727
1773
|
}) {
|
|
1728
|
-
return /* @__PURE__ */ (0,
|
|
1774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
1729
1775
|
children,
|
|
1730
|
-
error ? /* @__PURE__ */ (0,
|
|
1776
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
1731
1777
|
] });
|
|
1732
1778
|
}
|
|
1733
1779
|
|
|
1734
1780
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1735
1781
|
var import_react21 = require("react");
|
|
1736
|
-
var
|
|
1782
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1737
1783
|
function EllipsisTooltip(props) {
|
|
1738
1784
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
1739
1785
|
const ref = (0, import_react21.useRef)(null);
|
|
@@ -1755,7 +1801,7 @@ function EllipsisTooltip(props) {
|
|
|
1755
1801
|
ref.current.addEventListener("mouseleave", mouseOut);
|
|
1756
1802
|
}
|
|
1757
1803
|
}, [children]);
|
|
1758
|
-
return /* @__PURE__ */ (0,
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1759
1805
|
Typo,
|
|
1760
1806
|
__spreadProps(__spreadValues({}, rest), {
|
|
1761
1807
|
ref,
|
|
@@ -1778,12 +1824,12 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
|
1778
1824
|
var import_themes50 = require("@radix-ui/themes");
|
|
1779
1825
|
|
|
1780
1826
|
// src/icons/close-panel-arrow.tsx
|
|
1781
|
-
var
|
|
1782
|
-
var
|
|
1783
|
-
var ClosePanelArrowIcon =
|
|
1827
|
+
var React23 = __toESM(require("react"), 1);
|
|
1828
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1829
|
+
var ClosePanelArrowIcon = React23.forwardRef(
|
|
1784
1830
|
(_a, forwardedRef) => {
|
|
1785
1831
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1786
|
-
return /* @__PURE__ */ (0,
|
|
1832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1787
1833
|
"svg",
|
|
1788
1834
|
__spreadProps(__spreadValues({
|
|
1789
1835
|
fill: "none",
|
|
@@ -1794,7 +1840,7 @@ var ClosePanelArrowIcon = React22.forwardRef(
|
|
|
1794
1840
|
}, props), {
|
|
1795
1841
|
ref: forwardedRef,
|
|
1796
1842
|
children: [
|
|
1797
|
-
/* @__PURE__ */ (0,
|
|
1843
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1798
1844
|
"path",
|
|
1799
1845
|
{
|
|
1800
1846
|
clipRule: "evenodd",
|
|
@@ -1803,7 +1849,7 @@ var ClosePanelArrowIcon = React22.forwardRef(
|
|
|
1803
1849
|
fillRule: "evenodd"
|
|
1804
1850
|
}
|
|
1805
1851
|
),
|
|
1806
|
-
/* @__PURE__ */ (0,
|
|
1852
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1807
1853
|
"path",
|
|
1808
1854
|
{
|
|
1809
1855
|
clipRule: "evenodd",
|
|
@@ -1820,9 +1866,9 @@ var ClosePanelArrowIcon = React22.forwardRef(
|
|
|
1820
1866
|
ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
1821
1867
|
|
|
1822
1868
|
// src/atoms/drawer.tsx
|
|
1823
|
-
var
|
|
1869
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1824
1870
|
function Root7(props) {
|
|
1825
|
-
return /* @__PURE__ */ (0,
|
|
1871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
1826
1872
|
}
|
|
1827
1873
|
var preventDefault2 = (e) => {
|
|
1828
1874
|
e.preventDefault();
|
|
@@ -1844,15 +1890,15 @@ function Content6(props) {
|
|
|
1844
1890
|
const mobileHeaderSize = 48;
|
|
1845
1891
|
const desktopHeaderSize = 64;
|
|
1846
1892
|
const { drawerContainerRef } = usePortalContainer();
|
|
1847
|
-
return /* @__PURE__ */ (0,
|
|
1848
|
-
/* @__PURE__ */ (0,
|
|
1849
|
-
/* @__PURE__ */ (0,
|
|
1893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes50.Theme, { children: [
|
|
1894
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
1895
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1850
1896
|
Dialog2.Content,
|
|
1851
1897
|
__spreadProps(__spreadValues({
|
|
1852
1898
|
className: `DrawerContent ${position} ${className || ""}`,
|
|
1853
1899
|
onPointerDownOutside: preventDefault2
|
|
1854
1900
|
}, rest), {
|
|
1855
|
-
children: /* @__PURE__ */ (0,
|
|
1901
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
1856
1902
|
import_themes50.Grid,
|
|
1857
1903
|
{
|
|
1858
1904
|
height: "100%",
|
|
@@ -1862,8 +1908,8 @@ function Content6(props) {
|
|
|
1862
1908
|
sm: `${desktopHeaderSize}px calc(100% - ${desktopHeaderSize}px)`
|
|
1863
1909
|
},
|
|
1864
1910
|
children: [
|
|
1865
|
-
!hideHeader && /* @__PURE__ */ (0,
|
|
1866
|
-
/* @__PURE__ */ (0,
|
|
1911
|
+
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes22.Flex, { align: "center", gap: "3", px: { initial: "4", md: "6" }, children: [
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ClosePanelArrowIcon, {}) }) }),
|
|
1867
1913
|
HeaderContent
|
|
1868
1914
|
] }),
|
|
1869
1915
|
children
|
|
@@ -1875,7 +1921,7 @@ function Content6(props) {
|
|
|
1875
1921
|
] }) });
|
|
1876
1922
|
}
|
|
1877
1923
|
function Trigger5(props) {
|
|
1878
|
-
return /* @__PURE__ */ (0,
|
|
1924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
|
|
1879
1925
|
}
|
|
1880
1926
|
var Drawer = {
|
|
1881
1927
|
Root: Dialog2.Root,
|
|
@@ -1890,12 +1936,12 @@ var Drawer = {
|
|
|
1890
1936
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1891
1937
|
var import_react_toastify = require("react-toastify");
|
|
1892
1938
|
var import_react_toastify2 = require("react-toastify");
|
|
1893
|
-
var
|
|
1939
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1894
1940
|
function CloseButton() {
|
|
1895
1941
|
return null;
|
|
1896
1942
|
}
|
|
1897
1943
|
function ToastContainer(props) {
|
|
1898
|
-
return /* @__PURE__ */ (0,
|
|
1944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1899
1945
|
import_react_toastify.ToastContainer,
|
|
1900
1946
|
__spreadValues({
|
|
1901
1947
|
autoClose: 5e3,
|
|
@@ -1903,7 +1949,7 @@ function ToastContainer(props) {
|
|
|
1903
1949
|
closeOnClick: true,
|
|
1904
1950
|
draggable: true,
|
|
1905
1951
|
hideProgressBar: true,
|
|
1906
|
-
icon: /* @__PURE__ */ (0,
|
|
1952
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons3.InfoCircledIcon, {}),
|
|
1907
1953
|
newestOnTop: true,
|
|
1908
1954
|
pauseOnFocusLoss: true,
|
|
1909
1955
|
pauseOnHover: true,
|
|
@@ -1917,11 +1963,11 @@ function ToastContainer(props) {
|
|
|
1917
1963
|
// src/molecules/form/form.tsx
|
|
1918
1964
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1919
1965
|
var import_react22 = require("react");
|
|
1920
|
-
var
|
|
1966
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1921
1967
|
var Root9 = (0, import_react22.forwardRef)(
|
|
1922
1968
|
(_a, ref) => {
|
|
1923
1969
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1924
|
-
return /* @__PURE__ */ (0,
|
|
1970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1925
1971
|
RadixForm.Root,
|
|
1926
1972
|
__spreadProps(__spreadValues({}, rest), {
|
|
1927
1973
|
className: `FormRoot ${className || ""}`,
|
|
@@ -1938,22 +1984,22 @@ var FieldContext = (0, import_react22.createContext)({
|
|
|
1938
1984
|
var Field2 = (0, import_react22.forwardRef)(
|
|
1939
1985
|
(_a, ref) => {
|
|
1940
1986
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1941
|
-
return /* @__PURE__ */ (0,
|
|
1987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1942
1988
|
RadixForm.Field,
|
|
1943
1989
|
__spreadProps(__spreadValues({}, rest), {
|
|
1944
1990
|
className: `FormField ${className || ""}`,
|
|
1945
1991
|
ref,
|
|
1946
|
-
children: /* @__PURE__ */ (0,
|
|
1992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(FieldContext.Provider, { value: rest, children })
|
|
1947
1993
|
})
|
|
1948
1994
|
);
|
|
1949
1995
|
}
|
|
1950
1996
|
);
|
|
1951
1997
|
Field2.displayName = "FORM_FIELD";
|
|
1952
1998
|
function HeadingLabel(props) {
|
|
1953
|
-
return /* @__PURE__ */ (0,
|
|
1999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
1954
2000
|
}
|
|
1955
2001
|
function CaptionLabel(props) {
|
|
1956
|
-
return /* @__PURE__ */ (0,
|
|
2002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1957
2003
|
}
|
|
1958
2004
|
var Label2 = (0, import_react22.forwardRef)(
|
|
1959
2005
|
(_a, ref) => {
|
|
@@ -1970,15 +2016,15 @@ var Label2 = (0, import_react22.forwardRef)(
|
|
|
1970
2016
|
}
|
|
1971
2017
|
}, [variant]);
|
|
1972
2018
|
const fieldProps = (0, import_react22.useContext)(FieldContext);
|
|
1973
|
-
return /* @__PURE__ */ (0,
|
|
2019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1974
2020
|
RadixForm.Label,
|
|
1975
2021
|
__spreadProps(__spreadValues({}, rest), {
|
|
1976
2022
|
asChild: true,
|
|
1977
2023
|
className: `FormLabel ${className || ""}`,
|
|
1978
2024
|
ref,
|
|
1979
|
-
children: /* @__PURE__ */ (0,
|
|
2025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Comp, { children: [
|
|
1980
2026
|
children,
|
|
1981
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
2027
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
1982
2028
|
] })
|
|
1983
2029
|
})
|
|
1984
2030
|
);
|
|
@@ -1988,13 +2034,13 @@ Label2.displayName = "FORM_Label";
|
|
|
1988
2034
|
var Message2 = (0, import_react22.forwardRef)(
|
|
1989
2035
|
(_a, ref) => {
|
|
1990
2036
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1991
|
-
return /* @__PURE__ */ (0,
|
|
2037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1992
2038
|
RadixForm.Message,
|
|
1993
2039
|
__spreadProps(__spreadValues({}, rest), {
|
|
1994
2040
|
asChild: true,
|
|
1995
2041
|
className: `FormMessage ${className || ""}`,
|
|
1996
2042
|
ref,
|
|
1997
|
-
children: /* @__PURE__ */ (0,
|
|
2043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typo, { color: "red", children })
|
|
1998
2044
|
})
|
|
1999
2045
|
);
|
|
2000
2046
|
}
|
|
@@ -2004,7 +2050,7 @@ var Control2 = (0, import_react22.forwardRef)(
|
|
|
2004
2050
|
(_a, ref) => {
|
|
2005
2051
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
2006
2052
|
const fieldProps = (0, import_react22.useContext)(FieldContext);
|
|
2007
|
-
return /* @__PURE__ */ (0,
|
|
2053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2008
2054
|
RadixForm.Control,
|
|
2009
2055
|
__spreadProps(__spreadValues({}, rest), {
|
|
2010
2056
|
className: `FormControl ${className || ""}`,
|
|
@@ -2027,10 +2073,10 @@ function FormItem(_a) {
|
|
|
2027
2073
|
"children",
|
|
2028
2074
|
"errorMessage"
|
|
2029
2075
|
]);
|
|
2030
|
-
return /* @__PURE__ */ (0,
|
|
2031
|
-
/* @__PURE__ */ (0,
|
|
2076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
2077
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
2032
2078
|
children,
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2079
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
2034
2080
|
] }));
|
|
2035
2081
|
}
|
|
2036
2082
|
var Form = {
|
|
@@ -2046,7 +2092,7 @@ var Form = {
|
|
|
2046
2092
|
// src/atoms/auto-sizing-input.tsx
|
|
2047
2093
|
var import_themes51 = require("@radix-ui/themes");
|
|
2048
2094
|
var import_react23 = require("react");
|
|
2049
|
-
var
|
|
2095
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2050
2096
|
var useTextWidth = (text, font) => {
|
|
2051
2097
|
const [textWidth, setTextWidth] = (0, import_react23.useState)(0);
|
|
2052
2098
|
(0, import_react23.useEffect)(() => {
|
|
@@ -2146,7 +2192,7 @@ var AutoSizingInput = (0, import_react23.forwardRef)(
|
|
|
2146
2192
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2147
2193
|
}
|
|
2148
2194
|
}, [inputRef]);
|
|
2149
|
-
return /* @__PURE__ */ (0,
|
|
2195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2150
2196
|
import_themes51.Box,
|
|
2151
2197
|
{
|
|
2152
2198
|
className: "auto-sizing-input wrapper",
|
|
@@ -2154,7 +2200,7 @@ var AutoSizingInput = (0, import_react23.forwardRef)(
|
|
|
2154
2200
|
minWidth,
|
|
2155
2201
|
onClick,
|
|
2156
2202
|
style: { width: dynamicWidth },
|
|
2157
|
-
children: /* @__PURE__ */ (0,
|
|
2203
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("input", __spreadValues({ onChange: handleChange, ref: inputRef, value }, rest))
|
|
2158
2204
|
}
|
|
2159
2205
|
);
|
|
2160
2206
|
}
|
|
@@ -2162,23 +2208,23 @@ var AutoSizingInput = (0, import_react23.forwardRef)(
|
|
|
2162
2208
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
2163
2209
|
|
|
2164
2210
|
// src/atoms/bullet-text.tsx
|
|
2165
|
-
var
|
|
2211
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2166
2212
|
function BulletText(_a) {
|
|
2167
2213
|
var _b = _a, {
|
|
2168
2214
|
children
|
|
2169
2215
|
} = _b, rest = __objRest(_b, [
|
|
2170
2216
|
"children"
|
|
2171
2217
|
]);
|
|
2172
|
-
return /* @__PURE__ */ (0,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
2175
2221
|
] });
|
|
2176
2222
|
}
|
|
2177
2223
|
|
|
2178
2224
|
// src/atoms/list.tsx
|
|
2179
2225
|
var import_react24 = require("react");
|
|
2180
2226
|
var import_clsx3 = require("clsx");
|
|
2181
|
-
var
|
|
2227
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2182
2228
|
function Root10(props) {
|
|
2183
2229
|
const _a = props, {
|
|
2184
2230
|
variant,
|
|
@@ -2203,7 +2249,7 @@ function Root10(props) {
|
|
|
2203
2249
|
),
|
|
2204
2250
|
[preSpace, propsClassName]
|
|
2205
2251
|
);
|
|
2206
|
-
return /* @__PURE__ */ (0,
|
|
2252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes22.Flex, __spreadProps(__spreadValues({ asChild: true, direction: "column", gap: "1" }, rest), { className, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Comp, { children }) })) });
|
|
2207
2253
|
}
|
|
2208
2254
|
function Item(props) {
|
|
2209
2255
|
const { children } = props;
|
|
@@ -2216,7 +2262,7 @@ function Item(props) {
|
|
|
2216
2262
|
}
|
|
2217
2263
|
});
|
|
2218
2264
|
}, [size]);
|
|
2219
|
-
return /* @__PURE__ */ (0,
|
|
2265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children }) });
|
|
2220
2266
|
}
|
|
2221
2267
|
var ListContext = (0, import_react24.createContext)({
|
|
2222
2268
|
size: "large"
|
|
@@ -2237,7 +2283,7 @@ var import_themes52 = require("@radix-ui/themes");
|
|
|
2237
2283
|
// src/molecules/expand-table/row.tsx
|
|
2238
2284
|
var import_react_table = require("@tanstack/react-table");
|
|
2239
2285
|
var import_react25 = require("react");
|
|
2240
|
-
var
|
|
2286
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2241
2287
|
function Row(props) {
|
|
2242
2288
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
2243
2289
|
const [open, setOpen] = (0, import_react25.useState)(false);
|
|
@@ -2256,8 +2302,8 @@ function Row(props) {
|
|
|
2256
2302
|
}
|
|
2257
2303
|
return baseCls.join(" ");
|
|
2258
2304
|
}, [ExpandComp, props.onRowClick]);
|
|
2259
|
-
return /* @__PURE__ */ (0,
|
|
2260
|
-
/* @__PURE__ */ (0,
|
|
2305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: rowClassName, children: [
|
|
2306
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2261
2307
|
"button",
|
|
2262
2308
|
{
|
|
2263
2309
|
className: "tr",
|
|
@@ -2270,7 +2316,7 @@ function Row(props) {
|
|
|
2270
2316
|
var _a, _b, _c;
|
|
2271
2317
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
2272
2318
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
2273
|
-
return /* @__PURE__ */ (0,
|
|
2319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
2274
2320
|
"div",
|
|
2275
2321
|
{
|
|
2276
2322
|
className: "td",
|
|
@@ -2281,7 +2327,7 @@ function Row(props) {
|
|
|
2281
2327
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
2282
2328
|
children: [
|
|
2283
2329
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
2284
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
2330
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2285
2331
|
cell.column.columnDef.meta.OpenBtn,
|
|
2286
2332
|
{
|
|
2287
2333
|
data: row.original,
|
|
@@ -2297,12 +2343,12 @@ function Row(props) {
|
|
|
2297
2343
|
},
|
|
2298
2344
|
`tr_${row.id}`
|
|
2299
2345
|
),
|
|
2300
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
2346
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ExpandComp, { row }) }) }) : null
|
|
2301
2347
|
] }, `tr-wrapper_${row.id}`);
|
|
2302
2348
|
}
|
|
2303
2349
|
|
|
2304
2350
|
// src/molecules/expand-table/index.tsx
|
|
2305
|
-
var
|
|
2351
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2306
2352
|
var sortButtonColorMapper = {
|
|
2307
2353
|
card: {
|
|
2308
2354
|
selected: "var(--iris-10)",
|
|
@@ -2372,7 +2418,7 @@ function ExpandTable(props) {
|
|
|
2372
2418
|
const helpCompRender = (0, import_react26.useCallback)(
|
|
2373
2419
|
(rowLength) => {
|
|
2374
2420
|
if (isLoading) {
|
|
2375
|
-
return /* @__PURE__ */ (0,
|
|
2421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2376
2422
|
import_themes22.Flex,
|
|
2377
2423
|
{
|
|
2378
2424
|
align: "center",
|
|
@@ -2380,12 +2426,12 @@ function ExpandTable(props) {
|
|
|
2380
2426
|
justify: "center",
|
|
2381
2427
|
p: "5",
|
|
2382
2428
|
width: "100%",
|
|
2383
|
-
children: /* @__PURE__ */ (0,
|
|
2429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes49.Spinner, {})
|
|
2384
2430
|
}
|
|
2385
2431
|
);
|
|
2386
2432
|
}
|
|
2387
2433
|
if (rowLength === 0) {
|
|
2388
|
-
return /* @__PURE__ */ (0,
|
|
2434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
2389
2435
|
}
|
|
2390
2436
|
return null;
|
|
2391
2437
|
},
|
|
@@ -2395,9 +2441,9 @@ function ExpandTable(props) {
|
|
|
2395
2441
|
if (!data) return 0;
|
|
2396
2442
|
return Math.ceil(data.length / pageSize);
|
|
2397
2443
|
}, [data, pageSize]);
|
|
2398
|
-
return /* @__PURE__ */ (0,
|
|
2399
|
-
/* @__PURE__ */ (0,
|
|
2400
|
-
/* @__PURE__ */ (0,
|
|
2444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: `expand-table-wrapper ${variant}`, children: [
|
|
2445
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
2446
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2401
2447
|
"div",
|
|
2402
2448
|
{
|
|
2403
2449
|
className: "tr",
|
|
@@ -2408,36 +2454,36 @@ function ExpandTable(props) {
|
|
|
2408
2454
|
const sortedState = header.column.getIsSorted();
|
|
2409
2455
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
2410
2456
|
if (sortable) {
|
|
2411
|
-
return /* @__PURE__ */ (0,
|
|
2457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2412
2458
|
"button",
|
|
2413
2459
|
{
|
|
2414
2460
|
onClick: header.column.getToggleSortingHandler(),
|
|
2415
2461
|
style: { cursor: "pointer" },
|
|
2416
2462
|
type: "button",
|
|
2417
2463
|
children: [
|
|
2418
|
-
/* @__PURE__ */ (0,
|
|
2464
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2419
2465
|
header.column.columnDef.header,
|
|
2420
2466
|
header.getContext()
|
|
2421
2467
|
) }),
|
|
2422
|
-
/* @__PURE__ */ (0,
|
|
2468
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2423
2469
|
import_themes22.Flex,
|
|
2424
2470
|
{
|
|
2425
2471
|
direction: "column",
|
|
2426
2472
|
style: { marginLeft: "var(--space-2)" },
|
|
2427
2473
|
children: [
|
|
2428
|
-
sortedState === false && /* @__PURE__ */ (0,
|
|
2474
|
+
sortedState === false && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2429
2475
|
TriangleArrowDownIcon,
|
|
2430
2476
|
{
|
|
2431
2477
|
color: sortButtonColorMapper[variant].unselected
|
|
2432
2478
|
}
|
|
2433
2479
|
),
|
|
2434
|
-
sortedState === "asc" && /* @__PURE__ */ (0,
|
|
2480
|
+
sortedState === "asc" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2435
2481
|
TriangleArrowUpIcon,
|
|
2436
2482
|
{
|
|
2437
2483
|
color: sortButtonColorMapper[variant].selected
|
|
2438
2484
|
}
|
|
2439
2485
|
),
|
|
2440
|
-
sortedState === "desc" && /* @__PURE__ */ (0,
|
|
2486
|
+
sortedState === "desc" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2441
2487
|
TriangleArrowDownIcon,
|
|
2442
2488
|
{
|
|
2443
2489
|
color: sortButtonColorMapper[variant].selected
|
|
@@ -2450,7 +2496,7 @@ function ExpandTable(props) {
|
|
|
2450
2496
|
}
|
|
2451
2497
|
) }, header.id);
|
|
2452
2498
|
}
|
|
2453
|
-
return /* @__PURE__ */ (0,
|
|
2499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2454
2500
|
header.column.columnDef.header,
|
|
2455
2501
|
header.getContext()
|
|
2456
2502
|
) }) }, header.id);
|
|
@@ -2458,8 +2504,8 @@ function ExpandTable(props) {
|
|
|
2458
2504
|
},
|
|
2459
2505
|
headerGroup.id
|
|
2460
2506
|
)) }),
|
|
2461
|
-
/* @__PURE__ */ (0,
|
|
2462
|
-
return /* @__PURE__ */ (0,
|
|
2507
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes52.ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
2508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2463
2509
|
Row,
|
|
2464
2510
|
{
|
|
2465
2511
|
ExpandComp,
|
|
@@ -2474,7 +2520,7 @@ function ExpandTable(props) {
|
|
|
2474
2520
|
);
|
|
2475
2521
|
}) })
|
|
2476
2522
|
] }),
|
|
2477
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
2523
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes22.Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2478
2524
|
Pagination,
|
|
2479
2525
|
{
|
|
2480
2526
|
count: pageCount,
|
|
@@ -2487,14 +2533,14 @@ function ExpandTable(props) {
|
|
|
2487
2533
|
}
|
|
2488
2534
|
|
|
2489
2535
|
// src/molecules/navigation.tsx
|
|
2490
|
-
var
|
|
2536
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2491
2537
|
function Navigation({
|
|
2492
2538
|
items,
|
|
2493
2539
|
fontColor,
|
|
2494
2540
|
backgroundColor,
|
|
2495
2541
|
activeKey
|
|
2496
2542
|
}) {
|
|
2497
|
-
return /* @__PURE__ */ (0,
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2498
2544
|
import_themes22.Flex,
|
|
2499
2545
|
{
|
|
2500
2546
|
direction: "column",
|
|
@@ -2506,13 +2552,13 @@ function Navigation({
|
|
|
2506
2552
|
},
|
|
2507
2553
|
children: items == null ? void 0 : items.map((item) => {
|
|
2508
2554
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2510
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
2555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
2556
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
2511
2557
|
icon,
|
|
2512
|
-
/* @__PURE__ */ (0,
|
|
2558
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typo, { variant: "subtitle", children: title })
|
|
2513
2559
|
] }),
|
|
2514
2560
|
children == null ? void 0 : children.map((menu) => {
|
|
2515
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
2561
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2516
2562
|
Button,
|
|
2517
2563
|
{
|
|
2518
2564
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -2539,7 +2585,7 @@ function Navigation({
|
|
|
2539
2585
|
var import_react27 = require("react");
|
|
2540
2586
|
var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
2541
2587
|
var import_locale = require("date-fns/locale");
|
|
2542
|
-
var
|
|
2588
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2543
2589
|
var DatePicker = (0, import_react27.forwardRef)(
|
|
2544
2590
|
(props, ref) => {
|
|
2545
2591
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
@@ -2570,7 +2616,7 @@ var DatePicker = (0, import_react27.forwardRef)(
|
|
|
2570
2616
|
setIsMonthDropdownOpen
|
|
2571
2617
|
}));
|
|
2572
2618
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
2573
|
-
return /* @__PURE__ */ (0,
|
|
2619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2574
2620
|
import_react_datepicker.default,
|
|
2575
2621
|
__spreadProps(__spreadValues({
|
|
2576
2622
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -2618,19 +2664,19 @@ function DropdownSelector({
|
|
|
2618
2664
|
});
|
|
2619
2665
|
}
|
|
2620
2666
|
}, [isOpen]);
|
|
2621
|
-
return /* @__PURE__ */ (0,
|
|
2622
|
-
/* @__PURE__ */ (0,
|
|
2667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes29.Popover.Root, { modal: true, onOpenChange, open: isOpen, children: [
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button, { className: "react-datepicker_dropdown_header", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
2623
2669
|
selectedValue,
|
|
2624
2670
|
suffix
|
|
2625
2671
|
] }) }) }),
|
|
2626
|
-
/* @__PURE__ */ (0,
|
|
2672
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes29.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2627
2673
|
import_themes6.Box,
|
|
2628
2674
|
{
|
|
2629
2675
|
maxHeight: "200px",
|
|
2630
2676
|
overflowY: "auto",
|
|
2631
2677
|
ref: scrollContainerRef,
|
|
2632
2678
|
style: { scrollbarWidth: "none" },
|
|
2633
|
-
children: /* @__PURE__ */ (0,
|
|
2679
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes22.Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2634
2680
|
Button,
|
|
2635
2681
|
{
|
|
2636
2682
|
className: "react-datepicker_dropdown_item",
|
|
@@ -2644,7 +2690,7 @@ function DropdownSelector({
|
|
|
2644
2690
|
e.preventDefault();
|
|
2645
2691
|
},
|
|
2646
2692
|
variant: "transparent",
|
|
2647
|
-
children: /* @__PURE__ */ (0,
|
|
2693
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
2648
2694
|
item,
|
|
2649
2695
|
suffix
|
|
2650
2696
|
] })
|
|
@@ -2675,8 +2721,8 @@ var getRenderCustomHeader = (props) => {
|
|
|
2675
2721
|
} = props;
|
|
2676
2722
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
2677
2723
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
2678
|
-
return /* @__PURE__ */ (0,
|
|
2679
|
-
/* @__PURE__ */ (0,
|
|
2724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
|
|
2725
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2680
2726
|
IconButton,
|
|
2681
2727
|
{
|
|
2682
2728
|
className: "react-datepicker_dropdown_header",
|
|
@@ -2684,11 +2730,11 @@ var getRenderCustomHeader = (props) => {
|
|
|
2684
2730
|
onClick: decreaseMonth,
|
|
2685
2731
|
type: "button",
|
|
2686
2732
|
variant: "ghost",
|
|
2687
|
-
children: /* @__PURE__ */ (0,
|
|
2733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
2688
2734
|
}
|
|
2689
2735
|
),
|
|
2690
|
-
/* @__PURE__ */ (0,
|
|
2691
|
-
/* @__PURE__ */ (0,
|
|
2736
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
2737
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2692
2738
|
DropdownSelector,
|
|
2693
2739
|
{
|
|
2694
2740
|
isOpen: isYearDropdownOpen,
|
|
@@ -2702,7 +2748,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2702
2748
|
suffix: "\uB144"
|
|
2703
2749
|
}
|
|
2704
2750
|
),
|
|
2705
|
-
/* @__PURE__ */ (0,
|
|
2751
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2706
2752
|
DropdownSelector,
|
|
2707
2753
|
{
|
|
2708
2754
|
isOpen: isMonthDropdownOpen,
|
|
@@ -2717,7 +2763,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2717
2763
|
}
|
|
2718
2764
|
)
|
|
2719
2765
|
] }),
|
|
2720
|
-
/* @__PURE__ */ (0,
|
|
2766
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2721
2767
|
IconButton,
|
|
2722
2768
|
{
|
|
2723
2769
|
className: "react-datepicker_dropdown_header",
|
|
@@ -2725,7 +2771,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2725
2771
|
onClick: increaseMonth,
|
|
2726
2772
|
type: "button",
|
|
2727
2773
|
variant: "ghost",
|
|
2728
|
-
children: /* @__PURE__ */ (0,
|
|
2774
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
2729
2775
|
}
|
|
2730
2776
|
)
|
|
2731
2777
|
] });
|
|
@@ -2736,7 +2782,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
2736
2782
|
// src/molecules/dot-navigation.tsx
|
|
2737
2783
|
var import_react28 = require("react");
|
|
2738
2784
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2739
|
-
var
|
|
2785
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2740
2786
|
function DotNavigation(props) {
|
|
2741
2787
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
2742
2788
|
const [currentDot, setCurrentDot] = (0, import_react28.useState)(
|
|
@@ -2762,9 +2808,9 @@ function DotNavigation(props) {
|
|
|
2762
2808
|
if (typeof dotIndex === "undefined") return;
|
|
2763
2809
|
setCurrentDot(dotIndex);
|
|
2764
2810
|
}, [dotIndex]);
|
|
2765
|
-
return /* @__PURE__ */ (0,
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
2766
2812
|
const isSelected = currentDot === index;
|
|
2767
|
-
return /* @__PURE__ */ (0,
|
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2768
2814
|
import_react_icons4.DotFilledIcon,
|
|
2769
2815
|
{
|
|
2770
2816
|
height: "24px",
|
|
@@ -2785,7 +2831,7 @@ function DotNavigation(props) {
|
|
|
2785
2831
|
// src/molecules/stepper.tsx
|
|
2786
2832
|
var import_react29 = require("react");
|
|
2787
2833
|
var import_themes53 = require("@radix-ui/themes");
|
|
2788
|
-
var
|
|
2834
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2789
2835
|
var StepContext = (0, import_react29.createContext)({
|
|
2790
2836
|
active: false,
|
|
2791
2837
|
completed: false,
|
|
@@ -2800,7 +2846,7 @@ function Root11(props) {
|
|
|
2800
2846
|
maxWidth,
|
|
2801
2847
|
direction = "vertical"
|
|
2802
2848
|
} = props;
|
|
2803
|
-
return /* @__PURE__ */ (0,
|
|
2849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2804
2850
|
import_themes22.Flex,
|
|
2805
2851
|
{
|
|
2806
2852
|
gap: "3",
|
|
@@ -2810,7 +2856,7 @@ function Root11(props) {
|
|
|
2810
2856
|
maxWidth
|
|
2811
2857
|
},
|
|
2812
2858
|
children: import_react29.Children.map(children, (child, index) => {
|
|
2813
|
-
return /* @__PURE__ */ (0,
|
|
2859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2814
2860
|
StepContext.Provider,
|
|
2815
2861
|
{
|
|
2816
2862
|
value: {
|
|
@@ -2834,7 +2880,7 @@ function Step(props) {
|
|
|
2834
2880
|
index,
|
|
2835
2881
|
direction = "vertical"
|
|
2836
2882
|
} = (0, import_react29.useContext)(StepContext);
|
|
2837
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
2883
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2838
2884
|
import_themes53.Separator,
|
|
2839
2885
|
{
|
|
2840
2886
|
style: {
|
|
@@ -2854,7 +2900,7 @@ function Step(props) {
|
|
|
2854
2900
|
}
|
|
2855
2901
|
return IncompleteStep;
|
|
2856
2902
|
}, [completed, active]);
|
|
2857
|
-
return /* @__PURE__ */ (0,
|
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
2858
2904
|
import_themes22.Flex,
|
|
2859
2905
|
{
|
|
2860
2906
|
align: "center",
|
|
@@ -2864,7 +2910,7 @@ function Step(props) {
|
|
|
2864
2910
|
style: { flex: 1 },
|
|
2865
2911
|
children: [
|
|
2866
2912
|
connector,
|
|
2867
|
-
/* @__PURE__ */ (0,
|
|
2913
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(InnerStep, { Icon, children })
|
|
2868
2914
|
]
|
|
2869
2915
|
}
|
|
2870
2916
|
);
|
|
@@ -2875,11 +2921,11 @@ function CompleteStep(props) {
|
|
|
2875
2921
|
const background = "var(--accent-a4)";
|
|
2876
2922
|
const border = "1px solid var(--accent-7)";
|
|
2877
2923
|
const color = "var(--accent-contrast)";
|
|
2878
|
-
return /* @__PURE__ */ (0,
|
|
2879
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
2925
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2880
2926
|
Avatar,
|
|
2881
2927
|
{
|
|
2882
|
-
fallback: /* @__PURE__ */ (0,
|
|
2928
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
2883
2929
|
radius: "full",
|
|
2884
2930
|
size: "medium",
|
|
2885
2931
|
style: {
|
|
@@ -2888,7 +2934,7 @@ function CompleteStep(props) {
|
|
|
2888
2934
|
}
|
|
2889
2935
|
}
|
|
2890
2936
|
),
|
|
2891
|
-
/* @__PURE__ */ (0,
|
|
2937
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
2892
2938
|
] });
|
|
2893
2939
|
}
|
|
2894
2940
|
function IncompleteStep(props) {
|
|
@@ -2896,11 +2942,11 @@ function IncompleteStep(props) {
|
|
|
2896
2942
|
const { completed, active, index } = (0, import_react29.useContext)(StepContext);
|
|
2897
2943
|
const background = "var(--gray-5)";
|
|
2898
2944
|
const color = "var(--gray-a11)";
|
|
2899
|
-
return /* @__PURE__ */ (0,
|
|
2900
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
2946
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2901
2947
|
Avatar,
|
|
2902
2948
|
{
|
|
2903
|
-
fallback: /* @__PURE__ */ (0,
|
|
2949
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
2904
2950
|
radius: "full",
|
|
2905
2951
|
size: "medium",
|
|
2906
2952
|
style: {
|
|
@@ -2908,7 +2954,7 @@ function IncompleteStep(props) {
|
|
|
2908
2954
|
}
|
|
2909
2955
|
}
|
|
2910
2956
|
),
|
|
2911
|
-
/* @__PURE__ */ (0,
|
|
2957
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
2912
2958
|
] });
|
|
2913
2959
|
}
|
|
2914
2960
|
function ActiveStep(props) {
|
|
@@ -2916,17 +2962,17 @@ function ActiveStep(props) {
|
|
|
2916
2962
|
const { completed, active, index } = (0, import_react29.useContext)(StepContext);
|
|
2917
2963
|
const background = "var(--accent-10)";
|
|
2918
2964
|
const color = "var(--accent-contrast)";
|
|
2919
|
-
return /* @__PURE__ */ (0,
|
|
2920
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
2966
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2921
2967
|
Avatar,
|
|
2922
2968
|
{
|
|
2923
|
-
fallback: /* @__PURE__ */ (0,
|
|
2969
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
2924
2970
|
radius: "full",
|
|
2925
2971
|
size: "medium",
|
|
2926
2972
|
style: { background }
|
|
2927
2973
|
}
|
|
2928
2974
|
),
|
|
2929
|
-
/* @__PURE__ */ (0,
|
|
2975
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2930
2976
|
] });
|
|
2931
2977
|
}
|
|
2932
2978
|
var Stepper = {
|
|
@@ -2937,7 +2983,7 @@ var Stepper = {
|
|
|
2937
2983
|
// src/molecules/tag-selector.tsx
|
|
2938
2984
|
var import_react30 = require("react");
|
|
2939
2985
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2940
|
-
var
|
|
2986
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2941
2987
|
var OPTION_HEIGHT = 32;
|
|
2942
2988
|
var stopDefaultEvents = (e) => {
|
|
2943
2989
|
e.preventDefault();
|
|
@@ -3127,11 +3173,11 @@ function TagSelector(props) {
|
|
|
3127
3173
|
const focusClassName = focus ? " focused" : "";
|
|
3128
3174
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
3129
3175
|
const errorClassName = error ? " error" : "";
|
|
3130
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
3131
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
3176
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
3177
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
3132
3178
|
}) });
|
|
3133
|
-
const editContent = /* @__PURE__ */ (0,
|
|
3134
|
-
/* @__PURE__ */ (0,
|
|
3179
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
3180
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3135
3181
|
import_themes22.Flex,
|
|
3136
3182
|
{
|
|
3137
3183
|
align: "center",
|
|
@@ -3143,22 +3189,22 @@ function TagSelector(props) {
|
|
|
3143
3189
|
selectedItem.map((item) => {
|
|
3144
3190
|
return tagRender ? tagRender(item, () => {
|
|
3145
3191
|
onDelete(item.id);
|
|
3146
|
-
}) : /* @__PURE__ */ (0,
|
|
3192
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Badge, { size: badgeSize, children: [
|
|
3147
3193
|
item.name,
|
|
3148
|
-
/* @__PURE__ */ (0,
|
|
3194
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3149
3195
|
Button,
|
|
3150
3196
|
{
|
|
3151
3197
|
onClick: () => {
|
|
3152
3198
|
onDelete(item.id);
|
|
3153
3199
|
},
|
|
3154
3200
|
variant: "transparent",
|
|
3155
|
-
children: /* @__PURE__ */ (0,
|
|
3201
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons5.Cross1Icon, {})
|
|
3156
3202
|
}
|
|
3157
3203
|
)
|
|
3158
3204
|
] }, item.id);
|
|
3159
3205
|
}),
|
|
3160
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
3161
|
-
/* @__PURE__ */ (0,
|
|
3206
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
3207
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3162
3208
|
AutoSizingInput,
|
|
3163
3209
|
{
|
|
3164
3210
|
onBlur,
|
|
@@ -3172,10 +3218,10 @@ function TagSelector(props) {
|
|
|
3172
3218
|
]
|
|
3173
3219
|
}
|
|
3174
3220
|
),
|
|
3175
|
-
focus ? /* @__PURE__ */ (0,
|
|
3221
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
3176
3222
|
] });
|
|
3177
|
-
return /* @__PURE__ */ (0,
|
|
3178
|
-
/* @__PURE__ */ (0,
|
|
3223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3179
3225
|
import_themes23.Grid,
|
|
3180
3226
|
{
|
|
3181
3227
|
align: "center",
|
|
@@ -3189,7 +3235,7 @@ function TagSelector(props) {
|
|
|
3189
3235
|
children: readOnly ? readonlyContent : editContent
|
|
3190
3236
|
}
|
|
3191
3237
|
) }),
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3238
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3193
3239
|
import_themes29.Popover.Content,
|
|
3194
3240
|
{
|
|
3195
3241
|
onOpenAutoFocus: preventDefault3,
|
|
@@ -3199,24 +3245,24 @@ function TagSelector(props) {
|
|
|
3199
3245
|
style: {
|
|
3200
3246
|
pointerEvents: "fill"
|
|
3201
3247
|
},
|
|
3202
|
-
children: /* @__PURE__ */ (0,
|
|
3248
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3203
3249
|
DropdownContainer,
|
|
3204
3250
|
{
|
|
3205
3251
|
currentItem: filteredOptions[focusIndex || 0],
|
|
3206
3252
|
items: filteredOptions,
|
|
3207
|
-
children: /* @__PURE__ */ (0,
|
|
3253
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3208
3254
|
import_themes35.ScrollArea,
|
|
3209
3255
|
{
|
|
3210
3256
|
ref: scrollRef,
|
|
3211
3257
|
scrollbars: "vertical",
|
|
3212
3258
|
style: { height: OPTION_HEIGHT * 8 },
|
|
3213
3259
|
type: "auto",
|
|
3214
|
-
children: /* @__PURE__ */ (0,
|
|
3260
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
3215
3261
|
const isSelected = Boolean(
|
|
3216
3262
|
selected.find((el) => el === item.id)
|
|
3217
3263
|
);
|
|
3218
3264
|
const isFocus = i === focusIndex;
|
|
3219
|
-
return /* @__PURE__ */ (0,
|
|
3265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3220
3266
|
Button,
|
|
3221
3267
|
{
|
|
3222
3268
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -3229,9 +3275,9 @@ function TagSelector(props) {
|
|
|
3229
3275
|
setFocusIndex(i);
|
|
3230
3276
|
},
|
|
3231
3277
|
variant: isSelected ? "soft" : "outline",
|
|
3232
|
-
children: /* @__PURE__ */ (0,
|
|
3278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
3233
3279
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
3234
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
3280
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
3235
3281
|
] })
|
|
3236
3282
|
},
|
|
3237
3283
|
item.id
|
|
@@ -3257,13 +3303,13 @@ var preventDefault3 = (e) => {
|
|
|
3257
3303
|
|
|
3258
3304
|
// src/theme/theme-provider.tsx
|
|
3259
3305
|
var import_themes54 = require("@radix-ui/themes");
|
|
3260
|
-
var
|
|
3306
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3261
3307
|
function ThemeProvider(props) {
|
|
3262
|
-
return /* @__PURE__ */ (0,
|
|
3308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes54.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
3263
3309
|
}
|
|
3264
3310
|
|
|
3265
3311
|
// src/molecules/learning-post.tsx
|
|
3266
|
-
var
|
|
3312
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3267
3313
|
function LearningPost(props) {
|
|
3268
3314
|
const {
|
|
3269
3315
|
defaultThemeProps,
|
|
@@ -3275,13 +3321,13 @@ function LearningPost(props) {
|
|
|
3275
3321
|
onPageBack,
|
|
3276
3322
|
children
|
|
3277
3323
|
} = props;
|
|
3278
|
-
return /* @__PURE__ */ (0,
|
|
3324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3279
3325
|
ThemeProvider,
|
|
3280
3326
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
3281
3327
|
accentColor: "iris",
|
|
3282
3328
|
scaling: "110%",
|
|
3283
3329
|
style: {},
|
|
3284
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3330
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3285
3331
|
import_themes23.Grid,
|
|
3286
3332
|
{
|
|
3287
3333
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -3293,8 +3339,8 @@ function LearningPost(props) {
|
|
|
3293
3339
|
px: "4",
|
|
3294
3340
|
width: "100%",
|
|
3295
3341
|
children: [
|
|
3296
|
-
/* @__PURE__ */ (0,
|
|
3297
|
-
/* @__PURE__ */ (0,
|
|
3342
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {}),
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3298
3344
|
import_themes22.Flex,
|
|
3299
3345
|
{
|
|
3300
3346
|
align: "center",
|
|
@@ -3304,15 +3350,15 @@ function LearningPost(props) {
|
|
|
3304
3350
|
overflow: "hidden",
|
|
3305
3351
|
width: "100%",
|
|
3306
3352
|
children: [
|
|
3307
|
-
/* @__PURE__ */ (0,
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
3353
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
3354
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3309
3355
|
import_themes23.Grid,
|
|
3310
3356
|
{
|
|
3311
3357
|
gap: "3",
|
|
3312
3358
|
mb: { initial: "4", sm: "0" },
|
|
3313
3359
|
style: { alignSelf: "flex-start" },
|
|
3314
3360
|
children: [
|
|
3315
|
-
/* @__PURE__ */ (0,
|
|
3361
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3316
3362
|
Heading2,
|
|
3317
3363
|
{
|
|
3318
3364
|
style: {
|
|
@@ -3324,16 +3370,16 @@ function LearningPost(props) {
|
|
|
3324
3370
|
children: title
|
|
3325
3371
|
}
|
|
3326
3372
|
),
|
|
3327
|
-
/* @__PURE__ */ (0,
|
|
3328
|
-
/* @__PURE__ */ (0,
|
|
3373
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { children: metaDescription }),
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
3329
3375
|
var _a;
|
|
3330
3376
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
3331
|
-
return /* @__PURE__ */ (0,
|
|
3377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
3332
3378
|
}) })
|
|
3333
3379
|
]
|
|
3334
3380
|
}
|
|
3335
3381
|
),
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3337
3383
|
import_themes2.AspectRatio,
|
|
3338
3384
|
{
|
|
3339
3385
|
ratio: 5 / 3,
|
|
@@ -3346,7 +3392,7 @@ function LearningPost(props) {
|
|
|
3346
3392
|
}
|
|
3347
3393
|
)
|
|
3348
3394
|
] }),
|
|
3349
|
-
/* @__PURE__ */ (0,
|
|
3395
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3350
3396
|
"div",
|
|
3351
3397
|
{
|
|
3352
3398
|
className: "gh-content",
|
|
@@ -3359,7 +3405,7 @@ function LearningPost(props) {
|
|
|
3359
3405
|
children
|
|
3360
3406
|
]
|
|
3361
3407
|
}
|
|
3362
|
-
) : /* @__PURE__ */ (0,
|
|
3408
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3363
3409
|
import_themes22.Flex,
|
|
3364
3410
|
{
|
|
3365
3411
|
align: "center",
|
|
@@ -3369,8 +3415,8 @@ function LearningPost(props) {
|
|
|
3369
3415
|
justify: "center",
|
|
3370
3416
|
width: "100%",
|
|
3371
3417
|
children: [
|
|
3372
|
-
/* @__PURE__ */ (0,
|
|
3373
|
-
/* @__PURE__ */ (0,
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
3419
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3374
3420
|
Heading2,
|
|
3375
3421
|
{
|
|
3376
3422
|
align: "center",
|
|
@@ -3381,7 +3427,7 @@ function LearningPost(props) {
|
|
|
3381
3427
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3382
3428
|
}
|
|
3383
3429
|
),
|
|
3384
|
-
/* @__PURE__ */ (0,
|
|
3430
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3385
3431
|
]
|
|
3386
3432
|
}
|
|
3387
3433
|
)
|
|
@@ -3391,9 +3437,9 @@ function LearningPost(props) {
|
|
|
3391
3437
|
|
|
3392
3438
|
// src/molecules/force-refresh.tsx
|
|
3393
3439
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
3394
|
-
var
|
|
3440
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3395
3441
|
function CodeSize3(props) {
|
|
3396
|
-
return /* @__PURE__ */ (0,
|
|
3442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3397
3443
|
import_themes13.Code,
|
|
3398
3444
|
{
|
|
3399
3445
|
style: {
|
|
@@ -3406,51 +3452,51 @@ function CodeSize3(props) {
|
|
|
3406
3452
|
);
|
|
3407
3453
|
}
|
|
3408
3454
|
function ForceRefresh() {
|
|
3409
|
-
return /* @__PURE__ */ (0,
|
|
3410
|
-
/* @__PURE__ */ (0,
|
|
3455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
3456
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3411
3457
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
3412
3458
|
" ",
|
|
3413
|
-
/* @__PURE__ */ (0,
|
|
3414
|
-
/* @__PURE__ */ (0,
|
|
3459
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(CodeSize3, { children: [
|
|
3460
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
3415
3461
|
"\uB354\uBCF4\uAE30"
|
|
3416
3462
|
] }),
|
|
3417
3463
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3418
3464
|
] }),
|
|
3419
|
-
/* @__PURE__ */ (0,
|
|
3465
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3420
3466
|
"2. ",
|
|
3421
|
-
/* @__PURE__ */ (0,
|
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
3422
3468
|
" ",
|
|
3423
3469
|
">",
|
|
3424
3470
|
" ",
|
|
3425
|
-
/* @__PURE__ */ (0,
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
3426
3472
|
" \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.)"
|
|
3427
3473
|
] }),
|
|
3428
|
-
/* @__PURE__ */ (0,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3474
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
3475
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3430
3476
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
3431
|
-
/* @__PURE__ */ (0,
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
3432
3478
|
] }),
|
|
3433
|
-
/* @__PURE__ */ (0,
|
|
3479
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3434
3480
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3481
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
3436
3482
|
" + ",
|
|
3437
|
-
/* @__PURE__ */ (0,
|
|
3483
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
3438
3484
|
" + ",
|
|
3439
|
-
/* @__PURE__ */ (0,
|
|
3485
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes26.Kbd, { children: "I" })
|
|
3440
3486
|
] })
|
|
3441
3487
|
] }),
|
|
3442
|
-
/* @__PURE__ */ (0,
|
|
3488
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3443
3489
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
3444
3490
|
" ",
|
|
3445
|
-
/* @__PURE__ */ (0,
|
|
3446
|
-
/* @__PURE__ */ (0,
|
|
3491
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(CodeSize3, { children: [
|
|
3492
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons6.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
3447
3493
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
3448
3494
|
] }),
|
|
3449
3495
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3450
3496
|
] }),
|
|
3451
|
-
/* @__PURE__ */ (0,
|
|
3497
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Typo, { children: [
|
|
3452
3498
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
3453
|
-
/* @__PURE__ */ (0,
|
|
3499
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
3454
3500
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
3455
3501
|
] })
|
|
3456
3502
|
] });
|
|
@@ -3460,7 +3506,7 @@ function ForceRefresh() {
|
|
|
3460
3506
|
var import_react31 = require("react");
|
|
3461
3507
|
var import_date_fns = require("date-fns");
|
|
3462
3508
|
var import_clsx4 = require("clsx");
|
|
3463
|
-
var
|
|
3509
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3464
3510
|
function DatePickerButton(props) {
|
|
3465
3511
|
const _a = props, { size, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "format", "disabled"]);
|
|
3466
3512
|
const placeholder = rest.placeholder || "\uB0A0\uC9DC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694";
|
|
@@ -3484,18 +3530,18 @@ function DatePickerButton(props) {
|
|
|
3484
3530
|
const placeholderVisible = (0, import_react31.useMemo)(() => {
|
|
3485
3531
|
return rest.selected ? "" : "placeholder-visible";
|
|
3486
3532
|
}, [rest.selected]);
|
|
3487
|
-
return /* @__PURE__ */ (0,
|
|
3533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3488
3534
|
DatePicker,
|
|
3489
3535
|
__spreadProps(__spreadValues({
|
|
3490
|
-
customInput: /* @__PURE__ */ (0,
|
|
3536
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3491
3537
|
TextField.Root,
|
|
3492
3538
|
{
|
|
3493
3539
|
className: placeholderVisible,
|
|
3494
3540
|
placeholder: placeholder || "",
|
|
3495
3541
|
value: rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
3496
3542
|
children: [
|
|
3497
|
-
/* @__PURE__ */ (0,
|
|
3498
|
-
/* @__PURE__ */ (0,
|
|
3543
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TextField.Slot, { className: "hide-slot" }),
|
|
3544
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TextField.Slot, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons2.CalendarIcon, {}) })
|
|
3499
3545
|
]
|
|
3500
3546
|
}
|
|
3501
3547
|
) })),
|
|
@@ -3604,7 +3650,7 @@ function getCalloutIconComponent(iconName) {
|
|
|
3604
3650
|
}
|
|
3605
3651
|
|
|
3606
3652
|
// src/molecules/time-select.tsx
|
|
3607
|
-
var
|
|
3653
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3608
3654
|
var getOptionValue = (date, timeValue) => {
|
|
3609
3655
|
if (date && timeValue) {
|
|
3610
3656
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -3630,21 +3676,21 @@ function TimeSelect(_a) {
|
|
|
3630
3676
|
const [minOption, maxOption] = (0, import_react32.useMemo)(() => {
|
|
3631
3677
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
3632
3678
|
}, [maxTime, minTime, time]);
|
|
3633
|
-
return /* @__PURE__ */ (0,
|
|
3634
|
-
/* @__PURE__ */ (0,
|
|
3635
|
-
/* @__PURE__ */ (0,
|
|
3679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
3680
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
3681
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
3636
3682
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
3637
3683
|
if (!visible) {
|
|
3638
3684
|
return null;
|
|
3639
3685
|
}
|
|
3640
|
-
return /* @__PURE__ */ (0,
|
|
3686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Select.Item, { value: option, children: option }, option);
|
|
3641
3687
|
}) })
|
|
3642
3688
|
] }));
|
|
3643
3689
|
}
|
|
3644
3690
|
|
|
3645
3691
|
// src/molecules/radio-button-card.tsx
|
|
3646
3692
|
var import_react33 = require("react");
|
|
3647
|
-
var
|
|
3693
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3648
3694
|
var RadioCardContext = (0, import_react33.createContext)({});
|
|
3649
3695
|
function Root12(props) {
|
|
3650
3696
|
const [value, setValue] = (0, import_react33.useState)(props.value || props.defaultValue);
|
|
@@ -3656,7 +3702,7 @@ function Root12(props) {
|
|
|
3656
3702
|
},
|
|
3657
3703
|
[props]
|
|
3658
3704
|
);
|
|
3659
|
-
return /* @__PURE__ */ (0,
|
|
3705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
3660
3706
|
}
|
|
3661
3707
|
function Item2(_a) {
|
|
3662
3708
|
var _b = _a, {
|
|
@@ -3673,9 +3719,9 @@ function Item2(_a) {
|
|
|
3673
3719
|
"justify",
|
|
3674
3720
|
"RadioWrapper"
|
|
3675
3721
|
]);
|
|
3676
|
-
return /* @__PURE__ */ (0,
|
|
3722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
3677
3723
|
children,
|
|
3678
|
-
/* @__PURE__ */ (0,
|
|
3724
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3679
3725
|
import_themes32.Radio,
|
|
3680
3726
|
{
|
|
3681
3727
|
checked: itemRest.value === value,
|
|
@@ -3692,24 +3738,24 @@ var RadioButtonCard = {
|
|
|
3692
3738
|
|
|
3693
3739
|
// src/molecules/download-card.tsx
|
|
3694
3740
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
3695
|
-
var
|
|
3741
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3696
3742
|
function DownloadCard({
|
|
3697
3743
|
fileName,
|
|
3698
3744
|
url,
|
|
3699
3745
|
createdAt,
|
|
3700
3746
|
size
|
|
3701
3747
|
}) {
|
|
3702
|
-
return /* @__PURE__ */ (0,
|
|
3748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3703
3749
|
IconButton,
|
|
3704
3750
|
{
|
|
3705
3751
|
mt: "3",
|
|
3706
3752
|
size: "large",
|
|
3707
3753
|
style: { width: "100%", height: 56 },
|
|
3708
3754
|
variant: "soft",
|
|
3709
|
-
children: /* @__PURE__ */ (0,
|
|
3710
|
-
/* @__PURE__ */ (0,
|
|
3711
|
-
/* @__PURE__ */ (0,
|
|
3712
|
-
/* @__PURE__ */ (0,
|
|
3755
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
3756
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_icons7.DownloadIcon, { height: 20, width: 20 }) }),
|
|
3757
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
3758
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3713
3759
|
Typo,
|
|
3714
3760
|
{
|
|
3715
3761
|
style: {
|
|
@@ -3719,7 +3765,7 @@ function DownloadCard({
|
|
|
3719
3765
|
children: fileName
|
|
3720
3766
|
}
|
|
3721
3767
|
),
|
|
3722
|
-
/* @__PURE__ */ (0,
|
|
3768
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
3723
3769
|
] })
|
|
3724
3770
|
] })
|
|
3725
3771
|
}
|
|
@@ -3727,22 +3773,22 @@ function DownloadCard({
|
|
|
3727
3773
|
}
|
|
3728
3774
|
|
|
3729
3775
|
// src/molecules/ghost-post.tsx
|
|
3730
|
-
var
|
|
3776
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3731
3777
|
function GhostPost(props) {
|
|
3732
3778
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
3733
|
-
return /* @__PURE__ */ (0,
|
|
3779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3734
3780
|
ThemeProvider,
|
|
3735
3781
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
3736
3782
|
accentColor: "iris",
|
|
3737
3783
|
scaling: "110%",
|
|
3738
3784
|
style: {},
|
|
3739
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3785
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3740
3786
|
"div",
|
|
3741
3787
|
{
|
|
3742
3788
|
className: "gh-content",
|
|
3743
3789
|
dangerouslySetInnerHTML: { __html: html }
|
|
3744
3790
|
}
|
|
3745
|
-
) }) : /* @__PURE__ */ (0,
|
|
3791
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3746
3792
|
import_themes22.Flex,
|
|
3747
3793
|
{
|
|
3748
3794
|
align: "center",
|
|
@@ -3752,8 +3798,8 @@ function GhostPost(props) {
|
|
|
3752
3798
|
justify: "center",
|
|
3753
3799
|
width: "100%",
|
|
3754
3800
|
children: [
|
|
3755
|
-
/* @__PURE__ */ (0,
|
|
3756
|
-
/* @__PURE__ */ (0,
|
|
3801
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
3802
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3757
3803
|
Heading2,
|
|
3758
3804
|
{
|
|
3759
3805
|
align: "center",
|
|
@@ -3764,7 +3810,7 @@ function GhostPost(props) {
|
|
|
3764
3810
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3765
3811
|
}
|
|
3766
3812
|
),
|
|
3767
|
-
/* @__PURE__ */ (0,
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3768
3814
|
]
|
|
3769
3815
|
}
|
|
3770
3816
|
)
|
|
@@ -3774,7 +3820,22 @@ function GhostPost(props) {
|
|
|
3774
3820
|
|
|
3775
3821
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
3776
3822
|
var import_react34 = require("react");
|
|
3777
|
-
var
|
|
3823
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3824
|
+
var EMPTY_SELECTED_ITEM = {
|
|
3825
|
+
uuid: "",
|
|
3826
|
+
type: "sectionTitle",
|
|
3827
|
+
title: ""
|
|
3828
|
+
};
|
|
3829
|
+
function getInitialSelectedIndex(args) {
|
|
3830
|
+
const { initialSelectedIndex, selectableIndexes } = args;
|
|
3831
|
+
if (typeof initialSelectedIndex === "number" && selectableIndexes.includes(initialSelectedIndex)) {
|
|
3832
|
+
return initialSelectedIndex;
|
|
3833
|
+
}
|
|
3834
|
+
if (selectableIndexes.length > 0) {
|
|
3835
|
+
return selectableIndexes[0];
|
|
3836
|
+
}
|
|
3837
|
+
return 0;
|
|
3838
|
+
}
|
|
3778
3839
|
var CurriculumContext = (0, import_react34.createContext)(
|
|
3779
3840
|
void 0
|
|
3780
3841
|
);
|
|
@@ -3784,6 +3845,7 @@ function CurriculumProvider(props) {
|
|
|
3784
3845
|
curriculum,
|
|
3785
3846
|
onReviewSubmit,
|
|
3786
3847
|
onReviewValueChange,
|
|
3848
|
+
onClickfileDownload,
|
|
3787
3849
|
curriculumReviewAnswers,
|
|
3788
3850
|
tempCurriculumReviewAnswers,
|
|
3789
3851
|
curriculumCompleteMap,
|
|
@@ -3808,8 +3870,19 @@ function CurriculumProvider(props) {
|
|
|
3808
3870
|
[list]
|
|
3809
3871
|
);
|
|
3810
3872
|
const [selectedIndexState, setSelectedIndexState] = (0, import_react34.useState)(
|
|
3811
|
-
|
|
3873
|
+
getInitialSelectedIndex({ initialSelectedIndex, selectableIndexes })
|
|
3812
3874
|
);
|
|
3875
|
+
(0, import_react34.useEffect)(() => {
|
|
3876
|
+
if (selectableIndexes.length === 0) {
|
|
3877
|
+
if (selectedIndexState !== 0) {
|
|
3878
|
+
setSelectedIndexState(0);
|
|
3879
|
+
}
|
|
3880
|
+
return;
|
|
3881
|
+
}
|
|
3882
|
+
if (!selectableIndexes.includes(selectedIndexState)) {
|
|
3883
|
+
setSelectedIndexState(selectableIndexes[0]);
|
|
3884
|
+
}
|
|
3885
|
+
}, [selectableIndexes, selectedIndexState]);
|
|
3813
3886
|
const setSelectedIndex = (0, import_react34.useCallback)(
|
|
3814
3887
|
(idx) => {
|
|
3815
3888
|
if (selectableIndexes.includes(idx)) {
|
|
@@ -3860,12 +3933,19 @@ function CurriculumProvider(props) {
|
|
|
3860
3933
|
const selectedId = (0, import_react34.useMemo)(
|
|
3861
3934
|
() => {
|
|
3862
3935
|
var _a, _b;
|
|
3936
|
+
if (selectedIndexState < 0 || selectedIndexState >= list.length) {
|
|
3937
|
+
return "";
|
|
3938
|
+
}
|
|
3863
3939
|
return (_b = (_a = list[selectedIndexState]) == null ? void 0 : _a.uuid) != null ? _b : "";
|
|
3864
3940
|
},
|
|
3865
3941
|
[list, selectedIndexState]
|
|
3866
3942
|
);
|
|
3867
3943
|
const selectedItem = (0, import_react34.useMemo)(() => {
|
|
3868
|
-
|
|
3944
|
+
var _a;
|
|
3945
|
+
if (selectedIndexState < 0 || selectedIndexState >= list.length) {
|
|
3946
|
+
return EMPTY_SELECTED_ITEM;
|
|
3947
|
+
}
|
|
3948
|
+
return (_a = list[selectedIndexState]) != null ? _a : EMPTY_SELECTED_ITEM;
|
|
3869
3949
|
}, [list, selectedIndexState]);
|
|
3870
3950
|
const selectedSectionTitle = (0, import_react34.useMemo)(() => {
|
|
3871
3951
|
var _a;
|
|
@@ -3873,9 +3953,14 @@ function CurriculumProvider(props) {
|
|
|
3873
3953
|
return (_a = prevItems.find((item) => item.type === "sectionTitle")) != null ? _a : null;
|
|
3874
3954
|
}, [list, selectedIndexState]);
|
|
3875
3955
|
(0, import_react34.useEffect)(() => {
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3956
|
+
const inBounds = selectedIndexState >= 0 && selectedIndexState < list.length;
|
|
3957
|
+
if (!inBounds) return;
|
|
3958
|
+
const item = list[selectedIndexState];
|
|
3959
|
+
if (!item) return;
|
|
3960
|
+
if (item.type === "sectionTitle") return;
|
|
3961
|
+
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(item);
|
|
3962
|
+
}, [list, onChangeSelectedContent, selectedIndexState]);
|
|
3963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3879
3964
|
CurriculumContext.Provider,
|
|
3880
3965
|
{
|
|
3881
3966
|
value: {
|
|
@@ -3893,6 +3978,7 @@ function CurriculumProvider(props) {
|
|
|
3893
3978
|
scrollAreaRef: sidebarRef,
|
|
3894
3979
|
onReviewSubmit,
|
|
3895
3980
|
onReviewValueChange,
|
|
3981
|
+
onClickfileDownload,
|
|
3896
3982
|
curriculumReviewAnswers,
|
|
3897
3983
|
tempCurriculumReviewAnswers,
|
|
3898
3984
|
curriculumCompleteMap,
|
|
@@ -3914,7 +4000,7 @@ function useCurriculumContext() {
|
|
|
3914
4000
|
|
|
3915
4001
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3916
4002
|
var import_react35 = require("react");
|
|
3917
|
-
var
|
|
4003
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3918
4004
|
function CurriculumSubNav() {
|
|
3919
4005
|
const {
|
|
3920
4006
|
selectedItem,
|
|
@@ -3935,7 +4021,7 @@ function CurriculumSubNav() {
|
|
|
3935
4021
|
scrollNavItem(moveIndex.toString());
|
|
3936
4022
|
});
|
|
3937
4023
|
}, [selectNext, scrollNavItem]);
|
|
3938
|
-
return /* @__PURE__ */ (0,
|
|
4024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3939
4025
|
import_themes23.Grid,
|
|
3940
4026
|
{
|
|
3941
4027
|
align: "center",
|
|
@@ -3945,20 +4031,20 @@ function CurriculumSubNav() {
|
|
|
3945
4031
|
py: "2",
|
|
3946
4032
|
rows: "auto",
|
|
3947
4033
|
children: [
|
|
3948
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
4034
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3949
4035
|
IconButton,
|
|
3950
4036
|
{
|
|
3951
4037
|
color: "gray",
|
|
3952
4038
|
onClick: onClickPrev,
|
|
3953
4039
|
size: { initial: "medium", md: "large" },
|
|
3954
4040
|
variant: "ghost",
|
|
3955
|
-
children: /* @__PURE__ */ (0,
|
|
4041
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3956
4042
|
}
|
|
3957
|
-
) : /* @__PURE__ */ (0,
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
3960
|
-
/* @__PURE__ */ (0,
|
|
3961
|
-
/* @__PURE__ */ (0,
|
|
4043
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes6.Box, {}),
|
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes6.Box, { width: "100%", children: [
|
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes6.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes6.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3962
4048
|
Typo,
|
|
3963
4049
|
{
|
|
3964
4050
|
as: "p",
|
|
@@ -3970,16 +4056,16 @@ function CurriculumSubNav() {
|
|
|
3970
4056
|
}
|
|
3971
4057
|
)
|
|
3972
4058
|
] }),
|
|
3973
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
4059
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3974
4060
|
IconButton,
|
|
3975
4061
|
{
|
|
3976
4062
|
color: "gray",
|
|
3977
4063
|
onClick: onClickNext,
|
|
3978
4064
|
size: { initial: "medium", md: "large" },
|
|
3979
4065
|
variant: "ghost",
|
|
3980
|
-
children: /* @__PURE__ */ (0,
|
|
4066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons2.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3981
4067
|
}
|
|
3982
|
-
) : /* @__PURE__ */ (0,
|
|
4068
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes6.Box, {})
|
|
3983
4069
|
]
|
|
3984
4070
|
}
|
|
3985
4071
|
);
|
|
@@ -3987,12 +4073,12 @@ function CurriculumSubNav() {
|
|
|
3987
4073
|
|
|
3988
4074
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3989
4075
|
var import_react36 = require("react");
|
|
3990
|
-
var
|
|
4076
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3991
4077
|
function CurriculumVideo(props) {
|
|
3992
4078
|
const { item } = props;
|
|
3993
4079
|
const { url } = item;
|
|
3994
4080
|
const [isLoading, setIsLoading] = (0, import_react36.useState)(true);
|
|
3995
|
-
return /* @__PURE__ */ (0,
|
|
4081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
3996
4082
|
import_themes22.Flex,
|
|
3997
4083
|
{
|
|
3998
4084
|
align: "center",
|
|
@@ -4004,7 +4090,7 @@ function CurriculumVideo(props) {
|
|
|
4004
4090
|
position: "relative"
|
|
4005
4091
|
},
|
|
4006
4092
|
children: [
|
|
4007
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
4093
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4008
4094
|
import_themes22.Flex,
|
|
4009
4095
|
{
|
|
4010
4096
|
align: "center",
|
|
@@ -4019,10 +4105,10 @@ function CurriculumVideo(props) {
|
|
|
4019
4105
|
color: "white"
|
|
4020
4106
|
},
|
|
4021
4107
|
width: "100%",
|
|
4022
|
-
children: /* @__PURE__ */ (0,
|
|
4108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes49.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
4023
4109
|
}
|
|
4024
4110
|
) : null,
|
|
4025
|
-
/* @__PURE__ */ (0,
|
|
4111
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4026
4112
|
"iframe",
|
|
4027
4113
|
{
|
|
4028
4114
|
allowFullScreen: true,
|
|
@@ -4052,7 +4138,7 @@ var import_react37 = require("react");
|
|
|
4052
4138
|
var import_formik = require("formik");
|
|
4053
4139
|
var import_lodash_es = require("lodash-es");
|
|
4054
4140
|
var Yup = __toESM(require("yup"), 1);
|
|
4055
|
-
var
|
|
4141
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4056
4142
|
var CurriculumReviewContext = (0, import_react37.createContext)(void 0);
|
|
4057
4143
|
function getInitialAnswers(defaultValues, questions) {
|
|
4058
4144
|
return questions.reduce((acc, q) => {
|
|
@@ -4181,7 +4267,7 @@ function CurriculumReviewProvider({
|
|
|
4181
4267
|
});
|
|
4182
4268
|
}
|
|
4183
4269
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
4184
|
-
return /* @__PURE__ */ (0,
|
|
4270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4185
4271
|
CurriculumReviewContext.Provider,
|
|
4186
4272
|
{
|
|
4187
4273
|
value: {
|
|
@@ -4223,7 +4309,8 @@ var CurriculumListIcons = {
|
|
|
4223
4309
|
video: CirclePlayIcon,
|
|
4224
4310
|
quote: CircleQuoteIcon,
|
|
4225
4311
|
check: CircleCheckIcon,
|
|
4226
|
-
star: CircleSatisfactionIcon
|
|
4312
|
+
star: CircleSatisfactionIcon,
|
|
4313
|
+
file: CircleFileIcon
|
|
4227
4314
|
};
|
|
4228
4315
|
var getCurriculumIcon = ({
|
|
4229
4316
|
type,
|
|
@@ -4244,6 +4331,8 @@ var getCurriculumIcon = ({
|
|
|
4244
4331
|
return CircleSatisfactionIcon;
|
|
4245
4332
|
case "aiTraining":
|
|
4246
4333
|
return CircleChatIcon;
|
|
4334
|
+
case "fileDownload":
|
|
4335
|
+
return CircleFileIcon;
|
|
4247
4336
|
case "review":
|
|
4248
4337
|
default:
|
|
4249
4338
|
return CirclePencilIcon;
|
|
@@ -4288,14 +4377,16 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
4288
4377
|
case "review":
|
|
4289
4378
|
return "\uB9AC\uBDF0";
|
|
4290
4379
|
case "aiTraining":
|
|
4291
|
-
return "AI \
|
|
4380
|
+
return "AI \uB864\uD50C\uB808\uC774";
|
|
4381
|
+
case "fileDownload":
|
|
4382
|
+
return "\uC790\uB8CC \uB2E4\uC6B4\uB85C\uB4DC";
|
|
4292
4383
|
default:
|
|
4293
4384
|
return "";
|
|
4294
4385
|
}
|
|
4295
4386
|
};
|
|
4296
4387
|
|
|
4297
4388
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
4298
|
-
var
|
|
4389
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4299
4390
|
var renderPreviewContent = (args) => {
|
|
4300
4391
|
const { question } = args;
|
|
4301
4392
|
const Icon = getCurriculumIcon({
|
|
@@ -4308,7 +4399,7 @@ var renderPreviewContent = (args) => {
|
|
|
4308
4399
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
4309
4400
|
].filter(Boolean).join(" | ");
|
|
4310
4401
|
};
|
|
4311
|
-
return /* @__PURE__ */ (0,
|
|
4402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
4312
4403
|
import_themes23.Grid,
|
|
4313
4404
|
{
|
|
4314
4405
|
columns: "16px 1fr",
|
|
@@ -4317,10 +4408,10 @@ var renderPreviewContent = (args) => {
|
|
|
4317
4408
|
py: "2",
|
|
4318
4409
|
width: "100%",
|
|
4319
4410
|
children: [
|
|
4320
|
-
/* @__PURE__ */ (0,
|
|
4321
|
-
/* @__PURE__ */ (0,
|
|
4322
|
-
/* @__PURE__ */ (0,
|
|
4323
|
-
/* @__PURE__ */ (0,
|
|
4411
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
4412
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes6.Box, { children: [
|
|
4413
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
4414
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
4324
4415
|
] })
|
|
4325
4416
|
]
|
|
4326
4417
|
},
|
|
@@ -4343,7 +4434,7 @@ var renderReviewContent = (args) => {
|
|
|
4343
4434
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
4344
4435
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
4345
4436
|
const value = getReviewContentValue(question, answer);
|
|
4346
|
-
return /* @__PURE__ */ (0,
|
|
4437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
4347
4438
|
import_themes23.Grid,
|
|
4348
4439
|
{
|
|
4349
4440
|
columns: "16px 1fr",
|
|
@@ -4352,10 +4443,10 @@ var renderReviewContent = (args) => {
|
|
|
4352
4443
|
py: "2",
|
|
4353
4444
|
width: "100%",
|
|
4354
4445
|
children: [
|
|
4355
|
-
/* @__PURE__ */ (0,
|
|
4356
|
-
/* @__PURE__ */ (0,
|
|
4357
|
-
/* @__PURE__ */ (0,
|
|
4358
|
-
/* @__PURE__ */ (0,
|
|
4446
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { color }) }),
|
|
4447
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes6.Box, { children: [
|
|
4448
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
4449
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
4359
4450
|
] })
|
|
4360
4451
|
]
|
|
4361
4452
|
},
|
|
@@ -4364,7 +4455,7 @@ var renderReviewContent = (args) => {
|
|
|
4364
4455
|
};
|
|
4365
4456
|
function StartReview({ onStart }) {
|
|
4366
4457
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
4367
|
-
return /* @__PURE__ */ (0,
|
|
4458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4368
4459
|
import_themes22.Flex,
|
|
4369
4460
|
{
|
|
4370
4461
|
align: "center",
|
|
@@ -4372,7 +4463,7 @@ function StartReview({ onStart }) {
|
|
|
4372
4463
|
height: "100%",
|
|
4373
4464
|
justify: "center",
|
|
4374
4465
|
width: "100%",
|
|
4375
|
-
children: /* @__PURE__ */ (0,
|
|
4466
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
4376
4467
|
import_themes22.Flex,
|
|
4377
4468
|
{
|
|
4378
4469
|
align: "center",
|
|
@@ -4385,21 +4476,21 @@ function StartReview({ onStart }) {
|
|
|
4385
4476
|
px: { initial: "4", sm: "0" },
|
|
4386
4477
|
width: "100%",
|
|
4387
4478
|
children: [
|
|
4388
|
-
/* @__PURE__ */ (0,
|
|
4389
|
-
/* @__PURE__ */ (0,
|
|
4390
|
-
/* @__PURE__ */ (0,
|
|
4391
|
-
/* @__PURE__ */ (0,
|
|
4392
|
-
/* @__PURE__ */ (0,
|
|
4479
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
4480
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
4481
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes39.Separator, { my: "4", style: { width: 100 } }),
|
|
4482
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
4483
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
4393
4484
|
" ",
|
|
4394
|
-
/* @__PURE__ */ (0,
|
|
4485
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { children: reviewContents.description })
|
|
4395
4486
|
] }),
|
|
4396
|
-
/* @__PURE__ */ (0,
|
|
4487
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes6.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
4397
4488
|
if (done) {
|
|
4398
4489
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
4399
4490
|
}
|
|
4400
4491
|
return renderPreviewContent({ question });
|
|
4401
4492
|
}) }),
|
|
4402
|
-
/* @__PURE__ */ (0,
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
4403
4494
|
]
|
|
4404
4495
|
}
|
|
4405
4496
|
)
|
|
@@ -4409,13 +4500,13 @@ function StartReview({ onStart }) {
|
|
|
4409
4500
|
var start_review_default = StartReview;
|
|
4410
4501
|
|
|
4411
4502
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
4412
|
-
var
|
|
4503
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4413
4504
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
4414
4505
|
function CompleteReview(props) {
|
|
4415
4506
|
const { onClickReviewMyAnswer } = props;
|
|
4416
4507
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
4417
4508
|
const { reviewMeta } = curriculum.contents;
|
|
4418
|
-
return /* @__PURE__ */ (0,
|
|
4509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4419
4510
|
import_themes22.Flex,
|
|
4420
4511
|
{
|
|
4421
4512
|
align: "center",
|
|
@@ -4428,9 +4519,9 @@ function CompleteReview(props) {
|
|
|
4428
4519
|
my: "6",
|
|
4429
4520
|
width: "100%",
|
|
4430
4521
|
children: [
|
|
4431
|
-
/* @__PURE__ */ (0,
|
|
4432
|
-
/* @__PURE__ */ (0,
|
|
4433
|
-
/* @__PURE__ */ (0,
|
|
4522
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { align: "center", direction: "column", children: [
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.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" }),
|
|
4524
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4434
4525
|
"img",
|
|
4435
4526
|
{
|
|
4436
4527
|
alt: "complete-review",
|
|
@@ -4439,19 +4530,19 @@ function CompleteReview(props) {
|
|
|
4439
4530
|
width: 118
|
|
4440
4531
|
}
|
|
4441
4532
|
),
|
|
4442
|
-
/* @__PURE__ */ (0,
|
|
4443
|
-
/* @__PURE__ */ (0,
|
|
4444
|
-
/* @__PURE__ */ (0,
|
|
4533
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
4534
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading5", children: reviewContents.title }),
|
|
4535
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.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.
|
|
4445
4536
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
4446
4537
|
] }),
|
|
4447
|
-
/* @__PURE__ */ (0,
|
|
4448
|
-
/* @__PURE__ */ (0,
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes23.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
4539
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
4449
4540
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
4450
|
-
/* @__PURE__ */ (0,
|
|
4541
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons2.ResetIcon, {})
|
|
4451
4542
|
] }),
|
|
4452
|
-
/* @__PURE__ */ (0,
|
|
4543
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
4453
4544
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
4454
|
-
/* @__PURE__ */ (0,
|
|
4545
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons2.HomeIcon, {})
|
|
4455
4546
|
] })
|
|
4456
4547
|
] })
|
|
4457
4548
|
]
|
|
@@ -4461,9 +4552,9 @@ function CompleteReview(props) {
|
|
|
4461
4552
|
var complete_review_default = CompleteReview;
|
|
4462
4553
|
|
|
4463
4554
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
4464
|
-
var
|
|
4555
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4465
4556
|
function AlignCenter(props) {
|
|
4466
|
-
return /* @__PURE__ */ (0,
|
|
4557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4467
4558
|
import_themes22.Flex,
|
|
4468
4559
|
__spreadValues({
|
|
4469
4560
|
align: "center",
|
|
@@ -4478,7 +4569,7 @@ function ReviewQuestionLayout({
|
|
|
4478
4569
|
Body,
|
|
4479
4570
|
Footer
|
|
4480
4571
|
}) {
|
|
4481
|
-
return /* @__PURE__ */ (0,
|
|
4572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4482
4573
|
import_themes23.Grid,
|
|
4483
4574
|
{
|
|
4484
4575
|
align: "center",
|
|
@@ -4491,18 +4582,18 @@ function ReviewQuestionLayout({
|
|
|
4491
4582
|
},
|
|
4492
4583
|
width: "100%",
|
|
4493
4584
|
children: [
|
|
4494
|
-
/* @__PURE__ */ (0,
|
|
4495
|
-
/* @__PURE__ */ (0,
|
|
4496
|
-
/* @__PURE__ */ (0,
|
|
4585
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes6.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
4586
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4587
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4497
4588
|
AlignCenter,
|
|
4498
4589
|
{
|
|
4499
4590
|
p: "3",
|
|
4500
4591
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
4501
|
-
children: /* @__PURE__ */ (0,
|
|
4592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes6.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
4502
4593
|
}
|
|
4503
4594
|
),
|
|
4504
|
-
/* @__PURE__ */ (0,
|
|
4505
|
-
/* @__PURE__ */ (0,
|
|
4595
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes39.Separator, { size: "4" }),
|
|
4596
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes6.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
4506
4597
|
]
|
|
4507
4598
|
}
|
|
4508
4599
|
);
|
|
@@ -4510,14 +4601,14 @@ function ReviewQuestionLayout({
|
|
|
4510
4601
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
4511
4602
|
|
|
4512
4603
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
4513
|
-
var
|
|
4604
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4514
4605
|
function ReviewQuestionHeader({
|
|
4515
4606
|
index,
|
|
4516
4607
|
total
|
|
4517
4608
|
}) {
|
|
4518
4609
|
const { reviewContents } = useCurriculumReviewContext();
|
|
4519
|
-
return /* @__PURE__ */ (0,
|
|
4520
|
-
/* @__PURE__ */ (0,
|
|
4610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes6.Box, { height: "100%", width: "100%", children: [
|
|
4611
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes23.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4521
4612
|
Heading2,
|
|
4522
4613
|
{
|
|
4523
4614
|
mb: "3",
|
|
@@ -4526,22 +4617,22 @@ function ReviewQuestionHeader({
|
|
|
4526
4617
|
children: reviewContents.title
|
|
4527
4618
|
}
|
|
4528
4619
|
) }),
|
|
4529
|
-
/* @__PURE__ */ (0,
|
|
4530
|
-
/* @__PURE__ */ (0,
|
|
4531
|
-
/* @__PURE__ */ (0,
|
|
4620
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes22.Flex, { justify: "between", mb: "2", width: "100%", children: [
|
|
4621
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: "\uC9C4\uD589 \uC0C1\uD669" }),
|
|
4622
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: [
|
|
4532
4623
|
index + 1,
|
|
4533
4624
|
" / ",
|
|
4534
4625
|
total,
|
|
4535
4626
|
" \uC644\uB8CC"
|
|
4536
4627
|
] })
|
|
4537
4628
|
] }),
|
|
4538
|
-
/* @__PURE__ */ (0,
|
|
4629
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes30.Progress, { color: "iris", max: total, value: index + 1 })
|
|
4539
4630
|
] });
|
|
4540
4631
|
}
|
|
4541
4632
|
var review_question_header_default = ReviewQuestionHeader;
|
|
4542
4633
|
|
|
4543
4634
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
4544
|
-
var
|
|
4635
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4545
4636
|
function ReviewQuestionFooter({
|
|
4546
4637
|
index,
|
|
4547
4638
|
onNext,
|
|
@@ -4551,22 +4642,22 @@ function ReviewQuestionFooter({
|
|
|
4551
4642
|
onSubmit,
|
|
4552
4643
|
isLoading
|
|
4553
4644
|
}) {
|
|
4554
|
-
return /* @__PURE__ */ (0,
|
|
4555
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
4556
|
-
/* @__PURE__ */ (0,
|
|
4645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes23.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
4646
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
4647
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons2.ChevronLeftIcon, {}),
|
|
4557
4648
|
"\uC774\uC804\uC73C\uB85C"
|
|
4558
|
-
] }) : /* @__PURE__ */ (0,
|
|
4559
|
-
isLast ? /* @__PURE__ */ (0,
|
|
4560
|
-
/* @__PURE__ */ (0,
|
|
4649
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes6.Box, {}),
|
|
4650
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
4651
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons2.PaperPlaneIcon, {}),
|
|
4561
4652
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
4562
|
-
] }) : /* @__PURE__ */ (0,
|
|
4653
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4563
4654
|
Button,
|
|
4564
4655
|
{
|
|
4565
4656
|
disabled: isNextButtonDisabled,
|
|
4566
4657
|
onClick: onNext,
|
|
4567
4658
|
variant: "surface",
|
|
4568
4659
|
children: [
|
|
4569
|
-
/* @__PURE__ */ (0,
|
|
4660
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons2.ChevronRightIcon, {}),
|
|
4570
4661
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
4571
4662
|
]
|
|
4572
4663
|
}
|
|
@@ -4579,7 +4670,7 @@ var review_question_footer_default = ReviewQuestionFooter;
|
|
|
4579
4670
|
var import_react38 = require("react");
|
|
4580
4671
|
|
|
4581
4672
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
4582
|
-
var
|
|
4673
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4583
4674
|
function ReviewQuestionContentHeader({
|
|
4584
4675
|
type,
|
|
4585
4676
|
title,
|
|
@@ -4587,9 +4678,9 @@ function ReviewQuestionContentHeader({
|
|
|
4587
4678
|
icon
|
|
4588
4679
|
}) {
|
|
4589
4680
|
const Icon = getCurriculumIcon({ type, icon });
|
|
4590
|
-
return /* @__PURE__ */ (0,
|
|
4591
|
-
/* @__PURE__ */ (0,
|
|
4592
|
-
/* @__PURE__ */ (0,
|
|
4681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes6.Box, { children: [
|
|
4682
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes22.Flex, { gap: "2", mb: "3", children: [
|
|
4683
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4593
4684
|
Icon,
|
|
4594
4685
|
{
|
|
4595
4686
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -4597,14 +4688,14 @@ function ReviewQuestionContentHeader({
|
|
|
4597
4688
|
width: "16"
|
|
4598
4689
|
}
|
|
4599
4690
|
) }),
|
|
4600
|
-
/* @__PURE__ */ (0,
|
|
4691
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
4601
4692
|
] }),
|
|
4602
|
-
/* @__PURE__ */ (0,
|
|
4693
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
4603
4694
|
] });
|
|
4604
4695
|
}
|
|
4605
4696
|
|
|
4606
4697
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4607
|
-
var
|
|
4698
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4608
4699
|
var correctAnswerStyle = {
|
|
4609
4700
|
backgroundColor: "var(--green-a2)"
|
|
4610
4701
|
};
|
|
@@ -4621,8 +4712,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4621
4712
|
if (isWrong) return "red";
|
|
4622
4713
|
return void 0;
|
|
4623
4714
|
}, [isCorrect, isWrong]);
|
|
4624
|
-
return /* @__PURE__ */ (0,
|
|
4625
|
-
/* @__PURE__ */ (0,
|
|
4715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4716
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4626
4717
|
ReviewQuestionContentHeader,
|
|
4627
4718
|
{
|
|
4628
4719
|
icon: question.icon,
|
|
@@ -4631,8 +4722,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4631
4722
|
type: question.type
|
|
4632
4723
|
}
|
|
4633
4724
|
) }),
|
|
4634
|
-
/* @__PURE__ */ (0,
|
|
4635
|
-
/* @__PURE__ */ (0,
|
|
4725
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_themes23.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
4726
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes6.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4636
4727
|
RadioButtonCard.Root,
|
|
4637
4728
|
{
|
|
4638
4729
|
color: radioColor,
|
|
@@ -4644,7 +4735,7 @@ function ReviewQuestionRadio(props) {
|
|
|
4644
4735
|
position: "absolute"
|
|
4645
4736
|
},
|
|
4646
4737
|
value: answer,
|
|
4647
|
-
children: /* @__PURE__ */ (0,
|
|
4738
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes22.Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
4648
4739
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
4649
4740
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
4650
4741
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -4652,15 +4743,15 @@ function ReviewQuestionRadio(props) {
|
|
|
4652
4743
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
4653
4744
|
return {};
|
|
4654
4745
|
})();
|
|
4655
|
-
return /* @__PURE__ */ (0,
|
|
4746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4656
4747
|
RadioButtonCard.Item,
|
|
4657
4748
|
{
|
|
4658
4749
|
style,
|
|
4659
4750
|
value: i.toString(),
|
|
4660
|
-
children: /* @__PURE__ */ (0,
|
|
4661
|
-
/* @__PURE__ */ (0,
|
|
4662
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
4663
|
-
isThisOptionWrong ? /* @__PURE__ */ (0,
|
|
4751
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_themes6.Box, { children: [
|
|
4752
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Typo, { as: "p", children: option.label }),
|
|
4753
|
+
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
4754
|
+
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
4664
4755
|
] })
|
|
4665
4756
|
},
|
|
4666
4757
|
`${option.label}-${i}`
|
|
@@ -4668,19 +4759,19 @@ function ReviewQuestionRadio(props) {
|
|
|
4668
4759
|
}) })
|
|
4669
4760
|
}
|
|
4670
4761
|
) }),
|
|
4671
|
-
/* @__PURE__ */ (0,
|
|
4762
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes22.Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
4672
4763
|
] })
|
|
4673
4764
|
] });
|
|
4674
4765
|
}
|
|
4675
4766
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
4676
4767
|
|
|
4677
4768
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4678
|
-
var
|
|
4769
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4679
4770
|
function ReviewQuestionText(props) {
|
|
4680
4771
|
const { question, answer, onChange } = props;
|
|
4681
4772
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4682
4773
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4683
|
-
return /* @__PURE__ */ (0,
|
|
4774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4684
4775
|
Card,
|
|
4685
4776
|
{
|
|
4686
4777
|
size: "2",
|
|
@@ -4688,9 +4779,9 @@ function ReviewQuestionText(props) {
|
|
|
4688
4779
|
width: "100%",
|
|
4689
4780
|
height: "100%"
|
|
4690
4781
|
},
|
|
4691
|
-
children: /* @__PURE__ */ (0,
|
|
4692
|
-
/* @__PURE__ */ (0,
|
|
4693
|
-
/* @__PURE__ */ (0,
|
|
4782
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes23.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
4783
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4784
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4694
4785
|
ReviewQuestionContentHeader,
|
|
4695
4786
|
{
|
|
4696
4787
|
icon: question.icon,
|
|
@@ -4699,7 +4790,7 @@ function ReviewQuestionText(props) {
|
|
|
4699
4790
|
type: question.type
|
|
4700
4791
|
}
|
|
4701
4792
|
),
|
|
4702
|
-
/* @__PURE__ */ (0,
|
|
4793
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4703
4794
|
TextArea,
|
|
4704
4795
|
{
|
|
4705
4796
|
mt: "2",
|
|
@@ -4711,17 +4802,17 @@ function ReviewQuestionText(props) {
|
|
|
4711
4802
|
}
|
|
4712
4803
|
)
|
|
4713
4804
|
] }),
|
|
4714
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4715
|
-
/* @__PURE__ */ (0,
|
|
4716
|
-
question.minLengthInfoMessage ? /* @__PURE__ */ (0,
|
|
4805
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes6.Box, { mt: "2", children: [
|
|
4806
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
4807
|
+
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4717
4808
|
import_themes8.Callout.Root,
|
|
4718
4809
|
{
|
|
4719
4810
|
color: "iris",
|
|
4720
4811
|
mt: "2",
|
|
4721
4812
|
style: { alignItems: "center" },
|
|
4722
4813
|
children: [
|
|
4723
|
-
/* @__PURE__ */ (0,
|
|
4724
|
-
/* @__PURE__ */ (0,
|
|
4814
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes8.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_icons2.BellIcon, {}) }),
|
|
4815
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes8.Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
4725
4816
|
]
|
|
4726
4817
|
}
|
|
4727
4818
|
) : null
|
|
@@ -4733,12 +4824,12 @@ function ReviewQuestionText(props) {
|
|
|
4733
4824
|
var review_question_text_default = ReviewQuestionText;
|
|
4734
4825
|
|
|
4735
4826
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4736
|
-
var
|
|
4827
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4737
4828
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4738
4829
|
var _a, _b, _c;
|
|
4739
4830
|
const { question, answer, onChange } = props;
|
|
4740
|
-
return /* @__PURE__ */ (0,
|
|
4741
|
-
/* @__PURE__ */ (0,
|
|
4831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4742
4833
|
ReviewQuestionContentHeader,
|
|
4743
4834
|
{
|
|
4744
4835
|
icon: question.icon,
|
|
@@ -4747,18 +4838,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4747
4838
|
type: question.type
|
|
4748
4839
|
}
|
|
4749
4840
|
) }),
|
|
4750
|
-
/* @__PURE__ */ (0,
|
|
4841
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes34.RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes22.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes34.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
4751
4842
|
] });
|
|
4752
4843
|
}
|
|
4753
4844
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4754
4845
|
|
|
4755
4846
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4756
|
-
var
|
|
4847
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4757
4848
|
function ReviewQuestionSatisfisText(props) {
|
|
4758
4849
|
var _a, _b;
|
|
4759
4850
|
const { question, answer, onChange } = props;
|
|
4760
|
-
return /* @__PURE__ */ (0,
|
|
4761
|
-
/* @__PURE__ */ (0,
|
|
4851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes23.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
4852
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4762
4853
|
ReviewQuestionContentHeader,
|
|
4763
4854
|
{
|
|
4764
4855
|
icon: question.icon,
|
|
@@ -4767,7 +4858,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4767
4858
|
type: question.type
|
|
4768
4859
|
}
|
|
4769
4860
|
),
|
|
4770
|
-
/* @__PURE__ */ (0,
|
|
4861
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4771
4862
|
TextArea,
|
|
4772
4863
|
{
|
|
4773
4864
|
mt: "2",
|
|
@@ -4785,11 +4876,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4785
4876
|
}
|
|
4786
4877
|
|
|
4787
4878
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4788
|
-
var
|
|
4879
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4789
4880
|
function ReviewQuestionBody(props) {
|
|
4790
4881
|
const { question, answer, error, onChange } = props;
|
|
4791
4882
|
if (question.type === "question_radio") {
|
|
4792
|
-
return /* @__PURE__ */ (0,
|
|
4883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4793
4884
|
review_question_radio_default,
|
|
4794
4885
|
{
|
|
4795
4886
|
answer,
|
|
@@ -4800,7 +4891,7 @@ function ReviewQuestionBody(props) {
|
|
|
4800
4891
|
);
|
|
4801
4892
|
}
|
|
4802
4893
|
if (question.type === "question_text") {
|
|
4803
|
-
return /* @__PURE__ */ (0,
|
|
4894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4804
4895
|
review_question_text_default,
|
|
4805
4896
|
{
|
|
4806
4897
|
answer,
|
|
@@ -4811,7 +4902,7 @@ function ReviewQuestionBody(props) {
|
|
|
4811
4902
|
);
|
|
4812
4903
|
}
|
|
4813
4904
|
if (question.type === "question_satisfaction_option") {
|
|
4814
|
-
return /* @__PURE__ */ (0,
|
|
4905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4815
4906
|
review_question_satisfaction_option_default,
|
|
4816
4907
|
{
|
|
4817
4908
|
answer,
|
|
@@ -4822,7 +4913,7 @@ function ReviewQuestionBody(props) {
|
|
|
4822
4913
|
);
|
|
4823
4914
|
}
|
|
4824
4915
|
if (question.type === "question_satisfaction_text") {
|
|
4825
|
-
return /* @__PURE__ */ (0,
|
|
4916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4826
4917
|
ReviewQuestionSatisfisText,
|
|
4827
4918
|
{
|
|
4828
4919
|
answer,
|
|
@@ -4837,7 +4928,7 @@ function ReviewQuestionBody(props) {
|
|
|
4837
4928
|
var review_question_body_default = ReviewQuestionBody;
|
|
4838
4929
|
|
|
4839
4930
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4840
|
-
var
|
|
4931
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4841
4932
|
function ReviewQuestion({
|
|
4842
4933
|
question,
|
|
4843
4934
|
index,
|
|
@@ -4852,10 +4943,10 @@ function ReviewQuestion({
|
|
|
4852
4943
|
onSubmit,
|
|
4853
4944
|
isLoading
|
|
4854
4945
|
}) {
|
|
4855
|
-
return /* @__PURE__ */ (0,
|
|
4946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4856
4947
|
review_question_layout_default,
|
|
4857
4948
|
{
|
|
4858
|
-
Body: /* @__PURE__ */ (0,
|
|
4949
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4859
4950
|
review_question_body_default,
|
|
4860
4951
|
{
|
|
4861
4952
|
answer,
|
|
@@ -4864,7 +4955,7 @@ function ReviewQuestion({
|
|
|
4864
4955
|
question
|
|
4865
4956
|
}
|
|
4866
4957
|
),
|
|
4867
|
-
Footer: /* @__PURE__ */ (0,
|
|
4958
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4868
4959
|
review_question_footer_default,
|
|
4869
4960
|
{
|
|
4870
4961
|
index,
|
|
@@ -4876,14 +4967,14 @@ function ReviewQuestion({
|
|
|
4876
4967
|
onSubmit
|
|
4877
4968
|
}
|
|
4878
4969
|
),
|
|
4879
|
-
Header: /* @__PURE__ */ (0,
|
|
4970
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(review_question_header_default, { index, total })
|
|
4880
4971
|
}
|
|
4881
4972
|
);
|
|
4882
4973
|
}
|
|
4883
4974
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4884
4975
|
|
|
4885
4976
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4886
|
-
var
|
|
4977
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4887
4978
|
function CurriculumReviewStepsInner() {
|
|
4888
4979
|
const {
|
|
4889
4980
|
formik,
|
|
@@ -4901,10 +4992,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4901
4992
|
} = useCurriculumReviewContext();
|
|
4902
4993
|
const { questions } = reviewContents;
|
|
4903
4994
|
if (step === 0) {
|
|
4904
|
-
return /* @__PURE__ */ (0,
|
|
4995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(start_review_default, { onStart: handleStart });
|
|
4905
4996
|
}
|
|
4906
4997
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4907
|
-
return /* @__PURE__ */ (0,
|
|
4998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4908
4999
|
ReviewQuestion_default,
|
|
4909
5000
|
{
|
|
4910
5001
|
answer: currentAnswer,
|
|
@@ -4922,7 +5013,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4922
5013
|
}
|
|
4923
5014
|
);
|
|
4924
5015
|
}
|
|
4925
|
-
return /* @__PURE__ */ (0,
|
|
5016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4926
5017
|
}
|
|
4927
5018
|
function CurriculumReviewSteps({
|
|
4928
5019
|
contents,
|
|
@@ -4935,7 +5026,7 @@ function CurriculumReviewSteps({
|
|
|
4935
5026
|
mode,
|
|
4936
5027
|
done
|
|
4937
5028
|
}) {
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
5029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4939
5030
|
CurriculumReviewProvider,
|
|
4940
5031
|
{
|
|
4941
5032
|
curriculum,
|
|
@@ -4947,14 +5038,14 @@ function CurriculumReviewSteps({
|
|
|
4947
5038
|
onSubmit,
|
|
4948
5039
|
reviewContents: contents,
|
|
4949
5040
|
sectionTitle: title,
|
|
4950
|
-
children: /* @__PURE__ */ (0,
|
|
5041
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CurriculumReviewStepsInner, {})
|
|
4951
5042
|
}
|
|
4952
5043
|
);
|
|
4953
5044
|
}
|
|
4954
5045
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4955
5046
|
|
|
4956
5047
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4957
|
-
var
|
|
5048
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4958
5049
|
function CurriculumReview(props) {
|
|
4959
5050
|
const { item, sectionTitle } = props;
|
|
4960
5051
|
const { description, buttonTitle } = item;
|
|
@@ -5019,8 +5110,8 @@ function CurriculumReview(props) {
|
|
|
5019
5110
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
5020
5111
|
}, [curriculumCompleteMap, item.uuid]);
|
|
5021
5112
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
5022
|
-
return /* @__PURE__ */ (0,
|
|
5023
|
-
/* @__PURE__ */ (0,
|
|
5113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
5114
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
5024
5115
|
import_themes22.Flex,
|
|
5025
5116
|
{
|
|
5026
5117
|
align: "center",
|
|
@@ -5037,21 +5128,21 @@ function CurriculumReview(props) {
|
|
|
5037
5128
|
},
|
|
5038
5129
|
width: "100%",
|
|
5039
5130
|
children: [
|
|
5040
|
-
/* @__PURE__ */ (0,
|
|
5041
|
-
/* @__PURE__ */ (0,
|
|
5042
|
-
/* @__PURE__ */ (0,
|
|
5131
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
|
|
5132
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
5133
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5043
5134
|
Button,
|
|
5044
5135
|
{
|
|
5045
5136
|
mt: "3",
|
|
5046
5137
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
5047
5138
|
variant: done ? "outline" : "solid",
|
|
5048
|
-
children: /* @__PURE__ */ (0,
|
|
5139
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
|
|
5049
5140
|
}
|
|
5050
5141
|
) })
|
|
5051
5142
|
]
|
|
5052
5143
|
}
|
|
5053
5144
|
),
|
|
5054
|
-
/* @__PURE__ */ (0,
|
|
5145
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5055
5146
|
Dialog.Content,
|
|
5056
5147
|
{
|
|
5057
5148
|
height: "100%",
|
|
@@ -5059,7 +5150,7 @@ function CurriculumReview(props) {
|
|
|
5059
5150
|
style: { borderRadius: 0, padding: 0 },
|
|
5060
5151
|
title: "",
|
|
5061
5152
|
width: "100%",
|
|
5062
|
-
children: /* @__PURE__ */ (0,
|
|
5153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
5063
5154
|
import_themes22.Flex,
|
|
5064
5155
|
{
|
|
5065
5156
|
align: "center",
|
|
@@ -5069,7 +5160,7 @@ function CurriculumReview(props) {
|
|
|
5069
5160
|
position: "relative",
|
|
5070
5161
|
width: "100%",
|
|
5071
5162
|
children: [
|
|
5072
|
-
/* @__PURE__ */ (0,
|
|
5163
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5073
5164
|
CurriculumReviewSteps_default,
|
|
5074
5165
|
{
|
|
5075
5166
|
contents: item,
|
|
@@ -5083,27 +5174,27 @@ function CurriculumReview(props) {
|
|
|
5083
5174
|
title: sectionTitle
|
|
5084
5175
|
}
|
|
5085
5176
|
),
|
|
5086
|
-
/* @__PURE__ */ (0,
|
|
5177
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes6.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
5087
5178
|
IconButton,
|
|
5088
5179
|
{
|
|
5089
5180
|
color: "gray",
|
|
5090
5181
|
onClick: onClickCloseDrawer,
|
|
5091
5182
|
variant: "ghost",
|
|
5092
5183
|
children: [
|
|
5093
|
-
/* @__PURE__ */ (0,
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5184
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes6.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_icons8.Cross1Icon, { height: 20, width: 20 }) }),
|
|
5185
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes6.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_icons8.Cross1Icon, { height: 16, width: 16 }) })
|
|
5095
5186
|
]
|
|
5096
5187
|
}
|
|
5097
5188
|
) }),
|
|
5098
|
-
/* @__PURE__ */ (0,
|
|
5189
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5099
5190
|
Dialog.Content,
|
|
5100
5191
|
{
|
|
5101
|
-
buttons: /* @__PURE__ */ (0,
|
|
5102
|
-
/* @__PURE__ */ (0,
|
|
5103
|
-
/* @__PURE__ */ (0,
|
|
5192
|
+
buttons: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
5193
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
|
|
5194
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
|
|
5104
5195
|
] }),
|
|
5105
5196
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
5106
|
-
children: /* @__PURE__ */ (0,
|
|
5197
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.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." })
|
|
5107
5198
|
}
|
|
5108
5199
|
) })
|
|
5109
5200
|
]
|
|
@@ -5117,7 +5208,7 @@ var curriculum_review_default = CurriculumReview;
|
|
|
5117
5208
|
|
|
5118
5209
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
5119
5210
|
var import_react40 = require("react");
|
|
5120
|
-
var
|
|
5211
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5121
5212
|
function CurriculumAiTraning({
|
|
5122
5213
|
item
|
|
5123
5214
|
}) {
|
|
@@ -5127,7 +5218,7 @@ function CurriculumAiTraning({
|
|
|
5127
5218
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
5128
5219
|
}, [curriculumCompleteMap, item.uuid]);
|
|
5129
5220
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
5130
|
-
return /* @__PURE__ */ (0,
|
|
5221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
5131
5222
|
import_themes22.Flex,
|
|
5132
5223
|
{
|
|
5133
5224
|
align: "center",
|
|
@@ -5142,9 +5233,9 @@ function CurriculumAiTraning({
|
|
|
5142
5233
|
},
|
|
5143
5234
|
width: "100%",
|
|
5144
5235
|
children: [
|
|
5145
|
-
/* @__PURE__ */ (0,
|
|
5146
|
-
/* @__PURE__ */ (0,
|
|
5147
|
-
/* @__PURE__ */ (0,
|
|
5236
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
5237
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
5238
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
5148
5239
|
Button,
|
|
5149
5240
|
{
|
|
5150
5241
|
mt: "3",
|
|
@@ -5155,7 +5246,7 @@ function CurriculumAiTraning({
|
|
|
5155
5246
|
variant: done ? "outline" : "solid",
|
|
5156
5247
|
children: [
|
|
5157
5248
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
5158
|
-
done ? /* @__PURE__ */ (0,
|
|
5249
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_icons2.ResetIcon, {}) : null
|
|
5159
5250
|
]
|
|
5160
5251
|
}
|
|
5161
5252
|
)
|
|
@@ -5165,15 +5256,74 @@ function CurriculumAiTraning({
|
|
|
5165
5256
|
}
|
|
5166
5257
|
var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
5167
5258
|
|
|
5259
|
+
// src/molecules/curriculumV2/CurriculumContents/curriculum-file-download.tsx
|
|
5260
|
+
var import_react41 = require("react");
|
|
5261
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5262
|
+
function CurriculumFileDownload(props) {
|
|
5263
|
+
const { item } = props;
|
|
5264
|
+
const { title, description, files } = item;
|
|
5265
|
+
const { onClickfileDownload } = useCurriculumContext();
|
|
5266
|
+
const isCallbackReady = (0, import_react41.useMemo)(() => {
|
|
5267
|
+
return typeof onClickfileDownload === "function";
|
|
5268
|
+
}, [onClickfileDownload]);
|
|
5269
|
+
const handleClickFile = (file) => {
|
|
5270
|
+
if (!onClickfileDownload) {
|
|
5271
|
+
return;
|
|
5272
|
+
}
|
|
5273
|
+
onClickfileDownload(item, file);
|
|
5274
|
+
};
|
|
5275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
5276
|
+
import_themes22.Flex,
|
|
5277
|
+
{
|
|
5278
|
+
align: "center",
|
|
5279
|
+
direction: "column",
|
|
5280
|
+
height: "100%",
|
|
5281
|
+
justify: "center",
|
|
5282
|
+
px: "3",
|
|
5283
|
+
py: "3",
|
|
5284
|
+
width: "100%",
|
|
5285
|
+
children: [
|
|
5286
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
5287
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }) : null,
|
|
5288
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5289
|
+
import_themes22.Flex,
|
|
5290
|
+
{
|
|
5291
|
+
direction: "column",
|
|
5292
|
+
gap: "2",
|
|
5293
|
+
mt: "4",
|
|
5294
|
+
style: { width: "100%", maxWidth: 520 },
|
|
5295
|
+
children: files.map((file) => {
|
|
5296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5297
|
+
Button,
|
|
5298
|
+
{
|
|
5299
|
+
disabled: !isCallbackReady,
|
|
5300
|
+
onClick: () => {
|
|
5301
|
+
handleClickFile(file);
|
|
5302
|
+
},
|
|
5303
|
+
variant: "outline",
|
|
5304
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { truncate: true, children: file.name })
|
|
5305
|
+
},
|
|
5306
|
+
file.url
|
|
5307
|
+
);
|
|
5308
|
+
})
|
|
5309
|
+
}
|
|
5310
|
+
),
|
|
5311
|
+
!isCallbackReady ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { align: "center", color: "gray", mt: "3", variant: "caption", children: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC \uAE30\uB2A5\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4." }) : null
|
|
5312
|
+
]
|
|
5313
|
+
}
|
|
5314
|
+
);
|
|
5315
|
+
}
|
|
5316
|
+
var curriculum_file_download_default = CurriculumFileDownload;
|
|
5317
|
+
|
|
5168
5318
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
5169
|
-
var
|
|
5319
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5170
5320
|
function CurriculumBody() {
|
|
5171
5321
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
5172
5322
|
switch (selectedItem.type) {
|
|
5173
5323
|
case "video":
|
|
5174
|
-
return /* @__PURE__ */ (0,
|
|
5324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(curriculum_video_default, { item: selectedItem });
|
|
5175
5325
|
case "review":
|
|
5176
|
-
return /* @__PURE__ */ (0,
|
|
5326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5177
5327
|
curriculum_review_default,
|
|
5178
5328
|
{
|
|
5179
5329
|
item: selectedItem,
|
|
@@ -5181,9 +5331,11 @@ function CurriculumBody() {
|
|
|
5181
5331
|
}
|
|
5182
5332
|
);
|
|
5183
5333
|
case "aiTraining":
|
|
5184
|
-
return /* @__PURE__ */ (0,
|
|
5334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
5335
|
+
case "fileDownload":
|
|
5336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(curriculum_file_download_default, { item: selectedItem });
|
|
5185
5337
|
default:
|
|
5186
|
-
return /* @__PURE__ */ (0,
|
|
5338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
5187
5339
|
import_themes22.Flex,
|
|
5188
5340
|
{
|
|
5189
5341
|
align: "center",
|
|
@@ -5193,9 +5345,9 @@ function CurriculumBody() {
|
|
|
5193
5345
|
justify: "center",
|
|
5194
5346
|
width: "100%",
|
|
5195
5347
|
children: [
|
|
5196
|
-
/* @__PURE__ */ (0,
|
|
5197
|
-
/* @__PURE__ */ (0,
|
|
5198
|
-
/* @__PURE__ */ (0,
|
|
5348
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_icons2.InfoCircledIcon, { height: 24, width: 24 }),
|
|
5349
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
5350
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
5199
5351
|
${JSON.stringify(selectedItem)}` })
|
|
5200
5352
|
]
|
|
5201
5353
|
}
|
|
@@ -5204,15 +5356,15 @@ function CurriculumBody() {
|
|
|
5204
5356
|
}
|
|
5205
5357
|
|
|
5206
5358
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
5207
|
-
var
|
|
5359
|
+
var import_react42 = require("react");
|
|
5208
5360
|
|
|
5209
5361
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
5210
|
-
var
|
|
5362
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
5211
5363
|
function SectionTitle(props) {
|
|
5212
5364
|
const { title, duration } = props;
|
|
5213
|
-
return /* @__PURE__ */ (0,
|
|
5214
|
-
/* @__PURE__ */ (0,
|
|
5215
|
-
/* @__PURE__ */ (0,
|
|
5365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_themes23.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
5366
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Typo, { color: "gray", children: title }),
|
|
5367
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
5216
5368
|
duration,
|
|
5217
5369
|
"\uBD84"
|
|
5218
5370
|
] })
|
|
@@ -5221,14 +5373,14 @@ function SectionTitle(props) {
|
|
|
5221
5373
|
var section_title_default = SectionTitle;
|
|
5222
5374
|
|
|
5223
5375
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
5224
|
-
var
|
|
5376
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5225
5377
|
function CurriculumSidebarItemWrapper({
|
|
5226
5378
|
children,
|
|
5227
5379
|
isSelected,
|
|
5228
5380
|
onClick,
|
|
5229
5381
|
index
|
|
5230
5382
|
}) {
|
|
5231
|
-
return /* @__PURE__ */ (0,
|
|
5383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
5232
5384
|
import_themes23.Grid,
|
|
5233
5385
|
{
|
|
5234
5386
|
align: "center",
|
|
@@ -5244,7 +5396,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
5244
5396
|
cursor: onClick ? "pointer" : void 0
|
|
5245
5397
|
},
|
|
5246
5398
|
children: [
|
|
5247
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
5399
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5248
5400
|
import_themes39.Separator,
|
|
5249
5401
|
{
|
|
5250
5402
|
color: "yellow",
|
|
@@ -5261,15 +5413,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
5261
5413
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
5262
5414
|
|
|
5263
5415
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
5264
|
-
var
|
|
5416
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5265
5417
|
function CurriculumItemTitle({
|
|
5266
5418
|
title,
|
|
5267
5419
|
subText,
|
|
5268
5420
|
duration
|
|
5269
5421
|
}) {
|
|
5270
|
-
return /* @__PURE__ */ (0,
|
|
5271
|
-
/* @__PURE__ */ (0,
|
|
5272
|
-
/* @__PURE__ */ (0,
|
|
5422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
5423
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
5424
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
5273
5425
|
subText,
|
|
5274
5426
|
duration ? ` | ${duration}\uBD84` : ""
|
|
5275
5427
|
] })
|
|
@@ -5278,7 +5430,7 @@ function CurriculumItemTitle({
|
|
|
5278
5430
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
5279
5431
|
|
|
5280
5432
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
5281
|
-
var
|
|
5433
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5282
5434
|
function SectionCommonItem({
|
|
5283
5435
|
title,
|
|
5284
5436
|
duration,
|
|
@@ -5287,21 +5439,21 @@ function SectionCommonItem({
|
|
|
5287
5439
|
color = "gray"
|
|
5288
5440
|
}) {
|
|
5289
5441
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
5290
|
-
return /* @__PURE__ */ (0,
|
|
5291
|
-
/* @__PURE__ */ (0,
|
|
5292
|
-
/* @__PURE__ */ (0,
|
|
5442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
5443
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(IconComp, { color }),
|
|
5444
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(curriculum_item_title_default, { duration, subText: getCurriculumContentSubTypeText(type), title })
|
|
5293
5445
|
] });
|
|
5294
5446
|
}
|
|
5295
5447
|
var section_item_default = SectionCommonItem;
|
|
5296
5448
|
|
|
5297
5449
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
5298
|
-
var
|
|
5450
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5299
5451
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
5300
5452
|
if (item.type === "sectionTitle") {
|
|
5301
|
-
return /* @__PURE__ */ (0,
|
|
5453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
5302
5454
|
}
|
|
5303
5455
|
const isSelected = selectedIndex === index;
|
|
5304
|
-
return /* @__PURE__ */ (0,
|
|
5456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5305
5457
|
curriculum_sidebar_item_wrapper_default,
|
|
5306
5458
|
{
|
|
5307
5459
|
index,
|
|
@@ -5309,7 +5461,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
5309
5461
|
onClick: () => {
|
|
5310
5462
|
setSelectedIndex(index);
|
|
5311
5463
|
},
|
|
5312
|
-
children: /* @__PURE__ */ (0,
|
|
5464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5313
5465
|
section_item_default,
|
|
5314
5466
|
__spreadProps(__spreadValues({}, item), {
|
|
5315
5467
|
color: getCurriculumIconColor({
|
|
@@ -5325,7 +5477,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
5325
5477
|
var sidebar_item_default = SidebarItem;
|
|
5326
5478
|
|
|
5327
5479
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
5328
|
-
var
|
|
5480
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5329
5481
|
var TAB_LIST = [
|
|
5330
5482
|
{
|
|
5331
5483
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -5350,12 +5502,12 @@ function CurriculumSidebar() {
|
|
|
5350
5502
|
customTabs
|
|
5351
5503
|
} = useCurriculumContext();
|
|
5352
5504
|
const list = curriculum.contents.list;
|
|
5353
|
-
const tabList = (0,
|
|
5505
|
+
const tabList = (0, import_react42.useMemo)(() => {
|
|
5354
5506
|
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
5355
5507
|
}, [customTabs]);
|
|
5356
|
-
return /* @__PURE__ */ (0,
|
|
5357
|
-
/* @__PURE__ */ (0,
|
|
5358
|
-
/* @__PURE__ */ (0,
|
|
5508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes44.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes23.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
5509
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes44.Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes44.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
5510
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5359
5511
|
import_themes6.Box,
|
|
5360
5512
|
{
|
|
5361
5513
|
height: "100%",
|
|
@@ -5364,13 +5516,13 @@ function CurriculumSidebar() {
|
|
|
5364
5516
|
ref: scrollAreaRef,
|
|
5365
5517
|
width: "100%",
|
|
5366
5518
|
children: [
|
|
5367
|
-
/* @__PURE__ */ (0,
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5368
5520
|
import_themes44.Tabs.Content,
|
|
5369
5521
|
{
|
|
5370
5522
|
style: TABS_CONTENT_STYLE,
|
|
5371
5523
|
value: TAB_LIST[0].value,
|
|
5372
5524
|
children: [
|
|
5373
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
5525
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5374
5526
|
sidebar_item_default,
|
|
5375
5527
|
{
|
|
5376
5528
|
done: curriculumCompleteMap[item.uuid],
|
|
@@ -5381,12 +5533,12 @@ function CurriculumSidebar() {
|
|
|
5381
5533
|
},
|
|
5382
5534
|
item.uuid
|
|
5383
5535
|
)),
|
|
5384
|
-
/* @__PURE__ */ (0,
|
|
5536
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes6.Box, { height: "150px" })
|
|
5385
5537
|
]
|
|
5386
5538
|
},
|
|
5387
5539
|
TAB_LIST[0].value
|
|
5388
5540
|
),
|
|
5389
|
-
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0,
|
|
5541
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5390
5542
|
import_themes44.Tabs.Content,
|
|
5391
5543
|
{
|
|
5392
5544
|
style: TABS_CONTENT_STYLE,
|
|
@@ -5402,11 +5554,11 @@ function CurriculumSidebar() {
|
|
|
5402
5554
|
}
|
|
5403
5555
|
|
|
5404
5556
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
5405
|
-
var
|
|
5557
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5406
5558
|
function CurriculumV2Layout(props) {
|
|
5407
5559
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
5408
|
-
return /* @__PURE__ */ (0,
|
|
5409
|
-
/* @__PURE__ */ (0,
|
|
5560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes23.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
5561
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5410
5562
|
import_themes22.Flex,
|
|
5411
5563
|
{
|
|
5412
5564
|
align: "center",
|
|
@@ -5415,8 +5567,8 @@ function CurriculumV2Layout(props) {
|
|
|
5415
5567
|
children: NavBar
|
|
5416
5568
|
}
|
|
5417
5569
|
),
|
|
5418
|
-
/* @__PURE__ */ (0,
|
|
5419
|
-
/* @__PURE__ */ (0,
|
|
5570
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes39.Separator, { size: "4" }),
|
|
5571
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5420
5572
|
import_themes22.Flex,
|
|
5421
5573
|
{
|
|
5422
5574
|
align: "center",
|
|
@@ -5424,7 +5576,7 @@ function CurriculumV2Layout(props) {
|
|
|
5424
5576
|
justify: "center",
|
|
5425
5577
|
overflow: "hidden",
|
|
5426
5578
|
width: "100%",
|
|
5427
|
-
children: /* @__PURE__ */ (0,
|
|
5579
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5428
5580
|
import_themes23.Grid,
|
|
5429
5581
|
{
|
|
5430
5582
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -5433,8 +5585,8 @@ function CurriculumV2Layout(props) {
|
|
|
5433
5585
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
5434
5586
|
width: "100%",
|
|
5435
5587
|
children: [
|
|
5436
|
-
/* @__PURE__ */ (0,
|
|
5437
|
-
/* @__PURE__ */ (0,
|
|
5588
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes6.Box, { height: "100%", width: "100%", children: [
|
|
5589
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes2.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
5438
5590
|
SideNav
|
|
5439
5591
|
] }),
|
|
5440
5592
|
SideBar
|
|
@@ -5447,15 +5599,15 @@ function CurriculumV2Layout(props) {
|
|
|
5447
5599
|
}
|
|
5448
5600
|
|
|
5449
5601
|
// src/molecules/dynamic-form.tsx
|
|
5450
|
-
var
|
|
5602
|
+
var import_react44 = require("react");
|
|
5451
5603
|
var import_formik2 = require("formik");
|
|
5452
5604
|
var Yup2 = __toESM(require("yup"), 1);
|
|
5453
5605
|
var import_themes55 = require("@radix-ui/themes");
|
|
5454
5606
|
|
|
5455
5607
|
// src/context/dynamic-form-context.tsx
|
|
5456
|
-
var
|
|
5457
|
-
var
|
|
5458
|
-
var DynamicFormContext = (0,
|
|
5608
|
+
var import_react43 = require("react");
|
|
5609
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5610
|
+
var DynamicFormContext = (0, import_react43.createContext)(null);
|
|
5459
5611
|
function DynamicFormProvider({
|
|
5460
5612
|
children,
|
|
5461
5613
|
fields,
|
|
@@ -5480,10 +5632,10 @@ function DynamicFormProvider({
|
|
|
5480
5632
|
handleChange: formik.handleChange,
|
|
5481
5633
|
handleBlur: formik.handleBlur
|
|
5482
5634
|
};
|
|
5483
|
-
return /* @__PURE__ */ (0,
|
|
5635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
5484
5636
|
}
|
|
5485
5637
|
function useDynamicForm() {
|
|
5486
|
-
const context = (0,
|
|
5638
|
+
const context = (0, import_react43.useContext)(DynamicFormContext);
|
|
5487
5639
|
if (!context) {
|
|
5488
5640
|
throw new Error("useDynamicForm must be used within a DynamicFormProvider");
|
|
5489
5641
|
}
|
|
@@ -5491,7 +5643,7 @@ function useDynamicForm() {
|
|
|
5491
5643
|
}
|
|
5492
5644
|
|
|
5493
5645
|
// src/molecules/dynamic-field.tsx
|
|
5494
|
-
var
|
|
5646
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5495
5647
|
function DynamicFormField({
|
|
5496
5648
|
field
|
|
5497
5649
|
}) {
|
|
@@ -5520,7 +5672,7 @@ function DynamicFormField({
|
|
|
5520
5672
|
switch (type) {
|
|
5521
5673
|
case "short_text":
|
|
5522
5674
|
case "email":
|
|
5523
|
-
return /* @__PURE__ */ (0,
|
|
5675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5524
5676
|
TextField.Root,
|
|
5525
5677
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5526
5678
|
placeholder: field.placeholder,
|
|
@@ -5528,7 +5680,7 @@ function DynamicFormField({
|
|
|
5528
5680
|
})
|
|
5529
5681
|
);
|
|
5530
5682
|
case "number":
|
|
5531
|
-
return /* @__PURE__ */ (0,
|
|
5683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5532
5684
|
TextField.Root,
|
|
5533
5685
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5534
5686
|
inputMode: "numeric",
|
|
@@ -5538,9 +5690,9 @@ function DynamicFormField({
|
|
|
5538
5690
|
})
|
|
5539
5691
|
);
|
|
5540
5692
|
case "long_text":
|
|
5541
|
-
return /* @__PURE__ */ (0,
|
|
5693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
5542
5694
|
case "dropdown":
|
|
5543
|
-
return /* @__PURE__ */ (0,
|
|
5695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
5544
5696
|
Select.Root,
|
|
5545
5697
|
{
|
|
5546
5698
|
disabled: readonly,
|
|
@@ -5549,13 +5701,13 @@ function DynamicFormField({
|
|
|
5549
5701
|
},
|
|
5550
5702
|
value,
|
|
5551
5703
|
children: [
|
|
5552
|
-
/* @__PURE__ */ (0,
|
|
5553
|
-
/* @__PURE__ */ (0,
|
|
5704
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Select.Trigger, { placeholder: field.placeholder }),
|
|
5705
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
5554
5706
|
]
|
|
5555
5707
|
}
|
|
5556
5708
|
);
|
|
5557
5709
|
case "choice":
|
|
5558
|
-
return /* @__PURE__ */ (0,
|
|
5710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5559
5711
|
import_themes34.RadioGroup.Root,
|
|
5560
5712
|
{
|
|
5561
5713
|
disabled: readonly,
|
|
@@ -5564,11 +5716,11 @@ function DynamicFormField({
|
|
|
5564
5716
|
},
|
|
5565
5717
|
orientation: field.orientation,
|
|
5566
5718
|
value: String(value || ""),
|
|
5567
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5719
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes34.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5568
5720
|
}
|
|
5569
5721
|
);
|
|
5570
5722
|
case "choices":
|
|
5571
|
-
return /* @__PURE__ */ (0,
|
|
5723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5572
5724
|
CheckboxGroup.Root,
|
|
5573
5725
|
{
|
|
5574
5726
|
disabled: readonly,
|
|
@@ -5577,12 +5729,12 @@ function DynamicFormField({
|
|
|
5577
5729
|
},
|
|
5578
5730
|
orientation: field.orientation,
|
|
5579
5731
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
5580
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5732
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5581
5733
|
}
|
|
5582
5734
|
);
|
|
5583
5735
|
case "yes_no":
|
|
5584
|
-
return /* @__PURE__ */ (0,
|
|
5585
|
-
/* @__PURE__ */ (0,
|
|
5736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes22.Flex, { gap: "2", children: [
|
|
5737
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5586
5738
|
Checkbox,
|
|
5587
5739
|
{
|
|
5588
5740
|
checked: Boolean(value),
|
|
@@ -5592,7 +5744,7 @@ function DynamicFormField({
|
|
|
5592
5744
|
}
|
|
5593
5745
|
}
|
|
5594
5746
|
),
|
|
5595
|
-
field.description ? /* @__PURE__ */ (0,
|
|
5747
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
5596
5748
|
] });
|
|
5597
5749
|
default:
|
|
5598
5750
|
return null;
|
|
@@ -5600,7 +5752,7 @@ function DynamicFormField({
|
|
|
5600
5752
|
}
|
|
5601
5753
|
|
|
5602
5754
|
// src/molecules/dynamic-form.tsx
|
|
5603
|
-
var
|
|
5755
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5604
5756
|
function scrollToFirstError(errors, _fields) {
|
|
5605
5757
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
5606
5758
|
if (!firstErrorFieldName) return;
|
|
@@ -5626,7 +5778,7 @@ function DynamicFormRoot({
|
|
|
5626
5778
|
readonly = false,
|
|
5627
5779
|
formStyle
|
|
5628
5780
|
}) {
|
|
5629
|
-
const validationSchema = (0,
|
|
5781
|
+
const validationSchema = (0, import_react44.useMemo)(() => {
|
|
5630
5782
|
const schema = {};
|
|
5631
5783
|
fields.forEach((field) => {
|
|
5632
5784
|
if (field.validation) {
|
|
@@ -5648,7 +5800,7 @@ function DynamicFormRoot({
|
|
|
5648
5800
|
});
|
|
5649
5801
|
return Object.keys(schema).length > 0 ? Yup2.object(schema) : void 0;
|
|
5650
5802
|
}, [fields]);
|
|
5651
|
-
const handleSubmit = (0,
|
|
5803
|
+
const handleSubmit = (0, import_react44.useCallback)((values) => __async(null, null, function* () {
|
|
5652
5804
|
yield onSubmit(values);
|
|
5653
5805
|
}), [onSubmit]);
|
|
5654
5806
|
const formik = (0, import_formik2.useFormik)({
|
|
@@ -5667,7 +5819,7 @@ function DynamicFormRoot({
|
|
|
5667
5819
|
validateOnChange: true,
|
|
5668
5820
|
onSubmit: handleSubmit
|
|
5669
5821
|
});
|
|
5670
|
-
(0,
|
|
5822
|
+
(0, import_react44.useEffect)(() => {
|
|
5671
5823
|
if (formik.submitCount > 0 && Object.keys(formik.errors).length > 0) {
|
|
5672
5824
|
const timeoutId = setTimeout(() => {
|
|
5673
5825
|
scrollToFirstError(formik.errors, fields);
|
|
@@ -5677,7 +5829,7 @@ function DynamicFormRoot({
|
|
|
5677
5829
|
};
|
|
5678
5830
|
}
|
|
5679
5831
|
}, [formik.submitCount, formik.errors, fields]);
|
|
5680
|
-
return /* @__PURE__ */ (0,
|
|
5832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormProvider, { fields, formStyle, formik, readonly, children });
|
|
5681
5833
|
}
|
|
5682
5834
|
function DynamicFormFieldList({
|
|
5683
5835
|
fields: fieldsProp,
|
|
@@ -5685,15 +5837,15 @@ function DynamicFormFieldList({
|
|
|
5685
5837
|
}) {
|
|
5686
5838
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
5687
5839
|
const fields = fieldsProp || fieldsFromContext;
|
|
5688
|
-
return /* @__PURE__ */ (0,
|
|
5840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: fields.map((field) => {
|
|
5689
5841
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
5690
|
-
return /* @__PURE__ */ (0,
|
|
5842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5691
5843
|
import_themes55.Box,
|
|
5692
5844
|
{
|
|
5693
5845
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
5694
5846
|
"data-field-name": field.name,
|
|
5695
5847
|
mb: "2",
|
|
5696
|
-
children: /* @__PURE__ */ (0,
|
|
5848
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
5697
5849
|
Form.FormItem,
|
|
5698
5850
|
{
|
|
5699
5851
|
errorMessage,
|
|
@@ -5702,8 +5854,8 @@ function DynamicFormFieldList({
|
|
|
5702
5854
|
name: field.name,
|
|
5703
5855
|
required: field.required,
|
|
5704
5856
|
children: [
|
|
5705
|
-
/* @__PURE__ */ (0,
|
|
5706
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
5857
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormField, { field }),
|
|
5858
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
5707
5859
|
]
|
|
5708
5860
|
}
|
|
5709
5861
|
)
|
|
@@ -5859,15 +6011,15 @@ function DynamicFormResponseItem({
|
|
|
5859
6011
|
}
|
|
5860
6012
|
|
|
5861
6013
|
// src/molecules/one-on-one-guide-list.tsx
|
|
5862
|
-
var
|
|
5863
|
-
var
|
|
6014
|
+
var import_react45 = require("react");
|
|
6015
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5864
6016
|
var oneOnOneNoteTextReplacer = (args) => {
|
|
5865
6017
|
const { text, userName, templateName } = args;
|
|
5866
6018
|
return text.replace(/\{\{Template_Name\}\}/g, templateName).replace(/\{\{Subject_Name\}\}/g, userName);
|
|
5867
6019
|
};
|
|
5868
6020
|
function OneOnOneGuideList(props) {
|
|
5869
6021
|
const { data, relacements, guideTitle, guideDescription } = props;
|
|
5870
|
-
const groupedData = (0,
|
|
6022
|
+
const groupedData = (0, import_react45.useMemo)(() => {
|
|
5871
6023
|
return data == null ? void 0 : data.reduce(
|
|
5872
6024
|
(acc, item) => {
|
|
5873
6025
|
if (item.type === "title") {
|
|
@@ -5880,43 +6032,43 @@ function OneOnOneGuideList(props) {
|
|
|
5880
6032
|
[]
|
|
5881
6033
|
);
|
|
5882
6034
|
}, [data]);
|
|
5883
|
-
return /* @__PURE__ */ (0,
|
|
5884
|
-
/* @__PURE__ */ (0,
|
|
6035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
|
|
6036
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Heading2, { mb: "2", variant: "heading5", children: oneOnOneNoteTextReplacer({
|
|
5885
6037
|
text: guideTitle || "",
|
|
5886
6038
|
userName: (relacements == null ? void 0 : relacements.userName) || "",
|
|
5887
6039
|
templateName: (relacements == null ? void 0 : relacements.templateName) || ""
|
|
5888
6040
|
}) }),
|
|
5889
|
-
/* @__PURE__ */ (0,
|
|
6041
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Typo, { as: "div", mb: "4", children: oneOnOneNoteTextReplacer({
|
|
5890
6042
|
text: guideDescription || "",
|
|
5891
6043
|
userName: (relacements == null ? void 0 : relacements.userName) || "\uD300\uC6D0",
|
|
5892
6044
|
templateName: (relacements == null ? void 0 : relacements.templateName) || "1on1"
|
|
5893
6045
|
}) }),
|
|
5894
|
-
/* @__PURE__ */ (0,
|
|
6046
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5895
6047
|
List.Root,
|
|
5896
6048
|
{
|
|
5897
6049
|
preSpace: "small",
|
|
5898
6050
|
style: { fontWeight: "bold", gap: "var(--space-5)" },
|
|
5899
6051
|
variant: "ol",
|
|
5900
6052
|
children: groupedData == null ? void 0 : groupedData.map((item) => {
|
|
5901
|
-
return /* @__PURE__ */ (0,
|
|
5902
|
-
/* @__PURE__ */ (0,
|
|
6053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(List.Item, { children: [
|
|
6054
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Typo, { as: "div", mb: "1", children: item.title }),
|
|
5903
6055
|
item.children.map((child) => {
|
|
5904
6056
|
if (child.type === "ul") {
|
|
5905
|
-
return /* @__PURE__ */ (0,
|
|
6057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5906
6058
|
List.Root,
|
|
5907
6059
|
{
|
|
5908
6060
|
preSpace: "small",
|
|
5909
6061
|
style: { fontWeight: "normal", gap: "var(--space-2)" },
|
|
5910
6062
|
variant: "ul",
|
|
5911
6063
|
children: child.value.map((el) => {
|
|
5912
|
-
return /* @__PURE__ */ (0,
|
|
6064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(List.Item, { children: el }, el);
|
|
5913
6065
|
})
|
|
5914
6066
|
},
|
|
5915
6067
|
child.value[0]
|
|
5916
6068
|
);
|
|
5917
6069
|
}
|
|
5918
6070
|
if (typeof child.value === "string") {
|
|
5919
|
-
return /* @__PURE__ */ (0,
|
|
6071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Typo, { as: "div", mb: "2", weight: "regular", children: child.value }, child.value);
|
|
5920
6072
|
}
|
|
5921
6073
|
return null;
|
|
5922
6074
|
})
|
|
@@ -5928,16 +6080,16 @@ function OneOnOneGuideList(props) {
|
|
|
5928
6080
|
}
|
|
5929
6081
|
|
|
5930
6082
|
// src/molecules/description-json-render.tsx
|
|
5931
|
-
var
|
|
6083
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
5932
6084
|
function DescriptionJsonRender(props) {
|
|
5933
6085
|
const { value } = props;
|
|
5934
|
-
return /* @__PURE__ */ (0,
|
|
6086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, { children: value.values.map((block, index) => {
|
|
5935
6087
|
if (block.type === "bullet-list") {
|
|
5936
6088
|
return (
|
|
5937
6089
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5938
|
-
/* @__PURE__ */ (0,
|
|
6090
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { mb: "2", pl: "4", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(List.Root, { preSpace: "small", children: block.value.map((v, i) => (
|
|
5939
6091
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5940
|
-
/* @__PURE__ */ (0,
|
|
6092
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(List.Item, { children: v }, `${index}-${i}`)
|
|
5941
6093
|
)) }) }, `${block.type}-${index}`)
|
|
5942
6094
|
);
|
|
5943
6095
|
}
|
|
@@ -5945,19 +6097,128 @@ function DescriptionJsonRender(props) {
|
|
|
5945
6097
|
const Icon = getCalloutIconComponent(block.icon);
|
|
5946
6098
|
return (
|
|
5947
6099
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5948
|
-
/* @__PURE__ */ (0,
|
|
5949
|
-
/* @__PURE__ */ (0,
|
|
5950
|
-
/* @__PURE__ */ (0,
|
|
6100
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes6.Box, { mb: "2", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes8.Callout.Root, { children: [
|
|
6101
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes8.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, {}) }),
|
|
6102
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes8.Callout.Text, { children: block.value })
|
|
5951
6103
|
] }) }, `${block.type}-${index}`)
|
|
5952
6104
|
);
|
|
5953
6105
|
}
|
|
5954
6106
|
return (
|
|
5955
6107
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5956
|
-
/* @__PURE__ */ (0,
|
|
6108
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { mb: "2", weight: "regular", children: block.value }, `${block.type}-${index}`)
|
|
5957
6109
|
);
|
|
5958
6110
|
}) });
|
|
5959
6111
|
}
|
|
5960
6112
|
|
|
6113
|
+
// src/molecules/training-info-guideline.tsx
|
|
6114
|
+
var import_react46 = require("react");
|
|
6115
|
+
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
6116
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6117
|
+
function TrainingInfoGuideline({
|
|
6118
|
+
values,
|
|
6119
|
+
onClickFileDownload
|
|
6120
|
+
}) {
|
|
6121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: values.map((value) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6122
|
+
TrainingInfoGuidelineItem,
|
|
6123
|
+
{
|
|
6124
|
+
onClickFileDownload,
|
|
6125
|
+
value
|
|
6126
|
+
},
|
|
6127
|
+
getItemKey(value)
|
|
6128
|
+
)) });
|
|
6129
|
+
}
|
|
6130
|
+
function getItemKey(value) {
|
|
6131
|
+
return value.url;
|
|
6132
|
+
}
|
|
6133
|
+
function TrainingInfoGuidelineItem({
|
|
6134
|
+
value,
|
|
6135
|
+
onClickFileDownload
|
|
6136
|
+
}) {
|
|
6137
|
+
const [isLoading, setIsLoading] = (0, import_react46.useState)(true);
|
|
6138
|
+
if (value.type === "file") {
|
|
6139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
6140
|
+
Button,
|
|
6141
|
+
{
|
|
6142
|
+
onClick: () => {
|
|
6143
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
6144
|
+
},
|
|
6145
|
+
variant: "surface",
|
|
6146
|
+
children: [
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons9.FileTextIcon, {}),
|
|
6148
|
+
value.downloadButtonName
|
|
6149
|
+
]
|
|
6150
|
+
}
|
|
6151
|
+
);
|
|
6152
|
+
}
|
|
6153
|
+
if (value.type === "video") {
|
|
6154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Dialog.Root, { children: [
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Button, { variant: "surface", children: [
|
|
6156
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons9.VideoIcon, {}),
|
|
6157
|
+
value.videoTitle
|
|
6158
|
+
] }) }),
|
|
6159
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6160
|
+
Dialog.Content,
|
|
6161
|
+
{
|
|
6162
|
+
height: "100%",
|
|
6163
|
+
maxHeight: "500px",
|
|
6164
|
+
maxWidth: "800px",
|
|
6165
|
+
title: value.videoTitle,
|
|
6166
|
+
width: "100%",
|
|
6167
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes2.AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
6168
|
+
import_themes22.Flex,
|
|
6169
|
+
{
|
|
6170
|
+
align: "center",
|
|
6171
|
+
justify: "center",
|
|
6172
|
+
style: {
|
|
6173
|
+
width: "100%",
|
|
6174
|
+
height: "100%",
|
|
6175
|
+
backgroundColor: "black",
|
|
6176
|
+
position: "relative"
|
|
6177
|
+
},
|
|
6178
|
+
children: [
|
|
6179
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6180
|
+
import_themes22.Flex,
|
|
6181
|
+
{
|
|
6182
|
+
align: "center",
|
|
6183
|
+
height: "100%",
|
|
6184
|
+
justify: "center",
|
|
6185
|
+
position: "absolute",
|
|
6186
|
+
style: {
|
|
6187
|
+
position: "absolute",
|
|
6188
|
+
top: 0,
|
|
6189
|
+
left: 0,
|
|
6190
|
+
zIndex: 1,
|
|
6191
|
+
color: "white"
|
|
6192
|
+
},
|
|
6193
|
+
width: "100%",
|
|
6194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes49.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
6195
|
+
}
|
|
6196
|
+
) : null,
|
|
6197
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6198
|
+
"iframe",
|
|
6199
|
+
{
|
|
6200
|
+
allowFullScreen: true,
|
|
6201
|
+
onError: () => {
|
|
6202
|
+
setIsLoading(false);
|
|
6203
|
+
},
|
|
6204
|
+
onLoad: () => {
|
|
6205
|
+
setIsLoading(false);
|
|
6206
|
+
},
|
|
6207
|
+
src: `${value.url}?theme=light`,
|
|
6208
|
+
style: { width: "100%", height: "100%", border: "none" },
|
|
6209
|
+
title: "Curriculum Video"
|
|
6210
|
+
}
|
|
6211
|
+
)
|
|
6212
|
+
]
|
|
6213
|
+
}
|
|
6214
|
+
) })
|
|
6215
|
+
}
|
|
6216
|
+
)
|
|
6217
|
+
] });
|
|
6218
|
+
}
|
|
6219
|
+
return null;
|
|
6220
|
+
}
|
|
6221
|
+
|
|
5961
6222
|
// src/theme/use-theme.tsx
|
|
5962
6223
|
var import_themes56 = require("@radix-ui/themes");
|
|
5963
6224
|
|
|
@@ -5965,22 +6226,22 @@ var import_themes56 = require("@radix-ui/themes");
|
|
|
5965
6226
|
var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
|
|
5966
6227
|
|
|
5967
6228
|
// src/charts/horizontal-bar-chart.tsx
|
|
5968
|
-
var
|
|
6229
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
5969
6230
|
function HorizontalBarChart(props) {
|
|
5970
6231
|
const { total, value, backgroundColor, barColor, height } = props;
|
|
5971
|
-
return /* @__PURE__ */ (0,
|
|
6232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5972
6233
|
"div",
|
|
5973
6234
|
{
|
|
5974
6235
|
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
5975
6236
|
style: { height, backgroundColor },
|
|
5976
|
-
children: /* @__PURE__ */ (0,
|
|
6237
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5977
6238
|
"div",
|
|
5978
6239
|
{
|
|
5979
6240
|
style: {
|
|
5980
6241
|
width: `${Math.round(value / total * 100)}%`,
|
|
5981
6242
|
height: "100%"
|
|
5982
6243
|
},
|
|
5983
|
-
children: /* @__PURE__ */ (0,
|
|
6244
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
|
|
5984
6245
|
}
|
|
5985
6246
|
)
|
|
5986
6247
|
}
|
|
@@ -6136,23 +6397,23 @@ var EchartDefaultProps = {
|
|
|
6136
6397
|
};
|
|
6137
6398
|
|
|
6138
6399
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
6139
|
-
var
|
|
6400
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6140
6401
|
function CoachingCustomerInfoSmall({
|
|
6141
6402
|
customer,
|
|
6142
6403
|
children,
|
|
6143
6404
|
badge
|
|
6144
6405
|
}) {
|
|
6145
|
-
return /* @__PURE__ */ (0,
|
|
6406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
6146
6407
|
import_themes22.Flex,
|
|
6147
6408
|
{
|
|
6148
6409
|
direction: { initial: "column", xs: "row" },
|
|
6149
6410
|
gap: "3",
|
|
6150
6411
|
justify: "between",
|
|
6151
6412
|
children: [
|
|
6152
|
-
/* @__PURE__ */ (0,
|
|
6153
|
-
/* @__PURE__ */ (0,
|
|
6154
|
-
/* @__PURE__ */ (0,
|
|
6155
|
-
/* @__PURE__ */ (0,
|
|
6413
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
6414
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6415
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
6416
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes6.Box, { style: { justifySelf: "end" }, children: badge })
|
|
6156
6417
|
] }) }),
|
|
6157
6418
|
children
|
|
6158
6419
|
]
|
|
@@ -6162,8 +6423,8 @@ function CoachingCustomerInfoSmall({
|
|
|
6162
6423
|
|
|
6163
6424
|
// src/app/platform/userInfos/utils.tsx
|
|
6164
6425
|
var import_date_fns3 = require("date-fns");
|
|
6165
|
-
var
|
|
6166
|
-
var
|
|
6426
|
+
var import_react_icons10 = require("@radix-ui/react-icons");
|
|
6427
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
6167
6428
|
var infoList = [
|
|
6168
6429
|
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
6169
6430
|
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
@@ -6223,21 +6484,21 @@ var sessionList = [
|
|
|
6223
6484
|
var renderItem = (args) => {
|
|
6224
6485
|
const { info, data, onClickCopy } = args;
|
|
6225
6486
|
const value = info.getValue(data);
|
|
6226
|
-
return /* @__PURE__ */ (0,
|
|
6487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
6227
6488
|
info.render ? info.render(value) : value || "-",
|
|
6228
|
-
info.copyable && value ? /* @__PURE__ */ (0,
|
|
6489
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
6229
6490
|
] });
|
|
6230
6491
|
};
|
|
6231
6492
|
var renderDataListItem = (args) => {
|
|
6232
6493
|
const { info, data, onClickCopy } = args;
|
|
6233
|
-
return /* @__PURE__ */ (0,
|
|
6234
|
-
/* @__PURE__ */ (0,
|
|
6235
|
-
/* @__PURE__ */ (0,
|
|
6494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes15.DataList.Item, { children: [
|
|
6495
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
6496
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
6236
6497
|
] }, info.label);
|
|
6237
6498
|
};
|
|
6238
6499
|
function CopyButton(props) {
|
|
6239
6500
|
const { value, onClickCopy } = props;
|
|
6240
|
-
return /* @__PURE__ */ (0,
|
|
6501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6241
6502
|
Button,
|
|
6242
6503
|
{
|
|
6243
6504
|
color: "gray",
|
|
@@ -6246,13 +6507,13 @@ function CopyButton(props) {
|
|
|
6246
6507
|
},
|
|
6247
6508
|
style: { marginLeft: "0", marginTop: "0" },
|
|
6248
6509
|
variant: "transparent",
|
|
6249
|
-
children: /* @__PURE__ */ (0,
|
|
6510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons10.CopyIcon, {})
|
|
6250
6511
|
}
|
|
6251
6512
|
);
|
|
6252
6513
|
}
|
|
6253
6514
|
|
|
6254
6515
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
6255
|
-
var
|
|
6516
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
6256
6517
|
function CoachingCustomerInfoMedium({
|
|
6257
6518
|
customer,
|
|
6258
6519
|
session,
|
|
@@ -6260,28 +6521,28 @@ function CoachingCustomerInfoMedium({
|
|
|
6260
6521
|
badge,
|
|
6261
6522
|
onClickCopy
|
|
6262
6523
|
}) {
|
|
6263
|
-
return /* @__PURE__ */ (0,
|
|
6264
|
-
/* @__PURE__ */ (0,
|
|
6265
|
-
/* @__PURE__ */ (0,
|
|
6266
|
-
/* @__PURE__ */ (0,
|
|
6524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6525
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes6.Box, { children: [
|
|
6526
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6267
6528
|
badge
|
|
6268
6529
|
] }),
|
|
6269
|
-
/* @__PURE__ */ (0,
|
|
6530
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6270
6531
|
] }),
|
|
6271
6532
|
children,
|
|
6272
|
-
/* @__PURE__ */ (0,
|
|
6533
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
6273
6534
|
(el) => renderDataListItem({
|
|
6274
6535
|
info: el,
|
|
6275
6536
|
data: session,
|
|
6276
6537
|
onClickCopy
|
|
6277
6538
|
})
|
|
6278
6539
|
) }) }),
|
|
6279
|
-
/* @__PURE__ */ (0,
|
|
6280
|
-
/* @__PURE__ */ (0,
|
|
6281
|
-
/* @__PURE__ */ (0,
|
|
6540
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
6541
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
6542
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes39.Separator, { size: "4" })
|
|
6282
6543
|
] }),
|
|
6283
|
-
/* @__PURE__ */ (0,
|
|
6284
|
-
return /* @__PURE__ */ (0,
|
|
6544
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
6545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { children: renderItem({
|
|
6285
6546
|
info: el,
|
|
6286
6547
|
data: customer,
|
|
6287
6548
|
onClickCopy
|
|
@@ -6291,7 +6552,7 @@ function CoachingCustomerInfoMedium({
|
|
|
6291
6552
|
}
|
|
6292
6553
|
|
|
6293
6554
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
6294
|
-
var
|
|
6555
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6295
6556
|
function CoachingCustomerInfoLarge({
|
|
6296
6557
|
customer,
|
|
6297
6558
|
session,
|
|
@@ -6299,24 +6560,24 @@ function CoachingCustomerInfoLarge({
|
|
|
6299
6560
|
badge,
|
|
6300
6561
|
onClickCopy
|
|
6301
6562
|
}) {
|
|
6302
|
-
return /* @__PURE__ */ (0,
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6304
|
-
/* @__PURE__ */ (0,
|
|
6305
|
-
/* @__PURE__ */ (0,
|
|
6563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6564
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes6.Box, { children: [
|
|
6565
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
6566
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
6306
6567
|
badge
|
|
6307
6568
|
] }),
|
|
6308
|
-
/* @__PURE__ */ (0,
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
6309
6570
|
] }),
|
|
6310
6571
|
children,
|
|
6311
|
-
/* @__PURE__ */ (0,
|
|
6572
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
6312
6573
|
(el) => renderDataListItem({
|
|
6313
6574
|
info: el,
|
|
6314
6575
|
data: session,
|
|
6315
6576
|
onClickCopy
|
|
6316
6577
|
})
|
|
6317
6578
|
) }) }),
|
|
6318
|
-
/* @__PURE__ */ (0,
|
|
6319
|
-
/* @__PURE__ */ (0,
|
|
6579
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes39.Separator, { size: "4" }),
|
|
6580
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
6320
6581
|
(info) => renderDataListItem({
|
|
6321
6582
|
info,
|
|
6322
6583
|
data: customer,
|
|
@@ -6327,19 +6588,19 @@ function CoachingCustomerInfoLarge({
|
|
|
6327
6588
|
}
|
|
6328
6589
|
|
|
6329
6590
|
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
6330
|
-
var
|
|
6591
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6331
6592
|
function CoachingCustomerInfo(props) {
|
|
6332
|
-
return /* @__PURE__ */ (0,
|
|
6333
|
-
/* @__PURE__ */ (0,
|
|
6334
|
-
/* @__PURE__ */ (0,
|
|
6335
|
-
/* @__PURE__ */ (0,
|
|
6593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
6595
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
6596
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes6.Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
6336
6597
|
] });
|
|
6337
6598
|
}
|
|
6338
6599
|
|
|
6339
6600
|
// src/app/platform/goal-manage-card-read.tsx
|
|
6340
|
-
var
|
|
6601
|
+
var import_react47 = require("react");
|
|
6341
6602
|
var import_date_fns4 = require("date-fns");
|
|
6342
|
-
var
|
|
6603
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6343
6604
|
function GoalManageCardRead(props) {
|
|
6344
6605
|
const {
|
|
6345
6606
|
title,
|
|
@@ -6353,12 +6614,12 @@ function GoalManageCardRead(props) {
|
|
|
6353
6614
|
onClickIncomplete,
|
|
6354
6615
|
onClickComplete
|
|
6355
6616
|
} = props;
|
|
6356
|
-
const [open, setOpen] = (0,
|
|
6357
|
-
const onClickOpen = (0,
|
|
6617
|
+
const [open, setOpen] = (0, import_react47.useState)(Boolean(defaultOpen));
|
|
6618
|
+
const onClickOpen = (0, import_react47.useCallback)(() => {
|
|
6358
6619
|
setOpen((p) => !p);
|
|
6359
6620
|
}, []);
|
|
6360
|
-
const icon = open ? /* @__PURE__ */ (0,
|
|
6361
|
-
const badgeMeta = (0,
|
|
6621
|
+
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.ChevronDownIcon, {});
|
|
6622
|
+
const badgeMeta = (0, import_react47.useMemo)(() => {
|
|
6362
6623
|
if (!completed && dueDate) {
|
|
6363
6624
|
if (dueDate >= (0, import_date_fns4.startOfDay)(/* @__PURE__ */ new Date()))
|
|
6364
6625
|
return {
|
|
@@ -6369,41 +6630,41 @@ function GoalManageCardRead(props) {
|
|
|
6369
6630
|
}
|
|
6370
6631
|
return null;
|
|
6371
6632
|
}, [completed, dueDate]);
|
|
6372
|
-
const renderSubTitle = (0,
|
|
6373
|
-
return /* @__PURE__ */ (0,
|
|
6633
|
+
const renderSubTitle = (0, import_react47.useCallback)((subTitle) => {
|
|
6634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
6374
6635
|
}, []);
|
|
6375
|
-
const renderSubContent = (0,
|
|
6376
|
-
return /* @__PURE__ */ (0,
|
|
6636
|
+
const renderSubContent = (0, import_react47.useCallback)((content) => {
|
|
6637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
6377
6638
|
}, []);
|
|
6378
|
-
const renderCompleteButton = (0,
|
|
6639
|
+
const renderCompleteButton = (0, import_react47.useCallback)(() => {
|
|
6379
6640
|
if (completed) {
|
|
6380
|
-
return /* @__PURE__ */ (0,
|
|
6641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickIncomplete, size: "small", variant: "surface", children: "\uC9C4\uD589\uC911\uC778 \uACFC\uC81C\uB85C \uB3CC\uB824\uB193\uAE30" });
|
|
6381
6642
|
}
|
|
6382
|
-
return /* @__PURE__ */ (0,
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6384
|
-
/* @__PURE__ */ (0,
|
|
6643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6644
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { size: "small", children: [
|
|
6645
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.RocketIcon, {}),
|
|
6385
6646
|
"\uB2EC\uC131\uD558\uAE30"
|
|
6386
6647
|
] }) }),
|
|
6387
|
-
/* @__PURE__ */ (0,
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
6389
|
-
/* @__PURE__ */ (0,
|
|
6390
|
-
/* @__PURE__ */ (0,
|
|
6391
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6649
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6650
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6651
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6652
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickComplete, size: "small", children: "\uC608" }) })
|
|
6392
6653
|
] })
|
|
6393
6654
|
] })
|
|
6394
6655
|
] });
|
|
6395
6656
|
}, [completed, onClickIncomplete, onClickComplete]);
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6397
|
-
/* @__PURE__ */ (0,
|
|
6398
|
-
/* @__PURE__ */ (0,
|
|
6399
|
-
/* @__PURE__ */ (0,
|
|
6400
|
-
/* @__PURE__ */ (0,
|
|
6401
|
-
badgeMeta ? /* @__PURE__ */ (0,
|
|
6402
|
-
/* @__PURE__ */ (0,
|
|
6657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
6658
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
6659
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
6662
|
+
badgeMeta ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Badge, __spreadValues({}, badgeMeta)) : null,
|
|
6663
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns4.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
6403
6664
|
] }),
|
|
6404
6665
|
renderCompleteButton()
|
|
6405
6666
|
] }),
|
|
6406
|
-
open ? /* @__PURE__ */ (0,
|
|
6667
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6407
6668
|
import_themes39.Separator,
|
|
6408
6669
|
{
|
|
6409
6670
|
mb: "4",
|
|
@@ -6412,37 +6673,37 @@ function GoalManageCardRead(props) {
|
|
|
6412
6673
|
style: { gridColumnStart: "span 2" }
|
|
6413
6674
|
}
|
|
6414
6675
|
) : null,
|
|
6415
|
-
/* @__PURE__ */ (0,
|
|
6416
|
-
/* @__PURE__ */ (0,
|
|
6417
|
-
/* @__PURE__ */ (0,
|
|
6676
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Collapse, { open, children: [
|
|
6677
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes6.Box, { children: [
|
|
6418
6679
|
renderSubTitle(
|
|
6419
6680
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
6420
6681
|
),
|
|
6421
6682
|
renderSubContent(expectedEffect)
|
|
6422
6683
|
] }),
|
|
6423
|
-
/* @__PURE__ */ (0,
|
|
6684
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes6.Box, { children: [
|
|
6424
6685
|
renderSubTitle(
|
|
6425
6686
|
"\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"
|
|
6426
6687
|
),
|
|
6427
6688
|
renderSubContent(huddle)
|
|
6428
6689
|
] })
|
|
6429
6690
|
] }),
|
|
6430
|
-
/* @__PURE__ */ (0,
|
|
6431
|
-
/* @__PURE__ */ (0,
|
|
6432
|
-
/* @__PURE__ */ (0,
|
|
6433
|
-
/* @__PURE__ */ (0,
|
|
6691
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
6692
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Root, { children: [
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { color: "gray", size: "small", variant: "ghost", children: [
|
|
6694
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.TrashIcon, {}),
|
|
6434
6695
|
"\uC0AD\uC81C\uD558\uAE30"
|
|
6435
6696
|
] }) }),
|
|
6436
|
-
/* @__PURE__ */ (0,
|
|
6437
|
-
/* @__PURE__ */ (0,
|
|
6438
|
-
/* @__PURE__ */ (0,
|
|
6439
|
-
/* @__PURE__ */ (0,
|
|
6440
|
-
/* @__PURE__ */ (0,
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes29.Popover.Content, { children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
6700
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
6701
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { onClick: onClickDelete, size: "small", children: "\uC608" }) })
|
|
6441
6702
|
] })
|
|
6442
6703
|
] })
|
|
6443
6704
|
] }),
|
|
6444
|
-
/* @__PURE__ */ (0,
|
|
6445
|
-
/* @__PURE__ */ (0,
|
|
6705
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Button, { onClick: onClickEdit, size: "small", variant: "surface", children: [
|
|
6706
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons2.Pencil1Icon, {}),
|
|
6446
6707
|
"\uC218\uC815\uD558\uAE30"
|
|
6447
6708
|
] })
|
|
6448
6709
|
] })
|
|
@@ -6451,9 +6712,9 @@ function GoalManageCardRead(props) {
|
|
|
6451
6712
|
}
|
|
6452
6713
|
|
|
6453
6714
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
6454
|
-
var
|
|
6715
|
+
var import_react48 = require("react");
|
|
6455
6716
|
var import_date_fns5 = require("date-fns");
|
|
6456
|
-
var
|
|
6717
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6457
6718
|
var initialValues = {
|
|
6458
6719
|
goal: "",
|
|
6459
6720
|
effect: "",
|
|
@@ -6464,8 +6725,8 @@ var dummyFn = () => {
|
|
|
6464
6725
|
};
|
|
6465
6726
|
function GoalManageCardEdit(props) {
|
|
6466
6727
|
const { defaultValues, errors } = props;
|
|
6467
|
-
const [values, setValues] = (0,
|
|
6468
|
-
const onChange = (0,
|
|
6728
|
+
const [values, setValues] = (0, import_react48.useState)(defaultValues || initialValues);
|
|
6729
|
+
const onChange = (0, import_react48.useCallback)(
|
|
6469
6730
|
(v) => {
|
|
6470
6731
|
var _a;
|
|
6471
6732
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -6473,20 +6734,20 @@ function GoalManageCardEdit(props) {
|
|
|
6473
6734
|
},
|
|
6474
6735
|
[props]
|
|
6475
6736
|
);
|
|
6476
|
-
const onClickInit = (0,
|
|
6737
|
+
const onClickInit = (0, import_react48.useCallback)(() => {
|
|
6477
6738
|
var _a;
|
|
6478
6739
|
setValues(initialValues);
|
|
6479
6740
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
6480
6741
|
}, [defaultValues, props]);
|
|
6481
|
-
const onClickSubmit = (0,
|
|
6742
|
+
const onClickSubmit = (0, import_react48.useCallback)(() => {
|
|
6482
6743
|
var _a;
|
|
6483
6744
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
6484
6745
|
}, [props, values]);
|
|
6485
|
-
return /* @__PURE__ */ (0,
|
|
6486
|
-
/* @__PURE__ */ (0,
|
|
6487
|
-
/* @__PURE__ */ (0,
|
|
6488
|
-
/* @__PURE__ */ (0,
|
|
6489
|
-
/* @__PURE__ */ (0,
|
|
6746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
6747
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
6748
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "title", children: [
|
|
6749
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6750
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6490
6751
|
TextField.Root,
|
|
6491
6752
|
{
|
|
6492
6753
|
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
@@ -6497,11 +6758,11 @@ function GoalManageCardEdit(props) {
|
|
|
6497
6758
|
value: values.goal
|
|
6498
6759
|
}
|
|
6499
6760
|
),
|
|
6500
|
-
/* @__PURE__ */ (0,
|
|
6761
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
6501
6762
|
] }),
|
|
6502
|
-
/* @__PURE__ */ (0,
|
|
6503
|
-
/* @__PURE__ */ (0,
|
|
6504
|
-
/* @__PURE__ */ (0,
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "effect", children: [
|
|
6764
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6505
6766
|
TextArea,
|
|
6506
6767
|
{
|
|
6507
6768
|
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
@@ -6513,11 +6774,11 @@ function GoalManageCardEdit(props) {
|
|
|
6513
6774
|
value: values.effect
|
|
6514
6775
|
}
|
|
6515
6776
|
),
|
|
6516
|
-
/* @__PURE__ */ (0,
|
|
6777
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
6517
6778
|
] }),
|
|
6518
|
-
/* @__PURE__ */ (0,
|
|
6519
|
-
/* @__PURE__ */ (0,
|
|
6520
|
-
/* @__PURE__ */ (0,
|
|
6779
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "huddle", children: [
|
|
6780
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
6781
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6521
6782
|
TextArea,
|
|
6522
6783
|
{
|
|
6523
6784
|
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
@@ -6531,11 +6792,11 @@ function GoalManageCardEdit(props) {
|
|
|
6531
6792
|
value: values.huddle
|
|
6532
6793
|
}
|
|
6533
6794
|
),
|
|
6534
|
-
/* @__PURE__ */ (0,
|
|
6795
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
6535
6796
|
] }),
|
|
6536
|
-
/* @__PURE__ */ (0,
|
|
6537
|
-
/* @__PURE__ */ (0,
|
|
6538
|
-
/* @__PURE__ */ (0,
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Form.Field, { name: "dueDate", children: [
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6539
6800
|
DatePickerButton,
|
|
6540
6801
|
{
|
|
6541
6802
|
format: (v) => (0, import_date_fns5.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
@@ -6546,11 +6807,11 @@ function GoalManageCardEdit(props) {
|
|
|
6546
6807
|
selected: values.dueDate
|
|
6547
6808
|
}
|
|
6548
6809
|
),
|
|
6549
|
-
/* @__PURE__ */ (0,
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
6550
6811
|
] })
|
|
6551
6812
|
] }),
|
|
6552
|
-
/* @__PURE__ */ (0,
|
|
6553
|
-
/* @__PURE__ */ (0,
|
|
6813
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
6814
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6554
6815
|
Button,
|
|
6555
6816
|
{
|
|
6556
6817
|
color: "gray",
|
|
@@ -6561,18 +6822,18 @@ function GoalManageCardEdit(props) {
|
|
|
6561
6822
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
6562
6823
|
}
|
|
6563
6824
|
),
|
|
6564
|
-
/* @__PURE__ */ (0,
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
6565
6826
|
] })
|
|
6566
6827
|
] }) });
|
|
6567
6828
|
}
|
|
6568
6829
|
|
|
6569
6830
|
// src/app/platform/session-card.tsx
|
|
6570
|
-
var
|
|
6831
|
+
var import_react51 = require("react");
|
|
6571
6832
|
var import_date_fns6 = require("date-fns");
|
|
6572
6833
|
|
|
6573
6834
|
// src/app/platform/edit-coaching-time.tsx
|
|
6574
|
-
var
|
|
6575
|
-
var
|
|
6835
|
+
var import_react49 = require("react");
|
|
6836
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
6576
6837
|
var getValueFromDefaultValue = (args) => {
|
|
6577
6838
|
return {
|
|
6578
6839
|
startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
|
|
@@ -6592,14 +6853,14 @@ var getDateFromValue = (date, time) => {
|
|
|
6592
6853
|
};
|
|
6593
6854
|
function EditCoachingTime(props) {
|
|
6594
6855
|
const { defaultEndAt, defaultStartAt, onClickCancel } = props;
|
|
6595
|
-
const [values, setValues] = (0,
|
|
6856
|
+
const [values, setValues] = (0, import_react49.useState)(() => {
|
|
6596
6857
|
return getValueFromDefaultValue({
|
|
6597
6858
|
startAt: defaultStartAt,
|
|
6598
6859
|
endAt: defaultEndAt
|
|
6599
6860
|
});
|
|
6600
6861
|
});
|
|
6601
|
-
const [timeError, setTimeError] = (0,
|
|
6602
|
-
const checkTimeError = (0,
|
|
6862
|
+
const [timeError, setTimeError] = (0, import_react49.useState)("");
|
|
6863
|
+
const checkTimeError = (0, import_react49.useCallback)(
|
|
6603
6864
|
(startTime, endTime) => {
|
|
6604
6865
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
6605
6866
|
if (error) {
|
|
@@ -6610,7 +6871,7 @@ function EditCoachingTime(props) {
|
|
|
6610
6871
|
},
|
|
6611
6872
|
[]
|
|
6612
6873
|
);
|
|
6613
|
-
const onChangeStartTime = (0,
|
|
6874
|
+
const onChangeStartTime = (0, import_react49.useCallback)(
|
|
6614
6875
|
(v) => {
|
|
6615
6876
|
checkTimeError(v, values.endTime);
|
|
6616
6877
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6619,7 +6880,7 @@ function EditCoachingTime(props) {
|
|
|
6619
6880
|
},
|
|
6620
6881
|
[checkTimeError, values.endTime]
|
|
6621
6882
|
);
|
|
6622
|
-
const onChangeEndTime = (0,
|
|
6883
|
+
const onChangeEndTime = (0, import_react49.useCallback)(
|
|
6623
6884
|
(v) => {
|
|
6624
6885
|
checkTimeError(values.startTime, v);
|
|
6625
6886
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6628,12 +6889,12 @@ function EditCoachingTime(props) {
|
|
|
6628
6889
|
},
|
|
6629
6890
|
[checkTimeError, values.startTime]
|
|
6630
6891
|
);
|
|
6631
|
-
const onChangeDate = (0,
|
|
6892
|
+
const onChangeDate = (0, import_react49.useCallback)((date) => {
|
|
6632
6893
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
6633
6894
|
date
|
|
6634
6895
|
}));
|
|
6635
6896
|
}, []);
|
|
6636
|
-
const onClickSave = (0,
|
|
6897
|
+
const onClickSave = (0, import_react49.useCallback)(() => {
|
|
6637
6898
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
6638
6899
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
6639
6900
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -6642,10 +6903,10 @@ function EditCoachingTime(props) {
|
|
|
6642
6903
|
import_react_toastify2.toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
|
|
6643
6904
|
}
|
|
6644
6905
|
}, [checkTimeError, props, values.date, values.endTime, values.startTime]);
|
|
6645
|
-
return /* @__PURE__ */ (0,
|
|
6646
|
-
/* @__PURE__ */ (0,
|
|
6647
|
-
/* @__PURE__ */ (0,
|
|
6648
|
-
/* @__PURE__ */ (0,
|
|
6906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes6.Box, { width: { initial: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Form.Root, { children: [
|
|
6907
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Form.Field, { name: "date", children: [
|
|
6908
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
|
|
6909
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6649
6910
|
DatePickerButton,
|
|
6650
6911
|
{
|
|
6651
6912
|
maxDate: /* @__PURE__ */ new Date(),
|
|
@@ -6655,7 +6916,7 @@ function EditCoachingTime(props) {
|
|
|
6655
6916
|
}
|
|
6656
6917
|
)
|
|
6657
6918
|
] }),
|
|
6658
|
-
/* @__PURE__ */ (0,
|
|
6919
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
6659
6920
|
import_themes23.Grid,
|
|
6660
6921
|
{
|
|
6661
6922
|
align: "center",
|
|
@@ -6670,10 +6931,10 @@ function EditCoachingTime(props) {
|
|
|
6670
6931
|
mt: "5",
|
|
6671
6932
|
width: "100%",
|
|
6672
6933
|
children: [
|
|
6673
|
-
/* @__PURE__ */ (0,
|
|
6674
|
-
/* @__PURE__ */ (0,
|
|
6675
|
-
/* @__PURE__ */ (0,
|
|
6676
|
-
/* @__PURE__ */ (0,
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "startTime", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", {}),
|
|
6936
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "endTime", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
|
|
6937
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6677
6938
|
TimeSelect,
|
|
6678
6939
|
{
|
|
6679
6940
|
onValueChange: onChangeStartTime,
|
|
@@ -6681,8 +6942,8 @@ function EditCoachingTime(props) {
|
|
|
6681
6942
|
value: values.startTime
|
|
6682
6943
|
}
|
|
6683
6944
|
),
|
|
6684
|
-
/* @__PURE__ */ (0,
|
|
6685
|
-
/* @__PURE__ */ (0,
|
|
6945
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes6.Box, { overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes39.Separator, {}) }),
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6686
6947
|
TimeSelect,
|
|
6687
6948
|
{
|
|
6688
6949
|
onValueChange: onChangeEndTime,
|
|
@@ -6690,36 +6951,36 @@ function EditCoachingTime(props) {
|
|
|
6690
6951
|
value: values.endTime
|
|
6691
6952
|
}
|
|
6692
6953
|
),
|
|
6693
|
-
/* @__PURE__ */ (0,
|
|
6954
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
|
|
6694
6955
|
]
|
|
6695
6956
|
}
|
|
6696
6957
|
),
|
|
6697
|
-
/* @__PURE__ */ (0,
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6699
|
-
/* @__PURE__ */ (0,
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
6959
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
6960
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6700
6961
|
] })
|
|
6701
6962
|
] }) });
|
|
6702
6963
|
}
|
|
6703
6964
|
|
|
6704
6965
|
// src/app/platform/edit-service-type.tsx
|
|
6705
|
-
var
|
|
6966
|
+
var import_react50 = require("react");
|
|
6706
6967
|
|
|
6707
6968
|
// src/app/platform/on-offline-radio-card.tsx
|
|
6708
|
-
var
|
|
6709
|
-
var
|
|
6969
|
+
var import_react_icons11 = require("@radix-ui/react-icons");
|
|
6970
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
6710
6971
|
var SERVICE_TYPE = {
|
|
6711
6972
|
onlineCoaching: "onlineCoaching",
|
|
6712
6973
|
offlineCoaching: "offlineCoaching"
|
|
6713
6974
|
};
|
|
6714
6975
|
var breakpoint = "sm";
|
|
6715
6976
|
function HideSmallBox(props) {
|
|
6716
|
-
return /* @__PURE__ */ (0,
|
|
6977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes6.Box, { display: { initial: "none", [breakpoint]: "block" }, children: props.children });
|
|
6717
6978
|
}
|
|
6718
6979
|
function OnOfflineRadioCard(props) {
|
|
6719
6980
|
const Wrapper = props.response ? HideSmallBox : (p) => p.children;
|
|
6720
6981
|
const columns = props.response ? { initial: "2", [breakpoint]: "1" } : "1";
|
|
6721
6982
|
const justify = props.response ? { initial: "center", [breakpoint]: "between" } : "between";
|
|
6722
|
-
return /* @__PURE__ */ (0,
|
|
6983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
6723
6984
|
RadioButtonCard.Root,
|
|
6724
6985
|
__spreadProps(__spreadValues({
|
|
6725
6986
|
RadioWrapper: Wrapper,
|
|
@@ -6728,13 +6989,13 @@ function OnOfflineRadioCard(props) {
|
|
|
6728
6989
|
justify
|
|
6729
6990
|
}, props), {
|
|
6730
6991
|
children: [
|
|
6731
|
-
/* @__PURE__ */ (0,
|
|
6732
|
-
/* @__PURE__ */ (0,
|
|
6733
|
-
/* @__PURE__ */ (0,
|
|
6992
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6993
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_icons11.GlobeIcon, {}) }),
|
|
6994
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
6734
6995
|
] }) }),
|
|
6735
|
-
/* @__PURE__ */ (0,
|
|
6736
|
-
/* @__PURE__ */ (0,
|
|
6737
|
-
/* @__PURE__ */ (0,
|
|
6996
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
6997
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_icons11.BackpackIcon, {}) }),
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
6738
6999
|
] }) })
|
|
6739
7000
|
]
|
|
6740
7001
|
})
|
|
@@ -6742,18 +7003,18 @@ function OnOfflineRadioCard(props) {
|
|
|
6742
7003
|
}
|
|
6743
7004
|
|
|
6744
7005
|
// src/app/platform/edit-service-type.tsx
|
|
6745
|
-
var
|
|
7006
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6746
7007
|
function EditServiceType(props) {
|
|
6747
7008
|
const { defaultServiceType, onClickCancel } = props;
|
|
6748
|
-
const [sessionType, setSessionType] = (0,
|
|
7009
|
+
const [sessionType, setSessionType] = (0, import_react50.useState)(
|
|
6749
7010
|
defaultServiceType
|
|
6750
7011
|
);
|
|
6751
|
-
const onClickSave = (0,
|
|
7012
|
+
const onClickSave = (0, import_react50.useCallback)(() => {
|
|
6752
7013
|
var _a;
|
|
6753
7014
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
6754
7015
|
}, [props, sessionType]);
|
|
6755
|
-
return /* @__PURE__ */ (0,
|
|
6756
|
-
/* @__PURE__ */ (0,
|
|
7016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes6.Box, { children: [
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6757
7018
|
Typo,
|
|
6758
7019
|
{
|
|
6759
7020
|
as: "p",
|
|
@@ -6763,16 +7024,16 @@ function EditServiceType(props) {
|
|
|
6763
7024
|
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"
|
|
6764
7025
|
}
|
|
6765
7026
|
),
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6767
|
-
/* @__PURE__ */ (0,
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6769
|
-
/* @__PURE__ */ (0,
|
|
7027
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
7028
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
7029
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
7030
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
6770
7031
|
] })
|
|
6771
7032
|
] });
|
|
6772
7033
|
}
|
|
6773
7034
|
|
|
6774
7035
|
// src/app/platform/session-card.tsx
|
|
6775
|
-
var
|
|
7036
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
6776
7037
|
var preventDefault4 = (e) => {
|
|
6777
7038
|
e.preventDefault();
|
|
6778
7039
|
};
|
|
@@ -6802,33 +7063,33 @@ function SessionCard(props) {
|
|
|
6802
7063
|
"endAt",
|
|
6803
7064
|
"sessionType"
|
|
6804
7065
|
]);
|
|
6805
|
-
const renderEditButton = (0,
|
|
6806
|
-
return /* @__PURE__ */ (0,
|
|
7066
|
+
const renderEditButton = (0, import_react51.useCallback)(() => {
|
|
7067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_icons2.Pencil1Icon, {}) });
|
|
6807
7068
|
}, []);
|
|
6808
|
-
const sessionTimeStr = (0,
|
|
7069
|
+
const sessionTimeStr = (0, import_react51.useMemo)(() => {
|
|
6809
7070
|
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
6810
7071
|
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")}`;
|
|
6811
7072
|
}, [startAt, endAt]);
|
|
6812
|
-
return /* @__PURE__ */ (0,
|
|
6813
|
-
/* @__PURE__ */ (0,
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
7073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
7074
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
7075
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
6815
7076
|
TitleExtra,
|
|
6816
|
-
error ? /* @__PURE__ */ (0,
|
|
7077
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
6817
7078
|
] }),
|
|
6818
|
-
/* @__PURE__ */ (0,
|
|
6819
|
-
/* @__PURE__ */ (0,
|
|
6820
|
-
/* @__PURE__ */ (0,
|
|
6821
|
-
/* @__PURE__ */ (0,
|
|
7079
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Root, { children: [
|
|
7080
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Item, { children: [
|
|
7081
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes15.DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
7082
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6822
7083
|
sessionTimeStr,
|
|
6823
|
-
editable ? /* @__PURE__ */ (0,
|
|
6824
|
-
/* @__PURE__ */ (0,
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
7084
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Dialog.Root, { children: [
|
|
7085
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
7086
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6826
7087
|
Dialog.Content,
|
|
6827
7088
|
{
|
|
6828
7089
|
onOpenAutoFocus: preventDefault4,
|
|
6829
7090
|
style: { overflow: "visible" },
|
|
6830
7091
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
6831
|
-
children: /* @__PURE__ */ (0,
|
|
7092
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6832
7093
|
EditCoachingTime,
|
|
6833
7094
|
{
|
|
6834
7095
|
defaultEndAt: endAt,
|
|
@@ -6841,18 +7102,18 @@ function SessionCard(props) {
|
|
|
6841
7102
|
] }) : null
|
|
6842
7103
|
] })
|
|
6843
7104
|
] }),
|
|
6844
|
-
/* @__PURE__ */ (0,
|
|
6845
|
-
/* @__PURE__ */ (0,
|
|
6846
|
-
/* @__PURE__ */ (0,
|
|
6847
|
-
/* @__PURE__ */ (0,
|
|
7105
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
7106
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Item, { children: [
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
7108
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_themes15.DataList.Value, { children: [
|
|
6848
7109
|
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
6849
|
-
editable ? /* @__PURE__ */ (0,
|
|
6850
|
-
/* @__PURE__ */ (0,
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
7110
|
+
editable ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Dialog.Root, { children: [
|
|
7111
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Dialog.Trigger, { children: renderEditButton() }),
|
|
7112
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6852
7113
|
Dialog.Content,
|
|
6853
7114
|
{
|
|
6854
7115
|
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
6855
|
-
children: /* @__PURE__ */ (0,
|
|
7116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6856
7117
|
EditServiceType,
|
|
6857
7118
|
{
|
|
6858
7119
|
defaultServiceType: sessionType,
|
|
@@ -6864,33 +7125,33 @@ function SessionCard(props) {
|
|
|
6864
7125
|
] }) : null
|
|
6865
7126
|
] })
|
|
6866
7127
|
] }),
|
|
6867
|
-
/* @__PURE__ */ (0,
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
6868
7129
|
] })
|
|
6869
7130
|
] })
|
|
6870
7131
|
] }) }));
|
|
6871
7132
|
}
|
|
6872
7133
|
|
|
6873
7134
|
// src/app/platform/coach-question-list.tsx
|
|
6874
|
-
var
|
|
7135
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
6875
7136
|
function QuestionItem({ question, answer }) {
|
|
6876
|
-
return /* @__PURE__ */ (0,
|
|
6877
|
-
/* @__PURE__ */ (0,
|
|
6878
|
-
/* @__PURE__ */ (0,
|
|
7137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_themes6.Box, { children: [
|
|
7138
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Heading2, { mb: "2", variant: "heading5", children: question }),
|
|
7139
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Card, { children: answer ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Typo, { as: "p", children: answer }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Typo, { color: "gray", children: "\uB4F1\uB85D\uB41C \uB2F5\uBCC0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }) })
|
|
6879
7140
|
] }, question);
|
|
6880
7141
|
}
|
|
6881
7142
|
function CoachQuestionList({
|
|
6882
7143
|
questions
|
|
6883
7144
|
}) {
|
|
6884
|
-
return /* @__PURE__ */ (0,
|
|
6885
|
-
return /* @__PURE__ */ (0,
|
|
7145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
7146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
6886
7147
|
}) });
|
|
6887
7148
|
}
|
|
6888
7149
|
|
|
6889
7150
|
// src/app/platform/reservation-card.tsx
|
|
6890
|
-
var
|
|
7151
|
+
var import_react52 = require("react");
|
|
6891
7152
|
var import_date_fns7 = require("date-fns");
|
|
6892
7153
|
var import_locale2 = require("date-fns/locale");
|
|
6893
|
-
var
|
|
7154
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
6894
7155
|
function ReservationCard(props) {
|
|
6895
7156
|
const {
|
|
6896
7157
|
sessionNumber,
|
|
@@ -6905,29 +7166,29 @@ function ReservationCard(props) {
|
|
|
6905
7166
|
onClickCancel,
|
|
6906
7167
|
onClickCompleteSession
|
|
6907
7168
|
} = props;
|
|
6908
|
-
const [editValues, setEditValues] = (0,
|
|
7169
|
+
const [editValues, setEditValues] = (0, import_react52.useState)({
|
|
6909
7170
|
date: props.defaultTime,
|
|
6910
7171
|
type: props.defaultType
|
|
6911
7172
|
});
|
|
6912
7173
|
const date = readonly ? defaultTime : editValues.date;
|
|
6913
7174
|
const type = readonly ? defaultType : editValues.type;
|
|
6914
|
-
const onClickSave = (0,
|
|
7175
|
+
const onClickSave = (0, import_react52.useCallback)(() => {
|
|
6915
7176
|
var _a;
|
|
6916
7177
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
6917
7178
|
}, [editValues, props]);
|
|
6918
|
-
const onClickReset = (0,
|
|
7179
|
+
const onClickReset = (0, import_react52.useCallback)(() => {
|
|
6919
7180
|
setEditValues({
|
|
6920
7181
|
date: defaultTime,
|
|
6921
7182
|
type: defaultType
|
|
6922
7183
|
});
|
|
6923
7184
|
}, [defaultTime, defaultType]);
|
|
6924
|
-
const ActionButtons = (0,
|
|
7185
|
+
const ActionButtons = (0, import_react52.useMemo)(() => {
|
|
6925
7186
|
if (readonly) {
|
|
6926
|
-
return /* @__PURE__ */ (0,
|
|
7187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
6927
7188
|
}
|
|
6928
|
-
return /* @__PURE__ */ (0,
|
|
7189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_icons2.Cross1Icon, {}) });
|
|
6929
7190
|
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
6930
|
-
const onChangeDate = (0,
|
|
7191
|
+
const onChangeDate = (0, import_react52.useCallback)((newDate) => {
|
|
6931
7192
|
if (!newDate) return;
|
|
6932
7193
|
setEditValues((prev) => {
|
|
6933
7194
|
return __spreadProps(__spreadValues({}, prev), {
|
|
@@ -6935,17 +7196,17 @@ function ReservationCard(props) {
|
|
|
6935
7196
|
});
|
|
6936
7197
|
});
|
|
6937
7198
|
}, []);
|
|
6938
|
-
const onChangeType = (0,
|
|
7199
|
+
const onChangeType = (0, import_react52.useCallback)((newType) => {
|
|
6939
7200
|
setEditValues((prev) => {
|
|
6940
7201
|
return __spreadProps(__spreadValues({}, prev), {
|
|
6941
7202
|
type: newType
|
|
6942
7203
|
});
|
|
6943
7204
|
});
|
|
6944
7205
|
}, []);
|
|
6945
|
-
const formatDate = (0,
|
|
7206
|
+
const formatDate = (0, import_react52.useCallback)((v) => {
|
|
6946
7207
|
return (0, import_date_fns7.format)(v, "yyyy\uB144 MM\uC6D4 dd\uC77C(EEE) aa h:mm", { locale: import_locale2.ko });
|
|
6947
7208
|
}, []);
|
|
6948
|
-
(0,
|
|
7209
|
+
(0, import_react52.useEffect)(() => {
|
|
6949
7210
|
if (!minTime || !editValues.date || readonly) return;
|
|
6950
7211
|
if (editValues.date < minTime) {
|
|
6951
7212
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6956,7 +7217,7 @@ function ReservationCard(props) {
|
|
|
6956
7217
|
});
|
|
6957
7218
|
}
|
|
6958
7219
|
}, [editValues, minTime, readonly]);
|
|
6959
|
-
(0,
|
|
7220
|
+
(0, import_react52.useEffect)(() => {
|
|
6960
7221
|
if (!maxTime || !editValues.date || readonly) return;
|
|
6961
7222
|
if (editValues.date > maxTime) {
|
|
6962
7223
|
import_react_toastify2.toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
@@ -6967,39 +7228,39 @@ function ReservationCard(props) {
|
|
|
6967
7228
|
});
|
|
6968
7229
|
}
|
|
6969
7230
|
}, [editValues, maxTime, readonly]);
|
|
6970
|
-
return /* @__PURE__ */ (0,
|
|
7231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
6971
7232
|
Card,
|
|
6972
7233
|
{
|
|
6973
7234
|
error: Boolean(error),
|
|
6974
7235
|
size: "3",
|
|
6975
7236
|
style: { overflow: "visible", contain: "initial" },
|
|
6976
7237
|
children: [
|
|
6977
|
-
/* @__PURE__ */ (0,
|
|
6978
|
-
/* @__PURE__ */ (0,
|
|
7238
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
7239
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
6979
7240
|
import_themes23.Grid,
|
|
6980
7241
|
{
|
|
6981
7242
|
align: "center",
|
|
6982
7243
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
6983
7244
|
gapY: "2",
|
|
6984
7245
|
children: [
|
|
6985
|
-
/* @__PURE__ */ (0,
|
|
6986
|
-
/* @__PURE__ */ (0,
|
|
7246
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
7247
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Heading2, { variant: "heading4", children: [
|
|
6987
7248
|
customerName || "-",
|
|
6988
7249
|
"\uB2D8 ",
|
|
6989
7250
|
sessionNumber || "-",
|
|
6990
7251
|
"\uD68C\uCC28 \uC138\uC158"
|
|
6991
7252
|
] }),
|
|
6992
|
-
/* @__PURE__ */ (0,
|
|
7253
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
6993
7254
|
] }),
|
|
6994
|
-
error ? /* @__PURE__ */ (0,
|
|
7255
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
6995
7256
|
]
|
|
6996
7257
|
}
|
|
6997
7258
|
),
|
|
6998
|
-
/* @__PURE__ */ (0,
|
|
7259
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
6999
7260
|
] }),
|
|
7000
|
-
/* @__PURE__ */ (0,
|
|
7001
|
-
/* @__PURE__ */ (0,
|
|
7002
|
-
/* @__PURE__ */ (0,
|
|
7261
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7262
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
7263
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7003
7264
|
DatePickerButton,
|
|
7004
7265
|
{
|
|
7005
7266
|
disabled: readonly,
|
|
@@ -7013,8 +7274,8 @@ function ReservationCard(props) {
|
|
|
7013
7274
|
size: "large"
|
|
7014
7275
|
}
|
|
7015
7276
|
),
|
|
7016
|
-
/* @__PURE__ */ (0,
|
|
7017
|
-
/* @__PURE__ */ (0,
|
|
7277
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }),
|
|
7278
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7018
7279
|
OnOfflineRadioCard,
|
|
7019
7280
|
{
|
|
7020
7281
|
disabled: readonly,
|
|
@@ -7023,8 +7284,8 @@ function ReservationCard(props) {
|
|
|
7023
7284
|
value: type
|
|
7024
7285
|
}
|
|
7025
7286
|
),
|
|
7026
|
-
readonly ? null : /* @__PURE__ */ (0,
|
|
7027
|
-
/* @__PURE__ */ (0,
|
|
7287
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
7288
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7028
7289
|
Button,
|
|
7029
7290
|
{
|
|
7030
7291
|
color: "gray",
|
|
@@ -7034,10 +7295,10 @@ function ReservationCard(props) {
|
|
|
7034
7295
|
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
7035
7296
|
}
|
|
7036
7297
|
),
|
|
7037
|
-
/* @__PURE__ */ (0,
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
7038
7299
|
] })
|
|
7039
7300
|
] }) }),
|
|
7040
|
-
readonly ? /* @__PURE__ */ (0,
|
|
7301
|
+
readonly ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes25.Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
7041
7302
|
import_themes6.Box,
|
|
7042
7303
|
{
|
|
7043
7304
|
mt: "5",
|
|
@@ -7045,14 +7306,14 @@ function ReservationCard(props) {
|
|
|
7045
7306
|
py: "4",
|
|
7046
7307
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
7047
7308
|
width: "100%",
|
|
7048
|
-
children: /* @__PURE__ */ (0,
|
|
7049
|
-
/* @__PURE__ */ (0,
|
|
7309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Typo, { children: [
|
|
7050
7311
|
sessionNumber || "-",
|
|
7051
7312
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
7052
7313
|
] }),
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
7054
7315
|
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
7055
|
-
/* @__PURE__ */ (0,
|
|
7316
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_icons2.ArrowRightIcon, {})
|
|
7056
7317
|
] })
|
|
7057
7318
|
] })
|
|
7058
7319
|
}
|
|
@@ -7063,22 +7324,22 @@ function ReservationCard(props) {
|
|
|
7063
7324
|
}
|
|
7064
7325
|
|
|
7065
7326
|
// src/app/platform/session-review-simple-read.tsx
|
|
7066
|
-
var
|
|
7067
|
-
var
|
|
7327
|
+
var import_react53 = require("react");
|
|
7328
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
7068
7329
|
function SubTitleWrapper({
|
|
7069
7330
|
children,
|
|
7070
7331
|
title
|
|
7071
7332
|
}) {
|
|
7072
|
-
return /* @__PURE__ */ (0,
|
|
7073
|
-
/* @__PURE__ */ (0,
|
|
7074
|
-
/* @__PURE__ */ (0,
|
|
7333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
7334
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
7335
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes6.Box, { children })
|
|
7075
7336
|
] });
|
|
7076
7337
|
}
|
|
7077
7338
|
function SessionReviewSimpleRead({
|
|
7078
7339
|
helpfulness,
|
|
7079
7340
|
review
|
|
7080
7341
|
}) {
|
|
7081
|
-
const helpfulnessMeta = (0,
|
|
7342
|
+
const helpfulnessMeta = (0, import_react53.useMemo)(() => {
|
|
7082
7343
|
if (helpfulness) {
|
|
7083
7344
|
return {
|
|
7084
7345
|
text: "\uB124",
|
|
@@ -7096,22 +7357,22 @@ function SessionReviewSimpleRead({
|
|
|
7096
7357
|
color: "error"
|
|
7097
7358
|
};
|
|
7098
7359
|
}, [helpfulness]);
|
|
7099
|
-
return /* @__PURE__ */ (0,
|
|
7100
|
-
/* @__PURE__ */ (0,
|
|
7101
|
-
/* @__PURE__ */ (0,
|
|
7360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
7361
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.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_runtime107.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
7362
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
7102
7363
|
] }) });
|
|
7103
7364
|
}
|
|
7104
7365
|
|
|
7105
7366
|
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
7106
|
-
var
|
|
7367
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
7107
7368
|
function SectionWrapper({
|
|
7108
7369
|
title,
|
|
7109
7370
|
children
|
|
7110
7371
|
}) {
|
|
7111
|
-
return /* @__PURE__ */ (0,
|
|
7112
|
-
/* @__PURE__ */ (0,
|
|
7113
|
-
/* @__PURE__ */ (0,
|
|
7114
|
-
/* @__PURE__ */ (0,
|
|
7372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes6.Box, { children: [
|
|
7373
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
7375
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes39.Separator, { size: "4" })
|
|
7115
7376
|
] }),
|
|
7116
7377
|
children
|
|
7117
7378
|
] });
|
|
@@ -7121,22 +7382,22 @@ function SessionUserInfoDetail({
|
|
|
7121
7382
|
session,
|
|
7122
7383
|
onClickCopy
|
|
7123
7384
|
}) {
|
|
7124
|
-
return /* @__PURE__ */ (0,
|
|
7125
|
-
/* @__PURE__ */ (0,
|
|
7385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
7386
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
7126
7387
|
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
7127
7388
|
) }) }),
|
|
7128
|
-
/* @__PURE__ */ (0,
|
|
7389
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
7129
7390
|
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
7130
7391
|
) }) })
|
|
7131
7392
|
] });
|
|
7132
7393
|
}
|
|
7133
7394
|
|
|
7134
7395
|
// src/app/platform/report-card.tsx
|
|
7135
|
-
var
|
|
7136
|
-
var
|
|
7396
|
+
var import_react54 = require("react");
|
|
7397
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
7137
7398
|
function ReportCard(props) {
|
|
7138
7399
|
const { title, file, status, subtitle } = props;
|
|
7139
|
-
const onClickDownload = (0,
|
|
7400
|
+
const onClickDownload = (0, import_react54.useCallback)(() => {
|
|
7140
7401
|
if (!file) return;
|
|
7141
7402
|
const { url, fileName } = file;
|
|
7142
7403
|
const link = document.createElement("a");
|
|
@@ -7148,24 +7409,24 @@ function ReportCard(props) {
|
|
|
7148
7409
|
document.body.removeChild(link);
|
|
7149
7410
|
}, [file]);
|
|
7150
7411
|
if (status) {
|
|
7151
|
-
return /* @__PURE__ */ (0,
|
|
7152
|
-
/* @__PURE__ */ (0,
|
|
7412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
7413
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7153
7414
|
status
|
|
7154
7415
|
] }) });
|
|
7155
7416
|
}
|
|
7156
|
-
return /* @__PURE__ */ (0,
|
|
7417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
7157
7418
|
import_themes22.Flex,
|
|
7158
7419
|
{
|
|
7159
7420
|
direction: { initial: "column", xs: "row" },
|
|
7160
7421
|
gapY: "2",
|
|
7161
7422
|
justify: "between",
|
|
7162
7423
|
children: [
|
|
7163
|
-
/* @__PURE__ */ (0,
|
|
7164
|
-
/* @__PURE__ */ (0,
|
|
7165
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
7424
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes6.Box, { children: [
|
|
7425
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7426
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Typo, { color: "gray", children: subtitle }) : null
|
|
7166
7427
|
] }),
|
|
7167
|
-
/* @__PURE__ */ (0,
|
|
7168
|
-
/* @__PURE__ */ (0,
|
|
7428
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_icons2.DownloadIcon, {}),
|
|
7169
7430
|
file == null ? void 0 : file.buttonName
|
|
7170
7431
|
] }) }, file == null ? void 0 : file.url)
|
|
7171
7432
|
]
|
|
@@ -7174,9 +7435,9 @@ function ReportCard(props) {
|
|
|
7174
7435
|
}
|
|
7175
7436
|
|
|
7176
7437
|
// src/app/platform/contents-card.tsx
|
|
7177
|
-
var
|
|
7178
|
-
var
|
|
7179
|
-
var ContentsCard = (0,
|
|
7438
|
+
var import_react55 = require("react");
|
|
7439
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
7440
|
+
var ContentsCard = (0, import_react55.forwardRef)(
|
|
7180
7441
|
({
|
|
7181
7442
|
title,
|
|
7182
7443
|
description,
|
|
@@ -7186,7 +7447,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7186
7447
|
onClickCard,
|
|
7187
7448
|
isLoading = false
|
|
7188
7449
|
}, ref) => {
|
|
7189
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
7190
7451
|
Card,
|
|
7191
7452
|
{
|
|
7192
7453
|
onClick: onClickCard,
|
|
@@ -7199,7 +7460,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7199
7460
|
maxHeight: "450px"
|
|
7200
7461
|
},
|
|
7201
7462
|
children: [
|
|
7202
|
-
/* @__PURE__ */ (0,
|
|
7463
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes25.Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7203
7464
|
import_themes6.Box,
|
|
7204
7465
|
{
|
|
7205
7466
|
height: "210px",
|
|
@@ -7211,12 +7472,12 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7211
7472
|
width: "100%"
|
|
7212
7473
|
}
|
|
7213
7474
|
) }) }),
|
|
7214
|
-
/* @__PURE__ */ (0,
|
|
7215
|
-
/* @__PURE__ */ (0,
|
|
7216
|
-
/* @__PURE__ */ (0,
|
|
7217
|
-
/* @__PURE__ */ (0,
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes22.Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
7476
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_themes6.Box, { children: [
|
|
7477
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading2, { mb: "3", variant: "heading5", children: title }) }),
|
|
7478
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Typo, { as: "p", variant: "caption", children: description }) })
|
|
7218
7479
|
] }),
|
|
7219
|
-
/* @__PURE__ */ (0,
|
|
7480
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
7220
7481
|
import_themes23.Grid,
|
|
7221
7482
|
{
|
|
7222
7483
|
align: "center",
|
|
@@ -7226,10 +7487,10 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7226
7487
|
style: { marginTop: "auto" },
|
|
7227
7488
|
width: "100%",
|
|
7228
7489
|
children: [
|
|
7229
|
-
/* @__PURE__ */ (0,
|
|
7230
|
-
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0,
|
|
7231
|
-
/* @__PURE__ */ (0,
|
|
7232
|
-
/* @__PURE__ */ (0,
|
|
7490
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes40.Skeleton, { loading: isLoading, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_themes22.Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
7491
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(DropdownMenu.Root, { children: [
|
|
7492
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_icons2.DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
7493
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7233
7494
|
DropdownMenu.Item,
|
|
7234
7495
|
{
|
|
7235
7496
|
onClick: (e) => {
|
|
@@ -7253,7 +7514,7 @@ var ContentsCard = (0, import_react53.forwardRef)(
|
|
|
7253
7514
|
ContentsCard.displayName = "ContentsCard";
|
|
7254
7515
|
|
|
7255
7516
|
// src/app/platform/curriculum-card.tsx
|
|
7256
|
-
var
|
|
7517
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
7257
7518
|
function CurriculumCard(props) {
|
|
7258
7519
|
const {
|
|
7259
7520
|
title,
|
|
@@ -7264,7 +7525,7 @@ function CurriculumCard(props) {
|
|
|
7264
7525
|
bgColor,
|
|
7265
7526
|
onClick
|
|
7266
7527
|
} = props;
|
|
7267
|
-
return /* @__PURE__ */ (0,
|
|
7528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
7268
7529
|
import_themes23.Grid,
|
|
7269
7530
|
{
|
|
7270
7531
|
columns: { initial: "1", sm: "275px 1fr" },
|
|
@@ -7273,7 +7534,7 @@ function CurriculumCard(props) {
|
|
|
7273
7534
|
onClick,
|
|
7274
7535
|
style: { cursor: "pointer" },
|
|
7275
7536
|
children: [
|
|
7276
|
-
/* @__PURE__ */ (0,
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7277
7538
|
import_themes6.Box,
|
|
7278
7539
|
{
|
|
7279
7540
|
height: "165px",
|
|
@@ -7288,32 +7549,32 @@ function CurriculumCard(props) {
|
|
|
7288
7549
|
backgroundAttachment: "local"
|
|
7289
7550
|
},
|
|
7290
7551
|
width: "100%",
|
|
7291
|
-
children: /* @__PURE__ */ (0,
|
|
7552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
7292
7553
|
}
|
|
7293
7554
|
),
|
|
7294
|
-
/* @__PURE__ */ (0,
|
|
7295
|
-
/* @__PURE__ */ (0,
|
|
7296
|
-
/* @__PURE__ */ (0,
|
|
7297
|
-
/* @__PURE__ */ (0,
|
|
7555
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
7556
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
7557
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
7558
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7298
7559
|
Badge,
|
|
7299
7560
|
{
|
|
7300
7561
|
size: "medium",
|
|
7301
7562
|
style: { justifySelf: "flex-start" },
|
|
7302
7563
|
variant: "outline",
|
|
7303
|
-
children: /* @__PURE__ */ (0,
|
|
7304
|
-
/* @__PURE__ */ (0,
|
|
7564
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { align: "center", gap: "1", children: [
|
|
7565
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_icons2.TimerIcon, {}),
|
|
7305
7566
|
runningTime
|
|
7306
7567
|
] })
|
|
7307
7568
|
}
|
|
7308
7569
|
)
|
|
7309
7570
|
] }),
|
|
7310
|
-
/* @__PURE__ */ (0,
|
|
7311
|
-
return /* @__PURE__ */ (0,
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_themes6.Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
7572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Heading2, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
7312
7573
|
}) }) }),
|
|
7313
|
-
/* @__PURE__ */ (0,
|
|
7314
|
-
/* @__PURE__ */ (0,
|
|
7315
|
-
/* @__PURE__ */ (0,
|
|
7316
|
-
/* @__PURE__ */ (0,
|
|
7574
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_themes39.Separator, { size: "4" }),
|
|
7575
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_themes22.Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
7576
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_icons2.ArrowRightIcon, { color: "gray" })
|
|
7317
7578
|
] })
|
|
7318
7579
|
] })
|
|
7319
7580
|
]
|
|
@@ -7359,6 +7620,7 @@ function CurriculumCard(props) {
|
|
|
7359
7620
|
ChevronUpIcon,
|
|
7360
7621
|
CircleChatIcon,
|
|
7361
7622
|
CircleCheckIcon,
|
|
7623
|
+
CircleFileIcon,
|
|
7362
7624
|
CirclePencilIcon,
|
|
7363
7625
|
CirclePlayIcon,
|
|
7364
7626
|
CircleQuoteIcon,
|
|
@@ -7501,6 +7763,7 @@ function CurriculumCard(props) {
|
|
|
7501
7763
|
TimerIcon,
|
|
7502
7764
|
ToastContainer,
|
|
7503
7765
|
Tooltip,
|
|
7766
|
+
TrainingInfoGuideline,
|
|
7504
7767
|
TrashIcon,
|
|
7505
7768
|
TriangleArrowDownIcon,
|
|
7506
7769
|
TriangleArrowUpIcon,
|