pom-text-editor 0.2.21 → 0.2.22

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.
@@ -2,367 +2,417 @@
2
2
  * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
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;
13
- if (i.nodeType === Node.TEXT_NODE) {
14
- const a = i.textContent.substring(o, o + 1);
15
- document.getElementById("textAtCursor").textContent = a;
16
- } else
17
- document.getElementById("textAtCursor").textContent = "No text here";
5
+ */.pom-main-element-container .editor[data-v-df48f6af]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.pom-main-element-container .editor[data-v-df48f6af]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-df48f6af]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-df48f6af]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-df48f6af]{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}.pom-main-element-container .table-picker-wrapper:hover .table-picker-container[data-v-df48f6af]{display:block}.pom-main-element-container .table-picker-grid[data-v-df48f6af]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.pom-main-element-container .table-picker-grid div[data-v-df48f6af]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-df48f6af]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-df48f6af]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-df48f6af]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-df48f6af]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-df48f6af]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-df48f6af]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-df48f6af]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-df48f6af]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-df48f6af]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-df48f6af]:active{color:orange}@media print{.hideonprint[data-v-df48f6af]{display:none!important}[data-v-df48f6af]{overflow:hidden}}.pom-main-element-container .editor[data-v-df48f6af]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-df48f6af]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-df48f6af] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-df48f6af] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-df48f6af] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-df48f6af] ::-webkit-scrollbar-thumb:hover{background:#555}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
6
+ import { ref as H, onMounted as he, openBlock as R, createElementBlock as $, createElementVNode as e, unref as J, renderSlot as Q, Fragment as ee, renderList as te, normalizeStyle as oe, toDisplayString as ge, createCommentVNode as ve, createStaticVNode as T, pushScopeId as xe, popScopeId as ye, createTextVNode as re } from "vue";
7
+ function be() {
8
+ const o = window.getSelection();
9
+ if (o.rangeCount > 0) {
10
+ const l = o.getRangeAt(0), n = l.startOffset;
11
+ if (document.getElementById("cursorPosition")) {
12
+ document.getElementById("cursorPosition").textContent = n;
13
+ const d = l.startContainer;
14
+ if (d.nodeType === Node.TEXT_NODE) {
15
+ const s = d.textContent.substring(n, n + 1);
16
+ document.getElementById("textAtCursor").textContent = s;
17
+ } else
18
+ document.getElementById("textAtCursor").textContent = "No text here";
19
+ }
18
20
  }
19
21
  }
20
- function fe() {
21
- const n = window.getSelection();
22
- if (n.rangeCount > 0)
23
- return { range: n.getRangeAt(0).cloneRange(), selection: n };
22
+ function _e() {
23
+ const o = window.getSelection();
24
+ if (o.rangeCount > 0)
25
+ return { range: o.getRangeAt(0).cloneRange(), selection: o };
24
26
  }
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);
28
- function d(m) {
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%");
27
+ function de(o) {
28
+ o.preventDefault();
29
+ const n = o.target.parentElement, d = o.clientX, s = o.clientY, p = parseFloat(window.getComputedStyle(n).width), r = parseFloat(window.getComputedStyle(n).height);
30
+ function c(g) {
31
+ const b = g.clientX - d, v = g.clientY - s;
32
+ n.style.width = `${p + b}px`, n.style.height = `${r + v}px`, n.style.minWidth = "50px", n.style.minHeight = "50px";
33
+ const f = n.querySelector("img");
34
+ f && (f.style.width = "100%");
33
35
  }
34
36
  function u() {
35
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
37
+ document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
36
38
  }
37
- document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
39
+ document.addEventListener("mousemove", c), document.addEventListener("mouseup", u);
38
40
  }
39
- let B;
40
- function oe(n, r) {
41
- const [o, i] = r.textContent.split(" x ").map(Number);
42
- ye(n, i, o);
41
+ let W;
42
+ function ne(o, l) {
43
+ const [n, d] = l.textContent.split(" x ").map(Number);
44
+ ke(o, d, n);
43
45
  }
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) => {
47
- d <= i ? s.style.backgroundColor = "#1f9296" : s.style.backgroundColor = "#737979";
48
- }), r.textContent = `${a} x ${p}`;
46
+ function ie(o, l, n) {
47
+ const d = Array.from(n.children).indexOf(o.target), s = d % 10 + 1, p = Math.floor(d / 10) + 1;
48
+ Array.from(n.children).forEach((r, c) => {
49
+ c <= d ? r.style.backgroundColor = "#1f9296" : r.style.backgroundColor = "#737979";
50
+ }), l.textContent = `${s} x ${p}`;
49
51
  }
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);
52
+ function we(o, l, n, d) {
53
+ for (W = o; n.firstChild; ) {
54
+ const s = n.firstChild;
55
+ s.removeEventListener("mouseover", ie), s.removeEventListener("click", ne), n.removeChild(s);
54
56
  }
55
- for (let a = 0; a < 100; a++) {
57
+ for (let s = 0; s < 100; s++) {
56
58
  const p = document.createElement("div");
57
- p.addEventListener("mouseover", (s) => ne(s, i, o)), p.addEventListener("click", () => oe(r, i)), o.appendChild(p);
59
+ p.addEventListener("mouseover", (r) => ie(r, d, n)), p.addEventListener("click", () => ne(l, d)), n.appendChild(p);
58
60
  }
59
61
  }
60
- function ye(n, r = 2, o = 2) {
61
- const i = B.range;
62
- if (i) {
63
- const a = B.selection, p = document.createElement("div");
62
+ function ke(o, l = 2, n = 2) {
63
+ const d = W.range;
64
+ if (d) {
65
+ const s = W.selection, p = document.createElement("div");
64
66
  p.classList.add("pom-table-editor-container"), p.style.display = "flex";
65
- const s = document.createElement("table");
66
- s.style.border = "1px solid black", s.style.borderCollapse = "collapse", s.classList.add("pom-table-editor");
67
- for (let m = 0; m < r; m++) {
68
- const x = document.createElement("tr");
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);
67
+ const r = document.createElement("table");
68
+ r.style.border = "1px solid black", r.style.borderCollapse = "collapse", r.classList.add("pom-table-editor");
69
+ for (let g = 0; g < l; g++) {
70
+ const b = document.createElement("tr");
71
+ for (let v = 0; v < n; v++) {
72
+ const f = document.createElement("td");
73
+ f.style.border = "1px solid black", f.style.padding = "5px", f.textContent = `Row ${g + 1}, Cell ${v + 1}`;
74
+ const h = document.createElement("div");
75
+ h.style.width = "5px", h.style.height = "100%", h.style.position = "absolute", h.style.right = "0", h.style.top = "0", h.style.cursor = "col-resize", h.style.userSelect = "none", h.addEventListener("mousedown", de), f.style.position = "relative", f.appendChild(h), b.appendChild(f);
74
76
  }
75
- s.appendChild(x);
77
+ r.appendChild(b);
76
78
  }
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;
79
+ p.appendChild(r), r.addEventListener("contextmenu", function(g) {
80
+ g.preventDefault(), Ce(g, r, p);
81
+ }), d.deleteContents(), d.insertNode(p);
82
+ const c = r.querySelector("td"), u = document.createRange();
83
+ return u.setStart(c, 0), u.collapse(!0), s.addRange(u), W = u.cloneRange(), o.focus(), W;
82
84
  }
83
85
  }
84
- function xe(n, r, o) {
85
- const i = document.getElementById("custom-context-menu");
86
- i && document.body.removeChild(i);
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() },
86
+ function Ce(o, l, n) {
87
+ const d = document.getElementById("custom-context-menu");
88
+ d && document.body.removeChild(d);
89
+ const s = document.createElement("div");
90
+ s.id = "custom-context-menu", s.style.position = "absolute", s.style.backgroundColor = "white", s.style.border = "1px solid #ccc", s.style.padding = "10px", s.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", s.style.zIndex = "1000", s.style.left = `${o == null ? void 0 : o.pageX}px`, s.style.top = `${o == null ? void 0 : o.pageY}px`, [
91
+ { text: "Delete Table", action: () => n.remove() },
90
92
  {
91
93
  text: "Toggle Borders",
92
94
  action: () => {
93
- const s = r.style.border !== "";
94
- r.style.border = s ? "" : "1px solid black", r.style.borderCollapse = "collapse", r.querySelectorAll("td").forEach((d) => {
95
- d.style.border = s ? "" : "1px solid black";
95
+ const r = l.style.border !== "";
96
+ l.style.border = r ? "" : "1px solid black", l.style.borderCollapse = "collapse", l.querySelectorAll("td").forEach((c) => {
97
+ c.style.border = r ? "" : "1px solid black";
96
98
  });
97
99
  }
98
100
  },
99
101
  {
100
102
  text: "Color Table",
101
103
  action: () => {
102
- const s = document.createElement("input");
103
- s.type = "color", s.style.marginTop = "5px", s.addEventListener("input", () => {
104
- r.style.backgroundColor = s.value;
104
+ const r = document.createElement("input");
105
+ r.type = "color", r.style.marginTop = "5px", r.addEventListener("input", () => {
106
+ l.style.backgroundColor = r.value;
105
107
  });
106
- const d = document.createElement("input");
107
- d.type = "color", d.style.marginTop = "5px", d.addEventListener("input", () => {
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);
108
+ const c = document.createElement("input");
109
+ c.type = "color", c.style.marginTop = "5px", c.addEventListener("input", () => {
110
+ l.style.color = c.value;
111
+ }), s.appendChild(document.createTextNode("Background Color:")), s.appendChild(r), s.appendChild(document.createTextNode("Text Color:")), s.appendChild(c);
110
112
  }
111
113
  },
112
114
  {
113
115
  text: "Add Row",
114
116
  action: () => {
115
- const s = document.createElement("tr"), d = r.rows[0].cells.length;
116
- for (let u = 0; u < d; u++) {
117
- const m = document.createElement("td");
118
- m.style.border = "1px solid black", m.style.padding = "5px", m.textContent = `Row ${r.rows.length + 1}, Cell ${u + 1}`, s.appendChild(m);
117
+ const r = document.createElement("tr"), c = l.rows[0].cells.length;
118
+ for (let u = 0; u < c; u++) {
119
+ const g = document.createElement("td");
120
+ g.style.border = "1px solid black", g.style.padding = "5px", g.textContent = `Row ${l.rows.length + 1}, Cell ${u + 1}`, r.appendChild(g);
119
121
  }
120
- r.appendChild(s);
122
+ l.appendChild(r);
121
123
  }
122
124
  },
123
125
  {
124
126
  text: "Add Column",
125
127
  action: () => {
126
- for (let s = 0; s < r.rows.length; s++) {
127
- const d = document.createElement("td");
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);
128
+ for (let r = 0; r < l.rows.length; r++) {
129
+ const c = document.createElement("td");
130
+ c.style.border = "1px solid black", c.style.padding = "5px", c.textContent = `Row ${r + 1}, Cell ${l.rows[r].cells.length + 1}`, l.rows[r].appendChild(c);
129
131
  }
130
132
  }
131
133
  }
132
- ].forEach((s) => {
133
- const d = document.createElement("div");
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);
134
+ ].forEach((r) => {
135
+ const c = document.createElement("div");
136
+ c.textContent = r.text, c.style.cursor = "pointer", c.addEventListener("click", r.action), s.appendChild(c);
137
+ }), document.body.appendChild(s), document.addEventListener("click", function r() {
138
+ s && document.body.removeChild(s), document.removeEventListener("click", r);
137
139
  });
138
140
  }
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;
150
- const m = document.createElement("span"), x = document.createElement("span");
151
- m.innerHTML = "&nbsp;", x.innerHTML = "&nbsp;", n.deleteContents(), n.insertNode(m), n.insertNode(u), n.insertNode(x);
152
- const h = document.createRange();
153
- h.setStartAfter(x), h.collapse(!0), a.removeAllRanges(), a.addRange(h), n = h.cloneRange();
141
+ function Y(o, l = "strong", n = "*bold text here *", d = []) {
142
+ var s;
143
+ if (o) {
144
+ const p = window.getSelection();
145
+ p.removeAllRanges(), p.addRange(o);
146
+ const r = p.getRangeAt(0), c = `${r.toString()}`.trim(), u = r.cloneContents(), g = r.commonAncestorContainer, b = g.nodeType === Node.TEXT_NODE ? g.parentNode : g, v = `${b.tagName}`.toLowerCase();
147
+ if (typeof l == "string" && l.trim() !== "") {
148
+ let f = document.createElement(l);
149
+ f.contenteditable = !1, d && d.forEach((y) => {
150
+ const { attr: F, value: S, keyin: z } = y;
151
+ f.setAttribute(F, S);
152
+ }), f.appendChild(u), `${l}`.toLowerCase() == "code" ? console.log(f.innerHTML, "elmelmelm") : (s = b.classList) != null && s.contains("pom-editing-area") || (b.innerHTML, console.log({ highlightedText: u, elementType: l, tagName: v }, "parentNodeparentNode", f.innerHTML), l == v && (f = Ee(f.innerHTML), b.parentNode.removeChild(b))), f.innerHTML = c.length > 0 ? f.innerHTML : n;
153
+ const h = document.createElement("span");
154
+ h.innerHTML = "&nbsp;&nbsp;&nbsp;", o.deleteContents(), o.insertNode(h), o.insertNode(f);
155
+ const _ = document.createRange();
156
+ _.setStartAfter(h), _.collapse(!0), p.removeAllRanges(), p.addRange(_), o = _.cloneRange();
154
157
  } else
155
- console.error("Invalid element type:", r);
158
+ console.error("Invalid element type:", l);
156
159
  } else
157
160
  console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
158
161
  }
159
- function _e(n, r, o = "span", i = "datetime-local", a = {}, p = []) {
160
- const s = document.getElementById("Pom-openInputToFeed" + i);
161
- s && s.remove();
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);
164
- const m = document.getElementById("toolbar");
165
- m && m.appendChild(d), u.addEventListener("change", function() {
166
- const g = `${this.value}`;
167
- if (i == "datetime-local")
168
- q(n, o, g.replace(/T/, " "));
162
+ function Ee(o) {
163
+ const l = document.createElement("div");
164
+ return l.innerHTML = o, l;
165
+ }
166
+ function Le(o, l, n = "span", d = "datetime-local", s = {}, p = []) {
167
+ const r = document.getElementById("Pom-openInputToFeed" + d);
168
+ r && r.remove();
169
+ const c = document.createElement("div"), u = document.createElement("input");
170
+ c.id = "custom-context-menu", c.style.position = "absolute", c.style.backgroundColor = "white", c.style.border = "1px solid #ccc", c.style.padding = "10px", c.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", c.style.zIndex = "1000", c.style.left = `${l == null ? void 0 : l.pageX}px`, c.style.top = `${l == null ? void 0 : l.pageY}px`, u.id = "Pom-openInputToFeed" + d, u.classList.add("Pom-openInputToFeed"), u.type = d, u.style.cssText = s, c.appendChild(u);
171
+ const g = document.getElementById("toolbar");
172
+ g && g.appendChild(c), u.addEventListener("change", function() {
173
+ const f = `${this.value}`;
174
+ if (d == "datetime-local")
175
+ Y(o, n, f.replace(/T/, " "));
169
176
  else {
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 });
177
+ let _ = [];
178
+ for (const y in p)
179
+ if (p.hasOwnProperty(y))
180
+ if (y.toLowerCase() === "href")
181
+ _.push({ attr: y, value: f });
175
182
  else {
176
- const R = p[w];
177
- y.push({ attr: w, value: R });
183
+ const F = p[y];
184
+ _.push({ attr: y, value: F });
178
185
  }
179
- q(n, o, "**link Name** ", y);
186
+ Y(o, n, "**link Name** ", _);
180
187
  }
181
- d.remove(), window.document.removeEventListener("click", x);
182
- const v = document.getElementsByClassName("pom-editor-anchor-tag");
183
- for (let y = 0; y < v.length; y++)
184
- v[y].addEventListener("click", h);
188
+ c.remove(), window.document.removeEventListener("click", b);
189
+ const h = document.getElementsByClassName("pom-editor-anchor-tag");
190
+ for (let _ = 0; _ < h.length; _++)
191
+ h[_].addEventListener("click", v);
185
192
  });
186
- function x(g) {
187
- d.contains(g.target) || (d.remove(), window.document.removeEventListener("click", x));
193
+ function b(f) {
194
+ c.contains(f.target) || (c.remove(), window.document.removeEventListener("click", b));
188
195
  }
189
- function h(g) {
190
- g.preventDefault();
191
- const v = this.href;
192
- window.open(v, "_blank"), window.document.removeEventListener("click", h);
196
+ function v(f) {
197
+ f.preventDefault();
198
+ const h = this.href;
199
+ window.open(h, "_blank"), window.document.removeEventListener("click", v);
193
200
  }
194
201
  }
195
- function be(n, r, o, i, a = "", p = "span") {
196
- if (!n) {
202
+ function Fe(o, l, n, d, s = "", p = "span", r = !1) {
203
+ var N, B;
204
+ if (!o) {
197
205
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
198
206
  return;
199
207
  }
200
- const s = window.getSelection();
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;
208
+ const c = {
209
+ justify: "left",
210
+ none: "left",
211
+ end: "right",
212
+ start: "left",
213
+ center: "left"
214
+ };
215
+ if (r) {
216
+ r.target.parentElement.style.float = `${c[d]}`;
217
+ return;
218
+ }
219
+ const u = window.getSelection();
220
+ u.removeAllRanges(), u.addRange(o);
221
+ const g = u.getRangeAt(0);
222
+ let b = g.cloneContents();
223
+ const v = g.commonAncestorContainer, f = v.nodeType === Node.TEXT_NODE ? v.parentNode : v;
224
+ let h, _;
204
225
  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";
226
+ const y = `${f.tagName}`.toLowerCase(), F = f ? (N = f.classList) == null ? void 0 : N.contains("resizer-image-dropped") : null;
227
+ if (f && ((B = f.classList) != null && B.contains("pom-4-textDirection")) && f.childNodes.forEach((j) => {
228
+ var Z;
229
+ j.nodeType === Node.ELEMENT_NODE && ((Z = j.classList) != null && Z.contains("resizer-image-dropped") || j.removeAttribute("style"));
230
+ }), y == "ul" || F || y == "img") {
231
+ f.style.float = `${c[d]}`, f.style.fontWeight = "bold";
216
232
  return;
217
233
  }
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();
234
+ h.appendChild(b), f.id === "editor" ? (_ = h.innerHTML.replace("text-align", "note"), o.deleteContents()) : (_ = h.innerHTML, o.deleteContents());
235
+ const S = h.style[n] || "", z = new RegExp(s, "ig"), I = d.replace(z, "") + s;
236
+ S.includes(I) ? h.style[n] = S.replace(I, "") : h.style[n] = (S + I).trim(), h.style["margin-left"] = "4px", h.style["margin-right"] = "4px", h.innerHTML = _, o.insertNode(h);
237
+ const k = document.createRange();
238
+ k.collapse(!0), u.removeAllRanges(), u.addRange(k), o = k.cloneRange(), l.focus();
223
239
  }
224
- function we(n, r = 2, o = "list-style") {
225
- if (n) {
226
- const i = window.getSelection();
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++) {
240
+ function Se(o, l = 2, n = "list-style") {
241
+ if (o) {
242
+ const d = window.getSelection();
243
+ d.removeAllRanges(), d.addRange(o);
244
+ const s = document.createElement("ul");
245
+ s.style.listStyle = n, s.style.paddingLeft = "73px";
246
+ for (let c = 0; c < l; c++) {
231
247
  const u = document.createElement("li");
232
- u.style.padding = "5px", u.textContent = `li ${d + 1}, `, u.style.position = "relative", a.appendChild(u);
248
+ u.style.padding = "5px", u.textContent = `li ${c + 1}, `, u.style.position = "relative", s.appendChild(u);
233
249
  }
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();
250
+ o.deleteContents(), o.insertNode(s);
251
+ const p = s.querySelector("td"), r = document.createRange();
252
+ r.setStart(p, 0), r.collapse(!0), d.removeAllRanges(), d.addRange(r), o = r.cloneRange(), editor.focus();
237
253
  }
238
254
  }
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!");
255
+ function Ae(o) {
256
+ o.preventDefault();
257
+ const n = o.target.parentElement, d = document.getElementById("editor"), s = o.clientX, p = o.clientY, r = parseFloat(window.getComputedStyle(n).left) || 0, c = parseFloat(window.getComputedStyle(n).top) || 0, u = d.offsetWidth, g = d.offsetHeight, b = n.offsetWidth, v = n.offsetHeight;
258
+ function f(_) {
259
+ const y = _.clientX - s, F = _.clientY - p;
260
+ let S = r + y, z = c + F;
261
+ S < 0 ? S = 0 : S + b > u && (S = u - b), z < 0 ? z = 0 : z + v > g && (z = g - v), n.style.left = `${S}px`, n.style.top = `${z}px`;
262
+ const I = u / 2, k = g / 2, N = S + b / 2, B = z + v / 2;
263
+ Math.abs(N - I) < 1 && Math.abs(B - k) < 1 && alert("Container is centered!");
248
264
  }
249
- function v() {
250
- document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", v);
265
+ function h() {
266
+ document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", h);
251
267
  }
252
- document.addEventListener("mousemove", g), document.addEventListener("mouseup", v);
268
+ document.addEventListener("mousemove", f), document.addEventListener("mouseup", h);
253
269
  }
254
- function Ce(n, r) {
270
+ function ze(o, l) {
255
271
  try {
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);
272
+ const n = document.createElement("div");
273
+ n.style.width = "20px", n.style.height = "20px", n.style.background = "rgba(0, 0, 0, 0.5)", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.cursor = "move", n.style.zIndex = "11", n.classList.add(l), n.classList.add("hideonprint"), n.addEventListener("mousedown", (d) => {
274
+ Ae(d);
275
+ }), o.appendChild(n);
276
+ } catch (n) {
277
+ console.log(n);
262
278
  }
263
279
  }
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);
280
+ function Me(o, l) {
281
+ if (o) {
282
+ const n = window.getSelection();
283
+ n.removeAllRanges(), n.addRange(o);
284
+ const d = "Pom_Imge_EditorIn" + Date.now(), s = document.createElement("div");
285
+ s.style.display = "inline-flex", s.style.position = "relative", s.style.width = "200px", s.style.minHeight = "40px", s.classList.add(d), s.classList.add("hideOnprint"), s.classList.add("pom-4-imageContainer"), s.id = d, s.setAttribute("contenteditable", !1);
270
286
  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);
272
- const s = document.createElement("div");
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);
274
- const d = document.createRange();
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) {
279
- h.keyCode == 8;
287
+ p.style.padding = "5px", p.style.width = "100%", p.src = l, p.style.display = "block", p.classList.add(d), p.setAttribute("contenteditable", !1);
288
+ const r = document.createElement("div");
289
+ r.style.width = "20px", r.style.height = "20px", r.style.background = "gray", r.style.position = "absolute", r.style.right = "0", r.style.bottom = "0", r.style.cursor = "nwse-resize", r.style.zIndex = "10", r.classList.add(d), r.setAttribute("contenteditable", !1), r.classList.add("hideOnprint"), r.addEventListener("mousedown", de), s.appendChild(p), s.appendChild(r), ze(s, d), o.deleteContents(), o.insertNode(s);
290
+ const c = document.createRange();
291
+ c.setStartAfter(p), c.collapse(!0), n.removeAllRanges(), n.addRange(c), o = c.cloneRange(), editor.focus();
292
+ let u = document.getElementsByClassName(d);
293
+ for (let g = 0; g < u.length; g++)
294
+ u[g].addEventListener("keyup", function(v) {
295
+ v.keyCode == 8;
280
296
  });
281
297
  }
282
298
  }
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);
299
+ async function Te(o, l) {
300
+ const n = o.target.files || o.dataTransfer.files;
301
+ if (n.length) {
302
+ for (const d in n)
303
+ if (n.hasOwnProperty(d)) {
304
+ const s = n[d], p = await He(s);
305
+ Me(l, p);
290
306
  }
291
307
  }
292
308
  }
293
- function Le(n) {
294
- return new Promise((r, o) => {
295
- const i = new FileReader();
296
- i.onloadend = () => r(i.result), i.onerror = (a) => o(a), i.readAsDataURL(n);
309
+ function He(o) {
310
+ return new Promise((l, n) => {
311
+ const d = new FileReader();
312
+ d.onloadend = () => l(d.result), d.onerror = (s) => n(s), d.readAsDataURL(o);
297
313
  });
298
314
  }
299
- function Ae(n) {
300
- const r = document.createElement("div");
301
- r.textContent = "NeW line ", n.appendChild(r), r.focus();
315
+ const se = {
316
+ StoredText: {},
317
+ // Stores the current state of the text/image
318
+ undoStack: [],
319
+ // Holds the history of changes for undo
320
+ redoStack: [],
321
+ // Holds the history of undone changes for redo
322
+ // Save current changes and manage undo/redo stacks
323
+ SaveCurrentChanges: function(o = "") {
324
+ const l = Date.now();
325
+ this.StoredText[l] = o, this.undoStack.push({ id: l, text: o }), this.redoStack = [];
326
+ },
327
+ // Undo the most recent change
328
+ Undo: function() {
329
+ if (this.undoStack.length === 0)
330
+ return console.log("Nothing to undo"), null;
331
+ const o = this.undoStack.pop();
332
+ return this.redoStack.push(o), delete this.StoredText[o.id], o.text;
333
+ },
334
+ // Redo the most recently undone change
335
+ Redo: function() {
336
+ if (this.redoStack.length === 0)
337
+ return console.log("Nothing to redo"), null;
338
+ const o = this.redoStack.pop();
339
+ return this.undoStack.push(o), this.StoredText[o.id] = o.text, o.text;
340
+ }
341
+ };
342
+ function Re(o) {
343
+ const l = document.createElement("div");
344
+ l.textContent = "NeW line ", o.appendChild(l), l.focus();
302
345
  }
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;
346
+ function le(o = !1, l = document.getElementsByClassName("pom-table-editor-container")) {
347
+ l = Array.from(l), l.forEach((n) => {
348
+ if (o) {
349
+ const d = n.style.display === "flex" ? "none" : "flex";
350
+ n.style.display = d;
308
351
  return;
309
352
  }
310
- o.remove();
353
+ n.remove();
311
354
  });
312
355
  }
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} {
356
+ function $e(o = document.getElementById("pom-texedito-container").innerHTML, l = ".hideonprint") {
357
+ const n = window.open("", "", "height=900,width=800");
358
+ n.document.write("<html><head><title>Print</title>"), n.document.write(`<style>
359
+ ${l} {
317
360
  display: none;
318
361
  }
319
362
 
320
363
  @media print {
321
- ${r} {
364
+ ${l} {
322
365
  display: none;
323
366
  }
324
367
  }
325
368
  .pom-4-imageContainer {
326
369
  display: block !important;
327
370
  }
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;
371
+ </style>`), n.document.write("</head><body>"), n.document.write(o), n.document.write("</body></html>"), n.document.close();
372
+ const d = n.document.querySelectorAll(".pom-4-imageContainer");
373
+ return ce(d), n;
331
374
  }
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");
375
+ function ce(o = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
376
+ o && o.forEach(function(l) {
377
+ const n = l.querySelector("img"), d = l.getAttribute("style");
378
+ d ? n.style.cssText = d + "; position: initial" : n.style.position = "initial", l.style.display = "block", parseInt(l.style.left, 10) > 793.7 && (l.style.left = "793.7px");
336
379
  });
337
380
  }
338
- function ze(n = document.getElementById("pom-texedito-container")) {
339
- return ae(n.querySelectorAll(".pom-4-imageContainer")), n.innerHTML;
381
+ function Ie(o = document.getElementById("pom-texedito-container")) {
382
+ return ce(o.querySelectorAll(".pom-4-imageContainer")), o.innerHTML;
340
383
  }
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() {
344
- i.print();
345
- }, i.onafterprint = function() {
346
- i.close();
384
+ function Be(o = !0, l = document.getElementById("pom-texedito-container").innerHTML, n = "hideonprint") {
385
+ const d = ue() + l, s = $e(d, n);
386
+ o && (s.focus(), s.onload = function() {
387
+ s.print();
388
+ }, s.onafterprint = function() {
389
+ s.close();
347
390
  });
348
391
  }
349
- function se(n, r, o, i, a = "", p = "span") {
350
- if (!n) {
392
+ function ae(o, l, n, d, s = "", p = "span") {
393
+ if (!o) {
351
394
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
352
395
  return;
353
396
  }
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();
397
+ const r = window.getSelection();
398
+ r.removeAllRanges(), r.addRange(o);
399
+ const c = r.getRangeAt(0), u = c.cloneContents(), g = c.commonAncestorContainer;
400
+ (g.nodeType === Node.TEXT_NODE ? g.parentNode : g).tagName.toLowerCase();
401
+ let v;
402
+ const f = document.createElement(p);
403
+ f.style[n] = d, f.appendChild(u), v = f.innerHTML, o.deleteContents(), f.innerHTML = v, o.insertNode(f);
404
+ const h = document.createRange();
405
+ h.collapse(!0), r.removeAllRanges(), r.addRange(h), o = h.cloneRange();
363
406
  }
364
- function Re() {
407
+ function ue() {
365
408
  return `<style scoped>
409
+ .resizer-image-dropped > div[contenteditable="false"] {
410
+ display: none;
411
+ }
412
+ .resizer-image-dropped{
413
+ border:none !important
414
+ }
415
+
366
416
  .table-picker-wrapper {
367
417
  position: relative;
368
418
  display: inline-block;
@@ -504,93 +554,99 @@ height: auto;
504
554
  }
505
555
  </style>`;
506
556
  }
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 = {
557
+ const Ne = (o, l) => {
558
+ const n = o.__vccOpts || o;
559
+ for (const [d, s] of l)
560
+ n[d] = s;
561
+ return n;
562
+ }, a = (o) => (xe("data-v-df48f6af"), o = o(), ye(), o), je = { class: "pom-main-element-container" }, Ze = {
513
563
  style: { width: "100%" },
514
564
  id: "fullTextEditor"
515
- }, $e = {
565
+ }, De = {
516
566
  class: "hideonprint bg-gray-100 items-center",
517
567
  id: "toolbar"
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 = {
568
+ }, Ve = { class: "flex space-x-2 items-center" }, Oe = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ge = { class: "relative inline-block text-left group z-10 border-0" }, We = /* @__PURE__ */ T('<div class="w-full flex rounded-md" data-v-df48f6af><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-df48f6af><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-df48f6af><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-df48f6af>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-df48f6af><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-df48f6af><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-df48f6af></path></svg></div></div>', 1), Pe = { 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" }, Xe = {
519
569
  class: "",
520
570
  role: "none"
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", {
571
+ }, Ue = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "print p x-2" }, null, -1)), qe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Print", -1)), Ye = [
572
+ Ue,
573
+ qe
574
+ ], Ke = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, Je = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "eye p x-2" }, null, -1)), Qe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", {
525
575
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
526
576
  id: "fullscreenButton"
527
577
  }, [
528
578
  /* @__PURE__ */ e("i", { class: "expand-alt p x-2" }),
529
579
  /* @__PURE__ */ e("strong", { class: "px-3" }, "Fullscreen")
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 = {
580
+ ], -1)), et = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, tt = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, ot = /* @__PURE__ */ T('<div class="w-full flex rounded-md" data-v-df48f6af><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-df48f6af><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-df48f6af><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-df48f6af>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-df48f6af><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-df48f6af><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-df48f6af></path></svg></div></div>', 1), nt = { 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" }, it = {
531
581
  class: "",
532
582
  role: "none"
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 = [
583
+ }, st = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "bold p x-2" }, null, -1)), lt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Bold", -1)), at = [
540
584
  st,
541
585
  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 = [
586
+ ], rt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "italic p x-2" }, null, -1)), dt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "px-3" }, "italic", -1)), ct = [
543
587
  rt,
544
588
  dt
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 = [
589
+ ], ut = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "underline p x-2" }, null, -1)), ft = /* @__PURE__ */ a(() => /* @__PURE__ */ e("u", { class: "px-3" }, "underline", -1)), pt = [
546
590
  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 = [
591
+ ft
592
+ ], mt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "strikethrough p x-2" }, null, -1)), ht = /* @__PURE__ */ a(() => /* @__PURE__ */ e("del", { class: "px-3" }, "strike", -1)), gt = [
593
+ mt,
594
+ ht
595
+ ], vt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, null, -1)), xt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("sup", { class: "px-3" }, "superscript", -1)), yt = [
552
596
  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 = [
597
+ xt
598
+ ], bt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, null, -1)), _t = /* @__PURE__ */ a(() => /* @__PURE__ */ e("sub", { class: "px-3" }, "subscript", -1)), wt = [
599
+ bt,
600
+ _t
601
+ ], kt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-list p x-2" }, null, -1)), Ct = /* @__PURE__ */ a(() => /* @__PURE__ */ e("summary", { class: "px-3" }, "summary", -1)), Et = [
558
602
  kt,
