pockethost/dist/dashboard/_app/immutable/chunks/UserLoggedIn.488e1a77.js
2023-11-01 21:27:41 -07:00

2 lines
2.2 KiB
JavaScript

import{s as p,e as u,i as $,d as g,z as _,r as h,u as b,v as k,w as I}from"./scheduler.de195056.js";import{S,i as A,a as o,g as w,t as f,c as z,b as L,d as N,m as q,e as C}from"./index.c6f2ad36.js";import{c as U,i as G}from"./stores.a280ff67.js";function m(n){let s;const i=n[2].default,e=h(i,n,n[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,l){e&&e.m(t,l),s=!0},p(t,l){e&&e.p&&(!s||l&2)&&b(e,i,t,t[1],s?I(i,t[1],l,null):k(t[1]),null)},i(t){s||(o(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function j(n){let s,i,e=n[0]&&m(n);return{c(){e&&e.c(),s=u()},l(t){e&&e.l(t),s=u()},m(t,l){e&&e.m(t,l),$(t,s,l),i=!0},p(t,[l]){t[0]?e?(e.p(t,l),l&1&&o(e,1)):(e=m(t),e.c(),o(e,1),e.m(s.parentNode,s)):e&&(w(),f(e,1,1,()=>{e=null}),z())},i(t){i||(o(e),i=!0)},o(t){f(e),i=!1},d(t){t&&g(s),e&&e.d(t)}}}function y(n,s,i){let e;_(n,U,a=>i(0,e=a));let{$$slots:t={},$$scope:l}=s;return n.$$set=a=>{"$$scope"in a&&i(1,l=a.$$scope)},[e,l,t]}class B extends S{constructor(s){super(),A(this,s,y,j,p,{})}}function d(n){let s;const i=n[3].default,e=h(i,n,n[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,l){e&&e.m(t,l),s=!0},p(t,l){e&&e.p&&(!s||l&16)&&b(e,i,t,t[4],s?I(i,t[4],l,null):k(t[4]),null)},i(t){s||(o(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function D(n){let s,i,e=n[0]&&d(n);return{c(){e&&e.c(),s=u()},l(t){e&&e.l(t),s=u()},m(t,l){e&&e.m(t,l),$(t,s,l),i=!0},p(t,l){t[0]?e?(e.p(t,l),l&1&&o(e,1)):(e=d(t),e.c(),o(e,1),e.m(s.parentNode,s)):e&&(w(),f(e,1,1,()=>{e=null}),z())},i(t){i||(o(e),i=!0)},o(t){f(e),i=!1},d(t){t&&g(s),e&&e.d(t)}}}function E(n){let s,i;return s=new B({props:{$$slots:{default:[D]},$$scope:{ctx:n}}}),{c(){L(s.$$.fragment)},l(e){N(s.$$.fragment,e)},m(e,t){q(s,e,t),i=!0},p(e,[t]){const l={};t&17&&(l.$$scope={dirty:t,ctx:e}),s.$set(l)},i(e){i||(o(s.$$.fragment,e),i=!0)},o(e){f(s.$$.fragment,e),i=!1},d(e){C(s,e)}}}function F(n,s,i){let e,t;_(n,G,r=>i(0,e=r)),_(n,U,r=>i(2,t=r));let{$$slots:l={},$$scope:a}=s,{redirect:c=!1}=s;return n.$$set=r=>{"redirect"in r&&i(1,c=r.redirect),"$$scope"in r&&i(4,a=r.$$scope)},n.$$.update=()=>{n.$$.dirty&7&&t&&c&&!e&&(window.location.href="/")},[e,c,t,l,a]}class M extends S{constructor(s){super(),A(this,s,F,E,p,{redirect:1})}}export{B as A,M as U};