pom-text-editor 0.1.21 → 0.2.21

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.
@@ -1,92 +1,97 @@
1
- import { ref as L, onMounted as D, openBlock as H, createElementBlock as M, Fragment as T, createElementVNode as e, unref as R, renderSlot as z, renderList as V, normalizeStyle as P, createTextVNode as p, createStaticVNode as k, pushScopeId as G, popScopeId as O } from "vue";
2
- function X() {
3
- const o = window.getSelection();
4
- if (o.rangeCount > 0) {
5
- const l = o.getRangeAt(0), t = l.startOffset;
6
- document.getElementById("cursorPosition").textContent = t;
7
- const i = l.startContainer;
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`.heading{content:"H"}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;background-color:#f0f0f0;position:relative;display:inline-block;cursor:pointer}.color-container{width:25vw;display:none;position:absolute;z-index:9999;background-color:#fff;padding:1px;box-shadow:0 4px 6px #0000001a;border:1px solid #ccc;border-radius:5px;transition:opacity .3s ease,visibility .3s ease}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.color-container:hover{display:block;box-shadow:0 4px 8px #0000001a;padding:14px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts{display:none;position:absolute}.showfontFamilyMenu:hover+.pom-editor-menu-fonts,.pom-editor-menu-fonts:hover{display:inline-block}.pom-editor-menu:hover{display:block}.pom-editor-menu{display:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:50px;height:50px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor[data-v-367a2559]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-367a2559]:focus:before{content:none}.table-picker-wrapper[data-v-367a2559]{position:relative;display:inline-block}.table-picker-trigger[data-v-367a2559]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-367a2559]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-367a2559]{display:block}.table-picker-grid[data-v-367a2559]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-367a2559]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-367a2559]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-367a2559]{font-size:12px;color:#333}.pomXEditor[data-v-367a2559]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-367a2559]:focus{outline:none;border:none}.pom-table-editor-container[data-v-367a2559]{display:flex}.pom-table-editor-container a[data-v-367a2559]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-367a2559]:link{color:#00f}.pom-table-editor-container a[data-v-367a2559]:visited{color:purple}.pom-table-editor-container a[data-v-367a2559]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-367a2559]:active{color:orange}@media print{.hideonprint[data-v-367a2559]{display:none!important}[data-v-367a2559]{overflow:hidden}}/*!
2
+ * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2024 Fonticons, Inc.
5
+ */.editor[data-v-c5304261]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-c5304261]:focus:before{content:none}.table-picker-wrapper[data-v-c5304261]{position:relative;display:inline-block}.table-picker-trigger[data-v-c5304261]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-c5304261]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-c5304261]{display:block}.table-picker-grid[data-v-c5304261]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-c5304261]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-c5304261]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-c5304261]{font-size:12px;color:#333}.pomXEditor[data-v-c5304261]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-c5304261]:focus{outline:none;border:none}.pom-table-editor-container[data-v-c5304261]{display:flex}.pom-table-editor-container a[data-v-c5304261]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-c5304261]:link{color:#00f}.pom-table-editor-container a[data-v-c5304261]:visited{color:purple}.pom-table-editor-container a[data-v-c5304261]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-c5304261]:active{color:orange}@media print{.hideonprint[data-v-c5304261]{display:none!important}[data-v-c5304261]{overflow:hidden}}.editor[data-v-c5304261]{padding:10px;border:1px solid #ccc;min-height:200px}.resizable-image[data-v-c5304261]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
6
+ import { ref as H, onMounted as pe, openBlock as $, createElementBlock as I, Fragment as X, createElementVNode as e, unref as J, renderSlot as Q, renderList as ee, normalizeStyle as te, createTextVNode as Y, createStaticVNode as M, pushScopeId as me, popScopeId as he } from "vue";
7
+ function ge() {
8
+ const n = window.getSelection();
9
+ if (n.rangeCount > 0) {
10
+ const r = n.getRangeAt(0), o = r.startOffset;
11
+ document.getElementById("cursorPosition").textContent = o;
12
+ const i = r.startContainer;
8
13
  if (i.nodeType === Node.TEXT_NODE) {
9
- const r = i.textContent.substring(t, t + 1);
10
- document.getElementById("textAtCursor").textContent = r;
14
+ const a = i.textContent.substring(o, o + 1);
15
+ document.getElementById("textAtCursor").textContent = a;
11
16
  } else
12
17
  document.getElementById("textAtCursor").textContent = "No text here";
13
18
  }
14
19
  }
15
- function W() {
16
- const o = window.getSelection();
17
- if (o.rangeCount > 0)
18
- return { range: o.getRangeAt(0).cloneRange(), selection: o };
20
+ function fe() {
21
+ const n = window.getSelection();
22
+ if (n.rangeCount > 0)
23
+ return { range: n.getRangeAt(0).cloneRange(), selection: n };
19
24
  }
20
- function Z(o) {
21
- o.preventDefault();
22
- const t = o.target.parentElement, i = o.clientX, r = o.clientY, u = parseFloat(window.getComputedStyle(t).width), s = parseFloat(window.getComputedStyle(t).height);
25
+ function le(n) {
26
+ n.preventDefault();
27
+ const o = n.target.parentElement, i = n.clientX, a = n.clientY, p = parseFloat(window.getComputedStyle(o).width), s = parseFloat(window.getComputedStyle(o).height);
23
28
  function d(m) {
24
- const x = m.clientX - i, h = m.clientY - r;
25
- t.style.width = `${u + x}px`, t.style.height = `${s + h}px`, t.style.minWidth = "50px", t.style.minHeight = "50px";
26
- const v = t.querySelector("img");
27
- v && (v.style.width = "100%");
29
+ const x = m.clientX - i, h = m.clientY - a;
30
+ o.style.width = `${p + x}px`, o.style.height = `${s + h}px`, o.style.minWidth = "50px", o.style.minHeight = "50px";
31
+ const g = o.querySelector("img");
32
+ g && (g.style.width = "100%");
28
33
  }
29
- function g() {
30
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", g);
34
+ function u() {
35
+ document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
31
36
  }
32
- document.addEventListener("mousemove", d), document.addEventListener("mouseup", g);
37
+ document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
33
38
  }
34
- let A;
35
- function I(o, l) {
36
- const [t, i] = l.textContent.split(" x ").map(Number);
37
- q(o, i, t);
39
+ let B;
40
+ function oe(n, r) {
41
+ const [o, i] = r.textContent.split(" x ").map(Number);
42
+ ye(n, i, o);
38
43
  }
39
- function B(o, l, t) {
40
- const i = Array.from(t.children).indexOf(o.target), r = i % 10 + 1, u = Math.floor(i / 10) + 1;
41
- Array.from(t.children).forEach((s, d) => {
44
+ function ne(n, r, o) {
45
+ const i = Array.from(o.children).indexOf(n.target), a = i % 10 + 1, p = Math.floor(i / 10) + 1;
46
+ Array.from(o.children).forEach((s, d) => {
42
47
  d <= i ? s.style.backgroundColor = "#1f9296" : s.style.backgroundColor = "#737979";
43
- }), l.textContent = `${r} x ${u}`;
48
+ }), r.textContent = `${a} x ${p}`;
44
49
  }
45
- function Y(o, l, t, i) {
46
- for (A = o; t.firstChild; ) {
47
- const r = t.firstChild;
48
- r.removeEventListener("mouseover", B), r.removeEventListener("click", I), t.removeChild(r);
50
+ function ve(n, r, o, i) {
51
+ for (B = n; o.firstChild; ) {
52
+ const a = o.firstChild;
53
+ a.removeEventListener("mouseover", ne), a.removeEventListener("click", oe), o.removeChild(a);
49
54
  }
50
- for (let r = 0; r < 100; r++) {
51
- const u = document.createElement("div");
52
- u.addEventListener("mouseover", (s) => B(s, i, t)), u.addEventListener("click", () => I(l, i)), t.appendChild(u);
55
+ for (let a = 0; a < 100; a++) {
56
+ const p = document.createElement("div");
57
+ p.addEventListener("mouseover", (s) => ne(s, i, o)), p.addEventListener("click", () => oe(r, i)), o.appendChild(p);
53
58
  }
54
59
  }
55
- function q(o, l = 2, t = 2) {
56
- const i = A.range;
60
+ function ye(n, r = 2, o = 2) {
61
+ const i = B.range;
57
62
  if (i) {
58
- const r = A.selection, u = document.createElement("div");
59
- u.classList.add("pom-table-editor-container"), u.style.display = "flex";
63
+ const a = B.selection, p = document.createElement("div");
64
+ p.classList.add("pom-table-editor-container"), p.style.display = "flex";
60
65
  const s = document.createElement("table");
61
66
  s.style.border = "1px solid black", s.style.borderCollapse = "collapse", s.classList.add("pom-table-editor");
62
- for (let m = 0; m < l; m++) {
67
+ for (let m = 0; m < r; m++) {
63
68
  const x = document.createElement("tr");
64
- for (let h = 0; h < t; h++) {
65
- const v = document.createElement("td");
66
- v.style.border = "1px solid black", v.style.padding = "5px", v.textContent = `Row ${m + 1}, Cell ${h + 1}`;
67
- const y = document.createElement("div");
68
- y.style.width = "5px", y.style.height = "100%", y.style.position = "absolute", y.style.right = "0", y.style.top = "0", y.style.cursor = "col-resize", y.style.userSelect = "none", y.addEventListener("mousedown", Z), v.style.position = "relative", v.appendChild(y), x.appendChild(v);
69
+ for (let h = 0; h < o; h++) {
70
+ const g = document.createElement("td");
71
+ g.style.border = "1px solid black", g.style.padding = "5px", g.textContent = `Row ${m + 1}, Cell ${h + 1}`;
72
+ const v = document.createElement("div");
73
+ v.style.width = "5px", v.style.height = "100%", v.style.position = "absolute", v.style.right = "0", v.style.top = "0", v.style.cursor = "col-resize", v.style.userSelect = "none", v.addEventListener("mousedown", le), g.style.position = "relative", g.appendChild(v), x.appendChild(g);
69
74
  }
70
75
  s.appendChild(x);
71
76
  }
72
- u.appendChild(s), s.addEventListener("contextmenu", function(m) {
73
- m.preventDefault(), U(m, s, u);
74
- }), i.deleteContents(), i.insertNode(u);
75
- const d = s.querySelector("td"), g = document.createRange();
76
- return g.setStart(d, 0), g.collapse(!0), r.addRange(g), A = g.cloneRange(), o.focus(), A;
77
+ p.appendChild(s), s.addEventListener("contextmenu", function(m) {
78
+ m.preventDefault(), xe(m, s, p);
79
+ }), i.deleteContents(), i.insertNode(p);
80
+ const d = s.querySelector("td"), u = document.createRange();
81
+ return u.setStart(d, 0), u.collapse(!0), a.addRange(u), B = u.cloneRange(), n.focus(), B;
77
82
  }
78
83
  }
79
- function U(o, l, t) {
84
+ function xe(n, r, o) {
80
85
  const i = document.getElementById("custom-context-menu");
81
86
  i && document.body.removeChild(i);
82
- const r = document.createElement("div");
83
- r.id = "custom-context-menu", r.style.position = "absolute", r.style.backgroundColor = "white", r.style.border = "1px solid #ccc", r.style.padding = "10px", r.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", r.style.zIndex = "1000", r.style.left = `${o == null ? void 0 : o.pageX}px`, r.style.top = `${o == null ? void 0 : o.pageY}px`, [
84
- { text: "Delete Table", action: () => t.remove() },
87
+ const a = document.createElement("div");
88
+ a.id = "custom-context-menu", a.style.position = "absolute", a.style.backgroundColor = "white", a.style.border = "1px solid #ccc", a.style.padding = "10px", a.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", a.style.zIndex = "1000", a.style.left = `${n == null ? void 0 : n.pageX}px`, a.style.top = `${n == null ? void 0 : n.pageY}px`, [
89
+ { text: "Delete Table", action: () => o.remove() },
85
90
  {
86
91
  text: "Toggle Borders",
87
92
  action: () => {
88
- const s = l.style.border !== "";
89
- l.style.border = s ? "" : "1px solid black", l.style.borderCollapse = "collapse", l.querySelectorAll("td").forEach((d) => {
93
+ const s = r.style.border !== "";
94
+ r.style.border = s ? "" : "1px solid black", r.style.borderCollapse = "collapse", r.querySelectorAll("td").forEach((d) => {
90
95
  d.style.border = s ? "" : "1px solid black";
91
96
  });
92
97
  }
@@ -96,490 +101,873 @@ function U(o, l, t) {
96
101
  action: () => {
97
102
  const s = document.createElement("input");
98
103
  s.type = "color", s.style.marginTop = "5px", s.addEventListener("input", () => {
99
- l.style.backgroundColor = s.value;
104
+ r.style.backgroundColor = s.value;
100
105
  });
101
106
  const d = document.createElement("input");
102
107
  d.type = "color", d.style.marginTop = "5px", d.addEventListener("input", () => {
103
- l.style.color = d.value;
104
- }), r.appendChild(document.createTextNode("Background Color:")), r.appendChild(s), r.appendChild(document.createTextNode("Text Color:")), r.appendChild(d);
108
+ r.style.color = d.value;
109
+ }), a.appendChild(document.createTextNode("Background Color:")), a.appendChild(s), a.appendChild(document.createTextNode("Text Color:")), a.appendChild(d);
105
110
  }
106
111
  },
107
112
  {
108
113
  text: "Add Row",
109
114
  action: () => {
110
- const s = document.createElement("tr"), d = l.rows[0].cells.length;
111
- for (let g = 0; g < d; g++) {
115
+ const s = document.createElement("tr"), d = r.rows[0].cells.length;
116
+ for (let u = 0; u < d; u++) {
112
117
  const m = document.createElement("td");
113
- m.style.border = "1px solid black", m.style.padding = "5px", m.textContent = `Row ${l.rows.length + 1}, Cell ${g + 1}`, s.appendChild(m);
118
+ m.style.border = "1px solid black", m.style.padding = "5px", m.textContent = `Row ${r.rows.length + 1}, Cell ${u + 1}`, s.appendChild(m);
114
119
  }
115
- l.appendChild(s);
120
+ r.appendChild(s);
116
121
  }
117
122
  },
118
123
  {
119
124
  text: "Add Column",
120
125
  action: () => {
121
- for (let s = 0; s < l.rows.length; s++) {
126
+ for (let s = 0; s < r.rows.length; s++) {
122
127
  const d = document.createElement("td");
123
- d.style.border = "1px solid black", d.style.padding = "5px", d.textContent = `Row ${s + 1}, Cell ${l.rows[s].cells.length + 1}`, l.rows[s].appendChild(d);
128
+ d.style.border = "1px solid black", d.style.padding = "5px", d.textContent = `Row ${s + 1}, Cell ${r.rows[s].cells.length + 1}`, r.rows[s].appendChild(d);
124
129
  }
125
130
  }
126
131
  }
127
132
  ].forEach((s) => {
128
133
  const d = document.createElement("div");
129
- d.textContent = s.text, d.style.cursor = "pointer", d.addEventListener("click", s.action), r.appendChild(d);
130
- }), document.body.appendChild(r), document.addEventListener("click", function s() {
131
- r && document.body.removeChild(r), document.removeEventListener("click", s);
134
+ d.textContent = s.text, d.style.cursor = "pointer", d.addEventListener("click", s.action), a.appendChild(d);
135
+ }), document.body.appendChild(a), document.addEventListener("click", function s() {
136
+ a && document.body.removeChild(a), document.removeEventListener("click", s);
132
137
  });
133
138
  }
134
- function $(o, l = "strong", t = "*bold text here *", i = []) {
135
- if (o) {
136
- const r = window.getSelection();
137
- r.removeAllRanges(), r.addRange(o);
138
- const u = r.getRangeAt(0), s = `${u.toString()}`.trim(), d = u.cloneContents();
139
- if (typeof l == "string" && l.trim() !== "") {
140
- const g = document.createElement(l);
141
- g.style.paddingLeft = "7px", g.contenteditable = !1, i && i.forEach((v) => {
142
- const { attr: y, value: b, keyin: _ } = v;
143
- g.setAttribute(y, b);
144
- }), g.appendChild(d), g.innerHTML = s.length > 0 ? g.innerHTML : t;
139
+ function q(n, r = "strong", o = "*bold text here *", i = []) {
140
+ if (n) {
141
+ const a = window.getSelection();
142
+ a.removeAllRanges(), a.addRange(n);
143
+ const p = a.getRangeAt(0), s = `${p.toString()}`.trim(), d = p.cloneContents();
144
+ if (typeof r == "string" && r.trim() !== "") {
145
+ const u = document.createElement(r);
146
+ u.style.paddingLeft = "7px", u.contenteditable = !1, i && i.forEach((g) => {
147
+ const { attr: v, value: y, keyin: w } = g;
148
+ u.setAttribute(v, y);
149
+ }), u.appendChild(d), u.innerHTML = s.length > 0 ? u.innerHTML : o;
145
150
  const m = document.createElement("span"), x = document.createElement("span");
146
- m.innerHTML = "&nbsp;", x.innerHTML = "&nbsp;", o.deleteContents(), o.insertNode(m), o.insertNode(g), o.insertNode(x);
151
+ m.innerHTML = "&nbsp;", x.innerHTML = "&nbsp;", n.deleteContents(), n.insertNode(m), n.insertNode(u), n.insertNode(x);
147
152
  const h = document.createRange();
148
- h.setStartAfter(x), h.collapse(!0), r.removeAllRanges(), r.addRange(h), o = h.cloneRange();
153
+ h.setStartAfter(x), h.collapse(!0), a.removeAllRanges(), a.addRange(h), n = h.cloneRange();
149
154
  } else
150
- console.error("Invalid element type:", l);
155
+ console.error("Invalid element type:", r);
151
156
  } else
152
157
  console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
153
158
  }
154
- function K(o, l, t = "span", i = "datetime-local", r = {}, u = []) {
159
+ function _e(n, r, o = "span", i = "datetime-local", a = {}, p = []) {
155
160
  const s = document.getElementById("Pom-openInputToFeed" + i);
156
161
  s && s.remove();
157
- const d = document.createElement("div"), g = document.createElement("input");
158
- d.id = "custom-context-menu", d.style.position = "absolute", d.style.backgroundColor = "white", d.style.border = "1px solid #ccc", d.style.padding = "10px", d.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", d.style.zIndex = "1000", d.style.left = `${l == null ? void 0 : l.pageX}px`, d.style.top = `${l == null ? void 0 : l.pageY}px`, g.id = "Pom-openInputToFeed" + i, g.classList.add("Pom-openInputToFeed"), g.type = i, g.style.cssText = r, d.appendChild(g);
162
+ const d = document.createElement("div"), u = document.createElement("input");
163
+ d.id = "custom-context-menu", d.style.position = "absolute", d.style.backgroundColor = "white", d.style.border = "1px solid #ccc", d.style.padding = "10px", d.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", d.style.zIndex = "1000", d.style.left = `${r == null ? void 0 : r.pageX}px`, d.style.top = `${r == null ? void 0 : r.pageY}px`, u.id = "Pom-openInputToFeed" + i, u.classList.add("Pom-openInputToFeed"), u.type = i, u.style.cssText = a, d.appendChild(u);
159
164
  const m = document.getElementById("toolbar");
160
- m && m.appendChild(d), g.addEventListener("change", function() {
161
- const v = `${this.value}`;
165
+ m && m.appendChild(d), u.addEventListener("change", function() {
166
+ const g = `${this.value}`;
162
167
  if (i == "datetime-local")
163
- $(o, t, v.replace(/T/, " "));
168
+ q(n, o, g.replace(/T/, " "));
164
169
  else {
165
- let b = [];
166
- for (const _ in u)
167
- if (u.hasOwnProperty(_))
168
- if (_.toLowerCase() === "href")
169
- b.push({ attr: _, value: v });
170
+ let y = [];
171
+ for (const w in p)
172
+ if (p.hasOwnProperty(w))
173
+ if (w.toLowerCase() === "href")
174
+ y.push({ attr: w, value: g });
170
175
  else {
171
- const F = u[_];
172
- b.push({ attr: _, value: F });
176
+ const R = p[w];
177
+ y.push({ attr: w, value: R });
173
178
  }
174
- $(o, t, "**link Name** ", b);
179
+ q(n, o, "**link Name** ", y);
175
180
  }
176
181
  d.remove(), window.document.removeEventListener("click", x);
177
- const y = document.getElementsByClassName("pom-editor-anchor-tag");
178
- for (let b = 0; b < y.length; b++)
179
- y[b].addEventListener("click", h);
182
+ const v = document.getElementsByClassName("pom-editor-anchor-tag");
183
+ for (let y = 0; y < v.length; y++)
184
+ v[y].addEventListener("click", h);
180
185
  });
181
- function x(v) {
182
- d.contains(v.target) || (d.remove(), window.document.removeEventListener("click", x));
186
+ function x(g) {
187
+ d.contains(g.target) || (d.remove(), window.document.removeEventListener("click", x));
183
188
  }
184
- function h(v) {
185
- v.preventDefault();
186
- const y = this.href;
187
- window.open(y, "_blank"), window.document.removeEventListener("click", h);
189
+ function h(g) {
190
+ g.preventDefault();
191
+ const v = this.href;
192
+ window.open(v, "_blank"), window.document.removeEventListener("click", h);
188
193
  }
189
194
  }
190
- function J(o, l, t, i, r = "", u = "div") {
191
- if (!o) {
195
+ function be(n, r, o, i, a = "", p = "span") {
196
+ if (!n) {
192
197
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
193
198
  return;
194
199
  }
195
200
  const s = window.getSelection();
196
- s.removeAllRanges(), s.addRange(o);
197
- const d = s.getRangeAt(0), g = d.cloneContents(), m = d.commonAncestorContainer, x = m.nodeType === Node.TEXT_NODE ? m.parentNode : m;
198
- let h, v;
199
- x.id === "editor" ? (h = document.createElement(u), console.log(g), h.appendChild(g), console.log(h.innerHTML.replace("text-align", "note")), v = h.innerHTML.replace("text-align", "note"), o.deleteContents()) : (h = x.cloneNode(), v = h.innerHTML);
200
- const y = h.style[t] || "", b = new RegExp(r, "ig"), _ = i.replace(b, "") + r;
201
- y.includes(_) ? h.style[t] = y.replace(_, "") : h.style[t] = (y + _).trim();
202
- const F = document.createElement("span"), C = document.createElement("span");
203
- F.innerHTML = "&nbsp;", C.innerHTML = "&nbsp;", h.innerHTML = v, o.insertNode(F), o.insertNode(h), o.insertNode(C);
204
- const f = document.createRange();
205
- f.collapse(!0), s.removeAllRanges(), s.addRange(f), o = f.cloneRange(), l.focus();
201
+ s.removeAllRanges(), s.addRange(n);
202
+ const d = s.getRangeAt(0), u = d.cloneContents(), m = d.commonAncestorContainer, x = m.nodeType === Node.TEXT_NODE ? m.parentNode : m;
203
+ let h, g;
204
+ h = document.createElement(p), h.classList.add("pom-4-textDirection"), h.setAttribute("id", `pom-4-textDirection-${Date.now()}`);
205
+ const v = `${x.tagName}`.toLowerCase(), y = x.classList.contains("resizer-image-dropped");
206
+ if (v == "ul" || y) {
207
+ alert(i);
208
+ const T = {
209
+ justify: "inline-start",
210
+ none: "inline-none",
211
+ end: "inline-end",
212
+ start: "none",
213
+ center: "inline-start"
214
+ };
215
+ x.style.float = `${T[i]}`, x.style.fontWeight = "bold";
216
+ return;
217
+ }
218
+ h.appendChild(u), x.id === "editor" ? (g = h.innerHTML.replace("text-align", "note"), n.deleteContents()) : (g = h.innerHTML, n.deleteContents());
219
+ const w = h.style[o] || "", R = new RegExp(a, "ig"), C = i.replace(R, "") + a;
220
+ w.includes(C) ? h.style[o] = w.replace(C, "") : h.style[o] = (w + C).trim(), h.style["margin-left"] = "4px", h.style["margin-right"] = "4px", h.innerHTML = g, n.insertNode(h);
221
+ const L = document.createRange();
222
+ L.collapse(!0), s.removeAllRanges(), s.addRange(L), n = L.cloneRange(), r.focus();
206
223
  }
207
- function Q(o, l = 2, t = "list-style") {
208
- if (o) {
224
+ function we(n, r = 2, o = "list-style") {
225
+ if (n) {
209
226
  const i = window.getSelection();
210
- i.removeAllRanges(), i.addRange(o);
211
- const r = document.createElement("ul");
212
- r.style.listStyle = t, r.style.paddingLeft = "73px";
213
- for (let d = 0; d < l; d++) {
214
- const g = document.createElement("li");
215
- g.style.padding = "5px", g.textContent = `li ${d + 1}, `, g.style.position = "relative", r.appendChild(g);
227
+ i.removeAllRanges(), i.addRange(n);
228
+ const a = document.createElement("ul");
229
+ a.style.listStyle = o, a.style.paddingLeft = "73px";
230
+ for (let d = 0; d < r; d++) {
231
+ const u = document.createElement("li");
232
+ u.style.padding = "5px", u.textContent = `li ${d + 1}, `, u.style.position = "relative", a.appendChild(u);
216
233
  }
217
- o.deleteContents(), o.insertNode(r);
218
- const u = r.querySelector("td"), s = document.createRange();
219
- s.setStart(u, 0), s.collapse(!0), i.removeAllRanges(), i.addRange(s), o = s.cloneRange(), editor.focus();
234
+ n.deleteContents(), n.insertNode(a);
235
+ const p = a.querySelector("td"), s = document.createRange();
236
+ s.setStart(p, 0), s.collapse(!0), i.removeAllRanges(), i.addRange(s), n = s.cloneRange(), editor.focus();
220
237
  }
221
238
  }
222
- function ee(o) {
223
- o.preventDefault();
224
- const t = o.target.parentElement, i = document.getElementById("editor"), r = o.clientX, u = o.clientY, s = parseFloat(window.getComputedStyle(t).left) || 0, d = parseFloat(window.getComputedStyle(t).top) || 0, g = i.offsetWidth, m = i.offsetHeight, x = t.offsetWidth, h = t.offsetHeight;
225
- function v(b) {
226
- const _ = b.clientX - r, F = b.clientY - u;
227
- let C = s + _, f = d + F;
228
- C < 0 ? C = 0 : C + x > g && (C = g - x), f < 0 ? f = 0 : f + h > m && (f = m - h), t.style.left = `${C}px`, t.style.top = `${f}px`;
229
- const E = g / 2, S = m / 2, w = C + x / 2, n = f + h / 2;
230
- Math.abs(w - E) < 1 && Math.abs(n - S) < 1 && alert("Container is centered!");
239
+ function ke(n) {
240
+ n.preventDefault();
241
+ const o = n.target.parentElement, i = document.getElementById("editor"), a = n.clientX, p = n.clientY, s = parseFloat(window.getComputedStyle(o).left) || 0, d = parseFloat(window.getComputedStyle(o).top) || 0, u = i.offsetWidth, m = i.offsetHeight, x = o.offsetWidth, h = o.offsetHeight;
242
+ function g(y) {
243
+ const w = y.clientX - a, R = y.clientY - p;
244
+ let C = s + w, L = d + R;
245
+ C < 0 ? C = 0 : C + x > u && (C = u - x), L < 0 ? L = 0 : L + h > m && (L = m - h), o.style.left = `${C}px`, o.style.top = `${L}px`;
246
+ const T = u / 2, P = m / 2, N = C + x / 2, b = L + h / 2;
247
+ Math.abs(N - T) < 1 && Math.abs(b - P) < 1 && alert("Container is centered!");
231
248
  }
232
- function y() {
233
- document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", y);
249
+ function v() {
250
+ document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", v);
234
251
  }
235
- document.addEventListener("mousemove", v), document.addEventListener("mouseup", y);
252
+ document.addEventListener("mousemove", g), document.addEventListener("mouseup", v);
236
253
  }
237
- function te(o, l) {
254
+ function Ce(n, r) {
238
255
  try {
239
- const t = document.createElement("div");
240
- t.style.width = "20px", t.style.height = "20px", t.style.background = "rgba(0, 0, 0, 0.5)", t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.cursor = "move", t.style.zIndex = "11", t.classList.add(l), t.classList.add("hideonprint"), t.addEventListener("mousedown", (i) => {
241
- ee(i);
242
- }), o.appendChild(t);
243
- } catch (t) {
244
- console.log(t);
256
+ const o = document.createElement("div");
257
+ o.style.width = "20px", o.style.height = "20px", o.style.background = "rgba(0, 0, 0, 0.5)", o.style.position = "absolute", o.style.left = "0", o.style.top = "0", o.style.cursor = "move", o.style.zIndex = "11", o.classList.add(r), o.classList.add("hideonprint"), o.addEventListener("mousedown", (i) => {
258
+ ke(i);
259
+ }), n.appendChild(o);
260
+ } catch (o) {
261
+ console.log(o);
245
262
  }
246
263
  }
247
- function oe(o, l) {
248
- if (o) {
249
- const t = window.getSelection();
250
- t.removeAllRanges(), t.addRange(o);
251
- const i = "Pom_Imge_EditorIn" + Date.now(), r = document.createElement("div");
252
- r.style.display = "inline-flex", r.style.position = "relative", r.style.width = "200px", r.style.minHeight = "40px", r.classList.add(i), r.classList.add("hideOnprint"), r.classList.add("pom-4-imageContainer"), r.id = i, r.setAttribute("contenteditable", !1);
253
- const u = document.createElement("img");
254
- u.style.padding = "5px", u.style.width = "100%", u.src = l, u.style.display = "block", u.classList.add(i), u.setAttribute("contenteditable", !1);
264
+ function Ee(n, r) {
265
+ if (n) {
266
+ const o = window.getSelection();
267
+ o.removeAllRanges(), o.addRange(n);
268
+ const i = "Pom_Imge_EditorIn" + Date.now(), a = document.createElement("div");
269
+ a.style.display = "inline-flex", a.style.position = "relative", a.style.width = "200px", a.style.minHeight = "40px", a.classList.add(i), a.classList.add("hideOnprint"), a.classList.add("pom-4-imageContainer"), a.id = i, a.setAttribute("contenteditable", !1);
270
+ const p = document.createElement("img");
271
+ p.style.padding = "5px", p.style.width = "100%", p.src = r, p.style.display = "block", p.classList.add(i), p.setAttribute("contenteditable", !1);
255
272
  const s = document.createElement("div");
256
- s.style.width = "20px", s.style.height = "20px", s.style.background = "gray", s.style.position = "absolute", s.style.right = "0", s.style.bottom = "0", s.style.cursor = "nwse-resize", s.style.zIndex = "10", s.classList.add(i), s.setAttribute("contenteditable", !1), s.classList.add("hideOnprint"), s.addEventListener("mousedown", Z), r.appendChild(u), r.appendChild(s), te(r, i), o.deleteContents(), o.insertNode(r);
273
+ s.style.width = "20px", s.style.height = "20px", s.style.background = "gray", s.style.position = "absolute", s.style.right = "0", s.style.bottom = "0", s.style.cursor = "nwse-resize", s.style.zIndex = "10", s.classList.add(i), s.setAttribute("contenteditable", !1), s.classList.add("hideOnprint"), s.addEventListener("mousedown", le), a.appendChild(p), a.appendChild(s), Ce(a, i), n.deleteContents(), n.insertNode(a);
257
274
  const d = document.createRange();
258
- d.setStartAfter(u), d.collapse(!0), t.removeAllRanges(), t.addRange(d), o = d.cloneRange(), editor.focus();
259
- let g = document.getElementsByClassName(i);
260
- for (let m = 0; m < g.length; m++)
261
- g[m].addEventListener("keyup", function(h) {
275
+ d.setStartAfter(p), d.collapse(!0), o.removeAllRanges(), o.addRange(d), n = d.cloneRange(), editor.focus();
276
+ let u = document.getElementsByClassName(i);
277
+ for (let m = 0; m < u.length; m++)
278
+ u[m].addEventListener("keyup", function(h) {
262
279
  h.keyCode == 8;
263
280
  });
264
281
  }
265
282
  }
266
- async function ne(o, l) {
267
- const t = o.target.files || o.dataTransfer.files;
268
- if (t.length) {
269
- for (const i in t)
270
- if (t.hasOwnProperty(i)) {
271
- const r = t[i], u = await ie(r);
272
- oe(l, u);
283
+ async function Fe(n, r) {
284
+ const o = n.target.files || n.dataTransfer.files;
285
+ if (o.length) {
286
+ for (const i in o)
287
+ if (o.hasOwnProperty(i)) {
288
+ const a = o[i], p = await Le(a);
289
+ Ee(r, p);
273
290
  }
274
291
  }
275
292
  }
276
- function ie(o) {
277
- return new Promise((l, t) => {
293
+ function Le(n) {
294
+ return new Promise((r, o) => {
278
295
  const i = new FileReader();
279
- i.onloadend = () => l(i.result), i.onerror = (r) => t(r), i.readAsDataURL(o);
296
+ i.onloadend = () => r(i.result), i.onerror = (a) => o(a), i.readAsDataURL(n);
280
297
  });
281
298
  }
282
- function se(o, l, t, i, r = "", u = "span") {
283
- if (o) {
284
- const s = window.getSelection();
285
- s.removeAllRanges(), s.addRange(o);
286
- const d = s.getRangeAt(0), g = `${d}`.toString().trim(), m = d.cloneContents();
287
- if (typeof u == "string" && u.trim() !== "") {
288
- const x = document.createElement(u);
289
- x.appendChild(m), console.log(x.innerHTML);
290
- const h = new RegExp(r, "ig");
291
- x.style[t] = i.replace(h, "") + r;
292
- let v = "text here";
293
- t == "background" ? v = x.innerHTML.replace("background", "note") : v = x.innerHTML, x.innerHTML = (g.length > 0, v);
294
- const y = document.createElement("span"), b = document.createElement("span");
295
- y.innerHTML = "&nbsp;&nbsp;", b.innerHTML = "&nbsp;&nbsp;", o.deleteContents(), o.insertNode(y), o.insertNode(x), o.insertNode(b);
296
- const _ = document.createRange();
297
- _.setStartAfter(b), _.collapse(!0), s.removeAllRanges(), s.addRange(_), o = _.cloneRange(), l.focus();
298
- } else
299
- console.error("Invalid element type:", u);
300
- } else
301
- console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
302
- }
303
- function re(o) {
304
- const l = document.createElement("div");
305
- l.textContent = "NeW line ", o.appendChild(l), l.focus();
299
+ function Ae(n) {
300
+ const r = document.createElement("div");
301
+ r.textContent = "NeW line ", n.appendChild(r), r.focus();
306
302
  }
307
- function N(o = !1, l = document.getElementsByClassName("pom-table-editor-container")) {
308
- l = Array.from(l), l.forEach((t) => {
309
- if (o) {
310
- const i = t.style.display === "flex" ? "none" : "flex";
311
- t.style.display = i;
303
+ function ie(n = !1, r = document.getElementsByClassName("pom-table-editor-container")) {
304
+ r = Array.from(r), r.forEach((o) => {
305
+ if (n) {
306
+ const i = o.style.display === "flex" ? "none" : "flex";
307
+ o.style.display = i;
312
308
  return;
313
309
  }
314
- t.remove();
310
+ o.remove();
315
311
  });
316
312
  }
317
- function le(o = document.getElementById("pom-texedito-container").innerHTML, l = ".hideonprint") {
318
- const t = window.open("", "", "height=900,width=800");
319
- t.document.write("<html><head><title>Print</title>"), t.document.write(`<style>
320
- ${l} {
313
+ function Se(n = document.getElementById("pom-texedito-container").innerHTML, r = ".hideonprint") {
314
+ const o = window.open("", "", "height=900,width=800");
315
+ o.document.write("<html><head><title>Print</title>"), o.document.write(`<style>
316
+ ${r} {
321
317
  display: none;
322
318
  }
323
319
 
324
320
  @media print {
325
- ${l} {
321
+ ${r} {
326
322
  display: none;
327
323
  }
328
324
  }
329
325
  .pom-4-imageContainer {
330
326
  display: block !important;
331
327
  }
332
- </style>`), t.document.write("</head><body>"), t.document.write(o), t.document.write("</body></html>"), t.document.close();
333
- const i = t.document.querySelectorAll(".pom-4-imageContainer");
334
- return j(i), t;
328
+ </style>`), o.document.write("</head><body>"), o.document.write(n), o.document.write("</body></html>"), o.document.close();
329
+ const i = o.document.querySelectorAll(".pom-4-imageContainer");
330
+ return ae(i), o;
335
331
  }
336
- function j(o = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
337
- o && o.forEach(function(l) {
338
- const t = l.querySelector("img"), i = l.getAttribute("style");
339
- i ? t.style.cssText = i + "; position: initial" : t.style.position = "initial", l.style.display = "block", parseInt(l.style.left, 10) > 793.7 && (l.style.left = "793.7px");
332
+ function ae(n = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
333
+ n && n.forEach(function(r) {
334
+ const o = r.querySelector("img"), i = r.getAttribute("style");
335
+ i ? o.style.cssText = i + "; position: initial" : o.style.position = "initial", r.style.display = "block", parseInt(r.style.left, 10) > 793.7 && (r.style.left = "793.7px");
340
336
  });
341
337
  }
342
- function de(o = document.getElementById("pom-texedito-container")) {
343
- return j(o.querySelectorAll(".pom-4-imageContainer")), ce() + o.innerHTML;
338
+ function ze(n = document.getElementById("pom-texedito-container")) {
339
+ return ae(n.querySelectorAll(".pom-4-imageContainer")), n.innerHTML;
344
340
  }
345
- function ae(o = !0, l = document.getElementById("pom-texedito-container").innerHTML, t = "hideonprint") {
346
- const i = le(l, t);
347
- o && (i.focus(), i.onload = function() {
341
+ function Me(n = !0, r = document.getElementById("pom-texedito-container").innerHTML, o = "hideonprint") {
342
+ const i = Se(r, o);
343
+ n && (i.focus(), i.onload = function() {
348
344
  i.print();
349
345
  }, i.onafterprint = function() {
350
346
  i.close();
351
347
  });
352
348
  }
353
- function ce() {
349
+ function se(n, r, o, i, a = "", p = "span") {
350
+ if (!n) {
351
+ console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
352
+ return;
353
+ }
354
+ const s = window.getSelection();
355
+ s.removeAllRanges(), s.addRange(n);
356
+ const d = s.getRangeAt(0), u = d.cloneContents(), m = d.commonAncestorContainer;
357
+ (m.nodeType === Node.TEXT_NODE ? m.parentNode : m).tagName.toLowerCase();
358
+ let h;
359
+ const g = document.createElement(p);
360
+ g.style[o] = i, g.appendChild(u), h = g.innerHTML, n.deleteContents(), g.innerHTML = h, n.insertNode(g);
361
+ const v = document.createRange();
362
+ v.collapse(!0), s.removeAllRanges(), s.addRange(v), n = v.cloneRange();
363
+ }
364
+ function Re() {
354
365
  return `<style scoped>
355
366
  .table-picker-wrapper {
356
- position: relative;
357
- display: inline-block;
367
+ position: relative;
368
+ display: inline-block;
358
369
  }
359
370
 
360
371
  .table-picker-trigger {
361
- cursor: pointer;
362
- display: flex;
363
- align-items: center;
372
+ cursor: pointer;
373
+ display: flex;
374
+ align-items: center;
364
375
  }
365
376
 
366
377
  .table-picker-container {
367
- position: absolute;
368
- top: 10%;
369
- right: 90;
370
- margin-top: 10px;
371
- padding: 10px;
372
- border: 0;
373
- background-color: rgb(244, 244, 244);
374
- cursor: pointer;
375
- user-select: none;
376
- width: max-content;
377
- display: none;
378
- left: 85% !important;
379
- top: -7px;
380
- /* Hidden by default */
378
+ position: absolute;
379
+ top: 10%;
380
+ right: 90;
381
+ margin-top: 10px;
382
+ padding: 10px;
383
+ border: 0;
384
+ background-color: rgb(244, 244, 244);
385
+ cursor: pointer;
386
+ user-select: none;
387
+ width: max-content;
388
+ display: none;
389
+ left: 85% !important;
390
+ top: -7px;
391
+ /* Hidden by default */
381
392
  }
382
393
 
383
394
  .table-picker-container.hidden {
384
- /* display: none; */
395
+ /* display: none; */
385
396
  }
386
397
 
387
398
  .table-picker-wrapper:hover .table-picker-container {
388
- display: block;
389
- /* Show on hover */
399
+ display: block;
400
+ /* Show on hover */
390
401
  }
391
402
 
392
403
  .table-picker-grid {
393
- display: grid;
394
- grid-template-columns: repeat(10, 20px);
395
- grid-template-rows: repeat(10, 20px);
396
- gap: 2px;
397
- margin-bottom: 10px;
404
+ display: grid;
405
+ grid-template-columns: repeat(10, 20px);
406
+ grid-template-rows: repeat(10, 20px);
407
+ gap: 2px;
408
+ margin-bottom: 10px;
398
409
  }
399
410
 
400
411
  .table-picker-grid div {
401
- width: 20px;
402
- height: 20px;
403
- border: 1px solid #ddd;
404
- background-color: #efa153ce;
412
+ width: 20px;
413
+ height: 20px;
414
+ border: 1px solid #ddd;
415
+ background-color: #efa153ce;
405
416
  }
406
417
 
407
418
  .table-picker-grid div:hover {
408
- background-color: rgb(248, 246, 246);
409
- border: 0;
419
+ background-color: rgb(248, 246, 246);
420
+ border: 0;
410
421
  }
411
422
 
412
423
  .table-dimensions {
413
- font-size: 12px;
414
- color: #333;
424
+ font-size: 12px;
425
+ color: #333;
415
426
  }
416
427
 
417
428
  .pomXEditor {
418
- border: 1px;
419
- border-style: solid;
420
- border-color: #6972734e;
429
+ border: 1px;
430
+ border-style: solid;
431
+ border-color: #6972734e;
421
432
  }
422
433
 
423
434
  #editor:focus {
424
- outline: none;
425
- border: none;
426
- /* Removes any custom borders if applied */
435
+ outline: none;
436
+ border: none;
437
+ /* Removes any custom borders if applied */
427
438
  }
428
439
 
429
440
  .pom-table-editor-container {
430
- display: flex;
441
+ display: flex;
431
442
  }
432
443
 
433
444
  a {
434
- color: blue;
435
- /* Default color of the link text */
436
- text-decoration: underline;
437
- /* Underline the link text by default */
438
- cursor: pointer;
439
- /* Cursor changes to a pointer on hover */
445
+ color: blue;
446
+ /* Default color of the link text */
447
+ text-decoration: underline;
448
+ /* Underline the link text by default */
449
+ cursor: pointer;
450
+ /* Cursor changes to a pointer on hover */
440
451
  }
441
452
 
442
453
  /* Additional pseudo-classes for different link states */
443
454
  a:link {
444
- color: blue;
445
- /* Color of unvisited link */
455
+ color: blue;
456
+ /* Color of unvisited link */
446
457
  }
447
458
 
448
459
  a:visited {
449
- color: purple;
450
- /* Color of visited link */
460
+ color: purple;
461
+ /* Color of visited link */
451
462
  }
452
463
 
453
464
  a:hover {
454
- color: red;
455
- /* Color when the link is hovered over */
456
- text-decoration: none;
457
- /* Typically remove underline on hover */
465
+ color: red;
466
+ /* Color when the link is hovered over */
467
+ text-decoration: none;
468
+ /* Typically remove underline on hover */
458
469
  }
459
470
 
460
471
  a:active {
461
- color: orange;
462
- /* Color when the link is clicked */
472
+ color: orange;
473
+ /* Color when the link is clicked */
463
474
  }
464
475
 
465
476
  @media print {
466
- .print-container {
467
- /* width: 100%;
477
+ .print-container {
478
+ /* width: 100%;
468
479
  height: auto;
469
480
  overflow: hidden;
470
481
  page-break-inside: avoid;
471
482
  margin: 0;
472
483
  padding: 0;
473
484
  box-sizing: border-box; */
474
- }
485
+ }
475
486
 
476
- /* Optional: Set the font size for better print readability */
477
- /* body {
487
+ /* Optional: Set the font size for better print readability */
488
+ /* body {
478
489
  font-size: 12pt;
479
490
  } */
480
- /* Optional: Ensure images or other elements fit within the print area */
481
- /* img {
491
+ /* Optional: Ensure images or other elements fit within the print area */
492
+ /* img {
482
493
  max-width: 100%;
483
494
  height: auto;
484
495
  } */
485
- .hideonprint {
486
- display: none !important;
487
- }
496
+ .hideonprint {
497
+ display: none !important;
498
+ }
488
499
 
489
- * {
490
- overflow: hidden;
491
- /* Hide scrollbar */
492
- }
500
+ * {
501
+ overflow: hidden;
502
+ /* Hide scrollbar */
503
+ }
493
504
  }
494
505
  </style>`;
495
506
  }
496
- const pe = (o, l) => {
497
- const t = o.__vccOpts || o;
498
- for (const [i, r] of l)
499
- t[i] = r;
500
- return t;
501
- }, a = (o) => (G("data-v-02ac6d13"), o = o(), O(), o), ue = {
507
+ const He = (n, r) => {
508
+ const o = n.__vccOpts || n;
509
+ for (const [i, a] of r)
510
+ o[i] = a;
511
+ return o;
512
+ }, l = (n) => (me("data-v-c5304261"), n = n(), he(), n), Te = {
502
513
  style: { width: "100%" },
503
514
  id: "fullTextEditor"
504
- }, ge = {
515
+ }, $e = {
505
516
  class: "hideonprint bg-gray-100 items-center",
506
517
  id: "toolbar"
507
- }, he = { class: "flex flex space-x-2 items-center" }, me = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, ve = { class: "relative inline-block text-left group z-10 border-0" }, fe = /* @__PURE__ */ k('<div class="w-full flex rounded-md" data-v-02ac6d13><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-02ac6d13><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-02ac6d13><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-02ac6d13>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-02ac6d13><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-02ac6d13><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-02ac6d13></path></svg></div></div>', 1), xe = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, ye = {
518
+ }, Ie = { class: "flex flex space-x-2 items-center" }, je = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ze = { class: "relative inline-block text-left group z-10 border-0" }, Be = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Ne = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, De = {
508
519
  class: "",
509
520
  role: "none"
510
- }, be = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "print p x-2" }, null, -1)), we = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Print", -1)), _e = [
511
- be,
512
- we
513
- ], Ce = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, ke = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "eye p x-2" }, null, -1)), Fe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", {
521
+ }, Ve = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "print p x-2" }, null, -1)), We = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Print", -1)), Pe = [
522
+ Ve,
523
+ We
524
+ ], Ge = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, Oe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "eye p x-2" }, null, -1)), Xe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
514
525
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
515
526
  id: "fullscreenButton"
516
527
  }, [
517
528
  /* @__PURE__ */ e("i", { class: "expand-alt p x-2" }),
518
529
  /* @__PURE__ */ e("strong", { class: "px-3" }, "Fullscreen")
519
- ], -1)), Le = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ee = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Ae = /* @__PURE__ */ k('<div class="w-full flex rounded-md" data-v-02ac6d13><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-02ac6d13><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-02ac6d13><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-02ac6d13>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-02ac6d13><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-02ac6d13><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-02ac6d13></path></svg></div></div>', 1), Se = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, He = {
530
+ ], -1)), qe = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ye = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Ue = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Ke = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, Je = {
520
531
  class: "",
521
532
  role: "none"
522
- }, Me = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "bold p x-2" }, null, -1)), $e = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Bold", -1)), Te = [
523
- Me,
524
- $e
525
- ], Re = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "italic p x-2" }, null, -1)), ze = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "px-3" }, "italic", -1)), Ie = [
526
- Re,
527
- ze
528
- ], Be = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "underline p x-2" }, null, -1)), Ne = /* @__PURE__ */ a(() => /* @__PURE__ */ e("u", { class: "px-3" }, "underline", -1)), Ze = [
529
- Be,
530
- Ne
531
- ], je = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "strikethrough p x-2" }, null, -1)), De = /* @__PURE__ */ a(() => /* @__PURE__ */ e("del", { class: "px-3" }, "strike", -1)), Ve = [
532
- je,
533
- De
534
- ], Pe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, null, -1)), Ge = /* @__PURE__ */ a(() => /* @__PURE__ */ e("sup", { class: "px-3" }, "superscript", -1)), Oe = [
535
- Pe,
536
- Ge
537
- ], Xe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, null, -1)), We = /* @__PURE__ */ a(() => /* @__PURE__ */ e("sub", { class: "px-3" }, "subscript", -1)), Ye = [
538
- Xe,
539
- We
540
- ], qe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-list p x-2" }, null, -1)), Ue = /* @__PURE__ */ a(() => /* @__PURE__ */ e("summary", { class: "px-3" }, "summary", -1)), Ke = [
541
- qe,
542
- Ue
543
- ], Je = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "list-ol p x-2" }, null, -1)), Qe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), et = [
544
- Je,
545
- Qe
546
- ], tt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "list-ul p x-2" }, null, -1)), ot = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), nt = [
547
- tt,
548
- ot
549
- ], it = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H1", -1)), st = [
550
- it
551
- ], rt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H2", -1)), lt = [
552
- rt
553
- ], dt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H3", -1)), at = [
533
+ }, Qe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "bold p x-2" }, null, -1)), et = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Bold", -1)), tt = [
534
+ Qe,
535
+ et
536
+ ], ot = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "italic p x-2" }, null, -1)), nt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "px-3" }, "italic", -1)), it = [
537
+ ot,
538
+ nt
539
+ ], st = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "underline p x-2" }, null, -1)), lt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("u", { class: "px-3" }, "underline", -1)), at = [
540
+ st,
541
+ lt
542
+ ], rt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "strikethrough p x-2" }, null, -1)), dt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("del", { class: "px-3" }, "strike", -1)), ct = [
543
+ rt,
554
544
  dt
555
- ], ct = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H4", -1)), pt = [
556
- ct
557
- ], ut = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H5", -1)), gt = [
558
- ut
559
- ], ht = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H6", -1)), mt = [
560
- ht
561
- ], vt = { class: "flex m-1 m-3 b g-gray-200 rounded cursor-pointer" }, ft = /* @__PURE__ */ a(() => /* @__PURE__ */ e("datalist", { id: "fontSizes" }, null, -1)), xt = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" }, yt = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, bt = /* @__PURE__ */ k('<div class="w-full flex rounded-md" data-v-02ac6d13><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-02ac6d13><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-02ac6d13><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-02ac6d13>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-02ac6d13><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-02ac6d13><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-02ac6d13></path></svg></div></div>', 1), wt = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, _t = {
545
+ ], ut = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, null, -1)), pt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("sup", { class: "px-3" }, "superscript", -1)), mt = [
546
+ ut,
547
+ pt
548
+ ], ht = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, null, -1)), gt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("sub", { class: "px-3" }, "subscript", -1)), ft = [
549
+ ht,
550
+ gt
551
+ ], vt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-list p x-2" }, null, -1)), yt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("summary", { class: "px-3" }, "summary", -1)), xt = [
552
+ vt,
553
+ yt
554
+ ], _t = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "list-ol p x-2" }, null, -1)), bt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), wt = [
555
+ _t,
556
+ bt
557
+ ], kt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "list-ul p x-2" }, null, -1)), Ct = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), Et = [
558
+ kt,
559
+ Ct
560
+ ], Ft = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H1", -1)), Lt = [
561
+ Ft
562
+ ], At = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H2", -1)), St = [
563
+ At
564
+ ], zt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H3", -1)), Mt = [
565
+ zt
566
+ ], Rt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H4", -1)), Ht = [
567
+ Rt
568
+ ], Tt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H5", -1)), $t = [
569
+ Tt
570
+ ], It = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H6", -1)), jt = [
571
+ It
572
+ ], Zt = { class: "flex m-1 m-3 b g-gray-200 rounded cursor-pointer" }, Bt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("datalist", { id: "fontSizes" }, null, -1)), Nt = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" }, Dt = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Vt = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Wt = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, Pt = {
562
573
  class: "",
563
574
  role: "none"
564
- }, Ct = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, kt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "image p x-2" }, null, -1)), Ft = /* @__PURE__ */ a(() => /* @__PURE__ */ e("label", {
575
+ }, Gt = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, Ot = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "image p x-2" }, null, -1)), Xt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("label", {
565
576
  for: "pom43546535435445Image",
566
577
  class: "px-3"
567
- }, "Image", -1)), Lt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "anchor p x-2" }, null, -1)), Et = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Anchor", -1)), At = [
568
- Lt,
569
- Et
570
- ], St = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-calendar-alt 1x" }, null, -1)), Ht = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Date/time", -1)), Mt = [
571
- St,
572
- Ht
573
- ], $t = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "text-center w-full py-1 bg-gray-100 font-bold" }, "Table", -1)), Tt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "trash-can p x-2" }, null, -1)), Rt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Delete All Permanetlytable", -1)), zt = [
574
- Tt,
575
- Rt
576
- ], It = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "eye-slash p x-2" }, null, -1)), Bt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Hide/Show All ", -1)), Nt = [
577
- It,
578
- Bt
579
- ], Zt = { class: "table-picker-wrapper" }, jt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "table-picker-trigger" }, [
578
+ }, "Image", -1)), qt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "anchor p x-2" }, null, -1)), Yt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Anchor", -1)), Ut = [
579
+ qt,
580
+ Yt
581
+ ], Kt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-calendar-alt 1x" }, null, -1)), Jt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Date/time", -1)), Qt = [
582
+ Kt,
583
+ Jt
584
+ ], eo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "text-center w-full py-1 bg-gray-100 font-bold" }, "Table", -1)), to = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "trash-can p x-2" }, null, -1)), oo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Delete All Permanetlytable", -1)), no = [
585
+ to,
586
+ oo
587
+ ], io = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "eye-slash p x-2" }, null, -1)), so = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Hide/Show All ", -1)), lo = [
588
+ io,
589
+ so
590
+ ], ao = { class: "table-picker-wrapper" }, ro = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "table-picker-trigger" }, [
580
591
  /* @__PURE__ */ e("i", { class: "table p x-2" }),
581
592
  /* @__PURE__ */ e("strong", { class: "px-3" }, "Create")
582
- ], -1)), Dt = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, Vt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", null, [
593
+ ], -1)), co = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, uo = { class: "relative inline-block text-left group z-10 border-0" }, po = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
594
+ /* @__PURE__ */ e("button", {
595
+ type: "button",
596
+ class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
597
+ "aria-expanded": "true",
598
+ "aria-haspopup": "true"
599
+ }, [
600
+ /* @__PURE__ */ e("div", { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
601
+ /* @__PURE__ */ e("span", { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
602
+ ])
603
+ ])
604
+ ], -1)), mo = { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" }, ho = { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, go = {
605
+ class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",
606
+ "data-alloy-placement": "southeast",
607
+ style: { height: "25vh", overflow: "auto" }
608
+ }, fo = { class: "collection__group" }, vo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
609
+ title: "Andale Mono",
610
+ id: "menu-item_3745045357111728727990777",
611
+ role: "menuitemcheckbox",
612
+ "aria-haspopup": "false",
613
+ tabindex: "-1",
614
+ class: "menu-nav__js collection__item collection__item--active",
615
+ "aria-disabled": "false",
616
+ "aria-checked": "false",
617
+ "aria-selected": "true"
618
+ }, [
619
+ /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
620
+ /* @__PURE__ */ e("div", { style: { "font-family": "andale mono, monospace" } }, "Andale Mono")
621
+ ]),
622
+ /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
623
+ /* @__PURE__ */ e("svg", {
624
+ width: "24",
625
+ height: "24",
626
+ focusable: "false"
627
+ }, [
628
+ /* @__PURE__ */ e("path", {
629
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
630
+ "fill-rule": "nonzero"
631
+ })
632
+ ])
633
+ ])
634
+ ], -1)), yo = {
635
+ title: "Arial",
636
+ id: "menu-item_8107570667141728727990778",
637
+ role: "menuitemcheckbox",
638
+ "aria-haspopup": "false",
639
+ tabindex: "-1",
640
+ class: "menu-nav__js collection__item",
641
+ "aria-disabled": "false",
642
+ "aria-checked": "false",
643
+ "aria-selected": "false"
644
+ }, xo = { class: "collection__item-label" }, _o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
645
+ /* @__PURE__ */ e("svg", {
646
+ width: "24",
647
+ height: "24",
648
+ focusable: "false"
649
+ }, [
650
+ /* @__PURE__ */ e("path", {
651
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
652
+ "fill-rule": "nonzero"
653
+ })
654
+ ])
655
+ ], -1)), bo = {
656
+ title: "Arial Black",
657
+ id: "menu-item_7337372467171728727990778",
658
+ role: "menuitemcheckbox",
659
+ "aria-haspopup": "false",
660
+ tabindex: "-1",
661
+ class: "menu-nav__js collection__item",
662
+ "aria-disabled": "false",
663
+ "aria-checked": "false",
664
+ "aria-selected": "false"
665
+ }, wo = { class: "collection__item-label" }, ko = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
666
+ /* @__PURE__ */ e("svg", {
667
+ width: "24",
668
+ height: "24",
669
+ focusable: "false"
670
+ }, [
671
+ /* @__PURE__ */ e("path", {
672
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
673
+ "fill-rule": "nonzero"
674
+ })
675
+ ])
676
+ ], -1)), Co = {
677
+ title: "Book Antiqua",
678
+ id: "menu-item_8277641917201728727990778",
679
+ role: "menuitemcheckbox",
680
+ "aria-haspopup": "false",
681
+ tabindex: "-1",
682
+ class: "menu-nav__js collection__item",
683
+ "aria-disabled": "false",
684
+ "aria-checked": "false",
685
+ "aria-selected": "false"
686
+ }, Eo = { class: "collection__item-label" }, Fo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
687
+ /* @__PURE__ */ e("svg", {
688
+ width: "24",
689
+ height: "24",
690
+ focusable: "false"
691
+ }, [
692
+ /* @__PURE__ */ e("path", {
693
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
694
+ "fill-rule": "nonzero"
695
+ })
696
+ ])
697
+ ], -1)), Lo = {
698
+ title: "Comic Sans MS",
699
+ id: "menu-item_2698863237231728727990778",
700
+ role: "menuitemcheckbox",
701
+ "aria-haspopup": "false",
702
+ tabindex: "-1",
703
+ class: "menu-nav__js collection__item",
704
+ "aria-disabled": "false",
705
+ "aria-checked": "false",
706
+ "aria-selected": "false"
707
+ }, Ao = { class: "collection__item-label" }, So = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
708
+ /* @__PURE__ */ e("svg", {
709
+ width: "24",
710
+ height: "24",
711
+ focusable: "false"
712
+ }, [
713
+ /* @__PURE__ */ e("path", {
714
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
715
+ "fill-rule": "nonzero"
716
+ })
717
+ ])
718
+ ], -1)), zo = {
719
+ title: "Courier New",
720
+ id: "menu-item_2979203277261728727990778",
721
+ role: "menuitemcheckbox",
722
+ "aria-haspopup": "false",
723
+ tabindex: "-1",
724
+ class: "menu-nav__js collection__item",
725
+ "aria-disabled": "false",
726
+ "aria-checked": "false",
727
+ "aria-selected": "false"
728
+ }, Mo = { class: "collection__item-label" }, Ro = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
729
+ /* @__PURE__ */ e("svg", {
730
+ width: "24",
731
+ height: "24",
732
+ focusable: "false"
733
+ }, [
734
+ /* @__PURE__ */ e("path", {
735
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
736
+ "fill-rule": "nonzero"
737
+ })
738
+ ])
739
+ ], -1)), Ho = {
740
+ title: "Georgia",
741
+ id: "menu-item_8075939747291728727990778",
742
+ role: "menuitemcheckbox",
743
+ "aria-haspopup": "false",
744
+ tabindex: "-1",
745
+ class: "menu-nav__js collection__item",
746
+ "aria-disabled": "false",
747
+ "aria-checked": "false",
748
+ "aria-selected": "false"
749
+ }, To = { class: "collection__item-label" }, $o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
750
+ /* @__PURE__ */ e("svg", {
751
+ width: "24",
752
+ height: "24",
753
+ focusable: "false"
754
+ }, [
755
+ /* @__PURE__ */ e("path", {
756
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
757
+ "fill-rule": "nonzero"
758
+ })
759
+ ])
760
+ ], -1)), Io = {
761
+ title: "Helvetica",
762
+ id: "menu-item_8872440547321728727990778",
763
+ role: "menuitemcheckbox",
764
+ "aria-haspopup": "false",
765
+ tabindex: "-1",
766
+ class: "menu-nav__js collection__item collection__item--enabled",
767
+ "aria-disabled": "false",
768
+ "aria-checked": "true"
769
+ }, jo = { class: "collection__item-label" }, Zo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
770
+ /* @__PURE__ */ e("svg", {
771
+ width: "24",
772
+ height: "24",
773
+ focusable: "false"
774
+ }, [
775
+ /* @__PURE__ */ e("path", {
776
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
777
+ "fill-rule": "nonzero"
778
+ })
779
+ ])
780
+ ], -1)), Bo = {
781
+ title: "Impact",
782
+ id: "menu-item_3423693847351728727990778",
783
+ role: "menuitemcheckbox",
784
+ "aria-haspopup": "false",
785
+ tabindex: "-1",
786
+ class: "menu-nav__js collection__item",
787
+ "aria-disabled": "false",
788
+ "aria-checked": "false"
789
+ }, No = { class: "collection__item-label" }, Do = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
790
+ /* @__PURE__ */ e("svg", {
791
+ width: "24",
792
+ height: "24",
793
+ focusable: "false"
794
+ }, [
795
+ /* @__PURE__ */ e("path", {
796
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
797
+ "fill-rule": "nonzero"
798
+ })
799
+ ])
800
+ ], -1)), Vo = {
801
+ title: "Symbol",
802
+ id: "menu-item_7163579447381728727990779",
803
+ role: "menuitemcheckbox",
804
+ "aria-haspopup": "false",
805
+ tabindex: "-1",
806
+ class: "menu-nav__js collection__item",
807
+ "aria-disabled": "false",
808
+ "aria-checked": "false"
809
+ }, Wo = { class: "collection__item-label" }, Po = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
810
+ /* @__PURE__ */ e("svg", {
811
+ width: "24",
812
+ height: "24",
813
+ focusable: "false"
814
+ }, [
815
+ /* @__PURE__ */ e("path", {
816
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
817
+ "fill-rule": "nonzero"
818
+ })
819
+ ])
820
+ ], -1)), Go = {
821
+ title: "Tahoma",
822
+ id: "menu-item_4449979827411728727990779",
823
+ role: "menuitemcheckbox",
824
+ "aria-haspopup": "false",
825
+ tabindex: "-1",
826
+ class: "menu-nav__js collection__item",
827
+ "aria-disabled": "false",
828
+ "aria-checked": "false"
829
+ }, Oo = { class: "collection__item-label" }, Xo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
830
+ /* @__PURE__ */ e("svg", {
831
+ width: "24",
832
+ height: "24",
833
+ focusable: "false"
834
+ }, [
835
+ /* @__PURE__ */ e("path", {
836
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
837
+ "fill-rule": "nonzero"
838
+ })
839
+ ])
840
+ ], -1)), qo = {
841
+ title: "Terminal",
842
+ id: "menu-item_2511923047441728727990779",
843
+ role: "menuitemcheckbox",
844
+ "aria-haspopup": "false",
845
+ tabindex: "-1",
846
+ class: "menu-nav__js collection__item",
847
+ "aria-disabled": "false",
848
+ "aria-checked": "false"
849
+ }, Yo = { class: "collection__item-label" }, Uo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
850
+ /* @__PURE__ */ e("svg", {
851
+ width: "24",
852
+ height: "24",
853
+ focusable: "false"
854
+ }, [
855
+ /* @__PURE__ */ e("path", {
856
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
857
+ "fill-rule": "nonzero"
858
+ })
859
+ ])
860
+ ], -1)), Ko = {
861
+ title: "Times New Roman",
862
+ id: "menu-item_7770771337471728727990779",
863
+ role: "menuitemcheckbox",
864
+ "aria-haspopup": "false",
865
+ tabindex: "-1",
866
+ class: "menu-nav__js collection__item",
867
+ "aria-disabled": "false",
868
+ "aria-checked": "false"
869
+ }, Jo = { class: "collection__item-label" }, Qo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
870
+ /* @__PURE__ */ e("svg", {
871
+ width: "24",
872
+ height: "24",
873
+ focusable: "false"
874
+ }, [
875
+ /* @__PURE__ */ e("path", {
876
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
877
+ "fill-rule": "nonzero"
878
+ })
879
+ ])
880
+ ], -1)), en = {
881
+ title: "Trebuchet MS",
882
+ id: "menu-item_7916647947501728727990779",
883
+ role: "menuitemcheckbox",
884
+ "aria-haspopup": "false",
885
+ tabindex: "-1",
886
+ class: "menu-nav__js collection__item",
887
+ "aria-disabled": "false",
888
+ "aria-checked": "false"
889
+ }, tn = { class: "collection__item-label" }, on = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
890
+ /* @__PURE__ */ e("svg", {
891
+ width: "24",
892
+ height: "24",
893
+ focusable: "false"
894
+ }, [
895
+ /* @__PURE__ */ e("path", {
896
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
897
+ "fill-rule": "nonzero"
898
+ })
899
+ ])
900
+ ], -1)), nn = {
901
+ title: "Verdana",
902
+ id: "menu-item_1549891587531728727990779",
903
+ role: "menuitemcheckbox",
904
+ "aria-haspopup": "false",
905
+ tabindex: "-1",
906
+ class: "menu-nav__js collection__item",
907
+ "aria-disabled": "false",
908
+ "aria-checked": "false"
909
+ }, sn = { class: "collection__item-label" }, ln = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
910
+ /* @__PURE__ */ e("svg", {
911
+ width: "24",
912
+ height: "24",
913
+ focusable: "false"
914
+ }, [
915
+ /* @__PURE__ */ e("path", {
916
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
917
+ "fill-rule": "nonzero"
918
+ })
919
+ ])
920
+ ], -1)), an = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
921
+ title: "Webdings",
922
+ id: "menu-item_955052057561728727990779",
923
+ role: "menuitemcheckbox",
924
+ "aria-haspopup": "false",
925
+ tabindex: "-1",
926
+ class: "menu-nav__js collection__item",
927
+ "aria-disabled": "false",
928
+ "aria-checked": "false"
929
+ }, [
930
+ /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
931
+ /* @__PURE__ */ e("div", null, "Webdings")
932
+ ]),
933
+ /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
934
+ /* @__PURE__ */ e("svg", {
935
+ width: "24",
936
+ height: "24",
937
+ focusable: "false"
938
+ }, [
939
+ /* @__PURE__ */ e("path", {
940
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
941
+ "fill-rule": "nonzero"
942
+ })
943
+ ])
944
+ ])
945
+ ], -1)), rn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
946
+ title: "Wingdings",
947
+ id: "menu-item_93264657591728727990779",
948
+ role: "menuitemcheckbox",
949
+ "aria-haspopup": "false",
950
+ tabindex: "-1",
951
+ class: "menu-nav__js collection__item",
952
+ "aria-disabled": "false",
953
+ "aria-checked": "false"
954
+ }, [
955
+ /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
956
+ /* @__PURE__ */ e("div", null, "Wingdings")
957
+ ]),
958
+ /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
959
+ /* @__PURE__ */ e("svg", {
960
+ width: "24",
961
+ height: "24",
962
+ focusable: "false"
963
+ }, [
964
+ /* @__PURE__ */ e("path", {
965
+ d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
966
+ "fill-rule": "nonzero"
967
+ })
968
+ ])
969
+ ])
970
+ ], -1)), dn = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
583
971
  /* @__PURE__ */ e("svg", {
584
972
  width: "24",
585
973
  height: "24",
@@ -590,9 +978,9 @@ const pe = (o, l) => {
590
978
  "fill-rule": "evenodd"
591
979
  })
592
980
  ])
593
- ], -1)), Pt = [
594
- Vt
595
- ], Gt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", null, [
981
+ ], -1)), un = [
982
+ cn
983
+ ], pn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
596
984
  /* @__PURE__ */ e("svg", {
597
985
  width: "24",
598
986
  height: "24",
@@ -603,9 +991,9 @@ const pe = (o, l) => {
603
991
  "fill-rule": "evenodd"
604
992
  })
605
993
  ])
606
- ], -1)), Ot = [
607
- Gt
608
- ], Xt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "" }, [
994
+ ], -1)), mn = [
995
+ pn
996
+ ], hn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
609
997
  /* @__PURE__ */ e("svg", {
610
998
  width: "24",
611
999
  height: "24",
@@ -616,9 +1004,9 @@ const pe = (o, l) => {
616
1004
  "fill-rule": "evenodd"
617
1005
  })
618
1006
  ])
619
- ], -1)), Wt = [
620
- Xt
621
- ], Yt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "" }, [
1007
+ ], -1)), gn = [
1008
+ hn
1009
+ ], fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
622
1010
  /* @__PURE__ */ e("svg", {
623
1011
  width: "24",
624
1012
  height: "24",
@@ -629,9 +1017,9 @@ const pe = (o, l) => {
629
1017
  "fill-rule": "evenodd"
630
1018
  })
631
1019
  ])
632
- ], -1)), qt = [
633
- Yt
634
- ], Ut = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Kt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md" }, [
1020
+ ], -1)), vn = [
1021
+ fn
1022
+ ], yn = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, xn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md" }, [
635
1023
  /* @__PURE__ */ e("button", {
636
1024
  type: "button",
637
1025
  class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
@@ -640,7 +1028,7 @@ const pe = (o, l) => {
640
1028
  "aria-haspopup": "true"
641
1029
  }, [
642
1030
  /* @__PURE__ */ e("div", {
643
- class: "tox-split-button flex items-center",
1031
+ class: "split-button flex items-center",
644
1032
  style: { "user-select": "none" }
645
1033
  }, [
646
1034
  /* @__PURE__ */ e("span", null, [
@@ -659,7 +1047,7 @@ const pe = (o, l) => {
659
1047
  ]),
660
1048
  /* @__PURE__ */ e("span", {
661
1049
  role: "presentation",
662
- class: "tox-tbtn tox-split-button__chevron",
1050
+ class: "tbtn split-button__chevron",
663
1051
  "aria-disabled": "false"
664
1052
  }, [
665
1053
  /* @__PURE__ */ e("svg", {
@@ -675,10 +1063,10 @@ const pe = (o, l) => {
675
1063
  ])
676
1064
  ])
677
1065
  ])
678
- ], -1)), Jt = { class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, Qt = {
1066
+ ], -1)), _n = { class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, bn = {
679
1067
  class: "flex",
680
1068
  role: "none"
681
- }, eo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", null, [
1069
+ }, wn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
682
1070
  /* @__PURE__ */ e("svg", {
683
1071
  width: "48",
684
1072
  height: "48",
@@ -706,9 +1094,9 @@ const pe = (o, l) => {
706
1094
  })
707
1095
  ])
708
1096
  ])
709
- ], -1)), to = [
710
- eo
711
- ], oo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", null, [
1097
+ ], -1)), kn = [
1098
+ wn
1099
+ ], Cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
712
1100
  /* @__PURE__ */ e("svg", {
713
1101
  width: "48",
714
1102
  height: "48",
@@ -725,9 +1113,9 @@ const pe = (o, l) => {
725
1113
  })
726
1114
  ])
727
1115
  ])
728
- ], -1)), no = [
729
- oo
730
- ], io = /* @__PURE__ */ a(() => /* @__PURE__ */ e("svg", {
1116
+ ], -1)), En = [
1117
+ Cn
1118
+ ], Fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("svg", {
731
1119
  width: "48",
732
1120
  height: "48",
733
1121
  viewBox: "0 0 48 48",
@@ -784,9 +1172,9 @@ const pe = (o, l) => {
784
1172
  fill: "black",
785
1173
  opacity: ".2"
786
1174
  })
787
- ], -1)), so = [
788
- io
789
- ], ro = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "text-sm" }, [
1175
+ ], -1)), Ln = [
1176
+ Fn
1177
+ ], An = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "text-sm" }, [
790
1178
  /* @__PURE__ */ e("svg", {
791
1179
  width: "48",
792
1180
  height: "48",
@@ -845,18 +1233,18 @@ const pe = (o, l) => {
845
1233
  opacity: ".2"
846
1234
  })
847
1235
  ])
848
- ], -1)), lo = [
849
- ro
850
- ], ao = {
851
- class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full p x-2 mx-3",
1236
+ ], -1)), Sn = [
1237
+ An
1238
+ ], zn = {
1239
+ class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
852
1240
  style: { height: "37px" }
853
- }, co = /* @__PURE__ */ k('<i class="bold p x-2" data-v-02ac6d13><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><g id="text-bold" transform="translate(-4 -2)" data-v-02ac6d13><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-02ac6d13></path> <path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-02ac6d13></path> <path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-02ac6d13></path></g></g></svg></i>', 1), po = [
854
- co
855
- ], uo = /* @__PURE__ */ k('<i class="italic p x-2" data-v-02ac6d13><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><g id="layer1" data-v-02ac6d13><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-02ac6d13></path></g></g></svg></i>', 1), go = [
856
- uo
857
- ], ho = /* @__PURE__ */ k('<i class="underline p x-2" data-v-02ac6d13><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><g data-v-02ac6d13><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-02ac6d13></path> <path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-02ac6d13></path></g></g></svg></i>', 1), mo = [
858
- ho
859
- ], vo = { class: "strikethrough p x-2" }, fo = {
1241
+ }, Mn = /* @__PURE__ */ M('<i class="bold p x-2" data-v-c5304261><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g id="text-bold" transform="translate(-4 -2)" data-v-c5304261><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path><path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path><path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path></g></g></svg></i>', 1), Rn = [
1242
+ Mn
1243
+ ], Hn = /* @__PURE__ */ M('<i class="italic p x-2" data-v-c5304261><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g id="layer1" data-v-c5304261><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-c5304261></path></g></g></svg></i>', 1), Tn = [
1244
+ Hn
1245
+ ], $n = /* @__PURE__ */ M('<i class="underline p x-2" data-v-c5304261><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g data-v-c5304261><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-c5304261></path><path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-c5304261></path></g></g></svg></i>', 1), In = [
1246
+ $n
1247
+ ], jn = { class: "strikethrough p x-2" }, Zn = {
860
1248
  fill: "#000000",
861
1249
  width: "13px",
862
1250
  height: "13px",
@@ -867,14 +1255,14 @@ const pe = (o, l) => {
867
1255
  "xml:space": "preserve",
868
1256
  "xmlns:serif": "http://www.serif.com/",
869
1257
  style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
870
- }, xo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", {
1258
+ }, Bn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
871
1259
  id: "SVGRepo_bgCarrier",
872
1260
  "stroke-width": "0"
873
- }, null, -1)), yo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", {
1261
+ }, null, -1)), Nn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
874
1262
  id: "SVGRepo_tracerCarrier",
875
1263
  "stroke-linecap": "round",
876
1264
  "stroke-linejoin": "round"
877
- }, null, -1)), bo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", { id: "SVGRepo_iconCarrier" }, [
1265
+ }, null, -1)), Dn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", { id: "SVGRepo_iconCarrier" }, [
878
1266
  /* @__PURE__ */ e("rect", {
879
1267
  id: "Icons",
880
1268
  x: "-192",
@@ -883,7 +1271,6 @@ const pe = (o, l) => {
883
1271
  height: "800",
884
1272
  style: { fill: "none" }
885
1273
  }),
886
- /* @__PURE__ */ p(),
887
1274
  /* @__PURE__ */ e("g", {
888
1275
  id: "Icons1",
889
1276
  "serif:id": "Icons"
@@ -897,14 +1284,12 @@ const pe = (o, l) => {
897
1284
  width: "44.15",
898
1285
  height: "2.988"
899
1286
  }),
900
- /* @__PURE__ */ p(),
901
1287
  /* @__PURE__ */ e("rect", {
902
1288
  x: "10.01",
903
1289
  y: "30.17",
904
1290
  width: "44.15",
905
1291
  height: "2.988"
906
1292
  }),
907
- /* @__PURE__ */ p(),
908
1293
  /* @__PURE__ */ e("path", {
909
1294
  id: "Strike1",
910
1295
  "serif:id": "Strike",
@@ -912,146 +1297,159 @@ const pe = (o, l) => {
912
1297
  style: { "fill-rule": "nonzero" }
913
1298
  })
914
1299
  ]),
915
- /* @__PURE__ */ p(),
916
1300
  /* @__PURE__ */ e("g", { id: "H1" }),
917
- /* @__PURE__ */ p(),
918
1301
  /* @__PURE__ */ e("g", { id: "H2" }),
919
- /* @__PURE__ */ p(),
920
1302
  /* @__PURE__ */ e("g", { id: "H3" }),
921
- /* @__PURE__ */ p(),
922
1303
  /* @__PURE__ */ e("g", { id: "list-ul" }),
923
- /* @__PURE__ */ p(),
924
1304
  /* @__PURE__ */ e("g", { id: "hamburger-1" }),
925
- /* @__PURE__ */ p(),
926
1305
  /* @__PURE__ */ e("g", { id: "hamburger-2" }),
927
- /* @__PURE__ */ p(),
928
1306
  /* @__PURE__ */ e("g", { id: "list-ol" }),
929
- /* @__PURE__ */ p(),
930
1307
  /* @__PURE__ */ e("g", { id: "list-task" }),
931
- /* @__PURE__ */ p(),
932
1308
  /* @__PURE__ */ e("g", { id: "trash" }),
933
- /* @__PURE__ */ p(),
934
1309
  /* @__PURE__ */ e("g", { id: "vertical-menu" }),
935
- /* @__PURE__ */ p(),
936
1310
  /* @__PURE__ */ e("g", { id: "horizontal-menu" }),
937
- /* @__PURE__ */ p(),
938
1311
  /* @__PURE__ */ e("g", { id: "sidebar-2" }),
939
- /* @__PURE__ */ p(),
940
1312
  /* @__PURE__ */ e("g", { id: "Pen" }),
941
- /* @__PURE__ */ p(),
942
1313
  /* @__PURE__ */ e("g", {
943
1314
  id: "Pen1",
944
1315
  "serif:id": "Pen"
945
1316
  }),
946
- /* @__PURE__ */ p(),
947
1317
  /* @__PURE__ */ e("g", { id: "clock" }),
948
- /* @__PURE__ */ p(),
949
1318
  /* @__PURE__ */ e("g", { id: "external-link" }),
950
- /* @__PURE__ */ p(),
951
1319
  /* @__PURE__ */ e("g", { id: "hr" }),
952
- /* @__PURE__ */ p(),
953
1320
  /* @__PURE__ */ e("g", { id: "info" }),
954
- /* @__PURE__ */ p(),
955
1321
  /* @__PURE__ */ e("g", { id: "warning" }),
956
- /* @__PURE__ */ p(),
957
1322
  /* @__PURE__ */ e("g", { id: "plus-circle" }),
958
- /* @__PURE__ */ p(),
959
1323
  /* @__PURE__ */ e("g", { id: "minus-circle" }),
960
- /* @__PURE__ */ p(),
961
1324
  /* @__PURE__ */ e("g", { id: "vue" }),
962
- /* @__PURE__ */ p(),
963
1325
  /* @__PURE__ */ e("g", { id: "cog" }),
964
- /* @__PURE__ */ p(),
965
1326
  /* @__PURE__ */ e("g", { id: "logo" }),
966
- /* @__PURE__ */ p(),
967
1327
  /* @__PURE__ */ e("g", { id: "radio-check" }),
968
- /* @__PURE__ */ p(),
969
1328
  /* @__PURE__ */ e("g", { id: "eye-slash" }),
970
- /* @__PURE__ */ p(),
971
1329
  /* @__PURE__ */ e("g", { id: "eye" }),
972
- /* @__PURE__ */ p(),
973
1330
  /* @__PURE__ */ e("g", { id: "toggle-off" }),
974
- /* @__PURE__ */ p(),
975
1331
  /* @__PURE__ */ e("g", { id: "shredder" }),
976
- /* @__PURE__ */ p(),
977
1332
  /* @__PURE__ */ e("g", {
978
1333
  id: "spinner--loading--dots-",
979
1334
  "serif:id": "spinner [loading, dots]"
980
1335
  }),
981
- /* @__PURE__ */ p(),
982
1336
  /* @__PURE__ */ e("g", { id: "react" }),
983
- /* @__PURE__ */ p(),
984
1337
  /* @__PURE__ */ e("g", { id: "check-selected" }),
985
- /* @__PURE__ */ p(),
986
1338
  /* @__PURE__ */ e("g", { id: "turn-off" }),
987
- /* @__PURE__ */ p(),
988
1339
  /* @__PURE__ */ e("g", { id: "code-block" }),
989
- /* @__PURE__ */ p(),
990
1340
  /* @__PURE__ */ e("g", { id: "user" }),
991
- /* @__PURE__ */ p(),
992
1341
  /* @__PURE__ */ e("g", { id: "coffee-bean" }),
993
- /* @__PURE__ */ p(),
994
1342
  /* @__PURE__ */ e("g", { id: "coffee-beans" }, [
995
1343
  /* @__PURE__ */ e("g", {
996
1344
  id: "coffee-bean1",
997
1345
  "serif:id": "coffee-bean"
998
1346
  })
999
1347
  ]),
1000
- /* @__PURE__ */ p(),
1001
1348
  /* @__PURE__ */ e("g", { id: "coffee-bean-filled" }),
1002
- /* @__PURE__ */ p(),
1003
1349
  /* @__PURE__ */ e("g", { id: "coffee-beans-filled" }, [
1004
1350
  /* @__PURE__ */ e("g", {
1005
1351
  id: "coffee-bean2",
1006
1352
  "serif:id": "coffee-bean"
1007
1353
  })
1008
1354
  ]),
1009
- /* @__PURE__ */ p(),
1010
1355
  /* @__PURE__ */ e("g", { id: "clipboard" }),
1011
- /* @__PURE__ */ p(),
1012
1356
  /* @__PURE__ */ e("g", { id: "clipboard-paste" }),
1013
- /* @__PURE__ */ p(),
1014
1357
  /* @__PURE__ */ e("g", { id: "clipboard-copy" }),
1015
- /* @__PURE__ */ p(),
1016
1358
  /* @__PURE__ */ e("g", { id: "Layer1" })
1017
1359
  ])
1018
- ], -1)), wo = [
1019
- xo,
1020
- yo,
1021
- bo
1022
- ], _o = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, "sup", -1)), Co = [
1023
- _o
1024
- ], ko = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, "sub", -1)), Fo = [
1025
- ko
1026
- ], Lo = /* @__PURE__ */ k('<i class="-code p x-2" data-v-02ac6d13><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-02ac6d13></path> <path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-02ac6d13></path> <path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-02ac6d13></path></g></svg></i>', 1), Eo = [
1027
- Lo
1028
- ], Ao = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" }, So = /* @__PURE__ */ k('<i class="solid brush display-color" data-v-02ac6d13><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><path fill-rule="evenodd" clip-rule="evenodd" d="M8 16L3.54223 12.3383C1.93278 11.0162 1 9.04287 1 6.96005C1 3.11612 4.15607 0 8 0C11.8439 0 15 3.11612 15 6.96005C15 9.04287 14.0672 11.0162 12.4578 12.3383L8 16ZM3 6H5C6.10457 6 7 6.89543 7 8V9L3 7.5V6ZM11 6C9.89543 6 9 6.89543 9 8V9L13 7.5V6H11Z" fill="#000000" data-v-02ac6d13></path></g></svg></i>', 1), Ho = {
1360
+ ], -1)), Vn = [
1361
+ Bn,
1362
+ Nn,
1363
+ Dn
1364
+ ], Wn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, "sup", -1)), Pn = [
1365
+ Wn
1366
+ ], Gn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, "sub", -1)), On = [
1367
+ Gn
1368
+ ], Xn = /* @__PURE__ */ M('<i class="-code p x-2" data-v-c5304261><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-c5304261></path><path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-c5304261></path><path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-c5304261></path></g></svg></i>', 1), qn = [
1369
+ Xn
1370
+ ], Yn = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" }, Un = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", {
1371
+ class: "solid brush display-color",
1372
+ style: { margin: "6px 0px 0px 0px", border: "none" }
1373
+ }, [
1374
+ /* @__PURE__ */ e("svg", {
1375
+ width: "24",
1376
+ height: "24",
1377
+ focusable: "false"
1378
+ }, [
1379
+ /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1380
+ /* @__PURE__ */ e("path", {
1381
+ class: "icon-highlight-bg-color__color",
1382
+ d: "M3 18h18v3H3z",
1383
+ fill: "#F1C40F"
1384
+ }),
1385
+ /* @__PURE__ */ e("path", {
1386
+ "fill-rule": "nonzero",
1387
+ d: "M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"
1388
+ })
1389
+ ])
1390
+ ])
1391
+ ], -1)), Kn = {
1392
+ class: "color-picker color-container",
1393
+ style: { position: "absolute", top: "0", bottom: "0", height: "fit-content", overflow: "auto" }
1394
+ }, Jn = { class: "color-grid" }, Qn = ["onClick"], ei = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" }, ti = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", {
1395
+ class: "solid brush display-color",
1396
+ style: { margin: "6px 0px 0px 0px", border: "none" }
1397
+ }, [
1398
+ /* @__PURE__ */ e("span", {
1399
+ role: "presentation",
1400
+ class: "tbtn",
1401
+ "aria-disabled": "false",
1402
+ style: { width: "34px" }
1403
+ }, [
1404
+ /* @__PURE__ */ e("span", { class: "icon tbtn__icon-wrap" }, [
1405
+ /* @__PURE__ */ e("svg", {
1406
+ width: "24",
1407
+ height: "24",
1408
+ focusable: "false"
1409
+ }, [
1410
+ /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1411
+ /* @__PURE__ */ e("path", {
1412
+ class: "icon-text-color__color",
1413
+ d: "M3 18h18v3H3z",
1414
+ fill: "#F1C40F"
1415
+ }),
1416
+ /* @__PURE__ */ e("path", { d: "M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z" })
1417
+ ])
1418
+ ])
1419
+ ])
1420
+ ])
1421
+ ], -1)), oi = {
1029
1422
  class: "color-picker color-container",
1030
1423
  style: { position: "absolute", top: "0", bottom: "0", height: "fit-content", overflow: "auto" }
1031
- }, Mo = { class: "color-grid" }, $o = ["onClick"], To = /* @__PURE__ */ k('<span class="" data-v-02ac6d13><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-02ac6d13><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-02ac6d13></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-02ac6d13></g><g id="SVGRepo_iconCarrier" data-v-02ac6d13><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-02ac6d13></path></g></svg></span>', 1), Ro = [
1032
- To
1033
- ], zo = {
1034
- class: "p-6",
1035
- style: { height: "100%", "text-align": "justify" }
1036
- }, Io = ["innerHTML"], Bo = { class: "hideonprint flex items-center" }, No = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-" }, null, -1)), Zo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "p x-2" }, "NEW LINE", -1)), jo = [
1037
- No,
1038
- Zo
1039
- ], Do = /* @__PURE__ */ a(() => /* @__PURE__ */ e("p", null, [
1040
- /* @__PURE__ */ p("Cursor position: "),
1424
+ }, ni = { class: "color-grid" }, ii = ["onClick"], si = /* @__PURE__ */ M('<span class="" data-v-c5304261><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-c5304261></path></g></svg></span>', 1), li = [
1425
+ si
1426
+ ], ai = { style: { "min-height": "100%", "text-align": "justify" } }, ri = ["innerHTML"], di = { class: "hideonprint flex items-center" }, ci = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-" }, null, -1)), ui = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "p x-2" }, "NEW LINE", -1)), pi = [
1427
+ ci,
1428
+ ui
1429
+ ], mi = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
1430
+ /* @__PURE__ */ Y("Cursor position: "),
1041
1431
  /* @__PURE__ */ e("span", { id: "cursorPosition" }, "0")
1042
- ], -1)), Vo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("p", null, [
1043
- /* @__PURE__ */ p("Text at cursor: "),
1432
+ ], -1)), hi = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
1433
+ /* @__PURE__ */ Y("Text at cursor: "),
1044
1434
  /* @__PURE__ */ e("span", { id: "textAtCursor" })
1045
- ], -1)), Po = {
1435
+ ], -1)), gi = {
1046
1436
  __name: "Editor",
1047
1437
  props: {
1048
1438
  Dvalue: {
1049
1439
  default: ""
1440
+ },
1441
+ TextOnly: {
1442
+ default: !1
1443
+ },
1444
+ cssWanted2: {
1445
+ default: !1
1050
1446
  }
1051
1447
  },
1052
1448
  emits: ["change", "update"],
1053
- setup(o, { emit: l }) {
1054
- const t = L(null), i = L(null), r = L(null), u = L(null), s = L(null), d = L([
1449
+ setup(n, { emit: r }) {
1450
+ const o = H(null), i = H(null), a = H(null), p = H(null), s = H(null);
1451
+ let d = null;
1452
+ const u = H([
1055
1453
  "FF5733",
1056
1454
  "33FF57",
1057
1455
  "3357FF",
@@ -1079,6 +1477,7 @@ const pe = (o, l) => {
1079
1477
  "00CED1",
1080
1478
  "7FFF00",
1081
1479
  "FF4500",
1480
+ "fffefe",
1082
1481
  "2E8B57",
1083
1482
  "DAA520",
1084
1483
  "6A5ACD",
@@ -1106,207 +1505,285 @@ const pe = (o, l) => {
1106
1505
  "00FF7F",
1107
1506
  "FF6347",
1108
1507
  "FF1493",
1109
- "00CED1"
1110
- ]), g = l, m = L(null);
1111
- function x(...w) {
1508
+ "00CED1",
1509
+ "989393",
1510
+ "000000"
1511
+ ]), m = r, x = n, h = H(null);
1512
+ function g(...f) {
1112
1513
  try {
1113
- var n = document.querySelectorAll(".removeinlineblock");
1114
- n.forEach(function(c) {
1514
+ var t = document.querySelectorAll(".removeinlineblock");
1515
+ t.forEach(function(c) {
1115
1516
  c.style.display = "block";
1116
- }), ae(...w, m.value.innerHTML);
1517
+ }), Me(...f, h.value.innerHTML);
1117
1518
  } catch {
1118
1519
  }
1119
1520
  }
1120
- function h(...w) {
1121
- J(i.value.range, t.value, ...w);
1521
+ function v(...f) {
1522
+ var t;
1523
+ G(), be((t = i.value) == null ? void 0 : t.range, o.value, ...f);
1524
+ }
1525
+ function y(...f) {
1526
+ var t;
1527
+ se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
1122
1528
  }
1123
- function v(...w) {
1124
- se(i.value.range, t.value, ...w);
1529
+ function w(...f) {
1530
+ var t;
1531
+ se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
1125
1532
  }
1126
- function y(w) {
1127
- ne(w, i.value.range);
1533
+ function R(f) {
1534
+ Fe(f, i.value.range), d = null;
1128
1535
  }
1129
- function b(...w) {
1130
- K(i.value.range, ...w);
1536
+ function C(...f) {
1537
+ _e(i.value.range, ...f), d = null;
1131
1538
  }
1132
- function _() {
1133
- const w = de(t.value);
1134
- setTimeout(() => {
1135
- g("change", w);
1539
+ const L = Re();
1540
+ function T() {
1541
+ let f = ze(o.value).replace(/<style scoped>[\s\S]*?<\/style>/, "");
1542
+ x.TextOnly == "true" && (f = f.replace(/<\/[a-z]*?>|<\S.*?>/gi, (t) => t.startsWith("</") ? "" : `
1543
+ `)), console.log(f, "htmlResulthtmlResulthtmlResult"), x.cssWanted == !0 && m("cssWanted", L), setTimeout(() => {
1544
+ m("change", f);
1136
1545
  }, 300);
1137
1546
  }
1138
- function F(w) {
1139
- t.value.focus(), _();
1547
+ function P(f) {
1548
+ o.value.focus(), T();
1140
1549
  }
1141
- D(() => {
1142
- F();
1550
+ pe(() => {
1551
+ P();
1143
1552
  });
1144
- function C() {
1145
- re(t.value);
1553
+ function N() {
1554
+ Ae(o.value);
1555
+ }
1556
+ function b(...f) {
1557
+ q(i.value.range, ...f);
1558
+ }
1559
+ function D(...f) {
1560
+ we(i.value.range, ...f);
1146
1561
  }
1147
- function f(...w) {
1148
- $(i.value.range, ...w);
1562
+ function G() {
1563
+ i.value = fe(), ge(), ve(i.value, o.value, p.value, s.value), d = null;
1149
1564
  }
1150
- function E(...w) {
1151
- Q(i.value.range, ...w);
1565
+ function re(f) {
1566
+ f.preventDefault();
1567
+ const t = f.dataTransfer.files;
1568
+ if (t.length > 0) {
1569
+ const c = t[0], _ = new FileReader();
1570
+ _.onload = (E) => {
1571
+ const F = E.target.result;
1572
+ de(F);
1573
+ }, _.readAsDataURL(c);
1574
+ }
1575
+ }
1576
+ function de(f) {
1577
+ j();
1578
+ const t = i.value.range;
1579
+ if (t) {
1580
+ let O = function(A, k) {
1581
+ A.preventDefault(), Z = k, window.addEventListener("mousemove", U), window.addEventListener("mouseup", K);
1582
+ }, U = function(A) {
1583
+ const k = _.getBoundingClientRect();
1584
+ if (Z === "width" || Z === "both") {
1585
+ const z = A.clientX - k.left;
1586
+ _.style.width = z + "px", c.style.width = z + "px";
1587
+ }
1588
+ if (Z === "height" || Z === "both") {
1589
+ const z = A.clientY - k.top;
1590
+ c.style.height = z + "px";
1591
+ }
1592
+ }, K = function() {
1593
+ window.removeEventListener("mousemove", U), window.removeEventListener("mouseup", K);
1594
+ };
1595
+ const c = document.createElement("img");
1596
+ c.src = f, c.style.maxWidth = "100%", c.style.position = "relative", c.classList.add("resizable-image");
1597
+ const _ = document.createElement("span");
1598
+ _.style.display = "inline-block", _.style.width = "200px", _.style.position = "relative", _.contentEditable = !1, _.classList.add("resizer-image-dropped"), _.addEventListener("click", function(A) {
1599
+ const k = document.createElement("div");
1600
+ k.style.display = "flex", k.style.position = "absolute", k.style.bottom = "20px", k.style.right = "0px", k.style.zIndex = "100", k.style.background = "white", k.classList.add("Image_dropped_pom");
1601
+ const z = document.createElement("button");
1602
+ z.textContent = " Left", z.style.margin = "5px";
1603
+ const V = document.createElement("button");
1604
+ V.textContent = " Right", V.style.margin = "5px";
1605
+ const W = document.createElement("button");
1606
+ W.textContent = "Center ", W.style.margin = "5px", k.appendChild(z), k.appendChild(V), k.appendChild(W), _.appendChild(k), z.addEventListener("click", () => {
1607
+ _.style.float = "inline-start", j();
1608
+ }), V.addEventListener("click", () => {
1609
+ _.style.float = "inline-end", j();
1610
+ }), W.addEventListener("click", () => {
1611
+ _.style.display = "block", _.style.margin = "0 auto", j();
1612
+ }), document.addEventListener("click", function ce(ue) {
1613
+ _.contains(ue.target) || (j(), document.removeEventListener("click", ce));
1614
+ }, { once: !0 });
1615
+ });
1616
+ const E = document.createElement("div");
1617
+ E.style.width = "10px", E.style.height = "100%", E.style.background = "gray", E.style.position = "absolute", E.style.right = "0", E.style.top = "0", E.style.cursor = "ew-resize", E.style.zIndex = "2", E.setAttribute("contentEditable", !1);
1618
+ const F = document.createElement("div");
1619
+ F.style.width = "100%", F.style.height = "10px", F.style.background = "gray", F.style.position = "absolute", F.style.bottom = "0", F.style.left = "0", F.style.cursor = "ns-resize", F.style.zIndex = "2", F.setAttribute("contentEditable", !1);
1620
+ const S = document.createElement("div");
1621
+ S.style.width = "20px", S.style.height = "20px", S.style.background = "gray", S.style.position = "absolute", S.style.right = "0", S.style.bottom = "0", S.style.cursor = "nwse-resize", S.style.zIndex = "10", S.setAttribute("contentEditable", !1), _.appendChild(c), _.appendChild(E), _.appendChild(F), _.appendChild(S), _.addEventListener("click", (A) => {
1622
+ d && (d.style.border = ""), d = _, d.style.border = "2px solid blue";
1623
+ }), E.addEventListener("mousedown", (A) => O(A, "width")), F.addEventListener("mousedown", (A) => O(A, "height")), S.addEventListener("mousedown", (A) => O(A, "both")), t.insertNode(_);
1624
+ let Z;
1625
+ }
1152
1626
  }
1153
- function S() {
1154
- i.value = W(), X(), Y(i.value, t.value, u.value, s.value);
1627
+ function j(f = "Image_dropped_pom") {
1628
+ const t = document.getElementsByClassName(f);
1629
+ Array.from(t).forEach((c) => {
1630
+ c.remove();
1631
+ });
1155
1632
  }
1156
- return (w, n) => (H(), M(T, null, [
1157
- e("div", ue, [
1158
- e("div", ge, [
1159
- e("div", he, [
1160
- e("div", me, [
1161
- e("div", ve, [
1162
- fe,
1163
- e("div", xe, [
1164
- e("div", ye, [
1633
+ return (f, t) => ($(), I(X, null, [
1634
+ e("div", Te, [
1635
+ e("div", $e, [
1636
+ e("div", Ie, [
1637
+ e("div", je, [
1638
+ e("div", Ze, [
1639
+ Be,
1640
+ e("div", Ne, [
1641
+ e("div", De, [
1165
1642
  e("div", {
1166
1643
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1167
- onClick: n[0] || (n[0] = (c) => x(!0))
1168
- }, _e),
1169
- e("div", Ce, [
1170
- ke,
1644
+ onClick: t[0] || (t[0] = (c) => g(!0))
1645
+ }, Pe),
1646
+ e("div", Ge, [
1647
+ Oe,
1171
1648
  e("strong", {
1172
1649
  class: "px-3",
1173
- onClick: n[1] || (n[1] = (c) => x(!1))
1650
+ onClick: t[1] || (t[1] = (c) => g(!1))
1174
1651
  }, "Preview")
1175
1652
  ]),
1176
- Fe
1653
+ Xe
1177
1654
  ])
1178
1655
  ])
1179
1656
  ])
1180
1657
  ]),
1181
- e("div", Le, [
1182
- e("div", Ee, [
1183
- Ae,
1184
- e("div", Se, [
1185
- e("div", He, [
1658
+ e("div", qe, [
1659
+ e("div", Ye, [
1660
+ Ue,
1661
+ e("div", Ke, [
1662
+ e("div", Je, [
1186
1663
  e("div", {
1187
1664
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
1188
- onClick: n[2] || (n[2] = (c) => f())
1189
- }, Te),
1665
+ onClick: t[2] || (t[2] = (c) => b())
1666
+ }, tt),
1190
1667
  e("div", {
1191
- onClick: n[3] || (n[3] = (c) => f("i", "**italic text **")),
1668
+ onClick: t[3] || (t[3] = (c) => b("i", "**italic text **")),
1192
1669
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1193
- }, Ie),
1670
+ }, it),
1194
1671
  e("div", {
1195
- onClick: n[4] || (n[4] = (c) => f("u", "**underLine text **")),
1672
+ onClick: t[4] || (t[4] = (c) => b("u", "**underLine text **")),
1196
1673
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1197
- }, Ze),
1674
+ }, at),
1198
1675
  e("div", {
1199
- onClick: n[5] || (n[5] = (c) => f("s", "**underLine text**")),
1676
+ onClick: t[5] || (t[5] = (c) => b("s", "**underLine text**")),
1200
1677
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1201
- }, Ve),
1678
+ }, ct),
1202
1679
  e("div", {
1203
- onClick: n[6] || (n[6] = (c) => f("sup", "**supperScript**")),
1680
+ onClick: t[6] || (t[6] = (c) => b("sup", "**supperScript**")),
1204
1681
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1205
- }, Oe),
1682
+ }, mt),
1206
1683
  e("div", {
1207
- onClick: n[7] || (n[7] = (c) => f("sub", "**supperScript**")),
1684
+ onClick: t[7] || (t[7] = (c) => b("sub", "**supperScript**")),
1208
1685
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1209
- }, Ye),
1686
+ }, ft),
1210
1687
  e("div", {
1211
- onClick: n[8] || (n[8] = (c) => f("summary", "**summary**")),
1688
+ onClick: t[8] || (t[8] = (c) => b("summary", "**summary**")),
1212
1689
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1213
- }, Ke),
1690
+ }, xt),
1214
1691
  e("div", {
1215
- onClick: n[9] || (n[9] = (c) => f("ol", "1. ordered list")),
1692
+ onClick: t[9] || (t[9] = (c) => b("ol", "1. ordered list")),
1216
1693
  style: { "background-color": "#f3f4f6", cursor: "pointer" },
1217
1694
  class: "hover:bg-gray-200 elemeSet rounded"
1218
- }, et),
1695
+ }, wt),
1219
1696
  e("div", {
1220
- onClick: n[10] || (n[10] = (c) => f("ul", "1. unordered list")),
1697
+ onClick: t[10] || (t[10] = (c) => b("ul", "1. unordered list")),
1221
1698
  style: { "background-color": "#f3f4f6", cursor: "pointer" },
1222
1699
  class: "hover:bg-gray-200 elemeSet rounded"
1223
- }, nt),
1700
+ }, Et),
1224
1701
  e("div", {
1225
- onClick: n[11] || (n[11] = (c) => f("h1", "**h1**")),
1702
+ onClick: t[11] || (t[11] = (c) => b("h1", "**h1**")),
1226
1703
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1227
- }, st),
1704
+ }, Lt),
1228
1705
  e("div", {
1229
- onClick: n[12] || (n[12] = (c) => f("h2", "**h2**")),
1706
+ onClick: t[12] || (t[12] = (c) => b("h2", "**h2**")),
1230
1707
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1231
- }, lt),
1708
+ }, St),
1232
1709
  e("div", {
1233
- onClick: n[13] || (n[13] = (c) => f("h3", "**h3**")),
1710
+ onClick: t[13] || (t[13] = (c) => b("h3", "**h3**")),
1234
1711
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1235
- }, at),
1712
+ }, Mt),
1236
1713
  e("div", {
1237
- onClick: n[14] || (n[14] = (c) => f("h4", "**h4**")),
1714
+ onClick: t[14] || (t[14] = (c) => b("h4", "**h4**")),
1238
1715
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1239
- }, pt),
1716
+ }, Ht),
1240
1717
  e("div", {
1241
- onClick: n[15] || (n[15] = (c) => f("h5", "**h5**")),
1718
+ onClick: t[15] || (t[15] = (c) => b("h5", "**h5**")),
1242
1719
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1243
- }, gt),
1720
+ }, $t),
1244
1721
  e("div", {
1245
- onClick: n[16] || (n[16] = (c) => f("h6", "**h6**")),
1722
+ onClick: t[16] || (t[16] = (c) => b("h6", "**h6**")),
1246
1723
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1247
- }, mt),
1248
- e("div", vt, [
1724
+ }, jt),
1725
+ e("div", Zt, [
1249
1726
  e("input", {
1250
1727
  list: "fontSizes",
1251
- onChange: n[17] || (n[17] = (c) => v("fontSize", c.target.value, "px")),
1728
+ onChange: t[17] || (t[17] = (c) => w("font-size", c.target.value + "px")),
1252
1729
  placeholder: "Size ",
1253
1730
  class: "p-1 border rounded w-[6vw] h-[3vh]"
1254
1731
  }, null, 32),
1255
- ft
1732
+ Bt
1256
1733
  ])
1257
1734
  ])
1258
1735
  ])
1259
1736
  ])
1260
1737
  ]),
1261
- e("div", xt, [
1262
- e("div", yt, [
1263
- bt,
1264
- e("div", wt, [
1265
- e("div", _t, [
1266
- e("div", Ct, [
1267
- kt,
1268
- Ft,
1738
+ e("div", Nt, [
1739
+ e("div", Dt, [
1740
+ Vt,
1741
+ e("div", Wt, [
1742
+ e("div", Pt, [
1743
+ e("div", Gt, [
1744
+ Ot,
1745
+ Xt,
1269
1746
  e("input", {
1270
1747
  type: "file",
1271
1748
  hidden: "",
1272
1749
  id: "pom43546535435445Image",
1273
1750
  accept: "image/*",
1274
1751
  multiple: "",
1275
- onChange: n[18] || (n[18] = (c) => y(c))
1752
+ onChange: t[18] || (t[18] = (c) => R(c))
1276
1753
  }, null, 32)
1277
1754
  ]),
1278
1755
  e("div", {
1279
1756
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1280
- onClick: n[19] || (n[19] = (c) => {
1281
- b(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: "text-decoration: underline;cursor: pointer" });
1757
+ onClick: t[19] || (t[19] = (c) => {
1758
+ C(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: "text-decoration: underline;cursor: pointer" });
1282
1759
  })
1283
- }, At),
1760
+ }, Ut),
1284
1761
  e("div", {
1285
1762
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
1286
- onClick: n[20] || (n[20] = (c) => b(this))
1287
- }, Mt),
1763
+ onClick: t[20] || (t[20] = (c) => C(this))
1764
+ }, Qt),
1288
1765
  e("div", null, [
1289
- $t,
1766
+ eo,
1290
1767
  e("div", {
1291
1768
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1292
- onClick: n[21] || (n[21] = (c) => R(N)())
1293
- }, zt),
1769
+ onClick: t[21] || (t[21] = (c) => J(ie)())
1770
+ }, no),
1294
1771
  e("div", {
1295
1772
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1296
- onClick: n[22] || (n[22] = (c) => R(N)(!0))
1297
- }, Nt),
1298
- e("div", Zt, [
1299
- jt,
1773
+ onClick: t[22] || (t[22] = (c) => J(ie)(!0))
1774
+ }, lo),
1775
+ e("div", ao, [
1776
+ ro,
1300
1777
  e("div", {
1301
1778
  id: "table-picker-container",
1302
1779
  ref_key: "tablePickerContainer",
1303
- ref: r,
1780
+ ref: a,
1304
1781
  class: "table-picker-container"
1305
1782
  }, [
1306
1783
  e("div", {
1307
1784
  id: "table-picker-grid",
1308
1785
  ref_key: "tablePickerGrid",
1309
- ref: u,
1786
+ ref: p,
1310
1787
  class: "table-picker-grid"
1311
1788
  }, null, 512),
1312
1789
  e("span", {
@@ -1322,144 +1799,301 @@ const pe = (o, l) => {
1322
1799
  ])
1323
1800
  ])
1324
1801
  ]),
1325
- e("div", Dt, [
1802
+ e("div", co, [
1803
+ e("div", uo, [
1804
+ po,
1805
+ e("div", mo, [
1806
+ e("span", ho, [
1807
+ e("div", go, [
1808
+ e("div", fo, [
1809
+ vo,
1810
+ e("div", yo, [
1811
+ e("div", xo, [
1812
+ e("div", {
1813
+ onClick: t[23] || (t[23] = () => y("font-family", " arial, helvetica, sans-serif")),
1814
+ style: { "font-family": "arial, helvetica, sans-serif" }
1815
+ }, "Arial ")
1816
+ ]),
1817
+ _o
1818
+ ]),
1819
+ e("div", bo, [
1820
+ e("div", wo, [
1821
+ e("div", {
1822
+ style: { "font-family": '"arial black", sans-serif' },
1823
+ onClick: t[24] || (t[24] = () => y("font-family", "arial black, sans-serif"))
1824
+ }, " Arial Black")
1825
+ ]),
1826
+ ko
1827
+ ]),
1828
+ e("div", Co, [
1829
+ e("div", Eo, [
1830
+ e("div", {
1831
+ style: { "font-family": "book antiqua, palatino, serif" },
1832
+ onClick: t[25] || (t[25] = () => y("font-family", "book antiqua, palatino, serif"))
1833
+ }, " Book Antiqua")
1834
+ ]),
1835
+ Fo
1836
+ ]),
1837
+ e("div", Lo, [
1838
+ e("div", Ao, [
1839
+ e("div", {
1840
+ style: { "font-family": '"comic sans ms", sans-serif' },
1841
+ onClick: t[26] || (t[26] = () => y("font-family", 'comic sans ms", sans-serif'))
1842
+ }, " Comic Sans MS")
1843
+ ]),
1844
+ So
1845
+ ]),
1846
+ e("div", zo, [
1847
+ e("div", Mo, [
1848
+ e("div", {
1849
+ style: { "font-family": "courier new, courier, monospace" },
1850
+ onClick: t[27] || (t[27] = () => y("font-family", " courier new, courier, monospace;"))
1851
+ }, " Courier New")
1852
+ ]),
1853
+ Ro
1854
+ ]),
1855
+ e("div", Ho, [
1856
+ e("div", To, [
1857
+ e("div", {
1858
+ style: { "font-family": "georgia, palatino, serif" },
1859
+ onClick: t[28] || (t[28] = () => y("font-family", " georgia, palatino, serif"))
1860
+ }, "Georgia ")
1861
+ ]),
1862
+ $o
1863
+ ]),
1864
+ e("div", Io, [
1865
+ e("div", jo, [
1866
+ e("div", {
1867
+ style: { "font-family": "helvetica, arial, sans-serif" },
1868
+ onClick: t[29] || (t[29] = () => y("font-family", " helvetica, arial, sans-serif"))
1869
+ }, " Helvetica")
1870
+ ]),
1871
+ Zo
1872
+ ]),
1873
+ e("div", Bo, [
1874
+ e("div", No, [
1875
+ e("div", {
1876
+ style: { "font-family": "impact, sans-serif" },
1877
+ onClick: t[30] || (t[30] = () => y("font-family", " impact, sans-serif"))
1878
+ }, "Impact")
1879
+ ]),
1880
+ Do
1881
+ ]),
1882
+ e("div", Vo, [
1883
+ e("div", Wo, [
1884
+ e("div", {
1885
+ style: { "font-family": "symbol" },
1886
+ onClick: t[31] || (t[31] = () => y("font-family", " symbol"))
1887
+ }, "Symbol")
1888
+ ]),
1889
+ Po
1890
+ ]),
1891
+ e("div", Go, [
1892
+ e("div", Oo, [
1893
+ e("div", {
1894
+ style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
1895
+ onClick: t[32] || (t[32] = () => y("font-family", " tahoma, arial, helvetica, sans-serif"))
1896
+ }, " Tahoma")
1897
+ ]),
1898
+ Xo
1899
+ ]),
1900
+ e("div", qo, [
1901
+ e("div", Yo, [
1902
+ e("div", {
1903
+ style: { "font-family": "terminal, monaco, monospace" },
1904
+ onClick: t[33] || (t[33] = () => y("font-family", " terminal, monaco, monospace"))
1905
+ }, "Terminal ")
1906
+ ]),
1907
+ Uo
1908
+ ]),
1909
+ e("div", Ko, [
1910
+ e("div", Jo, [
1911
+ e("div", {
1912
+ style: { "font-family": "times new roman, times, serif" },
1913
+ onClick: t[34] || (t[34] = () => y("font-family", " times new roman, times, serif"))
1914
+ }, " Times New Roman")
1915
+ ]),
1916
+ Qo
1917
+ ]),
1918
+ e("div", en, [
1919
+ e("div", tn, [
1920
+ e("div", {
1921
+ style: { "font-family": "trebuchet ms, geneva, sans-serif" },
1922
+ onClick: t[35] || (t[35] = () => y("font-family", " trebuchet ms, geneva, sans-serif"))
1923
+ }, " Trebuchet MS")
1924
+ ]),
1925
+ on
1926
+ ]),
1927
+ e("div", nn, [
1928
+ e("div", sn, [
1929
+ e("div", {
1930
+ style: { "font-family": "verdana, geneva, sans-serif" },
1931
+ onClick: t[36] || (t[36] = () => y("font-family", " verdana, geneva, sans-serif"))
1932
+ }, "Verdana ")
1933
+ ]),
1934
+ ln
1935
+ ]),
1936
+ an,
1937
+ rn
1938
+ ])
1939
+ ])
1940
+ ])
1941
+ ])
1942
+ ])
1943
+ ]),
1944
+ e("div", dn, [
1326
1945
  e("button", {
1327
1946
  style: { flex: "1", margin: "0 4px", width: "auto" },
1328
- onClick: n[23] || (n[23] = (c) => h("textAlign", "justify"))
1329
- }, Pt),
1947
+ onClick: t[37] || (t[37] = (c) => v("text-align", "justify", "", "p"))
1948
+ }, un),
1330
1949
  e("button", {
1331
1950
  style: { flex: "1", margin: "0 4px", width: "auto" },
1332
- onClick: n[24] || (n[24] = (c) => h("textAlign", "center"))
1333
- }, Ot),
1951
+ onClick: t[38] || (t[38] = (c) => v("text-align", "center", "", "div"))
1952
+ }, mn),
1334
1953
  e("button", {
1335
1954
  style: { flex: "1", margin: "0 4px", width: "auto" },
1336
- onClick: n[25] || (n[25] = (c) => h("textAlign", "end"))
1337
- }, Wt),
1955
+ onClick: t[39] || (t[39] = (c) => v("text-align", "end", "", "p"))
1956
+ }, gn),
1338
1957
  e("button", {
1339
1958
  style: { flex: "1", margin: "0 4px", width: "auto" },
1340
- onClick: n[26] || (n[26] = (c) => h("textAlign", "start"))
1341
- }, qt)
1959
+ onClick: t[40] || (t[40] = (c) => v("text-align", "start", "", "div"))
1960
+ }, vn)
1342
1961
  ]),
1343
- e("div", Ut, [
1344
- Kt,
1345
- e("div", Jt, [
1346
- e("div", Qt, [
1962
+ e("div", yn, [
1963
+ xn,
1964
+ e("div", _n, [
1965
+ e("div", bn, [
1347
1966
  e("div", {
1348
- onClick: n[27] || (n[27] = (c) => E(3, "disc"))
1349
- }, to),
1967
+ onClick: t[41] || (t[41] = (c) => D(3, "disc"))
1968
+ }, kn),
1350
1969
  e("div", {
1351
- onClick: n[28] || (n[28] = (c) => E(3, "circle"))
1352
- }, no),
1970
+ onClick: t[42] || (t[42] = (c) => D(3, "circle"))
1971
+ }, En),
1353
1972
  e("div", null, [
1354
1973
  e("div", {
1355
1974
  class: "",
1356
- onClick: n[29] || (n[29] = (c) => E())
1357
- }, so)
1975
+ onClick: t[43] || (t[43] = (c) => D())
1976
+ }, Ln)
1358
1977
  ]),
1359
1978
  e("div", {
1360
- onClick: n[30] || (n[30] = (c) => E(3, "upper-latin"))
1361
- }, lo)
1979
+ onClick: t[44] || (t[44] = (c) => D(3, "upper-latin"))
1980
+ }, Sn)
1362
1981
  ])
1363
1982
  ])
1364
1983
  ])
1365
1984
  ]),
1366
- e("div", ao, [
1367
- z(w.$slots, "toolbar-before", {}, void 0, !0),
1985
+ e("div", zn, [
1986
+ Q(f.$slots, "toolbar-before", {}, void 0, !0),
1368
1987
  e("div", {
1369
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
1988
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-3",
1370
1989
  style: { margin: "6px" },
1371
- onClick: n[31] || (n[31] = (c) => f())
1372
- }, po),
1990
+ onClick: t[45] || (t[45] = (c) => b())
1991
+ }, Rn),
1373
1992
  e("div", {
1374
- onClick: n[32] || (n[32] = (c) => f("i", "**italic text **")),
1375
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
1993
+ onClick: t[46] || (t[46] = (c) => b("i", "**italic text **")),
1994
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1376
1995
  style: { margin: "6px" }
1377
- }, go),
1996
+ }, Tn),
1378
1997
  e("div", {
1379
- onClick: n[33] || (n[33] = (c) => f("u", "**underLine text **")),
1380
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
1998
+ onClick: t[47] || (t[47] = (c) => b("u", "**underLine text**")),
1999
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1381
2000
  style: { margin: "6px" }
1382
- }, mo),
2001
+ }, In),
1383
2002
  e("div", {
1384
- onClick: n[34] || (n[34] = (c) => f("s", "**Strike text**")),
1385
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
2003
+ onClick: t[48] || (t[48] = (c) => b("s", "**Strike text**")),
2004
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1386
2005
  style: { margin: "6px" }
1387
2006
  }, [
1388
- e("i", vo, [
1389
- (H(), M("svg", fo, wo))
2007
+ e("i", jn, [
2008
+ ($(), I("svg", Zn, Vn))
1390
2009
  ])
1391
2010
  ]),
1392
2011
  e("div", {
1393
- onClick: n[35] || (n[35] = (c) => f("sup", "**supperScript**")),
1394
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
2012
+ onClick: t[49] || (t[49] = (c) => b("sup", "**supperScript**")),
2013
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1395
2014
  style: { margin: "6px" }
1396
- }, Co),
2015
+ }, Pn),
1397
2016
  e("div", {
1398
- onClick: n[36] || (n[36] = (c) => f("sub", "**supperScript**")),
1399
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
2017
+ onClick: t[50] || (t[50] = (c) => b("sub", "**supperScript**")),
2018
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1400
2019
  style: { margin: "6px" }
1401
- }, Fo),
2020
+ }, On),
1402
2021
  e("div", {
1403
- onClick: n[37] || (n[37] = (c) => f("Code", "**<code>**")),
1404
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-4",
2022
+ onClick: t[51] || (t[51] = (c) => b("Code", "**code**")),
2023
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1405
2024
  style: { margin: "6px" }
1406
- }, Eo),
1407
- e("div", Ao, [
1408
- So,
1409
- e("div", Ho, [
1410
- e("div", Mo, [
1411
- (H(!0), M(T, null, V(d.value, (c) => (H(), M("div", {
2025
+ }, qn),
2026
+ e("div", Yn, [
2027
+ Un,
2028
+ e("div", Kn, [
2029
+ e("div", Jn, [
2030
+ ($(!0), I(X, null, ee(u.value, (c) => ($(), I("div", {
2031
+ class: "color-box",
2032
+ style: te(`background-color: #${c} ;`),
2033
+ onClick: (_) => w("background", `#${c}`, "", "span")
2034
+ }, null, 12, Qn))), 256))
2035
+ ])
2036
+ ])
2037
+ ]),
2038
+ e("div", ei, [
2039
+ ti,
2040
+ e("div", oi, [
2041
+ e("div", ni, [
2042
+ ($(!0), I(X, null, ee(u.value, (c) => ($(), I("div", {
1412
2043
  class: "color-box",
1413
- style: P(`background-color: #${c} ;`),
1414
- onClick: (Go) => v("background", `#${c}`, "", "div")
1415
- }, null, 12, $o))), 256))
2044
+ style: te(`background-color: #${c} ;`),
2045
+ onClick: (_) => w("color", `#${c}`, "", "span")
2046
+ }, null, 12, ii))), 256))
1416
2047
  ])
