2023-06-02 18:38:36 +02:00
import { S as G , i as I , s as J , F as M , c as H , m as L , t as v , a as y , d as z , C as N , E as O , g as _ , k as R , n as W , o as b , O as Y , G as j , p as A , q as B , e as m , w as C , b as h , f as d , r as T , h as k , u as P , v as D , y as E , x as K , z as F } from "./index-d375d58a.js" ; function Q ( r ) { let e , t , l , s , n , o , c , i , a , u , g , $ , p = r [ 3 ] && S ( r ) ; return o = new B ( { props : { class : "form-field required" , name : "password" , $$slots : { default : [ V , ( { uniqueId : f } ) => ( { 8 : f } ) , ( { uniqueId : f } ) => f ? 256 : 0 ] } , $$scope : { ctx : r } } } ) , { c ( ) { e = m ( "form" ) , t = m ( "div" ) , l = m ( "h5" ) , s = C ( ` Type your password to confirm changing your email address
2023-05-13 21:10:14 +02:00
` ),p&&p.c(),n=h(),H(o. $ $ .fragment),c=h(),i=m("button"),a=m("span"),a.textContent="Confirm new email",d(t,"class","content txt-center m-b-base"),d(a,"class","txt"),d(i,"type","submit"),d(i,"class","btn btn-lg btn-block"),i.disabled=r[1],T(i,"btn-loading",r[1])},m(f,w){_(f,e,w),k(e,t),k(t,l),k(l,s),p&&p.m(l,null),k(e,n),L(o,e,null),k(e,c),k(e,i),k(i,a),u=!0,g||( $ =P(e,"submit",D(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=S(f),p.c(),p.m(l,null)):p&&(p.d(1),p=null);const q={};w&769&&(q. $ $ scope={dirty:w,ctx:f}),o. $ set(q),(!u||w&2)&&(i.disabled=f[1]),(!u||w&2)&&T(i,"btn-loading",f[1])},i(f){u||(v(o. $ $ .fragment,f),u=!0)},o(f){y(o. $ $ .fragment,f),u=!1},d(f){f&&b(e),p&&p.d(),z(o),g=!1, $ ()}}}function U(r){let e,t,l,s,n;return{c(){e=m("div"),e.innerHTML= ` < div class = "icon" > < i class = "ri-checkbox-circle-line" > < / i > < / d i v >
< p > You can now sign in with your new email address . < / p > < / d i v > ` , t = h ( ) , l = m ( " b u t t o n " ) , l . t e x t C o n t e n t = " C l o s e " , d ( e , " c l a s s " , " a l e r t a l e r t - s u c c e s s " ) , d ( l , " t y p e " , " b u t t o n " ) , d ( l , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - b l o c k " ) } , m ( o , c ) { _ ( o , e , c ) , _ ( o , t , c ) , _ ( o , l , c ) , s | | ( n = P ( l , " c l i c k " , r [ 6 ] ) , s = ! 0 ) } , p : E , i : E , o : E , d ( o ) { o & & b ( e ) , o & & b ( t ) , o & & b ( l ) , s = ! 1 , n ( ) } } } f u n c t i o n S ( r ) { l e t e , t , l ; r e t u r n { c ( ) { e = C ( " t o " ) , t = m ( " s t r o n g " ) , l = C ( r [ 3 ] ) , d ( t , " c l a s s " , " t x t - n o w r a p " ) } , m ( s , n ) { _ ( s , e , n ) , _ ( s , t , n ) , k ( t , l ) } , p ( s , n ) { n & 8 & & K ( l , s [ 3 ] ) } , d ( s ) { s & & b ( e ) , s & & b ( t ) } } } f u n c t i o n V ( r ) { l e t e , t , l , s , n , o , c , i ; r e t u r n { c ( ) { e = m ( " l a b e l " ) , t = C ( " P a s s w o r d " ) , s = h ( ) , n = m ( " i n p u t " ) , d ( e , " f o r " , l = r [ 8 ] ) , d ( n , " t y p e " , " p a s s w o r d " ) , d ( n , " i d " , o = r [ 8 ] ) , n . r e q u i r e d = ! 0 , n . a u t o f o c u s = ! 0 } , m ( a , u ) { _ ( a , e , u ) , k ( e , t ) , _ ( a , s , u ) , _ ( a , n , u ) , F ( n , r [ 0 ] ) , n . f o c u s ( ) , c | | ( i = P ( n , " i n p u t " , r [ 7 ] ) , c = ! 0 ) } , p ( a , u ) { u & 2 5 6 & & l ! = = ( l = a [ 8 ] ) & & d ( e , " f o r " , l ) , u & 2 5 6 & & o ! = = ( o = a [ 8 ] ) & & d ( n , " i d " , o ) , u & 1 & & n . v a l u e ! = = a [ 0 ] & & F ( n , a [ 0 ] ) } , d ( a ) { a & & b ( e ) , a & & b ( s ) , a & & b ( n ) , c = ! 1 , i ( ) } } } f u n c t i o n X ( r ) { l e t e , t , l , s ; c o n s t n = [ U , Q ] , o = [ ] ; f u n c t i o n c ( i , a ) { r e t u r n i [ 2 ] ? 0 : 1 } r e t u r n e = c ( r ) , t = o [ e ] = n [ e ] ( r ) , { c ( ) { t . c ( ) , l = O ( ) } , m ( i , a ) { o [ e ] . m ( i , a ) , _ ( i , l , a ) , s = ! 0 } , p ( i , a ) { l e t u = e ; e = c ( i ) , e = = = u ? o [ e ] . p ( i , a ) : ( R ( ) , y ( o [ u ] , 1 , 1 , ( ) = > { o [ u ] = n u l l } ) , W ( ) , t = o [ e ] , t ? t . p ( i , a ) : ( t = o [ e ] = n [ e ] ( i ) , t . c ( ) ) , v ( t , 1 ) , t . m ( l . p a r e n t N o d e , l ) ) } , i ( i ) { s | | ( v ( t ) , s = ! 0 ) } , o ( i ) { y ( t ) , s = ! 1 } , d ( i ) { o [ e ] . d ( i ) , i & & b ( l ) } } } f u n c t i o n Z ( r ) { l e t e , t ; r e t u r n e = n e w M ( { p r o p s : { n o b r a n d i n g : ! 0 , $ $ s l o t s : { d e f a u l t : [ X ] } , $ $ s c o p e : { c t x : r } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( l , s ) { L ( e , l , s ) , t = ! 0 } , p ( l , [ s ] ) { c o n s t n = { } ; s & 5 2 7 & & ( n . $ $ s c o p e = { d i r t y : s , c t x : l } ) , e . $ s e t ( n ) } , i ( l ) { t | | ( v ( e . $ $ . f r a g m e n t , l ) , t = ! 0 ) } , o ( l ) { y ( e . $ $ . f r a g m e n t , l ) , t = ! 1 } , d ( l ) { z ( e , l ) } } } f u n c t i o n x ( r , e , t ) { l e t l , { p a r a m s : s } = e , n = " " , o = ! 1 , c = ! 1 ; a s y n c f u n c t i o n i ( ) { i f ( o ) r e t u r n ; t ( 1 , o = ! 0 ) ; c o n s t g = n e w Y ( " . . / " ) ; t r y { c o n s t $ = j ( s = = n u l l ? v o i d 0 : s . t o k e n ) ; a w a i t g . c o l l e c t i o n ( $ . c o l l e c t i o n I d ) . c o n f i r m E m a i l C h a n g e ( s = = n u l l ? v o i d 0 : s . t o k e n , n ) , t ( 2 , c = ! 0 ) } c a t c h ( $ ) { A . e r r o r ( $ ) } t ( 1 , o = ! 1 ) } c o n s t a = ( ) = > w i n d o w . c l o s e ( ) ; f u n c t i o n u ( ) { n = t h i s . v a l u e , t ( 0 , n ) } r e t u r n r . $ $ s e t = g = > { " p a r a m s " i n g & & t ( 5 , s = g . p a r a m s ) } , r . $ $ . u p d a t e = ( ) = > { r . $ $ . d i r t y & 3 2 & & t ( 3 , l = N . g e t J W T P a y l o a d ( s = = n u l l ? v o i d 0 : s . t o k e n ) . n e w E m a i l | | " " ) } , [ n , o , c , l , i , s , a , u ] } c l a s s t e e x t e n d s G { c o n s t r u c t o r ( e ) { s u p e r ( ) , I ( t h i s , e , x , Z , J , { p a r a m s : 5 } ) } } e x p o r t { t e a s d e f a u l t } ;