-
Notifications
You must be signed in to change notification settings - Fork 0
/
720.a97444c0ddc005688140.js
1 lines (1 loc) · 1.49 KB
/
720.a97444c0ddc005688140.js
1
"use strict";(self.webpackChunksparkworks_console=self.webpackChunksparkworks_console||[]).push([[720],{10720:function(P,o,a){a.r(o),a.d(o,{amplify_nav:function(){return E},amplify_sign_out:function(){return M}});var d=a(8239),u=a(75134),f=a(47289),c=a(88774),p=a.n(c),n=a(65513),h=a(53799),O=a(82073),r=a(33542),v=a(33754),g=a(84665),m=a(83126),E=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))}}]),_}();E.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=m.d,this.buttonText=v.T.SIGN_OUT}return(0,f.Z)(_,[{key:"signOut",value:(e=(0,d.Z)(p().mark(function i(t){return p().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,m.a)(s.t0);case 12:case"end":return s.stop()}},i,this,[[3,9]])})),function(i){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"},h.o.get(this.buttonText))}}]),_;var e}()}}]);