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