@datawhale/prosemirror-render 0.0.1

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 (287) hide show
  1. package/dist/AttachmentBlock-ChMNTUOo.mjs +351 -0
  2. package/dist/AttachmentBlock-DsmJP3Kw.js +1 -0
  3. package/dist/AttachmentInline-Dc3dp0g-.js +1 -0
  4. package/dist/AttachmentInline-tbC8BJBy.mjs +52 -0
  5. package/dist/AttachmentMenu-B5x8P9_n.mjs +541 -0
  6. package/dist/AttachmentMenu-ExoCOe4B.js +1 -0
  7. package/dist/Blockquote-BamWUQND.mjs +15 -0
  8. package/dist/Blockquote-CQSBFnsu.js +1 -0
  9. package/dist/BulletList-BQTUD69X.mjs +15 -0
  10. package/dist/BulletList-CFjF3U-l.js +1 -0
  11. package/dist/Callout-Cu6HI-xq.mjs +28 -0
  12. package/dist/Callout-DPdOqTb4.js +1 -0
  13. package/dist/CellOutput-C33VK0df.mjs +981 -0
  14. package/dist/CellOutput-DiKZlIFa.js +6 -0
  15. package/dist/CodeBlock-Cjuxuq7B.mjs +8359 -0
  16. package/dist/CodeBlock-DWniNUQB.js +148 -0
  17. package/dist/Doc-6s4VMDsx.mjs +15 -0
  18. package/dist/Doc-D2yvlSII.js +1 -0
  19. package/dist/FoldBlock-DRdlU-DX.mjs +75 -0
  20. package/dist/FoldBlock-ZPMf0QsR.js +1 -0
  21. package/dist/Grid-GfmJxM93.mjs +31 -0
  22. package/dist/Grid-QToZdaRT.js +1 -0
  23. package/dist/HardBreak-B2tFO31P.mjs +13 -0
  24. package/dist/HardBreak-Dbf5Zg5o.js +1 -0
  25. package/dist/Heading-BElRvhGn.mjs +21 -0
  26. package/dist/Heading-BUnffIAz.js +1 -0
  27. package/dist/HorizontalRule-BRG45oT0.mjs +13 -0
  28. package/dist/HorizontalRule-CE09LZGf.js +1 -0
  29. package/dist/IFrame-CaAOVLGN.mjs +17 -0
  30. package/dist/IFrame-DcCpSoDC.js +1 -0
  31. package/dist/Image-C8v5dCij.mjs +105 -0
  32. package/dist/Image-cHL85CXs.js +1 -0
  33. package/dist/ListItem-BrjxeGxz.js +1 -0
  34. package/dist/ListItem-X0T7a_z8.mjs +15 -0
  35. package/dist/MathDisplay-CESKZV46.js +1 -0
  36. package/dist/MathDisplay-CoGsFzXW.mjs +30 -0
  37. package/dist/MathInline-0xTZoIIq.mjs +30 -0
  38. package/dist/MathInline-C_1SJUVz.js +1 -0
  39. package/dist/McChoices-Aj394G5E.mjs +52 -0
  40. package/dist/McChoices-B4euzY7M.js +1 -0
  41. package/dist/McQuestion-Dq0aM5tC.js +1 -0
  42. package/dist/McQuestion-DvD-J47M.mjs +38 -0
  43. package/dist/McSolution-C5sTXz3y.mjs +24 -0
  44. package/dist/McSolution-N79CllH9.js +1 -0
  45. package/dist/MultipleChoice-DTCF3Q8m.js +1 -0
  46. package/dist/MultipleChoice-Dv-k1zUU.mjs +47 -0
  47. package/dist/OrderedList-B8v1gchv.mjs +17 -0
  48. package/dist/OrderedList-DMl3tvwP.js +1 -0
  49. package/dist/Paragraph-CzRSCJNr.js +1 -0
  50. package/dist/Paragraph-DGcZy8t_.mjs +16 -0
  51. package/dist/SlotNode-6OpoUcOa.mjs +10 -0
  52. package/dist/SlotNode-DMG0R6Vf.js +1 -0
  53. package/dist/TableCell-BY9gdldc.js +1 -0
  54. package/dist/TableCell-Bp52L368.mjs +20 -0
  55. package/dist/TableContainer-C5KXY6f7.js +1 -0
  56. package/dist/TableContainer-C9PhNGlz.mjs +29 -0
  57. package/dist/TableHeader-BTuqvorM.js +1 -0
  58. package/dist/TableHeader-C7KKz3e1.mjs +17 -0
  59. package/dist/TableRow-D4F6AKFt.js +1 -0
  60. package/dist/TableRow-OzpVq1qW.mjs +15 -0
  61. package/dist/Text-Br_pcGz4.mjs +78 -0
  62. package/dist/Text-DlUfrsNI.js +1 -0
  63. package/dist/emoji-Bk6FG72F.js +1 -0
  64. package/dist/emoji-CmOToDEU.mjs +3711 -0
  65. package/dist/index-D2CtpNvR.js +1 -0
  66. package/dist/index-DVmWCrQE.mjs +159 -0
  67. package/dist/index.cjs.js +1 -0
  68. package/dist/index.es.js +4 -0
  69. package/dist/katex-CS0ZfoxP.js +261 -0
  70. package/dist/katex-r9TeExgs.mjs +11690 -0
  71. package/dist/prosemirror-render.css +1 -0
  72. package/dist/types/apis/monitor.d.ts +9 -0
  73. package/dist/types/apis/tingwu.d.ts +14 -0
  74. package/dist/types/apis/types.d.ts +23 -0
  75. package/dist/types/components/TreeRecursive.vue.d.ts +7 -0
  76. package/dist/types/components/TreeRender.vue.d.ts +9 -0
  77. package/dist/types/components/collections/async/AsyncError.vue.d.ts +3 -0
  78. package/dist/types/components/collections/async/AsyncLoading.vue.d.ts +3 -0
  79. package/dist/types/components/collections/attachment/AttachmentBlock.vue.d.ts +7 -0
  80. package/dist/types/components/collections/attachment/AttachmentInline.vue.d.ts +7 -0
  81. package/dist/types/components/collections/attachment/AttachmentMenu.vue.d.ts +16 -0
  82. package/dist/types/components/collections/attachment/VideoDetail.vue.d.ts +7 -0
  83. package/dist/types/components/collections/attachment/index.d.ts +1 -0
  84. package/dist/types/components/collections/basic/Blockquote.vue.d.ts +17 -0
  85. package/dist/types/components/collections/basic/BulletList.vue.d.ts +17 -0
  86. package/dist/types/components/collections/basic/HardBreak.vue.d.ts +7 -0
  87. package/dist/types/components/collections/basic/Heading.vue.d.ts +17 -0
  88. package/dist/types/components/collections/basic/HorizontalRule.vue.d.ts +7 -0
  89. package/dist/types/components/collections/basic/ListItem.vue.d.ts +17 -0
  90. package/dist/types/components/collections/basic/OrderedList.vue.d.ts +17 -0
  91. package/dist/types/components/collections/basic/Paragraph.vue.d.ts +17 -0
  92. package/dist/types/components/collections/basic/Text.vue.d.ts +7 -0
  93. package/dist/types/components/collections/basic/index.d.ts +1 -0
  94. package/dist/types/components/collections/callout/Callout.vue.d.ts +7 -0
  95. package/dist/types/components/collections/callout/index.d.ts +1 -0
  96. package/dist/types/components/collections/code/CellOutput.vue.d.ts +7 -0
  97. package/dist/types/components/collections/code/CodeBlock.vue.d.ts +7 -0
  98. package/dist/types/components/collections/code/index.d.ts +1 -0
  99. package/dist/types/components/collections/fold/FoldBlock.vue.d.ts +7 -0
  100. package/dist/types/components/collections/fold/index.d.ts +1 -0
  101. package/dist/types/components/collections/grid/Grid.vue.d.ts +7 -0
  102. package/dist/types/components/collections/grid/index.d.ts +1 -0
  103. package/dist/types/components/collections/iframe/IFrame.vue.d.ts +7 -0
  104. package/dist/types/components/collections/iframe/index.d.ts +1 -0
  105. package/dist/types/components/collections/img/Image.vue.d.ts +7 -0
  106. package/dist/types/components/collections/img/index.d.ts +1 -0
  107. package/dist/types/components/collections/index.d.ts +1 -0
  108. package/dist/types/components/collections/math/MathDisplay.vue.d.ts +7 -0
  109. package/dist/types/components/collections/math/MathInline.vue.d.ts +7 -0
  110. package/dist/types/components/collections/math/index.d.ts +1 -0
  111. package/dist/types/components/collections/multipleChoice/McChoices.vue.d.ts +16 -0
  112. package/dist/types/components/collections/multipleChoice/McQuestion.vue.d.ts +7 -0
  113. package/dist/types/components/collections/multipleChoice/McSolution.vue.d.ts +8 -0
  114. package/dist/types/components/collections/multipleChoice/MultipleChoice.vue.d.ts +7 -0
  115. package/dist/types/components/collections/multipleChoice/index.d.ts +1 -0
  116. package/dist/types/components/collections/table/TableCell.vue.d.ts +17 -0
  117. package/dist/types/components/collections/table/TableContainer.vue.d.ts +17 -0
  118. package/dist/types/components/collections/table/TableHeader.vue.d.ts +17 -0
  119. package/dist/types/components/collections/table/TableRow.vue.d.ts +17 -0
  120. package/dist/types/components/collections/table/index.d.ts +1 -0
  121. package/dist/types/components/collections/utils.d.ts +2 -0
  122. package/dist/types/components/collections/wrapper/Doc.vue.d.ts +17 -0
  123. package/dist/types/components/collections/wrapper/SlotNode.vue.d.ts +13 -0
  124. package/dist/types/components/collections/wrapper/index.d.ts +1 -0
  125. package/dist/types/components/index.d.ts +1 -0
  126. package/dist/types/icons/Attachment/CardView.vue.d.ts +9 -0
  127. package/dist/types/icons/Attachment/Code/Bat.vue.d.ts +3 -0
  128. package/dist/types/icons/Attachment/Code/C.vue.d.ts +3 -0
  129. package/dist/types/icons/Attachment/Code/Cpp.vue.d.ts +3 -0
  130. package/dist/types/icons/Attachment/Code/Css.vue.d.ts +3 -0
  131. package/dist/types/icons/Attachment/Code/Go.vue.d.ts +3 -0
  132. package/dist/types/icons/Attachment/Code/Html.vue.d.ts +3 -0
  133. package/dist/types/icons/Attachment/Code/Java.vue.d.ts +3 -0
  134. package/dist/types/icons/Attachment/Code/Js.vue.d.ts +3 -0
  135. package/dist/types/icons/Attachment/Code/Json.vue.d.ts +3 -0
  136. package/dist/types/icons/Attachment/Code/Jsx.vue.d.ts +3 -0
  137. package/dist/types/icons/Attachment/Code/Md.vue.d.ts +3 -0
  138. package/dist/types/icons/Attachment/Code/Php.vue.d.ts +3 -0
  139. package/dist/types/icons/Attachment/Code/Python.vue.d.ts +3 -0
  140. package/dist/types/icons/Attachment/Code/Rb.vue.d.ts +3 -0
  141. package/dist/types/icons/Attachment/Code/Sh.vue.d.ts +3 -0
  142. package/dist/types/icons/Attachment/Code/Sql.vue.d.ts +3 -0
  143. package/dist/types/icons/Attachment/Code/Swift.vue.d.ts +3 -0
  144. package/dist/types/icons/Attachment/Code/Ts.vue.d.ts +3 -0
  145. package/dist/types/icons/Attachment/Code/Tsx.vue.d.ts +3 -0
  146. package/dist/types/icons/Attachment/Code/Vue.vue.d.ts +3 -0
  147. package/dist/types/icons/Attachment/Excel.vue.d.ts +3 -0
  148. package/dist/types/icons/Attachment/Eye.vue.d.ts +3 -0
  149. package/dist/types/icons/Attachment/FullScreen.vue.d.ts +3 -0
  150. package/dist/types/icons/Attachment/InlineView.vue.d.ts +9 -0
  151. package/dist/types/icons/Attachment/Pdf.vue.d.ts +3 -0
  152. package/dist/types/icons/Attachment/Ppt.vue.d.ts +3 -0
  153. package/dist/types/icons/Attachment/PreviewView.vue.d.ts +9 -0
  154. package/dist/types/icons/Attachment/UnknownFile.vue.d.ts +3 -0
  155. package/dist/types/icons/Attachment/VideoIcon.vue.d.ts +3 -0
  156. package/dist/types/icons/Attachment/VideoPlay.vue.d.ts +3 -0
  157. package/dist/types/icons/Attachment/Word.vue.d.ts +3 -0
  158. package/dist/types/icons/Code/Confirm.vue.d.ts +3 -0
  159. package/dist/types/icons/Code/Paste.vue.d.ts +3 -0
  160. package/dist/types/icons/Common/Choice.vue.d.ts +3 -0
  161. package/dist/types/icons/Common/Close.vue.d.ts +3 -0
  162. package/dist/types/icons/Common/Comment.vue.d.ts +3 -0
  163. package/dist/types/icons/Common/CopyAnchorLink.vue.d.ts +3 -0
  164. package/dist/types/icons/Common/Delete.vue.d.ts +3 -0
  165. package/dist/types/icons/Common/Download.vue.d.ts +3 -0
  166. package/dist/types/icons/Common/FoldClose.vue.d.ts +3 -0
  167. package/dist/types/icons/Common/FoldOpen.vue.d.ts +3 -0
  168. package/dist/types/icons/Common/Plate.vue.d.ts +3 -0
  169. package/dist/types/icons/Common/Question.vue.d.ts +3 -0
  170. package/dist/types/icons/Common/ShareTextLink.vue.d.ts +3 -0
  171. package/dist/types/index.d.ts +2 -0
  172. package/dist/types/types.d.ts +269 -0
  173. package/dist/types/utils/common.d.ts +1 -0
  174. package/dist/types/utils/emoji.d.ts +10 -0
  175. package/dist/types/utils/globalStatus.d.ts +16 -0
  176. package/dist/types/utils/shiki.d.ts +3 -0
  177. package/dist/types/utils/useAttachment.d.ts +8 -0
  178. package/package.json +29 -0
  179. package/src/apis/monitor.ts +8 -0
  180. package/src/apis/tingwu.ts +22 -0
  181. package/src/apis/types.ts +45 -0
  182. package/src/components/TreeRecursive.vue +47 -0
  183. package/src/components/TreeRender.vue +404 -0
  184. package/src/components/collections/async/AsyncError.vue +17 -0
  185. package/src/components/collections/async/AsyncLoading.vue +1 -0
  186. package/src/components/collections/attachment/AttachmentBlock.vue +561 -0
  187. package/src/components/collections/attachment/AttachmentInline.vue +90 -0
  188. package/src/components/collections/attachment/AttachmentMenu.vue +359 -0
  189. package/src/components/collections/attachment/VideoDetail.vue +375 -0
  190. package/src/components/collections/attachment/index.ts +6 -0
  191. package/src/components/collections/basic/Blockquote.vue +15 -0
  192. package/src/components/collections/basic/BulletList.vue +15 -0
  193. package/src/components/collections/basic/HardBreak.vue +11 -0
  194. package/src/components/collections/basic/Heading.vue +15 -0
  195. package/src/components/collections/basic/HorizontalRule.vue +11 -0
  196. package/src/components/collections/basic/ListItem.vue +15 -0
  197. package/src/components/collections/basic/OrderedList.vue +15 -0
  198. package/src/components/collections/basic/Paragraph.vue +19 -0
  199. package/src/components/collections/basic/Text.vue +73 -0
  200. package/src/components/collections/basic/index.ts +13 -0
  201. package/src/components/collections/callout/Callout.vue +77 -0
  202. package/src/components/collections/callout/index.ts +5 -0
  203. package/src/components/collections/code/CellOutput.vue +72 -0
  204. package/src/components/collections/code/CodeBlock.vue +83 -0
  205. package/src/components/collections/code/index.ts +6 -0
  206. package/src/components/collections/fold/FoldBlock.vue +130 -0
  207. package/src/components/collections/fold/index.ts +5 -0
  208. package/src/components/collections/grid/Grid.vue +70 -0
  209. package/src/components/collections/grid/index.ts +5 -0
  210. package/src/components/collections/iframe/IFrame.vue +19 -0
  211. package/src/components/collections/iframe/index.ts +5 -0
  212. package/src/components/collections/img/Image.vue +318 -0
  213. package/src/components/collections/img/index.ts +5 -0
  214. package/src/components/collections/index.ts +29 -0
  215. package/src/components/collections/math/MathDisplay.vue +42 -0
  216. package/src/components/collections/math/MathInline.vue +42 -0
  217. package/src/components/collections/math/index.ts +6 -0
  218. package/src/components/collections/multipleChoice/McChoices.vue +72 -0
  219. package/src/components/collections/multipleChoice/McQuestion.vue +61 -0
  220. package/src/components/collections/multipleChoice/McSolution.vue +47 -0
  221. package/src/components/collections/multipleChoice/MultipleChoice.vue +62 -0
  222. package/src/components/collections/multipleChoice/index.ts +8 -0
  223. package/src/components/collections/table/TableCell.vue +20 -0
  224. package/src/components/collections/table/TableContainer.vue +32 -0
  225. package/src/components/collections/table/TableHeader.vue +15 -0
  226. package/src/components/collections/table/TableRow.vue +15 -0
  227. package/src/components/collections/table/index.ts +8 -0
  228. package/src/components/collections/utils.ts +17 -0
  229. package/src/components/collections/wrapper/Doc.vue +15 -0
  230. package/src/components/collections/wrapper/SlotNode.vue +5 -0
  231. package/src/components/collections/wrapper/index.ts +6 -0
  232. package/src/components/index.ts +1 -0
  233. package/src/icons/Attachment/CardView.vue +21 -0
  234. package/src/icons/Attachment/Code/Bat.vue +26 -0
  235. package/src/icons/Attachment/Code/C.vue +26 -0
  236. package/src/icons/Attachment/Code/Cpp.vue +26 -0
  237. package/src/icons/Attachment/Code/Css.vue +34 -0
  238. package/src/icons/Attachment/Code/Go.vue +26 -0
  239. package/src/icons/Attachment/Code/Html.vue +34 -0
  240. package/src/icons/Attachment/Code/Java.vue +42 -0
  241. package/src/icons/Attachment/Code/Js.vue +26 -0
  242. package/src/icons/Attachment/Code/Json.vue +26 -0
  243. package/src/icons/Attachment/Code/Jsx.vue +30 -0
  244. package/src/icons/Attachment/Code/Md.vue +26 -0
  245. package/src/icons/Attachment/Code/Php.vue +26 -0
  246. package/src/icons/Attachment/Code/Python.vue +30 -0
  247. package/src/icons/Attachment/Code/Rb.vue +26 -0
  248. package/src/icons/Attachment/Code/Sh.vue +30 -0
  249. package/src/icons/Attachment/Code/Sql.vue +30 -0
  250. package/src/icons/Attachment/Code/Swift.vue +26 -0
  251. package/src/icons/Attachment/Code/Ts.vue +26 -0
  252. package/src/icons/Attachment/Code/Tsx.vue +30 -0
  253. package/src/icons/Attachment/Code/Vue.vue +24 -0
  254. package/src/icons/Attachment/Excel.vue +26 -0
  255. package/src/icons/Attachment/Eye.vue +15 -0
  256. package/src/icons/Attachment/FullScreen.vue +15 -0
  257. package/src/icons/Attachment/InlineView.vue +21 -0
  258. package/src/icons/Attachment/Pdf.vue +25 -0
  259. package/src/icons/Attachment/Ppt.vue +26 -0
  260. package/src/icons/Attachment/PreviewView.vue +21 -0
  261. package/src/icons/Attachment/UnknownFile.vue +26 -0
  262. package/src/icons/Attachment/VideoIcon.vue +25 -0
  263. package/src/icons/Attachment/VideoPlay.vue +15 -0
  264. package/src/icons/Attachment/Word.vue +26 -0
  265. package/src/icons/Code/Confirm.vue +38 -0
  266. package/src/icons/Code/Paste.vue +8 -0
  267. package/src/icons/Common/Choice.vue +28 -0
  268. package/src/icons/Common/Close.vue +15 -0
  269. package/src/icons/Common/Comment.vue +16 -0
  270. package/src/icons/Common/CopyAnchorLink.vue +15 -0
  271. package/src/icons/Common/Delete.vue +15 -0
  272. package/src/icons/Common/Download.vue +15 -0
  273. package/src/icons/Common/FoldClose.vue +9 -0
  274. package/src/icons/Common/FoldOpen.vue +9 -0
  275. package/src/icons/Common/Plate.vue +23 -0
  276. package/src/icons/Common/Question.vue +8 -0
  277. package/src/icons/Common/ShareTextLink.vue +15 -0
  278. package/src/index.ts +3 -0
  279. package/src/types.ts +236 -0
  280. package/src/utils/common.ts +6 -0
  281. package/src/utils/emoji.ts +3715 -0
  282. package/src/utils/globalStatus.ts +19 -0
  283. package/src/utils/shiki.ts +25 -0
  284. package/src/utils/useAttachment.ts +215 -0
  285. package/tsconfig.build.json +10 -0
  286. package/tsconfig.json +23 -0
  287. package/vite.config.ts +24 -0