559
603
  Ct
560
- ], Ft = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H1", -1)), Lt = [
604
+ ], Lt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "list-ol p x-2" }, null, -1)), Ft = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), St = [
605
+ Lt,
561
606
  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 = [
607
+ ], At = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "list-ul p x-2" }, null, -1)), zt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), Mt = [
608
+ At,
565
609
  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 = [
610
+ ], Tt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H1", -1)), Ht = [
569
611
  Tt
570
- ], It = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H6", -1)), jt = [
612
+ ], Rt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H2", -1)), $t = [
613
+ Rt
614
+ ], It = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H3", -1)), Bt = [
571
615
  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 = {
616
+ ], Nt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H4", -1)), jt = [
617
+ Nt
618
+ ], Zt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H5", -1)), Dt = [
619
+ Zt
620
+ ], Vt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H6", -1)), Ot = [
621
+ Vt
622
+ ], Gt = { class: "flex m-1 m-3 b g-gray-200 rounded cursor-pointer" }, Wt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("datalist", { id: "fontSizes" }, null, -1)), Pt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { style: { "align-items": "center", "margin-top": "2px" } }, "TEXT TRANSFORM", -1)), Xt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, "Capitalize", -1)), Ut = [
623
+ Xt
624
+ ], qt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, "Lowercase", -1)), Yt = [
625
+ qt
626
+ ], Kt = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " Block", -1)), Jt = [
627
+ Kt
628
+ ], Qt = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" }, eo = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, to = /* @__PURE__ */ T('<div class="w-full flex rounded-md" data-v-df48f6af><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-df48f6af><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-df48f6af><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-df48f6af>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-df48f6af><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-df48f6af><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-df48f6af></path></svg></div></div>', 1), oo = { 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" }, no = {
573
629
  class: "",
574
630
  role: "none"
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", {
631
+ }, io = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, so = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "image p x-2" }, null, -1)), lo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("label", {
576
632
  for: "pom43546535435445Image",
577
633
  class: "px-3"
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" }, [
634
+ }, "Image", -1)), ao = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "anchor p x-2" }, null, -1)), ro = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Anchor", -1)), co = [
635
+ ao,
636
+ ro
637
+ ], uo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-calendar-alt 1x" }, null, -1)), fo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Date/time", -1)), po = [
638
+ uo,
639
+ fo
640
+ ], mo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "text-center w-full py-1 bg-gray-100 font-bold" }, "Table", -1)), ho = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "trash-can p x-2" }, null, -1)), go = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Delete All Permanetlytable", -1)), vo = [
641
+ ho,
642
+ go
643
+ ], xo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "eye-slash p x-2" }, null, -1)), yo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Hide/Show All ", -1)), bo = [
644
+ xo,
645
+ yo
646
+ ], _o = { class: "table-picker-wrapper" }, wo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "table-picker-trigger" }, [
591
647
  /* @__PURE__ */ e("i", { class: "table p x-2" }),
592
648
  /* @__PURE__ */ e("strong", { class: "px-3" }, "Create")
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" }, [
649
+ ], -1)), ko = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Co = { class: "relative inline-block text-left group z-10 border-0" }, Eo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
594
650
  /* @__PURE__ */ e("button", {
595
651
  type: "button",
596
652
  class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
@@ -601,11 +657,11 @@ const He = (n, r) => {
601
657
  /* @__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
658
  ])
603
659
  ])
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 = {
660
+ ], -1)), Lo = { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" }, Fo = { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, So = {
605
661
  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
662
  "data-alloy-placement": "southeast",
607
663
  style: { height: "25vh", overflow: "auto" }
608
- }, fo = { class: "collection__group" }, vo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
664
+ }, Ao = { class: "collection__group" }, zo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", {
609
665
  title: "Andale Mono",
610
666
  id: "menu-item_3745045357111728727990777",
611
667
  role: "menuitemcheckbox",
@@ -631,7 +687,7 @@ const He = (n, r) => {
631
687
  })
632
688
  ])
633
689
  ])
634
- ], -1)), yo = {
690
+ ], -1)), Mo = {
635
691
  title: "Arial",
636
692
  id: "menu-item_8107570667141728727990778",
637
693
  role: "menuitemcheckbox",
@@ -641,7 +697,7 @@ const He = (n, r) => {
641
697
  "aria-disabled": "false",
642
698
  "aria-checked": "false",
643
699
  "aria-selected": "false"
644
- }, xo = { class: "collection__item-label" }, _o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
700
+ }, To = { class: "collection__item-label" }, Ho = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
645
701
  /* @__PURE__ */ e("svg", {
646
702
  width: "24",
647
703
  height: "24",
@@ -652,7 +708,7 @@ const He = (n, r) => {
652
708
  "fill-rule": "nonzero"
653
709
  })
654
710
  ])
655
- ], -1)), bo = {
711
+ ], -1)), Ro = {
656
712
  title: "Arial Black",
657
713
  id: "menu-item_7337372467171728727990778",
658
714
  role: "menuitemcheckbox",
@@ -662,7 +718,7 @@ const He = (n, r) => {
662
718
  "aria-disabled": "false",
663
719
  "aria-checked": "false",
664
720
  "aria-selected": "false"
665
- }, wo = { class: "collection__item-label" }, ko = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
721
+ }, $o = { class: "collection__item-label" }, Io = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
666
722
  /* @__PURE__ */ e("svg", {
667
723
  width: "24",
668
724
  height: "24",
@@ -673,7 +729,7 @@ const He = (n, r) => {
673
729
  "fill-rule": "nonzero"
674
730
  })
675
731
  ])
