{"version":3,"sources":["components/landing-page/landing.js"],"names":["__webpack_require__","r","__webpack_exports__","d","Landing","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","paramKeyword","keyword","page","hash","window","location","undefined","console","log","parseInt","substring","NaN","friendlyUrl","URL","href","searchParams","get","name","language","Common","getPage","componentDidMount","handlePageChange","pageNumber","setState","render","html","merchantCode","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,UAAgBK,IAAMC,UACvCC,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,GACRC,EAAeZ,KAAKF,MAAMU,MAAMC,OAAOI,QAEvCC,EAAOd,KAAKF,MAAMU,MAAMC,OAAOK,KAC/BC,EAAOC,OAAOC,SAASF,MAEhB,IAARA,QAAsBG,GAARJ,IAEbK,QAAQC,IAAIL,GACZD,EAAOO,SAASN,EAAKO,UAAU,UAGxBJ,GAARJ,GAA6BS,KAART,IAEpBA,EAAO,GAGXK,QAAQC,IAAIpB,KAAKF,MAAMU,MAAMC,QAC7BE,EAAe,QAAIJ,EACnBI,EAAmB,YAAIX,KAAKF,MAAMU,MAAMC,OAAOe,iBAE3BN,GAAhBN,KAEAA,EADU,IAAIa,IAAIT,OAAOC,SAASS,MACfC,aAAaC,IAAI,YAExCjB,EAAoB,aAAIC,OACYM,GAAhClB,KAAKF,MAAMU,MAAMC,OAAOoB,OACxBb,OAAOC,SAASS,KAAO,IAAM1B,KAAKF,MAAMU,MAAMC,OAAOqB,SAAW,UAAY9B,KAAKF,MAAMU,MAAMC,OAAOoB,MAExG7B,KAAKC,MAAMI,MAAQ0B,IAAOC,QAAQ,UAAWrB,EAAMG,GAEvDmB,qBAEAC,iBAAiBC,GACbhB,QAAQC,sBAAsBe,KAC9BnC,KAAKoC,SAAS,CAAE9B,WAAY6B,IAEhCE,SAKI,OADArB,OAAOsB,MAAQ,aAAatC,KAAKF,MAAMU,MAAMC,OAAOe,YAAY,oBAAoBR,OAAOuB,aAAc,KAAOvC,KAAKC,MAAMI,MAAQ,UAG/HV,IAAA6C,cAAA,QAAM9B,GAAIV,KAAKF,MAAMU,MAAMC,OAAOe,YAAae,aAAcvB,OAAOuB,cAChE5C,IAAA6C,cAAA,OAAKC,wBAAyB,CAAEC,OAAQ1C,KAAKC,MAAMI","file":"static/js/25.e1fad700.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 Landing 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 var paramKeyword = this.props.match.params.keyword;\r\n\r\n var page = this.props.match.params.page;\r\n var hash = window.location.hash;\r\n \r\n if(hash != \"\" && page == undefined)\r\n {\r\n console.log(hash);\r\n page = parseInt(hash.substring(1));\r\n }\r\n\r\n if(page == undefined || page == NaN)\r\n {\r\n page = 1;\r\n }\r\n\r\n console.log(this.props.match.params);\r\n param['paramId'] = paramId;\r\n param['friendlyUrl'] = this.props.match.params.friendlyUrl;\r\n \r\n if (paramKeyword == undefined) {\r\n var url = new URL(window.location.href);\r\n paramKeyword = url.searchParams.get(\"keyword\");\r\n }\r\n param['paramKeyword'] = paramKeyword;\r\n if (this.props.match.params.name != undefined) {\r\n window.location.href = \"/\" + this.props.match.params.language + \"/pages/\" + this.props.match.params.name;\r\n }\r\n this.state.build = Common.getPage('landing', param,page);\r\n }\r\n componentDidMount() {\r\n }\r\n handlePageChange(pageNumber) {\r\n console.log(`active page is ${pageNumber}`);\r\n this.setState({ activePage: pageNumber });\r\n }\r\n render() {\r\n //console.log(this.state.string);\r\n\r\n\r\n window.html += \"
\" + this.state.build + \"
\";\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":""}