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