676
- ], -1)), Co = {
732
+ ], -1)), Bo = {
677
733
  title: "Book Antiqua",
678
734
  id: "menu-item_8277641917201728727990778",
679
735
  role: "menuitemcheckbox",
@@ -683,7 +739,7 @@ const He = (n, r) => {
683
739
  "aria-disabled": "false",
684
740
  "aria-checked": "false",
685
741
  "aria-selected": "false"
686
- }, Eo = { class: "collection__item-label" }, Fo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
742
+ }, No = { class: "collection__item-label" }, jo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
687
743
  /* @__PURE__ */ e("svg", {
688
744
  width: "24",
689
745
  height: "24",
@@ -694,7 +750,7 @@ const He = (n, r) => {
694
750
  "fill-rule": "nonzero"
695
751
  })
696
752
  ])
697
- ], -1)), Lo = {
753
+ ], -1)), Zo = {
698
754
  title: "Comic Sans MS",
699
755
  id: "menu-item_2698863237231728727990778",
700
756
  role: "menuitemcheckbox",
@@ -704,7 +760,7 @@ const He = (n, r) => {
704
760
  "aria-disabled": "false",
705
761
  "aria-checked": "false",
706
762
  "aria-selected": "false"
707
- }, Ao = { class: "collection__item-label" }, So = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
763
+ }, Do = { class: "collection__item-label" }, Vo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
708
764
  /* @__PURE__ */ e("svg", {
709
765
  width: "24",
710
766
  height: "24",
@@ -715,7 +771,7 @@ const He = (n, r) => {
715
771
  "fill-rule": "nonzero"
716
772
  })
717
773
  ])
