@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,135 @@
1
+ import {
2
+ Spinner
3
+ } from "./chunk-FR2GDOU2.js";
4
+ import {
5
+ Dialog
6
+ } from "./chunk-AH4A53SZ.js";
7
+ import {
8
+ Typo
9
+ } from "./chunk-PMJIFLDT.js";
10
+ import {
11
+ Flex
12
+ } from "./chunk-25HMMI7R.js";
13
+ import {
14
+ Button
15
+ } from "./chunk-ZVDAEY5Q.js";
16
+ import {
17
+ AspectRatio
18
+ } from "./chunk-EAXUQEO5.js";
19
+
20
+ // src/molecules/training-info-guideline.tsx
21
+ import { useState } from "react";
22
+ import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
23
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
24
+ function TrainingInfoGuideline({
25
+ values,
26
+ onClickFileDownload
27
+ }) {
28
+ return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
29
+ TrainingInfoGuidelineItem,
30
+ {
31
+ onClickFileDownload,
32
+ value
33
+ },
34
+ getItemKey(value)
35
+ )) });
36
+ }
37
+ function getItemKey(value) {
38
+ return value.url;
39
+ }
40
+ function TrainingInfoGuidelineItem({
41
+ value,
42
+ onClickFileDownload
43
+ }) {
44
+ const [isLoading, setIsLoading] = useState(true);
45
+ if (value.type === "file") {
46
+ return /* @__PURE__ */ jsx(
47
+ Button,
48
+ {
49
+ onClick: () => {
50
+ onClickFileDownload({ url: value.url, filename: value.filename });
51
+ },
52
+ variant: "outline",
53
+ children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
54
+ /* @__PURE__ */ jsx(FileTextIcon, {}),
55
+ /* @__PURE__ */ jsxs(Flex, { children: [
56
+ /* @__PURE__ */ jsx(Typo, { children: value.downloadButtonName }),
57
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: value.filename })
58
+ ] })
59
+ ] })
60
+ }
61
+ );
62
+ }
63
+ if (value.type === "video") {
64
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
65
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
66
+ /* @__PURE__ */ jsx(VideoIcon, {}),
67
+ value.videoTitle
68
+ ] }) }),
69
+ /* @__PURE__ */ jsx(
70
+ Dialog.Content,
71
+ {
72
+ height: "100%",
73
+ maxHeight: "500px",
74
+ maxWidth: "800px",
75
+ title: value.videoTitle,
76
+ width: "100%",
77
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
78
+ Flex,
79
+ {
80
+ align: "center",
81
+ justify: "center",
82
+ style: {
83
+ width: "100%",
84
+ height: "100%",
85
+ backgroundColor: "black",
86
+ position: "relative"
87
+ },
88
+ children: [
89
+ isLoading ? /* @__PURE__ */ jsx(
90
+ Flex,
91
+ {
92
+ align: "center",
93
+ height: "100%",
94
+ justify: "center",
95
+ position: "absolute",
96
+ style: {
97
+ position: "absolute",
98
+ top: 0,
99
+ left: 0,
100
+ zIndex: 1,
101
+ color: "white"
102
+ },
103
+ width: "100%",
104
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
105
+ }
106
+ ) : null,
107
+ /* @__PURE__ */ jsx(
108
+ "iframe",
109
+ {
110
+ allowFullScreen: true,
111
+ onError: () => {
112
+ setIsLoading(false);
113
+ },
114
+ onLoad: () => {
115
+ setIsLoading(false);
116
+ },
117
+ src: `${value.url}?theme=light`,
118
+ style: { width: "100%", height: "100%", border: "none" },
119
+ title: "Curriculum Video"
120
+ }
121
+ )
122
+ ]
123
+ }
124
+ ) })
125
+ }
126
+ )
127
+ ] });
128
+ }
129
+ return null;
130
+ }
131
+
132
+ export {
133
+ TrainingInfoGuideline
134
+ };
135
+ //# sourceMappingURL=chunk-SRU4OFM3.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 { 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 variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n <FileTextIcon />\n <Flex>\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,KAsCE,YAxCN;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,IAA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AC,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,98 @@
1
+ import {
2
+ sidebar_item_default
3
+ } from "./chunk-NVQSH733.js";
4
+ import {
5
+ useCurriculumContext
6
+ } from "./chunk-Y7SJF3Y3.js";
7
+ import {
8
+ Tabs
9
+ } from "./chunk-5ZITU5L7.js";
10
+ import {
11
+ Grid
12
+ } from "./chunk-EGEQY3KT.js";
13
+ import {
14
+ Box
15
+ } from "./chunk-4Y5BEXVN.js";
16
+
17
+ // src/molecules/curriculumV2/CurriculumSidebar/index.tsx
18
+ import { useMemo } from "react";
19
+ import { jsx, jsxs } from "react/jsx-runtime";
20
+ var TAB_LIST = [
21
+ {
22
+ label: "\uAC15\uC758 \uBAA9\uCC28",
23
+ value: "curriculum"
24
+ }
25
+ ];
26
+ var TABS_LIST_STYLE = {
27
+ padding: "0 var(--space-3)"
28
+ };
29
+ var TABS_CONTENT_STYLE = {
30
+ position: "absolute",
31
+ height: "100%",
32
+ width: "100%"
33
+ };
34
+ function CurriculumSidebar() {
35
+ const {
36
+ curriculum,
37
+ selectedIndex,
38
+ setSelectedIndex,
39
+ scrollAreaRef,
40
+ curriculumCompleteMap,
41
+ customTabs
42
+ } = useCurriculumContext();
43
+ const list = curriculum.contents.list;
44
+ const tabList = useMemo(() => {
45
+ return [...TAB_LIST, ...customTabs != null ? customTabs : []];
46
+ }, [customTabs]);
47
+ return /* @__PURE__ */ jsx(Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ jsxs(Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
48
+ /* @__PURE__ */ jsx(Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ jsx(Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
49
+ /* @__PURE__ */ jsxs(
50
+ Box,
51
+ {
52
+ height: "100%",
53
+ overflowY: "auto",
54
+ position: "relative",
55
+ ref: scrollAreaRef,
56
+ width: "100%",
57
+ children: [
58
+ /* @__PURE__ */ jsxs(
59
+ Tabs.Content,
60
+ {
61
+ style: TABS_CONTENT_STYLE,
62
+ value: TAB_LIST[0].value,
63
+ children: [
64
+ list.map((item, index) => /* @__PURE__ */ jsx(
65
+ sidebar_item_default,
66
+ {
67
+ done: curriculumCompleteMap[item.uuid],
68
+ index,
69
+ item,
70
+ selectedIndex,
71
+ setSelectedIndex
72
+ },
73
+ item.uuid
74
+ )),
75
+ /* @__PURE__ */ jsx(Box, { height: "150px" })
76
+ ]
77
+ },
78
+ TAB_LIST[0].value
79
+ ),
80
+ customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ jsx(
81
+ Tabs.Content,
82
+ {
83
+ style: TABS_CONTENT_STYLE,
84
+ value: tab.value,
85
+ children: tab.content
86
+ },
87
+ tab.value
88
+ ))
89
+ ]
90
+ }
91
+ )
92
+ ] }) });
93
+ }
94
+
95
+ export {
96
+ CurriculumSidebar
97
+ };
98
+ //# sourceMappingURL=chunk-SZ73GYOE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumSidebar/index.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { Box } from '@/atoms/box';\nimport { Grid } from '@/atoms/grid';\nimport { Tabs } from '@/atoms/tabs';\nimport { useCurriculumContext } from '../curriculum-context';\nimport SidebarItem from './sidebar-item';\n\nconst TAB_LIST = [\n {\n label: '강의 목차',\n value: 'curriculum',\n },\n];\n\nconst TABS_LIST_STYLE: React.CSSProperties = {\n padding: '0 var(--space-3)',\n};\n\nconst TABS_CONTENT_STYLE: React.CSSProperties = {\n position: 'absolute',\n height: '100%',\n width: '100%',\n};\n\n\nexport function CurriculumSidebar(): React.ReactNode {\n const {\n curriculum,\n selectedIndex,\n setSelectedIndex,\n scrollAreaRef,\n curriculumCompleteMap,\n customTabs,\n } = useCurriculumContext();\n const list = curriculum.contents.list;\n\n const tabList = useMemo(() => {\n return [...TAB_LIST, ...(customTabs ?? [])];\n }, [customTabs]);\n\n return (\n <Tabs.Root asChild defaultValue={TAB_LIST[0].value}>\n <Grid height=\"100%\" overflowY=\"auto\" rows=\"auto 1fr \" width=\"100%\">\n <Tabs.List style={TABS_LIST_STYLE}>\n {tabList.map((tab) => (\n <Tabs.Trigger key={tab.value} value={tab.value}>\n {tab.label}\n </Tabs.Trigger>\n ))}\n </Tabs.List>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n position=\"relative\"\n ref={scrollAreaRef}\n width=\"100%\"\n >\n <Tabs.Content\n key={TAB_LIST[0].value}\n style={TABS_CONTENT_STYLE}\n value={TAB_LIST[0].value}\n >\n {list.map((item, index) => (\n <SidebarItem\n done={curriculumCompleteMap[item.uuid]}\n index={index}\n item={item}\n key={item.uuid}\n selectedIndex={selectedIndex}\n setSelectedIndex={setSelectedIndex}\n />\n ))}\n <Box height=\"150px\" />\n </Tabs.Content>\n {customTabs?.map((tab) => (\n <Tabs.Content\n key={tab.value}\n style={TABS_CONTENT_STYLE}\n value={tab.value}\n >\n {tab.content}\n </Tabs.Content>\n ))}\n </Box>\n </Grid>\n </Tabs.Root>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AA6CnB,cAYF,Y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;AAAA;AAAA;AAAA,YAdf,SAAS,CAAC,EAAE;AAAA,UAenB;AAAA,UACC,yCAAY,IAAI,CAAC,QAChB;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cAEC,OAAO;AAAA,cACP,OAAO,IAAI;AAAA,cAEV,cAAI;AAAA;AAAA,YAJA,IAAI;AAAA,UAKX;AAAA;AAAA;AAAA,IAEJ;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -0,0 +1,160 @@
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
+ TrainingInfoGuidelineButton,
51
+ {
52
+ description: value.filename,
53
+ icon: /* @__PURE__ */ jsx(FileTextIcon, {}),
54
+ onClick: () => {
55
+ onClickFileDownload({ url: value.url, filename: value.filename });
56
+ },
57
+ title: value.downloadButtonName
58
+ }
59
+ );
60
+ }
61
+ if (value.type === "video") {
62
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
63
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(
64
+ TrainingInfoGuidelineButton,
65
+ {
66
+ description: "\uC601\uC0C1",
67
+ icon: /* @__PURE__ */ jsx(VideoIcon, {}),
68
+ title: value.videoTitle
69
+ }
70
+ ) }),
71
+ /* @__PURE__ */ jsx(
72
+ Dialog.Content,
73
+ {
74
+ height: "100%",
75
+ maxHeight: "500px",
76
+ maxWidth: "800px",
77
+ title: value.videoTitle,
78
+ width: "100%",
79
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
80
+ Flex,
81
+ {
82
+ align: "center",
83
+ justify: "center",
84
+ style: {
85
+ width: "100%",
86
+ height: "100%",
87
+ backgroundColor: "black",
88
+ position: "relative"
89
+ },
90
+ children: [
91
+ isLoading ? /* @__PURE__ */ jsx(
92
+ Flex,
93
+ {
94
+ align: "center",
95
+ height: "100%",
96
+ justify: "center",
97
+ position: "absolute",
98
+ style: {
99
+ position: "absolute",
100
+ top: 0,
101
+ left: 0,
102
+ zIndex: 1,
103
+ color: "white"
104
+ },
105
+ width: "100%",
106
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
107
+ }
108
+ ) : null,
109
+ /* @__PURE__ */ jsx(
110
+ "iframe",
111
+ {
112
+ allowFullScreen: true,
113
+ onError: () => {
114
+ setIsLoading(false);
115
+ },
116
+ onLoad: () => {
117
+ setIsLoading(false);
118
+ },
119
+ src: `${value.url}?theme=light`,
120
+ style: { width: "100%", height: "100%", border: "none" },
121
+ title: "Curriculum Video"
122
+ }
123
+ )
124
+ ]
125
+ }
126
+ ) })
127
+ }
128
+ )
129
+ ] });
130
+ }
131
+ return null;
132
+ }
133
+ function TrainingInfoGuidelineButton({
134
+ icon,
135
+ title,
136
+ description,
137
+ onClick
138
+ }) {
139
+ return /* @__PURE__ */ jsx(
140
+ Button,
141
+ {
142
+ onClick,
143
+ style: { width: "100%", height: "48px" },
144
+ variant: "outline",
145
+ children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
146
+ icon,
147
+ /* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "2" }),
148
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
149
+ /* @__PURE__ */ jsx(Typo, { children: title }),
150
+ typeof description === "string" && description !== "" ? /* @__PURE__ */ jsx(Typo, { variant: "caption", children: description }) : null
151
+ ] })
152
+ ] })
153
+ }
154
+ );
155
+ }
156
+
157
+ export {
158
+ TrainingInfoGuideline
159
+ };
160
+ //# sourceMappingURL=chunk-T5EBUYAB.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 { Separator, Typo } from '@/atoms';\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 <Flex direction=\"column\" gap=\"1\">\n <Typo>{title}</Typo>\n {typeof description === 'string' && description !== '' ? (\n <Typo variant=\"caption\">{description}</Typo>\n ) : null}\n </Flex>\n </Flex>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAmBpC,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,qB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AA,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,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,8BAAC,QAAM,iBAAM;AAAA,UACZ,OAAO,gBAAgB,YAAY,gBAAgB,KAClD,oBAAC,QAAK,SAAQ,WAAW,uBAAY,IACnC;AAAA,WACN;AAAA,SACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,159 @@
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
+ size: "large",
56
+ style: { width: "100%" },
57
+ variant: "outline",
58
+ children: /* @__PURE__ */ jsx(
59
+ TrainingInfoGuidelineButtonContent,
60
+ {
61
+ description: value.filename,
62
+ icon: /* @__PURE__ */ jsx(FileTextIcon, {}),
63
+ title: value.downloadButtonName
64
+ }
65
+ )
66
+ }
67
+ );
68
+ }
69
+ if (value.type === "video") {
70
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
71
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(Button, { size: "large", style: { width: "100%" }, variant: "outline", children: /* @__PURE__ */ jsx(
72
+ TrainingInfoGuidelineButtonContent,
73
+ {
74
+ description: "\uC601\uC0C1",
75
+ icon: /* @__PURE__ */ jsx(VideoIcon, {}),
76
+ title: value.videoTitle
77
+ }
78
+ ) }) }),
79
+ /* @__PURE__ */ jsx(
80
+ Dialog.Content,
81
+ {
82
+ height: "100%",
83
+ maxHeight: "500px",
84
+ maxWidth: "800px",
85
+ title: value.videoTitle,
86
+ width: "100%",
87
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
88
+ Flex,
89
+ {
90
+ align: "center",
91
+ justify: "center",
92
+ style: {
93
+ width: "100%",
94
+ height: "100%",
95
+ backgroundColor: "black",
96
+ position: "relative"
97
+ },
98
+ children: [
99
+ isLoading ? /* @__PURE__ */ jsx(
100
+ Flex,
101
+ {
102
+ align: "center",
103
+ height: "100%",
104
+ justify: "center",
105
+ position: "absolute",
106
+ style: {
107
+ position: "absolute",
108
+ top: 0,
109
+ left: 0,
110
+ zIndex: 1,
111
+ color: "white"
112
+ },
113
+ width: "100%",
114
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
115
+ }
116
+ ) : null,
117
+ /* @__PURE__ */ jsx(
118
+ "iframe",
119
+ {
120
+ allowFullScreen: true,
121
+ onError: () => {
122
+ setIsLoading(false);
123
+ },
124
+ onLoad: () => {
125
+ setIsLoading(false);
126
+ },
127
+ src: `${value.url}?theme=light`,
128
+ style: { width: "100%", height: "100%", border: "none" },
129
+ title: "Curriculum Video"
130
+ }
131
+ )
132
+ ]
133
+ }
134
+ ) })
135
+ }
136
+ )
137
+ ] });
138
+ }
139
+ return null;
140
+ }
141
+ function TrainingInfoGuidelineButtonContent({
142
+ icon,
143
+ title,
144
+ description
145
+ }) {
146
+ return /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
147
+ icon,
148
+ /* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "2" }),
149
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
150
+ /* @__PURE__ */ jsx(Typo, { children: title }),
151
+ typeof description === "string" && description !== "" ? /* @__PURE__ */ jsx(Typo, { variant: "caption", children: description }) : null
152
+ ] })
153
+ ] });
154
+ }
155
+
156
+ export {
157
+ TrainingInfoGuideline
158
+ };
159
+ //# sourceMappingURL=chunk-THTRJNHI.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 { Separator, Typo } from '@/atoms';\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 <Button\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n size=\"large\"\n style={{ width: '100%' }}\n variant=\"outline\"\n >\n <TrainingInfoGuidelineButtonContent\n description={value.filename}\n icon={<FileTextIcon />}\n title={value.downloadButtonName}\n />\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 size=\"large\" style={{ width: '100%' }} variant=\"outline\">\n <TrainingInfoGuidelineButtonContent\n description=\"영상\"\n icon={<VideoIcon />}\n title={value.videoTitle}\n />\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\ninterface TrainingInfoGuidelineButtonContentProps {\n icon: React.ReactNode;\n title: string;\n description?: string;\n}\n\nfunction TrainingInfoGuidelineButtonContent({\n icon,\n title,\n description,\n}: TrainingInfoGuidelineButtonContentProps): React.ReactElement {\n return (\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n {icon}\n <Separator orientation=\"vertical\" size=\"2\" />\n <Flex direction=\"column\" gap=\"1\">\n <Typo>{title}</Typo>\n {typeof description === 'string' && description !== '' ? (\n <Typo variant=\"caption\">{description}</Typo>\n ) : null}\n </Flex>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAmBpC,mBAEI,KAoEI,YAtER;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;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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;AAQA,SAAS,mCAAmC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF,GAAgE;AAC9D,SACE,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,OAAM,QAChC;AAAA;AAAA,IACD,oBAAC,aAAU,aAAY,YAAW,MAAK,KAAI;AAAA,IAC3C,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,0BAAC,QAAM,iBAAM;AAAA,MACZ,OAAO,gBAAgB,YAAY,gBAAgB,KAClD,oBAAC,QAAK,SAAQ,WAAW,uBAAY,IACnC;AAAA,OACN;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,64 @@
1
+ import {
2
+ Dialog
3
+ } from "./chunk-AH4A53SZ.js";
4
+ import {
5
+ Flex
6
+ } from "./chunk-25HMMI7R.js";
7
+ import {
8
+ Button
9
+ } from "./chunk-ZVDAEY5Q.js";
10
+
11
+ // src/molecules/training-info-guideline.tsx
12
+ import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ function TrainingInfoGuideline({
15
+ values,
16
+ onClickFileDownload
17
+ }) {
18
+ return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: values.map((value) => /* @__PURE__ */ jsx(
19
+ TrainingInfoGuidelineItem,
20
+ {
21
+ onClickFileDownload,
22
+ value
23
+ },
24
+ getItemKey(value)
25
+ )) });
26
+ }
27
+ function getItemKey(value) {
28
+ return value.url;
29
+ }
30
+ function TrainingInfoGuidelineItem({
31
+ value,
32
+ onClickFileDownload
33
+ }) {
34
+ if (value.type === "file") {
35
+ return /* @__PURE__ */ jsxs(
36
+ Button,
37
+ {
38
+ onClick: () => {
39
+ onClickFileDownload({ url: value.url, filename: value.filename });
40
+ },
41
+ variant: "surface",
42
+ children: [
43
+ /* @__PURE__ */ jsx(FileTextIcon, {}),
44
+ value.downloadButtonName
45
+ ]
46
+ }
47
+ );
48
+ }
49
+ if (value.type === "video") {
50
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
51
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
52
+ /* @__PURE__ */ jsx(VideoIcon, {}),
53
+ value.videoTitle
54
+ ] }) }),
55
+ /* @__PURE__ */ jsx(Dialog.Content, { title: value.videoTitle, children: /* @__PURE__ */ jsx("video", { controls: true, src: value.url, width: "100%", height: "100%", children: /* @__PURE__ */ jsx("track", { kind: "captions", label: "Korean captions", srcLang: "ko" }) }) })
56
+ ] });
57
+ }
58
+ return null;
59
+ }
60
+
61
+ export {
62
+ TrainingInfoGuideline
63
+ };
64
+ //# sourceMappingURL=chunk-TQ5AJKUH.js.map