You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.3 KiB

  1. {"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React from 'react';\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport classNames from \"classnames\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport Grid from '@material-ui/core/Grid';\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Paginations from \"components/Pagination/Pagination.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Logo from \"assets/img/Logo Star.png\";\nimport Email from \"@material-ui/icons/Email\";\nimport Phone from \"@material-ui/icons/Phone\";\nimport Wa from \"@material-ui/icons/WhatsApp\";\nimport Bag from \"@material-ui/icons/BusinessOutlined\";\nimport LanguageIcon from \"@material-ui/icons/Language\";\nconst useStyles = makeStyles(styles);\n\nconst DataLatestNews = function (_ref) {\n let {\n backend,\n sales\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"sales\"]);\n\n const classes = useStyles();\n const imageClasses = classNames(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);\n const navImageClasses = classNames(classes.imgRounded, classes.imgGallery);\n const DataSales = sales.map(data => {\n return __jsx(\"div\", {\n className: classes.container\n }, __jsx(\"link\", {\n rel: \"stylesheet\",\n href: \"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css\"\n }), __jsx(\"script\", {\n src: \"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"\n }), __jsx(\"script\", {\n src: \"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\"\n }), __jsx(GridContainer, {\n justify: \"center\"\n }, __jsx(GridItem, {\n xs: 12,\n sm: 12,\n md: 6\n }, __jsx(\"div\", {\n className: classes.profile\n }, __jsx(\"div\", {\n class: \"jumbotron\",\n style: {\n backgroundColor: \"#000\",\n marginLeft: \"-15px\",\n marginRight: \"-15px\"\n }\n }, __jsx(\"br\", null), __jsx(\"br\", null), __jsx(\"img\", {\n className: \"image\",\n src: Logo\n }), __jsx(\"div\", {\n style: {\n marginTop: \"-70px\"\n }\n }, __jsx(\"h1\", {\n style: {\n color: \"#fff\"\n }\n }, data.name), __jsx(\"p\", {\n style: {\n color: \"#fff\"\n }\n }, __jsx(\"strong\", null, data.job_title))), __jsx(\"br\", null), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `tel:${data.telp}`,\n target: \"_blank\"\n }, __jsx(Phone, {\n className: classes.icons\n }), \" Call Us\"), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `mailto:${data.email}`,\n target: \"_blank\"\n }, __jsx(Email, {\n className: classes.icons\n }), \" Email Us\"), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `https://wa.me/62${data.wa}`,\n target: \"_blank\"\n }, __jsx(Wa, {\n className: classes.icons\n }), \" WA Us\")), __jsx(\"div\", {\n class: \"table-responsive\",\n align: \"left\"\n }, __jsx(\"table\", {\n class: \"table\"\n }, __jsx(\"thead\", null, __jsx(\"tr\", null, __jsx(\"th\", null, __jsx(Button, {\n color: \"primary\",\n round: true\n }, __jsx(Phone, {\n className: classes.icons\n }))), __jsx(\"th\", null, data.telp, \" \", __jsx(\"br\", null), \" Mobile \")), __jsx(\"tr\", null, __jsx(\"th\", null, __jsx(Button, {\n color: \"primary\",\n round: true\n }, __jsx(Email, {\n className: classes.icons\n }))), __jsx(\"th\", null, data.email, \" \", __jsx(\"br\", null), \" Email \")), __jsx(\"tr\", null, __jsx(\"th\", null, __jsx(Button, {\n color: \"primary\",\n round: true\n }, __jsx(Bag, {\n className: classes.icons\n }))), __jsx(\"th\", null, data.company, \" \", __jsx(\"br\", null), \" \", data.job_title, \" \")), __jsx(\"tr\", null, __jsx(\"th\", null, __jsx(Button, {\n color: \"primary\",\n round: true\n }, __jsx(LanguageIcon, {\n className: classes.icons\n }))), __jsx(\"th\", null, \"thamrin.mercedes-benz.co.id\", __jsx(\"br\", null), \" Website \")))))))));\n });\n return __jsx(\"div\", null, DataSales);\n};\n\nexport default DataLatestNews;","map":null,"metadata":{},"sourceType":"module"}