718
- ], -1)), zo = {
774
+ ], -1)), Oo = {
719
775
  title: "Courier New",
720
776
  id: "menu-item_2979203277261728727990778",
721
777
  role: "menuitemcheckbox",
@@ -725,7 +781,7 @@ const He = (n, r) => {
725
781
  "aria-disabled": "false",
726
782
  "aria-checked": "false",
727
783
  "aria-selected": "false"
728
- }, Mo = { class: "collection__item-label" }, Ro = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
784
+ }, Go = { class: "collection__item-label" }, Wo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
729
785
  /* @__PURE__ */ e("svg", {
730
786
  width: "24",
731
787
  height: "24",
@@ -736,7 +792,7 @@ const He = (n, r) => {
736
792
  "fill-rule": "nonzero"
737
793
  })
738
794
  ])
739
- ], -1)), Ho = {
795
+ ], -1)), Po = {
740
796
  title: "Georgia",
741
797
  id: "menu-item_8075939747291728727990778",
742
798
  role: "menuitemcheckbox",
@@ -746,7 +802,7 @@ const He = (n, r) => {
746
802
  "aria-disabled": "false",
747
803
  "aria-checked": "false",
748
804
  "aria-selected": "false"
749
- }, To = { class: "collection__item-label" }, $o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
805
+ }, Xo = { class: "collection__item-label" }, Uo = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
750
806
  /* @__PURE__ */ e("svg", {
751
807
  width: "24",
752
808
  height: "24",
@@ -757,7 +813,7 @@ const He = (n, r) => {
757
813
  "fill-rule": "nonzero"
758
814
  })
759
815
  ])
760
- ], -1)), Io = {
816
+ ], -1)), qo = {
761
817
  title: "Helvetica",
762
818
  id: "menu-item_8872440547321728727990778",
763
819
  role: "menuitemcheckbox",
@@ -766,7 +822,7 @@ const He = (n, r) => {
766
822
  class: "menu-nav__js collection__item collection__item--enabled",
767
823
  "aria-disabled": "false",
768
824
  "aria-checked": "true"
769
- }, jo = { class: "collection__item-label" }, Zo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
825
+ }, Yo = { class: "collection__item-label" }, Ko = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
770
826
  /* @__PURE__ */ e("svg", {
771
827
  width: "24",
772
828
  height: "24",
@@ -777,7 +833,7 @@ const He = (n, r) => {
777
833
  "fill-rule": "nonzero"
778
834
  })
779
835
  ])
780
- ], -1)), Bo = {
836
+ ], -1)), Jo = {
781
837
  title: "Impact",
782
838
  id: "menu-item_3423693847351728727990778",
783
839
  role: "menuitemcheckbox",
@@ -786,7 +842,7 @@ const He = (n, r) => {
786
842
  class: "menu-nav__js collection__item",
787
843
  "aria-disabled": "false",
788
844
  "aria-checked": "false"
789
- }, No = { class: "collection__item-label" }, Do = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
845
+ }, Qo = { class: "collection__item-label" }, en = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
790
846
  /* @__PURE__ */ e("svg", {
791
847
  width: "24",
792
848
  height: "24",
@@ -797,7 +853,7 @@ const He = (n, r) => {
797
853
  "fill-rule": "nonzero"
798
854
  })
799
855
  ])
800
- ], -1)), Vo = {
856
+ ], -1)), tn = {
801
857
  title: "Symbol",
802
858
  id: "menu-item_7163579447381728727990779",
803
859
  role: "menuitemcheckbox",
@@ -806,7 +862,7 @@ const He = (n, r) => {
806
862
  class: "menu-nav__js collection__item",
807
863
  "aria-disabled": "false",
808
864
  "aria-checked": "false"
809
- }, Wo = { class: "collection__item-label" }, Po = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
865
+ }, on = { class: "collection__item-label" }, nn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
810
866
  /* @__PURE__ */ e("svg", {
811
867
  width: "24",
812
868
  height: "24",
@@ -817,7 +873,7 @@ const He = (n, r) => {
817
873
  "fill-rule": "nonzero"
818
874
  })
819
875
  ])
820
- ], -1)), Go = {
876
+ ], -1)), sn = {
821
877
  title: "Tahoma",
822
878
  id: "menu-item_4449979827411728727990779",
823
879
  role: "menuitemcheckbox",
@@ -826,7 +882,7 @@ const He = (n, r) => {
826
882
  class: "menu-nav__js collection__item",
827
883
  "aria-disabled": "false",
828
884
  "aria-checked": "false"
829
- }, Oo = { class: "collection__item-label" }, Xo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
885
+ }, ln = { class: "collection__item-label" }, an = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
830
886
  /* @__PURE__ */ e("svg", {
831
887
  width: "24",
832
888
  height: "24",
@@ -837,7 +893,7 @@ const He = (n, r) => {
837
893
  "fill-rule": "nonzero"
838
894
  })
839
895
  ])
840
- ], -1)), qo = {
896
+ ], -1)), rn = {
841
897
  title: "Terminal",
842
898
  id: "menu-item_2511923047441728727990779",
843
899
  role: "menuitemcheckbox",
@@ -846,7 +902,7 @@ const He = (n, r) => {
846
902
  class: "menu-nav__js collection__item",
847
903
  "aria-disabled": "false",
848
904
  "aria-checked": "false"
849
- }, Yo = { class: "collection__item-label" }, Uo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
905
+ }, dn = { class: "collection__item-label" }, cn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
850
906
  /* @__PURE__ */ e("svg", {
851
907
  width: "24",
852
908
  height: "24",
@@ -857,7 +913,7 @@ const He = (n, r) => {
857
913
  "fill-rule": "nonzero"
858
914
  })
859
915
  ])
860
- ], -1)), Ko = {
916
+ ], -1)), un = {
861
917
  title: "Times New Roman",
862
918
  id: "menu-item_7770771337471728727990779",
863
919
  role: "menuitemcheckbox",
@@ -866,7 +922,7 @@ const He = (n, r) => {
866
922
  class: "menu-nav__js collection__item",
867
923
  "aria-disabled": "false",
868
924
  "aria-checked": "false"
869
- }, Jo = { class: "collection__item-label" }, Qo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
925
+ }, fn = { class: "collection__item-label" }, pn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
870
926
  /* @__PURE__ */ e("svg", {
871
927
  width: "24",
872
928
  height: "24",
@@ -877,7 +933,7 @@ const He = (n, r) => {
877
933
  "fill-rule": "nonzero"
878
934
  })
879
935
  ])
880
- ], -1)), en = {
936
+ ], -1)), mn = {
881
937
  title: "Trebuchet MS",
882
938
  id: "menu-item_7916647947501728727990779",
883
939
  role: "menuitemcheckbox",
@@ -886,7 +942,7 @@ const He = (n, r) => {
886
942
  class: "menu-nav__js collection__item",
887
943
  "aria-disabled": "false",
888
944
  "aria-checked": "false"
889
- }, tn = { class: "collection__item-label" }, on = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
945
+ }, hn = { class: "collection__item-label" }, gn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
890
946
  /* @__PURE__ */ e("svg", {
891
947
  width: "24",
892
948
  height: "24",
@@ -897,7 +953,7 @@ const He = (n, r) => {
897
953
  "fill-rule": "nonzero"
898
954
  })
899
955
  ])
900
- ], -1)), nn = {
956
+ ], -1)), vn = {
901
957
  title: "Verdana",
902
958
  id: "menu-item_1549891587531728727990779",
903
959
  role: "menuitemcheckbox",
@@ -906,7 +962,7 @@ const He = (n, r) => {
906
962
  class: "menu-nav__js collection__item",
907
963
  "aria-disabled": "false",
908
964
  "aria-checked": "false"
909
- }, sn = { class: "collection__item-label" }, ln = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
965
+ }, xn = { class: "collection__item-label" }, yn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
910
966
  /* @__PURE__ */ e("svg", {
911
967
  width: "24",
912
968
  height: "24",
@@ -917,7 +973,7 @@ const He = (n, r) => {
917
973
  "fill-rule": "nonzero"
918
974
  })
919
975
  ])
920
- ], -1)), an = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
976
+ ], -1)), bn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", {
921
977
  title: "Webdings",
922
978
  id: "menu-item_955052057561728727990779",
923
979
  role: "menuitemcheckbox",
@@ -942,7 +998,7 @@ const He = (n, r) => {
942
998
  })
943
999
  ])
944
1000
  ])
945
- ], -1)), rn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
1001
+ ], -1)), _n = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", {
946
1002
  title: "Wingdings",
947
1003
  id: "menu-item_93264657591728727990779",
948
1004
  role: "menuitemcheckbox",
@@ -967,7 +1023,7 @@ const He = (n, r) => {
967
1023
  })
968
1024
  ])
969
1025
  ])
970
- ], -1)), dn = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
1026
+ ], -1)), wn = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, kn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", null, [
971
1027
  /* @__PURE__ */ e("svg", {
972
1028
  width: "24",
973
1029
  height: "24",
@@ -978,9 +1034,9 @@ const He = (n, r) => {
978
1034
  "fill-rule": "evenodd"
979
1035
  })
980
1036
  ])
981
- ], -1)), un = [
982
- cn
983
- ], pn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
1037
+ ], -1)), Cn = [
1038
+ kn
1039
+ ], En = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", null, [
984
1040
  /* @__PURE__ */ e("svg", {
985
1041
  width: "24",
986
1042
  height: "24",
@@ -991,9 +1047,9 @@ const He = (n, r) => {
991
1047
  "fill-rule": "evenodd"
992
1048
  })
993
1049
  ])
994
- ], -1)), mn = [
995
- pn
996
- ], hn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
1050
+ ], -1)), Ln = [
1051
+ En
1052
+ ], Fn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "" }, [
997
1053
  /* @__PURE__ */ e("svg", {
998
1054
  width: "24",
999
1055
  height: "24",
@@ -1004,9 +1060,9 @@ const He = (n, r) => {
1004
1060
  "fill-rule": "evenodd"
1005
1061
  })
1006
1062
  ])
