markdown-flow-ui 0.3.9 → 0.3.11

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 (50) hide show
  1. package/dist/_virtual/index8.cjs +1 -1
  2. package/dist/_virtual/index8.es.js +2 -2
  3. package/dist/_virtual/index9.cjs +1 -1
  4. package/dist/_virtual/index9.es.js +2 -2
  5. package/dist/assets/markdown-flow-ui.css +1 -1
  6. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  7. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  8. package/dist/components/ContentRender/ContentRender.d.ts +2 -0
  9. package/dist/components/ContentRender/ContentRender.es.js +365 -361
  10. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  11. package/dist/components/ContentRender/IframeSandbox.cjs +4 -4
  12. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  13. package/dist/components/ContentRender/IframeSandbox.d.ts +2 -0
  14. package/dist/components/ContentRender/IframeSandbox.es.js +286 -287
  15. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  16. package/dist/components/ContentRender/SandboxApp.cjs +2 -2
  17. package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
  18. package/dist/components/ContentRender/SandboxApp.d.ts +3 -2
  19. package/dist/components/ContentRender/SandboxApp.es.js +136 -116
  20. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  21. package/dist/components/ContentRender/locales/contentRender.json.cjs +1 -1
  22. package/dist/components/ContentRender/locales/contentRender.json.d.ts +11 -11
  23. package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -11
  24. package/dist/components/Slide/Player.cjs +1 -1
  25. package/dist/components/Slide/Player.cjs.map +1 -1
  26. package/dist/components/Slide/Player.es.js +319 -321
  27. package/dist/components/Slide/Player.es.js.map +1 -1
  28. package/dist/components/Slide/Slide.cjs +1 -1
  29. package/dist/components/Slide/Slide.cjs.map +1 -1
  30. package/dist/components/Slide/Slide.es.js +446 -452
  31. package/dist/components/Slide/Slide.es.js.map +1 -1
  32. package/dist/components/Slide/useWakePlayerFromIframe.cjs +1 -1
  33. package/dist/components/Slide/useWakePlayerFromIframe.cjs.map +1 -1
  34. package/dist/components/Slide/useWakePlayerFromIframe.es.js +32 -32
  35. package/dist/components/Slide/useWakePlayerFromIframe.es.js.map +1 -1
  36. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
  37. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
  38. package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +2 -1
  39. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +71 -25
  40. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
  41. package/dist/markdown-flow-ui.css +1 -1
  42. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  43. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  44. package/dist/node_modules/classnames/index.cjs +1 -1
  45. package/dist/node_modules/classnames/index.es.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs +0 -2
  48. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs.map +0 -1
  49. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js +0 -20
  50. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { jsxs as G, jsx as E } from "react/jsx-runtime";
