pom-text-editor 0.2.21 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,368 +1,668 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`.heading{content:"H"}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;background-color:#f0f0f0;position:relative;display:inline-block;cursor:pointer}.color-container{width:25vw;display:none;position:absolute;z-index:9999;background-color:#fff;padding:1px;box-shadow:0 4px 6px #0000001a;border:1px solid #ccc;border-radius:5px;transition:opacity .3s ease,visibility .3s ease}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.color-container:hover{display:block;box-shadow:0 4px 8px #0000001a;padding:14px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts{display:none;position:absolute}.showfontFamilyMenu:hover+.pom-editor-menu-fonts,.pom-editor-menu-fonts:hover{display:inline-block}.pom-editor-menu:hover{display:block}.pom-editor-menu{display:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:50px;height:50px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor[data-v-367a2559]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-367a2559]:focus:before{content:none}.table-picker-wrapper[data-v-367a2559]{position:relative;display:inline-block}.table-picker-trigger[data-v-367a2559]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-367a2559]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-367a2559]{display:block}.table-picker-grid[data-v-367a2559]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-367a2559]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-367a2559]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-367a2559]{font-size:12px;color:#333}.pomXEditor[data-v-367a2559]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-367a2559]:focus{outline:none;border:none}.pom-table-editor-container[data-v-367a2559]{display:flex}.pom-table-editor-container a[data-v-367a2559]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-367a2559]:link{color:#00f}.pom-table-editor-container a[data-v-367a2559]:visited{color:purple}.pom-table-editor-container a[data-v-367a2559]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-367a2559]:active{color:orange}@media print{.hideonprint[data-v-367a2559]{display:none!important}[data-v-367a2559]{overflow:hidden}}/*!
2
- * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
3
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
- * Copyright 2024 Fonticons, Inc.
5
- */.editor[data-v-c5304261]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-c5304261]:focus:before{content:none}.table-picker-wrapper[data-v-c5304261]{position:relative;display:inline-block}.table-picker-trigger[data-v-c5304261]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-c5304261]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-c5304261]{display:block}.table-picker-grid[data-v-c5304261]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-c5304261]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-c5304261]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-c5304261]{font-size:12px;color:#333}.pomXEditor[data-v-c5304261]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-c5304261]:focus{outline:none;border:none}.pom-table-editor-container[data-v-c5304261]{display:flex}.pom-table-editor-container a[data-v-c5304261]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-c5304261]:link{color:#00f}.pom-table-editor-container a[data-v-c5304261]:visited{color:purple}.pom-table-editor-container a[data-v-c5304261]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-c5304261]:active{color:orange}@media print{.hideonprint[data-v-c5304261]{display:none!important}[data-v-c5304261]{overflow:hidden}}.editor[data-v-c5304261]{padding:10px;border:1px solid #ccc;min-height:200px}.resizable-image[data-v-c5304261]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
6
- import { ref as H, onMounted as pe, openBlock as $, createElementBlock as I, Fragment as X, createElementVNode as e, unref as J, renderSlot as Q, renderList as ee, normalizeStyle as te, createTextVNode as Y, createStaticVNode as M, pushScopeId as me, popScopeId as he } from "vue";
7
- function ge() {
8
- const n = window.getSelection();
9
- if (n.rangeCount > 0) {
10
- const r = n.getRangeAt(0), o = r.startOffset;
11
- document.getElementById("cursorPosition").textContent = o;
12
- const i = r.startContainer;
13
- if (i.nodeType === Node.TEXT_NODE) {
14
- const a = i.textContent.substring(o, o + 1);
15
- document.getElementById("textAtCursor").textContent = a;
16
- } else
17
- document.getElementById("textAtCursor").textContent = "No text here";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.heading{content:"H"}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;background-color:#f0f0f0;position:relative;display:inline-block;cursor:pointer}.color-container{width:25vw;display:none;position:absolute;z-index:9999;background-color:#fff;padding:1px;box-shadow:0 4px 6px #0000001a;border:1px solid #ccc;border-radius:5px;transition:opacity .3s ease,visibility .3s ease}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.color-container:hover{display:block;box-shadow:0 4px 8px #0000001a;padding:14px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts{display:none;position:absolute}.showfontFamilyMenu:hover+.pom-editor-menu-fonts,.pom-editor-menu-fonts:hover{display:inline-block}.pom-editor-menu:hover{display:block}.pom-editor-menu{display:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:50px;height:50px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor[data-v-367a2559]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-367a2559]:focus:before{content:none}.table-picker-wrapper[data-v-367a2559]{position:relative;display:inline-block}.table-picker-trigger[data-v-367a2559]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-367a2559]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-367a2559]{display:block}.table-picker-grid[data-v-367a2559]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-367a2559]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-367a2559]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-367a2559]{font-size:12px;color:#333}.pomXEditor[data-v-367a2559]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-367a2559]:focus{outline:none;border:none}.pom-table-editor-container[data-v-367a2559]{display:flex}.pom-table-editor-container a[data-v-367a2559]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-367a2559]:link{color:#00f}.pom-table-editor-container a[data-v-367a2559]:visited{color:purple}.pom-table-editor-container a[data-v-367a2559]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-367a2559]:active{color:orange}@media print{.hideonprint[data-v-367a2559]{display:none!important}[data-v-367a2559]{overflow:hidden}}/*!\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 */.pom-main-element-container .editor[data-v-9ee2fe0b]: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-9ee2fe0b]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-9ee2fe0b]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-9ee2fe0b]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-9ee2fe0b]{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-9ee2fe0b]{display:block}.pom-main-element-container .table-picker-grid[data-v-9ee2fe0b]{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-9ee2fe0b]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-9ee2fe0b]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-9ee2fe0b]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-9ee2fe0b]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-9ee2fe0b]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-9ee2fe0b]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:active{color:orange}@media print{.hideonprint[data-v-9ee2fe0b]{display:none!important}[data-v-9ee2fe0b]{overflow:hidden}}.pom-main-element-container .editor[data-v-9ee2fe0b]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-9ee2fe0b]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ import { ref, onMounted, openBlock, createElementBlock, createElementVNode, unref, renderSlot, Fragment, renderList, normalizeStyle, toDisplayString, createCommentVNode, createStaticVNode, pushScopeId, popScopeId, createTextVNode } from "vue";
3
+ function updateCursorInfo() {
4
+ const selection = window.getSelection();
5
+ if (selection.rangeCount > 0) {
6
+ const range = selection.getRangeAt(0);
7
+ const cursorPosition = range.startOffset;
8
+ if (document.getElementById("cursorPosition")) {
9
+ document.getElementById("cursorPosition").textContent = cursorPosition;
10
+ const textNode = range.startContainer;
11
+ if (textNode.nodeType === Node.TEXT_NODE) {
12
+ const textAtCursor = textNode.textContent.substring(cursorPosition, cursorPosition + 1);
13
+ document.getElementById("textAtCursor").textContent = textAtCursor;
14
+ } else {
15
+ document.getElementById("textAtCursor").textContent = "No text here";
16
+ }
17
+ }
18
18
  }
19
19
  }
20
- function fe() {
21
- const n = window.getSelection();
22
- if (n.rangeCount > 0)
23
- return { range: n.getRangeAt(0).cloneRange(), selection: n };
20
+ function saveCursorPosition() {
21
+ const selection = window.getSelection();
22
+ if (selection.rangeCount > 0) {
23
+ return { range: selection.getRangeAt(0).cloneRange(), selection };
24
+ }
24
25
  }
25
- function le(n) {
26
- n.preventDefault();
27
- const o = n.target.parentElement, i = n.clientX, a = n.clientY, p = parseFloat(window.getComputedStyle(o).width), s = parseFloat(window.getComputedStyle(o).height);
28
- function d(m) {
29
- const x = m.clientX - i, h = m.clientY - a;
30
- o.style.width = `${p + x}px`, o.style.height = `${s + h}px`, o.style.minWidth = "50px", o.style.minHeight = "50px";
31
- const g = o.querySelector("img");
32
- g && (g.style.width = "100%");
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%";
33
44
  }
34
- function u() {
35
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
45
+ function onMouseUp() {
46
+ document.removeEventListener("mousemove", onMouseMove);
47
+ document.removeEventListener("mouseup", onMouseUp);
36
48
  }
37
- document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
49
+ document.addEventListener("mousemove", onMouseMove);
50
+ document.addEventListener("mouseup", onMouseUp);
38
51
  }
39
- let B;
40
- function oe(n, r) {
41
- const [o, i] = r.textContent.split(" x ").map(Number);
42
- ye(n, i, o);
52
+ let savedRange;
53
+ function handleMouseClick(editor2, tableDimensions) {
54
+ const [columns, rows] = tableDimensions.textContent.split(" x ").map(Number);
55
+ insertTableAtCursor(editor2, rows, columns);
43
56
  }
44
- function ne(n, r, o) {
45
- const i = Array.from(o.children).indexOf(n.target), a = i % 10 + 1, p = Math.floor(i / 10) + 1;
46
- Array.from(o.children).forEach((s, d) => {
47
- d <= i ? s.style.backgroundColor = "#1f9296" : s.style.backgroundColor = "#737979";
48
- }), r.textContent = `${a} x ${p}`;
57
+ function handleMouseOver(event, tableDimensions, tablePickerGrid) {
58
+ const index = Array.from(tablePickerGrid.children).indexOf(event.target);
59
+ const columns = index % 10 + 1;
60
+ const rows = Math.floor(index / 10) + 1;
61
+ Array.from(tablePickerGrid.children).forEach((item, i) => {
62
+ if (i <= index) {
63
+ item.style.backgroundColor = "#1f9296";
64
+ } else {
65
+ item.style.backgroundColor = "#737979";
66
+ }
67
+ });
68
+ tableDimensions.textContent = `${columns} x ${rows}`;
49
69
  }
50
- function ve(n, r, o, i) {
51
- for (B = n; o.firstChild; ) {
52
- const a = o.firstChild;
53
- a.removeEventListener("mouseover", ne), a.removeEventListener("click", oe), o.removeChild(a);
70
+ function makeTableGridforCreation(savedRangep, editor2, tablePickerGrid, tableDimensions) {
71
+ savedRange = savedRangep;
72
+ while (tablePickerGrid.firstChild) {
73
+ const gridItem = tablePickerGrid.firstChild;
74
+ gridItem.removeEventListener("mouseover", handleMouseOver);
75
+ gridItem.removeEventListener("click", handleMouseClick);
76
+ tablePickerGrid.removeChild(gridItem);
54
77
  }
55
- for (let a = 0; a < 100; a++) {
56
- const p = document.createElement("div");
57
- p.addEventListener("mouseover", (s) => ne(s, i, o)), p.addEventListener("click", () => oe(r, i)), o.appendChild(p);
78
+ for (let i = 0; i < 100; i++) {
79
+ const gridItem = document.createElement("div");
80
+ gridItem.addEventListener("mouseover", (e) => handleMouseOver(e, tableDimensions, tablePickerGrid));
81
+ gridItem.addEventListener("click", () => handleMouseClick(editor2, tableDimensions));
82
+ tablePickerGrid.appendChild(gridItem);
58
83
  }
59
84
  }
60
- function ye(n, r = 2, o = 2) {
61
- const i = B.range;
62
- if (i) {
63
- const a = B.selection, p = document.createElement("div");
64
- p.classList.add("pom-table-editor-container"), p.style.display = "flex";
65
- const s = document.createElement("table");
66
- s.style.border = "1px solid black", s.style.borderCollapse = "collapse", s.classList.add("pom-table-editor");
67
- for (let m = 0; m < r; m++) {
68
- const x = document.createElement("tr");
69
- for (let h = 0; h < o; h++) {
70
- const g = document.createElement("td");
71
- g.style.border = "1px solid black", g.style.padding = "5px", g.textContent = `Row ${m + 1}, Cell ${h + 1}`;
72
- const v = document.createElement("div");
73
- v.style.width = "5px", v.style.height = "100%", v.style.position = "absolute", v.style.right = "0", v.style.top = "0", v.style.cursor = "col-resize", v.style.userSelect = "none", v.addEventListener("mousedown", le), g.style.position = "relative", g.appendChild(v), x.appendChild(g);
85
+ function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
86
+ const range = savedRange.range;
87
+ if (range) {
88
+ const selection = savedRange.selection;
89
+ const container = document.createElement("div");
90
+ container.classList.add("pom-table-editor-container");
91
+ container.style.display = "flex";
92
+ const table = document.createElement("table");
93
+ table.style.border = "1px solid black";
94
+ table.style.borderCollapse = "collapse";
95
+ table.classList.add("pom-table-editor");
96
+ for (let i = 0; i < numRows; i++) {
97
+ const row = document.createElement("tr");
98
+ for (let j = 0; j < numCols; j++) {
99
+ const cell = document.createElement("td");
100
+ cell.style.border = "1px solid black";
101
+ cell.style.padding = "5px";
102
+ cell.textContent = `Row ${i + 1}, Cell ${j + 1}`;
103
+ const resizer = document.createElement("div");
104
+ resizer.style.width = "5px";
105
+ resizer.style.height = "100%";
106
+ resizer.style.position = "absolute";
107
+ resizer.style.right = "0";
108
+ resizer.style.top = "0";
109
+ resizer.style.cursor = "col-resize";
110
+ resizer.style.userSelect = "none";
111
+ resizer.addEventListener("mousedown", initResize);
112
+ cell.style.position = "relative";
113
+ cell.appendChild(resizer);
114
+ row.appendChild(cell);
74
115
  }
75
- s.appendChild(x);
116
+ table.appendChild(row);
76
117
  }
77
- p.appendChild(s), s.addEventListener("contextmenu", function(m) {
78
- m.preventDefault(), xe(m, s, p);
79
- }), i.deleteContents(), i.insertNode(p);
80
- const d = s.querySelector("td"), u = document.createRange();
81
- return u.setStart(d, 0), u.collapse(!0), a.addRange(u), B = u.cloneRange(), n.focus(), B;
118
+ container.appendChild(table);
119
+ table.addEventListener("contextmenu", function(e) {
120
+ e.preventDefault();
121
+ createCustomContextMenu(e, table, container);
122
+ });
123
+ range.deleteContents();
124
+ range.insertNode(container);
125
+ const firstCell = table.querySelector("td");
126
+ const newRange = document.createRange();
127
+ newRange.setStart(firstCell, 0);
128
+ newRange.collapse(true);
129
+ selection.addRange(newRange);
130
+ savedRange = newRange.cloneRange();
131
+ editor2.focus();
132
+ return savedRange;
82
133
  }
83
134
  }
84
- function xe(n, r, o) {
85
- const i = document.getElementById("custom-context-menu");
86
- i && document.body.removeChild(i);
87
- const a = document.createElement("div");
88
- a.id = "custom-context-menu", a.style.position = "absolute", a.style.backgroundColor = "white", a.style.border = "1px solid #ccc", a.style.padding = "10px", a.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", a.style.zIndex = "1000", a.style.left = `${n == null ? void 0 : n.pageX}px`, a.style.top = `${n == null ? void 0 : n.pageY}px`, [
89
- { text: "Delete Table", action: () => o.remove() },
135
+ function createCustomContextMenu(e, table, container) {
136
+ const existingMenu = document.getElementById("custom-context-menu");
137
+ if (existingMenu) {
138
+ document.body.removeChild(existingMenu);
139
+ }
140
+ const contextMenu = document.createElement("div");
141
+ contextMenu.id = "custom-context-menu";
142
+ contextMenu.style.position = "absolute";
143
+ contextMenu.style.backgroundColor = "white";
144
+ contextMenu.style.border = "1px solid #ccc";
145
+ contextMenu.style.padding = "10px";
146
+ contextMenu.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
147
+ contextMenu.style.zIndex = "1000";
148
+ contextMenu.style.left = `${e == null ? void 0 : e.pageX}px`;
149
+ contextMenu.style.top = `${e == null ? void 0 : e.pageY}px`;
150
+ const options = [
151
+ { text: "Delete Table", action: () => container.remove() },
90
152
  {
91
153
  text: "Toggle Borders",
92
154
  action: () => {
93
- const s = r.style.border !== "";
94
- r.style.border = s ? "" : "1px solid black", r.style.borderCollapse = "collapse", r.querySelectorAll("td").forEach((d) => {
95
- d.style.border = s ? "" : "1px solid black";
155
+ const hasBorder = table.style.border !== "";
156
+ table.style.border = hasBorder ? "" : "1px solid black";
157
+ table.style.borderCollapse = "collapse";
158
+ table.querySelectorAll("td").forEach((td) => {
159
+ td.style.border = hasBorder ? "" : "1px solid black";
96
160
  });
97
161
  }
98
162
  },
99
163
  {
100
164
  text: "Color Table",
101
165
  action: () => {
102
- const s = document.createElement("input");
103
- s.type = "color", s.style.marginTop = "5px", s.addEventListener("input", () => {
104
- r.style.backgroundColor = s.value;
166
+ const bgColorInput = document.createElement("input");
167
+ bgColorInput.type = "color";
168
+ bgColorInput.style.marginTop = "5px";
169
+ bgColorInput.addEventListener("input", () => {
170
+ table.style.backgroundColor = bgColorInput.value;
171
+ });
172
+ const textColorInput = document.createElement("input");
173
+ textColorInput.type = "color";
174
+ textColorInput.style.marginTop = "5px";
175
+ textColorInput.addEventListener("input", () => {
176
+ table.style.color = textColorInput.value;
105
177
  });
106
- const d = document.createElement("input");
107
- d.type = "color", d.style.marginTop = "5px", d.addEventListener("input", () => {
108
- r.style.color = d.value;
109
- }), a.appendChild(document.createTextNode("Background Color:")), a.appendChild(s), a.appendChild(document.createTextNode("Text Color:")), a.appendChild(d);
178
+ contextMenu.appendChild(document.createTextNode("Background Color:"));
179
+ contextMenu.appendChild(bgColorInput);
180
+ contextMenu.appendChild(document.createTextNode("Text Color:"));
181
+ contextMenu.appendChild(textColorInput);
110
182
  }
111
183
  },
112
184
  {
113
185
  text: "Add Row",
114
186
  action: () => {
115
- const s = document.createElement("tr"), d = r.rows[0].cells.length;
116
- for (let u = 0; u < d; u++) {
117
- const m = document.createElement("td");
118
- m.style.border = "1px solid black", m.style.padding = "5px", m.textContent = `Row ${r.rows.length + 1}, Cell ${u + 1}`, s.appendChild(m);
187
+ const newRow = document.createElement("tr");
188
+ const numCols = table.rows[0].cells.length;
189
+ for (let j = 0; j < numCols; j++) {
190
+ const newCell = document.createElement("td");
191
+ newCell.style.border = "1px solid black";
192
+ newCell.style.padding = "5px";
193
+ newCell.textContent = `Row ${table.rows.length + 1}, Cell ${j + 1}`;
194
+ newRow.appendChild(newCell);
119
195
  }
120
- r.appendChild(s);
196
+ table.appendChild(newRow);
121
197
  }
122
198
  },
123
199
  {
124
200
  text: "Add Column",
125
201
  action: () => {
126
- for (let s = 0; s < r.rows.length; s++) {
127
- const d = document.createElement("td");
128
- d.style.border = "1px solid black", d.style.padding = "5px", d.textContent = `Row ${s + 1}, Cell ${r.rows[s].cells.length + 1}`, r.rows[s].appendChild(d);
202
+ for (let i = 0; i < table.rows.length; i++) {
203
+ const newCell = document.createElement("td");
204
+ newCell.style.border = "1px solid black";
205
+ newCell.style.padding = "5px";
206
+ newCell.textContent = `Row ${i + 1}, Cell ${table.rows[i].cells.length + 1}`;
207
+ table.rows[i].appendChild(newCell);
129
208
  }
130
209
  }
131
210
  }
132
- ].forEach((s) => {
133
- const d = document.createElement("div");
134
- d.textContent = s.text, d.style.cursor = "pointer", d.addEventListener("click", s.action), a.appendChild(d);
135
- }), document.body.appendChild(a), document.addEventListener("click", function s() {
136
- a && document.body.removeChild(a), document.removeEventListener("click", s);
211
+ ];
212
+ options.forEach((option) => {
213
+ const optionElement = document.createElement("div");
214
+ optionElement.textContent = option.text;
215
+ optionElement.style.cursor = "pointer";
216
+ optionElement.addEventListener("click", option.action);
217
+ contextMenu.appendChild(optionElement);
218
+ });
219
+ document.body.appendChild(contextMenu);
220
+ document.addEventListener("click", function removeMenu() {
221
+ if (contextMenu) {
222
+ document.body.removeChild(contextMenu);
223
+ }
224
+ document.removeEventListener("click", removeMenu);
137
225
  });
138
226
  }
139
- function q(n, r = "strong", o = "*bold text here *", i = []) {
140
- if (n) {
141
- const a = window.getSelection();
142
- a.removeAllRanges(), a.addRange(n);
143
- const p = a.getRangeAt(0), s = `${p.toString()}`.trim(), d = p.cloneContents();
144
- if (typeof r == "string" && r.trim() !== "") {
145
- const u = document.createElement(r);
146
- u.style.paddingLeft = "7px", u.contenteditable = !1, i && i.forEach((g) => {
147
- const { attr: v, value: y, keyin: w } = g;
148
- u.setAttribute(v, y);
149
- }), u.appendChild(d), u.innerHTML = s.length > 0 ? u.innerHTML : o;
150
- const m = document.createElement("span"), x = document.createElement("span");
151
- m.innerHTML = "&nbsp;", x.innerHTML = "&nbsp;", n.deleteContents(), n.insertNode(m), n.insertNode(u), n.insertNode(x);
152
- const h = document.createRange();
153
- h.setStartAfter(x), h.collapse(!0), a.removeAllRanges(), a.addRange(h), n = h.cloneRange();
154
- } else
155
- console.error("Invalid element type:", r);
156
- } else
227
+ function insertElementAtCursor(savedRange2, elementType = "strong", placeholderText = "*bold text here *", attributes = []) {
228
+ var _a;
229
+ if (savedRange2) {
230
+ const selection = window.getSelection();
231
+ selection.removeAllRanges();
232
+ selection.addRange(savedRange2);
233
+ const range = selection.getRangeAt(0);
234
+ const getThehighLighted = `${range.toString()}`.trim();
235
+ const highlightedText = range.cloneContents();
236
+ const parentElement = range.commonAncestorContainer;
237
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
238
+ const tagName = `${parentNode.tagName}`.toLowerCase();
239
+ if (typeof elementType === "string" && elementType.trim() !== "") {
240
+ let elm = document.createElement(elementType);
241
+ elm.contenteditable = false;
242
+ if (attributes) {
243
+ attributes.forEach((l) => {
244
+ const { attr, value, keyin } = l;
245
+ elm.setAttribute(attr, value);
246
+ });
247
+ }
248
+ elm.appendChild(highlightedText);
249
+ if (`${elementType}`.toLowerCase() == "code") {
250
+ console.log(elm.innerHTML, "elmelmelm");
251
+ } else {
252
+ if (!((_a = parentNode.classList) == null ? void 0 : _a.contains("pom-editing-area"))) {
253
+ parentNode.innerHTML;
254
+ console.log({ highlightedText, elementType, tagName }, "parentNodeparentNode", elm.innerHTML);
255
+ if (elementType == tagName) {
256
+ elm = createHtmlNode(elm.innerHTML);
257
+ parentNode.parentNode.removeChild(parentNode);
258
+ }
259
+ }
260
+ }
261
+ elm.innerHTML = getThehighLighted.length > 0 ? elm.innerHTML : placeholderText;
262
+ const spaceAfter = document.createElement("span");
263
+ spaceAfter.innerHTML = "&nbsp;&nbsp;&nbsp;";
264
+ savedRange2.deleteContents();
265
+ savedRange2.insertNode(spaceAfter);
266
+ savedRange2.insertNode(elm);
267
+ const newRange = document.createRange();
268
+ newRange.setStartAfter(spaceAfter);
269
+ newRange.collapse(true);
270
+ selection.removeAllRanges();
271
+ selection.addRange(newRange);
272
+ savedRange2 = newRange.cloneRange();
273
+ } else {
274
+ console.error("Invalid element type:", elementType);
275
+ }
276
+ } else {
157
277
  console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
278
+ }
279
+ }
280
+ function createHtmlNode(htmlString) {
281
+ const tempDiv = document.createElement("div");
282
+ tempDiv.innerHTML = htmlString;
283
+ return tempDiv;
158
284
  }
159
- function _e(n, r, o = "span", i = "datetime-local", a = {}, p = []) {
160
- const s = document.getElementById("Pom-openInputToFeed" + i);
161
- s && s.remove();
162
- const d = document.createElement("div"), u = document.createElement("input");
163
- d.id = "custom-context-menu", d.style.position = "absolute", d.style.backgroundColor = "white", d.style.border = "1px solid #ccc", d.style.padding = "10px", d.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)", d.style.zIndex = "1000", d.style.left = `${r == null ? void 0 : r.pageX}px`, d.style.top = `${r == null ? void 0 : r.pageY}px`, u.id = "Pom-openInputToFeed" + i, u.classList.add("Pom-openInputToFeed"), u.type = i, u.style.cssText = a, d.appendChild(u);
164
- const m = document.getElementById("toolbar");
165
- m && m.appendChild(d), u.addEventListener("change", function() {
166
- const g = `${this.value}`;
167
- if (i == "datetime-local")
168
- q(n, o, g.replace(/T/, " "));
285
+ function openInputToFeed(savedRange2, e, element = "span", type = "datetime-local", cssStyle = {}, attributes = []) {
286
+ const cleanzefirst = document.getElementById("Pom-openInputToFeed" + type);
287
+ if (cleanzefirst)
288
+ cleanzefirst.remove();
289
+ const div = document.createElement("div");
290
+ const dateInput = document.createElement("input");
291
+ div.id = "custom-context-menu";
292
+ div.style.position = "absolute";
293
+ div.style.backgroundColor = "white";
294
+ div.style.border = "1px solid #ccc";
295
+ div.style.padding = "10px";
296
+ div.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
297
+ div.style.zIndex = "1000";
298
+ div.style.left = `${e == null ? void 0 : e.pageX}px`;
299
+ div.style.top = `${e == null ? void 0 : e.pageY}px`;
300
+ dateInput.id = "Pom-openInputToFeed" + type;
301
+ dateInput.classList.add("Pom-openInputToFeed");
302
+ dateInput.type = type;
303
+ dateInput.style.cssText = cssStyle;
304
+ div.appendChild(dateInput);
305
+ const toolbar = document.getElementById("toolbar");
306
+ if (toolbar) {
307
+ toolbar.appendChild(div);
308
+ }
309
+ dateInput.addEventListener("change", function() {
310
+ const inputValue = `${this.value}`;
311
+ if (type == "datetime-local")
312
+ insertElementAtCursor(savedRange2, element, inputValue.replace(/T/, " "));
169
313
  else {
170
- let y = [];
171
- for (const w in p)
172
- if (p.hasOwnProperty(w))
173
- if (w.toLowerCase() === "href")
174
- y.push({ attr: w, value: g });
175
- else {
176
- const R = p[w];
177
- y.push({ attr: w, value: R });
314
+ let attrV = [];
315
+ for (const key in attributes) {
316
+ if (attributes.hasOwnProperty(key)) {
317
+ if (key.toLowerCase() === "href") {
318
+ attrV.push({ attr: key, value: inputValue });
319
+ } else {
320
+ const v = attributes[key];
321
+ attrV.push({ attr: key, value: v });
178
322
  }
179
- q(n, o, "**link Name** ", y);
323
+ }
324
+ }
325
+ insertElementAtCursor(savedRange2, element, "**link Name** ", attrV);
326
+ }
327
+ div.remove();
328
+ window.document.removeEventListener("click", handleDocumentClick);
329
+ const elements = document.getElementsByClassName("pom-editor-anchor-tag");
330
+ for (let i = 0; i < elements.length; i++) {
331
+ elements[i].addEventListener("click", clickLink);
180
332
  }
181
- d.remove(), window.document.removeEventListener("click", x);
182
- const v = document.getElementsByClassName("pom-editor-anchor-tag");
183
- for (let y = 0; y < v.length; y++)
184
- v[y].addEventListener("click", h);
185
333
  });
186
- function x(g) {
187
- d.contains(g.target) || (d.remove(), window.document.removeEventListener("click", x));
334
+ function handleDocumentClick(event) {
335
+ if (!div.contains(event.target)) {
336
+ div.remove();
337
+ window.document.removeEventListener("click", handleDocumentClick);
338
+ }
188
339
  }
189
- function h(g) {
190
- g.preventDefault();
191
- const v = this.href;
192
- window.open(v, "_blank"), window.document.removeEventListener("click", h);
340
+ function clickLink(e2) {
341
+ e2.preventDefault();
342
+ const href = this.href;
343
+ window.open(href, "_blank");
344
+ window.document.removeEventListener("click", clickLink);
193
345
  }
194
346
  }
195
- function be(n, r, o, i, a = "", p = "span") {
196
- if (!n) {
347
+ function changeTextDirection(savedRange2, editor2, style, value, suffix = "", elementType = "span", imageClick = false) {
348
+ var _a, _b;
349
+ if (!savedRange2) {
197
350
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
198
351
  return;
199
352
  }
200
- const s = window.getSelection();
201
- s.removeAllRanges(), s.addRange(n);
202
- const d = s.getRangeAt(0), u = d.cloneContents(), m = d.commonAncestorContainer, x = m.nodeType === Node.TEXT_NODE ? m.parentNode : m;
203
- let h, g;
204
- h = document.createElement(p), h.classList.add("pom-4-textDirection"), h.setAttribute("id", `pom-4-textDirection-${Date.now()}`);
205
- const v = `${x.tagName}`.toLowerCase(), y = x.classList.contains("resizer-image-dropped");
206
- if (v == "ul" || y) {
207
- alert(i);
208
- const T = {
209
- justify: "inline-start",
210
- none: "inline-none",
211
- end: "inline-end",
212
- start: "none",
213
- center: "inline-start"
214
- };
215
- x.style.float = `${T[i]}`, x.style.fontWeight = "bold";
353
+ const floats = {
354
+ justify: "left",
355
+ none: "left",
356
+ end: "right",
357
+ start: "left",
358
+ center: "left"
359
+ };
360
+ if (imageClick) {
361
+ imageClick.target.parentElement.style.float = `${floats[value]}`;
216
362
  return;
217
363
  }
218
- h.appendChild(u), x.id === "editor" ? (g = h.innerHTML.replace("text-align", "note"), n.deleteContents()) : (g = h.innerHTML, n.deleteContents());
219
- const w = h.style[o] || "", R = new RegExp(a, "ig"), C = i.replace(R, "") + a;
220
- w.includes(C) ? h.style[o] = w.replace(C, "") : h.style[o] = (w + C).trim(), h.style["margin-left"] = "4px", h.style["margin-right"] = "4px", h.innerHTML = g, n.insertNode(h);
221
- const L = document.createRange();
222
- L.collapse(!0), s.removeAllRanges(), s.addRange(L), n = L.cloneRange(), r.focus();
223
- }
224
- function we(n, r = 2, o = "list-style") {
225
- if (n) {
226
- const i = window.getSelection();
227
- i.removeAllRanges(), i.addRange(n);
228
- const a = document.createElement("ul");
229
- a.style.listStyle = o, a.style.paddingLeft = "73px";
230
- for (let d = 0; d < r; d++) {
231
- const u = document.createElement("li");
232
- u.style.padding = "5px", u.textContent = `li ${d + 1}, `, u.style.position = "relative", a.appendChild(u);
233
- }
234
- n.deleteContents(), n.insertNode(a);
235
- const p = a.querySelector("td"), s = document.createRange();
236
- s.setStart(p, 0), s.collapse(!0), i.removeAllRanges(), i.addRange(s), n = s.cloneRange(), editor.focus();
364
+ const selection = window.getSelection();
365
+ selection.removeAllRanges();
366
+ selection.addRange(savedRange2);
367
+ const range = selection.getRangeAt(0);
368
+ let highlightedText = range.cloneContents();
369
+ const parentElement = range.commonAncestorContainer;
370
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
371
+ let element, textToReplace;
372
+ element = document.createElement(elementType);
373
+ element.classList.add("pom-4-textDirection");
374
+ element.setAttribute("id", `pom-4-textDirection-${Date.now()}`);
375
+ const tagName = `${parentNode.tagName}`.toLowerCase();
376
+ const incaseImage = parentNode ? (_a = parentNode.classList) == null ? void 0 : _a.contains("resizer-image-dropped") : null;
377
+ if (parentNode && ((_b = parentNode.classList) == null ? void 0 : _b.contains("pom-4-textDirection"))) {
378
+ parentNode.childNodes.forEach((node) => {
379
+ var _a2;
380
+ if (node.nodeType === Node.ELEMENT_NODE) {
381
+ if (!((_a2 = node.classList) == null ? void 0 : _a2.contains("resizer-image-dropped")))
382
+ node.removeAttribute("style");
383
+ }
384
+ });
237
385
  }
238
- }
239
- function ke(n) {
240
- n.preventDefault();
241
- const o = n.target.parentElement, i = document.getElementById("editor"), a = n.clientX, p = n.clientY, s = parseFloat(window.getComputedStyle(o).left) || 0, d = parseFloat(window.getComputedStyle(o).top) || 0, u = i.offsetWidth, m = i.offsetHeight, x = o.offsetWidth, h = o.offsetHeight;
242
- function g(y) {
243
- const w = y.clientX - a, R = y.clientY - p;
244
- let C = s + w, L = d + R;
245
- C < 0 ? C = 0 : C + x > u && (C = u - x), L < 0 ? L = 0 : L + h > m && (L = m - h), o.style.left = `${C}px`, o.style.top = `${L}px`;
246
- const T = u / 2, P = m / 2, N = C + x / 2, b = L + h / 2;
247
- Math.abs(N - T) < 1 && Math.abs(b - P) < 1 && alert("Container is centered!");
386
+ if (tagName == "ul" || incaseImage || tagName == "img") {
387
+ parentNode.style.float = `${floats[value]}`;
388
+ parentNode.style.fontWeight = "bold";
389
+ return;
248
390
  }
249
- function v() {
250
- document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", v);
391
+ element.appendChild(highlightedText);
392
+ if (parentNode.id === "editor") {
393
+ textToReplace = element.innerHTML.replace("text-align", "note");
394
+ savedRange2.deleteContents();
395
+ } else {
396
+ textToReplace = element.innerHTML;
397
+ savedRange2.deleteContents();
251
398
  }
252
- document.addEventListener("mousemove", g), document.addEventListener("mouseup", v);
253
- }
254
- function Ce(n, r) {
255
- try {
256
- const o = document.createElement("div");
257
- o.style.width = "20px", o.style.height = "20px", o.style.background = "rgba(0, 0, 0, 0.5)", o.style.position = "absolute", o.style.left = "0", o.style.top = "0", o.style.cursor = "move", o.style.zIndex = "11", o.classList.add(r), o.classList.add("hideonprint"), o.addEventListener("mousedown", (i) => {
258
- ke(i);
259
- }), n.appendChild(o);
260
- } catch (o) {
261
- console.log(o);
399
+ const currentStyle = element.style[style] || "";
400
+ const regex = new RegExp(suffix, "ig");
401
+ const rp = value.replace(regex, "") + suffix;
402
+ if (currentStyle.includes(rp)) {
403
+ element.style[style] = currentStyle.replace(rp, "");
404
+ } else {
405
+ element.style[style] = (currentStyle + rp).trim();
262
406
  }
407
+ element.style["margin-left"] = "4px";
408
+ element.style["margin-right"] = "4px";
409
+ element.innerHTML = textToReplace;
410
+ savedRange2.insertNode(element);
411
+ const newRange = document.createRange();
412
+ newRange.collapse(true);
413
+ selection.removeAllRanges();
414
+ selection.addRange(newRange);
415
+ savedRange2 = newRange.cloneRange();
416
+ editor2.focus();
263
417
  }
264
- function Ee(n, r) {
265
- if (n) {
266
- const o = window.getSelection();
267
- o.removeAllRanges(), o.addRange(n);
268
- const i = "Pom_Imge_EditorIn" + Date.now(), a = document.createElement("div");
269
- a.style.display = "inline-flex", a.style.position = "relative", a.style.width = "200px", a.style.minHeight = "40px", a.classList.add(i), a.classList.add("hideOnprint"), a.classList.add("pom-4-imageContainer"), a.id = i, a.setAttribute("contenteditable", !1);
270
- const p = document.createElement("img");
271
- p.style.padding = "5px", p.style.width = "100%", p.src = r, p.style.display = "block", p.classList.add(i), p.setAttribute("contenteditable", !1);
272
- const s = document.createElement("div");
273
- s.style.width = "20px", s.style.height = "20px", s.style.background = "gray", s.style.position = "absolute", s.style.right = "0", s.style.bottom = "0", s.style.cursor = "nwse-resize", s.style.zIndex = "10", s.classList.add(i), s.setAttribute("contenteditable", !1), s.classList.add("hideOnprint"), s.addEventListener("mousedown", le), a.appendChild(p), a.appendChild(s), Ce(a, i), n.deleteContents(), n.insertNode(a);
274
- const d = document.createRange();
275
- d.setStartAfter(p), d.collapse(!0), o.removeAllRanges(), o.addRange(d), n = d.cloneRange(), editor.focus();
276
- let u = document.getElementsByClassName(i);
277
- for (let m = 0; m < u.length; m++)
278
- u[m].addEventListener("keyup", function(h) {
279
- h.keyCode == 8;
280
- });
418
+ function insertUnorderedListAtCursor(savedRange2, numRows = 2, liststyle = "list-style") {
419
+ if (savedRange2) {
420
+ const selection = window.getSelection();
421
+ selection.removeAllRanges();
422
+ selection.addRange(savedRange2);
423
+ const row = document.createElement("ul");
424
+ row.style.listStyle = liststyle;
425
+ row.style.paddingLeft = "73px";
426
+ for (let i = 0; i < numRows; i++) {
427
+ const cell = document.createElement("li");
428
+ cell.style.padding = "5px";
429
+ cell.textContent = `li ${i + 1}, `;
430
+ cell.style.position = "relative";
431
+ row.appendChild(cell);
432
+ }
433
+ savedRange2.deleteContents();
434
+ savedRange2.insertNode(row);
435
+ const firstCell = row.querySelector("td");
436
+ const newRange = document.createRange();
437
+ newRange.setStart(firstCell, 0);
438
+ newRange.collapse(true);
439
+ selection.removeAllRanges();
440
+ selection.addRange(newRange);
441
+ savedRange2 = newRange.cloneRange();
442
+ editor.focus();
281
443
  }
282
444
  }
283
- async function Fe(n, r) {
284
- const o = n.target.files || n.dataTransfer.files;
285
- if (o.length) {
286
- for (const i in o)
287
- if (o.hasOwnProperty(i)) {
288
- const a = o[i], p = await Le(a);
289
- Ee(r, p);
290
- }
445
+ const UndoRedo = {
446
+ StoredText: {},
447
+ // Tracks the current state of the text/image by ID
448
+ undoStack: [],
449
+ // Holds the history of changes for undo
450
+ redoStack: [],
451
+ // Holds the history of undone changes for redo
452
+ /**
453
+ * Saves the current state of text/image and updates the undo/redo stacks
454
+ * @param {string} MyCurrentText - The current text or base64 image.
455
+ */
456
+ SaveCurrentChanges: function(MyCurrentText = "") {
457
+ if (typeof MyCurrentText !== "string") {
458
+ console.error("SaveCurrentChanges expects a string value.");
459
+ return;
460
+ }
461
+ if (this.undoStack.length && this.undoStack[this.undoStack.length - 1].text === MyCurrentText) {
462
+ console.log("No changes to save.");
463
+ return;
464
+ }
465
+ const CreateDataId = Date.now();
466
+ this.StoredText[CreateDataId] = MyCurrentText;
467
+ this.undoStack.push({ id: CreateDataId, text: MyCurrentText });
468
+ this.redoStack = [];
469
+ },
470
+ /**
471
+ * Reverts the last saved change (undo).
472
+ * @returns {string|null} - The previous state of the text/image or null if no undo is possible.
473
+ */
474
+ Undo: function() {
475
+ if (this.undoStack.length === 0) {
476
+ console.log("Nothing to undo");
477
+ return null;
478
+ }
479
+ const lastChange = this.undoStack.pop();
480
+ this.redoStack.push(lastChange);
481
+ delete this.StoredText[lastChange.id];
482
+ return lastChange.text;
483
+ },
484
+ /**
485
+ * Re-applies the most recently undone change (redo).
486
+ * @returns {string|null} - The redone state of the text/image or null if no redo is possible.
487
+ */
488
+ Redo: function() {
489
+ if (this.redoStack.length === 0) {
490
+ console.log("Nothing to redo");
491
+ return null;
492
+ }
493
+ const lastUndo = this.redoStack.pop();
494
+ this.undoStack.push(lastUndo);
495
+ this.StoredText[lastUndo.id] = lastUndo.text;
496
+ return lastUndo.text;
291
497
  }
498
+ };
499
+ function insertNewLineAtCursor(editor2) {
500
+ const spaceAfter = document.createElement("div");
501
+ spaceAfter.textContent = "NeW line ";
502
+ editor2.appendChild(spaceAfter);
503
+ spaceAfter.focus();
292
504
  }
293
- function Le(n) {
294
- return new Promise((r, o) => {
295
- const i = new FileReader();
296
- i.onloadend = () => r(i.result), i.onerror = (a) => o(a), i.readAsDataURL(n);
297
- });
298
- }
299
- function Ae(n) {
300
- const r = document.createElement("div");
301
- r.textContent = "NeW line ", n.appendChild(r), r.focus();
302
- }
303
- function ie(n = !1, r = document.getElementsByClassName("pom-table-editor-container")) {
304
- r = Array.from(r), r.forEach((o) => {
305
- if (n) {
306
- const i = o.style.display === "flex" ? "none" : "flex";
307
- o.style.display = i;
505
+ function removeAllTables(hide = false, tables = document.getElementsByClassName("pom-table-editor-container")) {
506
+ tables = Array.from(tables);
507
+ tables.forEach((table) => {
508
+ if (hide) {
509
+ const display = table.style.display === "flex" ? "none" : "flex";
510
+ table.style.display = display;
308
511
  return;
309
512
  }
310
- o.remove();
513
+ table.remove();
311
514
  });
312
515
  }
313
- function Se(n = document.getElementById("pom-texedito-container").innerHTML, r = ".hideonprint") {
314
- const o = window.open("", "", "height=900,width=800");
315
- o.document.write("<html><head><title>Print</title>"), o.document.write(`<style>
316
- ${r} {
516
+ function scopeOutTheUserDataReutur(printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = ".hideonprint") {
517
+ const printWindow2 = window.open("", "", "height=900,width=800");
518
+ printWindow2.document.write("<html><head><title>Print</title>");
519
+ printWindow2.document.write(`<style>
520
+ ${elementsTohide} {
317
521
  display: none;
318
522
  }
319
523
 
320
524
  @media print {
321
- ${r} {
525
+ ${elementsTohide} {
322
526
  display: none;
323
527
  }
324
528
  }
325
529
  .pom-4-imageContainer {
326
530
  display: block !important;
327
531
  }
328
- </style>`), o.document.write("</head><body>"), o.document.write(n), o.document.write("</body></html>"), o.document.close();
329
- const i = o.document.querySelectorAll(".pom-4-imageContainer");
330
- return ae(i), o;
532
+ </style>`);
533
+ printWindow2.document.write("</head><body>");
534
+ printWindow2.document.write(printableContent);
535
+ printWindow2.document.write("</body></html>");
536
+ printWindow2.document.close();
537
+ const removeinlineblock = printWindow2.document.querySelectorAll(".pom-4-imageContainer");
538
+ bringBackWildImages(removeinlineblock);
539
+ return printWindow2;
331
540
  }
332
- function ae(n = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
333
- n && n.forEach(function(r) {
334
- const o = r.querySelector("img"), i = r.getAttribute("style");
335
- i ? o.style.cssText = i + "; position: initial" : o.style.position = "initial", r.style.display = "block", parseInt(r.style.left, 10) > 793.7 && (r.style.left = "793.7px");
336
- });
541
+ function bringBackWildImages(imageContainers = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
542
+ if (imageContainers) {
543
+ imageContainers.forEach(function(element) {
544
+ const img = element.querySelector("img");
545
+ const computedStyles = element.getAttribute("style");
546
+ if (computedStyles) {
547
+ img.style.cssText = computedStyles + "; position: initial";
548
+ } else {
549
+ img.style.position = "initial";
550
+ }
551
+ element.style.display = "block";
552
+ const leftPosition = parseInt(element.style.left, 10);
553
+ if (leftPosition > 793.7) {
554
+ element.style.left = "793.7px";
555
+ }
556
+ });
557
+ }
337
558
  }
338
- function ze(n = document.getElementById("pom-texedito-container")) {
339
- return ae(n.querySelectorAll(".pom-4-imageContainer")), n.innerHTML;
559
+ function exportUserHtmlForAtheUse(printableContent = document.getElementById("pom-texedito-container")) {
560
+ bringBackWildImages(printableContent.querySelectorAll(".pom-4-imageContainer"));
561
+ const returnData = printableContent.innerHTML;
562
+ return returnData;
340
563
  }
341
- function Me(n = !0, r = document.getElementById("pom-texedito-container").innerHTML, o = "hideonprint") {
342
- const i = Se(r, o);
343
- n && (i.focus(), i.onload = function() {
344
- i.print();
345
- }, i.onafterprint = function() {
346
- i.close();
347
- });
564
+ function previewAndPrint(print = true, printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = "hideonprint") {
565
+ const printableContent2 = styleCss() + printableContent;
566
+ const printWindow2 = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
567
+ if (print) {
568
+ printWindow2.focus();
569
+ printWindow2.onload = function() {
570
+ printWindow2.print();
571
+ };
572
+ printWindow2.onafterprint = function() {
573
+ printWindow2.close();
574
+ };
575
+ }
348
576
  }
349
- function se(n, r, o, i, a = "", p = "span") {
350
- if (!n) {
577
+ function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", elementType = "span") {
578
+ if (!savedRange2) {
351
579
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
352
580
  return;
353
581
  }
354
- const s = window.getSelection();
355
- s.removeAllRanges(), s.addRange(n);
356
- const d = s.getRangeAt(0), u = d.cloneContents(), m = d.commonAncestorContainer;
357
- (m.nodeType === Node.TEXT_NODE ? m.parentNode : m).tagName.toLowerCase();
358
- let h;
359
- const g = document.createElement(p);
360
- g.style[o] = i, g.appendChild(u), h = g.innerHTML, n.deleteContents(), g.innerHTML = h, n.insertNode(g);
361
- const v = document.createRange();
362
- v.collapse(!0), s.removeAllRanges(), s.addRange(v), n = v.cloneRange();
582
+ const selection = window.getSelection();
583
+ selection.removeAllRanges();
584
+ selection.addRange(savedRange2);
585
+ const range = selection.getRangeAt(0);
586
+ const highlightedText = range.cloneContents();
587
+ const parentElement = range.commonAncestorContainer;
588
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
589
+ const tagName = parentNode.tagName.toLowerCase();
590
+ let textToReplace;
591
+ const element = document.createElement(elementType);
592
+ if (parentNode && tagName === elementType) {
593
+ const existingStyle = parentNode.getAttribute("style") || null;
594
+ if (existingStyle) {
595
+ parentNode.style[style] = value;
596
+ return;
597
+ }
598
+ }
599
+ element.style[style] = value;
600
+ element.appendChild(highlightedText);
601
+ textToReplace = element.innerHTML;
602
+ savedRange2.deleteContents();
603
+ element.innerHTML = textToReplace;
604
+ savedRange2.insertNode(element);
605
+ const newRange = document.createRange();
606
+ newRange.collapse(true);
607
+ selection.removeAllRanges();
608
+ selection.addRange(newRange);
609
+ savedRange2 = newRange.cloneRange();
363
610
  }
364
- function Re() {
611
+ function insertElementAtCursorHtags(savedRange2, elementType = "h6", placeholderText = "*Header text*", attributes = []) {
612
+ if (savedRange2) {
613
+ const selection = window.getSelection();
614
+ selection.removeAllRanges();
615
+ selection.addRange(savedRange2);
616
+ const range = selection.getRangeAt(0);
617
+ const getTheHighlighted = `${range.toString()}`.trim();
618
+ const highlightedText = range.cloneContents();
619
+ const parentElement = range.commonAncestorContainer;
620
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
621
+ const tagName = `${parentNode.tagName}`.toLowerCase();
622
+ const FontSize = {
623
+ h1: { "font-family": "'Arial', sans-serif", "font-size": "3rem", "font-weight": "bold", "color": "#333", "letter-spacing": "2px" },
624
+ h2: { "font-family": "'Georgia', serif", "font-size": "2rem", "color": "#444", "font-weight": 600, "line-height": "1.4" },
625
+ h3: { "font-family": "'Roboto', sans-serif", "font-size": "1.75rem", "color": "#34495e", "font-weight": 500, "text-align": "center", "line-height": "1.4" },
626
+ h4: { "font-family": "'Roboto', sans-serif", "font-size": "1.25rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
627
+ h5: { "font-family": "'Roboto', sans-serif", "font-size": "1rem", "color": "#34495e", "font-weight": 400, "text-align": "center", "line-height": "1.4" },
628
+ h6: { "font-family": "'Roboto', sans-serif", "font-size": ".5rem", "color": "#34495e", "font-weight": 200, "text-align": "center", "line-height": "1.4" }
629
+ };
630
+ const styles = FontSize[elementType];
631
+ if (parentNode && tagName === "span") {
632
+ const existingStyle = parentNode.getAttribute("style") || null;
633
+ if (existingStyle) {
634
+ parentNode.removeAttribute("style");
635
+ } else {
636
+ freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
637
+ }
638
+ } else {
639
+ freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted);
640
+ }
641
+ selection.removeAllRanges();
642
+ } else {
643
+ console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
644
+ }
645
+ }
646
+ function freshElement(savedRange2, highlightedText, styles, placeholderText, getTheHighlighted) {
647
+ let elm = document.createElement("span");
648
+ elm.contenteditable = false;
649
+ elm.appendChild(highlightedText);
650
+ Object.keys(styles).forEach((property) => {
651
+ elm.style[property] = styles[property];
652
+ });
653
+ elm.innerHTML = getTheHighlighted.length > 0 ? elm.innerHTML : placeholderText;
654
+ savedRange2.deleteContents();
655
+ savedRange2.insertNode(elm);
656
+ }
657
+ function styleCss() {
365
658
  return `<style scoped>
659
+ .resizer-image-dropped > div[contenteditable="false"] {
660
+ display: none;
661
+ }
662
+ .resizer-image-dropped{
663
+ border:none !important
664
+ }
665
+
366
666
  .table-picker-wrapper {
367
667
  position: relative;
368
668
  display: inline-block;
@@ -504,108 +804,212 @@ height: auto;
504
804
  }
505
805
  </style>`;
506
806
  }
507
- const He = (n, r) => {
508
- const o = n.__vccOpts || n;
509
- for (const [i, a] of r)
510
- o[i] = a;
511
- return o;
512
- }, l = (n) => (me("data-v-c5304261"), n = n(), he(), n), Te = {
513
- style: { width: "100%" },
807
+ const _export_sfc = (sfc, props) => {
808
+ const target = sfc.__vccOpts || sfc;
809
+ for (const [key, val] of props) {
810
+ target[key] = val;
811
+ }
812
+ return target;
813
+ };
814
+ const _withScopeId = (n) => (pushScopeId("data-v-9ee2fe0b"), n = n(), popScopeId(), n);
815
+ const _hoisted_1 = { class: "pom-main-element-container" };
816
+ const _hoisted_2 = {
817
+ style: { "width": "100%" },
514
818
  id: "fullTextEditor"
515
- }, $e = {
819
+ };
820
+ const _hoisted_3 = {
516
821
  class: "hideonprint bg-gray-100 items-center",
517
822
  id: "toolbar"
518
- }, Ie = { class: "flex flex space-x-2 items-center" }, je = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ze = { class: "relative inline-block text-left group z-10 border-0" }, Be = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Ne = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, De = {
823
+ };
824
+ const _hoisted_4 = { class: "flex flex space-x-2 items-center" };
825
+ const _hoisted_5 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
826
+ const _hoisted_6 = { class: "relative inline-block text-left group z-10 border-0" };
827
+ const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-9ee2fe0b><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-9ee2fe0b><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-9ee2fe0b><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-9ee2fe0b>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-9ee2fe0b><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-9ee2fe0b><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-9ee2fe0b></path></svg></div></div>', 1);
828
+ const _hoisted_8 = { 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" };
829
+ const _hoisted_9 = {
519
830
  class: "",
520
831
  role: "none"
521
- }, Ve = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "print p x-2" }, null, -1)), We = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Print", -1)), Pe = [
522
- Ve,
523
- We
524
- ], Ge = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, Oe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "eye p x-2" }, null, -1)), Xe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
832
+ };
833
+ const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "print p x-2" }, null, -1));
834
+ const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Print", -1));
835
+ const _hoisted_12 = [
836
+ _hoisted_10,
837
+ _hoisted_11
838
+ ];
839
+ const _hoisted_13 = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" };
840
+ const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "eye p x-2" }, null, -1));
841
+ const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
525
842
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
526
843
  id: "fullscreenButton"
527
844
  }, [
528
- /* @__PURE__ */ e("i", { class: "expand-alt p x-2" }),
529
- /* @__PURE__ */ e("strong", { class: "px-3" }, "Fullscreen")
530
- ], -1)), qe = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, Ye = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Ue = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Ke = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, Je = {
845
+ /* @__PURE__ */ createElementVNode("i", { class: "expand-alt p x-2" }),
846
+ /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Fullscreen")
847
+ ], -1));
848
+ const _hoisted_16 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
849
+ const _hoisted_17 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
850
+ const _hoisted_18 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-9ee2fe0b><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-9ee2fe0b><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-9ee2fe0b><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-9ee2fe0b>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-9ee2fe0b><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-9ee2fe0b><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-9ee2fe0b></path></svg></div></div>', 1);
851
+ const _hoisted_19 = { 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" };
852
+ const _hoisted_20 = {
531
853
  class: "",
532
854
  role: "none"
533
- }, Qe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "bold p x-2" }, null, -1)), et = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "px-3" }, "Bold", -1)), tt = [
534
- Qe,
535
- et
536
- ], ot = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "italic p x-2" }, null, -1)), nt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "px-3" }, "italic", -1)), it = [
537
- ot,
538
- nt
539
- ], st = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "underline p x-2" }, null, -1)), lt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("u", { class: "px-3" }, "underline", -1)), at = [
540
- st,
541
- lt
542
- ], rt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "strikethrough p x-2" }, null, -1)), dt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("del", { class: "px-3" }, "strike", -1)), ct = [
543
- rt,
544
- dt
545
- ], ut = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, null, -1)), pt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("sup", { class: "px-3" }, "superscript", -1)), mt = [
546
- ut,
547
- pt
548
- ], ht = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, null, -1)), gt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("sub", { class: "px-3" }, "subscript", -1)), ft = [
549
- ht,
550
- gt
551
- ], vt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-list p x-2" }, null, -1)), yt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("summary", { class: "px-3" }, "summary", -1)), xt = [
552
- vt,
553
- yt
554
- ], _t = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "list-ol p x-2" }, null, -1)), bt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), wt = [
555
- _t,
556
- bt
557
- ], kt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "list-ul p x-2" }, null, -1)), Ct = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1)), Et = [
558
- kt,
559
- Ct
560
- ], Ft = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H1", -1)), Lt = [
561
- Ft
562
- ], At = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H2", -1)), St = [
563
- At
564
- ], zt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H3", -1)), Mt = [
565
- zt
566
- ], Rt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H4", -1)), Ht = [
567
- Rt
568
- ], Tt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H5", -1)), $t = [
569
- Tt
570
- ], It = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3 solid heading px-6" }, " H6", -1)), jt = [
571
- It
572
- ], Zt = { class: "flex m-1 m-3 b g-gray-200 rounded cursor-pointer" }, Bt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("datalist", { id: "fontSizes" }, null, -1)), Nt = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" }, Dt = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, Vt = /* @__PURE__ */ M('<div class="w-full flex rounded-md" data-v-c5304261><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5304261><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5304261><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5304261>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5304261><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5304261><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5304261></path></svg></div></div>', 1), Wt = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, Pt = {
855
+ };
856
+ const _hoisted_21 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bold p x-2" }, null, -1));
857
+ const _hoisted_22 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Bold", -1));
858
+ const _hoisted_23 = [
859
+ _hoisted_21,
860
+ _hoisted_22
861
+ ];
862
+ const _hoisted_24 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "italic p x-2" }, null, -1));
863
+ const _hoisted_25 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "px-3" }, "italic", -1));
864
+ const _hoisted_26 = [
865
+ _hoisted_24,
866
+ _hoisted_25
867
+ ];
868
+ const _hoisted_27 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "underline p x-2" }, null, -1));
869
+ const _hoisted_28 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("u", { class: "px-3" }, "underline", -1));
870
+ const _hoisted_29 = [
871
+ _hoisted_27,
872
+ _hoisted_28
873
+ ];
874
+ const _hoisted_30 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "strikethrough p x-2" }, null, -1));
875
+ const _hoisted_31 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("del", { class: "px-3" }, "strike", -1));
876
+ const _hoisted_32 = [
877
+ _hoisted_30,
878
+ _hoisted_31
879
+ ];
880
+ const _hoisted_33 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, null, -1));
881
+ const _hoisted_34 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("sup", { class: "px-3" }, "superscript", -1));
882
+ const _hoisted_35 = [
883
+ _hoisted_33,
884
+ _hoisted_34
885
+ ];
886
+ const _hoisted_36 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, null, -1));
887
+ const _hoisted_37 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("sub", { class: "px-3" }, "subscript", -1));
888
+ const _hoisted_38 = [
889
+ _hoisted_36,
890
+ _hoisted_37
891
+ ];
892
+ const _hoisted_39 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-list p x-2" }, null, -1));
893
+ const _hoisted_40 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("summary", { class: "px-3" }, "summary", -1));
894
+ const _hoisted_41 = [
895
+ _hoisted_39,
896
+ _hoisted_40
897
+ ];
898
+ const _hoisted_42 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "list-ol p x-2" }, null, -1));
899
+ const _hoisted_43 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1));
900
+ const _hoisted_44 = [
901
+ _hoisted_42,
902
+ _hoisted_43
903
+ ];
904
+ const _hoisted_45 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "list-ul p x-2" }, null, -1));
905
+ const _hoisted_46 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { style: { "padding-left": "0.75rem" } }, "list manual ", -1));
906
+ const _hoisted_47 = [
907
+ _hoisted_45,
908
+ _hoisted_46
909
+ ];
910
+ const _hoisted_48 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H1", -1));
911
+ const _hoisted_49 = [
912
+ _hoisted_48
913
+ ];
914
+ const _hoisted_50 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H2", -1));
915
+ const _hoisted_51 = [
916
+ _hoisted_50
917
+ ];
918
+ const _hoisted_52 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H3", -1));
919
+ const _hoisted_53 = [
920
+ _hoisted_52
921
+ ];
922
+ const _hoisted_54 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H4", -1));
923
+ const _hoisted_55 = [
924
+ _hoisted_54
925
+ ];
926
+ const _hoisted_56 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H5", -1));
927
+ const _hoisted_57 = [
928
+ _hoisted_56
929
+ ];
930
+ const _hoisted_58 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " H6", -1));
931
+ const _hoisted_59 = [
932
+ _hoisted_58
933
+ ];
934
+ const _hoisted_60 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, "Capitalize", -1));
935
+ const _hoisted_61 = [
936
+ _hoisted_60
937
+ ];
938
+ const _hoisted_62 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, "Lowercase", -1));
939
+ const _hoisted_63 = [
940
+ _hoisted_62
941
+ ];
942
+ const _hoisted_64 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3 solid heading px-6" }, " Block", -1));
943
+ const _hoisted_65 = [
944
+ _hoisted_64
945
+ ];
946
+ const _hoisted_66 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
947
+ const _hoisted_67 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
948
+ const _hoisted_68 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-9ee2fe0b><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-9ee2fe0b><div class="py-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-9ee2fe0b><span class="cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-9ee2fe0b>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-9ee2fe0b><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-9ee2fe0b><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-9ee2fe0b></path></svg></div></div>', 1);
949
+ const _hoisted_69 = { 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" };
950
+ const _hoisted_70 = {
573
951
  class: "",
574
952
  role: "none"
575
- }, Gt = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" }, Ot = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "image p x-2" }, null, -1)), Xt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("label", {
953
+ };
954
+ const _hoisted_71 = { class: "hover:bg-gray-200 elemeSet rounded cursor-pointer" };
955
+ const _hoisted_72 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "image p x-2" }, null, -1));
956
+ const _hoisted_73 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("label", {
576
957
  for: "pom43546535435445Image",
577
958
  class: "px-3"
578
- }, "Image", -1)), qt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "anchor p x-2" }, null, -1)), Yt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Anchor", -1)), Ut = [
579
- qt,
580
- Yt
581
- ], Kt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-calendar-alt 1x" }, null, -1)), Jt = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Date/time", -1)), Qt = [
582
- Kt,
583
- Jt
584
- ], eo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "text-center w-full py-1 bg-gray-100 font-bold" }, "Table", -1)), to = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "trash-can p x-2" }, null, -1)), oo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Delete All Permanetlytable", -1)), no = [
585
- to,
586
- oo
587
- ], io = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "eye-slash p x-2" }, null, -1)), so = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "px-3" }, "Hide/Show All ", -1)), lo = [
588
- io,
589
- so
590
- ], ao = { class: "table-picker-wrapper" }, ro = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "table-picker-trigger" }, [
591
- /* @__PURE__ */ e("i", { class: "table p x-2" }),
592
- /* @__PURE__ */ e("strong", { class: "px-3" }, "Create")
593
- ], -1)), co = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" }, uo = { class: "relative inline-block text-left group z-10 border-0" }, po = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
594
- /* @__PURE__ */ e("button", {
959
+ }, "Image", -1));
960
+ const _hoisted_74 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "anchor p x-2" }, null, -1));
961
+ const _hoisted_75 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Anchor", -1));
962
+ const _hoisted_76 = [
963
+ _hoisted_74,
964
+ _hoisted_75
965
+ ];
966
+ const _hoisted_77 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-calendar-alt 1x" }, null, -1));
967
+ const _hoisted_78 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Date/time", -1));
968
+ const _hoisted_79 = [
969
+ _hoisted_77,
970
+ _hoisted_78
971
+ ];
972
+ const _hoisted_80 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-center w-full py-1 bg-gray-100 font-bold" }, "Table", -1));
973
+ const _hoisted_81 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "trash-can p x-2" }, null, -1));
974
+ const _hoisted_82 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Delete All Permanetlytable", -1));
975
+ const _hoisted_83 = [
976
+ _hoisted_81,
977
+ _hoisted_82
978
+ ];
979
+ const _hoisted_84 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "eye-slash p x-2" }, null, -1));
980
+ const _hoisted_85 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Hide/Show All ", -1));
981
+ const _hoisted_86 = [
982
+ _hoisted_84,
983
+ _hoisted_85
984
+ ];
985
+ const _hoisted_87 = { class: "table-picker-wrapper" };
986
+ const _hoisted_88 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "table-picker-trigger" }, [
987
+ /* @__PURE__ */ createElementVNode("i", { class: "table p x-2" }),
988
+ /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Create")
989
+ ], -1));
990
+ const _hoisted_89 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
991
+ const _hoisted_90 = { class: "relative inline-block text-left group z-10 border-0" };
992
+ const _hoisted_91 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
993
+ /* @__PURE__ */ createElementVNode("button", {
595
994
  type: "button",
596
995
  class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
597
996
  "aria-expanded": "true",
598
997
  "aria-haspopup": "true"
599
998
  }, [
600
- /* @__PURE__ */ e("div", { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
601
- /* @__PURE__ */ e("span", { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
999
+ /* @__PURE__ */ createElementVNode("div", { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1000
+ /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
602
1001
  ])
603
1002
  ])
604
- ], -1)), mo = { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" }, ho = { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" }, go = {
1003
+ ], -1));
1004
+ const _hoisted_92 = { class: "py-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" };
1005
+ const _hoisted_93 = { class: "cursor-pointer z-10 ml-1 my-1 rounded-full text-center text-sm font-bold text-gray-600" };
1006
+ const _hoisted_94 = {
605
1007
  class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",
606
1008
  "data-alloy-placement": "southeast",
607
- style: { height: "25vh", overflow: "auto" }
608
- }, fo = { class: "collection__group" }, vo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
1009
+ style: { "height": "25vh", "overflow": "auto" }
1010
+ };
1011
+ const _hoisted_95 = { class: "collection__group" };
1012
+ const _hoisted_96 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
609
1013
  title: "Andale Mono",
610
1014
  id: "menu-item_3745045357111728727990777",
611
1015
  role: "menuitemcheckbox",
@@ -616,22 +1020,23 @@ const He = (n, r) => {
616
1020
  "aria-checked": "false",
617
1021
  "aria-selected": "true"
618
1022
  }, [
619
- /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
620
- /* @__PURE__ */ e("div", { style: { "font-family": "andale mono, monospace" } }, "Andale Mono")
1023
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1024
+ /* @__PURE__ */ createElementVNode("div", { style: { "font-family": "andale mono, monospace" } }, "Andale Mono")
621
1025
  ]),
622
- /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
623
- /* @__PURE__ */ e("svg", {
1026
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1027
+ /* @__PURE__ */ createElementVNode("svg", {
624
1028
  width: "24",
625
1029
  height: "24",
626
1030
  focusable: "false"
627
1031
  }, [
628
- /* @__PURE__ */ e("path", {
1032
+ /* @__PURE__ */ createElementVNode("path", {
629
1033
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
630
1034
  "fill-rule": "nonzero"
631
1035
  })
632
1036
  ])
633
1037
  ])
634
- ], -1)), yo = {
1038
+ ], -1));
1039
+ const _hoisted_97 = {
635
1040
  title: "Arial",
636
1041
  id: "menu-item_8107570667141728727990778",
637
1042
  role: "menuitemcheckbox",
@@ -641,18 +1046,21 @@ const He = (n, r) => {
641
1046
  "aria-disabled": "false",
642
1047
  "aria-checked": "false",
643
1048
  "aria-selected": "false"
644
- }, xo = { class: "collection__item-label" }, _o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
645
- /* @__PURE__ */ e("svg", {
1049
+ };
1050
+ const _hoisted_98 = { class: "collection__item-label" };
1051
+ const _hoisted_99 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1052
+ /* @__PURE__ */ createElementVNode("svg", {
646
1053
  width: "24",
647
1054
  height: "24",
648
1055
  focusable: "false"
649
1056
  }, [
650
- /* @__PURE__ */ e("path", {
1057
+ /* @__PURE__ */ createElementVNode("path", {
651
1058
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
652
1059
  "fill-rule": "nonzero"
653
1060
  })
654
1061
  ])
655
- ], -1)), bo = {
1062
+ ], -1));
1063
+ const _hoisted_100 = {
656
1064
  title: "Arial Black",
657
1065
  id: "menu-item_7337372467171728727990778",
658
1066
  role: "menuitemcheckbox",
@@ -662,18 +1070,21 @@ const He = (n, r) => {
662
1070
  "aria-disabled": "false",
663
1071
  "aria-checked": "false",
664
1072
  "aria-selected": "false"
665
- }, wo = { class: "collection__item-label" }, ko = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
666
- /* @__PURE__ */ e("svg", {
1073
+ };
1074
+ const _hoisted_101 = { class: "collection__item-label" };
1075
+ const _hoisted_102 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1076
+ /* @__PURE__ */ createElementVNode("svg", {
667
1077
  width: "24",
668
1078
  height: "24",
669
1079
  focusable: "false"
670
1080
  }, [
671
- /* @__PURE__ */ e("path", {
1081
+ /* @__PURE__ */ createElementVNode("path", {
672
1082
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
673
1083
  "fill-rule": "nonzero"
674
1084
  })
675
1085
  ])
676
- ], -1)), Co = {
1086
+ ], -1));
1087
+ const _hoisted_103 = {
677
1088
  title: "Book Antiqua",
678
1089
  id: "menu-item_8277641917201728727990778",
679
1090
  role: "menuitemcheckbox",
@@ -683,18 +1094,21 @@ const He = (n, r) => {
683
1094
  "aria-disabled": "false",
684
1095
  "aria-checked": "false",
685
1096
  "aria-selected": "false"
686
- }, Eo = { class: "collection__item-label" }, Fo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
687
- /* @__PURE__ */ e("svg", {
1097
+ };
1098
+ const _hoisted_104 = { class: "collection__item-label" };
1099
+ const _hoisted_105 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1100
+ /* @__PURE__ */ createElementVNode("svg", {
688
1101
  width: "24",
689
1102
  height: "24",
690
1103
  focusable: "false"
691
1104
  }, [
692
- /* @__PURE__ */ e("path", {
1105
+ /* @__PURE__ */ createElementVNode("path", {
693
1106
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
694
1107
  "fill-rule": "nonzero"
695
1108
  })
696
1109
  ])
697
- ], -1)), Lo = {
1110
+ ], -1));
1111
+ const _hoisted_106 = {
698
1112
  title: "Comic Sans MS",
699
1113
  id: "menu-item_2698863237231728727990778",
700
1114
  role: "menuitemcheckbox",
@@ -704,18 +1118,21 @@ const He = (n, r) => {
704
1118
  "aria-disabled": "false",
705
1119
  "aria-checked": "false",
706
1120
  "aria-selected": "false"
707
- }, Ao = { class: "collection__item-label" }, So = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
708
- /* @__PURE__ */ e("svg", {
1121
+ };
1122
+ const _hoisted_107 = { class: "collection__item-label" };
1123
+ const _hoisted_108 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1124
+ /* @__PURE__ */ createElementVNode("svg", {
709
1125
  width: "24",
710
1126
  height: "24",
711
1127
  focusable: "false"
712
1128
  }, [
713
- /* @__PURE__ */ e("path", {
1129
+ /* @__PURE__ */ createElementVNode("path", {
714
1130
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
715
1131
  "fill-rule": "nonzero"
716
1132
  })
717
1133
  ])
718
- ], -1)), zo = {
1134
+ ], -1));
1135
+ const _hoisted_109 = {
719
1136
  title: "Courier New",
720
1137
  id: "menu-item_2979203277261728727990778",
721
1138
  role: "menuitemcheckbox",
@@ -725,18 +1142,21 @@ const He = (n, r) => {
725
1142
  "aria-disabled": "false",
726
1143
  "aria-checked": "false",
727
1144
  "aria-selected": "false"
728
- }, Mo = { class: "collection__item-label" }, Ro = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
729
- /* @__PURE__ */ e("svg", {
1145
+ };
1146
+ const _hoisted_110 = { class: "collection__item-label" };
1147
+ const _hoisted_111 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1148
+ /* @__PURE__ */ createElementVNode("svg", {
730
1149
  width: "24",
731
1150
  height: "24",
732
1151
  focusable: "false"
733
1152
  }, [
734
- /* @__PURE__ */ e("path", {
1153
+ /* @__PURE__ */ createElementVNode("path", {
735
1154
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
736
1155
  "fill-rule": "nonzero"
737
1156
  })
738
1157
  ])
739
- ], -1)), Ho = {
1158
+ ], -1));
1159
+ const _hoisted_112 = {
740
1160
  title: "Georgia",
741
1161
  id: "menu-item_8075939747291728727990778",
742
1162
  role: "menuitemcheckbox",
@@ -746,18 +1166,21 @@ const He = (n, r) => {
746
1166
  "aria-disabled": "false",
747
1167
  "aria-checked": "false",
748
1168
  "aria-selected": "false"
749
- }, To = { class: "collection__item-label" }, $o = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
750
- /* @__PURE__ */ e("svg", {
1169
+ };
1170
+ const _hoisted_113 = { class: "collection__item-label" };
1171
+ const _hoisted_114 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1172
+ /* @__PURE__ */ createElementVNode("svg", {
751
1173
  width: "24",
752
1174
  height: "24",
753
1175
  focusable: "false"
754
1176
  }, [
755
- /* @__PURE__ */ e("path", {
1177
+ /* @__PURE__ */ createElementVNode("path", {
756
1178
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
757
1179
  "fill-rule": "nonzero"
758
1180
  })
759
1181
  ])
760
- ], -1)), Io = {
1182
+ ], -1));
1183
+ const _hoisted_115 = {
761
1184
  title: "Helvetica",
762
1185
  id: "menu-item_8872440547321728727990778",
763
1186
  role: "menuitemcheckbox",
@@ -766,18 +1189,21 @@ const He = (n, r) => {
766
1189
  class: "menu-nav__js collection__item collection__item--enabled",
767
1190
  "aria-disabled": "false",
768
1191
  "aria-checked": "true"
769
- }, jo = { class: "collection__item-label" }, Zo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
770
- /* @__PURE__ */ e("svg", {
1192
+ };
1193
+ const _hoisted_116 = { class: "collection__item-label" };
1194
+ const _hoisted_117 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1195
+ /* @__PURE__ */ createElementVNode("svg", {
771
1196
  width: "24",
772
1197
  height: "24",
773
1198
  focusable: "false"
774
1199
  }, [
775
- /* @__PURE__ */ e("path", {
1200
+ /* @__PURE__ */ createElementVNode("path", {
776
1201
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
777
1202
  "fill-rule": "nonzero"
778
1203
  })
779
1204
  ])
780
- ], -1)), Bo = {
1205
+ ], -1));
1206
+ const _hoisted_118 = {
781
1207
  title: "Impact",
782
1208
  id: "menu-item_3423693847351728727990778",
783
1209
  role: "menuitemcheckbox",
@@ -786,18 +1212,21 @@ const He = (n, r) => {
786
1212
  class: "menu-nav__js collection__item",
787
1213
  "aria-disabled": "false",
788
1214
  "aria-checked": "false"
789
- }, No = { class: "collection__item-label" }, Do = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
790
- /* @__PURE__ */ e("svg", {
1215
+ };
1216
+ const _hoisted_119 = { class: "collection__item-label" };
1217
+ const _hoisted_120 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1218
+ /* @__PURE__ */ createElementVNode("svg", {
791
1219
  width: "24",
792
1220
  height: "24",
793
1221
  focusable: "false"
794
1222
  }, [
795
- /* @__PURE__ */ e("path", {
1223
+ /* @__PURE__ */ createElementVNode("path", {
796
1224
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
797
1225
  "fill-rule": "nonzero"
798
1226
  })
799
1227
  ])
800
- ], -1)), Vo = {
1228
+ ], -1));
1229
+ const _hoisted_121 = {
801
1230
  title: "Symbol",
802
1231
  id: "menu-item_7163579447381728727990779",
803
1232
  role: "menuitemcheckbox",
@@ -806,18 +1235,21 @@ const He = (n, r) => {
806
1235
  class: "menu-nav__js collection__item",
807
1236
  "aria-disabled": "false",
808
1237
  "aria-checked": "false"
809
- }, Wo = { class: "collection__item-label" }, Po = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
810
- /* @__PURE__ */ e("svg", {
1238
+ };
1239
+ const _hoisted_122 = { class: "collection__item-label" };
1240
+ const _hoisted_123 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1241
+ /* @__PURE__ */ createElementVNode("svg", {
811
1242
  width: "24",
812
1243
  height: "24",
813
1244
  focusable: "false"
814
1245
  }, [
815
- /* @__PURE__ */ e("path", {
1246
+ /* @__PURE__ */ createElementVNode("path", {
816
1247
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
817
1248
  "fill-rule": "nonzero"
818
1249
  })
819
1250
  ])
820
- ], -1)), Go = {
1251
+ ], -1));
1252
+ const _hoisted_124 = {
821
1253
  title: "Tahoma",
822
1254
  id: "menu-item_4449979827411728727990779",
823
1255
  role: "menuitemcheckbox",
@@ -826,18 +1258,21 @@ const He = (n, r) => {
826
1258
  class: "menu-nav__js collection__item",
827
1259
  "aria-disabled": "false",
828
1260
  "aria-checked": "false"
829
- }, Oo = { class: "collection__item-label" }, Xo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
830
- /* @__PURE__ */ e("svg", {
1261
+ };
1262
+ const _hoisted_125 = { class: "collection__item-label" };
1263
+ const _hoisted_126 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1264
+ /* @__PURE__ */ createElementVNode("svg", {
831
1265
  width: "24",
832
1266
  height: "24",
833
1267
  focusable: "false"
834
1268
  }, [
835
- /* @__PURE__ */ e("path", {
1269
+ /* @__PURE__ */ createElementVNode("path", {
836
1270
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
837
1271
  "fill-rule": "nonzero"
838
1272
  })
839
1273
  ])
840
- ], -1)), qo = {
1274
+ ], -1));
1275
+ const _hoisted_127 = {
841
1276
  title: "Terminal",
842
1277
  id: "menu-item_2511923047441728727990779",
843
1278
  role: "menuitemcheckbox",
@@ -846,18 +1281,21 @@ const He = (n, r) => {
846
1281
  class: "menu-nav__js collection__item",
847
1282
  "aria-disabled": "false",
848
1283
  "aria-checked": "false"
849
- }, Yo = { class: "collection__item-label" }, Uo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
850
- /* @__PURE__ */ e("svg", {
1284
+ };
1285
+ const _hoisted_128 = { class: "collection__item-label" };
1286
+ const _hoisted_129 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1287
+ /* @__PURE__ */ createElementVNode("svg", {
851
1288
  width: "24",
852
1289
  height: "24",
853
1290
  focusable: "false"
854
1291
  }, [
855
- /* @__PURE__ */ e("path", {
1292
+ /* @__PURE__ */ createElementVNode("path", {
856
1293
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
857
1294
  "fill-rule": "nonzero"
858
1295
  })
859
1296
  ])
860
- ], -1)), Ko = {
1297
+ ], -1));
1298
+ const _hoisted_130 = {
861
1299
  title: "Times New Roman",
862
1300
  id: "menu-item_7770771337471728727990779",
863
1301
  role: "menuitemcheckbox",
@@ -866,18 +1304,21 @@ const He = (n, r) => {
866
1304
  class: "menu-nav__js collection__item",
867
1305
  "aria-disabled": "false",
868
1306
  "aria-checked": "false"
869
- }, Jo = { class: "collection__item-label" }, Qo = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
870
- /* @__PURE__ */ e("svg", {
1307
+ };
1308
+ const _hoisted_131 = { class: "collection__item-label" };
1309
+ const _hoisted_132 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1310
+ /* @__PURE__ */ createElementVNode("svg", {
871
1311
  width: "24",
872
1312
  height: "24",
873
1313
  focusable: "false"
874
1314
  }, [
875
- /* @__PURE__ */ e("path", {
1315
+ /* @__PURE__ */ createElementVNode("path", {
876
1316
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
877
1317
  "fill-rule": "nonzero"
878
1318
  })
879
1319
  ])
880
- ], -1)), en = {
1320
+ ], -1));
1321
+ const _hoisted_133 = {
881
1322
  title: "Trebuchet MS",
882
1323
  id: "menu-item_7916647947501728727990779",
883
1324
  role: "menuitemcheckbox",
@@ -886,18 +1327,21 @@ const He = (n, r) => {
886
1327
  class: "menu-nav__js collection__item",
887
1328
  "aria-disabled": "false",
888
1329
  "aria-checked": "false"
889
- }, tn = { class: "collection__item-label" }, on = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
890
- /* @__PURE__ */ e("svg", {
1330
+ };
1331
+ const _hoisted_134 = { class: "collection__item-label" };
1332
+ const _hoisted_135 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1333
+ /* @__PURE__ */ createElementVNode("svg", {
891
1334
  width: "24",
892
1335
  height: "24",
893
1336
  focusable: "false"
894
1337
  }, [
895
- /* @__PURE__ */ e("path", {
1338
+ /* @__PURE__ */ createElementVNode("path", {
896
1339
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
897
1340
  "fill-rule": "nonzero"
898
1341
  })
899
1342
  ])
900
- ], -1)), nn = {
1343
+ ], -1));
1344
+ const _hoisted_136 = {
901
1345
  title: "Verdana",
902
1346
  id: "menu-item_1549891587531728727990779",
903
1347
  role: "menuitemcheckbox",
@@ -906,18 +1350,21 @@ const He = (n, r) => {
906
1350
  class: "menu-nav__js collection__item",
907
1351
  "aria-disabled": "false",
908
1352
  "aria-checked": "false"
909
- }, sn = { class: "collection__item-label" }, ln = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
910
- /* @__PURE__ */ e("svg", {
1353
+ };
1354
+ const _hoisted_137 = { class: "collection__item-label" };
1355
+ const _hoisted_138 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1356
+ /* @__PURE__ */ createElementVNode("svg", {
911
1357
  width: "24",
912
1358
  height: "24",
913
1359
  focusable: "false"
914
1360
  }, [
915
- /* @__PURE__ */ e("path", {
1361
+ /* @__PURE__ */ createElementVNode("path", {
916
1362
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
917
1363
  "fill-rule": "nonzero"
918
1364
  })
919
1365
  ])
920
- ], -1)), an = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
1366
+ ], -1));
1367
+ const _hoisted_139 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
921
1368
  title: "Webdings",
922
1369
  id: "menu-item_955052057561728727990779",
923
1370
  role: "menuitemcheckbox",
@@ -927,22 +1374,23 @@ const He = (n, r) => {
927
1374
  "aria-disabled": "false",
928
1375
  "aria-checked": "false"
929
1376
  }, [
930
- /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
931
- /* @__PURE__ */ e("div", null, "Webdings")
1377
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1378
+ /* @__PURE__ */ createElementVNode("div", null, "Webdings")
932
1379
  ]),
933
- /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
934
- /* @__PURE__ */ e("svg", {
1380
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1381
+ /* @__PURE__ */ createElementVNode("svg", {
935
1382
  width: "24",
936
1383
  height: "24",
937
1384
  focusable: "false"
938
1385
  }, [
939
- /* @__PURE__ */ e("path", {
1386
+ /* @__PURE__ */ createElementVNode("path", {
940
1387
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
941
1388
  "fill-rule": "nonzero"
942
1389
  })
943
1390
  ])
944
1391
  ])
945
- ], -1)), rn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", {
1392
+ ], -1));
1393
+ const _hoisted_140 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
946
1394
  title: "Wingdings",
947
1395
  id: "menu-item_93264657591728727990779",
948
1396
  role: "menuitemcheckbox",
@@ -952,110 +1400,121 @@ const He = (n, r) => {
952
1400
  "aria-disabled": "false",
953
1401
  "aria-checked": "false"
954
1402
  }, [
955
- /* @__PURE__ */ e("div", { class: "collection__item-label" }, [
956
- /* @__PURE__ */ e("div", null, "Wingdings")
1403
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
1404
+ /* @__PURE__ */ createElementVNode("div", null, "Wingdings")
957
1405
  ]),
958
- /* @__PURE__ */ e("div", { class: "collection__item-checkmark" }, [
959
- /* @__PURE__ */ e("svg", {
1406
+ /* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
1407
+ /* @__PURE__ */ createElementVNode("svg", {
960
1408
  width: "24",
961
1409
  height: "24",
962
1410
  focusable: "false"
963
1411
  }, [
964
- /* @__PURE__ */ e("path", {
1412
+ /* @__PURE__ */ createElementVNode("path", {
965
1413
  d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
966
1414
  "fill-rule": "nonzero"
967
1415
  })
968
1416
  ])
969
1417
  ])
970
- ], -1)), dn = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
971
- /* @__PURE__ */ e("svg", {
1418
+ ], -1));
1419
+ const _hoisted_141 = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
1420
+ const _hoisted_142 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
1421
+ /* @__PURE__ */ createElementVNode("svg", {
972
1422
  width: "24",
973
1423
  height: "24",
974
1424
  focusable: "false"
975
1425
  }, [
976
- /* @__PURE__ */ e("path", {
1426
+ /* @__PURE__ */ createElementVNode("path", {
977
1427
  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",
978
1428
  "fill-rule": "evenodd"
979
1429
  })
980
1430
  ])
981
- ], -1)), un = [
982
- cn
983
- ], pn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", null, [
984
- /* @__PURE__ */ e("svg", {
1431
+ ], -1));
1432
+ const _hoisted_143 = [
1433
+ _hoisted_142
1434
+ ];
1435
+ const _hoisted_144 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
1436
+ /* @__PURE__ */ createElementVNode("svg", {
985
1437
  width: "24",
986
1438
  height: "24",
987
1439
  focusable: "false"
988
1440
  }, [
989
- /* @__PURE__ */ e("path", {
1441
+ /* @__PURE__ */ createElementVNode("path", {
990
1442
  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",
991
1443
  "fill-rule": "evenodd"
992
1444
  })
993
1445
  ])
994
- ], -1)), mn = [
995
- pn
996
- ], hn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
997
- /* @__PURE__ */ e("svg", {
1446
+ ], -1));
1447
+ const _hoisted_145 = [
1448
+ _hoisted_144
1449
+ ];
1450
+ const _hoisted_146 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
1451
+ /* @__PURE__ */ createElementVNode("svg", {
998
1452
  width: "24",
999
1453
  height: "24",
1000
1454
  focusable: "false"
1001
1455
  }, [
1002
- /* @__PURE__ */ e("path", {
1456
+ /* @__PURE__ */ createElementVNode("path", {
1003
1457
  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",
1004
1458
  "fill-rule": "evenodd"
1005
1459
  })
1006
1460
  ])
1007
- ], -1)), gn = [
1008
- hn
1009
- ], fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "" }, [
1010
- /* @__PURE__ */ e("svg", {
1461
+ ], -1));
1462
+ const _hoisted_147 = [
1463
+ _hoisted_146
1464
+ ];
1465
+ const _hoisted_148 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
1466
+ /* @__PURE__ */ createElementVNode("svg", {
1011
1467
  width: "24",
1012
1468
  height: "24",
1013
1469
  focusable: "false"
1014
1470
  }, [
1015
- /* @__PURE__ */ e("path", {
1471
+ /* @__PURE__ */ createElementVNode("path", {
1016
1472
  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",
1017
1473
  "fill-rule": "evenodd"
1018
1474
  })
1019
1475
  ])
1020
- ], -1)), vn = [
1021
- fn
1022
- ], yn = { class: "relative inline-block text-left group z-10 border-0 w-ful l" }, xn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "w-full flex rounded-md" }, [
1023
- /* @__PURE__ */ e("button", {
1476
+ ], -1));
1477
+ const _hoisted_149 = [
1478
+ _hoisted_148
1479
+ ];
1480
+ const _hoisted_150 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
1481
+ const _hoisted_151 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1482
+ /* @__PURE__ */ createElementVNode("button", {
1024
1483
  type: "button",
1025
1484
  class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1026
1485
  id: "menu-button",
1027
1486
  "aria-expanded": "true",
1028
1487
  "aria-haspopup": "true"
1029
1488
  }, [
1030
- /* @__PURE__ */ e("div", {
1489
+ /* @__PURE__ */ createElementVNode("div", {
1031
1490
  class: "split-button flex items-center",
1032
1491
  style: { "user-select": "none" }
1033
1492
  }, [
1034
- /* @__PURE__ */ e("span", null, [
1035
- /* @__PURE__ */ e("span", { c: "" }, [
1036
- /* @__PURE__ */ e("svg", {
1493
+ /* @__PURE__ */ createElementVNode("span", null, [
1494
+ /* @__PURE__ */ createElementVNode("span", { c: "" }, [
1495
+ /* @__PURE__ */ createElementVNode("svg", {
1037
1496
  width: "24",
1038
1497
  height: "24",
1039
1498
  focusable: "false"
1040
1499
  }, [
1041
- /* @__PURE__ */ e("path", {
1500
+ /* @__PURE__ */ createElementVNode("path", {
1042
1501
  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",
1043
1502
  "fill-rule": "evenodd"
1044
1503
  })
1045
1504
  ])
1046
1505
  ])
1047
1506
  ]),
1048
- /* @__PURE__ */ e("span", {
1507
+ /* @__PURE__ */ createElementVNode("span", {
1049
1508
  role: "presentation",
1050
1509
  class: "tbtn split-button__chevron",
1051
1510
  "aria-disabled": "false"
1052
1511
  }, [
1053
- /* @__PURE__ */ e("svg", {
1512
+ /* @__PURE__ */ createElementVNode("svg", {
1054
1513
  width: "10",
1055
1514
  height: "10",
1056
1515
  focusable: "false"
1057
1516
  }, [
1058
- /* @__PURE__ */ e("path", {
1517
+ /* @__PURE__ */ createElementVNode("path", {
1059
1518
  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",
1060
1519
  "fill-rule": "nonzero"
1061
1520
  })
@@ -1063,92 +1522,99 @@ const He = (n, r) => {
1063
1522
  ])
1064
1523
  ])
1065
1524
  ])
1066
- ], -1)), _n = { class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, bn = {
1525
+ ], -1));
1526
+ const _hoisted_152 = { 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" };
1527
+ const _hoisted_153 = {
1067
1528
  class: "flex",
1068
1529
  role: "none"
1069
- }, wn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
1070
- /* @__PURE__ */ e("svg", {
1530
+ };
1531
+ const _hoisted_154 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
1532
+ /* @__PURE__ */ createElementVNode("svg", {
1071
1533
  width: "48",
1072
1534
  height: "48",
1073
1535
  focusable: "false"
1074
1536
  }, [
1075
- /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1076
- /* @__PURE__ */ e("circle", {
1537
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1538
+ /* @__PURE__ */ createElementVNode("circle", {
1077
1539
  cx: "11",
1078
1540
  cy: "14",
1079
1541
  r: "3"
1080
1542
  }),
1081
- /* @__PURE__ */ e("circle", {
1543
+ /* @__PURE__ */ createElementVNode("circle", {
1082
1544
  cx: "11",
1083
1545
  cy: "24",
1084
1546
  r: "3"
1085
1547
  }),
1086
- /* @__PURE__ */ e("circle", {
1548
+ /* @__PURE__ */ createElementVNode("circle", {
1087
1549
  cx: "11",
1088
1550
  cy: "34",
1089
1551
  r: "3"
1090
1552
  }),
1091
- /* @__PURE__ */ e("path", {
1553
+ /* @__PURE__ */ createElementVNode("path", {
1092
1554
  opacity: ".2",
1093
1555
  d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
1094
1556
  })
1095
1557
  ])
1096
1558
  ])
1097
- ], -1)), kn = [
1098
- wn
1099
- ], Cn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, [
1100
- /* @__PURE__ */ e("svg", {
1559
+ ], -1));
1560
+ const _hoisted_155 = [
1561
+ _hoisted_154
1562
+ ];
1563
+ const _hoisted_156 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
1564
+ /* @__PURE__ */ createElementVNode("svg", {
1101
1565
  width: "48",
1102
1566
  height: "48",
1103
1567
  focusable: "false"
1104
1568
  }, [
1105
- /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1106
- /* @__PURE__ */ e("path", {
1569
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1570
+ /* @__PURE__ */ createElementVNode("path", {
1107
1571
  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",
1108
1572
  "fill-rule": "nonzero"
1109
1573
  }),
1110
- /* @__PURE__ */ e("path", {
1574
+ /* @__PURE__ */ createElementVNode("path", {
1111
1575
  opacity: ".2",
1112
1576
  d: "M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"
1113
1577
  })
1114
1578
  ])
1115
1579
  ])
1116
- ], -1)), En = [
1117
- Cn
1118
- ], Fn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("svg", {
1580
+ ], -1));
1581
+ const _hoisted_157 = [
1582
+ _hoisted_156
1583
+ ];
1584
+ const _hoisted_158 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
1119
1585
  width: "48",
1120
1586
  height: "48",
1121
1587
  viewBox: "0 0 48 48",
1122
1588
  xmlns: "http://www.w3.org/2000/svg",
1123
1589
  focusable: "false"
1124
1590
  }, [
1125
- /* @__PURE__ */ e("rect", {
1591
+ /* @__PURE__ */ createElementVNode("rect", {
1126
1592
  width: "48",
1127
1593
  height: "48",
1128
1594
  fill: "none"
1129
1595
  }),
1130
- /* @__PURE__ */ e("text", {
1596
+ /* @__PURE__ */ createElementVNode("text", {
1131
1597
  x: "12",
1132
1598
  y: "14",
1133
1599
  "font-family": "Arial",
1134
1600
  "font-size": "14",
1135
1601
  fill: "black"
1136
1602
  }, "1"),
1137
- /* @__PURE__ */ e("text", {
1603
+ /* @__PURE__ */ createElementVNode("text", {
1138
1604
  x: "12",
1139
1605
  y: "24",
1140
1606
  "font-family": "Arial",
1141
1607
  "font-size": "14",
1142
1608
  fill: "black"
1143
1609
  }, "2"),
1144
- /* @__PURE__ */ e("text", {
1610
+ /* @__PURE__ */ createElementVNode("text", {
1145
1611
  x: "12",
1146
1612
  y: "34",
1147
1613
  "font-family": "Arial",
1148
1614
  "font-size": "14",
1149
1615
  fill: "black"
1150
1616
  }, "3"),
1151
- /* @__PURE__ */ e("rect", {
1617
+ /* @__PURE__ */ createElementVNode("rect", {
1152
1618
  x: "24",
1153
1619
  y: "12",
1154
1620
  width: "20",
@@ -1156,7 +1622,7 @@ const He = (n, r) => {
1156
1622
  fill: "black",
1157
1623
  opacity: ".2"
1158
1624
  }),
1159
- /* @__PURE__ */ e("rect", {
1625
+ /* @__PURE__ */ createElementVNode("rect", {
1160
1626
  x: "24",
1161
1627
  y: "22",
1162
1628
  width: "20",
@@ -1164,7 +1630,7 @@ const He = (n, r) => {
1164
1630
  fill: "black",
1165
1631
  opacity: ".2"
1166
1632
  }),
1167
- /* @__PURE__ */ e("rect", {
1633
+ /* @__PURE__ */ createElementVNode("rect", {
1168
1634
  x: "24",
1169
1635
  y: "32",
1170
1636
  width: "20",
@@ -1172,38 +1638,40 @@ const He = (n, r) => {
1172
1638
  fill: "black",
1173
1639
  opacity: ".2"
1174
1640
  })
1175
- ], -1)), Ln = [
1176
- Fn
1177
- ], An = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "text-sm" }, [
1178
- /* @__PURE__ */ e("svg", {
1641
+ ], -1));
1642
+ const _hoisted_159 = [
1643
+ _hoisted_158
1644
+ ];
1645
+ const _hoisted_160 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-sm" }, [
1646
+ /* @__PURE__ */ createElementVNode("svg", {
1179
1647
  width: "48",
1180
1648
  height: "48",
1181
1649
  viewBox: "0 0 48 48",
1182
1650
  xmlns: "http://www.w3.org/2000/svg",
1183
1651
  focusable: "false"
1184
1652
  }, [
1185
- /* @__PURE__ */ e("text", {
1653
+ /* @__PURE__ */ createElementVNode("text", {
1186
1654
  x: "12",
1187
1655
  y: "14",
1188
1656
  "font-family": "Arial",
1189
1657
  "font-size": "14",
1190
1658
  fill: "black"
1191
1659
  }, "A"),
1192
- /* @__PURE__ */ e("text", {
1660
+ /* @__PURE__ */ createElementVNode("text", {
1193
1661
  x: "12",
1194
1662
  y: "24",
1195
1663
  "font-family": "Arial",
1196
1664
  "font-size": "14",
1197
1665
  fill: "black"
1198
1666
  }, "B"),
1199
- /* @__PURE__ */ e("text", {
1667
+ /* @__PURE__ */ createElementVNode("text", {
1200
1668
  x: "12",
1201
1669
  y: "34",
1202
1670
  "font-family": "Arial",
1203
1671
  "font-size": "14",
1204
1672
  fill: "black"
1205
1673
  }, "C"),
1206
- /* @__PURE__ */ e("rect", {
1674
+ /* @__PURE__ */ createElementVNode("rect", {
1207
1675
  x: "18",
1208
1676
  y: "12",
1209
1677
  width: "22",
@@ -1211,12 +1679,12 @@ const He = (n, r) => {
1211
1679
  fill: "black",
1212
1680
  opacity: ".2"
1213
1681
  }),
1214
- /* @__PURE__ */ e("rect", {
1682
+ /* @__PURE__ */ createElementVNode("rect", {
1215
1683
  width: "48",
1216
1684
  height: "48",
1217
1685
  fill: "none"
1218
1686
  }),
1219
- /* @__PURE__ */ e("rect", {
1687
+ /* @__PURE__ */ createElementVNode("rect", {
1220
1688
  x: "18",
1221
1689
  y: "22",
1222
1690
  width: "22",
@@ -1224,7 +1692,7 @@ const He = (n, r) => {
1224
1692
  fill: "black",
1225
1693
  opacity: ".2"
1226
1694
  }),
1227
- /* @__PURE__ */ e("rect", {
1695
+ /* @__PURE__ */ createElementVNode("rect", {
1228
1696
  x: "18",
1229
1697
  y: "32",
1230
1698
  width: "22",
@@ -1233,18 +1701,28 @@ const He = (n, r) => {
1233
1701
  opacity: ".2"
1234
1702
  })
1235
1703
  ])
1236
- ], -1)), Sn = [
1237
- An
1238
- ], zn = {
1704
+ ], -1));
1705
+ const _hoisted_161 = [
1706
+ _hoisted_160
1707
+ ];
1708
+ const _hoisted_162 = {
1239
1709
  class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
1240
- style: { height: "37px" }
1241
- }, Mn = /* @__PURE__ */ M('<i class="bold p x-2" data-v-c5304261><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g id="text-bold" transform="translate(-4 -2)" data-v-c5304261><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path><path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path><path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5304261></path></g></g></svg></i>', 1), Rn = [
1242
- Mn
1243
- ], Hn = /* @__PURE__ */ M('<i class="italic p x-2" data-v-c5304261><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g id="layer1" data-v-c5304261><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-c5304261></path></g></g></svg></i>', 1), Tn = [
1244
- Hn
1245
- ], $n = /* @__PURE__ */ M('<i class="underline p x-2" data-v-c5304261><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><g data-v-c5304261><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-c5304261></path><path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-c5304261></path></g></g></svg></i>', 1), In = [
1246
- $n
1247
- ], jn = { class: "strikethrough p x-2" }, Zn = {
1710
+ style: { "height": "37px" }
1711
+ };
1712
+ const _hoisted_163 = /* @__PURE__ */ createStaticVNode('<i class="bold p x-2" data-v-9ee2fe0b><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><g id="text-bold" transform="translate(-4 -2)" data-v-9ee2fe0b><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-9ee2fe0b></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-9ee2fe0b></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-9ee2fe0b></path></g></g></svg></i>', 1);
1713
+ const _hoisted_164 = [
1714
+ _hoisted_163
1715
+ ];
1716
+ const _hoisted_165 = /* @__PURE__ */ createStaticVNode('<i class="italic p x-2" data-v-9ee2fe0b><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><g id="layer1" data-v-9ee2fe0b><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-9ee2fe0b></path></g></g></svg></i>', 1);
1717
+ const _hoisted_166 = [
1718
+ _hoisted_165
1719
+ ];
1720
+ const _hoisted_167 = /* @__PURE__ */ createStaticVNode('<i class="underline p x-2" data-v-9ee2fe0b><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-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><g data-v-9ee2fe0b><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-9ee2fe0b></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-9ee2fe0b></path></g></g></svg></i>', 1);
1721
+ const _hoisted_168 = [
1722
+ _hoisted_167
1723
+ ];
1724
+ const _hoisted_169 = { class: "strikethrough p x-2" };
1725
+ const _hoisted_170 = {
1248
1726
  fill: "#000000",
1249
1727
  width: "13px",
1250
1728
  height: "13px",
@@ -1255,28 +1733,31 @@ const He = (n, r) => {
1255
1733
  "xml:space": "preserve",
1256
1734
  "xmlns:serif": "http://www.serif.com/",
1257
1735
  style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
1258
- }, Bn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
1736
+ };
1737
+ const _hoisted_171 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
1259
1738
  id: "SVGRepo_bgCarrier",
1260
1739
  "stroke-width": "0"
1261
- }, null, -1)), Nn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", {
1740
+ }, null, -1));
1741
+ const _hoisted_172 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
1262
1742
  id: "SVGRepo_tracerCarrier",
1263
1743
  "stroke-linecap": "round",
1264
1744
  "stroke-linejoin": "round"
1265
- }, null, -1)), Dn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("g", { id: "SVGRepo_iconCarrier" }, [
1266
- /* @__PURE__ */ e("rect", {
1745
+ }, null, -1));
1746
+ const _hoisted_173 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", { id: "SVGRepo_iconCarrier" }, [
1747
+ /* @__PURE__ */ createElementVNode("rect", {
1267
1748
  id: "Icons",
1268
1749
  x: "-192",
1269
1750
  y: "0",
1270
1751
  width: "1280",
1271
1752
  height: "800",
1272
- style: { fill: "none" }
1753
+ style: { "fill": "none" }
1273
1754
  }),
1274
- /* @__PURE__ */ e("g", {
1755
+ /* @__PURE__ */ createElementVNode("g", {
1275
1756
  id: "Icons1",
1276
1757
  "serif:id": "Icons"
1277
1758
  }, [
1278
- /* @__PURE__ */ e("g", { id: "Strike" }, [
1279
- /* @__PURE__ */ e("rect", {
1759
+ /* @__PURE__ */ createElementVNode("g", { id: "Strike" }, [
1760
+ /* @__PURE__ */ createElementVNode("rect", {
1280
1761
  id: "Strike-line",
1281
1762
  "serif:id": "Strike line",
1282
1763
  x: "10.01",
@@ -1284,172 +1765,225 @@ const He = (n, r) => {
1284
1765
  width: "44.15",
1285
1766
  height: "2.988"
1286
1767
  }),
1287
- /* @__PURE__ */ e("rect", {
1768
+ /* @__PURE__ */ createElementVNode("rect", {
1288
1769
  x: "10.01",
1289
1770
  y: "30.17",
1290
1771
  width: "44.15",
1291
1772
  height: "2.988"
1292
1773
  }),
1293
- /* @__PURE__ */ e("path", {
1774
+ /* @__PURE__ */ createElementVNode("path", {
1294
1775
  id: "Strike1",
1295
1776
  "serif:id": "Strike",
1296
1777
  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",
1297
1778
  style: { "fill-rule": "nonzero" }
1298
1779
  })
1299
1780
  ]),
1300
- /* @__PURE__ */ e("g", { id: "H1" }),
1301
- /* @__PURE__ */ e("g", { id: "H2" }),
1302
- /* @__PURE__ */ e("g", { id: "H3" }),
1303
- /* @__PURE__ */ e("g", { id: "list-ul" }),
1304
- /* @__PURE__ */ e("g", { id: "hamburger-1" }),
1305
- /* @__PURE__ */ e("g", { id: "hamburger-2" }),
1306
- /* @__PURE__ */ e("g", { id: "list-ol" }),
1307
- /* @__PURE__ */ e("g", { id: "list-task" }),
1308
- /* @__PURE__ */ e("g", { id: "trash" }),
1309
- /* @__PURE__ */ e("g", { id: "vertical-menu" }),
1310
- /* @__PURE__ */ e("g", { id: "horizontal-menu" }),
1311
- /* @__PURE__ */ e("g", { id: "sidebar-2" }),
1312
- /* @__PURE__ */ e("g", { id: "Pen" }),
1313
- /* @__PURE__ */ e("g", {
1781
+ /* @__PURE__ */ createElementVNode("g", { id: "H1" }),
1782
+ /* @__PURE__ */ createElementVNode("g", { id: "H2" }),
1783
+ /* @__PURE__ */ createElementVNode("g", { id: "H3" }),
1784
+ /* @__PURE__ */ createElementVNode("g", { id: "list-ul" }),
1785
+ /* @__PURE__ */ createElementVNode("g", { id: "hamburger-1" }),
1786
+ /* @__PURE__ */ createElementVNode("g", { id: "hamburger-2" }),
1787
+ /* @__PURE__ */ createElementVNode("g", { id: "list-ol" }),
1788
+ /* @__PURE__ */ createElementVNode("g", { id: "list-task" }),
1789
+ /* @__PURE__ */ createElementVNode("g", { id: "trash" }),
1790
+ /* @__PURE__ */ createElementVNode("g", { id: "vertical-menu" }),
1791
+ /* @__PURE__ */ createElementVNode("g", { id: "horizontal-menu" }),
1792
+ /* @__PURE__ */ createElementVNode("g", { id: "sidebar-2" }),
1793
+ /* @__PURE__ */ createElementVNode("g", { id: "Pen" }),
1794
+ /* @__PURE__ */ createElementVNode("g", {
1314
1795
  id: "Pen1",
1315
1796
  "serif:id": "Pen"
1316
1797
  }),
1317
- /* @__PURE__ */ e("g", { id: "clock" }),
1318
- /* @__PURE__ */ e("g", { id: "external-link" }),
1319
- /* @__PURE__ */ e("g", { id: "hr" }),
1320
- /* @__PURE__ */ e("g", { id: "info" }),
1321
- /* @__PURE__ */ e("g", { id: "warning" }),
1322
- /* @__PURE__ */ e("g", { id: "plus-circle" }),
1323
- /* @__PURE__ */ e("g", { id: "minus-circle" }),
1324
- /* @__PURE__ */ e("g", { id: "vue" }),
1325
- /* @__PURE__ */ e("g", { id: "cog" }),
1326
- /* @__PURE__ */ e("g", { id: "logo" }),
1327
- /* @__PURE__ */ e("g", { id: "radio-check" }),
1328
- /* @__PURE__ */ e("g", { id: "eye-slash" }),
1329
- /* @__PURE__ */ e("g", { id: "eye" }),
1330
- /* @__PURE__ */ e("g", { id: "toggle-off" }),
1331
- /* @__PURE__ */ e("g", { id: "shredder" }),
1332
- /* @__PURE__ */ e("g", {
1798
+ /* @__PURE__ */ createElementVNode("g", { id: "clock" }),
1799
+ /* @__PURE__ */ createElementVNode("g", { id: "external-link" }),
1800
+ /* @__PURE__ */ createElementVNode("g", { id: "hr" }),
1801
+ /* @__PURE__ */ createElementVNode("g", { id: "info" }),
1802
+ /* @__PURE__ */ createElementVNode("g", { id: "warning" }),
1803
+ /* @__PURE__ */ createElementVNode("g", { id: "plus-circle" }),
1804
+ /* @__PURE__ */ createElementVNode("g", { id: "minus-circle" }),
1805
+ /* @__PURE__ */ createElementVNode("g", { id: "vue" }),
1806
+ /* @__PURE__ */ createElementVNode("g", { id: "cog" }),
1807
+ /* @__PURE__ */ createElementVNode("g", { id: "logo" }),
1808
+ /* @__PURE__ */ createElementVNode("g", { id: "radio-check" }),
1809
+ /* @__PURE__ */ createElementVNode("g", { id: "eye-slash" }),
1810
+ /* @__PURE__ */ createElementVNode("g", { id: "eye" }),
1811
+ /* @__PURE__ */ createElementVNode("g", { id: "toggle-off" }),
1812
+ /* @__PURE__ */ createElementVNode("g", { id: "shredder" }),
1813
+ /* @__PURE__ */ createElementVNode("g", {
1333
1814
  id: "spinner--loading--dots-",
1334
1815
  "serif:id": "spinner [loading, dots]"
1335
1816
  }),
1336
- /* @__PURE__ */ e("g", { id: "react" }),
1337
- /* @__PURE__ */ e("g", { id: "check-selected" }),
1338
- /* @__PURE__ */ e("g", { id: "turn-off" }),
1339
- /* @__PURE__ */ e("g", { id: "code-block" }),
1340
- /* @__PURE__ */ e("g", { id: "user" }),
1341
- /* @__PURE__ */ e("g", { id: "coffee-bean" }),
1342
- /* @__PURE__ */ e("g", { id: "coffee-beans" }, [
1343
- /* @__PURE__ */ e("g", {
1817
+ /* @__PURE__ */ createElementVNode("g", { id: "react" }),
1818
+ /* @__PURE__ */ createElementVNode("g", { id: "check-selected" }),
1819
+ /* @__PURE__ */ createElementVNode("g", { id: "turn-off" }),
1820
+ /* @__PURE__ */ createElementVNode("g", { id: "code-block" }),
1821
+ /* @__PURE__ */ createElementVNode("g", { id: "user" }),
1822
+ /* @__PURE__ */ createElementVNode("g", { id: "coffee-bean" }),
1823
+ /* @__PURE__ */ createElementVNode("g", { id: "coffee-beans" }, [
1824
+ /* @__PURE__ */ createElementVNode("g", {
1344
1825
  id: "coffee-bean1",
1345
1826
  "serif:id": "coffee-bean"
1346
1827
  })
1347
1828
  ]),
1348
- /* @__PURE__ */ e("g", { id: "coffee-bean-filled" }),
1349
- /* @__PURE__ */ e("g", { id: "coffee-beans-filled" }, [
1350
- /* @__PURE__ */ e("g", {
1829
+ /* @__PURE__ */ createElementVNode("g", { id: "coffee-bean-filled" }),
1830
+ /* @__PURE__ */ createElementVNode("g", { id: "coffee-beans-filled" }, [
1831
+ /* @__PURE__ */ createElementVNode("g", {
1351
1832
  id: "coffee-bean2",
1352
1833
  "serif:id": "coffee-bean"
1353
1834
  })
1354
1835
  ]),
1355
- /* @__PURE__ */ e("g", { id: "clipboard" }),
1356
- /* @__PURE__ */ e("g", { id: "clipboard-paste" }),
1357
- /* @__PURE__ */ e("g", { id: "clipboard-copy" }),
1358
- /* @__PURE__ */ e("g", { id: "Layer1" })
1836
+ /* @__PURE__ */ createElementVNode("g", { id: "clipboard" }),
1837
+ /* @__PURE__ */ createElementVNode("g", { id: "clipboard-paste" }),
1838
+ /* @__PURE__ */ createElementVNode("g", { id: "clipboard-copy" }),
1839
+ /* @__PURE__ */ createElementVNode("g", { id: "Layer1" })
1359
1840
  ])
1360
- ], -1)), Vn = [
1361
- Bn,
1362
- Nn,
1363
- Dn
1364
- ], Wn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "superscript p x-2" }, "sup", -1)), Pn = [
1365
- Wn
1366
- ], Gn = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "subscript p x-2" }, "sub", -1)), On = [
1367
- Gn
1368
- ], Xn = /* @__PURE__ */ M('<i class="-code p x-2" data-v-c5304261><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-c5304261></path><path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-c5304261></path><path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-c5304261></path></g></svg></i>', 1), qn = [
1369
- Xn
1370
- ], Yn = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" }, Un = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", {
1841
+ ], -1));
1842
+ const _hoisted_174 = [
1843
+ _hoisted_171,
1844
+ _hoisted_172,
1845
+ _hoisted_173
1846
+ ];
1847
+ const _hoisted_175 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, "sup", -1));
1848
+ const _hoisted_176 = [
1849
+ _hoisted_175
1850
+ ];
1851
+ const _hoisted_177 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, "sub", -1));
1852
+ const _hoisted_178 = [
1853
+ _hoisted_177
1854
+ ];
1855
+ const _hoisted_179 = /* @__PURE__ */ createStaticVNode('<i class="-code p x-2" data-v-9ee2fe0b><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-9ee2fe0b></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-9ee2fe0b></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-9ee2fe0b></path></g></svg></i>', 1);
1856
+ const _hoisted_180 = [
1857
+ _hoisted_179
1858
+ ];
1859
+ const _hoisted_181 = { 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" };
1860
+ const _hoisted_182 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", {
1371
1861
  class: "solid brush display-color",
1372
- style: { margin: "6px 0px 0px 0px", border: "none" }
1862
+ style: { "margin": "6px 0px 0px 0px", "border": "none" }
1373
1863
  }, [
1374
- /* @__PURE__ */ e("svg", {
1864
+ /* @__PURE__ */ createElementVNode("svg", {
1375
1865
  width: "24",
1376
1866
  height: "24",
1377
1867
  focusable: "false"
1378
1868
  }, [
1379
- /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1380
- /* @__PURE__ */ e("path", {
1869
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1870
+ /* @__PURE__ */ createElementVNode("path", {
1381
1871
  class: "icon-highlight-bg-color__color",
1382
1872
  d: "M3 18h18v3H3z",
1383
1873
  fill: "#F1C40F"
1384
1874
  }),
1385
- /* @__PURE__ */ e("path", {
1875
+ /* @__PURE__ */ createElementVNode("path", {
1386
1876
  "fill-rule": "nonzero",
1387
1877
  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"
1388
1878
  })
1389
1879
  ])
1390
1880
  ])
1391
- ], -1)), Kn = {
1881
+ ], -1));
1882
+ const _hoisted_183 = {
1392
1883
  class: "color-picker color-container",
1393
- style: { position: "absolute", top: "0", bottom: "0", height: "fit-content", overflow: "auto" }
1394
- }, Jn = { class: "color-grid" }, Qn = ["onClick"], ei = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" }, ti = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", {
1884
+ style: { "position": "absolute", "top": "0", "bottom": "0", "height": "50vh", "overflow": "auto" }
1885
+ };
1886
+ const _hoisted_184 = { class: "color-grid" };
1887
+ const _hoisted_185 = ["onClick"];
1888
+ const _hoisted_186 = { 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" };
1889
+ const _hoisted_187 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", {
1395
1890
  class: "solid brush display-color",
1396
- style: { margin: "6px 0px 0px 0px", border: "none" }
1891
+ style: { "margin": "6px 0px 0px 0px", "border": "none" }
1397
1892
  }, [
1398
- /* @__PURE__ */ e("span", {
1893
+ /* @__PURE__ */ createElementVNode("span", {
1399
1894
  role: "presentation",
1400
1895
  class: "tbtn",
1401
1896
  "aria-disabled": "false",
1402
- style: { width: "34px" }
1897
+ style: { "width": "34px" }
1403
1898
  }, [
1404
- /* @__PURE__ */ e("span", { class: "icon tbtn__icon-wrap" }, [
1405
- /* @__PURE__ */ e("svg", {
1899
+ /* @__PURE__ */ createElementVNode("span", { class: "icon tbtn__icon-wrap" }, [
1900
+ /* @__PURE__ */ createElementVNode("svg", {
1406
1901
  width: "24",
1407
1902
  height: "24",
1408
1903
  focusable: "false"
1409
1904
  }, [
1410
- /* @__PURE__ */ e("g", { "fill-rule": "evenodd" }, [
1411
- /* @__PURE__ */ e("path", {
1905
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1906
+ /* @__PURE__ */ createElementVNode("path", {
1412
1907
  class: "icon-text-color__color",
1413
1908
  d: "M3 18h18v3H3z",
1414
1909
  fill: "#F1C40F"
1415
1910
  }),
1416
- /* @__PURE__ */ e("path", { d: "M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z" })
1911
+ /* @__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" })
1417
1912
  ])
1418
1913
  ])
1419
1914
  ])
1420
1915
  ])
1421
- ], -1)), oi = {
1916
+ ], -1));
1917
+ const _hoisted_188 = {
1422
1918
  class: "color-picker color-container",
1423
- style: { position: "absolute", top: "0", bottom: "0", height: "fit-content", overflow: "auto" }
1424
- }, ni = { class: "color-grid" }, ii = ["onClick"], si = /* @__PURE__ */ M('<span class="" data-v-c5304261><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5304261><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5304261></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5304261></g><g id="SVGRepo_iconCarrier" data-v-c5304261><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-c5304261></path></g></svg></span>', 1), li = [
1425
- si
1426
- ], ai = { style: { "min-height": "100%", "text-align": "justify" } }, ri = ["innerHTML"], di = { class: "hideonprint flex items-center" }, ci = /* @__PURE__ */ l(() => /* @__PURE__ */ e("i", { class: "-" }, null, -1)), ui = /* @__PURE__ */ l(() => /* @__PURE__ */ e("strong", { class: "p x-2" }, "NEW LINE", -1)), pi = [
1427
- ci,
1428
- ui
1429
- ], mi = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
1430
- /* @__PURE__ */ Y("Cursor position: "),
1431
- /* @__PURE__ */ e("span", { id: "cursorPosition" }, "0")
1432
- ], -1)), hi = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
1433
- /* @__PURE__ */ Y("Text at cursor: "),
1434
- /* @__PURE__ */ e("span", { id: "textAtCursor" })
1435
- ], -1)), gi = {
1919
+ style: { "position": "absolute", "top": "0", "bottom": "0", "height": "fit-content", "overflow": "auto" }
1920
+ };
1921
+ const _hoisted_189 = { class: "color-grid" };
1922
+ const _hoisted_190 = ["onClick"];
1923
+ const _hoisted_191 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-9ee2fe0b><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><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-9ee2fe0b></path></g></svg></span>', 1);
1924
+ const _hoisted_192 = [
1925
+ _hoisted_191
1926
+ ];
1927
+ const _hoisted_193 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-9ee2fe0b><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><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-9ee2fe0b></path></g></svg></span>', 1);
1928
+ const _hoisted_194 = [
1929
+ _hoisted_193
1930
+ ];
1931
+ const _hoisted_195 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-9ee2fe0b><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-9ee2fe0b><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-9ee2fe0b></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-9ee2fe0b></g><g id="SVGRepo_iconCarrier" data-v-9ee2fe0b><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-9ee2fe0b></path></g></svg></span>', 1);
1932
+ const _hoisted_196 = [
1933
+ _hoisted_195
1934
+ ];
1935
+ const _hoisted_197 = { style: { "width": "3%" } };
1936
+ const _hoisted_198 = { id: "fontSizes" };
1937
+ const _hoisted_199 = ["value"];
1938
+ const _hoisted_200 = { style: { "min-height": "100%", "text-align": "justify" } };
1939
+ const _hoisted_201 = ["innerHTML"];
1940
+ const _hoisted_202 = {
1941
+ key: 0,
1942
+ class: "hideonprint flex items-center",
1943
+ style: { "text-align": "center", "align-items": "stretch", "gap": "10px" }
1944
+ };
1945
+ const _hoisted_203 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-" }, null, -1));
1946
+ const _hoisted_204 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "p x-2" }, "NEW LINE", -1));
1947
+ const _hoisted_205 = [
1948
+ _hoisted_203,
1949
+ _hoisted_204
1950
+ ];
1951
+ const _hoisted_206 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
1952
+ /* @__PURE__ */ createTextVNode("Cursor position: "),
1953
+ /* @__PURE__ */ createElementVNode("span", { id: "cursorPosition" }, "0")
1954
+ ], -1));
1955
+ const _hoisted_207 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
1956
+ /* @__PURE__ */ createTextVNode("Text at cursor: "),
1957
+ /* @__PURE__ */ createElementVNode("span", { id: "textAtCursor" })
1958
+ ], -1));
1959
+ const _sfc_main = {
1436
1960
  __name: "Editor",
1437
1961
  props: {
1438
1962
  Dvalue: {
1439
1963
  default: ""
1440
1964
  },
1441
1965
  TextOnly: {
1442
- default: !1
1966
+ default: false
1443
1967
  },
1444
1968
  cssWanted2: {
1445
- default: !1
1969
+ default: false
1970
+ },
1971
+ Files: {
1972
+ size: null,
1973
+ limits: 30
1446
1974
  }
1447
1975
  },
1448
1976
  emits: ["change", "update"],
1449
- setup(n, { emit: r }) {
1450
- const o = H(null), i = H(null), a = H(null), p = H(null), s = H(null);
1451
- let d = null;
1452
- const u = H([
1977
+ setup(__props, { emit: __emit }) {
1978
+ const editorRef = ref(null);
1979
+ const imageClicked = ref(false);
1980
+ const savedRange2 = ref(null);
1981
+ const tablePickerContainer = ref(null);
1982
+ const tablePickerGrid = ref(null);
1983
+ const tableDimensions = ref(null);
1984
+ ref([]);
1985
+ let selectedImage = null;
1986
+ const colors = ref([
1453
1987
  "FF5733",
1454
1988
  "33FF57",
1455
1989
  "3357FF",
@@ -1508,592 +2042,827 @@ const He = (n, r) => {
1508
2042
  "00CED1",
1509
2043
  "989393",
1510
2044
  "000000"
1511
- ]), m = r, x = n, h = H(null);
1512
- function g(...f) {
2045
+ ]);
2046
+ const emit = __emit;
2047
+ const props = __props;
2048
+ const pomTextEditorContainer = ref(null);
2049
+ function previewAndPrintFun(...args) {
1513
2050
  try {
1514
- var t = document.querySelectorAll(".removeinlineblock");
1515
- t.forEach(function(c) {
1516
- c.style.display = "block";
1517
- }), Me(...f, h.value.innerHTML);
1518
- } catch {
2051
+ var removeinlineblock = document.querySelectorAll(".removeinlineblock");
2052
+ let userFeedBack;
2053
+ if (props.TextOnly)
2054
+ userFeedBack = editorRef.value.value;
2055
+ else
2056
+ userFeedBack = pomTextEditorContainer.value.innerHTML;
2057
+ removeinlineblock.forEach(function(element) {
2058
+ element.style.display = "block";
2059
+ });
2060
+ previewAndPrint(...args, userFeedBack);
2061
+ } catch (error) {
1519
2062
  }
1520
2063
  }
1521
- function v(...f) {
1522
- var t;
1523
- G(), be((t = i.value) == null ? void 0 : t.range, o.value, ...f);
2064
+ function ChangeTheDirectionOFTextFun(...args) {
2065
+ var _a;
2066
+ containerCursorPosition();
2067
+ changeTextDirection((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args, imageClicked.value);
2068
+ imageClicked.value = false;
2069
+ returnData();
2070
+ }
2071
+ function fontFamilyChanger(...args) {
2072
+ var _a;
2073
+ opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
2074
+ selectedImage = null;
2075
+ returnData();
1524
2076
  }
1525
- function y(...f) {
1526
- var t;
1527
- se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
2077
+ function styleElementIncluderFun(...args) {
2078
+ var _a;
2079
+ opensTyleOnElement((_a = savedRange2.value) == null ? void 0 : _a["range"], editorRef.value, ...args);
2080
+ selectedImage = null;
2081
+ returnData();
1528
2082
  }
1529
- function w(...f) {
1530
- var t;
1531
- se((t = i.value) == null ? void 0 : t.range, o.value, ...f), d = null;
2083
+ function FilesInjectionFun(event) {
2084
+ const files = event.target.files;
2085
+ if (files.length === 0) {
2086
+ console.log("No files selected");
2087
+ return;
2088
+ }
2089
+ Array.from(files).forEach((file) => {
2090
+ if (!file.type.startsWith("image/")) {
2091
+ console.error("Selected file is not an image:", file.name);
2092
+ return;
2093
+ }
2094
+ const reader = new FileReader();
2095
+ reader.onload = (e) => {
2096
+ const imageUrl = e.target.result;
2097
+ insertImageAtCursor(imageUrl);
2098
+ };
2099
+ reader.onerror = (e) => {
2100
+ console.error("Error reading the file:", file.name, e);
2101
+ };
2102
+ reader.readAsDataURL(file);
2103
+ });
1532
2104
  }
1533
- function R(f) {
1534
- Fe(f, i.value.range), d = null;
2105
+ function openInputToFeedFun(...args) {
2106
+ openInputToFeed(savedRange2.value["range"], ...args);
2107
+ selectedImage = null;
1535
2108
  }
1536
- function C(...f) {
1537
- _e(i.value.range, ...f), d = null;
2109
+ const cssWanted2 = styleCss();
2110
+ function returnData(elmnt) {
2111
+ var _a;
2112
+ let htmlResult;
2113
+ if (props.TextOnly == "true") {
2114
+ if (elmnt && ((_a = elmnt.target) == null ? void 0 : _a.value))
2115
+ htmlResult = `${elmnt.target.value}`.replace(/<\/[a-z]*?>|<\S.*?>/gi, (match) => {
2116
+ return match.startsWith("</") ? "" : "\n";
2117
+ });
2118
+ } else {
2119
+ htmlResult = exportUserHtmlForAtheUse(editorRef.value);
2120
+ UndoRedo.SaveCurrentChanges(htmlResult);
2121
+ if (props.cssWanted == true) {
2122
+ emit("cssWanted", cssWanted2);
2123
+ }
2124
+ }
2125
+ if (htmlResult) {
2126
+ setTimeout(() => {
2127
+ emit("change", htmlResult);
2128
+ }, 300);
2129
+ }
1538
2130
  }
1539
- const L = Re();
1540
- function T() {
1541
- let f = ze(o.value).replace(/<style scoped>[\s\S]*?<\/style>/, "");
1542
- x.TextOnly == "true" && (f = f.replace(/<\/[a-z]*?>|<\S.*?>/gi, (t) => t.startsWith("</") ? "" : `
1543
- `)), console.log(f, "htmlResulthtmlResulthtmlResult"), x.cssWanted == !0 && m("cssWanted", L), setTimeout(() => {
1544
- m("change", f);
1545
- }, 300);
2131
+ function onMountedFunctionsset(params) {
2132
+ editorRef.value.focus();
2133
+ returnData();
2134
+ }
2135
+ function dropedImageRedirection(imgResizer) {
2136
+ imgResizer.addEventListener("click", function(e) {
2137
+ imageClicked.value = e;
2138
+ const imageAction = document.createElement("div");
2139
+ imageAction.style.display = "flex";
2140
+ imageAction.style.position = "absolute";
2141
+ imageAction.style.bottom = "20px";
2142
+ imageAction.style.right = "0px";
2143
+ imageAction.style.zIndex = "100";
2144
+ imageAction.style.background = "white";
2145
+ imageAction.classList.add("Image_dropped_pom");
2146
+ imageAction.classList.add("hideOnprint");
2147
+ const floatLeftButton = document.createElement("button");
2148
+ floatLeftButton.textContent = " Left";
2149
+ floatLeftButton.style.margin = "5px";
2150
+ const floatRightButton = document.createElement("button");
2151
+ floatRightButton.textContent = " Right";
2152
+ floatRightButton.style.margin = "5px";
2153
+ const centerButton = document.createElement("button");
2154
+ centerButton.textContent = "Center ";
2155
+ centerButton.style.margin = "5px";
2156
+ imageAction.appendChild(floatLeftButton);
2157
+ imageAction.appendChild(floatRightButton);
2158
+ imageAction.appendChild(centerButton);
2159
+ imgResizer.appendChild(imageAction);
2160
+ floatLeftButton.addEventListener("click", () => {
2161
+ imgResizer.style.float = "left";
2162
+ removeElemet();
2163
+ });
2164
+ floatRightButton.addEventListener("click", () => {
2165
+ imgResizer.style.float = "right";
2166
+ removeElemet();
2167
+ });
2168
+ centerButton.addEventListener("click", () => {
2169
+ imgResizer.style.display = "block";
2170
+ imgResizer.style.margin = "0 auto";
2171
+ removeElemet();
2172
+ });
2173
+ document.addEventListener("click", function removeAction(e2) {
2174
+ if (!imgResizer.contains(e2.target)) {
2175
+ removeElemet();
2176
+ document.removeEventListener("click", removeAction);
2177
+ }
2178
+ }, { once: true });
2179
+ });
1546
2180
  }
1547
- function P(f) {
1548
- o.value.focus(), T();
2181
+ function imageContainerClicked(e) {
2182
+ const elements = document.getElementsByClassName("resizer-image-dropped");
2183
+ Array.from(elements).forEach((imgResizer) => {
2184
+ dropedImageRedirection(imgResizer);
2185
+ });
2186
+ imageClicked.value = false;
1549
2187
  }
1550
- pe(() => {
1551
- P();
2188
+ onMounted(() => {
2189
+ onMountedFunctionsset();
1552
2190
  });
1553
- function N() {
1554
- Ae(o.value);
2191
+ function insertNewLineAtCursorFun() {
2192
+ insertNewLineAtCursor(editorRef.value);
1555
2193
  }
1556
- function b(...f) {
1557
- q(i.value.range, ...f);
2194
+ function insertElementAtCursorHtagsFun(...args) {
2195
+ insertElementAtCursorHtags(savedRange2.value["range"], ...args);
2196
+ returnData();
1558
2197
  }
1559
- function D(...f) {
1560
- we(i.value.range, ...f);
2198
+ function insertElementAtCursorFun(...args) {
2199
+ insertElementAtCursor(savedRange2.value["range"], ...args);
2200
+ returnData();
1561
2201
  }
1562
- function G() {
1563
- i.value = fe(), ge(), ve(i.value, o.value, p.value, s.value), d = null;
2202
+ function insertUnorderedListAtCursorFun(...args) {
2203
+ insertUnorderedListAtCursor(savedRange2.value["range"], ...args);
2204
+ returnData();
1564
2205
  }
1565
- function re(f) {
1566
- f.preventDefault();
1567
- const t = f.dataTransfer.files;
1568
- if (t.length > 0) {
1569
- const c = t[0], _ = new FileReader();
1570
- _.onload = (E) => {
1571
- const F = E.target.result;
1572
- de(F);
1573
- }, _.readAsDataURL(c);
2206
+ function containerCursorPosition() {
2207
+ savedRange2.value = saveCursorPosition();
2208
+ updateCursorInfo();
2209
+ makeTableGridforCreation(savedRange2.value, editorRef.value, tablePickerGrid.value, tableDimensions.value);
2210
+ selectedImage = null;
2211
+ returnData();
2212
+ }
2213
+ function fileSize(file) {
2214
+ const fileSizeInBytes = file.size;
2215
+ const fileSizeInKB = (fileSizeInBytes / 1024).toFixed(2);
2216
+ const fileSizeInMB = (fileSizeInKB / 1024).toFixed(2);
2217
+ return { fileSizeInMB, fileSizeInKB };
2218
+ }
2219
+ function onChangeFileDrop(event) {
2220
+ var _a, _b, _c, _d, _e;
2221
+ event.preventDefault();
2222
+ const files = event.dataTransfer.files;
2223
+ if (parseFloat((_a = props.Files) == null ? void 0 : _a.limits) == parseFloat((_b = props.Files) == null ? void 0 : _b.limits)) {
2224
+ alert(`You can not upload more than ${props.Files.limits} images`);
2225
+ return;
2226
+ }
2227
+ const size = fileSize(files[0]);
2228
+ if (((_c = props.Files) == null ? void 0 : _c.size) > 0 && size.fileSizeInMB > parseFloat((_d = props.Files) == null ? void 0 : _d.size)) {
2229
+ alert(`File size should be less than ${(_e = props.Files) == null ? void 0 : _e.size} MB`);
2230
+ return;
2231
+ }
2232
+ console.log(`Image Droped ${size.fileSizeInMB} MB / ${size.fileSizeInKB} KB`);
2233
+ if (files.length > 0) {
2234
+ const file = files[0];
2235
+ const reader = new FileReader();
2236
+ reader.onload = (e) => {
2237
+ const imageUrl = e.target.result;
2238
+ insertImageAtCursor(imageUrl);
2239
+ };
2240
+ reader.readAsDataURL(file);
1574
2241
  }
2242
+ returnData();
1575
2243
  }
1576
- function de(f) {
1577
- j();
1578
- const t = i.value.range;
1579
- if (t) {
1580
- let O = function(A, k) {
1581
- A.preventDefault(), Z = k, window.addEventListener("mousemove", U), window.addEventListener("mouseup", K);
1582
- }, U = function(A) {
1583
- const k = _.getBoundingClientRect();
1584
- if (Z === "width" || Z === "both") {
1585
- const z = A.clientX - k.left;
1586
- _.style.width = z + "px", c.style.width = z + "px";
2244
+ function insertImageAtCursor(imageUrl) {
2245
+ removeElemet();
2246
+ const range = savedRange2.value["range"];
2247
+ if (range) {
2248
+ let initResize2 = function(e, type) {
2249
+ e.preventDefault();
2250
+ currentResizer = type;
2251
+ window.addEventListener("mousemove", resize);
2252
+ window.addEventListener("mouseup", stopResize);
2253
+ }, resize = function(e) {
2254
+ const rect = imgResizer.getBoundingClientRect();
2255
+ if (currentResizer === "width" || currentResizer === "both") {
2256
+ const newWidth = e.clientX - rect.left;
2257
+ imgResizer.style.width = newWidth + "px";
2258
+ imgElement.style.width = newWidth + "px";
1587
2259
  }
1588
- if (Z === "height" || Z === "both") {
1589
- const z = A.clientY - k.top;
1590
- c.style.height = z + "px";
2260
+ if (currentResizer === "height" || currentResizer === "both") {
2261
+ const newHeight = e.clientY - rect.top;
2262
+ imgElement.style.height = newHeight + "px";
1591
2263
  }
1592
- }, K = function() {
1593
- window.removeEventListener("mousemove", U), window.removeEventListener("mouseup", K);
2264
+ }, stopResize = function() {
2265
+ window.removeEventListener("mousemove", resize);
2266
+ window.removeEventListener("mouseup", stopResize);
1594
2267
  };
1595
- const c = document.createElement("img");
1596
- c.src = f, c.style.maxWidth = "100%", c.style.position = "relative", c.classList.add("resizable-image");
1597
- const _ = document.createElement("span");
1598
- _.style.display = "inline-block", _.style.width = "200px", _.style.position = "relative", _.contentEditable = !1, _.classList.add("resizer-image-dropped"), _.addEventListener("click", function(A) {
1599
- const k = document.createElement("div");
1600
- k.style.display = "flex", k.style.position = "absolute", k.style.bottom = "20px", k.style.right = "0px", k.style.zIndex = "100", k.style.background = "white", k.classList.add("Image_dropped_pom");
1601
- const z = document.createElement("button");
1602
- z.textContent = " Left", z.style.margin = "5px";
1603
- const V = document.createElement("button");
1604
- V.textContent = " Right", V.style.margin = "5px";
1605
- const W = document.createElement("button");
1606
- W.textContent = "Center ", W.style.margin = "5px", k.appendChild(z), k.appendChild(V), k.appendChild(W), _.appendChild(k), z.addEventListener("click", () => {
1607
- _.style.float = "inline-start", j();
1608
- }), V.addEventListener("click", () => {
1609
- _.style.float = "inline-end", j();
1610
- }), W.addEventListener("click", () => {
1611
- _.style.display = "block", _.style.margin = "0 auto", j();
1612
- }), document.addEventListener("click", function ce(ue) {
1613
- _.contains(ue.target) || (j(), document.removeEventListener("click", ce));
1614
- }, { once: !0 });
2268
+ const imgElement = document.createElement("img");
2269
+ imgElement.src = imageUrl;
2270
+ imgElement.style.maxWidth = "100%";
2271
+ imgElement.style.position = "relative";
2272
+ imgElement.classList.add("resizable-image");
2273
+ const imgResizer = document.createElement("span");
2274
+ imgResizer.style.display = "inline-block";
2275
+ imgResizer.style.width = "200px";
2276
+ imgResizer.style.position = "relative";
2277
+ imgResizer.contentEditable = false;
2278
+ imgResizer.classList.add("resizer-image-dropped");
2279
+ dropedImageRedirection(imgResizer);
2280
+ const widthResizer = document.createElement("div");
2281
+ widthResizer.style.width = "10px";
2282
+ widthResizer.style.height = "100%";
2283
+ widthResizer.style.background = "gray";
2284
+ widthResizer.style.position = "absolute";
2285
+ widthResizer.style.right = "0";
2286
+ widthResizer.style.top = "0";
2287
+ widthResizer.style.cursor = "ew-resize";
2288
+ widthResizer.style.zIndex = "2";
2289
+ widthResizer.classList.add("hideOnprint");
2290
+ widthResizer.setAttribute("contentEditable", false);
2291
+ const heightResizer = document.createElement("div");
2292
+ heightResizer.style.width = "100%";
2293
+ heightResizer.style.height = "10px";
2294
+ heightResizer.style.background = "gray";
2295
+ heightResizer.style.position = "absolute";
2296
+ heightResizer.style.bottom = "0";
2297
+ heightResizer.style.left = "0";
2298
+ heightResizer.style.cursor = "ns-resize";
2299
+ heightResizer.style.zIndex = "2";
2300
+ heightResizer.classList.add("hideOnprint");
2301
+ heightResizer.setAttribute("contentEditable", false);
2302
+ const cornerResizer = document.createElement("div");
2303
+ cornerResizer.style.width = "20px";
2304
+ cornerResizer.style.height = "20px";
2305
+ cornerResizer.style.background = "gray";
2306
+ cornerResizer.style.position = "absolute";
2307
+ cornerResizer.style.right = "0";
2308
+ cornerResizer.style.bottom = "0";
2309
+ cornerResizer.style.cursor = "nwse-resize";
2310
+ cornerResizer.style.zIndex = "10";
2311
+ cornerResizer.setAttribute("contentEditable", false);
2312
+ imgResizer.appendChild(imgElement);
2313
+ imgResizer.appendChild(widthResizer);
2314
+ imgResizer.appendChild(heightResizer);
2315
+ imgResizer.appendChild(cornerResizer);
2316
+ imgResizer.addEventListener("click", (e) => {
2317
+ if (selectedImage) {
2318
+ selectedImage.style.border = "";
2319
+ }
2320
+ selectedImage = imgResizer;
1615
2321
  });
1616
- const E = document.createElement("div");
1617
- E.style.width = "10px", E.style.height = "100%", E.style.background = "gray", E.style.position = "absolute", E.style.right = "0", E.style.top = "0", E.style.cursor = "ew-resize", E.style.zIndex = "2", E.setAttribute("contentEditable", !1);
1618
- const F = document.createElement("div");
1619
- F.style.width = "100%", F.style.height = "10px", F.style.background = "gray", F.style.position = "absolute", F.style.bottom = "0", F.style.left = "0", F.style.cursor = "ns-resize", F.style.zIndex = "2", F.setAttribute("contentEditable", !1);
1620
- const S = document.createElement("div");
1621
- S.style.width = "20px", S.style.height = "20px", S.style.background = "gray", S.style.position = "absolute", S.style.right = "0", S.style.bottom = "0", S.style.cursor = "nwse-resize", S.style.zIndex = "10", S.setAttribute("contentEditable", !1), _.appendChild(c), _.appendChild(E), _.appendChild(F), _.appendChild(S), _.addEventListener("click", (A) => {
1622
- d && (d.style.border = ""), d = _, d.style.border = "2px solid blue";
1623
- }), E.addEventListener("mousedown", (A) => O(A, "width")), F.addEventListener("mousedown", (A) => O(A, "height")), S.addEventListener("mousedown", (A) => O(A, "both")), t.insertNode(_);
1624
- let Z;
2322
+ widthResizer.addEventListener("mousedown", (e) => initResize2(e, "width"));
2323
+ heightResizer.addEventListener("mousedown", (e) => initResize2(e, "height"));
2324
+ cornerResizer.addEventListener("mousedown", (e) => initResize2(e, "both"));
2325
+ range.insertNode(imgResizer);
2326
+ let currentResizer;
2327
+ imageContainerClicked();
2328
+ returnData();
1625
2329
  }
1626
2330
  }
1627
- function j(f = "Image_dropped_pom") {
1628
- const t = document.getElementsByClassName(f);
1629
- Array.from(t).forEach((c) => {
1630
- c.remove();
2331
+ function removeElemet(classs = "Image_dropped_pom") {
2332
+ const elements = document.getElementsByClassName(classs);
2333
+ Array.from(elements).forEach((element) => {
2334
+ element.remove();
1631
2335
  });
2336
+ returnData();
1632
2337
  }
1633
- return (f, t) => ($(), I(X, null, [
1634
- e("div", Te, [
1635
- e("div", $e, [
1636
- e("div", Ie, [
1637
- e("div", je, [
1638
- e("div", Ze, [
1639
- Be,
1640
- e("div", Ne, [
1641
- e("div", De, [
1642
- e("div", {
1643
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1644
- onClick: t[0] || (t[0] = (c) => g(!0))
1645
- }, Pe),
1646
- e("div", Ge, [
1647
- Oe,
1648
- e("strong", {
1649
- class: "px-3",
1650
- onClick: t[1] || (t[1] = (c) => g(!1))
1651
- }, "Preview")
1652
- ]),
1653
- Xe
2338
+ function undoOrRedo(acting) {
2339
+ const action = UndoRedo[acting]();
2340
+ setTimeout(() => {
2341
+ if (action) {
2342
+ editorRef.value.innerHTML = action;
2343
+ returnData();
2344
+ }
2345
+ }, 100);
2346
+ }
2347
+ return (_ctx, _cache) => {
2348
+ return openBlock(), createElementBlock("span", _hoisted_1, [
2349
+ createElementVNode("div", _hoisted_2, [
2350
+ createElementVNode("div", _hoisted_3, [
2351
+ createElementVNode("div", _hoisted_4, [
2352
+ createElementVNode("div", _hoisted_5, [
2353
+ createElementVNode("div", _hoisted_6, [
2354
+ _hoisted_7,
2355
+ createElementVNode("div", _hoisted_8, [
2356
+ createElementVNode("div", _hoisted_9, [
2357
+ createElementVNode("div", {
2358
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2359
+ onClick: _cache[0] || (_cache[0] = ($event) => previewAndPrintFun(true))
2360
+ }, _hoisted_12),
2361
+ createElementVNode("div", _hoisted_13, [
2362
+ _hoisted_14,
2363
+ createElementVNode("strong", {
2364
+ class: "px-3",
2365
+ onClick: _cache[1] || (_cache[1] = ($event) => previewAndPrintFun(false))
2366
+ }, "Preview")
2367
+ ]),
2368
+ _hoisted_15
2369
+ ])
1654
2370
  ])
1655
2371
  ])
1656
- ])
1657
- ]),
1658
- e("div", qe, [
1659
- e("div", Ye, [
1660
- Ue,
1661
- e("div", Ke, [
1662
- e("div", Je, [
1663
- e("div", {
1664
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
1665
- onClick: t[2] || (t[2] = (c) => b())
1666
- }, tt),
1667
- e("div", {
1668
- onClick: t[3] || (t[3] = (c) => b("i", "**italic text **")),
1669
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1670
- }, it),
1671
- e("div", {
1672
- onClick: t[4] || (t[4] = (c) => b("u", "**underLine text **")),
1673
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1674
- }, at),
1675
- e("div", {
1676
- onClick: t[5] || (t[5] = (c) => b("s", "**underLine text**")),
1677
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1678
- }, ct),
1679
- e("div", {
1680
- onClick: t[6] || (t[6] = (c) => b("sup", "**supperScript**")),
1681
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1682
- }, mt),
1683
- e("div", {
1684
- onClick: t[7] || (t[7] = (c) => b("sub", "**supperScript**")),
1685
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1686
- }, ft),
1687
- e("div", {
1688
- onClick: t[8] || (t[8] = (c) => b("summary", "**summary**")),
1689
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1690
- }, xt),
1691
- e("div", {
1692
- onClick: t[9] || (t[9] = (c) => b("ol", "1. ordered list")),
1693
- style: { "background-color": "#f3f4f6", cursor: "pointer" },
1694
- class: "hover:bg-gray-200 elemeSet rounded"
1695
- }, wt),
1696
- e("div", {
1697
- onClick: t[10] || (t[10] = (c) => b("ul", "1. unordered list")),
1698
- style: { "background-color": "#f3f4f6", cursor: "pointer" },
1699
- class: "hover:bg-gray-200 elemeSet rounded"
1700
- }, Et),
1701
- e("div", {
1702
- onClick: t[11] || (t[11] = (c) => b("h1", "**h1**")),
1703
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1704
- }, Lt),
1705
- e("div", {
1706
- onClick: t[12] || (t[12] = (c) => b("h2", "**h2**")),
1707
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1708
- }, St),
1709
- e("div", {
1710
- onClick: t[13] || (t[13] = (c) => b("h3", "**h3**")),
1711
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1712
- }, Mt),
1713
- e("div", {
1714
- onClick: t[14] || (t[14] = (c) => b("h4", "**h4**")),
1715
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1716
- }, Ht),
1717
- e("div", {
1718
- onClick: t[15] || (t[15] = (c) => b("h5", "**h5**")),
1719
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1720
- }, $t),
1721
- e("div", {
1722
- onClick: t[16] || (t[16] = (c) => b("h6", "**h6**")),
1723
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
1724
- }, jt),
1725
- e("div", Zt, [
1726
- e("input", {
1727
- list: "fontSizes",
1728
- onChange: t[17] || (t[17] = (c) => w("font-size", c.target.value + "px")),
1729
- placeholder: "Size ",
1730
- class: "p-1 border rounded w-[6vw] h-[3vh]"
1731
- }, null, 32),
1732
- Bt
2372
+ ]),
2373
+ createElementVNode("div", _hoisted_16, [
2374
+ createElementVNode("div", _hoisted_17, [
2375
+ _hoisted_18,
2376
+ createElementVNode("div", _hoisted_19, [
2377
+ createElementVNode("div", _hoisted_20, [
2378
+ createElementVNode("div", {
2379
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",
2380
+ onClick: _cache[2] || (_cache[2] = ($event) => insertElementAtCursorFun())
2381
+ }, _hoisted_23),
2382
+ createElementVNode("div", {
2383
+ onClick: _cache[3] || (_cache[3] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
2384
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2385
+ }, _hoisted_26),
2386
+ createElementVNode("div", {
2387
+ onClick: _cache[4] || (_cache[4] = ($event) => insertElementAtCursorFun("u", "**underLine text **")),
2388
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2389
+ }, _hoisted_29),
2390
+ createElementVNode("div", {
2391
+ onClick: _cache[5] || (_cache[5] = ($event) => insertElementAtCursorFun("s", "**underLine text**")),
2392
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2393
+ }, _hoisted_32),
2394
+ createElementVNode("div", {
2395
+ onClick: _cache[6] || (_cache[6] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
2396
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2397
+ }, _hoisted_35),
2398
+ createElementVNode("div", {
2399
+ onClick: _cache[7] || (_cache[7] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
2400
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2401
+ }, _hoisted_38),
2402
+ createElementVNode("div", {
2403
+ onClick: _cache[8] || (_cache[8] = ($event) => insertElementAtCursorFun("summary", "**summary**")),
2404
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2405
+ }, _hoisted_41),
2406
+ createElementVNode("div", {
2407
+ onClick: _cache[9] || (_cache[9] = ($event) => insertElementAtCursorFun("ol", "1. ordered list")),
2408
+ style: { "background-color": "#f3f4f6", "cursor": "pointer" },
2409
+ class: "hover:bg-gray-200 elemeSet rounded"
2410
+ }, _hoisted_44),
2411
+ createElementVNode("div", {
2412
+ onClick: _cache[10] || (_cache[10] = ($event) => insertElementAtCursorFun("ul", "1. unordered list")),
2413
+ style: { "background-color": "#f3f4f6", "cursor": "pointer" },
2414
+ class: "hover:bg-gray-200 elemeSet rounded"
2415
+ }, _hoisted_47),
2416
+ createElementVNode("div", {
2417
+ onClick: _cache[11] || (_cache[11] = ($event) => insertElementAtCursorHtagsFun("h1", "**h1**")),
2418
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2419
+ }, _hoisted_49),
2420
+ createElementVNode("div", {
2421
+ onClick: _cache[12] || (_cache[12] = ($event) => insertElementAtCursorHtagsFun("h2", "**h2**")),
2422
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2423
+ }, _hoisted_51),
2424
+ createElementVNode("div", {
2425
+ onClick: _cache[13] || (_cache[13] = ($event) => insertElementAtCursorHtagsFun("h3", "**h3**")),
2426
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2427
+ }, _hoisted_53),
2428
+ createElementVNode("div", {
2429
+ onClick: _cache[14] || (_cache[14] = ($event) => unref(insertElementAtCursorHtags)("h4", "**h4**")),
2430
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2431
+ }, _hoisted_55),
2432
+ createElementVNode("div", {
2433
+ onClick: _cache[15] || (_cache[15] = ($event) => insertElementAtCursorHtagsFun("h5", "**h5**")),
2434
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2435
+ }, _hoisted_57),
2436
+ createElementVNode("div", {
2437
+ onClick: _cache[16] || (_cache[16] = ($event) => insertElementAtCursorHtagsFun("h6", "**h6**")),
2438
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2439
+ }, _hoisted_59),
2440
+ createElementVNode("div", {
2441
+ onClick: _cache[17] || (_cache[17] = ($event) => styleElementIncluderFun("text-transform", "capitalize")),
2442
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2443
+ }, _hoisted_61),
2444
+ createElementVNode("div", {
2445
+ onClick: _cache[18] || (_cache[18] = ($event) => styleElementIncluderFun("text-transform", "lowercase")),
2446
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2447
+ }, _hoisted_63),
2448
+ createElementVNode("div", {
2449
+ onClick: _cache[19] || (_cache[19] = ($event) => styleElementIncluderFun("text-transform", "uppercase")),
2450
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"
2451
+ }, _hoisted_65)
1733
2452
  ])
1734
2453
  ])
1735
2454
  ])
1736
- ])
1737
- ]),
1738
- e("div", Nt, [
1739
- e("div", Dt, [
1740
- Vt,
1741
- e("div", Wt, [
1742
- e("div", Pt, [
1743
- e("div", Gt, [
1744
- Ot,
1745
- Xt,
1746
- e("input", {
1747
- type: "file",
1748
- hidden: "",
1749
- id: "pom43546535435445Image",
1750
- accept: "image/*",
1751
- multiple: "",
1752
- onChange: t[18] || (t[18] = (c) => R(c))
1753
- }, null, 32)
1754
- ]),
1755
- e("div", {
1756
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1757
- onClick: t[19] || (t[19] = (c) => {
1758
- C(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: "text-decoration: underline;cursor: pointer" });
1759
- })
1760
- }, Ut),
1761
- e("div", {
1762
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
1763
- onClick: t[20] || (t[20] = (c) => C(this))
1764
- }, Qt),
1765
- e("div", null, [
1766
- eo,
1767
- e("div", {
1768
- class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1769
- onClick: t[21] || (t[21] = (c) => J(ie)())
1770
- }, no),
1771
- e("div", {
2455
+ ]),
2456
+ createElementVNode("div", _hoisted_66, [
2457
+ createElementVNode("div", _hoisted_67, [
2458
+ _hoisted_68,
2459
+ createElementVNode("div", _hoisted_69, [
2460
+ createElementVNode("div", _hoisted_70, [
2461
+ createElementVNode("div", _hoisted_71, [
2462
+ _hoisted_72,
2463
+ _hoisted_73,
2464
+ createElementVNode("input", {
2465
+ type: "file",
2466
+ hidden: "",
2467
+ id: "pom43546535435445Image",
2468
+ accept: "image/*",
2469
+ multiple: "",
2470
+ onChange: FilesInjectionFun
2471
+ }, null, 32)
2472
+ ]),
2473
+ createElementVNode("div", {
1772
2474
  class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
1773
- onClick: t[22] || (t[22] = (c) => J(ie)(!0))
1774
- }, lo),
1775
- e("div", ao, [
1776
- ro,
1777
- e("div", {
1778
- id: "table-picker-container",
1779
- ref_key: "tablePickerContainer",
1780
- ref: a,
1781
- class: "table-picker-container"
1782
- }, [
1783
- e("div", {
1784
- id: "table-picker-grid",
1785
- ref_key: "tablePickerGrid",
1786
- ref: p,
1787
- class: "table-picker-grid"
1788
- }, null, 512),
1789
- e("span", {
1790
- id: "table-dimensions",
1791
- ref_key: "tableDimensions",
1792
- ref: s,
1793
- class: "table-dimensions"
1794
- }, "0 x 0", 512)
1795
- ], 512)
2475
+ onClick: _cache[20] || (_cache[20] = ($event) => {
2476
+ openInputToFeedFun(this, "a", "links", {}, { href: "", class: "pom-editor-anchor-tag", style: `text-decoration: underline;cursor: pointer` });
2477
+ })
2478
+ }, _hoisted_76),
2479
+ createElementVNode("div", {
2480
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",
2481
+ onClick: _cache[21] || (_cache[21] = ($event) => openInputToFeedFun(this))
2482
+ }, _hoisted_79),
2483
+ createElementVNode("div", null, [
2484
+ _hoisted_80,
2485
+ createElementVNode("div", {
2486
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2487
+ onClick: _cache[22] || (_cache[22] = ($event) => unref(removeAllTables)())
2488
+ }, _hoisted_83),
2489
+ createElementVNode("div", {
2490
+ class: "hover:bg-gray-200 elemeSet rounded cursor-pointer",
2491
+ onClick: _cache[23] || (_cache[23] = ($event) => unref(removeAllTables)(true))
2492
+ }, _hoisted_86),
2493
+ createElementVNode("div", _hoisted_87, [
2494
+ _hoisted_88,
2495
+ createElementVNode("div", {
2496
+ id: "table-picker-container",
2497
+ ref_key: "tablePickerContainer",
2498
+ ref: tablePickerContainer,
2499
+ class: "table-picker-container"
2500
+ }, [
2501
+ createElementVNode("div", {
2502
+ id: "table-picker-grid",
2503
+ ref_key: "tablePickerGrid",
2504
+ ref: tablePickerGrid,
2505
+ class: "table-picker-grid"
2506
+ }, null, 512),
2507
+ createElementVNode("span", {
2508
+ id: "table-dimensions",
2509
+ ref_key: "tableDimensions",
2510
+ ref: tableDimensions,
2511
+ class: "table-dimensions"
2512
+ }, "0 x 0", 512)
2513
+ ], 512)
2514
+ ])
1796
2515
  ])
1797
2516
  ])
1798
2517
  ])
1799
2518
  ])
1800
- ])
1801
- ]),
1802
- e("div", co, [
1803
- e("div", uo, [
1804
- po,
1805
- e("div", mo, [
1806
- e("span", ho, [
1807
- e("div", go, [
1808
- e("div", fo, [
1809
- vo,
1810
- e("div", yo, [
1811
- e("div", xo, [
1812
- e("div", {
1813
- onClick: t[23] || (t[23] = () => y("font-family", " arial, helvetica, sans-serif")),
1814
- style: { "font-family": "arial, helvetica, sans-serif" }
1815
- }, "Arial ")
2519
+ ]),
2520
+ createElementVNode("div", _hoisted_89, [
2521
+ createElementVNode("div", _hoisted_90, [
2522
+ _hoisted_91,
2523
+ createElementVNode("div", _hoisted_92, [
2524
+ createElementVNode("span", _hoisted_93, [
2525
+ createElementVNode("div", _hoisted_94, [
2526
+ createElementVNode("div", _hoisted_95, [
2527
+ _hoisted_96,
2528
+ createElementVNode("div", _hoisted_97, [
2529
+ createElementVNode("div", _hoisted_98, [
2530
+ createElementVNode("div", {
2531
+ onClick: _cache[24] || (_cache[24] = () => fontFamilyChanger("font-family", " arial, helvetica, sans-serif")),
2532
+ style: { "font-family": "arial, helvetica, sans-serif" }
2533
+ }, "Arial ")
2534
+ ]),
2535
+ _hoisted_99
1816
2536
  ]),
1817
- _o
1818
- ]),
1819
- e("div", bo, [
1820
- e("div", wo, [
1821
- e("div", {
1822
- style: { "font-family": '"arial black", sans-serif' },
1823
- onClick: t[24] || (t[24] = () => y("font-family", "arial black, sans-serif"))
1824
- }, " Arial Black")
2537
+ createElementVNode("div", _hoisted_100, [
2538
+ createElementVNode("div", _hoisted_101, [
2539
+ createElementVNode("div", {
2540
+ style: { "font-family": '"arial black", sans-serif' },
2541
+ onClick: _cache[25] || (_cache[25] = () => fontFamilyChanger("font-family", "arial black, sans-serif"))
2542
+ }, " Arial Black")
2543
+ ]),
2544
+ _hoisted_102
1825
2545
  ]),
1826
- ko
1827
- ]),
1828
- e("div", Co, [
1829
- e("div", Eo, [
1830
- e("div", {
1831
- style: { "font-family": "book antiqua, palatino, serif" },
1832
- onClick: t[25] || (t[25] = () => y("font-family", "book antiqua, palatino, serif"))
1833
- }, " Book Antiqua")
2546
+ createElementVNode("div", _hoisted_103, [
2547
+ createElementVNode("div", _hoisted_104, [
2548
+ createElementVNode("div", {
2549
+ style: { "font-family": "book antiqua, palatino, serif" },
2550
+ onClick: _cache[26] || (_cache[26] = () => fontFamilyChanger("font-family", "book antiqua, palatino, serif"))
2551
+ }, " Book Antiqua")
2552
+ ]),
2553
+ _hoisted_105
1834
2554
  ]),
1835
- Fo
1836
- ]),
1837
- e("div", Lo, [
1838
- e("div", Ao, [
1839
- e("div", {
1840
- style: { "font-family": '"comic sans ms", sans-serif' },
1841
- onClick: t[26] || (t[26] = () => y("font-family", 'comic sans ms", sans-serif'))
1842
- }, " Comic Sans MS")
2555
+ createElementVNode("div", _hoisted_106, [
2556
+ createElementVNode("div", _hoisted_107, [
2557
+ createElementVNode("div", {
2558
+ style: { "font-family": '"comic sans ms", sans-serif' },
2559
+ onClick: _cache[27] || (_cache[27] = () => fontFamilyChanger("font-family", 'comic sans ms", sans-serif'))
2560
+ }, " Comic Sans MS")
2561
+ ]),
2562
+ _hoisted_108
1843
2563
  ]),
1844
- So
1845
- ]),
1846
- e("div", zo, [
1847
- e("div", Mo, [
1848
- e("div", {
1849
- style: { "font-family": "courier new, courier, monospace" },
1850
- onClick: t[27] || (t[27] = () => y("font-family", " courier new, courier, monospace;"))
1851
- }, " Courier New")
2564
+ createElementVNode("div", _hoisted_109, [
2565
+ createElementVNode("div", _hoisted_110, [
2566
+ createElementVNode("div", {
2567
+ style: { "font-family": "courier new, courier, monospace" },
2568
+ onClick: _cache[28] || (_cache[28] = () => fontFamilyChanger("font-family", " courier new, courier, monospace;"))
2569
+ }, " Courier New")
2570
+ ]),
2571
+ _hoisted_111
1852
2572
  ]),
1853
- Ro
1854
- ]),
1855
- e("div", Ho, [
1856
- e("div", To, [
1857
- e("div", {
1858
- style: { "font-family": "georgia, palatino, serif" },
1859
- onClick: t[28] || (t[28] = () => y("font-family", " georgia, palatino, serif"))
1860
- }, "Georgia ")
2573
+ createElementVNode("div", _hoisted_112, [
2574
+ createElementVNode("div", _hoisted_113, [
2575
+ createElementVNode("div", {
2576
+ style: { "font-family": "georgia, palatino, serif" },
2577
+ onClick: _cache[29] || (_cache[29] = () => fontFamilyChanger("font-family", " georgia, palatino, serif"))
2578
+ }, "Georgia ")
2579
+ ]),
2580
+ _hoisted_114
1861
2581
  ]),
1862
- $o
1863
- ]),
1864
- e("div", Io, [
1865
- e("div", jo, [
1866
- e("div", {
1867
- style: { "font-family": "helvetica, arial, sans-serif" },
1868
- onClick: t[29] || (t[29] = () => y("font-family", " helvetica, arial, sans-serif"))
1869
- }, " Helvetica")
2582
+ createElementVNode("div", _hoisted_115, [
2583
+ createElementVNode("div", _hoisted_116, [
2584
+ createElementVNode("div", {
2585
+ style: { "font-family": "helvetica, arial, sans-serif" },
2586
+ onClick: _cache[30] || (_cache[30] = () => fontFamilyChanger("font-family", " helvetica, arial, sans-serif"))
2587
+ }, " Helvetica")
2588
+ ]),
2589
+ _hoisted_117
1870
2590
  ]),
1871
- Zo
1872
- ]),
1873
- e("div", Bo, [
1874
- e("div", No, [
1875
- e("div", {
1876
- style: { "font-family": "impact, sans-serif" },
1877
- onClick: t[30] || (t[30] = () => y("font-family", " impact, sans-serif"))
1878
- }, "Impact")
2591
+ createElementVNode("div", _hoisted_118, [
2592
+ createElementVNode("div", _hoisted_119, [
2593
+ createElementVNode("div", {
2594
+ style: { "font-family": "impact, sans-serif" },
2595
+ onClick: _cache[31] || (_cache[31] = () => fontFamilyChanger("font-family", " impact, sans-serif"))
2596
+ }, "Impact")
2597
+ ]),
2598
+ _hoisted_120
1879
2599
  ]),
1880
- Do
1881
- ]),
1882
- e("div", Vo, [
1883
- e("div", Wo, [
1884
- e("div", {
1885
- style: { "font-family": "symbol" },
1886
- onClick: t[31] || (t[31] = () => y("font-family", " symbol"))
1887
- }, "Symbol")
2600
+ createElementVNode("div", _hoisted_121, [
2601
+ createElementVNode("div", _hoisted_122, [
2602
+ createElementVNode("div", {
2603
+ style: { "font-family": "symbol" },
2604
+ onClick: _cache[32] || (_cache[32] = () => fontFamilyChanger("font-family", " symbol"))
2605
+ }, "Symbol")
2606
+ ]),
2607
+ _hoisted_123
1888
2608
  ]),
1889
- Po
1890
- ]),
1891
- e("div", Go, [
1892
- e("div", Oo, [
1893
- e("div", {
1894
- style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
1895
- onClick: t[32] || (t[32] = () => y("font-family", " tahoma, arial, helvetica, sans-serif"))
1896
- }, " Tahoma")
2609
+ createElementVNode("div", _hoisted_124, [
2610
+ createElementVNode("div", _hoisted_125, [
2611
+ createElementVNode("div", {
2612
+ style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
2613
+ onClick: _cache[33] || (_cache[33] = () => fontFamilyChanger("font-family", " tahoma, arial, helvetica, sans-serif"))
2614
+ }, " Tahoma")
2615
+ ]),
2616
+ _hoisted_126
1897
2617
  ]),
1898
- Xo
1899
- ]),
1900
- e("div", qo, [
1901
- e("div", Yo, [
1902
- e("div", {
1903
- style: { "font-family": "terminal, monaco, monospace" },
1904
- onClick: t[33] || (t[33] = () => y("font-family", " terminal, monaco, monospace"))
1905
- }, "Terminal ")
2618
+ createElementVNode("div", _hoisted_127, [
2619
+ createElementVNode("div", _hoisted_128, [
2620
+ createElementVNode("div", {
2621
+ style: { "font-family": "terminal, monaco, monospace" },
2622
+ onClick: _cache[34] || (_cache[34] = () => fontFamilyChanger("font-family", " terminal, monaco, monospace"))
2623
+ }, "Terminal ")
2624
+ ]),
2625
+ _hoisted_129
1906
2626
  ]),
1907
- Uo
1908
- ]),
1909
- e("div", Ko, [
1910
- e("div", Jo, [
1911
- e("div", {
1912
- style: { "font-family": "times new roman, times, serif" },
1913
- onClick: t[34] || (t[34] = () => y("font-family", " times new roman, times, serif"))
1914
- }, " Times New Roman")
2627
+ createElementVNode("div", _hoisted_130, [
2628
+ createElementVNode("div", _hoisted_131, [
2629
+ createElementVNode("div", {
2630
+ style: { "font-family": "times new roman, times, serif" },
2631
+ onClick: _cache[35] || (_cache[35] = () => fontFamilyChanger("font-family", " times new roman, times, serif"))
2632
+ }, " Times New Roman")
2633
+ ]),
2634
+ _hoisted_132
1915
2635
  ]),
1916
- Qo
1917
- ]),
1918
- e("div", en, [
1919
- e("div", tn, [
1920
- e("div", {
1921
- style: { "font-family": "trebuchet ms, geneva, sans-serif" },
1922
- onClick: t[35] || (t[35] = () => y("font-family", " trebuchet ms, geneva, sans-serif"))
1923
- }, " Trebuchet MS")
2636
+ createElementVNode("div", _hoisted_133, [
2637
+ createElementVNode("div", _hoisted_134, [
2638
+ createElementVNode("div", {
2639
+ style: { "font-family": "trebuchet ms, geneva, sans-serif" },
2640
+ onClick: _cache[36] || (_cache[36] = () => fontFamilyChanger("font-family", " trebuchet ms, geneva, sans-serif"))
2641
+ }, " Trebuchet MS")
2642
+ ]),
2643
+ _hoisted_135
1924
2644
  ]),
1925
- on
1926
- ]),
1927
- e("div", nn, [
1928
- e("div", sn, [
1929
- e("div", {
1930
- style: { "font-family": "verdana, geneva, sans-serif" },
1931
- onClick: t[36] || (t[36] = () => y("font-family", " verdana, geneva, sans-serif"))
1932
- }, "Verdana ")
2645
+ createElementVNode("div", _hoisted_136, [
2646
+ createElementVNode("div", _hoisted_137, [
2647
+ createElementVNode("div", {
2648
+ style: { "font-family": "verdana, geneva, sans-serif" },
2649
+ onClick: _cache[37] || (_cache[37] = () => fontFamilyChanger("font-family", " verdana, geneva, sans-serif"))
2650
+ }, "Verdana ")
2651
+ ]),
2652
+ _hoisted_138
1933
2653
  ]),
1934
- ln
1935
- ]),
1936
- an,
1937
- rn
2654
+ _hoisted_139,
2655
+ _hoisted_140
2656
+ ])
1938
2657
  ])
1939
2658
  ])
1940
2659
  ])
1941
2660
  ])
1942
- ])
1943
- ]),
1944
- e("div", dn, [
1945
- e("button", {
1946
- style: { flex: "1", margin: "0 4px", width: "auto" },
1947
- onClick: t[37] || (t[37] = (c) => v("text-align", "justify", "", "p"))
1948
- }, un),
1949
- e("button", {
1950
- style: { flex: "1", margin: "0 4px", width: "auto" },
1951
- onClick: t[38] || (t[38] = (c) => v("text-align", "center", "", "div"))
1952
- }, mn),
1953
- e("button", {
1954
- style: { flex: "1", margin: "0 4px", width: "auto" },
1955
- onClick: t[39] || (t[39] = (c) => v("text-align", "end", "", "p"))
1956
- }, gn),
1957
- e("button", {
1958
- style: { flex: "1", margin: "0 4px", width: "auto" },
1959
- onClick: t[40] || (t[40] = (c) => v("text-align", "start", "", "div"))
1960
- }, vn)
1961
- ]),
1962
- e("div", yn, [
1963
- xn,
1964
- e("div", _n, [
1965
- e("div", bn, [
1966
- e("div", {
1967
- onClick: t[41] || (t[41] = (c) => D(3, "disc"))
1968
- }, kn),
1969
- e("div", {
1970
- onClick: t[42] || (t[42] = (c) => D(3, "circle"))
1971
- }, En),
1972
- e("div", null, [
1973
- e("div", {
1974
- class: "",
1975
- onClick: t[43] || (t[43] = (c) => D())
1976
- }, Ln)
1977
- ]),
1978
- e("div", {
1979
- onClick: t[44] || (t[44] = (c) => D(3, "upper-latin"))
1980
- }, Sn)
2661
+ ]),
2662
+ createElementVNode("div", _hoisted_141, [
2663
+ createElementVNode("button", {
2664
+ style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2665
+ onClick: _cache[38] || (_cache[38] = ($event) => ChangeTheDirectionOFTextFun("text-align", "justify", "", "p"))
2666
+ }, _hoisted_143),
2667
+ createElementVNode("button", {
2668
+ style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2669
+ onClick: _cache[39] || (_cache[39] = ($event) => ChangeTheDirectionOFTextFun("text-align", "center", "", "div"))
2670
+ }, _hoisted_145),
2671
+ createElementVNode("button", {
2672
+ style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2673
+ onClick: _cache[40] || (_cache[40] = ($event) => ChangeTheDirectionOFTextFun("text-align", "end", "", "p"))
2674
+ }, _hoisted_147),
2675
+ createElementVNode("button", {
2676
+ style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2677
+ onClick: _cache[41] || (_cache[41] = ($event) => ChangeTheDirectionOFTextFun("text-align", "start", "", "div"))
2678
+ }, _hoisted_149)
2679
+ ]),
2680
+ createElementVNode("div", _hoisted_150, [
2681
+ _hoisted_151,
2682
+ createElementVNode("div", _hoisted_152, [
2683
+ createElementVNode("div", _hoisted_153, [
2684
+ createElementVNode("div", {
2685
+ onClick: _cache[42] || (_cache[42] = ($event) => insertUnorderedListAtCursorFun(3, "disc"))
2686
+ }, _hoisted_155),
2687
+ createElementVNode("div", {
2688
+ onClick: _cache[43] || (_cache[43] = ($event) => insertUnorderedListAtCursorFun(3, "circle"))
2689
+ }, _hoisted_157),
2690
+ createElementVNode("div", null, [
2691
+ createElementVNode("div", {
2692
+ class: "",
2693
+ onClick: _cache[44] || (_cache[44] = ($event) => insertUnorderedListAtCursorFun())
2694
+ }, _hoisted_159)
2695
+ ]),
2696
+ createElementVNode("div", {
2697
+ onClick: _cache[45] || (_cache[45] = ($event) => insertUnorderedListAtCursorFun(3, "upper-latin"))
2698
+ }, _hoisted_161)
2699
+ ])
1981
2700
  ])
1982
2701
  ])
1983
- ])
1984
- ]),
1985
- e("div", zn, [
1986
- Q(f.$slots, "toolbar-before", {}, void 0, !0),
1987
- e("div", {
1988
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-3",
1989
- style: { margin: "6px" },
1990
- onClick: t[45] || (t[45] = (c) => b())
1991
- }, Rn),
1992
- e("div", {
1993
- onClick: t[46] || (t[46] = (c) => b("i", "**italic text **")),
1994
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
1995
- style: { margin: "6px" }
1996
- }, Tn),
1997
- e("div", {
1998
- onClick: t[47] || (t[47] = (c) => b("u", "**underLine text**")),
1999
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2000
- style: { margin: "6px" }
2001
- }, In),
2002
- e("div", {
2003
- onClick: t[48] || (t[48] = (c) => b("s", "**Strike text**")),
2004
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2005
- style: { margin: "6px" }
2006
- }, [
2007
- e("i", jn, [
2008
- ($(), I("svg", Zn, Vn))
2009
- ])
2010
2702
  ]),
2011
- e("div", {
2012
- onClick: t[49] || (t[49] = (c) => b("sup", "**supperScript**")),
2013
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2014
- style: { margin: "6px" }
2015
- }, Pn),
2016
- e("div", {
2017
- onClick: t[50] || (t[50] = (c) => b("sub", "**supperScript**")),
2018
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2019
- style: { margin: "6px" }
2020
- }, On),
2021
- e("div", {
2022
- onClick: t[51] || (t[51] = (c) => b("Code", "**code**")),
2023
- class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2024
- style: { margin: "6px" }
2025
- }, qn),
2026
- e("div", Yn, [
2027
- Un,
2028
- e("div", Kn, [
2029
- e("div", Jn, [
2030
- ($(!0), I(X, null, ee(u.value, (c) => ($(), I("div", {
2031
- class: "color-box",
2032
- style: te(`background-color: #${c} ;`),
2033
- onClick: (_) => w("background", `#${c}`, "", "span")
2034
- }, null, 12, Qn))), 256))
2703
+ createElementVNode("div", _hoisted_162, [
2704
+ renderSlot(_ctx.$slots, "toolbar-before", {}, void 0, true),
2705
+ createElementVNode("div", {
2706
+ 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",
2707
+ style: { "margin": "6px" },
2708
+ onClick: _cache[46] || (_cache[46] = ($event) => insertElementAtCursorFun())
2709
+ }, _hoisted_164),
2710
+ createElementVNode("div", {
2711
+ onClick: _cache[47] || (_cache[47] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
2712
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2713
+ style: { "margin": "6px" }
2714
+ }, _hoisted_166),
2715
+ createElementVNode("div", {
2716
+ onClick: _cache[48] || (_cache[48] = ($event) => insertElementAtCursorFun("u", "**underLine text**")),
2717
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2718
+ style: { "margin": "6px" }
2719
+ }, _hoisted_168),
2720
+ createElementVNode("div", {
2721
+ onClick: _cache[49] || (_cache[49] = ($event) => insertElementAtCursorFun("s", "**Strike text**")),
2722
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2723
+ style: { "margin": "6px" }
2724
+ }, [
2725
+ createElementVNode("i", _hoisted_169, [
2726
+ (openBlock(), createElementBlock("svg", _hoisted_170, _hoisted_174))
2035
2727
  ])
2036
- ])
2037
- ]),
2038
- e("div", ei, [
2039
- ti,
2040
- e("div", oi, [
2041
- e("div", ni, [
2042
- ($(!0), I(X, null, ee(u.value, (c) => ($(), I("div", {
2043
- class: "color-box",
2044
- style: te(`background-color: #${c} ;`),
2045
- onClick: (_) => w("color", `#${c}`, "", "span")
2046
- }, null, 12, ii))), 256))
2728
+ ]),
2729
+ createElementVNode("div", {
2730
+ onClick: _cache[50] || (_cache[50] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
2731
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2732
+ style: { "margin": "6px" }
2733
+ }, _hoisted_176),
2734
+ createElementVNode("div", {
2735
+ onClick: _cache[51] || (_cache[51] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
2736
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2737
+ style: { "margin": "6px" }
2738
+ }, _hoisted_178),
2739
+ createElementVNode("div", {
2740
+ onClick: _cache[52] || (_cache[52] = ($event) => insertElementAtCursorFun("Code", "**code**")),
2741
+ class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
2742
+ style: { "margin": "6px" }
2743
+ }, _hoisted_180),
2744
+ createElementVNode("div", _hoisted_181, [
2745
+ _hoisted_182,
2746
+ createElementVNode("div", _hoisted_183, [
2747
+ createElementVNode("div", _hoisted_184, [
2748
+ (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2749
+ return openBlock(), createElementBlock("div", {
2750
+ class: "color-box",
2751
+ style: normalizeStyle(`background-color: #${col} ;`),
2752
+ onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
2753
+ }, null, 12, _hoisted_185);
2754
+ }), 256))
2755
+ ])
2047
2756
  ])
2048
- ])
2049
- ]),
2050
- Q(f.$slots, "toolbar-after", {}, void 0, !0),
2051
- e("div", {
2052
- title: "new fresh line",
2053
- style: { flex: "1", margin: "0 4px", "text-align": "center", "padding-top": "8px" },
2054
- onClick: t[52] || (t[52] = (c) => N())
2055
- }, li)
2757
+ ]),
2758
+ createElementVNode("div", _hoisted_186, [
2759
+ _hoisted_187,
2760
+ createElementVNode("div", _hoisted_188, [
2761
+ createElementVNode("div", _hoisted_189, [
2762
+ (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2763
+ return openBlock(), createElementBlock("div", {
2764
+ class: "color-box",
2765
+ style: normalizeStyle(`background-color: #${col} ;`),
2766
+ onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
2767
+ }, null, 12, _hoisted_190);
2768
+ }), 256))
2769
+ ])
2770
+ ])
2771
+ ]),
2772
+ createElementVNode("div", {
2773
+ title: "Redo",
2774
+ 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",
2775
+ st: "",
2776
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2777
+ onClick: _cache[53] || (_cache[53] = () => undoOrRedo("Undo"))
2778
+ }, _hoisted_192),
2779
+ createElementVNode("div", {
2780
+ title: "Redo",
2781
+ 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",
2782
+ st: "",
2783
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2784
+ onClick: _cache[54] || (_cache[54] = () => undoOrRedo("Redo"))
2785
+ }, _hoisted_194),
2786
+ createElementVNode("div", {
2787
+ title: "new fresh line",
2788
+ 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",
2789
+ st: "",
2790
+ yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2791
+ onClick: _cache[55] || (_cache[55] = ($event) => insertNewLineAtCursorFun())
2792
+ }, _hoisted_196),
2793
+ createElementVNode("div", _hoisted_197, [
2794
+ createElementVNode("input", {
2795
+ list: "fontSizes",
2796
+ style: { "border": "none" },
2797
+ onChange: _cache[56] || (_cache[56] = (e) => styleElementIncluderFun("font-size", e.target.value + "pt")),
2798
+ placeholder: "Size ",
2799
+ class: "p-1 border rounded w-[6vw] h-[3vh]"
2800
+ }, null, 32),
2801
+ createElementVNode("datalist", _hoisted_198, [
2802
+ (openBlock(), createElementBlock(Fragment, null, renderList(89, (size) => {
2803
+ return createElementVNode("option", {
2804
+ key: size,
2805
+ value: size
2806
+ }, toDisplayString(size) + "pt", 9, _hoisted_199);
2807
+ }), 64))
2808
+ ])
2809
+ ]),
2810
+ renderSlot(_ctx.$slots, "toolbar-after", {}, void 0, true)
2811
+ ])
2056
2812
  ])
