vue3-sphinx-xml 0.3.3 → 0.4.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 (157) hide show
  1. package/dist/Admonition-4dbe3f53.mjs +41 -0
  2. package/dist/Admonition-4dbe3f53.mjs.map +1 -0
  3. package/dist/BlockQuote-0b464fcb.mjs +39 -0
  4. package/dist/BlockQuote-0b464fcb.mjs.map +1 -0
  5. package/dist/CaptionNumber-02430764.mjs +41 -0
  6. package/dist/CaptionNumber-02430764.mjs.map +1 -0
  7. package/dist/ColumnGroup-baa1b99b.mjs +37 -0
  8. package/dist/ColumnGroup-baa1b99b.mjs.map +1 -0
  9. package/dist/Comment-f2157760.mjs +31 -0
  10. package/dist/Comment-f2157760.mjs.map +1 -0
  11. package/dist/Compound-ae2a8a98.mjs +35 -0
  12. package/dist/Compound-ae2a8a98.mjs.map +1 -0
  13. package/dist/Container-19a7431d.mjs +55 -0
  14. package/dist/Container-19a7431d.mjs.map +1 -0
  15. package/dist/DirectElementMap-4c6f8e80.mjs +21 -0
  16. package/dist/DirectElementMap-4c6f8e80.mjs.map +1 -0
  17. package/dist/DownloadReference-1df41bf0.mjs +40 -0
  18. package/dist/DownloadReference-1df41bf0.mjs.map +1 -0
  19. package/dist/Figure-12e7efef.mjs +43 -0
  20. package/dist/Figure-12e7efef.mjs.map +1 -0
  21. package/dist/FigureCaption-7b351f25.mjs +46 -0
  22. package/dist/FigureCaption-7b351f25.mjs.map +1 -0
  23. package/dist/Footnote-e4b02243.mjs +38 -0
  24. package/dist/Footnote-e4b02243.mjs.map +1 -0
  25. package/dist/FootnoteReference-b5b67601.mjs +44 -0
  26. package/dist/FootnoteReference-b5b67601.mjs.map +1 -0
  27. package/dist/Image-15e1e5bd.mjs +40 -0
  28. package/dist/Image-15e1e5bd.mjs.map +1 -0
  29. package/dist/Legend-878a7ec8.mjs +41 -0
  30. package/dist/Legend-878a7ec8.mjs.map +1 -0
  31. package/dist/LineBlock-8eec127a.mjs +38 -0
  32. package/dist/LineBlock-8eec127a.mjs.map +1 -0
  33. package/dist/LineSingle-6a9fabdf.mjs +40 -0
  34. package/dist/LineSingle-6a9fabdf.mjs.map +1 -0
  35. package/dist/Literal-edb2ce6f.mjs +47 -0
  36. package/dist/Literal-edb2ce6f.mjs.map +1 -0
  37. package/dist/LiteralBlock-a2af758b.mjs +42 -0
  38. package/dist/LiteralBlock-a2af758b.mjs.map +1 -0
  39. package/dist/Math-7ccdef36.mjs +28 -0
  40. package/dist/Math-7ccdef36.mjs.map +1 -0
  41. package/dist/MathBlock-f8b3d549.mjs +59 -0
  42. package/dist/MathBlock-f8b3d549.mjs.map +1 -0
  43. package/dist/Note-4413dcab.mjs +39 -0
  44. package/dist/Note-4413dcab.mjs.map +1 -0
  45. package/dist/NumberReference-2143cb23.mjs +53 -0
  46. package/dist/NumberReference-2143cb23.mjs.map +1 -0
  47. package/dist/Problematic-3d793374.mjs +42 -0
  48. package/dist/Problematic-3d793374.mjs.map +1 -0
  49. package/dist/Raw-dcdd7f96.mjs +10 -0
  50. package/dist/Raw-dcdd7f96.mjs.map +1 -0
  51. package/dist/Reference-80a8b234.mjs +57 -0
  52. package/dist/Reference-80a8b234.mjs.map +1 -0
  53. package/dist/Section-9ba27ca3.mjs +42 -0
  54. package/dist/Section-9ba27ca3.mjs.map +1 -0
  55. package/dist/Skip-4a46064f.mjs +19 -0
  56. package/dist/Skip-4a46064f.mjs.map +1 -0
  57. package/dist/StandardElement-64bcb6c4.mjs +62 -0
  58. package/dist/StandardElement-64bcb6c4.mjs.map +1 -0
  59. package/dist/Text-0d6b5332.mjs +24 -0
  60. package/dist/Text-0d6b5332.mjs.map +1 -0
  61. package/dist/Title-4ea6531d.mjs +49 -0
  62. package/dist/Title-4ea6531d.mjs.map +1 -0
  63. package/dist/TodoNode-9696576f.mjs +44 -0
  64. package/dist/TodoNode-9696576f.mjs.map +1 -0
  65. package/dist/Topic-5c1f63eb.mjs +41 -0
  66. package/dist/Topic-5c1f63eb.mjs.map +1 -0
  67. package/dist/Transition-3485737d.mjs +15 -0
  68. package/dist/Transition-3485737d.mjs.map +1 -0
  69. package/dist/Warning-5cbf4ef9.mjs +47 -0
  70. package/dist/Warning-5cbf4ef9.mjs.map +1 -0
  71. package/dist/basereference-dc2b6871.mjs +42 -0
  72. package/dist/basereference-dc2b6871.mjs.map +1 -0
  73. package/dist/{entry.js → entry-185f60c1.mjs} +7937 -6939
  74. package/dist/entry-185f60c1.mjs.map +1 -0
  75. package/dist/methods-f5038371.mjs +69 -0
  76. package/dist/methods-f5038371.mjs.map +1 -0
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +12 -0
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -0
  80. package/package.json +8 -9
  81. package/dist/Admonition.js +0 -72
  82. package/dist/Admonition.js.map +0 -1
  83. package/dist/BlockQuote.js +0 -42
  84. package/dist/BlockQuote.js.map +0 -1
  85. package/dist/CaptionNumber.js +0 -70
  86. package/dist/CaptionNumber.js.map +0 -1
  87. package/dist/ColumnGroup.js +0 -44
  88. package/dist/ColumnGroup.js.map +0 -1
  89. package/dist/Comment.js +0 -34
  90. package/dist/Comment.js.map +0 -1
  91. package/dist/Compound.js +0 -38
  92. package/dist/Compound.js.map +0 -1
  93. package/dist/Container.js +0 -79
  94. package/dist/Container.js.map +0 -1
  95. package/dist/DirectElementMap.js +0 -22
  96. package/dist/DirectElementMap.js.map +0 -1
  97. package/dist/DownloadReference.js +0 -47
  98. package/dist/DownloadReference.js.map +0 -1
  99. package/dist/Figure.js +0 -54
  100. package/dist/Figure.js.map +0 -1
  101. package/dist/FigureCaption.js +0 -76
  102. package/dist/FigureCaption.js.map +0 -1
  103. package/dist/Footnote.js +0 -44
  104. package/dist/Footnote.js.map +0 -1
  105. package/dist/FootnoteReference.js +0 -48
  106. package/dist/FootnoteReference.js.map +0 -1
  107. package/dist/Image.js +0 -52
  108. package/dist/Image.js.map +0 -1
  109. package/dist/Legend.js +0 -44
  110. package/dist/Legend.js.map +0 -1
  111. package/dist/LineBlock.js +0 -44
  112. package/dist/LineBlock.js.map +0 -1
  113. package/dist/LineSingle.js +0 -45
  114. package/dist/LineSingle.js.map +0 -1
  115. package/dist/Literal.js +0 -63
  116. package/dist/Literal.js.map +0 -1
  117. package/dist/LiteralBlock.js +0 -49
  118. package/dist/LiteralBlock.js.map +0 -1
  119. package/dist/Math.js +0 -25
  120. package/dist/Math.js.map +0 -1
  121. package/dist/MathBlock.js +0 -77
  122. package/dist/MathBlock.js.map +0 -1
  123. package/dist/Note.js +0 -47
  124. package/dist/Note.js.map +0 -1
  125. package/dist/NumberReference.js +0 -59
  126. package/dist/NumberReference.js.map +0 -1
  127. package/dist/Problematic.js +0 -44
  128. package/dist/Problematic.js.map +0 -1
  129. package/dist/Raw.js +0 -10
  130. package/dist/Raw.js.map +0 -1
  131. package/dist/Reference.js +0 -58
  132. package/dist/Reference.js.map +0 -1
  133. package/dist/Section.js +0 -52
  134. package/dist/Section.js.map +0 -1
  135. package/dist/Skip.js +0 -18
  136. package/dist/Skip.js.map +0 -1
  137. package/dist/StandardElement.js +0 -99
  138. package/dist/StandardElement.js.map +0 -1
  139. package/dist/Text.js +0 -23
  140. package/dist/Text.js.map +0 -1
  141. package/dist/Title.js +0 -65
  142. package/dist/Title.js.map +0 -1
  143. package/dist/TodoNode.js +0 -53
  144. package/dist/TodoNode.js.map +0 -1
  145. package/dist/Topic.js +0 -48
  146. package/dist/Topic.js.map +0 -1
  147. package/dist/Transition.js +0 -9
  148. package/dist/Transition.js.map +0 -1
  149. package/dist/Warning.js +0 -55
  150. package/dist/Warning.js.map +0 -1
  151. package/dist/basereference.js +0 -41
  152. package/dist/basereference.js.map +0 -1
  153. package/dist/entry.js.map +0 -1
  154. package/dist/methods.js +0 -138
  155. package/dist/methods.js.map +0 -1
  156. package/dist/vue3-sphinx-xml.es.js +0 -8
  157. package/dist/vue3-sphinx-xml.es.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ import { toRefs as v, ref as h, computed as y, openBlock as o, createElementBlock as s, mergeProps as k, unref as a, Fragment as C, renderList as b, createBlock as g, resolveDynamicComponent as j } from "vue";
