@tipp/ui 2.3.17 → 2.3.19

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.
Files changed (378) hide show
  1. package/dist/app/index.cjs +200 -195
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +94 -93
  4. package/dist/app/platform/coach-question-list.js +29 -29
  5. package/dist/app/platform/contents-card.js +29 -29
  6. package/dist/app/platform/curriculum-card.js +6 -6
  7. package/dist/app/platform/edit-coaching-time.cjs +29 -24
  8. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  9. package/dist/app/platform/edit-coaching-time.js +72 -71
  10. package/dist/app/platform/edit-service-type.cjs +25 -20
  11. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  12. package/dist/app/platform/edit-service-type.js +73 -72
  13. package/dist/app/platform/goal-manage-card-edit.cjs +32 -27
  14. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  15. package/dist/app/platform/goal-manage-card-edit.js +72 -71
  16. package/dist/app/platform/goal-manage-card-read.js +29 -29
  17. package/dist/app/platform/on-offline-radio-card.cjs +38 -33
  18. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  19. package/dist/app/platform/on-offline-radio-card.js +72 -71
  20. package/dist/app/platform/report-card.js +29 -29
  21. package/dist/app/platform/reservation-card.cjs +48 -43
  22. package/dist/app/platform/reservation-card.cjs.map +1 -1
  23. package/dist/app/platform/reservation-card.js +73 -72
  24. package/dist/app/platform/session-card.cjs +75 -70
  25. package/dist/app/platform/session-card.cjs.map +1 -1
  26. package/dist/app/platform/session-card.js +75 -74
  27. package/dist/app/platform/session-review-simple-read.js +29 -29
  28. package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
  29. package/dist/app/platform/userInfos/coaching-customer-info/large.js +29 -29
  30. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +29 -29
  31. package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -29
  32. package/dist/app/platform/userInfos/session-user-info-detail.js +29 -29
  33. package/dist/app/platform/userInfos/utils.js +28 -28
  34. package/dist/atoms/bullet-text.js +2 -2
  35. package/dist/atoms/dialog.js +2 -2
  36. package/dist/atoms/field-error-wrapper.js +2 -2
  37. package/dist/atoms/index.js +62 -62
  38. package/dist/atoms/list.js +2 -2
  39. package/dist/atoms/pagination.js +3 -3
  40. package/dist/chunk-232ZBMFV.js +196 -0
  41. package/dist/chunk-232ZBMFV.js.map +1 -0
  42. package/dist/chunk-24572XRX.js +140 -0
  43. package/dist/chunk-24572XRX.js.map +1 -0
  44. package/dist/chunk-2O2CKXEZ.js +69 -0
  45. package/dist/chunk-2O2CKXEZ.js.map +1 -0
  46. package/dist/chunk-2VFMVVWT.js +63 -0
  47. package/dist/chunk-2VFMVVWT.js.map +1 -0
  48. package/dist/chunk-2XNMU67K.js +69 -0
  49. package/dist/chunk-2XNMU67K.js.map +1 -0
  50. package/dist/chunk-2YBJBKBB.js +82 -0
  51. package/dist/chunk-2YBJBKBB.js.map +1 -0
  52. package/dist/chunk-34XTOQID.js +140 -0
  53. package/dist/chunk-34XTOQID.js.map +1 -0
  54. package/dist/chunk-367ZYIOP.js +89 -0
  55. package/dist/chunk-367ZYIOP.js.map +1 -0
  56. package/dist/chunk-3A3VE6SX.js +160 -0
  57. package/dist/chunk-3A3VE6SX.js.map +1 -0
  58. package/dist/chunk-3A45CD76.js +196 -0
  59. package/dist/chunk-3A45CD76.js.map +1 -0
  60. package/dist/chunk-3LEW5RYJ.js +163 -0
  61. package/dist/chunk-3LEW5RYJ.js.map +1 -0
  62. package/dist/chunk-3MCSM3WD.js +163 -0
  63. package/dist/chunk-3MCSM3WD.js.map +1 -0
  64. package/dist/chunk-3MG2RPYN.js +163 -0
  65. package/dist/chunk-3MG2RPYN.js.map +1 -0
  66. package/dist/chunk-4JYSUW7I.js +151 -0
  67. package/dist/chunk-4JYSUW7I.js.map +1 -0
  68. package/dist/chunk-4SFBZJWH.js +140 -0
  69. package/dist/chunk-4SFBZJWH.js.map +1 -0
  70. package/dist/chunk-5IQ4474Z.js +89 -0
  71. package/dist/chunk-5IQ4474Z.js.map +1 -0
  72. package/dist/chunk-5RMPQM6F.js +163 -0
  73. package/dist/chunk-5RMPQM6F.js.map +1 -0
  74. package/dist/chunk-5TPNUG3Y.js +63 -0
  75. package/dist/chunk-5TPNUG3Y.js.map +1 -0
  76. package/dist/chunk-5UUCPFYY.js +140 -0
  77. package/dist/chunk-5UUCPFYY.js.map +1 -0
  78. package/dist/chunk-64JB2NO2.js +51 -0
  79. package/dist/chunk-64JB2NO2.js.map +1 -0
  80. package/dist/chunk-6F63WEDJ.js +63 -0
  81. package/dist/chunk-6F63WEDJ.js.map +1 -0
  82. package/dist/chunk-6LZWYVNE.js +160 -0
  83. package/dist/chunk-6LZWYVNE.js.map +1 -0
  84. package/dist/chunk-6PJ7QIPK.js +140 -0
  85. package/dist/chunk-6PJ7QIPK.js.map +1 -0
  86. package/dist/chunk-6UCGUA3B.js +30 -0
  87. package/dist/chunk-6UCGUA3B.js.map +1 -0
  88. package/dist/chunk-7AGAGV4E.js +69 -0
  89. package/dist/chunk-7AGAGV4E.js.map +1 -0
  90. package/dist/chunk-7AZNNMJF.js +129 -0
  91. package/dist/chunk-7AZNNMJF.js.map +1 -0
  92. package/dist/chunk-7BAQZVH3.js +152 -0
  93. package/dist/chunk-7BAQZVH3.js.map +1 -0
  94. package/dist/chunk-7IFK5DP5.js +69 -0
  95. package/dist/chunk-7IFK5DP5.js.map +1 -0
  96. package/dist/chunk-7QDV6YRH.js +196 -0
  97. package/dist/chunk-7QDV6YRH.js.map +1 -0
  98. package/dist/chunk-7RB2YZCU.js +159 -0
  99. package/dist/chunk-7RB2YZCU.js.map +1 -0
  100. package/dist/chunk-7XG4CK7Y.js +89 -0
  101. package/dist/chunk-7XG4CK7Y.js.map +1 -0
  102. package/dist/chunk-A5SSQHU7.js +135 -0
  103. package/dist/chunk-A5SSQHU7.js.map +1 -0
  104. package/dist/chunk-A5VFSD3T.js +129 -0
  105. package/dist/chunk-A5VFSD3T.js.map +1 -0
  106. package/dist/chunk-B5U2JBLX.js +87 -0
  107. package/dist/chunk-B5U2JBLX.js.map +1 -0
  108. package/dist/chunk-BAFUUZ5V.js +163 -0
  109. package/dist/chunk-BAFUUZ5V.js.map +1 -0
  110. package/dist/chunk-BDJUL3JV.js +50 -0
  111. package/dist/chunk-BDJUL3JV.js.map +1 -0
  112. package/dist/chunk-BI5GANUG.js +75 -0
  113. package/dist/chunk-BI5GANUG.js.map +1 -0
  114. package/dist/chunk-BT4BMBJC.js +163 -0
  115. package/dist/chunk-BT4BMBJC.js.map +1 -0
  116. package/dist/chunk-BV3ZL4VC.js +196 -0
  117. package/dist/chunk-BV3ZL4VC.js.map +1 -0
  118. package/dist/chunk-BWWSZLTV.js +43 -0
  119. package/dist/chunk-BWWSZLTV.js.map +1 -0
  120. package/dist/chunk-C5MM3PUD.js +89 -0
  121. package/dist/chunk-C5MM3PUD.js.map +1 -0
  122. package/dist/chunk-C5YDIFWN.js +129 -0
  123. package/dist/chunk-C5YDIFWN.js.map +1 -0
  124. package/dist/chunk-CC4LSJRN.js +144 -0
  125. package/dist/chunk-CC4LSJRN.js.map +1 -0
  126. package/dist/chunk-CIQ7ELE6.js +151 -0
  127. package/dist/chunk-CIQ7ELE6.js.map +1 -0
  128. package/dist/chunk-CSLHE7O6.js +196 -0
  129. package/dist/chunk-CSLHE7O6.js.map +1 -0
  130. package/dist/chunk-CTCLKPUM.js +50 -0
  131. package/dist/chunk-CTCLKPUM.js.map +1 -0
  132. package/dist/chunk-D7NY3IWA.js +152 -0
  133. package/dist/chunk-D7NY3IWA.js.map +1 -0
  134. package/dist/chunk-DEAVEZQM.js +1 -0
  135. package/dist/chunk-DEAVEZQM.js.map +1 -0
  136. package/dist/chunk-DL5EXP6Q.js +129 -0
  137. package/dist/chunk-DL5EXP6Q.js.map +1 -0
  138. package/dist/chunk-EEXQP6FN.js +129 -0
  139. package/dist/chunk-EEXQP6FN.js.map +1 -0
  140. package/dist/chunk-ENVZEWF6.js +98 -0
  141. package/dist/chunk-ENVZEWF6.js.map +1 -0
  142. package/dist/chunk-EOPCVKLK.js +69 -0
  143. package/dist/chunk-EOPCVKLK.js.map +1 -0
  144. package/dist/chunk-FJYLZOAR.js +140 -0
  145. package/dist/chunk-FJYLZOAR.js.map +1 -0
  146. package/dist/chunk-FSJP6HQY.js +49 -0
  147. package/dist/chunk-FSJP6HQY.js.map +1 -0
  148. package/dist/chunk-FVAZZ46M.js +69 -0
  149. package/dist/chunk-FVAZZ46M.js.map +1 -0
  150. package/dist/chunk-GFRV5VDJ.js +132 -0
  151. package/dist/chunk-GFRV5VDJ.js.map +1 -0
  152. package/dist/chunk-H53J2DZE.js +157 -0
  153. package/dist/chunk-H53J2DZE.js.map +1 -0
  154. package/dist/chunk-H6UISOMV.js +50 -0
  155. package/dist/chunk-H6UISOMV.js.map +1 -0
  156. package/dist/chunk-HBQ6WF3C.js +196 -0
  157. package/dist/chunk-HBQ6WF3C.js.map +1 -0
  158. package/dist/chunk-HZ5LNRVL.js +101 -0
  159. package/dist/chunk-HZ5LNRVL.js.map +1 -0
  160. package/dist/chunk-I25D6CHU.js +50 -0
  161. package/dist/chunk-I25D6CHU.js.map +1 -0
  162. package/dist/chunk-I6ITAPUG.js +158 -0
  163. package/dist/chunk-I6ITAPUG.js.map +1 -0
  164. package/dist/chunk-IF4Q5NV4.js +129 -0
  165. package/dist/chunk-IF4Q5NV4.js.map +1 -0
  166. package/dist/chunk-IPEPHM2U.js +89 -0
  167. package/dist/chunk-IPEPHM2U.js.map +1 -0
  168. package/dist/chunk-IYVNZW3B.js +196 -0
  169. package/dist/chunk-IYVNZW3B.js.map +1 -0
  170. package/dist/chunk-J65X5ID3.js +136 -0
  171. package/dist/chunk-J65X5ID3.js.map +1 -0
  172. package/dist/chunk-J6D5FMYR.js +75 -0
  173. package/dist/chunk-J6D5FMYR.js.map +1 -0
  174. package/dist/chunk-JGM5HN2L.js +69 -0
  175. package/dist/chunk-JGM5HN2L.js.map +1 -0
  176. package/dist/chunk-K6PJ5GES.js +129 -0
  177. package/dist/chunk-K6PJ5GES.js.map +1 -0
  178. package/dist/chunk-KJC6WEFI.js +75 -0
  179. package/dist/chunk-KJC6WEFI.js.map +1 -0
  180. package/dist/chunk-LEIPUJCQ.js +75 -0
  181. package/dist/chunk-LEIPUJCQ.js.map +1 -0
  182. package/dist/chunk-LFISV2GU.js +160 -0
  183. package/dist/chunk-LFISV2GU.js.map +1 -0
  184. package/dist/chunk-LJO2266G.js +64 -0
  185. package/dist/chunk-LJO2266G.js.map +1 -0
  186. package/dist/chunk-LPOX4NKE.js +29 -0
  187. package/dist/chunk-LPOX4NKE.js.map +1 -0
  188. package/dist/chunk-LRTZTSV6.js +135 -0
  189. package/dist/chunk-LRTZTSV6.js.map +1 -0
  190. package/dist/chunk-M2DLW32Z.js +77 -0
  191. package/dist/chunk-M2DLW32Z.js.map +1 -0
  192. package/dist/chunk-MOITMVXZ.js +159 -0
  193. package/dist/chunk-MOITMVXZ.js.map +1 -0
  194. package/dist/chunk-MYGRIOQM.js +163 -0
  195. package/dist/chunk-MYGRIOQM.js.map +1 -0
  196. package/dist/chunk-N662YJXY.js +69 -0
  197. package/dist/chunk-N662YJXY.js.map +1 -0
  198. package/dist/chunk-N6LOS7L5.js +89 -0
  199. package/dist/chunk-N6LOS7L5.js.map +1 -0
  200. package/dist/chunk-NBVTF6TV.js +163 -0
  201. package/dist/chunk-NBVTF6TV.js.map +1 -0
  202. package/dist/chunk-NCCAFJJR.js +83 -0
  203. package/dist/chunk-NCCAFJJR.js.map +1 -0
  204. package/dist/chunk-NFI7WDJS.js +50 -0
  205. package/dist/chunk-NFI7WDJS.js.map +1 -0
  206. package/dist/chunk-NMOMXXLD.js +163 -0
  207. package/dist/chunk-NMOMXXLD.js.map +1 -0
  208. package/dist/chunk-NTJLECYY.js +37 -0
  209. package/dist/chunk-NTJLECYY.js.map +1 -0
  210. package/dist/chunk-NTWHDYJV.js +89 -0
  211. package/dist/chunk-NTWHDYJV.js.map +1 -0
  212. package/dist/chunk-NVQSH733.js +51 -0
  213. package/dist/chunk-NVQSH733.js.map +1 -0
  214. package/dist/chunk-ODHH7CFR.js +196 -0
  215. package/dist/chunk-ODHH7CFR.js.map +1 -0
  216. package/dist/chunk-OHSKOJ2Y.js +136 -0
  217. package/dist/chunk-OHSKOJ2Y.js.map +1 -0
  218. package/dist/chunk-OILH5J7Q.js +101 -0
  219. package/dist/chunk-OILH5J7Q.js.map +1 -0
  220. package/dist/chunk-OX5XYAZM.js +37 -0
  221. package/dist/chunk-OX5XYAZM.js.map +1 -0
  222. package/dist/chunk-P76FTCUF.js +64 -0
  223. package/dist/chunk-P76FTCUF.js.map +1 -0
  224. package/dist/chunk-PF3LVPOZ.js +87 -0
  225. package/dist/chunk-PF3LVPOZ.js.map +1 -0
  226. package/dist/chunk-PWF22OOK.js +64 -0
  227. package/dist/chunk-PWF22OOK.js.map +1 -0
  228. package/dist/chunk-QF22MRN6.js +152 -0
  229. package/dist/chunk-QF22MRN6.js.map +1 -0
  230. package/dist/chunk-QHAU3JHA.js +152 -0
  231. package/dist/chunk-QHAU3JHA.js.map +1 -0
  232. package/dist/chunk-QQTXIKFT.js +163 -0
  233. package/dist/chunk-QQTXIKFT.js.map +1 -0
  234. package/dist/chunk-QU5M7KZM.js +50 -0
  235. package/dist/chunk-QU5M7KZM.js.map +1 -0
  236. package/dist/chunk-RQFJZYKH.js +160 -0
  237. package/dist/chunk-RQFJZYKH.js.map +1 -0
  238. package/dist/chunk-RWK6HLWM.js +75 -0
  239. package/dist/chunk-RWK6HLWM.js.map +1 -0
  240. package/dist/chunk-RYEEDHML.js +64 -0
  241. package/dist/chunk-RYEEDHML.js.map +1 -0
  242. package/dist/chunk-SQIJY72J.js +69 -0
  243. package/dist/chunk-SQIJY72J.js.map +1 -0
  244. package/dist/chunk-SRU4OFM3.js +135 -0
  245. package/dist/chunk-SRU4OFM3.js.map +1 -0
  246. package/dist/chunk-SZ73GYOE.js +98 -0
  247. package/dist/chunk-SZ73GYOE.js.map +1 -0
  248. package/dist/chunk-T5EBUYAB.js +160 -0
  249. package/dist/chunk-T5EBUYAB.js.map +1 -0
  250. package/dist/chunk-THTRJNHI.js +159 -0
  251. package/dist/chunk-THTRJNHI.js.map +1 -0
  252. package/dist/chunk-TQ5AJKUH.js +64 -0
  253. package/dist/chunk-TQ5AJKUH.js.map +1 -0
  254. package/dist/chunk-UGCYMUQ4.js +89 -0
  255. package/dist/chunk-UGCYMUQ4.js.map +1 -0
  256. package/dist/chunk-UK7J2BOO.js +83 -0
  257. package/dist/chunk-UK7J2BOO.js.map +1 -0
  258. package/dist/chunk-V4GNPLLT.js +69 -0
  259. package/dist/chunk-V4GNPLLT.js.map +1 -0
  260. package/dist/chunk-VKMRA55P.js +144 -0
  261. package/dist/chunk-VKMRA55P.js.map +1 -0
  262. package/dist/chunk-VLGR5PZX.js +1 -0
  263. package/dist/chunk-VLGR5PZX.js.map +1 -0
  264. package/dist/chunk-VQGBP3JY.js +50 -0
  265. package/dist/chunk-VQGBP3JY.js.map +1 -0
  266. package/dist/chunk-WQRH5YGD.js +129 -0
  267. package/dist/chunk-WQRH5YGD.js.map +1 -0
  268. package/dist/chunk-WV4WWBKN.js +69 -0
  269. package/dist/chunk-WV4WWBKN.js.map +1 -0
  270. package/dist/chunk-X2MARIQ5.js +140 -0
  271. package/dist/chunk-X2MARIQ5.js.map +1 -0
  272. package/dist/chunk-X3J2UNWS.js +69 -0
  273. package/dist/chunk-X3J2UNWS.js.map +1 -0
  274. package/dist/chunk-X67ER3JU.js +69 -0
  275. package/dist/chunk-X67ER3JU.js.map +1 -0
  276. package/dist/chunk-X732NUWY.js +50 -0
  277. package/dist/chunk-X732NUWY.js.map +1 -0
  278. package/dist/chunk-X7QZ46BZ.js +63 -0
  279. package/dist/chunk-X7QZ46BZ.js.map +1 -0
  280. package/dist/chunk-XDPD6IWK.js +89 -0
  281. package/dist/chunk-XDPD6IWK.js.map +1 -0
  282. package/dist/chunk-XKWY6ZQM.js +196 -0
  283. package/dist/chunk-XKWY6ZQM.js.map +1 -0
  284. package/dist/chunk-XTU7VQ2V.js +158 -0
  285. package/dist/chunk-XTU7VQ2V.js.map +1 -0
  286. package/dist/chunk-XW3D3GLY.js +113 -0
  287. package/dist/chunk-XW3D3GLY.js.map +1 -0
  288. package/dist/chunk-Y6BK7ABB.js +1 -0
  289. package/dist/chunk-Y6BK7ABB.js.map +1 -0
  290. package/dist/chunk-YBO2LITL.js +163 -0
  291. package/dist/chunk-YBO2LITL.js.map +1 -0
  292. package/dist/chunk-YOADPBEF.js +129 -0
  293. package/dist/chunk-YOADPBEF.js.map +1 -0
  294. package/dist/chunk-YRCJG2BQ.js +163 -0
  295. package/dist/chunk-YRCJG2BQ.js.map +1 -0
  296. package/dist/chunk-YXGSOU62.js +129 -0
  297. package/dist/chunk-YXGSOU62.js.map +1 -0
  298. package/dist/chunk-Z2XF3EO2.js +75 -0
  299. package/dist/chunk-Z2XF3EO2.js.map +1 -0
  300. package/dist/chunk-ZFEXH655.js +144 -0
  301. package/dist/chunk-ZFEXH655.js.map +1 -0
  302. package/dist/chunk-ZKLZRBDG.js +163 -0
  303. package/dist/chunk-ZKLZRBDG.js.map +1 -0
  304. package/dist/context/index.js +5 -5
  305. package/dist/index.cjs +419 -283
  306. package/dist/index.cjs.map +1 -1
  307. package/dist/index.d.cts +2 -0
  308. package/dist/index.d.ts +2 -0
  309. package/dist/index.js +154 -149
  310. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +16 -16
  311. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
  312. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -9
  313. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
  314. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
  315. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
  316. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -5
  317. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
  318. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
  319. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
  320. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
  321. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +20 -20
  322. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
  323. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
  324. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -3
  325. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +22 -22
  326. package/dist/molecules/curriculumV2/CurriculumContents/index.js +26 -26
  327. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
  328. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
  329. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
  330. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
  331. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
  332. package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
  333. package/dist/molecules/curriculumV2/index.js +37 -37
  334. package/dist/molecules/date-picker/date-picker-button.js +6 -6
  335. package/dist/molecules/date-picker/index.js +5 -5
  336. package/dist/molecules/description-json-render.js +5 -5
  337. package/dist/molecules/download-card.js +2 -2
  338. package/dist/molecules/dynamic-field.js +5 -5
  339. package/dist/molecules/dynamic-form.js +6 -6
  340. package/dist/molecules/expand-table/index.js +4 -4
  341. package/dist/molecules/force-refresh.js +2 -2
  342. package/dist/molecules/ghost-post.js +4 -4
  343. package/dist/molecules/index.cjs +136 -0
  344. package/dist/molecules/index.cjs.map +1 -1
  345. package/dist/molecules/index.d.cts +2 -0
  346. package/dist/molecules/index.d.ts +2 -0
  347. package/dist/molecules/index.js +70 -66
  348. package/dist/molecules/learning-post.js +5 -5
  349. package/dist/molecules/navigation.js +3 -3
  350. package/dist/molecules/one-on-one-guide-list.js +3 -3
  351. package/dist/molecules/stepper.js +4 -4
  352. package/dist/molecules/tag-selector.js +5 -5
  353. package/dist/molecules/training-info-guideline.cjs +569 -0
  354. package/dist/molecules/training-info-guideline.cjs.map +1 -0
  355. package/dist/molecules/training-info-guideline.d.cts +13 -0
  356. package/dist/molecules/training-info-guideline.d.ts +13 -0
  357. package/dist/molecules/training-info-guideline.js +22 -0
  358. package/dist/molecules/training-info-guideline.js.map +1 -0
  359. package/dist/types/curriculumContents.type.cjs.map +1 -1
  360. package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
  361. package/dist/types/index.cjs.map +1 -1
  362. package/dist/types/index.d.cts +1 -0
  363. package/dist/types/index.d.ts +1 -0
  364. package/dist/types/index.js +2 -1
  365. package/dist/types/training-info-guideline-schema-generated.cjs +19 -0
  366. package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -0
  367. package/dist/types/training-info-guideline-schema-generated.d.cts +22 -0
  368. package/dist/types/training-info-guideline-schema-generated.d.ts +22 -0
  369. package/dist/types/training-info-guideline-schema-generated.js +2 -0
  370. package/dist/types/training-info-guideline-schema-generated.js.map +1 -0
  371. package/package.json +4 -4
  372. package/src/constrant/training-info-guideline.schema.json +45 -0
  373. package/src/molecules/index.ts +2 -1
  374. package/src/molecules/training-info-guideline.tsx +171 -0
  375. package/src/types/curriculumContents.type.ts +1 -0
  376. package/src/types/dynamic-form-schema-generated.ts +1 -0
  377. package/src/types/index.ts +1 -0
  378. package/src/types/training-info-guideline-schema-generated.ts +23 -0
