@pie-element/simple-cloze 0.1.4-next.10 → 0.1.4-next.12

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 (28) hide show
  1. package/dist/browser/delivery/index.js +1 -1
  2. package/dist/browser/editor-runtime/author/index.js +633 -0
  3. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  4. package/dist/browser/editor-runtime/client-C4zbv8nl.js +2355 -0
  5. package/dist/browser/editor-runtime/client-C4zbv8nl.js.map +1 -0
  6. package/dist/browser/editor-runtime/controller/index.js +2 -0
  7. package/dist/browser/editor-runtime/controller-1IBOQFFL.js +69 -0
  8. package/dist/browser/editor-runtime/controller-1IBOQFFL.js.map +1 -0
  9. package/dist/browser/editor-runtime/delivery/index.js +243 -0
  10. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  11. package/dist/browser/{i18n-BaF24Jzw.js → editor-runtime/i18n-BDkxR45Z.js} +129 -125
  12. package/dist/browser/editor-runtime/i18n-BDkxR45Z.js.map +1 -0
  13. package/dist/browser/editor-runtime/plain-text-iaQZhkGe.js +53 -0
  14. package/dist/browser/editor-runtime/plain-text-iaQZhkGe.js.map +1 -0
  15. package/dist/browser/editor-runtime/print/index.js +71 -0
  16. package/dist/browser/editor-runtime/print/index.js.map +1 -0
  17. package/dist/browser/i18n-BDkxR45Z.js +1614 -0
  18. package/dist/browser/i18n-BDkxR45Z.js.map +1 -0
  19. package/dist/browser/print/index.js +1 -1
  20. package/dist/delivery/index.js +18 -13
  21. package/dist/delivery/index.js.map +1 -1
  22. package/dist/index.iife.js +2 -2
  23. package/dist/print/index.js +18 -13
  24. package/dist/print/index.js.map +1 -1
  25. package/module/print.js +161 -157
  26. package/module/print.js.map +1 -1
  27. package/package.json +15 -4
  28. package/dist/browser/i18n-BaF24Jzw.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["t","n","r","i","e.from_html","e.prop","e.child","e.reset","e.sibling","e.append","e.append_styles","e.derived","e.get","e.to_array","e.only_child","e.comment","e.first_child","e.template_effect","e.set_checked","e.delegated","e.set_value","e.set_text","e.pop","e.delegate","root","$.from_html","root_1","root_2","$$css","EditableHtml","$.prop","$.state","$.proxy","$.get","$.child","$.sibling","$.first_child","$.set_class","$.comment","$.set","$.delegate"],"sources":["../../../../../../shared/configure-events/dist/index.js","../../../../../../lib-svelte/config-ui-svelte/dist/index.js","../../../../../../lib-svelte/editable-html-tiptap-svelte/dist/index2.js","../../../../../../lib-svelte/editable-html-tiptap-svelte/dist/index.js","../../../../src/author/Author.svelte","../../../../src/author/index.ts"],"sourcesContent":["//#region src/index.ts\nvar e = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model.updated\";\n\t}\n\tconstructor(t, n = !1) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tupdate: t,\n\t\t\t\treset: n\n\t\t\t}\n\t\t}), this.update = t, this.reset = n;\n\t}\n}, t = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.image\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, n = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.image\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n}, r = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.sound\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, i = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.sound\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n};\n//#endregion\nexport { t as DeleteImageEvent, r as DeleteSoundEvent, n as InsertImageEvent, i as InsertSoundEvent, e as ModelUpdatedEvent };\n","import \"svelte/internal/disclose-version\";\nimport * as e from \"svelte/internal/client\";\n//#region src/ConfigLayout.svelte\nvar t = e.from_html(\"<aside class=\\\"pie-config-layout-settings svelte-9dr0jr\\\" aria-label=\\\"Settings\\\"><!></aside>\"), n = e.from_html(\"<div class=\\\"pie-config-layout svelte-9dr0jr\\\"><div class=\\\"pie-config-layout-contents svelte-9dr0jr\\\"><div class=\\\"pie-config-layout-design svelte-9dr0jr\\\"><!></div> <!></div></div>\"), r = {\n\thash: \"svelte-9dr0jr\",\n\tcode: \".pie-config-layout.svelte-9dr0jr {container-type:inline-size;}.pie-config-layout-contents.svelte-9dr0jr {display:flex;flex-direction:column;gap:16px;}.pie-config-layout-design.svelte-9dr0jr {flex:1 1 auto;min-width:0;}\\n\\n @container (min-width: 1135px) {.pie-config-layout-contents.svelte-9dr0jr {flex-direction:row;align-items:flex-start;}.pie-config-layout-settings.svelte-9dr0jr {flex:0 0 300px;position:sticky;top:0;}\\n }\"\n};\nfunction i(i, a) {\n\te.append_styles(i, r);\n\tlet o = e.prop(a, \"hideSettings\", 3, !1);\n\tvar s = n(), c = e.child(s), l = e.child(c), u = e.child(l);\n\te.snippet(u, () => a.children), e.reset(l);\n\tvar d = e.sibling(l, 2), f = (n) => {\n\t\tvar r = t(), i = e.child(r);\n\t\te.snippet(i, () => a.settings), e.reset(r), e.append(n, r);\n\t};\n\te.if(d, (e) => {\n\t\ta.settings && !o() && e(f);\n\t}), e.reset(c), e.reset(s), e.append(i, s);\n}\n//#endregion\n//#region src/configuration.ts\nvar a = (e) => typeof e == \"object\" && !!e && !Array.isArray(e);\nfunction o(e, t) {\n\tif (!a(t)) return e;\n\tlet n = { ...e };\n\tfor (let [r, i] of Object.entries(t)) {\n\t\tlet t = e[r];\n\t\tn[r] = a(t) && a(i) ? {\n\t\t\t...t,\n\t\t\t...i\n\t\t} : i;\n\t}\n\treturn n;\n}\nfunction s(e) {\n\treturn a(e) ? Object.values(e).some((e) => a(e) && (e.settings === !0 || s(e))) : !1;\n}\nvar c = (e, t = !1, n = !1) => ({\n\ttype: \"toggle\",\n\tlabel: e,\n\tisConfigProperty: t,\n\tdisabled: n\n}), l = (e, t, n = !1) => ({\n\ttype: \"radio\",\n\tlabel: e,\n\tchoices: t.map((e) => typeof e == \"string\" ? {\n\t\tlabel: e,\n\t\tvalue: e\n\t} : e),\n\tisConfigProperty: n\n});\nfunction u(e, t) {\n\tlet n = e;\n\tfor (let e of t.split(\".\")) {\n\t\tif (!a(n)) return;\n\t\tn = n[e];\n\t}\n\treturn n;\n}\nfunction d(e, t, n) {\n\tlet [r, ...i] = t.split(\".\"), o = e[r], s = i.length === 0 ? n : d(a(o) ? o : {}, i.join(\".\"), n);\n\treturn {\n\t\t...e,\n\t\t[r]: s\n\t};\n}\n//#endregion\n//#region src/SettingsPanel.svelte\nvar f = e.from_html(\"<label class=\\\"pie-settings-toggle svelte-1ang3sw\\\"><span> </span> <input type=\\\"checkbox\\\" role=\\\"switch\\\" class=\\\"svelte-1ang3sw\\\"/></label>\"), p = e.from_html(\"<label class=\\\"pie-settings-choice-row svelte-1ang3sw\\\"><input type=\\\"radio\\\" class=\\\"svelte-1ang3sw\\\"/> <span> </span></label>\"), m = e.from_html(\"<fieldset class=\\\"pie-settings-choice svelte-1ang3sw\\\"><legend class=\\\"svelte-1ang3sw\\\"> </legend> <!></fieldset>\"), h = e.from_html(\"<fieldset class=\\\"pie-settings-group svelte-1ang3sw\\\"><legend class=\\\"pie-settings-group-name svelte-1ang3sw\\\"> </legend> <!></fieldset>\"), g = e.from_html(\"<div class=\\\"pie-settings-panel svelte-1ang3sw\\\"></div>\"), _ = {\n\thash: \"svelte-1ang3sw\",\n\tcode: \".pie-settings-panel.svelte-1ang3sw {display:flex;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--pie-border-light, #ccc);border-radius:4px;color:var(--pie-text, #212121);}fieldset.svelte-1ang3sw {margin:0;padding:0;border:0;min-width:0;}.pie-settings-group.svelte-1ang3sw {display:flex;flex-direction:column;gap:8px;}.pie-settings-group-name.svelte-1ang3sw {margin-bottom:8px;font-weight:600;}.pie-settings-toggle.svelte-1ang3sw {display:flex;align-items:center;justify-content:space-between;gap:12px;}.pie-settings-choice.svelte-1ang3sw legend:where(.svelte-1ang3sw) {margin-bottom:4px;}.pie-settings-choice-row.svelte-1ang3sw {display:flex;align-items:center;gap:8px;}input.svelte-1ang3sw {accent-color:var(--pie-primary, #3f51b5);}input.svelte-1ang3sw:focus-visible {outline:2px solid var(--pie-focus-outline, #1a73e8);outline-offset:2px;}\"\n};\nfunction v(t, n) {\n\te.push(n, !0), e.append_styles(t, _);\n\tlet r = e.prop(n, \"configuration\", 19, () => ({})), i = Math.random().toString(36).slice(2, 10), a = e.derived(() => Object.entries(n.groups).map(([e, t]) => [e, Object.entries(t).filter((e) => !!e[1])]).filter(([, e]) => e.length > 0)), o = (e, t) => u(t.isConfigProperty ? r() : n.model, e);\n\tfunction s(e, t, i) {\n\t\tt.isConfigProperty ? n.onChangeConfiguration?.(d(r(), e, i), e) : n.onChangeModel(d(n.model, e, i), e);\n\t}\n\tvar c = g();\n\te.each(c, 21, () => e.get(a), ([e, t]) => e, (t, n) => {\n\t\tvar r = e.derived(() => e.to_array(e.get(n), 2));\n\t\tlet a = () => e.get(r)[0], c = () => e.get(r)[1];\n\t\tvar l = h(), u = e.child(l), d = e.only_child(u, !0), g = e.sibling(u, 2);\n\t\te.each(g, 17, c, ([e, t]) => e, (t, n) => {\n\t\t\tvar r = e.derived(() => e.to_array(e.get(n), 2));\n\t\t\tlet a = () => e.get(r)[0], c = () => e.get(r)[1];\n\t\t\tvar l = e.comment(), u = e.first_child(l), d = (t) => {\n\t\t\t\tvar n = f(), r = e.child(n), i = e.only_child(r, !0), l = e.sibling(r, 2);\n\t\t\t\te.remove_input_defaults(l), e.reset(n), e.template_effect((t) => {\n\t\t\t\t\te.set_text(i, c().label), e.set_checked(l, t), l.disabled = c().disabled;\n\t\t\t\t}, [() => !!o(a(), c())]), e.delegated(\"change\", l, (e) => s(a(), c(), e.currentTarget.checked)), e.append(t, n);\n\t\t\t}, h = (t) => {\n\t\t\t\tvar n = m(), r = e.child(n), l = e.only_child(r, !0), u = e.sibling(r, 2);\n\t\t\t\te.each(u, 17, () => c().choices, (e) => e.value, (t, n) => {\n\t\t\t\t\tvar r = p(), l = e.child(r);\n\t\t\t\t\te.remove_input_defaults(l);\n\t\t\t\t\tvar u = e.sibling(l, 2), d = e.only_child(u, !0);\n\t\t\t\t\te.reset(r), e.template_effect((t) => {\n\t\t\t\t\t\te.set_attribute(l, \"name\", `${i}-${a()}`), e.set_value(l, e.get(n).value), e.set_checked(l, t), e.set_text(d, e.get(n).label);\n\t\t\t\t\t}, [() => o(a(), c()) === e.get(n).value]), e.delegated(\"change\", l, () => s(a(), c(), e.get(n).value)), e.append(t, r);\n\t\t\t\t}), e.reset(n), e.template_effect(() => e.set_text(l, c().label)), e.append(t, n);\n\t\t\t};\n\t\t\te.if(u, (e) => {\n\t\t\t\tc().type === \"toggle\" ? e(d) : c().type === \"radio\" && e(h, 1);\n\t\t\t}), e.append(t, l);\n\t\t}), e.reset(l), e.template_effect(() => e.set_text(d, a())), e.append(t, l);\n\t}), e.reset(c), e.append(t, c), e.pop();\n}\ne.delegate([\"change\"]);\n//#endregion\n//#region src/index.ts\nvar y = i, b = v;\n//#endregion\nexport { y as ConfigLayout, b as SettingsPanel, u as getPath, s as hasSettings, o as mergeConfiguration, l as radio, d as setPath, c as toggle };\n","import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\nimport { onDestroy, onMount } from \"svelte\";\nimport { Editor } from \"@tiptap/core\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { TextStyle } from \"@tiptap/extension-text-style\";\nimport { CharacterCount } from \"@tiptap/extension-character-count\";\nimport SuperScript from \"@tiptap/extension-superscript\";\nimport SubScript from \"@tiptap/extension-subscript\";\nimport TextAlign from \"@tiptap/extension-text-align\";\nimport Image from \"@tiptap/extension-image\";\nimport { Table } from \"@tiptap/extension-table\";\nimport { TableRow } from \"@tiptap/extension-table-row\";\nimport { TableCell } from \"@tiptap/extension-table-cell\";\nimport { TableHeader } from \"@tiptap/extension-table-header\";\nimport { Placeholder } from \"@tiptap/extensions\";\n//#region src/EditableHtml.svelte\nvar root = $.from_html(`<button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Table\"></button>`);\nvar root_1 = $.from_html(`<button type=\"button\" title=\"Add Row\"></button> <button type=\"button\" title=\"Delete Row\"></button> <button type=\"button\" title=\"Add Column\"></button> <button type=\"button\" title=\"Delete Column\"></button> <button type=\"button\" title=\"Delete Table\"></button> <button type=\"button\" title=\"Toggle Table Border\"></button>`, 1);\nvar root_2 = $.from_html(`<div class=\"align-menu\"><button type=\"button\" class=\"align-menu-btn\" title=\"Align Left\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Center\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Right\"></button></div>`);\nvar root_3 = $.from_html(`<button type=\"button\" title=\"Bold\"></button> <button type=\"button\" title=\"Italic\"></button> <button type=\"button\" title=\"Strikethrough\"></button> <button type=\"button\" title=\"Code\"></button> <button type=\"button\" title=\"Underline\"></button> <button type=\"button\" title=\"Subscript\"></button> <button type=\"button\" title=\"Superscript\"></button> <button type=\"button\" title=\"Heading\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Image\"></button> <div class=\"align-dropdown\"><button type=\"button\" class=\"pie-toolbar-btn\" title=\"Text Alignment\"><!> <span class=\"dropdown-arrow\">▼</span></button> <!></div> <button type=\"button\" title=\"Bullet List\"></button> <button type=\"button\" title=\"Numbered List\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Undo\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Redo\"></button>`, 1);\nvar root_4 = $.from_html(`<div role=\"toolbar\" tabindex=\"-1\"><div class=\"toolbar-content\"><div class=\"toolbar-buttons\"><!> <!> <!></div> <button type=\"button\" class=\"done-btn\" title=\"Done\"></button></div></div>`);\nvar root_5 = $.from_html(`<div class=\"pie-editable-html editor-container editable-html svelte-rx7so6\"><div><div class=\"editor-children\"><div class=\"editor\"></div></div></div> <!></div>`);\nvar $$css = {\n\thash: \"svelte-rx7so6\",\n\tcode: \".pie-editable-html.svelte-rx7so6 {position:relative;padding:0px;border:1px solid #ccc;border-radius:4px;cursor:text;background-color:var(--pie-background, rgba(255, 255, 255, 0));width:100%;}.pie-editable-html.svelte-rx7so6 .editor-holder {position:relative;padding:0px;overflow-y:auto;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));min-height:120px;}.pie-editable-html.svelte-rx7so6 .editor-holder.disabled {cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .editor-children {padding:10px 16px;}.pie-editable-html.svelte-rx7so6 .editor {padding:5px;min-height:100px;}\\n\\n /* Toolbar styles matching React version EXACTLY */.pie-editable-html.svelte-rx7so6 .toolbar {position:absolute;z-index:20;cursor:pointer;justify-content:space-between;background:var(--editable-html-toolbar-bg, #efefef);min-width:280px;margin:5px 0 0 0;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);box-sizing:border-box;display:flex;opacity:0;pointer-events:none;top:100%;left:0;}.pie-editable-html.svelte-rx7so6 .toolbar.focused {opacity:1;pointer-events:auto;}.pie-editable-html.svelte-rx7so6 .toolbar-content {display:flex;width:100%;justify-content:space-between;}.pie-editable-html.svelte-rx7so6 .toolbar-buttons {align-items:center;display:flex;width:100%;}.pie-editable-html.svelte-rx7so6 .toolbar button.pie-toolbar-btn {\\n /* Reset all browser defaults */appearance:none;-webkit-appearance:none;-moz-appearance:none;\\n\\n /* Core button styling - matching React MenuBar exactly */color:grey !important;display:inline-flex !important;padding:2px !important;background:none !important;border:0 !important;border-width:0 !important;border-style:none !important;outline:none !important;box-shadow:none !important;cursor:pointer !important;align-items:center !important;justify-content:center !important;min-width:auto !important;width:auto !important;height:auto !important;margin:0 !important;font:inherit !important;text-align:inherit !important;text-transform:none !important;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:hover:not(:disabled) {color:black;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:focus {outline:2px solid #666;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled {opacity:0.7;cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled:hover {color:grey;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn.active {background:var(--pie-primary, #3f51b5);color:var(--pie-white, #ffffff);}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn svg {width:24px;height:24px;}\\n\\n /* Done Button - matching React DoneButton component */.pie-editable-html.svelte-rx7so6 .done-btn {vertical-align:top;width:28px;height:28px;color:var(--editable-html-toolbar-check, #00bb00);padding:4px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;}.pie-editable-html.svelte-rx7so6 .done-btn:hover {background-color:rgba(0, 187, 0, 0.08);border-radius:4px;}.pie-editable-html.svelte-rx7so6 .done-btn svg {width:24px;height:24px;}\\n\\n /* Text alignment dropdown */.pie-editable-html.svelte-rx7so6 .align-dropdown {position:relative;}.pie-editable-html.svelte-rx7so6 .dropdown-arrow {margin-left:2px;font-size:8px;}.pie-editable-html.svelte-rx7so6 .align-menu {position:absolute;top:100%;left:0;background:var(--pie-white, #ffffff);display:flex;flex-direction:row;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);z-index:30;}.pie-editable-html.svelte-rx7so6 .align-menu-btn {color:var(--pie-disabled, grey);display:inline-flex;padding:4px;background:none;border:none;cursor:pointer;align-items:center;justify-content:center;min-width:32px;min-height:32px;}.pie-editable-html.svelte-rx7so6 .align-menu-btn:hover {color:var(--pie-black, #000000);background-color:rgba(0, 0, 0, 0.04);}\\n\\n /* ProseMirror editor styles */.pie-editable-html.svelte-rx7so6 .ProseMirror {outline:none !important;min-height:100px;font-family:-apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:var(--pie-text, black);}.pie-editable-html.svelte-rx7so6 .ProseMirror p {margin:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol {padding:0 1rem;margin:1.25rem 1rem 1.25rem 0.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul li p,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol li p {margin-top:0.25em;margin-bottom:0.25em;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h3,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h4,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {line-height:1.1;margin-top:2.5rem;text-wrap:pretty;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2 {margin-top:3.5rem;margin-bottom:1.5rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1 {font-size:1.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h2 {font-size:1.2rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h3 {font-size:1.1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h4,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {font-size:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror code {background-color:rgba(88, 5, 255, 0.05);border-radius:0.4rem;color:#2e2b29;font-size:0.85rem;padding:0.25em 0.3em;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre {background:#2e2b29;border-radius:0.5rem;color:#fff;font-family:'JetBrainsMono', monospace;margin:1.5rem 0;padding:0.75rem 1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre code {background:none;color:inherit;font-size:0.8rem;padding:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror blockquote {border-left:3px solid rgba(61, 37, 20, 0.12);margin:1.5rem 0;padding-left:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror hr {border:none;border-top:1px solid rgba(61, 37, 20, 0.08);margin:2rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror img {max-width:100%;height:auto;}\\n\\n /* Table styles */.pie-editable-html.svelte-rx7so6 .ProseMirror table {table-layout:fixed;width:100%;border-collapse:collapse;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));margin:1rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) tr {border-top:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror th {padding:0.6em 1em;text-align:center;vertical-align:top;position:relative;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) th {border:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] {border:2px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] th {border:1px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror .selectedCell {background-color:rgba(200, 200, 255, 0.4);}\\n\\n /* Placeholder */.pie-editable-html.svelte-rx7so6 .ProseMirror p.is-editor-empty:first-child::before {content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;height:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror:focus {outline:none;}\"\n};\nfunction EditableHtml($$anchor, $$props) {\n\t$.push($$props, true);\n\t$.append_styles($$anchor, $$css);\n\tlet markup = $.prop($$props, \"markup\", 3, \"\"), placeholder = $.prop($$props, \"placeholder\", 3, \"Enter text here...\"), showToolbar = $.prop($$props, \"showToolbar\", 3, true), disabled = $.prop($$props, \"disabled\", 3, false);\n\tlet editorElement;\n\tlet editor = $.state(null);\n\tlet hasFocus = $.state(false);\n\tlet showAlignMenu = $.state(false);\n\tfunction editorAttributes() {\n\t\treturn {\n\t\t\trole: \"textbox\",\n\t\t\t\"aria-multiline\": \"true\",\n\t\t\t...$$props.ariaLabel ? { \"aria-label\": $$props.ariaLabel } : {}\n\t\t};\n\t}\n\tlet editorState = $.state($.proxy({\n\t\tisBold: false,\n\t\tcanBold: false,\n\t\tisItalic: false,\n\t\tcanItalic: false,\n\t\tisStrike: false,\n\t\tcanStrike: false,\n\t\tisCode: false,\n\t\tcanCode: false,\n\t\tisUnderline: false,\n\t\tisSubScript: false,\n\t\tisSuperScript: false,\n\t\tisHeading3: false,\n\t\tisBulletList: false,\n\t\tisOrderedList: false,\n\t\tcanUndo: false,\n\t\tcanRedo: false,\n\t\tisTable: false,\n\t\tcanTable: false,\n\t\ttableHasBorder: false,\n\t\ttextAlign: \"left\"\n\t}));\n\tfunction updateEditorState() {\n\t\tif (!$.get(editor)) return;\n\t\t$.set(editorState, {\n\t\t\tisBold: $.get(editor).isActive(\"bold\"),\n\t\t\tcanBold: $.get(editor).can().chain().focus().toggleBold().run(),\n\t\t\tisItalic: $.get(editor).isActive(\"italic\"),\n\t\t\tcanItalic: $.get(editor).can().chain().focus().toggleItalic().run(),\n\t\t\tisStrike: $.get(editor).isActive(\"strike\"),\n\t\t\tcanStrike: $.get(editor).can().chain().focus().toggleStrike().run(),\n\t\t\tisCode: $.get(editor).isActive(\"code\"),\n\t\t\tcanCode: $.get(editor).can().chain().focus().toggleCode().run(),\n\t\t\tisUnderline: $.get(editor).isActive(\"underline\"),\n\t\t\tisSubScript: $.get(editor).isActive(\"subscript\"),\n\t\t\tisSuperScript: $.get(editor).isActive(\"superscript\"),\n\t\t\tisHeading3: $.get(editor).isActive(\"heading\", { level: 3 }),\n\t\t\tisBulletList: $.get(editor).isActive(\"bulletList\"),\n\t\t\tisOrderedList: $.get(editor).isActive(\"orderedList\"),\n\t\t\tcanUndo: $.get(editor).can().chain().focus().undo().run(),\n\t\t\tcanRedo: $.get(editor).can().chain().focus().redo().run(),\n\t\t\tisTable: $.get(editor).isActive(\"table\"),\n\t\t\tcanTable: $.get(editor).can().chain().focus().insertTable().run(),\n\t\t\ttableHasBorder: $.get(editor).getAttributes(\"table\")?.border === \"1\",\n\t\t\ttextAlign: $.get(editor).isActive({ textAlign: \"right\" }) ? \"right\" : $.get(editor).isActive({ textAlign: \"center\" }) ? \"center\" : $.get(editor).isActive({ textAlign: \"justify\" }) ? \"justify\" : \"left\"\n\t\t}, true);\n\t}\n\tonMount(() => {\n\t\t$.set(editor, new Editor({\n\t\t\telement: editorElement,\n\t\t\textensions: [\n\t\t\t\tStarterKit.configure({\n\t\t\t\t\theading: { levels: [\n\t\t\t\t\t\t1,\n\t\t\t\t\t\t2,\n\t\t\t\t\t\t3,\n\t\t\t\t\t\t4,\n\t\t\t\t\t\t5,\n\t\t\t\t\t\t6\n\t\t\t\t\t] },\n\t\t\t\t\tlink: {\n\t\t\t\t\t\tautolink: false,\n\t\t\t\t\t\tlinkOnPaste: false,\n\t\t\t\t\t\tshouldAutoLink: () => false\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tTextStyle,\n\t\t\t\tCharacterCount.configure({ limit: 1e6 }),\n\t\t\t\tSubScript,\n\t\t\t\tSuperScript,\n\t\t\t\tTextAlign.configure({\n\t\t\t\t\ttypes: [\"heading\", \"paragraph\"],\n\t\t\t\t\talignments: [\n\t\t\t\t\t\t\"left\",\n\t\t\t\t\t\t\"right\",\n\t\t\t\t\t\t\"center\"\n\t\t\t\t\t]\n\t\t\t\t}),\n\t\t\t\tImage,\n\t\t\t\tTable.configure({\n\t\t\t\t\tresizable: true,\n\t\t\t\t\tHTMLAttributes: { border: \"0\" }\n\t\t\t\t}),\n\t\t\t\tTableRow,\n\t\t\t\tTableHeader,\n\t\t\t\tTableCell,\n\t\t\t\tPlaceholder.configure({ placeholder: () => placeholder() })\n\t\t\t],\n\t\t\tcontent: markup() || \"\",\n\t\t\teditable: !disabled(),\n\t\t\tautofocus: false,\n\t\t\teditorProps: { attributes: editorAttributes() },\n\t\t\tonUpdate: ({ editor }) => {\n\t\t\t\tconst html = editor.getHTML();\n\t\t\t\tif ($$props.onChange) $$props.onChange(html);\n\t\t\t\tupdateEditorState();\n\t\t\t},\n\t\t\tonSelectionUpdate: () => {\n\t\t\t\tupdateEditorState();\n\t\t\t},\n\t\t\tonFocus: () => {\n\t\t\t\tupdateEditorState();\n\t\t\t}\n\t\t}), true);\n\t\tupdateEditorState();\n\t});\n\tonDestroy(() => {\n\t\tif ($.get(editor)) $.get(editor).destroy();\n\t});\n\t$.user_effect(() => {\n\t\tif ($.get(editor) && markup() !== $.get(editor).getHTML()) $.get(editor).commands.setContent(markup() || \"\", { emitUpdate: false });\n\t});\n\t$.user_effect(() => {\n\t\tconst editable = !disabled();\n\t\tif ($.get(editor) && $.get(editor).isEditable !== editable) $.get(editor).setEditable(editable, false);\n\t});\n\t$.user_effect(() => {\n\t\tconst attributes = editorAttributes();\n\t\tif ($.get(editor) && $.get(editor).view.dom.getAttribute(\"aria-label\") !== (attributes[\"aria-label\"] ?? null)) $.get(editor).setOptions({ editorProps: { attributes } });\n\t});\n\tfunction handleFocusIn() {\n\t\t$.set(hasFocus, true);\n\t}\n\tfunction handleFocusOut(e) {\n\t\tif (!e.currentTarget.contains(e.relatedTarget)) {\n\t\t\t$.set(hasFocus, false);\n\t\t\t$.set(showAlignMenu, false);\n\t\t}\n\t}\n\tfunction toggleBold() {\n\t\t$.get(editor)?.chain().focus().toggleBold().run();\n\t}\n\tfunction toggleItalic() {\n\t\t$.get(editor)?.chain().focus().toggleItalic().run();\n\t}\n\tfunction toggleStrike() {\n\t\t$.get(editor)?.chain().focus().toggleStrike().run();\n\t}\n\tfunction toggleCode() {\n\t\t$.get(editor)?.chain().focus().toggleCode().run();\n\t}\n\tfunction toggleUnderline() {\n\t\t$.get(editor)?.chain().focus().toggleUnderline().run();\n\t}\n\tfunction toggleSubscript() {\n\t\t$.get(editor)?.chain().focus().toggleSubscript().run();\n\t}\n\tfunction toggleSuperscript() {\n\t\t$.get(editor)?.chain().focus().toggleSuperscript().run();\n\t}\n\tfunction toggleHeading3() {\n\t\t$.get(editor)?.chain().focus().toggleHeading({ level: 3 }).run();\n\t}\n\tfunction toggleBulletList() {\n\t\t$.get(editor)?.chain().focus().toggleBulletList().run();\n\t}\n\tfunction toggleOrderedList() {\n\t\t$.get(editor)?.chain().focus().toggleOrderedList().run();\n\t}\n\tfunction undo() {\n\t\t$.get(editor)?.chain().focus().undo().run();\n\t}\n\tfunction redo() {\n\t\t$.get(editor)?.chain().focus().redo().run();\n\t}\n\tfunction insertTable() {\n\t\t$.get(editor)?.chain().focus().insertTable({\n\t\t\trows: 2,\n\t\t\tcols: 2,\n\t\t\twithHeaderRow: false\n\t\t}).run();\n\t}\n\tfunction addRowAfter() {\n\t\t$.get(editor)?.chain().focus().addRowAfter().run();\n\t}\n\tfunction deleteRow() {\n\t\t$.get(editor)?.chain().focus().deleteRow().run();\n\t}\n\tfunction addColumnAfter() {\n\t\t$.get(editor)?.chain().focus().addColumnAfter().run();\n\t}\n\tfunction deleteColumn() {\n\t\t$.get(editor)?.chain().focus().deleteColumn().run();\n\t}\n\tfunction deleteTable() {\n\t\t$.get(editor)?.chain().focus().deleteTable().run();\n\t}\n\tfunction toggleTableBorder() {\n\t\tif (!$.get(editor)) return;\n\t\tconst tableAttrs = $.get(editor).getAttributes(\"table\");\n\t\tconst update = {\n\t\t\t...tableAttrs,\n\t\t\tborder: tableAttrs.border !== \"0\" ? \"0\" : \"1\"\n\t\t};\n\t\t$.get(editor).commands.updateAttributes(\"table\", update);\n\t}\n\tfunction setTextAlign(alignment) {\n\t\t$.get(editor)?.chain().focus().setTextAlign(alignment).run();\n\t\t$.set(showAlignMenu, false);\n\t}\n\tfunction insertImage() {\n\t\tconst url = window.prompt(\"Enter image URL:\");\n\t\tif (url) $.get(editor)?.chain().focus().setImage({ src: url }).run();\n\t}\n\tfunction handleMouseDown(e) {\n\t\te.preventDefault();\n\t}\n\tfunction handleDoneClick() {\n\t\tif ($.get(editor)) {\n\t\t\tconst html = $.get(editor).getHTML();\n\t\t\tif (html !== markup()) $$props.onChange?.(html);\n\t\t\t$.get(editor).commands.blur();\n\t\t}\n\t}\n\tvar div = root_5();\n\tvar div_1 = $.child(div);\n\tlet classes;\n\tvar div_2 = $.child(div_1);\n\tvar div_3 = $.child(div_2);\n\t$.bind_this(div_3, ($$value) => editorElement = $$value, () => editorElement);\n\t$.reset(div_2);\n\t$.reset(div_1);\n\tvar node = $.sibling(div_1, 2);\n\tvar consequent_6 = ($$anchor) => {\n\t\tvar div_4 = root_4();\n\t\tlet classes_1;\n\t\tvar div_5 = $.child(div_4);\n\t\tvar div_6 = $.child(div_5);\n\t\tvar node_1 = $.child(div_6);\n\t\tvar consequent = ($$anchor) => {\n\t\t\tvar button = root();\n\t\t\t$.html(button, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10.02H3V19z\\\"/></svg>\", true);\n\t\t\t$.reset(button);\n\t\t\t$.template_effect(() => button.disabled = !$.get(editorState).canTable);\n\t\t\t$.delegated(\"click\", button, insertTable);\n\t\t\t$.append($$anchor, button);\n\t\t};\n\t\t$.if(node_1, ($$render) => {\n\t\t\tif (!$.get(editorState).isTable) $$render(consequent);\n\t\t});\n\t\tvar node_2 = $.sibling(node_1, 2);\n\t\tvar consequent_1 = ($$anchor) => {\n\t\t\tvar fragment = root_1();\n\t\t\tvar button_1 = $.first_child(fragment);\n\t\t\tlet classes_2;\n\t\t\t$.html(button_1, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_1);\n\t\t\tvar button_2 = $.sibling(button_1, 2);\n\t\t\tlet classes_3;\n\t\t\t$.html(button_2, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_2);\n\t\t\tvar button_3 = $.sibling(button_2, 2);\n\t\t\tlet classes_4;\n\t\t\t$.html(button_3, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_3);\n\t\t\tvar button_4 = $.sibling(button_3, 2);\n\t\t\tlet classes_5;\n\t\t\t$.html(button_4, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_4);\n\t\t\tvar button_5 = $.sibling(button_4, 2);\n\t\t\tlet classes_6;\n\t\t\t$.html(button_5, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_5);\n\t\t\tvar button_6 = $.sibling(button_5, 2);\n\t\t\tlet classes_7;\n\t\t\t$.html(button_6, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z\\\"/></svg>\", true);\n\t\t\t$.reset(button_6);\n\t\t\t$.template_effect(() => {\n\t\t\t\tclasses_2 = $.set_class(button_1, 1, \"pie-toolbar-btn\", null, classes_2, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_1.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_3 = $.set_class(button_2, 1, \"pie-toolbar-btn\", null, classes_3, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_2.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_4 = $.set_class(button_3, 1, \"pie-toolbar-btn\", null, classes_4, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_3.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_5 = $.set_class(button_4, 1, \"pie-toolbar-btn\", null, classes_5, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_4.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_6 = $.set_class(button_5, 1, \"pie-toolbar-btn\", null, classes_6, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_5.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_7 = $.set_class(button_6, 1, \"pie-toolbar-btn\", null, classes_7, { active: $.get(editorState).tableHasBorder });\n\t\t\t\tbutton_6.disabled = !$.get(editorState).canTable;\n\t\t\t});\n\t\t\t$.delegated(\"click\", button_1, addRowAfter);\n\t\t\t$.delegated(\"click\", button_2, deleteRow);\n\t\t\t$.delegated(\"click\", button_3, addColumnAfter);\n\t\t\t$.delegated(\"click\", button_4, deleteColumn);\n\t\t\t$.delegated(\"click\", button_5, deleteTable);\n\t\t\t$.delegated(\"click\", button_6, toggleTableBorder);\n\t\t\t$.append($$anchor, fragment);\n\t\t};\n\t\t$.if(node_2, ($$render) => {\n\t\t\tif ($.get(editorState).isTable) $$render(consequent_1);\n\t\t});\n\t\tvar node_3 = $.sibling(node_2, 2);\n\t\tvar consequent_5 = ($$anchor) => {\n\t\t\tvar fragment_1 = root_3();\n\t\t\tvar button_7 = $.first_child(fragment_1);\n\t\t\tlet classes_8;\n\t\t\t$.html(button_7, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_7);\n\t\t\tvar button_8 = $.sibling(button_7, 2);\n\t\t\tlet classes_9;\n\t\t\t$.html(button_8, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z\\\"/></svg>\", true);\n\t\t\t$.reset(button_8);\n\t\t\tvar button_9 = $.sibling(button_8, 2);\n\t\t\tlet classes_10;\n\t\t\t$.html(button_9, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z\\\"/></svg>\", true);\n\t\t\t$.reset(button_9);\n\t\t\tvar button_10 = $.sibling(button_9, 2);\n\t\t\tlet classes_11;\n\t\t\t$.html(button_10, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\\\"/></svg>\", true);\n\t\t\t$.reset(button_10);\n\t\t\tvar button_11 = $.sibling(button_10, 2);\n\t\t\tlet classes_12;\n\t\t\t$.html(button_11, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_11);\n\t\t\tvar button_12 = $.sibling(button_11, 2);\n\t\t\tlet classes_13;\n\t\t\t$.html(button_12, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z\\\"/></svg>\", true);\n\t\t\t$.reset(button_12);\n\t\t\tvar button_13 = $.sibling(button_12, 2);\n\t\t\tlet classes_14;\n\t\t\t$.html(button_13, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z\\\"/></svg>\", true);\n\t\t\t$.reset(button_13);\n\t\t\tvar button_14 = $.sibling(button_13, 2);\n\t\t\tlet classes_15;\n\t\t\t$.html(button_14, () => \"<svg width=\\\"20\\\" height=\\\"18\\\" viewBox=\\\"0 0 30 28\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_14);\n\t\t\tvar button_15 = $.sibling(button_14, 2);\n\t\t\t$.html(button_15, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_15);\n\t\t\tvar div_7 = $.sibling(button_15, 2);\n\t\t\tvar button_16 = $.child(div_7);\n\t\t\tvar node_4 = $.child(button_16);\n\t\t\tvar consequent_2 = ($$anchor) => {\n\t\t\t\tvar fragment_2 = $.comment();\n\t\t\t\tvar node_5 = $.first_child(fragment_2);\n\t\t\t\t$.html(node_5, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_2);\n\t\t\t};\n\t\t\tvar consequent_3 = ($$anchor) => {\n\t\t\t\tvar fragment_3 = $.comment();\n\t\t\t\tvar node_6 = $.first_child(fragment_3);\n\t\t\t\t$.html(node_6, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_3);\n\t\t\t};\n\t\t\tvar alternate = ($$anchor) => {\n\t\t\t\tvar fragment_4 = $.comment();\n\t\t\t\tvar node_7 = $.first_child(fragment_4);\n\t\t\t\t$.html(node_7, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_4);\n\t\t\t};\n\t\t\t$.if(node_4, ($$render) => {\n\t\t\t\tif ($.get(editorState).textAlign === \"right\") $$render(consequent_2);\n\t\t\t\telse if ($.get(editorState).textAlign === \"center\") $$render(consequent_3, 1);\n\t\t\t\telse $$render(alternate, -1);\n\t\t\t});\n\t\t\t$.next(2);\n\t\t\t$.reset(button_16);\n\t\t\tvar node_8 = $.sibling(button_16, 2);\n\t\t\tvar consequent_4 = ($$anchor) => {\n\t\t\t\tvar div_8 = root_2();\n\t\t\t\tvar button_17 = $.child(div_8);\n\t\t\t\t$.html(button_17, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_17);\n\t\t\t\tvar button_18 = $.sibling(button_17, 2);\n\t\t\t\t$.html(button_18, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_18);\n\t\t\t\tvar button_19 = $.sibling(button_18, 2);\n\t\t\t\t$.html(button_19, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_19);\n\t\t\t\t$.reset(div_8);\n\t\t\t\t$.delegated(\"click\", button_17, () => setTextAlign(\"left\"));\n\t\t\t\t$.delegated(\"click\", button_18, () => setTextAlign(\"center\"));\n\t\t\t\t$.delegated(\"click\", button_19, () => setTextAlign(\"right\"));\n\t\t\t\t$.append($$anchor, div_8);\n\t\t\t};\n\t\t\t$.if(node_8, ($$render) => {\n\t\t\t\tif ($.get(showAlignMenu)) $$render(consequent_4);\n\t\t\t});\n\t\t\t$.reset(div_7);\n\t\t\tvar button_20 = $.sibling(div_7, 2);\n\t\t\tlet classes_16;\n\t\t\t$.html(button_20, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z\\\"/></svg>\", true);\n\t\t\t$.reset(button_20);\n\t\t\tvar button_21 = $.sibling(button_20, 2);\n\t\t\tlet classes_17;\n\t\t\t$.html(button_21, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z\\\"/></svg>\", true);\n\t\t\t$.reset(button_21);\n\t\t\tvar button_22 = $.sibling(button_21, 2);\n\t\t\t$.html(button_22, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\\\"/></svg>\", true);\n\t\t\t$.reset(button_22);\n\t\t\tvar button_23 = $.sibling(button_22, 2);\n\t\t\t$.html(button_23, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z\\\"/></svg>\", true);\n\t\t\t$.reset(button_23);\n\t\t\t$.template_effect(() => {\n\t\t\t\tclasses_8 = $.set_class(button_7, 1, \"pie-toolbar-btn\", null, classes_8, { active: $.get(editorState).isBold });\n\t\t\t\tbutton_7.disabled = !$.get(editorState).canBold;\n\t\t\t\tclasses_9 = $.set_class(button_8, 1, \"pie-toolbar-btn\", null, classes_9, { active: $.get(editorState).isItalic });\n\t\t\t\tbutton_8.disabled = !$.get(editorState).canItalic;\n\t\t\t\tclasses_10 = $.set_class(button_9, 1, \"pie-toolbar-btn\", null, classes_10, { active: $.get(editorState).isStrike });\n\t\t\t\tbutton_9.disabled = !$.get(editorState).canStrike;\n\t\t\t\tclasses_11 = $.set_class(button_10, 1, \"pie-toolbar-btn\", null, classes_11, { active: $.get(editorState).isCode });\n\t\t\t\tbutton_10.disabled = !$.get(editorState).canCode;\n\t\t\t\tclasses_12 = $.set_class(button_11, 1, \"pie-toolbar-btn\", null, classes_12, { active: $.get(editorState).isUnderline });\n\t\t\t\tclasses_13 = $.set_class(button_12, 1, \"pie-toolbar-btn\", null, classes_13, { active: $.get(editorState).isSubScript });\n\t\t\t\tclasses_14 = $.set_class(button_13, 1, \"pie-toolbar-btn\", null, classes_14, { active: $.get(editorState).isSuperScript });\n\t\t\t\tclasses_15 = $.set_class(button_14, 1, \"pie-toolbar-btn\", null, classes_15, { active: $.get(editorState).isHeading3 });\n\t\t\t\tclasses_16 = $.set_class(button_20, 1, \"pie-toolbar-btn\", null, classes_16, { active: $.get(editorState).isBulletList });\n\t\t\t\tclasses_17 = $.set_class(button_21, 1, \"pie-toolbar-btn\", null, classes_17, { active: $.get(editorState).isOrderedList });\n\t\t\t\tbutton_22.disabled = !$.get(editorState).canUndo;\n\t\t\t\tbutton_23.disabled = !$.get(editorState).canRedo;\n\t\t\t});\n\t\t\t$.delegated(\"click\", button_7, toggleBold);\n\t\t\t$.delegated(\"click\", button_8, toggleItalic);\n\t\t\t$.delegated(\"click\", button_9, toggleStrike);\n\t\t\t$.delegated(\"click\", button_10, toggleCode);\n\t\t\t$.delegated(\"click\", button_11, toggleUnderline);\n\t\t\t$.delegated(\"click\", button_12, toggleSubscript);\n\t\t\t$.delegated(\"click\", button_13, toggleSuperscript);\n\t\t\t$.delegated(\"click\", button_14, toggleHeading3);\n\t\t\t$.delegated(\"click\", button_15, insertImage);\n\t\t\t$.delegated(\"click\", button_16, () => $.set(showAlignMenu, !$.get(showAlignMenu)));\n\t\t\t$.delegated(\"click\", button_20, toggleBulletList);\n\t\t\t$.delegated(\"click\", button_21, toggleOrderedList);\n\t\t\t$.delegated(\"click\", button_22, undo);\n\t\t\t$.delegated(\"click\", button_23, redo);\n\t\t\t$.append($$anchor, fragment_1);\n\t\t};\n\t\t$.if(node_3, ($$render) => {\n\t\t\tif (!$.get(editorState).isTable) $$render(consequent_5);\n\t\t});\n\t\t$.reset(div_6);\n\t\tvar button_24 = $.sibling(div_6, 2);\n\t\t$.html(button_24, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\\\"/></svg>\", true);\n\t\t$.reset(button_24);\n\t\t$.reset(div_5);\n\t\t$.reset(div_4);\n\t\t$.template_effect(() => {\n\t\t\tclasses_1 = $.set_class(div_4, 1, \"toolbar\", null, classes_1, { focused: $.get(hasFocus) });\n\t\t\tdiv_4.inert = !$.get(hasFocus);\n\t\t});\n\t\t$.delegated(\"mousedown\", div_4, handleMouseDown);\n\t\t$.delegated(\"click\", button_24, handleDoneClick);\n\t\t$.append($$anchor, div_4);\n\t};\n\t$.if(node, ($$render) => {\n\t\tif (showToolbar() && $.get(editor)) $$render(consequent_6);\n\t});\n\t$.reset(div);\n\t$.template_effect(() => classes = $.set_class(div_1, 1, \"editor-holder\", null, classes, { disabled: disabled() }));\n\t$.delegated(\"focusin\", div, handleFocusIn);\n\t$.delegated(\"focusout\", div, handleFocusOut);\n\t$.append($$anchor, div);\n\t$.pop();\n}\n$.delegate([\n\t\"focusin\",\n\t\"focusout\",\n\t\"mousedown\",\n\t\"click\"\n]);\n//#endregion\nexport { EditableHtml as default };\n\n//# sourceMappingURL=index2.js.map","import EditableHtml$1 from \"./index2.js\";\n//#region src/index.ts\nvar EditableHtml = EditableHtml$1;\n//#endregion\nexport { EditableHtml };\n\n//# sourceMappingURL=index.js.map","<svelte:options\n customElement={{\n shadow: 'none',\n props: {\n model: { type: 'Object' },\n configuration: { type: 'Object' }\n }\n }}\n/>\n\n<script lang=\"ts\">\nimport { ModelUpdatedEvent } from '@pie-element/shared-configure-events';\nimport {\n ConfigLayout,\n SettingsPanel,\n hasSettings,\n mergeConfiguration,\n toggle,\n} from '@pie-lib/config-ui-svelte';\nimport { EditableHtml } from '@pie-lib/editable-html-tiptap-svelte';\nimport { createDefaultModel } from '../controller/index';\nimport defaults from '../controller/defaults';\n\nlet { model, configuration }: { model?: any; configuration?: Record<string, unknown> } = $props();\n\nconst answerInputId = `simple-cloze-correct-answer-${Math.random().toString(36).slice(2, 10)}`;\n\n/** The model with the controller's defaults filled in, which delivery renders too. */\nconst m = $derived(createDefaultModel(model || undefined));\nconst config = $derived(mergeConfiguration(defaults.configuration, configuration));\n\n/**\n * Keeps the edit as the element's model, so the next edit builds on it,\n * assigning it through the host: a remount after a detach starts from the\n * host's property. Announces it as a bubbling `model.updated` for the player\n * listening at its root. The update spreads the whole model, so fields this\n * form does not edit survive.\n */\nfunction emitModelUpdate(patch: Record<string, unknown>) {\n const nextModel = { ...m, ...patch };\n $host<HTMLElement & { model: unknown }>().model = nextModel;\n $host().dispatchEvent(new ModelUpdatedEvent(nextModel));\n}\n\nfunction handleAnswerChange(e: Event) {\n emitModelUpdate({ correctAnswer: (e.target as HTMLInputElement).value });\n}\n</script>\n\n<div class=\"simple-cloze-author\">\n <ConfigLayout hideSettings={config.settingsPanelDisabled === true || !hasSettings(config)}>\n {#snippet settings()}\n <SettingsPanel\n model={m}\n configuration={config}\n groups={{\n Settings: {\n promptEnabled: config.prompt?.settings && toggle(config.prompt.label),\n },\n Properties: {\n teacherInstructionsEnabled:\n config.teacherInstructions?.settings && toggle(config.teacherInstructions.label),\n },\n }}\n onChangeModel={(next) => emitModelUpdate(next)}\n />\n {/snippet}\n\n <div class=\"design-fields\">\n {#if m.teacherInstructionsEnabled}\n <div class=\"input-container\">\n <span class=\"input-label\">{config.teacherInstructions?.label}</span>\n <EditableHtml\n markup={m.teacherInstructions || ''}\n onChange={(html) => emitModelUpdate({ teacherInstructions: html })}\n ariaLabel={config.teacherInstructions?.label}\n />\n </div>\n {/if}\n\n {#if m.promptEnabled}\n <div class=\"input-container\">\n <span class=\"input-label\">{config.prompt?.label}</span>\n <EditableHtml\n markup={m.prompt || ''}\n onChange={(html) => emitModelUpdate({ prompt: html })}\n placeholder=\"Enter your question here...\"\n ariaLabel={config.prompt?.label}\n />\n </div>\n {/if}\n\n <div class=\"answer-container\">\n <label for={answerInputId} class=\"answer-label\">\n Correct Answer\n </label>\n <input\n id={answerInputId}\n type=\"text\"\n class=\"answer-input\"\n placeholder=\"Enter the correct answer\"\n value={m.correctAnswer || ''}\n oninput={handleAnswerChange}\n />\n </div>\n </div>\n </ConfigLayout>\n</div>\n\n<style>\n .simple-cloze-author {\n padding: 24px;\n }\n\n .design-fields {\n max-width: 56rem;\n }\n\n .input-container {\n position: relative;\n padding-top: 16px;\n margin-bottom: 24px;\n width: 100%;\n }\n\n .input-label {\n position: absolute;\n top: 0;\n left: 0;\n transform-origin: top left;\n transform: scale(0.75) translate(0, -0.75em);\n color: var(--pie-text, rgba(0, 0, 0, 0.6));\n pointer-events: none;\n }\n\n .answer-container {\n margin-bottom: 24px;\n }\n\n .answer-label {\n display: block;\n margin-bottom: 8px;\n font-size: 0.875rem;\n color: var(--pie-text, rgba(0, 0, 0, 0.6));\n }\n\n .answer-input {\n box-sizing: border-box;\n width: 100%;\n height: 2.5rem;\n padding: 0 12px;\n border: 1px solid var(--pie-border-light, #ccc);\n border-radius: 4px;\n font: inherit;\n }\n\n :global(.simple-cloze-author .editor-container) {\n border-color: var(--pie-border-light, #ccc);\n border-radius: 4px;\n }\n\n :global(.simple-cloze-author .editor-holder) {\n min-height: 140px;\n }\n</style>\n","import AuthorComponent from './Author.svelte';\n\nexport default (AuthorComponent as any).element;\n"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAI,KAAI,MAAM,UAAU,YAAY;CACnC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,IAAI,CAAC,GAAG;EACtB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;IACP,QAAQ;IACR,OAAO;GACR;EACD,CAAC,GAAG,KAAK,SAAS,GAAG,KAAK,QAAQ;CACnC;AACD;CAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG;EACjB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;IACP,KAAK;IACL,MAAM;GACP;EACD,CAAC,GAAG,KAAK,MAAM,GAAG,KAAK,OAAO;CAC/B;AACD,IAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG;EACd,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;EACT,CAAC,GAAG,KAAK,UAAU;CACpB;AACD,GAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,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