2057
- ])
2058
- ]),
2059
- e("div", {
2060
- class: "",
2061
- ref_key: "pomTextEditorContainer",
2062
- ref: h,
2063
- id: "pom-texedito-container",
2064
- style: { width: "100%", overflow: "hidden auto", height: "30vh", border: "1px solid #9d969633", padding: "0px", "border-radius": "3px" }
2065
- }, [
2066
- e("div", ai, [
2067
- e("div", {
2068
- "data-placeholder": "Your Editing.....",
2069
- onDrop: re,
2070
- innerHTML: n.Dvalue,
2071
- onMouseup: t[53] || (t[53] = (c) => G()),
2072
- onKeyup: t[54] || (t[54] = (c) => {
2073
- G();
2074
- }),
2075
- ref_key: "editorRef",
2076
- ref: o,
2077
- class: "editor pom-editing-area mt-1 border-gray-300",
2078
- onInput: T,
2079
- contenteditable: "true",
2080
- id: "editor",
2081
- style: { height: "100%", width: "100%", border: "none" }
2082
- }, null, 40, ri)
2083
- ])
2084
- ], 512),
2085
- e("div", di, [
2086
- e("div", {
2087
- class: "hover:bg-gray-200",
2088
- onClick: t[55] || (t[55] = (c) => N())
2089
- }, pi),
2090
- mi,
2091
- Y("       "),
2092
- hi
2093
- ])
2094
- ], 64));
2813
+ ]),
2814
+ createElementVNode("div", {
2815
+ class: "",
2816
+ ref_key: "pomTextEditorContainer",
2817
+ ref: pomTextEditorContainer,
2818
+ id: "pom-texedito-container",
2819
+ style: { "width": "100%", "overflow": "hidden auto", "height": "30vh", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
2820
+ }, [
2821
+ createElementVNode("div", _hoisted_200, [
2822
+ __props.TextOnly ? (openBlock(), createElementBlock("textarea", {
2823
+ key: 0,
2824
+ onMouseup: _cache[57] || (_cache[57] = ($event) => containerCursorPosition()),
2825
+ onKeyup: _cache[58] || (_cache[58] = (e) => {
2826
+ containerCursorPosition();
2827
+ }),
2828
+ onInput: returnData,
2829
+ ref_key: "editorRef",
2830
+ ref: editorRef,
2831
+ class: "editor pom-editing-area mt-1 border-gray-300",
2832
+ id: "editor",
2833
+ style: { "height": "100%", "width": "100%", "border": "none", "resize": "none" }
2834
+ }, toDisplayString(__props.Dvalue), 545)) : (openBlock(), createElementBlock("div", {
2835
+ key: 1,
2836
+ "data-placeholder": "Your Editing.....",
2837
+ onDrop: onChangeFileDrop,
2838
+ innerHTML: __props.Dvalue,
2839
+ onMouseup: _cache[59] || (_cache[59] = ($event) => containerCursorPosition()),
2840
+ onKeyup: _cache[60] || (_cache[60] = (e) => {
2841
+ containerCursorPosition();
2842
+ }),
2843
+ ref_key: "editorRef",
2844
+ ref: editorRef,
2845
+ class: "editor pom-editing-area mt-1 border-gray-300",
2846
+ onInput: returnData,
2847
+ contenteditable: "true",
2848
+ id: "editor",
2849
+ style: { "height": "100%", "width": "100%", "border": "none" }
2850
+ }, null, 40, _hoisted_201))
2851
+ ])
2852
+ ], 512),
2853
+ __props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_202, [
2854
+ createElementVNode("div", {
2855
+ class: "hover:bg-gray-200",
2856
+ onClick: _cache[61] || (_cache[61] = ($event) => insertNewLineAtCursorFun())
2857
+ }, _hoisted_205),
2858
+ _hoisted_206,
2859
+ _hoisted_207
2860
+ ])) : createCommentVNode("", true)
2861
+ ]);
2862
+ };
2095
2863
  }
2096
- }, vi = /* @__PURE__ */ He(gi, [["__scopeId", "data-v-c5304261"]]);
2864
+ };
2865
+ const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ee2fe0b"]]);
2097
2866
  export {
2098
- vi as default
2867
+ Editor as default
2099
2868
  };