1(this["webpackJsonpeosio-card-game"]=this["webpackJsonpeosio-card-game"]||[]).push([[0],{271:function(e,t){},278:function(e,t){},334:function(e,t){},384:function(e,t){},386:function(e,t){},394:function(e,t){},396:function(e,t){},446:function(e,t){},448:function(e,t){},524:function(e,t,n){},525:function(e,t,n){},527:function(e,t,n){},528:function(e,t,n){},529:function(e,t,n){},530:function(e,t,n){},531:function(e,t,n){},541:function(e,t,n){},542:function(e,t,n){},543:function(e,t,n){},544:function(e,t,n){},545:function(e,t,n){},546:function(e,t,n){},548:function(e,t,n){"use strict";n.r(t);var a=n(234),c=n.n(a),s=n(54),r=n(124),i=n(125),o=n(126),l=n(127),d=n(128),u=n(237),j=n(34),h=n(129),b=(n(524),n(525),n(4)),m=n(3),p=n(11),O=n(6),v=n(7),f=n(20),x=n.n(f),y="SET_USER",N=function(){function e(){Object(b.a)(this,e)}return Object(m.a)(e,null,[{key:"setUser",value:function(e){var t=e.name,n=e.win_count,a=e.lost_count,c=e.game,s=e.registered;return{type:y,name:t,win_count:n,lost_count:a,game:c,registered:s}}}]),e}(),g=n(5),C=n(13),k=n(86);function U(e,t,n){return w.apply(this,arguments)}function w(){return(w=Object(C.a)(Object(g.a)().mark((function e(t,n,a){var c,s;return Object(g.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=[{account:"molfettabatt",name:t,authorization:[{actor:a.activeUser.accountName,permission:a.activeUser.requestPermission?a.activeUser.requestPermission:"active"}],data:n}],{broadcast:!0,expireSeconds:300},e.prev=2,e.next=5,a.activeUser.signTransaction({actions:c},{broadcast:!0,expireSeconds:300});case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(2),e.t0;case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var _=function(){function e(){Object(b.a)(this,e)}return Object(m.a)(e,null,[{key:"getCurrentUser",value:function(){return new Promise((function(e,t){if(!localStorage.getItem("cardgame_account"))return t()}))}},{key:"login",value:function(e,t){return new Promise((function(n,a){localStorage.setItem("cardgame_account",e),U("login",{username:e},t).then((function(){n()})).catch((function(e){localStorage.removeItem("cardgame_account"),a(e)}))}))}},{key:"startGame",value:function(e){return U("startgame",{username:e.activeUser.accountName},e)}},{key:"playCard",value:function(e,t){return U("playcard",{username:t.activeUser.accountName,player_card_idx:e},t)}},{key:"nextRound",value:function(e){return U("nextround",{username:e.activeUser.accountName},e)}},{key:"endGame",value:function(e){return U("endgame",{username:e.activeUser.accountName},e)}},{key:"getUserByName",value:function(){var e=Object(C.a)(Object(g.a)().mark((function e(t){var n,a;return Object(g.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new k.JsonRpc("https://jungle4.cryptolions.io:443"),e.next=4,n.get_table_rows({json:!0,code:"molfettabatt",scope:"molfettabatt",table:"users",limit:1,lower_bound:t});case 4:return a=e.sent,e.abrupt("return",a.rows[0]);case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()}]),e}();_.contextType=j.UALContext;var S=_,M=n(10),P=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(e){var a;return Object(b.a)(this,n),(a=t.call(this,e)).displayNotificationBar=function(e){return a.setState({showNotificationBar:e})},a.displayResults=function(e){return a.setState({showResults:e})},a.displayError=function(e){e.source&&console.error("UAL Error",JSON.parse(JSON.stringify(e))),a.setState({error:e}),a.displayNotificationBar(!0)},a.displayResponse=function(e){a.setState({error:null,resp:e}),a.displayNotificationBar(!0)},a.clearMessage=function(){a.setState({error:null,resp:null}),a.displayNotificationBar(!1)},a.displayLoginModal=function(e){var t=a.props.ual,n=t.showModal,c=t.hideModal;e?n():c()},a.state={loading:!0},a.getCurrentUser=a.getCurrentUser.bind(Object(p.a)(a)),a.getCurrentUser(),a}return Object(m.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.setUser,a=t.user.name,c=this.props.ual.error,s=e.ual.error;!c||s&&c.message===s.message||console.error("UAL Error",JSON.parse(JSON.stringify(c))),void 0!=this.context&&null!=this.context.activeUser||!a||n({registered:!1,name:""})}},{key:"componentDidMount",value:function(){this._isMounted=!0,document.body.classList.add("is-loaded")}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"getCurrentUser",value:function(){var e=this,t=this.props.setUser;return S.getCurrentUser().then((function(e){t({name:e})})).catch((function(){})).finally((function(){e.setState({loading:!1})}
1))}},{key:"render",value:function(){var e=this,t=this.state.loading,n=this.props.user,a=n.name,c=n.game,s=n.registered,r="login";return c&&0!==c.status?r="game-ended":c&&c.selected_card_ai>0?r="card-selected":c&&17!==c.deck_ai.length?r="started":a&&(r="profile"),Object(M.jsxs)("div",{className:"App status-".concat(r).concat(t?" loading":""),children:[s&&Object(M.jsx)(ae,{}),!s&&Object(M.jsx)(ie,{login:function(){return e.displayLoginModal(!0)}})]})}}]),n}(f.Component);P.contextType=j.UALContext;var L={setUser:N.setUser},R=Object(s.b)((function(e){return e}),L)(P),E=Object(j.withUAL)(R),I=(n(527),function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(e){var a;return Object(b.a)(this,n),(a=t.call(this,e)).state={loading:!1},a.handleClick=a.handleClick.bind(Object(p.a)(a)),a}return Object(m.a)(n,[{key:"handleClick",value:function(){var e=this,t=this.props.onClick;this.setState((function(e){return{loading:!0}}));var n="function"===typeof t&&t();if(n&&"function"===typeof n.then)return n.then((function(){e.isComponentMounted&&e.setState({loading:!1})}));this.isComponentMounted&&this.setState({loading:!1})}},{key:"componentDidMount",value:function(){this.isComponentMounted=!0}},{key:"componentWillUnmount",value:function(){this.isComponentMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.type,a=e.style,c=e.children;return Object(M.jsx)("button",{className:"Button".concat(t?" "+t:""),onClick:this.handleClick,type:n,style:a,children:c})}}]),n}(f.Component)),T=(n(528),n(529),[[0,0],[1,1],[1,1],[1,2],[1,2],[1,3],[2,1],[2,1],[2,2],[2,2],[2,3],[3,1],[3,1],[3,2],[3,2],[3,3],[4,3],[5,0]]),G=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.cardId,n=e.onClick,a=0!==t&&n?"a":"span",c="";switch(T[t][0]){case 1:c="FIRE";break;case 2:c="WOOD";break;case 3:c="WATER";break;case 4:case 5:c="SPECIAL";break;default:c="EMPTY"}return Object(M.jsxs)(a,{className:"Card ".concat("type"+T[t][0]," ").concat("card"+t),onClick:n,children:[Object(M.jsx)("span",{className:"type",children:c}),Object(M.jsx)("span",{className:"power",children:0!==t&&T[t][1]})]})}}]),n}(f.Component),A=G,B=(n(530),n(531),n(135)),D=n.n(B);D.a.setAppElement("#root");var W=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){var e;return Object(b.a)(this,n),(e=t.call(this)).state={modalIsOpen:!1},e.openModal=e.openModal.bind(Object(p.a)(e)),e.closeModal=e.closeModal.bind(Object(p.a)(e)),e}return Object(m.a)(n,[{key:"openModal",value:function(){this.setState({modalIsOpen:!0})}},{key:"closeModal",value:function(){this.setState({modalIsOpen:!1})}},{key:"render",value:function(){return Object(M.jsxs)("div",{children:[Object(M.jsx)(I,{onClick:this.openModal,className:"small blue",children:"RULES"}),Object(M.jsxs)(D.a,{isOpen:this.state.modalIsOpen,onRequestClose:this.closeModal,className:"ModalContent",overlayClassName:"ModalOverlay",children:[Object(M.jsxs)("div",{className:"RulesModal",children:[Object(M.jsx)("div",{className:"title",children:"Rules"}),Object(M.jsxs)("ul",{children:[Object(M.jsxs)("li",{children:[Object(M.jsx)("div",{children:"Each player begins with an identical set of cards."}),Object(M.jsx)("div",{children:"Cards have two attributes:"}),Object(M.jsxs)("ol",{children:[Object(M.jsx)("li",{children:"Power: 1, 2, or 3"}),Object(M.jsx)("li",{children:"Color: Green, Red, or Blue"})]}),Object(M.jsx)("div",{children:"There are also 2 special cards:"}),Object(M.jsxs)("ol",{children:[Object(M.jsx)("li",{children:"Caparezza card voids all results in a round"}),Object(M.jsx)("li",{children:"Calvario card has a power of 5, but no elemental compatibility bonus"})]})]}),Object(M.jsx)("li",{children:Object(M.jsx)("div",{children:"At the start of the game decks are shuffled and each player draws 4 cards. Cards in hand are always face up."})}),Object(M.jsxs)("li",{children:[Object(M.jsx)("div",{children:"Each round, players pick a card. Picks are revealed simultaneously."}),Object(M.jsx)("div",{className:"divider top"}
1),Object(M.jsxs)("dl",{children:[Object(M.jsx)("dt",{children:"Score Calculations"}),Object(M.jsx)("dd",{children:Object(M.jsxs)("p",{className:"calculation1",children:[Object(M.jsx)("span",{className:"power",children:"Attack Power"}),Object(M.jsx)("span",{className:"plus",children:"+"}),Object(M.jsx)("span",{className:"bonus",children:"Color Compatibility Bonus"})]})})]}),Object(M.jsxs)("div",{className:"calculations",children:[Object(M.jsx)("div",{className:"calculation2",children:Object(M.jsxs)("div",{className:"description",children:[Object(M.jsx)("div",{children:"Attack Power"}),Object(M.jsx)("div",{children:"The attack value shown on the Card"})]})}),Object(M.jsx)("div",{className:"calculation3",children:Object(M.jsxs)("div",{className:"description",children:[Object(M.jsx)("div",{children:"Color Compatibility Bonus"}),Object(M.jsx)("div",{children:"Player will gain 1 extra score when the player card's color type is stronger than the opponent's (Red > Green > Blue > Red > etc.). For Special Card 2 (Calvario), no Color Compatibility Bonus is added"})]})}),Object(M.jsx)("div",{className:"calculation4",children:Object(M.jsxs)("div",{className:"description",children:[Object(M.jsx)("div",{children:"Special Card 1 (Caparezza)"}),Object(M.jsx)("div",{children:"This special 0 Attack Power card voids all results in a round"})]})}),Object(M.jsx)("div",{className:"calculation5",children:Object(M.jsxs)("div",{className:"description",children:[Object(M.jsx)("div",{children:"Special Card 2 (Calvario)"}
1),Object(M.jsx)("div",{children:"This special 5 Attack Power card removes color compatibility bonus in a round"})]})})]}),Object(M.jsx)("div",{className:"divider bottom"})]}),Object(M.jsx)("li",{children:Object(M.jsx)("div",{children:"The player with a higher score wins the round. The losing player loses HP equal to the difference in scores. For example, if Player A has a score of 3 and Player B has a score of 1, Player B will lose 2 HP."})}),Object(M.jsxs)("li",{children:[Object(M.jsx)("div",{children:"The game ends when:"}),Object(M.jsxs)("ol",{children:[Object(M.jsx)("li",{children:"A player has 0 or less HP. This player is the loser."}),Object(M.jsx)("li",{children:"All cards are played. The winner will be the player with the highest life total. If life totals are the same, the AI player wins."})]})]})]})]}),Object(M.jsx)("div",{onClick:this.closeModal,children:Object(M.jsx)("i",{className:"ButtonClose",children:"Close"})})]})]})}}]),n}(f.Component),H=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.deckCardCount,a=e.handCardCount,c=e.onEndGame;return Object(M.jsxs)("div",{className:"Info".concat(t?" "+t:""),children:[Object(M.jsxs)("p",{children:["ROUND ",Object(M.jsxs)("span",{className:"round-number",children:[18-n-a,"/17"]})]}),Object(M.jsx)(W,{}),Object(M.jsx)("div",{children:Object(M.jsx)(I,{onClick:c,className:"small red",children:"QUIT"})})]})}}]),n}(f.Component),F=H,J=(n(541),function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.deckCardCount,a=e.aiLife,c=e.aiHandCards,s=e.aiName,r=e.playerLife,i=e.playerHandCards,o=e.playerName,l=e.onPlayCard;return Object(M.jsx)("table",{className:"GameMat".concat(t?" "+t:""),children:Object(M.jsxs)("tbody",{children:[Object(M.jsx)("tr",{children:Object(M.jsxs)("td",{className:"mat mat-ai",children:[Object(M.jsx)(V,{className:"ai",name:s,life:a}),Object(M.jsxs)("div",{className:"deck ai remain".concat(n),children:[s,"'S Deck (",n,")"]}),Object(M.jsx)(K,{className:"ai",cards:c})]})}),Object(M.jsx)("tr",{children:Object(M.jsxs)("td",{className:"mat mat-player",children:[Object(M.jsx)(V,{className:"player",name:o,life:r}),Object(M.jsxs)("div",{className:"deck player remain".concat(n),children:[o,"'S Deck (",n,")"]}),Object(M.jsx)(K,{className:"player",cards:i,onPlayCard:l})]})})]})})}}]),n}(f.Component)),z=J,q=(n(542),n(12)),Y=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cards,a=e.onPlayCard;return Object(M.jsx)("div",{className:"HandCards".concat(t?" "+t:""),children:function(e){for(var t=[],n=function(n){var c={key:n,cardId:e[n]};a&&(c.onClick=function(){a(n)}),t.push(Object(M.jsx)(A,Object(q.a)({},c)))},c=0;c<4;++c)n(c);return t}(n)})}}]),n}(f.Component),K=Y,Q=(n(543),function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.name,a=e.life;return Object(M.jsxs)("div",{className:"PlayerInfo".concat(t?" "+t:""),children:[Object(M.jsx)("div",{className:"name",children:n}),Object(M.jsx)("div",{className:"life life".concat(a)}),Object(M.jsxs)("div",{className:"lifepoints",children:[a<0?0:a,"/5"]})]})}}]),n}(f.Component)),V=Q,X=(n(544),function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.winCount,a=e.lostCount,c=e.onStartGame,s=this.context.logout;return Object(M.jsxs)("div",{className:"PlayerProfile",children:[Object(M.jsx)("div",{className:"title",children:"Elemental Battles - powered by EOSIO"}),Object(M.jsx)("div",{className:"welcome",children:Object(M.jsx)("span",{children:"Welcome"})}),Object(M.jsx)("div",{className:"username",children:Object(M.jsx)("span",{children:t})}),Object(M.jsxs)("div",{className:"record",children:[Object(M.jsx)("p",{children:"Your Current Record"}),Object(M.jsxs)("span",{children:["Win ",Object(M.jsx)("span",{className:"count",children:n})]}),Object(M.jsx)("span",{children:" | "}),Object(M.jsxs)("span",{children:["Lost ",Object(M.jsx)("span",{className:"count",children:a})]})]}),Object(M.jsxs)("div",{className:"buttons",children:[Object(M.jsx)(I,{onClick:c,className:"green",children:"START"}),Object(M.jsx)(I,{type:"submit",className:"green",onClick:s,children:"LOG OUT"})]})]})}}]),n}(f.Component));X.contextType=j.UALContext;var Z=X,$=(n(545),function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var e=this.props,t=e.aiCard,n=e.aiName,a=e.aiLost,c=e.playerCard,s=e.playerName,r=e.playerLost,i=e.status,o=e.onNextRound,l=e.onEndGame,d=t>0,u="",j="";return 0===a&&0===r?(u="DRAW",j="DRAW"):0===a?(u="WIN",j=Object(M.jsxs)("span",{children:["- ",r]})):(u=Object(M.jsxs)("span",{children:["- ",a]}),j="WIN"),Object(M.jsx)("div",{className:"Resolution".concat(d?" card-selected":""),children:Object(M.jsxs)("div",{children:[1===i&&Object(M.jsx)("div",{className:"result win",children:"VICTORY"}),-1===i&&Object(M.jsx)("div",{className:"result lost",children:"DEFEATED"}
1),Object(M.jsxs)("div",{className:"player",children:[Object(M.jsx)("p",{className:"round-result",children:d&&j}),Object(M.jsx)(A,{cardId:c}),Object(M.jsx)("p",{className:"name",children:s})]}),Object(M.jsx)("div",{className:"vs",children:"VS"}),Object(M.jsxs)("div",{className:"ai",children:[Object(M.jsx)("p",{className:"round-result",children:d&&u}),Object(M.jsx)(A,{cardId:t}),Object(M.jsx)("p",{className:"name",children:n})]}),Object(M.jsxs)("div",{className:"buttons",children:[d&&0===i&&Object(M.jsx)(I,{onClick:o,children:"NEXT ROUND"}),d&&0!==i&&Object(M.jsx)(I,{onClick:l,className:"red",children:"QUIT"})]})]})})}}]),n}(f.Component)),ee=$,te=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(e){var a;return Object(b.a)(this,n),(a=t.call(this,e)).state={loading:!0},a.loadUser=a.loadUser.bind(Object(p.a)(a)),a.handleStartGame=a.handleStartGame.bind(Object(p.a)(a)),a.handlePlayCard=a.handlePlayCard.bind(Object(p.a)(a)),a.handleNextRound=a.handleNextRound.bind(Object(p.a)(a)),a.handleEndGame=a.handleEndGame.bind(Object(p.a)(a)),a}return Object(m.a)(n,[{key:"componentDidMount",value:function(){this.loadUser()}},{key:"loadUser",value:function(){var e=this,t=this.props,n=t.setUser,a=t.user.name;if(void 0!=this.context&&null!=this.context.activeUser)return S.getUserByName(a).then((function(t){n({registered:!0,win_count:t.win_count,lost_count:t.lost_count,game:t.game_data}),e.setState({loading:!1})}));n({registered:!1,name:""})}},{key:"handleStartGame",value:function(){var e=this;return S.startGame(this.context).then((function(){return e.loadUser()}))}},{key:"handlePlayCard",value:function(e){var t=this;if(0!==this.props.user.game.hand_player[e])return this.setState({loading:!0}),S.playCard(e,this.context).then((function(){return t.loadUser()}))}},{key:"handleNextRound",value:function(){var e=this;return S.nextRound(this.context).then((function(){return e.loadUser()}))}},{key:"handleEndGame",value:function(){var e=this;return S.endGame(this.context).then((function(){return e.loadUser()}))}},{key:"render",value:function(){var e=this.state.loading,t=this.props.user,n=t.name,a=t.win_count,c=t.lost_count,s=t.game,r=s&&17!==s.deck_ai.length;return Object(M.jsxs)("section",{className:"Game".concat(e?" loading":""),children:[r?Object(M.jsxs)("div",{className:"container",children:[Object(M.jsx)(z,{deckCardCount:s.deck_ai.length,aiLife:s.life_ai,aiHandCards:s.hand_ai,aiName:"Molfetta",playerLife:s.life_player,playerHandCards:s.hand_player,playerName:n,onPlayCard:this.handlePlayCard}),Object(M.jsx)(ee,{status:s.status,aiCard:s.selected_card_ai,aiName:"COMPUTER",aiLost:s.life_lost_ai,playerCard:s.selected_card_player,playerName:n,playerLost:s.life_lost_player,onNextRound:this.handleNextRound,onEndGame:this.handleEndGame}),Object(M.jsx)(F,{deckCardCount:s.deck_ai.length,handCardCount:s.hand_ai.filter((function(e){return e>0})).length,onEndGame:this.handleEndGame})]}):Object(M.jsx)(Z,{name:n,winCount:a,lostCount:c,onLogout:this.handleLogout,onStartGame:this.handleStartGame}),r&&e&&Object(M.jsxs)("div",{className:"spinner",children:[Object(M.jsx)("div",{className:"image"}),Object(M.jsxs)("div",{className:"circles",children:[Object(M.jsx)("div",{className:"circle",children:Object(M.jsx)("div",{className:"inner"})}),Object(M.jsx)("div",{className:"circle",children:Object(M.jsx)("div",{className:"inner"})}),Object(M.jsx)("div",{className:"circle",children:Object(M.jsx)("div",{className:"inner"})}),Object(M.jsx)("div",{className:"circle",children:Object(M.jsx)("div",{className:"inner"})}),Object(M.jsx)("div",{className:"circle",children:Object(M.jsx)("div",{className:"inner"})})]})]})]})}}]),n}(f.Component);te.contextType=j.UALContext;var ne={setUser:N.setUser},ae=Object(s.b)((function(e){return e}),ne)(te),ce=(n(546),function(e,t){13!==e.which&&13!==e.keyCode||t()}),se=function(e){Object(O.a)(n,e);var t=Object(v.a)(n);function n(e){var a;return Object(b.a)(this,n),(a=t.call(this,e)).signUp=function(){var e=a.context.activeUser.accountName;S.login(e,a.context)},a.state={form:{username:"",key:"",error:""},isSigningIn:!1},a}return Object(m.a)(n,[{key:"handleChange",value:function(e){}},{key:"componentDidMount",value:function(){this.isComponentMounted=!0}},{key:"componentWillUnmount",value:function(){this.isComponentMounted=!1}},{key:"componentDidUpdate",value:function(){var e=this.props.setUser,t
1=this.props.user.name;if(this.context.activeUser&&!t){var n=this.context.activeUser.accountName;S.getUserByName(n).then((function(t){t.username==n&&e({name:n,registered:!0})}))}}},{key:"render",value:function(){var e=this,t=this.state,n=(t.form,t.error,t.isSigningIn,this.props.login),a=this.context.logout,c=this.props.user,s=(c.name,c.game,c.registered),r=this.context.activeUser;return Object(M.jsxs)("div",{className:"Login",children:[Object(M.jsx)("div",{className:"title",children:"Card Battle - powered by Hoken Tech"}),r&&!s?Object(M.jsxs)(x.a.Fragment,{children:[Object(M.jsx)("div",{className:"description",children:"Register your account into the contract to start playing Molfetta Card Game"}),Object(M.jsxs)("div",{className:"bottom",children:[Object(M.jsx)(I,{type:"submit",className:"green",onClick:function(){return e.signUp()},onKeyUp:function(t){return ce(t,e.signUp)},children:"SIGN UP"}),Object(M.jsx)(I,{type:"submit",className:"green",onClick:a,children:"LOG OUT"})]})]}):Object(M.jsxs)(x.a.Fragment,{children:[Object(M.jsx)("div",{className:"description",children:"Login to start playing Molfetta Card Game"}),Object(M.jsx)("div",{className:"bottom",children:Object(M.jsx)(I,{type:"submit",className:"green",onClick:n,onKeyUp:function(e){return ce(e,n)},children:"LOGIN WITH UAL"})})]})]})}}]),n}(f.Component);se.contextType=j.UALContext;var re={setUser:N.setUser},ie=Object(s.b)((function(e){return e}),re)(se),oe=n(59),le={name:"",registered:!1,win_count:0,lost_count:0,game:null},de=Object(oe.b)({user:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le,t=arguments.length>1?arguments[1]:void 0;return t.type===y?Object.assign({},e,{name:"undefined"===typeof t.name?e.name:t.name,registered:t.registered||le.registered,win_count:t.win_count||le.win_count,lost_count:t.lost_count||le.lost_count,game:t.game||le.game}):e}}),ue=oe.c.apply(void 0,[]),je=Object(oe.d)(de,{},ue),he={chainId:"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",rpcEndpoints:[{protocol:"https",host:"jungle4.cryptolions.io",port:"443"}]},be="molfettabatt",me=new i.EOSIOAuth([he],{appName:be,protocol:"eosio"}),pe=new l.Lynx([he]),Oe=new h.TokenPocket([he],{appName:be}),ve=[he],fe=[me,new r.Anchor([he],{appName:be,disableGreymassFuel:!0}),pe,new o.Ledger([he]),Oe,new d.MeetOne([he]),new u.Metamask([he])];c.a.createRoot(document.getElementById("root")).render(Object(M.jsx)(j.UALProvider,{chains:ve,authenticators:fe,appName:be,children:Object(M.jsx)(s.a,{store:je,children:Object(M.jsx)(E,{})})}))}},[[548,1,2]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.