A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
chore: update editor bundle
ammarahm-edc92c3809f788
diff --git a/apps/mobile/web.bundle/asset-manifest.json b/apps/mobile/web.bundle/asset-manifest.jsonindex 64fa9a3b1..95e511883 100644--- a/apps/mobile/web.bundle/asset-manifest.json+++ b/apps/mobile/web.bundle/asset-manifest.json@@ -2,7 +2,7 @@"files": {"static/js/0.6b732ed5.chunk.js": "./static/js/0.6b732ed5.chunk.js","main.css": "./static/css/main.f2465fba.chunk.css",- "main.js": "./static/js/main.9bf11b19.chunk.js",+ "main.js": "./static/js/main.35e1fa36.chunk.js","runtime-main.js": "./static/js/runtime-main.563aec9a.js","static/css/3.a46cbd43.chunk.css": "./static/css/3.a46cbd43.chunk.css","static/js/3.cdfcd3a9.chunk.js": "./static/js/3.cdfcd3a9.chunk.js",@@ -18,6 +18,6 @@"static/css/3.a46cbd43.chunk.css","static/js/3.cdfcd3a9.chunk.js","static/css/main.f2465fba.chunk.css",- "static/js/main.9bf11b19.chunk.js"+ "static/js/main.35e1fa36.chunk.js"]}\ No newline at end of filediff --git a/apps/mobile/web.bundle/index.html b/apps/mobile/web.bundle/index.htmlindex 3f8e537e1..c90932147 100644--- a/apps/mobile/web.bundle/index.html+++ b/apps/mobile/web.bundle/index.html@@ -1 +1 @@-<!doctype html><html style="height:100%" lang="en"><head><meta charset="utf-8"/><link rel="icon" href="favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/><meta name="theme-color" content="#000000"/><link href="fonts.css" rel="stylesheet"/><style>body{height:100%;font-family:"Open Sans"}p{font-family:"Open Sans"}::selection{color:#fff;background-color:var(--nn_accent)}::placeholder{color:var(--nn_placeholder)}p.is-editor-empty:first-child::before{color:var(--nn_placeholder)!important}h1,h2,h3,h4,h5,h6{font-family:"Open Sans";color:var(--nn_heading)}#root{height:100%;caret-color:var(--nn_accent);display:flex}</style><meta name="description" content="Notesnook editor for mobile"/><link rel="manifest" href="manifest.json"/><title>Notesnook editor</title><link href="./static/css/3.a46cbd43.chunk.css" rel="stylesheet"><link href="./static/css/main.f2465fba.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"6b732ed5",4:"628ec668",5:"34df2de4"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="./",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonptiptap=this.webpackJsonptiptap||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="./static/js/3.cdfcd3a9.chunk.js"></script><script src="./static/js/main.9bf11b19.chunk.js"></script></body></html>\ No newline at end of file+<!doctype html><html style="height:100%" lang="en"><head><meta charset="utf-8"/><link rel="icon" href="favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/><meta name="theme-color" content="#000000"/><link href="fonts.css" rel="stylesheet"/><style>body{height:100%;font-family:"Open Sans"}p{font-family:"Open Sans"}::selection{color:#fff;background-color:var(--nn_accent)}::placeholder{color:var(--nn_placeholder)}p.is-editor-empty:first-child::before{color:var(--nn_placeholder)!important}h1,h2,h3,h4,h5,h6{font-family:"Open Sans";color:var(--nn_heading)}#root{height:100%;caret-color:var(--nn_accent);display:flex}</style><meta name="description" content="Notesnook editor for mobile"/><link rel="manifest" href="manifest.json"/><title>Notesnook editor</title><link href="./static/css/3.a46cbd43.chunk.css" rel="stylesheet"><link href="./static/css/main.f2465fba.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"6b732ed5",4:"628ec668",5:"34df2de4"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="./",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonptiptap=this.webpackJsonptiptap||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="./static/js/3.cdfcd3a9.chunk.js"></script><script src="./static/js/main.35e1fa36.chunk.js"></script></body></html>\ No newline at end of filediff --git a/apps/mobile/web.bundle/static/js/main.35e1fa36.chunk.js b/apps/mobile/web.bundle/static/js/main.35e1fa36.chunk.jsnew file mode 100644index 000000000..e3d3efd08--- /dev/null+++ b/apps/mobile/web.bundle/static/js/main.35e1fa36.chunk.js@@ -0,0 +1 @@+(this.webpackJsonptiptap=this.webpackJsonptiptap||[]).push([[1],{123:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n.n(o),i=n(25),a=n.n(i),l=(n(83),n(84),n(59)),c=n(0);var s=function(){return Object(c.jsx)(l.a,{})},d=function(e){e&&e instanceof Function&&n.e(5).then(n.bind(null,129)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,a=t.getTTFB;n(e),o(e),r(e),i(e),a(e)}))};n(118),n(119),n(120),n(121),n(122);a.a.render(Object(c.jsx)(r.a.StrictMode,{children:Object(c.jsx)(s,{})}),document.getElementById("root")),d()},16:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var o={selection:"editor-event:selection",content:"editor-event:content",title:"editor-event:title",scroll:"editor-event:scroll",history:"editor-event:history",newtag:"editor-event:newtag",tag:"editor-event:tag",filepicker:"editor-event:picker",download:"editor-event:download-attachment",logger:"native:logger",back:"editor-event:back",pro:"editor-event:pro",monograph:"editor-event:monograph",properties:"editor-event:properties",fullscreen:"editor-event:fullscreen"};function r(){return!!window.ReactNativeWebView}function i(t,n){r()?window.ReactNativeWebView.postMessage(JSON.stringify({type:o[t]||t,value:n,sessionId:e.sessionId})):console.log(t,n)}globalThis.logger=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n.map((function(e){return"string"!==typeof e?JSON.stringify(e):e})).join(" ");i(o.logger,"[".concat(e,"]: ")+a)},globalThis.post=i}).call(this,n(33))},34:function(e,t,n){e.exports={btn:"styles_btn__19MaA",btn_header:"styles_btn_header__2xGXR",titleBar:"styles_titleBar__2hePW"}},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(46),r=n.n(o),i=n(15);function a(e){var t=document.getElementById("variables-nn"),n=document.getElementsByTagName("head")[0];t&&n.removeChild(t);var o=document.createElement("style");o.type="text/css",o.id="variables-nn",o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),n.insertBefore(o,function(){var e,t=Object(i.a)(document.getElementsByTagName("style"));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.innerHTML.includes("#root"))return n}}catch(o){t.e(o)}finally{t.f()}}())}function l(e){var t=":root {";for(var n in e)t+="--nn_".concat(n,": ").concat(e[n],";");return t+"}"}var c={accent:"#008837",shade:"#00883712",fg:"#008837",normal:"black",icon:"gray",transGray:"#00000010",errorBg:"#FFB6C1",errorText:"#ff6961",successBg:"#DFF2BF",successText:"#4F8A10",warningBg:"#FF990020",warningText:"#FF9900",red:"#f44336",orange:"#FF9800",yellow:"#FFD600",green:"#4CAF50",blue:"#2196F3",purple:"#673AB7",gray:"#9E9E9E",discord:"#5865F2",night:!1,bg:"#ffffff",navbg:"#f7f7f7",nav:"#f7f7f7",pri:"#424242",sec:"white",light:"#ffffff",input:"transparent",heading:"#212121",border:"#E8E8E8",placeholder:"#a9a9a9"};a(l(c));var s=r()((function(e,t){return{colors:c,setColors:function(t){a(l(t)),e({colors:t})}}}))},59:function(e,t,n){"use strict";(function(e){var o=n(9),r=n(7),i=n(6),a=n(35),l=n(52),c=n(1),s=n(63),d=n(64),u=n(49),f=n(16),b=n(65),v=n(75),h=n(76),g=n(77),p=n(0),j=function(){var t,n,j=Object(d.a)(),m=Object(c.useState)(0),O=Object(i.a)(m,2),y=O[0],x=O[1],C=Object(u.a)((function(e){return e.colors})),w=Object(c.useRef)(null),S=Object(c.useRef)(null),T=Object(c.useState)(!1),R=Object(i.a)(T,2),_=R[0],k=R[1],D=Object(l.useTheme)({accent:null===C||void 0===C?void 0:C.accent,scale:1,theme:null!==C&&void 0!==C&&C.night?"dark":"light"}),F=Object(l.useTheme)({accent:null===C||void 0===C?void 0:C.accent,scale:1,theme:null!==C&&void 0!==C&&C.night?"dark":"light"});F.colors.background=(null===C||void 0===C?void 0:C.bg)||"#f0f0f0",F.space=[0,10,12,20],D.space=[0,10,12,18],D.space.small="10px",D.buttons.menuitem=Object(r.a)(Object(r.a)({},D.buttons.menuitem),{},{height:"50px",paddingX:"20px",borderBottomWidth:0}),D.iconSizes={big:20,medium:18,small:18},D.fontSizes=Object(r.a)(Object(r.a)({},D.fontSizes),{},{subBody:"0.8rem",body:"0.9rem"}),D.radii=Object(r.a)(Object(r.a)({},D.radii),{},{small:5}),D.buttons.menuitem=Object(r.a)(Object(r.a)({},D.buttons.menuitem),{},{px:5,height:"45px"}),Object(a.d)({claims:{premium:j.premium},onPermissionDenied:function(){post(f.a.pro)}});var I=Object(a.e)({onUpdate:function(t){var n=t.editor;e.editorController.contentChange(n)},onSelectionUpdate:function(t){e.editorController.selectionChange(t.editor)},onOpenAttachmentPicker:function(t,n){return e.editorController.openFilePicker(n),!0},onDownloadAttachment:function(t,n){return e.editorController.downloadAttachment(n),!0},theme:F,element:_&&w.current||void 0,editable:!j.readonly,editorProps:{editable:function(){return!j.readonly}},content:null===(t=e.editorController)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.current,isMobile:!0,isKeyboardOpen:j.keyboardShown},[_,j.readonly,y]),P=Object(s.a)(I,(function(){x((function(e){return e+1})),P.setTitlePlaceholder("Note title")})),A=Object(c.useRef)(P);return globalThis.editorController=P,globalThis.editor=I,Object(c.useLayoutEffect)((function(){k(!0)}),[]),Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)("div",{style:{display:"flex",flex:1,flexDirection:"column",maxWidth:"100vw",marginBottom:"5px"},children:[Object(p.jsx)(b.a,{hasRedo:(null===I||void 0===I?void 0:I.can().redo())||!1,hasUndo:(null===I||void 0===I?void 0:I.can().undo())||!1,settings:j,noHeader:j.noHeader||!1}),Object(p.jsxs)("div",{onScroll:P.scroll,ref:S,style:{overflowY:"scroll",flexDirection:"column",height:"100%",flexGrow:1,flexShrink:1,display:"flex"},children:[j.noHeader?null:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(h.a,{}),Object(p.jsx)(g.a,{titlePlaceholder:P.titlePlaceholder,readonly:j.readonly,controller:A,title:P.title}),Object(p.jsx)(v.a,{container:S,editor:I})]}),Object(p.jsx)("div",{ref:w,style:{padding:12,paddingTop:0,color:null===C||void 0===C?void 0:C.pri,flex:1}}),Object(p.jsx)("div",{onDoubleClick:function(){var e,t,n=null===(e=globalThis.editor)||void 0===e?void 0:e.state.doc.content.size;n&&(null===(t=globalThis.editor)||void 0===t||t.chain().focus().insertContentAt(n-1,"<p></p>",{updateSelection:!0}).run())},style:{flexShrink:0,height:150,width:"100%"}})]}),j.noToolbar||!_?null:Object(p.jsx)(a.b,{sx:{pl:"10px",pt:"5px",minHeight:45},theme:D,editor:I,location:"bottom",tools:Object(o.a)(j.tools)})]})})};t.a=function(){return Object(p.jsx)(a.a,{children:Object(p.jsx)(j,{})})}}).call(this,n(33))},63:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=n(49),a=n(16);function l(t,n){var l=Object(r.useState)(""),c=Object(o.a)(l,2),s=c[0],d=c[1],u=Object(r.useState)("Note title"),f=Object(o.a)(u,2),b=f[0],v=f[1],h=Object(r.useRef)(null),g=Object(r.useRef)({selectionChange:null,change:null}),p=Object(r.useCallback)((function(e){}),[]),j=Object(r.useCallback)((function(e){if(e){var t;if("number"===typeof g.current.change)clearTimeout(null===(t=g.current)||void 0===t?void 0:t.change);g.current.change=setTimeout((function(){h.current=e.getHTML(),Object(a.c)(a.a.content,h.current)}),300)}}),[]),m=Object(r.useCallback)((function(e){}),[]),O=Object(r.useCallback)((function(t){if(console.log(t),"{"===(null===t||void 0===t?void 0:t.data[0])){var o=JSON.parse(t.data),r=o.type,l=o.value;switch(e.sessionId=o.sessionId,r){case"native:html":h.current=l,n();break;case"native:theme":i.a.getState().setColors(o.value);break;case"native:title":d(l);break;case"native:titleplaceholder":v(l)}Object(a.c)(r)}}),[n]);Object(r.useEffect)((function(){if(Object(a.b)()){var e=navigator.vendor.match(/apple/i),t=document;return e&&(t=window),t.addEventListener("message",O),function(){t.removeEventListener("message",O)}}}),[O]);var y=Object(r.useCallback)((function(e){Object(a.c)(a.a.filepicker,e)}),[]),x=Object(r.useCallback)((function(e){alert("downloadAttachment"+e.hash),Object(a.c)(a.a.download,e)}),[]);return{contentChange:j,selectionChange:p,titleChange:function(e){Object(a.c)(a.a.title,e)},scroll:m,title:s,setTitle:d,titlePlaceholder:b,setTitlePlaceholder:v,openFilePicker:y,downloadAttachment:x,content:h,onUpdate:function(){n()}}}}).call(this,n(33))},64:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n(6),r=n(7),i=n(35),a=n(1),l=localStorage.getItem("editorSettings"),c={fullscreen:!1,deviceMode:"mobile",premium:!1,tools:JSON.parse(JSON.stringify(Object(i.c)().default)),noToolbar:e.noToolbar,noHeader:e.noHeader,readonly:e.readonly};e.settingsController={update:function(t){var n=Object(r.a)(Object(r.a)({},t),{},{noToolbar:e.noToolbar||t.noToolbar,noHeader:e.noHeader||t.noHeader,readonly:e.readonly||t.readonly});JSON.stringify(n)!==JSON.stringify(e.settingsController.previous)&&(e.settingsController.set&&e.settingsController.set(n),t?localStorage.setItem("editorSettings",JSON.stringify(n)):localStorage.removeItem("editorSettings"),settingsController.previous=Object(r.a)({},n))},previous:l?JSON.parse(l):Object(r.a)({},c)};var s=function(){var t=Object(a.useState)(Object(r.a)({},e.settingsController.previous)),n=Object(o.a)(t,2),i=n[0],l=n[1];return e.settingsController.set=l,i}}).call(this,n(33))},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(66),r=n.n(o),i=n(67),a=n.n(i),l=n(68),c=n.n(l),s=n(69),d=n.n(s),u=n(70),f=n.n(u),b=n(71),v=n.n(b),h=n(72),g=n.n(h),p=n(73),j=n.n(p),m=(n(1),n(74)),O=n(16),y=n(34),x=n.n(y),C=n(0),w=function(e){var t=e.onPress,n=e.children,o=e.style,r=e.preventDefault,i=void 0===r||r;return Object(C.jsx)("button",{className:x.a.btn_header,style:o,onMouseDown:function(e){i&&e.preventDefault(),t()},children:n})};function S(e){var t=e.noHeader,n=e.settings,o=e.hasUndo,i=e.hasRedo,l=Object(m.a)();return Object(C.jsx)("div",{style:{display:"flex",alignItems:"center",height:"".concat(t?l.top:50+l.top,"px"),backgroundColor:"var(--nn_bg)",position:"sticky",width:"100vw"},children:t?null:Object(C.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",flexDirection:"row",paddingTop:l.top,height:50,alignItems:"center"},children:["mobile"===n.deviceMode||n.fullscreen?Object(C.jsx)(w,{onPress:function(){post(O.a.back)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginLeft:6,width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative"},children:Object(C.jsx)(r.a,{size:27,style:{position:"absolute"},color:"var(--nn_pri)"})}):Object(C.jsx)("div",{}),Object(C.jsxs)("div",{style:{display:"flex",alignItems:"center",flexDirection:"row"},children:[Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.undo()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(f.a,{color:o?"var(--nn_pri)":"var(--nn_nav)",size:25,style:{position:"absolute"}})}),Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.redo()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(v.a,{color:i?"var(--nn_pri)":"var(--nn_nav)",size:25,style:{position:"absolute"}})}),!n.premium&&Object(C.jsx)(w,{onPress:function(){post(O.a.pro)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(c.a,{size:25,style:{position:"absolute"},color:"orange"})}),Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.startSearch()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(j.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),Object(C.jsx)(w,{onPress:function(){post(O.a.monograph)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(a.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),"mobile"===n.deviceMode||n.fullscreen?null:Object(C.jsx)(w,{onPress:function(){post(O.a.fullscreen)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(g.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),Object(C.jsx)(w,{onPress:function(){post(O.a.properties)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:12,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(d.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})})]})]})})}},74:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=localStorage.getItem("safeAreaInsets"),a=i?JSON.parse(i):{top:0,bottom:0,left:0,right:0};e.safeAreaController={update:function(e){safeAreaController.set&&safeAreaController.set(e),safeAreaController.previous=e,localStorage.setItem("safeAreaInsets",JSON.stringify(e))},reset:function(){safeAreaController.set&&safeAreaController.set(a)},previous:a};var l=function(){var t=Object(r.useState)(e.safeAreaController.previous),n=Object(o.a)(t,2),i=n[0],a=n[1];return e.safeAreaController.set=a,i}}).call(this,n(33))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=n.n(r),a=n(0);function l(e){var t,n,l=e.editor,c=e.container,s=Object(r.useState)({date:"",saved:""}),d=Object(o.a)(s,2),u=d[0],f=d[1],b=Object(r.useState)(!1),v=Object(o.a)(b,2),h=v[0],g=v[1],p=Object(r.useRef)(0),j=Object(r.useRef)(0),m=(null===l||void 0===l||null===(t=l.storage)||void 0===t||null===(n=t.characterCount)||void 0===n?void 0:n.words())+" words",O=Object(r.useRef)({set:f});globalThis.statusBar=O;var y=i.a.useCallback((function(e){var t=e.target.scrollTop;Date.now()-j.current<300||(t>p.current?g(!1):g(!0),j.current=Date.now(),p.current=t)}),[]);Object(r.useEffect)((function(){var e=c.current;return null===e||void 0===e||e.addEventListener("scroll",y),function(){null===e||void 0===e||e.removeEventListener("scroll",y)}}),[y,c]);var x={marginTop:0,marginBottom:0,fontSize:"12px",color:"var(--nn_icon)",marginRight:8};return Object(a.jsxs)("div",{style:{flexDirection:"row",display:"flex",height:h?20:15,paddingRight:12,paddingLeft:12,position:h?"sticky":"relative",top:0,backgroundColor:"var(--nn_bg)",zIndex:1},children:[Object(a.jsx)("p",{style:x,children:m}),Object(a.jsx)("p",{style:x,children:u.date}),Object(a.jsx)("p",{style:x,children:u.saved})]})}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n(6),r=n(1),i=n(16),a=n(34),l=n.n(a),c=n(0);function s(){var t=Object(r.useState)([]),n=Object(o.a)(t,2),a=n[0],s=n[1],d=Object(r.useRef)({setTags:s});e.editorTags=d;var u=function(){var e,t;null!==(e=editor)&&void 0!==e&&e.isFocused&&(editor.commands.blur(),null===(t=editorTitle.current)||void 0===t||t.blur());post(i.a.newtag)};return Object(c.jsxs)("div",{style:{padding:"0px 12px",display:"flex",alignItems:"center",marginTop:10},children:[Object(c.jsxs)("button",{className:l.a.btn,onMouseUp:function(e){e.preventDefault(),u()},onMouseDown:function(e){return e.preventDefault()},onTouchEnd:function(e){e.preventDefault(),u()},style:{borderWidth:0,backgroundColor:"var(--nn_nav)",marginRight:5,borderRadius:100,padding:"0px 10px",fontFamily:"Open Sans",display:"flex",alignItems:"center",height:"30px"},children:[0===a.length?Object(c.jsx)("p",{style:{marginRight:4,fontSize:13,color:"var(--nn_icon)",userSelect:"none"},children:"Add a tag"}):null,Object(c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"20",height:"20",viewBox:"0 0 24 24",children:Object(c.jsx)("path",{fill:"var(--nn_accent)",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})})]}),a.map((function(e){return Object(c.jsxs)("button",{className:l.a.btn,style:{borderWidth:0,backgroundColor:"var(--nn_nav)",marginRight:5,borderRadius:100,padding:"0px 10px",height:"30px",fontFamily:"Open Sans",fontSize:13,color:"var(--nn_icon)"},onMouseUp:function(t){t.preventDefault(),post(i.a.tag,e.title)},onMouseDown:function(e){return e.preventDefault()},onTouchEnd:function(t){t.preventDefault(),post(i.a.tag,e.title)},children:["#",e.alias]})}))]})}}).call(this,n(33))},77:function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(34),a=n.n(i),l=n(0);function c(t){var n=t.controller,r=t.title,i=t.titlePlaceholder,c=t.readonly,s=Object(o.useRef)(null),d=Object(o.useRef)(!0);return e.editorTitle=s,Object(o.useEffect)((function(){s.current&&(d.current=!1,s.current.value=r,d.current=!0)}),[r]),Object(l.jsx)("input",{ref:s,className:a.a.titleBar,contentEditable:!c,disabled:c,style:{height:50,fontSize:27,width:"100%",boxSizing:"border-box",borderWidth:0,paddingRight:12,paddingLeft:12,fontWeight:600,fontFamily:"Open Sans",backgroundColor:"transparent",color:"var(--nn_heading)"},onChange:function(e){var t;d.current&&(null===(t=n.current)||void 0===t||t.titleChange(e.target.value))},placeholder:i})}t.a=r.a.memo(c,(function(e,t){return e.title===t.title&&(e.titlePlaceholder===t.titlePlaceholder&&e.readonly===t.readonly)}))}).call(this,n(33))},83:function(e,t,n){},84:function(e,t,n){}},[[123,2,3]]]);\ No newline at end of filediff --git a/apps/mobile/web.bundle/static/js/main.9bf11b19.chunk.js b/apps/mobile/web.bundle/static/js/main.9bf11b19.chunk.jsdeleted file mode 100644index bc6bebade..000000000--- a/apps/mobile/web.bundle/static/js/main.9bf11b19.chunk.js+++ /dev/null@@ -1 +0,0 @@-(this.webpackJsonptiptap=this.webpackJsonptiptap||[]).push([[1],{123:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n.n(o),i=n(25),a=n.n(i),l=(n(83),n(84),n(59)),c=n(0);var s=function(){return Object(c.jsx)(l.a,{})},d=function(e){e&&e instanceof Function&&n.e(5).then(n.bind(null,129)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,a=t.getTTFB;n(e),o(e),r(e),i(e),a(e)}))};n(118),n(119),n(120),n(121),n(122);a.a.render(Object(c.jsx)(r.a.StrictMode,{children:Object(c.jsx)(s,{})}),document.getElementById("root")),d()},16:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var o={selection:"editor-event:selection",content:"editor-event:content",title:"editor-event:title",scroll:"editor-event:scroll",history:"editor-event:history",newtag:"editor-event:newtag",tag:"editor-event:tag",filepicker:"editor-event:picker",download:"editor-event:download-attachment",logger:"native:logger",back:"editor-event:back",pro:"editor-event:pro",monograph:"editor-event:monograph",properties:"editor-event:properties",fullscreen:"editor-event:fullscreen"};function r(){return!!window.ReactNativeWebView}function i(t,n){r()?window.ReactNativeWebView.postMessage(JSON.stringify({type:o[t]||t,value:n,sessionId:e.sessionId})):console.log(t,n)}globalThis.logger=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n.map((function(e){return"string"!==typeof e?JSON.stringify(e):e})).join(" ");i(o.logger,"[".concat(e,"]: ")+a)},globalThis.post=i}).call(this,n(33))},34:function(e,t,n){e.exports={btn:"styles_btn__19MaA",btn_header:"styles_btn_header__2xGXR",titleBar:"styles_titleBar__2hePW"}},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(46),r=n.n(o),i=n(15);function a(e){var t=document.getElementById("variables-nn"),n=document.getElementsByTagName("head")[0];t&&n.removeChild(t);var o=document.createElement("style");o.type="text/css",o.id="variables-nn",o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),n.insertBefore(o,function(){var e,t=Object(i.a)(document.getElementsByTagName("style"));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.innerHTML.includes("#root"))return n}}catch(o){t.e(o)}finally{t.f()}}())}function l(e){var t=":root {";for(var n in e)t+="--nn_".concat(n,": ").concat(e[n],";");return t+"}"}var c={accent:"#008837",shade:"#00883712",fg:"#008837",normal:"black",icon:"gray",transGray:"#00000010",errorBg:"#FFB6C1",errorText:"#ff6961",successBg:"#DFF2BF",successText:"#4F8A10",warningBg:"#FF990020",warningText:"#FF9900",red:"#f44336",orange:"#FF9800",yellow:"#FFD600",green:"#4CAF50",blue:"#2196F3",purple:"#673AB7",gray:"#9E9E9E",discord:"#5865F2",night:!1,bg:"#ffffff",navbg:"#f7f7f7",nav:"#f7f7f7",pri:"#424242",sec:"white",light:"#ffffff",input:"transparent",heading:"#212121",border:"#E8E8E8",placeholder:"#a9a9a9"};a(l(c));var s=r()((function(e,t){return{colors:c,setColors:function(t){a(l(t)),e({colors:t})}}}))},59:function(e,t,n){"use strict";(function(e){var o=n(9),r=n(7),i=n(6),a=n(35),l=n(52),c=n(1),s=n(63),d=n(64),u=n(49),f=n(16),b=n(65),h=n(75),v=n(76),g=n(77),p=n(0),j=function(){var t,n,j=Object(d.a)(),m=Object(c.useState)(0),O=Object(i.a)(m,2),y=O[0],x=O[1],C=Object(u.a)((function(e){return e.colors})),w=Object(c.useRef)(null),S=Object(c.useRef)(null),T=Object(c.useState)(!1),R=Object(i.a)(T,2),_=R[0],k=R[1],D=Object(l.useTheme)({accent:"green",scale:1,theme:null!==C&&void 0!==C&&C.night?"dark":"light"}),F=Object(l.useTheme)({accent:"green",scale:1,theme:null!==C&&void 0!==C&&C.night?"dark":"light"});F.colors.background=(null===C||void 0===C?void 0:C.bg)||"#f0f0f0",F.space=[0,10,12,20],D.space=[0,10,12,18],D.space.small="10px",D.buttons.menuitem=Object(r.a)(Object(r.a)({},D.buttons.menuitem),{},{height:"50px",paddingX:"20px",borderBottomWidth:0}),D.iconSizes={big:20,medium:18,small:18},D.fontSizes=Object(r.a)(Object(r.a)({},D.fontSizes),{},{subBody:"0.8rem",body:"0.9rem"}),D.radii=Object(r.a)(Object(r.a)({},D.radii),{},{small:5}),D.buttons.menuitem=Object(r.a)(Object(r.a)({},D.buttons.menuitem),{},{px:5,height:"45px"}),Object(a.d)({claims:{premium:j.premium},onPermissionDenied:function(){post(f.a.pro)}});var I=Object(a.e)({onUpdate:function(t){var n=t.editor;e.editorController.contentChange(n)},onSelectionUpdate:function(t){e.editorController.selectionChange(t.editor)},onOpenAttachmentPicker:function(t,n){return e.editorController.openFilePicker(n),!0},onDownloadAttachment:function(t,n){return e.editorController.downloadAttachment(n),!0},theme:F,element:_&&w.current||void 0,editable:!j.readonly,editorProps:{editable:function(){return!j.readonly}},content:null===(t=e.editorController)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.current,isMobile:!0,isKeyboardOpen:j.keyboardShown},[_,j.readonly,y]),P=Object(s.a)(I,(function(){x((function(e){return e+1})),P.setTitlePlaceholder("Note title")})),A=Object(c.useRef)(P);return globalThis.editorController=P,globalThis.editor=I,Object(c.useLayoutEffect)((function(){k(!0)}),[]),Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)("div",{style:{display:"flex",flex:1,flexDirection:"column",maxWidth:"100vw",marginBottom:"5px"},children:[Object(p.jsx)(b.a,{hasRedo:(null===I||void 0===I?void 0:I.can().redo())||!1,hasUndo:(null===I||void 0===I?void 0:I.can().undo())||!1,settings:j,noHeader:j.noHeader||!1}),Object(p.jsxs)("div",{onScroll:P.scroll,ref:S,style:{overflowY:"scroll",flexDirection:"column",height:"100%",flexGrow:1,flexShrink:1,display:"flex"},children:[j.noHeader?null:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{}),Object(p.jsx)(g.a,{titlePlaceholder:P.titlePlaceholder,readonly:j.readonly,controller:A,title:P.title}),Object(p.jsx)(h.a,{container:S,editor:I})]}),Object(p.jsx)("div",{ref:w,style:{padding:12,paddingTop:0,color:null===C||void 0===C?void 0:C.pri,flex:1}}),Object(p.jsx)("div",{onDoubleClick:function(){var e,t,n=null===(e=globalThis.editor)||void 0===e?void 0:e.state.doc.content.size;n&&(null===(t=globalThis.editor)||void 0===t||t.chain().focus().insertContentAt(n-1,"<p></p>",{updateSelection:!0}).run())},style:{flexShrink:0,height:150,width:"100%"}})]}),j.noToolbar||!_?null:Object(p.jsx)(a.b,{sx:{pl:"10px",pt:"5px",minHeight:45},theme:D,editor:I,location:"bottom",tools:Object(o.a)(j.tools)})]})})};t.a=function(){return Object(p.jsx)(a.a,{children:Object(p.jsx)(j,{})})}}).call(this,n(33))},63:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=n(49),a=n(16);function l(t,n){var l=Object(r.useState)(""),c=Object(o.a)(l,2),s=c[0],d=c[1],u=Object(r.useState)("Note title"),f=Object(o.a)(u,2),b=f[0],h=f[1],v=Object(r.useRef)(null),g=Object(r.useRef)({selectionChange:null,change:null}),p=Object(r.useCallback)((function(e){}),[]),j=Object(r.useCallback)((function(e){if(e){var t;if("number"===typeof g.current.change)clearTimeout(null===(t=g.current)||void 0===t?void 0:t.change);g.current.change=setTimeout((function(){v.current=e.getHTML(),Object(a.c)(a.a.content,v.current)}),300)}}),[]),m=Object(r.useCallback)((function(e){}),[]),O=Object(r.useCallback)((function(t){if(console.log(t),"{"===(null===t||void 0===t?void 0:t.data[0])){var o=JSON.parse(t.data),r=o.type,l=o.value;switch(e.sessionId=o.sessionId,r){case"native:html":v.current=l,n();break;case"native:theme":i.a.getState().setColors(o.value);break;case"native:title":d(l);break;case"native:titleplaceholder":h(l)}Object(a.c)(r)}}),[n]);Object(r.useEffect)((function(){if(Object(a.b)()){var e=navigator.vendor.match(/apple/i),t=document;return e&&(t=window),t.addEventListener("message",O),function(){t.removeEventListener("message",O)}}}),[O]);var y=Object(r.useCallback)((function(e){Object(a.c)(a.a.filepicker,e)}),[]),x=Object(r.useCallback)((function(e){alert("downloadAttachment"+e.hash),Object(a.c)(a.a.download,e)}),[]);return{contentChange:j,selectionChange:p,titleChange:function(e){Object(a.c)(a.a.title,e)},scroll:m,title:s,setTitle:d,titlePlaceholder:b,setTitlePlaceholder:h,openFilePicker:y,downloadAttachment:x,content:v,onUpdate:function(){n()}}}}).call(this,n(33))},64:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n(6),r=n(7),i=n(35),a=n(1),l=localStorage.getItem("editorSettings"),c={fullscreen:!1,deviceMode:"mobile",premium:!1,tools:JSON.parse(JSON.stringify(Object(i.c)().default)),noToolbar:e.noToolbar,noHeader:e.noHeader,readonly:e.readonly};e.settingsController={update:function(t){var n=Object(r.a)(Object(r.a)({},t),{},{noToolbar:e.noToolbar||t.noToolbar,noHeader:e.noHeader||t.noHeader,readonly:e.readonly||t.readonly});JSON.stringify(n)!==JSON.stringify(e.settingsController.previous)&&(e.settingsController.set&&e.settingsController.set(n),t?localStorage.setItem("editorSettings",JSON.stringify(n)):localStorage.removeItem("editorSettings"),settingsController.previous=Object(r.a)({},n))},previous:l?JSON.parse(l):Object(r.a)({},c)};var s=function(){var t=Object(a.useState)(Object(r.a)({},e.settingsController.previous)),n=Object(o.a)(t,2),i=n[0],l=n[1];return e.settingsController.set=l,i}}).call(this,n(33))},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(66),r=n.n(o),i=n(67),a=n.n(i),l=n(68),c=n.n(l),s=n(69),d=n.n(s),u=n(70),f=n.n(u),b=n(71),h=n.n(b),v=n(72),g=n.n(v),p=n(73),j=n.n(p),m=(n(1),n(74)),O=n(16),y=n(34),x=n.n(y),C=n(0),w=function(e){var t=e.onPress,n=e.children,o=e.style,r=e.preventDefault,i=void 0===r||r;return Object(C.jsx)("button",{className:x.a.btn_header,style:o,onMouseDown:function(e){i&&e.preventDefault(),t()},children:n})};function S(e){var t=e.noHeader,n=e.settings,o=e.hasUndo,i=e.hasRedo,l=Object(m.a)();return Object(C.jsx)("div",{style:{display:"flex",alignItems:"center",height:"".concat(t?l.top:50+l.top,"px"),backgroundColor:"var(--nn_bg)",position:"sticky",width:"100vw"},children:t?null:Object(C.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",flexDirection:"row",paddingTop:l.top,height:50,alignItems:"center"},children:["mobile"===n.deviceMode||n.fullscreen?Object(C.jsx)(w,{onPress:function(){post(O.a.back)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginLeft:6,width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative"},children:Object(C.jsx)(r.a,{size:27,style:{position:"absolute"},color:"var(--nn_pri)"})}):Object(C.jsx)("div",{}),Object(C.jsxs)("div",{style:{display:"flex",alignItems:"center",flexDirection:"row"},children:[Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.undo()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(f.a,{color:o?"var(--nn_pri)":"var(--nn_nav)",size:25,style:{position:"absolute"}})}),Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.redo()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(h.a,{color:i?"var(--nn_pri)":"var(--nn_nav)",size:25,style:{position:"absolute"}})}),!n.premium&&Object(C.jsx)(w,{onPress:function(){post(O.a.pro)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(c.a,{size:25,style:{position:"absolute"},color:"orange"})}),Object(C.jsx)(w,{onPress:function(){var e;null===(e=editor)||void 0===e||e.commands.startSearch()},style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(j.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),Object(C.jsx)(w,{onPress:function(){post(O.a.monograph)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(a.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),"mobile"===n.deviceMode||n.fullscreen?null:Object(C.jsx)(w,{onPress:function(){post(O.a.fullscreen)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:10,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(g.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})}),Object(C.jsx)(w,{onPress:function(){post(O.a.properties)},preventDefault:!1,style:{borderWidth:0,borderRadius:100,color:"var(--nn_icon)",marginRight:12,width:39,height:39,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:Object(C.jsx)(d.a,{size:25,style:{position:"absolute"},color:"var(--nn_pri)"})})]})]})})}},74:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=localStorage.getItem("safeAreaInsets"),a=i?JSON.parse(i):{top:0,bottom:0,left:0,right:0};e.safeAreaController={update:function(e){safeAreaController.set&&safeAreaController.set(e),safeAreaController.previous=e,localStorage.setItem("safeAreaInsets",JSON.stringify(e))},reset:function(){safeAreaController.set&&safeAreaController.set(a)},previous:a};var l=function(){var t=Object(r.useState)(e.safeAreaController.previous),n=Object(o.a)(t,2),i=n[0],a=n[1];return e.safeAreaController.set=a,i}}).call(this,n(33))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(6),r=n(1),i=n.n(r),a=n(0);function l(e){var t,n,l=e.editor,c=e.container,s=Object(r.useState)({date:"",saved:""}),d=Object(o.a)(s,2),u=d[0],f=d[1],b=Object(r.useState)(!1),h=Object(o.a)(b,2),v=h[0],g=h[1],p=Object(r.useRef)(0),j=Object(r.useRef)(0),m=(null===l||void 0===l||null===(t=l.storage)||void 0===t||null===(n=t.characterCount)||void 0===n?void 0:n.words())+" words",O=Object(r.useRef)({set:f});globalThis.statusBar=O;var y=i.a.useCallback((function(e){var t=e.target.scrollTop;Date.now()-j.current<300||(t>p.current?g(!1):g(!0),j.current=Date.now(),p.current=t)}),[]);Object(r.useEffect)((function(){var e=c.current;return null===e||void 0===e||e.addEventListener("scroll",y),function(){null===e||void 0===e||e.removeEventListener("scroll",y)}}),[y,c]);var x={marginTop:0,marginBottom:0,fontSize:"12px",color:"var(--nn_icon)",marginRight:8};return Object(a.jsxs)("div",{style:{flexDirection:"row",display:"flex",height:v?20:15,paddingRight:12,paddingLeft:12,position:v?"sticky":"relative",top:0,backgroundColor:"var(--nn_bg)",zIndex:1},children:[Object(a.jsx)("p",{style:x,children:m}),Object(a.jsx)("p",{style:x,children:u.date}),Object(a.jsx)("p",{style:x,children:u.saved})]})}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n(6),r=n(1),i=n(16),a=n(34),l=n.n(a),c=n(0);function s(){var t=Object(r.useState)([]),n=Object(o.a)(t,2),a=n[0],s=n[1],d=Object(r.useRef)({setTags:s});e.editorTags=d;var u=function(){var e,t;null!==(e=editor)&&void 0!==e&&e.isFocused&&(editor.commands.blur(),null===(t=editorTitle.current)||void 0===t||t.blur());post(i.a.newtag)};return Object(c.jsxs)("div",{style:{padding:"0px 12px",display:"flex",alignItems:"center",marginTop:10},children:[Object(c.jsxs)("button",{className:l.a.btn,onMouseUp:function(e){e.preventDefault(),u()},onMouseDown:function(e){return e.preventDefault()},onTouchEnd:function(e){e.preventDefault(),u()},style:{borderWidth:0,backgroundColor:"var(--nn_nav)",marginRight:5,borderRadius:100,padding:"0px 10px",fontFamily:"Open Sans",display:"flex",alignItems:"center",height:"30px"},children:[0===a.length?Object(c.jsx)("p",{style:{marginRight:4,fontSize:13,color:"var(--nn_icon)",userSelect:"none"},children:"Add a tag"}):null,Object(c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"20",height:"20",viewBox:"0 0 24 24",children:Object(c.jsx)("path",{fill:"var(--nn_accent)",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})})]}),a.map((function(e){return Object(c.jsxs)("button",{className:l.a.btn,style:{borderWidth:0,backgroundColor:"var(--nn_nav)",marginRight:5,borderRadius:100,padding:"0px 10px",height:"30px",fontFamily:"Open Sans",fontSize:13,color:"var(--nn_icon)"},onMouseUp:function(t){t.preventDefault(),post(i.a.tag,e.title)},onMouseDown:function(e){return e.preventDefault()},onTouchEnd:function(t){t.preventDefault(),post(i.a.tag,e.title)},children:["#",e.alias]})}))]})}}).call(this,n(33))},77:function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(34),a=n.n(i),l=n(0);function c(t){var n=t.controller,r=t.title,i=t.titlePlaceholder,c=t.readonly,s=Object(o.useRef)(null),d=Object(o.useRef)(!0);return e.editorTitle=s,Object(o.useEffect)((function(){s.current&&(d.current=!1,s.current.value=r,d.current=!0)}),[r]),Object(l.jsx)("input",{ref:s,className:a.a.titleBar,contentEditable:!c,disabled:c,style:{height:50,fontSize:27,width:"100%",boxSizing:"border-box",borderWidth:0,paddingRight:12,paddingLeft:12,fontWeight:600,fontFamily:"Open Sans",backgroundColor:"transparent",color:"var(--nn_heading)"},onChange:function(e){var t;d.current&&(null===(t=n.current)||void 0===t||t.titleChange(e.target.value))},placeholder:i})}t.a=r.a.memo(c,(function(e,t){return e.title===t.title&&(e.titlePlaceholder===t.titlePlaceholder&&e.readonly===t.readonly)}))}).call(this,n(33))},83:function(e,t,n){},84:function(e,t,n){}},[[123,2,3]]]);\ No newline at end of file