@@ -0,0 +1,163 @@
1
+ import {
2
+ Separator
3
+ } from "./chunk-HYITAA4J.js";
4
+ import {
5
+ Spinner
6
+ } from "./chunk-FR2GDOU2.js";
7
+ import {
8
+ Dialog
9
+ } from "./chunk-AH4A53SZ.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ Typo
15
+ } from "./chunk-PMJIFLDT.js";
16
+ import {
17
+ Flex
18
+ } from "./chunk-25HMMI7R.js";
19
+ import {
20
+ Button
21
+ } from "./chunk-ZVDAEY5Q.js";
22
+ import {
23
+ AspectRatio
24
+ } from "./chunk-EAXUQEO5.js";
25
+
26
+ // src/molecules/training-info-guideline.tsx
27
+ import { useState } from "react";
28
+ import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
29
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
30
+ function TrainingInfoGuideline({
31
+ values,
32
+ onClickFileDownload
33
+ }) {
34
+ return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
35
+ TrainingInfoGuidelineItem,
36
+ {
37
+ onClickFileDownload,
38
+ value
39
+ },
40
+ getItemKey(value)
41
+ )) });
42
+ }
43
+ function getItemKey(value) {
44
+ return value.url;
45
+ }
46
+ function TrainingInfoGuidelineItem({
47
+ value,
48
+ onClickFileDownload
49
+ }) {
50
+ const [isLoading, setIsLoading] = useState(true);
51
+ if (value.type === "file") {
52
+ return /* @__PURE__ */ jsx(
53
+ TrainingInfoGuidelineButton,
54
+ {
55
+ description: value.filename,
56
+ icon: /* @__PURE__ */ jsx(FileTextIcon, {}),
57
+ onClick: () => {
58
+ onClickFileDownload({ url: value.url, filename: value.filename });
59
+ },
60
+ title: value.downloadButtonName
61
+ }
62
+ );
63
+ }
64
+ if (value.type === "video") {
65
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
66
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(
67
+ TrainingInfoGuidelineButton,
68
+ {
69
+ description: "\uC601\uC0C1",
70
+ icon: /* @__PURE__ */ jsx(VideoIcon, {}),
71
+ title: value.videoTitle
72
+ }
73
+ ) }),
74
+ /* @__PURE__ */ jsx(
75
+ Dialog.Content,
76
+ {
77
+ height: "100%",
78
+ maxHeight: "500px",
79
+ maxWidth: "800px",
80
+ title: value.videoTitle,
81
+ width: "100%",
82
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
83
+ Flex,
84
+ {
85
+ align: "center",
86
+ justify: "center",
87
+ style: {
88
+ width: "100%",
89
+ height: "100%",
90
+ backgroundColor: "black",
91
+ position: "relative"
92
+ },
93
+ children: [
94
+ isLoading ? /* @__PURE__ */ jsx(
95
+ Flex,
96
+ {
97
+ align: "center",
98
+ height: "100%",
99
+ justify: "center",
100
+ position: "absolute",
101
+ style: {
102
+ position: "absolute",
103
+ top: 0,
104
+ left: 0,
105
+ zIndex: 1,
106
+ color: "white"
107
+ },
108
+ width: "100%",
109
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
110
+ }
111
+ ) : null,
112
+ /* @__PURE__ */ jsx(
113
+ "iframe",
114
+ {
115
+ allowFullScreen: true,
116
+ onError: () => {
117
+ setIsLoading(false);
118
+ },
119
+ onLoad: () => {
120
+ setIsLoading(false);
121
+ },
122
+ src: `${value.url}?theme=light`,
123
+ style: { width: "100%", height: "100%", border: "none" },
124
+ title: "Curriculum Video"
125
+ }
126
+ )
127
+ ]
128
+ }
129
+ ) })
130
+ }
131
+ )
132
+ ] });
133
+ }
134
+ return null;
135
+ }
136
+ function TrainingInfoGuidelineButton({
137
+ icon,
138
+ title,
139
+ description,
140
+ onClick
141
+ }) {
142
+ return /* @__PURE__ */ jsx(
143
+ Button,
144
+ {
145
+ onClick,
146
+ style: { width: "100%", height: "48px" },
147
+ variant: "outline",
148
+ children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
149
+ icon,
150
+ /* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "2" }),
151
+ /* @__PURE__ */ jsxs(Box, { children: [
152
+ /* @__PURE__ */ jsx(Typo, { as: "div", mb: "1", children: title }),
153
+ typeof description === "string" && description !== "" ? /* @__PURE__ */ jsx(Typo, { variant: "caption", children: description }) : null
154
+ ] })
155
+ ] })
156
+ }
157
+ );
158
+ }
159
+
160
+ export {
161
+ TrainingInfoGuideline
162
+ };
163
+ //# sourceMappingURL=chunk-3MG2RPYN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { FileTextIcon, VideoIcon } from '@radix-ui/react-icons';\nimport { AspectRatio } from '@/atoms/aspect-ratio';\nimport { Button } from '@/atoms/button';\nimport type { TrainingInfoGuidelineContents } from '@/types/training-info-guideline-schema-generated';\nimport { Dialog } from '@/atoms/dialog';\nimport { Spinner } from '@/atoms/spinner';\nimport { Box } from '@/atoms/box';\nimport { Separator } from '@/atoms/separator';\nimport { Typo } from '@/atoms/typo';\nimport { Flex } from '../atoms/flex';\n\nexport interface TrainingInfoGuidelineProps {\n values: TrainingInfoGuidelineContents['values'];\n onClickFileDownload: (args: { url: string; filename: string }) => void;\n}\n\nexport function TrainingInfoGuideline({\n values,\n onClickFileDownload,\n}: TrainingInfoGuidelineProps): React.ReactElement {\n return (\n <>\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </>\n );\n}\n\ntype TrainingInfoGuidelineValue =\n TrainingInfoGuidelineContents['values'][number];\n\nfunction getItemKey(value: TrainingInfoGuidelineValue): string {\n return value.url;\n}\n\ninterface TrainingInfoGuidelineItemProps {\n value: TrainingInfoGuidelineValue;\n onClickFileDownload: TrainingInfoGuidelineProps['onClickFileDownload'];\n}\n\nfunction TrainingInfoGuidelineItem({\n value,\n onClickFileDownload,\n}: TrainingInfoGuidelineItemProps): React.ReactElement | null {\n const [isLoading, setIsLoading] = useState(true);\n\n if (value.type === 'file') {\n return (\n <TrainingInfoGuidelineButton\n description={value.filename}\n icon={<FileTextIcon />}\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n title={value.downloadButtonName}\n />\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 차후 다른 타입 추가 시 사용\n if (value.type === 'video') {\n return (\n <Dialog.Root>\n <Dialog.Trigger>\n <TrainingInfoGuidelineButton\n description=\"영상\"\n icon={<VideoIcon />}\n title={value.videoTitle}\n />\n </Dialog.Trigger>\n <Dialog.Content\n height=\"100%\"\n maxHeight=\"500px\"\n maxWidth=\"800px\"\n title={value.videoTitle}\n width=\"100%\"\n >\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n <Flex\n align=\"center\"\n justify=\"center\"\n style={{\n width: '100%',\n height: '100%',\n backgroundColor: 'black',\n position: 'relative',\n }}\n >\n {isLoading ? (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n position=\"absolute\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n color: 'white',\n }}\n width=\"100%\"\n >\n <Spinner size=\"3\" style={{ width: 48, height: 48 }} />\n </Flex>\n ) : null}\n\n <iframe\n allowFullScreen\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${value.url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n />\n </Flex>\n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n\ninterface TrainingInfoGuidelineButtonProps {\n icon: React.ReactNode;\n title: string;\n description?: string;\n onClick?: () => void;\n}\n\nfunction TrainingInfoGuidelineButton({\n icon,\n title,\n description,\n onClick,\n}: TrainingInfoGuidelineButtonProps): React.ReactElement {\n return (\n <Button\n onClick={onClick}\n style={{ width: '100%', height: '48px' }}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n {icon}\n <Separator orientation=\"vertical\" size=\"2\" />\n <Box>\n <Typo as=\"div\" mb=\"1\">\n {title}\n </Typo>\n {typeof description === 'string' && description !== '' ? (\n <Typo variant=\"caption\" >\n {description}\n </Typo>\n ) : null}\n </Box>\n </Flex>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAqBpC,mBAEI,KA4DI,YA9DR;AALG,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,gCACG,iBAAO,IAAI,CAAC,UACX;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA;AAAA;AAAA,IAFK,WAAW,KAAK;AAAA,EAGvB,CACD,GACH;AAEJ;AAKA,SAAS,WAAW,OAA2C;AAC7D,SAAO,MAAM;AACf;AAOA,SAAS,0BAA0B;AAAA,EACjC;AAAA,EACA;AACF,GAA8D;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,IAAI;AAE/C,MAAI,MAAM,SAAS,QAAQ;AACzB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,aAAa,MAAM;AAAA,QACnB,MAAM,oBAAC,gBAAa;AAAA,QACpB,SAAS,MAAM;AACb,8BAAoB,EAAE,KAAK,MAAM,KAAK,UAAU,MAAM,SAAS,CAAC;AAAA,QAClE;AAAA,QACA,OAAO,MAAM;AAAA;AAAA,IACf;AAAA,EAEJ;AAGA,MAAI,MAAM,SAAS,SAAS;AAC1B,WACE,qBAAC,OAAO,MAAP,EACC;AAAA,0BAAC,OAAO,SAAP,EACC;AAAA,QAAC;AAAA;AAAA,UACC,aAAY;AAAA,UACZ,MAAM,oBAAC,aAAU;AAAA,UACjB,OAAO,MAAM;AAAA;AAAA,MACf,GACF;AAAA,MACA;AAAA,QAAC,OAAO;AAAA,QAAP;AAAA,UACC,QAAO;AAAA,UACP,WAAU;AAAA,UACV,UAAS;AAAA,UACT,OAAO,MAAM;AAAA,UACb,OAAM;AAAA,UAEN,8BAAC,eAAY,OAAO,KAAK,GAAG,OAAO,EAAE,OAAO,OAAO,GACjD;AAAA,YAAC;AAAA;AAAA,cACC,OAAM;AAAA,cACN,SAAQ;AAAA,cACR,OAAO;AAAA,gBACL,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,iBAAiB;AAAA,gBACjB,UAAU;AAAA,cACZ;AAAA,cAEC;AAAA,4BACC;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAM;AAAA,oBACN,QAAO;AAAA,oBACP,SAAQ;AAAA,oBACR,UAAS;AAAA,oBACT,OAAO;AAAA,sBACL,UAAU;AAAA,sBACV,KAAK;AAAA,sBACL,MAAM;AAAA,sBACN,QAAQ;AAAA,sBACR,OAAO;AAAA,oBACT;AAAA,oBACA,OAAM;AAAA,oBAEN,8BAAC,WAAQ,MAAK,KAAI,OAAO,EAAE,OAAO,IAAI,QAAQ,GAAG,GAAG;AAAA;AAAA,gBACtD,IACE;AAAA,gBAEJ;AAAA,kBAAC;AAAA;AAAA,oBACC,iBAAe;AAAA,oBACf,SAAS,MAAM;AACb,mCAAa,KAAK;AAAA,oBACpB;AAAA,oBACA,QAAQ,MAAM;AACZ,mCAAa,KAAK;AAAA,oBACpB;AAAA,oBACA,KAAK,GAAG,MAAM,GAAG;AAAA,oBACjB,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,OAAO;AAAA,oBACvD,OAAM;AAAA;AAAA,gBACR;AAAA;AAAA;AAAA,UACF,GACF;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;AASA,SAAS,4BAA4B;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAyD;AACvD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO;AAAA,MACvC,SAAQ;AAAA,MAER,+BAAC,QAAK,OAAM,UAAS,KAAI,KAAI,OAAM,QAChC;AAAA;AAAA,QACD,oBAAC,aAAU,aAAY,YAAW,MAAK,KAAI;AAAA,QAC3C,qBAAC,OACC;AAAA,8BAAC,QAAK,IAAG,OAAM,IAAG,KACf,iBACH;AAAA,UACC,OAAO,gBAAgB,YAAY,gBAAgB,KAClD,oBAAC,QAAK,SAAQ,WACX,uBACH,IACE;AAAA,WACN;AAAA,SACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,151 @@
1
+ import {
2
+ useCurriculumReviewContext
3
+ } from "./chunk-GMKRNFH5.js";
4
+ import {
5
+ getCurriculumIcon,
6
+ getCurriculumQuestionIconColor,
7
+ getCurriculumQuestionTypeDescription
8
+ } from "./chunk-XW3D3GLY.js";
9
+ import {
10
+ Separator
11
+ } from "./chunk-HYITAA4J.js";
12
+ import {
13
+ Grid
14
+ } from "./chunk-EGEQY3KT.js";
15
+ import {
16
+ Heading
17
+ } from "./chunk-BESTU2AY.js";
18
+ import {
19
+ Box
20
+ } from "./chunk-4Y5BEXVN.js";
21
+ import {
22
+ Typo
23
+ } from "./chunk-PMJIFLDT.js";
24
+ import {
25
+ Flex
26
+ } from "./chunk-25HMMI7R.js";
27
+ import {
28
+ Button
29
+ } from "./chunk-ZVDAEY5Q.js";
30
+ import {
31
+ Badge
32
+ } from "./chunk-U3BQT7ZO.js";
33
+
34
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
35
+ import { jsx, jsxs } from "react/jsx-runtime";
36
+ var renderPreviewContent = (args) => {
37
+ const { question } = args;
38
+ const Icon = getCurriculumIcon({
39
+ type: question.type,
40
+ icon: question.icon
41
+ });
42
+ const getDescription = () => {
43
+ return [
44
+ getCurriculumQuestionTypeDescription(question.type),
45
+ question.duration ? `${question.duration}\uBD84` : ""
46
+ ].filter(Boolean).join(" | ");
47
+ };
48
+ return /* @__PURE__ */ jsxs(
49
+ Grid,
50
+ {
51
+ columns: "16px 1fr",
52
+ gap: "2",
53
+ px: "4",
54
+ py: "2",
55
+ width: "100%",
56
+ children: [
57
+ /* @__PURE__ */ jsx(Box, { mt: "1", children: /* @__PURE__ */ jsx(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
58
+ /* @__PURE__ */ jsxs(Box, { children: [
59
+ /* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
60
+ /* @__PURE__ */ jsx(Typo, { color: "gray", children: getDescription() })
61
+ ] })
62
+ ]
63
+ },
64
+ question.uuid
65
+ );
66
+ };
67
+ var getReviewContentValue = (question, answer) => {
68
+ var _a, _b, _c;
69
+ if (question.type === "question_satisfaction_option") {
70
+ return (_c = (_b = (_a = question.options) == null ? void 0 : _a.find((option) => option.value === Number(answer))) == null ? void 0 : _b.label) != null ? _c : "";
71
+ }
72
+ return answer;
73
+ };
74
+ var renderReviewContent = (args) => {
75
+ const { question, answer } = args;
76
+ const Icon = getCurriculumIcon({
77
+ type: question.type,
78
+ icon: question.icon
79
+ });
80
+ const color = getCurriculumQuestionIconColor(question.type);
81
+ const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
82
+ const value = getReviewContentValue(question, answer);
83
+ return /* @__PURE__ */ jsxs(
84
+ Grid,
85
+ {
86
+ columns: "16px 1fr",
87
+ gap: "2",
88
+ px: "4",
89
+ py: "2",
90
+ width: "100%",
91
+ children: [
92
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Icon, { color }) }),
93
+ /* @__PURE__ */ jsxs(Box, { children: [
94
+ /* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
95
+ /* @__PURE__ */ jsx(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
96
+ ] })
97
+ ]
98
+ },
99
+ question.uuid
100
+ );
101
+ };
102
+ function StartReview({ onStart }) {
103
+ const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
104
+ return /* @__PURE__ */ jsx(
105
+ Flex,
106
+ {
107
+ align: "center",
108
+ direction: "column",
109
+ height: "100%",
110
+ justify: "center",
111
+ width: "100%",
112
+ children: /* @__PURE__ */ jsxs(
113
+ Flex,
114
+ {
115
+ align: "center",
116
+ direction: "column",
117
+ height: "100%",
118
+ justify: "center",
119
+ maxWidth: "650px",
120
+ pb: { initial: "6", sm: "0" },
121
+ pt: { initial: "4", sm: "0" },
122
+ px: { initial: "4", sm: "0" },
123
+ width: "100%",
124
+ children: [
125
+ /* @__PURE__ */ jsx(Typo, { color: "gray", mb: "1", children: curriculum.title }),
126
+ /* @__PURE__ */ jsx(Heading, { variant: "heading3", children: reviewContents.title }),
127
+ /* @__PURE__ */ jsx(Separator, { my: "4", style: { width: 100 } }),
128
+ /* @__PURE__ */ jsxs(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
129
+ /* @__PURE__ */ jsx(Typo, { as: "span", weight: "bold", children: sectionTitle }),
130
+ " ",
131
+ /* @__PURE__ */ jsx(Typo, { children: reviewContents.description })
132
+ ] }),
133
+ /* @__PURE__ */ jsx(Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
134
+ if (done) {
135
+ return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
136
+ }
137
+ return renderPreviewContent({ question });
138
+ }) }),
139
+ /* @__PURE__ */ jsx(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
140
+ ]
141
+ }
142
+ )
143
+ }
144
+ );
145
+ }
146
+ var start_review_default = StartReview;
147
+
148
+ export {
149
+ start_review_default
150
+ };
151
+ //# sourceMappingURL=chunk-4JYSUW7I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx"],"sourcesContent":["import React from 'react'; \nimport type { BadgeProps } from '@/atoms/badge';\nimport { Badge } from '@/atoms/badge';\nimport { Box } from '@/atoms/box';\nimport { Button } from '@/atoms/button';\nimport { Flex } from '@/atoms/flex';\nimport { Grid } from '@/atoms/grid';\nimport { Heading } from '@/atoms/heading';\nimport { Separator } from '@/atoms/separator';\nimport { Typo } from '@/atoms/typo';\nimport {\n getCurriculumIcon,\n getCurriculumQuestionIconColor,\n getCurriculumQuestionTypeDescription,\n} from '@/utils/curriculum.utils';\nimport type { ReviewQuestionElement } from '@/types/curriculum.type';\nimport { useCurriculumReviewContext } from './curriculum-review-context';\n\ninterface StartReviewProps {\n onStart: () => void;\n}\n\n\nconst renderPreviewContent = (args: {\n question: ReviewQuestionElement;\n}):React.ReactElement => {\n const { question } = args;\n const Icon = getCurriculumIcon({\n type: question.type,\n icon: question.icon,\n });\n const getDescription = (): string => {\n return [\n getCurriculumQuestionTypeDescription(question.type),\n question.duration ? `${question.duration}분` : '',\n ]\n .filter(Boolean)\n .join(' | ');\n };\n\n return (\n <Grid\n columns=\"16px 1fr\"\n gap=\"2\"\n key={question.uuid}\n px=\"4\"\n py=\"2\"\n width=\"100%\"\n >\n <Box mt=\"1\">\n <Icon color={getCurriculumQuestionIconColor(question.type)} />\n </Box>\n <Box>\n <Typo as=\"p\" color=\"gray\" weight=\"bold\">\n {question.title}\n </Typo>\n <Typo color=\"gray\">{getDescription()}</Typo>\n </Box>\n </Grid>\n );\n};\n\n\nconst getReviewContentValue = (question: ReviewQuestionElement, answer: string): string => {\n if(question.type === 'question_satisfaction_option'){ \n return question.options?.find((option)=>option.value === Number(answer))?.label ?? '';\n }\n return answer\n}\n\n\nconst renderReviewContent = (args: {\n question: ReviewQuestionElement;\n answer: string;\n}):React.ReactElement => {\n const { question, answer } = args;\n const Icon = getCurriculumIcon({\n type: question.type,\n icon: question.icon,\n }); \n\n const color = getCurriculumQuestionIconColor(question.type);\n const badgeColor: BadgeProps['color'] = ['question_radio','question_satisfaction_option'].includes(question.type) ? 'accent' : 'neutral';\n const value = getReviewContentValue(question, answer);\n\n return (\n <Grid\n columns=\"16px 1fr\"\n gap=\"2\"\n key={question.uuid}\n px=\"4\"\n py=\"2\"\n width=\"100%\"\n >\n <Box>\n <Icon color={color} />\n </Box>\n\n <Box>\n <Typo as=\"p\" color=\"gray\" mb=\"2\" weight=\"bold\">{question.title}</Typo>\n <Badge color={badgeColor} size=\"large\" style={{whiteSpace: 'break-spaces', lineBreak: 'anywhere'}}>\n {value || '(미 응답)'}\n </Badge>\n </Box>\n \n </Grid>\n );\n};\n\nfunction StartReview({ onStart }: StartReviewProps): React.ReactNode {\n const { curriculum, reviewContents, sectionTitle, done,formik } =\n useCurriculumReviewContext();\n\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <Flex\n align=\"center\"\n direction=\"column\"\n height=\"100%\"\n justify=\"center\"\n maxWidth=\"650px\"\n pb={{initial: '6', sm: '0'}}\n pt={{initial: '4', sm: '0'}}\n px={{initial: '4', sm: '0'}}\n width=\"100%\"\n >\n <Typo color=\"gray\" mb=\"1\">{curriculum.title}</Typo>\n <Heading variant=\"heading3\">{reviewContents.title}</Heading>\n <Separator my=\"4\" style={{ width: 100 }} />\n\n <Typo align=\"left\" as=\"p\" color=\"gray\" mb=\"4\">\n <Typo as=\"span\" weight=\"bold\">\n {sectionTitle}\n </Typo>\n {' '}\n <Typo>{reviewContents.description}</Typo>\n </Typo>\n\n <Box mb=\"5\" overflowY=\"auto\" width=\"100%\">\n {reviewContents.questions.map((question)=>{\n if(done){\n return renderReviewContent({ question, answer: formik.values.answers[question.uuid]});\n }\n return renderPreviewContent({ question });\n })}\n </Box>\n <Button color=\"yellow\" onClick={onStart} variant={done ? 'outline' : 'solid'}>\n {done ? '나의 응답 수정하기' : reviewContents.buttonTitle}\n </Button>\n </Flex>\n </Flex>\n );\n}\n\nexport default StartReview;\n"],"mappings":"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","names":[]}
@@ -0,0 +1,140 @@
1
+ import {
2
+ Separator
3
+ } from "./chunk-HYITAA4J.js";
4
+ import {
5
+ Spinner
6
+ } from "./chunk-FR2GDOU2.js";
7
+ import {
8
+ Dialog
9
+ } from "./chunk-AH4A53SZ.js";
10
+ import {
11
+ Typo
12
+ } from "./chunk-PMJIFLDT.js";
13
+ import {
14
+ Flex
15
+ } from "./chunk-25HMMI7R.js";
16
+ import {
17
+ Button
18
+ } from "./chunk-ZVDAEY5Q.js";
19
+ import {
20
+ AspectRatio
21
+ } from "./chunk-EAXUQEO5.js";
22
+
23
+ // src/molecules/training-info-guideline.tsx
24
+ import { useState } from "react";
25
+ import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
26
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
27
+ function TrainingInfoGuideline({
28
+ values,
29
+ onClickFileDownload
30
+ }) {
31
+ return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
32
+ TrainingInfoGuidelineItem,
33
+ {
34
+ onClickFileDownload,
35
+ value
36
+ },
37
+ getItemKey(value)
38
+ )) });
39
+ }
40
+ function getItemKey(value) {
41
+ return value.url;
42
+ }
43
+ function TrainingInfoGuidelineItem({
44
+ value,
45
+ onClickFileDownload
46
+ }) {
47
+ const [isLoading, setIsLoading] = useState(true);
48
+ if (value.type === "file") {
49
+ return /* @__PURE__ */ jsx(
50
+ Button,
51
+ {
52
+ onClick: () => {
53
+ onClickFileDownload({ url: value.url, filename: value.filename });
54
+ },
55
+ style: { height: "48px" },
56
+ variant: "outline",
57
+ children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
58
+ /* @__PURE__ */ jsx(FileTextIcon, {}),
59
+ /* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "2" }),
60
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
61
+ /* @__PURE__ */ jsx(Typo, { children: value.downloadButtonName }),
62
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: value.filename })
63
+ ] })
64
+ ] })
65
+ }
66
+ );
67
+ }
68
+ if (value.type === "video") {
69
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
70
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
71
+ /* @__PURE__ */ jsx(VideoIcon, {}),
72
+ value.videoTitle
73
+ ] }) }),
74
+ /* @__PURE__ */ jsx(
75
+ Dialog.Content,
76
+ {
77
+ height: "100%",
78
+ maxHeight: "500px",
79
+ maxWidth: "800px",
80
+ title: value.videoTitle,
81
+ width: "100%",
82
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
83
+ Flex,
84
+ {
85
+ align: "center",
86
+ justify: "center",
87
+ style: {
88
+ width: "100%",
89
+ height: "100%",
90
+ backgroundColor: "black",
91
+ position: "relative"
92
+ },
93
+ children: [
94
+ isLoading ? /* @__PURE__ */ jsx(
95
+ Flex,
96
+ {
97
+ align: "center",
98
+ height: "100%",
99
+ justify: "center",
100
+ position: "absolute",
101
+ style: {
102
+ position: "absolute",
103
+ top: 0,
104
+ left: 0,
105
+ zIndex: 1,
106
+ color: "white"
107
+ },
108
+ width: "100%",
109
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
110
+ }
111
+ ) : null,
112
+ /* @__PURE__ */ jsx(
113
+ "iframe",
114
+ {
115
+ allowFullScreen: true,
116
+ onError: () => {
117
+ setIsLoading(false);
118
+ },
119
+ onLoad: () => {
120
+ setIsLoading(false);
121
+ },
122
+ src: `${value.url}?theme=light`,
123
+ style: { width: "100%", height: "100%", border: "none" },
124
+ title: "Curriculum Video"
125
+ }
126
+ )
127
+ ]
128
+ }
129
+ ) })
130
+ }
131
+ )
132
+ ] });
133
+ }
134
+ return null;
135
+ }
136
+
137
+ export {
138
+ TrainingInfoGuideline
139
+ };
140
+ //# sourceMappingURL=chunk-4SFBZJWH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { FileTextIcon, VideoIcon } from '@radix-ui/react-icons';\nimport { AspectRatio } from '@/atoms/aspect-ratio';\nimport { Button } from '@/atoms/button';\nimport type { TrainingInfoGuidelineContents } from '@/types/training-info-guideline-schema-generated';\nimport { Dialog } from '@/atoms/dialog';\nimport { Spinner } from '@/atoms/spinner';\nimport { Flex } from '../atoms/flex';\nimport { Separator, Typo } from '@/atoms';\n\nexport interface TrainingInfoGuidelineProps {\n values: TrainingInfoGuidelineContents['values'];\n onClickFileDownload: (args: { url: string; filename: string }) => void;\n}\n\nexport function TrainingInfoGuideline({\n values,\n onClickFileDownload,\n}: TrainingInfoGuidelineProps): React.ReactElement {\n return (\n <>\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </>\n );\n}\n\ntype TrainingInfoGuidelineValue =\n TrainingInfoGuidelineContents['values'][number];\n\nfunction getItemKey(value: TrainingInfoGuidelineValue): string {\n return value.url;\n}\n\ninterface TrainingInfoGuidelineItemProps {\n value: TrainingInfoGuidelineValue;\n onClickFileDownload: TrainingInfoGuidelineProps['onClickFileDownload'];\n}\n\nfunction TrainingInfoGuidelineItem({\n value,\n onClickFileDownload,\n}: TrainingInfoGuidelineItemProps): React.ReactElement | null {\n const [isLoading, setIsLoading] = useState(true);\n\n if (value.type === 'file') {\n return (\n <Button\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n style={{ height: '48px' }}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n <FileTextIcon />\n <Separator orientation=\"vertical\" size=\"2\" />\n <Flex direction=\"column\" gap=\"1\">\n <Typo>{value.downloadButtonName}</Typo>\n <Typo variant=\"caption\">{value.filename}</Typo>\n </Flex>\n </Flex>\n </Button>\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 차후 다른 타입 추가 시 사용\n if (value.type === 'video') {\n return (\n <Dialog.Root>\n <Dialog.Trigger>\n <Button variant=\"surface\">\n <VideoIcon />\n {value.videoTitle}\n </Button>\n </Dialog.Trigger>\n <Dialog.Content\n height=\"100%\"\n maxHeight=\"500px\"\n maxWidth=\"800px\"\n title={value.videoTitle}\n width=\"100%\"\n >\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n <Flex\n align=\"center\"\n justify=\"center\"\n style={{\n width: '100%',\n height: '100%',\n backgroundColor: 'black',\n position: 'relative',\n }}\n >\n {isLoading ? (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n position=\"absolute\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n color: 'white',\n }}\n width=\"100%\"\n >\n <Spinner size=\"3\" style={{ width: 48, height: 48 }} />\n </Flex>\n ) : null}\n\n <iframe\n allowFullScreen\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${value.url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n />\n </Flex>\n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAmBpC,mBAEI,KAwCE,YA1CN;AALG,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,gCACG,iBAAO,IAAI,CAAC,UACX;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA;AAAA;AAAA,IAFK,WAAW,KAAK;AAAA,EAGvB,CACD,GACH;AAEJ;AAKA,SAAS,WAAW,OAA2C;AAC7D,SAAO,MAAM;AACf;AAOA,SAAS,0BAA0B;AAAA,EACjC;AAAA,EACA;AACF,GAA8D;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,IAAI;AAE/C,MAAI,MAAM,SAAS,QAAQ;AACzB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AACb,8BAAoB,EAAE,KAAK,MAAM,KAAK,UAAU,MAAM,SAAS,CAAC;AAAA,QAClE;AAAA,QACA,OAAO,EAAE,QAAQ,OAAO;AAAA,QACxB,SAAQ;AAAA,QAER,+BAAC,QAAK,OAAM,UAAS,KAAI,KAAI,OAAM,QACjC;AAAA,8BAAC,gBAAa;AAAA,UACd,oBAAC,aAAU,aAAY,YAAW,MAAK,KAAI;AAAA,UAC3C,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,gCAAC,QAAM,gBAAM,oBAAmB;AAAA,YAChC,oBAAC,QAAK,SAAQ,WAAW,gBAAM,UAAS;AAAA,aAC1C;AAAA,WACF;AAAA;AAAA,IACF;AAAA,EAEJ;AAGA,MAAI,MAAM,SAAS,SAAS;AAC1B,WACE,qBAAC,OAAO,MAAP,EACC;AAAA,0BAAC,OAAO,SAAP,EACC,+BAAC,UAAO,SAAQ,WACd;AAAA,4BAAC,aAAU;AAAA,QACV,MAAM;AAAA,SACT,GACF;AAAA,MACA;AAAA,QAAC,OAAO;AAAA,QAAP;AAAA,UACC,QAAO;AAAA,UACP,WAAU;AAAA,UACV,UAAS;AAAA,UACT,OAAO,MAAM;AAAA,UACb,OAAM;AAAA,UAEN,8BAAC,eAAY,OAAO,KAAK,GAAG,OAAO,EAAE,OAAO,OAAO,GACjD;AAAA,YAAC;AAAA;AAAA,cACC,OAAM;AAAA,cACN,SAAQ;AAAA,cACR,OAAO;AAAA,gBACL,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,iBAAiB;AAAA,gBACjB,UAAU;AAAA,cACZ;AAAA,cAEC;AAAA,4BACC;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAM;AAAA,oBACN,QAAO;AAAA,oBACP,SAAQ;AAAA,oBACR,UAAS;AAAA,oBACT,OAAO;AAAA,sBACL,UAAU;AAAA,sBACV,KAAK;AAAA,sBACL,MAAM;AAAA,sBACN,QAAQ;AAAA,sBACR,OAAO;AAAA,oBACT;AAAA,oBACA,OAAM;AAAA,oBAEN,8BAAC,WAAQ,MAAK,KAAI,OAAO,EAAE,OAAO,IAAI,QAAQ,GAAG,GAAG;AAAA;AAAA,gBACtD,IACE;AAAA,gBAEJ;AAAA,kBAAC;AAAA;AAAA,oBACC,iBAAe;AAAA,oBACf,SAAS,MAAM;AACb,mCAAa,KAAK;AAAA,oBACpB;AAAA,oBACA,QAAQ,MAAM;AACZ,mCAAa,KAAK;AAAA,oBACpB;AAAA,oBACA,KAAK,GAAG,MAAM,GAAG;AAAA,oBACjB,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,OAAO;AAAA,oBACvD,OAAM;AAAA;AAAA,gBACR;AAAA;AAAA;AAAA,UACF,GACF;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;","names":[]}
@@ -0,0 +1,89 @@
1
+ import {
2
+ ReviewQuestion_default
3
+ } from "./chunk-X7QZ46BZ.js";
4
+ import {
5
+ complete_review_default
6
+ } from "./chunk-PYGTM7ML.js";
7
+ import {
8
+ start_review_default
9
+ } from "./chunk-YE3UDMTZ.js";
10
+ import {
11
+ CurriculumReviewProvider,
12
+ useCurriculumReviewContext
13
+ } from "./chunk-GMKRNFH5.js";
14
+
15
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
16
+ import { jsx } from "react/jsx-runtime";
17
+ function CurriculumReviewStepsInner() {
18
+ const {
19
+ formik,
20
+ step,
21
+ handleStart,
22
+ handleNext,
23
+ handlePrev,
24
+ onClickReviewMyAnswer,
25
+ handleSubmit,
26
+ currentQuestion,
27
+ currentAnswer,
28
+ currentError,
29
+ reviewContents,
30
+ handleAnswerChange
31
+ } = useCurriculumReviewContext();
32
+ const { questions } = reviewContents;
33
+ if (step === 0) {
34
+ return /* @__PURE__ */ jsx(start_review_default, { onStart: handleStart });
35
+ }
36
+ if (step > 0 && step <= questions.length && currentQuestion) {
37
+ return /* @__PURE__ */ jsx(
38
+ ReviewQuestion_default,
39
+ {
40
+ answer: currentAnswer,
41
+ error: currentError,
42
+ index: step - 1,
43
+ isLast: step === questions.length,
44
+ isLoading: formik.isSubmitting,
45
+ isNextDisabled: currentError !== void 0,
46
+ onChange: handleAnswerChange,
47
+ onNext: handleNext,
48
+ onPrev: handlePrev,
49
+ onSubmit: handleSubmit,
50
+ question: currentQuestion,
51
+ total: questions.length
52
+ }
53
+ );
54
+ }
55
+ return /* @__PURE__ */ jsx(complete_review_default, { onClickReviewMyAnswer });
56
+ }
57
+ function CurriculumReviewSteps({
58
+ contents,
59
+ title,
60
+ onClickEndReview,
61
+ onSubmit,
62
+ defaultValues,
63
+ curriculum,
64
+ onReviewValueChange,
65
+ mode,
66
+ done
67
+ }) {
68
+ return /* @__PURE__ */ jsx(
69
+ CurriculumReviewProvider,
70
+ {
71
+ curriculum,
72
+ defaultValues,
73
+ done,
74
+ mode,
75
+ onClickEndReview,
76
+ onReviewValueChange,
77
+ onSubmit,
78
+ reviewContents: contents,
79
+ sectionTitle: title,
80
+ children: /* @__PURE__ */ jsx(CurriculumReviewStepsInner, {})
81
+ }
82
+ );
83
+ }
84
+ var CurriculumReviewSteps_default = CurriculumReviewSteps;
85
+
86
+ export {
87
+ CurriculumReviewSteps_default
88
+ };
89
+ //# sourceMappingURL=chunk-5IQ4474Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx"],"sourcesContent":["import React from 'react';\nimport { type CurriculumReviewContents } from '@/types/curriculumContents.type';\nimport type { Curriculum } from '@/types'; \nimport {\n CurriculumReviewProvider,\n useCurriculumReviewContext,\n} from './curriculum-review-context';\nimport StartReview from './start-review';\nimport CompleteReview from './complete-review';\nimport ReviewQuestion from './ReviewQuestion';\n \nfunction CurriculumReviewStepsInner(): React.ReactNode {\n const {\n formik,\n step,\n handleStart,\n handleNext,\n handlePrev,\n onClickReviewMyAnswer,\n handleSubmit,\n currentQuestion,\n currentAnswer,\n currentError,\n reviewContents,\n handleAnswerChange,\n } = useCurriculumReviewContext();\n const { questions } = reviewContents;\n\n if (step === 0) {\n return <StartReview onStart={handleStart} />;\n }\n if (step > 0 && step <= questions.length && currentQuestion) {\n return (\n <ReviewQuestion\n answer={currentAnswer}\n error={currentError}\n index={step - 1}\n isLast={step === questions.length}\n isLoading={formik.isSubmitting}\n isNextDisabled={currentError !== undefined}\n onChange={handleAnswerChange}\n onNext={handleNext}\n onPrev={handlePrev}\n onSubmit={handleSubmit}\n question={currentQuestion}\n total={questions.length}\n />\n );\n }\n return <CompleteReview onClickReviewMyAnswer={onClickReviewMyAnswer} />;\n}\n\ninterface CurriculumReviewStepsProps {\n contents: CurriculumReviewContents;\n title: string | undefined;\n onClickEndReview: () => void;\n onSubmit: (values: Record<string, string>) => Promise<boolean>;\n defaultValues?: Record<string, string>;\n curriculum: Curriculum;\n onReviewValueChange: ({\n reviewId,\n answer,\n }: {\n reviewId: string;\n answer: Record<string, string>;\n }) => void;\n mode: 'edit' | 'create';\n done: boolean; \n}\n\nfunction CurriculumReviewSteps({\n contents,\n title,\n onClickEndReview,\n onSubmit,\n defaultValues,\n curriculum,\n onReviewValueChange,\n mode,\n done,\n}: CurriculumReviewStepsProps): React.ReactNode { \n\n return (\n <CurriculumReviewProvider\n curriculum={curriculum}\n defaultValues={defaultValues}\n done={done}\n mode={mode}\n onClickEndReview={onClickEndReview}\n onReviewValueChange={onReviewValueChange}\n onSubmit={onSubmit}\n reviewContents={contents}\n sectionTitle={title}\n >\n <CurriculumReviewStepsInner />\n </CurriculumReviewProvider>\n );\n}\n\nexport default CurriculumReviewSteps;\n"],"mappings":";;;;;;;;;;;;;;;AA6BW;AAlBX,SAAS,6BAA8C;AACrD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B;AAC/B,QAAM,EAAE,UAAU,IAAI;AAEtB,MAAI,SAAS,GAAG;AACd,WAAO,oBAAC,wBAAY,SAAS,aAAa;AAAA,EAC5C;AACA,MAAI,OAAO,KAAK,QAAQ,UAAU,UAAU,iBAAiB;AAC3D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,OAAO,OAAO;AAAA,QACd,QAAQ,SAAS,UAAU;AAAA,QAC3B,WAAW,OAAO;AAAA,QAClB,gBAAgB,iBAAiB;AAAA,QACjC,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,UAAU;AAAA,QACV,OAAO,UAAU;AAAA;AAAA,IACnB;AAAA,EAEJ;AACA,SAAO,oBAAC,2BAAe,uBAA8C;AACvE;AAoBA,SAAS,sBAAsB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgD;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,MAChB,cAAc;AAAA,MAEd,8BAAC,8BAA2B;AAAA;AAAA,EAC9B;AAEJ;AAEA,IAAO,gCAAQ;","names":[]}