pom-text-editor 0.2.29 → 1.0.1
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.
|
@@ -0,0 +1,2650 @@
|
|
|
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;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-4b7ed1ce]: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-4b7ed1ce]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-4b7ed1ce]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-4b7ed1ce]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-4b7ed1ce]{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-4b7ed1ce]{display:block}.pom-main-element-container .table-picker-grid[data-v-4b7ed1ce]{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-4b7ed1ce]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-4b7ed1ce]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-4b7ed1ce]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-4b7ed1ce]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-4b7ed1ce]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-4b7ed1ce]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:active{color:orange}@media print{.hideonprint[data-v-4b7ed1ce]{display:none!important}[data-v-4b7ed1ce]{overflow:hidden}}.pom-main-element-container .editor[data-v-4b7ed1ce]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-4b7ed1ce]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-4b7ed1ce] ::-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, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, createTextVNode, unref, renderSlot, withKeys, withModifiers, createCommentVNode, nextTick, pushScopeId, popScopeId, createStaticVNode } 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 = " ";
|
|
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
|
+
console.log(tagName, elementType, "compaire");
|
|
531
|
+
if (tagName == elementType) {
|
|
532
|
+
elm = document.createElement("span");
|
|
533
|
+
elm.innerHTML = hilightValuesChecks;
|
|
534
|
+
const html = elm.outerHTML.replace(new RegExp(`<${elementType}`, "gi"), "<span").replace(new RegExp(`</${elementType}>`, "gi"), "</span>");
|
|
535
|
+
elm.innerHTML = html;
|
|
536
|
+
savedRange2.deleteContents();
|
|
537
|
+
savedRange2.insertNode(elm);
|
|
538
|
+
const newRange = document.createRange();
|
|
539
|
+
newRange.collapse(true);
|
|
540
|
+
} else {
|
|
541
|
+
const spaceAfter = document.createElement("span");
|
|
542
|
+
spaceAfter.innerHTML = " ";
|
|
543
|
+
elm = document.createElement(elementType);
|
|
544
|
+
elm.innerHTML = getThehighLighted.length > 0 ? hilightValuesChecks : placeholderText;
|
|
545
|
+
savedRange2.deleteContents();
|
|
546
|
+
savedRange2.insertNode(spaceAfter);
|
|
547
|
+
savedRange2.insertNode(elm);
|
|
548
|
+
const newRange = document.createRange();
|
|
549
|
+
newRange.collapse(true);
|
|
550
|
+
newRange.setStartAfter(spaceAfter);
|
|
551
|
+
}
|
|
552
|
+
selection.removeAllRanges();
|
|
553
|
+
} else {
|
|
554
|
+
console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function createHtmlNode(htmlString) {
|
|
558
|
+
const tempDiv = document.createElement("div");
|
|
559
|
+
tempDiv.appendChild(htmlString);
|
|
560
|
+
const innerHTML = tempDiv.innerHTML;
|
|
561
|
+
return innerHTML;
|
|
562
|
+
}
|
|
563
|
+
function openInputToFeed(savedRange2, e, element = "span", type = "datetime-local", cssStyle = {}, attributes = []) {
|
|
564
|
+
const cleanzefirst = document.getElementById("Pom-openInputToFeed" + type);
|
|
565
|
+
if (cleanzefirst)
|
|
566
|
+
cleanzefirst.remove();
|
|
567
|
+
const div = document.createElement("div");
|
|
568
|
+
const dateInput = document.createElement("input");
|
|
569
|
+
div.id = "custom-context-menu";
|
|
570
|
+
div.style.position = "absolute";
|
|
571
|
+
div.style.backgroundColor = "white";
|
|
572
|
+
div.style.border = "1px solid #ccc";
|
|
573
|
+
div.style.padding = "10px";
|
|
574
|
+
div.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
|
|
575
|
+
div.style.zIndex = "1000";
|
|
576
|
+
div.style.left = `${e == null ? void 0 : e.pageX}px`;
|
|
577
|
+
div.style.top = `${e == null ? void 0 : e.pageY}px`;
|
|
578
|
+
dateInput.id = "Pom-openInputToFeed" + type;
|
|
579
|
+
dateInput.classList.add("Pom-openInputToFeed");
|
|
580
|
+
dateInput.type = type;
|
|
581
|
+
dateInput.style.cssText = cssStyle;
|
|
582
|
+
div.appendChild(dateInput);
|
|
583
|
+
const toolbar = document.getElementById("toolbar");
|
|
584
|
+
if (toolbar) {
|
|
585
|
+
toolbar.appendChild(div);
|
|
586
|
+
}
|
|
587
|
+
dateInput.addEventListener("change", function() {
|
|
588
|
+
const inputValue = `${this.value}`;
|
|
589
|
+
if (type == "datetime-local")
|
|
590
|
+
insertElementAtCursor(savedRange2, element, inputValue.replace(/T/, " "));
|
|
591
|
+
else {
|
|
592
|
+
let attrV = [];
|
|
593
|
+
for (const key in attributes) {
|
|
594
|
+
if (attributes.hasOwnProperty(key)) {
|
|
595
|
+
if (key.toLowerCase() === "href") {
|
|
596
|
+
attrV.push({ attr: key, value: inputValue });
|
|
597
|
+
} else {
|
|
598
|
+
const v = attributes[key];
|
|
599
|
+
attrV.push({ attr: key, value: v });
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
insertElementAtCursor(savedRange2, element, "**link Name** ", attrV);
|
|
604
|
+
}
|
|
605
|
+
div.remove();
|
|
606
|
+
window.document.removeEventListener("click", handleDocumentClick);
|
|
607
|
+
const elements = document.getElementsByClassName("pom-editor-anchor-tag");
|
|
608
|
+
for (let i = 0; i < elements.length; i++) {
|
|
609
|
+
elements[i].addEventListener("click", clickLink);
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
function handleDocumentClick(event) {
|
|
613
|
+
if (!div.contains(event.target)) {
|
|
614
|
+
div.remove();
|
|
615
|
+
window.document.removeEventListener("click", handleDocumentClick);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function clickLink(e2) {
|
|
619
|
+
e2.preventDefault();
|
|
620
|
+
const href = this.href;
|
|
621
|
+
window.open(href, "_blank");
|
|
622
|
+
window.document.removeEventListener("click", clickLink);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function changeTextDirection(savedRange2, editor2, style, value, suffix = "", elementType = "span", imageClick = false) {
|
|
626
|
+
var _a;
|
|
627
|
+
if (!savedRange2) {
|
|
628
|
+
console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
const floats = {
|
|
632
|
+
justify: "left",
|
|
633
|
+
none: "left",
|
|
634
|
+
end: "right",
|
|
635
|
+
start: "left",
|
|
636
|
+
center: "left"
|
|
637
|
+
};
|
|
638
|
+
if (imageClick) {
|
|
639
|
+
imageClick.target.parentElement.style.float = `${floats[value]}`;
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
const selection = window.getSelection();
|
|
643
|
+
selection.removeAllRanges();
|
|
644
|
+
selection.addRange(savedRange2);
|
|
645
|
+
const range = selection.getRangeAt(0);
|
|
646
|
+
let highlightedText = range.cloneContents();
|
|
647
|
+
const parentElement = range.commonAncestorContainer;
|
|
648
|
+
const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
|
|
649
|
+
let element;
|
|
650
|
+
element = document.createElement(elementType);
|
|
651
|
+
const tagName = `${parentNode.tagName}`.toLowerCase();
|
|
652
|
+
const incaseImage = parentNode ? (_a = parentNode.classList) == null ? void 0 : _a.contains("resizer-image-dropped") : null;
|
|
653
|
+
if (tagName == "ul" || incaseImage || tagName == "img") {
|
|
654
|
+
parentNode.style.float = `${floats[value]}`;
|
|
655
|
+
parentNode.style.fontWeight = "bold";
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
if (parentNode.id == "editor") {
|
|
659
|
+
savedRange2.deleteContents();
|
|
660
|
+
} else {
|
|
661
|
+
savedRange2.deleteContents();
|
|
662
|
+
}
|
|
663
|
+
const innerElement = document.createElement("div");
|
|
664
|
+
innerElement.appendChild(highlightedText);
|
|
665
|
+
element.appendChild(innerElement);
|
|
666
|
+
const currentStyle = element.style[style] || "";
|
|
667
|
+
const regex = new RegExp(suffix, "ig");
|
|
668
|
+
const rp = value.replace(regex, "") + suffix;
|
|
669
|
+
if (currentStyle.includes(rp)) {
|
|
670
|
+
element.style[style] = currentStyle.replace(rp, "");
|
|
671
|
+
} else {
|
|
672
|
+
element.style[style] = (currentStyle + rp).trim();
|
|
673
|
+
}
|
|
674
|
+
element.style["margin-left"] = "4px";
|
|
675
|
+
element.style["margin-right"] = "4px";
|
|
676
|
+
const spaceBefore = document.createElement("span");
|
|
677
|
+
const spaceAfter = document.createElement("span");
|
|
678
|
+
spaceBefore.innerHTML = " ";
|
|
679
|
+
spaceAfter.innerHTML = " ";
|
|
680
|
+
savedRange2.insertNode(spaceBefore);
|
|
681
|
+
savedRange2.insertNode(element);
|
|
682
|
+
savedRange2.insertNode(spaceAfter);
|
|
683
|
+
const newRange = document.createRange();
|
|
684
|
+
newRange.collapse(true);
|
|
685
|
+
selection.removeAllRanges();
|
|
686
|
+
selection.addRange(newRange);
|
|
687
|
+
savedRange2 = newRange.cloneRange();
|
|
688
|
+
editor2.focus();
|
|
689
|
+
}
|
|
690
|
+
function insertUnorderedListAtCursor(savedRange2, numRows = 2, liststyle = "list-style") {
|
|
691
|
+
if (savedRange2) {
|
|
692
|
+
const selection = window.getSelection();
|
|
693
|
+
selection.removeAllRanges();
|
|
694
|
+
selection.addRange(savedRange2);
|
|
695
|
+
const row = document.createElement("ul");
|
|
696
|
+
row.style.listStyle = liststyle;
|
|
697
|
+
row.style.paddingLeft = "73px";
|
|
698
|
+
for (let i = 0; i < numRows; i++) {
|
|
699
|
+
const cell = document.createElement("li");
|
|
700
|
+
cell.style.padding = "5px";
|
|
701
|
+
cell.textContent = `li ${i + 1}, `;
|
|
702
|
+
cell.style.position = "relative";
|
|
703
|
+
row.appendChild(cell);
|
|
704
|
+
}
|
|
705
|
+
savedRange2.deleteContents();
|
|
706
|
+
savedRange2.insertNode(row);
|
|
707
|
+
const firstCell = row.querySelector("td");
|
|
708
|
+
const newRange = document.createRange();
|
|
709
|
+
newRange.setStart(firstCell, 0);
|
|
710
|
+
newRange.collapse(true);
|
|
711
|
+
selection.removeAllRanges();
|
|
712
|
+
selection.addRange(newRange);
|
|
713
|
+
savedRange2 = newRange.cloneRange();
|
|
714
|
+
editor.focus();
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
const UndoRedo = {
|
|
718
|
+
currentIndex: 0,
|
|
719
|
+
// Tracks the current state of the text/image by index
|
|
720
|
+
StoredText: null,
|
|
721
|
+
// Tracks the current state of the text/image
|
|
722
|
+
storeRecovery: [],
|
|
723
|
+
// Holds the history of changes for undo
|
|
724
|
+
redoStack: [],
|
|
725
|
+
// Holds the history of undone changes for redo
|
|
726
|
+
/**
|
|
727
|
+
* Saves the current state of text/image and updates the undo/redo stacks
|
|
728
|
+
* @param {string} MyCurrentText - The current text or base64 image.
|
|
729
|
+
*/
|
|
730
|
+
SaveCurrentChanges: function(MyCurrentText = "") {
|
|
731
|
+
if (typeof MyCurrentText !== "string") {
|
|
732
|
+
console.error("SaveCurrentChanges expects a string value.");
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (this.storeRecovery.length && this.storeRecovery[this.currentIndex - 1] === MyCurrentText) {
|
|
736
|
+
console.log("No changes to save.");
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
this.storeRecovery = this.storeRecovery.slice(0, this.currentIndex);
|
|
740
|
+
this.storeRecovery.push(MyCurrentText);
|
|
741
|
+
this.currentIndex = this.storeRecovery.length;
|
|
742
|
+
if (this.storeRecovery.length > 5e4) {
|
|
743
|
+
this.storeRecovery = this.storeRecovery.slice(this.storeRecovery.length - 5e4);
|
|
744
|
+
this.currentIndex = this.storeRecovery.length;
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
/**
|
|
748
|
+
* Reverts the last saved change (undo).
|
|
749
|
+
* @returns {string|null} - The previous state of the text/image or null if no undo is possible.
|
|
750
|
+
*/
|
|
751
|
+
Undo: function() {
|
|
752
|
+
if (this.currentIndex === 0) {
|
|
753
|
+
console.log("Nothing to undo");
|
|
754
|
+
return null;
|
|
755
|
+
}
|
|
756
|
+
this.redoStack.push(this.storeRecovery[this.currentIndex - 1]);
|
|
757
|
+
this.currentIndex--;
|
|
758
|
+
return this.storeRecovery[this.currentIndex] || null;
|
|
759
|
+
},
|
|
760
|
+
/**
|
|
761
|
+
* Re-applies the most recently undone change (redo).
|
|
762
|
+
* @returns {string|null} - The redone state of the text/image or null if no redo is possible.
|
|
763
|
+
*/
|
|
764
|
+
Redo: function() {
|
|
765
|
+
if (this.redoStack.length === 0) {
|
|
766
|
+
console.log("Nothing to redo");
|
|
767
|
+
return null;
|
|
768
|
+
}
|
|
769
|
+
const lastUndo = this.redoStack.pop();
|
|
770
|
+
this.storeRecovery.push(lastUndo);
|
|
771
|
+
this.currentIndex++;
|
|
772
|
+
return lastUndo;
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", elementType = "span") {
|
|
776
|
+
if (!savedRange2) {
|
|
777
|
+
console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
|
|
778
|
+
return;
|
|
779
|
+
}
|
|
780
|
+
const selection = window.getSelection();
|
|
781
|
+
selection.removeAllRanges();
|
|
782
|
+
selection.addRange(savedRange2);
|
|
783
|
+
const range = selection.getRangeAt(0);
|
|
784
|
+
const highlightedText = range.cloneContents();
|
|
785
|
+
const parentElement = range.commonAncestorContainer;
|
|
786
|
+
const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
|
|
787
|
+
const tagName = parentNode.tagName.toLowerCase();
|
|
788
|
+
let textToReplace;
|
|
789
|
+
const styleLikeSoJustReplace = ["font-sze"];
|
|
790
|
+
if (parentNode && tagName === elementType) {
|
|
791
|
+
const existingStyle = parentNode.getAttribute("style") || null;
|
|
792
|
+
if (existingStyle) {
|
|
793
|
+
const rege = new RegExp(`${style}:\\s*${value};?`, "g");
|
|
794
|
+
const exists = rege.test(existingStyle);
|
|
795
|
+
let updatedStyles;
|
|
796
|
+
if (styleLikeSoJustReplace.includes(style) || !exists)
|
|
797
|
+
parentNode.style[style] = value;
|
|
798
|
+
else {
|
|
799
|
+
updatedStyles = existingStyle.replace(rege, "");
|
|
800
|
+
if (exists)
|
|
801
|
+
parentNode.setAttribute("style", updatedStyles);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return;
|
|
805
|
+
} else {
|
|
806
|
+
const element = document.createElement(elementType);
|
|
807
|
+
element.style[style] = value;
|
|
808
|
+
element.appendChild(highlightedText);
|
|
809
|
+
textToReplace = element.innerHTML;
|
|
810
|
+
savedRange2.deleteContents();
|
|
811
|
+
element.innerHTML = textToReplace;
|
|
812
|
+
savedRange2.insertNode(element);
|
|
813
|
+
const newRange = document.createRange();
|
|
814
|
+
newRange.collapse(true);
|
|
815
|
+
selection.removeAllRanges();
|
|
816
|
+
selection.addRange(newRange);
|
|
817
|
+
savedRange2 = newRange.cloneRange();
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
function insertElementAtCursorHtags(savedRange2, elementType = "h6", placeholderText = "*Header text*", attributes = []) {
|
|
821
|
+
if (savedRange2) {
|
|
822
|
+
const selection = window.getSelection();
|
|
823
|
+
selection.removeAllRanges();
|
|
824
|
+
selection.addRange(savedRange2);
|
|
825
|
+
const range = selection.getRangeAt(0);
|
|
826
|
+
const getTheHighlighted = `${range.toString()}`.trim();
|
|
827
|
+
const highlightedText = range.cloneContents();
|
|
828
|
+
const parentElement = range.commonAncestorContainer;
|
|
829
|
+
const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
|
|
830
|
+
const tagName = `${parentNode.tagName}`.toLowerCase();
|
|
831
|
+
const FontSize = {
|
|
832
|
+
h1: { "font-family": "'Arial', sans-serif", "font-size": "3rem", "font-weight": "bold", "color": "#333", "letter-spacing": "2px" },
|
|
833
|
+
h2: { "font-family": "'Georgia', serif", "font-size": "2rem", "color": "#444", "font-weight": 600, "line-height": "1.4" },
|
|
834
|
+
h3: { "font-family": "'Roboto', sans-serif", "font-size": "1.75rem", "color": "#34495e", "font-weight": 500, "text-align": "center", "line-height": "1.4" },
|
|
835
|
+
h4: { "font-family": "'Roboto', sans-serif", "font-size": "1.25rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
|
|
836
|
+
h5: { "font-family": "'Roboto', sans-serif", "font-size": "1rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
|
|
837
|
+
h6: { "font-family": "'Roboto', sans-serif", "font-size": ".5rem", "color": "#34495e", "font-weight": 200, "text-align": "center", "line-height": "1.4" }
|
|
838
|
+
};
|
|
839
|
+
const styles = FontSize[elementType];
|
|
840
|
+
if (parentNode && tagName === "span") {
|
|
841
|
+
const existingStyle = parentNode.getAttribute("style") || null;
|
|
842
|
+
if (existingStyle) {
|
|
843
|
+
parentNode.removeAttribute("style");
|
|
844
|
+
} else {
|
|
845
|
+
freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
|
|
846
|
+
}
|
|
847
|
+
} else {
|
|
848
|
+
freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
|
|
849
|
+
}
|
|
850
|
+
selection.removeAllRanges();
|
|
851
|
+
} else {
|
|
852
|
+
console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted) {
|
|
856
|
+
let elm = document.createElement("span");
|
|
857
|
+
elm.contenteditable = false;
|
|
858
|
+
elm.appendChild(highlightedText);
|
|
859
|
+
Object.keys(styles).forEach((property) => {
|
|
860
|
+
elm.style[property] = styles[property];
|
|
861
|
+
});
|
|
862
|
+
elm.innerHTML = getTheHighlighted.length > 0 ? elm.innerHTML : placeholderText;
|
|
863
|
+
savedRange2.deleteContents();
|
|
864
|
+
savedRange2.insertNode(elm);
|
|
865
|
+
}
|
|
866
|
+
function styleCss() {
|
|
867
|
+
return `<style scoped>
|
|
868
|
+
.resizer-image-dropped > div[contenteditable="false"] {
|
|
869
|
+
display: none;
|
|
870
|
+
}
|
|
871
|
+
.resizer-image-dropped{
|
|
872
|
+
border:none !important
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.table-picker-wrapper {
|
|
876
|
+
position: relative;
|
|
877
|
+
display: inline-block;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.table-picker-trigger {
|
|
881
|
+
cursor: pointer;
|
|
882
|
+
display: flex;
|
|
883
|
+
align-items: center;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.table-picker-container {
|
|
887
|
+
position: absolute;
|
|
888
|
+
top: 10%;
|
|
889
|
+
right: 90;
|
|
890
|
+
margin-top: 10px;
|
|
891
|
+
padding: 10px;
|
|
892
|
+
border: 0;
|
|
893
|
+
background-color: rgb(244, 244, 244);
|
|
894
|
+
cursor: pointer;
|
|
895
|
+
user-select: none;
|
|
896
|
+
width: max-content;
|
|
897
|
+
display: none;
|
|
898
|
+
left: 85% !important;
|
|
899
|
+
top: -7px;
|
|
900
|
+
/* Hidden by default */
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.table-picker-container.hidden {
|
|
904
|
+
/* display: none; */
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.table-picker-wrapper:hover .table-picker-container {
|
|
908
|
+
display: block;
|
|
909
|
+
/* Show on hover */
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.table-picker-grid {
|
|
913
|
+
display: grid;
|
|
914
|
+
grid-template-columns: repeat(10, 20px);
|
|
915
|
+
grid-template-rows: repeat(10, 20px);
|
|
916
|
+
gap: 2px;
|
|
917
|
+
margin-bottom: 10px;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.table-picker-grid div {
|
|
921
|
+
width: 20px;
|
|
922
|
+
height: 20px;
|
|
923
|
+
border: 1px solid #ddd;
|
|
924
|
+
background-color: #efa153ce;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.table-picker-grid div:hover {
|
|
928
|
+
background-color: rgb(248, 246, 246);
|
|
929
|
+
border: 0;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.table-dimensions {
|
|
933
|
+
font-size: 12px;
|
|
934
|
+
color: #333;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.pomXEditor {
|
|
938
|
+
border: 1px;
|
|
939
|
+
border-style: solid;
|
|
940
|
+
border-color: #6972734e;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
#editor:focus {
|
|
944
|
+
outline: none;
|
|
945
|
+
border: none;
|
|
946
|
+
/* Removes any custom borders if applied */
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.pom-table-editor-container {
|
|
950
|
+
display: flex;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
a {
|
|
954
|
+
color: blue;
|
|
955
|
+
/* Default color of the link text */
|
|
956
|
+
text-decoration: underline;
|
|
957
|
+
/* Underline the link text by default */
|
|
958
|
+
cursor: pointer;
|
|
959
|
+
/* Cursor changes to a pointer on hover */
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* Additional pseudo-classes for different link states */
|
|
963
|
+
a:link {
|
|
964
|
+
color: blue;
|
|
965
|
+
/* Color of unvisited link */
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
a:visited {
|
|
969
|
+
color: purple;
|
|
970
|
+
/* Color of visited link */
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
a:hover {
|
|
974
|
+
color: red;
|
|
975
|
+
/* Color when the link is hovered over */
|
|
976
|
+
text-decoration: none;
|
|
977
|
+
/* Typically remove underline on hover */
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
a:active {
|
|
981
|
+
color: orange;
|
|
982
|
+
/* Color when the link is clicked */
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
@media print {
|
|
986
|
+
.print-container {
|
|
987
|
+
/* width: 100%;
|
|
988
|
+
height: auto;
|
|
989
|
+
overflow: hidden;
|
|
990
|
+
page-break-inside: avoid;
|
|
991
|
+
margin: 0;
|
|
992
|
+
padding: 0;
|
|
993
|
+
box-sizing: border-box; */
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/* Optional: Set the font size for better print readability */
|
|
997
|
+
/* body {
|
|
998
|
+
font-size: 12pt;
|
|
999
|
+
} */
|
|
1000
|
+
/* Optional: Ensure images or other elements fit within the print area */
|
|
1001
|
+
/* img {
|
|
1002
|
+
max-width: 100%;
|
|
1003
|
+
height: auto;
|
|
1004
|
+
} */
|
|
1005
|
+
.hideonprint {
|
|
1006
|
+
display: none !important;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
* {
|
|
1010
|
+
overflow: hidden;
|
|
1011
|
+
/* Hide scrollbar */
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
</style>`;
|
|
1015
|
+
}
|
|
1016
|
+
const _export_sfc = (sfc, props) => {
|
|
1017
|
+
const target = sfc.__vccOpts || sfc;
|
|
1018
|
+
for (const [key, val] of props) {
|
|
1019
|
+
target[key] = val;
|
|
1020
|
+
}
|
|
1021
|
+
return target;
|
|
1022
|
+
};
|
|
1023
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4b7ed1ce"), n = n(), popScopeId(), n);
|
|
1024
|
+
const _hoisted_1 = { class: "pom-main-element-container" };
|
|
1025
|
+
const _hoisted_2 = {
|
|
1026
|
+
style: { "width": "100%" },
|
|
1027
|
+
id: "fullTextEditor"
|
|
1028
|
+
};
|
|
1029
|
+
const _hoisted_3 = {
|
|
1030
|
+
class: "hideonprint bg-gray-100 items-center",
|
|
1031
|
+
id: "toolbar"
|
|
1032
|
+
};
|
|
1033
|
+
const _hoisted_4 = { class: "flex flex space-x-2 items-center" };
|
|
1034
|
+
const _hoisted_5 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
1035
|
+
const _hoisted_6 = { class: "relative inline-block text-left group z-10 border-0" };
|
|
1036
|
+
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1037
|
+
/* @__PURE__ */ createElementVNode("button", {
|
|
1038
|
+
type: "button",
|
|
1039
|
+
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
1040
|
+
id: "menu-button",
|
|
1041
|
+
"aria-expanded": "true",
|
|
1042
|
+
"aria-haspopup": "true"
|
|
1043
|
+
}, [
|
|
1044
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
|
|
1045
|
+
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "View")
|
|
1046
|
+
])
|
|
1047
|
+
])
|
|
1048
|
+
], -1));
|
|
1049
|
+
const _hoisted_8 = {
|
|
1050
|
+
style: { "z-index": "12" },
|
|
1051
|
+
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"
|
|
1052
|
+
};
|
|
1053
|
+
const _hoisted_9 = {
|
|
1054
|
+
class: "",
|
|
1055
|
+
role: "none"
|
|
1056
|
+
};
|
|
1057
|
+
const _hoisted_10 = ["onClick"];
|
|
1058
|
+
const _hoisted_11 = { class: "px-3" };
|
|
1059
|
+
const _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
1060
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
1061
|
+
id: "fullscreenButton"
|
|
1062
|
+
}, [
|
|
1063
|
+
/* @__PURE__ */ createElementVNode("i", { class: "expand-alt p x-2" }),
|
|
1064
|
+
/* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Fullscreen")
|
|
1065
|
+
], -1));
|
|
1066
|
+
const _hoisted_13 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
1067
|
+
const _hoisted_14 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
1068
|
+
const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1069
|
+
/* @__PURE__ */ createElementVNode("button", {
|
|
1070
|
+
type: "button",
|
|
1071
|
+
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
1072
|
+
id: "menu-button",
|
|
1073
|
+
"aria-expanded": "true",
|
|
1074
|
+
"aria-haspopup": "true"
|
|
1075
|
+
}, [
|
|
1076
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
|
|
1077
|
+
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Format")
|
|
1078
|
+
])
|
|
1079
|
+
])
|
|
1080
|
+
], -1));
|
|
1081
|
+
const _hoisted_16 = {
|
|
1082
|
+
style: { "z-index": "12" },
|
|
1083
|
+
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"
|
|
1084
|
+
};
|
|
1085
|
+
const _hoisted_17 = {
|
|
1086
|
+
class: "",
|
|
1087
|
+
role: "none"
|
|
1088
|
+
};
|
|
1089
|
+
const _hoisted_18 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bold p x-2" }, null, -1));
|
|
1090
|
+
const _hoisted_19 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Bold", -1));
|
|
1091
|
+
const _hoisted_20 = [
|
|
1092
|
+
_hoisted_18,
|
|
1093
|
+
_hoisted_19
|
|
1094
|
+
];
|
|
1095
|
+
const _hoisted_21 = ["onClick"];
|
|
1096
|
+
const _hoisted_22 = ["onClick"];
|
|
1097
|
+
const _hoisted_23 = { class: "px-3 solid heading px-6" };
|
|
1098
|
+
const _hoisted_24 = ["onClick"];
|
|
1099
|
+
const _hoisted_25 = { class: "px-3 solid heading px-6" };
|
|
1100
|
+
const _hoisted_26 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
1101
|
+
const _hoisted_27 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
1102
|
+
const _hoisted_28 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1103
|
+
/* @__PURE__ */ createElementVNode("button", {
|
|
1104
|
+
type: "button",
|
|
1105
|
+
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
1106
|
+
id: "menu-button",
|
|
1107
|
+
"aria-expanded": "true",
|
|
1108
|
+
"aria-haspopup": "true"
|
|
1109
|
+
}, [
|
|
1110
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
|
|
1111
|
+
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Insert")
|
|
1112
|
+
])
|
|
1113
|
+
])
|
|
1114
|
+
], -1));
|
|
1115
|
+
const _hoisted_29 = {
|
|
1116
|
+
style: { "z-index": "12" },
|
|
1117
|
+
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"
|
|
1118
|
+
};
|
|
1119
|
+
const _hoisted_30 = {
|
|
1120
|
+
class: "",
|
|
1121
|
+
role: "none"
|
|
1122
|
+
};
|
|
1123
|
+
const _hoisted_31 = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" };
|
|
1124
|
+
const _hoisted_32 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "image p x-2" }, null, -1));
|
|
1125
|
+
const _hoisted_33 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("label", {
|
|
1126
|
+
for: "pom43546535435445Image",
|
|
1127
|
+
class: "px-3"
|
|
1128
|
+
}, "Image", -1));
|
|
1129
|
+
const _hoisted_34 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "anchor p x-2" }, null, -1));
|
|
1130
|
+
const _hoisted_35 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Anchor", -1));
|
|
1131
|
+
const _hoisted_36 = [
|
|
1132
|
+
_hoisted_34,
|
|
1133
|
+
_hoisted_35
|
|
1134
|
+
];
|
|
1135
|
+
const _hoisted_37 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-calendar-alt 1x" }, null, -1));
|
|
1136
|
+
const _hoisted_38 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-1" }, "Date/time", -1));
|
|
1137
|
+
const _hoisted_39 = [
|
|
1138
|
+
_hoisted_37,
|
|
1139
|
+
_hoisted_38
|
|
1140
|
+
];
|
|
1141
|
+
const _hoisted_40 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-center w-full p y-1 bg-gray-100 font-bold" }, "Table", -1));
|
|
1142
|
+
const _hoisted_41 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "trash-can p x-2" }, null, -1));
|
|
1143
|
+
const _hoisted_42 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Delete All", -1));
|
|
1144
|
+
const _hoisted_43 = [
|
|
1145
|
+
_hoisted_41,
|
|
1146
|
+
_hoisted_42
|
|
1147
|
+
];
|
|
1148
|
+
const _hoisted_44 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "eye-slash p x-2" }, null, -1));
|
|
1149
|
+
const _hoisted_45 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Hide/Show All ", -1));
|
|
1150
|
+
const _hoisted_46 = [
|
|
1151
|
+
_hoisted_44,
|
|
1152
|
+
_hoisted_45
|
|
1153
|
+
];
|
|
1154
|
+
const _hoisted_47 = { class: "table-picker-wrapper" };
|
|
1155
|
+
const _hoisted_48 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "table-picker-trigger" }, [
|
|
1156
|
+
/* @__PURE__ */ createElementVNode("i", { class: "table p x-2" }),
|
|
1157
|
+
/* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Create")
|
|
1158
|
+
], -1));
|
|
1159
|
+
const _hoisted_49 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
1160
|
+
const _hoisted_50 = { class: "relative inline-block text-left group z-10 border-0" };
|
|
1161
|
+
const _hoisted_51 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
|
|
1162
|
+
/* @__PURE__ */ createElementVNode("button", {
|
|
1163
|
+
type: "button",
|
|
1164
|
+
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
1165
|
+
"aria-expanded": "true",
|
|
1166
|
+
"aria-haspopup": "true"
|
|
1167
|
+
}, [
|
|
1168
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
|
|
1169
|
+
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
|
|
1170
|
+
])
|
|
1171
|
+
])
|
|
1172
|
+
], -1));
|
|
1173
|
+
const _hoisted_52 = { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" };
|
|
1174
|
+
const _hoisted_53 = { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600 group relative" };
|
|
1175
|
+
const _hoisted_54 = {
|
|
1176
|
+
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",
|
|
1177
|
+
style: { "height": "25vh", "overflow": "auto" },
|
|
1178
|
+
"data-alloy-placement": "southeast"
|
|
1179
|
+
};
|
|
1180
|
+
const _hoisted_55 = { class: "collection__group" };
|
|
1181
|
+
const _hoisted_56 = ["title"];
|
|
1182
|
+
const _hoisted_57 = { class: "collection__item-label" };
|
|
1183
|
+
const _hoisted_58 = ["onClick"];
|
|
1184
|
+
const _hoisted_59 = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
|
|
1185
|
+
const _hoisted_60 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
|
|
1186
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1187
|
+
width: "24",
|
|
1188
|
+
height: "24",
|
|
1189
|
+
focusable: "false"
|
|
1190
|
+
}, [
|
|
1191
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1192
|
+
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",
|
|
1193
|
+
"fill-rule": "evenodd"
|
|
1194
|
+
})
|
|
1195
|
+
])
|
|
1196
|
+
], -1));
|
|
1197
|
+
const _hoisted_61 = [
|
|
1198
|
+
_hoisted_60
|
|
1199
|
+
];
|
|
1200
|
+
const _hoisted_62 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
|
|
1201
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1202
|
+
width: "24",
|
|
1203
|
+
height: "24",
|
|
1204
|
+
focusable: "false"
|
|
1205
|
+
}, [
|
|
1206
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1207
|
+
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",
|
|
1208
|
+
"fill-rule": "evenodd"
|
|
1209
|
+
})
|
|
1210
|
+
])
|
|
1211
|
+
], -1));
|
|
1212
|
+
const _hoisted_63 = [
|
|
1213
|
+
_hoisted_62
|
|
1214
|
+
];
|
|
1215
|
+
const _hoisted_64 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
|
|
1216
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1217
|
+
width: "24",
|
|
1218
|
+
height: "24",
|
|
1219
|
+
focusable: "false"
|
|
1220
|
+
}, [
|
|
1221
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1222
|
+
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",
|
|
1223
|
+
"fill-rule": "evenodd"
|
|
1224
|
+
})
|
|
1225
|
+
])
|
|
1226
|
+
], -1));
|
|
1227
|
+
const _hoisted_65 = [
|
|
1228
|
+
_hoisted_64
|
|
1229
|
+
];
|
|
1230
|
+
const _hoisted_66 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
|
|
1231
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1232
|
+
width: "24",
|
|
1233
|
+
height: "24",
|
|
1234
|
+
focusable: "false"
|
|
1235
|
+
}, [
|
|
1236
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1237
|
+
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",
|
|
1238
|
+
"fill-rule": "evenodd"
|
|
1239
|
+
})
|
|
1240
|
+
])
|
|
1241
|
+
], -1));
|
|
1242
|
+
const _hoisted_67 = [
|
|
1243
|
+
_hoisted_66
|
|
1244
|
+
];
|
|
1245
|
+
const _hoisted_68 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
1246
|
+
const _hoisted_69 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1247
|
+
/* @__PURE__ */ createElementVNode("button", {
|
|
1248
|
+
type: "button",
|
|
1249
|
+
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
1250
|
+
id: "menu-button",
|
|
1251
|
+
"aria-expanded": "true",
|
|
1252
|
+
"aria-haspopup": "true"
|
|
1253
|
+
}, [
|
|
1254
|
+
/* @__PURE__ */ createElementVNode("div", {
|
|
1255
|
+
class: "split-button flex items-center",
|
|
1256
|
+
style: { "user-select": "none" }
|
|
1257
|
+
}, [
|
|
1258
|
+
/* @__PURE__ */ createElementVNode("span", null, [
|
|
1259
|
+
/* @__PURE__ */ createElementVNode("span", { c: "" }, [
|
|
1260
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1261
|
+
width: "24",
|
|
1262
|
+
height: "24",
|
|
1263
|
+
focusable: "false"
|
|
1264
|
+
}, [
|
|
1265
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1266
|
+
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",
|
|
1267
|
+
"fill-rule": "evenodd"
|
|
1268
|
+
})
|
|
1269
|
+
])
|
|
1270
|
+
])
|
|
1271
|
+
]),
|
|
1272
|
+
/* @__PURE__ */ createElementVNode("span", {
|
|
1273
|
+
role: "presentation",
|
|
1274
|
+
class: "tbtn split-button__chevron",
|
|
1275
|
+
"aria-disabled": "false"
|
|
1276
|
+
}, [
|
|
1277
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1278
|
+
width: "10",
|
|
1279
|
+
height: "10",
|
|
1280
|
+
focusable: "false"
|
|
1281
|
+
}, [
|
|
1282
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1283
|
+
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",
|
|
1284
|
+
"fill-rule": "nonzero"
|
|
1285
|
+
})
|
|
1286
|
+
])
|
|
1287
|
+
])
|
|
1288
|
+
])
|
|
1289
|
+
])
|
|
1290
|
+
], -1));
|
|
1291
|
+
const _hoisted_70 = {
|
|
1292
|
+
style: { "z-index": "12" },
|
|
1293
|
+
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"
|
|
1294
|
+
};
|
|
1295
|
+
const _hoisted_71 = {
|
|
1296
|
+
class: "flex",
|
|
1297
|
+
style: { "z-index": "4100 !important" }
|
|
1298
|
+
};
|
|
1299
|
+
const _hoisted_72 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
|
|
1300
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1301
|
+
width: "48",
|
|
1302
|
+
height: "48",
|
|
1303
|
+
focusable: "false"
|
|
1304
|
+
}, [
|
|
1305
|
+
/* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
|
|
1306
|
+
/* @__PURE__ */ createElementVNode("circle", {
|
|
1307
|
+
cx: "11",
|
|
1308
|
+
cy: "14",
|
|
1309
|
+
r: "3"
|
|
1310
|
+
}),
|
|
1311
|
+
/* @__PURE__ */ createElementVNode("circle", {
|
|
1312
|
+
cx: "11",
|
|
1313
|
+
cy: "24",
|
|
1314
|
+
r: "3"
|
|
1315
|
+
}),
|
|
1316
|
+
/* @__PURE__ */ createElementVNode("circle", {
|
|
1317
|
+
cx: "11",
|
|
1318
|
+
cy: "34",
|
|
1319
|
+
r: "3"
|
|
1320
|
+
}),
|
|
1321
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1322
|
+
opacity: ".2",
|
|
1323
|
+
d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
|
|
1324
|
+
})
|
|
1325
|
+
])
|
|
1326
|
+
])
|
|
1327
|
+
], -1));
|
|
1328
|
+
const _hoisted_73 = [
|
|
1329
|
+
_hoisted_72
|
|
1330
|
+
];
|
|
1331
|
+
const _hoisted_74 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
|
|
1332
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1333
|
+
width: "48",
|
|
1334
|
+
height: "48",
|
|
1335
|
+
focusable: "false"
|
|
1336
|
+
}, [
|
|
1337
|
+
/* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
|
|
1338
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1339
|
+
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",
|
|
1340
|
+
"fill-rule": "nonzero"
|
|
1341
|
+
}),
|
|
1342
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1343
|
+
opacity: ".2",
|
|
1344
|
+
d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
|
|
1345
|
+
})
|
|
1346
|
+
])
|
|
1347
|
+
])
|
|
1348
|
+
], -1));
|
|
1349
|
+
const _hoisted_75 = [
|
|
1350
|
+
_hoisted_74
|
|
1351
|
+
];
|
|
1352
|
+
const _hoisted_76 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
1353
|
+
width: "48",
|
|
1354
|
+
height: "48",
|
|
1355
|
+
viewBox: "0 0 48 48",
|
|
1356
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1357
|
+
focusable: "false"
|
|
1358
|
+
}, [
|
|
1359
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1360
|
+
width: "48",
|
|
1361
|
+
height: "48",
|
|
1362
|
+
fill: "none"
|
|
1363
|
+
}),
|
|
1364
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1365
|
+
x: "12",
|
|
1366
|
+
y: "14",
|
|
1367
|
+
"font-family": "Arial",
|
|
1368
|
+
"font-size": "14",
|
|
1369
|
+
fill: "black"
|
|
1370
|
+
}, "1"),
|
|
1371
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1372
|
+
x: "12",
|
|
1373
|
+
y: "24",
|
|
1374
|
+
"font-family": "Arial",
|
|
1375
|
+
"font-size": "14",
|
|
1376
|
+
fill: "black"
|
|
1377
|
+
}, "2"),
|
|
1378
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1379
|
+
x: "12",
|
|
1380
|
+
y: "34",
|
|
1381
|
+
"font-family": "Arial",
|
|
1382
|
+
"font-size": "14",
|
|
1383
|
+
fill: "black"
|
|
1384
|
+
}, "3"),
|
|
1385
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1386
|
+
x: "24",
|
|
1387
|
+
y: "12",
|
|
1388
|
+
width: "20",
|
|
1389
|
+
height: "4",
|
|
1390
|
+
fill: "black",
|
|
1391
|
+
opacity: ".2"
|
|
1392
|
+
}),
|
|
1393
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1394
|
+
x: "24",
|
|
1395
|
+
y: "22",
|
|
1396
|
+
width: "20",
|
|
1397
|
+
height: "4",
|
|
1398
|
+
fill: "black",
|
|
1399
|
+
opacity: ".2"
|
|
1400
|
+
}),
|
|
1401
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1402
|
+
x: "24",
|
|
1403
|
+
y: "32",
|
|
1404
|
+
width: "20",
|
|
1405
|
+
height: "4",
|
|
1406
|
+
fill: "black",
|
|
1407
|
+
opacity: ".2"
|
|
1408
|
+
})
|
|
1409
|
+
], -1));
|
|
1410
|
+
const _hoisted_77 = [
|
|
1411
|
+
_hoisted_76
|
|
1412
|
+
];
|
|
1413
|
+
const _hoisted_78 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-sm" }, [
|
|
1414
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1415
|
+
width: "48",
|
|
1416
|
+
height: "48",
|
|
1417
|
+
viewBox: "0 0 48 48",
|
|
1418
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1419
|
+
focusable: "false"
|
|
1420
|
+
}, [
|
|
1421
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1422
|
+
x: "12",
|
|
1423
|
+
y: "14",
|
|
1424
|
+
"font-family": "Arial",
|
|
1425
|
+
"font-size": "14",
|
|
1426
|
+
fill: "black"
|
|
1427
|
+
}, "A"),
|
|
1428
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1429
|
+
x: "12",
|
|
1430
|
+
y: "24",
|
|
1431
|
+
"font-family": "Arial",
|
|
1432
|
+
"font-size": "14",
|
|
1433
|
+
fill: "black"
|
|
1434
|
+
}, "B"),
|
|
1435
|
+
/* @__PURE__ */ createElementVNode("text", {
|
|
1436
|
+
x: "12",
|
|
1437
|
+
y: "34",
|
|
1438
|
+
"font-family": "Arial",
|
|
1439
|
+
"font-size": "14",
|
|
1440
|
+
fill: "black"
|
|
1441
|
+
}, "C"),
|
|
1442
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1443
|
+
x: "18",
|
|
1444
|
+
y: "12",
|
|
1445
|
+
width: "22",
|
|
1446
|
+
height: "4",
|
|
1447
|
+
fill: "black",
|
|
1448
|
+
opacity: ".2"
|
|
1449
|
+
}),
|
|
1450
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1451
|
+
width: "48",
|
|
1452
|
+
height: "48",
|
|
1453
|
+
fill: "none"
|
|
1454
|
+
}),
|
|
1455
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1456
|
+
x: "18",
|
|
1457
|
+
y: "22",
|
|
1458
|
+
width: "22",
|
|
1459
|
+
height: "4",
|
|
1460
|
+
fill: "black",
|
|
1461
|
+
opacity: ".2"
|
|
1462
|
+
}),
|
|
1463
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1464
|
+
x: "18",
|
|
1465
|
+
y: "32",
|
|
1466
|
+
width: "22",
|
|
1467
|
+
height: "4",
|
|
1468
|
+
fill: "black",
|
|
1469
|
+
opacity: ".2"
|
|
1470
|
+
})
|
|
1471
|
+
])
|
|
1472
|
+
], -1));
|
|
1473
|
+
const _hoisted_79 = [
|
|
1474
|
+
_hoisted_78
|
|
1475
|
+
];
|
|
1476
|
+
const _hoisted_80 = {
|
|
1477
|
+
class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
|
|
1478
|
+
style: {}
|
|
1479
|
+
};
|
|
1480
|
+
const _hoisted_81 = /* @__PURE__ */ createStaticVNode('<i class="bold p x-2" data-v-4b7ed1ce><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g id="text-bold" transform="translate(-4 -2)" data-v-4b7ed1ce><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-4b7ed1ce></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-4b7ed1ce></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-4b7ed1ce></path></g></g></svg></i>', 1);
|
|
1481
|
+
const _hoisted_82 = [
|
|
1482
|
+
_hoisted_81
|
|
1483
|
+
];
|
|
1484
|
+
const _hoisted_83 = /* @__PURE__ */ createStaticVNode('<i class="italic p x-2" data-v-4b7ed1ce><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g id="layer1" data-v-4b7ed1ce><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-4b7ed1ce></path></g></g></svg></i>', 1);
|
|
1485
|
+
const _hoisted_84 = [
|
|
1486
|
+
_hoisted_83
|
|
1487
|
+
];
|
|
1488
|
+
const _hoisted_85 = /* @__PURE__ */ createStaticVNode('<i class="underline p x-2" data-v-4b7ed1ce><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-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g data-v-4b7ed1ce><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-4b7ed1ce></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-4b7ed1ce></path></g></g></svg></i>', 1);
|
|
1489
|
+
const _hoisted_86 = [
|
|
1490
|
+
_hoisted_85
|
|
1491
|
+
];
|
|
1492
|
+
const _hoisted_87 = { class: "strikethrough p x-2" };
|
|
1493
|
+
const _hoisted_88 = {
|
|
1494
|
+
fill: "#000000",
|
|
1495
|
+
width: "13px",
|
|
1496
|
+
height: "13px",
|
|
1497
|
+
viewBox: "0 0 64 64",
|
|
1498
|
+
version: "1.1",
|
|
1499
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1500
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1501
|
+
"xml:space": "preserve",
|
|
1502
|
+
"xmlns:serif": "http://www.serif.com/",
|
|
1503
|
+
style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
|
|
1504
|
+
};
|
|
1505
|
+
const _hoisted_89 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
|
|
1506
|
+
id: "SVGRepo_bgCarrier",
|
|
1507
|
+
"stroke-width": "0"
|
|
1508
|
+
}, null, -1));
|
|
1509
|
+
const _hoisted_90 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
|
|
1510
|
+
id: "SVGRepo_tracerCarrier",
|
|
1511
|
+
"stroke-linecap": "round",
|
|
1512
|
+
"stroke-linejoin": "round"
|
|
1513
|
+
}, null, -1));
|
|
1514
|
+
const _hoisted_91 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", { id: "SVGRepo_iconCarrier" }, [
|
|
1515
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1516
|
+
id: "Icons",
|
|
1517
|
+
x: "-192",
|
|
1518
|
+
y: "0",
|
|
1519
|
+
width: "1280",
|
|
1520
|
+
height: "800",
|
|
1521
|
+
style: { "fill": "none" }
|
|
1522
|
+
}),
|
|
1523
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
1524
|
+
id: "Icons1",
|
|
1525
|
+
"serif:id": "Icons"
|
|
1526
|
+
}, [
|
|
1527
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Strike" }, [
|
|
1528
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1529
|
+
id: "Strike-line",
|
|
1530
|
+
"serif:id": "Strike line",
|
|
1531
|
+
x: "10.01",
|
|
1532
|
+
y: "30.17",
|
|
1533
|
+
width: "44.15",
|
|
1534
|
+
height: "2.988"
|
|
1535
|
+
}),
|
|
1536
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
1537
|
+
x: "10.01",
|
|
1538
|
+
y: "30.17",
|
|
1539
|
+
width: "44.15",
|
|
1540
|
+
height: "2.988"
|
|
1541
|
+
}),
|
|
1542
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1543
|
+
id: "Strike1",
|
|
1544
|
+
"serif:id": "Strike",
|
|
1545
|
+
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",
|
|
1546
|
+
style: { "fill-rule": "nonzero" }
|
|
1547
|
+
})
|
|
1548
|
+
]),
|
|
1549
|
+
/* @__PURE__ */ createElementVNode("g", { id: "H1" }),
|
|
1550
|
+
/* @__PURE__ */ createElementVNode("g", { id: "H2" }),
|
|
1551
|
+
/* @__PURE__ */ createElementVNode("g", { id: "H3" }),
|
|
1552
|
+
/* @__PURE__ */ createElementVNode("g", { id: "list-ul" }),
|
|
1553
|
+
/* @__PURE__ */ createElementVNode("g", { id: "hamburger-1" }),
|
|
1554
|
+
/* @__PURE__ */ createElementVNode("g", { id: "hamburger-2" }),
|
|
1555
|
+
/* @__PURE__ */ createElementVNode("g", { id: "list-ol" }),
|
|
1556
|
+
/* @__PURE__ */ createElementVNode("g", { id: "list-task" }),
|
|
1557
|
+
/* @__PURE__ */ createElementVNode("g", { id: "trash" }),
|
|
1558
|
+
/* @__PURE__ */ createElementVNode("g", { id: "vertical-menu" }),
|
|
1559
|
+
/* @__PURE__ */ createElementVNode("g", { id: "horizontal-menu" }),
|
|
1560
|
+
/* @__PURE__ */ createElementVNode("g", { id: "sidebar-2" }),
|
|
1561
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Pen" }),
|
|
1562
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
1563
|
+
id: "Pen1",
|
|
1564
|
+
"serif:id": "Pen"
|
|
1565
|
+
}),
|
|
1566
|
+
/* @__PURE__ */ createElementVNode("g", { id: "clock" }),
|
|
1567
|
+
/* @__PURE__ */ createElementVNode("g", { id: "external-link" }),
|
|
1568
|
+
/* @__PURE__ */ createElementVNode("g", { id: "hr" }),
|
|
1569
|
+
/* @__PURE__ */ createElementVNode("g", { id: "info" }),
|
|
1570
|
+
/* @__PURE__ */ createElementVNode("g", { id: "warning" }),
|
|
1571
|
+
/* @__PURE__ */ createElementVNode("g", { id: "plus-circle" }),
|
|
1572
|
+
/* @__PURE__ */ createElementVNode("g", { id: "minus-circle" }),
|
|
1573
|
+
/* @__PURE__ */ createElementVNode("g", { id: "vue" }),
|
|
1574
|
+
/* @__PURE__ */ createElementVNode("g", { id: "cog" }),
|
|
1575
|
+
/* @__PURE__ */ createElementVNode("g", { id: "logo" }),
|
|
1576
|
+
/* @__PURE__ */ createElementVNode("g", { id: "radio-check" }),
|
|
1577
|
+
/* @__PURE__ */ createElementVNode("g", { id: "eye-slash" }),
|
|
1578
|
+
/* @__PURE__ */ createElementVNode("g", { id: "eye" }),
|
|
1579
|
+
/* @__PURE__ */ createElementVNode("g", { id: "toggle-off" }),
|
|
1580
|
+
/* @__PURE__ */ createElementVNode("g", { id: "shredder" }),
|
|
1581
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
1582
|
+
id: "spinner--loading--dots-",
|
|
1583
|
+
"serif:id": "spinner [loading, dots]"
|
|
1584
|
+
}),
|
|
1585
|
+
/* @__PURE__ */ createElementVNode("g", { id: "react" }),
|
|
1586
|
+
/* @__PURE__ */ createElementVNode("g", { id: "check-selected" }),
|
|
1587
|
+
/* @__PURE__ */ createElementVNode("g", { id: "turn-off" }),
|
|
1588
|
+
/* @__PURE__ */ createElementVNode("g", { id: "code-block" }),
|
|
1589
|
+
/* @__PURE__ */ createElementVNode("g", { id: "user" }),
|
|
1590
|
+
/* @__PURE__ */ createElementVNode("g", { id: "coffee-bean" }),
|
|
1591
|
+
/* @__PURE__ */ createElementVNode("g", { id: "coffee-beans" }, [
|
|
1592
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
1593
|
+
id: "coffee-bean1",
|
|
1594
|
+
"serif:id": "coffee-bean"
|
|
1595
|
+
})
|
|
1596
|
+
]),
|
|
1597
|
+
/* @__PURE__ */ createElementVNode("g", { id: "coffee-bean-filled" }),
|
|
1598
|
+
/* @__PURE__ */ createElementVNode("g", { id: "coffee-beans-filled" }, [
|
|
1599
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
1600
|
+
id: "coffee-bean2",
|
|
1601
|
+
"serif:id": "coffee-bean"
|
|
1602
|
+
})
|
|
1603
|
+
]),
|
|
1604
|
+
/* @__PURE__ */ createElementVNode("g", { id: "clipboard" }),
|
|
1605
|
+
/* @__PURE__ */ createElementVNode("g", { id: "clipboard-paste" }),
|
|
1606
|
+
/* @__PURE__ */ createElementVNode("g", { id: "clipboard-copy" }),
|
|
1607
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Layer1" })
|
|
1608
|
+
])
|
|
1609
|
+
], -1));
|
|
1610
|
+
const _hoisted_92 = [
|
|
1611
|
+
_hoisted_89,
|
|
1612
|
+
_hoisted_90,
|
|
1613
|
+
_hoisted_91
|
|
1614
|
+
];
|
|
1615
|
+
const _hoisted_93 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, "sup", -1));
|
|
1616
|
+
const _hoisted_94 = [
|
|
1617
|
+
_hoisted_93
|
|
1618
|
+
];
|
|
1619
|
+
const _hoisted_95 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, "sub", -1));
|
|
1620
|
+
const _hoisted_96 = [
|
|
1621
|
+
_hoisted_95
|
|
1622
|
+
];
|
|
1623
|
+
const _hoisted_97 = /* @__PURE__ */ createStaticVNode('<i class="-code p x-2" data-v-4b7ed1ce><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-4b7ed1ce></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-4b7ed1ce></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-4b7ed1ce></path></g></svg></i>', 1);
|
|
1624
|
+
const _hoisted_98 = [
|
|
1625
|
+
_hoisted_97
|
|
1626
|
+
];
|
|
1627
|
+
const _hoisted_99 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
|
|
1628
|
+
const _hoisted_100 = { class: "relative inline-block text-left group border-0" };
|
|
1629
|
+
const _hoisted_101 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1630
|
+
/* @__PURE__ */ createElementVNode("i", {
|
|
1631
|
+
class: "solid brush display-color elemeSetDropDown",
|
|
1632
|
+
style: { "margin": "6px 0px 0px 0px", "border": "none" }
|
|
1633
|
+
}, [
|
|
1634
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1635
|
+
width: "24",
|
|
1636
|
+
height: "24",
|
|
1637
|
+
focusable: "false"
|
|
1638
|
+
}, [
|
|
1639
|
+
/* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
|
|
1640
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1641
|
+
class: "icon-highlight-bg-color__color",
|
|
1642
|
+
d: "M3 18h18v3H3z",
|
|
1643
|
+
fill: "#F1C40F"
|
|
1644
|
+
}),
|
|
1645
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1646
|
+
"fill-rule": "nonzero",
|
|
1647
|
+
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"
|
|
1648
|
+
})
|
|
1649
|
+
])
|
|
1650
|
+
])
|
|
1651
|
+
])
|
|
1652
|
+
], -1));
|
|
1653
|
+
const _hoisted_102 = {
|
|
1654
|
+
style: { "z-index": "12" },
|
|
1655
|
+
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"
|
|
1656
|
+
};
|
|
1657
|
+
const _hoisted_103 = {
|
|
1658
|
+
class: "elemeSetDropDown",
|
|
1659
|
+
role: "none"
|
|
1660
|
+
};
|
|
1661
|
+
const _hoisted_104 = {
|
|
1662
|
+
class: "color-grid p-1 m-1",
|
|
1663
|
+
style: { "width": "15vw", "height": "20vh", "overflow": "auto" }
|
|
1664
|
+
};
|
|
1665
|
+
const _hoisted_105 = ["onClick"];
|
|
1666
|
+
const _hoisted_106 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
|
|
1667
|
+
const _hoisted_107 = { class: "relative inline-block text-left group border-0" };
|
|
1668
|
+
const _hoisted_108 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1669
|
+
/* @__PURE__ */ createElementVNode("span", null, [
|
|
1670
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
|
|
1671
|
+
/* @__PURE__ */ createElementVNode("i", {
|
|
1672
|
+
class: "solid brush display-color",
|
|
1673
|
+
style: { "margin": "6px 0px 0px 0px", "border": "none" }
|
|
1674
|
+
}, [
|
|
1675
|
+
/* @__PURE__ */ createElementVNode("span", { class: "icon tbtn__icon-wrap" }, [
|
|
1676
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
1677
|
+
width: "24",
|
|
1678
|
+
height: "20",
|
|
1679
|
+
focusable: "false"
|
|
1680
|
+
}, [
|
|
1681
|
+
/* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
|
|
1682
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
1683
|
+
class: "icon-text-color__color",
|
|
1684
|
+
d: "M3 18h18v3H3z",
|
|
1685
|
+
fill: "#F1C40F"
|
|
1686
|
+
}),
|
|
1687
|
+
/* @__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" })
|
|
1688
|
+
])
|
|
1689
|
+
])
|
|
1690
|
+
])
|
|
1691
|
+
])
|
|
1692
|
+
])
|
|
1693
|
+
])
|
|
1694
|
+
], -1));
|
|
1695
|
+
const _hoisted_109 = {
|
|
1696
|
+
style: { "z-index": "12" },
|
|
1697
|
+
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"
|
|
1698
|
+
};
|
|
1699
|
+
const _hoisted_110 = {
|
|
1700
|
+
class: "elemeSetDropDown",
|
|
1701
|
+
role: "none"
|
|
1702
|
+
};
|
|
1703
|
+
const _hoisted_111 = {
|
|
1704
|
+
class: "color-grid p-1 m-1",
|
|
1705
|
+
style: { "width": "15vw", "height": "20vh", "overflow": "auto" }
|
|
1706
|
+
};
|
|
1707
|
+
const _hoisted_112 = ["onClick"];
|
|
1708
|
+
const _hoisted_113 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-4b7ed1ce><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><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-4b7ed1ce></path></g></svg></span>', 1);
|
|
1709
|
+
const _hoisted_114 = [
|
|
1710
|
+
_hoisted_113
|
|
1711
|
+
];
|
|
1712
|
+
const _hoisted_115 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-4b7ed1ce><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><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-4b7ed1ce></path></g></svg></span>', 1);
|
|
1713
|
+
const _hoisted_116 = [
|
|
1714
|
+
_hoisted_115
|
|
1715
|
+
];
|
|
1716
|
+
const _hoisted_117 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-4b7ed1ce><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><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-4b7ed1ce></path></g></svg></span>', 1);
|
|
1717
|
+
const _hoisted_118 = [
|
|
1718
|
+
_hoisted_117
|
|
1719
|
+
];
|
|
1720
|
+
const _hoisted_119 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
|
|
1721
|
+
const _hoisted_120 = {
|
|
1722
|
+
class: "relative inline-block text-left group border-0",
|
|
1723
|
+
style: { "z-index": "3 !important" }
|
|
1724
|
+
};
|
|
1725
|
+
const _hoisted_121 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1726
|
+
/* @__PURE__ */ createElementVNode("span", null, [
|
|
1727
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
|
|
1728
|
+
/* @__PURE__ */ createElementVNode("i", {
|
|
1729
|
+
class: "solid brush display-color",
|
|
1730
|
+
style: { "border": "none" }
|
|
1731
|
+
}, "Sizes ")
|
|
1732
|
+
])
|
|
1733
|
+
])
|
|
1734
|
+
], -1));
|
|
1735
|
+
const _hoisted_122 = {
|
|
1736
|
+
style: { "width": "7vw", "padding": "6px", "height": "24vh", "overflow": "auto" },
|
|
1737
|
+
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"
|
|
1738
|
+
};
|
|
1739
|
+
const _hoisted_123 = ["onClick"];
|
|
1740
|
+
const _hoisted_124 = {
|
|
1741
|
+
key: 0,
|
|
1742
|
+
class: "hideonprint flex items-center",
|
|
1743
|
+
style: { "text-align": "center", "align-items": "stretch", "gap": "10px" }
|
|
1744
|
+
};
|
|
1745
|
+
const _hoisted_125 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-" }, null, -1));
|
|
1746
|
+
const _hoisted_126 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "p x-2" }, "NEW LINE", -1));
|
|
1747
|
+
const _hoisted_127 = [
|
|
1748
|
+
_hoisted_125,
|
|
1749
|
+
_hoisted_126
|
|
1750
|
+
];
|
|
1751
|
+
const _hoisted_128 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
|
|
1752
|
+
/* @__PURE__ */ createTextVNode("Cursor position: "),
|
|
1753
|
+
/* @__PURE__ */ createElementVNode("span", { id: "cursorPosition" }, "0")
|
|
1754
|
+
], -1));
|
|
1755
|
+
const _hoisted_129 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
|
|
1756
|
+
/* @__PURE__ */ createTextVNode("Text at cursor: "),
|
|
1757
|
+
/* @__PURE__ */ createElementVNode("span", { id: "textAtCursor" })
|
|
1758
|
+
], -1));
|
|
1759
|
+
const _sfc_main = {
|
|
1760
|
+
__name: "Editor",
|
|
1761
|
+
props: {
|
|
1762
|
+
plugins: {
|
|
1763
|
+
default: {}
|
|
1764
|
+
// type:Object
|
|
1765
|
+
},
|
|
1766
|
+
maxHeight: {
|
|
1767
|
+
default: "100vh"
|
|
1768
|
+
},
|
|
1769
|
+
Dvalue: {
|
|
1770
|
+
default: ""
|
|
1771
|
+
},
|
|
1772
|
+
TextOnly: {
|
|
1773
|
+
default: false
|
|
1774
|
+
},
|
|
1775
|
+
cssWanted2: {
|
|
1776
|
+
default: false
|
|
1777
|
+
},
|
|
1778
|
+
Files: {
|
|
1779
|
+
size: null,
|
|
1780
|
+
limits: 30
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
emits: ["change", "update"],
|
|
1784
|
+
setup(__props, { emit: __emit }) {
|
|
1785
|
+
const props = __props, previewPrintActions = [
|
|
1786
|
+
{ label: "Print", icon: "print", print: true },
|
|
1787
|
+
{ label: "Preview", icon: "eye", print: false }
|
|
1788
|
+
], editorTools = [
|
|
1789
|
+
{ tag: "i", label: "italic", icon: "italic", value: "**italic text **" },
|
|
1790
|
+
{ tag: "u", label: "underline", icon: "underline", value: "**underLine text **" },
|
|
1791
|
+
{ tag: "s", label: "strike", icon: "strikethrough", value: "**underLine text**" },
|
|
1792
|
+
{ tag: "sup", label: "superscript", icon: "superscript", value: "**supperScript**" },
|
|
1793
|
+
{ tag: "sub", label: "subscript", icon: "subscript", value: "**supperScript**" },
|
|
1794
|
+
{ tag: "summary", label: "summary", icon: "-list", value: "**summary**" },
|
|
1795
|
+
{ tag: "ol", label: "list order", icon: "list-ol", value: "1. ordered list", bg: "#f3f4f6" },
|
|
1796
|
+
{ tag: "ul", label: "list unorder", icon: "list-ul", value: "1. unordered list", bg: "#f3f4f6" }
|
|
1797
|
+
], fonts = [
|
|
1798
|
+
{ label: "Andale Mono", family: "andale mono, monospace" },
|
|
1799
|
+
{ label: "Arial", family: "arial, helvetica, sans-serif" },
|
|
1800
|
+
{ label: "Arial Black", family: '"arial black", sans-serif' },
|
|
1801
|
+
{ label: "Book Antiqua", family: "book antiqua, palatino, serif" },
|
|
1802
|
+
{ label: "Comic Sans MS", family: '"comic sans ms", sans-serif' },
|
|
1803
|
+
{ label: "Courier New", family: "courier new, courier, monospace" },
|
|
1804
|
+
{ label: "Georgia", family: "georgia, palatino, serif" },
|
|
1805
|
+
{ label: "Helvetica", family: "helvetica, arial, sans-serif" },
|
|
1806
|
+
{ label: "Impact", family: "impact, sans-serif" },
|
|
1807
|
+
{ label: "Symbol", family: "symbol" },
|
|
1808
|
+
{ label: "Tahoma", family: "tahoma, arial, helvetica, sans-serif" },
|
|
1809
|
+
{ label: "Terminal", family: "terminal, monaco, monospace" },
|
|
1810
|
+
{ label: "Times New Roman", family: "times new roman, times, serif" },
|
|
1811
|
+
{ label: "Trebuchet MS", family: "trebuchet ms, geneva, sans-serif" },
|
|
1812
|
+
{ label: "Verdana", family: "verdana, geneva, sans-serif" },
|
|
1813
|
+
{ label: "Webdings", family: "webdings" },
|
|
1814
|
+
{ label: "Wingdings", family: "wingdings" }
|
|
1815
|
+
], editorRef = ref(null), imageClicked = ref(false), savedRange2 = ref(null), tablePickerContainer = ref(null), tablePickerGrid = ref(null), tableDimensions = ref(null);
|
|
1816
|
+
let selectedImage = null;
|
|
1817
|
+
const colors = ref([
|
|
1818
|
+
"FF5733",
|
|
1819
|
+
"33FF57",
|
|
1820
|
+
"3357FF",
|
|
1821
|
+
"FFFF33",
|
|
1822
|
+
"FF33FF",
|
|
1823
|
+
"33FFFF",
|
|
1824
|
+
"5733FF",
|
|
1825
|
+
"57FF33",
|
|
1826
|
+
"FF3333",
|
|
1827
|
+
"33FF33",
|
|
1828
|
+
"3333FF",
|
|
1829
|
+
"FF33AA",
|
|
1830
|
+
"33AAFF",
|
|
1831
|
+
"AAFF33",
|
|
1832
|
+
"FFAA33",
|
|
1833
|
+
"AA33FF",
|
|
1834
|
+
"33FFAA",
|
|
1835
|
+
"AAFFAA",
|
|
1836
|
+
"FFAAFF",
|
|
1837
|
+
"FF6347",
|
|
1838
|
+
"40E0D0",
|
|
1839
|
+
"FFD700",
|
|
1840
|
+
"8A2BE2",
|
|
1841
|
+
"DC143C",
|
|
1842
|
+
"00CED1",
|
|
1843
|
+
"7FFF00",
|
|
1844
|
+
"FF4500",
|
|
1845
|
+
"FFFEF",
|
|
1846
|
+
"2E8B57",
|
|
1847
|
+
"DAA520",
|
|
1848
|
+
"6A5ACD",
|
|
1849
|
+
"FF1493",
|
|
1850
|
+
"B8860B",
|
|
1851
|
+
"4682B4",
|
|
1852
|
+
"D2691E",
|
|
1853
|
+
"ADFF2F",
|
|
1854
|
+
"5F9EA0",
|
|
1855
|
+
"FF69B4",
|
|
1856
|
+
"7B68EE",
|
|
1857
|
+
"00FF7F",
|
|
1858
|
+
"20B2AA",
|
|
1859
|
+
"FF5733",
|
|
1860
|
+
"33FF57",
|
|
1861
|
+
"3357FF",
|
|
1862
|
+
"FFFF33",
|
|
1863
|
+
"FF33FF",
|
|
1864
|
+
"33FFFF",
|
|
1865
|
+
"FFD700",
|
|
1866
|
+
"8A2BE2",
|
|
1867
|
+
"7FFFD4",
|
|
1868
|
+
"FF4500",
|
|
1869
|
+
"6A5ACD",
|
|
1870
|
+
"00FF7F",
|
|
1871
|
+
"FF6347",
|
|
1872
|
+
"FF1493",
|
|
1873
|
+
"00CED1",
|
|
1874
|
+
"989393",
|
|
1875
|
+
"000000"
|
|
1876
|
+
]);
|
|
1877
|
+
const emit = __emit;
|
|
1878
|
+
const pomTextEditorContainer = ref(null);
|
|
1879
|
+
function previewAndPrintFun(...args) {
|
|
1880
|
+
try {
|
|
1881
|
+
var removeinlineblock = document.querySelectorAll(".removeinlineblock");
|
|
1882
|
+
let userFeedBack;
|
|
1883
|
+
if (props.TextOnly)
|
|
1884
|
+
userFeedBack = editorRef.value.value;
|
|
1885
|
+
else
|
|
1886
|
+
userFeedBack = pomTextEditorContainer.value.innerHTML;
|
|
1887
|
+
removeinlineblock.forEach(function(element) {
|
|
1888
|
+
element.style.display = "block";
|
|
1889
|
+
});
|
|
1890
|
+
previewAndPrint(...args, userFeedBack);
|
|
1891
|
+
} catch (error) {
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
function ChangeTheDirectionOFTextFun(...args) {
|
|
1895
|
+
var _a;
|
|
1896
|
+
containerCursorPosition();
|
|
1897
|
+
changeTextDirection((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args, imageClicked.value);
|
|
1898
|
+
imageClicked.value = false;
|
|
1899
|
+
returnData();
|
|
1900
|
+
}
|
|
1901
|
+
function fontFamilyChanger(...args) {
|
|
1902
|
+
var _a;
|
|
1903
|
+
opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
|
|
1904
|
+
selectedImage = null;
|
|
1905
|
+
returnData();
|
|
1906
|
+
}
|
|
1907
|
+
function styleElementIncluderFun(...args) {
|
|
1908
|
+
var _a;
|
|
1909
|
+
opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
|
|
1910
|
+
selectedImage = null;
|
|
1911
|
+
returnData();
|
|
1912
|
+
}
|
|
1913
|
+
function FilesInjectionFun(event) {
|
|
1914
|
+
const files = event.target.files;
|
|
1915
|
+
if (files.length === 0) {
|
|
1916
|
+
console.log("No files selected");
|
|
1917
|
+
return;
|
|
1918
|
+
}
|
|
1919
|
+
Array.from(files).forEach((file) => {
|
|
1920
|
+
if (!file.type.startsWith("image/")) {
|
|
1921
|
+
console.error("Selected file is not an image:", file.name);
|
|
1922
|
+
return;
|
|
1923
|
+
}
|
|
1924
|
+
const reader = new FileReader();
|
|
1925
|
+
reader.onload = (e) => {
|
|
1926
|
+
const imageUrl = e.target.result;
|
|
1927
|
+
insertImageAtCursor(imageUrl);
|
|
1928
|
+
};
|
|
1929
|
+
reader.onerror = (e) => {
|
|
1930
|
+
console.error("Error reading the file:", file.name, e);
|
|
1931
|
+
};
|
|
1932
|
+
reader.readAsDataURL(file);
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
function openInputToFeedFun(...args) {
|
|
1936
|
+
openInputToFeed(savedRange2.value["range"], ...args);
|
|
1937
|
+
selectedImage = null;
|
|
1938
|
+
}
|
|
1939
|
+
const cssWanted2 = styleCss();
|
|
1940
|
+
function returnData(elmnt) {
|
|
1941
|
+
var _a;
|
|
1942
|
+
let htmlResult;
|
|
1943
|
+
if (props.TextOnly == "true") {
|
|
1944
|
+
if (elmnt && ((_a = elmnt.target) == null ? void 0 : _a.value))
|
|
1945
|
+
htmlResult = `${elmnt.target.value}`.replace(/<\/[a-z]*?>|<\S.*?>/gi, (match) => {
|
|
1946
|
+
return match.startsWith("</") ? "" : "\n";
|
|
1947
|
+
});
|
|
1948
|
+
} else {
|
|
1949
|
+
htmlResult = exportUserHtmlForAtheUse(editorRef.value);
|
|
1950
|
+
if (props.cssWanted == true) {
|
|
1951
|
+
emit("cssWanted", cssWanted2);
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
if (htmlResult) {
|
|
1955
|
+
setTimeout(() => {
|
|
1956
|
+
htmlResult = htmlResult.replace(/<(\w+)[^>]*>\s*<\/\1>/g, "");
|
|
1957
|
+
setTimeout(() => {
|
|
1958
|
+
}, 3e3);
|
|
1959
|
+
emit("change", htmlResult);
|
|
1960
|
+
}, 300);
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
async function onMountedFunctionsset(params) {
|
|
1964
|
+
editorRef.value.focus();
|
|
1965
|
+
nextTick(() => {
|
|
1966
|
+
editorRef.value.innerHTML = props.Dvalue || null;
|
|
1967
|
+
returnData();
|
|
1968
|
+
OnmountedTableActionActivation();
|
|
1969
|
+
ImageResizing();
|
|
1970
|
+
imageContainerClicked();
|
|
1971
|
+
editorKeyActions(savedRange2, editorRef.value);
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
function dropedImageRedirection(imgResizer) {
|
|
1975
|
+
imgResizer.addEventListener("click", function(e) {
|
|
1976
|
+
imageClicked.value = e;
|
|
1977
|
+
const imageAction = document.createElement("div");
|
|
1978
|
+
imageAction.style.display = "flex";
|
|
1979
|
+
imageAction.style.justifyContent = "flex-end";
|
|
1980
|
+
imageAction.style.flexWrap = "wrap";
|
|
1981
|
+
imageAction.style.flexDirection = "column-reverse";
|
|
1982
|
+
imageAction.style.position = "absolute";
|
|
1983
|
+
imageAction.style.top = "0px";
|
|
1984
|
+
imageAction.style.right = "19px";
|
|
1985
|
+
imageAction.style.zIndex = "100";
|
|
1986
|
+
imageAction.style.background = "white";
|
|
1987
|
+
imageAction.classList.add("Image_dropped_pom");
|
|
1988
|
+
imageAction.classList.add("hideOnprint");
|
|
1989
|
+
const closeTile = document.createElement("button");
|
|
1990
|
+
closeTile.style.position = "absolute";
|
|
1991
|
+
closeTile.textContent = " X";
|
|
1992
|
+
closeTile.style.margin = "5px";
|
|
1993
|
+
closeTile.classList.add("imageClosingBtn");
|
|
1994
|
+
const floatLeftButton = document.createElement("button");
|
|
1995
|
+
floatLeftButton.textContent = " Left";
|
|
1996
|
+
floatLeftButton.style.margin = "5px";
|
|
1997
|
+
const floatRightButton = document.createElement("button");
|
|
1998
|
+
floatRightButton.textContent = " Right";
|
|
1999
|
+
floatRightButton.style.margin = "5px";
|
|
2000
|
+
const centerButton = document.createElement("button");
|
|
2001
|
+
centerButton.textContent = "Center ";
|
|
2002
|
+
centerButton.style.margin = "5px";
|
|
2003
|
+
const WrapButton = document.createElement("button");
|
|
2004
|
+
WrapButton.textContent = "Wrap";
|
|
2005
|
+
WrapButton.style.margin = "5px";
|
|
2006
|
+
const DeleteButton = document.createElement("button");
|
|
2007
|
+
DeleteButton.textContent = "Erase";
|
|
2008
|
+
DeleteButton.style.margin = "5px";
|
|
2009
|
+
const stickImage = document.createElement("button");
|
|
2010
|
+
stickImage.textContent = "Glue";
|
|
2011
|
+
stickImage.style.margin = "5px";
|
|
2012
|
+
const Unglue = document.createElement("button");
|
|
2013
|
+
Unglue.textContent = "UnGlue";
|
|
2014
|
+
Unglue.style.margin = "5px";
|
|
2015
|
+
imageAction.appendChild(DeleteButton);
|
|
2016
|
+
imageAction.appendChild(WrapButton);
|
|
2017
|
+
if (!imgResizer.classList.contains("stickImage")) {
|
|
2018
|
+
imageAction.appendChild(centerButton);
|
|
2019
|
+
imageAction.appendChild(floatRightButton);
|
|
2020
|
+
imageAction.appendChild(stickImage);
|
|
2021
|
+
imageAction.appendChild(floatLeftButton);
|
|
2022
|
+
} else {
|
|
2023
|
+
imageAction.appendChild(Unglue);
|
|
2024
|
+
}
|
|
2025
|
+
imageAction.appendChild(closeTile);
|
|
2026
|
+
imgResizer.appendChild(imageAction);
|
|
2027
|
+
stickImage.addEventListener("click", () => {
|
|
2028
|
+
imgResizer.classList.add("stickImage");
|
|
2029
|
+
Array.from(imgResizer.children).forEach((child) => {
|
|
2030
|
+
if (child.tagName.toLowerCase() !== "img") {
|
|
2031
|
+
child.style.display = "none";
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
2034
|
+
removeElemet();
|
|
2035
|
+
});
|
|
2036
|
+
Unglue.addEventListener("click", () => {
|
|
2037
|
+
imgResizer.classList.remove("stickImage");
|
|
2038
|
+
Array.from(imgResizer.children).forEach((child) => {
|
|
2039
|
+
if (child.tagName.toLowerCase() !== "img") {
|
|
2040
|
+
child.style.display = "block";
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
removeElemet();
|
|
2044
|
+
});
|
|
2045
|
+
DeleteButton.addEventListener("click", () => {
|
|
2046
|
+
imgResizer.remove();
|
|
2047
|
+
removeElemet();
|
|
2048
|
+
});
|
|
2049
|
+
WrapButton.addEventListener("click", (e2) => {
|
|
2050
|
+
const parentElement = imgResizer.parentElement;
|
|
2051
|
+
imgResizer.parentElement.innerHTML;
|
|
2052
|
+
const parentElementTageName = parentElement.tagName.toLowerCase();
|
|
2053
|
+
const spanElement = document.createElement("div");
|
|
2054
|
+
if (parentElementTageName == "div" && parentElement.id != "editor") {
|
|
2055
|
+
const collectorForNewElement = parentElement;
|
|
2056
|
+
Array.from(collectorForNewElement.attributes).forEach((attr) => {
|
|
2057
|
+
spanElement.setAttribute(attr.name, attr.value);
|
|
2058
|
+
});
|
|
2059
|
+
spanElement.innerHTML = collectorForNewElement.innerHTML;
|
|
2060
|
+
collectorForNewElement.innerHTML = "";
|
|
2061
|
+
collectorForNewElement.append(spanElement);
|
|
2062
|
+
} else {
|
|
2063
|
+
const collectorForNewElement = parentElement;
|
|
2064
|
+
spanElement.innerHTML = collectorForNewElement.innerHTML;
|
|
2065
|
+
collectorForNewElement.innerHTML = "";
|
|
2066
|
+
collectorForNewElement.append(spanElement);
|
|
2067
|
+
}
|
|
2068
|
+
removeElemet();
|
|
2069
|
+
ImageResizing();
|
|
2070
|
+
imageContainerClicked();
|
|
2071
|
+
});
|
|
2072
|
+
floatLeftButton.addEventListener("click", () => {
|
|
2073
|
+
imgResizer.style.float = "left";
|
|
2074
|
+
removeElemet();
|
|
2075
|
+
});
|
|
2076
|
+
floatRightButton.addEventListener("click", () => {
|
|
2077
|
+
imgResizer.style.float = "right";
|
|
2078
|
+
removeElemet();
|
|
2079
|
+
});
|
|
2080
|
+
centerButton.addEventListener("click", () => {
|
|
2081
|
+
imgResizer.style.display = "block";
|
|
2082
|
+
imgResizer.style.margin = "0 auto";
|
|
2083
|
+
removeElemet();
|
|
2084
|
+
});
|
|
2085
|
+
closeTile.addEventListener("click", () => {
|
|
2086
|
+
imgResizer.style.display = "block";
|
|
2087
|
+
imgResizer.style.margin = "0 auto";
|
|
2088
|
+
removeElemet();
|
|
2089
|
+
});
|
|
2090
|
+
document.addEventListener("click", function removeAction(e2) {
|
|
2091
|
+
if (!imgResizer.contains(e2.target)) {
|
|
2092
|
+
removeElemet();
|
|
2093
|
+
document.removeEventListener("click", removeAction);
|
|
2094
|
+
}
|
|
2095
|
+
}, { once: true });
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
function imageContainerClicked(e) {
|
|
2099
|
+
const elements = document.getElementsByClassName("resizer-image-dropped");
|
|
2100
|
+
Array.from(elements).forEach((imgResizer) => {
|
|
2101
|
+
dropedImageRedirection(imgResizer);
|
|
2102
|
+
});
|
|
2103
|
+
imageClicked.value = false;
|
|
2104
|
+
handleClickOutside();
|
|
2105
|
+
}
|
|
2106
|
+
function handleKeyPress(event) {
|
|
2107
|
+
const target = event.target;
|
|
2108
|
+
if (!target.firstElementChild) ;
|
|
2109
|
+
}
|
|
2110
|
+
onMounted(() => {
|
|
2111
|
+
onMountedFunctionsset();
|
|
2112
|
+
});
|
|
2113
|
+
function insertNewLineAtCursorFun() {
|
|
2114
|
+
insertNewLineAtCursor(editorRef.value);
|
|
2115
|
+
}
|
|
2116
|
+
function insertElementAtCursorHtagsFun(...args) {
|
|
2117
|
+
insertElementAtCursorHtags(savedRange2.value["range"], ...args);
|
|
2118
|
+
returnData();
|
|
2119
|
+
}
|
|
2120
|
+
function insertElementAtCursorFun(...args) {
|
|
2121
|
+
insertElementAtCursor(savedRange2.value["range"], ...args);
|
|
2122
|
+
returnData();
|
|
2123
|
+
}
|
|
2124
|
+
function insertUnorderedListAtCursorFun(...args) {
|
|
2125
|
+
insertUnorderedListAtCursor(savedRange2.value["range"], ...args);
|
|
2126
|
+
returnData();
|
|
2127
|
+
}
|
|
2128
|
+
function containerCursorPosition() {
|
|
2129
|
+
savedRange2.value = saveCursorPosition();
|
|
2130
|
+
updateCursorInfo();
|
|
2131
|
+
makeTableGridforCreation(savedRange2.value, editorRef.value, tablePickerGrid.value, tableDimensions.value);
|
|
2132
|
+
selectedImage = null;
|
|
2133
|
+
returnData();
|
|
2134
|
+
}
|
|
2135
|
+
function fileSize(file) {
|
|
2136
|
+
const fileSizeInBytes = file.size;
|
|
2137
|
+
const fileSizeInKB = (fileSizeInBytes / 1024).toFixed(2);
|
|
2138
|
+
const fileSizeInMB = (fileSizeInKB / 1024).toFixed(2);
|
|
2139
|
+
return { fileSizeInMB, fileSizeInKB };
|
|
2140
|
+
}
|
|
2141
|
+
function onChangeFileDrop(event) {
|
|
2142
|
+
var _a, _b, _c, _d, _e;
|
|
2143
|
+
event.preventDefault();
|
|
2144
|
+
const files = event.dataTransfer.files;
|
|
2145
|
+
if (parseFloat((_a = props.Files) == null ? void 0 : _a.limits) == parseFloat((_b = props.Files) == null ? void 0 : _b.limits)) {
|
|
2146
|
+
alert(`You can not upload more than ${props.Files.limits} images`);
|
|
2147
|
+
return;
|
|
2148
|
+
}
|
|
2149
|
+
const size = fileSize(files[0]);
|
|
2150
|
+
if (((_c = props.Files) == null ? void 0 : _c.size) > 0 && size.fileSizeInMB > parseFloat((_d = props.Files) == null ? void 0 : _d.size)) {
|
|
2151
|
+
alert(`File size should be less than ${(_e = props.Files) == null ? void 0 : _e.size} MB`);
|
|
2152
|
+
return;
|
|
2153
|
+
}
|
|
2154
|
+
console.log(`Image Droped ${size.fileSizeInMB} MB / ${size.fileSizeInKB} KB`);
|
|
2155
|
+
if (files.length > 0) {
|
|
2156
|
+
const file = files[0];
|
|
2157
|
+
const reader = new FileReader();
|
|
2158
|
+
reader.onload = (e) => {
|
|
2159
|
+
const imageUrl = e.target.result;
|
|
2160
|
+
insertImageAtCursor(imageUrl);
|
|
2161
|
+
};
|
|
2162
|
+
reader.readAsDataURL(file);
|
|
2163
|
+
}
|
|
2164
|
+
returnData();
|
|
2165
|
+
}
|
|
2166
|
+
function insertImageAtCursor(imageUrl) {
|
|
2167
|
+
removeElemet();
|
|
2168
|
+
const range = savedRange2.value["range"];
|
|
2169
|
+
if (range) {
|
|
2170
|
+
const imgElement = document.createElement("img");
|
|
2171
|
+
imgElement.src = imageUrl;
|
|
2172
|
+
imgElement.style.maxWidth = "100%";
|
|
2173
|
+
imgElement.style.position = "relative";
|
|
2174
|
+
imgElement.classList.add("resizable-image");
|
|
2175
|
+
const imgResizer = document.createElement("span");
|
|
2176
|
+
imgResizer.style.display = "inline-block";
|
|
2177
|
+
imgResizer.style.width = "200px";
|
|
2178
|
+
imgResizer.style.position = "relative";
|
|
2179
|
+
imgResizer.contentEditable = false;
|
|
2180
|
+
imgResizer.classList.add("resizer-image-dropped");
|
|
2181
|
+
imgResizer.id = Date.now();
|
|
2182
|
+
dropedImageRedirection(imgResizer);
|
|
2183
|
+
const widthResizer = document.createElement("div");
|
|
2184
|
+
widthResizer.style.width = "10px";
|
|
2185
|
+
widthResizer.style.height = "100%";
|
|
2186
|
+
widthResizer.style.background = "gray";
|
|
2187
|
+
widthResizer.style.position = "absolute";
|
|
2188
|
+
widthResizer.style.right = "0";
|
|
2189
|
+
widthResizer.style.top = "0";
|
|
2190
|
+
widthResizer.style.cursor = "ew-resize";
|
|
2191
|
+
widthResizer.style.zIndex = "2";
|
|
2192
|
+
widthResizer.classList.add("hideOnprint");
|
|
2193
|
+
widthResizer.classList.add("widthResizer");
|
|
2194
|
+
widthResizer.setAttribute("contentEditable", false);
|
|
2195
|
+
const heightResizer = document.createElement("div");
|
|
2196
|
+
heightResizer.style.width = "100%";
|
|
2197
|
+
heightResizer.style.height = "10px";
|
|
2198
|
+
heightResizer.style.background = "gray";
|
|
2199
|
+
heightResizer.style.position = "absolute";
|
|
2200
|
+
heightResizer.style.bottom = "0";
|
|
2201
|
+
heightResizer.style.left = "0";
|
|
2202
|
+
heightResizer.style.cursor = "ns-resize";
|
|
2203
|
+
heightResizer.style.zIndex = "2";
|
|
2204
|
+
heightResizer.classList.add("hideOnprint");
|
|
2205
|
+
heightResizer.classList.add("heightResizer");
|
|
2206
|
+
heightResizer.setAttribute("contentEditable", false);
|
|
2207
|
+
const cornerResizer = document.createElement("div");
|
|
2208
|
+
cornerResizer.style.width = "20px";
|
|
2209
|
+
cornerResizer.style.height = "20px";
|
|
2210
|
+
cornerResizer.style.background = "gray";
|
|
2211
|
+
cornerResizer.style.position = "absolute";
|
|
2212
|
+
cornerResizer.style.right = "0";
|
|
2213
|
+
cornerResizer.style.bottom = "0";
|
|
2214
|
+
cornerResizer.style.cursor = "nwse-resize";
|
|
2215
|
+
cornerResizer.style.zIndex = "10";
|
|
2216
|
+
cornerResizer.setAttribute("contentEditable", false);
|
|
2217
|
+
cornerResizer.classList.add("cornerResizer");
|
|
2218
|
+
imgResizer.appendChild(imgElement);
|
|
2219
|
+
imgResizer.appendChild(widthResizer);
|
|
2220
|
+
imgResizer.appendChild(heightResizer);
|
|
2221
|
+
imgResizer.appendChild(cornerResizer);
|
|
2222
|
+
imgResizer.addEventListener("click", (e) => {
|
|
2223
|
+
if (selectedImage) {
|
|
2224
|
+
selectedImage.style.border = "";
|
|
2225
|
+
}
|
|
2226
|
+
selectedImage = imgResizer;
|
|
2227
|
+
});
|
|
2228
|
+
range.insertNode(imgResizer);
|
|
2229
|
+
const parentElement = range.commonAncestorContainer;
|
|
2230
|
+
const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
|
|
2231
|
+
if (parentNode.id == "editor") {
|
|
2232
|
+
const originalElement = editorRef.value.innerHTML;
|
|
2233
|
+
editorRef.value.innerHTML = null;
|
|
2234
|
+
const wrapperContainer = document.createElement("div");
|
|
2235
|
+
wrapperContainer.innerHTML = originalElement;
|
|
2236
|
+
range.deleteContents();
|
|
2237
|
+
range.insertNode(wrapperContainer);
|
|
2238
|
+
const newRange = document.createRange();
|
|
2239
|
+
const selection = window.getSelection();
|
|
2240
|
+
selection.removeAllRanges();
|
|
2241
|
+
newRange.collapse(true);
|
|
2242
|
+
}
|
|
2243
|
+
imageContainerClicked();
|
|
2244
|
+
ImageResizing();
|
|
2245
|
+
returnData();
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
function removeElemet(classs = "Image_dropped_pom") {
|
|
2249
|
+
const elements = document.getElementsByClassName(classs);
|
|
2250
|
+
Array.from(elements).forEach((element) => {
|
|
2251
|
+
element.remove();
|
|
2252
|
+
});
|
|
2253
|
+
returnData();
|
|
2254
|
+
}
|
|
2255
|
+
function undoOrRedo(acting) {
|
|
2256
|
+
const action = UndoRedo[acting]();
|
|
2257
|
+
editorRef.value.innerHTML = action;
|
|
2258
|
+
}
|
|
2259
|
+
return (_ctx, _cache) => {
|
|
2260
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
2261
|
+
createElementVNode("div", _hoisted_2, [
|
|
2262
|
+
createElementVNode("div", _hoisted_3, [
|
|
2263
|
+
createElementVNode("div", _hoisted_4, [
|
|
2264
|
+
createElementVNode("div", _hoisted_5, [
|
|
2265
|
+
createElementVNode("div", _hoisted_6, [
|
|
2266
|
+
_hoisted_7,
|
|
2267
|
+
createElementVNode("div", _hoisted_8, [
|
|
2268
|
+
createElementVNode("div", _hoisted_9, [
|
|
2269
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(previewPrintActions, (action, i) => {
|
|
2270
|
+
return createElementVNode("div", {
|
|
2271
|
+
key: i,
|
|
2272
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
2273
|
+
onClick: ($event) => previewAndPrintFun(action.print)
|
|
2274
|
+
}, [
|
|
2275
|
+
createElementVNode("i", {
|
|
2276
|
+
class: normalizeClass(`${action.icon} p x-2`)
|
|
2277
|
+
}, null, 2),
|
|
2278
|
+
createElementVNode("strong", _hoisted_11, toDisplayString(action.label), 1)
|
|
2279
|
+
], 8, _hoisted_10);
|
|
2280
|
+
}), 64)),
|
|
2281
|
+
_hoisted_12
|
|
2282
|
+
])
|
|
2283
|
+
])
|
|
2284
|
+
])
|
|
2285
|
+
]),
|
|
2286
|
+
createElementVNode("div", _hoisted_13, [
|
|
2287
|
+
createElementVNode("div", _hoisted_14, [
|
|
2288
|
+
_hoisted_15,
|
|
2289
|
+
createElementVNode("div", _hoisted_16, [
|
|
2290
|
+
createElementVNode("div", _hoisted_17, [
|
|
2291
|
+
createElementVNode("div", {
|
|
2292
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
|
|
2293
|
+
onClick: _cache[0] || (_cache[0] = ($event) => insertElementAtCursorFun())
|
|
2294
|
+
}, _hoisted_20),
|
|
2295
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(editorTools, (tool, i) => {
|
|
2296
|
+
return createElementVNode("div", {
|
|
2297
|
+
key: i,
|
|
2298
|
+
onClick: ($event) => insertElementAtCursorFun(tool.tag, tool.value),
|
|
2299
|
+
style: normalizeStyle(tool.bg ? { backgroundColor: tool.bg, cursor: "pointer" } : {}),
|
|
2300
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
2301
|
+
}, [
|
|
2302
|
+
createElementVNode("i", {
|
|
2303
|
+
class: normalizeClass(`${tool.icon} p x-2`)
|
|
2304
|
+
}, null, 2),
|
|
2305
|
+
(openBlock(), createBlock(resolveDynamicComponent(["summary", "sub", "sup", "u", "i", "s"].includes(tool.tag) ? tool.tag : "strong"), {
|
|
2306
|
+
class: "px-3",
|
|
2307
|
+
style: { "padding-left": "0.75rem" }
|
|
2308
|
+
}, {
|
|
2309
|
+
default: withCtx(() => [
|
|
2310
|
+
createTextVNode(toDisplayString(tool.label), 1)
|
|
2311
|
+
]),
|
|
2312
|
+
_: 2
|
|
2313
|
+
}, 1024))
|
|
2314
|
+
], 12, _hoisted_21);
|
|
2315
|
+
}), 64)),
|
|
2316
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(6, (i) => {
|
|
2317
|
+
return createElementVNode("div", {
|
|
2318
|
+
key: i,
|
|
2319
|
+
onClick: ($event) => insertElementAtCursorHtagsFun("h" + i, "**h" + i + "**"),
|
|
2320
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
2321
|
+
}, [
|
|
2322
|
+
createElementVNode("span", _hoisted_23, toDisplayString(`H${i}`), 1)
|
|
2323
|
+
], 8, _hoisted_22);
|
|
2324
|
+
}), 64)),
|
|
2325
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(["capitalize", "lowercase", "uppercase"], (i) => {
|
|
2326
|
+
return createElementVNode("div", {
|
|
2327
|
+
key: i,
|
|
2328
|
+
onClick: ($event) => styleElementIncluderFun("text-transform", i),
|
|
2329
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
|
|
2330
|
+
}, [
|
|
2331
|
+
createElementVNode("span", _hoisted_25, toDisplayString(i), 1)
|
|
2332
|
+
], 8, _hoisted_24);
|
|
2333
|
+
}), 64))
|
|
2334
|
+
])
|
|
2335
|
+
])
|
|
2336
|
+
])
|
|
2337
|
+
]),
|
|
2338
|
+
createElementVNode("div", _hoisted_26, [
|
|
2339
|
+
createElementVNode("div", _hoisted_27, [
|
|
2340
|
+
_hoisted_28,
|
|
2341
|
+
createElementVNode("div", _hoisted_29, [
|
|
2342
|
+
createElementVNode("div", _hoisted_30, [
|
|
2343
|
+
createElementVNode("div", _hoisted_31, [
|
|
2344
|
+
_hoisted_32,
|
|
2345
|
+
_hoisted_33,
|
|
2346
|
+
createElementVNode("input", {
|
|
2347
|
+
type: "file",
|
|
2348
|
+
hidden: "",
|
|
2349
|
+
id: "pom43546535435445Image",
|
|
2350
|
+
accept: "image/*",
|
|
2351
|
+
multiple: "",
|
|
2352
|
+
onChange: FilesInjectionFun
|
|
2353
|
+
}, null, 32)
|
|
2354
|
+
]),
|
|
2355
|
+
createElementVNode("div", {
|
|
2356
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
2357
|
+
onClick: _cache[1] || (_cache[1] = ($event) => {
|
|
2358
|
+
openInputToFeedFun(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: `text-decoration: underline;cursor: pointer` });
|
|
2359
|
+
})
|
|
2360
|
+
}, _hoisted_36),
|
|
2361
|
+
createElementVNode("div", {
|
|
2362
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
|
|
2363
|
+
onClick: _cache[2] || (_cache[2] = ($event) => openInputToFeedFun(this))
|
|
2364
|
+
}, _hoisted_39),
|
|
2365
|
+
createElementVNode("div", null, [
|
|
2366
|
+
_hoisted_40,
|
|
2367
|
+
createElementVNode("div", {
|
|
2368
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
2369
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(removeAllTables)())
|
|
2370
|
+
}, _hoisted_43),
|
|
2371
|
+
createElementVNode("div", {
|
|
2372
|
+
class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
|
|
2373
|
+
onClick: _cache[4] || (_cache[4] = ($event) => unref(removeAllTables)(true))
|
|
2374
|
+
}, _hoisted_46),
|
|
2375
|
+
createElementVNode("div", _hoisted_47, [
|
|
2376
|
+
_hoisted_48,
|
|
2377
|
+
createElementVNode("div", {
|
|
2378
|
+
id: "table-picker-container",
|
|
2379
|
+
ref_key: "tablePickerContainer",
|
|
2380
|
+
ref: tablePickerContainer,
|
|
2381
|
+
class: "table-picker-container"
|
|
2382
|
+
}, [
|
|
2383
|
+
createElementVNode("div", {
|
|
2384
|
+
id: "table-picker-grid",
|
|
2385
|
+
ref_key: "tablePickerGrid",
|
|
2386
|
+
ref: tablePickerGrid,
|
|
2387
|
+
class: "table-picker-grid"
|
|
2388
|
+
}, null, 512),
|
|
2389
|
+
createElementVNode("span", {
|
|
2390
|
+
id: "table-dimensions",
|
|
2391
|
+
ref_key: "tableDimensions",
|
|
2392
|
+
ref: tableDimensions,
|
|
2393
|
+
class: "table-dimensions"
|
|
2394
|
+
}, "0 x 0", 512)
|
|
2395
|
+
], 512)
|
|
2396
|
+
])
|
|
2397
|
+
])
|
|
2398
|
+
])
|
|
2399
|
+
])
|
|
2400
|
+
])
|
|
2401
|
+
]),
|
|
2402
|
+
createElementVNode("div", _hoisted_49, [
|
|
2403
|
+
createElementVNode("div", _hoisted_50, [
|
|
2404
|
+
_hoisted_51,
|
|
2405
|
+
createElementVNode("div", _hoisted_52, [
|
|
2406
|
+
createElementVNode("span", _hoisted_53, [
|
|
2407
|
+
createElementVNode("div", _hoisted_54, [
|
|
2408
|
+
createElementVNode("div", _hoisted_55, [
|
|
2409
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(fonts, (font, i) => {
|
|
2410
|
+
return createElementVNode("div", {
|
|
2411
|
+
key: i,
|
|
2412
|
+
class: "menu-nav__js collection__item",
|
|
2413
|
+
title: font.label,
|
|
2414
|
+
role: "menuitemcheckbox",
|
|
2415
|
+
tabindex: "-1",
|
|
2416
|
+
"aria-disabled": "false",
|
|
2417
|
+
"aria-checked": "false"
|
|
2418
|
+
}, [
|
|
2419
|
+
createElementVNode("div", _hoisted_57, [
|
|
2420
|
+
createElementVNode("div", {
|
|
2421
|
+
style: normalizeStyle({ fontFamily: font.family }),
|
|
2422
|
+
onClick: ($event) => fontFamilyChanger("font-family", font.family)
|
|
2423
|
+
}, toDisplayString(font.label), 13, _hoisted_58)
|
|
2424
|
+
])
|
|
2425
|
+
], 8, _hoisted_56);
|
|
2426
|
+
}), 64))
|
|
2427
|
+
])
|
|
2428
|
+
])
|
|
2429
|
+
])
|
|
2430
|
+
])
|
|
2431
|
+
])
|
|
2432
|
+
]),
|
|
2433
|
+
createElementVNode("div", _hoisted_59, [
|
|
2434
|
+
createElementVNode("button", {
|
|
2435
|
+
style: { "border": "0", "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2436
|
+
onClick: _cache[5] || (_cache[5] = ($event) => ChangeTheDirectionOFTextFun("float", "left", "", "div"))
|
|
2437
|
+
}, _hoisted_61),
|
|
2438
|
+
createElementVNode("button", {
|
|
2439
|
+
style: { "border": "0", "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2440
|
+
onClick: _cache[6] || (_cache[6] = ($event) => ChangeTheDirectionOFTextFun("text-align", "center", "", "div"))
|
|
2441
|
+
}, _hoisted_63),
|
|
2442
|
+
createElementVNode("button", {
|
|
2443
|
+
style: { "border": "0", "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2444
|
+
onClick: _cache[7] || (_cache[7] = ($event) => ChangeTheDirectionOFTextFun("float", "right", "", "div"))
|
|
2445
|
+
}, _hoisted_65),
|
|
2446
|
+
createElementVNode("button", {
|
|
2447
|
+
style: { "border": "0", "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2448
|
+
onClick: _cache[8] || (_cache[8] = ($event) => ChangeTheDirectionOFTextFun("text-align", "start", "", "div"))
|
|
2449
|
+
}, _hoisted_67)
|
|
2450
|
+
]),
|
|
2451
|
+
createElementVNode("div", _hoisted_68, [
|
|
2452
|
+
_hoisted_69,
|
|
2453
|
+
createElementVNode("div", _hoisted_70, [
|
|
2454
|
+
createElementVNode("div", _hoisted_71, [
|
|
2455
|
+
createElementVNode("div", {
|
|
2456
|
+
onClick: _cache[9] || (_cache[9] = ($event) => insertUnorderedListAtCursorFun(3, "disc"))
|
|
2457
|
+
}, _hoisted_73),
|
|
2458
|
+
createElementVNode("div", {
|
|
2459
|
+
onClick: _cache[10] || (_cache[10] = ($event) => insertUnorderedListAtCursorFun(3, "circle"))
|
|
2460
|
+
}, _hoisted_75),
|
|
2461
|
+
createElementVNode("div", null, [
|
|
2462
|
+
createElementVNode("div", {
|
|
2463
|
+
class: "",
|
|
2464
|
+
onClick: _cache[11] || (_cache[11] = ($event) => insertUnorderedListAtCursorFun())
|
|
2465
|
+
}, _hoisted_77)
|
|
2466
|
+
]),
|
|
2467
|
+
createElementVNode("div", {
|
|
2468
|
+
onClick: _cache[12] || (_cache[12] = ($event) => insertUnorderedListAtCursorFun(3, "upper-latin"))
|
|
2469
|
+
}, _hoisted_79)
|
|
2470
|
+
])
|
|
2471
|
+
])
|
|
2472
|
+
])
|
|
2473
|
+
]),
|
|
2474
|
+
createElementVNode("div", _hoisted_80, [
|
|
2475
|
+
renderSlot(_ctx.$slots, "toolbar-before", {}, void 0, true),
|
|
2476
|
+
createElementVNode("div", {
|
|
2477
|
+
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",
|
|
2478
|
+
style: { "margin": "1px" },
|
|
2479
|
+
onClick: _cache[13] || (_cache[13] = ($event) => insertElementAtCursorFun())
|
|
2480
|
+
}, _hoisted_82),
|
|
2481
|
+
createElementVNode("div", {
|
|
2482
|
+
onClick: _cache[14] || (_cache[14] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
|
|
2483
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2484
|
+
style: { "margin": "6px" }
|
|
2485
|
+
}, _hoisted_84),
|
|
2486
|
+
createElementVNode("div", {
|
|
2487
|
+
onClick: _cache[15] || (_cache[15] = ($event) => insertElementAtCursorFun("u", "**underLine text**")),
|
|
2488
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2489
|
+
style: { "margin": "6px" }
|
|
2490
|
+
}, _hoisted_86),
|
|
2491
|
+
createElementVNode("div", {
|
|
2492
|
+
onClick: _cache[16] || (_cache[16] = ($event) => insertElementAtCursorFun("s", "**Strike text**")),
|
|
2493
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2494
|
+
style: { "margin": "6px" }
|
|
2495
|
+
}, [
|
|
2496
|
+
createElementVNode("i", _hoisted_87, [
|
|
2497
|
+
(openBlock(), createElementBlock("svg", _hoisted_88, _hoisted_92))
|
|
2498
|
+
])
|
|
2499
|
+
]),
|
|
2500
|
+
createElementVNode("div", {
|
|
2501
|
+
onClick: _cache[17] || (_cache[17] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
|
|
2502
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2503
|
+
style: { "margin": "6px" }
|
|
2504
|
+
}, _hoisted_94),
|
|
2505
|
+
createElementVNode("div", {
|
|
2506
|
+
onClick: _cache[18] || (_cache[18] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
|
|
2507
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2508
|
+
style: { "margin": "6px" }
|
|
2509
|
+
}, _hoisted_96),
|
|
2510
|
+
createElementVNode("div", {
|
|
2511
|
+
onClick: _cache[19] || (_cache[19] = ($event) => insertElementAtCursorFun("Code", "**code**")),
|
|
2512
|
+
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2513
|
+
style: { "margin": "6px" }
|
|
2514
|
+
}, _hoisted_98),
|
|
2515
|
+
createElementVNode("div", _hoisted_99, [
|
|
2516
|
+
createElementVNode("div", _hoisted_100, [
|
|
2517
|
+
_hoisted_101,
|
|
2518
|
+
createElementVNode("div", _hoisted_102, [
|
|
2519
|
+
createElementVNode("div", _hoisted_103, [
|
|
2520
|
+
createElementVNode("div", _hoisted_104, [
|
|
2521
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
|
|
2522
|
+
return openBlock(), createElementBlock("div", {
|
|
2523
|
+
class: "color-box",
|
|
2524
|
+
style: normalizeStyle(`background-color: #${col} ;`),
|
|
2525
|
+
onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
|
|
2526
|
+
}, null, 12, _hoisted_105);
|
|
2527
|
+
}), 256))
|
|
2528
|
+
])
|
|
2529
|
+
])
|
|
2530
|
+
])
|
|
2531
|
+
])
|
|
2532
|
+
]),
|
|
2533
|
+
createElementVNode("div", _hoisted_106, [
|
|
2534
|
+
createElementVNode("div", _hoisted_107, [
|
|
2535
|
+
_hoisted_108,
|
|
2536
|
+
createElementVNode("div", _hoisted_109, [
|
|
2537
|
+
createElementVNode("div", _hoisted_110, [
|
|
2538
|
+
createElementVNode("div", _hoisted_111, [
|
|
2539
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
|
|
2540
|
+
return openBlock(), createElementBlock("div", {
|
|
2541
|
+
class: "color-box",
|
|
2542
|
+
style: normalizeStyle(`background-color: #${col} ;`),
|
|
2543
|
+
onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
|
|
2544
|
+
}, null, 12, _hoisted_112);
|
|
2545
|
+
}), 256))
|
|
2546
|
+
])
|
|
2547
|
+
])
|
|
2548
|
+
])
|
|
2549
|
+
])
|
|
2550
|
+
]),
|
|
2551
|
+
createElementVNode("div", {
|
|
2552
|
+
title: "Redo",
|
|
2553
|
+
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",
|
|
2554
|
+
st: "",
|
|
2555
|
+
yle: "border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2556
|
+
onClick: _cache[20] || (_cache[20] = () => undoOrRedo("Undo"))
|
|
2557
|
+
}, _hoisted_114),
|
|
2558
|
+
createElementVNode("div", {
|
|
2559
|
+
title: "Redo",
|
|
2560
|
+
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",
|
|
2561
|
+
st: "",
|
|
2562
|
+
yle: "border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2563
|
+
onClick: _cache[21] || (_cache[21] = () => undoOrRedo("Redo"))
|
|
2564
|
+
}, _hoisted_116),
|
|
2565
|
+
createElementVNode("div", {
|
|
2566
|
+
title: "new fresh line",
|
|
2567
|
+
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",
|
|
2568
|
+
st: "",
|
|
2569
|
+
yle: "border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2570
|
+
onClick: _cache[22] || (_cache[22] = ($event) => insertNewLineAtCursorFun())
|
|
2571
|
+
}, _hoisted_118),
|
|
2572
|
+
createElementVNode("div", _hoisted_119, [
|
|
2573
|
+
createElementVNode("div", _hoisted_120, [
|
|
2574
|
+
_hoisted_121,
|
|
2575
|
+
createElementVNode("div", _hoisted_122, [
|
|
2576
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(50, (size) => {
|
|
2577
|
+
return createElementVNode("div", {
|
|
2578
|
+
class: "pom-editor-menu-fonts",
|
|
2579
|
+
onClick: (e) => styleElementIncluderFun("font-size", size + "pt"),
|
|
2580
|
+
key: size
|
|
2581
|
+
}, toDisplayString(size) + " pt", 9, _hoisted_123);
|
|
2582
|
+
}), 64))
|
|
2583
|
+
])
|
|
2584
|
+
])
|
|
2585
|
+
]),
|
|
2586
|
+
renderSlot(_ctx.$slots, "toolbar-after", {}, void 0, true)
|
|
2587
|
+
])
|
|
2588
|
+
])
|
|
2589
|
+
]),
|
|
2590
|
+
createElementVNode("div", {
|
|
2591
|
+
class: "",
|
|
2592
|
+
ref_key: "pomTextEditorContainer",
|
|
2593
|
+
ref: pomTextEditorContainer,
|
|
2594
|
+
id: "pom-texedito-container",
|
|
2595
|
+
style: { "width": "100%", "overflow": "hidden auto", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
|
|
2596
|
+
}, [
|
|
2597
|
+
createElementVNode("div", {
|
|
2598
|
+
width: "128",
|
|
2599
|
+
height: "128",
|
|
2600
|
+
style: normalizeStyle(`max-height:${props.maxHeight} ;min-height:15vh ;text-align: justify;`)
|
|
2601
|
+
}, [
|
|
2602
|
+
__props.TextOnly ? (openBlock(), createElementBlock("textarea", {
|
|
2603
|
+
key: 0,
|
|
2604
|
+
onMouseup: _cache[23] || (_cache[23] = ($event) => containerCursorPosition()),
|
|
2605
|
+
onKeyup: _cache[24] || (_cache[24] = (e) => {
|
|
2606
|
+
handleKeyPress(e);
|
|
2607
|
+
containerCursorPosition();
|
|
2608
|
+
}),
|
|
2609
|
+
onInput: returnData,
|
|
2610
|
+
ref_key: "editorRef",
|
|
2611
|
+
ref: editorRef,
|
|
2612
|
+
class: "editor pom-editing-area mt-1 border-gray-300",
|
|
2613
|
+
id: "editor",
|
|
2614
|
+
style: { "height": "100%", "width": "100%", "border": "none", "resize": "none" }
|
|
2615
|
+
}, toDisplayString(__props.Dvalue), 545)) : (openBlock(), createElementBlock("div", {
|
|
2616
|
+
key: 1,
|
|
2617
|
+
onKeydown: _cache[25] || (_cache[25] = withKeys(withModifiers(($event) => insertNewLineAtCursorFun(), ["ctrl"]), ["enter"])),
|
|
2618
|
+
"data-placeholder": "Your Editing.....",
|
|
2619
|
+
onDrop: onChangeFileDrop,
|
|
2620
|
+
onMouseup: _cache[26] || (_cache[26] = ($event) => containerCursorPosition()),
|
|
2621
|
+
onKeyup: _cache[27] || (_cache[27] = (e) => {
|
|
2622
|
+
handleKeyPress(e);
|
|
2623
|
+
containerCursorPosition();
|
|
2624
|
+
}),
|
|
2625
|
+
ref_key: "editorRef",
|
|
2626
|
+
ref: editorRef,
|
|
2627
|
+
class: "editor pom-editing-area mt-1 border-gray-300",
|
|
2628
|
+
onInput: returnData,
|
|
2629
|
+
contenteditable: "true",
|
|
2630
|
+
id: "editor",
|
|
2631
|
+
style: { "height": "100%", "width": "100%", "border": "none" }
|
|
2632
|
+
}, null, 544))
|
|
2633
|
+
], 4)
|
|
2634
|
+
], 512),
|
|
2635
|
+
__props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_124, [
|
|
2636
|
+
createElementVNode("div", {
|
|
2637
|
+
class: "hover:bg-gray-200",
|
|
2638
|
+
onClick: _cache[28] || (_cache[28] = ($event) => insertNewLineAtCursorFun())
|
|
2639
|
+
}, _hoisted_127),
|
|
2640
|
+
_hoisted_128,
|
|
2641
|
+
_hoisted_129
|
|
2642
|
+
])) : createCommentVNode("", true)
|
|
2643
|
+
]);
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4b7ed1ce"]]);
|
|
2648
|
+
export {
|
|
2649
|
+
Editor as default
|
|
2650
|
+
};
|