2023-01-30 12:10:57 +02:00
import { S as z , i as G , s as I , F as J , c as S , m as L , t as v , a as y , d as R , C as M , E as N , g as _ , k as W , n as Y , o as b , G as j , H as A , p as B , q as D , e as m , w as C , b as h , f as d , r as H , h as k , u as P , v as K , y as E , x as O , z as T } from "./index-7525a1a3.js" ; function Q ( r ) { let e , t , l , s , n , o , c , a , i , u , g , $ , p = r [ 3 ] && F ( r ) ; return o = new D ( { 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-01-23 21:57:35 +02:00
` ),p&&p.c(),n=h(),S(o. $ $ .fragment),c=h(),a=m("button"),i=m("span"),i.textContent="Confirm new email",d(t,"class","content txt-center m-b-base"),d(i,"class","txt"),d(a,"type","submit"),d(a,"class","btn btn-lg btn-block"),a.disabled=r[1],H(a,"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,a),k(a,i),u=!0,g||( $ =P(e,"submit",K(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=F(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)&&(a.disabled=f[1]),(!u||w&2)&&H(a,"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(),R(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 F ( 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 & & O ( 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 , a ; 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 ( i , u ) { _ ( i , e , u ) , k ( e , t ) , _ ( i , s , u ) , _ ( i , n , u ) , T ( n , r [ 0 ] ) , n . f o c u s ( ) , c | | ( a = P ( n , " i n p u t " , r [ 7 ] ) , c = ! 0 ) } , p ( i , u ) { u & 2 5 6 & & l ! = = ( l = i [ 8 ] ) & & d ( e , " f o r " , l ) , u & 2 5 6 & & o ! = = ( o = i [ 8 ] ) & & d ( n , " i d " , o ) , u & 1 & & n . v a l u e ! = = i [ 0 ] & & T ( n , i [ 0 ] ) } , d ( i ) { i & & b ( e ) , i & & b ( s ) , i & & b ( n ) , c = ! 1 , a ( ) } } } 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 ( a , i ) { r e t u r n a [ 2 ] ? 0 : 1 } r e t u r n e = c ( r ) , t = o [ e ] = n [ e ] ( r ) , { c ( ) { t . c ( ) , l = N ( ) } , m ( a , i ) { o [ e ] . m ( a , i ) , _ ( a , l , i ) , s = ! 0 } , p ( a , i ) { l e t u = e ; e = c ( a ) , e = = = u ? o [ e ] . p ( a , i ) : ( W ( ) , y ( o [ u ] , 1 , 1 , ( ) = > { o [ u ] = n u l l } ) , Y ( ) , t = o [ e ] , t ? t . p ( a , i ) : ( t = o [ e ] = n [ e ] ( a ) , t . c ( ) ) , v ( t , 1 ) , t . m ( l . p a r e n t N o d e , l ) ) } , i ( a ) { s | | ( v ( t ) , s = ! 0 ) } , o ( a ) { y ( t ) , s = ! 1 } , d ( a ) { o [ e ] . d ( a ) , a & & 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 J ( { 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 ( ) { S ( 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 ) { R ( 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 a ( ) { i f ( o ) r e t u r n ; t ( 1 , o = ! 0 ) ; c o n s t g = n e w j ( " . . / " ) ; t r y { c o n s t $ = A ( 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 ( $ ) { B . e r r o r R e s p o n s e H a n d l e r ( $ ) } t ( 1 , o = ! 1 ) } c o n s t i = ( ) = > 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 = M . 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 , a , s , i , u ] } c l a s s t e e x t e n d s z { c o n s t r u c t o r ( e ) { s u p e r ( ) , G ( t h i s , e , x , Z , I , { p a r a m s : 5 } ) } } e x p o r t { t e a s d e f a u l t } ;