2
+ import { u as x } from "./methods-f5038371.mjs";
3
+ import { u as B, a as N } from "./entry-185f60c1.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const O = ["id"], q = {
10
+ __name: "Admonition",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(p) {
24
+ const c = p, { node: e } = v(c), n = h({}), { dataObject: i, extractId: m } = x(), { classes: l } = B(e), { id: u } = m(e.value), { children: d } = N(e), f = y(() => ["admonition", ...l.value]), r = i(e.value, f.value);
25
+ return n.value = {
26
+ ...r.attrs,
27
+ class: r.class.join(" ")
28
+ }, (A, D) => (o(), s("div", k({ id: a(u) }, n.value), [
29
+ (o(!0), s(C, null, b(a(d), (t, _) => (o(), g(j(t.component), {
30
+ key: "admonition_component_" + _,
31
+ node: t.node,
32
+ componentName: t.name,
33
+ properties: t.properties
34
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
35
+ ], 16, O));
36
+ }
37
+ };
38
+ export {
39
+ q as default
40
+ };
41
+ //# sourceMappingURL=Admonition-4dbe3f53.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Admonition-4dbe3f53.mjs","sources":["../src/components/templates/Admonition.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'admonition_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { dataObject, extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['admonition', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\n\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n}\n</script>\n"],"names":["node","toRefs","props","attrs","ref","dataObject","extractId","useMethods","classes","useClasses","id","children","useChildren","combinedClasses","computed","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GAEd,EAAE,YAAAC,GAAY,WAAAC,EAAW,IAAGC,EAAY,GACxC,EAAE,SAAAC,EAAO,IAAKC,EAAWT,CAAI,GAE7B,EAAE,IAAAU,EAAI,IAAGJ,EAAUN,EAAK,KAAK,GAE7B,EAAE,UAAAW,EAAQ,IAAKC,EAAYZ,CAAI,GAE/Ba,IAAkBC,EAAS,MACxB,CAAC,cAAc,GAAGN,EAAQ,KAAK,CACvC,GAEKO,IAASV,EAAWL,EAAK,OAAOa,EAAgB,KAAK;AAE3D,WAAAV,EAAM,QAAQ;AAAA,MACZ,GAAGY,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC9B;;;;;;;;;;"}
@@ -0,0 +1,39 @@
1
+ import { toRefs as c, openBlock as o, createElementBlock as t, createElementVNode as i, Fragment as s, renderList as u, unref as a, createBlock as d, resolveDynamicComponent as f } from "vue";
2
+ import { a as _ } from "./entry-185f60c1.mjs";
3
+ import "@hsorby/vue3-katex";
4
+ import "katex/dist/katex.min.css";
5
+ import "vue-router";
6
+ import "axios";
7
+ import "path-to-regexp";
8
+ const x = {
9
+ __name: "BlockQuote",
10
+ props: {
11
+ node: {
12
+ type: void 0,
13
+ default: null
14
+ },
15
+ componentName: {
16
+ type: String
17
+ },
18
+ properties: {
19
+ type: Object
20
+ }
21
+ },
22
+ setup(n) {
23
+ const r = n, { node: p } = c(r), { children: m } = _(p);
24
+ return (k, y) => (o(), t("blockquote", null, [
25
+ i("div", null, [
26
+ (o(!0), t(s, null, u(a(m), (e, l) => (o(), d(f(e.component), {
27
+ key: "blockquote_component_" + l,
28
+ node: e.node,
29
+ componentName: e.name,
30
+ properties: e.properties
31
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
32
+ ])
33
+ ]));
34
+ }
35
+ };
36
+ export {
37
+ x as default
38
+ };
39
+ //# sourceMappingURL=BlockQuote-0b464fcb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockQuote-0b464fcb.mjs","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'blockquote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n </blockquote>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["node","toRefs","props","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI;;;;;;;;;;;;;"}
@@ -0,0 +1,41 @@
1
+ import { toRefs as d, ref as f, computed as _, openBlock as o, createElementBlock as s, normalizeProps as v, guardReactiveProps as b, Fragment as y, renderList as C, unref as h, createBlock as k, resolveDynamicComponent as N } from "vue";
2
+ import { u as g, a as j } from "./entry-185f60c1.mjs";
3
+ import { u as B } from "./methods-f5038371.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const S = {
10
+ __name: "CaptionNumber",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(a) {
24
+ const p = a, { dataObject: c } = B(), { node: t } = d(p), n = f({}), { classes: m } = g(t), { children: u } = j(t), l = _(() => ["caption-number", ...m.value]), r = c(t.value, l.value);
25
+ return n.value = {
26
+ ...r.attrs,
27
+ class: r.class.join(" ")
28
+ }, (x, O) => (o(), s("span", v(b(n.value)), [
29
+ (o(!0), s(y, null, C(h(u), (e, i) => (o(), k(N(e.component), {
30
+ key: "caption_number_" + i,
31
+ node: e.node,
32
+ componentName: e.name,
33
+ properties: e.properties
34
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
35
+ ], 16));
36
+ }
37
+ };
38
+ export {
39
+ S as default
40
+ };
41
+ //# sourceMappingURL=CaptionNumber-02430764.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaptionNumber-02430764.mjs","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":["dataObject","useMethods","node","toRefs","props","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,YAAAA,EAAY,IAAGC,EAAY,GAC7B,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWN,CAAI,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAE/BS,IAAkBC,EAAS,MACxB,CAAC,kBAAkB,GAAGL,EAAQ,KAAK,CAC3C,GAEKM,IAASb,EAAWE,EAAK,OAAOS,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGQ,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { toRefs as m, computed as a, openBlock as n, createElementBlock as l, Fragment as i, renderList as d, normalizeStyle as f } from "vue";
2
+ const _ = {
3
+ __name: "ColumnGroup",
4
+ props: {
5
+ node: {
6
+ type: void 0,
7
+ default: null
8
+ },
9
+ componentName: {
10
+ type: String
11
+ },
12
+ properties: {
13
+ type: Object
14
+ }
15
+ },
16
+ setup(u) {
17
+ const s = u, { properties: c } = m(s), p = a(() => {
18
+ let o = 0, r = [];
19
+ for (const e of c.value.colspecs)
20
+ o += Number(e), r.push(Number(e));
21
+ let t = [];
22
+ for (const e of r)
23
+ t.push(e / o * 100);
24
+ return t;
25
+ });
26
+ return (o, r) => (n(), l("colgroup", null, [
27
+ (n(!0), l(i, null, d(p.value, (t, e) => (n(), l("col", {
28
+ key: "col_" + e,
29
+ style: f("width: " + t + "%")
30
+ }, null, 4))), 128))
31
+ ]));
32
+ }
33
+ };
34
+ export {
35
+ _ as default
36
+ };
37
+ //# sourceMappingURL=ColumnGroup-baa1b99b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnGroup-baa1b99b.mjs","sources":["../src/components/templates/ColumnGroup.vue"],"sourcesContent":["<template>\n <colgroup>\n <col\n v-for=\"(v, index) in columnWidths\"\n :key=\"'col_' + index\"\n :style=\"'width: ' + v + '%'\"\n />\n </colgroup>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { properties } = toRefs(props)\n\nconst columnWidths = computed(() => {\n let sum = 0\n let widths = []\n for (const value of properties.value.colspecs) {\n sum += Number(value)\n widths.push(Number(value))\n }\n let percentWidths = []\n for (const value of widths) {\n percentWidths.push((value / sum) * 100)\n }\n\n return percentWidths\n})\n</script>\n"],"names":["properties","toRefs","props","columnWidths","computed","sum","widths","value","percentWidths"],"mappings":";;;;;;;;;;;;;;;;iBA0BM,EAAE,YAAAA,EAAU,IAAKC,EAAOC,CAAK,GAE7BC,IAAeC,EAAS,MAAM;AAClC,UAAIC,IAAM,GACNC,IAAS,CAAE;AACf,iBAAWC,KAASP,EAAW,MAAM;AACnC,QAAAK,KAAO,OAAOE,CAAK,GACnBD,EAAO,KAAK,OAAOC,CAAK,CAAC;AAE3B,UAAIC,IAAgB,CAAE;AACtB,iBAAWD,KAASD;AAClB,QAAAE,EAAc,KAAMD,IAAQF,IAAO,GAAG;AAGxC,aAAOG;AAAA,IACT,CAAC;;;;;;;;;"}
@@ -0,0 +1,31 @@
1
+ import { createCommentVNode as r, toRefs as p, ref as s, openBlock as a, createBlock as u } from "vue";
2
+ const l = {
3
+ props: ["content"],
4
+ setup(e) {
5
+ return () => r(e.content || "");
6
+ }
7
+ }, f = {
8
+ __name: "Comment",
9
+ props: {
10
+ node: {
11
+ type: void 0,
12
+ default: null
13
+ },
14
+ componentName: {
15
+ type: String
16
+ },
17
+ properties: {
18
+ type: Object
19
+ }
20
+ },
21
+ setup(e) {
22
+ const o = e, { node: c } = p(o), t = s("");
23
+ for (const n of c.value.childNodes)
24
+ t.value += n.nodeValue;
25
+ return (n, m) => (a(), u(l, { content: t.value }, null, 8, ["content"]));
26
+ }
27
+ };
28
+ export {
29
+ f as default
30
+ };
31
+ //# sourceMappingURL=Comment-f2157760.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Comment-f2157760.mjs","sources":["../src/components/CommentNode.vue","../src/components/templates/Comment.vue"],"sourcesContent":["<script>\n import { createCommentVNode } from 'vue'\n export default {\n props: ['content'],\n setup(props) {\n return () => createCommentVNode(props.content || '')\n }\n }\n</script>","<template>\n <comment-node :content=\"text\" />\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\nimport CommentNode from '../CommentNode.vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst text = ref('')\n\nfor (const n of node.value.childNodes) {\n text.value += n.nodeValue\n}\n</script>\n"],"names":["_sfc_main","props","createCommentVNode","node","toRefs","text","ref"],"mappings":";AAEE,MAAKA,IAAU;AAAA,EACb,OAAO,CAAC,SAAS;AAAA,EACjB,MAAMC,GAAO;AACX,WAAO,MAAMC,EAAmBD,EAAM,WAAW,EAAE;AAAA,EACrD;AACF;;;;;;;;;;;;;;;iBCcI,EAAE,MAAAE,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAOC,EAAI,EAAE;AAEnB,eAAW,KAAKH,EAAK,MAAM;AACzB,MAAAE,EAAK,SAAS,EAAE;;;;"}
@@ -0,0 +1,35 @@
1
+ import { toRefs as c, openBlock as o, createElementBlock as i, Fragment as s, renderList as a, unref as l, createBlock as u, resolveDynamicComponent as d } from "vue";
2
+ import { a as f } from "./entry-185f60c1.mjs";
3
+ import "@hsorby/vue3-katex";
4
+ import "katex/dist/katex.min.css";
5
+ import "vue-router";
6
+ import "axios";
7
+ import "path-to-regexp";
8
+ const b = {
9
+ __name: "Compound",
10
+ props: {
11
+ node: {
12
+ type: void 0,
13
+ default: null
14
+ },
15
+ componentName: {
16
+ type: String
17
+ },
18
+ properties: {
19
+ type: Object
20
+ }
21
+ },
22
+ setup(n) {
23
+ const t = n, { node: r } = c(t), { children: p } = f(r);
24
+ return (_, y) => (o(!0), i(s, null, a(l(p), (e, m) => (o(), u(d(e.component), {
25
+ key: "compound_component_" + m,
26
+ node: e.node,
27
+ componentName: e.name,
28
+ properties: e.properties
29
+ }, null, 8, ["node", "componentName", "properties"]))), 128));
30
+ }
31
+ };
32
+ export {
33
+ b as default
34
+ };
35
+ //# sourceMappingURL=Compound-ae2a8a98.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Compound-ae2a8a98.mjs","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["node","toRefs","props","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBA6BM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI;;;;;;;;;"}
@@ -0,0 +1,55 @@
1
+ import { toRefs as g, ref as s, onMounted as y, openBlock as a, createElementBlock as u, mergeProps as b, toHandlerKey as h, Fragment as k, renderList as x, unref as C, createBlock as E, resolveDynamicComponent as S } from "vue";
2
+ import { _ as N, a as B, u as H } from "./entry-185f60c1.mjs";
3
+ import { u as A } from "./methods-f5038371.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const I = {
10
+ __name: "Container",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(p) {
24
+ const d = p, { node: l } = g(d), { children: m } = B(l), { classes: t } = H(l), { toggleActiveClass: _ } = A(), n = s([]), r = s(!1), i = s(null);
25
+ n.value = [...t.value];
26
+ function f() {
27
+ _(n.value);
28
+ let c = n.value.indexOf("active") === -1 ? "none" : "block", e = i.value.nextElementSibling;
29
+ for (; e !== null; )
30
+ e.style.display = c, e = e.nextElementSibling;
31
+ }
32
+ return y(() => {
33
+ if (t.value.includes("header") || t.value.includes("header-left")) {
34
+ n.value.push("inactive");
35
+ const o = l.value.parentElement;
36
+ o && o.getAttribute("classes").includes("toggle") && (r.value = !0, n.value.push("toggle-header"));
37
+ }
38
+ t.value.includes("tab2name") && console.log("***** IN USE tab2name found ??? *****");
39
+ }), (o, c) => (a(), u("div", b({ class: n.value }, { [h(r.value && "click")]: f }, {
40
+ ref_key: "containerElement",
41
+ ref: i
42
+ }), [
43
+ (a(!0), u(k, null, x(C(m), (e, v) => (a(), E(S(e.component), {
44
+ key: "container_component_" + v,
45
+ node: e.node,
46
+ componentName: e.name,
47
+ properties: e.properties
48
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
49
+ ], 16));
50
+ }
51
+ }, L = /* @__PURE__ */ N(I, [["__scopeId", "data-v-6c083687"]]);
52
+ export {
53
+ L as default
54
+ };
55
+ //# sourceMappingURL=Container-19a7431d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container-19a7431d.mjs","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { onMounted, ref, toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('***** IN USE tab2name found ??? *****')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":["node","toRefs","props","children","useChildren","classes","useClasses","toggleActiveClass","useMethods","combinedClasses","ref","isToggleHeader","containerElement","toggleHeaderClicked","blockType","elementSibling","onMounted","parent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAoCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,SAAAK,EAAO,IAAKC,EAAWN,CAAI,GAC7B,EAAE,mBAAAO,EAAmB,IAAGC,EAAY,GAEpCC,IAAkBC,EAAI,EAAE,GACxBC,IAAiBD,EAAI,EAAK,GAC1BE,IAAmBF,EAAI,IAAI;AAEjC,IAAAD,EAAgB,QAAQ,CAAC,GAAGJ,EAAQ,KAAK;AAEzC,aAASQ,IAAsB;AAC7B,MAAAN,EAAkBE,EAAgB,KAAK;AAEvC,UAAIK,IADUL,EAAgB,MAAM,QAAQ,QAAQ,MAC1B,KAAK,SAAS,SAEpCM,IAAiBH,EAAiB,MAAM;AAC5C,aAAOG,MAAmB;AACxB,QAAAA,EAAe,MAAM,UAAUD,GAC/BC,IAAiBA,EAAe;AAAA,IAEpC;AAEA,WAAAC,EAAU,MAAM;AACd,UACEX,EAAQ,MAAM,SAAS,QAAQ,KAC/BA,EAAQ,MAAM,SAAS,aAAa,GACpC;AACA,QAAAI,EAAgB,MAAM,KAAK,UAAU;AACrC,cAAMQ,IAASjB,EAAK,MAAM;AAC1B,QAAIiB,KACEA,EAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,MAClDN,EAAe,QAAQ,IACvBF,EAAgB,MAAM,KAAK,eAAe;AAAA,MAG/C;AAED,MAAIJ,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;AAAA,IAEvD,CAAC;;;;;;;;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { openBlock as n, createBlock as o, resolveDynamicComponent as r, withCtx as a, createElementBlock as m, Fragment as l, renderList as c } from "vue";
2
+ const _ = {
3
+ __name: "DirectElementMap",
4
+ setup(s) {
5
+ return (t, i) => (n(), o(r(t.tag), null, {
6
+ default: a(() => [
7
+ (n(!0), m(l, null, c(t.children, (e, p) => (n(), o(r(e.component), {
8
+ key: "standard_element_component_" + p,
9
+ node: e.node,
10
+ componentName: e.name,
11
+ properties: e.properties
12
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
13
+ ]),
14
+ _: 1
15
+ }));
16
+ }
17
+ };
18
+ export {
19
+ _ as default
20
+ };
21
+ //# sourceMappingURL=DirectElementMap-4c6f8e80.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectElementMap-4c6f8e80.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,40 @@
1
+ import { toRefs as m, computed as d, ref as f, openBlock as h, createElementBlock as g, normalizeClass as v, toDisplayString as _ } from "vue";
2
+ import { useRoute as w } from "vue-router";
3
+ import { b as R, d as S } from "./entry-185f60c1.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "axios";
7
+ import "path-to-regexp";
8
+ const b = ["href", "download"], L = {
9
+ __name: "DownloadReference",
10
+ props: {
11
+ node: {
12
+ type: void 0,
13
+ default: null
14
+ },
15
+ componentName: {
16
+ type: String
17
+ }
18
+ },
19
+ setup(s) {
20
+ const a = s, { node: t } = m(a), l = w(), i = R(), c = d(() => {
21
+ let e = t.value.getAttribute("filename");
22
+ if (e && !e.startsWith("/") && !e.startsWith("http")) {
23
+ const n = S(l);
24
+ e = [i.getDownloadURL(n), e].join(
25
+ "/"
26
+ );
27
+ }
28
+ return e;
29
+ }), r = t.value.getAttribute("reftarget").split("/"), u = r[r.length - 1], p = ["reference", "internal", t.value.getAttribute("reftype")], o = f("not-set");
30
+ return o.value = u, (e, n) => (h(), g("a", {
31
+ href: c.value,
32
+ download: o.value,
33
+ class: v(p)
34
+ }, _(o.value), 9, b));
35
+ }
36
+ };
37
+ export {
38
+ L as default
39
+ };
40
+ //# sourceMappingURL=DownloadReference-1df41bf0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadReference-1df41bf0.mjs","sources":["../src/components/templates/DownloadReference.vue"],"sourcesContent":["<template>\n <a :href=\"href\" :download=\"saveFilename\" :class=\"classes\">{{\n saveFilename\n }}</a>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst { node } = toRefs(props)\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\n\nconst href = computed(() => {\n let downloadHref = node.value.getAttribute('filename')\n if (\n downloadHref &&\n !downloadHref.startsWith('/') &&\n !downloadHref.startsWith('http')\n ) {\n const routeURL = determineRouteUrl(route)\n downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join(\n '/',\n )\n }\n return downloadHref\n})\n\nconst targetParts = node.value.getAttribute('reftarget').split('/')\nconst downloadName = targetParts[targetParts.length - 1]\nconst classes = ['reference', 'internal', node.value.getAttribute('reftype')]\n\n// Need to use a refernce variable in the template bound attributes.\nconst saveFilename = ref('not-set')\nsaveFilename.value = downloadName\n</script>\n"],"names":["node","toRefs","props","route","useRoute","sphinxStore","useSphinxStore","href","computed","downloadHref","routeURL","determineRouteUrl","targetParts","downloadName","classes","saveFilename","ref"],"mappings":";;;;;;;;;;;;;;;;;;;iBAuBM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAU,GAClBC,IAAcC,EAAgB,GAE9BC,IAAOC,EAAS,MAAM;AAC1B,UAAIC,IAAeT,EAAK,MAAM,aAAa,UAAU;AACrD,UACES,KACA,CAACA,EAAa,WAAW,GAAG,KAC5B,CAACA,EAAa,WAAW,MAAM,GAC/B;AACA,cAAMC,IAAWC,EAAkBR,CAAK;AACxC,QAAAM,IAAe,CAACJ,EAAY,eAAeK,CAAQ,GAAGD,CAAY,EAAE;AAAA,UAClE;AAAA,QACD;AAAA,MACF;AACD,aAAOA;AAAA,IACT,CAAC,GAEKG,IAAcZ,EAAK,MAAM,aAAa,WAAW,EAAE,MAAM,GAAG,GAC5Da,IAAeD,EAAYA,EAAY,SAAS,CAAC,GACjDE,IAAU,CAAC,aAAa,YAAYd,EAAK,MAAM,aAAa,SAAS,CAAC,GAGtEe,IAAeC,EAAI,SAAS;AAClC,WAAAD,EAAa,QAAQF;;;;;;;"}
@@ -0,0 +1,43 @@
1
+ import { toRefs as f, ref as v, computed as g, openBlock as n, createElementBlock as a, normalizeProps as _, guardReactiveProps as h, Fragment as y, renderList as b, unref as k, createBlock as C, resolveDynamicComponent as B } from "vue";
2
+ import { u as N, a as j } from "./entry-185f60c1.mjs";
3
+ import { u as x } from "./methods-f5038371.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const M = {
10
+ __name: "Figure",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(p) {
24
+ const u = p, { dataObject: m } = x(), { node: e } = f(u), s = v({}), { classes: c } = N(e), { children: i } = j(e), l = g(() => {
25
+ let o = [...c.value];
26
+ for (const r of e.value.attributes)
27
+ r.name === "align" && o.push("align-" + r.value);
28
+ return o;
29
+ });
30
+ return s.value = m(e.value, l.value).attrs, (o, r) => (n(), a("figure", _(h(s.value)), [
31
+ (n(!0), a(y, null, b(k(i), (t, d) => (n(), C(B(t.component), {
32
+ key: "figure_component_" + d,
33
+ node: t.node,
34
+ componentName: t.name,
35
+ properties: t.properties
36
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
37
+ ], 16));
38
+ }
39
+ };
40
+ export {
41
+ M as default
42
+ };
43
+ //# sourceMappingURL=Figure-12e7efef.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Figure-12e7efef.mjs","sources":["../src/components/templates/Figure.vue"],"sourcesContent":["<template>\n <figure :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </figure>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinerdClasses = computed(() => {\n let c = [...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nattrs.value = dataObject(node.value, combinerdClasses.value).attrs\n</script>\n"],"names":["dataObject","useMethods","node","toRefs","props","attrs","ref","classes","useClasses","children","useChildren","combinerdClasses","computed","c","attr"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,YAAAA,EAAY,IAAGC,EAAY,GAC7B,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWN,CAAI,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAE/BS,IAAmBC,EAAS,MAAM;AACtC,UAAIC,IAAI,CAAC,GAAGN,EAAQ,KAAK;AACzB,iBAAWO,KAAQZ,EAAK,MAAM;AAC5B,QAAIY,EAAK,SAAS,WAChBD,EAAE,KAAK,WAAWC,EAAK,KAAK;AAGhC,aAAOD;AAAA,IACT,CAAC;AAED,WAAAR,EAAM,QAAQL,EAAWE,EAAK,OAAOS,EAAiB,KAAK,EAAE;;;;;;;;;;"}
@@ -0,0 +1,46 @@
1
+ import { toRefs as v, ref as g, computed as _, openBlock as r, createElementBlock as p, normalizeProps as h, guardReactiveProps as y, Fragment as C, renderList as b, unref as k, createBlock as j, resolveDynamicComponent as B } from "vue";
2
+ import { u as N, a as x } from "./entry-185f60c1.mjs";
3
+ import { u as F } from "./methods-f5038371.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const S = {
10
+ __name: "FigureCaption",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(c) {
24
+ const i = c, { dataObject: u } = F(), { node: e } = v(i), s = g({}), { classes: l } = N(e), { children: m } = x(e), d = _(() => {
25
+ let o = ["figure-caption", ...l.value];
26
+ for (const n of e.value.attributes)
27
+ n.name === "align" && o.push("align-" + n.value);
28
+ return o;
29
+ }), a = u(e.value, d.value);
30
+ return s.value = {
31
+ ...a.attrs,
32
+ class: a.class.join(" ")
33
+ }, (o, n) => (r(), p("span", h(y(s.value)), [
34
+ (r(!0), p(C, null, b(k(m), (t, f) => (r(), j(B(t.component), {
35
+ key: "figure_caption_" + f,
36
+ node: t.node,
37
+ componentName: t.name,
38
+ properties: t.properties
39
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
40
+ ], 16));
41
+ }
42
+ };
43
+ export {
44
+ S as default
45
+ };
46
+ //# sourceMappingURL=FigureCaption-7b351f25.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FigureCaption-7b351f25.mjs","sources":["../src/components/templates/FigureCaption.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_caption_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n let c = ['figure-caption', ...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n</script>\n"],"names":["dataObject","useMethods","node","toRefs","props","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","c","attr","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,YAAAA,EAAY,IAAGC,EAAY,GAC7B,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWN,CAAI,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAE/BS,IAAkBC,EAAS,MAAM;AACrC,UAAIC,IAAI,CAAC,kBAAkB,GAAGN,EAAQ,KAAK;AAC3C,iBAAWO,KAAQZ,EAAK,MAAM;AAC5B,QAAIY,EAAK,SAAS,WAChBD,EAAE,KAAK,WAAWC,EAAK,KAAK;AAGhC,aAAOD;AAAA,IACT,CAAC,GAEKE,IAASf,EAAWE,EAAK,OAAOS,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGU,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;"}
@@ -0,0 +1,38 @@
1
+ import { toRefs as i, ref as l, openBlock as o, createElementBlock as r, normalizeProps as u, guardReactiveProps as d, Fragment as f, renderList as _, unref as v, createBlock as y, resolveDynamicComponent as h } from "vue";
2
+ import { u as k } from "./methods-f5038371.mjs";
3
+ import { a as g } from "./entry-185f60c1.mjs";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const z = {
10
+ __name: "Footnote",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(p) {
24
+ const a = p, { node: t } = i(a), { children: m } = g(t), { dataObject: s } = k(), n = l({});
25
+ return n.value = s(t.value, ["footnote"]).attrs, (B, N) => (o(), r("div", u(d(n.value)), [
26
+ (o(!0), r(f, null, _(v(m), (e, c) => (o(), y(h(e.component), {
27
+ key: "footnote_component_" + c,
28
+ node: e.node,
29
+ componentName: e.name,
30
+ properties: e.properties
31
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
32
+ ], 16));
33
+ }
34
+ };
35
+ export {
36
+ z as default
37
+ };
38
+ //# sourceMappingURL=Footnote-e4b02243.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footnote-e4b02243.mjs","sources":["../src/components/templates/Footnote.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['footnote']).attrs // import { h } from 'vue'\n</script>\n"],"names":["node","toRefs","props","children","useChildren","dataObject","useMethods","attrs","ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,YAAAK,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAI,EAAE;AAEpB,WAAAD,EAAM,QAAQF,EAAWL,EAAK,OAAO,CAAC,UAAU,CAAC,EAAE;;;;;;;;;;"}
@@ -0,0 +1,44 @@
1
+ import { ref as m, toRefs as f, onMounted as l, resolveComponent as _, unref as t, openBlock as n, createBlock as d, withCtx as h, createTextVNode as k, toDisplayString as r, createElementBlock as x } from "vue";
2
+ import { useRoute as R } from "vue-router";
3
+ import { u as y } from "./methods-f5038371.mjs";
4
+ import { u as C } from "./basereference-dc2b6871.mjs";
5
+ import "./entry-185f60c1.mjs";
6
+ import "@hsorby/vue3-katex";
7
+ import "katex/dist/katex.min.css";
8
+ import "axios";
9
+ import "path-to-regexp";
10
+ const g = ["href"], I = {
11
+ __name: "FootnoteReference",
12
+ props: {
13
+ node: {
14
+ type: void 0,
15
+ default: null
16
+ },
17
+ componentName: {
18
+ type: String
19
+ }
20
+ },
21
+ setup(s) {
22
+ const c = s, o = m({ path: "", hash: "" }), { node: e } = f(c), a = R(), { isInternalReference: p } = y(), { onReferenceCreated: u } = C(e.value, a, o);
23
+ return l(u), (B, v) => {
24
+ const i = _("router-link");
25
+ return t(p)(t(e)) ? (n(), d(i, {
26
+ key: 0,
27
+ to: o.value
28
+ }, {
29
+ default: h(() => [
30
+ k(" [" + r(t(e).textContent) + "] ", 1)
31
+ ]),
32
+ _: 1
33
+ }, 8, ["to"])) : (n(), x("a", {
34
+ key: 1,
35
+ href: t(e).getAttribute("refuri"),
36
+ target: "_blank"
37
+ }, " [" + r(t(e).textContent) + "] ", 9, g));
38
+ };
39
+ }
40
+ };
41
+ export {
42
+ I as default
43
+ };
44
+ //# sourceMappingURL=FootnoteReference-b5b67601.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FootnoteReference-b5b67601.mjs","sources":["../src/components/templates/FootnoteReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n [{{ node.textContent }}]\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n [{{ node.textContent }}]\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"names":["routeDescription","ref","node","toRefs","props","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA0BMA,IAAmBC,EAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC,GAC3C,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAU,GAElB,EAAE,qBAAAC,EAAqB,IAAGC,EAAY,GACtC,EAAE,oBAAAC,EAAoB,IAAGC,EAAiBR,EAAK,OAAOG,GAAOL,CAAgB;AAEnF,WAAAW,EAAUF,CAAkB;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,40 @@
1
+ import { toRefs as l, ref as d, computed as f, openBlock as g, createElementBlock as h, normalizeProps as v, guardReactiveProps as R } from "vue";
2
+ import { useRoute as x } from "vue-router";
3
+ import { a as _, b as I, d as b } from "./entry-185f60c1.mjs";
4
+ import { u as S } from "./methods-f5038371.mjs";
5
+ import "@hsorby/vue3-katex";
6
+ import "katex/dist/katex.min.css";
7
+ import "axios";
8
+ import "path-to-regexp";
9
+ const P = {
10
+ __name: "Image",
11
+ props: {
12
+ node: {
13
+ type: void 0,
14
+ default: null
15
+ },
16
+ componentName: {
17
+ type: String
18
+ },
19
+ properties: {
20
+ type: Object
21
+ }
22
+ },
23
+ setup(a) {
24
+ const n = a, { node: o } = l(n);
25
+ _(o);
26
+ const { dataObject: i } = S(), u = x(), p = I(), t = d({}), r = f(() => {
27
+ let e = o.value.getAttribute("uri");
28
+ if (e && !e.startsWith("/") && !e.startsWith("http")) {
29
+ const s = b(u), c = e.lastIndexOf("/"), m = e.slice(c);
30
+ e = [p.getImagesURL(s), m].join("/");
31
+ }
32
+ return e;
33
+ });
34
+ return t.value = i(o.value).attrs, t.value ? t.value.src = r : t.value = { src: r }, (e, s) => (g(), h("img", v(R(t.value)), null, 16));
35
+ }
36
+ };
37
+ export {
38
+ P as default
39
+ };
40
+ //# sourceMappingURL=Image-15e1e5bd.mjs.map