@tipp/ui 2.3.18 → 2.3.20

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 (232) hide show
  1. package/dist/app/index.cjs.map +1 -1
  2. package/dist/app/index.js +91 -91
  3. package/dist/app/platform/coach-question-list.js +31 -31
  4. package/dist/app/platform/contents-card.js +31 -31
  5. package/dist/app/platform/curriculum-card.js +5 -5
  6. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  7. package/dist/app/platform/edit-coaching-time.js +72 -72
  8. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  9. package/dist/app/platform/edit-service-type.js +73 -73
  10. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  11. package/dist/app/platform/goal-manage-card-edit.js +72 -72
  12. package/dist/app/platform/goal-manage-card-read.js +31 -31
  13. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  14. package/dist/app/platform/on-offline-radio-card.js +72 -72
  15. package/dist/app/platform/report-card.js +31 -31
  16. package/dist/app/platform/reservation-card.cjs.map +1 -1
  17. package/dist/app/platform/reservation-card.js +73 -73
  18. package/dist/app/platform/session-card.cjs.map +1 -1
  19. package/dist/app/platform/session-card.js +75 -75
  20. package/dist/app/platform/session-review-simple-read.js +31 -31
  21. package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -36
  22. package/dist/app/platform/userInfos/coaching-customer-info/large.js +31 -31
  23. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +31 -31
  24. package/dist/app/platform/userInfos/coaching-customer-info/small.js +31 -31
  25. package/dist/app/platform/userInfos/session-user-info-detail.js +31 -31
  26. package/dist/app/platform/userInfos/utils.js +30 -30
  27. package/dist/atoms/bullet-text.js +2 -2
  28. package/dist/atoms/dialog.js +2 -2
  29. package/dist/atoms/field-error-wrapper.js +2 -2
  30. package/dist/atoms/index.js +62 -62
  31. package/dist/atoms/list.js +2 -2
  32. package/dist/atoms/pagination.js +3 -3
  33. package/dist/chunk-232ZBMFV.js +196 -0
  34. package/dist/chunk-232ZBMFV.js.map +1 -0
  35. package/dist/chunk-24572XRX.js +140 -0
  36. package/dist/chunk-24572XRX.js.map +1 -0
  37. package/dist/chunk-34XTOQID.js +140 -0
  38. package/dist/chunk-34XTOQID.js.map +1 -0
  39. package/dist/chunk-3A3VE6SX.js +160 -0
  40. package/dist/chunk-3A3VE6SX.js.map +1 -0
  41. package/dist/chunk-3LEW5RYJ.js +163 -0
  42. package/dist/chunk-3LEW5RYJ.js.map +1 -0
  43. package/dist/chunk-3MCSM3WD.js +163 -0
  44. package/dist/chunk-3MCSM3WD.js.map +1 -0
  45. package/dist/chunk-3MG2RPYN.js +163 -0
  46. package/dist/chunk-3MG2RPYN.js.map +1 -0
  47. package/dist/chunk-3P5XU4EK.js +87 -0
  48. package/dist/chunk-3P5XU4EK.js.map +1 -0
  49. package/dist/chunk-4SFBZJWH.js +140 -0
  50. package/dist/chunk-4SFBZJWH.js.map +1 -0
  51. package/dist/chunk-5IQ4474Z.js +89 -0
  52. package/dist/chunk-5IQ4474Z.js.map +1 -0
  53. package/dist/chunk-5P7255ZD.js +144 -0
  54. package/dist/chunk-5P7255ZD.js.map +1 -0
  55. package/dist/chunk-5RMPQM6F.js +163 -0
  56. package/dist/chunk-5RMPQM6F.js.map +1 -0
  57. package/dist/chunk-5UUCPFYY.js +140 -0
  58. package/dist/chunk-5UUCPFYY.js.map +1 -0
  59. package/dist/chunk-6LZWYVNE.js +160 -0
  60. package/dist/chunk-6LZWYVNE.js.map +1 -0
  61. package/dist/chunk-6PJ7QIPK.js +140 -0
  62. package/dist/chunk-6PJ7QIPK.js.map +1 -0
  63. package/dist/chunk-6VWGOH4J.js +218 -0
  64. package/dist/chunk-6VWGOH4J.js.map +1 -0
  65. package/dist/chunk-7AGAGV4E.js +69 -0
  66. package/dist/chunk-7AGAGV4E.js.map +1 -0
  67. package/dist/chunk-7AZNNMJF.js +129 -0
  68. package/dist/chunk-7AZNNMJF.js.map +1 -0
  69. package/dist/chunk-7BAQZVH3.js +152 -0
  70. package/dist/chunk-7BAQZVH3.js.map +1 -0
  71. package/dist/chunk-7RB2YZCU.js +159 -0
  72. package/dist/chunk-7RB2YZCU.js.map +1 -0
  73. package/dist/chunk-A5SSQHU7.js +135 -0
  74. package/dist/chunk-A5SSQHU7.js.map +1 -0
  75. package/dist/chunk-B5J4YCG2.js +98 -0
  76. package/dist/chunk-B5J4YCG2.js.map +1 -0
  77. package/dist/chunk-BAFUUZ5V.js +163 -0
  78. package/dist/chunk-BAFUUZ5V.js.map +1 -0
  79. package/dist/chunk-BT4BMBJC.js +163 -0
  80. package/dist/chunk-BT4BMBJC.js.map +1 -0
  81. package/dist/chunk-C5HQZR32.js +196 -0
  82. package/dist/chunk-C5HQZR32.js.map +1 -0
  83. package/dist/chunk-D7NY3IWA.js +152 -0
  84. package/dist/chunk-D7NY3IWA.js.map +1 -0
  85. package/dist/chunk-DGOKT7ZK.js +163 -0
  86. package/dist/chunk-DGOKT7ZK.js.map +1 -0
  87. package/dist/chunk-DL5EXP6Q.js +129 -0
  88. package/dist/chunk-DL5EXP6Q.js.map +1 -0
  89. package/dist/chunk-DR3ELFWR.js +69 -0
  90. package/dist/chunk-DR3ELFWR.js.map +1 -0
  91. package/dist/chunk-EEXQP6FN.js +129 -0
  92. package/dist/chunk-EEXQP6FN.js.map +1 -0
  93. package/dist/chunk-EOPCVKLK.js +69 -0
  94. package/dist/chunk-EOPCVKLK.js.map +1 -0
  95. package/dist/chunk-FJYLZOAR.js +140 -0
  96. package/dist/chunk-FJYLZOAR.js.map +1 -0
  97. package/dist/chunk-GFRV5VDJ.js +132 -0
  98. package/dist/chunk-GFRV5VDJ.js.map +1 -0
  99. package/dist/chunk-GRD6VL3Q.js +49 -0
  100. package/dist/chunk-GRD6VL3Q.js.map +1 -0
  101. package/dist/chunk-H53J2DZE.js +157 -0
  102. package/dist/chunk-H53J2DZE.js.map +1 -0
  103. package/dist/chunk-HBQ6WF3C.js +196 -0
  104. package/dist/chunk-HBQ6WF3C.js.map +1 -0
  105. package/dist/chunk-I6ITAPUG.js +158 -0
  106. package/dist/chunk-I6ITAPUG.js.map +1 -0
  107. package/dist/chunk-IPEPHM2U.js +89 -0
  108. package/dist/chunk-IPEPHM2U.js.map +1 -0
  109. package/dist/chunk-J65X5ID3.js +136 -0
  110. package/dist/chunk-J65X5ID3.js.map +1 -0
  111. package/dist/chunk-K6PJ5GES.js +129 -0
  112. package/dist/chunk-K6PJ5GES.js.map +1 -0
  113. package/dist/chunk-LFISV2GU.js +160 -0
  114. package/dist/chunk-LFISV2GU.js.map +1 -0
  115. package/dist/chunk-LRTZTSV6.js +135 -0
  116. package/dist/chunk-LRTZTSV6.js.map +1 -0
  117. package/dist/chunk-MOITMVXZ.js +159 -0
  118. package/dist/chunk-MOITMVXZ.js.map +1 -0
  119. package/dist/chunk-MYGRIOQM.js +163 -0
  120. package/dist/chunk-MYGRIOQM.js.map +1 -0
  121. package/dist/chunk-N3A4EUDH.js +101 -0
  122. package/dist/chunk-N3A4EUDH.js.map +1 -0
  123. package/dist/chunk-NBVTF6TV.js +163 -0
  124. package/dist/chunk-NBVTF6TV.js.map +1 -0
  125. package/dist/chunk-NMOMXXLD.js +163 -0
  126. package/dist/chunk-NMOMXXLD.js.map +1 -0
  127. package/dist/chunk-OHSKOJ2Y.js +136 -0
  128. package/dist/chunk-OHSKOJ2Y.js.map +1 -0
  129. package/dist/chunk-OWJKGWFQ.js +89 -0
  130. package/dist/chunk-OWJKGWFQ.js.map +1 -0
  131. package/dist/chunk-P4ELC3C3.js +145 -0
  132. package/dist/chunk-P4ELC3C3.js.map +1 -0
  133. package/dist/chunk-QF22MRN6.js +152 -0
  134. package/dist/chunk-QF22MRN6.js.map +1 -0
  135. package/dist/chunk-QHAU3JHA.js +152 -0
  136. package/dist/chunk-QHAU3JHA.js.map +1 -0
  137. package/dist/chunk-QQTXIKFT.js +163 -0
  138. package/dist/chunk-QQTXIKFT.js.map +1 -0
  139. package/dist/chunk-RQFJZYKH.js +160 -0
  140. package/dist/chunk-RQFJZYKH.js.map +1 -0
  141. package/dist/chunk-SI6QBFXF.js +29 -0
  142. package/dist/chunk-SI6QBFXF.js.map +1 -0
  143. package/dist/chunk-SRU4OFM3.js +135 -0
  144. package/dist/chunk-SRU4OFM3.js.map +1 -0
  145. package/dist/chunk-T5EBUYAB.js +160 -0
  146. package/dist/chunk-T5EBUYAB.js.map +1 -0
  147. package/dist/chunk-THTRJNHI.js +159 -0
  148. package/dist/chunk-THTRJNHI.js.map +1 -0
  149. package/dist/chunk-TKX3HVMK.js +30 -0
  150. package/dist/chunk-TKX3HVMK.js.map +1 -0
  151. package/dist/chunk-TLEAX2CO.js +43 -0
  152. package/dist/chunk-TLEAX2CO.js.map +1 -0
  153. package/dist/chunk-TQCYWSCL.js +69 -0
  154. package/dist/chunk-TQCYWSCL.js.map +1 -0
  155. package/dist/chunk-UFKDKEI7.js +151 -0
  156. package/dist/chunk-UFKDKEI7.js.map +1 -0
  157. package/dist/chunk-WE2VD6CD.js +37 -0
  158. package/dist/chunk-WE2VD6CD.js.map +1 -0
  159. package/dist/chunk-WQRH5YGD.js +129 -0
  160. package/dist/chunk-WQRH5YGD.js.map +1 -0
  161. package/dist/chunk-X2MARIQ5.js +140 -0
  162. package/dist/chunk-X2MARIQ5.js.map +1 -0
  163. package/dist/chunk-XPTGW7ZC.js +69 -0
  164. package/dist/chunk-XPTGW7ZC.js.map +1 -0
  165. package/dist/chunk-XTU7VQ2V.js +158 -0
  166. package/dist/chunk-XTU7VQ2V.js.map +1 -0
  167. package/dist/chunk-XUTEGDQM.js +51 -0
  168. package/dist/chunk-XUTEGDQM.js.map +1 -0
  169. package/dist/chunk-YBO2LITL.js +163 -0
  170. package/dist/chunk-YBO2LITL.js.map +1 -0
  171. package/dist/chunk-YOADPBEF.js +129 -0
  172. package/dist/chunk-YOADPBEF.js.map +1 -0
  173. package/dist/chunk-YRCJG2BQ.js +163 -0
  174. package/dist/chunk-YRCJG2BQ.js.map +1 -0
  175. package/dist/chunk-YXGSOU62.js +129 -0
  176. package/dist/chunk-YXGSOU62.js.map +1 -0
  177. package/dist/chunk-Z6B4C5AB.js +63 -0
  178. package/dist/chunk-Z6B4C5AB.js.map +1 -0
  179. package/dist/chunk-ZKLZRBDG.js +163 -0
  180. package/dist/chunk-ZKLZRBDG.js.map +1 -0
  181. package/dist/chunk-ZYFRVFJE.js +163 -0
  182. package/dist/chunk-ZYFRVFJE.js.map +1 -0
  183. package/dist/context/index.js +5 -5
  184. package/dist/index.cjs +36 -11
  185. package/dist/index.cjs.map +1 -1
  186. package/dist/index.js +136 -136
  187. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +18 -18
  188. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
  189. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +11 -11
  190. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
  191. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
  192. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
  193. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +6 -6
  194. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
  195. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
  196. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
  197. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
  198. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +21 -21
  199. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
  200. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
  201. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -3
  202. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +23 -23
  203. package/dist/molecules/curriculumV2/CurriculumContents/index.js +27 -27
  204. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
  205. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
  206. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +7 -7
  207. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
  208. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
  209. package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
  210. package/dist/molecules/curriculumV2/index.js +36 -36
  211. package/dist/molecules/date-picker/date-picker-button.js +6 -6
  212. package/dist/molecules/date-picker/index.js +5 -5
  213. package/dist/molecules/description-json-render.js +5 -5
  214. package/dist/molecules/download-card.js +2 -2
  215. package/dist/molecules/dynamic-field.js +6 -6
  216. package/dist/molecules/dynamic-form.js +7 -7
  217. package/dist/molecules/expand-table/index.js +5 -5
  218. package/dist/molecules/force-refresh.js +2 -2
  219. package/dist/molecules/ghost-post.js +4 -4
  220. package/dist/molecules/index.cjs +36 -11
  221. package/dist/molecules/index.cjs.map +1 -1
  222. package/dist/molecules/index.js +64 -64
  223. package/dist/molecules/learning-post.js +6 -6
  224. package/dist/molecules/navigation.js +3 -3
  225. package/dist/molecules/one-on-one-guide-list.js +3 -3
  226. package/dist/molecules/stepper.js +4 -4
  227. package/dist/molecules/tag-selector.js +5 -5
  228. package/dist/molecules/training-info-guideline.cjs +85 -24
  229. package/dist/molecules/training-info-guideline.cjs.map +1 -1
  230. package/dist/molecules/training-info-guideline.js +7 -4
  231. package/package.json +1 -1
  232. package/src/molecules/training-info-guideline.tsx +51 -10