1417
2048
  ])
1418
2049
  ]),
1419
- z(w.$slots, "toolbar-after", {}, void 0, !0),
2050
+ Q(f.$slots, "toolbar-after", {}, void 0, !0),
1420
2051
  e("div", {
1421
2052
  title: "new fresh line",
1422
2053
  style: { flex: "1", margin: "0 4px", "text-align": "center", "padding-top": "8px" },
1423
- onClick: n[38] || (n[38] = (c) => C())
1424
- }, Ro)
2054
+ onClick: t[52] || (t[52] = (c) => N())
2055
+ }, li)
1425
2056
  ])
1426
2057
  ])
1427
2058
  ]),
1428
2059
  e("div", {
1429
2060
  class: "",
1430
2061
  ref_key: "pomTextEditorContainer",
1431
- ref: m,
2062
+ ref: h,
1432
2063
  id: "pom-texedito-container",
1433
2064
  style: { width: "100%", overflow: "hidden auto", height: "30vh", border: "1px solid #9d969633", padding: "0px", "border-radius": "3px" }
1434
2065
  }, [
1435
- e("div", zo, [
2066
+ e("div", ai, [
1436
2067
  e("div", {
1437
2068
  "data-placeholder": "Your Editing.....",
1438
- innerHTML: o.Dvalue,
1439
- onMouseup: n[39] || (n[39] = (c) => S()),
1440
- onKeyup: n[40] || (n[40] = (c) => S()),
2069
+ onDrop: re,
2070
+ innerHTML: n.Dvalue,
2071
+ onMouseup: t[53] || (t[53] = (c) => G()),
2072
+ onKeyup: t[54] || (t[54] = (c) => {
2073
+ G();
2074
+ }),
1441
2075
  ref_key: "editorRef",
1442
- ref: t,
1443
- class: "editor mt-1 border-gray-300",
1444
- onInput: _,
2076
+ ref: o,
2077
+ class: "editor pom-editing-area mt-1 border-gray-300",
2078
+ onInput: T,
1445
2079
  contenteditable: "true",
1446
2080
  id: "editor",
1447
- style: { height: "100%" }
1448
- }, null, 40, Io)
2081
+ style: { height: "100%", width: "100%", border: "none" }
2082
+ }, null, 40, ri)
1449
2083
  ])
1450
2084
  ], 512),
1451
- e("div", Bo, [
2085
+ e("div", di, [
1452
2086
  e("div", {
1453
2087
  class: "hover:bg-gray-200",
1454
- onClick: n[41] || (n[41] = (c) => C())
1455
- }, jo),
1456
- Do,
1457
- p("       "),
1458
- Vo
2088
+ onClick: t[55] || (t[55] = (c) => N())
2089
+ }, pi),
2090
+ mi,
2091
+ Y("       "),
2092
+ hi
1459
2093
  ])
1460
2094
  ], 64));
1461
2095
  }
1462
- }, Xo = /* @__PURE__ */ pe(Po, [["__scopeId", "data-v-02ac6d13"]]);
2096
+ }, vi = /* @__PURE__ */ He(gi, [["__scopeId", "data-v-c5304261"]]);
1463
2097
  export {
1464
- Xo as default
2098
+ vi as default
1465
2099
  };