"use strict";var R=Object.create;var a=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var H=Object.getPrototypeOf;var I=Object.prototype.hasOwnProperty;var N=(o,t,n,s)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let r of B(t))if(!I.call(o,r)&&r!==n)a(o,r,{get:()=>t[r],enumerable:!(s=S(t,r))||s.enumerable})}return o};var e=(o,t,n)=>(n=o!=null?R(H(o)):{},N(t||!o||!o.__esModule?a(n,"default",{value:o,enumerable:true}):n,o));var p=require("react/jsx-runtime");var m=require("electron");var d=require("@superwf/mobx-react-router");var c=require("history");var u=require("mobx-react");var w=require("react-dom/client");var i=e(require("./actions"));var f=e(require("./api"));var v=e(require("./api/server/LocalApi"));var L=e(require("./api/server/ServerApi"));var l=e(require("./lib/Menu"));var y=e(require("./lib/TouchBar"));var E=e(require("./stores"));var F=e(require("./I18n"));var g=e(require("./routes"));m.webFrame.setVisualZoomLevelLimits(1,1);window.addEventListener("load",()=>{const o=new L.default;const t=(0,f.default)(o,new v.default);const n=(0,c.createHashHistory)();const s=new d.RouterStore(n);const r=(0,E.default)(t,i.default,s);const h=new l.default(r,i.default);const P=new y.default(r,i.default);window["ferdium"]={stores:r,actions:i.default,api:t,menu:h,touchBar:P,features:{},render(){const A=(0,p.jsx)(u.Provider,{stores:r,actions:i.default,children:(0,p.jsx)(F.default,{stores:{app:r.app,user:r.user},children:(0,p.jsx)(g.default,{history:n})})});const b=document.querySelector("#root");const D=(0,w.createRoot)(b);D.render(A)}};window["ferdium"].render()});window.addEventListener("mouseup",o=>{if(o.button===3||o.button===4){o.preventDefault();o.stopPropagation()}});window.addEventListener("dragover",o=>o.preventDefault());window.addEventListener("drop",o=>o.preventDefault());window.addEventListener("dragover",o=>o.stopPropagation());window.addEventListener("drop",o=>o.stopPropagation());