2
- import { useRef as y, useState as K, useEffect as _ } from "react";
3
- import Q from "../ui/loading-overlay-card.es.js";
4
- import { getMarkdownFlowLanguage as J, getMarkdownFlowDirection as P } from "../../lib/locale.es.js";
5
- import { getContentRenderLocaleTexts as X } from "./contentRenderI18n.es.js";
6
- import { isAnchorElement as Y, shouldForceAnchorHrefToNewTab as j, mergeAnchorRelValue as F, resolveClosestAnchor as Z } from "./utils/link-targets.es.js";
7
- const ee = [
1
+ import { jsxs as ee, jsx as N } from "react/jsx-runtime";
2
+ import { useRef as v, useState as z, useEffect as L } from "react";
3
+ import te from "../ui/loading-overlay-card.es.js";
4
+ import { getMarkdownFlowLanguage as re, getMarkdownFlowDirection as ne } from "../../lib/locale.es.js";
5
+ import { getContentRenderLocaleTexts as oe } from "./contentRenderI18n.es.js";
6
+ import { isAnchorElement as se, shouldForceAnchorHrefToNewTab as V, mergeAnchorRelValue as B, resolveClosestAnchor as ie } from "./utils/link-targets.es.js";
7
+ const ce = [
8
8
  "src",
9
9
  "srcset",
10
10
  "sizes",
@@ -18,52 +18,51 @@ const ee = [
18
18
  "crossorigin",
19
19
  "referrerpolicy",
20
20
  "fetchpriority"
21
- ], M = (o) => ee.map(
22
- (t) => `${t}:${o.getAttribute(t) || ""}`
23
- ).join("|"), te = (o) => {
24
- const t = /* @__PURE__ */ new Map();
25
- return o.querySelectorAll("img").forEach((i) => {
26
- const c = i, n = M(c), a = t.get(n) || [];
27
- a.push(c), t.set(n, a);
28
- }), t;
29
- }, re = (o, t) => {
30
- const i = Array.from(o.attributes), c = new Set(
31
- i.map((n) => n.name)
21
+ ], ae = 400, W = (s) => ce.map(
22
+ (r) => `${r}:${s.getAttribute(r) || ""}`
23
+ ).join("|"), le = (s) => {
24
+ const r = /* @__PURE__ */ new Map();
25
+ return s.querySelectorAll("img").forEach((i) => {
26
+ const c = i, o = W(c), a = r.get(o) || [];
27
+ a.push(c), r.set(o, a);
28
+ }), r;
29
+ }, ue = (s, r) => {
30
+ const i = Array.from(s.attributes), c = new Set(
31
+ i.map((o) => o.name)
32
32
  );
33
- Array.from(t.attributes).forEach((n) => {
34
- c.has(n.name) || t.removeAttribute(n.name);
35
- }), i.forEach((n) => {
36
- t.setAttribute(n.name, n.value);
33
+ Array.from(r.attributes).forEach((o) => {
34
+ c.has(o.name) || r.removeAttribute(o.name);
35
+ }), i.forEach((o) => {
36
+ r.setAttribute(o.name, o.value);
37
37
  });
38
- }, ne = (o, t) => {
39
- t.size && o.querySelectorAll("img").forEach((i) => {
40
- const c = i, n = M(c), a = t.get(n), f = a?.shift();
41
- f && (re(c, f), c.replaceWith(f), a && a.length === 0 && t.delete(n));
38
+ }, fe = (s, r) => {
39
+ r.size && s.querySelectorAll("img").forEach((i) => {
40
+ const c = i, o = W(c), a = r.get(o), d = a?.shift();
41
+ d && (ue(c, d), c.replaceWith(d), a && a.length === 0 && r.delete(o));
42
42
  });
43
- }, oe = (o) => {
44
- const t = (o.match(/<script[\s>]/gi) || []).length, i = (o.match(/<\/script>/gi) || []).length;
45
- return t > 0 && t === i;
46
- }, fe = ({
47
- html: o,
48
- locale: t,
49
- dir: i,
50
- lang: c,
51
- loadingText: n,
52
- resetToken: a = 0,
53
- mode: f = "content",
54
- hasRootVhHeight: D = !1,
55
- stretchRootHeight: q = !1,
56
- enableScaling: S = !1,
57
- disableLoadingOverlay: z = !1,
58
- deferScripts: R = !1
43
+ }, we = ({
44
+ html: s,
45
+ hasPendingHtml: r = !1,
46
+ locale: i,
47
+ dir: c,
48
+ lang: o,
49
+ loadingText: a,
50
+ styleLoadingText: d,
51
+ scriptLoadingText: _,
52
+ resetToken: h = 0,
53
+ mode: O = "content",
54
+ hasRootVhHeight: $ = !1,
55
+ stretchRootHeight: G = !1,
56
+ enableScaling: x = !1,
57
+ disableLoadingOverlay: A = !1
59
58
  }) => {
60
- const U = X(t), v = y(null), [V, w] = K(!1), x = y([]), A = y([]), I = y(a);
61
- _(() => {
62
- const s = v.current?.ownerDocument;
63
- if (!s) return;
64
- const l = "sandbox-layout-style";
65
- let u = s.getElementById(l);
66
- u || (u = s.createElement("style"), u.id = l, s.head?.appendChild(u)), u.textContent = `
59
+ const K = oe(i), C = v(null), [m, E] = z(null), [Q, S] = z(!1), R = v([]), I = v([]), T = v(h);
60
+ L(() => {
61
+ const n = C.current?.ownerDocument;
62
+ if (!n) return;
63
+ const l = "sandbox-spinner-style";
64
+ let u = n.getElementById(l);
65
+ u || (u = n.createElement("style"), u.id = l, n.head?.appendChild(u)), u.textContent = `
67
66
  .sandbox-wrapper { align-items: center; }
68
67
  .sandbox-container { position: relative; width: 100%; }
69
68
  .sandbox-container svg,
@@ -83,112 +82,134 @@ const ee = [
83
82
  }
84
83
  .overflow-y-auto { overflow-y: visible !important; }
85
84
  `;
86
- }, []), _(() => {
87
- a !== I.current && (w(!1), I.current = a);
88
- const s = v.current;
89
- if (!s) return;
90
- const l = s.ownerDocument, u = l?.body;
85
+ }, []), L(() => {
86
+ h !== T.current && (S(!1), T.current = h);
87
+ const n = C.current;
88
+ if (!n) return;
89
+ const l = n.ownerDocument, u = l?.body;
91
90
  if (!u) return;
92
- const W = te(s);
93
- x.current.forEach((e) => e.remove()), x.current = [], A.current.forEach((e) => e.remove()), A.current = [];
94
- const h = l.createElement("div");
95
- h.innerHTML = o, h.querySelectorAll("a[href]").forEach((e) => {
96
- Y(e) && j(e.getAttribute("href")) && (e.setAttribute("target", "_blank"), e.setAttribute("rel", F(e.getAttribute("rel"))));
91
+ const Y = le(n);
92
+ R.current.forEach((e) => e.remove()), R.current = [], I.current.forEach((e) => e.remove()), I.current = [];
93
+ const p = l.createElement("div");
94
+ p.innerHTML = s, p.querySelectorAll("a[href]").forEach((e) => {
95
+ se(e) && V(e.getAttribute("href")) && (e.setAttribute("target", "_blank"), e.setAttribute("rel", B(e.getAttribute("rel"))));
97
96
  });
98
- const k = !R && oe(o), b = [];
99
- Array.from(h.querySelectorAll("style, script")).forEach((e) => {
97
+ const j = (s.match(/<script[\s>]/gi) || []).length, Z = (s.match(/<\/script>/gi) || []).length, H = j > 0 && j === Z, g = [];
98
+ Array.from(p.querySelectorAll("style, script")).forEach((e) => {
100
99
  if (e.tagName.toLowerCase() === "style") {
101
- const r = l.createElement("style");
102
- r.textContent = e.textContent || "", Array.from(e.attributes).forEach((d) => {
103
- r.setAttribute(d.name, d.value);
104
- }), b.push(r);
100
+ const t = l.createElement("style");
101
+ t.textContent = e.textContent || "", Array.from(e.attributes).forEach((f) => {
102
+ t.setAttribute(f.name, f.value);
103
+ }), g.push(t);
105
104
  } else {
106
- const r = l.createElement("script");
107
- Array.from(e.attributes).forEach((d) => {
108
- r.setAttribute(d.name, d.value);
109
- }), r.textContent = e.textContent || "", b.push(r);
105
+ const t = l.createElement("script");
106
+ Array.from(e.attributes).forEach((f) => {
107
+ t.setAttribute(f.name, f.value);
108
+ }), t.textContent = e.textContent || "", g.push(t);
110
109
  }
111
110
  e.remove();
112
- }), ne(h, W);
113
- const $ = b.some(
111
+ }), fe(p, Y);
112
+ const P = g.some(
113
+ (e) => e.tagName.toLowerCase() === "style"
114
+ ), M = g.some(
114
115
  (e) => e.tagName.toLowerCase() === "script"
115
- ), L = Array.from(h.childNodes), N = L.length > 0;
116
- w(N), s.replaceChildren(...L);
117
- const T = (e) => {
118
- const r = Z(e.target);
119
- r && j(r.getAttribute("href")) && (r.setAttribute("target", "_blank"), r.setAttribute(
116
+ );
117
+ E(M ? "script" : P ? "style" : null);
118
+ const F = Array.from(p.childNodes), D = F.length > 0;
119
+ S(D), n.replaceChildren(...F);
120
+ const U = (e) => {
121
+ const t = ie(e.target);
122
+ t && V(t.getAttribute("href")) && (t.setAttribute("target", "_blank"), t.setAttribute(
120
123
  "rel",
121
- F(r.getAttribute("rel"))
124
+ B(t.getAttribute("rel"))
122
125
  ));
123
126
  };
124
- s.addEventListener("click", T, !0);
125
- let m = null;
126
- const H = () => s.childNodes.length === 0 ? !1 : (w(!0), m?.disconnect(), m = null, !0);
127
- return !N && $ && k && (m = new MutationObserver(() => {
128
- H();
129
- }), m.observe(s, {
127
+ n.addEventListener("click", U, !0);
128
+ let y = null;
129
+ const q = () => n.childNodes.length === 0 ? !1 : (S(!0), y?.disconnect(), y = null, !0);
130
+ return !D && M && H && (y = new MutationObserver(() => {
131
+ q();
132
+ }), y.observe(n, {
130
133
  childList: !0,
131
134
  subtree: !0
132
- })), b.forEach((e) => {
135
+ })), g.forEach((e) => {
133
136
  if (e.tagName.toLowerCase() === "style") {
134
- l.head?.appendChild(e), x.current.push(e);
137
+ l.head?.appendChild(e), R.current.push(e);
135
138
  return;
136
139
  }
137
- if (k) {
138
- const r = e, d = r.textContent || "";
139
- if (!r.src)
140
+ if (H) {
141
+ const t = e, f = t.textContent || "";
142
+ if (!t.src)
140
143
  try {
141
- new Function(d);
144
+ new Function(f);
142
145
  } catch {
143
- r.remove();
146
+ t.remove();
144
147
  return;
145
148
  }
146
149
  try {
147
- u.appendChild(r), A.current.push(r);
150
+ u.appendChild(t), I.current.push(t);
148
151
  } catch {
149
- r.remove();
152
+ t.remove();
150
153
  }
151
154
  } else
152
155
  e.remove();
153
- }), H(), S && s.ownerDocument?.defaultView?.__mdf_triggerFitContent?.(), () => {
154
- m?.disconnect(), s.removeEventListener("click", T, !0);
156
+ }), q(), x && n.ownerDocument?.defaultView?.__mdf_triggerFitContent?.(), () => {
157
+ y?.disconnect(), n.removeEventListener("click", U, !0);
155
158
  };
156
- }, [o, a, S, R]);
157
- const p = !z && !V ? n || U.sandboxLoadingText : null, C = f === "blackboard", g = C && q, B = {
159
+ }, [s, h, x]), L(() => {
160
+ if (A) {
161
+ E(null);
162
+ return;
163
+ }
164
+ if (!m || r) return;
165
+ const n = window.setTimeout(
166
+ () => E(null),
167
+ ae
168
+ );
169
+ return () => window.clearTimeout(n);
170
+ }, [
171
+ A,
172
+ x,
173
+ r,
174
+ s,
175
+ m,
176
+ h
177
+ ]);
178
+ const b = A ? null : m === "script" && _ ? _ : m === "style" && d ? d : m || !Q ? a || K.sandboxLoadingText : null, k = O === "blackboard", w = k && G, J = {
158
179
  position: "relative",
159
180
  width: "100%",
160
181
  height: "100%",
161
182
  display: "flex",
162
183
  flexDirection: "column",
163
184
  // Keep blackboard scroll behavior while centering content in non-blackboard mode
164
- justifyContent: g ? "flex-start" : C ? "space-around" : "flex-start"
165
- }, O = {
166
- pointerEvents: p ? "none" : void 0,
167
- margin: C ? void 0 : "auto 0",
185
+ justifyContent: w ? "flex-start" : k ? "space-around" : "flex-start"
186
+ }, X = {
187
+ pointerEvents: b ? "none" : void 0,
188
+ margin: k ? void 0 : "auto 0",
168
189
  width: "100%",
169
- height: g ? "100%" : void 0,
170
- minHeight: g ? 0 : void 0,
171
- flex: g ? "1 1 auto" : void 0
190
+ height: w ? "100%" : void 0,
191
+ minHeight: w ? 0 : void 0,
192
+ flex: w ? "1 1 auto" : void 0
172
193
  };
173
- return /* @__PURE__ */ G(
194
+ return /* @__PURE__ */ ee(
174
195
  "div",
175
196
  {
176
- "data-root-vh": D ? "true" : "false",
197
+ "data-root-vh": $ ? "true" : "false",
177
198
  className: "sandbox-wrapper",
178
- dir: i ?? P(t),
179
- lang: c ?? J(t),
180
- style: B,
181
- "aria-busy": !!p,
199
+ dir: c ?? ne(i),
200
+ lang: o ?? re(i),
201
+ style: J,
202
+ "aria-busy": !!b,
182
203
  children: [
183
- /* @__PURE__ */ E(
204
+ /* @__PURE__ */ N(
184
205
  "div",
185
206
  {
186
- ref: v,
207
+ ref: C,
187
208
  className: "sandbox-container",
188
- style: O
209
+ style: X
189
210
  }
190
211
  ),
191
- p && /* @__PURE__ */ E(
212
+ b && /* @__PURE__ */ N(
192
213
  "div",
193
214
  {
194
215
  style: {
@@ -200,7 +221,7 @@ const ee = [
200
221
  justifyContent: "center",
201
222
  pointerEvents: "none"
202
223
  },
203
- children: /* @__PURE__ */ E(Q, { message: p })
224
+ children: /* @__PURE__ */ N(te, { message: b })
204
225
  }
205
226
  )
206
227
  ]
@@ -208,7 +229,6 @@ const ee = [
208
229
  );
209
230
  };
210
231
  export {
211
- fe as default,
212
- oe as hasCompleteScriptTags
232
+ we as default
213
233
  };
214
234
  //# sourceMappingURL=SandboxApp.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxApp.es.js","sources":["../../../src/components/ContentRender/SandboxApp.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport LoadingOverlayCard from \"../ui/loading-overlay-card\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport type { ScalingWindow } from \"./utils/iframe-scaling\";\nimport {\n isAnchorElement,\n mergeAnchorRelValue,\n resolveClosestAnchor,\n shouldForceAnchorHrefToNewTab,\n} from \"./utils/link-targets\";\n\nexport interface SandboxAppProps {\n html: string;\n locale?: MarkdownFlowLocale;\n /** Overrides the wrapper language without changing authored HTML language. */\n lang?: string;\n /** Overrides the wrapper direction while preserving explicit direction in authored HTML. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n loadingText?: string;\n resetToken?: number;\n mode?: \"content\" | \"blackboard\";\n hasRootVhHeight?: boolean;\n stretchRootHeight?: boolean;\n enableScaling?: boolean;\n disableLoadingOverlay?: boolean;\n}\n\nconst IMAGE_REUSE_ATTRIBUTES = [\n \"src\",\n \"srcset\",\n \"sizes\",\n \"alt\",\n \"class\",\n \"width\",\n \"height\",\n \"style\",\n \"loading\",\n \"decoding\",\n \"crossorigin\",\n \"referrerpolicy\",\n \"fetchpriority\",\n];\n\nconst getImageReuseKey = (image: HTMLImageElement) =>\n IMAGE_REUSE_ATTRIBUTES.map(\n (attribute) => `${attribute}:${image.getAttribute(attribute) || \"\"}`\n ).join(\"|\");\n\nconst collectReusableImages = (root: ParentNode) => {\n const imageMap = new Map<string, HTMLImageElement[]>();\n root.querySelectorAll(\"img\").forEach((node) => {\n const image = node as HTMLImageElement;\n const key = getImageReuseKey(image);\n const bucket = imageMap.get(key) || [];\n bucket.push(image);\n imageMap.set(key, bucket);\n });\n return imageMap;\n};\n\nconst syncImageAttributes = (\n sourceImage: HTMLImageElement,\n targetImage: HTMLImageElement\n) => {\n const sourceAttributes = Array.from(sourceImage.attributes);\n const sourceAttributeNames = new Set(\n sourceAttributes.map((attribute) => attribute.name)\n );\n\n Array.from(targetImage.attributes).forEach((attribute) => {\n if (!sourceAttributeNames.has(attribute.name)) {\n targetImage.removeAttribute(attribute.name);\n }\n });\n\n sourceAttributes.forEach((attribute) => {\n targetImage.setAttribute(attribute.name, attribute.value);\n });\n};\n\nconst reuseRenderedImages = (\n root: ParentNode,\n imageMap: Map<string, HTMLImageElement[]>\n) => {\n if (!imageMap.size) return;\n\n root.querySelectorAll(\"img\").forEach((node) => {\n const nextImage = node as HTMLImageElement;\n const key = getImageReuseKey(nextImage);\n const bucket = imageMap.get(key);\n const preservedImage = bucket?.shift();\n if (!preservedImage) return;\n\n syncImageAttributes(nextImage, preservedImage);\n nextImage.replaceWith(preservedImage);\n\n if (bucket && bucket.length === 0) {\n imageMap.delete(key);\n }\n });\n};\n\nexport const hasCompleteScriptTags = (html: string) => {\n const openScriptCount = (html.match(/<script[\\s>]/gi) || []).length;\n const closeScriptCount = (html.match(/<\\/script>/gi) || []).length;\n return openScriptCount > 0 && openScriptCount === closeScriptCount;\n};\n\nconst SandboxApp: React.FC<SandboxAppProps & { deferScripts?: boolean }> = ({\n html,\n locale,\n dir,\n lang,\n loadingText,\n resetToken = 0,\n mode = \"content\",\n hasRootVhHeight = false,\n stretchRootHeight = false,\n enableScaling = false,\n disableLoadingOverlay = false,\n deferScripts = false,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const containerRef = useRef<HTMLDivElement>(null);\n const [hasRenderedContent, setHasRenderedContent] = useState(false);\n const appendedStylesRef = useRef<HTMLStyleElement[]>([]);\n const appendedScriptsRef = useRef<HTMLScriptElement[]>([]);\n const prevResetTokenRef = useRef(resetToken);\n\n useEffect(() => {\n const doc = containerRef.current?.ownerDocument;\n if (!doc) return;\n const styleId = \"sandbox-layout-style\";\n let styleEl = doc.getElementById(styleId) as HTMLStyleElement | null;\n if (!styleEl) {\n styleEl = doc.createElement(\"style\");\n styleEl.id = styleId;\n doc.head?.appendChild(styleEl);\n }\n styleEl.textContent = `\n .sandbox-wrapper { align-items: center; }\n .sandbox-container { position: relative; width: 100%; }\n .sandbox-container svg,\n .sandbox-container img { display: block; margin-left: auto; margin-right: auto; }\n /* Hide scroll UI without removing scroll semantics. Content roots with\n inline style=\"height:100vh; overflow-y:auto\" are the signal that\n IframeSandbox.getInnerScrollableHeight relies on to grow the iframe\n when content exceeds the viewport. We must not change overflow-y,\n but sub-pixel rounding (1px below the +1 detection threshold) can\n still surface a phantom scrollbar on content that visually fits.\n Hide the scrollbar UI globally; when content truly overflows the\n iframe is resized and no scrollbar would render anyway. */\n .sandbox-container *::-webkit-scrollbar { display: none; }\n .sandbox-container * { scrollbar-width: none; -ms-overflow-style: none; }\n .justify-\\\\[safe_center\\\\]{\n justify-content: safe center;\n }\n .overflow-y-auto { overflow-y: visible !important; }\n `;\n }, []);\n\n useEffect(() => {\n if (resetToken !== prevResetTokenRef.current) {\n setHasRenderedContent(false);\n prevResetTokenRef.current = resetToken;\n }\n const container = containerRef.current;\n if (!container) return;\n const doc = container.ownerDocument;\n const body = doc?.body;\n if (!body) return;\n const reusableImages = collectReusableImages(container);\n\n appendedStylesRef.current.forEach((node) => node.remove());\n appendedStylesRef.current = [];\n appendedScriptsRef.current.forEach((node) => node.remove());\n appendedScriptsRef.current = [];\n\n const wrapper = doc.createElement(\"div\");\n wrapper.innerHTML = html;\n wrapper.querySelectorAll(\"a[href]\").forEach((node) => {\n if (!isAnchorElement(node)) {\n return;\n }\n\n if (!shouldForceAnchorHrefToNewTab(node.getAttribute(\"href\"))) {\n return;\n }\n\n node.setAttribute(\"target\", \"_blank\");\n node.setAttribute(\"rel\", mergeAnchorRelValue(node.getAttribute(\"rel\")));\n });\n\n const shouldExecuteScripts = !deferScripts && hasCompleteScriptTags(html);\n\n const resourceQueue: HTMLElement[] = [];\n\n Array.from(wrapper.querySelectorAll(\"style, script\")).forEach((node) => {\n if (node.tagName.toLowerCase() === \"style\") {\n const cloned = doc.createElement(\"style\");\n cloned.textContent = node.textContent || \"\";\n Array.from(node.attributes).forEach((attr) => {\n cloned.setAttribute(attr.name, attr.value);\n });\n resourceQueue.push(cloned);\n } else {\n const replacement = doc.createElement(\"script\");\n Array.from(node.attributes).forEach((attr) => {\n replacement.setAttribute(attr.name, attr.value);\n });\n replacement.textContent = node.textContent || \"\";\n resourceQueue.push(replacement);\n }\n node.remove();\n });\n reuseRenderedImages(wrapper, reusableImages);\n\n const hasScripts = resourceQueue.some(\n (node) => node.tagName.toLowerCase() === \"script\"\n );\n\n const contentNodes = Array.from(wrapper.childNodes);\n const hasInitialContent = contentNodes.length > 0;\n setHasRenderedContent(hasInitialContent);\n container.replaceChildren(...contentNodes);\n\n const handleLinkClick = (event: MouseEvent) => {\n const anchor = resolveClosestAnchor(event.target);\n if (!anchor) {\n return;\n }\n\n if (!shouldForceAnchorHrefToNewTab(anchor.getAttribute(\"href\"))) {\n return;\n }\n\n anchor.setAttribute(\"target\", \"_blank\");\n anchor.setAttribute(\n \"rel\",\n mergeAnchorRelValue(anchor.getAttribute(\"rel\"))\n );\n };\n container.addEventListener(\"click\", handleLinkClick, true);\n\n let scriptContentObserver: MutationObserver | null = null;\n const markRenderedContentFromContainer = () => {\n if (container.childNodes.length === 0) {\n return false;\n }\n\n setHasRenderedContent(true);\n scriptContentObserver?.disconnect();\n scriptContentObserver = null;\n return true;\n };\n if (!hasInitialContent && hasScripts && shouldExecuteScripts) {\n scriptContentObserver = new MutationObserver(() => {\n markRenderedContentFromContainer();\n });\n scriptContentObserver.observe(container, {\n childList: true,\n subtree: true,\n });\n }\n\n resourceQueue.forEach((node) => {\n if (node.tagName.toLowerCase() === \"style\") {\n doc.head?.appendChild(node);\n appendedStylesRef.current.push(node as HTMLStyleElement);\n return;\n }\n\n if (shouldExecuteScripts) {\n const scriptNode = node as HTMLScriptElement;\n const scriptText = scriptNode.textContent || \"\";\n const shouldValidate = !scriptNode.src;\n\n if (shouldValidate) {\n try {\n // Validate script is syntactically complete before executing\n\n new Function(scriptText);\n } catch {\n scriptNode.remove();\n return;\n }\n }\n\n try {\n body.appendChild(scriptNode);\n appendedScriptsRef.current.push(scriptNode);\n } catch {\n scriptNode.remove();\n }\n } else {\n // Leave scripts out of partial and intermediate render frames.\n node.remove();\n }\n });\n markRenderedContentFromContainer();\n if (enableScaling) {\n const win = container.ownerDocument?.defaultView as ScalingWindow | null;\n win?.__mdf_triggerFitContent?.();\n }\n\n return () => {\n scriptContentObserver?.disconnect();\n container.removeEventListener(\"click\", handleLinkClick, true);\n };\n }, [html, resetToken, enableScaling, deferScripts]);\n\n const overlayMessage =\n !disableLoadingOverlay && !hasRenderedContent\n ? loadingText || localeTexts.sandboxLoadingText\n : null;\n\n const isBlackboard = mode === \"blackboard\";\n const shouldStretchRootHeight = isBlackboard && stretchRootHeight;\n const sandboxWrapperStyle: React.CSSProperties = {\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n // Keep blackboard scroll behavior while centering content in non-blackboard mode\n justifyContent: shouldStretchRootHeight\n ? \"flex-start\"\n : isBlackboard\n ? \"space-around\"\n : \"flex-start\",\n };\n const sandboxContainerStyle: React.CSSProperties = {\n pointerEvents: overlayMessage ? \"none\" : undefined,\n margin: isBlackboard ? undefined : \"auto 0\",\n width: \"100%\",\n height: shouldStretchRootHeight ? \"100%\" : undefined,\n minHeight: shouldStretchRootHeight ? 0 : undefined,\n flex: shouldStretchRootHeight ? \"1 1 auto\" : undefined,\n };\n\n return (\n <div\n data-root-vh={hasRootVhHeight ? \"true\" : \"false\"}\n className=\"sandbox-wrapper\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n style={sandboxWrapperStyle}\n aria-busy={!!overlayMessage}\n >\n <div\n ref={containerRef}\n className=\"sandbox-container\"\n style={sandboxContainerStyle}\n />\n {overlayMessage && (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n zIndex: 20,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n }}\n >\n <LoadingOverlayCard message={overlayMessage} />\n </div>\n )}\n </div>\n );\n};\n\nexport default SandboxApp;\n"],"names":["IMAGE_REUSE_ATTRIBUTES","getImageReuseKey","image","attribute","collectReusableImages","root","imageMap","node","key","bucket","syncImageAttributes","sourceImage","targetImage","sourceAttributes","sourceAttributeNames","reuseRenderedImages","nextImage","preservedImage","hasCompleteScriptTags","html","openScriptCount","closeScriptCount","SandboxApp","locale","dir","lang","loadingText","resetToken","mode","hasRootVhHeight","stretchRootHeight","enableScaling","disableLoadingOverlay","deferScripts","localeTexts","getContentRenderLocaleTexts","containerRef","useRef","hasRenderedContent","setHasRenderedContent","useState","appendedStylesRef","appendedScriptsRef","prevResetTokenRef","useEffect","doc","styleId","styleEl","container","body","reusableImages","wrapper","isAnchorElement","shouldForceAnchorHrefToNewTab","mergeAnchorRelValue","shouldExecuteScripts","resourceQueue","cloned","attr","replacement","hasScripts","contentNodes","hasInitialContent","handleLinkClick","event","anchor","resolveClosestAnchor","scriptContentObserver","markRenderedContentFromContainer","scriptNode","scriptText","overlayMessage","isBlackboard","shouldStretchRootHeight","sandboxWrapperStyle","sandboxContainerStyle","jsxs","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","LoadingOverlayCard"],"mappings":";;;;;;AAgCA,MAAMA,KAAyB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAAmB,CAACC,MACxBF,GAAuB;AAAA,EACrB,CAACG,MAAc,GAAGA,CAAS,IAAID,EAAM,aAAaC,CAAS,KAAK,EAAE;AACpE,EAAE,KAAK,GAAG,GAENC,KAAwB,CAACC,MAAqB;AAClD,QAAMC,wBAAe,IAAA;AACrB,SAAAD,EAAK,iBAAiB,KAAK,EAAE,QAAQ,CAACE,MAAS;AAC7C,UAAML,IAAQK,GACRC,IAAMP,EAAiBC,CAAK,GAC5BO,IAASH,EAAS,IAAIE,CAAG,KAAK,CAAA;AACpC,IAAAC,EAAO,KAAKP,C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AAA;AAAA,YAGjB,UAAA,gBAAAA,EAACC,GAAA,EAAmB,SAAST,EAAA,CAAgB;AAAA,UAAA;AAAA,QAAA;AAAA,MAC/C;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"SandboxApp.es.js","sources":["../../../src/components/ContentRender/SandboxApp.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport LoadingOverlayCard from \"../ui/loading-overlay-card\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport type { ScalingWindow } from \"./utils/iframe-scaling\";\nimport {\n isAnchorElement,\n mergeAnchorRelValue,\n resolveClosestAnchor,\n shouldForceAnchorHrefToNewTab,\n} from \"./utils/link-targets\";\n\nexport interface SandboxAppProps {\n html: string;\n locale?: MarkdownFlowLocale;\n /** Overrides the wrapper language without changing authored HTML language. */\n lang?: string;\n /** Overrides the wrapper direction while preserving explicit direction in authored HTML. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n loadingText?: string;\n styleLoadingText?: string;\n scriptLoadingText?: string;\n resetToken?: number;\n mode?: \"content\" | \"blackboard\";\n hasRootVhHeight?: boolean;\n stretchRootHeight?: boolean;\n enableScaling?: boolean;\n disableLoadingOverlay?: boolean;\n}\n\nconst IMAGE_REUSE_ATTRIBUTES = [\n \"src\",\n \"srcset\",\n \"sizes\",\n \"alt\",\n \"class\",\n \"width\",\n \"height\",\n \"style\",\n \"loading\",\n \"decoding\",\n \"crossorigin\",\n \"referrerpolicy\",\n \"fetchpriority\",\n];\n\nconst RESOURCE_SETTLE_MS = 400;\n\nconst getImageReuseKey = (image: HTMLImageElement) =>\n IMAGE_REUSE_ATTRIBUTES.map(\n (attribute) => `${attribute}:${image.getAttribute(attribute) || \"\"}`\n ).join(\"|\");\n\nconst collectReusableImages = (root: ParentNode) => {\n const imageMap = new Map<string, HTMLImageElement[]>();\n root.querySelectorAll(\"img\").forEach((node) => {\n const image = node as HTMLImageElement;\n const key = getImageReuseKey(image);\n const bucket = imageMap.get(key) || [];\n bucket.push(image);\n imageMap.set(key, bucket);\n });\n return imageMap;\n};\n\nconst syncImageAttributes = (\n sourceImage: HTMLImageElement,\n targetImage: HTMLImageElement\n) => {\n const sourceAttributes = Array.from(sourceImage.attributes);\n const sourceAttributeNames = new Set(\n sourceAttributes.map((attribute) => attribute.name)\n );\n\n Array.from(targetImage.attributes).forEach((attribute) => {\n if (!sourceAttributeNames.has(attribute.name)) {\n targetImage.removeAttribute(attribute.name);\n }\n });\n\n sourceAttributes.forEach((attribute) => {\n targetImage.setAttribute(attribute.name, attribute.value);\n });\n};\n\nconst reuseRenderedImages = (\n root: ParentNode,\n imageMap: Map<string, HTMLImageElement[]>\n) => {\n if (!imageMap.size) return;\n\n root.querySelectorAll(\"img\").forEach((node) => {\n const nextImage = node as HTMLImageElement;\n const key = getImageReuseKey(nextImage);\n const bucket = imageMap.get(key);\n const preservedImage = bucket?.shift();\n if (!preservedImage) return;\n\n syncImageAttributes(nextImage, preservedImage);\n nextImage.replaceWith(preservedImage);\n\n if (bucket && bucket.length === 0) {\n imageMap.delete(key);\n }\n });\n};\n\nconst SandboxApp: React.FC<SandboxAppProps & { hasPendingHtml?: boolean }> = ({\n html,\n hasPendingHtml = false,\n locale,\n dir,\n lang,\n loadingText,\n styleLoadingText,\n scriptLoadingText,\n resetToken = 0,\n mode = \"content\",\n hasRootVhHeight = false,\n stretchRootHeight = false,\n enableScaling = false,\n disableLoadingOverlay = false,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const containerRef = useRef<HTMLDivElement>(null);\n const [loadingResource, setLoadingResource] = useState<\n \"style\" | \"script\" | null\n >(null);\n const [hasRenderedContent, setHasRenderedContent] = useState(false);\n const appendedStylesRef = useRef<HTMLStyleElement[]>([]);\n const appendedScriptsRef = useRef<HTMLScriptElement[]>([]);\n const prevResetTokenRef = useRef(resetToken);\n\n useEffect(() => {\n const doc = containerRef.current?.ownerDocument;\n if (!doc) return;\n const styleId = \"sandbox-spinner-style\";\n let styleEl = doc.getElementById(styleId) as HTMLStyleElement | null;\n if (!styleEl) {\n styleEl = doc.createElement(\"style\");\n styleEl.id = styleId;\n doc.head?.appendChild(styleEl);\n }\n styleEl.textContent = `\n .sandbox-wrapper { align-items: center; }\n .sandbox-container { position: relative; width: 100%; }\n .sandbox-container svg,\n .sandbox-container img { display: block; margin-left: auto; margin-right: auto; }\n /* Hide scroll UI without removing scroll semantics. Content roots with\n inline style=\"height:100vh; overflow-y:auto\" are the signal that\n IframeSandbox.getInnerScrollableHeight relies on to grow the iframe\n when content exceeds the viewport. We must not change overflow-y,\n but sub-pixel rounding (1px below the +1 detection threshold) can\n still surface a phantom scrollbar on content that visually fits.\n Hide the scrollbar UI globally; when content truly overflows the\n iframe is resized and no scrollbar would render anyway. */\n .sandbox-container *::-webkit-scrollbar { display: none; }\n .sandbox-container * { scrollbar-width: none; -ms-overflow-style: none; }\n .justify-\\\\[safe_center\\\\]{\n justify-content: safe center;\n }\n .overflow-y-auto { overflow-y: visible !important; }\n `;\n }, []);\n\n useEffect(() => {\n if (resetToken !== prevResetTokenRef.current) {\n setHasRenderedContent(false);\n prevResetTokenRef.current = resetToken;\n }\n const container = containerRef.current;\n if (!container) return;\n const doc = container.ownerDocument;\n const body = doc?.body;\n if (!body) return;\n const reusableImages = collectReusableImages(container);\n\n appendedStylesRef.current.forEach((node) => node.remove());\n appendedStylesRef.current = [];\n appendedScriptsRef.current.forEach((node) => node.remove());\n appendedScriptsRef.current = [];\n\n const wrapper = doc.createElement(\"div\");\n wrapper.innerHTML = html;\n wrapper.querySelectorAll(\"a[href]\").forEach((node) => {\n if (!isAnchorElement(node)) {\n return;\n }\n\n if (!shouldForceAnchorHrefToNewTab(node.getAttribute(\"href\"))) {\n return;\n }\n\n node.setAttribute(\"target\", \"_blank\");\n node.setAttribute(\"rel\", mergeAnchorRelValue(node.getAttribute(\"rel\")));\n });\n\n const openScriptCount = (html.match(/<script[\\s>]/gi) || []).length;\n const closeScriptCount = (html.match(/<\\/script>/gi) || []).length;\n const shouldExecuteScripts =\n openScriptCount > 0 && openScriptCount === closeScriptCount;\n\n const resourceQueue: HTMLElement[] = [];\n\n Array.from(wrapper.querySelectorAll(\"style, script\")).forEach((node) => {\n if (node.tagName.toLowerCase() === \"style\") {\n const cloned = doc.createElement(\"style\");\n cloned.textContent = node.textContent || \"\";\n Array.from(node.attributes).forEach((attr) => {\n cloned.setAttribute(attr.name, attr.value);\n });\n resourceQueue.push(cloned);\n } else {\n const replacement = doc.createElement(\"script\");\n Array.from(node.attributes).forEach((attr) => {\n replacement.setAttribute(attr.name, attr.value);\n });\n replacement.textContent = node.textContent || \"\";\n resourceQueue.push(replacement);\n }\n node.remove();\n });\n reuseRenderedImages(wrapper, reusableImages);\n\n const hasStyles = resourceQueue.some(\n (node) => node.tagName.toLowerCase() === \"style\"\n );\n const hasScripts = resourceQueue.some(\n (node) => node.tagName.toLowerCase() === \"script\"\n );\n setLoadingResource(hasScripts ? \"script\" : hasStyles ? \"style\" : null);\n\n const contentNodes = Array.from(wrapper.childNodes);\n const hasInitialContent = contentNodes.length > 0;\n setHasRenderedContent(hasInitialContent);\n container.replaceChildren(...contentNodes);\n\n const handleLinkClick = (event: MouseEvent) => {\n const anchor = resolveClosestAnchor(event.target);\n if (!anchor) {\n return;\n }\n\n if (!shouldForceAnchorHrefToNewTab(anchor.getAttribute(\"href\"))) {\n return;\n }\n\n anchor.setAttribute(\"target\", \"_blank\");\n anchor.setAttribute(\n \"rel\",\n mergeAnchorRelValue(anchor.getAttribute(\"rel\"))\n );\n };\n container.addEventListener(\"click\", handleLinkClick, true);\n\n let scriptContentObserver: MutationObserver | null = null;\n const markRenderedContentFromContainer = () => {\n if (container.childNodes.length === 0) {\n return false;\n }\n\n setHasRenderedContent(true);\n scriptContentObserver?.disconnect();\n scriptContentObserver = null;\n return true;\n };\n if (!hasInitialContent && hasScripts && shouldExecuteScripts) {\n scriptContentObserver = new MutationObserver(() => {\n markRenderedContentFromContainer();\n });\n scriptContentObserver.observe(container, {\n childList: true,\n subtree: true,\n });\n }\n\n resourceQueue.forEach((node) => {\n if (node.tagName.toLowerCase() === \"style\") {\n doc.head?.appendChild(node);\n appendedStylesRef.current.push(node as HTMLStyleElement);\n return;\n }\n\n if (shouldExecuteScripts) {\n const scriptNode = node as HTMLScriptElement;\n const scriptText = scriptNode.textContent || \"\";\n const shouldValidate = !scriptNode.src;\n\n if (shouldValidate) {\n try {\n // Validate script is syntactically complete before executing\n\n new Function(scriptText);\n } catch {\n scriptNode.remove();\n return;\n }\n }\n\n try {\n body.appendChild(scriptNode);\n appendedScriptsRef.current.push(scriptNode);\n } catch {\n scriptNode.remove();\n }\n } else {\n // Defer execution until all script tags are fully received\n node.remove();\n }\n });\n markRenderedContentFromContainer();\n if (enableScaling) {\n const win = container.ownerDocument?.defaultView as ScalingWindow | null;\n win?.__mdf_triggerFitContent?.();\n }\n\n return () => {\n scriptContentObserver?.disconnect();\n container.removeEventListener(\"click\", handleLinkClick, true);\n };\n }, [html, resetToken, enableScaling]);\n\n useEffect(() => {\n if (disableLoadingOverlay) {\n setLoadingResource(null);\n return;\n }\n if (!loadingResource || hasPendingHtml) return;\n\n // Dismiss after the last update, including any HTML held by the iframe.\n const timer = window.setTimeout(\n () => setLoadingResource(null),\n RESOURCE_SETTLE_MS\n );\n return () => window.clearTimeout(timer);\n }, [\n disableLoadingOverlay,\n enableScaling,\n hasPendingHtml,\n html,\n loadingResource,\n resetToken,\n ]);\n\n const overlayMessage = (() => {\n if (disableLoadingOverlay) {\n return null;\n }\n\n if (loadingResource === \"script\" && scriptLoadingText)\n return scriptLoadingText;\n if (loadingResource === \"style\" && styleLoadingText)\n return styleLoadingText;\n if (loadingResource || !hasRenderedContent)\n return loadingText || localeTexts.sandboxLoadingText;\n return null;\n })();\n\n const isBlackboard = mode === \"blackboard\";\n const shouldStretchRootHeight = isBlackboard && stretchRootHeight;\n const sandboxWrapperStyle: React.CSSProperties = {\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n // Keep blackboard scroll behavior while centering content in non-blackboard mode\n justifyContent: shouldStretchRootHeight\n ? \"flex-start\"\n : isBlackboard\n ? \"space-around\"\n : \"flex-start\",\n };\n const sandboxContainerStyle: React.CSSProperties = {\n pointerEvents: overlayMessage ? \"none\" : undefined,\n margin: isBlackboard ? undefined : \"auto 0\",\n width: \"100%\",\n height: shouldStretchRootHeight ? \"100%\" : undefined,\n minHeight: shouldStretchRootHeight ? 0 : undefined,\n flex: shouldStretchRootHeight ? \"1 1 auto\" : undefined,\n };\n\n return (\n <div\n data-root-vh={hasRootVhHeight ? \"true\" : \"false\"}\n className=\"sandbox-wrapper\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n style={sandboxWrapperStyle}\n aria-busy={!!overlayMessage}\n >\n <div\n ref={containerRef}\n className=\"sandbox-container\"\n style={sandboxContainerStyle}\n />\n {overlayMessage && (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n zIndex: 20,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n }}\n >\n <LoadingOverlayCard message={overlayMessage} />\n </div>\n )}\n </div>\n );\n};\n\nexport default SandboxApp;\n"],"names":["IMAGE_REUSE_ATTRIBUTES","RESOURCE_SETTLE_MS","getImageReuseKey","image","attribute","collectReusableImages","root","imageMap","node","key","bucket","syncImageAttributes","sourceImage","targetImage","sourceAttributes","sourceAttributeNames","reuseRenderedImages","nextImage","preservedImage","SandboxApp","html","hasPendingHtml","locale","dir","lang","loadingText","styleLoadingText","scriptLoadingText","resetToken","mode","hasRootVhHeight","stretchRootHeight","enableScaling","disableLoadingOverlay","localeTexts","getContentRenderLocaleTexts","containerRef","useRef","loadingResource","setLoadingResource","useState","hasRenderedContent","setHasRenderedContent","appendedStylesRef","appendedScriptsRef","prevResetTokenRef","useEffect","doc","styleId","styleEl","container","body","reusableImages","wrapper","isAnchorElement","shouldForceAnchorHrefToNewTab","mergeAnchorRelValue","openScriptCount","closeScriptCount","shouldExecuteScripts","resourceQueue","cloned","attr","replacement","hasStyles","hasScripts","contentNodes","hasInitialContent","handleLinkClick","event","anchor","resolveClosestAnchor","scriptContentObserver","markRenderedContentFromContainer","scriptNode","scriptText","timer","overlayMessage","isBlackboard","shouldStretchRootHeight","sandboxWrapperStyle","sandboxContainerStyle","jsxs","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","LoadingOverlayCard"],"mappings":";;;;;;AAkCA,MAAMA,KAAyB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,KAAqB,KAErBC,IAAmB,CAACC,MACxBH,GAAuB;AAAA,EACrB,CAACI,MAAc,GAAGA,CAAS,IAAID,EAAM,aAAaC,CAAS,KAAK,EAAE;AACpE,EAAE,KAAK,GAAG,GAENC,KAAwB,CAACC,MAAqB;AAClD,QAAMC,wBAAe,IAAA;AACrB,SAAAD,EAAK,iBAAiB,KAAK,EAAE,QAAQ,CAACE,MAAS;AAC7C,UAAML,IAAQK,GACRC,IAAMP,EAAiBC,CAAK,GAC5BO,IAASH,EAAS,IAAIE,CAAG,KAAK,CAAA;AACpC,IAAAC,EAAO,KAAKP,CAAK,GACjBI,EAAS,IAAIE,GAAKC,CAAM;AAAA,EAC1B,CAAC,GACMH;AACT,GAEMI,KAAsB,CAC1BC,GACAC,MACG;AACH,QAAMC,IAAmB,MAAM,KAAKF,EAAY,UAAU,GACpDG,IAAuB,IAAI;AAAA,IAC/BD,EAAiB,IAAI,CAACV,MAAcA,EAAU,IAAI;AAAA,EAAA;AAGpD,QAAM,KAAKS,EAAY,UAAU,E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AAAA,UAAA;AAAA,YACC,KAAKjD;AAAA,YACL,WAAU;AAAA,YACV,OAAO6C;AAAA,UAAA;AAAA,QAAA;AAAA,QAERJ,KACC,gBAAAQ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,cACL,UAAU;AAAA,cACV,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,SAAS;AAAA,cACT,YAAY;AAAA,cACZ,gBAAgB;AAAA,cAChB,eAAe;AAAA,YAAA;AAAA,YAGjB,UAAA,gBAAAA,EAACC,IAAA,EAAmB,SAAST,EAAA,CAAgB;AAAA,UAAA;AAAA,QAAA;AAAA,MAC/C;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-US":{confirmButtonText:"Submit",copyButtonText:"Copy",copiedButtonText:"Copied",sandboxLoadingText:"Loading content...",sandboxFullscreenButtonText:"Fullscreen",sandboxExitFullscreenButtonText:"Exit fullscreen",sendButtonLabel:"Send",scrollToBottomLabel:"Scroll to bottom",mermaidLoadingText:"Loading Mermaid chart...",mermaidEmptyChartText:"Empty chart content",mermaidErrorText:"Unable to display the Mermaid chart",footnoteLabel:"Footnotes",footnoteBackLabel:"Back to reference {reference}"},"fr-FR":{confirmButtonText:"Soumettre",copyButtonText:"Copier",copiedButtonText:"Copié",sandboxLoadingText:"Chargement du contenu...",sandboxFullscreenButtonText:"Plein écran",sandboxExitFullscreenButtonText:"Quitter le plein écran",sendButtonLabel:"Envoyer",scrollToBottomLabel:"Faire défiler jusqu'en bas",mermaidLoadingText:"Chargement du diagramme Mermaid...",mermaidEmptyChartText:"Le diagramme est vide",mermaidErrorText:"Impossible d’afficher le diagramme Mermaid",footnoteLabel:"Notes de bas de page",footnoteBackLabel:"Retour à la référence {reference}"},"zh-CN":{confirmButtonText:"提交",copyButtonText:"复制",copiedButtonText:"已复制",sandboxLoadingText:"正在加载内容...",sandboxFullscreenButtonText:"全屏浏览",sandboxExitFullscreenButtonText:"退出全屏",sendButtonLabel:"发送",scrollToBottomLabel:"滚动到底部",mermaidLoadingText:"正在加载 Mermaid 图表...",mermaidEmptyChartText:"图表内容为空",mermaidErrorText:"无法显示 Mermaid 图表",footnoteLabel:"脚注",footnoteBackLabel:"返回正文引用 {reference}"},"ar-SA":{confirmButtonText:"إرسال",copyButtonText:"نسخ",copiedButtonText:"تم النسخ",sandboxLoadingText:"جارٍ تحميل المحتوى...",sandboxFullscreenButtonText:"ملء الشاشة",sandboxExitFullscreenButtonText:"الخروج من ملء الشاشة",sendButtonLabel:"إرسال",scrollToBottomLabel:"التمرير إلى الأسفل",mermaidLoadingText:"جارٍ تحميل مخطط Mermaid...",mermaidEmptyChartText:"محتوى المخطط فارغ",mermaidErrorText:"تعذّر عرض مخطط Mermaid",footnoteLabel:"الحواشي",footnoteBackLabel:"العودة إلى موضع الإحالة {reference}"},"th-TH":{confirmButtonText:"ส่งคำตอบ",copyButtonText:"คัดลอก",copiedButtonText:"คัดลอกแล้ว",sandboxLoadingText:"กำลังโหลดเนื้อหา...",sandboxFullscreenButtonText:"เต็มหน้าจอ",sandboxExitFullscreenButtonText:"ออกจากเต็มหน้าจอ",sendButtonLabel:"ส่ง",scrollToBottomLabel:"เลื่อนไปด้านล่าง",mermaidLoadingText:"กำลังโหลดแผนภาพ Mermaid...",mermaidEmptyChartText:"ไม่มีเนื้อหาในแผนภาพ",mermaidErrorText:"ไม่สามารถแสดงแผนภาพ Mermaid ได้",footnoteLabel:"เชิงอรรถ",footnoteBackLabel:"กลับไปยังจุดอ้างอิง {reference}"},"es-ES":{confirmButtonText:"Enviar",copyButtonText:"Copiar",copiedButtonText:"Copiado",sandboxLoadingText:"Cargando contenido...",sandboxFullscreenButtonText:"Pantalla completa",sandboxExitFullscreenButtonText:"Salir de pantalla completa",sendButtonLabel:"Enviar",scrollToBottomLabel:"Desplazarse hasta el final",mermaidLoadingText:"Cargando el diagrama Mermaid...",mermaidEmptyChartText:"El diagrama está vacío",mermaidErrorText:"No se puede mostrar el diagrama Mermaid",footnoteLabel:"Notas al pie",footnoteBackLabel:"Volver a la referencia {reference}"},"de-DE":{confirmButtonText:"Absenden",copyButtonText:"Kopieren",copiedButtonText:"Kopiert",sandboxLoadingText:"Inhalt wird geladen...",sandboxFullscreenButtonText:"Vollbild",sandboxExitFullscreenButtonText:"Vollbild verlassen",sendButtonLabel:"Senden",scrollToBottomLabel:"Zum Ende scrollen",mermaidLoadingText:"Mermaid-Diagramm wird geladen...",mermaidEmptyChartText:"Das Diagramm ist leer",mermaidErrorText:"Das Mermaid-Diagramm kann nicht angezeigt werden",footnoteLabel:"Fußnoten",footnoteBackLabel:"Zurück zum Verweis {reference}"},"ja-JP":{confirmButtonText:"送信",copyButtonText:"コピー",copiedButtonText:"コピーしました",sandboxLoadingText:"コンテンツを読み込み中...",sandboxFullscreenButtonText:"全画面表示",sandboxExitFullscreenButtonText:"全画面表示を終了",sendButtonLabel:"送信",scrollToBottomLabel:"一番下までスクロール",mermaidLoadingText:"Mermaid 図を読み込み中...",mermaidEmptyChartText:"図の内容がありません",mermaidErrorText:"Mermaid 図を表示できません",footnoteLabel:"脚注",footnoteBackLabel:"参照箇所 {reference} に戻る"},"ur-PK":{confirmButtonText:"جمع کرائیں",copyButtonText:"کاپی کریں",copiedButtonText:"کاپی کر لیا گیا",sandboxLoadingText:"مواد لوڈ ہو رہا ہے...",sandboxFullscreenButtonText:"پوری اسکرین",sandboxExitFullscreenButtonText:"پوری اسکرین سے باہر نکلیں",sendButtonLabel:"بھیجیں",scrollToBottomLabel:"نیچے تک اسکرول کریں",mermaidLoadingText:"Mermaid چارٹ لوڈ ہو رہا ہے...",mermaidEmptyChartText:"چارٹ کا مواد خالی ہے",mermaidErrorText:"Mermaid چارٹ دکھایا نہیں جا سکا",footnoteLabel:"حواشی",footnoteBackLabel:"حوالہ {reference} پر واپس جائیں"},"fil-PH":{confirmButtonText:"Isumite",copyButtonText:"Kopyahin",copiedButtonText:"Nakopya na",sandboxLoadingText:"Nilo-load ang nilalaman...",sandboxFullscreenButtonText:"Buong screen",sandboxExitFullscreenButtonText:"Lumabas sa buong screen",sendButtonLabel:"Ipadala",scrollToBottomLabel:"Mag-scroll hanggang sa ibaba",mermaidLoadingText:"Nilo-load ang diagram ng Mermaid...",mermaidEmptyChartText:"Walang laman ang diagram",mermaidErrorText:"Hindi maipakita ang diagram ng Mermaid",footnoteLabel:"Mga talababa",footnoteBackLabel:"Bumalik sa sanggunian {reference}"},"vi-VN":{confirmButtonText:"Gửi",copyButtonText:"Sao chép",copiedButtonText:"Đã sao chép",sandboxLoadingText:"Đang tải nội dung...",sandboxFullscreenButtonText:"Toàn màn hình",sandboxExitFullscreenButtonText:"Thoát chế độ toàn màn hình",sendButtonLabel:"Gửi",scrollToBottomLabel:"Cuộn xuống cuối",mermaidLoadingText:"Đang tải sơ đồ Mermaid...",mermaidEmptyChartText:"Sơ đồ không có nội dung",mermaidErrorText:"Không thể hiển thị sơ đồ Mermaid",footnoteLabel:"Chú thích cuối trang",footnoteBackLabel:"Quay lại tham chiếu {reference}"}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-US":{confirmButtonText:"Submit",copyButtonText:"Copy",copiedButtonText:"Copied",sandboxLoadingText:"Generating slides…",sandboxFullscreenButtonText:"Fullscreen",sandboxExitFullscreenButtonText:"Exit fullscreen",sendButtonLabel:"Send",scrollToBottomLabel:"Scroll to bottom",mermaidLoadingText:"Loading Mermaid chart...",mermaidEmptyChartText:"Empty chart content",mermaidErrorText:"Unable to display the Mermaid chart",footnoteLabel:"Footnotes",footnoteBackLabel:"Back to reference {reference}"},"fr-FR":{confirmButtonText:"Soumettre",copyButtonText:"Copier",copiedButtonText:"Copié",sandboxLoadingText:"Création des diapositives…",sandboxFullscreenButtonText:"Plein écran",sandboxExitFullscreenButtonText:"Quitter le plein écran",sendButtonLabel:"Envoyer",scrollToBottomLabel:"Faire défiler jusqu'en bas",mermaidLoadingText:"Chargement du diagramme Mermaid...",mermaidEmptyChartText:"Le diagramme est vide",mermaidErrorText:"Impossible d’afficher le diagramme Mermaid",footnoteLabel:"Notes de bas de page",footnoteBackLabel:"Retour à la référence {reference}"},"zh-CN":{confirmButtonText:"提交",copyButtonText:"复制",copiedButtonText:"已复制",sandboxLoadingText:"生成幻灯片…",sandboxFullscreenButtonText:"全屏浏览",sandboxExitFullscreenButtonText:"退出全屏",sendButtonLabel:"发送",scrollToBottomLabel:"滚动到底部",mermaidLoadingText:"正在加载 Mermaid 图表...",mermaidEmptyChartText:"图表内容为空",mermaidErrorText:"无法显示 Mermaid 图表",footnoteLabel:"脚注",footnoteBackLabel:"返回正文引用 {reference}"},"ar-SA":{confirmButtonText:"إرسال",copyButtonText:"نسخ",copiedButtonText:"تم النسخ",sandboxLoadingText:"جارٍ إنشاء الشرائح…",sandboxFullscreenButtonText:"ملء الشاشة",sandboxExitFullscreenButtonText:"الخروج من ملء الشاشة",sendButtonLabel:"إرسال",scrollToBottomLabel:"التمرير إلى الأسفل",mermaidLoadingText:"جارٍ تحميل مخطط Mermaid...",mermaidEmptyChartText:"محتوى المخطط فارغ",mermaidErrorText:"تعذّر عرض مخطط Mermaid",footnoteLabel:"الحواشي",footnoteBackLabel:"العودة إلى موضع الإحالة {reference}"},"th-TH":{confirmButtonText:"ส่งคำตอบ",copyButtonText:"คัดลอก",copiedButtonText:"คัดลอกแล้ว",sandboxLoadingText:"กำลังสร้างสไลด์…",sandboxFullscreenButtonText:"เต็มหน้าจอ",sandboxExitFullscreenButtonText:"ออกจากเต็มหน้าจอ",sendButtonLabel:"ส่ง",scrollToBottomLabel:"เลื่อนไปด้านล่าง",mermaidLoadingText:"กำลังโหลดแผนภาพ Mermaid...",mermaidEmptyChartText:"ไม่มีเนื้อหาในแผนภาพ",mermaidErrorText:"ไม่สามารถแสดงแผนภาพ Mermaid ได้",footnoteLabel:"เชิงอรรถ",footnoteBackLabel:"กลับไปยังจุดอ้างอิง {reference}"},"es-ES":{confirmButtonText:"Enviar",copyButtonText:"Copiar",copiedButtonText:"Copiado",sandboxLoadingText:"Generando diapositivas…",sandboxFullscreenButtonText:"Pantalla completa",sandboxExitFullscreenButtonText:"Salir de pantalla completa",sendButtonLabel:"Enviar",scrollToBottomLabel:"Desplazarse hasta el final",mermaidLoadingText:"Cargando el diagrama Mermaid...",mermaidEmptyChartText:"El diagrama está vacío",mermaidErrorText:"No se puede mostrar el diagrama Mermaid",footnoteLabel:"Notas al pie",footnoteBackLabel:"Volver a la referencia {reference}"},"de-DE":{confirmButtonText:"Absenden",copyButtonText:"Kopieren",copiedButtonText:"Kopiert",sandboxLoadingText:"Folien werden erstellt…",sandboxFullscreenButtonText:"Vollbild",sandboxExitFullscreenButtonText:"Vollbild verlassen",sendButtonLabel:"Senden",scrollToBottomLabel:"Zum Ende scrollen",mermaidLoadingText:"Mermaid-Diagramm wird geladen...",mermaidEmptyChartText:"Das Diagramm ist leer",mermaidErrorText:"Das Mermaid-Diagramm kann nicht angezeigt werden",footnoteLabel:"Fußnoten",footnoteBackLabel:"Zurück zum Verweis {reference}"},"ja-JP":{confirmButtonText:"送信",copyButtonText:"コピー",copiedButtonText:"コピーしました",sandboxLoadingText:"スライドを作成中…",sandboxFullscreenButtonText:"全画面表示",sandboxExitFullscreenButtonText:"全画面表示を終了",sendButtonLabel:"送信",scrollToBottomLabel:"一番下までスクロール",mermaidLoadingText:"Mermaid 図を読み込み中...",mermaidEmptyChartText:"図の内容がありません",mermaidErrorText:"Mermaid 図を表示できません",footnoteLabel:"脚注",footnoteBackLabel:"参照箇所 {reference} に戻る"},"ur-PK":{confirmButtonText:"جمع کرائیں",copyButtonText:"کاپی کریں",copiedButtonText:"کاپی کر لیا گیا",sandboxLoadingText:"سلائیڈز تیار کی جا رہی ہیں…",sandboxFullscreenButtonText:"پوری اسکرین",sandboxExitFullscreenButtonText:"پوری اسکرین سے باہر نکلیں",sendButtonLabel:"بھیجیں",scrollToBottomLabel:"نیچے تک اسکرول کریں",mermaidLoadingText:"Mermaid چارٹ لوڈ ہو رہا ہے...",mermaidEmptyChartText:"چارٹ کا مواد خالی ہے",mermaidErrorText:"Mermaid چارٹ دکھایا نہیں جا سکا",footnoteLabel:"حواشی",footnoteBackLabel:"حوالہ {reference} پر واپس جائیں"},"fil-PH":{confirmButtonText:"Isumite",copyButtonText:"Kopyahin",copiedButtonText:"Nakopya na",sandboxLoadingText:"Ginagawa ang mga slide…",sandboxFullscreenButtonText:"Buong screen",sandboxExitFullscreenButtonText:"Lumabas sa buong screen",sendButtonLabel:"Ipadala",scrollToBottomLabel:"Mag-scroll hanggang sa ibaba",mermaidLoadingText:"Nilo-load ang diagram ng Mermaid...",mermaidEmptyChartText:"Walang laman ang diagram",mermaidErrorText:"Hindi maipakita ang diagram ng Mermaid",footnoteLabel:"Mga talababa",footnoteBackLabel:"Bumalik sa sanggunian {reference}"},"vi-VN":{confirmButtonText:"Gửi",copyButtonText:"Sao chép",copiedButtonText:"Đã sao chép",sandboxLoadingText:"Đang tạo các trang chiếu…",sandboxFullscreenButtonText:"Toàn màn hình",sandboxExitFullscreenButtonText:"Thoát chế độ toàn màn hình",sendButtonLabel:"Gửi",scrollToBottomLabel:"Cuộn xuống cuối",mermaidLoadingText:"Đang tải sơ đồ Mermaid...",mermaidEmptyChartText:"Sơ đồ không có nội dung",mermaidErrorText:"Không thể hiển thị sơ đồ Mermaid",footnoteLabel:"Chú thích cuối trang",footnoteBackLabel:"Quay lại tham chiếu {reference}"}};exports.default=e;
2
2
  //# sourceMappingURL=contentRender.json.cjs.map
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  "confirmButtonText": "Submit",
4
4
  "copyButtonText": "Copy",
5
5
  "copiedButtonText": "Copied",
6
- "sandboxLoadingText": "Loading content...",
6
+ "sandboxLoadingText": "Generating slides…",
7
7
  "sandboxFullscreenButtonText": "Fullscreen",
8
8
  "sandboxExitFullscreenButtonText": "Exit fullscreen",
9
9
  "sendButtonLabel": "Send",
@@ -18,7 +18,7 @@ declare const _default: {
18
18
  "confirmButtonText": "Soumettre",
19
19
  "copyButtonText": "Copier",
20
20
  "copiedButtonText": "Copié",
21
- "sandboxLoadingText": "Chargement du contenu...",
21
+ "sandboxLoadingText": "Création des diapositives…",
22
22
  "sandboxFullscreenButtonText": "Plein écran",
23
23
  "sandboxExitFullscreenButtonText": "Quitter le plein écran",
24
24
  "sendButtonLabel": "Envoyer",
@@ -33,7 +33,7 @@ declare const _default: {
33
33
  "confirmButtonText": "提交",
34
34
  "copyButtonText": "复制",
35
35
  "copiedButtonText": "已复制",
36
- "sandboxLoadingText": "正在加载内容...",
36
+ "sandboxLoadingText": "生成幻灯片…",
37
37
  "sandboxFullscreenButtonText": "全屏浏览",
38
38
  "sandboxExitFullscreenButtonText": "退出全屏",
39
39
  "sendButtonLabel": "发送",
@@ -48,7 +48,7 @@ declare const _default: {
48
48
  "confirmButtonText": "إرسال",
49
49
  "copyButtonText": "نسخ",
50
50
  "copiedButtonText": "تم النسخ",
51
- "sandboxLoadingText": "جارٍ تحميل المحتوى...",
51
+ "sandboxLoadingText": "جارٍ إنشاء الشرائح…",
52
52
  "sandboxFullscreenButtonText": "ملء الشاشة",
53
53
  "sandboxExitFullscreenButtonText": "الخروج من ملء الشاشة",
54
54
  "sendButtonLabel": "إرسال",
@@ -63,7 +63,7 @@ declare const _default: {
63
63
  "confirmButtonText": "ส่งคำตอบ",
64
64
  "copyButtonText": "คัดลอก",
65
65
  "copiedButtonText": "คัดลอกแล้ว",
66
- "sandboxLoadingText": "กำลังโหลดเนื้อหา...",
66
+ "sandboxLoadingText": "กำลังสร้างสไลด์…",
67
67
  "sandboxFullscreenButtonText": "เต็มหน้าจอ",
68
68
  "sandboxExitFullscreenButtonText": "ออกจากเต็มหน้าจอ",
69
69
  "sendButtonLabel": "ส่ง",
@@ -78,7 +78,7 @@ declare const _default: {
78
78
  "confirmButtonText": "Enviar",
79
79
  "copyButtonText": "Copiar",
80
80
  "copiedButtonText": "Copiado",
81
- "sandboxLoadingText": "Cargando contenido...",
81
+ "sandboxLoadingText": "Generando diapositivas…",
82
82
  "sandboxFullscreenButtonText": "Pantalla completa",
83
83
  "sandboxExitFullscreenButtonText": "Salir de pantalla completa",
84
84
  "sendButtonLabel": "Enviar",
@@ -93,7 +93,7 @@ declare const _default: {
93
93
  "confirmButtonText": "Absenden",
94
94
  "copyButtonText": "Kopieren",
95
95
  "copiedButtonText": "Kopiert",
96
- "sandboxLoadingText": "Inhalt wird geladen...",
96
+ "sandboxLoadingText": "Folien werden erstellt…",
97
97
  "sandboxFullscreenButtonText": "Vollbild",
98
98
  "sandboxExitFullscreenButtonText": "Vollbild verlassen",
99
99
  "sendButtonLabel": "Senden",
@@ -108,7 +108,7 @@ declare const _default: {
108
108
  "confirmButtonText": "送信",
109
109
  "copyButtonText": "コピー",
110
110
  "copiedButtonText": "コピーしました",
111
- "sandboxLoadingText": "コンテンツを読み込み中...",
111
+ "sandboxLoadingText": "スライドを作成中…",
112
112
  "sandboxFullscreenButtonText": "全画面表示",
113
113
  "sandboxExitFullscreenButtonText": "全画面表示を終了",
114
114
  "sendButtonLabel": "送信",
@@ -123,7 +123,7 @@ declare const _default: {
123
123
  "confirmButtonText": "جمع کرائیں",
124
124
  "copyButtonText": "کاپی کریں",
125
125
  "copiedButtonText": "کاپی کر لیا گیا",
126
- "sandboxLoadingText": "مواد لوڈ ہو رہا ہے...",
126
+ "sandboxLoadingText": "سلائیڈز تیار کی جا رہی ہیں…",
127
127
  "sandboxFullscreenButtonText": "پوری اسکرین",
128
128
  "sandboxExitFullscreenButtonText": "پوری اسکرین سے باہر نکلیں",
129
129
  "sendButtonLabel": "بھیجیں",
@@ -138,7 +138,7 @@ declare const _default: {
138
138
  "confirmButtonText": "Isumite",
139
139
  "copyButtonText": "Kopyahin",
140
140
  "copiedButtonText": "Nakopya na",
141
- "sandboxLoadingText": "Nilo-load ang nilalaman...",
141
+ "sandboxLoadingText": "Ginagawa ang mga slide…",
142
142
  "sandboxFullscreenButtonText": "Buong screen",
143
143
  "sandboxExitFullscreenButtonText": "Lumabas sa buong screen",
144
144
  "sendButtonLabel": "Ipadala",
@@ -153,7 +153,7 @@ declare const _default: {
153
153
  "confirmButtonText": "Gửi",
154
154
  "copyButtonText": "Sao chép",
155
155
  "copiedButtonText": "Đã sao chép",
156
- "sandboxLoadingText": "Đang tải nội dung...",
156
+ "sandboxLoadingText": "Đang tạo các trang chiếu…",
157
157
  "sandboxFullscreenButtonText": "Toàn màn hình",
158
158
  "sandboxExitFullscreenButtonText": "Thoát chế độ toàn màn hình",
159
159
  "sendButtonLabel": "Gửi",