pom-text-editor 0.2.27 → 0.2.29

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,3035 +0,0 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.heading{content:"H"}#pom-texedito-container div ::selection{background:#5986e7;color:#000}#pom-texedito-container p ::selection{background:#8ae74b;color:#000}#pom-texedito-container a ::selection{background:#5986e7;color:#000}#pom-texedito-container img ::selection{background:#5edba0;color:#000}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;position:relative!important;display:inline-block;cursor:pointer}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.elemeSetDropDown{box-shadow:9px 5px 42px -14px #000000b8;-webkit-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);-moz-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);border-radius:10px;border:#33323222 .1px solid}.color-container{display:none;box-shadow:0 4px 8px #0000001a;padding:14px;position:absolute;left:0;z-index:100;background-color:#fff;width:19vw;height:30vh!important;overflow:auto;top:28px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts:hover{border:#c8c8c821 1px solid;background:#8d8c8c0a;color:#000;box-shadow:4px 14px 28px -15px #2c2c2cbb;-moz-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734);-webkit-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734)}.pom-editor-menu:hover{display:block!important}.pom-editor-menu{display:none!important;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:30px;height:30px;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:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor:focus:before{content:none}.table-picker-wrapper{position:relative;display:inline-block}.table-picker-trigger{cursor:pointer;display:flex;align-items:center}.table-picker-container{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{display:block}.table-picker-grid{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div:hover{background-color:#f8f6f6;border:0}.table-dimensions{font-size:12px;color:#333}.pomXEditor{border:1px;border-style:solid;border-color:#6972734e}#editor:focus{outline:none;border:none}.pom-table-editor-container{display:flex}.pom-table-editor-container a{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a:link{color:#00f}.pom-table-editor-container a:visited{color:purple}.pom-table-editor-container a:hover{color:red;text-decoration:none}.pom-table-editor-container a:active{color:orange}@media print{.hideonprint{display:none!important}}/*!\n * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2024 Fonticons, Inc.\n */.Image_dropped_pom{background:#adacacb4;border-radius:3px;margin:3px;z-index:100;box-shadow:10px 39px 90px 30px #664a4a42;-webkit-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);-moz-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);box-sizing:border-box}.Image_dropped_pom *:hover{background:#a14b1a9f;color:#fff;border:none;border-bottom:2px solid white;box-shadow:0 6px 6px #00000042,0 10px 20px #00000030}.imageClosingBtn{margin:0;position:absolute;top:-3px;right:-3px;bottom:0;z-index:101;color:red;background:#cd5a5e47;width:14px;height:15px;border:1px solid #ccc2c2;text-align:center;text-size-adjust:auto}.pom-main-element-container .editor[data-v-c6058be1]: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-c6058be1]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-c6058be1]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-c6058be1]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-c6058be1]{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-c6058be1]{display:block}.pom-main-element-container .table-picker-grid[data-v-c6058be1]{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-c6058be1]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-c6058be1]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-c6058be1]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-c6058be1]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-c6058be1]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-c6058be1]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:active{color:orange}@media print{.hideonprint[data-v-c6058be1]{display:none!important}[data-v-c6058be1]{overflow:hidden}}.pom-main-element-container .editor[data-v-c6058be1]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-c6058be1]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- import { ref, onMounted, openBlock, createElementBlock, createElementVNode, unref, renderSlot, Fragment, renderList, normalizeStyle, toDisplayString, createCommentVNode, nextTick, pushScopeId, popScopeId, createStaticVNode, createTextVNode } from "vue";
3
- function updateCursorInfo() {
4
- const selection = window.getSelection();
5
- if (selection.rangeCount > 0) {
6
- const range = selection.getRangeAt(0);
7
- const cursorPosition = range.startOffset;
8
- if (document.getElementById("cursorPosition")) {
9
- document.getElementById("cursorPosition").textContent = cursorPosition;
10
- const textNode = range.startContainer;
11
- if (textNode.nodeType === Node.TEXT_NODE) {
12
- const textAtCursor = textNode.textContent.substring(cursorPosition, cursorPosition + 1);
13
- document.getElementById("textAtCursor").textContent = textAtCursor;
14
- } else {
15
- document.getElementById("textAtCursor").textContent = "No text here";
16
- }
17
- }
18
- }
19
- }
20
- function saveCursorPosition() {
21
- const selection = window.getSelection();
22
- if (selection.rangeCount > 0) {
23
- return { range: selection.getRangeAt(0).cloneRange(), selection };
24
- }
25
- }
26
- function initResize(e) {
27
- e.preventDefault();
28
- const resizer = e.target;
29
- const container = resizer.parentElement;
30
- const startX = e.clientX;
31
- const startY = e.clientY;
32
- const startWidth = parseFloat(window.getComputedStyle(container).width);
33
- const startHeight = parseFloat(window.getComputedStyle(container).height);
34
- function onMouseMove(e2) {
35
- const dx = e2.clientX - startX;
36
- const dy = e2.clientY - startY;
37
- container.style.width = `${startWidth + dx}px`;
38
- container.style.height = `${startHeight + dy}px`;
39
- container.style.minWidth = "50px";
40
- container.style.minHeight = "50px";
41
- const img = container.querySelector("img");
42
- if (img)
43
- img.style.width = "100%";
44
- }
45
- function onMouseUp() {
46
- document.removeEventListener("mousemove", onMouseMove);
47
- document.removeEventListener("mouseup", onMouseUp);
48
- }
49
- document.addEventListener("mousemove", onMouseMove);
50
- document.addEventListener("mouseup", onMouseUp);
51
- }
52
- function insertNewLineAtCursor(editor2) {
53
- const spaceAfter = document.createElement("div");
54
- spaceAfter.textContent = "NeW line ";
55
- editor2.appendChild(spaceAfter);
56
- spaceAfter.focus();
57
- }
58
- function removeAllTables(hide = false, tables = document.getElementsByClassName("pom-table-editor-container")) {
59
- tables = Array.from(tables);
60
- tables.forEach((table) => {
61
- if (hide) {
62
- const display = table.style.display === "flex" ? "none" : "flex";
63
- table.style.display = display;
64
- return;
65
- }
66
- table.remove();
67
- });
68
- }
69
- function scopeOutTheUserDataReutur(printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = ".hideonprint") {
70
- const printWindow = window.open("", "", "height=900,width=800");
71
- printWindow.document.write("<html><head><title>Print</title>");
72
- printWindow.document.write(`<style>
73
- ${elementsTohide} {
74
- display: none;
75
- }
76
-
77
- @media print {
78
- ${elementsTohide} {
79
- display: none;
80
- }
81
- }
82
- .pom-4-imageContainer {
83
- display: block !important;
84
- }
85
- </style>`);
86
- printWindow.document.write("</head><body>");
87
- printWindow.document.write(printableContent);
88
- printWindow.document.write("</body></html>");
89
- printWindow.document.close();
90
- return printWindow;
91
- }
92
- function exportUserHtmlForAtheUse(printableContent = document.getElementById("pom-texedito-container")) {
93
- const returnData = printableContent.innerHTML;
94
- return returnData;
95
- }
96
- function previewAndPrint(print = true, printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = "hideonprint") {
97
- const printableContent2 = printableContent;
98
- const printWindow = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
99
- if (print) {
100
- printWindow.focus();
101
- printWindow.onload = function() {
102
- setTimeout(() => {
103
- printWindow.print();
104
- }, 4e3);
105
- };
106
- printWindow.onafterprint = function() {
107
- printWindow.close();
108
- };
109
- }
110
- }
111
- function OnmountedTableActionActivation() {
112
- const elmnt = document.querySelectorAll(".pom-table-col-resizer");
113
- elmnt.forEach((d) => {
114
- d.addEventListener("mousedown", initResize);
115
- });
116
- const table2 = document.querySelectorAll("table");
117
- table2.forEach((d) => {
118
- d.addEventListener("contextmenu", function(e) {
119
- e.preventDefault();
120
- const container = e.target.parentElement;
121
- createCustomContextMenu(e, d, container);
122
- });
123
- });
124
- }
125
- function initResizeImage(e, type, imgResizer, imgElement) {
126
- e.preventDefault();
127
- const currentResizer = type;
128
- window.addEventListener("mousemove", resizeHandler);
129
- window.addEventListener("mouseup", stopResize);
130
- function resizeHandler(e2) {
131
- resize(e2, currentResizer, imgResizer, imgElement);
132
- }
133
- function stopResize() {
134
- window.removeEventListener("mousemove", resizeHandler);
135
- window.removeEventListener("mouseup", stopResize);
136
- }
137
- }
138
- function resize(e, currentResizer, imgResizer, imgElement) {
139
- const rect = imgResizer.getBoundingClientRect();
140
- if (currentResizer === "width" || currentResizer === "both") {
141
- const newWidth = e.clientX - rect.left;
142
- imgResizer.style.width = newWidth + "px";
143
- imgElement.style.width = newWidth + "px";
144
- }
145
- if (currentResizer === "height" || currentResizer === "both") {
146
- const newHeight = e.clientY - rect.top;
147
- imgElement.style.height = newHeight + "px";
148
- }
149
- }
150
- function ImageResizing() {
151
- const widthResizers = document.getElementsByClassName("widthResizer");
152
- Array.from(widthResizers).forEach((item, i) => {
153
- const imgResizer = document.getElementsByClassName("resizer-image-dropped")[i];
154
- const imgElement = document.getElementsByClassName("resizable-image")[i];
155
- const heightResizer = document.getElementsByClassName("heightResizer")[i];
156
- const cornerResizer = document.getElementsByClassName("cornerResizer")[i];
157
- if (item) {
158
- item.addEventListener("mousedown", (e) => initResizeImage(e, "width", imgResizer, imgElement));
159
- }
160
- if (heightResizer) {
161
- heightResizer.addEventListener("mousedown", (e) => initResizeImage(e, "height", imgResizer, imgElement));
162
- }
163
- if (cornerResizer) {
164
- cornerResizer.addEventListener("mousedown", (e) => initResizeImage(e, "both", imgResizer, imgElement));
165
- }
166
- });
167
- }
168
- function editorKeyActions(savedRange2, editorRef) {
169
- const myDiv = document.getElementById("editor");
170
- myDiv.addEventListener("keydown", function(event) {
171
- var _a;
172
- const rng = (_a = savedRange2.value) == null ? void 0 : _a["range"];
173
- if (event.code === "Enter") {
174
- const parentElement = rng.commonAncestorContainer;
175
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
176
- const styleValu = parentNode.style["float"];
177
- if (styleValu) {
178
- const element = document.createElement("div");
179
- element.innerHTML = parentNode.innerHTML;
180
- parentNode.innerHTML = null;
181
- const spaceAfter = document.createElement("span");
182
- spaceAfter.innerHTML = "";
183
- parentNode.appendChild(element);
184
- }
185
- } else if (event.code === "Tab") {
186
- event.preventDefault();
187
- const spaceBefore = document.createElement("span");
188
- spaceBefore.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;";
189
- rng.insertNode(spaceBefore);
190
- rng.setStartAfter(spaceBefore);
191
- rng.collapse(true);
192
- const sel = window.getSelection();
193
- sel.removeAllRanges();
194
- sel.addRange(rng);
195
- } else if (event.ctrlKey && event.key === "z") {
196
- event.preventDefault();
197
- editorRef.innerHTML = UndoRedo["Undo"]();
198
- } else if (event.ctrlKey && event.key === "y") {
199
- event.preventDefault();
200
- editorRef.innerHTML = UndoRedo["Redo"]();
201
- }
202
- });
203
- }
204
- function offCclicks(event) {
205
- const elements = document.querySelectorAll(".Image_dropped_pom");
206
- elements.forEach((element) => {
207
- if (element.contains(event.target)) {
208
- console.log(element, "qweqwe");
209
- element.style.display = "none";
210
- }
211
- });
212
- }
213
- function handleClickOutside() {
214
- document.addEventListener("click", offCclicks);
215
- }
216
- let savedRange;
217
- function handleMouseClick(editor2, tableDimensions) {
218
- const [columns, rows] = tableDimensions.textContent.split(" x ").map(Number);
219
- insertTableAtCursor(editor2, rows, columns);
220
- }
221
- function handleMouseOver(event, tableDimensions, tablePickerGrid) {
222
- const index = Array.from(tablePickerGrid.children).indexOf(event.target);
223
- const columns = index % 10 + 1;
224
- const rows = Math.floor(index / 10) + 1;
225
- Array.from(tablePickerGrid.children).forEach((item, i) => {
226
- if (i <= index) {
227
- item.style.backgroundColor = "#1f9296";
228
- } else {
229
- item.style.backgroundColor = "#737979";
230
- }
231
- });
232
- tableDimensions.textContent = `${columns} x ${rows}`;
233
- }
234
- function makeTableGridforCreation(savedRangep, editor2, tablePickerGrid, tableDimensions) {
235
- savedRange = savedRangep;
236
- while (tablePickerGrid.firstChild) {
237
- const gridItem = tablePickerGrid.firstChild;
238
- gridItem.removeEventListener("mouseover", handleMouseOver);
239
- gridItem.removeEventListener("click", handleMouseClick);
240
- tablePickerGrid.removeChild(gridItem);
241
- }
242
- for (let i = 0; i < 100; i++) {
243
- const gridItem = document.createElement("div");
244
- gridItem.addEventListener("mouseover", (e) => handleMouseOver(e, tableDimensions, tablePickerGrid));
245
- gridItem.addEventListener("click", () => handleMouseClick(editor2, tableDimensions));
246
- tablePickerGrid.appendChild(gridItem);
247
- }
248
- }
249
- function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
250
- const range = savedRange.range;
251
- if (range) {
252
- const selection = savedRange.selection;
253
- const container = document.createElement("div");
254
- container.classList.add("pom-table-editor-container");
255
- container.style.display = "flex";
256
- const table = document.createElement("table");
257
- table.style.border = "1px solid black";
258
- table.style.borderCollapse = "collapse";
259
- table.classList.add("pom-table-editor");
260
- for (let i = 0; i < numRows; i++) {
261
- const row = document.createElement("tr");
262
- for (let j = 0; j < numCols; j++) {
263
- const cell = document.createElement("td");
264
- cell.style.border = "1px solid black";
265
- cell.style.padding = "5px";
266
- cell.textContent = `Row ${i + 1}, Cell ${j + 1}`;
267
- const resizer = document.createElement("div");
268
- resizer.style.width = "5px";
269
- resizer.style.height = "100%";
270
- resizer.style.position = "absolute";
271
- resizer.style.right = "0";
272
- resizer.style.top = "0";
273
- resizer.style.cursor = "col-resize";
274
- resizer.style.userSelect = "none";
275
- resizer.classList.add("pom-table-col-resizer");
276
- cell.style.position = "relative";
277
- cell.appendChild(resizer);
278
- row.appendChild(cell);
279
- }
280
- table.appendChild(row);
281
- }
282
- container.appendChild(table);
283
- range.deleteContents();
284
- range.insertNode(container);
285
- const firstCell = table.querySelector("td");
286
- const newRange = document.createRange();
287
- newRange.setStart(firstCell, 0);
288
- newRange.collapse(true);
289
- selection.addRange(newRange);
290
- savedRange = newRange.cloneRange();
291
- OnmountedTableActionActivation();
292
- editor2.focus();
293
- return savedRange;
294
- }
295
- }
296
- function createCustomContextMenu(e, table, container) {
297
- const existingMenu = document.getElementById("custom-context-menu");
298
- const existingMenu2 = document.getElementById("custom-context-menu-multipleSeletedTableActions");
299
- if (existingMenu2) {
300
- document.body.removeChild(existingMenu2);
301
- }
302
- if (existingMenu) {
303
- document.body.removeChild(existingMenu);
304
- }
305
- const contextMenu = document.createElement("div");
306
- contextMenu.id = "custom-context-menu";
307
- contextMenu.style.position = "absolute";
308
- contextMenu.style.backgroundColor = "white";
309
- contextMenu.style.border = "1px solid #ccc";
310
- contextMenu.style.padding = "10px";
311
- contextMenu.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
312
- contextMenu.style.zIndex = "1000";
313
- contextMenu.style.left = `${e == null ? void 0 : e.pageX}px`;
314
- contextMenu.style.top = `${e == null ? void 0 : e.pageY}px`;
315
- const multipleSeletedTableActions = document.createElement("div");
316
- multipleSeletedTableActions.id = "custom-context-menu-multipleSeletedTableActions";
317
- multipleSeletedTableActions.style.position = "absolute";
318
- multipleSeletedTableActions.style.backgroundColor = "white";
319
- multipleSeletedTableActions.style.border = "1px solid #ccc";
320
- multipleSeletedTableActions.style.padding = "10px";
321
- multipleSeletedTableActions.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
322
- multipleSeletedTableActions.style.zIndex = "1000";
323
- multipleSeletedTableActions.style.left = `${e == null ? void 0 : e.pageX}px`;
324
- multipleSeletedTableActions.style.top = `${e == null ? void 0 : e.pageY}px`;
325
- function createAMenuContext(contextMenu2, options2) {
326
- options2.forEach((option) => {
327
- const optionElement = document.createElement("div");
328
- optionElement.textContent = option.text;
329
- optionElement.style.cursor = "pointer";
330
- optionElement.addEventListener("click", option.action);
331
- contextMenu2.appendChild(optionElement);
332
- });
333
- document.body.appendChild(contextMenu2);
334
- }
335
- const options = [
336
- { text: "Delete Table", action: () => container.remove() },
337
- {
338
- text: "Select Colum(s)",
339
- action: () => {
340
- {
341
- e.target.classList.add("VaticalheightList");
342
- const rows = table.rows;
343
- const indexHighlighted = [];
344
- for (let i = 0; i < rows.length; i++) {
345
- const cells = rows[i].cells;
346
- for (let j = 0; j < cells.length; j++) {
347
- const td = cells[j];
348
- if (td.classList.contains("VaticalheightList")) {
349
- if (!indexHighlighted.includes(j)) {
350
- indexHighlighted.push(j);
351
- }
352
- }
353
- }
354
- }
355
- for (let i = 0; i < indexHighlighted.length; i++) {
356
- const colIndex = indexHighlighted[i];
357
- for (let row = 0; row < rows.length; row++) {
358
- rows[row].cells[colIndex].classList.add("VaticalheightList");
359
- }
360
- }
361
- const moactions = [
362
- {
363
- text: "SUM All",
364
- action: () => {
365
- const caluObject = {};
366
- const rows2 = table.rows;
367
- for (let i = 0; i < rows2.length; i++) {
368
- const cells = rows2[i].cells;
369
- for (let j = 0; j < cells.length; j++) {
370
- const td = cells[j];
371
- if (td.classList.contains("VaticalheightList")) {
372
- const cellValue = parseFloat(td.innerText);
373
- if (!isNaN(cellValue)) {
374
- if (!caluObject[j]) {
375
- caluObject[j] = 0;
376
- }
377
- caluObject[j] += cellValue;
378
- }
379
- }
380
- }
381
- }
382
- if (table.querySelector("tr.TableHasTotalTr")) {
383
- table.querySelector("tr.TableHasTotalTr").remove();
384
- }
385
- const newRow = document.createElement("tr");
386
- newRow.classList.add("TableHasTotalTr");
387
- const numCols = table.rows[0].cells.length;
388
- for (let j = 0; j < numCols; j++) {
389
- const newCell = document.createElement("td");
390
- newCell.style.border = "1px solid black";
391
- newCell.style.padding = "5px";
392
- newCell.style.alignContent = "center";
393
- newCell.innerHTML = caluObject[j] ? `Total:${caluObject[j]}` : null;
394
- newRow.appendChild(newCell);
395
- }
396
- table.appendChild(newRow);
397
- document.body.removeChild(multipleSeletedTableActions);
398
- }
399
- }
400
- ];
401
- createAMenuContext(multipleSeletedTableActions, moactions);
402
- }
403
- }
404
- },
405
- {
406
- text: "Select Row(s)",
407
- action: () => {
408
- {
409
- e.target.parentElement.classList.add("verticalheightList");
410
- const verticalheightListCalc = table.querySelectorAll(".verticalheightList");
411
- const moactions = [
412
- {
413
- text: "SUM All",
414
- action: () => {
415
- for (let i = 0; i < verticalheightListCalc.length; i++) {
416
- const colIndex = verticalheightListCalc[i];
417
- const verticalTotalOf = colIndex.querySelectorAll("td.vaticalTotal");
418
- verticalTotalOf.forEach((element) => {
419
- element.remove();
420
- });
421
- const getAllTdsInside = colIndex.querySelectorAll("td");
422
- let caluObject = 0;
423
- for (let tdin = 0; tdin < getAllTdsInside.length; tdin++) {
424
- const cellValue = parseFloat(getAllTdsInside[tdin].innerText);
425
- if (!isNaN(cellValue)) {
426
- caluObject += cellValue;
427
- }
428
- }
429
- const creatNewTd = document.createElement("td");
430
- creatNewTd.classList.add("vaticalTotal");
431
- creatNewTd.innerHTML = caluObject ? `Total : ${caluObject}` : null;
432
- creatNewTd.style.border = "1px solid black";
433
- creatNewTd.style.position = "relative";
434
- creatNewTd.style.padding = "5px";
435
- colIndex.appendChild(creatNewTd);
436
- }
437
- document.body.removeChild(multipleSeletedTableActions);
438
- }
439
- }
440
- ];
441
- createAMenuContext(multipleSeletedTableActions, moactions);
442
- }
443
- }
444
- },
445
- {
446
- text: "Toggle Borders",
447
- action: () => {
448
- const hasBorder = table.style.border !== "";
449
- table.style.border = hasBorder ? "none" : "1px solid black";
450
- table.style.borderCollapse = "collapse";
451
- table.querySelectorAll("td").forEach((td) => {
452
- td.style.border = hasBorder ? "none" : "1px solid black";
453
- });
454
- }
455
- },
456
- {
457
- text: "Color Table",
458
- action: () => {
459
- const bgColorInput = document.createElement("input");
460
- bgColorInput.type = "color";
461
- bgColorInput.style.marginTop = "5px";
462
- bgColorInput.addEventListener("input", () => {
463
- table.style.backgroundColor = bgColorInput.value;
464
- });
465
- const textColorInput = document.createElement("input");
466
- textColorInput.type = "color";
467
- textColorInput.style.marginTop = "5px";
468
- textColorInput.addEventListener("input", () => {
469
- table.style.color = textColorInput.value;
470
- });
471
- contextMenu.appendChild(document.createTextNode("Background Color:"));
472
- contextMenu.appendChild(bgColorInput);
473
- contextMenu.appendChild(document.createTextNode("Text Color:"));
474
- contextMenu.appendChild(textColorInput);
475
- }
476
- },
477
- {
478
- text: "Add Row",
479
- action: () => {
480
- const newRow = document.createElement("tr");
481
- const numCols = table.rows[0].cells.length;
482
- for (let j = 0; j < numCols; j++) {
483
- const newCell = document.createElement("td");
484
- newCell.style.border = "1px solid black";
485
- newCell.style.padding = "5px";
486
- newCell.textContent = `Row ${table.rows.length + 1}, Cell ${j + 1}`;
487
- newRow.appendChild(newCell);
488
- }
489
- table.appendChild(newRow);
490
- }
491
- },
492
- {
493
- text: "Add Column",
494
- action: () => {
495
- for (let i = 0; i < table.rows.length; i++) {
496
- const newCell = document.createElement("td");
497
- newCell.style.border = "1px solid black";
498
- newCell.style.padding = "5px";
499
- newCell.textContent = `Row ${i + 1}, Cell ${table.rows[i].cells.length + 1}`;
500
- table.rows[i].appendChild(newCell);
501
- }
502
- }
503
- }
504
- ];
505
- createAMenuContext(contextMenu, options);
506
- document.addEventListener("click", function removeMenu(e2) {
507
- if (contextMenu.id !== "custom-context-menu") {
508
- document.body.removeChild(multipleSeletedTableActions);
509
- document.body.removeChild(multipleSeletedTableActions);
510
- }
511
- if (contextMenu) {
512
- document.body.removeChild(contextMenu);
513
- }
514
- document.removeEventListener("click", removeMenu);
515
- });
516
- }
517
- function insertElementAtCursor(savedRange2, elementType = "strong", placeholderText = "*bold text here *", attributes = []) {
518
- if (savedRange2) {
519
- const selection = window.getSelection();
520
- selection.removeAllRanges();
521
- selection.addRange(savedRange2);
522
- const range = selection.getRangeAt(0);
523
- const getThehighLighted = `${range.toString()}`.trim();
524
- const highlightedText = range.cloneContents();
525
- const parentElement = range.commonAncestorContainer;
526
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
527
- const tagName = `${parentNode.tagName}`.toLowerCase();
528
- let elm;
529
- let hilightValuesChecks = createHtmlNode(highlightedText);
530
- const spaceAfter = document.createElement("span");
531
- spaceAfter.innerHTML = "&nbsp;&nbsp;&nbsp;";
532
- if ((hilightValuesChecks == null ? void 0 : hilightValuesChecks.includes(elementType)) || tagName == elementType) {
533
- elm = document.createElement("span");
534
- elm.innerHTML = hilightValuesChecks;
535
- console.log(elm, "hilightValuesChecks");
536
- const html = elm.outerHTML.replace(new RegExp(`<${elementType}`, "gi"), "<span").replace(new RegExp(`</${elementType}>`, "gi"), "</span>").replace(new RegExp(spaceAfter.outerHTML, "gi"), " ");
537
- elm.innerHTML = html;
538
- } else {
539
- elm = document.createElement(elementType);
540
- elm.innerHTML = getThehighLighted.length > 0 ? hilightValuesChecks : placeholderText;
541
- }
542
- savedRange2.deleteContents();
543
- savedRange2.insertNode(spaceAfter);
544
- savedRange2.insertNode(elm);
545
- const newRange = document.createRange();
546
- newRange.collapse(true);
547
- newRange.setStartAfter(spaceAfter);
548
- selection.removeAllRanges();
549
- } else {
550
- console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
551
- }
552
- }
553
- function createHtmlNode(htmlString) {
554
- const tempDiv = document.createElement("div");
555
- tempDiv.appendChild(htmlString);
556
- const innerHTML = tempDiv.innerHTML;
557
- return innerHTML;
558
- }
559
- function openInputToFeed(savedRange2, e, element = "span", type = "datetime-local", cssStyle = {}, attributes = []) {
560
- const cleanzefirst = document.getElementById("Pom-openInputToFeed" + type);
561
- if (cleanzefirst)
562
- cleanzefirst.remove();
563
- const div = document.createElement("div");
564
- const dateInput = document.createElement("input");
565
- div.id = "custom-context-menu";
566
- div.style.position = "absolute";
567
- div.style.backgroundColor = "white";
568
- div.style.border = "1px solid #ccc";
569
- div.style.padding = "10px";
570
- div.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
571
- div.style.zIndex = "1000";
572
- div.style.left = `${e == null ? void 0 : e.pageX}px`;
573
- div.style.top = `${e == null ? void 0 : e.pageY}px`;
574
- dateInput.id = "Pom-openInputToFeed" + type;
575
- dateInput.classList.add("Pom-openInputToFeed");
576
- dateInput.type = type;
577
- dateInput.style.cssText = cssStyle;
578
- div.appendChild(dateInput);
579
- const toolbar = document.getElementById("toolbar");
580
- if (toolbar) {
581
- toolbar.appendChild(div);
582
- }
583
- dateInput.addEventListener("change", function() {
584
- const inputValue = `${this.value}`;
585
- if (type == "datetime-local")
586
- insertElementAtCursor(savedRange2, element, inputValue.replace(/T/, " "));
587
- else {
588
- let attrV = [];
589
- for (const key in attributes) {
590
- if (attributes.hasOwnProperty(key)) {
591
- if (key.toLowerCase() === "href") {
592
- attrV.push({ attr: key, value: inputValue });
593
- } else {
594
- const v = attributes[key];
595
- attrV.push({ attr: key, value: v });
596
- }
597
- }
598
- }
599
- insertElementAtCursor(savedRange2, element, "**link Name** ", attrV);
600
- }
601
- div.remove();
602
- window.document.removeEventListener("click", handleDocumentClick);
603
- const elements = document.getElementsByClassName("pom-editor-anchor-tag");
604
- for (let i = 0; i < elements.length; i++) {
605
- elements[i].addEventListener("click", clickLink);
606
- }
607
- });
608
- function handleDocumentClick(event) {
609
- if (!div.contains(event.target)) {
610
- div.remove();
611
- window.document.removeEventListener("click", handleDocumentClick);
612
- }
613
- }
614
- function clickLink(e2) {
615
- e2.preventDefault();
616
- const href = this.href;
617
- window.open(href, "_blank");
618
- window.document.removeEventListener("click", clickLink);
619
- }
620
- }
621
- function changeTextDirection(savedRange2, editor2, style, value, suffix = "", elementType = "span", imageClick = false) {
622
- var _a;
623
- if (!savedRange2) {
624
- console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
625
- return;
626
- }
627
- const floats = {
628
- justify: "left",
629
- none: "left",
630
- end: "right",
631
- start: "left",
632
- center: "left"
633
- };
634
- if (imageClick) {
635
- imageClick.target.parentElement.style.float = `${floats[value]}`;
636
- return;
637
- }
638
- const selection = window.getSelection();
639
- selection.removeAllRanges();
640
- selection.addRange(savedRange2);
641
- const range = selection.getRangeAt(0);
642
- let highlightedText = range.cloneContents();
643
- const parentElement = range.commonAncestorContainer;
644
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
645
- let element;
646
- element = document.createElement(elementType);
647
- const tagName = `${parentNode.tagName}`.toLowerCase();
648
- const incaseImage = parentNode ? (_a = parentNode.classList) == null ? void 0 : _a.contains("resizer-image-dropped") : null;
649
- if (tagName == "ul" || incaseImage || tagName == "img") {
650
- parentNode.style.float = `${floats[value]}`;
651
- parentNode.style.fontWeight = "bold";
652
- return;
653
- }
654
- if (parentNode.id == "editor") {
655
- savedRange2.deleteContents();
656
- } else {
657
- savedRange2.deleteContents();
658
- }
659
- const innerElement = document.createElement("div");
660
- innerElement.appendChild(highlightedText);
661
- element.appendChild(innerElement);
662
- const currentStyle = element.style[style] || "";
663
- const regex = new RegExp(suffix, "ig");
664
- const rp = value.replace(regex, "") + suffix;
665
- if (currentStyle.includes(rp)) {
666
- element.style[style] = currentStyle.replace(rp, "");
667
- } else {
668
- element.style[style] = (currentStyle + rp).trim();
669
- }
670
- element.style["margin-left"] = "4px";
671
- element.style["margin-right"] = "4px";
672
- const spaceBefore = document.createElement("span");
673
- const spaceAfter = document.createElement("span");
674
- spaceBefore.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;";
675
- spaceAfter.innerHTML = "&nbsp;&nbsp;";
676
- savedRange2.insertNode(spaceBefore);
677
- savedRange2.insertNode(element);
678
- savedRange2.insertNode(spaceAfter);
679
- const newRange = document.createRange();
680
- newRange.collapse(true);
681
- selection.removeAllRanges();
682
- selection.addRange(newRange);
683
- savedRange2 = newRange.cloneRange();
684
- editor2.focus();
685
- }
686
- function insertUnorderedListAtCursor(savedRange2, numRows = 2, liststyle = "list-style") {
687
- if (savedRange2) {
688
- const selection = window.getSelection();
689
- selection.removeAllRanges();
690
- selection.addRange(savedRange2);
691
- const row = document.createElement("ul");
692
- row.style.listStyle = liststyle;
693
- row.style.paddingLeft = "73px";
694
- for (let i = 0; i < numRows; i++) {
695
- const cell = document.createElement("li");
696
- cell.style.padding = "5px";
697
- cell.textContent = `li ${i + 1}, `;
698
- cell.style.position = "relative";
699
- row.appendChild(cell);
700
- }
701
- savedRange2.deleteContents();
702
- savedRange2.insertNode(row);
703
- const firstCell = row.querySelector("td");
704
- const newRange = document.createRange();
705
- newRange.setStart(firstCell, 0);
706
- newRange.collapse(true);
707
- selection.removeAllRanges();
708
- selection.addRange(newRange);
709
- savedRange2 = newRange.cloneRange();
710
- editor.focus();
711
- }
712
- }
713
- const UndoRedo = {
714
- currentIndex: 0,
715
- // Tracks the current state of the text/image by index
716
- StoredText: null,
717
- // Tracks the current state of the text/image
718
- storeRecovery: [],
719
- // Holds the history of changes for undo
720
- redoStack: [],
721
- // Holds the history of undone changes for redo
722
- /**
723
- * Saves the current state of text/image and updates the undo/redo stacks
724
- * @param {string} MyCurrentText - The current text or base64 image.
725
- */
726
- SaveCurrentChanges: function(MyCurrentText = "") {
727
- if (typeof MyCurrentText !== "string") {
728
- console.error("SaveCurrentChanges expects a string value.");
729
- return;
730
- }
731
- if (this.storeRecovery.length && this.storeRecovery[this.currentIndex - 1] === MyCurrentText) {
732
- console.log("No changes to save.");
733
- return;
734
- }
735
- this.storeRecovery = this.storeRecovery.slice(0, this.currentIndex);
736
- this.storeRecovery.push(MyCurrentText);
737
- this.currentIndex = this.storeRecovery.length;
738
- if (this.storeRecovery.length > 5e4) {
739
- this.storeRecovery = this.storeRecovery.slice(this.storeRecovery.length - 5e4);
740
- this.currentIndex = this.storeRecovery.length;
741
- }
742
- },
743
- /**
744
- * Reverts the last saved change (undo).
745
- * @returns {string|null} - The previous state of the text/image or null if no undo is possible.
746
- */
747
- Undo: function() {
748
- if (this.currentIndex === 0) {
749
- console.log("Nothing to undo");
750
- return null;
751
- }
752
- this.redoStack.push(this.storeRecovery[this.currentIndex - 1]);
753
- this.currentIndex--;
754
- return this.storeRecovery[this.currentIndex] || null;
755
- },
756
- /**
757
- * Re-applies the most recently undone change (redo).
758
- * @returns {string|null} - The redone state of the text/image or null if no redo is possible.
759
- */
760
- Redo: function() {
761
- if (this.redoStack.length === 0) {
762
- console.log("Nothing to redo");
763
- return null;
764
- }
765
- const lastUndo = this.redoStack.pop();
766
- this.storeRecovery.push(lastUndo);
767
- this.currentIndex++;
768
- return lastUndo;
769
- }
770
- };
771
- function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", elementType = "span") {
772
- if (!savedRange2) {
773
- console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
774
- return;
775
- }
776
- const selection = window.getSelection();
777
- selection.removeAllRanges();
778
- selection.addRange(savedRange2);
779
- const range = selection.getRangeAt(0);
780
- const highlightedText = range.cloneContents();
781
- const parentElement = range.commonAncestorContainer;
782
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
783
- const tagName = parentNode.tagName.toLowerCase();
784
- let textToReplace;
785
- const styleLikeSoJustReplace = ["font-sze"];
786
- if (parentNode && tagName === elementType) {
787
- const existingStyle = parentNode.getAttribute("style") || null;
788
- if (existingStyle) {
789
- const rege = new RegExp(`${style}:\\s*${value};?`, "g");
790
- const exists = rege.test(existingStyle);
791
- let updatedStyles;
792
- if (styleLikeSoJustReplace.includes(style) || !exists)
793
- parentNode.style[style] = value;
794
- else {
795
- updatedStyles = existingStyle.replace(rege, "");
796
- if (exists)
797
- parentNode.setAttribute("style", updatedStyles);
798
- }
799
- }
800
- return;
801
- } else {
802
- const element = document.createElement(elementType);
803
- element.style[style] = value;
804
- element.appendChild(highlightedText);
805
- textToReplace = element.innerHTML;
806
- savedRange2.deleteContents();
807
- element.innerHTML = textToReplace;
808
- savedRange2.insertNode(element);
809
- const newRange = document.createRange();
810
- newRange.collapse(true);
811
- selection.removeAllRanges();
812
- selection.addRange(newRange);
813
- savedRange2 = newRange.cloneRange();
814
- }
815
- }
816
- function insertElementAtCursorHtags(savedRange2, elementType = "h6", placeholderText = "*Header text*", attributes = []) {
817
- if (savedRange2) {
818
- const selection = window.getSelection();
819
- selection.removeAllRanges();
820
- selection.addRange(savedRange2);
821
- const range = selection.getRangeAt(0);
822
- const getTheHighlighted = `${range.toString()}`.trim();
823
- const highlightedText = range.cloneContents();
824
- const parentElement = range.commonAncestorContainer;
825
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
826
- const tagName = `${parentNode.tagName}`.toLowerCase();
827
- const FontSize = {
828
- h1: { "font-family": "'Arial', sans-serif", "font-size": "3rem", "font-weight": "bold", "color": "#333", "letter-spacing": "2px" },
829
- h2: { "font-family": "'Georgia', serif", "font-size": "2rem", "color": "#444", "font-weight": 600, "line-height": "1.4" },
830
- h3: { "font-family": "'Roboto', sans-serif", "font-size": "1.75rem", "color": "#34495e", "font-weight": 500, "text-align": "center", "line-height": "1.4" },
831
- h4: { "font-family": "'Roboto', sans-serif", "font-size": "1.25rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
832
- h5: { "font-family": "'Roboto', sans-serif", "font-size": "1rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
833
- h6: { "font-family": "'Roboto', sans-serif", "font-size": ".5rem", "color": "#34495e", "font-weight": 200, "text-align": "center", "line-height": "1.4" }
834
- };
835
- const styles = FontSize[elementType];
836
- if (parentNode && tagName === "span") {
837
- const existingStyle = parentNode.getAttribute("style") || null;
838
- if (existingStyle) {
839
- parentNode.removeAttribute("style");
840
- } else {
841
- freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
842
- }
843
- } else {
844
- freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
845
- }
846
- selection.removeAllRanges();
847
- } else {
848
- console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
849
- }
850
- }
851
- function freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted) {
852
- let elm = document.createElement("span");
853
- elm.contenteditable = false;
854
- elm.appendChild(highlightedText);
855
- Object.keys(styles).forEach((property) => {
856
- elm.style[property] = styles[property];
857
- });
858
- elm.innerHTML = getTheHighlighted.length > 0 ? elm.innerHTML : placeholderText;
859
- savedRange2.deleteContents();
860
- savedRange2.insertNode(elm);
861
- }
862
- function styleCss() {
863
- return `<style scoped>
864
- .resizer-image-dropped > div[contenteditable="false"] {
865
- display: none;
866
- }
867
- .resizer-image-dropped{
868
- border:none !important
869
- }
870
-
871
- .table-picker-wrapper {
872
- position: relative;
873
- display: inline-block;
874
- }
875
-
876
- .table-picker-trigger {
877
- cursor: pointer;
878
- display: flex;
879
- align-items: center;
880
- }
881
-
882
- .table-picker-container {
883
- position: absolute;
884
- top: 10%;
885
- right: 90;
886
- margin-top: 10px;
887
- padding: 10px;
888
- border: 0;
889
- background-color: rgb(244, 244, 244);
890
- cursor: pointer;
891
- user-select: none;
892
- width: max-content;
893
- display: none;
894
- left: 85% !important;
895
- top: -7px;
896
- /* Hidden by default */
897
- }
898
-
899
- .table-picker-container.hidden {
900
- /* display: none; */
901
- }
902
-
903
- .table-picker-wrapper:hover .table-picker-container {
904
- display: block;
905
- /* Show on hover */
906
- }
907
-
908
- .table-picker-grid {
909
- display: grid;
910
- grid-template-columns: repeat(10, 20px);
911
- grid-template-rows: repeat(10, 20px);
912
- gap: 2px;
913
- margin-bottom: 10px;
914
- }
915
-
916
- .table-picker-grid div {
917
- width: 20px;
918
- height: 20px;
919
- border: 1px solid #ddd;
920
- background-color: #efa153ce;
921
- }
922
-
923
- .table-picker-grid div:hover {
924
- background-color: rgb(248, 246, 246);
925
- border: 0;
926
- }
927
-
928
- .table-dimensions {
929
- font-size: 12px;
930
- color: #333;
931
- }
932
-
933
- .pomXEditor {
934
- border: 1px;
935
- border-style: solid;
936
- border-color: #6972734e;
937
- }
938
-
939
- #editor:focus {
940
- outline: none;
941
- border: none;
942
- /* Removes any custom borders if applied */
943
- }
944
-
945
- .pom-table-editor-container {
946
- display: flex;
947
- }
948
-
949
- a {
950
- color: blue;
951
- /* Default color of the link text */
952
- text-decoration: underline;
953
- /* Underline the link text by default */
954
- cursor: pointer;
955
- /* Cursor changes to a pointer on hover */
956
- }
957
-
958
- /* Additional pseudo-classes for different link states */
959
- a:link {
960
- color: blue;
961
- /* Color of unvisited link */
962
- }
963
-
964
- a:visited {
965
- color: purple;
966
- /* Color of visited link */
967
- }
968
-
969
- a:hover {
970
- color: red;
971
- /* Color when the link is hovered over */
972
- text-decoration: none;
973
- /* Typically remove underline on hover */
974
- }
975
-
976
- a:active {
977
- color: orange;
978
- /* Color when the link is clicked */
979
- }
980
-
981
- @media print {
982
- .print-container {
983
- /* width: 100%;
984
- height: auto;
985
- overflow: hidden;
986
- page-break-inside: avoid;
987
- margin: 0;
988
- padding: 0;
989
- box-sizing: border-box; */
990
- }
991
-
992
- /* Optional: Set the font size for better print readability */
993
- /* body {
994
- font-size: 12pt;
995
- } */
996
- /* Optional: Ensure images or other elements fit within the print area */
997
- /* img {
998
- max-width: 100%;
999
- height: auto;
1000
- } */
1001
- .hideonprint {
1002
- display: none !important;
1003
- }
1004
-
1005
- * {
1006
- overflow: hidden;
1007
- /* Hide scrollbar */
1008
- }
1009
- }
1010
- </style>`;
1011
- }
1012
- const _export_sfc = (sfc, props) => {
1013
- const target = sfc.__vccOpts || sfc;
1014
- for (const [key, val] of props) {
1015
- target[key] = val;
1016
- }
1017
- return target;
1018
- };
1019
- const _withScopeId = (n) => (pushScopeId("data-v-c6058be1"), n = n(), popScopeId(), n);
1020
- const _hoisted_1 = { class: "pom-main-element-container" };
1021
- const _hoisted_2 = {
1022
- style: { "width": "100%" },
1023
- id: "fullTextEditor"
1024
- };
1025
- const _hoisted_3 = {
1026
- class: "hideonprint bg-gray-100 items-center",
1027
- id: "toolbar"
1028
- };
1029
- const _hoisted_4 = { class: "flex flex space-x-2 items-center" };
1030
- const _hoisted_5 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
1031
- const _hoisted_6 = { class: "relative inline-block text-left group z-10 border-0" };
1032
- const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1033
- /* @__PURE__ */ createElementVNode("button", {
1034
- type: "button",
1035
- class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1036
- id: "menu-button",
1037
- "aria-expanded": "true",
1038
- "aria-haspopup": "true"
1039
- }, [
1040
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1041
- /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "View")
1042
- ])
1043
- ])
1044
- ], -1));
1045
- const _hoisted_8 = {
1046
- style: { "z-index": "12" },
1047
- 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"
1048
- };
1049
- const _hoisted_9 = {
1050
- class: "",
1051
- role: "none"
1052
- };
1053
- const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "print p x-2" }, null, -1));
1054
- const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Print", -1));
1055
- const _hoisted_12 = [
1056
- _hoisted_10,
1057
- _hoisted_11
1058
- ];
1059
- const _hoisted_13 = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" };
1060
- const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "eye p x-2" }, null, -1));
1061
- const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
1062
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1063
- id: "fullscreenButton"
1064
- }, [
1065
- /* @__PURE__ */ createElementVNode("i", { class: "expand-alt p x-2" }),
1066
- /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Fullscreen")
1067
- ], -1));
1068
- const _hoisted_16 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
1069
- const _hoisted_17 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
1070
- const _hoisted_18 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1071
- /* @__PURE__ */ createElementVNode("button", {
1072
- type: "button",
1073
- class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1074
- id: "menu-button",
1075
- "aria-expanded": "true",
1076
- "aria-haspopup": "true"
1077
- }, [
1078
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1079
- /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Format")
1080
- ])
1081
- ])
1082
- ], -1));
1083
- const _hoisted_19 = {
1084
- style: { "z-index": "12" },
1085
- 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"
1086
- };
1087
- const _hoisted_20 = {
1088
- class: "",
1089
- role: "none"
1090
- };
1091
- const _hoisted_21 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bold p x-2" }, null, -1));
1092
- const _hoisted_22 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Bold", -1));
1093
- const _hoisted_23 = [
1094
- _hoisted_21,
1095
- _hoisted_22
1096
- ];
1097
- const _hoisted_24 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "italic p x-2" }, null, -1));
1098
- const _hoisted_25 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "px-3" }, "italic", -1));
1099
- const _hoisted_26 = [
1100
- _hoisted_24,
1101
- _hoisted_25
1102
- ];
1103
- const _hoisted_27 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "underline p x-2" }, null, -1));
1104
- const _hoisted_28 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("u", { class: "px-3" }, "underline", -1));
1105
- const _hoisted_29 = [
1106
- _hoisted_27,
1107
- _hoisted_28
1108
- ];
1109
- const _hoisted_30 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "strikethrough p x-2" }, null, -1));
1110
- const _hoisted_31 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("del", { class: "px-3" }, "strike", -1));
1111
- const _hoisted_32 = [
1112
- _hoisted_30,
1113
- _hoisted_31
1114
- ];
1115
- const _hoisted_33 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, null, -1));
1116
- const _hoisted_34 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("sup", { class: "px-3" }, "superscript", -1));
1117
- const _hoisted_35 = [
1118
- _hoisted_33,
1119
- _hoisted_34
1120
- ];
1121
- const _hoisted_36 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, null, -1));
1122
- const _hoisted_37 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("sub", { class: "px-3" }, "subscript", -1));
1123
- const _hoisted_38 = [
1124
- _hoisted_36,
1125
- _hoisted_37
1126
- ];
1127
- const _hoisted_39 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-list p x-2" }, null, -1));
1128
- const _hoisted_40 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("summary", { class: "px-3" }, "summary", -1));
1129
- const _hoisted_41 = [
1130
- _hoisted_39,
1131
- _hoisted_40
1132
- ];
1133
- const _hoisted_42 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "list-ol p x-2" }, null, -1));
1134
- const _hoisted_43 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1));
1135
- const _hoisted_44 = [
1136
- _hoisted_42,
1137
- _hoisted_43
1138
- ];
1139
- const _hoisted_45 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "list-ul p x-2" }, null, -1));
1140
- const _hoisted_46 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1));
1141
- const _hoisted_47 = [
1142
- _hoisted_45,
1143
- _hoisted_46
1144
- ];
1145
- const _hoisted_48 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H1", -1));
1146
- const _hoisted_49 = [
1147
- _hoisted_48
1148
- ];
1149
- const _hoisted_50 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H2", -1));
1150
- const _hoisted_51 = [
1151
- _hoisted_50
1152
- ];
1153
- const _hoisted_52 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H3", -1));
1154
- const _hoisted_53 = [
1155
- _hoisted_52
1156
- ];
1157
- const _hoisted_54 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H4", -1));
1158
- const _hoisted_55 = [
1159
- _hoisted_54
1160
- ];
1161
- const _hoisted_56 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H5", -1));
1162
- const _hoisted_57 = [
1163
- _hoisted_56
1164
- ];
1165
- const _hoisted_58 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H6", -1));
1166
- const _hoisted_59 = [
1167
- _hoisted_58
1168
- ];
1169
- const _hoisted_60 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, "Capitalize", -1));
1170
- const _hoisted_61 = [
1171
- _hoisted_60
1172
- ];
1173
- const _hoisted_62 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, "Lowercase", -1));
1174
- const _hoisted_63 = [
1175
- _hoisted_62
1176
- ];
1177
- const _hoisted_64 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " Block", -1));
1178
- const _hoisted_65 = [
1179
- _hoisted_64
1180
- ];
1181
- const _hoisted_66 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
1182
- const _hoisted_67 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
1183
- const _hoisted_68 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1184
- /* @__PURE__ */ createElementVNode("button", {
1185
- type: "button",
1186
- class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1187
- id: "menu-button",
1188
- "aria-expanded": "true",
1189
- "aria-haspopup": "true"
1190
- }, [
1191
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1192
- /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Insert")
1193
- ])
1194
- ])
1195
- ], -1));
1196
- const _hoisted_69 = {
1197
- style: { "z-index": "12" },
1198
- 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"
1199
- };
1200
- const _hoisted_70 = {
1201
- class: "",
1202
- role: "none"
1203
- };
1204
- const _hoisted_71 = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" };
1205
- const _hoisted_72 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "image p x-2" }, null, -1));
1206
- const _hoisted_73 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("label", {
1207
- for: "pom43546535435445Image",
1208
- class: "px-3"
1209
- }, "Image", -1));
1210
- const _hoisted_74 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "anchor p x-2" }, null, -1));
1211
- const _hoisted_75 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Anchor", -1));
1212
- const _hoisted_76 = [
1213
- _hoisted_74,
1214
- _hoisted_75
1215
- ];
1216
- const _hoisted_77 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-calendar-alt 1x" }, null, -1));
1217
- const _hoisted_78 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-1" }, "Date/time", -1));
1218
- const _hoisted_79 = [
1219
- _hoisted_77,
1220
- _hoisted_78
1221
- ];
1222
- const _hoisted_80 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-center w-full p y-1 bg-gray-100 font-bold" }, "Table", -1));
1223
- const _hoisted_81 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "trash-can p x-2" }, null, -1));
1224
- const _hoisted_82 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Delete All", -1));
1225
- const _hoisted_83 = [
1226
- _hoisted_81,
1227
- _hoisted_82
1228
- ];
1229
- const _hoisted_84 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "eye-slash p x-2" }, null, -1));
1230
- const _hoisted_85 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Hide/Show All ", -1));
1231
- const _hoisted_86 = [
1232
- _hoisted_84,
1233
- _hoisted_85
1234
- ];
1235
- const _hoisted_87 = { class: "table-picker-wrapper" };
1236
- const _hoisted_88 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "table-picker-trigger" }, [
1237
- /* @__PURE__ */ createElementVNode("i", { class: "table p x-2" }),
1238
- /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Create")
1239
- ], -1));
1240
- const _hoisted_89 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
1241
- const _hoisted_90 = { class: "relative inline-block text-left group z-10 border-0" };
1242
- const _hoisted_91 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
1243
- /* @__PURE__ */ createElementVNode("button", {
1244
- type: "button",
1245
- class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1246
- "aria-expanded": "true",
1247
- "aria-haspopup": "true"
1248
- }, [
1249
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1250
- /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
1251
- ])
1252
- ])
1253
- ], -1));
1254
- const _hoisted_92 = { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" };
1255
- const _hoisted_93 = { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" };
1256
- const _hoisted_94 = {
1257
- class: "hidden text-left absolute group-hover:block mt-0 gap-2 px-2 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",
1258
- "data-alloy-placement": "southeast",
1259
- style: { "height": "25vh", "overflow": "auto" }
1260
- };
1261
- const _hoisted_95 = { class: "collection__group" };
1262
- const _hoisted_96 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
1263
- title: "Andale Mono",
1264
- id: "menu-item_3745045357111728727990777",
1265
- role: "menuitemcheckbox",
1266
- "aria-haspopup": "false",
1267
- tabindex: "-1",
1268
- class: "menu-nav__js collection__item collection__item--active",
1269
- "aria-disabled": "false",
1270
- "aria-checked": "false",
1271
- "aria-selected": "true"
1272
- }, [
1273
- /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1274
- /* @__PURE__ */ createElementVNode("div", { style: { "font-family": "andale mono, monospace" } }, "Andale Mono")
1275
- ])
1276
- ], -1));
1277
- const _hoisted_97 = {
1278
- title: "Arial",
1279
- id: "menu-item_8107570667141728727990778",
1280
- role: "menuitemcheckbox",
1281
- "aria-haspopup": "false",
1282
- tabindex: "-1",
1283
- class: "menu-nav__js collection__item",
1284
- "aria-disabled": "false",
1285
- "aria-checked": "false",
1286
- "aria-selected": "false"
1287
- };
1288
- const _hoisted_98 = { class: "collection__item-label" };
1289
- const _hoisted_99 = {
1290
- title: "Arial Black",
1291
- id: "menu-item_7337372467171728727990778",
1292
- role: "menuitemcheckbox",
1293
- "aria-haspopup": "false",
1294
- tabindex: "-1",
1295
- class: "menu-nav__js collection__item",
1296
- "aria-disabled": "false",
1297
- "aria-checked": "false",
1298
- "aria-selected": "false"
1299
- };
1300
- const _hoisted_100 = { class: "collection__item-label" };
1301
- const _hoisted_101 = {
1302
- title: "Book Antiqua",
1303
- id: "menu-item_8277641917201728727990778",
1304
- role: "menuitemcheckbox",
1305
- "aria-haspopup": "false",
1306
- tabindex: "-1",
1307
- class: "menu-nav__js collection__item",
1308
- "aria-disabled": "false",
1309
- "aria-checked": "false",
1310
- "aria-selected": "false"
1311
- };
1312
- const _hoisted_102 = { class: "collection__item-label" };
1313
- const _hoisted_103 = {
1314
- title: "Comic Sans MS",
1315
- id: "menu-item_2698863237231728727990778",
1316
- role: "menuitemcheckbox",
1317
- "aria-haspopup": "false",
1318
- tabindex: "-1",
1319
- class: "menu-nav__js collection__item",
1320
- "aria-disabled": "false",
1321
- "aria-checked": "false",
1322
- "aria-selected": "false"
1323
- };
1324
- const _hoisted_104 = { class: "collection__item-label" };
1325
- const _hoisted_105 = {
1326
- title: "Courier New",
1327
- id: "menu-item_2979203277261728727990778",
1328
- role: "menuitemcheckbox",
1329
- "aria-haspopup": "false",
1330
- tabindex: "-1",
1331
- class: "menu-nav__js collection__item",
1332
- "aria-disabled": "false",
1333
- "aria-checked": "false",
1334
- "aria-selected": "false"
1335
- };
1336
- const _hoisted_106 = { class: "collection__item-label" };
1337
- const _hoisted_107 = {
1338
- title: "Georgia",
1339
- id: "menu-item_8075939747291728727990778",
1340
- role: "menuitemcheckbox",
1341
- "aria-haspopup": "false",
1342
- tabindex: "-1",
1343
- class: "menu-nav__js collection__item",
1344
- "aria-disabled": "false",
1345
- "aria-checked": "false",
1346
- "aria-selected": "false"
1347
- };
1348
- const _hoisted_108 = { class: "collection__item-label" };
1349
- const _hoisted_109 = {
1350
- title: "Helvetica",
1351
- id: "menu-item_8872440547321728727990778",
1352
- role: "menuitemcheckbox",
1353
- "aria-haspopup": "false",
1354
- tabindex: "-1",
1355
- class: "menu-nav__js collection__item collection__item--enabled",
1356
- "aria-disabled": "false",
1357
- "aria-checked": "true"
1358
- };
1359
- const _hoisted_110 = { class: "collection__item-label" };
1360
- const _hoisted_111 = {
1361
- title: "Impact",
1362
- id: "menu-item_3423693847351728727990778",
1363
- role: "menuitemcheckbox",
1364
- "aria-haspopup": "false",
1365
- tabindex: "-1",
1366
- class: "menu-nav__js collection__item",
1367
- "aria-disabled": "false",
1368
- "aria-checked": "false"
1369
- };
1370
- const _hoisted_112 = { class: "collection__item-label" };
1371
- const _hoisted_113 = {
1372
- title: "Symbol",
1373
- id: "menu-item_7163579447381728727990779",
1374
- role: "menuitemcheckbox",
1375
- "aria-haspopup": "false",
1376
- tabindex: "-1",
1377
- class: "menu-nav__js collection__item",
1378
- "aria-disabled": "false",
1379
- "aria-checked": "false"
1380
- };
1381
- const _hoisted_114 = { class: "collection__item-label" };
1382
- const _hoisted_115 = {
1383
- title: "Tahoma",
1384
- id: "menu-item_4449979827411728727990779",
1385
- role: "menuitemcheckbox",
1386
- "aria-haspopup": "false",
1387
- tabindex: "-1",
1388
- class: "menu-nav__js collection__item",
1389
- "aria-disabled": "false",
1390
- "aria-checked": "false"
1391
- };
1392
- const _hoisted_116 = { class: "collection__item-label" };
1393
- const _hoisted_117 = {
1394
- title: "Terminal",
1395
- id: "menu-item_2511923047441728727990779",
1396
- role: "menuitemcheckbox",
1397
- "aria-haspopup": "false",
1398
- tabindex: "-1",
1399
- class: "menu-nav__js collection__item",
1400
- "aria-disabled": "false",
1401
- "aria-checked": "false"
1402
- };
1403
- const _hoisted_118 = { class: "collection__item-label" };
1404
- const _hoisted_119 = {
1405
- title: "Times New Roman",
1406
- id: "menu-item_7770771337471728727990779",
1407
- role: "menuitemcheckbox",
1408
- "aria-haspopup": "false",
1409
- tabindex: "-1",
1410
- class: "menu-nav__js collection__item",
1411
- "aria-disabled": "false",
1412
- "aria-checked": "false"
1413
- };
1414
- const _hoisted_120 = { class: "collection__item-label" };
1415
- const _hoisted_121 = {
1416
- title: "Trebuchet MS",
1417
- id: "menu-item_7916647947501728727990779",
1418
- role: "menuitemcheckbox",
1419
- "aria-haspopup": "false",
1420
- tabindex: "-1",
1421
- class: "menu-nav__js collection__item",
1422
- "aria-disabled": "false",
1423
- "aria-checked": "false"
1424
- };
1425
- const _hoisted_122 = { class: "collection__item-label" };
1426
- const _hoisted_123 = {
1427
- title: "Verdana",
1428
- id: "menu-item_1549891587531728727990779",
1429
- role: "menuitemcheckbox",
1430
- "aria-haspopup": "false",
1431
- tabindex: "-1",
1432
- class: "menu-nav__js collection__item",
1433
- "aria-disabled": "false",
1434
- "aria-checked": "false"
1435
- };
1436
- const _hoisted_124 = { class: "collection__item-label" };
1437
- const _hoisted_125 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
1438
- title: "Webdings",
1439
- id: "menu-item_955052057561728727990779",
1440
- role: "menuitemcheckbox",
1441
- "aria-haspopup": "false",
1442
- tabindex: "-1",
1443
- class: "menu-nav__js collection__item",
1444
- "aria-disabled": "false",
1445
- "aria-checked": "false"
1446
- }, [
1447
- /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1448
- /* @__PURE__ */ createElementVNode("div", null, "Webdings")
1449
- ])
1450
- ], -1));
1451
- const _hoisted_126 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
1452
- title: "Wingdings",
1453
- id: "menu-item_93264657591728727990779",
1454
- role: "menuitemcheckbox",
1455
- "aria-haspopup": "false",
1456
- tabindex: "-1",
1457
- class: "menu-nav__js collection__item",
1458
- "aria-disabled": "false",
1459
- "aria-checked": "false"
1460
- }, [
1461
- /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1462
- /* @__PURE__ */ createElementVNode("div", null, "Wingdings")
1463
- ])
1464
- ], -1));
1465
- const _hoisted_127 = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
1466
- const _hoisted_128 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
1467
- /* @__PURE__ */ createElementVNode("svg", {
1468
- width: "24",
1469
- height: "24",
1470
- focusable: "false"
1471
- }, [
1472
- /* @__PURE__ */ createElementVNode("path", {
1473
- d: "M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z",
1474
- "fill-rule": "evenodd"
1475
- })
1476
- ])
1477
- ], -1));
1478
- const _hoisted_129 = [
1479
- _hoisted_128
1480
- ];
1481
- const _hoisted_130 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
1482
- /* @__PURE__ */ createElementVNode("svg", {
1483
- width: "24",
1484
- height: "24",
1485
- focusable: "false"
1486
- }, [
1487
- /* @__PURE__ */ createElementVNode("path", {
1488
- d: "M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z",
1489
- "fill-rule": "evenodd"
1490
- })
1491
- ])
1492
- ], -1));
1493
- const _hoisted_131 = [
1494
- _hoisted_130
1495
- ];
1496
- const _hoisted_132 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
1497
- /* @__PURE__ */ createElementVNode("svg", {
1498
- width: "24",
1499
- height: "24",
1500
- focusable: "false"
1501
- }, [
1502
- /* @__PURE__ */ createElementVNode("path", {
1503
- d: "M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z",
1504
- "fill-rule": "evenodd"
1505
- })
1506
- ])
1507
- ], -1));
1508
- const _hoisted_133 = [
1509
- _hoisted_132
1510
- ];
1511
- const _hoisted_134 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
1512
- /* @__PURE__ */ createElementVNode("svg", {
1513
- width: "24",
1514
- height: "24",
1515
- focusable: "false"
1516
- }, [
1517
- /* @__PURE__ */ createElementVNode("path", {
1518
- d: "M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z",
1519
- "fill-rule": "evenodd"
1520
- })
1521
- ])
1522
- ], -1));
1523
- const _hoisted_135 = [
1524
- _hoisted_134
1525
- ];
1526
- const _hoisted_136 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
1527
- const _hoisted_137 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1528
- /* @__PURE__ */ createElementVNode("button", {
1529
- type: "button",
1530
- class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1531
- id: "menu-button",
1532
- "aria-expanded": "true",
1533
- "aria-haspopup": "true"
1534
- }, [
1535
- /* @__PURE__ */ createElementVNode("div", {
1536
- class: "split-button flex items-center",
1537
- style: { "user-select": "none" }
1538
- }, [
1539
- /* @__PURE__ */ createElementVNode("span", null, [
1540
- /* @__PURE__ */ createElementVNode("span", { c: "" }, [
1541
- /* @__PURE__ */ createElementVNode("svg", {
1542
- width: "24",
1543
- height: "24",
1544
- focusable: "false"
1545
- }, [
1546
- /* @__PURE__ */ createElementVNode("path", {
1547
- d: "M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2ZM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Z",
1548
- "fill-rule": "evenodd"
1549
- })
1550
- ])
1551
- ])
1552
- ]),
1553
- /* @__PURE__ */ createElementVNode("span", {
1554
- role: "presentation",
1555
- class: "tbtn split-button__chevron",
1556
- "aria-disabled": "false"
1557
- }, [
1558
- /* @__PURE__ */ createElementVNode("svg", {
1559
- width: "10",
1560
- height: "10",
1561
- focusable: "false"
1562
- }, [
1563
- /* @__PURE__ */ createElementVNode("path", {
1564
- d: "M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8Z",
1565
- "fill-rule": "nonzero"
1566
- })
1567
- ])
1568
- ])
1569
- ])
1570
- ])
1571
- ], -1));
1572
- const _hoisted_138 = {
1573
- style: { "z-index": "12" },
1574
- 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"
1575
- };
1576
- const _hoisted_139 = {
1577
- class: "flex",
1578
- style: { "z-index": "4100 !important" }
1579
- };
1580
- const _hoisted_140 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
1581
- /* @__PURE__ */ createElementVNode("svg", {
1582
- width: "48",
1583
- height: "48",
1584
- focusable: "false"
1585
- }, [
1586
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1587
- /* @__PURE__ */ createElementVNode("circle", {
1588
- cx: "11",
1589
- cy: "14",
1590
- r: "3"
1591
- }),
1592
- /* @__PURE__ */ createElementVNode("circle", {
1593
- cx: "11",
1594
- cy: "24",
1595
- r: "3"
1596
- }),
1597
- /* @__PURE__ */ createElementVNode("circle", {
1598
- cx: "11",
1599
- cy: "34",
1600
- r: "3"
1601
- }),
1602
- /* @__PURE__ */ createElementVNode("path", {
1603
- opacity: ".2",
1604
- d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
1605
- })
1606
- ])
1607
- ])
1608
- ], -1));
1609
- const _hoisted_141 = [
1610
- _hoisted_140
1611
- ];
1612
- const _hoisted_142 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
1613
- /* @__PURE__ */ createElementVNode("svg", {
1614
- width: "48",
1615
- height: "48",
1616
- focusable: "false"
1617
- }, [
1618
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1619
- /* @__PURE__ */ createElementVNode("path", {
1620
- d: "M11 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z",
1621
- "fill-rule": "nonzero"
1622
- }),
1623
- /* @__PURE__ */ createElementVNode("path", {
1624
- opacity: ".2",
1625
- d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
1626
- })
1627
- ])
1628
- ])
1629
- ], -1));
1630
- const _hoisted_143 = [
1631
- _hoisted_142
1632
- ];
1633
- const _hoisted_144 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
1634
- width: "48",
1635
- height: "48",
1636
- viewBox: "0 0 48 48",
1637
- xmlns: "http://www.w3.org/2000/svg",
1638
- focusable: "false"
1639
- }, [
1640
- /* @__PURE__ */ createElementVNode("rect", {
1641
- width: "48",
1642
- height: "48",
1643
- fill: "none"
1644
- }),
1645
- /* @__PURE__ */ createElementVNode("text", {
1646
- x: "12",
1647
- y: "14",
1648
- "font-family": "Arial",
1649
- "font-size": "14",
1650
- fill: "black"
1651
- }, "1"),
1652
- /* @__PURE__ */ createElementVNode("text", {
1653
- x: "12",
1654
- y: "24",
1655
- "font-family": "Arial",
1656
- "font-size": "14",
1657
- fill: "black"
1658
- }, "2"),
1659
- /* @__PURE__ */ createElementVNode("text", {
1660
- x: "12",
1661
- y: "34",
1662
- "font-family": "Arial",
1663
- "font-size": "14",
1664
- fill: "black"
1665
- }, "3"),
1666
- /* @__PURE__ */ createElementVNode("rect", {
1667
- x: "24",
1668
- y: "12",
1669
- width: "20",
1670
- height: "4",
1671
- fill: "black",
1672
- opacity: ".2"
1673
- }),
1674
- /* @__PURE__ */ createElementVNode("rect", {
1675
- x: "24",
1676
- y: "22",
1677
- width: "20",
1678
- height: "4",
1679
- fill: "black",
1680
- opacity: ".2"
1681
- }),
1682
- /* @__PURE__ */ createElementVNode("rect", {
1683
- x: "24",
1684
- y: "32",
1685
- width: "20",
1686
- height: "4",
1687
- fill: "black",
1688
- opacity: ".2"
1689
- })
1690
- ], -1));
1691
- const _hoisted_145 = [
1692
- _hoisted_144
1693
- ];
1694
- const _hoisted_146 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-sm" }, [
1695
- /* @__PURE__ */ createElementVNode("svg", {
1696
- width: "48",
1697
- height: "48",
1698
- viewBox: "0 0 48 48",
1699
- xmlns: "http://www.w3.org/2000/svg",
1700
- focusable: "false"
1701
- }, [
1702
- /* @__PURE__ */ createElementVNode("text", {
1703
- x: "12",
1704
- y: "14",
1705
- "font-family": "Arial",
1706
- "font-size": "14",
1707
- fill: "black"
1708
- }, "A"),
1709
- /* @__PURE__ */ createElementVNode("text", {
1710
- x: "12",
1711
- y: "24",
1712
- "font-family": "Arial",
1713
- "font-size": "14",
1714
- fill: "black"
1715
- }, "B"),
1716
- /* @__PURE__ */ createElementVNode("text", {
1717
- x: "12",
1718
- y: "34",
1719
- "font-family": "Arial",
1720
- "font-size": "14",
1721
- fill: "black"
1722
- }, "C"),
1723
- /* @__PURE__ */ createElementVNode("rect", {
1724
- x: "18",
1725
- y: "12",
1726
- width: "22",
1727
- height: "4",
1728
- fill: "black",
1729
- opacity: ".2"
1730
- }),
1731
- /* @__PURE__ */ createElementVNode("rect", {
1732
- width: "48",
1733
- height: "48",
1734
- fill: "none"
1735
- }),
1736
- /* @__PURE__ */ createElementVNode("rect", {
1737
- x: "18",
1738
- y: "22",
1739
- width: "22",
1740
- height: "4",
1741
- fill: "black",
1742
- opacity: ".2"
1743
- }),
1744
- /* @__PURE__ */ createElementVNode("rect", {
1745
- x: "18",
1746
- y: "32",
1747
- width: "22",
1748
- height: "4",
1749
- fill: "black",
1750
- opacity: ".2"
1751
- })
1752
- ])
1753
- ], -1));
1754
- const _hoisted_147 = [
1755
- _hoisted_146
1756
- ];
1757
- const _hoisted_148 = {
1758
- class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
1759
- style: {}
1760
- };
1761
- const _hoisted_149 = /* @__PURE__ */ createStaticVNode('<i class="bold p x-2" data-v-c6058be1><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g id="text-bold" transform="translate(-4 -2)" data-v-c6058be1><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-c6058be1></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-c6058be1></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-c6058be1></path></g></g></svg></i>', 1);
1762
- const _hoisted_150 = [
1763
- _hoisted_149
1764
- ];
1765
- const _hoisted_151 = /* @__PURE__ */ createStaticVNode('<i class="italic p x-2" data-v-c6058be1><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g id="layer1" data-v-c6058be1><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-c6058be1></path></g></g></svg></i>', 1);
1766
- const _hoisted_152 = [
1767
- _hoisted_151
1768
- ];
1769
- const _hoisted_153 = /* @__PURE__ */ createStaticVNode('<i class="underline p x-2" data-v-c6058be1><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-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g data-v-c6058be1><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-c6058be1></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-c6058be1></path></g></g></svg></i>', 1);
1770
- const _hoisted_154 = [
1771
- _hoisted_153
1772
- ];
1773
- const _hoisted_155 = { class: "strikethrough p x-2" };
1774
- const _hoisted_156 = {
1775
- fill: "#000000",
1776
- width: "13px",
1777
- height: "13px",
1778
- viewBox: "0 0 64 64",
1779
- version: "1.1",
1780
- xmlns: "http://www.w3.org/2000/svg",
1781
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
1782
- "xml:space": "preserve",
1783
- "xmlns:serif": "http://www.serif.com/",
1784
- style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
1785
- };
1786
- const _hoisted_157 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
1787
- id: "SVGRepo_bgCarrier",
1788
- "stroke-width": "0"
1789
- }, null, -1));
1790
- const _hoisted_158 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
1791
- id: "SVGRepo_tracerCarrier",
1792
- "stroke-linecap": "round",
1793
- "stroke-linejoin": "round"
1794
- }, null, -1));
1795
- const _hoisted_159 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", { id: "SVGRepo_iconCarrier" }, [
1796
- /* @__PURE__ */ createElementVNode("rect", {
1797
- id: "Icons",
1798
- x: "-192",
1799
- y: "0",
1800
- width: "1280",
1801
- height: "800",
1802
- style: { "fill": "none" }
1803
- }),
1804
- /* @__PURE__ */ createElementVNode("g", {
1805
- id: "Icons1",
1806
- "serif:id": "Icons"
1807
- }, [
1808
- /* @__PURE__ */ createElementVNode("g", { id: "Strike" }, [
1809
- /* @__PURE__ */ createElementVNode("rect", {
1810
- id: "Strike-line",
1811
- "serif:id": "Strike line",
1812
- x: "10.01",
1813
- y: "30.17",
1814
- width: "44.15",
1815
- height: "2.988"
1816
- }),
1817
- /* @__PURE__ */ createElementVNode("rect", {
1818
- x: "10.01",
1819
- y: "30.17",
1820
- width: "44.15",
1821
- height: "2.988"
1822
- }),
1823
- /* @__PURE__ */ createElementVNode("path", {
1824
- id: "Strike1",
1825
- "serif:id": "Strike",
1826
- d: "M46.396,35.711c0.414,0.482 0.779,0.983 1.093,1.504c1.06,1.756 1.59,3.823 1.59,6.2c0,3.791 -1.478,6.827 -4.433,9.107c-2.955,2.281 -6.907,3.422 -11.854,3.422c-3.212,0 -6.21,-0.616 -8.994,-1.848c-2.785,-1.231 -4.931,-2.917 -6.441,-5.059c-1.51,-2.142 -2.265,-4.572 -2.265,-7.292l6.2,0c0,2.827 1.044,5.059 3.132,6.698c2.088,1.638 4.877,2.457 8.368,2.457c3.256,0 5.75,-0.664 7.485,-1.992c1.735,-1.327 2.602,-3.137 2.602,-5.429c0,-2.291 -0.803,-4.063 -2.409,-5.316c-1.057,-0.824 -2.68,-1.642 -4.868,-2.452l10.794,0Zm-27.382,-8.094c-1.629,-1.974 -2.444,-4.3 -2.444,-6.978c0,-3.683 1.472,-6.73 4.417,-9.139c2.944,-2.409 6.773,-3.614 11.484,-3.614c3.212,0 6.077,0.621 8.593,1.863c2.517,1.242 4.465,2.956 5.847,5.14c1.381,2.185 2.072,4.572 2.072,7.164l-6.2,0c0,-2.827 -0.9,-5.049 -2.699,-6.666c-1.799,-1.617 -4.336,-2.425 -7.613,-2.425c-3.041,0 -5.413,0.669 -7.115,2.007c-1.703,1.339 -2.554,3.197 -2.554,5.574c0,1.906 0.808,3.518 2.425,4.835c0.966,0.786 2.337,1.533 4.112,2.239l-10.325,0Z",
1827
- style: { "fill-rule": "nonzero" }
1828
- })
1829
- ]),
1830
- /* @__PURE__ */ createElementVNode("g", { id: "H1" }),
1831
- /* @__PURE__ */ createElementVNode("g", { id: "H2" }),
1832
- /* @__PURE__ */ createElementVNode("g", { id: "H3" }),
1833
- /* @__PURE__ */ createElementVNode("g", { id: "list-ul" }),
1834
- /* @__PURE__ */ createElementVNode("g", { id: "hamburger-1" }),
1835
- /* @__PURE__ */ createElementVNode("g", { id: "hamburger-2" }),
1836
- /* @__PURE__ */ createElementVNode("g", { id: "list-ol" }),
1837
- /* @__PURE__ */ createElementVNode("g", { id: "list-task" }),
1838
- /* @__PURE__ */ createElementVNode("g", { id: "trash" }),
1839
- /* @__PURE__ */ createElementVNode("g", { id: "vertical-menu" }),
1840
- /* @__PURE__ */ createElementVNode("g", { id: "horizontal-menu" }),
1841
- /* @__PURE__ */ createElementVNode("g", { id: "sidebar-2" }),
1842
- /* @__PURE__ */ createElementVNode("g", { id: "Pen" }),
1843
- /* @__PURE__ */ createElementVNode("g", {
1844
- id: "Pen1",
1845
- "serif:id": "Pen"
1846
- }),
1847
- /* @__PURE__ */ createElementVNode("g", { id: "clock" }),
1848
- /* @__PURE__ */ createElementVNode("g", { id: "external-link" }),
1849
- /* @__PURE__ */ createElementVNode("g", { id: "hr" }),
1850
- /* @__PURE__ */ createElementVNode("g", { id: "info" }),
1851
- /* @__PURE__ */ createElementVNode("g", { id: "warning" }),
1852
- /* @__PURE__ */ createElementVNode("g", { id: "plus-circle" }),
1853
- /* @__PURE__ */ createElementVNode("g", { id: "minus-circle" }),
1854
- /* @__PURE__ */ createElementVNode("g", { id: "vue" }),
1855
- /* @__PURE__ */ createElementVNode("g", { id: "cog" }),
1856
- /* @__PURE__ */ createElementVNode("g", { id: "logo" }),
1857
- /* @__PURE__ */ createElementVNode("g", { id: "radio-check" }),
1858
- /* @__PURE__ */ createElementVNode("g", { id: "eye-slash" }),
1859
- /* @__PURE__ */ createElementVNode("g", { id: "eye" }),
1860
- /* @__PURE__ */ createElementVNode("g", { id: "toggle-off" }),
1861
- /* @__PURE__ */ createElementVNode("g", { id: "shredder" }),
1862
- /* @__PURE__ */ createElementVNode("g", {
1863
- id: "spinner--loading--dots-",
1864
- "serif:id": "spinner [loading, dots]"
1865
- }),
1866
- /* @__PURE__ */ createElementVNode("g", { id: "react" }),
1867
- /* @__PURE__ */ createElementVNode("g", { id: "check-selected" }),
1868
- /* @__PURE__ */ createElementVNode("g", { id: "turn-off" }),
1869
- /* @__PURE__ */ createElementVNode("g", { id: "code-block" }),
1870
- /* @__PURE__ */ createElementVNode("g", { id: "user" }),
1871
- /* @__PURE__ */ createElementVNode("g", { id: "coffee-bean" }),
1872
- /* @__PURE__ */ createElementVNode("g", { id: "coffee-beans" }, [
1873
- /* @__PURE__ */ createElementVNode("g", {
1874
- id: "coffee-bean1",
1875
- "serif:id": "coffee-bean"
1876
- })
1877
- ]),
1878
- /* @__PURE__ */ createElementVNode("g", { id: "coffee-bean-filled" }),
1879
- /* @__PURE__ */ createElementVNode("g", { id: "coffee-beans-filled" }, [
1880
- /* @__PURE__ */ createElementVNode("g", {
1881
- id: "coffee-bean2",
1882
- "serif:id": "coffee-bean"
1883
- })
1884
- ]),
1885
- /* @__PURE__ */ createElementVNode("g", { id: "clipboard" }),
1886
- /* @__PURE__ */ createElementVNode("g", { id: "clipboard-paste" }),
1887
- /* @__PURE__ */ createElementVNode("g", { id: "clipboard-copy" }),
1888
- /* @__PURE__ */ createElementVNode("g", { id: "Layer1" })
1889
- ])
1890
- ], -1));
1891
- const _hoisted_160 = [
1892
- _hoisted_157,
1893
- _hoisted_158,
1894
- _hoisted_159
1895
- ];
1896
- const _hoisted_161 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, "sup", -1));
1897
- const _hoisted_162 = [
1898
- _hoisted_161
1899
- ];
1900
- const _hoisted_163 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, "sub", -1));
1901
- const _hoisted_164 = [
1902
- _hoisted_163
1903
- ];
1904
- const _hoisted_165 = /* @__PURE__ */ createStaticVNode('<i class="-code p x-2" data-v-c6058be1><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-c6058be1></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-c6058be1></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-c6058be1></path></g></svg></i>', 1);
1905
- const _hoisted_166 = [
1906
- _hoisted_165
1907
- ];
1908
- const _hoisted_167 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
1909
- const _hoisted_168 = { class: "relative inline-block text-left group border-0" };
1910
- const _hoisted_169 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1911
- /* @__PURE__ */ createElementVNode("i", {
1912
- class: "solid brush display-color elemeSetDropDown",
1913
- style: { "margin": "6px 0px 0px 0px", "border": "none" }
1914
- }, [
1915
- /* @__PURE__ */ createElementVNode("svg", {
1916
- width: "24",
1917
- height: "24",
1918
- focusable: "false"
1919
- }, [
1920
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1921
- /* @__PURE__ */ createElementVNode("path", {
1922
- class: "icon-highlight-bg-color__color",
1923
- d: "M3 18h18v3H3z",
1924
- fill: "#F1C40F"
1925
- }),
1926
- /* @__PURE__ */ createElementVNode("path", {
1927
- "fill-rule": "nonzero",
1928
- 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"
1929
- })
1930
- ])
1931
- ])
1932
- ])
1933
- ], -1));
1934
- const _hoisted_170 = {
1935
- style: { "z-index": "12" },
1936
- 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"
1937
- };
1938
- const _hoisted_171 = {
1939
- class: "elemeSetDropDown",
1940
- role: "none"
1941
- };
1942
- const _hoisted_172 = {
1943
- class: "color-grid p-1 m-1",
1944
- style: { "width": "20vh", "height": "20vh", "overflow": "auto" }
1945
- };
1946
- const _hoisted_173 = ["onClick"];
1947
- const _hoisted_174 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
1948
- const _hoisted_175 = { class: "relative inline-block text-left group border-0" };
1949
- const _hoisted_176 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1950
- /* @__PURE__ */ createElementVNode("span", null, [
1951
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
1952
- /* @__PURE__ */ createElementVNode("i", {
1953
- class: "solid brush display-color",
1954
- style: { "margin": "6px 0px 0px 0px", "border": "none" }
1955
- }, [
1956
- /* @__PURE__ */ createElementVNode("span", { class: "icon tbtn__icon-wrap" }, [
1957
- /* @__PURE__ */ createElementVNode("svg", {
1958
- width: "24",
1959
- height: "20",
1960
- focusable: "false"
1961
- }, [
1962
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1963
- /* @__PURE__ */ createElementVNode("path", {
1964
- class: "icon-text-color__color",
1965
- d: "M3 18h18v3H3z",
1966
- fill: "#F1C40F"
1967
- }),
1968
- /* @__PURE__ */ createElementVNode("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" })
1969
- ])
1970
- ])
1971
- ])
1972
- ])
1973
- ])
1974
- ])
1975
- ], -1));
1976
- const _hoisted_177 = {
1977
- style: { "z-index": "12" },
1978
- 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"
1979
- };
1980
- const _hoisted_178 = {
1981
- class: "elemeSetDropDown",
1982
- role: "none"
1983
- };
1984
- const _hoisted_179 = {
1985
- class: "color-grid p-1 m-1",
1986
- style: { "width": "20vh", "height": "20vh", "overflow": "auto" }
1987
- };
1988
- const _hoisted_180 = ["onClick"];
1989
- const _hoisted_181 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><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-c6058be1></path></g></svg></span>', 1);
1990
- const _hoisted_182 = [
1991
- _hoisted_181
1992
- ];
1993
- const _hoisted_183 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><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-c6058be1></path></g></svg></span>', 1);
1994
- const _hoisted_184 = [
1995
- _hoisted_183
1996
- ];
1997
- const _hoisted_185 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><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-c6058be1></path></g></svg></span>', 1);
1998
- const _hoisted_186 = [
1999
- _hoisted_185
2000
- ];
2001
- const _hoisted_187 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
2002
- const _hoisted_188 = {
2003
- class: "relative inline-block text-left group border-0",
2004
- style: { "z-index": "3 !important" }
2005
- };
2006
- const _hoisted_189 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
2007
- /* @__PURE__ */ createElementVNode("span", null, [
2008
- /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
2009
- /* @__PURE__ */ createElementVNode("i", {
2010
- class: "solid brush display-color",
2011
- style: { "border": "none" }
2012
- }, "Sizes ")
2013
- ])
2014
- ])
2015
- ], -1));
2016
- const _hoisted_190 = {
2017
- style: { "width": "7vw", "padding": "6px", "height": "24vh", "overflow": "auto" },
2018
- class: "hidden elemeSetDropDown absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
2019
- };
2020
- const _hoisted_191 = ["onClick"];
2021
- const _hoisted_192 = {
2022
- key: 0,
2023
- class: "hideonprint flex items-center",
2024
- style: { "text-align": "center", "align-items": "stretch", "gap": "10px" }
2025
- };
2026
- const _hoisted_193 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-" }, null, -1));
2027
- const _hoisted_194 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "p x-2" }, "NEW LINE", -1));
2028
- const _hoisted_195 = [
2029
- _hoisted_193,
2030
- _hoisted_194
2031
- ];
2032
- const _hoisted_196 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
2033
- /* @__PURE__ */ createTextVNode("Cursor position: "),
2034
- /* @__PURE__ */ createElementVNode("span", { id: "cursorPosition" }, "0")
2035
- ], -1));
2036
- const _hoisted_197 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
2037
- /* @__PURE__ */ createTextVNode("Text at cursor: "),
2038
- /* @__PURE__ */ createElementVNode("span", { id: "textAtCursor" })
2039
- ], -1));
2040
- const _sfc_main = {
2041
- __name: "Editor",
2042
- props: {
2043
- plugins: {
2044
- default: {}
2045
- // type:Object
2046
- },
2047
- maxHeight: {
2048
- default: "100vh"
2049
- },
2050
- Dvalue: {
2051
- default: ""
2052
- },
2053
- TextOnly: {
2054
- default: false
2055
- },
2056
- cssWanted2: {
2057
- default: false
2058
- },
2059
- Files: {
2060
- size: null,
2061
- limits: 30
2062
- }
2063
- },
2064
- emits: ["change", "update"],
2065
- setup(__props, { emit: __emit }) {
2066
- window.getSelection();
2067
- const props = __props;
2068
- const editorRef = ref(null);
2069
- const imageClicked = ref(false);
2070
- const savedRange2 = ref(null);
2071
- const tablePickerContainer = ref(null);
2072
- const tablePickerGrid = ref(null);
2073
- const tableDimensions = ref(null);
2074
- let selectedImage = null;
2075
- const colors = ref([
2076
- "FF5733",
2077
- "33FF57",
2078
- "3357FF",
2079
- "FFFF33",
2080
- "FF33FF",
2081
- "33FFFF",
2082
- "5733FF",
2083
- "57FF33",
2084
- "FF3333",
2085
- "33FF33",
2086
- "3333FF",
2087
- "FF33AA",
2088
- "33AAFF",
2089
- "AAFF33",
2090
- "FFAA33",
2091
- "AA33FF",
2092
- "33FFAA",
2093
- "AAFFAA",
2094
- "FFAAFF",
2095
- "FF6347",
2096
- "40E0D0",
2097
- "FFD700",
2098
- "8A2BE2",
2099
- "DC143C",
2100
- "00CED1",
2101
- "7FFF00",
2102
- "FF4500",
2103
- "fffefe",
2104
- "2E8B57",
2105
- "DAA520",
2106
- "6A5ACD",
2107
- "FF1493",
2108
- "B8860B",
2109
- "4682B4",
2110
- "D2691E",
2111
- "ADFF2F",
2112
- "5F9EA0",
2113
- "FF69B4",
2114
- "7B68EE",
2115
- "00FF7F",
2116
- "20B2AA",
2117
- "FF5733",
2118
- "33FF57",
2119
- "3357FF",
2120
- "FFFF33",
2121
- "FF33FF",
2122
- "33FFFF",
2123
- "FFD700",
2124
- "8A2BE2",
2125
- "7FFFD4",
2126
- "FF4500",
2127
- "6A5ACD",
2128
- "00FF7F",
2129
- "FF6347",
2130
- "FF1493",
2131
- "00CED1",
2132
- "989393",
2133
- "000000"
2134
- ]);
2135
- const emit = __emit;
2136
- const pomTextEditorContainer = ref(null);
2137
- function previewAndPrintFun(...args) {
2138
- try {
2139
- var removeinlineblock = document.querySelectorAll(".removeinlineblock");
2140
- let userFeedBack;
2141
- if (props.TextOnly)
2142
- userFeedBack = editorRef.value.value;
2143
- else
2144
- userFeedBack = pomTextEditorContainer.value.innerHTML;
2145
- removeinlineblock.forEach(function(element) {
2146
- element.style.display = "block";
2147
- });
2148
- previewAndPrint(...args, userFeedBack);
2149
- } catch (error) {
2150
- }
2151
- }
2152
- function ChangeTheDirectionOFTextFun(...args) {
2153
- var _a;
2154
- containerCursorPosition();
2155
- changeTextDirection((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args, imageClicked.value);
2156
- imageClicked.value = false;
2157
- returnData();
2158
- }
2159
- function fontFamilyChanger(...args) {
2160
- var _a;
2161
- opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
2162
- selectedImage = null;
2163
- returnData();
2164
- }
2165
- function styleElementIncluderFun(...args) {
2166
- var _a;
2167
- opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
2168
- selectedImage = null;
2169
- returnData();
2170
- }
2171
- function FilesInjectionFun(event) {
2172
- const files = event.target.files;
2173
- if (files.length === 0) {
2174
- console.log("No files selected");
2175
- return;
2176
- }
2177
- Array.from(files).forEach((file) => {
2178
- if (!file.type.startsWith("image/")) {
2179
- console.error("Selected file is not an image:", file.name);
2180
- return;
2181
- }
2182
- const reader = new FileReader();
2183
- reader.onload = (e) => {
2184
- const imageUrl = e.target.result;
2185
- insertImageAtCursor(imageUrl);
2186
- };
2187
- reader.onerror = (e) => {
2188
- console.error("Error reading the file:", file.name, e);
2189
- };
2190
- reader.readAsDataURL(file);
2191
- });
2192
- }
2193
- function openInputToFeedFun(...args) {
2194
- openInputToFeed(savedRange2.value["range"], ...args);
2195
- selectedImage = null;
2196
- }
2197
- const cssWanted2 = styleCss();
2198
- function returnData(elmnt) {
2199
- var _a;
2200
- let htmlResult;
2201
- if (props.TextOnly == "true") {
2202
- if (elmnt && ((_a = elmnt.target) == null ? void 0 : _a.value))
2203
- htmlResult = `${elmnt.target.value}`.replace(/<\/[a-z]*?>|<\S.*?>/gi, (match) => {
2204
- return match.startsWith("</") ? "" : "\n";
2205
- });
2206
- } else {
2207
- htmlResult = exportUserHtmlForAtheUse(editorRef.value);
2208
- if (props.cssWanted == true) {
2209
- emit("cssWanted", cssWanted2);
2210
- }
2211
- }
2212
- if (htmlResult) {
2213
- setTimeout(() => {
2214
- htmlResult = htmlResult.replace(/<(\w+)[^>]*>\s*<\/\1>/g, "");
2215
- setTimeout(() => {
2216
- UndoRedo.SaveCurrentChanges(htmlResult);
2217
- }, 3e3);
2218
- emit("change", htmlResult);
2219
- }, 300);
2220
- }
2221
- }
2222
- async function onMountedFunctionsset(params) {
2223
- editorRef.value.focus();
2224
- nextTick(() => {
2225
- editorRef.value.innerHTML = props.Dvalue || null;
2226
- returnData();
2227
- OnmountedTableActionActivation();
2228
- ImageResizing();
2229
- imageContainerClicked();
2230
- editorKeyActions(savedRange2, editorRef.value);
2231
- });
2232
- }
2233
- function dropedImageRedirection(imgResizer) {
2234
- imgResizer.addEventListener("click", function(e) {
2235
- imageClicked.value = e;
2236
- const imageAction = document.createElement("div");
2237
- imageAction.style.display = "flex";
2238
- imageAction.style.justifyContent = "flex-end";
2239
- imageAction.style.flexWrap = "wrap";
2240
- imageAction.style.flexDirection = "column-reverse";
2241
- imageAction.style.position = "absolute";
2242
- imageAction.style.top = "0px";
2243
- imageAction.style.right = "19px";
2244
- imageAction.style.zIndex = "100";
2245
- imageAction.style.background = "white";
2246
- imageAction.classList.add("Image_dropped_pom");
2247
- imageAction.classList.add("hideOnprint");
2248
- const closeTile = document.createElement("button");
2249
- closeTile.style.position = "absolute";
2250
- closeTile.textContent = " X";
2251
- closeTile.style.margin = "5px";
2252
- closeTile.classList.add("imageClosingBtn");
2253
- const floatLeftButton = document.createElement("button");
2254
- floatLeftButton.textContent = " Left";
2255
- floatLeftButton.style.margin = "5px";
2256
- const floatRightButton = document.createElement("button");
2257
- floatRightButton.textContent = " Right";
2258
- floatRightButton.style.margin = "5px";
2259
- const centerButton = document.createElement("button");
2260
- centerButton.textContent = "Center ";
2261
- centerButton.style.margin = "5px";
2262
- const WrapButton = document.createElement("button");
2263
- WrapButton.textContent = "Wrap";
2264
- WrapButton.style.margin = "5px";
2265
- const DeleteButton = document.createElement("button");
2266
- DeleteButton.textContent = "Erase";
2267
- DeleteButton.style.margin = "5px";
2268
- const stickImage = document.createElement("button");
2269
- stickImage.textContent = "Glue";
2270
- stickImage.style.margin = "5px";
2271
- const Unglue = document.createElement("button");
2272
- Unglue.textContent = "UnGlue";
2273
- Unglue.style.margin = "5px";
2274
- imageAction.appendChild(DeleteButton);
2275
- imageAction.appendChild(WrapButton);
2276
- if (!imgResizer.classList.contains("stickImage")) {
2277
- imageAction.appendChild(centerButton);
2278
- imageAction.appendChild(floatRightButton);
2279
- imageAction.appendChild(stickImage);
2280
- imageAction.appendChild(floatLeftButton);
2281
- } else {
2282
- imageAction.appendChild(Unglue);
2283
- }
2284
- imageAction.appendChild(closeTile);
2285
- imgResizer.appendChild(imageAction);
2286
- stickImage.addEventListener("click", () => {
2287
- imgResizer.classList.add("stickImage");
2288
- Array.from(imgResizer.children).forEach((child) => {
2289
- if (child.tagName.toLowerCase() !== "img") {
2290
- child.style.display = "none";
2291
- }
2292
- });
2293
- removeElemet();
2294
- });
2295
- Unglue.addEventListener("click", () => {
2296
- imgResizer.classList.remove("stickImage");
2297
- Array.from(imgResizer.children).forEach((child) => {
2298
- if (child.tagName.toLowerCase() !== "img") {
2299
- child.style.display = "block";
2300
- }
2301
- });
2302
- removeElemet();
2303
- });
2304
- DeleteButton.addEventListener("click", () => {
2305
- imgResizer.remove();
2306
- removeElemet();
2307
- });
2308
- WrapButton.addEventListener("click", (e2) => {
2309
- const parentElement = imgResizer.parentElement;
2310
- imgResizer.parentElement.innerHTML;
2311
- const parentElementTageName = parentElement.tagName.toLowerCase();
2312
- const spanElement = document.createElement("div");
2313
- if (parentElementTageName == "div" && parentElement.id != "editor") {
2314
- const collectorForNewElement = parentElement;
2315
- Array.from(collectorForNewElement.attributes).forEach((attr) => {
2316
- spanElement.setAttribute(attr.name, attr.value);
2317
- });
2318
- spanElement.innerHTML = collectorForNewElement.innerHTML;
2319
- collectorForNewElement.innerHTML = "";
2320
- collectorForNewElement.append(spanElement);
2321
- } else {
2322
- const collectorForNewElement = parentElement;
2323
- spanElement.innerHTML = collectorForNewElement.innerHTML;
2324
- collectorForNewElement.innerHTML = "";
2325
- collectorForNewElement.append(spanElement);
2326
- }
2327
- removeElemet();
2328
- ImageResizing();
2329
- imageContainerClicked();
2330
- });
2331
- floatLeftButton.addEventListener("click", () => {
2332
- imgResizer.style.float = "left";
2333
- removeElemet();
2334
- });
2335
- floatRightButton.addEventListener("click", () => {
2336
- imgResizer.style.float = "right";
2337
- removeElemet();
2338
- });
2339
- centerButton.addEventListener("click", () => {
2340
- imgResizer.style.display = "block";
2341
- imgResizer.style.margin = "0 auto";
2342
- removeElemet();
2343
- });
2344
- closeTile.addEventListener("click", () => {
2345
- imgResizer.style.display = "block";
2346
- imgResizer.style.margin = "0 auto";
2347
- removeElemet();
2348
- });
2349
- document.addEventListener("click", function removeAction(e2) {
2350
- if (!imgResizer.contains(e2.target)) {
2351
- removeElemet();
2352
- document.removeEventListener("click", removeAction);
2353
- }
2354
- }, { once: true });
2355
- });
2356
- }
2357
- function imageContainerClicked(e) {
2358
- const elements = document.getElementsByClassName("resizer-image-dropped");
2359
- Array.from(elements).forEach((imgResizer) => {
2360
- dropedImageRedirection(imgResizer);
2361
- });
2362
- imageClicked.value = false;
2363
- handleClickOutside();
2364
- }
2365
- function handleKeyPress(event) {
2366
- const target = event.target;
2367
- if (!target.firstElementChild) ;
2368
- }
2369
- onMounted(() => {
2370
- onMountedFunctionsset();
2371
- });
2372
- function insertNewLineAtCursorFun() {
2373
- insertNewLineAtCursor(editorRef.value);
2374
- }
2375
- function insertElementAtCursorHtagsFun(...args) {
2376
- insertElementAtCursorHtags(savedRange2.value["range"], ...args);
2377
- returnData();
2378
- }
2379
- function insertElementAtCursorFun(...args) {
2380
- insertElementAtCursor(savedRange2.value["range"], ...args);
2381
- returnData();
2382
- }
2383
- function insertUnorderedListAtCursorFun(...args) {
2384
- insertUnorderedListAtCursor(savedRange2.value["range"], ...args);
2385
- returnData();
2386
- }
2387
- function containerCursorPosition() {
2388
- savedRange2.value = saveCursorPosition();
2389
- updateCursorInfo();
2390
- makeTableGridforCreation(savedRange2.value, editorRef.value, tablePickerGrid.value, tableDimensions.value);
2391
- selectedImage = null;
2392
- returnData();
2393
- }
2394
- function fileSize(file) {
2395
- const fileSizeInBytes = file.size;
2396
- const fileSizeInKB = (fileSizeInBytes / 1024).toFixed(2);
2397
- const fileSizeInMB = (fileSizeInKB / 1024).toFixed(2);
2398
- return { fileSizeInMB, fileSizeInKB };
2399
- }
2400
- function onChangeFileDrop(event) {
2401
- var _a, _b, _c, _d, _e;
2402
- event.preventDefault();
2403
- const files = event.dataTransfer.files;
2404
- if (parseFloat((_a = props.Files) == null ? void 0 : _a.limits) == parseFloat((_b = props.Files) == null ? void 0 : _b.limits)) {
2405
- alert(`You can not upload more than ${props.Files.limits} images`);
2406
- return;
2407
- }
2408
- const size = fileSize(files[0]);
2409
- if (((_c = props.Files) == null ? void 0 : _c.size) > 0 && size.fileSizeInMB > parseFloat((_d = props.Files) == null ? void 0 : _d.size)) {
2410
- alert(`File size should be less than ${(_e = props.Files) == null ? void 0 : _e.size} MB`);
2411
- return;
2412
- }
2413
- console.log(`Image Droped ${size.fileSizeInMB} MB / ${size.fileSizeInKB} KB`);
2414
- if (files.length > 0) {
2415
- const file = files[0];
2416
- const reader = new FileReader();
2417
- reader.onload = (e) => {
2418
- const imageUrl = e.target.result;
2419
- insertImageAtCursor(imageUrl);
2420
- };
2421
- reader.readAsDataURL(file);
2422
- }
2423
- returnData();
2424
- }
2425
- function insertImageAtCursor(imageUrl) {
2426
- removeElemet();
2427
- const range = savedRange2.value["range"];
2428
- if (range) {
2429
- const imgElement = document.createElement("img");
2430
- imgElement.src = imageUrl;
2431
- imgElement.style.maxWidth = "100%";
2432
- imgElement.style.position = "relative";
2433
- imgElement.classList.add("resizable-image");
2434
- const imgResizer = document.createElement("span");
2435
- imgResizer.style.display = "inline-block";
2436
- imgResizer.style.width = "200px";
2437
- imgResizer.style.position = "relative";
2438
- imgResizer.contentEditable = false;
2439
- imgResizer.classList.add("resizer-image-dropped");
2440
- imgResizer.id = Date.now();
2441
- dropedImageRedirection(imgResizer);
2442
- const widthResizer = document.createElement("div");
2443
- widthResizer.style.width = "10px";
2444
- widthResizer.style.height = "100%";
2445
- widthResizer.style.background = "gray";
2446
- widthResizer.style.position = "absolute";
2447
- widthResizer.style.right = "0";
2448
- widthResizer.style.top = "0";
2449
- widthResizer.style.cursor = "ew-resize";
2450
- widthResizer.style.zIndex = "2";
2451
- widthResizer.classList.add("hideOnprint");
2452
- widthResizer.classList.add("widthResizer");
2453
- widthResizer.setAttribute("contentEditable", false);
2454
- const heightResizer = document.createElement("div");
2455
- heightResizer.style.width = "100%";
2456
- heightResizer.style.height = "10px";
2457
- heightResizer.style.background = "gray";
2458
- heightResizer.style.position = "absolute";
2459
- heightResizer.style.bottom = "0";
2460
- heightResizer.style.left = "0";
2461
- heightResizer.style.cursor = "ns-resize";
2462
- heightResizer.style.zIndex = "2";
2463
- heightResizer.classList.add("hideOnprint");
2464
- heightResizer.classList.add("heightResizer");
2465
- heightResizer.setAttribute("contentEditable", false);
2466
- const cornerResizer = document.createElement("div");
2467
- cornerResizer.style.width = "20px";
2468
- cornerResizer.style.height = "20px";
2469
- cornerResizer.style.background = "gray";
2470
- cornerResizer.style.position = "absolute";
2471
- cornerResizer.style.right = "0";
2472
- cornerResizer.style.bottom = "0";
2473
- cornerResizer.style.cursor = "nwse-resize";
2474
- cornerResizer.style.zIndex = "10";
2475
- cornerResizer.setAttribute("contentEditable", false);
2476
- cornerResizer.classList.add("cornerResizer");
2477
- imgResizer.appendChild(imgElement);
2478
- imgResizer.appendChild(widthResizer);
2479
- imgResizer.appendChild(heightResizer);
2480
- imgResizer.appendChild(cornerResizer);
2481
- imgResizer.addEventListener("click", (e) => {
2482
- if (selectedImage) {
2483
- selectedImage.style.border = "";
2484
- }
2485
- selectedImage = imgResizer;
2486
- });
2487
- range.insertNode(imgResizer);
2488
- const parentElement = range.commonAncestorContainer;
2489
- const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
2490
- if (parentNode.id == "editor") {
2491
- const originalElement = editorRef.value.innerHTML;
2492
- editorRef.value.innerHTML = null;
2493
- const wrapperContainer = document.createElement("div");
2494
- wrapperContainer.innerHTML = originalElement;
2495
- range.deleteContents();
2496
- range.insertNode(wrapperContainer);
2497
- const newRange = document.createRange();
2498
- const selection = window.getSelection();
2499
- selection.removeAllRanges();
2500
- newRange.collapse(true);
2501
- }
2502
- imageContainerClicked();
2503
- ImageResizing();
2504
- returnData();
2505
- }
2506
- }
2507
- function removeElemet(classs = "Image_dropped_pom") {
2508
- const elements = document.getElementsByClassName(classs);
2509
- Array.from(elements).forEach((element) => {
2510
- element.remove();
2511
- });
2512
- returnData();
2513
- }
2514
- function undoOrRedo(acting) {
2515
- const action = UndoRedo[acting]();
2516
- editorRef.value.innerHTML = action;
2517
- }
2518
- return (_ctx, _cache) => {
2519
- return openBlock(), createElementBlock("span", _hoisted_1, [
2520
- createElementVNode("div", _hoisted_2, [
2521
- createElementVNode("div", _hoisted_3, [
2522
- createElementVNode("div", _hoisted_4, [
2523
- createElementVNode("div", _hoisted_5, [
2524
- createElementVNode("div", _hoisted_6, [
2525
- _hoisted_7,
2526
- createElementVNode("div", _hoisted_8, [
2527
- createElementVNode("div", _hoisted_9, [
2528
- createElementVNode("div", {
2529
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2530
- onClick: _cache[0] || (_cache[0] = ($event) => previewAndPrintFun(true))
2531
- }, _hoisted_12),
2532
- createElementVNode("div", _hoisted_13, [
2533
- _hoisted_14,
2534
- createElementVNode("strong", {
2535
- class: "px-3",
2536
- onClick: _cache[1] || (_cache[1] = ($event) => previewAndPrintFun(false))
2537
- }, "Preview")
2538
- ]),
2539
- _hoisted_15
2540
- ])
2541
- ])
2542
- ])
2543
- ]),
2544
- createElementVNode("div", _hoisted_16, [
2545
- createElementVNode("div", _hoisted_17, [
2546
- _hoisted_18,
2547
- createElementVNode("div", _hoisted_19, [
2548
- createElementVNode("div", _hoisted_20, [
2549
- createElementVNode("div", {
2550
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
2551
- onClick: _cache[2] || (_cache[2] = ($event) => insertElementAtCursorFun())
2552
- }, _hoisted_23),
2553
- createElementVNode("div", {
2554
- onClick: _cache[3] || (_cache[3] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
2555
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2556
- }, _hoisted_26),
2557
- createElementVNode("div", {
2558
- onClick: _cache[4] || (_cache[4] = ($event) => insertElementAtCursorFun("u", "**underLine text **")),
2559
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2560
- }, _hoisted_29),
2561
- createElementVNode("div", {
2562
- onClick: _cache[5] || (_cache[5] = ($event) => insertElementAtCursorFun("s", "**underLine text**")),
2563
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2564
- }, _hoisted_32),
2565
- createElementVNode("div", {
2566
- onClick: _cache[6] || (_cache[6] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
2567
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2568
- }, _hoisted_35),
2569
- createElementVNode("div", {
2570
- onClick: _cache[7] || (_cache[7] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
2571
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2572
- }, _hoisted_38),
2573
- createElementVNode("div", {
2574
- onClick: _cache[8] || (_cache[8] = ($event) => insertElementAtCursorFun("summary", "**summary**")),
2575
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2576
- }, _hoisted_41),
2577
- createElementVNode("div", {
2578
- onClick: _cache[9] || (_cache[9] = ($event) => insertElementAtCursorFun("ol", "1. ordered list")),
2579
- style: { "background-color": "#f3f4f6", "cursor": "pointer" },
2580
- class: "hover:bg-gray-200 elemeSet rounded"
2581
- }, _hoisted_44),
2582
- createElementVNode("div", {
2583
- onClick: _cache[10] || (_cache[10] = ($event) => insertElementAtCursorFun("ul", "1. unordered list")),
2584
- style: { "background-color": "#f3f4f6", "cursor": "pointer" },
2585
- class: "hover:bg-gray-200 elemeSet rounded"
2586
- }, _hoisted_47),
2587
- createElementVNode("div", {
2588
- onClick: _cache[11] || (_cache[11] = ($event) => insertElementAtCursorHtagsFun("h1", "**h1**")),
2589
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2590
- }, _hoisted_49),
2591
- createElementVNode("div", {
2592
- onClick: _cache[12] || (_cache[12] = ($event) => insertElementAtCursorHtagsFun("h2", "**h2**")),
2593
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2594
- }, _hoisted_51),
2595
- createElementVNode("div", {
2596
- onClick: _cache[13] || (_cache[13] = ($event) => insertElementAtCursorHtagsFun("h3", "**h3**")),
2597
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2598
- }, _hoisted_53),
2599
- createElementVNode("div", {
2600
- onClick: _cache[14] || (_cache[14] = ($event) => unref(insertElementAtCursorHtags)("h4", "**h4**")),
2601
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2602
- }, _hoisted_55),
2603
- createElementVNode("div", {
2604
- onClick: _cache[15] || (_cache[15] = ($event) => insertElementAtCursorHtagsFun("h5", "**h5**")),
2605
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2606
- }, _hoisted_57),
2607
- createElementVNode("div", {
2608
- onClick: _cache[16] || (_cache[16] = ($event) => insertElementAtCursorHtagsFun("h6", "**h6**")),
2609
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2610
- }, _hoisted_59),
2611
- createElementVNode("div", {
2612
- onClick: _cache[17] || (_cache[17] = ($event) => styleElementIncluderFun("text-transform", "capitalize")),
2613
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2614
- }, _hoisted_61),
2615
- createElementVNode("div", {
2616
- onClick: _cache[18] || (_cache[18] = ($event) => styleElementIncluderFun("text-transform", "lowercase")),
2617
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2618
- }, _hoisted_63),
2619
- createElementVNode("div", {
2620
- onClick: _cache[19] || (_cache[19] = ($event) => styleElementIncluderFun("text-transform", "uppercase")),
2621
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2622
- }, _hoisted_65)
2623
- ])
2624
- ])
2625
- ])
2626
- ]),
2627
- createElementVNode("div", _hoisted_66, [
2628
- createElementVNode("div", _hoisted_67, [
2629
- _hoisted_68,
2630
- createElementVNode("div", _hoisted_69, [
2631
- createElementVNode("div", _hoisted_70, [
2632
- createElementVNode("div", _hoisted_71, [
2633
- _hoisted_72,
2634
- _hoisted_73,
2635
- createElementVNode("input", {
2636
- type: "file",
2637
- hidden: "",
2638
- id: "pom43546535435445Image",
2639
- accept: "image/*",
2640
- multiple: "",
2641
- onChange: FilesInjectionFun
2642
- }, null, 32)
2643
- ]),
2644
- createElementVNode("div", {
2645
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2646
- onClick: _cache[20] || (_cache[20] = ($event) => {
2647
- openInputToFeedFun(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: `text-decoration: underline;cursor: pointer` });
2648
- })
2649
- }, _hoisted_76),
2650
- createElementVNode("div", {
2651
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
2652
- onClick: _cache[21] || (_cache[21] = ($event) => openInputToFeedFun(this))
2653
- }, _hoisted_79),
2654
- createElementVNode("div", null, [
2655
- _hoisted_80,
2656
- createElementVNode("div", {
2657
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2658
- onClick: _cache[22] || (_cache[22] = ($event) => unref(removeAllTables)())
2659
- }, _hoisted_83),
2660
- createElementVNode("div", {
2661
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2662
- onClick: _cache[23] || (_cache[23] = ($event) => unref(removeAllTables)(true))
2663
- }, _hoisted_86),
2664
- createElementVNode("div", _hoisted_87, [
2665
- _hoisted_88,
2666
- createElementVNode("div", {
2667
- id: "table-picker-container",
2668
- ref_key: "tablePickerContainer",
2669
- ref: tablePickerContainer,
2670
- class: "table-picker-container"
2671
- }, [
2672
- createElementVNode("div", {
2673
- id: "table-picker-grid",
2674
- ref_key: "tablePickerGrid",
2675
- ref: tablePickerGrid,
2676
- class: "table-picker-grid"
2677
- }, null, 512),
2678
- createElementVNode("span", {
2679
- id: "table-dimensions",
2680
- ref_key: "tableDimensions",
2681
- ref: tableDimensions,
2682
- class: "table-dimensions"
2683
- }, "0 x 0", 512)
2684
- ], 512)
2685
- ])
2686
- ])
2687
- ])
2688
- ])
2689
- ])
2690
- ]),
2691
- createElementVNode("div", _hoisted_89, [
2692
- createElementVNode("div", _hoisted_90, [
2693
- _hoisted_91,
2694
- createElementVNode("div", _hoisted_92, [
2695
- createElementVNode("span", _hoisted_93, [
2696
- createElementVNode("div", _hoisted_94, [
2697
- createElementVNode("div", _hoisted_95, [
2698
- _hoisted_96,
2699
- createElementVNode("div", _hoisted_97, [
2700
- createElementVNode("div", _hoisted_98, [
2701
- createElementVNode("div", {
2702
- onClick: _cache[24] || (_cache[24] = () => fontFamilyChanger("font-family", " arial, helvetica, sans-serif")),
2703
- style: { "font-family": "arial, helvetica, sans-serif" }
2704
- }, "Arial ")
2705
- ])
2706
- ]),
2707
- createElementVNode("div", _hoisted_99, [
2708
- createElementVNode("div", _hoisted_100, [
2709
- createElementVNode("div", {
2710
- style: { "font-family": '"arial black", sans-serif' },
2711
- onClick: _cache[25] || (_cache[25] = () => fontFamilyChanger("font-family", "arial black, sans-serif"))
2712
- }, " Arial Black")
2713
- ])
2714
- ]),
2715
- createElementVNode("div", _hoisted_101, [
2716
- createElementVNode("div", _hoisted_102, [
2717
- createElementVNode("div", {
2718
- style: { "font-family": "book antiqua, palatino, serif" },
2719
- onClick: _cache[26] || (_cache[26] = () => fontFamilyChanger("font-family", "book antiqua, palatino, serif"))
2720
- }, " Book Antiqua")
2721
- ])
2722
- ]),
2723
- createElementVNode("div", _hoisted_103, [
2724
- createElementVNode("div", _hoisted_104, [
2725
- createElementVNode("div", {
2726
- style: { "font-family": '"comic sans ms", sans-serif' },
2727
- onClick: _cache[27] || (_cache[27] = () => fontFamilyChanger("font-family", 'comic sans ms", sans-serif'))
2728
- }, " Comic Sans MS")
2729
- ])
2730
- ]),
2731
- createElementVNode("div", _hoisted_105, [
2732
- createElementVNode("div", _hoisted_106, [
2733
- createElementVNode("div", {
2734
- style: { "font-family": "courier new, courier, monospace" },
2735
- onClick: _cache[28] || (_cache[28] = () => fontFamilyChanger("font-family", " courier new, courier, monospace;"))
2736
- }, " Courier New")
2737
- ])
2738
- ]),
2739
- createElementVNode("div", _hoisted_107, [
2740
- createElementVNode("div", _hoisted_108, [
2741
- createElementVNode("div", {
2742
- style: { "font-family": "georgia, palatino, serif" },
2743
- onClick: _cache[29] || (_cache[29] = () => fontFamilyChanger("font-family", " georgia, palatino, serif"))
2744
- }, "Georgia ")
2745
- ])
2746
- ]),
2747
- createElementVNode("div", _hoisted_109, [
2748
- createElementVNode("div", _hoisted_110, [
2749
- createElementVNode("div", {
2750
- style: { "font-family": "helvetica, arial, sans-serif" },
2751
- onClick: _cache[30] || (_cache[30] = () => fontFamilyChanger("font-family", " helvetica, arial, sans-serif"))
2752
- }, " Helvetica")
2753
- ])
2754
- ]),
2755
- createElementVNode("div", _hoisted_111, [
2756
- createElementVNode("div", _hoisted_112, [
2757
- createElementVNode("div", {
2758
- style: { "font-family": "impact, sans-serif" },
2759
- onClick: _cache[31] || (_cache[31] = () => fontFamilyChanger("font-family", " impact, sans-serif"))
2760
- }, "Impact")
2761
- ])
2762
- ]),
2763
- createElementVNode("div", _hoisted_113, [
2764
- createElementVNode("div", _hoisted_114, [
2765
- createElementVNode("div", {
2766
- style: { "font-family": "symbol" },
2767
- onClick: _cache[32] || (_cache[32] = () => fontFamilyChanger("font-family", " symbol"))
2768
- }, "Symbol")
2769
- ])
2770
- ]),
2771
- createElementVNode("div", _hoisted_115, [
2772
- createElementVNode("div", _hoisted_116, [
2773
- createElementVNode("div", {
2774
- style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
2775
- onClick: _cache[33] || (_cache[33] = () => fontFamilyChanger("font-family", " tahoma, arial, helvetica, sans-serif"))
2776
- }, " Tahoma")
2777
- ])
2778
- ]),
2779
- createElementVNode("div", _hoisted_117, [
2780
- createElementVNode("div", _hoisted_118, [
2781
- createElementVNode("div", {
2782
- style: { "font-family": "terminal, monaco, monospace" },
2783
- onClick: _cache[34] || (_cache[34] = () => fontFamilyChanger("font-family", " terminal, monaco, monospace"))
2784
- }, "Terminal ")
2785
- ])
2786
- ]),
2787
- createElementVNode("div", _hoisted_119, [
2788
- createElementVNode("div", _hoisted_120, [
2789
- createElementVNode("div", {
2790
- style: { "font-family": "times new roman, times, serif" },
2791
- onClick: _cache[35] || (_cache[35] = () => fontFamilyChanger("font-family", " times new roman, times, serif"))
2792
- }, " Times New Roman")
2793
- ])
2794
- ]),
2795
- createElementVNode("div", _hoisted_121, [
2796
- createElementVNode("div", _hoisted_122, [
2797
- createElementVNode("div", {
2798
- style: { "font-family": "trebuchet ms, geneva, sans-serif" },
2799
- onClick: _cache[36] || (_cache[36] = () => fontFamilyChanger("font-family", " trebuchet ms, geneva, sans-serif"))
2800
- }, " Trebuchet MS")
2801
- ])
2802
- ]),
2803
- createElementVNode("div", _hoisted_123, [
2804
- createElementVNode("div", _hoisted_124, [
2805
- createElementVNode("div", {
2806
- style: { "font-family": "verdana, geneva, sans-serif" },
2807
- onClick: _cache[37] || (_cache[37] = () => fontFamilyChanger("font-family", " verdana, geneva, sans-serif"))
2808
- }, "Verdana ")
2809
- ])
2810
- ]),
2811
- _hoisted_125,
2812
- _hoisted_126
2813
- ])
2814
- ])
2815
- ])
2816
- ])
2817
- ])
2818
- ]),
2819
- createElementVNode("div", _hoisted_127, [
2820
- createElementVNode("button", {
2821
- style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2822
- onClick: _cache[38] || (_cache[38] = ($event) => ChangeTheDirectionOFTextFun("float", "left", "", "div"))
2823
- }, _hoisted_129),
2824
- createElementVNode("button", {
2825
- style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2826
- onClick: _cache[39] || (_cache[39] = ($event) => ChangeTheDirectionOFTextFun("text-align", "center", "", "div"))
2827
- }, _hoisted_131),
2828
- createElementVNode("button", {
2829
- style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2830
- onClick: _cache[40] || (_cache[40] = ($event) => ChangeTheDirectionOFTextFun("float", "right", "", "div"))
2831
- }, _hoisted_133),
2832
- createElementVNode("button", {
2833
- style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2834
- onClick: _cache[41] || (_cache[41] = ($event) => ChangeTheDirectionOFTextFun("text-align", "start", "", "div"))
2835
- }, _hoisted_135)
2836
- ]),
2837
- createElementVNode("div", _hoisted_136, [
2838
- _hoisted_137,
2839
- createElementVNode("div", _hoisted_138, [
2840
- createElementVNode("div", _hoisted_139, [
2841
- createElementVNode("div", {
2842
- onClick: _cache[42] || (_cache[42] = ($event) => insertUnorderedListAtCursorFun(3, "disc"))
2843
- }, _hoisted_141),
2844
- createElementVNode("div", {
2845
- onClick: _cache[43] || (_cache[43] = ($event) => insertUnorderedListAtCursorFun(3, "circle"))
2846
- }, _hoisted_143),
2847
- createElementVNode("div", null, [
2848
- createElementVNode("div", {
2849
- class: "",
2850
- onClick: _cache[44] || (_cache[44] = ($event) => insertUnorderedListAtCursorFun())
2851
- }, _hoisted_145)
2852
- ]),
2853
- createElementVNode("div", {
2854
- onClick: _cache[45] || (_cache[45] = ($event) => insertUnorderedListAtCursorFun(3, "upper-latin"))
2855
- }, _hoisted_147)
2856
- ])
2857
- ])
2858
- ])
2859
- ]),
2860
- createElementVNode("div", _hoisted_148, [
2861
- renderSlot(_ctx.$slots, "toolbar-before", {}, void 0, true),
2862
- createElementVNode("div", {
2863
- 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",
2864
- style: { "margin": "1px" },
2865
- onClick: _cache[46] || (_cache[46] = ($event) => insertElementAtCursorFun())
2866
- }, _hoisted_150),
2867
- createElementVNode("div", {
2868
- onClick: _cache[47] || (_cache[47] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
2869
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2870
- style: { "margin": "6px" }
2871
- }, _hoisted_152),
2872
- createElementVNode("div", {
2873
- onClick: _cache[48] || (_cache[48] = ($event) => insertElementAtCursorFun("u", "**underLine text**")),
2874
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2875
- style: { "margin": "6px" }
2876
- }, _hoisted_154),
2877
- createElementVNode("div", {
2878
- onClick: _cache[49] || (_cache[49] = ($event) => insertElementAtCursorFun("s", "**Strike text**")),
2879
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2880
- style: { "margin": "6px" }
2881
- }, [
2882
- createElementVNode("i", _hoisted_155, [
2883
- (openBlock(), createElementBlock("svg", _hoisted_156, _hoisted_160))
2884
- ])
2885
- ]),
2886
- createElementVNode("div", {
2887
- onClick: _cache[50] || (_cache[50] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
2888
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2889
- style: { "margin": "6px" }
2890
- }, _hoisted_162),
2891
- createElementVNode("div", {
2892
- onClick: _cache[51] || (_cache[51] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
2893
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2894
- style: { "margin": "6px" }
2895
- }, _hoisted_164),
2896
- createElementVNode("div", {
2897
- onClick: _cache[52] || (_cache[52] = ($event) => insertElementAtCursorFun("Code", "**code**")),
2898
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2899
- style: { "margin": "6px" }
2900
- }, _hoisted_166),
2901
- createElementVNode("div", _hoisted_167, [
2902
- createElementVNode("div", _hoisted_168, [
2903
- _hoisted_169,
2904
- createElementVNode("div", _hoisted_170, [
2905
- createElementVNode("div", _hoisted_171, [
2906
- createElementVNode("div", _hoisted_172, [
2907
- (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2908
- return openBlock(), createElementBlock("div", {
2909
- class: "color-box",
2910
- style: normalizeStyle(`background-color: #${col} ;`),
2911
- onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
2912
- }, null, 12, _hoisted_173);
2913
- }), 256))
2914
- ])
2915
- ])
2916
- ])
2917
- ])
2918
- ]),
2919
- createElementVNode("div", _hoisted_174, [
2920
- createElementVNode("div", _hoisted_175, [
2921
- _hoisted_176,
2922
- createElementVNode("div", _hoisted_177, [
2923
- createElementVNode("div", _hoisted_178, [
2924
- createElementVNode("div", _hoisted_179, [
2925
- (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2926
- return openBlock(), createElementBlock("div", {
2927
- class: "color-box",
2928
- style: normalizeStyle(`background-color: #${col} ;`),
2929
- onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
2930
- }, null, 12, _hoisted_180);
2931
- }), 256))
2932
- ])
2933
- ])
2934
- ])
2935
- ])
2936
- ]),
2937
- createElementVNode("div", {
2938
- title: "Redo",
2939
- 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",
2940
- st: "",
2941
- yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2942
- onClick: _cache[53] || (_cache[53] = () => undoOrRedo("Undo"))
2943
- }, _hoisted_182),
2944
- createElementVNode("div", {
2945
- title: "Redo",
2946
- 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",
2947
- st: "",
2948
- yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2949
- onClick: _cache[54] || (_cache[54] = () => undoOrRedo("Redo"))
2950
- }, _hoisted_184),
2951
- createElementVNode("div", {
2952
- title: "new fresh line",
2953
- 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",
2954
- st: "",
2955
- yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2956
- onClick: _cache[55] || (_cache[55] = ($event) => insertNewLineAtCursorFun())
2957
- }, _hoisted_186),
2958
- createElementVNode("div", _hoisted_187, [
2959
- createElementVNode("div", _hoisted_188, [
2960
- _hoisted_189,
2961
- createElementVNode("div", _hoisted_190, [
2962
- (openBlock(), createElementBlock(Fragment, null, renderList(50, (size) => {
2963
- return createElementVNode("div", {
2964
- class: "pom-editor-menu-fonts",
2965
- onClick: (e) => styleElementIncluderFun("font-size", size + "pt"),
2966
- key: size
2967
- }, toDisplayString(size) + " pt", 9, _hoisted_191);
2968
- }), 64))
2969
- ])
2970
- ])
2971
- ]),
2972
- renderSlot(_ctx.$slots, "toolbar-after", {}, void 0, true)
2973
- ])
2974
- ])
2975
- ]),
2976
- createElementVNode("div", {
2977
- class: "",
2978
- ref_key: "pomTextEditorContainer",
2979
- ref: pomTextEditorContainer,
2980
- id: "pom-texedito-container",
2981
- style: { "width": "100%", "overflow": "hidden auto", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
2982
- }, [
2983
- createElementVNode("div", {
2984
- width: "128",
2985
- height: "128",
2986
- style: normalizeStyle(`max-height:${props.maxHeight} ;min-height:15vh ;text-align: justify;`)
2987
- }, [
2988
- __props.TextOnly ? (openBlock(), createElementBlock("textarea", {
2989
- key: 0,
2990
- onMouseup: _cache[56] || (_cache[56] = ($event) => containerCursorPosition()),
2991
- onKeyup: _cache[57] || (_cache[57] = (e) => {
2992
- handleKeyPress(e);
2993
- containerCursorPosition();
2994
- }),
2995
- onInput: returnData,
2996
- ref_key: "editorRef",
2997
- ref: editorRef,
2998
- class: "editor pom-editing-area mt-1 border-gray-300",
2999
- id: "editor",
3000
- style: { "height": "100%", "width": "100%", "border": "none", "resize": "none" }
3001
- }, toDisplayString(__props.Dvalue), 545)) : (openBlock(), createElementBlock("div", {
3002
- key: 1,
3003
- "data-placeholder": "Your Editing.....",
3004
- onDrop: onChangeFileDrop,
3005
- onMouseup: _cache[58] || (_cache[58] = ($event) => containerCursorPosition()),
3006
- onKeyup: _cache[59] || (_cache[59] = (e) => {
3007
- handleKeyPress(e);
3008
- containerCursorPosition();
3009
- }),
3010
- ref_key: "editorRef",
3011
- ref: editorRef,
3012
- class: "editor pom-editing-area mt-1 border-gray-300",
3013
- onInput: returnData,
3014
- contenteditable: "true",
3015
- id: "editor",
3016
- style: { "height": "100%", "width": "100%", "border": "none" }
3017
- }, null, 544))
3018
- ], 4)
3019
- ], 512),
3020
- __props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_192, [
3021
- createElementVNode("div", {
3022
- class: "hover:bg-gray-200",
3023
- onClick: _cache[60] || (_cache[60] = ($event) => insertNewLineAtCursorFun())
3024
- }, _hoisted_195),
3025
- _hoisted_196,
3026
- _hoisted_197
3027
- ])) : createCommentVNode("", true)
3028
- ]);
3029
- };
3030
- }
3031
- };
3032
- const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c6058be1"]]);
3033
- export {
3034
- Editor as default
3035
- };