text: (this.webpackJsonpscorer_v1=this.webpackJsonpscorer_v1||[]).push([[15],{36:function(e,t,s){"use strict";s.d(t,"e",(function(){return c})),s.d(t,"a",(function(){return n})),s.d(t,"c",(function(){return a})),s.d(t,"d",(function(){return i})),s.d(t,"b",(function(){return r}));var c=function(e,t){var s;return t&&(s=JSON.stringify(t)),window.localStorage.setItem(e,s)},n=function(e){var t=window.localStorage.getItem(e);return t?JSON.parse(t):null},a=function(e){var t=n("players");return t&&t.find((function(t){return t.id===e}))||null},i=function(e){var t=n("teams");return t&&t.find((function(t){return t.id===e}))||null},r=function(e){var t=n("matches");return t&&t.find((function(t){return t.id===e}))||null}},37:function(e,t,s){"use strict";s.d(t,"a",(function(){return l}));var c=s(1),n=(s(0),s.p+"static/media/group.13f28106.svg"),a=s.p+"static/media/cricket.7320abc7.svg",i=s.p+"static/media/player.130ef4b5.svg",r=s(2);function l(){var e=Object(r.e)(),t=Object(r.f)(),s=function(t){e.push(t)};return Object(c.jsx)("div",{className:"footer",children:Object(c.jsxs)("div",{className:"menubar d-flex align-items-center text-center",children:[Object(c.jsxs)("div",{className:"menuitem p-2 ".concat(t&&"/teams"===t.path?"selected":""),onClick:function(){return s("/teams")},children:[Object(c.jsx)("div",{children:Object(c.jsx)("img",{src:n,style:{width:"50px"}})}),Object(c.jsx)("div",{children:"Teams"})]}),Object(c.jsxs)("div",{className:"menuitem p-2 ".concat(t&&"/matches"===t.path?"selected":""),onClick:function(){return s("/matches")},children:[Object(c.jsx)("div",{children:Object(c.jsx)("img",{src:a,style:{width:"50px"}})}),Object(c.jsx)("div",{children:"Matches"})]}),Object(c.jsxs)("div",{className:"menuitem p-2 ".concat(t&&"/players"===t.path?"selected":""),onClick:function(){return s("/players")},children:[Object(c.jsx)("div",{children:Object(c.jsx)("img",{src:i,style:{width:"50px"}})}),Object(c.jsx)("div",{children:"Players"})]})]})})}},44:function(e,t,s){"use strict";s.d(t,"a",(function(){return j}));var c=s(1),n=s(16),a=s(17),i=s(19),r=s(18),l=s(0),d=s(52),j=(s(45),function(e){Object(i.a)(s,e);var t=Object(r.a)(s);function s(){return Object(n.a)(this,s),t.apply(this,arguments)}return Object(a.a)(s,[{key:"render",value:function(){var e=this.props,t=e.name,s=e.placeholder,n=e.options,a=e.value,i=e.defaultValue,r=void 0===i?"":i,j=e.className,o=void 0===j?"":j,m=e.isDisabled,b=void 0!==m&&m,u=e.isLoading,h=void 0!==u&&u,x=e.isSearchable,f=void 0!==x&&x,O=e.isClearable,p=void 0===O||O,v=e.onChange,g=void 0===v?function(){}:v;return Object(c.jsx)(l.Fragment,{children:Object(c.jsx)(d.a,{className:"basic-single ".concat(o),classNamePrefix:"select",defaultValue:r,value:a,isLoading:h,isClearable:p,isDisabled:b,isSearchable:f,name:t,options:n,placeholder:s,onChange:function(e){g(e)}})})}}]),s}(l.Component))},45:function(e,t,s){},66:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return m}));var c=s(1),n=s(42),a=s(38),i=s(0),r=s.n(i),l=s(2),d=s(37),j=s(44),o=s(36);function m(){var e=Object(l.f)().params.teamId,t=Object(l.e)(),s=Object(i.useState)({}),m=Object(a.a)(s,2),b=m[0],u=m[1];Object(i.useEffect)((function(){var t=Object(o.d)(+e);t&&u(Object(n.a)({},t))}),[]);return Object(c.jsxs)(r.a.Fragment,{children:[Object(c.jsxs)("div",{className:"team-page full-height",children:[Object(c.jsxs)("div",{className:"d-flex team-page-header justify-content-between align-items-center mt-3 border-bottom pb-2",children:[Object(c.jsx)("img",{src:b.image||"https://img2.pngio.com/clipart-cricket-batsman-logo-cricket-logo-png-900_520.jpg",className:"rounded-circle teampic mr-3"}),Object(c.jsx)("div",{className:"h5 text-secondary",children:b.name})]}),Object(c.jsx)("div",{className:"ml-2",children:Object(c.jsxs)("div",{className:"d-flex small text-muted justify-content-center pt-2 team-stats align-items-center text-secondary border-bottom pb-2",children:[Object(c.jsxs)("div",{className:"mr-3",children:["Matches: ",Object(c.jsx)("span",{className:"font-weight-bold",children:3})]}),Object(c.jsxs)("div",{className:"mr-3",children:["Won: ",Object(c.jsx)("span",{className:"font-weight-bold text-success",children:1})]}),Object(c.jsxs)("div",{className:"mr-3",children:["Loss: ",Object(c.jsx)("span",{className:"font-weight-bold text-danger",children:1})]}),Object(c.jsxs)("div",{children:["Tied: ",Object(c.jsx)("span",{className:"font-weight-bold text-info",children:1})]})]})}),Object(c.jsxs)("div",{className:"player-list full-height mt-2 pl-0 pr-0",children:[Object(c.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[Object(c.jsx)("div",{className:"mr-2 flex-1",children:"Players"}),Object(c.jsx)("div",{className:"flex-2 mr-2",children:Object(c.jsx)(j.a,{})}),Object(c.jsx)("div",{children:Object(c.jsx)("button",{type:"button",class:"btn btn-outline-primary",children:"Add"})})]}),b.players&&b.players.map((function(e,s){return Object(c.jsx)("div",{className:"border player-list-item p-2 shadow-sm mb-2",onClick:function(){var s;s="/player/".concat(e.id),t.push(s)},children:Object(c.jsxs)("div",{className:"d-flex align-items-center",children:[Object(c.jsx)("img",{src:e.image,className:"rounded-circle playerpic mr-2"}),Object(c.jsxs)("div",{className:"ml-2 w-100",children:[Object(c.jsx)("div",{children:e.name}),Object(c.jsx)("div",{className:"text-muted small",children:"Right Hand Batsmen"}),Object(c.jsxs)("div",{className:"h-50 d-flex player-stats align-items-center text-secondary",children:[Object(c.jsxs)("div",{className:"mr-3",children:["Matches: ",Object(c.jsx)("span",{className:"font-weight-bold",children:e.matches})]}),Object(c.jsxs)("div",{className:"mr-3",children:["Runs: ",Object(c.jsx)("span",{className:"font-weight-bold",children:e.runs})]}),Object(c.jsxs)("div",{className:"mr-3",children:["Avg: ",Object(c.jsx)("span",{className:"font-weight-bold",children:e.avg})]}),Object(c.jsxs)("div",{children:["SRate: ",Object(c.jsx)("span",{className:"font-weight-bold",children:e.srate})]})]})]})]})},"team-".concat(s))}))]})]}),Object(c.jsx)(d.a,{})]})}}}]);
  //# sourceMappingURL=15.3029f0a4.chunk.js.map