"use strict";var r=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(o,e)=>r(o,"name",{value:e,configurable:true});var m=(o,e)=>{for(var n in e)r(o,n,{get:e[n],enumerable:true})};var g=(o,e,n,a)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let t of d(e))if(!f.call(o,t)&&t!==n)r(o,t,{get:()=>e[t],enumerable:!(a=u(e,t))||a.enumerable})}return o};var h=o=>g(r({},"__esModule",{value:true}),o);var v={};m(v,{default:()=>c});module.exports=h(v);var i=require("./electron-util");var s=require("./environment");var l=require("./environment-remote");function c(){if(l.isDevMode||!s.isMac||i.api.app.isInApplicationsFolder()){return}const o=i.api.dialog.showMessageBoxSync({type:"error",message:"Move to Applications folder?",detail:"Ferdium must live in the Applications folder to be able to run correctly.",buttons:["Move to Applications folder","Quit Ferdium"],defaultId:0,cancelId:1});if(o===1){i.api.app.quit();return}i.api.app.moveToApplicationsFolder({conflictHandler:e=>{if(e==="existsAndRunning"){i.api.dialog.showMessageBoxSync({type:"error",message:"Another version of Ferdium is currently running. Quit it, then launch this version of the app again.",buttons:["OK"]});i.api.app.quit()}return true}})}p(c,"enforceMacOSAppLocation");
