pom-text-editor 0.2.29 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.heading{content:"H"}#pom-texedito-container div ::selection{background:#5986e7;color:#000}#pom-texedito-container p ::selection{background:#8ae74b;color:#000}#pom-texedito-container a ::selection{background:#5986e7;color:#000}#pom-texedito-container img ::selection{background:#5edba0;color:#000}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;position:relative!important;display:inline-block;cursor:pointer}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.elemeSetDropDown{box-shadow:9px 5px 42px -14px #000000b8;-webkit-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);-moz-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);border-radius:10px;border:#33323222 .1px solid}.color-container{display:none;box-shadow:0 4px 8px #0000001a;padding:14px;position:absolute;left:0;z-index:100;background-color:#fff;width:19vw;height:30vh!important;overflow:auto;top:28px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts:hover{border:#c8c8c821 1px solid;background:#8d8c8c0a;color:#000;box-shadow:4px 14px 28px -15px #2c2c2cbb;-moz-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734);-webkit-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734)}.pom-editor-menu:hover{display:block!important}.pom-editor-menu{display:none!important;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:30px;height:30px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor:focus:before{content:none}.table-picker-wrapper{position:relative;display:inline-block}.table-picker-trigger{cursor:pointer;display:flex;align-items:center}.table-picker-container{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container{display:block}.table-picker-grid{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div:hover{background-color:#f8f6f6;border:0}.table-dimensions{font-size:12px;color:#333}.pomXEditor{border:1px;border-style:solid;border-color:#6972734e}#editor:focus{outline:none;border:none}.pom-table-editor-container{display:flex}.pom-table-editor-container a{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a:link{color:#00f}.pom-table-editor-container a:visited{color:purple}.pom-table-editor-container a:hover{color:red;text-decoration:none}.pom-table-editor-container a:active{color:orange}@media print{.hideonprint{display:none!important}}/*!\n * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2024 Fonticons, Inc.\n */.Image_dropped_pom{background:#adacacb4;border-radius:3px;margin:3px;z-index:100;box-shadow:10px 39px 90px 30px #664a4a42;-webkit-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);-moz-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);box-sizing:border-box}.Image_dropped_pom *:hover{background:#a14b1a9f;color:#fff;border:none;border-bottom:2px solid white;box-shadow:0 6px 6px #00000042,0 10px 20px #00000030}.imageClosingBtn{margin:0;position:absolute;top:-3px;right:-3px;bottom:0;z-index:101;color:red;background:#cd5a5e47;width:14px;height:15px;border:1px solid #ccc2c2;text-align:center;text-size-adjust:auto}.pom-main-element-container .editor[data-v-4b7ed1ce]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.pom-main-element-container .editor[data-v-4b7ed1ce]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-4b7ed1ce]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-4b7ed1ce]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-4b7ed1ce]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.pom-main-element-container .table-picker-wrapper:hover .table-picker-container[data-v-4b7ed1ce]{display:block}.pom-main-element-container .table-picker-grid[data-v-4b7ed1ce]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.pom-main-element-container .table-picker-grid div[data-v-4b7ed1ce]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-4b7ed1ce]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-4b7ed1ce]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-4b7ed1ce]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-4b7ed1ce]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-4b7ed1ce]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-4b7ed1ce]:active{color:orange}@media print{.hideonprint[data-v-4b7ed1ce]{display:none!important}[data-v-4b7ed1ce]{overflow:hidden}}.pom-main-element-container .editor[data-v-4b7ed1ce]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-4b7ed1ce]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-4b7ed1ce] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).PomTextEditor=t(e.Vue)}(this,(function(e){"use strict";function t(e){e.preventDefault();const t=e.target.parentElement,n=e.clientX,o=e.clientY,l=parseFloat(window.getComputedStyle(t).width),r=parseFloat(window.getComputedStyle(t).height);function a(e){const a=e.clientX-n,i=e.clientY-o;t.style.width=`${l+a}px`,t.style.height=`${r+i}px`,t.style.minWidth="50px",t.style.minHeight="50px";const d=t.querySelector("img");d&&(d.style.width="100%")}document.addEventListener("mousemove",a),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",e)}))}function n(e=!1,t=document.getElementsByClassName("pom-table-editor-container")){(t=Array.from(t)).forEach((t=>{if(e){const e="flex"===t.style.display?"none":"flex";t.style.display=e}else t.remove()}))}function o(e=!0,t=document.getElementById("pom-texedito-container").innerHTML,n="hideonprint"){const o=function(e=document.getElementById("pom-texedito-container").innerHTML,t=".hideonprint"){const n=window.open("","","height=900,width=800");return n.document.write("<html><head><title>Print</title>"),n.document.write(`<style>\n ${t} {\n display: none;\n }\n\n @media print {\n ${t} {\n display: none;\n }\n }\n .pom-4-imageContainer {\n display: block !important;\n }\n </style>`),n.document.write("</head><body>"),n.document.write(e),n.document.write("</body></html>"),n.document.close(),n}(t,n);e&&(o.focus(),o.onload=function(){setTimeout((()=>{o.print()}),4e3)},o.onafterprint=function(){o.close()})}function l(){document.querySelectorAll(".pom-table-col-resizer").forEach((e=>{e.addEventListener("mousedown",t)}));document.querySelectorAll("table").forEach((e=>{e.addEventListener("contextmenu",(function(t){t.preventDefault();const n=t.target.parentElement;!function(e,t,n){const o=document.getElementById("custom-context-menu"),l=document.getElementById("custom-context-menu-multipleSeletedTableActions");l&&document.body.removeChild(l);o&&document.body.removeChild(o);const r=document.createElement("div");r.id="custom-context-menu",r.style.position="absolute",r.style.backgroundColor="white",r.style.border="1px solid #ccc",r.style.padding="10px",r.style.boxShadow="0 2px 10px rgba(0, 0, 0, 0.2)",r.style.zIndex="1000",r.style.left=`${null==e?void 0:e.pageX}px`,r.style.top=`${null==e?void 0:e.pageY}px`;const a=document.createElement("div");function i(e,t){t.forEach((t=>{const n=document.createElement("div");n.textContent=t.text,n.style.cursor="pointer",n.addEventListener("click",t.action),e.appendChild(n)})),document.body.appendChild(e)}a.id="custom-context-menu-multipleSeletedTableActions",a.style.position="absolute",a.style.backgroundColor="white",a.style.border="1px solid #ccc",a.style.padding="10px",a.style.boxShadow="0 2px 10px rgba(0, 0, 0, 0.2)",a.style.zIndex="1000",a.style.left=`${null==e?void 0:e.pageX}px`,a.style.top=`${null==e?void 0:e.pageY}px`;const d=[{text:"Delete Table",action:()=>n.remove()},{text:"Select Colum(s)",action:()=>{{e.target.classList.add("VaticalheightList");const n=t.rows,o=[];for(let e=0;e<n.length;e++){const t=n[e].cells;for(let e=0;e<t.length;e++){t[e].classList.contains("VaticalheightList")&&(o.includes(e)||o.push(e))}}for(let e=0;e<o.length;e++){const t=o[e];for(let e=0;e<n.length;e++)n[e].cells[t].classList.add("VaticalheightList")}i(a,[{text:"SUM All",action:()=>{const e={},n=t.rows;for(let t=0;t<n.length;t++){const o=n[t].cells;for(let t=0;t<o.length;t++){const n=o[t];if(n.classList.contains("VaticalheightList")){const o=parseFloat(n.innerText);isNaN(o)||(e[t]||(e[t]=0),e[t]+=o)}}}t.querySelector("tr.TableHasTotalTr")&&t.querySelector("tr.TableHasTotalTr").remove();const o=document.createElement("tr");o.classList.add("TableHasTotalTr");const l=t.rows[0].cells.length;for(let t=0;t<l;t++){const n=document.createElement("td");n.style.border="1px solid black",n.style.padding="5px",n.style.alignContent="center",n.innerHTML=e[t]?`Total:${e[t]}`:null,o.appendChild(n)}t.appendChild(o),document.body.removeChild(a)}}])}}},{text:"Select Row(s)",action:()=>{{e.target.parentElement.classList.add("verticalheightList");const n=t.querySelectorAll(".verticalheightList");i(a,[{text:"SUM All",action:()=>{for(let e=0;e<n.length;e++){const t=n[e];t.querySelectorAll("td.vaticalTotal").forEach((e=>{e.remove()}));const o=t.querySelectorAll("td");let l=0;for(let e=0;e<o.length;e++){const t=parseFloat(o[e].innerText);isNaN(t)||(l+=t)}const r=document.createElement("td");r.classList.add("vaticalTotal"),r.innerHTML=l?`Total : ${l}`:null,r.style.border="1px solid black",r.style.position="relative",r.style.padding="5px",t.appendChild(r)}document.body.removeChild(a)}}])}}},{text:"Toggle Borders",action:()=>{const e=""!==t.style.border;t.style.border=e?"none":"1px solid black",t.style.borderCollapse="collapse",t.querySelectorAll("td").forEach((t=>{t.style.border=e?"none":"1px solid black"}))}},{text:"Color Table",action:()=>{const e=document.createElement("input");e.type="color",e.style.marginTop="5px",e.addEventListener("input",(()=>{t.style.backgroundColor=e.value}));const n=document.createElement("input");n.type="color",n.style.marginTop="5px",n.addEventListener("input",(()=>{t.style.color=n.value})),r.appendChild(document.createTextNode("Background Color:")),r.appendChild(e),r.appendChild(document.createTextNode("Text Color:")),r.appendChild(n)}},{text:"Add Row",action:()=>{const e=document.createElement("tr"),n=t.rows[0].cells.length;for(let o=0;o<n;o++){const n=document.createElement("td");n.style.border="1px solid black",n.style.padding="5px",n.textContent=`Row ${t.rows.length+1}, Cell ${o+1}`,e.appendChild(n)}t.appendChild(e)}},{text:"Add Column",action:()=>{for(let e=0;e<t.rows.length;e++){const n=document.createElement("td");n.style.border="1px solid black",n.style.padding="5px",n.textContent=`Row ${e+1}, Cell ${t.rows[e].cells.length+1}`,t.rows[e].appendChild(n)}}}];i(r,d),document.addEventListener("click",(function e(t){"custom-context-menu"!==r.id&&(document.body.removeChild(a),document.body.removeChild(a)),r&&document.body.removeChild(r),document.removeEventListener("click",e)}))}(t,e,n)}))}))}function r(e,t,n,o){e.preventDefault();const l=t;function r(e){!function(e,t,n,o){const l=n.getBoundingClientRect();if("width"===t||"both"===t){const t=e.clientX-l.left;n.style.width=t+"px",o.style.width=t+"px"}if("height"===t||"both"===t){const t=e.clientY-l.top;o.style.height=t+"px"}}(e,l,n,o)}window.addEventListener("mousemove",r),window.addEventListener("mouseup",(function e(){window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",e)}))}function a(){const e=document.getElementsByClassName("widthResizer");Array.from(e).forEach(((e,t)=>{const n=document.getElementsByClassName("resizer-image-dropped")[t],o=document.getElementsByClassName("resizable-image")[t],l=document.getElementsByClassName("heightResizer")[t],a=document.getElementsByClassName("cornerResizer")[t];e&&e.addEventListener("mousedown",(e=>r(e,"width",n,o))),l&&l.addEventListener("mousedown",(e=>r(e,"height",n,o))),a&&a.addEventListener("mousedown",(e=>r(e,"both",n,o)))}))}function i(e){document.querySelectorAll(".Image_dropped_pom").forEach((t=>{t.contains(e.target)&&(console.log(t,"qweqwe"),t.style.display="none")}))}let d;function s(e,t){const[n,o]=t.textContent.split(" x ").map(Number);!function(e,t=2,n=2){const o=d.range;if(o){const r=d.selection,a=document.createElement("div");a.classList.add("pom-table-editor-container"),a.style.display="flex";const i=document.createElement("table");i.style.border="1px solid black",i.style.borderCollapse="collapse",i.classList.add("pom-table-editor");for(let e=0;e<t;e++){const t=document.createElement("tr");for(let o=0;o<n;o++){const n=document.createElement("td");n.style.border="1px solid black",n.style.padding="5px",n.textContent=`Row ${e+1}, Cell ${o+1}`;const l=document.createElement("div");l.style.width="5px",l.style.height="100%",l.style.position="absolute",l.style.right="0",l.style.top="0",l.style.cursor="col-resize",l.style.userSelect="none",l.classList.add("pom-table-col-resizer"),n.style.position="relative",n.appendChild(l),t.appendChild(n)}i.appendChild(t)}a.appendChild(i),o.deleteContents(),o.insertNode(a);const s=i.querySelector("td"),c=document.createRange();c.setStart(s,0),c.collapse(!0),r.addRange(c),d=c.cloneRange(),l(),e.focus()}}(e,o,n)}function c(e,t,n){const o=Array.from(n.children).indexOf(e.target),l=o%10+1,r=Math.floor(o/10)+1;Array.from(n.children).forEach(((e,t)=>{e.style.backgroundColor=t<=o?"#1f9296":"#737979"})),t.textContent=`${l} x ${r}`}function m(e,t="strong",n="*bold text here *",o=[]){if(e){const o=window.getSelection();o.removeAllRanges(),o.addRange(e);const l=o.getRangeAt(0),r=`${l.toString()}`.trim(),a=l.cloneContents(),i=l.commonAncestorContainer,d=`${(i.nodeType===Node.TEXT_NODE?i.parentNode:i).tagName}`.toLowerCase();let s,c=function(e){const t=document.createElement("div");t.appendChild(e);return t.innerHTML}(a);if(console.log(d,t,"compaire"),d==t){s=document.createElement("span"),s.innerHTML=c;const n=s.outerHTML.replace(new RegExp(`<${t}`,"gi"),"<span").replace(new RegExp(`</${t}>`,"gi"),"</span>");s.innerHTML=n,e.deleteContents(),e.insertNode(s);document.createRange().collapse(!0)}else{const o=document.createElement("span");o.innerHTML="&nbsp;&nbsp;&nbsp;",s=document.createElement(t),s.innerHTML=r.length>0?c:n,e.deleteContents(),e.insertNode(o),e.insertNode(s);const l=document.createRange();l.collapse(!0),l.setStartAfter(o)}o.removeAllRanges()}else console.log("No saved range available. Make sure the cursor position is saved before calling this function.")}const p={currentIndex:0,StoredText:null,storeRecovery:[],redoStack:[],SaveCurrentChanges:function(e=""){"string"==typeof e?this.storeRecovery.length&&this.storeRecovery[this.currentIndex-1]===e?console.log("No changes to save."):(this.storeRecovery=this.storeRecovery.slice(0,this.currentIndex),this.storeRecovery.push(e),this.currentIndex=this.storeRecovery.length,this.storeRecovery.length>5e4&&(this.storeRecovery=this.storeRecovery.slice(this.storeRecovery.length-5e4),this.currentIndex=this.storeRecovery.length)):console.error("SaveCurrentChanges expects a string value.")},Undo:function(){return 0===this.currentIndex?(console.log("Nothing to undo"),null):(this.redoStack.push(this.storeRecovery[this.currentIndex-1]),this.currentIndex--,this.storeRecovery[this.currentIndex]||null)},Redo:function(){if(0===this.redoStack.length)return console.log("Nothing to redo"),null;const e=this.redoStack.pop();return this.storeRecovery.push(e),this.currentIndex++,e}};function u(e,t,n,o,l="",r="span"){if(!e)return void console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");const a=window.getSelection();a.removeAllRanges(),a.addRange(e);const i=a.getRangeAt(0),d=i.cloneContents(),s=i.commonAncestorContainer,c=s.nodeType===Node.TEXT_NODE?s.parentNode:s,m=c.tagName.toLowerCase();let p;const u=["font-sze"];if(c&&m===r){const e=c.getAttribute("style")||null;if(e){const t=new RegExp(`${n}:\\s*${o};?`,"g"),l=t.test(e);let r;u.includes(n)||!l?c.style[n]=o:(r=e.replace(t,""),l&&c.setAttribute("style",r))}}else{const t=document.createElement(r);t.style[n]=o,t.appendChild(d),p=t.innerHTML,e.deleteContents(),t.innerHTML=p,e.insertNode(t);const l=document.createRange();l.collapse(!0),a.removeAllRanges(),a.addRange(l),e=l.cloneRange()}}function g(e,t,n,o,l){let r=document.createElement("span");r.contenteditable=!1,r.appendChild(t),Object.keys(n).forEach((e=>{r.style[e]=n[e]})),r.innerHTML=l.length>0?r.innerHTML:o,e.deleteContents(),e.insertNode(r)}const h=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},f=t=>(e.pushScopeId("data-v-4b7ed1ce"),t=t(),e.popScopeId(),t),v={class:"pom-main-element-container"},y={style:{width:"100%"},id:"fullTextEditor"},b={class:"hideonprint bg-gray-100 items-center",id:"toolbar"},x={class:"flex flex space-x-2 items-center"},E={class:"items-center border-1 b g-gray-200 rounded cursor-pointer"},w={class:"relative inline-block text-left group z-10 border-0"},N=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("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"},[e.createElementVNode("div",{class:"p y-1 w borde r-1 w-full text-start in flex flex-wrap"},[e.createElementVNode("span",{class:"cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600"},"View")])])],-1))),V={style:{"z-index":"12"},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"},k={class:"",role:"none"},C=["onClick"],L={class:"px-3"},F=f((()=>e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer",id:"fullscreenButton"},[e.createElementVNode("i",{class:"expand-alt p x-2"}),e.createElementVNode("strong",{class:"px-3"},"Fullscreen")],-1))),S={class:"items-center border-1 b g-gray-200 rounded cursor-pointer"},T={class:"relative inline-block text-left group z-10 border-0 w-ful l"},A=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("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"},[e.createElementVNode("div",{class:"p y-1 w borde r-1 w-full text-start in flex flex-wrap"},[e.createElementVNode("span",{class:"cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600"},"Format")])])],-1))),R={style:{"z-index":"12"},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"},z={class:"",role:"none"},M=[f((()=>e.createElementVNode("i",{class:"bold p x-2"},null,-1))),f((()=>e.createElementVNode("strong",{class:"px-3"},"Bold",-1)))],B=["onClick"],H=["onClick"],_={class:"px-3 solid heading px-6"},I=["onClick"],D={class:"px-3 solid heading px-6"},$={class:"flex items-center border-1 b g-gray-200 rounded cursor-pointer"},Z={class:"relative inline-block text-left group z-10 border-0 w-ful l"},j=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("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"},[e.createElementVNode("div",{class:"p y-1 w borde r-1 w-full text-start in flex flex-wrap"},[e.createElementVNode("span",{class:"cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600"},"Insert")])])],-1))),G={style:{"z-index":"12"},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"},O={class:"",role:"none"},q={class:"hover:bg-gray-200 elemeSet rounded cursor-pointer"},P=f((()=>e.createElementVNode("i",{class:"image p x-2"},null,-1))),X=f((()=>e.createElementVNode("label",{for:"pom43546535435445Image",class:"px-3"},"Image",-1))),W=[f((()=>e.createElementVNode("i",{class:"anchor p x-2"},null,-1))),f((()=>e.createElementVNode("span",{class:"px-3"},"Anchor",-1)))],K=[f((()=>e.createElementVNode("i",{class:"-calendar-alt 1x"},null,-1))),f((()=>e.createElementVNode("span",{class:"px-1"},"Date/time",-1)))],U=f((()=>e.createElementVNode("div",{class:"text-center w-full p y-1 bg-gray-100 font-bold"},"Table",-1))),Y=[f((()=>e.createElementVNode("i",{class:"trash-can p x-2"},null,-1))),f((()=>e.createElementVNode("span",{class:"px-3"},"Delete All",-1)))],J=[f((()=>e.createElementVNode("i",{class:"eye-slash p x-2"},null,-1))),f((()=>e.createElementVNode("span",{class:"px-3"},"Hide/Show All ",-1)))],Q={class:"table-picker-wrapper"},ee=f((()=>e.createElementVNode("div",{class:"table-picker-trigger"},[e.createElementVNode("i",{class:"table p x-2"}),e.createElementVNode("strong",{class:"px-3"},"Create")],-1))),te={class:"flex items-center border-1 b g-gray-200 rounded cursor-pointer"},ne={class:"relative inline-block text-left group z-10 border-0"},oe=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md showfontFamilyMenu"},[e.createElementVNode("button",{type:"button",class:"inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium","aria-expanded":"true","aria-haspopup":"true"},[e.createElementVNode("div",{class:"p y-1 w borde r-1 w-full text-start in flex flex-wrap"},[e.createElementVNode("span",{class:"cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600"},"Fonts")])])],-1))),le={class:"p y-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts"},re={class:"cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600 group relative"},ae={class:"hidden text-left absolute group-hover:block mt-0 gap-2 px-2 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",style:{height:"25vh",overflow:"auto"},"data-alloy-placement":"southeast"},ie={class:"collection__group"},de=["title"],se={class:"collection__item-label"},ce=["onClick"],me={style:{display:"flex","justify-content":"space-between","align-items":"center"}},pe=[f((()=>e.createElementVNode("span",null,[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"evenodd"})])],-1)))],ue=[f((()=>e.createElementVNode("span",null,[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"evenodd"})])],-1)))],ge=[f((()=>e.createElementVNode("span",{class:""},[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"evenodd"})])],-1)))],he=[f((()=>e.createElementVNode("span",{class:""},[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"evenodd"})])],-1)))],fe={class:"relative inline-block text-left group z-10 border-0 w-ful l"},ve=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("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"},[e.createElementVNode("div",{class:"split-button flex items-center",style:{"user-select":"none"}},[e.createElementVNode("span",null,[e.createElementVNode("span",{c:""},[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"evenodd"})])])]),e.createElementVNode("span",{role:"presentation",class:"tbtn split-button__chevron","aria-disabled":"false"},[e.createElementVNode("svg",{width:"10",height:"10",focusable:"false"},[e.createElementVNode("path",{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","fill-rule":"nonzero"})])])])])],-1))),ye={style:{"z-index":"12"},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"},be={class:"flex",style:{"z-index":"4100 !important"}},xe=[f((()=>e.createElementVNode("div",null,[e.createElementVNode("svg",{width:"48",height:"48",focusable:"false"},[e.createElementVNode("g",{"fill-rule":"evenodd"},[e.createElementVNode("circle",{cx:"11",cy:"14",r:"3"}),e.createElementVNode("circle",{cx:"11",cy:"24",r:"3"}),e.createElementVNode("circle",{cx:"11",cy:"34",r:"3"}),e.createElementVNode("path",{opacity:".2",d:"M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"})])])],-1)))],Ee=[f((()=>e.createElementVNode("div",null,[e.createElementVNode("svg",{width:"48",height:"48",focusable:"false"},[e.createElementVNode("g",{"fill-rule":"evenodd"},[e.createElementVNode("path",{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","fill-rule":"nonzero"}),e.createElementVNode("path",{opacity:".2",d:"M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"})])])],-1)))],we=[f((()=>e.createElementVNode("svg",{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",focusable:"false"},[e.createElementVNode("rect",{width:"48",height:"48",fill:"none"}),e.createElementVNode("text",{x:"12",y:"14","font-family":"Arial","font-size":"14",fill:"black"},"1"),e.createElementVNode("text",{x:"12",y:"24","font-family":"Arial","font-size":"14",fill:"black"},"2"),e.createElementVNode("text",{x:"12",y:"34","font-family":"Arial","font-size":"14",fill:"black"},"3"),e.createElementVNode("rect",{x:"24",y:"12",width:"20",height:"4",fill:"black",opacity:".2"}),e.createElementVNode("rect",{x:"24",y:"22",width:"20",height:"4",fill:"black",opacity:".2"}),e.createElementVNode("rect",{x:"24",y:"32",width:"20",height:"4",fill:"black",opacity:".2"})],-1)))],Ne=[f((()=>e.createElementVNode("div",{class:"text-sm"},[e.createElementVNode("svg",{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",focusable:"false"},[e.createElementVNode("text",{x:"12",y:"14","font-family":"Arial","font-size":"14",fill:"black"},"A"),e.createElementVNode("text",{x:"12",y:"24","font-family":"Arial","font-size":"14",fill:"black"},"B"),e.createElementVNode("text",{x:"12",y:"34","font-family":"Arial","font-size":"14",fill:"black"},"C"),e.createElementVNode("rect",{x:"18",y:"12",width:"22",height:"4",fill:"black",opacity:".2"}),e.createElementVNode("rect",{width:"48",height:"48",fill:"none"}),e.createElementVNode("rect",{x:"18",y:"22",width:"22",height:"4",fill:"black",opacity:".2"}),e.createElementVNode("rect",{x:"18",y:"32",width:"22",height:"4",fill:"black",opacity:".2"})])],-1)))],Ve={class:"flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",style:{}},ke=[e.createStaticVNode('<i class="bold p x-2" data-v-4b7ed1ce><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g id="text-bold" transform="translate(-4 -2)" data-v-4b7ed1ce><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-4b7ed1ce></path><path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-4b7ed1ce></path><path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-4b7ed1ce></path></g></g></svg></i>',1)],Ce=[e.createStaticVNode('<i class="italic p x-2" data-v-4b7ed1ce><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g id="layer1" data-v-4b7ed1ce><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-4b7ed1ce></path></g></g></svg></i>',1)],Le=[e.createStaticVNode('<i class="underline p x-2" data-v-4b7ed1ce><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><g data-v-4b7ed1ce><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-4b7ed1ce></path><path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-4b7ed1ce></path></g></g></svg></i>',1)],Fe={class:"strikethrough p x-2"},Se={fill:"#000000",width:"13px",height:"13px",viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve","xmlns:serif":"http://www.serif.com/",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"}},Te=[f((()=>e.createElementVNode("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"},null,-1))),f((()=>e.createElementVNode("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))),f((()=>e.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[e.createElementVNode("rect",{id:"Icons",x:"-192",y:"0",width:"1280",height:"800",style:{fill:"none"}}),e.createElementVNode("g",{id:"Icons1","serif:id":"Icons"},[e.createElementVNode("g",{id:"Strike"},[e.createElementVNode("rect",{id:"Strike-line","serif:id":"Strike line",x:"10.01",y:"30.17",width:"44.15",height:"2.988"}),e.createElementVNode("rect",{x:"10.01",y:"30.17",width:"44.15",height:"2.988"}),e.createElementVNode("path",{id:"Strike1","serif:id":"Strike",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",style:{"fill-rule":"nonzero"}})]),e.createElementVNode("g",{id:"H1"}),e.createElementVNode("g",{id:"H2"}),e.createElementVNode("g",{id:"H3"}),e.createElementVNode("g",{id:"list-ul"}),e.createElementVNode("g",{id:"hamburger-1"}),e.createElementVNode("g",{id:"hamburger-2"}),e.createElementVNode("g",{id:"list-ol"}),e.createElementVNode("g",{id:"list-task"}),e.createElementVNode("g",{id:"trash"}),e.createElementVNode("g",{id:"vertical-menu"}),e.createElementVNode("g",{id:"horizontal-menu"}),e.createElementVNode("g",{id:"sidebar-2"}),e.createElementVNode("g",{id:"Pen"}),e.createElementVNode("g",{id:"Pen1","serif:id":"Pen"}),e.createElementVNode("g",{id:"clock"}),e.createElementVNode("g",{id:"external-link"}),e.createElementVNode("g",{id:"hr"}),e.createElementVNode("g",{id:"info"}),e.createElementVNode("g",{id:"warning"}),e.createElementVNode("g",{id:"plus-circle"}),e.createElementVNode("g",{id:"minus-circle"}),e.createElementVNode("g",{id:"vue"}),e.createElementVNode("g",{id:"cog"}),e.createElementVNode("g",{id:"logo"}),e.createElementVNode("g",{id:"radio-check"}),e.createElementVNode("g",{id:"eye-slash"}),e.createElementVNode("g",{id:"eye"}),e.createElementVNode("g",{id:"toggle-off"}),e.createElementVNode("g",{id:"shredder"}),e.createElementVNode("g",{id:"spinner--loading--dots-","serif:id":"spinner [loading, dots]"}),e.createElementVNode("g",{id:"react"}),e.createElementVNode("g",{id:"check-selected"}),e.createElementVNode("g",{id:"turn-off"}),e.createElementVNode("g",{id:"code-block"}),e.createElementVNode("g",{id:"user"}),e.createElementVNode("g",{id:"coffee-bean"}),e.createElementVNode("g",{id:"coffee-beans"},[e.createElementVNode("g",{id:"coffee-bean1","serif:id":"coffee-bean"})]),e.createElementVNode("g",{id:"coffee-bean-filled"}),e.createElementVNode("g",{id:"coffee-beans-filled"},[e.createElementVNode("g",{id:"coffee-bean2","serif:id":"coffee-bean"})]),e.createElementVNode("g",{id:"clipboard"}),e.createElementVNode("g",{id:"clipboard-paste"}),e.createElementVNode("g",{id:"clipboard-copy"}),e.createElementVNode("g",{id:"Layer1"})])],-1)))],Ae=[f((()=>e.createElementVNode("i",{class:"superscript p x-2"},"sup",-1)))],Re=[f((()=>e.createElementVNode("i",{class:"subscript p x-2"},"sub",-1)))],ze=[e.createStaticVNode('<i class="-code p x-2" data-v-4b7ed1ce><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-4b7ed1ce></path><path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-4b7ed1ce></path><path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-4b7ed1ce></path></g></svg></i>',1)],Me={class:"items-center bg-gray-50 rounded cursor-pointer"},Be={class:"relative inline-block text-left group border-0"},He=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("i",{class:"solid brush display-color elemeSetDropDown",style:{margin:"6px 0px 0px 0px",border:"none"}},[e.createElementVNode("svg",{width:"24",height:"24",focusable:"false"},[e.createElementVNode("g",{"fill-rule":"evenodd"},[e.createElementVNode("path",{class:"icon-highlight-bg-color__color",d:"M3 18h18v3H3z",fill:"#F1C40F"}),e.createElementVNode("path",{"fill-rule":"nonzero",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"})])])])],-1))),_e={style:{"z-index":"12"},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"},Ie={class:"elemeSetDropDown",role:"none"},De={class:"color-grid p-1 m-1",style:{width:"15vw",height:"20vh",overflow:"auto"}},$e=["onClick"],Ze={class:"items-center bg-gray-50 rounded cursor-pointer"},je={class:"relative inline-block text-left group border-0"},Ge=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("span",null,[e.createElementVNode("div",{class:"p y-1 w w-full text-start in"},[e.createElementVNode("i",{class:"solid brush display-color",style:{margin:"6px 0px 0px 0px",border:"none"}},[e.createElementVNode("span",{class:"icon tbtn__icon-wrap"},[e.createElementVNode("svg",{width:"24",height:"20",focusable:"false"},[e.createElementVNode("g",{"fill-rule":"evenodd"},[e.createElementVNode("path",{class:"icon-text-color__color",d:"M3 18h18v3H3z",fill:"#F1C40F"}),e.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"})])])])])])])],-1))),Oe={style:{"z-index":"12"},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"},qe={class:"elemeSetDropDown",role:"none"},Pe={class:"color-grid p-1 m-1",style:{width:"15vw",height:"20vh",overflow:"auto"}},Xe=["onClick"],We=[e.createStaticVNode('<span class="" data-v-4b7ed1ce><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><path fill-rule="evenodd" clip-rule="evenodd" d="M7.53033 3.46967C7.82322 3.76256 7.82322 4.23744 7.53033 4.53033L5.81066 6.25H15C18.1756 6.25 20.75 8.82436 20.75 12C20.75 15.1756 18.1756 17.75 15 17.75H8.00001C7.58579 17.75 7.25001 17.4142 7.25001 17C7.25001 16.5858 7.58579 16.25 8.00001 16.25H15C17.3472 16.25 19.25 14.3472 19.25 12C19.25 9.65279 17.3472 7.75 15 7.75H5.81066L7.53033 9.46967C7.82322 9.76256 7.82322 10.2374 7.53033 10.5303C7.23744 10.8232 6.76256 10.8232 6.46967 10.5303L3.46967 7.53033C3.17678 7.23744 3.17678 6.76256 3.46967 6.46967L6.46967 3.46967C6.76256 3.17678 7.23744 3.17678 7.53033 3.46967Z" fill="#1C274C" data-v-4b7ed1ce></path></g></svg></span>',1)],Ke=[e.createStaticVNode('<span class="" data-v-4b7ed1ce><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><path d="M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></path></g></svg></span>',1)],Ue=[e.createStaticVNode('<span class="" data-v-4b7ed1ce><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-4b7ed1ce><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-4b7ed1ce></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-4b7ed1ce></g><g id="SVGRepo_iconCarrier" data-v-4b7ed1ce><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-4b7ed1ce></path></g></svg></span>',1)],Ye={class:"items-center bg-gray-50 rounded cursor-pointer"},Je={class:"relative inline-block text-left group border-0",style:{"z-index":"3 !important"}},Qe=f((()=>e.createElementVNode("div",{class:"w-full flex rounded-md"},[e.createElementVNode("span",null,[e.createElementVNode("div",{class:"p y-1 w w-full text-start in"},[e.createElementVNode("i",{class:"solid brush display-color",style:{border:"none"}},"Sizes ")])])],-1))),et={style:{width:"7vw",padding:"6px",height:"24vh",overflow:"auto"},class:"hidden elemeSetDropDown absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},tt=["onClick"],nt={key:0,class:"hideonprint flex items-center",style:{"text-align":"center","align-items":"stretch",gap:"10px"}},ot=[f((()=>e.createElementVNode("i",{class:"-"},null,-1))),f((()=>e.createElementVNode("strong",{class:"p x-2"},"NEW LINE",-1)))],lt=f((()=>e.createElementVNode("p",{style:{margin:"0 0 0 10px"}},[e.createTextVNode("Cursor position: "),e.createElementVNode("span",{id:"cursorPosition"},"0")],-1))),rt=f((()=>e.createElementVNode("p",null,[e.createTextVNode("Text at cursor: "),e.createElementVNode("span",{id:"textAtCursor"})],-1)));return h({__name:"Editor",props:{plugins:{default:{}},maxHeight:{default:"100vh"},Dvalue:{default:""},TextOnly:{default:!1},cssWanted2:{default:!1},Files:{size:null,limits:30}},emits:["change","update"],setup(t,{emit:r}){const h=t,f=[{label:"Print",icon:"print",print:!0},{label:"Preview",icon:"eye",print:!1}],at=[{tag:"i",label:"italic",icon:"italic",value:"**italic text **"},{tag:"u",label:"underline",icon:"underline",value:"**underLine text **"},{tag:"s",label:"strike",icon:"strikethrough",value:"**underLine text**"},{tag:"sup",label:"superscript",icon:"superscript",value:"**supperScript**"},{tag:"sub",label:"subscript",icon:"subscript",value:"**supperScript**"},{tag:"summary",label:"summary",icon:"-list",value:"**summary**"},{tag:"ol",label:"list order",icon:"list-ol",value:"1.\tordered list",bg:"#f3f4f6"},{tag:"ul",label:"list unorder",icon:"list-ul",value:"1.\tunordered list",bg:"#f3f4f6"}],it=[{label:"Andale Mono",family:"andale mono, monospace"},{label:"Arial",family:"arial, helvetica, sans-serif"},{label:"Arial Black",family:'"arial black", sans-serif'},{label:"Book Antiqua",family:"book antiqua, palatino, serif"},{label:"Comic Sans MS",family:'"comic sans ms", sans-serif'},{label:"Courier New",family:"courier new, courier, monospace"},{label:"Georgia",family:"georgia, palatino, serif"},{label:"Helvetica",family:"helvetica, arial, sans-serif"},{label:"Impact",family:"impact, sans-serif"},{label:"Symbol",family:"symbol"},{label:"Tahoma",family:"tahoma, arial, helvetica, sans-serif"},{label:"Terminal",family:"terminal, monaco, monospace"},{label:"Times New Roman",family:"times new roman, times, serif"},{label:"Trebuchet MS",family:"trebuchet ms, geneva, sans-serif"},{label:"Verdana",family:"verdana, geneva, sans-serif"},{label:"Webdings",family:"webdings"},{label:"Wingdings",family:"wingdings"}],dt=e.ref(null),st=e.ref(!1),ct=e.ref(null),mt=e.ref(null),pt=e.ref(null),ut=e.ref(null);let gt=null;const ht=e.ref(["FF5733","33FF57","3357FF","FFFF33","FF33FF","33FFFF","5733FF","57FF33","FF3333","33FF33","3333FF","FF33AA","33AAFF","AAFF33","FFAA33","AA33FF","33FFAA","AAFFAA","FFAAFF","FF6347","40E0D0","FFD700","8A2BE2","DC143C","00CED1","7FFF00","FF4500","FFFEF","2E8B57","DAA520","6A5ACD","FF1493","B8860B","4682B4","D2691E","ADFF2F","5F9EA0","FF69B4","7B68EE","00FF7F","20B2AA","FF5733","33FF57","3357FF","FFFF33","FF33FF","33FFFF","FFD700","8A2BE2","7FFFD4","FF4500","6A5ACD","00FF7F","FF6347","FF1493","00CED1","989393","000000"]),ft=r,vt=e.ref(null);function yt(...e){var t;At(),function(e,t,n,o,l="",r="span",a=!1){var i;if(!e)return void console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");const d={justify:"left",none:"left",end:"right",start:"left",center:"left"};if(a)return void(a.target.parentElement.style.float=`${d[o]}`);const s=window.getSelection();s.removeAllRanges(),s.addRange(e);const c=s.getRangeAt(0);let m=c.cloneContents();const p=c.commonAncestorContainer,u=p.nodeType===Node.TEXT_NODE?p.parentNode:p;let g;g=document.createElement(r);const h=`${u.tagName}`.toLowerCase(),f=u?null==(i=u.classList)?void 0:i.contains("resizer-image-dropped"):null;if("ul"==h||f||"img"==h)return u.style.float=`${d[o]}`,void(u.style.fontWeight="bold");u.id,e.deleteContents();const v=document.createElement("div");v.appendChild(m),g.appendChild(v);const y=g.style[n]||"",b=new RegExp(l,"ig"),x=o.replace(b,"")+l;y.includes(x)?g.style[n]=y.replace(x,""):g.style[n]=(y+x).trim(),g.style["margin-left"]="4px",g.style["margin-right"]="4px";const E=document.createElement("span"),w=document.createElement("span");E.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;",w.innerHTML="&nbsp;&nbsp;",e.insertNode(E),e.insertNode(g),e.insertNode(w);const N=document.createRange();N.collapse(!0),s.removeAllRanges(),s.addRange(N),e=N.cloneRange(),t.focus()}(null==(t=ct.value)?void 0:t.range,dt.value,...e,st.value),st.value=!1,wt()}function bt(...e){var t;u(null==(t=ct.value)?void 0:t.range,dt.value,...e),gt=null,wt()}function xt(e){const t=e.target.files;0!==t.length?Array.from(t).forEach((e=>{if(!e.type.startsWith("image/"))return void console.error("Selected file is not an image:",e.name);const t=new FileReader;t.onload=e=>{zt(e.target.result)},t.onerror=t=>{console.error("Error reading the file:",e.name,t)},t.readAsDataURL(e)})):console.log("No files selected")}function Et(...e){!function(e,t,n="span",o="datetime-local",l={},r=[]){const a=document.getElementById("Pom-openInputToFeed"+o);a&&a.remove();const i=document.createElement("div"),d=document.createElement("input");i.id="custom-context-menu",i.style.position="absolute",i.style.backgroundColor="white",i.style.border="1px solid #ccc",i.style.padding="10px",i.style.boxShadow="0 2px 10px rgba(0, 0, 0, 0.2)",i.style.zIndex="1000",i.style.left=`${null==t?void 0:t.pageX}px`,i.style.top=`${null==t?void 0:t.pageY}px`,d.id="Pom-openInputToFeed"+o,d.classList.add("Pom-openInputToFeed"),d.type=o,d.style.cssText=l,i.appendChild(d);const s=document.getElementById("toolbar");function c(e){i.contains(e.target)||(i.remove(),window.document.removeEventListener("click",c))}function p(e){e.preventDefault();const t=this.href;window.open(t,"_blank"),window.document.removeEventListener("click",p)}s&&s.appendChild(i),d.addEventListener("change",(function(){const t=`${this.value}`;if("datetime-local"==o)m(e,n,t.replace(/T/," "));else{let o=[];for(const e in r)if(r.hasOwnProperty(e))if("href"===e.toLowerCase())o.push({attr:e,value:t});else{const t=r[e];o.push({attr:e,value:t})}m(e,n,"**link Name** ",o)}i.remove(),window.document.removeEventListener("click",c);const l=document.getElementsByClassName("pom-editor-anchor-tag");for(let e=0;e<l.length;e++)l[e].addEventListener("click",p)}))}(ct.value.range,...e),gt=null}function wt(e){var t;let n;"true"==h.TextOnly?e&&(null==(t=e.target)?void 0:t.value)&&(n=`${e.target.value}`.replace(/<\/[a-z]*?>|<\S.*?>/gi,(e=>e.startsWith("</")?"":"\n"))):(n=function(e=document.getElementById("pom-texedito-container")){return e.innerHTML}(dt.value),1==h.cssWanted&&ft("cssWanted",'<style scoped>\n .resizer-image-dropped > div[contenteditable="false"] {\n display: none;\n}\n.resizer-image-dropped{\n border:none !important\n}\n \n.table-picker-wrapper {\n position: relative;\n display: inline-block;\n}\n\n.table-picker-trigger {\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.table-picker-container {\n position: absolute;\n top: 10%;\n right: 90;\n margin-top: 10px;\n padding: 10px;\n border: 0;\n background-color: rgb(244, 244, 244);\n cursor: pointer;\n user-select: none;\n width: max-content;\n display: none;\n left: 85% !important;\n top: -7px;\n /* Hidden by default */\n}\n\n.table-picker-container.hidden {\n /* display: none; */\n}\n\n.table-picker-wrapper:hover .table-picker-container {\n display: block;\n /* Show on hover */\n}\n\n.table-picker-grid {\n display: grid;\n grid-template-columns: repeat(10, 20px);\n grid-template-rows: repeat(10, 20px);\n gap: 2px;\n margin-bottom: 10px;\n}\n\n.table-picker-grid div {\n width: 20px;\n height: 20px;\n border: 1px solid #ddd;\n background-color: #efa153ce;\n}\n\n.table-picker-grid div:hover {\n background-color: rgb(248, 246, 246);\n border: 0;\n}\n\n.table-dimensions {\n font-size: 12px;\n color: #333;\n}\n\n.pomXEditor {\n border: 1px;\n border-style: solid;\n border-color: #6972734e;\n}\n\n#editor:focus {\n outline: none;\n border: none;\n /* Removes any custom borders if applied */\n}\n\n.pom-table-editor-container {\n display: flex;\n}\n\na {\n color: blue;\n /* Default color of the link text */\n text-decoration: underline;\n /* Underline the link text by default */\n cursor: pointer;\n /* Cursor changes to a pointer on hover */\n}\n\n/* Additional pseudo-classes for different link states */\na:link {\n color: blue;\n /* Color of unvisited link */\n}\n\na:visited {\n color: purple;\n /* Color of visited link */\n}\n\na:hover {\n color: red;\n /* Color when the link is hovered over */\n text-decoration: none;\n /* Typically remove underline on hover */\n}\n\na:active {\n color: orange;\n /* Color when the link is clicked */\n}\n\n@media print {\n .print-container {\n /* width: 100%;\nheight: auto;\noverflow: hidden;\npage-break-inside: avoid;\nmargin: 0;\npadding: 0;\nbox-sizing: border-box; */\n }\n\n /* Optional: Set the font size for better print readability */\n /* body {\nfont-size: 12pt;\n} */\n /* Optional: Ensure images or other elements fit within the print area */\n /* img {\nmax-width: 100%;\nheight: auto;\n} */\n .hideonprint {\n display: none !important;\n }\n\n * {\n overflow: hidden;\n /* Hide scrollbar */\n }\n}\n</style>')),n&&setTimeout((()=>{n=n.replace(/<(\w+)[^>]*>\s*<\/\1>/g,""),setTimeout((()=>{}),3e3),ft("change",n)}),300)}async function Nt(t){dt.value.focus(),e.nextTick((()=>{dt.value.innerHTML=h.Dvalue||null,wt(),l(),a(),kt(),function(e,t){document.getElementById("editor").addEventListener("keydown",(function(n){var o;const l=null==(o=e.value)?void 0:o.range;if("Enter"===n.code){const e=l.commonAncestorContainer,t=e.nodeType===Node.TEXT_NODE?e.parentNode:e;if(t.style.float){const e=document.createElement("div");e.innerHTML=t.innerHTML,t.innerHTML=null,document.createElement("span").innerHTML="",t.appendChild(e)}}else if("Tab"===n.code){n.preventDefault();const e=document.createElement("span");e.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;",l.insertNode(e),l.setStartAfter(e),l.collapse(!0);const t=window.getSelection();t.removeAllRanges(),t.addRange(l)}else n.ctrlKey&&"z"===n.key?(n.preventDefault(),t.innerHTML=p.Undo()):n.ctrlKey&&"y"===n.key&&(n.preventDefault(),t.innerHTML=p.Redo())}))}(ct,dt.value)}))}function Vt(e){e.addEventListener("click",(function(t){st.value=t;const n=document.createElement("div");n.style.display="flex",n.style.justifyContent="flex-end",n.style.flexWrap="wrap",n.style.flexDirection="column-reverse",n.style.position="absolute",n.style.top="0px",n.style.right="19px",n.style.zIndex="100",n.style.background="white",n.classList.add("Image_dropped_pom"),n.classList.add("hideOnprint");const o=document.createElement("button");o.style.position="absolute",o.textContent=" X",o.style.margin="5px",o.classList.add("imageClosingBtn");const l=document.createElement("button");l.textContent=" Left",l.style.margin="5px";const r=document.createElement("button");r.textContent=" Right",r.style.margin="5px";const i=document.createElement("button");i.textContent="Center ",i.style.margin="5px";const d=document.createElement("button");d.textContent="Wrap",d.style.margin="5px";const s=document.createElement("button");s.textContent="Erase",s.style.margin="5px";const c=document.createElement("button");c.textContent="Glue",c.style.margin="5px";const m=document.createElement("button");m.textContent="UnGlue",m.style.margin="5px",n.appendChild(s),n.appendChild(d),e.classList.contains("stickImage")?n.appendChild(m):(n.appendChild(i),n.appendChild(r),n.appendChild(c),n.appendChild(l)),n.appendChild(o),e.appendChild(n),c.addEventListener("click",(()=>{e.classList.add("stickImage"),Array.from(e.children).forEach((e=>{"img"!==e.tagName.toLowerCase()&&(e.style.display="none")})),Mt()})),m.addEventListener("click",(()=>{e.classList.remove("stickImage"),Array.from(e.children).forEach((e=>{"img"!==e.tagName.toLowerCase()&&(e.style.display="block")})),Mt()})),s.addEventListener("click",(()=>{e.remove(),Mt()})),d.addEventListener("click",(t=>{const n=e.parentElement;e.parentElement.innerHTML;const o=n.tagName.toLowerCase(),l=document.createElement("div");if("div"==o&&"editor"!=n.id){const e=n;Array.from(e.attributes).forEach((e=>{l.setAttribute(e.name,e.value)})),l.innerHTML=e.innerHTML,e.innerHTML="",e.append(l)}else{const e=n;l.innerHTML=e.innerHTML,e.innerHTML="",e.append(l)}Mt(),a(),kt()})),l.addEventListener("click",(()=>{e.style.float="left",Mt()})),r.addEventListener("click",(()=>{e.style.float="right",Mt()})),i.addEventListener("click",(()=>{e.style.display="block",e.style.margin="0 auto",Mt()})),o.addEventListener("click",(()=>{e.style.display="block",e.style.margin="0 auto",Mt()})),document.addEventListener("click",(function t(n){e.contains(n.target)||(Mt(),document.removeEventListener("click",t))}),{once:!0})}))}function kt(e){const t=document.getElementsByClassName("resizer-image-dropped");Array.from(t).forEach((e=>{Vt(e)})),st.value=!1,document.addEventListener("click",i)}function Ct(e){e.target.firstElementChild}function Lt(){!function(e){const t=document.createElement("div");t.textContent="NeW line ",e.appendChild(t),t.focus()}(dt.value)}function Ft(...e){!function(e,t="h6",n="*Header text*"){if(e){const o=window.getSelection();o.removeAllRanges(),o.addRange(e);const l=o.getRangeAt(0),r=`${l.toString()}`.trim(),a=l.cloneContents(),i=l.commonAncestorContainer,d=i.nodeType===Node.TEXT_NODE?i.parentNode:i,s=`${d.tagName}`.toLowerCase(),c={h1:{"font-family":"'Arial', sans-serif","font-size":"3rem","font-weight":"bold",color:"#333","letter-spacing":"2px"},h2:{"font-family":"'Georgia', serif","font-size":"2rem",color:"#444","font-weight":600,"line-height":"1.4"},h3:{"font-family":"'Roboto', sans-serif","font-size":"1.75rem",color:"#34495e","font-weight":500,"text-align":"center","line-height":"1.4"},h4:{"font-family":"'Roboto', sans-serif","font-size":"1.25rem",color:"#34495e","font-weight":400,"text-align":"center","line-height":"1.4"},h5:{"font-family":"'Roboto', sans-serif","font-size":"1rem",color:"#34495e","font-weight":400,"text-align":"center","line-height":"1.4"},h6:{"font-family":"'Roboto', sans-serif","font-size":".5rem",color:"#34495e","font-weight":200,"text-align":"center","line-height":"1.4"}}[t];d&&"span"===s&&d.getAttribute("style")?d.removeAttribute("style"):g(e,a,c,n,r),o.removeAllRanges()}else console.log("No saved range available. Make sure the cursor position is saved before calling this function.")}(ct.value.range,...e),wt()}function St(...e){m(ct.value.range,...e),wt()}function Tt(...e){!function(e,t=2,n="list-style"){if(e){const o=window.getSelection();o.removeAllRanges(),o.addRange(e);const l=document.createElement("ul");l.style.listStyle=n,l.style.paddingLeft="73px";for(let e=0;e<t;e++){const t=document.createElement("li");t.style.padding="5px",t.textContent=`li ${e+1}, `,t.style.position="relative",l.appendChild(t)}e.deleteContents(),e.insertNode(l);const r=l.querySelector("td"),a=document.createRange();a.setStart(r,0),a.collapse(!0),o.removeAllRanges(),o.addRange(a),e=a.cloneRange(),editor.focus()}}(ct.value.range,...e),wt()}function At(){ct.value=function(){const e=window.getSelection();if(e.rangeCount>0)return{range:e.getRangeAt(0).cloneRange(),selection:e}}(),function(){const e=window.getSelection();if(e.rangeCount>0){const t=e.getRangeAt(0),n=t.startOffset;if(document.getElementById("cursorPosition")){document.getElementById("cursorPosition").textContent=n;const e=t.startContainer;if(e.nodeType===Node.TEXT_NODE){const t=e.textContent.substring(n,n+1);document.getElementById("textAtCursor").textContent=t}else document.getElementById("textAtCursor").textContent="No text here"}}}(),function(e,t,n,o){for(d=e;n.firstChild;){const e=n.firstChild;e.removeEventListener("mouseover",c),e.removeEventListener("click",s),n.removeChild(e)}for(let l=0;l<100;l++){const e=document.createElement("div");e.addEventListener("mouseover",(e=>c(e,o,n))),e.addEventListener("click",(()=>s(t,o))),n.appendChild(e)}}(ct.value,dt.value,pt.value,ut.value),gt=null,wt()}function Rt(e){var t,n,o,l,r;e.preventDefault();const a=e.dataTransfer.files;if(parseFloat(null==(t=h.Files)?void 0:t.limits)==parseFloat(null==(n=h.Files)?void 0:n.limits))return void alert(`You can not upload more than ${h.Files.limits} images`);const i=function(e){const t=(e.size/1024).toFixed(2);return{fileSizeInMB:(t/1024).toFixed(2),fileSizeInKB:t}}(a[0]);if((null==(o=h.Files)?void 0:o.size)>0&&i.fileSizeInMB>parseFloat(null==(l=h.Files)?void 0:l.size))alert(`File size should be less than ${null==(r=h.Files)?void 0:r.size} MB`);else{if(console.log(`Image Droped ${i.fileSizeInMB} MB / ${i.fileSizeInKB} KB`),a.length>0){const e=a[0],t=new FileReader;t.onload=e=>{zt(e.target.result)},t.readAsDataURL(e)}wt()}}function zt(e){Mt();const t=ct.value.range;if(t){const n=document.createElement("img");n.src=e,n.style.maxWidth="100%",n.style.position="relative",n.classList.add("resizable-image");const o=document.createElement("span");o.style.display="inline-block",o.style.width="200px",o.style.position="relative",o.contentEditable=!1,o.classList.add("resizer-image-dropped"),o.id=Date.now(),Vt(o);const l=document.createElement("div");l.style.width="10px",l.style.height="100%",l.style.background="gray",l.style.position="absolute",l.style.right="0",l.style.top="0",l.style.cursor="ew-resize",l.style.zIndex="2",l.classList.add("hideOnprint"),l.classList.add("widthResizer"),l.setAttribute("contentEditable",!1);const r=document.createElement("div");r.style.width="100%",r.style.height="10px",r.style.background="gray",r.style.position="absolute",r.style.bottom="0",r.style.left="0",r.style.cursor="ns-resize",r.style.zIndex="2",r.classList.add("hideOnprint"),r.classList.add("heightResizer"),r.setAttribute("contentEditable",!1);const i=document.createElement("div");i.style.width="20px",i.style.height="20px",i.style.background="gray",i.style.position="absolute",i.style.right="0",i.style.bottom="0",i.style.cursor="nwse-resize",i.style.zIndex="10",i.setAttribute("contentEditable",!1),i.classList.add("cornerResizer"),o.appendChild(n),o.appendChild(l),o.appendChild(r),o.appendChild(i),o.addEventListener("click",(e=>{gt&&(gt.style.border=""),gt=o})),t.insertNode(o);const d=t.commonAncestorContainer;if("editor"==(d.nodeType===Node.TEXT_NODE?d.parentNode:d).id){const e=dt.value.innerHTML;dt.value.innerHTML=null;const n=document.createElement("div");n.innerHTML=e,t.deleteContents(),t.insertNode(n);const o=document.createRange();window.getSelection().removeAllRanges(),o.collapse(!0)}kt(),a(),wt()}}function Mt(e="Image_dropped_pom"){const t=document.getElementsByClassName(e);Array.from(t).forEach((e=>{e.remove()})),wt()}function Bt(e){const t=p[e]();dt.value.innerHTML=t}return e.onMounted((()=>{Nt()})),(l,r)=>(e.openBlock(),e.createElementBlock("span",v,[e.createElementVNode("div",y,[e.createElementVNode("div",b,[e.createElementVNode("div",x,[e.createElementVNode("div",E,[e.createElementVNode("div",w,[N,e.createElementVNode("div",V,[e.createElementVNode("div",k,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,((t,n)=>e.createElementVNode("div",{key:n,class:"hover:bg-gray-200 elemeSet rounded cursor-pointer",onClick:e=>function(...e){try{var t=document.querySelectorAll(".removeinlineblock");let n;n=h.TextOnly?dt.value.value:vt.value.innerHTML,t.forEach((function(e){e.style.display="block"})),o(...e,n)}catch(n){}}(t.print)},[e.createElementVNode("i",{class:e.normalizeClass(`${t.icon} p x-2`)},null,2),e.createElementVNode("strong",L,e.toDisplayString(t.label),1)],8,C))),64)),F])])])]),e.createElementVNode("div",S,[e.createElementVNode("div",T,[A,e.createElementVNode("div",R,[e.createElementVNode("div",z,[e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer text-md",onClick:r[0]||(r[0]=e=>St())},M),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(at,((t,n)=>e.createElementVNode("div",{key:n,onClick:e=>St(t.tag,t.value),style:e.normalizeStyle(t.bg?{backgroundColor:t.bg,cursor:"pointer"}:{}),class:"hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"},[e.createElementVNode("i",{class:e.normalizeClass(`${t.icon} p x-2`)},null,2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(["summary","sub","sup","u","i","s"].includes(t.tag)?t.tag:"strong"),{class:"px-3",style:{"padding-left":"0.75rem"}},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.label),1)])),_:2},1024))],12,B))),64)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(6,(t=>e.createElementVNode("div",{key:t,onClick:e=>Ft("h"+t,"**h"+t+"**"),class:"hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"},[e.createElementVNode("span",_,e.toDisplayString(`H${t}`),1)],8,H))),64)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["capitalize","lowercase","uppercase"],(t=>e.createElementVNode("div",{key:t,onClick:e=>bt("text-transform",t),class:"hover:bg-gray-200 elemeSet rounded cursor-pointer text-md"},[e.createElementVNode("span",D,e.toDisplayString(t),1)],8,I))),64))])])])]),e.createElementVNode("div",$,[e.createElementVNode("div",Z,[j,e.createElementVNode("div",G,[e.createElementVNode("div",O,[e.createElementVNode("div",q,[P,X,e.createElementVNode("input",{type:"file",hidden:"",id:"pom43546535435445Image",accept:"image/*",multiple:"",onChange:xt},null,32)]),e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer",onClick:r[1]||(r[1]=e=>{Et(this,"a","links",{},{href:"",class:"pom-editor-anchor-tag",style:"text-decoration: underline;cursor: pointer"})})},W),e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer p-2",onClick:r[2]||(r[2]=e=>Et(this))},K),e.createElementVNode("div",null,[U,e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer",onClick:r[3]||(r[3]=t=>e.unref(n)())},Y),e.createElementVNode("div",{class:"hover:bg-gray-200 elemeSet rounded cursor-pointer",onClick:r[4]||(r[4]=t=>e.unref(n)(!0))},J),e.createElementVNode("div",Q,[ee,e.createElementVNode("div",{id:"table-picker-container",ref_key:"tablePickerContainer",ref:mt,class:"table-picker-container"},[e.createElementVNode("div",{id:"table-picker-grid",ref_key:"tablePickerGrid",ref:pt,class:"table-picker-grid"},null,512),e.createElementVNode("span",{id:"table-dimensions",ref_key:"tableDimensions",ref:ut,class:"table-dimensions"},"0 x 0",512)],512)])])])])])]),e.createElementVNode("div",te,[e.createElementVNode("div",ne,[oe,e.createElementVNode("div",le,[e.createElementVNode("span",re,[e.createElementVNode("div",ae,[e.createElementVNode("div",ie,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(it,((t,n)=>e.createElementVNode("div",{key:n,class:"menu-nav__js collection__item",title:t.label,role:"menuitemcheckbox",tabindex:"-1","aria-disabled":"false","aria-checked":"false"},[e.createElementVNode("div",se,[e.createElementVNode("div",{style:e.normalizeStyle({fontFamily:t.family}),onClick:e=>function(...e){var t;u(null==(t=ct.value)?void 0:t.range,dt.value,...e),gt=null,wt()}("font-family",t.family)},e.toDisplayString(t.label),13,ce)])],8,de))),64))])])])])])]),e.createElementVNode("div",me,[e.createElementVNode("button",{style:{border:"0",flex:"1",margin:"0 4px",width:"auto"},onClick:r[5]||(r[5]=e=>yt("float","left","","div"))},pe),e.createElementVNode("button",{style:{border:"0",flex:"1",margin:"0 4px",width:"auto"},onClick:r[6]||(r[6]=e=>yt("text-align","center","","div"))},ue),e.createElementVNode("button",{style:{border:"0",flex:"1",margin:"0 4px",width:"auto"},onClick:r[7]||(r[7]=e=>yt("float","right","","div"))},ge),e.createElementVNode("button",{style:{border:"0",flex:"1",margin:"0 4px",width:"auto"},onClick:r[8]||(r[8]=e=>yt("text-align","start","","div"))},he)]),e.createElementVNode("div",fe,[ve,e.createElementVNode("div",ye,[e.createElementVNode("div",be,[e.createElementVNode("div",{onClick:r[9]||(r[9]=e=>Tt(3,"disc"))},xe),e.createElementVNode("div",{onClick:r[10]||(r[10]=e=>Tt(3,"circle"))},Ee),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"",onClick:r[11]||(r[11]=e=>Tt())},we)]),e.createElementVNode("div",{onClick:r[12]||(r[12]=e=>Tt(3,"upper-latin"))},Ne)])])])]),e.createElementVNode("div",Ve,[e.renderSlot(l.$slots,"toolbar-before",{},void 0,!0),e.createElementVNode("div",{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",style:{margin:"1px"},onClick:r[13]||(r[13]=e=>St())},ke),e.createElementVNode("div",{onClick:r[14]||(r[14]=e=>St("i","**italic text **")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},Ce),e.createElementVNode("div",{onClick:r[15]||(r[15]=e=>St("u","**underLine text**")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},Le),e.createElementVNode("div",{onClick:r[16]||(r[16]=e=>St("s","**Strike text**")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},[e.createElementVNode("i",Fe,[(e.openBlock(),e.createElementBlock("svg",Se,Te))])]),e.createElementVNode("div",{onClick:r[17]||(r[17]=e=>St("sup","**supperScript**")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},Ae),e.createElementVNode("div",{onClick:r[18]||(r[18]=e=>St("sub","**supperScript**")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},Re),e.createElementVNode("div",{onClick:r[19]||(r[19]=e=>St("Code","**code**")),class:"hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",style:{margin:"6px"}},ze),e.createElementVNode("div",Me,[e.createElementVNode("div",Be,[He,e.createElementVNode("div",_e,[e.createElementVNode("div",Ie,[e.createElementVNode("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ht.value,(t=>(e.openBlock(),e.createElementBlock("div",{class:"color-box",style:e.normalizeStyle(`background-color: #${t} ;`),onClick:e=>bt("background",`#${t}`,"","span")},null,12,$e)))),256))])])])])]),e.createElementVNode("div",Ze,[e.createElementVNode("div",je,[Ge,e.createElementVNode("div",Oe,[e.createElementVNode("div",qe,[e.createElementVNode("div",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ht.value,(t=>(e.openBlock(),e.createElementBlock("div",{class:"color-box",style:e.normalizeStyle(`background-color: #${t} ;`),onClick:e=>bt("color",`#${t}`,"","span")},null,12,Xe)))),256))])])])])]),e.createElementVNode("div",{title:"Redo",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",st:"",yle:"border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",onClick:r[20]||(r[20]=()=>Bt("Undo"))},We),e.createElementVNode("div",{title:"Redo",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",st:"",yle:"border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",onClick:r[21]||(r[21]=()=>Bt("Redo"))},Ke),e.createElementVNode("div",{title:"new fresh line",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",st:"",yle:"border:0;flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",onClick:r[22]||(r[22]=e=>Lt())},Ue),e.createElementVNode("div",Ye,[e.createElementVNode("div",Je,[Qe,e.createElementVNode("div",et,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(50,(t=>e.createElementVNode("div",{class:"pom-editor-menu-fonts",onClick:e=>bt("font-size",t+"pt"),key:t},e.toDisplayString(t)+" pt",9,tt))),64))])])]),e.renderSlot(l.$slots,"toolbar-after",{},void 0,!0)])])]),e.createElementVNode("div",{class:"",ref_key:"pomTextEditorContainer",ref:vt,id:"pom-texedito-container",style:{width:"100%",overflow:"hidden auto",border:"1px solid #9d969633",padding:"0px","border-radius":"3px"}},[e.createElementVNode("div",{width:"128",height:"128",style:e.normalizeStyle(`max-height:${h.maxHeight} ;min-height:15vh ;text-align: justify;`)},[t.TextOnly?(e.openBlock(),e.createElementBlock("textarea",{key:0,onMouseup:r[23]||(r[23]=e=>At()),onKeyup:r[24]||(r[24]=e=>{Ct(e),At()}),onInput:wt,ref_key:"editorRef",ref:dt,class:"editor pom-editing-area mt-1 border-gray-300",id:"editor",style:{height:"100%",width:"100%",border:"none",resize:"none"}},e.toDisplayString(t.Dvalue),545)):(e.openBlock(),e.createElementBlock("div",{key:1,onKeydown:r[25]||(r[25]=e.withKeys(e.withModifiers((e=>Lt()),["ctrl"]),["enter"])),"data-placeholder":"Your Editing.....",onDrop:Rt,onMouseup:r[26]||(r[26]=e=>At()),onKeyup:r[27]||(r[27]=e=>{Ct(e),At()}),ref_key:"editorRef",ref:dt,class:"editor pom-editing-area mt-1 border-gray-300",onInput:wt,contenteditable:"true",id:"editor",style:{height:"100%",width:"100%",border:"none"}},null,544))],4)],512),"true"!=t.TextOnly?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",{class:"hover:bg-gray-200",onClick:r[28]||(r[28]=e=>Lt())},ot),lt,rt])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-4b7ed1ce"]])}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pom-text-editor",
3
3
  "private": false,
4
- "version": "0.2.29",
4
+ "version": "1.0.1",
5
5
  "license": "MIT",
6
6
  "description": "Vue 3 Pom Text Editor: A customizable, free text editor designed for modern web applications, crafted with Vue 3. Although still under development, pom-text-editor aims to deliver a seamless and powerful rich text editing experience with features like dynamic styling, advanced formatting, and support for interactive content. Built with flexibility in mind, it offers modular architecture for easy customization and integration, making it suitable for content-driven platforms, collaborative projects, and more. With plans for extensive plugin support and a focus on performance, pom-text-editor is poised to become an essential tool for web developers. ",
7
7
  "bugs": {
@@ -65,5 +65,6 @@
65
65
  "@vitejs/plugin-vue": "^5.1.2",
66
66
  "terser": "^5.36.0",
67
67
  "vite": "^5.4.1"
68
- }
68
+ },
69
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
69
70
  }