3 lines
2.1 KiB
JavaScript
3 lines
2.1 KiB
JavaScript
!function(e,t,o,i,n){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof a[i]&&a[i],r=l.cache||{},s="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(t,o){if(!r[t]){if(!e[t]){var n="function"==typeof a[i]&&a[i];if(!o&&n)return n(t,!0);if(l)return l(t,!0);if(s&&"string"==typeof t)return s(t);var d=Error("Cannot find module '"+t+"'");throw d.code="MODULE_NOT_FOUND",d}c.resolve=function(o){var i=e[t][1][o];return null!=i?i:o},c.cache={};var f=r[t]=new u.Module(t);e[t][0].call(f.exports,c,f,f.exports,this)}return r[t].exports;function c(e){var t=c.resolve(e);return!1===t?{}:u(t)}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=l,u.register=function(t,o){e[t]=[function(e,t){t.exports=o},{}]},Object.defineProperty(u,"root",{get:function(){return a[i]}}),a[i]=u;for(var d=0;d<t.length;d++)u(t[d])}({jJ1Bl:[function(e,t,o){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(o);var i=e("react/jsx-runtime"),n=e("react"),a=e("web-utils"),l=e("../../nova/ed/logic/ed-global"),r=e("../../utils/ui/is-localhost"),s=e("../../utils/ui/loading");o.default=(0,a.page)({url:"**",component:({})=>((0,a.useGlobal)(l.EDGlobal,"EDITOR"),(0,n.useEffect)(()=>{if(localStorage.getItem("prasi-session")){if("/ed"===location.pathname||location.pathname.startsWith("/ed/"))params.site_id?navigate(`/ed/${params.site_id}/_`):navigate("/ed/_/_");else if(location.pathname.startsWith("/editor")){let e=location.pathname.split("/");e.length<=2?navigate("/ed/_/_"):3===e.length&&navigate(location.pathname+"/")}else(0,r.isLocalhost)()?navigate("/ed"):navigate("/ed/_/_")}else navigate("/login")}),(0,i.jsx)(s.Loading,{}))})},{"react/jsx-runtime":"QoA3A",react:"6Lppp","web-utils":"1hi6H","../../nova/ed/logic/ed-global":"6QDfO","../../utils/ui/is-localhost":"3GM8T","../../utils/ui/loading":"loFlS","@parcel/transformer-js/src/esmodule-helpers.js":"41Cak"}]},[],0,"parcelRequire2d1f");
|
|
//# sourceMappingURL=all.c65e57c1.js.map
|