(function(t){function n(n){for(var a,o,s=n[0],c=n[1],u=n[2],l=0,d=[];l=0&&(this.redirecting=!0,this.$auth.handleAuthentication().then((function(){var n={type:"login-ok",token:t.$auth.user.sub,email:t.$auth.user.email};_.a.post("login-call","event-track",(new Date).getTime(),n).then((function(){t.$router.push("/settings")})).catch((function(t){console.log(t.message,"handleAuthetication - posting login event")}))})))}},x=y,C=Object(l["a"])(x,b,k,!1,null,null,null),S=C.exports;a["a"].use(v["a"]);var T=[{path:"/",name:"home",component:S},{path:"/callback",name:"callback",component:function(){return e.e("chunk-2d0cf8d6").then(e.bind(null,"63cf"))}},{path:"/aliases",name:"aliases",component:function(){return e.e("chunk-2d0e9558").then(e.bind(null,"8ca8"))}},{path:"/transformations",name:"transformations",component:function(){return e.e("chunk-2d0c8e23").then(e.bind(null,"577b"))}},{path:"/templates",name:"templates",component:function(){return e.e("chunk-2d0e68b3").then(e.bind(null,"98ca"))}},{path:"/settings",name:"settings",component:function(){return e.e("chunk-5eca3382").then(e.bind(null,"26d3"))}},{path:"/dashboard",name:"dashboard",component:function(){return e.e("chunk-784c2bb6").then(e.bind(null,"7277"))}},{path:"/profile",name:"profile",component:function(){return e.e("chunk-2d217357").then(e.bind(null,"c66d"))}},{path:"/keymaker",name:"keymaker",component:function(){return e.e("chunk-27651424").then(e.bind(null,"e7e9"))}},{path:"/pricing",name:"pricing",component:function(){return e.e("chunk-4790ad0d").then(e.bind(null,"dbc9"))}},{path:"/admin",name:"admin",component:function(){return e.e("chunk-35da6956").then(e.bind(null,"3530"))}}],P=new v["a"]({mode:"history",base:"/",routes:T});P.beforeEach((function(t,n,e){var a=["callback","home"];a.includes(t.name)||P.app.$auth.isAuthenticated()?e():P.app.$auth.login()}));var I=P,$=(e("a434"),e("2f62"));a["a"].use($["a"]);var A=new $["a"].Store({state:{tenant:!1,subscription:!1,plans:!1,invalidationList:[]},getters:{tenant:function(t){return t.tenant},subscription:function(t){return t.subscription},plans:function(t){return t.plans},hasFreePlan:function(t){return["","t0"].includes(t.subscription.code)},invalidationList:function(t){return t.invalidationList}},mutations:{setTenant:function(t,n){t.tenant=n},setSubscription:function(t,n){t.subscription=n},setPlans:function(t,n){var e=[];for(var a in n)e.push(n[a]);t.plans=e},addInvalidation:function(t,n){t.invalidationList.push(n)},removeInvalidation:function(t,n){t.invalidationList.splice(n,1)}},actions:{saveTenant:function(t){var n=t.state.tenant,e=localStorage.getItem("user");return e&&(e=JSON.parse(e),n.email=e.email),new Promise((function(t,e){_.a.post(n.token,"tenant",n.token,n).then((function(){t(!0)})).catch((function(t){e(t)}))}))},newSubscription:function(t,n){var e=t.state.tenant;return e.subscriptionId=n.subscriptionId,e.subscriptionTier=n.plancode,new Promise((function(t,n){_.a.post(e.token,"newsubscription",e.token,e).then((function(){t(!0)})).catch((function(t){n(t)}))}))},cancelSubscription:function(t){return new Promise((function(n,e){var a=t.state.tenant;_.a.post(a.token,"cancelsubscription",a.token,a).then((function(){n(!0)})).catch((function(t){e(t)}))}))},sendInvalidations:function(t){return new Promise((function(n,e){var a=t.state.invalidationList,o={};o.paths=a,o.src="backendui";var i=t.state.tenant;_.a.post(i.token,"invalidate",i.token,o).then((function(){t.state.invalidationList=[],n(!0)})).catch((function(t){e(t)}))}))},invite:function(t,n){var e=t.state.tenant,a={};return a.email=n.email,new Promise((function(t,n){_.a.post(e.token,"invite",e.token,a).then((function(){t(!0)})).catch((function(t){n(t)}))}))},inviteCancel:function(t,n){var e=t.state.tenant,a={};return a.email=n.email,new Promise((function(t,n){_.a.post(e.token,"invitecancel",e.token,a).then((function(){t(!0)})).catch((function(t){n(t)}))}))},removeProfile:function(t,n){var e=t.state.tenant,a=n;return new Promise((function(t,n){_.a.post(e.token,"removeprofile",e.token,a).then((function(){t(!0)})).catch((function(t){n(t)}))}))},inviteAccept:function(t,n){var e=t.state.tenant,a={};return a.email=n.email,a.token=n.token,new Promise((function(t,n){_.a.post(e.token,"inviteaccept",e.token,a).then((function(){t(!0)})).catch((function(t){n(t)}))}))},switchToken:function(t,n){return new Promise((function(e,a){var o={},i=t.state.tenant;o.sub=i.sub,o.switchTo=n.switchTo,_.a.post(i.token,"switchtoken",i.token,o).then((function(){e(!0)})).catch((function(t){a(t)}))}))}},modules:{}}),E=(e("25f0"),e("b0af")),O={redir:"https://cp.ixmage.com",logout:"https://cp.ixmage.com"},L={domain:"readonlychild.auth0.com",clientId:"GzBkOxA7YQJZr3rPlfweJVX5nwrqqy0c",redirectUri:O.redir,logoutUri:O.logout},D=new E["a"].WebAuth({domain:L.domain,clientID:L.clientId,redirectUri:L.redirectUri,audience:"https://"+L.domain+"/api/v2/",responseType:"token id_token",scope:"openid profile email"}),j=new a["a"]({computed:{token:{get:function(){return localStorage.getItem("id_token")},set:function(t){localStorage.setItem("id_token",t)}},accessToken:{get:function(){return localStorage.getItem("access_token")},set:function(t){localStorage.setItem("access_token",t)}},expiresAt:{get:function(){return localStorage.getItem("expires_at")},set:function(t){var n=1e3*t+(new Date).getTime();localStorage.setItem("expires_at",n.toString())}},user:{get:function(){return JSON.parse(localStorage.getItem("user"))},set:function(t){localStorage.setItem("user",JSON.stringify(t))}}},methods:{login:function(){D.authorize()},logout:function(){return new Promise((function(t,n){localStorage.removeItem("access_token"),localStorage.removeItem("id_token"),localStorage.removeItem("expires_at"),localStorage.removeItem("user"),D.logout({returnTo:L.logoutUri,clientID:L.clientId}).then((function(){t(!0)})).catch((function(t){n(t.message)}))}))},isAuthenticated:function(){return(new Date).getTime()