{"version":3,"sources":["components/product/detail.js"],"names":["__webpack_require__","r","__webpack_exports__","d","Detail","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","_utils_common__WEBPACK_IMPORTED_MODULE_1__","React","Component","constructor","props","super","this","state","items","category","relations","build","activePage","paramId","match","params","id","param","friendlyUrl","undefined","name","window","location","href","language","Common","getPage","render","createElement","dangerouslySetInnerHTML","__html"],"mappings":"0FAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,4BAAAE,IAAA,IAAAC,EAAAL,EAAA,GAAAM,EAAAN,EAAAO,EAAAF,GAAAG,EAAAR,EAAA,GAIe,MAAMI,UAAeK,IAAMC,UACtCC,YAAYC,GACRC,MAAMD,GACNE,KAAKC,MAAQ,CACTC,MAAO,GACPC,SAAU,KACVC,UAAW,GACXC,MAAO,GACPC,WAAY,IAGhB,IAAIC,EAAUP,KAAKF,MAAMU,MAAMC,OAAOC,GAClCC,EAAQ,GACZA,EAAe,QAAIJ,EACnBI,EAAmB,YAAIX,KAAKF,MAAMU,MAAMC,OAAOG,iBACXC,GAAhCb,KAAKF,MAAMU,MAAMC,OAAOK,OACxBC,OAAOC,SAASC,KAAO,IAAMjB,KAAKF,MAAMU,MAAMC,OAAOS,SAAW,aAAelB,KAAKF,MAAMU,MAAMC,OAAOK,MAE3Gd,KAAKC,MAAMI,MAAQc,IAAOC,QAAQ,UAAWT,GAGjDU,SAEI,OAEI1B,IAAA2B,cAAA,YACI3B,IAAA2B,cAAA,OAAKC,wBAAyB,CAAEC,OAAQxB,KAAKC,MAAMI","file":"static/js/27.1dd1e465.chunk.js","sourcesContent":["import React from 'react'\r\nimport Common from '../../utils/common';\r\nimport { Redirect, Route, Switch } from \"react-router\";\r\n\r\nexport default class Detail extends React.Component {\r\n constructor(props) {\r\n super(props)\r\n this.state = {\r\n items: [],\r\n category: null,\r\n relations: [],\r\n build: '',\r\n activePage: 15\r\n }\r\n\r\n var paramId = this.props.match.params.id;\r\n var param = {};\r\n param['paramId'] = paramId;\r\n param['friendlyUrl'] = this.props.match.params.friendlyUrl;\r\n if (this.props.match.params.name != undefined) {\r\n window.location.href = \"/\" + this.props.match.params.language + \"/san-pham/\" + this.props.match.params.name;\r\n }\r\n this.state.build = Common.getPage('product', param);\r\n \r\n }\r\n render() {\r\n\r\n return (\r\n\r\n
\r\n
\r\n
\r\n\r\n )\r\n\r\n }\r\n\r\n}\r\n\r\n"],"sourceRoot":""}