{"ast":null,"code":"var _jsxFileName = \"/Users/aundrekerr/Projects/React2019/gunsmith3/src/components/Weapon/Current.js\";\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux'; // import { buildEnhancedStat } from './../../utils/stats.js';\n\nclass Current extends Component {\n  render() {\n    const _this$props = this.props,\n          manifest = _this$props.manifest,\n          _this$props$weapon = _this$props.weapon,\n          perks = _this$props$weapon.perks,\n          mod = _this$props$weapon.mod,\n          masterwork = _this$props$weapon.masterwork; // console.log('current', weapon)\n\n    return React.createElement(\"div\", {\n      className: \"weapon__tab weapon__current\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 20\n      },\n      __self: this\n    }, React.createElement(\"span\", {\n      className: \"uppercase tracked-wide underline\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 21\n      },\n      __self: this\n    }, \"Current\"), React.createElement(\"div\", {\n      className: \"weapon__curent-perks\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 22\n      },\n      __self: this\n    }, Object.keys(perks).map(perk => {\n      console.log(perks[perk]);\n    })), React.createElement(\"div\", {\n      className: \"weapon__curent-mod\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 29\n      },\n      __self: this\n    }, \"mod\"), React.createElement(\"div\", {\n      className: \"weapon__curent-masterwork\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 30\n      },\n      __self: this\n    }, \"mw\"));\n  }\n\n}\n\nconst mapStateToProps = state => ({\n  manifest: state.manifest,\n  weapon: state.weapon\n});\n\nexport default connect(mapStateToProps, {})(Current);","map":{"version":3,"sources":["/Users/aundrekerr/Projects/React2019/gunsmith3/src/components/Weapon/Current.js"],"names":["React","Component","connect","Current","render","props","manifest","weapon","perks","mod","masterwork","Object","keys","map","perk","console","log","mapStateToProps","state"],"mappings":";AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,QAAwB,aAAxB,C,CACA;;AAEA,MAAMC,OAAN,SAAsBF,SAAtB,CAAgC;AAE/BG,EAAAA,MAAM,GAAE;AAAA,wBAUH,IAVG,CAENC,KAFM;AAAA,UAGLC,QAHK,eAGLA,QAHK;AAAA,2CAILC,MAJK;AAAA,UAKJC,KALI,sBAKJA,KALI;AAAA,UAMJC,GANI,sBAMJA,GANI;AAAA,UAOJC,UAPI,sBAOJA,UAPI,EAWP;;AACA,WACC;AAAK,MAAA,SAAS,EAAC,6BAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OACC;AAAM,MAAA,SAAS,EAAC,kCAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADD,EAEC;AAAK,MAAA,SAAS,EAAC,sBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAEEC,MAAM,CAACC,IAAP,CAAYJ,KAAZ,EAAmBK,GAAnB,CAAuBC,IAAI,IAAI;AAC9BC,MAAAA,OAAO,CAACC,GAAR,CAAYR,KAAK,CAACM,IAAD,CAAjB;AACA,KAFD,CAFF,CAFD,EASC;AAAK,MAAA,SAAS,EAAC,oBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aATD,EAUC;AAAK,MAAA,SAAS,EAAC,2BAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAVD,CADD;AAcA;;AA5B8B;;AA+BhC,MAAMG,eAAe,GAAGC,KAAK,KAAK;AACjCZ,EAAAA,QAAQ,EAAEY,KAAK,CAACZ,QADiB;AAEjCC,EAAAA,MAAM,EAAEW,KAAK,CAACX;AAFmB,CAAL,CAA7B;;AAKA,eAAeL,OAAO,CAACe,eAAD,EAAkB,EAAlB,CAAP,CAEZd,OAFY,CAAf","sourcesContent":["import React, { Component } from 'react';\nimport { connect } from 'react-redux';\n// import { buildEnhancedStat } from './../../utils/stats.js';\n\nclass Current extends Component {\n\t\n\trender(){\n\t\tconst {\n\t\t\tprops: {\n\t\t\t\tmanifest,\n\t\t\t\tweapon: {\n\t\t\t\t\tperks,\n\t\t\t\t\tmod,\n\t\t\t\t\tmasterwork\n\t\t\t\t}\n\t\t\t}\n\t\t} = this;\n\t\t// console.log('current', weapon)\n\t\treturn (\n\t\t\t<div className=\"weapon__tab weapon__current\">\n\t\t\t\t<span className=\"uppercase tracked-wide underline\">Current</span>\n\t\t\t\t<div className=\"weapon__curent-perks\">\n\t\t\t\t\t{\n\t\t\t\t\t\tObject.keys(perks).map(perk => {\n\t\t\t\t\t\t\tconsole.log(perks[perk])\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t<div className=\"weapon__curent-mod\">mod</div>\n\t\t\t\t<div className=\"weapon__curent-masterwork\">mw</div>\n\t\t\t</div>\n\t\t)\n\t}\n}\n\nconst mapStateToProps = state => ({\n\tmanifest: state.manifest,\n\tweapon: state.weapon,\n});\n\nexport default connect(mapStateToProps, {\n\n})(Current);"]},"metadata":{},"sourceType":"module"}