1007
- ], -1)), gn = [
1008
- hn
1009
- ], fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
1063
+ ], -1)), Sn = [
1064
+ Fn
1065
+ ], An = /* @__PURE__ */ a(() => /* @__PURE__ */ e("span", { class: "" }, [
1010
1066
  /* @__PURE__ */ e("svg", {
1011
1067
  width: "24",
1012
1068
  height: "24",
@@ -1017,9 +1073,9 @@ const He = (n, r) => {
1017
1073
  "fill-rule": "evenodd"
1018
1074
  })
1019
1075
  ])
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" }, [
1076
+ ], -1)), zn = [
1077
+ An
1078
+ ], Mn = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Tn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md" }, [
1023
1079
  /* @__PURE__ */ e("button", {
1024
1080
  type: "button",
1025
1081
  class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
@@ -1063,10 +1119,10 @@ const He = (n, r) => {
1063
1119
  ])
1064
1120
  ])
1065
1121
  ])
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 = {
1122
+ ], -1)), Hn = { 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" }, Rn = {
1067
1123
  class: "flex",
1068
1124
  role: "none"
1069
- }, wn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
1125
+ }, $n = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", null, [
1070
1126
  /* @__PURE__ */ e("svg", {
1071
1127
  width: "48",
1072
1128
  height: "48",
@@ -1094,9 +1150,9 @@ const He = (n, r) => {
1094
1150
  })
1095
1151
  ])
1096
1152
  ])
1097
- ], -1)), kn = [
1098
- wn
1099
- ], Cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
1153
+ ], -1)), In = [
1154
+ $n
1155
+ ], Bn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", null, [
1100
1156
  /* @__PURE__ */ e("svg", {
1101
1157
  width: "48",
1102
1158
  height: "48",
@@ -1113,9 +1169,9 @@ const He = (n, r) => {
1113
1169
  })
1114
1170
  ])
1115
1171
  ])
1116
- ], -1)), En = [
1117
- Cn
1118
- ], Fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("svg", {
1172
+ ], -1)), Nn = [
1173
+ Bn
1174
+ ], jn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("svg", {
1119
1175
  width: "48",
1120
1176
  height: "48",
1121
1177
  viewBox: "0 0 48 48",
@@ -1172,9 +1228,9 @@ const He = (n, r) => {
1172
1228
  fill: "black",
1173
1229
  opacity: ".2"
1174
1230
  })
1175
- ], -1)), Ln = [
1176
- Fn
1177
- ], An = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "text-sm" }, [
1231
+ ], -1)), Zn = [
1232
+ jn
1233
+ ], Dn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "text-sm" }, [
1178
1234
  /* @__PURE__ */ e("svg", {
1179
1235
  width: "48",
1180
1236
  height: "48",
@@ -1233,18 +1289,18 @@ const He = (n, r) => {
1233
1289
  opacity: ".2"
1234
1290
  })
1235
1291
  ])
1236
- ], -1)), Sn = [
1237
- An
1238
- ], zn = {
1292
+ ], -1)), Vn = [
1293
+ Dn
1294
+ ], On = {
1239
1295
  class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
1240
1296
  style: { height: "37px" }
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 = {
1297
+ }, Gn = /* @__PURE__ */ T('<i class="bold p x-2" data-v-df48f6af><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><g id="text-bold" transform="translate(-4 -2)" data-v-df48f6af><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-df48f6af></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-df48f6af></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-df48f6af></path></g></g></svg></i>', 1), Wn = [
1298
+ Gn
1299
+ ], Pn = /* @__PURE__ */ T('<i class="italic p x-2" data-v-df48f6af><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><g id="layer1" data-v-df48f6af><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-df48f6af></path></g></g></svg></i>', 1), Xn = [
1300
+ Pn
1301
+ ], Un = /* @__PURE__ */ T('<i class="underline p x-2" data-v-df48f6af><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-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><g data-v-df48f6af><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-df48f6af></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-df48f6af></path></g></g></svg></i>', 1), qn = [
1302
+ Un
1303
+ ], Yn = { class: "strikethrough p x-2" }, Kn = {
1248
1304
  fill: "#000000",
1249
1305
  width: "13px",
1250
1306
  height: "13px",
@@ -1255,14 +1311,14 @@ const He = (n, r) => {
1255
1311
  "xml:space": "preserve",
1256
1312
  "xmlns:serif": "http://www.serif.com/",
1257
1313
  style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
1258
- }, Bn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
1314
+ }, Jn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", {
1259
1315
  id: "SVGRepo_bgCarrier",
1260
1316
  "stroke-width": "0"
1261
- }, null, -1)), Nn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
1317
+ }, null, -1)), Qn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", {
1262
1318
  id: "SVGRepo_tracerCarrier",
1263
1319
  "stroke-linecap": "round",
1264
1320
  "stroke-linejoin": "round"
1265
- }, null, -1)), Dn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", { id: "SVGRepo_iconCarrier" }, [
1321
+ }, null, -1)), ei = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", { id: "SVGRepo_iconCarrier" }, [
1266
1322
  /* @__PURE__ */ e("rect", {
1267
1323
  id: "Icons",
1268
1324
  x: "-192",
@@ -1357,17 +1413,17 @@ const He = (n, r) => {
1357
1413
  /* @__PURE__ */ e("g", { id: "clipboard-copy" }),
1358
1414
  /* @__PURE__ */ e("g", { id: "Layer1" })
1359
1415
  ])
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", {
1416
+ ], -1)), ti = [
1417
+ Jn,
1418
+ Qn,
1419
+ ei
1420
+ ], oi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, "sup", -1)), ni = [
1421
+ oi
1422
+ ], ii = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, "sub", -1)), si = [
1423
+ ii
1424
+ ], li = /* @__PURE__ */ T('<i class="-code p x-2" data-v-df48f6af><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-df48f6af></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-df48f6af></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-df48f6af></path></g></svg></i>', 1), ai = [
1425
+ li
1426
+ ], ri = { 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" }, di = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", {
1371
1427
  class: "solid brush display-color",
1372
1428
  style: { margin: "6px 0px 0px 0px", border: "none" }
1373
1429
  }, [
@@ -1388,10 +1444,10 @@ const He = (n, r) => {
1388
1444
  })
1389
1445
  ])
1390
1446
  ])
1391
- ], -1)), Kn = {
1447
+ ], -1)), ci = {
1392
1448
  class: "color-picker color-container",
1393
1449
  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", {
1450
+ }, ui = { class: "color-grid" }, fi = ["onClick"], pi = { 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" }, mi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", {
1395
1451
  class: "solid brush display-color",
1396
1452
  style: { margin: "6px 0px 0px 0px", border: "none" }
1397
1453
  }, [
@@ -1418,21 +1474,29 @@ const He = (n, r) => {
1418
1474
  ])
1419
1475
  ])
1420
1476
  ])
