-
Notifications
You must be signed in to change notification settings - Fork 0
/
720.21d626427f3b6eafec88.js
1 lines (1 loc) · 1.49 KB
/
720.21d626427f3b6eafec88.js
1
"use strict";(self.webpackChunksparkworks_console=self.webpackChunksparkworks_console||[]).push([[720],{10720:function(P,i,a){a.r(i),a.d(i,{amplify_nav:function(){return h},amplify_sign_out:function(){return M}});var E=a(8239),u=a(75134),f=a(47289),d=a(88774),m=a.n(d),n=a(65513),c=a(53799),O=a(82073),r=a(33542),v=a(30031),g=a(84665),p=a(36755),h=function(){function _(e){(0,u.Z)(this,_),(0,n.r)(this,e)}return(0,f.Z)(_,[{key:"render",value:function(){return(0,n.h)("nav",{class:"nav"},(0,n.h)("slot",null))}}]),_}();h.style=".nav{display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}.nav>*{margin:0 0.5em}";var M=function(){function _(e){(0,u.Z)(this,_),(0,n.r)(this,e),this.handleAuthStateChange=p.d,this.buttonText=v.T.SIGN_OUT}return(0,f.Z)(_,[{key:"signOut",value:(e=(0,E.Z)(m().mark(function o(t){return m().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(t&&t.preventDefault(),r.g&&"function"==typeof r.g.signOut){s.next=3;break}throw new Error(g.N);case 3:return s.prev=3,s.next=6,r.g.signOut();case 6:this.handleAuthStateChange(O.A.SignedOut),s.next=12;break;case 9:s.prev=9,s.t0=s.catch(3),(0,p.a)(s.t0);case 12:case"end":return s.stop()}},o,this,[[3,9]])})),function(o){return e.apply(this,arguments)})},{key:"render",value:function(){var l=this;return(0,n.h)("amplify-button",{slot:"sign-out",onClick:function(t){return l.signOut(t)},"data-test":"sign-out-button"},c.o.get(this.buttonText))}}]),_;var e}()}}]);