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