1421
- ], -1)), oi = {
1477
+ ], -1)), hi = {
1422
1478
  class: "color-picker color-container",
1423
1479
  style: { position: "absolute", top: "0", bottom: "0", height: "fit-content", overflow: "auto" }
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: "),
1480
+ }, gi = { class: "color-grid" }, vi = ["onClick"], xi = /* @__PURE__ */ T('<span class="" data-v-df48f6af><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><path fill-rule="evenodd" clip-rule="evenodd" d="M7.53033 3.46967C7.82322 3.76256 7.82322 4.23744 7.53033 4.53033L5.81066 6.25H15C18.1756 6.25 20.75 8.82436 20.75 12C20.75 15.1756 18.1756 17.75 15 17.75H8.00001C7.58579 17.75 7.25001 17.4142 7.25001 17C7.25001 16.5858 7.58579 16.25 8.00001 16.25H15C17.3472 16.25 19.25 14.3472 19.25 12C19.25 9.65279 17.3472 7.75 15 7.75H5.81066L7.53033 9.46967C7.82322 9.76256 7.82322 10.2374 7.53033 10.5303C7.23744 10.8232 6.76256 10.8232 6.46967 10.5303L3.46967 7.53033C3.17678 7.23744 3.17678 6.76256 3.46967 6.46967L6.46967 3.46967C6.76256 3.17678 7.23744 3.17678 7.53033 3.46967Z" fill="#1C274C" data-v-df48f6af></path></g></svg></span>', 1), yi = [
1481
+ xi
1482
+ ], bi = /* @__PURE__ */ T('<span class="" data-v-df48f6af><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><path d="M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></path></g></svg></span>', 1), _i = [
1483
+ bi
1484
+ ], wi = /* @__PURE__ */ T('<span class="" data-v-df48f6af><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-df48f6af><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-df48f6af></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-df48f6af></g><g id="SVGRepo_iconCarrier" data-v-df48f6af><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-df48f6af></path></g></svg></span>', 1), ki = [
1485
+ wi
1486
+ ], Ci = { style: { "min-height": "100%", "text-align": "justify" } }, Ei = ["innerHTML"], Li = {
1487
+ key: 0,
1488
+ class: "hideonprint flex items-center",
1489
+ style: { "text-align": "center", "align-items": "stretch", gap: "10px" }
1490
+ }, Fi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("i", { class: "-" }, null, -1)), Si = /* @__PURE__ */ a(() => /* @__PURE__ */ e("strong", { class: "p x-2" }, "NEW LINE", -1)), Ai = [
1491
+ Fi,
1492
+ Si
1493
+ ], zi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("p", { style: { margin: "0 0 0 10px" } }, [
1494
+ /* @__PURE__ */ re("Cursor position: "),
1431
1495
  /* @__PURE__ */ e("span", { id: "cursorPosition" }, "0")
1432
- ], -1)), hi = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
1433
- /* @__PURE__ */ Y("Text at cursor: "),
1496
+ ], -1)), Mi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("p", null, [
1497
+ /* @__PURE__ */ re("Text at cursor: "),
1434
1498
  /* @__PURE__ */ e("span", { id: "textAtCursor" })
1435
- ], -1)), gi = {
1499
+ ], -1)), Ti = {
1436
1500
  __name: "Editor",
1437
1501
  props: {
1438
1502
  Dvalue: {
@@ -1443,13 +1507,18 @@ const He = (n, r) => {
1443
1507
  },
1444
1508
  cssWanted2: {
1445
1509
  default: !1
1510
+ },
1511
+ Files: {
1512
+ size: null,
1513
+ limits: 30
1446
1514
  }
1447
1515
  },
1448
1516
  emits: ["change", "update"],
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([
1517
+ setup(o, { emit: l }) {
1518
+ const n = H(null), d = H(!1), s = H(null), p = H(null), r = H(null), c = H(null);
1519
+ H([]);
1520
+ let u = null;
1521
+ const g = H([
1453
1522
  "FF5733",
1454
1523
  "33FF57",
1455
1524
  "3357FF",
@@ -1508,288 +1577,335 @@ const He = (n, r) => {
1508
1577
  "00CED1",
1509
1578
  "989393",
1510
1579
  "000000"
1511
- ]), m = r, x = n, h = H(null);
1512
- function g(...f) {
1580
+ ]), b = l, v = o, f = H(null);
1581
+ function h(...m) {
1513
1582
  try {
1514
1583
  var t = document.querySelectorAll(".removeinlineblock");
1515
- t.forEach(function(c) {
1516
- c.style.display = "block";
1517
- }), Me(...f, h.value.innerHTML);
1584
+ let i;
1585
+ v.TextOnly ? i = n.value.value : i = f.value.innerHTML, t.forEach(function(x) {
1586
+ x.style.display = "block";
1587
+ }), Be(...m, i);
1518
1588
  } catch {
1519
1589
  }
1520
1590
  }
1521
- function v(...f) {
1591
+ function _(...m) {
1522
1592
  var t;
1523
- G(), be((t = i.value) == null ? void 0 : t.range, o.value, ...f);
1593
+ D(), Fe((t = s.value) == null ? void 0 : t.range, n.value, ...m, d.value), d.value = !1, k();
1524
1594
  }
1525
- function y(...f) {
1595
+ function y(...m) {
1526
1596
  var t;
1527
- se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
1597
+ ae((t = s.value) == null ? void 0 : t.range, n.value, ...m), u = null, k();
1528
1598
  }
1529
- function w(...f) {
1599
+ function F(...m) {
1530
1600
  var t;
1531
- se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
1601
+ ae((t = s.value) == null ? void 0 : t.range, n.value, ...m), u = null, k();
1532
1602
  }
1533
- function R(f) {
1534
- Fe(f, i.value.range), d = null;
1603
+ function S(m) {
1604
+ Te(m, s.value.range), u = null, k();
1535
1605
  }
1536
- function C(...f) {
1537
- _e(i.value.range, ...f), d = null;
1606
+ function z(...m) {
1607
+ Le(s.value.range, ...m), u = null;
1538
1608
  }
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);
1609
+ const I = ue();
1610
+ function k(m) {
1611
+ var i;
1612
+ let t;
1613
+ v.TextOnly == "true" ? m && ((i = m.target) != null && i.value) && (t = `${m.target.value}`.replace(/<\/[a-z]*?>|<\S.*?>/gi, (x) => x.startsWith("</") ? "" : `
1614
+ `)) : (t = Ie(n.value), se.SaveCurrentChanges(t), v.cssWanted == !0 && b("cssWanted", I)), t && setTimeout(() => {
1615
+ b("change", t);
1545
1616
  }, 300);
1546
1617
  }
1547
- function P(f) {
1548
- o.value.focus(), T();
1618
+ function N(m) {
1619
+ n.value.focus(), k();
1620
+ }
1621
+ function B(m) {
1622
+ m.addEventListener("click", function(t) {
1623
+ d.value = t;
1624
+ const i = document.createElement("div");
1625
+ i.style.display = "flex", i.style.position = "absolute", i.style.bottom = "20px", i.style.right = "0px", i.style.zIndex = "100", i.style.background = "white", i.classList.add("Image_dropped_pom"), i.classList.add("hideOnprint");
1626
+ const x = document.createElement("button");
1627
+ x.textContent = " Left", x.style.margin = "5px";
1628
+ const C = document.createElement("button");
1629
+ C.textContent = " Right", C.style.margin = "5px";
1630
+ const E = document.createElement("button");
1631
+ E.textContent = "Center ", E.style.margin = "5px", i.appendChild(x), i.appendChild(C), i.appendChild(E), m.appendChild(i), x.addEventListener("click", () => {
1632
+ m.style.float = "left", V();
1633
+ }), C.addEventListener("click", () => {
1634
+ m.style.float = "right", V();
1635
+ }), E.addEventListener("click", () => {
1636
+ m.style.display = "block", m.style.margin = "0 auto", V();
1637
+ }), document.addEventListener("click", function L(M) {
1638
+ m.contains(M.target) || (V(), document.removeEventListener("click", L));
1639
+ }, { once: !0 });
1640
+ });
1549
1641
  }
1550
- pe(() => {
1551
- P();
1642
+ function j(m) {
1643
+ const t = document.getElementsByClassName("resizer-image-dropped");
1644
+ Array.from(t).forEach((i) => {
1645
+ B(i);
1646
+ }), d.value = !1;
1647
+ }
1648
+ he(() => {
1649
+ N();
1552
1650
  });
1553
- function N() {
1554
- Ae(o.value);
1651
+ function Z() {
1652
+ Re(n.value);
1653
+ }
1654
+ function w(...m) {
1655
+ Y(s.value.range, ...m), k();
1555
1656
  }
1556
- function b(...f) {
1557
- q(i.value.range, ...f);
1657
+ function P(...m) {
1658
+ Se(s.value.range, ...m), k();
1558
1659
  }
1559
- function D(...f) {
1560
- we(i.value.range, ...f);
1660
+ function D() {
1661
+ s.value = _e(), be(), we(s.value, n.value, r.value, c.value), u = null, k();
1561
1662
  }
1562
- function G() {
1563
- i.value = fe(), ge(), ve(i.value, o.value, p.value, s.value), d = null;
1663
+ function fe(m) {
1664
+ const i = (m.size / 1024).toFixed(2);
1665
+ return { fileSizeInMB: (i / 1024).toFixed(2), fileSizeInKB: i };
1564
1666
  }
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);
1667
+ function pe(m) {
1668
+ var x, C, E, L, M;
1669
+ m.preventDefault();
1670
+ const t = m.dataTransfer.files;
1671
+ if (parseFloat((x = v.Files) == null ? void 0 : x.limits) == parseFloat((C = v.Files) == null ? void 0 : C.limits)) {
1672
+ alert(`You can not upload more than ${v.Files.limits} images`);
1673
+ return;
1674
+ }
1675
+ const i = fe(t[0]);
1676
+ if (((E = v.Files) == null ? void 0 : E.size) > 0 && i.fileSizeInMB > parseFloat((L = v.Files) == null ? void 0 : L.size)) {
1677
+ alert(`File size should be less than ${(M = v.Files) == null ? void 0 : M.size} MB`);
1678
+ return;
1574
1679
  }
1680
+ if (console.log(`Image Droped ${i.fileSizeInMB} MB / ${i.fileSizeInKB} KB`), t.length > 0) {
1681
+ const O = t[0], G = new FileReader();
1682
+ G.onload = (X) => {
1683
+ const A = X.target.result;
1684
+ me(A);
1685
+ }, G.readAsDataURL(O);
1686
+ }
1687
+ k();
1575
1688
  }
1576
- function de(f) {
1577
- j();
1578
- const t = i.value.range;
1689
+ function me(m) {
1690
+ V();
1691
+ const t = s.value.range;
1579
1692
  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";
1693
+ let O = function(A, U) {
1694
+ A.preventDefault(), M = U, window.addEventListener("mousemove", G), window.addEventListener("mouseup", X);
1695
+ }, G = function(A) {
1696
+ const U = x.getBoundingClientRect();
1697
+ if (M === "width" || M === "both") {
1698
+ const q = A.clientX - U.left;
1699
+ x.style.width = q + "px", i.style.width = q + "px";
1587
1700
  }
1588
- if (Z === "height" || Z === "both") {
1589
- const z = A.clientY - k.top;
1590
- c.style.height = z + "px";
1701
+ if (M === "height" || M === "both") {
1702
+ const q = A.clientY - U.top;
1703
+ i.style.height = q + "px";
1591
1704
  }
1592
- }, K = function() {
1593
- window.removeEventListener("mousemove", U), window.removeEventListener("mouseup", K);
1705
+ }, X = function() {
1706
+ window.removeEventListener("mousemove", G), window.removeEventListener("mouseup", X);
1594
1707
  };
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
- });
1708
+ const i = document.createElement("img");
1709
+ i.src = m, i.style.maxWidth = "100%", i.style.position = "relative", i.classList.add("resizable-image");
1710
+ const x = document.createElement("span");
1711
+ x.style.display = "inline-block", x.style.width = "200px", x.style.position = "relative", x.contentEditable = !1, x.classList.add("resizer-image-dropped"), B(x);
1712
+ const C = document.createElement("div");
1713
+ C.style.width = "10px", C.style.height = "100%", C.style.background = "gray", C.style.position = "absolute", C.style.right = "0", C.style.top = "0", C.style.cursor = "ew-resize", C.style.zIndex = "2", C.classList.add("hideOnprint"), C.setAttribute("contentEditable", !1);
1616
1714
  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;
1715
+ E.style.width = "100%", E.style.height = "10px", E.style.background = "gray", E.style.position = "absolute", E.style.bottom = "0", E.style.left = "0", E.style.cursor = "ns-resize", E.style.zIndex = "2", E.classList.add("hideOnprint"), E.setAttribute("contentEditable", !1);
1716
+ const L = document.createElement("div");
1717
+ L.style.width = "20px", L.style.height = "20px", L.style.background = "gray", L.style.position = "absolute", L.style.right = "0", L.style.bottom = "0", L.style.cursor = "nwse-resize", L.style.zIndex = "10", L.setAttribute("contentEditable", !1), x.appendChild(i), x.appendChild(C), x.appendChild(E), x.appendChild(L), x.addEventListener("click", (A) => {
1718
+ u && (u.style.border = ""), u = x;
1719
+ }), C.addEventListener("mousedown", (A) => O(A, "width")), E.addEventListener("mousedown", (A) => O(A, "height")), L.addEventListener("mousedown", (A) => O(A, "both")), t.insertNode(x);
1720
+ let M;
1721
+ j(), k();
1625
1722
  }
1626
1723
  }
1627
- function j(f = "Image_dropped_pom") {
1628
- const t = document.getElementsByClassName(f);
1629
- Array.from(t).forEach((c) => {
1630
- c.remove();
1631
- });
1724
+ function V(m = "Image_dropped_pom") {
1725
+ const t = document.getElementsByClassName(m);
1726
+ Array.from(t).forEach((i) => {
1727
+ i.remove();
1728
+ }), k();
1632
1729
  }
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, [
1730
+ function K(m) {
1731
+ const t = se[m]();
1732
+ setTimeout(() => {
1733
+ t && (n.value.innerHTML = t, k());
1734
+ }, 100);
1735
+ }
1736
+ return (m, t) => (R(), $("span", je, [
1737
+ e("div", Ze, [
1738
+ e("div", De, [
1739
+ e("div", Ve, [
1740
+ e("div", Oe, [
1741
+ e("div", Ge, [
1742
+ We,
1743
+ e("div", Pe, [
1744
+ e("div", Xe, [
1642
1745
  e("div", {
1643
1746
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1644
- onClick: t[0] || (t[0] = (c) => g(!0))
1645
- }, Pe),
1646
- e("div", Ge, [
1647
- Oe,
1747
+ onClick: t[0] || (t[0] = (i) => h(!0))
1748
+ }, Ye),
1749
+ e("div", Ke, [
1750
+ Je,
1648
1751
  e("strong", {
1649
1752
  class: "px-3",
1650
- onClick: t[1] || (t[1] = (c) => g(!1))
1753
+ onClick: t[1] || (t[1] = (i) => h(!1))
1651
1754
  }, "Preview")
1652
1755
  ]),
1653
- Xe
1756
+ Qe
1654
1757
  ])
1655
1758
  ])
1656
1759
  ])
1657
1760
  ]),
1658
- e("div", qe, [
1659
- e("div", Ye, [
1660
- Ue,
1661
- e("div", Ke, [
1662
- e("div", Je, [
1761
+ e("div", et, [
1762
+ e("div", tt, [
1763
+ ot,
1764
+ e("div", nt, [
1765
+ e("div", it, [
1663
1766
  e("div", {
1664
1767
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
1665
- onClick: t[2] || (t[2] = (c) => b())
1666
- }, tt),
1768
+ onClick: t[2] || (t[2] = (i) => w())
1769
+ }, at),
1667
1770
  e("div", {
1668
- onClick: t[3] || (t[3] = (c) => b("i", "**italic text **")),
1771
+ onClick: t[3] || (t[3] = (i) => w("i", "**italic text **")),
1669
1772
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1670
- }, it),
1773
+ }, ct),
1671
1774
  e("div", {
1672
- onClick: t[4] || (t[4] = (c) => b("u", "**underLine text **")),
1775
+ onClick: t[4] || (t[4] = (i) => w("u", "**underLine text **")),
1673
1776
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1674
- }, at),
1777
+ }, pt),
1675
1778
  e("div", {
1676
- onClick: t[5] || (t[5] = (c) => b("s", "**underLine text**")),
1779
+ onClick: t[5] || (t[5] = (i) => w("s", "**underLine text**")),
1677
1780
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1678
- }, ct),
1781
+ }, gt),
1679
1782
  e("div", {
1680
- onClick: t[6] || (t[6] = (c) => b("sup", "**supperScript**")),
1783
+ onClick: t[6] || (t[6] = (i) => w("sup", "**supperScript**")),
1681
1784
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1682
- }, mt),
1785
+ }, yt),
1683
1786
  e("div", {
1684
- onClick: t[7] || (t[7] = (c) => b("sub", "**supperScript**")),
1787
+ onClick: t[7] || (t[7] = (i) => w("sub", "**supperScript**")),
1685
1788
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1686
- }, ft),
1789
+ }, wt),
1687
1790
  e("div", {
1688
- onClick: t[8] || (t[8] = (c) => b("summary", "**summary**")),
1791
+ onClick: t[8] || (t[8] = (i) => w("summary", "**summary**")),
1689
1792
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1690
- }, xt),
1793
+ }, Et),
1691
1794
  e("div", {
1692
- onClick: t[9] || (t[9] = (c) => b("ol", "1. ordered list")),
1795
+ onClick: t[9] || (t[9] = (i) => w("ol", "1. ordered list")),
1693
1796
  style: { "background-color": "#f3f4f6", cursor: "pointer" },
1694
1797
  class: "hover:bg-gray-200 elemeSet rounded"
1695
- }, wt),
1798
+ }, St),
1696
1799
  e("div", {
1697
- onClick: t[10] || (t[10] = (c) => b("ul", "1. unordered list")),
1800
+ onClick: t[10] || (t[10] = (i) => w("ul", "1. unordered list")),
1698
1801
  style: { "background-color": "#f3f4f6", cursor: "pointer" },
1699
1802
  class: "hover:bg-gray-200 elemeSet rounded"
1700
- }, Et),
1803
+ }, Mt),
1701
1804
  e("div", {
1702
- onClick: t[11] || (t[11] = (c) => b("h1", "**h1**")),
1805
+ onClick: t[11] || (t[11] = (i) => w("h1", "**h1**")),
1703
1806
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1704
- }, Lt),
1807
+ }, Ht),
1705
1808
  e("div", {
1706
- onClick: t[12] || (t[12] = (c) => b("h2", "**h2**")),
1809
+ onClick: t[12] || (t[12] = (i) => w("h2", "**h2**")),
1707
1810
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1708
- }, St),
1811
+ }, $t),
1709
1812
  e("div", {
1710
- onClick: t[13] || (t[13] = (c) => b("h3", "**h3**")),
1813
+ onClick: t[13] || (t[13] = (i) => w("h3", "**h3**")),
1711
1814
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1712
- }, Mt),
1815
+ }, Bt),
1713
1816
  e("div", {
1714
- onClick: t[14] || (t[14] = (c) => b("h4", "**h4**")),
1817
+ onClick: t[14] || (t[14] = (i) => w("h4", "**h4**")),
1715
1818
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1716
- }, Ht),
1819
+ }, jt),
1717
1820
  e("div", {
1718
- onClick: t[15] || (t[15] = (c) => b("h5", "**h5**")),
1821
+ onClick: t[15] || (t[15] = (i) => w("h5", "**h5**")),
1719
1822
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1720
- }, $t),
1823
+ }, Dt),
1721
1824
  e("div", {
1722
- onClick: t[16] || (t[16] = (c) => b("h6", "**h6**")),
1825
+ onClick: t[16] || (t[16] = (i) => w("h6", "**h6**")),
1723
1826
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1724
- }, jt),
1725
- e("div", Zt, [
1827
+ }, Ot),
1828
+ e("div", Gt, [
1726
1829
  e("input", {
1727
1830
  list: "fontSizes",
1728
- onChange: t[17] || (t[17] = (c) => w("font-size", c.target.value + "px")),
1831
+ onInput: t[17] || (t[17] = (i) => F("font-size", i.target.value + "px")),
1729
1832
  placeholder: "Size ",
1730
1833
  class: "p-1 border rounded w-[6vw] h-[3vh]"
1731
1834
  }, null, 32),
1732
- Bt
1733
- ])
1835
+ Wt
1836
+ ]),
1837
+ Pt,
1838
+ e("div", {
1839
+ onClick: t[18] || (t[18] = (i) => F("text-transform", "capitalize")),
1840
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1841
+ }, Ut),
1842
+ e("div", {
1843
+ onClick: t[19] || (t[19] = (i) => F("text-transform", "lowercase")),
1844
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1845
+ }, Yt),
1846
+ e("div", {
1847
+ onClick: t[20] || (t[20] = (i) => F("text-transform", "uppercase")),
1848
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1849
+ }, Jt)
1734
1850
  ])
1735
1851
  ])
1736
1852
  ])
1737
1853
  ]),
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,
1854
+ e("div", Qt, [
1855
+ e("div", eo, [
1856
+ to,
1857
+ e("div", oo, [
1858
+ e("div", no, [
1859
+ e("div", io, [
1860
+ so,
1861
+ lo,
1746
1862
  e("input", {
1747
1863
  type: "file",
1748
1864
  hidden: "",
1749
1865
  id: "pom43546535435445Image",
1750
1866
  accept: "image/*",
1751
1867
  multiple: "",
1752
- onChange: t[18] || (t[18] = (c) => R(c))
1868
+ onChange: t[21] || (t[21] = (i) => S(i))
1753
1869
  }, null, 32)
1754
1870
  ]),
1755
1871
  e("div", {
1756
1872
  class: "hover:bg-gray-200 elemeSet rounded 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" });
1873
+ onClick: t[22] || (t[22] = (i) => {
1874
+ z(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: "text-decoration: underline;cursor: pointer" });
1759
1875
  })
1760
- }, Ut),
1876
+ }, co),
1761
1877
  e("div", {
1762
1878
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
1763
- onClick: t[20] || (t[20] = (c) => C(this))
1764
- }, Qt),
1879
+ onClick: t[23] || (t[23] = (i) => z(this))
1880
+ }, po),
1765
1881
  e("div", null, [
1766
- eo,
1882
+ mo,
1767
1883
  e("div", {
1768
1884
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1769
- onClick: t[21] || (t[21] = (c) => J(ie)())
1770
- }, no),
1885
+ onClick: t[24] || (t[24] = (i) => J(le)())
1886
+ }, vo),
1771
1887
  e("div", {
1772
1888
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1773
- onClick: t[22] || (t[22] = (c) => J(ie)(!0))
1774
- }, lo),
1775
- e("div", ao, [
1776
- ro,
1889
+ onClick: t[25] || (t[25] = (i) => J(le)(!0))
1890
+ }, bo),
1891
+ e("div", _o, [
1892
+ wo,
1777
1893
  e("div", {
1778
1894
  id: "table-picker-container",
1779
1895
  ref_key: "tablePickerContainer",
1780
- ref: a,
1896
+ ref: p,
1781
1897
  class: "table-picker-container"
1782
1898
  }, [
1783
1899
  e("div", {
1784
1900
  id: "table-picker-grid",
1785
1901
  ref_key: "tablePickerGrid",
1786
- ref: p,
1902
+ ref: r,
1787
1903
  class: "table-picker-grid"
1788
1904
  }, null, 512),
1789
1905
  e("span", {
1790
1906
  id: "table-dimensions",
1791
1907
  ref_key: "tableDimensions",
1792
- ref: s,
1908
+ ref: c,
1793
1909
  class: "table-dimensions"
1794
1910
  }, "0 x 0", 512)
1795
1911
  ], 512)
@@ -1799,301 +1915,329 @@ const He = (n, r) => {
1799
1915
  ])
1800
1916
  ])
1801
1917
  ]),
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, [
1918
+ e("div", ko, [
1919
+ e("div", Co, [
1920
+ Eo,
1921
+ e("div", Lo, [
1922
+ e("span", Fo, [
1923
+ e("div", So, [
1924
+ e("div", Ao, [
1925
+ zo,
1926
+ e("div", Mo, [
1927
+ e("div", To, [
1812
1928
  e("div", {
1813
- onClick: t[23] || (t[23] = () => y("font-family", " arial, helvetica, sans-serif")),
1929
+ onClick: t[26] || (t[26] = () => y("font-family", " arial, helvetica, sans-serif")),
1814
1930
  style: { "font-family": "arial, helvetica, sans-serif" }
1815
1931
  }, "Arial ")
1816
1932
  ]),
1817
- _o
1933
+ Ho
1818
1934
  ]),
1819
- e("div", bo, [
1820
- e("div", wo, [
1935
+ e("div", Ro, [
1936
+ e("div", $o, [
1821
1937
  e("div", {
1822
1938
  style: { "font-family": '"arial black", sans-serif' },
1823
- onClick: t[24] || (t[24] = () => y("font-family", "arial black, sans-serif"))
1939
+ onClick: t[27] || (t[27] = () => y("font-family", "arial black, sans-serif"))
1824
1940
  }, " Arial Black")
1825
1941
  ]),
1826
- ko
1942
+ Io
1827
1943
  ]),
1828
- e("div", Co, [
1829
- e("div", Eo, [
1944
+ e("div", Bo, [
1945
+ e("div", No, [
1830
1946
  e("div", {
1831
1947
  style: { "font-family": "book antiqua, palatino, serif" },
1832
- onClick: t[25] || (t[25] = () => y("font-family", "book antiqua, palatino, serif"))
1948
+ onClick: t[28] || (t[28] = () => y("font-family", "book antiqua, palatino, serif"))
1833
1949
  }, " Book Antiqua")
1834
1950
  ]),
1835
- Fo
1951
+ jo
1836
1952
  ]),
1837
- e("div", Lo, [
1838
- e("div", Ao, [
1953
+ e("div", Zo, [
1954
+ e("div", Do, [
1839
1955
  e("div", {
1840
1956
  style: { "font-family": '"comic sans ms", sans-serif' },
1841
- onClick: t[26] || (t[26] = () => y("font-family", 'comic sans ms", sans-serif'))
1957
+ onClick: t[29] || (t[29] = () => y("font-family", 'comic sans ms", sans-serif'))
1842
1958
  }, " Comic Sans MS")
1843
1959
  ]),
1844
- So
1960
+ Vo
1845
1961
  ]),
1846
- e("div", zo, [
1847
- e("div", Mo, [
1962
+ e("div", Oo, [
1963
+ e("div", Go, [
1848
1964
  e("div", {
1849
1965
  style: { "font-family": "courier new, courier, monospace" },
1850
- onClick: t[27] || (t[27] = () => y("font-family", " courier new, courier, monospace;"))
1966
+ onClick: t[30] || (t[30] = () => y("font-family", " courier new, courier, monospace;"))
1851
1967
  }, " Courier New")
1852
1968
  ]),
1853
- Ro
1969
+ Wo
1854
1970
  ]),
1855
- e("div", Ho, [
1856
- e("div", To, [
1971
+ e("div", Po, [
1972
+ e("div", Xo, [
1857
1973
  e("div", {
1858
1974
  style: { "font-family": "georgia, palatino, serif" },
1859
- onClick: t[28] || (t[28] = () => y("font-family", " georgia, palatino, serif"))
1975
+ onClick: t[31] || (t[31] = () => y("font-family", " georgia, palatino, serif"))
1860
1976
  }, "Georgia ")
1861
1977
  ]),
1862
- $o
1978
+ Uo
1863
1979
  ]),
1864
- e("div", Io, [
1865
- e("div", jo, [
1980
+ e("div", qo, [
1981
+ e("div", Yo, [
1866
1982
  e("div", {
1867
1983
  style: { "font-family": "helvetica, arial, sans-serif" },
1868
- onClick: t[29] || (t[29] = () => y("font-family", " helvetica, arial, sans-serif"))
1984
+ onClick: t[32] || (t[32] = () => y("font-family", " helvetica, arial, sans-serif"))
1869
1985
  }, " Helvetica")
1870
1986
  ]),
1871
- Zo
1987
+ Ko
1872
1988
  ]),
1873
- e("div", Bo, [
1874
- e("div", No, [
1989
+ e("div", Jo, [
1990
+ e("div", Qo, [
1875
1991
  e("div", {
1876
1992
  style: { "font-family": "impact, sans-serif" },
1877
- onClick: t[30] || (t[30] = () => y("font-family", " impact, sans-serif"))
1993
+ onClick: t[33] || (t[33] = () => y("font-family", " impact, sans-serif"))
1878
1994
  }, "Impact")
1879
1995
  ]),
1880
- Do
1996
+ en
1881
1997
  ]),
1882
- e("div", Vo, [
1883
- e("div", Wo, [
1998
+ e("div", tn, [
1999
+ e("div", on, [
1884
2000
  e("div", {
1885
2001
  style: { "font-family": "symbol" },
1886
- onClick: t[31] || (t[31] = () => y("font-family", " symbol"))
2002
+ onClick: t[34] || (t[34] = () => y("font-family", " symbol"))
1887
2003
  }, "Symbol")
1888
2004
  ]),
1889
- Po
2005
+ nn
1890
2006
  ]),
1891
- e("div", Go, [
1892
- e("div", Oo, [
2007
+ e("div", sn, [
2008
+ e("div", ln, [
1893
2009
  e("div", {
1894
2010
  style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
1895
- onClick: t[32] || (t[32] = () => y("font-family", " tahoma, arial, helvetica, sans-serif"))
2011
+ onClick: t[35] || (t[35] = () => y("font-family", " tahoma, arial, helvetica, sans-serif"))
1896
2012
  }, " Tahoma")
1897
2013
  ]),
1898
- Xo
2014
+ an
1899
2015
  ]),
1900
- e("div", qo, [
1901
- e("div", Yo, [
2016
+ e("div", rn, [
2017
+ e("div", dn, [
1902
2018
  e("div", {
1903
2019
  style: { "font-family": "terminal, monaco, monospace" },
1904
- onClick: t[33] || (t[33] = () => y("font-family", " terminal, monaco, monospace"))
2020
+ onClick: t[36] || (t[36] = () => y("font-family", " terminal, monaco, monospace"))
1905
2021
  }, "Terminal ")
1906
2022
  ]),
1907
- Uo
2023
+ cn
1908
2024
  ]),
1909
- e("div", Ko, [
1910
- e("div", Jo, [
2025
+ e("div", un, [
2026
+ e("div", fn, [
1911
2027
  e("div", {
1912
2028
  style: { "font-family": "times new roman, times, serif" },
1913
- onClick: t[34] || (t[34] = () => y("font-family", " times new roman, times, serif"))
2029
+ onClick: t[37] || (t[37] = () => y("font-family", " times new roman, times, serif"))
1914
2030
  }, " Times New Roman")
1915
2031
  ]),
1916
- Qo
2032
+ pn
1917
2033
  ]),
1918
- e("div", en, [
1919
- e("div", tn, [
2034
+ e("div", mn, [
2035
+ e("div", hn, [
1920
2036
  e("div", {
1921
2037
  style: { "font-family": "trebuchet ms, geneva, sans-serif" },
1922
- onClick: t[35] || (t[35] = () => y("font-family", " trebuchet ms, geneva, sans-serif"))
2038
+ onClick: t[38] || (t[38] = () => y("font-family", " trebuchet ms, geneva, sans-serif"))
1923
2039
  }, " Trebuchet MS")
1924
2040
  ]),
1925
- on
2041
+ gn
1926
2042
  ]),
1927
- e("div", nn, [
1928
- e("div", sn, [
2043
+ e("div", vn, [
2044
+ e("div", xn, [
1929
2045
  e("div", {
1930
2046
  style: { "font-family": "verdana, geneva, sans-serif" },
1931
- onClick: t[36] || (t[36] = () => y("font-family", " verdana, geneva, sans-serif"))
2047
+ onClick: t[39] || (t[39] = () => y("font-family", " verdana, geneva, sans-serif"))
1932
2048
  }, "Verdana ")
1933
2049
  ]),
1934
- ln
2050
+ yn
1935
2051
  ]),
1936
- an,
1937
- rn
2052
+ bn,
2053
+ _n
1938
2054
  ])
1939
2055
  ])
1940
2056
  ])
1941
2057
  ])
1942
2058
  ])
1943
2059
  ]),
1944
- e("div", dn, [
2060
+ e("div", wn, [
1945
2061
  e("button", {
1946
2062
  style: { flex: "1", margin: "0 4px", width: "auto" },
1947
- onClick: t[37] || (t[37] = (c) => v("text-align", "justify", "", "p"))
1948
- }, un),
2063
+ onClick: t[40] || (t[40] = (i) => _("text-align", "justify", "", "p"))
2064
+ }, Cn),
1949
2065
  e("button", {
1950
2066
  style: { flex: "1", margin: "0 4px", width: "auto" },
1951
- onClick: t[38] || (t[38] = (c) => v("text-align", "center", "", "div"))
1952
- }, mn),
2067
+ onClick: t[41] || (t[41] = (i) => _("text-align", "center", "", "div"))
2068
+ }, Ln),
1953
2069
  e("button", {
1954
2070
  style: { flex: "1", margin: "0 4px", width: "auto" },
1955
- onClick: t[39] || (t[39] = (c) => v("text-align", "end", "", "p"))
1956
- }, gn),
2071
+ onClick: t[42] || (t[42] = (i) => _("text-align", "end", "", "p"))
2072
+ }, Sn),
1957
2073
  e("button", {
1958
2074
  style: { flex: "1", margin: "0 4px", width: "auto" },
1959
- onClick: t[40] || (t[40] = (c) => v("text-align", "start", "", "div"))
1960
- }, vn)
2075
+ onClick: t[43] || (t[43] = (i) => _("text-align", "start", "", "div"))
2076
+ }, zn)
1961
2077
  ]),
1962
- e("div", yn, [
1963
- xn,
1964
- e("div", _n, [
1965
- e("div", bn, [
2078
+ e("div", Mn, [
2079
+ Tn,
2080
+ e("div", Hn, [
2081
+ e("div", Rn, [
1966
2082
  e("div", {
1967
- onClick: t[41] || (t[41] = (c) => D(3, "disc"))
1968
- }, kn),
2083
+ onClick: t[44] || (t[44] = (i) => P(3, "disc"))
2084
+ }, In),
1969
2085
  e("div", {
1970
- onClick: t[42] || (t[42] = (c) => D(3, "circle"))
1971
- }, En),
2086
+ onClick: t[45] || (t[45] = (i) => P(3, "circle"))
2087
+ }, Nn),
1972
2088
  e("div", null, [
1973
2089
  e("div", {
1974
2090
  class: "",
1975
- onClick: t[43] || (t[43] = (c) => D())
1976
- }, Ln)
2091
+ onClick: t[46] || (t[46] = (i) => P())
2092
+ }, Zn)
1977
2093
  ]),
1978
2094
  e("div", {
1979
- onClick: t[44] || (t[44] = (c) => D(3, "upper-latin"))
1980
- }, Sn)
2095
+ onClick: t[47] || (t[47] = (i) => P(3, "upper-latin"))
2096
+ }, Vn)
1981
2097
  ])
1982
2098
  ])
1983
2099
  ])
1984
2100
  ]),
1985
- e("div", zn, [
1986
- Q(f.$slots, "toolbar-before", {}, void 0, !0),
2101
+ e("div", On, [
2102
+ Q(m.$slots, "toolbar-before", {}, void 0, !0),
1987
2103
  e("div", {
1988
2104
  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",
1989
2105
  style: { margin: "6px" },
1990
- onClick: t[45] || (t[45] = (c) => b())
1991
- }, Rn),
2106
+ onClick: t[48] || (t[48] = (i) => w())
2107
+ }, Wn),
1992
2108
  e("div", {
1993
- onClick: t[46] || (t[46] = (c) => b("i", "**italic text **")),
2109
+ onClick: t[49] || (t[49] = (i) => w("i", "**italic text **")),
1994
2110
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1995
2111
  style: { margin: "6px" }
1996
- }, Tn),
2112
+ }, Xn),
1997
2113
  e("div", {
1998
- onClick: t[47] || (t[47] = (c) => b("u", "**underLine text**")),
2114
+ onClick: t[50] || (t[50] = (i) => w("u", "**underLine text**")),
1999
2115
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2000
2116
  style: { margin: "6px" }
2001
- }, In),
2117
+ }, qn),
2002
2118
  e("div", {
2003
- onClick: t[48] || (t[48] = (c) => b("s", "**Strike text**")),
2119
+ onClick: t[51] || (t[51] = (i) => w("s", "**Strike text**")),
2004
2120
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2005
2121
  style: { margin: "6px" }
2006
2122
  }, [
2007
- e("i", jn, [
2008
- ($(), I("svg", Zn, Vn))
2123
+ e("i", Yn, [
2124
+ (R(), $("svg", Kn, ti))
2009
2125
  ])
2010
2126
  ]),
2011
2127
  e("div", {
2012
- onClick: t[49] || (t[49] = (c) => b("sup", "**supperScript**")),
2128
+ onClick: t[52] || (t[52] = (i) => w("sup", "**supperScript**")),
2013
2129
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2014
2130
  style: { margin: "6px" }
2015
- }, Pn),
2131
+ }, ni),
2016
2132
  e("div", {
2017
- onClick: t[50] || (t[50] = (c) => b("sub", "**supperScript**")),
2133
+ onClick: t[53] || (t[53] = (i) => w("sub", "**supperScript**")),
2018
2134
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2019
2135
  style: { margin: "6px" }
2020
- }, On),
2136
+ }, si),
2021
2137
  e("div", {
2022
- onClick: t[51] || (t[51] = (c) => b("Code", "**code**")),
2138
+ onClick: t[54] || (t[54] = (i) => w("Code", "**code**")),
2023
2139
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2024
2140
  style: { margin: "6px" }
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", {
2141
+ }, ai),
2142
+ e("div", ri, [
2143
+ di,
2144
+ e("div", ci, [
2145
+ e("div", ui, [
2146
+ (R(!0), $(ee, null, te(g.value, (i) => (R(), $("div", {
2031
2147
  class: "color-box",
2032
- style: te(`background-color: #${c} ;`),
2033
- onClick: (_) => w("background", `#${c}`, "", "span")
2034
- }, null, 12, Qn))), 256))
2148
+ style: oe(`background-color: #${i} ;`),
2149
+ onClick: (x) => F("background", `#${i}`, "", "span")
2150
+ }, null, 12, fi))), 256))
2035
2151
  ])
2036
2152
  ])
2037
2153
  ]),
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", {
2154
+ e("div", pi, [
2155
+ mi,
2156
+ e("div", hi, [
2157
+ e("div", gi, [
2158
+ (R(!0), $(ee, null, te(g.value, (i) => (R(), $("div", {
2043
2159
  class: "color-box",
2044
- style: te(`background-color: #${c} ;`),
2045
- onClick: (_) => w("color", `#${c}`, "", "span")
2046
- }, null, 12, ii))), 256))
2160
+ style: oe(`background-color: #${i} ;`),
2161
+ onClick: (x) => F("color", `#${i}`, "", "span")
2162
+ }, null, 12, vi))), 256))
2047
2163
  ])
2048
2164
  ])
2049
2165
  ]),
2050
- Q(f.$slots, "toolbar-after", {}, void 0, !0),
2166
+ e("div", {
2167
+ title: "Redo",
2168
+ 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",
2169
+ st: "",
2170
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2171
+ onClick: t[55] || (t[55] = () => K("Undo"))
2172
+ }, yi),
2173
+ e("div", {
2174
+ title: "Redo",
2175
+ 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",
2176
+ st: "",
2177
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2178
+ onClick: t[56] || (t[56] = () => K("Redo"))
2179
+ }, _i),
2051
2180
  e("div", {
2052
2181
  title: "new fresh line",
2053
- style: { flex: "1", margin: "0 4px", "text-align": "center", "padding-top": "8px" },
2054
- onClick: t[52] || (t[52] = (c) => N())
2055
- }, li)
2182
+ 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",
2183
+ st: "",
2184
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2185
+ onClick: t[57] || (t[57] = (i) => Z())
2186
+ }, ki),
2187
+ Q(m.$slots, "toolbar-after", {}, void 0, !0)
2056
2188
  ])
2057
2189
  ])
2058
2190
  ]),
2059
2191
  e("div", {
2060
2192
  class: "",
2061
2193
  ref_key: "pomTextEditorContainer",
2062
- ref: h,
2194
+ ref: f,
2063
2195
  id: "pom-texedito-container",
2064
2196
  style: { width: "100%", overflow: "hidden auto", height: "30vh", border: "1px solid #9d969633", padding: "0px", "border-radius": "3px" }
2065
2197
  }, [
2066
- e("div", ai, [
2067
- e("div", {
2198
+ e("div", Ci, [
2199
+ o.TextOnly ? (R(), $("textarea", {
2200
+ key: 0,
2201
+ onMouseup: t[58] || (t[58] = (i) => D()),
2202
+ onKeyup: t[59] || (t[59] = (i) => {
2203
+ D();
2204
+ }),
2205
+ onInput: k,
2206
+ ref_key: "editorRef",
2207
+ ref: n,
2208
+ class: "editor pom-editing-area mt-1 border-gray-300",
2209
+ id: "editor",
2210
+ style: { height: "100%", width: "100%", border: "none", resize: "none" }
2211
+ }, ge(o.Dvalue), 545)) : (R(), $("div", {
2212
+ key: 1,
2068
2213
  "data-placeholder": "Your Editing.....",
2069
- onDrop: re,
2070
- innerHTML: n.Dvalue,
2071
- onMouseup: t[53] || (t[53] = (c) => G()),
2072
- onKeyup: t[54] || (t[54] = (c) => {
2073
- G();
2214
+ onDrop: pe,
2215
+ innerHTML: o.Dvalue,
2216
+ onMouseup: t[60] || (t[60] = (i) => D()),
2217
+ onKeyup: t[61] || (t[61] = (i) => {
2218
+ D();
2074
2219
  }),
2075
2220
  ref_key: "editorRef",
2076
- ref: o,
2221
+ ref: n,
2077
2222
  class: "editor pom-editing-area mt-1 border-gray-300",
2078
- onInput: T,
2223
+ onInput: k,
2079
2224
  contenteditable: "true",
2080
2225
  id: "editor",
2081
2226
  style: { height: "100%", width: "100%", border: "none" }
2082
- }, null, 40, ri)
2227
+ }, null, 40, Ei))
2083
2228
  ])
2084
2229
  ], 512),
2085
- e("div", di, [
2230
+ o.TextOnly != "true" ? (R(), $("div", Li, [
2086
2231
  e("div", {
2087
2232
  class: "hover:bg-gray-200",
2088
- onClick: t[55] || (t[55] = (c) => N())
2089
- }, pi),
2090
- mi,
2091
- Y("       "),
2092
- hi
2093
- ])
2094
- ], 64));
2233
+ onClick: t[62] || (t[62] = (i) => Z())
2234
+ }, Ai),
2235
+ zi,
2236
+ Mi
2237
+ ])) : ve("", !0)
2238
+ ]));
2095
2239
  }
2096
- }, vi = /* @__PURE__ */ He(gi, [["__scopeId", "data-v-c5304261"]]);
2240
+ }, Ri = /* @__PURE__ */ Ne(Ti, [["__scopeId", "data-v-df48f6af"]]);
2097
2241
  export {
2098
- vi as default
2242
+ Ri as default
2099
2243
  };