@@ -0,0 +1,15 @@
1
+ import { defineComponent as o, createElementBlock as t, openBlock as n, renderSlot as r } from "vue";
2
+ const s = { class: "doc" }, a = /* @__PURE__ */ o({
3
+ __name: "Doc",
4
+ props: {
5
+ node: {}
6
+ },
7
+ setup(c) {
8
+ return (e, p) => (n(), t("div", s, [
9
+ r(e.$slots, "default")
10
+ ]));
11
+ }
12
+ });
13
+ export {
14
+ a as default
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t={class:"doc"},n=e.defineComponent({__name:"Doc",props:{node:{}},setup(r){return(o,c)=>(e.openBlock(),e.createElementBlock("div",t,[e.renderSlot(o.$slots,"default")]))}});exports.default=n;
@@ -0,0 +1,75 @@
1
+ import { createElementBlock as l, openBlock as n, createElementVNode as t, defineComponent as _, ref as h, normalizeStyle as k, createBlock as d, resolveDynamicComponent as w, toDisplayString as g, unref as c, normalizeClass as B, Fragment as f, renderList as u, useId as m } from "vue";
2
+ import { _ as a, b as v } from "./index-DVmWCrQE.mjs";
3
+ import { E as r } from "./emoji-CmOToDEU.mjs";
4
+ const p = {}, x = {
5
+ class: "icon",
6
+ viewBox: "0 0 1365 1024",
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ width: "11",
9
+ height: "11"
10
+ };
11
+ function C(o, e) {
12
+ return n(), l("svg", x, [...e[0] || (e[0] = [
13
+ t("path", {
14
+ d: "M121.173333 785.066667l485.717334-580.266667a101.546667 101.546667 0 0 1 151.722666 0L1244.16 785.066667a39.424 39.424 0 0 1 4.778667 44.544 48.298667 48.298667 0 0 1-42.666667 23.722666H159.232a48.298667 48.298667 0 0 1-42.496-23.722666A39.424 39.424 0 0 1 121.173333 785.066667z",
15
+ fill: "#515151",
16
+ transform: "rotate(-90, 682.5, 512)"
17
+ }, null, -1)
18
+ ])]);
19
+ }
20
+ const F = /* @__PURE__ */ a(p, [["render", C]]), $ = {}, y = {
21
+ class: "icon",
22
+ viewBox: "0 0 1706 1024",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ width: "10",
25
+ height: "10"
26
+ };
27
+ function b(o, e) {
28
+ return n(), l("svg", y, [...e[0] || (e[0] = [
29
+ t("path", {
30
+ d: "M172.373333 0h1361.92a121.856 121.856 0 0 1 86.186667 208.213333l-680.96 680.96a121.856 121.856 0 0 1-172.373333 0L86.186667 208.213333A121.856 121.856 0 0 1 172.373333 0z",
31
+ fill: "#515151",
32
+ class: "selected"
33
+ }, null, -1)
34
+ ])]);
35
+ }
36
+ const z = /* @__PURE__ */ a($, [["render", b]]), E = { class: "foldBlock-icon" }, M = { class: "foldBlock-header" }, A = { class: "foldBlock-content" }, I = /* @__PURE__ */ _({
37
+ __name: "FoldBlock",
38
+ props: {
39
+ node: {}
40
+ },
41
+ setup(o) {
42
+ const e = h(o.node.attrs.initFolded);
43
+ return (L, i) => (n(), l("div", {
44
+ class: "foldBlock-wrapper",
45
+ style: k({ backgroundColor: o.node.attrs.bgColor, borderColor: o.node.attrs.bdColor })
46
+ }, [
47
+ t("div", {
48
+ class: "collapse-icon",
49
+ onClick: i[0] || (i[0] = (s) => e.value = !e.value)
50
+ }, [
51
+ (n(), d(w(e.value ? F : z)))
52
+ ]),
53
+ t("div", E, g(c(r)[o.node.content[0].attrs.emoji] ? c(r)[o.node.content[0].attrs.emoji] : c(r).whale), 1),
54
+ t("div", {
55
+ class: B(["foldBlock-inner", e.value ? "is-folded" : "not-folded"])
56
+ }, [
57
+ t("div", M, [
58
+ (n(!0), l(f, null, u(o.node.content[0].content, (s) => (n(), d(v, {
59
+ node: s,
60
+ key: m()
61
+ }, null, 8, ["node"]))), 128))
62
+ ]),
63
+ t("div", A, [
64
+ (n(!0), l(f, null, u(o.node.content[1].content, (s) => (n(), d(v, {
65
+ node: s,
66
+ key: m()
67
+ }, null, 8, ["node"]))), 128))
68
+ ])
69
+ ], 2)
70
+ ], 4));
71
+ }
72
+ }), S = /* @__PURE__ */ a(I, [["__scopeId", "data-v-c2512d4e"]]);
73
+ export {
74
+ S as default
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D2CtpNvR.js"),c=require("./emoji-Bk6FG72F.js"),s={},d={class:"icon",viewBox:"0 0 1365 1024",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11"};function a(t,o){return e.openBlock(),e.createElementBlock("svg",d,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M121.173333 785.066667l485.717334-580.266667a101.546667 101.546667 0 0 1 151.722666 0L1244.16 785.066667a39.424 39.424 0 0 1 4.778667 44.544 48.298667 48.298667 0 0 1-42.666667 23.722666H159.232a48.298667 48.298667 0 0 1-42.496-23.722666A39.424 39.424 0 0 1 121.173333 785.066667z",fill:"#515151",transform:"rotate(-90, 682.5, 512)"},null,-1)])])}const i=n._export_sfc(s,[["render",a]]),u={},m={class:"icon",viewBox:"0 0 1706 1024",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"};function f(t,o){return e.openBlock(),e.createElementBlock("svg",m,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M172.373333 0h1361.92a121.856 121.856 0 0 1 86.186667 208.213333l-680.96 680.96a121.856 121.856 0 0 1-172.373333 0L86.186667 208.213333A121.856 121.856 0 0 1 172.373333 0z",fill:"#515151",class:"selected"},null,-1)])])}const k=n._export_sfc(u,[["render",f]]),B={class:"foldBlock-icon"},_={class:"foldBlock-header"},v={class:"foldBlock-content"},g=e.defineComponent({__name:"FoldBlock",props:{node:{}},setup(t){const o=e.ref(t.node.attrs.initFolded);return(p,r)=>(e.openBlock(),e.createElementBlock("div",{class:"foldBlock-wrapper",style:e.normalizeStyle({backgroundColor:t.node.attrs.bgColor,borderColor:t.node.attrs.bdColor})},[e.createElementVNode("div",{class:"collapse-icon",onClick:r[0]||(r[0]=l=>o.value=!o.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value?i:k)))]),e.createElementVNode("div",B,e.toDisplayString(e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]?e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]:e.unref(c.EMOJI_MAP).whale),1),e.createElementVNode("div",{class:e.normalizeClass(["foldBlock-inner",o.value?"is-folded":"not-folded"])},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[0].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))]),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[1].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))])],2)],4))}}),h=n._export_sfc(g,[["__scopeId","data-v-c2512d4e"]]);exports.default=h;
@@ -0,0 +1,31 @@
1
+ import { defineComponent as u, computed as m, createElementBlock as e, openBlock as t, Fragment as a, renderList as d, useId as l, normalizeStyle as p, createBlock as _ } from "vue";
2
+ import { b as f, _ as h } from "./index-DVmWCrQE.mjs";
3
+ const k = { class: "dipwap-grid" }, v = /* @__PURE__ */ u({
4
+ __name: "Grid",
5
+ props: {
6
+ node: {}
7
+ },
8
+ setup(o) {
9
+ const s = m(() => {
10
+ let n = 0;
11
+ for (const r of o.node.content)
12
+ n += r.attrs.colWidth;
13
+ return n;
14
+ });
15
+ return (n, r) => (t(), e("div", k, [
16
+ (t(!0), e(a, null, d(o.node.content, (c) => (t(), e("div", {
17
+ style: p({ flex: c.attrs.colWidth / s.value }),
18
+ key: l(),
19
+ class: "dipwap-column"
20
+ }, [
21
+ (t(!0), e(a, null, d(c.content, (i) => (t(), _(f, {
22
+ node: i,
23
+ key: l()
24
+ }, null, 8, ["node"]))), 128))
25
+ ], 4))), 128))
26
+ ]));
27
+ }
28
+ }), B = /* @__PURE__ */ h(v, [["__scopeId", "data-v-c3a47d6f"]]);
29
+ export {
30
+ B as default
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D2CtpNvR.js"),a={class:"dipwap-grid"},s=e.defineComponent({__name:"Grid",props:{node:{}},setup(n){const l=e.computed(()=>{let t=0;for(const o of n.node.content)t+=o.attrs.colWidth;return t});return(t,o)=>(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.content,c=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({flex:c.attrs.colWidth/l.value}),key:e.useId(),class:"dipwap-column"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.content,d=>(e.openBlock(),e.createBlock(r._sfc_main,{node:d,key:e.useId()},null,8,["node"]))),128))],4))),128))]))}}),i=r._export_sfc(s,[["__scopeId","data-v-c3a47d6f"]]);exports.default=i;
@@ -0,0 +1,13 @@
1
+ import { defineComponent as e, createElementBlock as r, openBlock as o } from "vue";
2
+ const c = /* @__PURE__ */ e({
3
+ __name: "HardBreak",
4
+ props: {
5
+ node: {}
6
+ },
7
+ setup(n) {
8
+ return (t, p) => (o(), r("br"));
9
+ }
10
+ });
11
+ export {
12
+ c as default
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=e.defineComponent({__name:"HardBreak",props:{node:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("br"))}});exports.default=r;
@@ -0,0 +1,21 @@
1
+ import { defineComponent as n, createBlock as o, openBlock as a, resolveDynamicComponent as d, withCtx as r, renderSlot as l } from "vue";
2
+ const c = /* @__PURE__ */ n({
3
+ __name: "Heading",
4
+ props: {
5
+ node: {}
6
+ },
7
+ setup(e) {
8
+ return (t, s) => (a(), o(d(`h${e.node.attrs.level}`), {
9
+ id: e.node.attrs.id,
10
+ class: "heading"
11
+ }, {
12
+ default: r(() => [
13
+ l(t.$slots, "default")
14
+ ]),
15
+ _: 3
16
+ }, 8, ["id"]));
17
+ }
18
+ });
19
+ export {
20
+ c as default
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=e.defineComponent({__name:"Heading",props:{node:{}},setup(t){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(`h${t.node.attrs.level}`),{id:t.node.attrs.id,class:"heading"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["id"]))}});exports.default=o;
@@ -0,0 +1,13 @@
1
+ import { defineComponent as e, createElementBlock as o, openBlock as n } from "vue";
2
+ const _ = /* @__PURE__ */ e({
3
+ __name: "HorizontalRule",
4
+ props: {
5
+ node: {}
6
+ },
7
+ setup(r) {
8
+ return (t, p) => (n(), o("hr"));
9
+ }
10
+ });
11
+ export {
12
+ _ as default
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=e.defineComponent({__name:"HorizontalRule",props:{node:{}},setup(o){return(n,r)=>(e.openBlock(),e.createElementBlock("hr"))}});exports.default=t;
@@ -0,0 +1,17 @@
1
+ import { defineComponent as r, createElementBlock as o, openBlock as t } from "vue";
2
+ import { _ as c } from "./index-DVmWCrQE.mjs";
3
+ const s = ["src"], a = /* @__PURE__ */ r({
4
+ __name: "IFrame",
5
+ props: {
6
+ node: {}
7
+ },
8
+ setup(e) {
9
+ return (n, _) => (t(), o("iframe", {
10
+ class: "iframe-wrapper",
11
+ src: e.node.attrs.src
12
+ }, null, 8, s));
13
+ }
14
+ }), d = /* @__PURE__ */ c(a, [["__scopeId", "data-v-3e85ed1c"]]);
15
+ export {
16
+ d as default
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-D2CtpNvR.js"),c=["src"],n=e.defineComponent({__name:"IFrame",props:{node:{}},setup(r){return(s,a)=>(e.openBlock(),e.createElementBlock("iframe",{class:"iframe-wrapper",src:r.node.attrs.src},null,8,c))}}),o=t._export_sfc(n,[["__scopeId","data-v-3e85ed1c"]]);exports.default=o;
@@ -0,0 +1,105 @@
1
+ import { defineComponent as _, inject as H, ref as s, computed as S, createElementBlock as y, openBlock as f, normalizeStyle as I, createElementVNode as l, createCommentVNode as B, createBlock as V, Teleport as D, createVNode as E, Transition as F, withCtx as T, withDirectives as j, withModifiers as r, normalizeClass as m, toDisplayString as K, unref as O, vShow as $ } from "vue";
2
+ import { i as q, _ as A } from "./index-DVmWCrQE.mjs";
3
+ const G = ["src", "alt"], J = ["value"], L = ["src", "width", "height"], P = { class: "modal-footer" }, Q = { class: "percentage" }, R = /* @__PURE__ */ _({
4
+ __name: "Image",
5
+ props: {
6
+ node: {}
7
+ },
8
+ setup(n) {
9
+ const d = H(q, s([])), k = S(() => {
10
+ const a = n.node.attrs.width;
11
+ if (a && a.endsWith("%") && !a.startsWith("0")) {
12
+ const t = parseFloat(a.slice(0, -1));
13
+ return Math.max(Math.min(t, 100), 10) + "%";
14
+ } else
15
+ return "80%";
16
+ }), i = s(0), c = s(0), h = s(!1), e = s(100), w = s(null), u = s(0), v = s(0), o = s(0);
17
+ async function g(a) {
18
+ w.value = d.value[a];
19
+ const t = new Image();
20
+ t.src = d.value[a].attrs.src, await t.decode(), i.value = t.naturalWidth, c.value = t.height, !(!i.value || !c.value) && b();
21
+ }
22
+ const x = async () => {
23
+ o.value = d.value.findIndex((a) => a.attrs.src === n.node.attrs.src), await g(o.value), h.value = !0, document.body.style.overflow = "hidden";
24
+ }, C = async () => {
25
+ o.value > 0 && (o.value -= 1, await g(o.value));
26
+ }, W = async () => {
27
+ o.value < d.value.length - 1 && (o.value += 1, await g(o.value));
28
+ }, b = () => {
29
+ const a = window.innerWidth, t = window.innerHeight, p = a * 0.9 / i.value * c.value;
30
+ p <= t * 0.9 ? (u.value = a * 0.9, v.value = p) : (u.value = t * 0.9 / c.value * i.value, v.value = t * 0.9), e.value = u.value / i.value * 100;
31
+ }, z = () => {
32
+ e.value <= 10 || (e.value % 10 !== 0 ? e.value = Math.floor(e.value / 10) * 10 : e.value -= 10, u.value = e.value / 100 * i.value, v.value = e.value / 100 * c.value);
33
+ }, M = () => {
34
+ e.value >= 500 || (e.value % 10 !== 0 ? e.value = Math.ceil(e.value / 10) * 10 : e.value += 10, u.value = e.value / 100 * i.value, v.value = e.value / 100 * c.value);
35
+ }, N = () => {
36
+ h.value = !1, document.body.style.overflow = "";
37
+ };
38
+ return (a, t) => (f(), y("div", {
39
+ class: "image-container",
40
+ style: I({ alignItems: n.node.attrs.align })
41
+ }, [
42
+ l("div", {
43
+ class: "image-wrapper",
44
+ style: I({ width: k.value })
45
+ }, [
46
+ l("img", {
47
+ src: n.node.attrs.src,
48
+ alt: n.node.attrs.caption ? n.node.attrs.caption : "图片",
49
+ onClick: x
50
+ }, null, 8, G)
51
+ ], 4),
52
+ n.node.attrs.caption ? (f(), y("input", {
53
+ key: 0,
54
+ type: "text",
55
+ class: "image-caption",
56
+ value: n.node.attrs.caption,
57
+ disabled: ""
58
+ }, null, 8, J)) : B("", !0),
59
+ (f(), V(D, { to: "body" }, [
60
+ E(F, { name: "modal" }, {
61
+ default: T(() => [
62
+ j(l("div", {
63
+ class: "modal-mask",
64
+ onClick: N
65
+ }, [
66
+ t[0] || (t[0] = l("div", { class: "modal-close" }, "×", -1)),
67
+ l("img", {
68
+ class: "modal-body",
69
+ src: w.value?.attrs.src,
70
+ width: u.value,
71
+ height: v.value,
72
+ alt: "图片"
73
+ }, null, 8, L),
74
+ l("div", P, [
75
+ l("div", {
76
+ class: m(["prev-image", { disabled: o.value === 0 }]),
77
+ onClick: r(C, ["stop"])
78
+ }, "‹", 2),
79
+ l("div", {
80
+ class: m(["zoom-out", { disabled: e.value <= 10 }]),
81
+ onClick: r(z, ["stop"])
82
+ }, "-", 2),
83
+ l("div", Q, K(e.value.toFixed(0)) + "%", 1),
84
+ l("div", {
85
+ class: m(["zoom-in", { disabled: e.value >= 500 }]),
86
+ onClick: r(M, ["stop"])
87
+ }, "+", 2),
88
+ l("div", {
89
+ class: m(["next-image", { disabled: o.value === O(d).length - 1 }]),
90
+ onClick: r(W, ["stop"])
91
+ }, " › ", 2)
92
+ ])
93
+ ], 512), [
94
+ [$, h.value]
95
+ ])
96
+ ]),
97
+ _: 1
98
+ })
99
+ ]))
100
+ ], 4));
101
+ }
102
+ }), Y = /* @__PURE__ */ A(R, [["__scopeId", "data-v-6f968d5a"]]);
103
+ export {
104
+ Y as default
105
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-D2CtpNvR.js"),E=["src","alt"],V=["value"],b=["src","width","height"],z={class:"modal-footer"},M={class:"percentage"},x=e.defineComponent({__name:"Image",props:{node:{}},setup(n){const r=e.inject(f.imageNodesKey,e.ref([])),g=e.computed(()=>{const a=n.node.attrs.width;if(a&&a.endsWith("%")&&!a.startsWith("0")){const l=parseFloat(a.slice(0,-1));return Math.max(Math.min(l,100),10)+"%"}else return"80%"}),s=e.ref(0),i=e.ref(0),u=e.ref(!1),t=e.ref(100),m=e.ref(null),c=e.ref(0),d=e.ref(0),o=e.ref(0);async function v(a){m.value=r.value[a];const l=new Image;l.src=r.value[a].attrs.src,await l.decode(),s.value=l.naturalWidth,i.value=l.height,!(!s.value||!i.value)&&N()}const w=async()=>{o.value=r.value.findIndex(a=>a.attrs.src===n.node.attrs.src),await v(o.value),u.value=!0,document.body.style.overflow="hidden"},y=async()=>{o.value>0&&(o.value-=1,await v(o.value))},p=async()=>{o.value<r.value.length-1&&(o.value+=1,await v(o.value))},N=()=>{const a=window.innerWidth,l=window.innerHeight,h=a*.9/s.value*i.value;h<=l*.9?(c.value=a*.9,d.value=h):(c.value=l*.9/i.value*s.value,d.value=l*.9),t.value=c.value/s.value*100},I=()=>{t.value<=10||(t.value%10!==0?t.value=Math.floor(t.value/10)*10:t.value-=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},k=()=>{t.value>=500||(t.value%10!==0?t.value=Math.ceil(t.value/10)*10:t.value+=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},C=()=>{u.value=!1,document.body.style.overflow=""};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"image-container",style:e.normalizeStyle({alignItems:n.node.attrs.align})},[e.createElementVNode("div",{class:"image-wrapper",style:e.normalizeStyle({width:g.value})},[e.createElementVNode("img",{src:n.node.attrs.src,alt:n.node.attrs.caption?n.node.attrs.caption:"图片",onClick:w},null,8,E)],4),n.node.attrs.caption?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"image-caption",value:n.node.attrs.caption,disabled:""},null,8,V)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"modal-mask",onClick:C},[l[0]||(l[0]=e.createElementVNode("div",{class:"modal-close"},"×",-1)),e.createElementVNode("img",{class:"modal-body",src:m.value?.attrs.src,width:c.value,height:d.value,alt:"图片"},null,8,b),e.createElementVNode("div",z,[e.createElementVNode("div",{class:e.normalizeClass(["prev-image",{disabled:o.value===0}]),onClick:e.withModifiers(y,["stop"])},"‹",2),e.createElementVNode("div",{class:e.normalizeClass(["zoom-out",{disabled:t.value<=10}]),onClick:e.withModifiers(I,["stop"])},"-",2),e.createElementVNode("div",M,e.toDisplayString(t.value.toFixed(0))+"%",1),e.createElementVNode("div",{class:e.normalizeClass(["zoom-in",{disabled:t.value>=500}]),onClick:e.withModifiers(k,["stop"])},"+",2),e.createElementVNode("div",{class:e.normalizeClass(["next-image",{disabled:o.value===e.unref(r).length-1}]),onClick:e.withModifiers(p,["stop"])}," › ",2)])],512),[[e.vShow,u.value]])]),_:1})]))],4))}}),W=f._export_sfc(x,[["__scopeId","data-v-6f968d5a"]]);exports.default=W;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=e.defineComponent({__name:"ListItem",props:{node:{}},setup(o){return(t,r)=>(e.openBlock(),e.createElementBlock("li",null,[e.renderSlot(t.$slots,"default")]))}});exports.default=n;
@@ -0,0 +1,15 @@
1
+ import { defineComponent as t, createElementBlock as o, openBlock as n, renderSlot as r } from "vue";
2
+ const a = /* @__PURE__ */ t({
3
+ __name: "ListItem",
4
+ props: {
5
+ node: {}
6
+ },
7
+ setup(l) {
8
+ return (e, p) => (n(), o("li", null, [
9
+ r(e.$slots, "default")
10
+ ]));
11
+ }
12
+ });
13
+ export {
14
+ a as default
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-D2CtpNvR.js"),i={class:"math-display"},d=["innerHTML"],l=e.defineComponent({__name:"MathDisplay",props:{node:{}},async setup(c){let t,r;const o=e.ref("");try{const{default:n}=([t,r]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.js"))),t=await t,r(),t);o.value=n.renderToString(c.node.content[0].text,{displayMode:!0,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",{class:"math-render",innerHTML:o.value},null,8,d)]))}}),_=a._export_sfc(l,[["__scopeId","data-v-1d66d1b3"]]);exports.default=_;
@@ -0,0 +1,30 @@
1
+ import { defineComponent as s, ref as c, withAsyncContext as d, createElementBlock as i, openBlock as _, createElementVNode as l } from "vue";
2
+ import { _ as p } from "./index-DVmWCrQE.mjs";
3
+ const m = { class: "math-display" }, h = ["innerHTML"], u = /* @__PURE__ */ s({
4
+ __name: "MathDisplay",
5
+ props: {
6
+ node: {}
7
+ },
8
+ async setup(a) {
9
+ let e, n;
10
+ const o = c("");
11
+ try {
12
+ const { default: t } = ([e, n] = d(() => import("./katex-r9TeExgs.mjs")), e = await e, n(), e);
13
+ o.value = t.renderToString(a.node.content[0].text, {
14
+ displayMode: !0,
15
+ strict: (r) => r === "unicodeTextInMathMode" ? "ignore" : "warn"
16
+ });
17
+ } catch (t) {
18
+ console.error(t);
19
+ }
20
+ return (t, r) => (_(), i("div", m, [
21
+ l("div", {
22
+ class: "math-render",
23
+ innerHTML: o.value
24
+ }, null, 8, h)
25
+ ]));
26
+ }
27
+ }), y = /* @__PURE__ */ p(u, [["__scopeId", "data-v-1d66d1b3"]]);
28
+ export {
29
+ y as default
30
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as s, ref as c, withAsyncContext as i, createElementBlock as l, openBlock as _, createElementVNode as d } from "vue";
2
+ import { _ as p } from "./index-DVmWCrQE.mjs";
3
+ const m = { class: "math-inline" }, f = ["innerHTML"], h = /* @__PURE__ */ s({
4
+ __name: "MathInline",
5
+ props: {
6
+ node: {}
7
+ },
8
+ async setup(a) {
9
+ let e, n;
10
+ const o = c("");
11
+ try {
12
+ const { default: t } = ([e, n] = i(() => import("./katex-r9TeExgs.mjs")), e = await e, n(), e);
13
+ o.value = t.renderToString(a.node.content[0].text, {
14
+ displayMode: !1,
15
+ strict: (r) => r === "unicodeTextInMathMode" ? "ignore" : "warn"
16
+ });
17
+ } catch (t) {
18
+ console.error(t);
19
+ }
20
+ return (t, r) => (_(), l("span", m, [
21
+ d("span", {
22
+ class: "math-render",
23
+ innerHTML: o.value
24
+ }, null, 8, f)
25
+ ]));
26
+ }
27
+ }), M = /* @__PURE__ */ p(h, [["__scopeId", "data-v-5812f609"]]);
28
+ export {
29
+ M as default
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-D2CtpNvR.js"),i={class:"math-inline"},l=["innerHTML"],d=e.defineComponent({__name:"MathInline",props:{node:{}},async setup(c){let t,o;const r=e.ref("");try{const{default:n}=([t,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.js"))),t=await t,o(),t);r.value=n.renderToString(c.node.content[0].text,{displayMode:!1,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("span",i,[e.createElementVNode("span",{class:"math-render",innerHTML:r.value},null,8,l)]))}}),_=a._export_sfc(d,[["__scopeId","data-v-5812f609"]]);exports.default=_;
@@ -0,0 +1,52 @@
1
+ import { createElementBlock as o, openBlock as l, createStaticVNode as r, defineComponent as h, mergeModels as p, useModel as L, createElementVNode as C, createVNode as d, Fragment as m, renderList as u, withDirectives as _, vModelRadio as f, toDisplayString as M } from "vue";
2
+ import { _ as i, b as v } from "./index-DVmWCrQE.mjs";
3
+ const b = {}, H = {
4
+ fill: "none",
5
+ viewBox: "0 0 20 20",
6
+ xmlns: "http://www.w3.org/2000/svg"
7
+ };
8
+ function Z(t, e) {
9
+ return l(), o("svg", H, [...e[0] || (e[0] = [
10
+ r('<path d="M5.00011 1.5C5.00011 1.26811 4.84067 1.06665 4.61499 1.01337C4.38621 0.959365 4.15942 1.07489 4.05148 1.27908C4.0295 1.32097 4.00531 1.36174 3.98053 1.40201C3.92681 1.4893 3.8447 1.61261 3.73468 1.75015C3.51178 2.02877 3.19011 2.34598 2.7765 2.55278C2.52951 2.67628 2.4294 2.97661 2.5529 3.2236C2.67639 3.47059 2.97673 3.57071 3.22372 3.44721C3.52353 3.29731 3.78202 3.11091 4.00011 2.91823V5.5C4.00011 5.77614 4.22397 6 4.50011 6C4.77625 6 5.00011 5.77614 5.00011 5.5V1.5Z" fill="#212121"></path><path d="M2.64642 7.64651C2.45117 7.84179 2.4512 8.15837 2.64647 8.35362C2.84059 8.5477 3.15457 8.54883 3.35008 8.35703L3.35665 8.35101C3.36458 8.34391 3.37911 8.33132 3.39988 8.315C3.44165 8.28217 3.50709 8.23546 3.59323 8.18805C3.76518 8.09341 4.01033 8.00085 4.31294 8.00001C4.54021 8.00453 4.72387 8.06477 4.83732 8.14879C4.93306 8.21968 5 8.31947 5 8.50009C5 8.70237 4.92979 8.81922 4.78928 8.93631C4.63792 9.06244 4.44136 9.15973 4.17109 9.29351C4.12524 9.3162 4.07662 9.34027 4.0264 9.36539C3.71266 9.52225 3.32368 9.72887 3.02065 10.0622C2.69919 10.4158 2.5 10.8809 2.5 11.5001C2.5 11.7763 2.72386 12.0001 3 12.0001H5.49944C5.77558 12.0001 6 11.7763 6 11.5001C6 11.224 5.77614 11.0001 5.5 11.0001H3.58925C3.63458 10.8934 3.69413 10.808 3.7606 10.7349C3.92632 10.5526 4.16234 10.4154 4.4736 10.2598C4.51206 10.2406 4.55257 10.2207 4.5946 10.2001C4.85655 10.0716 5.17854 9.91363 5.42947 9.70453C5.75771 9.43099 6 9.04783 6 8.50009C6 7.99565 5.77725 7.60048 5.43244 7.34515C5.10604 7.10344 4.69985 7.00638 4.32563 7.00007L4.31722 7C3.80459 6.99998 3.39261 7.15701 3.11107 7.31196C2.97006 7.38957 2.85942 7.46787 2.78191 7.5288C2.74303 7.55936 2.71212 7.58584 2.68951 7.60609C2.67819 7.61622 2.66892 7.62483 2.66173 7.63164L2.65251 7.64051L2.64907 7.64388L2.64765 7.64529L2.64642 7.64651ZM2.66173 7.63164L2.64642 7.64651C2.64642 7.64651 2.7471 7.55676 2.66173 7.63164Z" fill="#212121"></path><path d="M4.25011 15C3.97397 15 3.75011 15.2239 3.75011 15.5C3.75011 15.7761 3.97397 16 4.25011 16C4.5929 16 4.78233 16.0967 4.87775 16.1831C4.97201 16.2685 5.01072 16.3744 5.00671 16.4813C4.99946 16.6747 4.82083 17 4.25011 17C3.8376 17 3.62396 16.8983 3.52746 16.834C3.4769 16.8003 3.44973 16.771 3.43891 16.758L3.43482 16.7529C3.30449 16.5232 3.01552 16.4333 2.7765 16.5528C2.52951 16.6763 2.4294 16.9766 2.5529 17.2236L2.55361 17.225L2.55435 17.2265L2.55594 17.2296L2.55948 17.2364L2.56815 17.2521C2.57465 17.2636 2.58262 17.2769 2.59222 17.2919C2.61141 17.3217 2.63716 17.358 2.67069 17.3982C2.73799 17.479 2.83582 17.5747 2.97276 17.666C3.25126 17.8517 3.66262 18 4.25011 18C5.27939 18 5.97576 17.3253 6.00601 16.5187C6.01979 16.1513 5.88798 15.783 5.60959 15.5C5.88798 15.217 6.01979 14.8487 6.00601 14.4813C5.97576 13.6747 5.27939 13 4.25011 13C3.66262 13 3.25126 13.1483 2.97276 13.334C2.83582 13.4253 2.73799 13.521 2.67069 13.6018C2.63716 13.642 2.61141 13.6783 2.59222 13.7081C2.58262 13.7231 2.57465 13.7364 2.56815 13.7479L2.55948 13.7636L2.55594 13.7704L2.55435 13.7735L2.55361 13.775L2.5529 13.7764C2.4294 14.0234 2.52951 14.3237 2.7765 14.4472C3.01552 14.5667 3.30449 14.4768 3.43482 14.2471L3.43891 14.242C3.44973 14.229 3.4769 14.1997 3.52746 14.166C3.62396 14.1017 3.8376 14 4.25011 14C4.82083 14 4.99946 14.3253 5.00671 14.5187C5.01072 14.6256 4.97201 14.7315 4.87775 14.8169C4.78233 14.9033 4.5929 15 4.25011 15ZM3.43482 14.2471L3.43279 14.2498L3.43339 14.2489C3.43339 14.2489 3.43583 14.245 3.43817 14.2409L3.44223 14.2335L3.44465 14.2289L3.44596 14.2263L3.44698 14.2243C3.44309 14.232 3.43904 14.2396 3.43482 14.2471Z" fill="#212121"></path><path d="M8.49976 4C8.22361 4 7.99976 4.22386 7.99976 4.5C7.99976 4.77614 8.22361 5 8.49976 5H16.4998C16.7759 5 16.9998 4.77614 16.9998 4.5C16.9998 4.22386 16.7759 4 16.4998 4H8.49976Z" fill="#212121"></path><path d="M8.49976 9C8.22361 9 7.99976 9.22386 7.99976 9.5C7.99976 9.77614 8.22361 10 8.49976 10H16.4998C16.7759 10 16.9998 9.77614 16.9998 9.5C16.9998 9.22386 16.7759 9 16.4998 9H8.49976Z" fill="#212121"></path><path d="M7.99976 14.5C7.99976 14.2239 8.22361 14 8.49976 14H16.4998C16.7759 14 16.9998 14.2239 16.9998 14.5C16.9998 14.7761 16.7759 15 16.4998 15H8.49976C8.22361 15 7.99976 14.7761 7.99976 14.5Z" fill="#212121"></path>', 6)
11
+ ])]);
12
+ }
13
+ const g = /* @__PURE__ */ i(b, [["render", Z]]), w = { class: "mc-choices-header" }, x = { class: "choices-header-bar" }, V = { class: "choice-list" }, y = ["value", "disabled"], B = { class: "prefix" }, k = /* @__PURE__ */ h({
14
+ __name: "McChoices",
15
+ props: /* @__PURE__ */ p({
16
+ node: {},
17
+ submitted: { type: Boolean }
18
+ }, {
19
+ selected: {},
20
+ selectedModifiers: {}
21
+ }),
22
+ emits: ["update:selected"],
23
+ setup(t) {
24
+ const e = L(t, "selected");
25
+ return (N, s) => (l(), o("div", w, [
26
+ C("div", x, [
27
+ d(g, { class: "header-icon" }),
28
+ s[1] || (s[1] = C("span", { class: "header-text" }, "选项", -1))
29
+ ]),
30
+ C("div", V, [
31
+ (l(!0), o(m, null, u(t.node.content, (n, a) => (l(), o("label", {
32
+ class: "choice-item",
33
+ key: a
34
+ }, [
35
+ _(C("input", {
36
+ type: "radio",
37
+ value: a,
38
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
39
+ disabled: t.submitted
40
+ }, null, 8, y), [
41
+ [f, e.value]
42
+ ]),
43
+ C("span", B, M(String.fromCharCode(65 + a)) + ".", 1),
44
+ d(v, { node: n }, null, 8, ["node"])
45
+ ]))), 128))
46
+ ])
47
+ ]));
48
+ }
49
+ }), D = /* @__PURE__ */ i(k, [["__scopeId", "data-v-1b935e83"]]);
50
+ export {
51
+ D as default
52
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D2CtpNvR.js"),d={},a={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function i(C,t){return e.openBlock(),e.createElementBlock("svg",a,[...t[0]||(t[0]=[e.createStaticVNode('<path d="M5.00011 1.5C5.00011 1.26811 4.84067 1.06665 4.61499 1.01337C4.38621 0.959365 4.15942 1.07489 4.05148 1.27908C4.0295 1.32097 4.00531 1.36174 3.98053 1.40201C3.92681 1.4893 3.8447 1.61261 3.73468 1.75015C3.51178 2.02877 3.19011 2.34598 2.7765 2.55278C2.52951 2.67628 2.4294 2.97661 2.5529 3.2236C2.67639 3.47059 2.97673 3.57071 3.22372 3.44721C3.52353 3.29731 3.78202 3.11091 4.00011 2.91823V5.5C4.00011 5.77614 4.22397 6 4.50011 6C4.77625 6 5.00011 5.77614 5.00011 5.5V1.5Z" fill="#212121"></path><path d="M2.64642 7.64651C2.45117 7.84179 2.4512 8.15837 2.64647 8.35362C2.84059 8.5477 3.15457 8.54883 3.35008 8.35703L3.35665 8.35101C3.36458 8.34391 3.37911 8.33132 3.39988 8.315C3.44165 8.28217 3.50709 8.23546 3.59323 8.18805C3.76518 8.09341 4.01033 8.00085 4.31294 8.00001C4.54021 8.00453 4.72387 8.06477 4.83732 8.14879C4.93306 8.21968 5 8.31947 5 8.50009C5 8.70237 4.92979 8.81922 4.78928 8.93631C4.63792 9.06244 4.44136 9.15973 4.17109 9.29351C4.12524 9.3162 4.07662 9.34027 4.0264 9.36539C3.71266 9.52225 3.32368 9.72887 3.02065 10.0622C2.69919 10.4158 2.5 10.8809 2.5 11.5001C2.5 11.7763 2.72386 12.0001 3 12.0001H5.49944C5.77558 12.0001 6 11.7763 6 11.5001C6 11.224 5.77614 11.0001 5.5 11.0001H3.58925C3.63458 10.8934 3.69413 10.808 3.7606 10.7349C3.92632 10.5526 4.16234 10.4154 4.4736 10.2598C4.51206 10.2406 4.55257 10.2207 4.5946 10.2001C4.85655 10.0716 5.17854 9.91363 5.42947 9.70453C5.75771 9.43099 6 9.04783 6 8.50009C6 7.99565 5.77725 7.60048 5.43244 7.34515C5.10604 7.10344 4.69985 7.00638 4.32563 7.00007L4.31722 7C3.80459 6.99998 3.39261 7.15701 3.11107 7.31196C2.97006 7.38957 2.85942 7.46787 2.78191 7.5288C2.74303 7.55936 2.71212 7.58584 2.68951 7.60609C2.67819 7.61622 2.66892 7.62483 2.66173 7.63164L2.65251 7.64051L2.64907 7.64388L2.64765 7.64529L2.64642 7.64651ZM2.66173 7.63164L2.64642 7.64651C2.64642 7.64651 2.7471 7.55676 2.66173 7.63164Z" fill="#212121"></path><path d="M4.25011 15C3.97397 15 3.75011 15.2239 3.75011 15.5C3.75011 15.7761 3.97397 16 4.25011 16C4.5929 16 4.78233 16.0967 4.87775 16.1831C4.97201 16.2685 5.01072 16.3744 5.00671 16.4813C4.99946 16.6747 4.82083 17 4.25011 17C3.8376 17 3.62396 16.8983 3.52746 16.834C3.4769 16.8003 3.44973 16.771 3.43891 16.758L3.43482 16.7529C3.30449 16.5232 3.01552 16.4333 2.7765 16.5528C2.52951 16.6763 2.4294 16.9766 2.5529 17.2236L2.55361 17.225L2.55435 17.2265L2.55594 17.2296L2.55948 17.2364L2.56815 17.2521C2.57465 17.2636 2.58262 17.2769 2.59222 17.2919C2.61141 17.3217 2.63716 17.358 2.67069 17.3982C2.73799 17.479 2.83582 17.5747 2.97276 17.666C3.25126 17.8517 3.66262 18 4.25011 18C5.27939 18 5.97576 17.3253 6.00601 16.5187C6.01979 16.1513 5.88798 15.783 5.60959 15.5C5.88798 15.217 6.01979 14.8487 6.00601 14.4813C5.97576 13.6747 5.27939 13 4.25011 13C3.66262 13 3.25126 13.1483 2.97276 13.334C2.83582 13.4253 2.73799 13.521 2.67069 13.6018C2.63716 13.642 2.61141 13.6783 2.59222 13.7081C2.58262 13.7231 2.57465 13.7364 2.56815 13.7479L2.55948 13.7636L2.55594 13.7704L2.55435 13.7735L2.55361 13.775L2.5529 13.7764C2.4294 14.0234 2.52951 14.3237 2.7765 14.4472C3.01552 14.5667 3.30449 14.4768 3.43482 14.2471L3.43891 14.242C3.44973 14.229 3.4769 14.1997 3.52746 14.166C3.62396 14.1017 3.8376 14 4.25011 14C4.82083 14 4.99946 14.3253 5.00671 14.5187C5.01072 14.6256 4.97201 14.7315 4.87775 14.8169C4.78233 14.9033 4.5929 15 4.25011 15ZM3.43482 14.2471L3.43279 14.2498L3.43339 14.2489C3.43339 14.2489 3.43583 14.245 3.43817 14.2409L3.44223 14.2335L3.44465 14.2289L3.44596 14.2263L3.44698 14.2243C3.44309 14.232 3.43904 14.2396 3.43482 14.2471Z" fill="#212121"></path><path d="M8.49976 4C8.22361 4 7.99976 4.22386 7.99976 4.5C7.99976 4.77614 8.22361 5 8.49976 5H16.4998C16.7759 5 16.9998 4.77614 16.9998 4.5C16.9998 4.22386 16.7759 4 16.4998 4H8.49976Z" fill="#212121"></path><path d="M8.49976 9C8.22361 9 7.99976 9.22386 7.99976 9.5C7.99976 9.77614 8.22361 10 8.49976 10H16.4998C16.7759 10 16.9998 9.77614 16.9998 9.5C16.9998 9.22386 16.7759 9 16.4998 9H8.49976Z" fill="#212121"></path><path d="M7.99976 14.5C7.99976 14.2239 8.22361 14 8.49976 14H16.4998C16.7759 14 16.9998 14.2239 16.9998 14.5C16.9998 14.7761 16.7759 15 16.4998 15H8.49976C8.22361 15 7.99976 14.7761 7.99976 14.5Z" fill="#212121"></path>',6)])])}const r=s._export_sfc(d,[["render",i]]),p={class:"mc-choices-header"},h={class:"choices-header-bar"},u={class:"choice-list"},L=["value","disabled"],m={class:"prefix"},_=e.defineComponent({__name:"McChoices",props:e.mergeModels({node:{},submitted:{type:Boolean}},{selected:{},selectedModifiers:{}}),emits:["update:selected"],setup(C){const t=e.useModel(C,"selected");return(M,o)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[e.createVNode(r,{class:"header-icon"}),o[1]||(o[1]=e.createElementVNode("span",{class:"header-text"},"选项",-1))]),e.createElementVNode("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.node.content,(c,l)=>(e.openBlock(),e.createElementBlock("label",{class:"choice-item",key:l},[e.withDirectives(e.createElementVNode("input",{type:"radio",value:l,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),disabled:C.submitted},null,8,L),[[e.vModelRadio,t.value]]),e.createElementVNode("span",m,e.toDisplayString(String.fromCharCode(65+l))+".",1),e.createVNode(s._sfc_main,{node:c},null,8,["node"])]))),128))])]))}}),f=s._export_sfc(_,[["__scopeId","data-v-1b935e83"]]);exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D2CtpNvR.js"),r={},l={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function d(o,t){return e.openBlock(),e.createElementBlock("svg",l,[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.4987 3C15.8793 3 16.9985 4.11916 16.9985 5.49972V9.00234C16.6571 9.0179 16.3179 9.0941 15.9986 9.23094V6.99956H3.99989V14.4987C3.99989 15.3271 4.67139 15.9986 5.49972 15.9986H9.47395C9.45833 16.0499 9.44398 16.1017 9.43092 16.1539L9.21979 16.9985H5.49972C4.11916 16.9985 3 15.8793 3 14.4987V5.49972C3 4.11916 4.11916 3 5.49972 3H14.4987ZM14.4987 3.99989H5.49972C4.67139 3.99989 3.99989 4.67139 3.99989 5.49972V5.99967H15.9986V5.49972C15.9986 4.67139 15.3271 3.99989 14.4987 3.99989ZM10.9789 15.3758L15.8078 10.5469C16.538 9.81666 17.722 9.81666 18.4523 10.5469C19.1826 11.2772 19.1826 12.4612 18.4523 13.1915L13.6234 18.0204C13.3419 18.3019 12.9891 18.5016 12.6028 18.5982L11.1051 18.9726C10.4537 19.1355 9.86376 18.5455 10.0266 17.8942L10.401 16.3964C10.4976 16.0101 10.6973 15.6574 10.9789 15.3758Z",fill:"#212121"},null,-1)])])}const i=n._export_sfc(r,[["render",d]]),a={class:"mc-question-header"},u={class:"question-header"},_={class:"question-content"},m=e.defineComponent({__name:"McQuestion",props:{node:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",u,[e.createVNode(i,{class:"icon"}),s[0]||(s[0]=e.createElementVNode("span",{class:"header-text"},"题目",-1))]),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,c=>(e.openBlock(),e.createBlock(n._sfc_main,{node:c,key:e.useId()},null,8,["node"]))),128))])]))}}),p=n._export_sfc(m,[["__scopeId","data-v-d7042536"]]);exports.default=p;
@@ -0,0 +1,38 @@
1
+ import { createElementBlock as o, openBlock as e, createElementVNode as t, defineComponent as i, createVNode as a, Fragment as _, renderList as l, createBlock as u, useId as m } from "vue";
2
+ import { _ as r, b as C } from "./index-DVmWCrQE.mjs";
3
+ const p = {}, f = {
4
+ fill: "none",
5
+ viewBox: "0 0 20 20",
6
+ xmlns: "http://www.w3.org/2000/svg"
7
+ };
8
+ function V(s, n) {
9
+ return e(), o("svg", f, [...n[0] || (n[0] = [
10
+ t("path", {
11
+ d: "M14.4987 3C15.8793 3 16.9985 4.11916 16.9985 5.49972V9.00234C16.6571 9.0179 16.3179 9.0941 15.9986 9.23094V6.99956H3.99989V14.4987C3.99989 15.3271 4.67139 15.9986 5.49972 15.9986H9.47395C9.45833 16.0499 9.44398 16.1017 9.43092 16.1539L9.21979 16.9985H5.49972C4.11916 16.9985 3 15.8793 3 14.4987V5.49972C3 4.11916 4.11916 3 5.49972 3H14.4987ZM14.4987 3.99989H5.49972C4.67139 3.99989 3.99989 4.67139 3.99989 5.49972V5.99967H15.9986V5.49972C15.9986 4.67139 15.3271 3.99989 14.4987 3.99989ZM10.9789 15.3758L15.8078 10.5469C16.538 9.81666 17.722 9.81666 18.4523 10.5469C19.1826 11.2772 19.1826 12.4612 18.4523 13.1915L13.6234 18.0204C13.3419 18.3019 12.9891 18.5016 12.6028 18.5982L11.1051 18.9726C10.4537 19.1355 9.86376 18.5455 10.0266 17.8942L10.401 16.3964C10.4976 16.0101 10.6973 15.6574 10.9789 15.3758Z",
12
+ fill: "#212121"
13
+ }, null, -1)
14
+ ])]);
15
+ }
16
+ const h = /* @__PURE__ */ r(p, [["render", V]]), v = { class: "mc-question-header" }, x = { class: "question-header" }, H = { class: "question-content" }, L = /* @__PURE__ */ i({
17
+ __name: "McQuestion",
18
+ props: {
19
+ node: {}
20
+ },
21
+ setup(s) {
22
+ return (n, c) => (e(), o("div", v, [
23
+ t("div", x, [
24
+ a(h, { class: "icon" }),
25
+ c[0] || (c[0] = t("span", { class: "header-text" }, "题目", -1))
26
+ ]),
27
+ t("div", H, [
28
+ (e(!0), o(_, null, l(s.node.content, (d) => (e(), u(C, {
29
+ node: d,
30
+ key: m()
31
+ }, null, 8, ["node"]))), 128))
32
+ ])
33
+ ]));
34
+ }
35
+ }), g = /* @__PURE__ */ r(L, [["__scopeId", "data-v-d7042536"]]);
36
+ export {
37
+ g as default
38
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as c, createElementBlock as t, openBlock as e, createElementVNode as r, normalizeClass as s, Fragment as a, renderList as l, createBlock as d, useId as i } from "vue";
2
+ import { b as m, _ as u } from "./index-DVmWCrQE.mjs";
3
+ const _ = { class: "mc-solution" }, p = /* @__PURE__ */ c({
4
+ __name: "McSolution",
5
+ props: {
6
+ node: {},
7
+ correct: { type: Boolean }
8
+ },
9
+ setup(o) {
10
+ return (f, k) => (e(), t("div", _, [
11
+ r("div", {
12
+ class: s(["solution-content", o.correct ? "correct" : "wrong"])
13
+ }, [
14
+ (e(!0), t(a, null, l(o.node.content, (n) => (e(), d(m, {
15
+ node: n,
16
+ key: i()
17
+ }, null, 8, ["node"]))), 128))
18
+ ], 2)
19
+ ]));
20
+ }
21
+ }), x = /* @__PURE__ */ u(p, [["__scopeId", "data-v-cb592ef8"]]);
22
+ export {
23
+ x as default
24
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-D2CtpNvR.js"),c={class:"mc-solution"},r=e.defineComponent({__name:"McSolution",props:{node:{},correct:{type:Boolean}},setup(o){return(s,a)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",{class:e.normalizeClass(["solution-content",o.correct?"correct":"wrong"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,n=>(e.openBlock(),e.createBlock(t._sfc_main,{node:n,key:e.useId()},null,8,["node"]))),128))],2)]))}}),l=t._export_sfc(r,[["__scopeId","data-v-cb592ef8"]]);exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./McChoices-B4euzY7M.js"),i=require("./McQuestion-Dq0aM5tC.js"),m=require("./McSolution-N79CllH9.js"),v=require("./index-D2CtpNvR.js"),f={class:"multiple-choice"},b={key:0,class:"submit-area"},p=["disabled"],k=e.defineComponent({__name:"MultipleChoice",props:{node:{}},setup(t){const u=t,o=e.ref(null),n=e.ref(!1),c=e.ref(!1),d=()=>{n.value=!0;const l=u.node.content[1].attrs.correctIndex;c.value=o.value===l};return(l,s)=>(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(i.default,{node:t.node.content[0]},null,8,["node"]),e.createVNode(a.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=r=>o.value=r),node:t.node.content[1],submitted:n.value},null,8,["selected","node","submitted"]),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("button",{class:"submit-button",disabled:o.value===null,onClick:d},"提交答案",8,p)])),n.value?(e.openBlock(),e.createBlock(m.default,{key:1,node:t.node.content[2],correct:c.value},null,8,["node","correct"])):e.createCommentVNode("",!0)]))}}),C=v._export_sfc(k,[["__scopeId","data-v-7715f66b"]]);exports.default=C;
@@ -0,0 +1,47 @@
1
+ import { defineComponent as p, ref as n, createElementBlock as r, openBlock as c, createVNode as u, createCommentVNode as a, createBlock as v, createElementVNode as b } from "vue";
2
+ import _ from "./McChoices-Aj394G5E.mjs";
3
+ import C from "./McQuestion-DvD-J47M.mjs";
4
+ import h from "./McSolution-C5sTXz3y.mjs";
5
+ import { _ as k } from "./index-DVmWCrQE.mjs";
6
+ const x = { class: "multiple-choice" }, M = {
7
+ key: 0,
8
+ class: "submit-area"
9
+ }, B = ["disabled"], I = /* @__PURE__ */ p({
10
+ __name: "MultipleChoice",
11
+ props: {
12
+ node: {}
13
+ },
14
+ setup(e) {
15
+ const i = e, t = n(null), o = n(!1), l = n(!1), m = () => {
16
+ o.value = !0;
17
+ const s = i.node.content[1].attrs.correctIndex;
18
+ l.value = t.value === s;
19
+ };
20
+ return (s, d) => (c(), r("div", x, [
21
+ u(C, {
22
+ node: e.node.content[0]
23
+ }, null, 8, ["node"]),
24
+ u(_, {
25
+ selected: t.value,
26
+ "onUpdate:selected": d[0] || (d[0] = (f) => t.value = f),
27
+ node: e.node.content[1],
28
+ submitted: o.value
29
+ }, null, 8, ["selected", "node", "submitted"]),
30
+ o.value ? a("", !0) : (c(), r("div", M, [
31
+ b("button", {
32
+ class: "submit-button",
33
+ disabled: t.value === null,
34
+ onClick: m
35
+ }, "提交答案", 8, B)
36
+ ])),
37
+ o.value ? (c(), v(h, {
38
+ key: 1,
39
+ node: e.node.content[2],
40
+ correct: l.value
41
+ }, null, 8, ["node", "correct"])) : a("", !0)
42
+ ]));
43
+ }
44
+ }), S = /* @__PURE__ */ k(I, [["__scopeId", "data-v-7715f66b"]]);
45
+ export {
46
+ S as default
47
+ };