@@ -0,0 +1,69 @@
1
+ import {
2
+ curriculum_ai_traning_default
3
+ } from "./chunk-Q7AMZ7ES.js";
4
+ import {
5
+ curriculum_file_download_default
6
+ } from "./chunk-5ZA5HGOV.js";
7
+ import {
8
+ curriculum_review_default
9
+ } from "./chunk-XKWY6ZQM.js";
10
+ import {
11
+ curriculum_video_default
12
+ } from "./chunk-QGKQ3IX7.js";
13
+ import {
14
+ useCurriculumContext
15
+ } from "./chunk-Y7SJF3Y3.js";
16
+ import {
17
+ Typo
18
+ } from "./chunk-PMJIFLDT.js";
19
+ import {
20
+ Flex
21
+ } from "./chunk-25HMMI7R.js";
22
+ import {
23
+ InfoCircledIcon
24
+ } from "./chunk-W5TPOFOO.js";
25
+
26
+ // src/molecules/curriculumV2/CurriculumContents/index.tsx
27
+ import { jsx, jsxs } from "react/jsx-runtime";
28
+ function CurriculumBody() {
29
+ const { selectedItem, selectedSectionTitle } = useCurriculumContext();
30
+ switch (selectedItem.type) {
31
+ case "video":
32
+ return /* @__PURE__ */ jsx(curriculum_video_default, { item: selectedItem });
33
+ case "review":
34
+ return /* @__PURE__ */ jsx(
35
+ curriculum_review_default,
36
+ {
37
+ item: selectedItem,
38
+ sectionTitle: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title
39
+ }
40
+ );
41
+ case "aiTraining":
42
+ return /* @__PURE__ */ jsx(curriculum_ai_traning_default, { item: selectedItem });
43
+ case "fileDownload":
44
+ return /* @__PURE__ */ jsx(curriculum_file_download_default, { item: selectedItem });
45
+ default:
46
+ return /* @__PURE__ */ jsxs(
47
+ Flex,
48
+ {
49
+ align: "center",
50
+ direction: "column",
51
+ gap: "2",
52
+ height: "100%",
53
+ justify: "center",
54
+ width: "100%",
55
+ children: [
56
+ /* @__PURE__ */ jsx(InfoCircledIcon, { height: 24, width: 24 }),
57
+ /* @__PURE__ */ jsx(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
58
+ /* @__PURE__ */ jsx(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
59
+ ${JSON.stringify(selectedItem)}` })
60
+ ]
61
+ }
62
+ );
63
+ }
64
+ }
65
+
66
+ export {
67
+ CurriculumBody
68
+ };
69
+ //# sourceMappingURL=chunk-TQCYWSCL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '@/atoms/flex';\nimport { Typo } from '@/atoms/typo';\nimport { InfoCircledIcon } from '@/icon';\nimport { useCurriculumContext } from '../curriculum-context';\nimport CurriculumVideo from './curriculum-video';\nimport CurriculumReview from './curriculum-review';\nimport CurriculumAiTraning from './curriculum-ai-traning';\nimport CurriculumFileDownload from './curriculum-file-download';\n\nexport function CurriculumBody(): React.ReactNode {\n const { selectedItem, selectedSectionTitle } = useCurriculumContext();\n\n switch (selectedItem.type) {\n case 'video':\n return <CurriculumVideo item={selectedItem} />;\n case 'review':\n return (\n <CurriculumReview\n item={selectedItem}\n sectionTitle={selectedSectionTitle?.title}\n />\n );\n case 'aiTraining':\n return <CurriculumAiTraning item={selectedItem} />;\n case 'fileDownload':\n return <CurriculumFileDownload item={selectedItem} />;\n default:\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"2\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <InfoCircledIcon height={24} width={24} />\n <Typo>컨텐츠를 로딩 할 수 없습니다</Typo>\n <Typo align=\"center\" color=\"gray\" variant=\"caption\">\n {`[debug info]\n ${JSON.stringify(selectedItem)}`}\n </Typo>\n </Flex>\n );\n }\n} "],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAea,cAcL,YAdK;AALN,SAAS,iBAAkC;AAChD,QAAM,EAAE,cAAc,qBAAqB,IAAI,qBAAqB;AAEpE,UAAQ,aAAa,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,oBAAC,4BAAgB,MAAM,cAAc;AAAA,IAC9C,KAAK;AACH,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,cAAc,6DAAsB;AAAA;AAAA,MACtC;AAAA,IAEJ,KAAK;AACH,aAAO,oBAAC,iCAAoB,MAAM,cAAc;AAAA,IAClD,KAAK;AACH,aAAO,oBAAC,oCAAuB,MAAM,cAAc;AAAA,IACrD;AACE,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAU;AAAA,UACV,KAAI;AAAA,UACJ,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,OAAM;AAAA,UAEN;AAAA,gCAAC,mBAAgB,QAAQ,IAAI,OAAO,IAAI;AAAA,YACxC,oBAAC,QAAK,0FAAgB;AAAA,YACtB,oBAAC,QAAK,OAAM,UAAS,OAAM,QAAO,SAAQ,WACvC;AAAA,cACC,KAAK,UAAU,YAAY,CAAC,IAChC;AAAA;AAAA;AAAA,MACF;AAAA,EAEN;AACF;","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
+ Badge
17
+ } from "./chunk-U3BQT7ZO.js";
18
+ import {
19
+ Box
20
+ } from "./chunk-4Y5BEXVN.js";
21
+ import {
22
+ Flex
23
+ } from "./chunk-25HMMI7R.js";
24
+ import {
25
+ Button
26
+ } from "./chunk-ZVDAEY5Q.js";
27
+ import {
28
+ Heading
29
+ } from "./chunk-BESTU2AY.js";
30
+ import {
31
+ Typo
32
+ } from "./chunk-PMJIFLDT.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-UFKDKEI7.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,37 @@
1
+ import {
2
+ ReviewQuestionContentHeader
3
+ } from "./chunk-TLEAX2CO.js";
4
+ import {
5
+ RadioGroup
6
+ } from "./chunk-6DJOIRMF.js";
7
+ import {
8
+ Card
9
+ } from "./chunk-RP2RGCAW.js";
10
+ import {
11
+ Flex
12
+ } from "./chunk-25HMMI7R.js";
13
+
14
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
15
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
+ function ReviewQuestionSatisfisRadio(props) {
17
+ var _a, _b, _c;
18
+ const { question, answer, onChange } = props;
19
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
20
+ /* @__PURE__ */ jsx(Card, { size: "2", children: /* @__PURE__ */ jsx(
21
+ ReviewQuestionContentHeader,
22
+ {
23
+ icon: question.icon,
24
+ question: (_a = question.question) != null ? _a : "\uC774\uBC88 \uD559\uC2B5\uC5D0 \uB300\uD55C \uC804\uBC18\uC801\uC778 \uB9CC\uC871\uB3C4\uB97C \uC54C\uB824\uC8FC\uC138\uC694.",
25
+ title: (_b = question.title) != null ? _b : "\uB9CC\uC871\uB3C4 \uC870\uC0AC",
26
+ type: question.type
27
+ }
28
+ ) }),
29
+ /* @__PURE__ */ jsx(RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ jsx(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
30
+ ] });
31
+ }
32
+ var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
33
+
34
+ export {
35
+ review_question_satisfaction_option_default
36
+ };
37
+ //# sourceMappingURL=chunk-WE2VD6CD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx"],"sourcesContent":["import React from 'react';\nimport { Card } from '@/atoms/card';\nimport { Flex } from '@/atoms/flex';\nimport { RadioGroup } from '@/atoms/radio-group';\nimport { type CurriculumReviewQuestionSatisfactionOption } from '@/types/curriculumContents.type';\nimport { ReviewQuestionContentHeader } from './review-comp';\n\ninterface ReviewQuestionSatisfactionOptionProps {\n question: CurriculumReviewQuestionSatisfactionOption;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nfunction ReviewQuestionSatisfisRadio(\n props: ReviewQuestionSatisfactionOptionProps\n): React.ReactNode {\n const { question, answer, onChange } = props;\n \n return (\n <>\n <Card size=\"2\">\n <ReviewQuestionContentHeader\n icon={question.icon}\n question={\n question.question ??\n '이번 학습에 대한 전반적인 만족도를 알려주세요.'\n }\n title={question.title ?? '만족도 조사'}\n type={question.type}\n />\n </Card>\n <RadioGroup.Root color=\"iris\" mt=\"3\" onValueChange={onChange} value={answer}>\n <Flex direction=\"column\" gap=\"2\">\n {question.options?.map((option) => (\n <RadioGroup.Item key={option.value} value={String(option.value)}>\n {option.label}\n </RadioGroup.Item>\n ))}\n </Flex>\n </RadioGroup.Root>\n </>\n );\n}\n\nexport default ReviewQuestionSatisfisRadio;\n"],"mappings":";;;;;;;;;;;;;;AAoBI,mBAEI,KAFJ;AANJ,SAAS,4BACP,OACiB;AAhBnB;AAiBE,QAAM,EAAE,UAAU,QAAQ,SAAS,IAAI;AAEvC,SACE,iCACE;AAAA,wBAAC,QAAK,MAAK,KACT;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,SAAS;AAAA,QACf,WACE,cAAS,aAAT,YACA;AAAA,QAEF,QAAO,cAAS,UAAT,YAAkB;AAAA,QACzB,MAAM,SAAS;AAAA;AAAA,IACjB,GACF;AAAA,IACA,oBAAC,WAAW,MAAX,EAAgB,OAAM,QAAO,IAAG,KAAI,eAAe,UAAU,OAAO,QACnE,8BAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,yBAAS,YAAT,mBAAkB,IAAI,CAAC,WACtB,oBAAC,WAAW,MAAX,EAAmC,OAAO,OAAO,OAAO,KAAK,GAC3D,iBAAO,SADY,OAAO,KAE7B,IAEJ,GACF;AAAA,KACF;AAEJ;AAEA,IAAO,8CAAQ;","names":[]}
@@ -0,0 +1,129 @@
1
+ import {
2
+ Spinner
3
+ } from "./chunk-FR2GDOU2.js";
4
+ import {
5
+ Dialog
6
+ } from "./chunk-AH4A53SZ.js";
7
+ import {
8
+ Flex
9
+ } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ Button
12
+ } from "./chunk-ZVDAEY5Q.js";
13
+ import {
14
+ AspectRatio
15
+ } from "./chunk-EAXUQEO5.js";
16
+
17
+ // src/molecules/training-info-guideline.tsx
18
+ import { useState } from "react";
19
+ import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
20
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
21
+ function TrainingInfoGuideline({
22
+ values,
23
+ onClickFileDownload
24
+ }) {
25
+ return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
26
+ TrainingInfoGuidelineItem,
27
+ {
28
+ onClickFileDownload,
29
+ value
30
+ },
31
+ getItemKey(value)
32
+ )) });
33
+ }
34
+ function getItemKey(value) {
35
+ return value.url;
36
+ }
37
+ function TrainingInfoGuidelineItem({
38
+ value,
39
+ onClickFileDownload
40
+ }) {
41
+ const [isLoading, setIsLoading] = useState(true);
42
+ if (value.type === "file") {
43
+ return /* @__PURE__ */ jsxs(
44
+ Button,
45
+ {
46
+ onClick: () => {
47
+ onClickFileDownload({ url: value.url, filename: value.filename });
48
+ },
49
+ variant: "outline",
50
+ children: [
51
+ /* @__PURE__ */ jsx(FileTextIcon, {}),
52
+ value.downloadButtonName
53
+ ]
54
+ }
55
+ );
56
+ }
57
+ if (value.type === "video") {
58
+ return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
59
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
60
+ /* @__PURE__ */ jsx(VideoIcon, {}),
61
+ value.videoTitle
62
+ ] }) }),
63
+ /* @__PURE__ */ jsx(
64
+ Dialog.Content,
65
+ {
66
+ height: "100%",
67
+ maxHeight: "500px",
68
+ maxWidth: "800px",
69
+ title: value.videoTitle,
70
+ width: "100%",
71
+ children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
72
+ Flex,
73
+ {
74
+ align: "center",
75
+ justify: "center",
76
+ style: {
77
+ width: "100%",
78
+ height: "100%",
79
+ backgroundColor: "black",
80
+ position: "relative"
81
+ },
82
+ children: [
83
+ isLoading ? /* @__PURE__ */ jsx(
84
+ Flex,
85
+ {
86
+ align: "center",
87
+ height: "100%",
88
+ justify: "center",
89
+ position: "absolute",
90
+ style: {
91
+ position: "absolute",
92
+ top: 0,
93
+ left: 0,
94
+ zIndex: 1,
95
+ color: "white"
96
+ },
97
+ width: "100%",
98
+ children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
99
+ }
100
+ ) : null,
101
+ /* @__PURE__ */ jsx(
102
+ "iframe",
103
+ {
104
+ allowFullScreen: true,
105
+ onError: () => {
106
+ setIsLoading(false);
107
+ },
108
+ onLoad: () => {
109
+ setIsLoading(false);
110
+ },
111
+ src: `${value.url}?theme=light`,
112
+ style: { width: "100%", height: "100%", border: "none" },
113
+ title: "Curriculum Video"
114
+ }
115
+ )
116
+ ]
117
+ }
118
+ ) })
119
+ }
120
+ )
121
+ ] });
122
+ }
123
+ return null;
124
+ }
125
+
126
+ export {
127
+ TrainingInfoGuideline
128
+ };
129
+ //# sourceMappingURL=chunk-WQRH5YGD.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';\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 <FileTextIcon />\n {value.downloadButtonName}\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;AAkBpC,mBAEI,KA8BF,YAhCF;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,SAAQ;AAAA,QAER;AAAA,8BAAC,gBAAa;AAAA,UACb,MAAM;AAAA;AAAA;AAAA,IACT;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,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, {}),
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-X2MARIQ5.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 />\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;AAAA,UACX,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,69 @@
1
+ import {
2
+ review_question_text_default
3
+ } from "./chunk-3P5XU4EK.js";
4
+ import {
5
+ review_question_radio_default
6
+ } from "./chunk-N3A4EUDH.js";
7
+ import {
8
+ review_question_satisfaction_option_default
9
+ } from "./chunk-WE2VD6CD.js";
10
+ import {
11
+ ReviewQuestionSatisfisText
12
+ } from "./chunk-GRD6VL3Q.js";
13
+
14
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
15
+ import { jsx } from "react/jsx-runtime";
16
+ function ReviewQuestionBody(props) {
17
+ const { question, answer, error, onChange } = props;
18
+ if (question.type === "question_radio") {
19
+ return /* @__PURE__ */ jsx(
20
+ review_question_radio_default,
21
+ {
22
+ answer,
23
+ error,
24
+ onChange,
25
+ question
26
+ }
27
+ );
28
+ }
29
+ if (question.type === "question_text") {
30
+ return /* @__PURE__ */ jsx(
31
+ review_question_text_default,
32
+ {
33
+ answer,
34
+ error,
35
+ onChange,
36
+ question
37
+ }
38
+ );
39
+ }
40
+ if (question.type === "question_satisfaction_option") {
41
+ return /* @__PURE__ */ jsx(
42
+ review_question_satisfaction_option_default,
43
+ {
44
+ answer,
45
+ error,
46
+ onChange,
47
+ question
48
+ }
49
+ );
50
+ }
51
+ if (question.type === "question_satisfaction_text") {
52
+ return /* @__PURE__ */ jsx(
53
+ ReviewQuestionSatisfisText,
54
+ {
55
+ answer,
56
+ error,
57
+ onChange,
58
+ question
59
+ }
60
+ );
61
+ }
62
+ return null;
63
+ }
64
+ var review_question_body_default = ReviewQuestionBody;
65
+
66
+ export {
67
+ review_question_body_default
68
+ };
69
+ //# sourceMappingURL=chunk-XPTGW7ZC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx"],"sourcesContent":["import React from 'react'; \nimport type { ReviewQuestionElement } from '@/types/curriculum.type';\nimport ReviewQuestionRadio from './review-question-radio';\nimport ReviewQuestionText from './review-question-text';\nimport ReviewQuestionSatisfactionOption from './review-question-satisfaction-option';\nimport ReviewQuestionSatisfactionText from './review-question-satisfaction-text';\n\ninterface ReviewQuestionBodyProps {\n question: ReviewQuestionElement;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nfunction ReviewQuestionBody(props: ReviewQuestionBodyProps): React.ReactNode {\n const { question, answer, error, onChange } = props;\n \n if (question.type === 'question_radio') {\n return (\n <ReviewQuestionRadio\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n if (question.type === 'question_text') {\n return (\n <ReviewQuestionText\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n if (question.type === 'question_satisfaction_option') {\n return (\n <ReviewQuestionSatisfactionOption\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 그 외의 타입이 있을 경우 있음\n if (question.type === 'question_satisfaction_text') {\n return (\n <ReviewQuestionSatisfactionText\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n\n return null;\n}\nexport default ReviewQuestionBody;\n"],"mappings":";;;;;;;;;;;;;;AAmBM;AALN,SAAS,mBAAmB,OAAiD;AAC3E,QAAM,EAAE,UAAU,QAAQ,OAAO,SAAS,IAAI;AAE9C,MAAI,SAAS,SAAS,kBAAkB;AACtC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AACA,MAAI,SAAS,SAAS,iBAAiB;AACrC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AACA,MAAI,SAAS,SAAS,gCAAgC;AACpD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAGA,MAAI,SAAS,SAAS,8BAA8B;AAClD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,SAAO;AACT;AACA,IAAO,+BAAQ;","names":[]}