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.
- package/README.md +8 -1
- package/dist/pom-text-editor.cjs.js +14 -7
- package/dist/pom-text-editor.es.js +864 -720
- package/dist/pom-text-editor.umd.js +12 -5
- package/package.json +3 -3
|
@@ -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-
|
|
6
|
-
import { ref as H, onMounted as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
document.getElementById("cursorPosition")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
return { range:
|
|
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
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
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",
|
|
37
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
|
|
36
38
|
}
|
|
37
|
-
document.addEventListener("mousemove",
|
|
39
|
+
document.addEventListener("mousemove", c), document.addEventListener("mouseup", u);
|
|
38
40
|
}
|
|
39
|
-
let
|
|
40
|
-
function
|
|
41
|
-
const [
|
|
42
|
-
|
|
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
|
|
45
|
-
const
|
|
46
|
-
Array.from(
|
|
47
|
-
|
|
48
|
-
}),
|
|
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
|
|
51
|
-
for (
|
|
52
|
-
const
|
|
53
|
-
|
|
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
|
|
57
|
+
for (let s = 0; s < 100; s++) {
|
|
56
58
|
const p = document.createElement("div");
|
|
57
|
-
p.addEventListener("mouseover", (
|
|
59
|
+
p.addEventListener("mouseover", (r) => ie(r, d, n)), p.addEventListener("click", () => ne(l, d)), n.appendChild(p);
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
const
|
|
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
|
|
66
|
-
|
|
67
|
-
for (let
|
|
68
|
-
const
|
|
69
|
-
for (let
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
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
|
-
|
|
77
|
+
r.appendChild(b);
|
|
76
78
|
}
|
|
77
|
-
p.appendChild(
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
const
|
|
81
|
-
return u.setStart(
|
|
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
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
{ text: "Delete Table", action: () =>
|
|
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
|
|
94
|
-
|
|
95
|
-
|
|
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
|
|
103
|
-
|
|
104
|
-
|
|
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
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}),
|
|
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
|
|
116
|
-
for (let u = 0; u <
|
|
117
|
-
const
|
|
118
|
-
|
|
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
|
-
|
|
122
|
+
l.appendChild(r);
|
|
121
123
|
}
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
text: "Add Column",
|
|
125
127
|
action: () => {
|
|
126
|
-
for (let
|
|
127
|
-
const
|
|
128
|
-
|
|
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((
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
}), document.body.appendChild(
|
|
136
|
-
|
|
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
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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 = " ", 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:",
|
|
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
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
171
|
-
for (const
|
|
172
|
-
if (p.hasOwnProperty(
|
|
173
|
-
if (
|
|
174
|
-
|
|
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
|
|
177
|
-
|
|
183
|
+
const F = p[y];
|
|
184
|
+
_.push({ attr: y, value: F });
|
|
178
185
|
}
|
|
179
|
-
|
|
186
|
+
Y(o, n, "**link Name** ", _);
|
|
180
187
|
}
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
for (let
|
|
184
|
-
|
|
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
|
|
187
|
-
|
|
193
|
+
function b(f) {
|
|
194
|
+
c.contains(f.target) || (c.remove(), window.document.removeEventListener("click", b));
|
|
188
195
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
window.open(
|
|
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
|
|
196
|
-
|
|
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
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
|
206
|
-
if (
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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(
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
|
|
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
|
|
225
|
-
if (
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
for (let
|
|
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 ${
|
|
248
|
+
u.style.padding = "5px", u.textContent = `li ${c + 1}, `, u.style.position = "relative", s.appendChild(u);
|
|
233
249
|
}
|
|
234
|
-
|
|
235
|
-
const p =
|
|
236
|
-
|
|
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
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
function
|
|
243
|
-
const
|
|
244
|
-
let
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
Math.abs(N -
|
|
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
|
|
250
|
-
document.removeEventListener("mousemove",
|
|
265
|
+
function h() {
|
|
266
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", h);
|
|
251
267
|
}
|
|
252
|
-
document.addEventListener("mousemove",
|
|
268
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", h);
|
|
253
269
|
}
|
|
254
|
-
function
|
|
270
|
+
function ze(o, l) {
|
|
255
271
|
try {
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}),
|
|
260
|
-
} catch (
|
|
261
|
-
console.log(
|
|
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
|
|
265
|
-
if (
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
|
|
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 =
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
let u = document.getElementsByClassName(
|
|
277
|
-
for (let
|
|
278
|
-
u[
|
|
279
|
-
|
|
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
|
|
284
|
-
const
|
|
285
|
-
if (
|
|
286
|
-
for (const
|
|
287
|
-
if (
|
|
288
|
-
const
|
|
289
|
-
|
|
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
|
|
294
|
-
return new Promise((
|
|
295
|
-
const
|
|
296
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
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
|
-
|
|
353
|
+
n.remove();
|
|
311
354
|
});
|
|
312
355
|
}
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
${
|
|
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
|
-
${
|
|
364
|
+
${l} {
|
|
322
365
|
display: none;
|
|
323
366
|
}
|
|
324
367
|
}
|
|
325
368
|
.pom-4-imageContainer {
|
|
326
369
|
display: block !important;
|
|
327
370
|
}
|
|
328
|
-
</style>`),
|
|
329
|
-
const
|
|
330
|
-
return
|
|
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
|
|
333
|
-
|
|
334
|
-
const
|
|
335
|
-
|
|
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
|
|
339
|
-
return
|
|
381
|
+
function Ie(o = document.getElementById("pom-texedito-container")) {
|
|
382
|
+
return ce(o.querySelectorAll(".pom-4-imageContainer")), o.innerHTML;
|
|
340
383
|
}
|
|
341
|
-
function
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
|
|
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
|
|
350
|
-
if (!
|
|
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
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
(
|
|
358
|
-
let
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
|
|
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
|
|
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
|
|
508
|
-
const
|
|
509
|
-
for (const [
|
|
510
|
-
|
|
511
|
-
return
|
|
512
|
-
},
|
|
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
|
-
},
|
|
565
|
+
}, De = {
|
|
516
566
|
class: "hideonprint bg-gray-100 items-center",
|
|
517
567
|
id: "toolbar"
|
|
518
|
-
},
|
|
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
|
-
},
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
],
|
|
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)),
|
|
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
|
-
},
|
|
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__ */
|
|
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__ */
|
|
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
|
-
|
|
548
|
-
],
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
], vt = /* @__PURE__ */
|
|
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
|
-
|
|
554
|
-
],
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
], kt = /* @__PURE__ */
|
|
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
|
-
],
|
|
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__ */
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
},
|
|
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)),
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
],
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
],
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
],
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
],
|
|
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)),
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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)),
|
|
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)),
|
|
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)),
|
|
982
|
-
|
|
983
|
-
],
|
|
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)),
|
|
995
|
-
|
|
996
|
-
],
|
|
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)),
|
|
1008
|
-
|
|
1009
|
-
],
|
|
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)),
|
|
1021
|
-
|
|
1022
|
-
],
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
1098
|
-
|
|
1099
|
-
],
|
|
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)),
|
|
1117
|
-
|
|
1118
|
-
],
|
|
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)),
|
|
1176
|
-
|
|
1177
|
-
],
|
|
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)),
|
|
1237
|
-
|
|
1238
|
-
],
|
|
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
|
-
},
|
|
1242
|
-
|
|
1243
|
-
],
|
|
1244
|
-
|
|
1245
|
-
],
|
|
1246
|
-
|
|
1247
|
-
],
|
|
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
|
-
},
|
|
1314
|
+
}, Jn = /* @__PURE__ */ a(() => /* @__PURE__ */ e("g", {
|
|
1259
1315
|
id: "SVGRepo_bgCarrier",
|
|
1260
1316
|
"stroke-width": "0"
|
|
1261
|
-
}, null, -1)),
|
|
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)),
|
|
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)),
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
],
|
|
1365
|
-
|
|
1366
|
-
],
|
|
1367
|
-
|
|
1368
|
-
],
|
|
1369
|
-
|
|
1370
|
-
],
|
|
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)),
|
|
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
|
-
},
|
|
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)),
|
|
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
|
-
},
|
|
1425
|
-
|
|
1426
|
-
],
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
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)),
|
|
1433
|
-
/* @__PURE__ */
|
|
1496
|
+
], -1)), Mi = /* @__PURE__ */ a(() => /* @__PURE__ */ e("p", null, [
|
|
1497
|
+
/* @__PURE__ */ re("Text at cursor: "),
|
|
1434
1498
|
/* @__PURE__ */ e("span", { id: "textAtCursor" })
|
|
1435
|
-
], -1)),
|
|
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(
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
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
|
-
]),
|
|
1512
|
-
function
|
|
1580
|
+
]), b = l, v = o, f = H(null);
|
|
1581
|
+
function h(...m) {
|
|
1513
1582
|
try {
|
|
1514
1583
|
var t = document.querySelectorAll(".removeinlineblock");
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
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
|
|
1591
|
+
function _(...m) {
|
|
1522
1592
|
var t;
|
|
1523
|
-
|
|
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(...
|
|
1595
|
+
function y(...m) {
|
|
1526
1596
|
var t;
|
|
1527
|
-
|
|
1597
|
+
ae((t = s.value) == null ? void 0 : t.range, n.value, ...m), u = null, k();
|
|
1528
1598
|
}
|
|
1529
|
-
function
|
|
1599
|
+
function F(...m) {
|
|
1530
1600
|
var t;
|
|
1531
|
-
|
|
1601
|
+
ae((t = s.value) == null ? void 0 : t.range, n.value, ...m), u = null, k();
|
|
1532
1602
|
}
|
|
1533
|
-
function
|
|
1534
|
-
|
|
1603
|
+
function S(m) {
|
|
1604
|
+
Te(m, s.value.range), u = null, k();
|
|
1535
1605
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1606
|
+
function z(...m) {
|
|
1607
|
+
Le(s.value.range, ...m), u = null;
|
|
1538
1608
|
}
|
|
1539
|
-
const
|
|
1540
|
-
function
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
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
|
|
1548
|
-
|
|
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
|
-
|
|
1551
|
-
|
|
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
|
|
1554
|
-
|
|
1651
|
+
function Z() {
|
|
1652
|
+
Re(n.value);
|
|
1653
|
+
}
|
|
1654
|
+
function w(...m) {
|
|
1655
|
+
Y(s.value.range, ...m), k();
|
|
1555
1656
|
}
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1657
|
+
function P(...m) {
|
|
1658
|
+
Se(s.value.range, ...m), k();
|
|
1558
1659
|
}
|
|
1559
|
-
function D(
|
|
1560
|
-
we(
|
|
1660
|
+
function D() {
|
|
1661
|
+
s.value = _e(), be(), we(s.value, n.value, r.value, c.value), u = null, k();
|
|
1561
1662
|
}
|
|
1562
|
-
function
|
|
1563
|
-
i
|
|
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
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
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
|
|
1577
|
-
|
|
1578
|
-
const t =
|
|
1689
|
+
function me(m) {
|
|
1690
|
+
V();
|
|
1691
|
+
const t = s.value.range;
|
|
1579
1692
|
if (t) {
|
|
1580
|
-
let O = function(A,
|
|
1581
|
-
A.preventDefault(),
|
|
1582
|
-
},
|
|
1583
|
-
const
|
|
1584
|
-
if (
|
|
1585
|
-
const
|
|
1586
|
-
|
|
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 (
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1701
|
+
if (M === "height" || M === "both") {
|
|
1702
|
+
const q = A.clientY - U.top;
|
|
1703
|
+
i.style.height = q + "px";
|
|
1591
1704
|
}
|
|
1592
|
-
},
|
|
1593
|
-
window.removeEventListener("mousemove",
|
|
1705
|
+
}, X = function() {
|
|
1706
|
+
window.removeEventListener("mousemove", G), window.removeEventListener("mouseup", X);
|
|
1594
1707
|
};
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
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 = "
|
|
1618
|
-
const
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
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
|
|
1628
|
-
const t = document.getElementsByClassName(
|
|
1629
|
-
Array.from(t).forEach((
|
|
1630
|
-
|
|
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
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
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] = (
|
|
1645
|
-
},
|
|
1646
|
-
e("div",
|
|
1647
|
-
|
|
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] = (
|
|
1753
|
+
onClick: t[1] || (t[1] = (i) => h(!1))
|
|
1651
1754
|
}, "Preview")
|
|
1652
1755
|
]),
|
|
1653
|
-
|
|
1756
|
+
Qe
|
|
1654
1757
|
])
|
|
1655
1758
|
])
|
|
1656
1759
|
])
|
|
1657
1760
|
]),
|
|
1658
|
-
e("div",
|
|
1659
|
-
e("div",
|
|
1660
|
-
|
|
1661
|
-
e("div",
|
|
1662
|
-
e("div",
|
|
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] = (
|
|
1666
|
-
},
|
|
1768
|
+
onClick: t[2] || (t[2] = (i) => w())
|
|
1769
|
+
}, at),
|
|
1667
1770
|
e("div", {
|
|
1668
|
-
onClick: t[3] || (t[3] = (
|
|
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
|
-
},
|
|
1773
|
+
}, ct),
|
|
1671
1774
|
e("div", {
|
|
1672
|
-
onClick: t[4] || (t[4] = (
|
|
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
|
-
},
|
|
1777
|
+
}, pt),
|
|
1675
1778
|
e("div", {
|
|
1676
|
-
onClick: t[5] || (t[5] = (
|
|
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
|
-
},
|
|
1781
|
+
}, gt),
|
|
1679
1782
|
e("div", {
|
|
1680
|
-
onClick: t[6] || (t[6] = (
|
|
1783
|
+
onClick: t[6] || (t[6] = (i) => w("sup", "**supperScript**")),
|
|
1681
1784
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1682
|
-
},
|
|
1785
|
+
}, yt),
|
|
1683
1786
|
e("div", {
|
|
1684
|
-
onClick: t[7] || (t[7] = (
|
|
1787
|
+
onClick: t[7] || (t[7] = (i) => w("sub", "**supperScript**")),
|
|
1685
1788
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1686
|
-
},
|
|
1789
|
+
}, wt),
|
|
1687
1790
|
e("div", {
|
|
1688
|
-
onClick: t[8] || (t[8] = (
|
|
1791
|
+
onClick: t[8] || (t[8] = (i) => w("summary", "**summary**")),
|
|
1689
1792
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1690
|
-
},
|
|
1793
|
+
}, Et),
|
|
1691
1794
|
e("div", {
|
|
1692
|
-
onClick: t[9] || (t[9] = (
|
|
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
|
-
},
|
|
1798
|
+
}, St),
|
|
1696
1799
|
e("div", {
|
|
1697
|
-
onClick: t[10] || (t[10] = (
|
|
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
|
-
},
|
|
1803
|
+
}, Mt),
|
|
1701
1804
|
e("div", {
|
|
1702
|
-
onClick: t[11] || (t[11] = (
|
|
1805
|
+
onClick: t[11] || (t[11] = (i) => w("h1", "**h1**")),
|
|
1703
1806
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1704
|
-
},
|
|
1807
|
+
}, Ht),
|
|
1705
1808
|
e("div", {
|
|
1706
|
-
onClick: t[12] || (t[12] = (
|
|
1809
|
+
onClick: t[12] || (t[12] = (i) => w("h2", "**h2**")),
|
|
1707
1810
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1708
|
-
},
|
|
1811
|
+
}, $t),
|
|
1709
1812
|
e("div", {
|
|
1710
|
-
onClick: t[13] || (t[13] = (
|
|
1813
|
+
onClick: t[13] || (t[13] = (i) => w("h3", "**h3**")),
|
|
1711
1814
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1712
|
-
},
|
|
1815
|
+
}, Bt),
|
|
1713
1816
|
e("div", {
|
|
1714
|
-
onClick: t[14] || (t[14] = (
|
|
1817
|
+
onClick: t[14] || (t[14] = (i) => w("h4", "**h4**")),
|
|
1715
1818
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1716
|
-
},
|
|
1819
|
+
}, jt),
|
|
1717
1820
|
e("div", {
|
|
1718
|
-
onClick: t[15] || (t[15] = (
|
|
1821
|
+
onClick: t[15] || (t[15] = (i) => w("h5", "**h5**")),
|
|
1719
1822
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1720
|
-
},
|
|
1823
|
+
}, Dt),
|
|
1721
1824
|
e("div", {
|
|
1722
|
-
onClick: t[16] || (t[16] = (
|
|
1825
|
+
onClick: t[16] || (t[16] = (i) => w("h6", "**h6**")),
|
|
1723
1826
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
1724
|
-
},
|
|
1725
|
-
e("div",
|
|
1827
|
+
}, Ot),
|
|
1828
|
+
e("div", Gt, [
|
|
1726
1829
|
e("input", {
|
|
1727
1830
|
list: "fontSizes",
|
|
1728
|
-
|
|
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
|
-
|
|
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",
|
|
1739
|
-
e("div",
|
|
1740
|
-
|
|
1741
|
-
e("div",
|
|
1742
|
-
e("div",
|
|
1743
|
-
e("div",
|
|
1744
|
-
|
|
1745
|
-
|
|
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[
|
|
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[
|
|
1758
|
-
|
|
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
|
-
},
|
|
1876
|
+
}, co),
|
|
1761
1877
|
e("div", {
|
|
1762
1878
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
|
|
1763
|
-
onClick: t[
|
|
1764
|
-
},
|
|
1879
|
+
onClick: t[23] || (t[23] = (i) => z(this))
|
|
1880
|
+
}, po),
|
|
1765
1881
|
e("div", null, [
|
|
1766
|
-
|
|
1882
|
+
mo,
|
|
1767
1883
|
e("div", {
|
|
1768
1884
|
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
1769
|
-
onClick: t[
|
|
1770
|
-
},
|
|
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[
|
|
1774
|
-
},
|
|
1775
|
-
e("div",
|
|
1776
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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",
|
|
1803
|
-
e("div",
|
|
1804
|
-
|
|
1805
|
-
e("div",
|
|
1806
|
-
e("span",
|
|
1807
|
-
e("div",
|
|
1808
|
-
e("div",
|
|
1809
|
-
|
|
1810
|
-
e("div",
|
|
1811
|
-
e("div",
|
|
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[
|
|
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
|
-
|
|
1933
|
+
Ho
|
|
1818
1934
|
]),
|
|
1819
|
-
e("div",
|
|
1820
|
-
e("div",
|
|
1935
|
+
e("div", Ro, [
|
|
1936
|
+
e("div", $o, [
|
|
1821
1937
|
e("div", {
|
|
1822
1938
|
style: { "font-family": '"arial black", sans-serif' },
|
|
1823
|
-
onClick: t[
|
|
1939
|
+
onClick: t[27] || (t[27] = () => y("font-family", "arial black, sans-serif"))
|
|
1824
1940
|
}, " Arial Black")
|
|
1825
1941
|
]),
|
|
1826
|
-
|
|
1942
|
+
Io
|
|
1827
1943
|
]),
|
|
1828
|
-
e("div",
|
|
1829
|
-
e("div",
|
|
1944
|
+
e("div", Bo, [
|
|
1945
|
+
e("div", No, [
|
|
1830
1946
|
e("div", {
|
|
1831
1947
|
style: { "font-family": "book antiqua, palatino, serif" },
|
|
1832
|
-
onClick: t[
|
|
1948
|
+
onClick: t[28] || (t[28] = () => y("font-family", "book antiqua, palatino, serif"))
|
|
1833
1949
|
}, " Book Antiqua")
|
|
1834
1950
|
]),
|
|
1835
|
-
|
|
1951
|
+
jo
|
|
1836
1952
|
]),
|
|
1837
|
-
e("div",
|
|
1838
|
-
e("div",
|
|
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[
|
|
1957
|
+
onClick: t[29] || (t[29] = () => y("font-family", 'comic sans ms", sans-serif'))
|
|
1842
1958
|
}, " Comic Sans MS")
|
|
1843
1959
|
]),
|
|
1844
|
-
|
|
1960
|
+
Vo
|
|
1845
1961
|
]),
|
|
1846
|
-
e("div",
|
|
1847
|
-
e("div",
|
|
1962
|
+
e("div", Oo, [
|
|
1963
|
+
e("div", Go, [
|
|
1848
1964
|
e("div", {
|
|
1849
1965
|
style: { "font-family": "courier new, courier, monospace" },
|
|
1850
|
-
onClick: t[
|
|
1966
|
+
onClick: t[30] || (t[30] = () => y("font-family", " courier new, courier, monospace;"))
|
|
1851
1967
|
}, " Courier New")
|
|
1852
1968
|
]),
|
|
1853
|
-
|
|
1969
|
+
Wo
|
|
1854
1970
|
]),
|
|
1855
|
-
e("div",
|
|
1856
|
-
e("div",
|
|
1971
|
+
e("div", Po, [
|
|
1972
|
+
e("div", Xo, [
|
|
1857
1973
|
e("div", {
|
|
1858
1974
|
style: { "font-family": "georgia, palatino, serif" },
|
|
1859
|
-
onClick: t[
|
|
1975
|
+
onClick: t[31] || (t[31] = () => y("font-family", " georgia, palatino, serif"))
|
|
1860
1976
|
}, "Georgia ")
|
|
1861
1977
|
]),
|
|
1862
|
-
|
|
1978
|
+
Uo
|
|
1863
1979
|
]),
|
|
1864
|
-
e("div",
|
|
1865
|
-
e("div",
|
|
1980
|
+
e("div", qo, [
|
|
1981
|
+
e("div", Yo, [
|
|
1866
1982
|
e("div", {
|
|
1867
1983
|
style: { "font-family": "helvetica, arial, sans-serif" },
|
|
1868
|
-
onClick: t[
|
|
1984
|
+
onClick: t[32] || (t[32] = () => y("font-family", " helvetica, arial, sans-serif"))
|
|
1869
1985
|
}, " Helvetica")
|
|
1870
1986
|
]),
|
|
1871
|
-
|
|
1987
|
+
Ko
|
|
1872
1988
|
]),
|
|
1873
|
-
e("div",
|
|
1874
|
-
e("div",
|
|
1989
|
+
e("div", Jo, [
|
|
1990
|
+
e("div", Qo, [
|
|
1875
1991
|
e("div", {
|
|
1876
1992
|
style: { "font-family": "impact, sans-serif" },
|
|
1877
|
-
onClick: t[
|
|
1993
|
+
onClick: t[33] || (t[33] = () => y("font-family", " impact, sans-serif"))
|
|
1878
1994
|
}, "Impact")
|
|
1879
1995
|
]),
|
|
1880
|
-
|
|
1996
|
+
en
|
|
1881
1997
|
]),
|
|
1882
|
-
e("div",
|
|
1883
|
-
e("div",
|
|
1998
|
+
e("div", tn, [
|
|
1999
|
+
e("div", on, [
|
|
1884
2000
|
e("div", {
|
|
1885
2001
|
style: { "font-family": "symbol" },
|
|
1886
|
-
onClick: t[
|
|
2002
|
+
onClick: t[34] || (t[34] = () => y("font-family", " symbol"))
|
|
1887
2003
|
}, "Symbol")
|
|
1888
2004
|
]),
|
|
1889
|
-
|
|
2005
|
+
nn
|
|
1890
2006
|
]),
|
|
1891
|
-
e("div",
|
|
1892
|
-
e("div",
|
|
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[
|
|
2011
|
+
onClick: t[35] || (t[35] = () => y("font-family", " tahoma, arial, helvetica, sans-serif"))
|
|
1896
2012
|
}, " Tahoma")
|
|
1897
2013
|
]),
|
|
1898
|
-
|
|
2014
|
+
an
|
|
1899
2015
|
]),
|
|
1900
|
-
e("div",
|
|
1901
|
-
e("div",
|
|
2016
|
+
e("div", rn, [
|
|
2017
|
+
e("div", dn, [
|
|
1902
2018
|
e("div", {
|
|
1903
2019
|
style: { "font-family": "terminal, monaco, monospace" },
|
|
1904
|
-
onClick: t[
|
|
2020
|
+
onClick: t[36] || (t[36] = () => y("font-family", " terminal, monaco, monospace"))
|
|
1905
2021
|
}, "Terminal ")
|
|
1906
2022
|
]),
|
|
1907
|
-
|
|
2023
|
+
cn
|
|
1908
2024
|
]),
|
|
1909
|
-
e("div",
|
|
1910
|
-
e("div",
|
|
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[
|
|
2029
|
+
onClick: t[37] || (t[37] = () => y("font-family", " times new roman, times, serif"))
|
|
1914
2030
|
}, " Times New Roman")
|
|
1915
2031
|
]),
|
|
1916
|
-
|
|
2032
|
+
pn
|
|
1917
2033
|
]),
|
|
1918
|
-
e("div",
|
|
1919
|
-
e("div",
|
|
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[
|
|
2038
|
+
onClick: t[38] || (t[38] = () => y("font-family", " trebuchet ms, geneva, sans-serif"))
|
|
1923
2039
|
}, " Trebuchet MS")
|
|
1924
2040
|
]),
|
|
1925
|
-
|
|
2041
|
+
gn
|
|
1926
2042
|
]),
|
|
1927
|
-
e("div",
|
|
1928
|
-
e("div",
|
|
2043
|
+
e("div", vn, [
|
|
2044
|
+
e("div", xn, [
|
|
1929
2045
|
e("div", {
|
|
1930
2046
|
style: { "font-family": "verdana, geneva, sans-serif" },
|
|
1931
|
-
onClick: t[
|
|
2047
|
+
onClick: t[39] || (t[39] = () => y("font-family", " verdana, geneva, sans-serif"))
|
|
1932
2048
|
}, "Verdana ")
|
|
1933
2049
|
]),
|
|
1934
|
-
|
|
2050
|
+
yn
|
|
1935
2051
|
]),
|
|
1936
|
-
|
|
1937
|
-
|
|
2052
|
+
bn,
|
|
2053
|
+
_n
|
|
1938
2054
|
])
|
|
1939
2055
|
])
|
|
1940
2056
|
])
|
|
1941
2057
|
])
|
|
1942
2058
|
])
|
|
1943
2059
|
]),
|
|
1944
|
-
e("div",
|
|
2060
|
+
e("div", wn, [
|
|
1945
2061
|
e("button", {
|
|
1946
2062
|
style: { flex: "1", margin: "0 4px", width: "auto" },
|
|
1947
|
-
onClick: t[
|
|
1948
|
-
},
|
|
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[
|
|
1952
|
-
},
|
|
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[
|
|
1956
|
-
},
|
|
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[
|
|
1960
|
-
},
|
|
2075
|
+
onClick: t[43] || (t[43] = (i) => _("text-align", "start", "", "div"))
|
|
2076
|
+
}, zn)
|
|
1961
2077
|
]),
|
|
1962
|
-
e("div",
|
|
1963
|
-
|
|
1964
|
-
e("div",
|
|
1965
|
-
e("div",
|
|
2078
|
+
e("div", Mn, [
|
|
2079
|
+
Tn,
|
|
2080
|
+
e("div", Hn, [
|
|
2081
|
+
e("div", Rn, [
|
|
1966
2082
|
e("div", {
|
|
1967
|
-
onClick: t[
|
|
1968
|
-
},
|
|
2083
|
+
onClick: t[44] || (t[44] = (i) => P(3, "disc"))
|
|
2084
|
+
}, In),
|
|
1969
2085
|
e("div", {
|
|
1970
|
-
onClick: t[
|
|
1971
|
-
},
|
|
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[
|
|
1976
|
-
},
|
|
2091
|
+
onClick: t[46] || (t[46] = (i) => P())
|
|
2092
|
+
}, Zn)
|
|
1977
2093
|
]),
|
|
1978
2094
|
e("div", {
|
|
1979
|
-
onClick: t[
|
|
1980
|
-
},
|
|
2095
|
+
onClick: t[47] || (t[47] = (i) => P(3, "upper-latin"))
|
|
2096
|
+
}, Vn)
|
|
1981
2097
|
])
|
|
1982
2098
|
])
|
|
1983
2099
|
])
|
|
1984
2100
|
]),
|
|
1985
|
-
e("div",
|
|
1986
|
-
Q(
|
|
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[
|
|
1991
|
-
},
|
|
2106
|
+
onClick: t[48] || (t[48] = (i) => w())
|
|
2107
|
+
}, Wn),
|
|
1992
2108
|
e("div", {
|
|
1993
|
-
onClick: t[
|
|
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
|
-
},
|
|
2112
|
+
}, Xn),
|
|
1997
2113
|
e("div", {
|
|
1998
|
-
onClick: t[
|
|
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
|
-
},
|
|
2117
|
+
}, qn),
|
|
2002
2118
|
e("div", {
|
|
2003
|
-
onClick: t[
|
|
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",
|
|
2008
|
-
(
|
|
2123
|
+
e("i", Yn, [
|
|
2124
|
+
(R(), $("svg", Kn, ti))
|
|
2009
2125
|
])
|
|
2010
2126
|
]),
|
|
2011
2127
|
e("div", {
|
|
2012
|
-
onClick: t[
|
|
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
|
-
},
|
|
2131
|
+
}, ni),
|
|
2016
2132
|
e("div", {
|
|
2017
|
-
onClick: t[
|
|
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
|
-
},
|
|
2136
|
+
}, si),
|
|
2021
2137
|
e("div", {
|
|
2022
|
-
onClick: t[
|
|
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
|
-
},
|
|
2026
|
-
e("div",
|
|
2027
|
-
|
|
2028
|
-
e("div",
|
|
2029
|
-
e("div",
|
|
2030
|
-
(
|
|
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:
|
|
2033
|
-
onClick: (
|
|
2034
|
-
}, null, 12,
|
|
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",
|
|
2039
|
-
|
|
2040
|
-
e("div",
|
|
2041
|
-
e("div",
|
|
2042
|
-
(
|
|
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:
|
|
2045
|
-
onClick: (
|
|
2046
|
-
}, null, 12,
|
|
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
|
-
|
|
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
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
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:
|
|
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",
|
|
2067
|
-
|
|
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:
|
|
2070
|
-
innerHTML:
|
|
2071
|
-
onMouseup: t[
|
|
2072
|
-
onKeyup: t[
|
|
2073
|
-
|
|
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:
|
|
2221
|
+
ref: n,
|
|
2077
2222
|
class: "editor pom-editing-area mt-1 border-gray-300",
|
|
2078
|
-
onInput:
|
|
2223
|
+
onInput: k,
|
|
2079
2224
|
contenteditable: "true",
|
|
2080
2225
|
id: "editor",
|
|
2081
2226
|
style: { height: "100%", width: "100%", border: "none" }
|
|
2082
|
-
}, null, 40,
|
|
2227
|
+
}, null, 40, Ei))
|
|
2083
2228
|
])
|
|
2084
2229
|
], 512),
|
|
2085
|
-
|
|
2230
|
+
o.TextOnly != "true" ? (R(), $("div", Li, [
|
|
2086
2231
|
e("div", {
|
|
2087
2232
|
class: "hover:bg-gray-200",
|
|
2088
|
-
onClick: t[
|
|
2089
|
-
},
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
], 64));
|
|
2233
|
+
onClick: t[62] || (t[62] = (i) => Z())
|
|
2234
|
+
}, Ai),
|
|
2235
|
+
zi,
|
|
2236
|
+
Mi
|
|
2237
|
+
])) : ve("", !0)
|
|
2238
|
+
]));
|
|
2095
2239
|
}
|
|
2096
|
-
},
|
|
2240
|
+
}, Ri = /* @__PURE__ */ Ne(Ti, [["__scopeId", "data-v-df48f6af"]]);
|
|
2097
2241
|
export {
|
|
2098
|
-
|
|
2242
|
+
Ri as default
|
|
2099
2243
|
};
|