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