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