import{c as e}from"./p-59c95c5f.js";const l={env:"local",url:"http://localhost:3333",functions:{url:"https://us-central1-fireenjin-mx.cloudfunctions.net"},firebase:{apiKey:"AIzaSyCnvI_B2nolJRcMfCL8RnsvC5aKkNEL7sU",authDomain:"fireenjin-mx.firebaseapp.com",databaseURL:"https://fireenjin-mx-default-rtdb.firebaseio.com",projectId:"fireenjin-mx",storageBucket:"fireenjin-mx.appspot.com",messagingSenderId:"823412030856",appId:"1:823412030856:web:0e0b2ae046ef913b4e4e3d",measurementId:"G-04DJ99NMQH"},dynamicLinkDomain:"fireenjinmx.page.link"};function o(e,o){const a=!e?l:e&&e.indexOf(".")>=0?e.split(".").reduce(((e,l)=>e&&e[l]||null),l):e&&typeof l[e]!=="undefined"?l[e]:null;return o&&(!a&&a!==false&&a!==0||typeof a==="undefined"||a===null)?o:a}const{state:a,onChange:i}=e({config:o(),version:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:version")?localStorage.getItem("fireenjin:version"):"1.1.0",profile:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:profile")?JSON.parse(localStorage.getItem("fireenjin:profile")):{},session:null,templates:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:templates")?JSON.parse(localStorage.getItem("fireenjin:templates")):[],partials:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:partials")?JSON.parse(localStorage.getItem("fireenjin:partials")):[],template:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:template")?JSON.parse(localStorage.getItem("fireenjin:template")):{},isOnline:false,editorSizes:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:editorSizes")?JSON.parse(localStorage.getItem("fireenjin:editorSizes")):[50,50],isPreviewing:(localStorage===null||localStorage===void 0?void 0:localStorage.getItem)&&localStorage.getItem("fireenjin:isPreviewing")?JSON.parse(localStorage.getItem("fireenjin:isPreviewing")):false});i("editorSizes",(e=>{localStorage.setItem("fireenjin:editorSizes",JSON.stringify(e))}));i("isPreviewing",(e=>{localStorage.setItem("fireenjin:isPreviewing",JSON.stringify(e))}));i("profile",(e=>{localStorage.setItem("fireenjin:profile",JSON.stringify(e))}));i("version",(e=>{localStorage.setItem("fireenjin:version",e)}));i("template",(e=>{localStorage.setItem("fireenjin:template",JSON.stringify(e))}));i("templates",(e=>{localStorage.setItem("fireenjin:templates",JSON.stringify(e))}));i("partials",(e=>{localStorage.setItem("fireenjin:partials",JSON.stringify(e))}));export{o as e,a as s};
//# sourceMappingURL=p-5fc6058c.js.map