Append Editor
\ No newline at end of file
+Append Editor
\ No newline at end of file
diff --git a/build/package.json b/build/package.json
index 49d2df0b..0876a6a1 100644
--- a/build/package.json
+++ b/build/package.json
@@ -1,6 +1,6 @@
{
"name": "append-editor",
- "version": "1.2.6-alpha.1",
+ "version": "1.2.6",
"description": "Append to your notes",
"keywords": [
"Append Editor",
diff --git a/build/sample.ext.json b/build/sample.ext.json
index ec6f7bf0..dfa8d9f8 100644
--- a/build/sample.ext.json
+++ b/build/sample.ext.json
@@ -3,7 +3,7 @@
"name": "Append Editor - Develop Local",
"content_type": "SN|Component",
"area": "editor-editor",
- "version": "1.2.6-alpha.1",
+ "version": "1.2.6",
"description": "Append to your notes",
"url": "http://localhost:3000/index.html",
"download_url": "",
diff --git a/build/static/js/main.97ac2bb5.chunk.js b/build/static/js/main.97ac2bb5.chunk.js
deleted file mode 100644
index 9a17d08a..00000000
--- a/build/static/js/main.97ac2bb5.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(this["webpackJsonpappend-editor"]=this["webpackJsonpappend-editor"]||[]).push([[2],{1187:function(e,t,o){},1188:function(e,t,o){"use strict";o.r(t);var n=o(7),i=o(26),s=o.n(i),a=o(159),r=o.n(a);o(464),Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var d=function(e){e&&e instanceof Function&&o.e(75).then(o.bind(null,1194)).then((function(t){var o=t.getCLS,n=t.getFID,i=t.getFCP,s=t.getLCP,a=t.getTTFB;o(e),n(e),i(e),s(e),a(e)}))},c=o(186),l=o(0),p=o(1),h=o(4),u=o(5),j=o(317),g="var(--sn-stylekit-info-color)",b="var(--sn-stylekit-foreground-color)",f=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("span",{className:"chevron-icon down",children:Object(n.jsx)("svg",{"aria-label":"chevron icon down",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M6.17622 7.15015L10.0012 10.9751L13.8262 7.15015L15.0012 8.33348L10.0012 13.3335L5.00122 8.33348L6.17622 7.15015Z",fill:t||b})})})},x=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("span",{className:"chevron-icon right",children:Object(n.jsx)("svg",{"aria-label":"chevron icon down",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M6.90918 14.0667L10.7342 10.2417L6.90918 6.4167L8.09251 5.2417L13.0925 10.2417L8.09251 15.2417L6.90918 14.0667Z",fill:t||b})})})},m=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("svg",{"aria-label":"close icon",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M15.2459 5.92917C15.5704 5.6047 15.5704 5.07864 15.2459 4.75417C14.9214 4.4297 14.3954 4.4297 14.0709 4.75417L10.0001 8.82501L5.92925 4.75417C5.60478 4.4297 5.07872 4.4297 4.75425 4.75417C4.42978 5.07864 4.42978 5.6047 4.75425 5.92917L8.82508 10L4.75425 14.0708C4.42978 14.3953 4.42978 14.9214 4.75425 15.2458C5.07872 15.5703 5.60478 15.5703 5.92925 15.2458L10.0001 11.175L14.0709 15.2458C14.3954 15.5703 14.9214 15.5703 15.2459 15.2458C15.5704 14.9214 15.5704 14.3953 15.2459 14.0708L11.1751 10L15.2459 5.92917Z",fill:t||b})})},v=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("svg",{"aria-label":"copy icon",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M1.66724 3.66626C1.66724 2.56169 2.56267 1.66626 3.66724 1.66626H11.3339C12.4385 1.66626 13.3339 2.56169 13.3339 3.66626V13.3329H3.66724C2.56267 13.3329 1.66724 12.4375 1.66724 11.3329V3.66626ZM16.3339 6.66626C17.4385 6.66626 18.3339 7.56169 18.3339 8.66626V16.3329C18.3339 17.4375 17.4385 18.3329 16.3339 18.3329H8.66724C7.56267 18.3329 6.66724 17.4375 6.66724 16.3329V14.9996H15.0006V6.66626H16.3339ZM3.3339 3.33293V11.6663H11.6672V3.33293H3.3339Z",fill:t||b})})},O=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{"aria-label":"eye icon",role:i,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M9.99992 7.5C9.33688 7.5 8.70099 7.76339 8.23215 8.23223C7.76331 8.70107 7.49992 9.33696 7.49992 10C7.49992 10.663 7.76331 11.2989 8.23215 11.7678C8.70099 12.2366 9.33688 12.5 9.99992 12.5C10.663 12.5 11.2988 12.2366 11.7677 11.7678C12.2365 11.2989 12.4999 10.663 12.4999 10C12.4999 9.33696 12.2365 8.70107 11.7677 8.23223C11.2988 7.76339 10.663 7.5 9.99992 7.5ZM9.99992 14.1667C8.89485 14.1667 7.83504 13.7277 7.05364 12.9463C6.27224 12.1649 5.83325 11.1051 5.83325 10C5.83325 8.89493 6.27224 7.83512 7.05364 7.05372C7.83504 6.27232 8.89485 5.83333 9.99992 5.83333C11.105 5.83333 12.1648 6.27232 12.9462 7.05372C13.7276 7.83512 14.1666 8.89493 14.1666 10C14.1666 11.1051 13.7276 12.1649 12.9462 12.9463C12.1648 13.7277 11.105 14.1667 9.99992 14.1667ZM9.99992 3.75C5.83325 3.75 2.27492 6.34167 0.833252 10C2.27492 13.6583 5.83325 16.25 9.99992 16.25C14.1666 16.25 17.7249 13.6583 19.1666 10C17.7249 6.34167 14.1666 3.75 9.99992 3.75Z",fill:o||(t?g:b)})})},w=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{"aria-label":"gear icon",role:i,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M10.0001 6.66675C10.8842 6.66675 11.732 7.01794 12.3571 7.64306C12.9823 8.26818 13.3334 9.11603 13.3334 10.0001C13.3334 10.8841 12.9823 11.732 12.3571 12.3571C11.732 12.9822 10.8842 13.3334 10.0001 13.3334C9.11606 13.3334 8.26821 12.9822 7.64309 12.3571C7.01797 11.732 6.66678 10.8841 6.66678 10.0001C6.66678 9.11603 7.01797 8.26818 7.64309 7.64306C8.26821 7.01794 9.11606 6.66675 10.0001 6.66675ZM10.0001 8.33342C9.55808 8.33342 9.13416 8.50901 8.8216 8.82157C8.50904 9.13413 8.33344 9.55805 8.33344 10.0001C8.33344 10.4421 8.50904 10.866 8.8216 11.1786C9.13416 11.4912 9.55808 11.6667 10.0001 11.6667C10.4421 11.6667 10.8661 11.4912 11.1786 11.1786C11.4912 10.866 11.6668 10.4421 11.6668 10.0001C11.6668 9.55805 11.4912 9.13413 11.1786 8.82157C10.8661 8.50901 10.4421 8.33342 10.0001 8.33342ZM8.33344 18.3334C8.12511 18.3334 7.95011 18.1834 7.91678 17.9834L7.60844 15.7751C7.08344 15.5667 6.63344 15.2834 6.20011 14.9501L4.12511 15.7917C3.94178 15.8584 3.71678 15.7917 3.61678 15.6084L1.95011 12.7251C1.84178 12.5417 1.89178 12.3167 2.05011 12.1917L3.80844 10.8084L3.75011 10.0001L3.80844 9.16675L2.05011 7.80841C1.89178 7.68341 1.84178 7.45841 1.95011 7.27508L3.61678 4.39175C3.71678 4.20841 3.94178 4.13341 4.12511 4.20842L6.20011 5.04175C6.63344 4.71675 7.08344 4.43341 7.60844 4.22508L7.91678 2.01675C7.95011 1.81675 8.12511 1.66675 8.33344 1.66675H11.6668C11.8751 1.66675 12.0501 1.81675 12.0834 2.01675L12.3918 4.22508C12.9168 4.43341 13.3668 4.71675 13.8001 5.04175L15.8751 4.20842C16.0584 4.13341 16.2834 4.20841 16.3834 4.39175L18.0501 7.27508C18.1584 7.45841 18.1084 7.68341 17.9501 7.80841L16.1918 9.16675L16.2501 10.0001L16.1918 10.8334L17.9501 12.1917C18.1084 12.3167 18.1584 12.5417 18.0501 12.7251L16.3834 15.6084C16.2834 15.7917 16.0584 15.8667 15.8751 15.7917L13.8001 14.9584C13.3668 15.2834 12.9168 15.5667 12.3918 15.7751L12.0834 17.9834C12.0501 18.1834 11.8751 18.3334 11.6668 18.3334H8.33344ZM9.37511 3.33341L9.06678 5.50841C8.06678 5.71675 7.18344 6.25008 6.54178 6.99175L4.53344 6.12508L3.90844 7.20841L5.66678 8.50008C5.33344 9.47508 5.33344 10.5334 5.66678 11.5001L3.90011 12.8001L4.52511 13.8834L6.55011 13.0167C7.19178 13.7501 8.06678 14.2834 9.05844 14.4834L9.36678 16.6667H10.6334L10.9418 14.4917C11.9334 14.2834 12.8084 13.7501 13.4501 13.0167L15.4751 13.8834L16.1001 12.8001L14.3334 11.5084C14.6668 10.5334 14.6668 9.47508 14.3334 8.50008L16.0918 7.20841L15.4668 6.12508L13.4584 6.99175C12.8168 6.25008 11.9334 5.71675 10.9334 5.51675L10.6251 3.33341H9.37511Z",fill:o||(t?g:b)})})},M=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{"aria-label":"help icon",role:i,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M9.16675 15.0001H10.8334V13.3334H9.16675V15.0001ZM10.0001 1.66675C8.90573 1.66675 7.8221 1.8823 6.81105 2.30109C5.80001 2.71987 4.88135 3.3337 4.10753 4.10753C2.54472 5.67033 1.66675 7.78995 1.66675 10.0001C1.66675 12.2102 2.54472 14.3298 4.10753 15.8926C4.88135 16.6665 5.80001 17.2803 6.81105 17.6991C7.8221 18.1179 8.90573 18.3334 10.0001 18.3334C12.2102 18.3334 14.3298 17.4554 15.8926 15.8926C17.4554 14.3298 18.3334 12.2102 18.3334 10.0001C18.3334 8.90573 18.1179 7.8221 17.6991 6.81105C17.2803 5.80001 16.6665 4.88135 15.8926 4.10753C15.1188 3.3337 14.2002 2.71987 13.1891 2.30109C12.1781 1.8823 11.0944 1.66675 10.0001 1.66675ZM10.0001 16.6668C6.32508 16.6668 3.33342 13.6751 3.33342 10.0001C3.33342 6.32508 6.32508 3.33342 10.0001 3.33342C13.6751 3.33342 16.6668 6.32508 16.6668 10.0001C16.6668 13.6751 13.6751 16.6668 10.0001 16.6668ZM10.0001 5.00008C9.11603 5.00008 8.26818 5.35127 7.64306 5.97639C7.01794 6.60151 6.66675 7.44936 6.66675 8.33342H8.33342C8.33342 7.89139 8.50901 7.46747 8.82157 7.1549C9.13413 6.84234 9.55806 6.66675 10.0001 6.66675C10.4421 6.66675 10.866 6.84234 11.1786 7.1549C11.4912 7.46747 11.6667 7.89139 11.6667 8.33342C11.6667 10.0001 9.16675 9.79175 9.16675 12.5001H10.8334C10.8334 10.6251 13.3334 10.4167 13.3334 8.33342C13.3334 7.44936 12.9822 6.60151 12.3571 5.97639C11.732 5.35127 10.8841 5.00008 10.0001 5.00008Z",fill:o||(t?g:b)})})},y=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{"aria-label":"menu icon",role:i,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M17 5V6.66667H3V5H17ZM3 15H17V13.3333H3V15ZM3 10.8333H17V9.16667H3V10.8333Z",fill:o||(t?g:b)})})},C=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{"aria-label":"pencil icon",role:i,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M11.7167 7.5L12.5 8.28333L4.93333 15.8333H4.16667V15.0667L11.7167 7.5ZM14.7167 2.5C14.5083 2.5 14.2917 2.58333 14.1333 2.74167L12.6083 4.26667L15.7333 7.39167L17.2583 5.86667C17.5833 5.54167 17.5833 5 17.2583 4.69167L15.3083 2.74167C15.1417 2.575 14.9333 2.5 14.7167 2.5ZM11.7167 5.15833L2.5 14.375V17.5H5.625L14.8417 8.28333L11.7167 5.15833Z",fill:o||(t?g:b)})})},E=function(e){var t=e.condition,o=e.fill,i=e.role;return Object(n.jsx)("svg",{role:i,"aria-label":"plus icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.385 11.385H15.615C16.3799 11.385 17 10.7649 17 10C17 9.23507 16.3799 8.61497 15.615 8.61497H11.385V4.38503C11.385 3.6201 10.7649 3 10 3C9.23507 3 8.61497 3.6201 8.61497 4.38503V8.61497H4.38503C3.6201 8.61497 3 9.23507 3 10C3 10.7649 3.6201 11.385 4.38503 11.385H8.61497V15.615C8.61497 16.3799 9.23507 17 10 17C10.7649 17 11.385 16.3799 11.385 15.615V11.385Z",fill:o||(t?g:b)})})},S=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("svg",{"aria-label":"print icon",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M15.0001 2.5H5.00008V5.83333H15.0001V2.5ZM15.8334 10C15.6124 10 15.4004 9.9122 15.2442 9.75592C15.0879 9.59964 15.0001 9.38768 15.0001 9.16667C15.0001 8.94565 15.0879 8.73369 15.2442 8.57741C15.4004 8.42113 15.6124 8.33333 15.8334 8.33333C16.0544 8.33333 16.2664 8.42113 16.4227 8.57741C16.579 8.73369 16.6668 8.94565 16.6668 9.16667C16.6668 9.38768 16.579 9.59964 16.4227 9.75592C16.2664 9.9122 16.0544 10 15.8334 10ZM13.3334 15.8333H6.66675V11.6667H13.3334V15.8333ZM15.8334 6.66667H4.16675C3.50371 6.66667 2.86782 6.93006 2.39898 7.3989C1.93014 7.86774 1.66675 8.50363 1.66675 9.16667V14.1667H5.00008V17.5H15.0001V14.1667H18.3334V9.16667C18.3334 8.50363 18.07 7.86774 17.6012 7.3989C17.1323 6.93006 16.4965 6.66667 15.8334 6.66667Z",fill:t||b})})},k=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("svg",{"aria-label":"refresh icon",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M9.99992 14.9999C8.67384 14.9999 7.40207 14.4731 6.46438 13.5355C5.5267 12.5978 4.99992 11.326 4.99992 9.99992C4.99992 9.16658 5.20825 8.35825 5.58325 7.66658L4.36659 6.44992C3.71659 7.47492 3.33325 8.69158 3.33325 9.99992C3.33325 11.768 4.03563 13.4637 5.28587 14.714C6.53612 15.9642 8.23181 16.6666 9.99992 16.6666V19.1666L13.3333 15.8332L9.99992 12.4999V14.9999ZM9.99992 3.33325V0.833252L6.66658 4.16658L9.99992 7.49992V4.99992C11.326 4.99992 12.5978 5.5267 13.5355 6.46438C14.4731 7.40207 14.9999 8.67383 14.9999 9.99992C14.9999 10.8333 14.7916 11.6416 14.4166 12.3333L15.6333 13.5499C16.2833 12.5249 16.6666 11.3083 16.6666 9.99992C16.6666 8.23181 15.9642 6.53612 14.714 5.28587C13.4637 4.03563 11.768 3.33325 9.99992 3.33325Z",fill:t||b})})},T=function(e){var t=e.fill,o=e.role;return Object(n.jsx)("svg",{"aria-label":"undo icon",role:o,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M10.1812 7.66667C8.36883 7.66667 6.72741 8.33333 5.46214 9.4L3 7V13H9.15535L6.67953 10.5867C7.63019 9.81333 8.84074 9.33333 10.1812 9.33333C12.6023 9.33333 14.661 10.8733 15.3791 13L17 12.48C16.0493 9.68667 13.3615 7.66667 10.1812 7.66667Z",fill:t||b})})},B=function(e){var t=e.cancelText,o=e.confirmText,i=e.helpLink,s=e.onCancel,a=e.onConfirm,r=e.onUndo,d=e.title;return Object(n.jsx)("div",{className:"note-overlay",children:Object(n.jsxs)("div",{className:"sk-panel note-dialog",children:[Object(n.jsx)("div",{className:"sk-panel-content",children:Object(n.jsxs)("div",{className:"sk-panel-section",children:[Object(n.jsxs)("div",{className:"sk-panel-row title-section",children:[Object(n.jsx)("h2",{children:d}),Object(n.jsxs)("button",{id:Ge.undoDialogButton,onClick:r,title:"Close",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(m,{role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]})]}),Object(n.jsxs)("p",{children:["Need help deciding? Check out the"," ",Object(n.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"documentation"}),"."]})]})}),Object(n.jsx)("div",{className:"sk-panel-footer",children:Object(n.jsxs)("div",{className:"sk-button-group stretch",children:[Object(n.jsx)("button",{className:"sk-button neutral",onClick:s,children:Object(n.jsx)("div",{children:t})}),Object(n.jsx)("button",{className:"sk-button info",onClick:a,children:Object(n.jsx)("div",{children:o})})]})})]})})},L=o(251),N="MonacoEditorContainer",D="MonacoDiffEditorContainer";self.MonacoEnvironment={getWorkerUrl:function(e,t){return"json"===t?"./monaco/json.worker.bundle.js":"css"===t||"scss"===t||"less"===t?"./monaco/css.worker.bundle.js":"html"===t||"handlebars"===t||"razor"===t?"./monaco/html.worker.bundle.js":"typescript"===t||"javascript"===t?"./monaco/ts.worker.bundle.js":"./monaco/editor.worker.bundle.js"}};var H=function(e){var t,o=e.fontSize,s=void 0===o?"16":o,a=e.id,r=void 0===a?N:a,d=e.language,c=void 0===d?"markdown":d,l=e.saveText,p=e.tabSize,h=void 0===p?2:p,u=e.text,j=e.theme,g=void 0===j?"vs-dark":j,b=e.viewMode,f=void 0!==b&&b,x=Object(i.useRef)(null);""===s&&(s="16px");var m=!0;return f&&(m=!1),Object(i.useEffect)((function(){return x.current&&((t=L.a.create(x.current,{fontSize:parseInt(s.replace("px","")),language:c,tabSize:h,theme:g,scrollBeyondLastLine:m,value:[u].join("\n"),autoClosingOvertype:"auto",formatOnPaste:!0,formatOnType:!0,wordWrap:"on",wrappingStrategy:"advanced"})).onKeyDown((function(e){!function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&console.log("IKeyboardEvent Up: "+e)}(e.code,false),e.ctrlKey&&"KeyS"===e.code&&e.preventDefault()})),t.onKeyUp((function(e){!function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&console.log("IKeyboardEvent Up: "+e)}(e.code,false)})),t.onDidChangeModelContent((function(e){l&&l(t.getValue())}))),function(){t.dispose()}}),[]),Object(n.jsx)("div",{id:r,className:N,ref:x})},V=function(e){var t,o=e.fontSize,s=void 0===o?"16":o,a=e.id,r=void 0===a?D:a,d=e.language,c=void 0===d?"markdown":d,l=e.saveText,p=e.text,h=e.modifiedText,u=e.theme,j=void 0===u?"vs-dark":u,g=Object(i.useRef)(null);return""===s&&(s="16px"),Object(i.useEffect)((function(){if(g.current){var e=L.a.createModel([p].join("\n"),c),o=L.a.createModel([h].join("\n"),c);(t=L.a.createDiffEditor(g.current,{fontSize:parseInt(s.replace("px","")),theme:j,autoClosingOvertype:"auto",formatOnPaste:!0,formatOnType:!0,wordWrap:"on",wrappingStrategy:"advanced",originalEditable:!0,readOnly:!0})).setModel({original:e,modified:o}),e.onDidChangeContent((function(t){l&&l(e.getValue())}))}return function(){t.dispose()}}),[]),Object(n.jsx)("div",{id:r,className:D,ref:g})},A=o(449),K=o.n(A),F=o(450),I=o.n(F),P=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(){return Object(l.a)(this,o),t.apply(this,arguments)}return Object(p.a)(o,[{key:"render",value:function(){var e=this.props.attrs.matches[1];return Object(n.jsx)("iframe",{title:"Youtube Embed ".concat(e),className:this.props.isSelected?"YouTube ProseMirror-selectednode":"YouTube",src:"https://www.youtube.com/embed/".concat(e,"?modestbranding=1")})}}]),o}(i.Component),U=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).handleToggleReadOnly=function(){n.setState({readOnly:!n.state.readOnly})},n.handleChange=K()((function(e){var t=e();n.props.debugMode&&console.log(t),n.props.onChange(t)}),50),n.state={readOnly:n.props.readOnly,template:!1,value:void 0},n}return Object(p.a)(o,[{key:"render",value:function(){var e=this;return Object(n.jsx)(I.a,{className:"DynamicEditor",placeholder:"Type '/' to insert...",id:"DynamicEditor",readOnly:this.state.readOnly,readOnlyWriteCheckboxes:!0,value:this.state.value,defaultValue:this.props.text,scrollTo:window.location.hash,onCancel:function(){e.props.debugMode&&console.log("Cancel triggered")},autoFocus:!0,onChange:function(t){return e.handleChange(t)},embeds:[{title:"YouTube",keywords:"youtube video tube google",icon:function(){return Object(n.jsx)("img",{alt:"YouTube Logo",src:"/icons/ic-YouTube.svg",width:24,height:24})},matcher:function(e){return e.match(/(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([a-zA-Z0-9_-]{11})$/i)},component:P}]})}}]),o}(i.Component),z=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).handleInputChange=function(e){var t=e.target.value;n.setState({text:t},(function(){n.props.saveText(n.state.text)}))},n.saveText=function(e){n.setState({text:e},(function(){n.props.saveText(n.state.text)}))},n.onBlur=function(e){var t=document.getElementById(Ge.content);t&&t.classList.remove(qe.focused)},n.onFocus=function(e){var t=document.getElementById(Ge.content);t&&t.classList.add(qe.focused)},n.onKeyDown=function(e){n.props.onKeyDown(e),n.props.onKeyDownEditTextArea(e),n.props.onKeyDownTextArea(e)},n.onKeyUp=function(e){n.props.keyMap.delete(e.key),n.props.onKeyUp(e)},n.state={text:n.props.text},n}return Object(p.a)(o,[{key:"render",value:function(){var e=this.state.text;return Object(n.jsx)("div",{className:"sk-panel main edit "+(this.props.editingMode===Xe.useMonacoEditor?"MonacoEditorContainerParentDiv":this.props.editingMode===Xe.useDynamicEditor?"dynamicEditor":"otherEditor"),id:Ge.edit,children:this.props.editingMode===Xe.useMonacoEditor?Object(n.jsx)(H,{fontSize:this.props.fontSize,language:this.props.monacoEditorLanguage,saveText:this.saveText,text:e,viewMode:this.props.viewMode}):this.props.editingMode===Xe.useDynamicEditor?Object(n.jsx)("div",{id:"dynamicEditor",children:Object(n.jsx)(U,{debugMode:this.props.debugMode,text:e,onChange:this.saveText,readOnly:!1})}):Object(n.jsx)("textarea",{id:Ge.editTextArea,name:"text",className:"sk-input contrast textarea editnote",placeholder:"Welcome to the Append Editor! \ud83d\ude04",rows:15,spellCheck:"true",value:e,onBlur:this.onBlur,onChange:this.handleInputChange,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp})})}}]),o}(s.a.Component);z.defaultProps={};var R=function(){var e=document.getElementById(Ge.appendButton);e&&e.click()},W=function(){var e=document.getElementById(Ge.editButton);e&&e.click()},_=function(){var e=document.getElementById(Ge.helpButton);e&&e.click()},Z=function(){var e=document.getElementById(Ge.menuButton);e&&e.click()},Y=function(){var e=document.getElementById(Ge.settingsButton);e&&e.click()},G=function(){var e=document.getElementById(Ge.viewButton);e&&e.click()},q=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).onToggleShowFeelings=function(){n.setState({showFeelings:!n.state.showFeelings})},n.onToggleShowMoreQuestions=function(){n.setState({showMoreQuestions:!n.state.showMoreQuestions})},n.onToggleShowFeedback=function(){n.setState({showFeedback:!n.state.showFeedback})},n.state={showFeelings:!1,showMoreQuestions:!1,showFeedback:!1},n}return Object(p.a)(o,[{key:"render",value:function(){return Object(n.jsxs)("div",{id:"help",children:[Object(n.jsx)("h2",{children:"Append Editor Help"}),Object(n.jsxs)("p",{children:["The Append Editor is an ",Object(n.jsx)("b",{children:"unofficial"})," ",Object(n.jsx)("a",{href:"https://standardnotes.org/help/77/what-are-editors",target:"_blank",rel:"nofollow noreferrer noopener",children:"editor"})," ","for"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/",target:"_blank",rel:"nofollow noreferrer noopener",children:"Standard Notes"}),", a free,"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/knowledge/5/what-is-free-and-open-source-software",target:"_blank",rel:"nofollow noreferrer noopener",children:"open-source"}),", and"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/knowledge/2/what-is-end-to-end-encryption",target:"_blank",rel:"nofollow noreferrer noopener",children:"end-to-end encrypted"})," ","notes app. The Append Editor is also free software licensed under"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor/blob/main/LICENSE",target:"_blank",rel:"nofollow noreferrer noopener",children:"AGPL-3.0"}),". Its source code is available on"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor",target:"_blank",rel:"nofollow noreferrer noopener",children:"GitHub"}),"."]}),Object(n.jsx)("h3",{children:"Append Editor Features"}),Object(n.jsxs)("p",{children:["The Append Editor supports"," ",Object(n.jsx)("a",{href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"nofollow noreferrer noopener",children:"Markdown"})," ","with"," ",Object(n.jsx)("a",{href:"https://katex.org/docs/support_table.html",target:"_blank",rel:"nofollow noreferrer noopener",children:"KaTeX"}),", syntax highlighting, in-line HTML, table of contents, footnotes, auto-linking,"," ",Object(n.jsx)("a",{href:"https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md",target:"_blank",rel:"nofollow noreferrer noopener",children:"emoji codes"}),", and more."," "]}),Object(n.jsxs)("p",{children:["There are four editing modes: Plain Textarea, CodeMirror, Dynamic, and Monaco. You can read about each mode and choose which to use in the Settings",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:Y,title:"Open Settings",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(w,{role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),". You can also choose default and per-note font sizes, font families, and custom styles (CSS)."]}),Object(n.jsxs)("p",{children:["The Menu",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:Z,title:"Open the Menu",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(y,{role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"has additional options to customize the appearance of the editor, share your note, and perform actions to quickly format and edit Markdown text."]}),Object(n.jsxs)("p",{children:["A more detailed documentation of the Append Editor is available at"," ",Object(n.jsx)("a",{href:"https://appendeditor.com",target:"_blank",rel:"noopener noreferrer",children:"appendeditor.com"}),". If you like the Append Editor, please support it by giving it a star on"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor/stargazers",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),"."," ",Object(n.jsx)("span",{role:"img","aria-label":"smile emoji",children:"\ud83d\ude42"})," "]}),Object(n.jsx)("h3",{children:"How to install the Append Editor in Standard Notes"}),Object(n.jsxs)("ol",{children:[Object(n.jsxs)("li",{children:["Download, install, and sign in to the Standard Notes"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/download",target:"_blank",rel:"noopener noreferrer",children:"Desktop"})," ","app."]}),Object(n.jsxs)("li",{children:["In the bottom left corner of the app, click ",Object(n.jsx)("b",{children:"Extensions"}),"."]}),Object(n.jsxs)("li",{children:["Click ",Object(n.jsx)("b",{children:"Import Extensions"})," and paste the following link into the input box. If you want to use the alpha version, replace"," ",Object(n.jsx)("code",{children:"beta"})," with ",Object(n.jsx)("code",{children:"alpha"}),":"," ",Object(n.jsx)("code",{children:Object(n.jsx)("a",{href:"https://raw.githubusercontent.com/TheodoreChu/append-editor/main/public/beta.ext.json",target:"_blank",rel:"noopener noreferrer",children:"https://raw.githubusercontent.com/TheodoreChu/append-editor/main/public/beta.ext.json"})})]}),Object(n.jsxs)("li",{children:["Press ",Object(n.jsx)("b",{children:"Enter"})," or ",Object(n.jsx)("b",{children:"Return"})," on your keyboard."]}),Object(n.jsxs)("li",{children:["The title of your selected note is near the top of the app. Under the title, click ",Object(n.jsx)("b",{children:"Editor"}),", click ",Object(n.jsx)("b",{children:"Append Editor"}),", and click ",Object(n.jsx)("b",{children:"Continue"})," to begin using the editor. Enjoy!"," ",Object(n.jsx)("span",{role:"img","aria-label":"clap emoji",children:"\ud83d\udc4f"})," "]})]}),Object(n.jsxs)("p",{children:["After you install the editor on the desktop app, it will automatically sync to the"," ",Object(n.jsx)("a",{href:"https://app.standardnotes.org",target:"_blank",rel:"noopener noreferrer",children:"web"})," ","and"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/download",target:"_blank",rel:"noopener noreferrer",children:"mobile apps"})," ","after you sign in."]}),Object(n.jsx)("h3",{children:"What to write about"}),Object(n.jsx)("p",{children:"The Append Editor is great for writing articles, blog posts, checklists, code snippets, documentation, emails, essays, journals, lists, logs, notes, tables, todo lists, and much more. Here are some questions to help you get started with today's daily journal:"})," ",Object(n.jsxs)("ul",{children:[Object(n.jsx)("li",{children:"How are you? What's happening?"}),Object(n.jsx)("li",{children:"What might be affecting your mood?"}),Object(n.jsx)("li",{children:"Which feelings fit your mood and to what extent?"}),Object(n.jsxs)("details",{onToggle:this.onToggleShowFeelings,children:[Object(n.jsxs)("summary",{children:[!this.state.showFeelings&&Object(n.jsx)("p",{className:"link",children:"Show feelings"}),this.state.showFeelings&&Object(n.jsx)("p",{className:"link",children:"Hide feelings"})]}),Object(n.jsxs)("li",{children:[Object(n.jsx)("b",{children:"Positive Feelings:"})," bold, calm, cheerful, confident, content, eager, ecstatic, energized, engaged, enthusiastic, excited, grateful, happy, humorous, inspired, joyful, light, lively, loving, motivated, optimistic, passionate, peaceful, playful, proud, reassured, refreshed, relaxed, relieved, satisfied, secure, surprised, thrilled, wonderful"]}),Object(n.jsxs)("li",{children:[Object(n.jsx)("b",{children:"Negative Feelings:"})," afraid, angry, annoyed, anxious, ashamed, bored, burnt out, confused, demoralized, depressed, disappointed, disgusted, distraught, embarrassed, empty, exhausted, frustrated, furious, guilty, heavy, insecure, irritated, jealous, jittery, lethargic, lonely, nervous, numb, resentful, sad, self-conscious, sleepy, stressed, tired, winded, worried"]})]}),Object(n.jsx)("li",{children:"What thoughts are contributing to the way you're feeling?"}),Object(n.jsx)("details",{onToggle:this.onToggleShowMoreQuestions,children:Object(n.jsxs)("summary",{children:[!this.state.showMoreQuestions&&Object(n.jsx)("p",{className:"link",children:"Show more questions"}),this.state.showMoreQuestions&&Object(n.jsx)("p",{className:"link",children:"Show fewer questions"})]})}),this.state.showMoreQuestions&&Object(n.jsxs)("div",{children:[Object(n.jsx)("li",{children:"What do you hope your life will look like in a week? a month? a year?"}),Object(n.jsx)("li",{children:"What can you do today to make your life the way you want it?"}),Object(n.jsx)("li",{children:"How will you feel when you've realized the goals that you have for yourself?"}),Object(n.jsx)("li",{children:"Who or what do you feel grateful for and why?"}),Object(n.jsx)("li",{children:"What did you enjoy about today?"})]})]}),Object(n.jsxs)("details",{onToggle:this.onToggleShowFeedback,children:[Object(n.jsx)("summary",{children:Object(n.jsx)("p",{className:"link",children:"Need more help?"})}),this.state.showFeedback&&Object(n.jsxs)("p",{children:["Feel free to"," ",Object(n.jsx)("a",{href:"https://appendeditor.com/contact",target:"_blank",rel:"noopener noreferrer",children:"reach out"})," ","if you have any questions, comments, concerns, or feedback."," ",Object(n.jsx)("span",{role:"img","aria-label":"wave emoji",children:"\ud83d\udc4b"}),Object(n.jsx)("br",{}),"If you find any bugs or have a feature request, please"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor/issues",target:"_blank",rel:"noopener noreferrer",children:"open an issue on GitHub"}),"."," ",Object(n.jsx)("span",{role:"img","aria-label":"smile emoji",children:"\ud83d\ude42"}),Object(n.jsx)("br",{}),"You are using version ",Object(n.jsx)("code",{children:"1.2.6-alpha.1"}),". The release notes and change log are available on"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor/releases",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),"."]})]}),"Click Help",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:_,title:"Close Help",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(M,{fill:"var(--sn-stylekit-info-color)",role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"to close this section.",Object(n.jsx)("hr",{})]})}}]),o}(s.a.Component),X=function(e){var t=e.appendMode,o=e.editMode,i=e.showHelp;return Object(n.jsx)("div",{id:"intro",children:Object(n.jsxs)("details",{children:[Object(n.jsxs)("summary",{children:["Welcome to the Append Editor!"," ",Object(n.jsx)("span",{role:"img","aria-label":"wave emoji",children:"\ud83d\udc4b"})," ","Your note is empty."," ",Object(n.jsx)("span",{role:"img","aria-label":"smile emoji",children:"\ud83d\ude42"})," ","Click here to get started."," ",Object(n.jsx)("span",{role:"img","aria-label":"memo emoji",children:"\ud83d\udcdd"})]}),Object(n.jsx)("p",{children:"To get started:"}),Object(n.jsxs)("ul",{children:[Object(n.jsx)("li",{children:Object(n.jsxs)("p",{children:["Click the Pencil",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:W,title:"Toggle Edit Mode",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(C,{condition:o,role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"to toggle ",Object(n.jsx)("b",{children:"Edit Mode"})]})}),Object(n.jsx)("li",{children:Object(n.jsxs)("p",{children:["Click the Plus",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:R,title:"Toggle Append Mode",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(E,{condition:t,role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"to toggle ",Object(n.jsx)("b",{children:"Append Mode"})]})})]}),Object(n.jsxs)("p",{children:[Object(n.jsx)("b",{children:"View Mode"})," is currently ",Object(n.jsx)("b",{children:"on"}),". When you type in"," ",Object(n.jsx)("b",{children:"Edit Mode"}),", your note will automatically render here. In"," ",Object(n.jsx)("b",{children:"Append Mode"}),", clicking ",Object(n.jsx)("b",{children:"Append"})," will add the text in the textarea to the end of your note. Click the Eye",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:G,title:"Toggle View Mode",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(O,{condition:!0,role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"to turn ",Object(n.jsx)("b",{children:"View Mode"})," off and switch to ",Object(n.jsx)("b",{children:"Edit Only Mode"}),"."]}),Object(n.jsxs)("p",{children:["If you are using the demo at"," ",Object(n.jsx)("a",{href:"https://beta.appendeditor.com",target:"_blank",rel:"nofollow noreferrer noopener",children:"beta.appendeditor.com"}),", then your notes will be lost after you close the page."]}),Object(n.jsxs)("p",{children:["If you want to save your notes, then click Help",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:_,title:"Toggle show Help",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(M,{condition:i,role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"and follow the instructions on how to install the Append Editor in"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/",target:"_blank",rel:"nofollow noreferrer noopener",children:"Standard Notes"}),", a free,"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/knowledge/5/what-is-free-and-open-source-software",target:"_blank",rel:"nofollow noreferrer noopener",children:"open-source"}),", and"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/knowledge/2/what-is-end-to-end-encryption",target:"_blank",rel:"nofollow noreferrer noopener",children:"end-to-end encrypted"})," ","notes app."]}),Object(n.jsxs)("p",{children:["If you like Standard Notes, please check out Standard Notes"," ",Object(n.jsx)("a",{href:"https://standardnotes.org/extensions",target:"_blank",rel:"nofollow noreferrer noopener",children:"Extended"})," ","for more editors, themes, components, and methods to backup up your data."]}),Object(n.jsxs)("p",{children:["Happy note-taking!"," ",Object(n.jsx)("span",{role:"img","aria-label":"smile emoji",children:"\ud83d\ude04"})]})]})})},Q=o(315),J=o.n(Q),$=o(454),ee=o.n($),te=o(455),oe=o.n(te),ne=o(456),ie=o.n(ne),se=o(320),ae=o(902),re=o(903),de=o(905),ce=o(910),le=o(935),pe=o(937),he=o(945),ue=o(947),je=o(952),ge=o(1150),be=o(1171),fe=J()().use(ee.a).use(ce).use(ae).use(he).use(ue,{maxDepth:6}).use(re).use(de,{inlineNotes:!0}).use(le).use(oe.a,{allowDangerousHtml:!0}).use(be).use(pe).use(ge).use(je,{ignoreMissing:!0}).use(ie.a,{createElement:s.a.createElement}),xe=function(e){return fe.processSync(e).result},me=Object(se.throttle)((function(e){return e.length>2500}),1e3),ve=Object(se.debounce)((function(e){return xe(e)}),500),Oe=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).onToggleShowHelp=function(){var e=document.getElementById("helpButton");e&&e.click()},n.renderMarkdown=function(e){return function(e,t){if(t)return xe(e);if(me(e))return ve(e);var o=xe(e);return ve(e),o}(e,n.props.bypassDebounce)},n.state={showHelp:n.props.showHelp},n}return Object(p.a)(o,[{key:"render",value:function(){var e=this.props.text;return Object(n.jsxs)("div",{className:"sk-panel main view"+(this.props.printURL?" printURL":""),id:Ge.view,children:[!e&&Object(n.jsx)(X,{appendMode:this.props.appendMode,editMode:this.props.editMode,showHelp:this.props.showHelp}),!e&&this.state.showHelp&&Object(n.jsx)("hr",{}),this.state.showHelp&&Object(n.jsx)(q,{debugMode:this.props.debugMode,printURL:this.props.printURL}),Object(n.jsx)("div",{id:Ge.renderedNote,className:this.props.editingMode===Xe.useDynamicEditor?"":"rendered-note-section",children:this.props.editingMode===Xe.useMonacoEditor&&"markdown"!==this.props.monacoEditorLanguage&&"html"!==this.props.monacoEditorLanguage&&e?this.renderMarkdown("```"+this.props.monacoEditorLanguage+"\n"+e+"\n```"):this.props.editingMode===Xe.useDynamicEditor?Object(n.jsx)(U,{debugMode:this.props.debugMode,onChange:this.props.saveText,readOnly:!0,text:e}):this.renderMarkdown(e)},Ge.renderedNote)]},Ge.view)}}]),o}(s.a.Component),we=o(39),Me=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).handleInputChange=function(e){var t=e.target,o="checkbox"===t.type?t.checked:t.value,i=t.name;n.setState(Object(we.a)({},i,o),(function(){n.autoSaveCheckBoxes()}))},n.handleTextAreaChange=function(e){var t=e.target.value;n.setState({text:t},(function(){n.autoSaveAppendText()}))},n.saveText=function(e){n.setState({text:e},(function(){n.props.autoSaveAppendText(n.state.text)}))},n.appendTextToNote=function(){n.props.appendTextToNote(),n.setState({text:""});var e=document.getElementById(Ge.appendTextArea);e&&e.focus(),n.state.useMonacoEditor&&n.setState({useMonacoEditor:!1},(function(){n.setState({useMonacoEditor:!0})})),n.state.useDynamicEditor&&n.setState({useDynamicEditor:!1},(function(){n.setState({useDynamicEditor:!0})}))},n.autoSaveAppendText=function(){var e=n.state.text;n.props.autoSaveAppendText(e)},n.autoSaveCheckBoxes=function(){var e=n.state.newLine,t=n.state.newParagraph;n.props.autoSaveCheckBoxes(e,t)},n.onKeyDown=function(e){n.props.keyMap.set(e.key,!0),n.props.debugMode&&(console.log("Keys pressed: "+e.key+"KeyMap for key: "+n.props.keyMap.get(e.key)),console.log("Append Text Value: "+n.state.text)),n.props.onKeyDown(e),n.props.onKeyDownAppendTextArea(e),n.props.onKeyDownTextArea(e),(n.props.keyMap.get("Control")&&n.props.keyMap.get("Enter")||n.props.keyMap.get("Control")&&n.props.keyMap.get("s"))&&(e.preventDefault(),n.appendTextToNote())},n.onKeyUp=function(e){n.props.keyMap.delete(e.key),n.props.onKeyUp(e)},n.state={text:n.props.text,newLine:n.props.appendNewLine,newParagraph:n.props.appendNewParagraph,useMonacoEditor:n.props.editingMode===Xe.useMonacoEditor,useDynamicEditor:n.props.editingMode===Xe.useDynamicEditor},n}return Object(p.a)(o,[{key:"render",value:function(){var e=this.state.text;return Object(n.jsxs)("div",{className:"sk-panel main appendix "+(this.props.editingMode===Xe.useMonacoEditor?"MonacoEditorContainerParentDiv":this.props.editingMode===Xe.useDynamicEditor?"dynamicEditor":"otherEditor"),children:[this.state.useMonacoEditor?Object(n.jsx)(H,{fontSize:this.props.fontSize,language:this.props.monacoEditorLanguage,saveText:this.saveText,text:e}):this.state.useDynamicEditor?Object(n.jsx)("div",{id:"appendDynamicEditor",children:Object(n.jsx)(U,{debugMode:this.props.debugMode,onChange:this.saveText,readOnly:!1,text:e})}):Object(n.jsx)("textarea",{id:Ge.appendTextArea,name:"text",className:"sk-input contrast textarea append",placeholder:"Append to your note",rows:this.props.appendRows,spellCheck:"true",value:e,onChange:this.handleTextAreaChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp}),Object(n.jsxs)("div",{className:"sk-panel-row",children:[Object(n.jsxs)("form",{className:"checkBoxForm",children:[Object(n.jsxs)("label",{children:[Object(n.jsx)("input",{id:Ge.newLine,name:"newLine",type:"checkbox",checked:this.state.newLine,onChange:this.handleInputChange}),"New Line"]}),Object(n.jsx)("br",{}),Object(n.jsxs)("label",{children:[Object(n.jsx)("input",{id:Ge.newParagraph,name:"newParagraph",type:"checkbox",checked:this.state.newParagraph,onChange:this.handleInputChange}),"New Paragraph"]})]}),Object(n.jsx)("div",{className:"sk-button-group stretch",children:Object(n.jsx)("button",{type:"button",id:"appendTextButton",onClick:this.appendTextToNote,className:"sk-button info",children:Object(n.jsx)("div",{children:"Append"})})})]},2)]},1)}}]),o}(s.a.Component);Me.defaultProps={};var ye,Ce=function(e){var t=e.caption,o=e.className,i=e.condition,s=e.onClick,a=e.title;return Object(n.jsxs)("button",{className:o,onClick:s,title:a,children:[i?Object(n.jsx)(f,{role:"button"}):Object(n.jsx)(x,{role:"button"}),Object(n.jsx)("p",{className:"chevron-button-caption",children:t})]})},Ee=function(e){var t=e.caption,o=e.className,i=e.fill,s=e.onClick,a=e.title;return Object(n.jsxs)("button",{className:o,onClick:s,title:a,children:[Object(n.jsx)(v,{fill:i,role:"button"}),Object(n.jsx)("span",{className:"button-caption",children:t})]})},Se=function(e){var t=e.caption,o=e.className,i=e.condition,s=e.messageOn,a=e.messageOff,r=e.onClick,d=e.title;return Object(n.jsxs)("button",{className:o,onClick:r,title:d,children:[Object(n.jsx)(O,{condition:i,role:"button"}),Object(n.jsxs)("span",{className:"button-caption",children:[t,":",Object(n.jsxs)("b",{children:["\xa0",i?s:a]})]})]})},ke=function(e){var t=e.caption,o=e.className,i=e.fill,s=e.onClick,a=e.title;return Object(n.jsxs)("button",{className:o,onClick:s,title:a,children:[Object(n.jsx)(C,{fill:i,role:"button"}),Object(n.jsx)("span",{className:"button-caption",children:t})]})},Te=function(e){var t=e.caption,o=e.className,i=e.fill,s=e.id,a=e.onClick,r=e.title;return Object(n.jsxs)("button",{className:o,id:s,onClick:a,title:r,children:[Object(n.jsx)(S,{fill:i,role:"button"}),Object(n.jsx)("span",{className:"button-caption",children:t})]})},Be=function(e){var t=e.className,o=e.fill,i=e.id,s=e.onClick,a=e.title;return Object(n.jsx)("button",{className:t,id:i,onClick:s,title:a,children:Object(n.jsx)(T,{fill:o,role:"button"})})},Le="editingMode",Ne="fontEdit",De="fontSize",He="fontView",Ve="monacoEditorLanguage",Ae="resetAllSettings",Ke="saveAsDefault",Fe=new RegExp(/```css\n/gm),Ie=new RegExp(/```css/gm),Pe=new RegExp(/\n```/gm),Ue=new RegExp(/```/gm),ze=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;Object(l.a)(this,o),(n=t.call(this,e)).handleInputChange=function(e){var t=e.target,o="checkbox"===t.type?t.checked:t.value,i=t.name;n.setState(Object(we.a)({},i,o)),n.props.debugMode&&console.log("Settings event name: "+e.target.name+" Value: "+e.target.value)},n.handleSelectChange=function(e){var t=e.target,o=t.value,i=t.name;n.setState(Object(we.a)({},i,o),(function(){n.props.debugMode&&console.log("Saved select. Name: "+e.target.name+" Value: "+e.target.value)}))},n.toggleShowCustomStyles=function(){n.setState({showCustomStyles:!n.state.showCustomStyles})},n.cleanCustomStyles=function(e){return e?e.replace(Fe,"").replace(Ie,"").replace(Pe,"").replace(Ue,""):e},n.saveText=function(e){n.setState({customStyles:e})},n.handleSubmit=function(){if(n.props.debugMode){var e="",t="";""===n.state.fontEdit||void 0===n.state.fontEdit?e="Default":n.state.fontEdit&&(e=n.state.fontEdit),""===n.state.fontView||void 0===n.state.fontView?t="Default":n.state.fontView&&(t=n.state.fontView),console.log("Settings.tsx handleSubmit() triggered: \n - Settings editingMode: "+n.state.editingMode+"\n - Settings fontEdit: "+n.state.fontEdit+"\n - Settings fontView: "+n.state.fontView+"\n - Your chosen font for Edit/Append is: "+e+"\n - Your chosen font for View/Print is: "+t+"\n")}n.setState({customStyles:n.cleanCustomStyles(n.state.customStyles)},(function(){n.props.debugMode&&console.log("Your custom styles: "+n.state.customStyles);var e=n.state,t=e.customStyles,o=e.editingMode,i=e.fontEdit,s=e.fontSize,a=e.fontView,r=e.monacoEditorLanguage,d=e.saveAsDefault;n.props.onConfirm({customStyles:t,editingMode:o,fontEdit:i,fontSize:s,fontView:a,monacoEditorLanguage:r,saveAsDefault:d})}))},n.loadDefaultSettings=function(){var e=n.props.defaultSettings;n.setState(Object(c.a)({},e),(function(){n.refreshCustomStyles()}))},n.refreshCustomStyles=function(){n.setState({showCustomStyles:!n.state.showCustomStyles},(function(){n.setState({showCustomStyles:!n.state.showCustomStyles})}))},n.clearCustomStyles=function(){n.setState({customStyles:""},(function(){n.refreshCustomStyles(),n.props.debugMode&&console.log("customStyles reset: "+n.state.customStyles)}));var e=document.getElementById("customStyles");e&&(e.value="",e.focus())},n.clearFontEdit=function(){n.setState({fontEdit:""});var e=document.getElementById(Ne);e&&(e.value="",e.focus())},n.clearFontSize=function(){n.setState({fontSize:""});var e=document.getElementById(De);e&&(e.value="",e.focus())},n.clearFontView=function(){n.setState({fontView:""});var e=document.getElementById(He);e&&(e.value="",e.focus())},n.clearEditingMode=function(){n.setState({editingMode:Xe.usePlainText})},n.clearMonacoEditorLanguage=function(){n.setState({monacoEditorLanguage:"markdown"});var e=document.getElementById(Ve);e&&(e.value="markdown",e.focus())},n.clearSaveAsDefault=function(){n.setState({saveAsDefault:!1});var e=document.getElementById(Ke);e.checked=!1,e.focus()},n.clearAllSettings=function(){n.clearSaveAsDefault(),n.clearCustomStyles(),n.clearFontView(),n.clearFontEdit(),n.clearFontSize(),n.clearMonacoEditorLanguage(),n.clearEditingMode();var e=document.getElementById(Ae);e&&e.focus()},n.onKeyDown=function(e){n.props.keyMap.set(e.key,!0),(n.props.keyMap.get("Control")&&n.props.keyMap.get("s")||n.props.keyMap.get("Control")&&n.props.keyMap.get("Enter"))&&(e.preventDefault(),n.handleSubmit())},n.onKeyUp=function(e){n.props.keyMap.set(e.key,!1)},n.onBlur=function(e){n.props.keyMap.clear()},n.componentWillUnmount=function(){n.props.keyMap.clear()};var i="markdown";n.props.monacoEditorLanguage&&(i=n.props.monacoEditorLanguage);var s="usePlainText";return n.props.editingMode&&(s=n.props.editingMode),n.state={customStyles:n.props.customStyles,editingMode:s,fontEdit:n.props.fontEdit,fontSize:n.props.fontSize,fontView:n.props.fontView,monacoEditorLanguage:i,saveAsDefault:!1,showCustomStyles:!1},n}return Object(p.a)(o,[{key:"render",value:function(){var e=this.props,t=e.title,o=e.onCancel,i=e.confirmText,s=e.cancelText,a=e.helpLink;return Object(n.jsxs)("div",{id:Ge.settings,className:"sk-panel main settings",children:[Object(n.jsx)("div",{className:"sk-panel-content",children:Object(n.jsxs)("div",{className:"sk-panel-section",children:[Object(n.jsxs)("datalist",{id:"fonts",children:[Object(n.jsx)("option",{value:'SFMono-Regular, Consolas, Liberation Mono, Menlo, "Ubuntu Mono", courier, monospace;'}),Object(n.jsx)("option",{value:"Times New Roman"}),Object(n.jsx)("option",{value:"Arial"}),Object(n.jsx)("option",{value:"Arial Black"}),Object(n.jsx)("option",{value:"-apple-system"}),Object(n.jsx)("option",{value:"Bell MT"}),Object(n.jsx)("option",{value:"Baskerville Old Face"}),Object(n.jsx)("option",{value:"Bahnschrift Light"}),Object(n.jsx)("option",{value:"BlinkMacSystemFont"}),Object(n.jsx)("option",{value:"Bodoni MT"}),Object(n.jsx)("option",{value:"Calibri"}),Object(n.jsx)("option",{value:"Calibri Light"}),Object(n.jsx)("option",{value:"Calisto MT"}),Object(n.jsx)("option",{value:"Cambria"}),Object(n.jsx)("option",{value:"Candara"}),Object(n.jsx)("option",{value:"Candara Light"}),Object(n.jsx)("option",{value:"Cantarell"}),Object(n.jsx)("option",{value:"Centaur"}),Object(n.jsx)("option",{value:"Century"}),Object(n.jsx)("option",{value:"Century Gothic"}),Object(n.jsx)("option",{value:"Comic Sans MS"}),Object(n.jsx)("option",{value:"Consolas"}),Object(n.jsx)("option",{value:"Constantia"}),Object(n.jsx)("option",{value:"Courier New"}),Object(n.jsx)("option",{value:"Corbel"}),Object(n.jsx)("option",{value:"Corbel Light"}),Object(n.jsx)("option",{value:"DengXian"}),Object(n.jsx)("option",{value:"Ebrima"}),Object(n.jsx)("option",{value:"Droid Sans"}),Object(n.jsx)("option",{value:"Fira Sans"}),Object(n.jsx)("option",{value:"Gabriola"}),Object(n.jsx)("option",{value:"Garamond"}),Object(n.jsx)("option",{value:"Georgia"}),Object(n.jsx)("option",{value:"Helvetica"}),Object(n.jsx)("option",{value:"Helvetica Neue"}),Object(n.jsx)("option",{value:"Impact"}),Object(n.jsx)("option",{value:"KaTeX_AMS"}),Object(n.jsx)("option",{value:"KaTeX_Caligraphic"}),Object(n.jsx)("option",{value:"KaTeX_Fraktur"}),Object(n.jsx)("option",{value:"KaTeX_Main"}),Object(n.jsx)("option",{value:"KaTeX_Math"}),Object(n.jsx)("option",{value:"KaTeX_SansSerif"}),Object(n.jsx)("option",{value:"KaTeX_Script"}),Object(n.jsx)("option",{value:"KaTeX_Typewriter"}),Object(n.jsx)("option",{value:"Lato"}),Object(n.jsx)("option",{value:"Liberation Mono"}),Object(n.jsx)("option",{value:"Lucida Caligraphy"}),Object(n.jsx)("option",{value:"Lucida Sans"}),Object(n.jsx)("option",{value:"Menlo"}),Object(n.jsx)("option",{value:"Monaco"}),Object(n.jsx)("option",{value:"Monospace"}),Object(n.jsx)("option",{value:"New York"}),Object(n.jsx)("option",{value:"Oxygen"}),Object(n.jsx)("option",{value:"Palatino"}),Object(n.jsx)("option",{value:"Roboto"}),Object(n.jsx)("option",{value:"Sans-Serif"}),Object(n.jsx)("option",{value:"Segoe UI"}),Object(n.jsx)("option",{value:"SFMono-Regular"}),Object(n.jsx)("option",{value:"Serif"}),Object(n.jsx)("option",{value:"Sylfaen"}),Object(n.jsx)("option",{value:"Tahoma"}),Object(n.jsx)("option",{value:"Times New Roman"}),Object(n.jsx)("option",{value:"Trebuchet MS"}),Object(n.jsx)("option",{value:"Ubuntu"}),Object(n.jsx)("option",{value:"Verdana"}),Object(n.jsx)("option",{value:"Yu Gothic"})]}),Object(n.jsxs)("div",{className:"sk-panel-row title-section",children:[Object(n.jsx)("h1",{children:t}),Object(n.jsxs)("button",{id:Ge.undoDialogButton,onClick:o,title:"Close",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(m,{role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]})]}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("div",{className:"text-and-undo-button",children:[Object(n.jsxs)("p",{children:["Need help? Check out the"," ",Object(n.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"documentation"}),". To clear all settings, click undo:\xa0"]}),Object(n.jsx)(Be,{onClick:this.clearAllSettings,title:"Reset all Settings",id:Ae})]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("div",{className:"text-and-undo-button",children:[Object(n.jsx)("p",{children:"To load your personal default settings, click:\xa0"}),Object(n.jsx)("button",{onClick:this.loadDefaultSettings,title:"Load personal default settings",children:Object(n.jsx)(k,{role:"button"})})]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("div",{className:"text-and-undo-button",children:[Object(n.jsx)("p",{children:"Editing Mode: "}),Object(n.jsx)(Be,{onClick:this.clearEditingMode,title:"Reset Editing Mode to Plain Textarea"})]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("label",{children:[Object(n.jsx)("input",{id:Xe.usePlainText,name:Le,value:Xe.usePlainText,className:"radio",type:"radio",checked:this.state.editingMode===Xe.usePlainText,onChange:this.handleInputChange}),"Plain Textarea: standard textarea with spellcheck (default, mobile recommended)"]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("label",{children:[Object(n.jsx)("input",{id:Xe.useCodeMirror,name:Le,value:Xe.useCodeMirror,type:"radio",className:"radio",checked:this.state.editingMode===Xe.useCodeMirror,onChange:this.handleInputChange}),"CodeMirror: in-line formatting for Markdown"]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("label",{children:[Object(n.jsx)("input",{id:Xe.useDynamicEditor,name:Le,value:Xe.useDynamicEditor,type:"radio",className:"radio",checked:this.state.editingMode===Xe.useDynamicEditor,onChange:this.handleInputChange}),"Dynamic: live formatting for Markdown. ",Object(n.jsx)("b",{children:"warning: "}),"existing Markdown may break (not compatible with KaTeX, lists may not render properly; desktop and mobile compatible)"]})}),Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsxs)("label",{htmlFor:Xe.useMonacoEditor,children:[Object(n.jsx)("input",{id:Xe.useMonacoEditor,name:Le,value:Xe.useMonacoEditor,type:"radio",className:"radio",checked:this.state.editingMode===Xe.useMonacoEditor,onChange:this.handleInputChange}),"Monaco: syntax highlighting for Markdown and many other programming languages, intelligent auto-completion, sophisticated search and replace (desktop recommended)"]})}),this.state.editingMode===Xe.useMonacoEditor&&Object(n.jsxs)("section",{className:"sk-panel-row settings",children:[Object(n.jsxs)("label",{htmlFor:Ve,children:["Monaco Editor Language:"," "]}),Object(n.jsxs)("div",{className:"input-and-undo-button",children:[Object(n.jsx)("label",{children:Object(n.jsxs)("select",{id:Ve,name:Ve,value:this.state.monacoEditorLanguage,onChange:this.handleSelectChange,children:[Object(n.jsx)("option",{children:"abap"}),Object(n.jsx)("option",{children:"aes"}),Object(n.jsx)("option",{children:"apex"}),Object(n.jsx)("option",{children:"azcli"}),Object(n.jsx)("option",{children:"bat"}),Object(n.jsx)("option",{children:"c"}),Object(n.jsx)("option",{children:"cameligo"}),Object(n.jsx)("option",{children:"clojure"}),Object(n.jsx)("option",{children:"coffeescript"}),Object(n.jsx)("option",{children:"cpp"}),Object(n.jsx)("option",{children:"csharp"}),Object(n.jsx)("option",{children:"csp"}),Object(n.jsx)("option",{children:"css"}),Object(n.jsx)("option",{children:"dart"}),Object(n.jsx)("option",{children:"dockerfile"}),Object(n.jsx)("option",{children:"fsharp"}),Object(n.jsx)("option",{children:"go"}),Object(n.jsx)("option",{children:"graphql"}),Object(n.jsx)("option",{children:"handlebars"}),Object(n.jsx)("option",{children:"hcl"}),Object(n.jsx)("option",{children:"html"}),Object(n.jsx)("option",{children:"ini"}),Object(n.jsx)("option",{children:"java"}),Object(n.jsx)("option",{children:"javascript"}),Object(n.jsx)("option",{children:"json"}),Object(n.jsx)("option",{children:"julia"}),Object(n.jsx)("option",{children:"kotlin"}),Object(n.jsx)("option",{children:"less"}),Object(n.jsx)("option",{children:"lexon"}),Object(n.jsx)("option",{children:"lua"}),Object(n.jsx)("option",{children:"markdown"}),Object(n.jsx)("option",{children:"mips"}),Object(n.jsx)("option",{children:"msdax"}),Object(n.jsx)("option",{children:"mysql"}),Object(n.jsx)("option",{children:"objective-c"}),Object(n.jsx)("option",{children:"pascal"}),Object(n.jsx)("option",{children:"pascaligo"}),Object(n.jsx)("option",{children:"perl"}),Object(n.jsx)("option",{children:"pgsql"}),Object(n.jsx)("option",{children:"php"}),Object(n.jsx)("option",{children:"plaintext"}),Object(n.jsx)("option",{children:"postiats"}),Object(n.jsx)("option",{children:"powerquery"}),Object(n.jsx)("option",{children:"powershell"}),Object(n.jsx)("option",{children:"pug"}),Object(n.jsx)("option",{children:"python"}),Object(n.jsx)("option",{children:"r"}),Object(n.jsx)("option",{children:"razor"}),Object(n.jsx)("option",{children:"redis"}),Object(n.jsx)("option",{children:"redshift"}),Object(n.jsx)("option",{children:"restructuredtext"}),Object(n.jsx)("option",{children:"ruby"}),Object(n.jsx)("option",{children:"rust"}),Object(n.jsx)("option",{children:"sb"}),Object(n.jsx)("option",{children:"scala"}),Object(n.jsx)("option",{children:"scheme"}),Object(n.jsx)("option",{children:"scss"}),Object(n.jsx)("option",{children:"shell"}),Object(n.jsx)("option",{children:"sol"}),Object(n.jsx)("option",{children:"sql"}),Object(n.jsx)("option",{children:"st"}),Object(n.jsx)("option",{children:"swift"}),Object(n.jsx)("option",{children:"systemverilog"}),Object(n.jsx)("option",{children:"tcl"}),Object(n.jsx)("option",{children:"twig"}),Object(n.jsx)("option",{children:"typescript"}),Object(n.jsx)("option",{children:"vb"}),Object(n.jsx)("option",{children:"verilog"}),Object(n.jsx)("option",{children:"xml"}),Object(n.jsx)("option",{children:"yaml"})]})}),Object(n.jsx)(Be,{onClick:this.clearMonacoEditorLanguage,title:"Reset Monaco Editor Language to Markdown"})]})]}),Object(n.jsxs)("section",{className:"sk-panel-row settings",children:[Object(n.jsx)("label",{htmlFor:De,children:"Choose a base font size: "}),Object(n.jsxs)("div",{className:"input-and-undo-button",children:[Object(n.jsxs)("select",{id:De,name:De,value:this.state.fontSize,onChange:this.handleSelectChange,children:[Object(n.jsx)("option",{}),Object(n.jsx)("option",{children:"12px"}),Object(n.jsx)("option",{children:"13px"}),Object(n.jsx)("option",{children:"14px"}),Object(n.jsx)("option",{children:"15px"}),Object(n.jsx)("option",{children:"16px"}),Object(n.jsx)("option",{children:"17px"}),Object(n.jsx)("option",{children:"18px"}),Object(n.jsx)("option",{children:"19px"}),Object(n.jsx)("option",{children:"20px"}),Object(n.jsx)("option",{children:"21px"}),Object(n.jsx)("option",{children:"22px"}),Object(n.jsx)("option",{children:"23px"}),Object(n.jsx)("option",{children:"24px"}),Object(n.jsx)("option",{children:"25px"}),Object(n.jsx)("option",{children:"26px"}),Object(n.jsx)("option",{children:"27px"}),Object(n.jsx)("option",{children:"28px"}),Object(n.jsx)("option",{children:"29px"}),Object(n.jsx)("option",{children:"30px"})]}),Object(n.jsx)(Be,{onClick:this.clearFontSize,title:"Reset font size to 16px"})]})]}),this.state.editingMode!==Xe.useMonacoEditor&&Object(n.jsxs)("section",{className:"sk-panel-row settings",children:[Object(n.jsxs)("label",{htmlFor:Ne,children:["Choose a font for Edit/Append:"," "]}),Object(n.jsxs)("div",{className:"input-and-undo-button",children:[Object(n.jsx)("input",{list:"fonts",id:Ne,name:Ne,value:this.state.fontEdit,onChange:this.handleInputChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,type:"text"}),Object(n.jsx)(Be,{onClick:this.clearFontEdit,title:"Reset font for Edit/Append"})]})]}),this.state.editingMode!==Xe.useDynamicEditor&&Object(n.jsxs)("section",{className:"sk-panel-row settings",children:[Object(n.jsxs)("label",{htmlFor:He,children:["Choose a font for View/Print:"," "]}),Object(n.jsxs)("div",{className:"input-and-undo-button",children:[Object(n.jsx)("input",{list:"fonts",id:He,name:He,value:this.state.fontView,onChange:this.handleInputChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,type:"text"}),Object(n.jsx)(Be,{onClick:this.clearFontView,title:"Reset font for View/Print"})]})]}),Object(n.jsxs)("section",{className:"sk-panel-row settings custom-css",children:[Object(n.jsx)(Ce,{caption:"Add custom styles (CSS):",className:"chevron-toggle-button",condition:this.state.showCustomStyles,onClick:this.toggleShowCustomStyles,title:"Toggle show add custom styles (CSS)"}),this.state.showCustomStyles&&Object(n.jsx)(Be,{className:"custom-css-undo-button",onClick:this.clearCustomStyles,title:"Reset custom styles (CSS)"})]}),this.state.showCustomStyles&&Object(n.jsx)("section",{className:"sk-panel-row settings",children:Object(n.jsx)(H,{tabSize:2,language:"css",text:this.state.customStyles,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,saveText:this.saveText})}),Object(n.jsxs)("section",{className:"sk-panel-row settings",children:[Object(n.jsxs)("label",{htmlFor:Ke,children:["Save these settings as your personal default:"," "]}),Object(n.jsxs)("div",{className:"input-and-undo-button",children:[Object(n.jsx)("label",{className:"checkbox-input-label",children:Object(n.jsx)("input",{id:Ke,name:Ke,type:"checkbox",checked:this.state.saveAsDefault,onChange:this.handleInputChange})}),Object(n.jsx)(Be,{onClick:this.clearSaveAsDefault,title:"Clear save as default"})]})]})]})}),Object(n.jsx)("div",{className:"sk-panel-footer",children:Object(n.jsxs)("div",{className:"sk-button-group stretch",children:[Object(n.jsx)("button",{className:"sk-button neutral",onClick:o,children:Object(n.jsx)("div",{children:s})}),Object(n.jsx)("button",{className:"sk-button info",onClick:this.handleSubmit,children:Object(n.jsx)("div",{children:i})})]})})]})}}]),o}(s.a.Component),Re=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).state={hasError:!1},n}return Object(p.a)(o,[{key:"componentDidCatch",value:function(e,t){console.log("Error:",e,"\nError Info:",t),this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){var e,t;return this.state.hasError?Object(n.jsx)("div",{className:"sk-panel main",children:Object(n.jsx)("div",{className:"sk-panel-content view",children:Object(n.jsxs)("div",{id:"errorBoundary",children:[Object(n.jsx)("h1",{children:"Something went wrong."}),Object(n.jsxs)("p",{children:["Error Name: ",Object(n.jsx)("code",{children:null===(e=this.state.error)||void 0===e?void 0:e.name})]}),Object(n.jsxs)("p",{children:["Error Message: ",Object(n.jsx)("code",{children:null===(t=this.state.error)||void 0===t?void 0:t.message})]}),Object(n.jsx)("p",{children:"Please see the developer console for details."}),Object(n.jsx)("hr",{}),Object(n.jsxs)("p",{children:["Errors such as ",Object(n.jsx)("code",{children:"TypeError"})," and"," ",Object(n.jsx)("code",{children:"Cannot read property 'type' of undefined"})," usually occur when the editor is unable to process and render your notes because it contains incorrect or incomplete HTML. If you are writing in HTML, then please continue to write and refresh the View Mode when the HTML tags are closed."]}),Object(n.jsxs)("p",{children:["If you are using the Dynamic editing mode, then please switch to the Plain Textarea or Monaco editing modes in the Settings",Object(n.jsxs)("button",{className:"inline-text-and-svg",onClick:Y,title:"Open Settings",children:[Object(n.jsx)("span",{children:"\xa0"}),Object(n.jsx)(w,{role:"button"}),Object(n.jsx)("span",{children:"\xa0"})]}),"and remove or fix the text that is causing the error."]}),Object(n.jsxs)("p",{children:["If the error persists or is not related to the content of your note, then please"," ",Object(n.jsx)("a",{href:"https://github.com/TheodoreChu/append-editor/issues",target:"_blank",rel:"noopener noreferrer",children:"report the issue on GitHub"})," ","and we will try to fix it."," ",Object(n.jsx)("span",{role:"img","aria-label":"smile emoji",children:"\ud83d\ude42"})]})]})})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),o}(s.a.Component),We=o(457),_e=o.n(We),Ze=o(458),Ye=o.n(Ze);!function(e){e.chevronToggleButton="menu-button chevron-toggle-button",e.menuButton="menu-button",e.on=" on",e.off=" off"}(ye||(ye={}));var Ge,qe,Xe,Qe=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).clearTooltipTimer=void 0,n.resetMessageTimer=function(){n.clearTooltipTimer&&clearTimeout(n.clearTooltipTimer),n.clearTooltipTimer=setTimeout((function(){n.setState({displayMessageEdit:!1,displayMessageShare:!1})}),5e3)},n.showMessageEdit=function(){n.setState({displayMessageEdit:!0,displayMessageShare:!1},(function(){n.resetMessageTimer()}))},n.showMessageShare=function(){n.setState({displayMessageEdit:!1,displayMessageShare:!0},(function(){n.resetMessageTimer()}))},n.copyToClipboard=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),n.showMessageShare(),t.remove()},n.copyText=function(){n.props.text?n.setState({message:"Copied Text to clipboard"},(function(){n.copyToClipboard(n.props.text)})):n.setState({message:"No text to copy. Your note is empty"},(function(){n.showMessageShare()}))},n.copyHtml=function(){if(n.props.viewMode)if(n.props.text){var e,t=document.getElementById("renderedNote");(null===t||void 0===t||null===(e=t.firstElementChild)||void 0===e?void 0:e.innerHTML)&&(n.setState({message:"Copied HTML to clipboard"}),n.copyToClipboard(null===t||void 0===t?void 0:t.firstElementChild.innerHTML))}else n.setState({message:"No HTML to copy. Your note is empty"},(function(){n.showMessageShare()}));else n.setState({message:"Unable to copy HTML. Please turn View Mode on"},(function(){return n.showMessageShare()}))},n.formatText=function(){"markdown"!==n.props.monacoEditorLanguage&&n.props.editingMode===Xe.useMonacoEditor?n.setState({message:"Error: Your Monaco Editor language is not Markdown. Formatting is only available for Markdown"},(function(){n.showMessageEdit()})):n.props.text?n.setState({message:"Formatted Markdown text with Prettier"},(function(){try{var e=_e.a.format(n.props.text,{parser:"markdown",plugins:[Ye.a]});n.props.saveText(e),n.props.refreshEdit(),n.props.refreshView(),n.showMessageEdit()}catch(t){n.setState({message:"Error formatting text: "+t},(function(){n.showMessageEdit()})),console.log("Error formatting text: "+t)}})):n.setState({message:"No text to format. Your note is empty"},(function(){n.showMessageEdit()}))},n.uncheckBoxes=function(){var e=n.props.text,t=new RegExp(/- \[x\]/gm);if(t.test(e)){var o=e.replace(t,"- [ ]");n.props.saveText(o),n.props.refreshEdit(),n.props.refreshView(),n.setState({message:"Unchecked all checkboxes"},(function(){n.showMessageEdit()}))}else n.setState({message:"No checked checkboxes found"},(function(){n.showMessageEdit()}))},n.state={message:"",displayMessageEdit:!1,displayMessageShare:!1},n}return Object(p.a)(o,[{key:"render",value:function(){return[Object(n.jsx)("div",{className:"menu-overlay",onClick:this.props.toggleShowMenu},"menu-overlay"),Object(n.jsxs)("div",{id:Ge.menu,children:[Object(n.jsx)(Ce,{caption:"Appearance",className:ye.chevronToggleButton,condition:this.props.showMenuOptionsView,onClick:this.props.toggleShowMenuOptionsView,title:"Toggle show options for the appearance of the editor"},"appearance"),this.props.showMenuOptionsView&&[Object(n.jsx)(Se,{caption:"Borderless",className:ye.menuButton+(this.props.borderlessMode?ye.on:ye.off),condition:this.props.borderlessMode,messageOn:"on",messageOff:"off",onClick:this.props.toggleBorderlessMode,title:"Toggle Borderless Mode. Blends borders and margins into the background for a cleaner look"},"borderless"),Object(n.jsx)(Se,{caption:"Fixed Height",className:ye.menuButton+(this.props.fixedHeightMode?ye.on:ye.off),condition:this.props.fixedHeightMode,messageOn:"on",messageOff:"off",onClick:this.props.toggleFixedHeightMode,title:"Toggle Fixed Height Mode. Limits the height of the content container for easier side-by-side editing"},"fixed-height"),Object(n.jsx)(Se,{caption:"Full Width",className:ye.menuButton+(this.props.fullWidthMode?ye.on:ye.off),condition:this.props.fullWidthMode,messageOn:"on",messageOff:"off",onClick:this.props.toggleFullWidthMode,title:"Toggle Full Width Mode for unrestricted editing. Borderless mode plus unset maximum container widths"},"full-width"),Object(n.jsx)(Se,{caption:"Horizontal Overflow",className:ye.menuButton+(this.props.overflowMode?ye.on:ye.off),condition:this.props.overflowMode,messageOn:"visible",messageOff:"auto",onClick:this.props.toggleOverflowMode,title:"Toggle Horizontal Overflow. Visible is great for editing and viewing large tables and preformatted text. Works best with Full Width mode"},"horizontal-overflow")],Object(n.jsx)(Ce,{caption:"Share",className:ye.chevronToggleButton,condition:this.props.showMenuOptionsShare,onClick:this.props.toggleShowMenuOptionsShare,title:"Toggle show options to share your note"},"share"),this.props.showMenuOptionsShare&&[Object(n.jsx)(Ee,{caption:"Copy note text",className:ye.menuButton,fill:"var(--sn-stylekit-success-color)",onClick:this.copyText,title:"Copy the text of your note to your device's clipboard"},"copy-note-text"),Object(n.jsx)(Ee,{caption:"Copy rendered HTML",className:ye.menuButton,fill:"var(--sn-stylekit-success-color)",onClick:this.copyHtml,title:"Copy the rendered HTML from your note text to your device's clipboard"},"copy-rendered-html"),Object(n.jsx)(Te,{caption:"Print rendered note",className:"menu-button off",fill:"var(--sn-stylekit-foreground-color)",id:Ge.printButton,onClick:this.props.onConfirmPrintUrl,title:"Print rendered note. Works best on the web app in Chromium browsers (e.g., MS Edge, Google Chrome). Not available on mobile"},"print-rendered-note"),Object(n.jsx)("div",{className:"notification ".concat(this.state.displayMessageShare?"visible":"hidden"),children:Object(n.jsx)("p",{children:Object(n.jsx)("b",{children:this.state.message})})},"notification")],Object(n.jsx)(Ce,{caption:"Actions",className:ye.chevronToggleButton,condition:this.props.showMenuOptionsEdit,onClick:this.props.toggleShowMenuOptionsEdit,title:"Toggle show actions to quickly format and edit your note"}),this.props.showMenuOptionsEdit&&[Object(n.jsx)(ke,{caption:"Format Markdown text",className:ye.menuButton,fill:"var(--sn-stylekit-warning-color)",onClick:this.formatText,title:"Format Markdown text with Prettier. WARNING: this may cause undesired changes to your note text. Use the Note History feature to revert unwanted changes"},"format-markdown-text"),Object(n.jsx)(ke,{caption:"Uncheck all checkboxes",className:ye.menuButton,fill:"var(--sn-stylekit-danger-color)",onClick:this.uncheckBoxes,title:"Uncheck all checkboxes. DANGER: this may cause undesired changes to your note text. Use the Note History feature to revert unwanted changes"},"uncheck-all-checkboxes"),Object(n.jsx)("div",{className:"notification ".concat(this.state.displayMessageEdit?"visible":"hidden"),children:Object(n.jsx)("p",{children:Object(n.jsx)("b",{children:this.state.message})})},"notification")],Object(n.jsx)("div",{className:"extra-space"})]},Ge.menu)]}}]),o}(s.a.Component),Je=o(113),$e=o.n(Je);o(1176),o(1181),o(1182),o(1183),o(447),o(1185),o(311),o(310),o(1186);!function(e){e.appendButton="appendButton",e.appendText="appendText",e.appendTextArea="appendTextArea",e.appendix="appendix",e.content="content",e.edit="edit",e.editButton="editButton",e.editTextArea="editTextArea",e.header="header",e.helpButton="helpButton",e.menu="menu",e.menuButton="menuButton",e.newLine="newLine",e.newParagraph="newParagraph",e.printButton="printButton",e.renderedNote="renderedNote",e.scrollToBottomButton="scrollToBottomButton",e.scrollToTopButton="scrollToTopButton",e.scrollToBottomButtonHeader="scrollToBottomButtonHeader",e.scrollToTopButtonHeader="scrollToTopButtonHeader",e.settings="settings",e.settingsButton="settingsButton",e.undoDialogButton="undoDialogButton",e.view="view",e.viewButton="viewButton"}(Ge||(Ge={})),function(e){e.fixed="fixed",e.fixedHeader="fixed-header",e.focused="focused"}(qe||(qe={})),function(e){e.usePlainText="usePlainText",e.useCodeMirror="useCodeMirror",e.useDynamicEditor="useDynamicEditor",e.useMonacoEditor="useMonacoEditor"}(Xe||(Xe={}));var et={text:"",appendNewLine:!1,appendNewParagraph:!1,appendMode:!1,appendRows:8,appendText:"",bypassDebounce:!1,confirmPrintUrl:!1,customStyles:"",defaultSettings:{customStyles:"",editingMode:"usePlainText",fontEdit:"",fontSize:"",fontView:"",monacoEditorLanguage:"markdown"},fontEdit:"",fontSize:"",fontView:"",monacoEditorLanguage:"markdown",printURL:!0,refreshEdit:!1,refreshView:!1,showAppendix:!0,showHeader:!0,showHelp:!1,showDiff:!1,settingsMode:!1},tt=0,ot=!1,nt=new Map,it=function(e){Object(h.a)(o,e);var t=Object(u.a)(o);function o(e){var n;return Object(l.a)(this,o),(n=t.call(this,e)).editorKit=void 0,n.refreshEditorTimer=void 0,n.saveTimer=void 0,n.componentDidMount=function(){n.onViewMode(),n.loadDefaultMenuState(),document.addEventListener("scroll",n.onScroll)},n.componentWillUnmount=function(){document.removeEventListener("scroll",n.onScroll)},n.configureEditorKit=function(){var e=new j.EditorKitDelegate({setEditorRawText:function(e){n.setState(Object(c.a)(Object(c.a)({},et),{},{bypassDebounce:!0,text:e}),(function(){me.cancel(),me(e),me.flush(),ve.cancel(),me(e)&&(ve(e),ve.flush()),n.state.savingEditorOptions||(n.loadEditorOptions(),n.loadDefaultSettings(),n.loadMetaData()),setTimeout((function(){n.setState({bypassDebounce:!1})}),1e3)}))},clearUndoHistory:function(){},getElementsBySelector:function(){return[]}});n.editorKit=new j.EditorKit({delegate:e,mode:"plaintext",supportsFilesafe:!1})},n.refreshEditor=function(){me(n.state.text)?(n.refreshEditorTimer&&clearTimeout(n.refreshEditorTimer),n.refreshEditorTimer=setTimeout((function(){n.state.savingEditorOptions||(n.refreshEdit(),n.refreshView(),n.activateStyles())}),20)):(n.refreshEditorTimer&&clearTimeout(n.refreshEditorTimer),n.refreshEditorTimer=setTimeout((function(){n.state.savingEditorOptions||(n.refreshEdit(),n.refreshView(),n.activateStyles())}),10))},n.loadDefaultSettings=function(){try{var e=n.editorKit.internal.componentRelay.getComponentDataValueForKey("defaultSettings"),t=n.editorKit.internal.componentRelay.getComponentDataValueForKey("editingMode");if(void 0!==e){var o=JSON.parse(e);ot,n.setState({customStyles:o.customStyles,editingMode:o.editingMode,fontEdit:o.fontEdit,fontSize:o.fontSize,fontView:o.fontView,monacoEditorLanguage:o.monacoEditorLanguage,defaultSettings:o},(function(){n.refreshEditor()}))}else if(void 0!==t){var i=n.editorKit.internal.componentRelay.getComponentDataValueForKey("customStyles"),s=n.editorKit.internal.componentRelay.getComponentDataValueForKey("fontEdit"),a=n.editorKit.internal.componentRelay.getComponentDataValueForKey("fontSize"),r=n.editorKit.internal.componentRelay.getComponentDataValueForKey("fontView"),d=n.editorKit.internal.componentRelay.getComponentDataValueForKey("monacoEditorLanguage");ot,n.setState({customStyles:i,editingMode:t,fontEdit:s,fontSize:a,fontView:r,monacoEditorLanguage:d,defaultSettings:{customStyles:i,editingMode:t,fontEdit:s,fontSize:a,fontView:r,monacoEditorLanguage:d}},(function(){n.refreshEditor()}))}else n.refreshEditor()}catch(c){console.log("Error loading default settings:",c)}},n.loadEditorOptions=function(){try{var e=n.editorKit.internal.componentRelay.getComponentDataValueForKey("menuOptions");if(void 0!==e){var t=JSON.parse(e);n.setState({borderlessMode:t.borderlessMode,fixedHeightMode:t.fixedHeightMode,fullWidthMode:t.fullWidthMode,overflowMode:t.overflowMode},(function(){n.state.fixedHeightMode?n.addFixedHeightToBody():n.removeFixedHeightFromBody(),n.refreshEditor()}))}}catch(o){console.log("Error loading editor options:",o)}},n.loadMetaData=function(){n.editorKit.internal.componentRelay.streamContextItem((function(e){(e.content.appendEditorCustomStyles||e.content.appendEditorEditingMode||e.content.appendEditorFontEdit||e.content.appendEditorFontSize||e.content.appendEditorFontView||e.content.appendEditorMonacoEditorLanguage)&&n.setState({customStyles:e.content.appendEditorCustomStyles,editingMode:e.content.appendEditorEditingMode,fontEdit:e.content.appendEditorFontEdit,fontSize:e.content.appendEditorFontSize,fontView:e.content.appendEditorFontView,monacoEditorLanguage:e.content.appendEditorMonacoEditorLanguage},(function(){n.refreshEditor()})),(e.content.appendNewLine||e.content.appendNewParagraph)&&n.setState({appendNewLine:e.content.appendNewLine,appendNewParagraph:e.content.appendNewParagraph}),n.setState({appendText:e.content.appendText},(function(){n.state.text||n.state.appendText||n.state.editMode||n.onEditMode()}))}))},n.saveText=function(e){n.saveNote(e),n.setState({text:e},(function(){n.state.editingMode===Xe.useDynamicEditor?n.refreshView():n.state.viewMode&&me(e)&&(n.saveTimer&&clearTimeout(n.saveTimer),n.saveTimer=setTimeout((function(){if(n.state.fixedHeightMode){var e=document.getElementById(Ge.view);if(e){var t=e.scrollTop;n.refreshView();var o=document.getElementById(Ge.view);o&&(o.scrollTop=t)}else n.refreshView()}else n.refreshView()}),550))}))},n.saveNote=function(e){try{n.editorKit.onEditorValueChanged(e)}catch(t){console.log("Error saving note:",t)}},n.appendTextToNote=function(){if(n.state.appendText){var e=n.state.appendText,t="";t=n.state.appendNewParagraph?" \n\n"+e:n.state.appendNewLine?" \n"+e:e,n.setState({text:n.state.text.concat(t),appendText:""},(function(){var e=n.editorKit.internal.note;e&&n.editorKit.internal.componentRelay.saveItemWithPresave(e,(function(){e.content.text=n.state.text,e.content.appendText=n.state.appendText})),n.refreshEdit(),n.state.editingMode===Xe.useDynamicEditor?(n.refreshView(),setTimeout((function(){n.skipToBottom()}),50)):me(n.state.text)?setTimeout((function(){n.refreshView(),n.skipToBottom()}),550):n.skipToBottom()}))}n.state.appendCodeMirror&&n.state.editingMode===Xe.useCodeMirror&&n.state.appendCodeMirror.setValue("")},n.autoSaveAppendText=function(e){n.setState({appendText:e});try{var t=n.editorKit.internal.note;t&&n.editorKit.internal.componentRelay.saveItemWithPresave(t,(function(){t.content.appendText=e}))}catch(o){console.log("Error saving appendText:",o)}},n.autoSaveCheckBoxes=function(e,t){n.setState({appendNewLine:e,appendNewParagraph:t});try{var o=n.editorKit.internal.note;o&&n.editorKit.internal.componentRelay.saveItemWithPresave(o,(function(){o.content.appendNewLine=e,o.content.appendNewParagraph=t}))}catch(i){console.log("Error saving checkboxes:",i)}},n.refreshEdit=function(){n.setState({refreshEdit:!n.state.refreshEdit},(function(){document.getElementById(Ge.editTextArea)&&n.state.editingMode===Xe.useCodeMirror&&n.configureCodeMirror(Ge.editTextArea)}))},n.refreshView=function(){n.setState({refreshView:!n.state.refreshView})},n.configureCodeMirror=function(e){if(e===Ge.editTextArea){ot;var t=document.getElementById(e);if(t){var o=$e.a.fromTextArea(t,{autocorrect:!0,autocapitalize:!0,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList","Alt-F":"findPersistent"},lineNumbers:!1,lineWrapping:!0,mode:"gfm",spellcheck:!0,styleSelectedText:!0,tabindex:0,theme:"default",value:n.state.text});o.setSize("100%","100%"),o.on("change",(function(){var e=o.getValue();o.save(),n.saveText(e)})),o.on("blur",(function(e,t){var o=document.getElementById(Ge.content);o&&o.classList.remove(qe.focused)})),o.on("focus",(function(e,t){var o=document.getElementById(Ge.content);o&&o.classList.add(qe.focused)})),o.on("keydown",(function(e,t){n.onKeyDown(t),n.onKeyDownEditTextArea(t),n.onKeyDownTextArea(t)})),o.on("keyup",(function(e,t){n.onKeyUp(t)})),n.setState({editCodeMirror:o})}}else if(e===Ge.appendTextArea){var i=document.getElementById(Ge.appendTextArea);if(i){var s=$e.a.fromTextArea(i,{autocorrect:!0,autocapitalize:!0,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList","Alt-F":"findPersistent"},lineNumbers:!1,lineWrapping:!0,mode:"gfm",spellcheck:!0,styleSelectedText:!0,tabindex:0,theme:"default",value:n.state.appendText});s.setSize("100%","100%"),s.on("change",(function(){var e=s.getValue();s.save(),n.autoSaveAppendText(e)})),s.on("keydown",(function(e,t){n.onKeyDown(t),n.onKeyDownAppendTextArea(t),n.onKeyDownTextArea(t)})),s.on("keyup",(function(e,t){n.onKeyUp(t)})),n.setState({appendCodeMirror:s})}}},n.onEditMode=function(){n.state.editMode?n.state.editMode&&(n.state.editingMode!==Xe.useMonacoEditor&&n.setState({viewMode:!0}),n.state.editCodeMirror&&n.state.editCodeMirror.toTextArea(),n.setState({editMode:!1},(function(){if(!n.state.appendMode){var e=document.getElementById(Ge.editButton);e&&e.focus()}}))):(n.state.appendMode&&!n.state.appendText&&n.setState({appendMode:!1}),n.setState({editMode:!0},(function(){var e=document.getElementById(Ge.editTextArea);e&&(e.focus(),n.state.editingMode===Xe.useCodeMirror&&n.configureCodeMirror(Ge.editTextArea))})),n.state.viewMode&&n.state.editingMode===Xe.useDynamicEditor&&n.onViewMode())},n.onAppendMode=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n.state.appendMode?n.state.appendMode&&(n.state.appendCodeMirror&&n.state.appendCodeMirror.toTextArea(),n.setState({appendMode:!1},(function(){if(n.state.editingMode===Xe.useMonacoEditor&&n.refreshEdit(),o){var e=document.getElementById(Ge.appendButton);e&&e.focus()}}))):(t&&n.setState({editMode:!1}),n.setState({appendMode:!0},(function(){if(e&&n.scrollToBottom(),o){var t=document.getElementById(Ge.appendTextArea);t&&(t.focus(),n.state.editingMode===Xe.useCodeMirror&&n.configureCodeMirror(Ge.appendTextArea))}})))},n.onViewMode=function(){n.state.viewMode||(n.setState({viewMode:!0},(function(){n.state.editingMode===Xe.useMonacoEditor&&n.refreshEdit(),n.state.appendMode&&!n.state.editMode&&n.skipToBottom()})),n.state.editMode&&n.state.editingMode===Xe.useDynamicEditor&&n.onEditMode()),n.state.viewMode&&n.setState({viewMode:!1},(function(){n.state.editingMode===Xe.useMonacoEditor&&n.refreshEdit(),n.state.editMode||n.state.appendMode||n.onEditMode()}))},n.toggleShowHelp=function(){n.state.showHelp?n.setState({showHelp:!1},(function(){n.refreshView();var e=document.getElementById(Ge.helpButton);e&&e.focus()})):n.setState({showHelp:!0},(function(){n.state.viewMode?n.state.viewMode&&n.refreshView():n.onViewMode();var e=document.getElementById(Ge.helpButton);e&&e.focus(),setTimeout((function(){n.scrollToTop()}),50)}))},n.toggleShowMenu=function(){n.setState({showMenu:!n.state.showMenu},(function(){var e=document.getElementById(Ge.menuButton);e&&e.focus()}))},n.loadDefaultMenuState=function(){n.setState({showMenuOptionsEdit:!1,showMenuOptionsShare:!0,showMenuOptionsView:!0})},n.toggleShowMenuOptionsEdit=function(){n.setState({showMenuOptionsEdit:!n.state.showMenuOptionsEdit})},n.toggleShowMenuOptionsShare=function(){n.setState({showMenuOptionsShare:!n.state.showMenuOptionsShare})},n.toggleShowMenuOptionsView=function(){n.setState({showMenuOptionsView:!n.state.showMenuOptionsView})},n.toggleBorderlessMode=function(){n.setState({borderlessMode:!n.state.borderlessMode},(function(){n.activateFixedHeader(),n.saveMenuOptions()}))},n.toggleFixedHeightMode=function(){n.setState({fixedHeightMode:!n.state.fixedHeightMode},(function(){n.state.fixedHeightMode?n.addFixedHeightToBody():n.removeFixedHeightFromBody(),n.activateFixedHeader(),n.saveMenuOptions()}))},n.addFixedHeightToBody=function(){n.skipToTop(),document.body.className="fixed-height"},n.removeFixedHeightFromBody=function(){document.body.classList.remove("fixed-height")},n.toggleFullWidthMode=function(){n.setState({fullWidthMode:!n.state.fullWidthMode},(function(){n.activateFixedHeader(),n.saveMenuOptions()}))},n.toggleOverflowMode=function(){n.setState({overflowMode:!n.state.overflowMode},(function(){n.activateFixedHeader(),n.saveMenuOptions()}))},n.saveMenuOptions=function(){var e;e={borderlessMode:n.state.borderlessMode,fixedHeightMode:n.state.fixedHeightMode,fullWidthMode:n.state.fullWidthMode,overflowMode:n.state.overflowMode},n.saveEditorOption("menuOptions",JSON.stringify(e))},n.saveEditorOption=function(e,t){n.setState({savingEditorOptions:!0},(function(){try{n.editorKit.internal.componentRelay.setComponentDataValueForKey(e,t),setTimeout((function(){n.setState({savingEditorOptions:!1},(function(){n.loadDefaultSettings(),n.loadMetaData()}))}),250)}catch(o){console.log("Error saving editor option. Your optionKey:",e,"\n - Your optionValue: ",t,"\n - The error: ",o),n.setState({savingEditorOptions:!1},(function(){n.refreshEditor(),n.loadDefaultSettings(),n.loadMetaData()}))}}))},n.onSettingsMode=function(){n.state.settingsMode?n.state.settingsMode&&n.setState(Object(c.a)(Object(c.a)({},n.state.currentState),{},{settingsMode:!1}),(function(){n.state.fixedHeightMode&&n.addFixedHeightToBody(),n.refreshEdit();var e=document.getElementById(Ge.settingsButton);e&&e.focus()})):(n.removeFixedHeightFromBody(),n.removeFixedHeader(),n.setState({currentState:n.state},(function(){n.setState({appendMode:!1,editMode:!1,fullWidthMode:!1,fixedHeightMode:!1,settingsMode:!0,showAppendix:!1,showHeader:!1,showMenu:!1,viewMode:!1},(function(){var e=document.getElementById(Ge.undoDialogButton);e&&e.focus()}))})))},n.onSaveSettings=function(e){var t=e.customStyles,o=e.editingMode,i=e.fontEdit,s=e.fontSize,a=e.fontView,r=e.monacoEditorLanguage,d=e.saveAsDefault;n.setState(Object(c.a)(Object(c.a)({},n.state.currentState),{},{customStyles:t,editingMode:o,fontEdit:i,fontSize:s,fontView:a,monacoEditorLanguage:r,showAppendix:!0,showHeader:!0,settingsMode:!1}),(function(){n.state.fixedHeightMode&&n.addFixedHeightToBody(),n.refreshEditor();var e=document.getElementById(Ge.settingsButton);e&&e.focus()}));var l=n.editorKit.internal.note;l&&n.editorKit.internal.componentRelay.saveItemWithPresave(l,(function(){l.content.appendEditorCustomStyles=t,l.content.appendEditorEditingMode=o,l.content.appendEditorFontEdit=i,l.content.appendEditorFontSize=s,l.content.appendEditorFontView=a,l.content.appendEditorMonacoEditorLanguage=r})),d&&n.setState({defaultSettings:{customStyles:t,editingMode:o,fontEdit:i,fontSize:s,fontView:a,monacoEditorLanguage:r}},(function(){n.saveEditorOption("defaultSettings",JSON.stringify(n.state.defaultSettings))}))},n.activateStyles=function(){var e=document.getElementById("customStyleSheet");if(e){var t=e.parentNode;t&&t.removeChild(e)}var o="";n.state.fontSize&&(o=".CodeMirror, .DynamicEditor, .MonacoEditorContainer, .ProseMirror, #editTextArea, #appendTextArea, #renderedNote {font-size: "+n.state.fontSize+";}\n");var i="";n.state.fontEdit&&(i=".CodeMirror, .DynamicEditor, .ProseMirror, #editTextArea, #appendTextArea {font-family: "+n.state.fontEdit+";}\n");var s="";if(n.state.fontView&&(s="#renderedNote {font-family: "+n.state.fontView+";}\n"),n.state.customStyles||n.state.fontEdit||n.state.fontSize||n.state.fontView){var a=document.createElement("style");a.setAttribute("id","customStyleSheet"),a.innerHTML=o+i+s+n.state.customStyles,document.body.appendChild(a)}},n.onCancelPrint=function(){n.setState({confirmPrintUrl:!1},(function(){var e=document.getElementById(Ge.printButton);e&&e.focus()}))},n.onConfirmPrintUrl=function(){n.state.viewMode||n.onViewMode(),n.setState({confirmPrintUrl:!0},(function(){var e=document.getElementById(Ge.undoDialogButton);e&&e.focus()}))},n.onPrintUrlTrue=function(){n.setState({confirmPrintUrl:!1,printURL:!0},(function(){n.printRenderedHtml()}))},n.onPrintUrlFalse=function(){n.setState({confirmPrintUrl:!1,printURL:!1},(function(){n.printRenderedHtml()}))},n.printRenderedHtml=function(){window.print();var e=document.getElementById(Ge.printButton);e&&e.focus()},n.goDown=function(){if(document.body.scrollTop=1e7,n.state.editMode){var e=document.getElementById(Ge.editTextArea);e&&(e.scrollTop=1e7)}if(n.state.appendMode){var t=document.getElementById(Ge.appendTextArea);t&&(t.scrollTop=1e7)}if(n.state.fixedHeightMode){var o=document.getElementById(Ge.view);o&&(o.scrollTop=1e7);var i=document.getElementById(Ge.edit);i&&(i.scrollTop=1e7);var s=document.getElementsByClassName("CodeMirror-vscrollbar")[0];s&&(s.scrollTop=1e7)}},n.scrollToBottom=function(){n.goDown();var e=document.getElementById(Ge.appendix);e&&e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},n.skipToBottom=function(){n.goDown();var e=document.getElementById(Ge.appendix);e&&e.scrollIntoView({behavior:"auto",block:"end",inline:"nearest"})},n.goUp=function(){if(document.body.scrollTop=0,n.state.editMode){var e=document.getElementById(Ge.editTextArea);e&&(e.scrollTop=0)}if(n.state.appendMode){var t=document.getElementById(Ge.appendTextArea);t&&(t.scrollTop=0)}if(n.state.fixedHeightMode){var o=document.getElementById(Ge.view);o&&(o.scrollTop=0);var i=document.getElementById(Ge.edit);i&&(i.scrollTop=0);var s=document.getElementsByClassName("CodeMirror-vscrollbar")[0];s&&(s.scrollTop=0)}},n.scrollToTop=function(){n.goUp();var e=document.getElementById("top");e&&e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},n.skipToTop=function(){n.goUp();var e=document.getElementById("top");e&&e.scrollIntoView({behavior:"auto",block:"start",inline:"nearest"})},n.onKeyDown=function(e){nt.set(e.key,!0),nt.get("Control")&&nt.get("e")?(e.preventDefault(),n.onEditMode()):nt.get("Control")&&!nt.get("Alt")&&(nt.get("u")||nt.get("m"))?(e.preventDefault(),n.onAppendMode()):nt.get("Control")&&!nt.get("Alt")&&nt.get("p")?(e.preventDefault(),n.onViewMode()):nt.get("Control")&&nt.get(".")?(e.preventDefault(),n.setState({appendRows:n.state.appendRows+1})):nt.get("Control")&&nt.get(",")?(e.preventDefault(),n.state.appendRows>5&&n.setState({appendRows:n.state.appendRows-1})):nt.get("Control")&&nt.get("<")?(e.preventDefault(),n.setState({appendMode:!1,editMode:!1,viewMode:!1},(function(){n.onEditMode()}))):nt.get("Control")&&nt.get(">")?(e.preventDefault(),n.setState({appendMode:!1,editMode:!1,viewMode:!1},(function(){n.onAppendMode()}))):nt.get("Control")&&nt.get("[")?(e.preventDefault(),n.skipToTop()):nt.get("Control")&&nt.get("]")?(e.preventDefault(),n.skipToBottom()):nt.get("Control")&&!nt.get("Alt")&&!nt.get("Shift")&&nt.get("w")&&nt.delete("w")},n.onKeyDownAppendTextArea=function(e){if(nt.get("Escape"))e.preventDefault(),nt.delete("Escape"),n.onAppendMode();else if(nt.get("Control")&&nt.get("Enter"))e.preventDefault(),n.state.editingMode===Xe.useCodeMirror&&n.appendTextToNote();else if(nt.get("Control")&&nt.get("s"))e.preventDefault(),n.state.editingMode===Xe.useCodeMirror&&n.appendTextToNote();else if(nt.get("Control")&&!nt.get("Shift")&&nt.get("Alt")&&nt.get("n")){e.preventDefault();var t=document.getElementById(Ge.newLine);t&&t.click()}else if(nt.get("Control")&&!nt.get("Shift")&&nt.get("Alt")&&nt.get("p")){e.preventDefault();var o=document.getElementById(Ge.newParagraph);o&&o.click()}},n.onKeyDownEditTextArea=function(e){nt.get("Escape")&&(e.preventDefault(),nt.set("Escape",!1),n.onEditMode())},n.onKeyDownTextArea=function(e){nt.get("Control")&&nt.get("b")?(e.preventDefault(),document.execCommand("insertText",!1,"**")):nt.get("Control")&&nt.get("h")?(e.preventDefault(),document.execCommand("insertText",!1,"#")):nt.get("Control")&&nt.get("Alt")&&nt.get("i")?(e.preventDefault(),document.execCommand("insertText",!1,"![]()")):nt.get("Control")&&nt.get("i")?(e.preventDefault(),document.execCommand("insertText",!1,"*")):nt.get("Control")&&nt.get("Alt")&&nt.get("k")?(e.preventDefault(),document.execCommand("insertText",!1,"`")):nt.get("Control")&&nt.get("k")?(e.preventDefault(),document.execCommand("insertText",!1,"[]()")):nt.get("Control")&&nt.get("Alt")&&nt.get("l")?(e.preventDefault(),document.execCommand("insertText",!1,"\n1. ")):nt.get("Control")&&nt.get("l")?(e.preventDefault(),document.execCommand("insertText",!1,"\n- ")):nt.get("Control")&&nt.get("Alt")&&nt.get("u")?(e.preventDefault(),document.execCommand("insertText",!1,"~~")):(nt.get("Control")&&nt.get("q")||nt.get("Control")&&nt.get("'")||nt.get("Control")&&nt.get('"'))&&(e.preventDefault(),document.execCommand("insertText",!1,"\n> "))},n.onKeyUp=function(e){nt.delete(e.key)},n.onBlur=function(e){nt.clear()},n.onScroll=function(e){n.state.settingsMode||(window.scrollYtt&&!n.state.showMenu&&(void 0!==n.state.editingMode&&n.state.editingMode!==Xe.usePlainText&&n.state.editingMode!==Xe.useCodeMirror||!n.state.editMode||n.state.appendMode||n.state.settingsMode||n.state.viewMode)&&n.removeFixedHeader(),tt=window.scrollY)},n.activateFixedHeader=function(){var e=document.getElementById(Ge.header),t=document.getElementById(Ge.content);e&&t&&(e.classList.add(qe.fixed),t.classList.add(qe.fixedHeader))},n.removeFixedHeader=function(){var e=document.getElementById(Ge.header),t=document.getElementById(Ge.content);e&&e.classList.remove(qe.fixed),t&&t.classList.remove(qe.fixedHeader)},n.configureEditorKit(),n.state=et,n}return Object(p.a)(o,[{key:"render",value:function(){var e=this;return[Object(n.jsx)("span",{id:"top"},"top"),Object(n.jsxs)("div",{tabIndex:0,className:"sn-component",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onBlur:this.onBlur,children:[this.state.showHeader&&Object(n.jsx)("div",{id:Ge.header,className:"header"+(void 0!==this.state.editingMode&&this.state.editingMode!==Xe.usePlainText&&this.state.editingMode!==Xe.useCodeMirror||!this.state.editMode||this.state.appendMode||this.state.settingsMode||this.state.viewMode?"":" fixed"),children:Object(n.jsxs)("div",{className:"sk-button-group",children:[Object(n.jsx)("button",{type:"button",id:Ge.editButton,onClick:this.onEditMode,title:"Toggle Edit Mode",className:"sk-button "+(this.state.editMode?"on":"off"),children:Object(n.jsx)(C,{condition:this.state.editMode,role:"button"})},Ge.editButton),Object(n.jsx)("button",{type:"button",id:Ge.viewButton,onClick:this.onViewMode,title:"Toggle View Mode",className:"sk-button "+(this.state.viewMode?"on":"off"),children:Object(n.jsx)(O,{condition:this.state.viewMode,role:"button"})},Ge.viewButton),Object(n.jsx)("button",{type:"button",id:Ge.appendButton,onClick:function(){return e.onAppendMode()},title:"Toggle Append Mode",className:"sk-button "+(this.state.appendMode?"on":"off"),children:Object(n.jsx)(E,{condition:this.state.appendMode,role:"button"})},Ge.appendButton),Object(n.jsx)("div",{className:"sk-button divider",children:Object(n.jsx)("svg",{role:"img","aria-label":"Vertical line divider",width:"1",height:"24",viewBox:"0 0 1 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("rect",{width:"1",height:"24",fill:"var(--sn-stylekit-foreground-color)"})})},"header-divider-1"),Object(n.jsx)("button",{type:"button",id:Ge.helpButton,onClick:this.toggleShowHelp,title:"Help",className:"sk-button "+(this.state.showHelp?"on":"off"),children:Object(n.jsx)(M,{condition:this.state.showHelp,role:"button"})},Ge.helpButton),Object(n.jsx)("button",{type:"button",id:Ge.settingsButton,onClick:this.onSettingsMode,title:"Settings",className:"sk-button "+(this.state.settingsMode?"on":"off"),children:Object(n.jsx)(w,{condition:this.state.settingsMode,role:"button"})},Ge.settingsButton),Object(n.jsx)("div",{className:"sk-button divider",children:Object(n.jsx)("svg",{role:"img","aria-label":"Vertical line divider",width:"1",height:"24",viewBox:"0 0 1 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("rect",{width:"1",height:"24",fill:"var(--sn-stylekit-foreground-color)"})})},"header-divider-2"),Object(n.jsx)("button",{type:"button",id:Ge.scrollToBottomButtonHeader,onClick:this.skipToBottom,title:"Scroll to Bottom",className:"sk-button off",children:Object(n.jsx)("svg",{role:"button","aria-label":"Arrow pointing down for scroll to bottom button",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M6.17622 7.15015L10.0012 10.9751L13.8262 7.15015L15.0012 8.33348L10.0012 13.3335L5.00122 8.33348L6.17622 7.15015Z",fill:"var(--sn-stylekit-foreground-color)"})})},Ge.scrollToBottomButtonHeader),Object(n.jsx)("button",{type:"button",id:Ge.scrollToTopButtonHeader,onClick:this.skipToTop,title:"Scroll to Top",className:"sk-button off",children:Object(n.jsx)("svg",{role:"button","aria-label":"Arrow pointing up for scroll to top button",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M13.826 13.3335L10.001 9.5085L6.17597 13.3335L5.00097 12.1502L10.001 7.15017L15.001 12.1502L13.826 13.3335Z",fill:"var(--sn-stylekit-foreground-color)"})})},Ge.scrollToTopButtonHeader),Object(n.jsx)("button",{type:"button",id:Ge.menuButton,onClick:this.toggleShowMenu,title:"Toggle Menu",className:"sk-button "+(this.state.showMenu?"on":"off"),children:Object(n.jsx)(y,{condition:this.state.showMenu,role:"button"})},Ge.menuButton)]},"header-button-group")},Ge.header),Object(n.jsxs)("div",{id:Ge.content,className:"content"+(void 0!==this.state.editingMode&&this.state.editingMode!==Xe.usePlainText&&this.state.editingMode!==Xe.useCodeMirror||!this.state.editMode||this.state.appendMode||this.state.settingsMode||this.state.viewMode?"":" fixed-header edit-only")+(this.state.borderlessMode?" borderless":"")+(this.state.fixedHeightMode?" fixed-height":"")+(this.state.fullWidthMode?" full-width":"")+(this.state.overflowMode?" overflow":""),children:[this.state.showMenu&&Object(n.jsx)(Re,{children:Object(n.jsx)(Qe,{borderlessMode:this.state.borderlessMode,editingMode:this.state.editingMode,fixedHeightMode:this.state.fixedHeightMode,fullWidthMode:this.state.fullWidthMode,monacoEditorLanguage:this.state.monacoEditorLanguage,onConfirmPrintUrl:this.onConfirmPrintUrl,overflowMode:this.state.overflowMode,refreshEdit:this.refreshEdit,refreshView:this.refreshView,saveText:this.saveText,showMenuOptionsEdit:this.state.showMenuOptionsEdit,showMenuOptionsShare:this.state.showMenuOptionsShare,showMenuOptionsView:this.state.showMenuOptionsView,text:this.state.text,toggleBorderlessMode:this.toggleBorderlessMode,toggleFixedHeightMode:this.toggleFixedHeightMode,toggleFullWidthMode:this.toggleFullWidthMode,toggleOverflowMode:this.toggleOverflowMode,toggleShowMenu:this.toggleShowMenu,toggleShowMenuOptionsEdit:this.toggleShowMenuOptionsEdit,toggleShowMenuOptionsShare:this.toggleShowMenuOptionsShare,toggleShowMenuOptionsView:this.toggleShowMenuOptionsView,viewMode:this.state.viewMode},Ge.menu)}),this.state.settingsMode&&Object(n.jsx)(Re,{children:Object(n.jsx)(ze,{cancelText:"Cancel",confirmText:"Save",customStyles:this.state.customStyles,debugMode:ot,defaultSettings:this.state.defaultSettings,editingMode:this.state.editingMode,fontEdit:this.state.fontEdit,fontSize:this.state.fontSize,fontView:this.state.fontView,helpLink:"https://appendeditor.com/#settings",keyMap:nt,onConfirm:this.onSaveSettings,onCancel:this.onSettingsMode,title:"Append Editor Settings",monacoEditorLanguage:this.state.monacoEditorLanguage},Ge.settings)}),this.state.editMode&&!this.state.refreshEdit&&Object(n.jsx)(Re,{children:Object(n.jsx)(z,{debugMode:ot,editingMode:this.state.editingMode,fontSize:this.state.fontSize,keyMap:nt,monacoEditorLanguage:this.state.monacoEditorLanguage,onKeyDown:this.onKeyDown,onKeyDownEditTextArea:this.onKeyDownEditTextArea,onKeyDownTextArea:this.onKeyDownTextArea,onKeyUp:this.onKeyUp,saveText:this.saveText,text:this.state.text,viewMode:this.state.viewMode},"EditNote-1")}),this.state.editMode&&this.state.refreshEdit&&Object(n.jsx)(Re,{children:Object(n.jsx)(z,{debugMode:ot,editingMode:this.state.editingMode,fontSize:this.state.fontSize,keyMap:nt,monacoEditorLanguage:this.state.monacoEditorLanguage,onKeyDown:this.onKeyDown,onKeyDownEditTextArea:this.onKeyDownEditTextArea,onKeyDownTextArea:this.onKeyDownTextArea,onKeyUp:this.onKeyUp,saveText:this.saveText,text:this.state.text,viewMode:this.state.viewMode},"EditNote-2")}),this.state.editingMode===Xe.useDynamicEditor&&Object(n.jsx)("div",{}),this.state.viewMode&&!this.state.refreshView&&Object(n.jsx)(Re,{children:Object(n.jsx)(Oe,{appendMode:this.state.appendMode,bypassDebounce:this.state.bypassDebounce,debugMode:ot,editMode:this.state.editMode,editingMode:this.state.editingMode,monacoEditorLanguage:this.state.monacoEditorLanguage,printURL:this.state.printURL,showHelp:this.state.showHelp,saveText:this.saveText,text:this.state.text},"ViewNote-1")}),this.state.viewMode&&this.state.refreshView&&Object(n.jsx)(Re,{children:Object(n.jsx)(Oe,{appendMode:this.state.appendMode,bypassDebounce:this.state.bypassDebounce,debugMode:ot,editMode:this.state.editMode,editingMode:this.state.editingMode,monacoEditorLanguage:this.state.monacoEditorLanguage,printURL:this.state.printURL,showHelp:this.state.showHelp,saveText:this.saveText,text:this.state.text},"ViewNote-2")}),this.state.confirmPrintUrl&&Object(n.jsx)(Re,{children:Object(n.jsx)(B,{title:"Would you like to print URLs?",onUndo:this.onCancelPrint,onConfirm:this.onPrintUrlTrue,onCancel:this.onPrintUrlFalse,helpLink:"https://appendeditor.com/#printing",confirmText:"Yes, print URLs",cancelText:"No, thanks"},"PrintDialog")}),this.state.showDiff&&Object(n.jsx)(Re,{children:Object(n.jsx)(V,{text:this.state.text,modifiedText:this.state.appendText,saveText:this.saveText},"MonacoDiffEditor")})]},Ge.content),this.state.showAppendix&&[Object(n.jsxs)("div",{className:"appendix"+(this.state.borderlessMode?" borderless":"")+(this.state.fullWidthMode?" full-width":""),id:Ge.appendix,children:[this.state.appendMode&&Object(n.jsx)(Re,{children:Object(n.jsx)(Me,{appendTextToNote:this.appendTextToNote,autoSaveAppendText:this.autoSaveAppendText,autoSaveCheckBoxes:this.autoSaveCheckBoxes,debugMode:ot,editingMode:this.state.editingMode,fontSize:this.state.fontSize,keyMap:nt,appendNewLine:this.state.appendNewLine,appendNewParagraph:this.state.appendNewParagraph,monacoEditorLanguage:this.state.monacoEditorLanguage,onKeyDown:this.onKeyDown,onKeyDownAppendTextArea:this.onKeyDownAppendTextArea,onKeyDownTextArea:this.onKeyDownTextArea,onKeyUp:this.onKeyUp,appendRows:this.state.appendRows,text:this.state.appendText},Ge.appendText)}),Object(n.jsx)("button",{className:"sk-button info",id:Ge.scrollToTopButton,onClick:this.scrollToTop,title:"Scroll to Top",type:"button",children:Object(n.jsx)("div",{children:" \u25b2 "})},Ge.scrollToTopButton),Object(n.jsx)("button",{className:"sk-button info",id:Ge.scrollToBottomButton,onClick:this.scrollToBottom,title:"Scroll to Bottom",type:"button",children:Object(n.jsx)("div",{children:" \u25bc "})},Ge.scrollToBottomButton)]},Ge.appendix)]]},"sn-component")]}}]),o}(s.a.Component);o(1187);r.a.render(Object(n.jsx)(s.a.StrictMode,{children:Object(n.jsx)(it,{})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)})),d()},464:function(e,t,o){}},[[1188,3,4]]]);
-//# sourceMappingURL=main.97ac2bb5.chunk.js.map
\ No newline at end of file
diff --git a/build/static/js/main.97ac2bb5.chunk.js.map b/build/static/js/main.97ac2bb5.chunk.js.map
deleted file mode 100644
index 1e61b971..00000000
--- a/build/static/js/main.97ac2bb5.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["serviceWorker.ts","reportWebVitals.ts","components/Icons.tsx","components/PrintDialog.tsx","components/Monaco.tsx","components/DynamicEditor.tsx","components/EditNote.tsx","lib/clickButton.ts","components/Help.tsx","components/Intro.tsx","lib/renderMarkdown.ts","components/ViewNote.tsx","components/AppendText.tsx","components/Buttons.tsx","components/Menu.tsx","components/Settings.tsx","components/ErrorBoundary.tsx","components/AppendEditor.tsx","index.tsx"],"names":["Boolean","window","location","hostname","match","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","infoColor","foregroundColor","ChevronIconDown","fill","role","className","aria-label","width","height","viewBox","xmlns","d","ChevronIconRight","CloseIcon","CopyIcon","EyeIcon","condition","GearIcon","HelpIcon","MenuIcon","PencilIcon","PlusIcon","fillRule","clipRule","PrintIcon","RefreshIcon","UndoIcon","PrintDialog","cancelText","confirmText","helpLink","onCancel","onConfirm","onUndo","title","id","HtmlElementId","undoDialogButton","onClick","href","target","rel","MonacoEditorContainerID","MonacoDiffEditorContainerID","self","MonacoEnvironment","getWorkerUrl","_moduleId","label","MonacoEditor","editor","fontSize","language","saveText","tabSize","text","theme","viewMode","divEl","useRef","scrollBeyondLastLine","useEffect","current","monaco","create","parseInt","replace","value","join","autoClosingOvertype","formatOnPaste","formatOnType","wordWrap","wrappingStrategy","onKeyDown","e","keyCode","console","log","code","ctrlKey","preventDefault","onKeyUp","onDidChangeModelContent","getValue","dispose","ref","MonacoDiffEditor","diffEditor","modifiedText","originalModel","createModel","modifiedModel","createDiffEditor","originalEditable","readOnly","setModel","original","modified","onDidChangeContent","YouTubeEmbed","videoId","this","props","attrs","matches","isSelected","src","React","DynamicEditor","handleToggleReadOnly","setState","state","handleChange","debounce","debugMode","onChange","template","undefined","placeholder","readOnlyWriteCheckboxes","defaultValue","scrollTo","hash","autoFocus","embeds","keywords","icon","alt","matcher","url","component","EditNote","handleInputChange","event","onBlur","content","document","getElementById","classList","remove","HtmlClassName","focused","onFocus","add","onKeyDownEditTextArea","onKeyDownTextArea","keyMap","delete","key","editingMode","EditingModes","useMonacoEditor","useDynamicEditor","edit","monacoEditorLanguage","editTextArea","name","rows","spellCheck","Component","defaultProps","clickAppendButton","appendButton","click","clickEditButton","editButton","clickHelpButton","helpButton","clickMenuButton","menuButton","clickSettingsButton","settingsButton","clickViewButton","viewButton","Help","onToggleShowFeelings","showFeelings","onToggleShowMoreQuestions","showMoreQuestions","onToggleShowFeedback","showFeedback","onToggle","Intro","appendMode","editMode","showHelp","breaks","require","externalLinks","footnotes","gfm","gemoji","math","slug","toc","highlight","rehypeKatex","raw","processor","unified","use","parse","maxDepth","inlineNotes","remark2rehype","allowDangerousHtml","ignoreMissing","rehype2react","createElement","processMarkdown","processSync","result","isLongString","throttle","length","renderLongMarkdown","ViewNote","onToggleShowHelp","renderMarkdown","bypassDebounce","markdown","printURL","view","renderedNote","AppendText","type","checked","autoSaveCheckBoxes","handleTextAreaChange","autoSaveAppendText","appendTextToNote","appendTextArea","focus","newLine","newParagraph","set","get","onKeyDownAppendTextArea","appendNewLine","appendNewParagraph","appendRows","ChevronToggleButton","caption","CopyButton","EyeButton","messageOn","messageOff","PencilButton","PrintButton","UndoButton","editingModeID","fontEditID","fontSizeID","fontViewID","monacoEditorLanguageID","resetAllSettingsID","saveAsDefaultID","startRegExp","RegExp","cssRegExp","endRegExp","codeRegExp","Settings","handleSelectChange","toggleShowCustomStyles","showCustomStyles","cleanCustomStyles","customStyles","handleSubmit","fontEditMessage","fontViewMessage","fontEdit","fontView","saveAsDefault","loadDefaultSettings","defaultSettings","refreshCustomStyles","clearCustomStyles","clearFontEdit","clearFontSize","clearFontView","clearEditingMode","usePlainText","clearMonacoEditorLanguage","clearSaveAsDefault","clearAllSettings","resetAllSettings","clear","componentWillUnmount","settings","useCodeMirror","htmlFor","list","ErrorBoundary","hasError","error","errorInfo","message","children","Menu","clearTooltipTimer","resetMessageTimer","clearTimeout","setTimeout","displayMessageEdit","displayMessageShare","showMessageEdit","showMessageShare","copyToClipboard","textField","body","appendChild","select","execCommand","copyText","copyHtml","firstElementChild","innerHTML","formatText","formattedText","prettier","format","parser","plugins","parserMarkdown","refreshEdit","refreshView","uncheckBoxes","checkedBoxes","test","newText","toggleShowMenu","menu","chevronToggleButton","showMenuOptionsView","toggleShowMenuOptionsView","borderlessMode","on","off","toggleBorderlessMode","fixedHeightMode","toggleFixedHeightMode","fullWidthMode","toggleFullWidthMode","overflowMode","toggleOverflowMode","showMenuOptionsShare","toggleShowMenuOptionsShare","printButton","onConfirmPrintUrl","showMenuOptionsEdit","toggleShowMenuOptionsEdit","initialState","appendText","confirmPrintUrl","showAppendix","showHeader","showDiff","settingsMode","last_known_scroll_position","Map","AppendEditor","editorKit","refreshEditorTimer","saveTimer","componentDidMount","onViewMode","loadDefaultMenuState","addEventListener","onScroll","removeEventListener","configureEditorKit","delegate","EditorKitDelegate","setEditorRawText","cancel","flush","savingEditorOptions","loadEditorOptions","loadMetaData","clearUndoHistory","getElementsBySelector","EditorKit","mode","supportsFilesafe","refreshEditor","activateStyles","defaultSettingsString","internal","componentRelay","getComponentDataValueForKey","defaultEditingMode","defaultSettingsObject","JSON","defaultCustomStyles","defaultFontEdit","defaultFontSize","defaultFontView","defaultMonacoEditorLanguage","menuOptionsString","menuOptionsObject","addFixedHeightToBody","removeFixedHeightFromBody","streamContextItem","note","appendEditorCustomStyles","appendEditorEditingMode","appendEditorFontEdit","appendEditorFontSize","appendEditorFontView","appendEditorMonacoEditorLanguage","onEditMode","saveNote","scrollY","scrollTop","refreshedView","onEditorValueChanged","textToAppend","concat","saveItemWithPresave","skipToBottom","appendCodeMirror","setValue","configureCodeMirror","editCodeMirror","CodeMirror","fromTextArea","autocorrect","autocapitalize","extraKeys","Enter","lineNumbers","lineWrapping","spellcheck","styleSelectedText","tabindex","setSize","editCodeMirrorText","save","cm","appendCodeMirrorText","toTextArea","onAppendMode","scrollDown","closeEdit","scrollToBottom","toggleShowHelp","scrollToTop","showMenu","activateFixedHeader","saveMenuOptions","skipToTop","currentMenuOptions","saveEditorOption","stringify","optionKey","optionValue","setComponentDataValueForKey","onSettingsMode","currentState","removeFixedHeader","onSaveSettings","sheetToBeRemoved","sheetParent","parentNode","removeChild","fontSizeStyle","fontEditStyle","fontViewStyle","sheet","setAttribute","onCancelPrint","onPrintUrlTrue","printRenderedHtml","onPrintUrlFalse","print","goDown","codeMirrorEditMode","getElementsByClassName","appendix","scrollIntoView","behavior","block","inline","goUp","top","header","fixed","fixedHeader","tabIndex","scrollToBottomButtonHeader","scrollToTopButtonHeader","scrollToTopButton","scrollToBottomButton","ReactDOM","render","StrictMode","navigator","serviceWorker","ready","registration","unregister","catch"],"mappings":"0MAYoBA,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DChBN,IAYeC,EAZS,SAACC,GACnBA,GAAeA,aAAuBC,UACxC,gCAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,O,8CCPRQ,EAAY,gCACZC,EAAkB,sC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A,yCACA,0CACA,gDACA,4CACA,wCACA,6CACA,gDACA,yCACA,0CACA,yCACA,0CACA,gDACA,0CACA,2CACA,4CACA,0CACA,2CACA,yCACA,8CACA,0CACA,2CACA,2CACA,iDACA,4CACA,+CACA,0CACA,2CACA,yCACA,+CACA,8CACA,gDACA,gDACA,yCACA,4CACA,uCACA,2CACA,2CACA,8CACA,sDACA,0CACA,0CACA,wCACA,2CACA,4CACA,0CACA,2CACA,yCACA,yCACA,wCACA,2CACA,mDACA,yCACA,0CACA,gDACA,wCACA,6CACA,yCACA,+CAGJ,cAAC,GAAD,CACElO,QAASgE,KAAKsL,0BACd1P,MAAM,mDAKd,0BAAS7B,UAAU,wBAAnB,UACE,uBAAO+R,QAASvC,GAAhB,uCACA,sBAAKxP,UAAU,wBAAf,UACE,yBACE8B,GAAI0N,GACJhG,KAAMgG,GACN1L,MAAOmC,KAAKU,MAAM7D,SAClBiE,SAAUd,KAAKkK,mBAJjB,UAME,2BACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,6CAEF,cAAC,GAAD,CACElO,QAASgE,KAAKkL,cACdtP,MAAM,kCAIXoE,KAAKU,MAAMsC,cAAgBC,GAAaC,iBACvC,0BAASnJ,UAAU,wBAAnB,UACE,wBAAO+R,QAASxC,GAAhB,2CACiC,OAEjC,sBAAKvP,UAAU,wBAAf,UACE,uBACEgS,KAAK,QACLlQ,GAAIyN,GACJ/F,KAAM+F,GACNzL,MAAOmC,KAAKU,MAAMgK,SAClB5J,SAAUd,KAAK+B,kBACf3D,UAAW4B,KAAK5B,UAChBQ,QAASoB,KAAKpB,QACdgJ,KAAK,SAEP,cAAC,GAAD,CACE5L,QAASgE,KAAKiL,cACdrP,MAAM,qCAKboE,KAAKU,MAAMsC,cAAgBC,GAAaE,kBACvC,0BAASpJ,UAAU,wBAAnB,UACE,wBAAO+R,QAAStC,GAAhB,0C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KAAKU,MAAMiI,WACvB1L,KAAM+C,KAAKU,MAAMkP,YAVZ9T,GAAc8T,cAczB,wBACE7V,UAAU,iBACV8B,GAAIC,GAAcyc,kBAElBvc,QAASgE,KAAK0V,YACd9Z,MAAM,gBACNgM,KAAK,SANP,SAQE,4CALK9L,GAAcyc,mBAOrB,wBACExe,UAAU,iBACV8B,GAAIC,GAAc0c,qBAElBxc,QAASgE,KAAKwV,eACd5Z,MAAM,mBACNgM,KAAK,SANP,SAQE,4CALK9L,GAAc0c,wBAtChB1c,GAAc4b,aAlWlB,qB,GAvqD6BpX,IAAMoD,W,QCvLhD+U,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,GAAD,MAEFxW,SAASC,eAAe,SlB4HpB,kBAAmBwW,WACrBA,UAAUC,cAAcC,MACrB1f,MAAK,SAAC2f,GACLA,EAAaC,gBAEdC,OAAM,SAAC/M,GACN3N,QAAQ2N,MAAMA,EAAME,YkBvH5BnT,K","file":"static/js/main.97ac2bb5.chunk.js","sourcesContent":["// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: Config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","import { ReportHandler } from 'web-vitals';\n\nconst reportWebVitals = (onPerfEntry?: ReportHandler) => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\n\nconst infoColor = 'var(--sn-stylekit-info-color)';\nconst foregroundColor = 'var(--sn-stylekit-foreground-color)';\n\ninterface Icons {\n condition?: boolean;\n fill?: string;\n role: string;\n}\n\nexport const ChevronIconDown: React.FC = ({ fill, role }) => (\n \n \n \n);\n\nexport const ChevronIconRight: React.FC = ({ fill, role }) => (\n \n \n \n);\n\nexport const CloseIcon: React.FC = ({ fill, role }) => (\n \n);\n\nexport const CopyIcon: React.FC = ({ fill, role }) => (\n \n);\n\nexport const EyeIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const GearIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const HelpIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const MenuIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const PencilIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const PlusIcon: React.FC = ({ condition, fill, role }) => (\n \n);\n\nexport const PrintIcon: React.FC = ({ fill, role }) => (\n \n);\n\nexport const RefreshIcon: React.FC = ({ fill, role }) => (\n \n);\n\nexport const UndoIcon: React.FC = ({ fill, role }) => (\n \n);\n","// import { Method } from '@testing-library/react';\nimport React from 'react';\nimport { CloseIcon } from './Icons';\nimport { HtmlElementId } from './AppendEditor';\n\ninterface PrintDialogTypes {\n cancelText: string;\n confirmText: string;\n helpLink: string;\n onCancel: () => void;\n onConfirm: () => void;\n onUndo: () => void;\n title: string;\n}\n\nconst PrintDialog: React.FC = ({\n cancelText,\n confirmText,\n helpLink,\n onCancel,\n onConfirm,\n onUndo,\n title,\n}) => (\n
\n There are four editing modes: Plain Textarea, CodeMirror, Dynamic, and\n Monaco. You can read about each mode and choose which to use in the\n Settings\n \n . You can also choose default and per-note font sizes, font families,\n and custom styles (CSS).\n
\n
\n The Menu\n \n has additional options to customize the appearance of the editor,\n share your note, and perform actions to quickly format and edit\n Markdown text.\n
\n
\n A more detailed documentation of the Append Editor is available at{' '}\n \n appendeditor.com\n \n . If you like the Append Editor, please support it by giving it a star\n on{' '}\n \n GitHub\n \n .{' '}\n \n 🙂\n {' '}\n
\n
How to install the Append Editor in Standard Notes
\n \n
\n Download, install, and sign in to the Standard Notes{' '}\n \n Desktop\n {' '}\n app.\n
\n
\n In the bottom left corner of the app, click Extensions.\n
\n The title of your selected note is near the top of the app. Under\n the title, click Editor, click Append Editor, and\n click Continue to begin using the editor. Enjoy!{' '}\n \n 👏\n {' '}\n
\n \n
\n After you install the editor on the desktop app, it will automatically\n sync to the{' '}\n \n web\n {' '}\n and{' '}\n \n mobile apps\n {' '}\n after you sign in.\n
\n
What to write about
\n
\n The Append Editor is great for writing articles, blog posts,\n checklists, code snippets, documentation, emails, essays, journals,\n lists, logs, notes, tables, todo lists, and much more. Here are some\n questions to help you get started with today's daily journal:\n
\n What do you hope your life will look like in a week? a month? a\n year?\n
\n
\n What can you do today to make your life the way you want it?\n
\n
\n How will you feel when you've realized the goals that you have\n for yourself?\n
\n
Who or what do you feel grateful for and why?
\n
What did you enjoy about today?
\n
\n )}\n
\n \n \n
Need more help?
\n \n {this.state.showFeedback && (\n
\n Feel free to{' '}\n \n reach out\n {' '}\n if you have any questions, comments, concerns, or feedback.{' '}\n \n 👋\n \n \n If you find any bugs or have a feature request, please{' '}\n \n open an issue on GitHub\n \n .{' '}\n \n 🙂\n \n \n You are using version 1.2.6-alpha.1. The release\n notes and change log are available on{' '}\n \n GitHub\n \n .\n
\n )}\n \n Click Help\n \n to close this section.\n \n
\n \n \n Welcome to the Append Editor!{' '}\n \n 👋\n {' '}\n Your note is empty.{' '}\n \n 🙂\n {' '}\n Click here to get started.{' '}\n \n 📝\n \n \n
To get started:
\n
\n
\n
\n Click the Pencil\n \n to toggle Edit Mode\n
\n
\n
\n
\n Click the Plus\n \n to toggle Append Mode\n
\n
\n
\n
\n View Mode is currently on. When you type in{' '}\n Edit Mode, your note will automatically render here. In{' '}\n Append Mode, clicking Append will add the text in the\n textarea to the end of your note. Click the Eye\n \n to turn View Mode off and switch to Edit Only Mode.\n
\n
\n If you are using the demo at{' '}\n \n beta.appendeditor.com\n \n , then your notes will be lost after you close the page.\n
\n If you like Standard Notes, please check out Standard Notes{' '}\n \n Extended\n {' '}\n for more editors, themes, components, and methods to backup up your\n data.\n
\n
\n Happy note-taking!{' '}\n \n 😄\n \n
\n \n
\n);\n\nexport default Intro;\n","import React, { ReactNode } from 'react';\nimport unified from 'unified';\nimport parse from 'remark-parse';\nimport remark2rehype from 'remark-rehype';\nimport rehype2react from 'rehype-react';\nimport { debounce, throttle } from 'lodash';\n\n// Remark\nconst breaks = require('remark-breaks');\nconst externalLinks = require('remark-external-links');\nconst footnotes = require('remark-footnotes');\nconst gfm = require('remark-gfm');\nconst gemoji = require('remark-gemoji');\nconst math = require('remark-math');\nconst slug = require('remark-slug');\nconst toc = require('remark-toc');\n\n// Rehype\nconst highlight = require('rehype-highlight');\nconst rehypeKatex = require('rehype-katex');\nconst raw = require('rehype-raw');\n\nconst processor = unified()\n .use(parse)\n .use(gfm)\n .use(breaks)\n .use(slug)\n .use(toc, { maxDepth: 6 })\n .use(externalLinks)\n .use(footnotes, { inlineNotes: true })\n .use(gemoji)\n .use(remark2rehype, { allowDangerousHtml: true })\n .use(raw)\n .use(math)\n .use(rehypeKatex)\n .use(highlight, { ignoreMissing: true })\n .use(rehype2react, { createElement: React.createElement });\n\nexport const processMarkdown = (text: string) => {\n const markdown = processor.processSync(text).result as ReactNode;\n return markdown;\n};\n\n/** Throttle instead of debounce because\n * we want it to work even when typing\n * lots of characters in a short amount of time. */\nexport const isLongString = throttle((text: string) => {\n //console.log('length', text.length);\n if (text.length > 2500) {\n return true;\n } else {\n return false;\n }\n}, 1000);\n\n/** Debounce the rendering of long notes to prevent lagging.\n * There is no max on the debounce to prevent lagging\n * even for very, very long notes */\nexport const renderLongMarkdown = debounce((text: string) => {\n //console.log('renderLongMarkdownText');\n const markdown = processMarkdown(text);\n return markdown;\n}, 500);\n\nexport const renderMarkdown = (text: string, bypassDebounce: boolean) => {\n if (bypassDebounce) {\n //console.log('renderBypassDebounceText');\n const markdown = processMarkdown(text);\n return markdown;\n }\n let textIsLong = false as boolean | undefined;\n textIsLong = isLongString(text);\n //console.log('textIsLong', textIsLong);\n if (textIsLong) {\n return renderLongMarkdown(text);\n } else {\n //console.log('renderShortMarkdownText');\n const markdown = processMarkdown(text);\n /** Render both to improve transition between short and long\n * This is computationally inefficient,\n * so we keep the threshold for isLongString (such as 2,500)\n */\n renderLongMarkdown(text);\n return markdown;\n }\n};\n","import React from 'react';\nimport { EditingModes, HtmlElementId } from './AppendEditor';\nimport DynamicEditor from './DynamicEditor';\nimport Help from './Help';\nimport Intro from './Intro';\nimport { renderMarkdown } from '../lib/renderMarkdown';\n\ninterface ViewProps {\n appendMode: boolean;\n bypassDebounce: boolean;\n debugMode: boolean;\n editMode: boolean;\n editingMode?: string;\n monacoEditorLanguage: string;\n printURL: boolean;\n saveText: (text: string) => void;\n showHelp: boolean;\n text: string;\n}\n\ninterface ViewState {\n showHelp: boolean;\n}\n\nexport default class ViewNote extends React.Component {\n constructor(props: ViewProps) {\n super(props);\n\n this.state = {\n showHelp: this.props.showHelp,\n };\n }\n\n onToggleShowHelp = () => {\n const helpButton = document.getElementById('helpButton');\n if (helpButton) {\n helpButton.click();\n }\n };\n\n renderMarkdown = (text: string) => {\n const markdown = renderMarkdown(text, this.props.bypassDebounce);\n return markdown;\n };\n\n render() {\n const { text } = this.props;\n return (\n
\n );\n }\n}\n","import React from 'react';\nimport { EditingModes } from './AppendEditor';\nimport DynamicEditor from './DynamicEditor';\nimport { MonacoEditor } from './Monaco';\n\nimport { HtmlElementId } from './AppendEditor';\n\ninterface AppendProps {\n appendNewLine: boolean;\n appendNewParagraph: boolean;\n appendRows: number;\n appendTextToNote: Function;\n editingMode?: string;\n fontSize: string;\n keyMap: Map;\n debugMode: boolean;\n autoSaveAppendText: Function;\n autoSaveCheckBoxes: Function;\n monacoEditorLanguage: string;\n onKeyDown: Function;\n onKeyUp: Function;\n onKeyDownAppendTextArea: Function;\n onKeyDownTextArea: Function;\n text: string;\n}\n\ninterface AppendState {\n text: string;\n newLine: boolean;\n newParagraph: boolean;\n [x: string]: string | boolean;\n}\n\nexport default class AppendText extends React.Component<\n AppendProps,\n AppendState\n> {\n static defaultProps = {\n // none\n };\n\n constructor(props: AppendProps) {\n super(props);\n\n this.state = {\n text: this.props.text,\n newLine: this.props.appendNewLine,\n newParagraph: this.props.appendNewParagraph,\n useMonacoEditor: this.props.editingMode === EditingModes.useMonacoEditor,\n useDynamicEditor:\n this.props.editingMode === EditingModes.useDynamicEditor,\n };\n }\n\n handleInputChange = (event: React.ChangeEvent) => {\n const target = event.target;\n const value = target.type === 'checkbox' ? target.checked : target.value;\n const name = target.name;\n this.setState(\n {\n [name]: value,\n },\n () => {\n // This callback saves the checkboxes\n this.autoSaveCheckBoxes();\n }\n );\n };\n\n // This is an almost duplicate of the above editor. Here we don't save the checkboxes to improve performance\n handleTextAreaChange = (event: any) => {\n const target = event.target;\n const value = target.value;\n this.setState(\n {\n text: value,\n },\n () => {\n // This callback saves the append text\n this.autoSaveAppendText();\n }\n );\n };\n\n saveText = (text: string) => {\n this.setState(\n {\n text,\n },\n () => {\n this.props.autoSaveAppendText(this.state.text);\n }\n );\n };\n\n appendTextToNote = () => {\n this.props.appendTextToNote();\n this.setState({\n text: '',\n });\n const appendTextArea = document.getElementById(\n HtmlElementId.appendTextArea\n );\n if (appendTextArea) {\n appendTextArea.focus();\n }\n // Refresh Monaco Editor after appending text to note\n if (this.state.useMonacoEditor) {\n this.setState(\n {\n useMonacoEditor: false,\n },\n () => {\n this.setState({\n useMonacoEditor: true,\n });\n }\n );\n }\n // Refresh Dynamic Editor after appending text to note\n if (this.state.useDynamicEditor) {\n this.setState(\n {\n useDynamicEditor: false,\n },\n () => {\n this.setState({\n useDynamicEditor: true,\n });\n }\n );\n }\n };\n\n autoSaveAppendText = () => {\n const text = this.state.text;\n this.props.autoSaveAppendText(text);\n };\n\n autoSaveCheckBoxes = () => {\n const newLine = this.state.newLine;\n const newParagraph = this.state.newParagraph;\n this.props.autoSaveCheckBoxes(newLine, newParagraph);\n };\n\n onKeyDown = (e: React.KeyboardEvent) => {\n this.props.keyMap.set(e.key, true);\n if (this.props.debugMode) {\n console.log(\n 'Keys pressed: ' +\n e.key +\n 'KeyMap for key: ' +\n this.props.keyMap.get(e.key)\n );\n console.log('Append Text Value: ' + this.state.text);\n }\n\n this.props.onKeyDown(e);\n this.props.onKeyDownAppendTextArea(e);\n this.props.onKeyDownTextArea(e);\n // Append Text if Ctrl and 'Enter' are pressed\n if (this.props.keyMap.get('Control') && this.props.keyMap.get('Enter')) {\n e.preventDefault();\n this.appendTextToNote();\n }\n // Append Text if Ctrl and 's' are pressed\n else if (this.props.keyMap.get('Control') && this.props.keyMap.get('s')) {\n e.preventDefault();\n this.appendTextToNote();\n }\n };\n\n onKeyUp = (event: React.KeyboardEvent) => {\n this.props.keyMap.delete(event.key);\n this.props.onKeyUp(event);\n };\n\n render() {\n const { text } = this.state;\n\n return (\n
\n {this.state.useMonacoEditor ? (\n // We use this.state instead of this.props so we can easily refresh it on Append\n \n ) : this.state.useDynamicEditor ? (\n