{"size": 8694, "ext": "js", "max_stars_repo_path": "docs/static/js/g_slots.56d7580a.chunk.js", "max_stars_repo_name": "kennethbigler/react-home", "max_stars_repo_stars_event_min_datetime": "2018-07-26T06:16:05.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-27T10:02:18.000Z", "max_issues_repo_path": "docs/static/js/g_slots.56d7580a.chunk.js", "max_issues_repo_name": "kennethbigler/react-home", "max_issues_repo_issues_event_min_datetime": "2020-03-07T15:38:28.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T16:39:03.000Z", "max_forks_repo_path": "docs/static/js/g_slots.56d7580a.chunk.js", "max_forks_repo_name": "kennethbigler/react-home", "max_forks_repo_forks_event_min_datetime": "2017-11-06T21:35:41.000Z", "max_forks_repo_forks_event_max_datetime": "2018-10-04T18:30:30.000Z"}
{"max_stars_count": 16, "max_issues_count": 295, "max_forks_count": 2, "avg_line_length": 4347.0, "max_line_length": 8643, "alphanum_fraction": 0.6755233494}
(this["webpackJsonpreact-home"]=this["webpackJsonpreact-home"]||[]).push([[11],{138:function(e,t,a){"use strict";var c=a(0),n=c.createContext();t.a=n},149:function(e,t,a){"use strict";var c=a(0),n=c.createContext();t.a=n},210:function(e,t,a){"use strict";var c=a(8),n=a(2),o=a(0),r=(a(15),a(49)),i=a(30),l=a(149),s="table",d=o.forwardRef((function(e,t){var a=e.classes,i=e.className,d=e.component,b=void 0===d?s:d,p=e.padding,j=void 0===p?"normal":p,u=e.size,m=void 0===u?"medium":u,h=e.stickyHeader,y=void 0!==h&&h,O=Object(c.a)(e,["classes","className","component","padding","size","stickyHeader"]),g=o.useMemo((function(){return{padding:j,size:m,stickyHeader:y}}),[j,m,y]);return o.createElement(l.a.Provider,{value:g},o.createElement(b,Object(n.a)({role:b===s?null:"table",ref:t,className:Object(r.a)(a.root,i,y&&a.stickyHeader)},O)))}));t.a=Object(i.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(n.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(d)},211:function(e,t,a){"use strict";var c=a(2),n=a(8),o=a(0),r=(a(15),a(49)),i=a(30),l=a(138),s={variant:"body"},d="tbody",b=o.forwardRef((function(e,t){var a=e.classes,i=e.className,b=e.component,p=void 0===b?d:b,j=Object(n.a)(e,["classes","className","component"]);return o.createElement(l.a.Provider,{value:s},o.createElement(p,Object(c.a)({className:Object(r.a)(a.root,i),ref:t,role:p===d?null:"rowgroup"},j)))}));t.a=Object(i.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(b)},212:function(e,t,a){"use strict";var c=a(2),n=a(8),o=a(0),r=(a(15),a(49)),i=a(30),l=a(138),s=a(31),d=o.forwardRef((function(e,t){var a=e.classes,i=e.className,s=e.component,d=void 0===s?"tr":s,b=e.hover,p=void 0!==b&&b,j=e.selected,u=void 0!==j&&j,m=Object(n.a)(e,["classes","className","component","hover","selected"]),h=o.useContext(l.a);return o.createElement(d,Object(c.a)({ref:t,className:Object(r.a)(a.root,i,h&&{head:a.head,footer:a.footer}[h.variant],p&&a.hover,u&&a.selected),role:"tr"===d?null:"row"},m))}));t.a=Object(i.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(s.a)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(d)},213:function(e,t,a){"use strict";var c=a(8),n=a(2),o=a(0),r=(a(15),a(49)),i=a(30),l=a(58),s=a(31),d=a(149),b=a(138),p=o.forwardRef((function(e,t){var a,i,s=e.align,p=void 0===s?"inherit":s,j=e.classes,u=e.className,m=e.component,h=e.padding,y=e.scope,O=e.size,g=e.sortDirection,x=e.variant,f=Object(c.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),v=o.useContext(d.a),R=o.useContext(b.a),C=R&&"head"===R.variant;m?(i=m,a=C?"columnheader":"cell"):i=C?"th":"td";var E=y;!E&&C&&(E="col");var k=h||(v&&v.padding?v.padding:"normal"),N=O||(v&&v.size?v.size:"medium"),A=x||R&&R.variant,w=null;return g&&(w="asc"===g?"ascending":"descending"),o.createElement(i,Object(n.a)({ref:t,className:Object(r.a)(j.root,j[A],u,"inherit"!==p&&j["align".concat(Object(l.a)(p))],"normal"!==k&&j["padding".concat(Object(l.a)(k))],"medium"!==N&&j["size".concat(Object(l.a)(N))],"head"===A&&v&&v.stickyHeader&&j.stickyHeader),"aria-sort":w,role:a,scope:E},f))}));t.a=Object(i.a)((function(e){return{root:Object(n.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n    ".concat("light"===e.palette.type?Object(s.e)(Object(s.a)(e.palette.divider,1),.88):Object(s.b)(Object(s.a)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(p)},253:function(e,t,a){"use strict";var c=a(30),n=a(213),o=Object(c.a)((function(e){return{head:{backgroundColor:e.palette.common.black,color:e.palette.common.white}}}))(n.a);t.a=o},302:function(e,t,a){"use strict";var c=a(2),n=a(8),o=a(0),r=(a(15),a(49)),i=a(30),l=a(138),s={variant:"head"},d="thead",b=o.forwardRef((function(e,t){var a=e.classes,i=e.className,b=e.component,p=void 0===b?d:b,j=Object(n.a)(e,["classes","className","component"]);return o.createElement(l.a.Provider,{value:s},o.createElement(p,Object(c.a)({className:Object(r.a)(a.root,i),ref:t,role:p===d?null:"rowgroup"},j)))}));t.a=Object(i.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(b)},714:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return R}));var c=a(0),n=a.n(c),o=a(33),r=a(650),i=a(654),l=a(655),s=a(82),d=a(210),b=a(211),p=a(213),j=a(302),u=a(212),m=a(253),h=a(3),y=a(5),O=[{symbol:"".concat(h.b.JACKPOT," ").concat(h.b.JACKPOT," ").concat(h.b.JACKPOT),payout:1666},{symbol:"".concat(h.b.SEVEN," ").concat(h.b.SEVEN," ").concat(h.b.SEVEN),payout:300},{symbol:"".concat(h.b.TRIPLE_BAR," ").concat(h.b.TRIPLE_BAR," ").concat(h.b.TRIPLE_BAR),payout:100},{symbol:"".concat(h.b.DOUBLE_BAR," ").concat(h.b.DOUBLE_BAR," ").concat(h.b.DOUBLE_BAR),payout:50},{symbol:"".concat(h.b.BAR," ").concat(h.b.BAR," ").concat(h.b.BAR),payout:25},{symbol:"3 of any bar",payout:12},{symbol:"".concat(h.b.CHERRY," ").concat(h.b.CHERRY," ").concat(h.b.CHERRY),payout:12},{symbol:"".concat(h.b.CHERRY," ").concat(h.b.CHERRY),payout:6},{symbol:h.b.CHERRY,payout:3}],g=n.a.memo((function(){return Object(y.jsxs)(d.a,{children:[Object(y.jsx)(j.a,{children:Object(y.jsxs)(u.a,{children:[Object(y.jsx)(m.a,{children:"Slot Roll"}),Object(y.jsx)(m.a,{children:"Payout"})]})}),Object(y.jsx)(b.a,{children:O.map((function(e,t){return Object(y.jsxs)(u.a,{children:[Object(y.jsx)(p.a,{children:e.symbol}),Object(y.jsx)(p.a,{children:"".concat(e.payout," : 1")})]},t)}))})]})})),x=n.a.memo((function(e){var t=e.playerName,a=e.playerMoney,c=e.dealerMoney;return Object(y.jsxs)(d.a,{children:[Object(y.jsx)(j.a,{children:Object(y.jsxs)(u.a,{children:[Object(y.jsx)(m.a,{children:"Player"}),Object(y.jsx)(m.a,{children:"Money"})]})}),Object(y.jsxs)(b.a,{children:[Object(y.jsxs)(u.a,{children:[Object(y.jsx)(p.a,{children:t}),Object(y.jsx)(p.a,{children:"$".concat(a)})]}),Object(y.jsxs)(u.a,{children:[Object(y.jsx)(p.a,{children:"House"}),Object(y.jsx)(p.a,{children:"$".concat(c)})]})]})]})})),f={minHeight:39,fontWeight:900},v=function(e){var t=e.reel,a=n.a.useCallback((function(){for(var e=[],a=function(a){var c=t.map((function(e,t){return Object(y.jsx)(p.a,{children:Object(y.jsx)(l.a,{variant:"h4",align:"center",color:"secondary",style:f,children:e[a]})},"".concat(t,",").concat(a))})),n=Object(y.jsx)(u.a,{children:c},"row".concat(a));e.push(n)},c=0;c<3;c+=1)a(c);return e}),[t]);return Object(y.jsx)(d.a,{children:Object(y.jsx)(b.a,{children:a()})})},R=function(){var e=Object(o.c)((function(e){return{players:e.players,reel:e.slots}})),t=e.players,a=e.reel,n=Object(o.b)(),d=Object(c.useCallback)((function(){var e=t[0],a=e.id,c=e.bet,o=t[t.length-1].id;n(Object(s.b)(a,o,c))}),[t,n]),b=t[0],p=t[t.length-1];return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(l.a,{variant:"h2",children:"Casino Slot Machine"}),Object(y.jsxs)(i.a,{container:!0,spacing:1,style:{marginTop:"2em"},children:[Object(y.jsxs)(i.a,{item:!0,sm:6,xs:12,children:[Object(y.jsxs)(i.a,{container:!0,spacing:1,style:{marginBottom:"1em"},children:[Object(y.jsx)(i.a,{item:!0,sm:3,xs:12,children:Object(y.jsx)(r.a,{color:"primary",onClick:d,style:{marginBottom:15},variant:"contained",role:"button",children:"Spin"})}),Object(y.jsx)(i.a,{item:!0,sm:9,xs:12,children:Object(y.jsx)(v,{reel:a})})]}),Object(y.jsx)(x,{playerMoney:b.money,playerName:b.name,dealerMoney:p.money})]}),Object(y.jsx)(i.a,{item:!0,sm:6,xs:12,children:Object(y.jsx)(g,{})})]})]})}}}]);
//# sourceMappingURL=g_slots.56d7580a.chunk.js.map