Browse Source

fix revisi meet

master
yusmar 3 years ago
parent
commit
5c0d608d0a
100 changed files with 790 additions and 744 deletions
  1. +1
    -1
      .next/BUILD_ID
  2. +739
    -697
      .next/build-manifest.json
  3. +1
    -0
      .next/cache/next-babel-loader/000144a642e71e2af321ebf35dfa3f35.json
  4. +0
    -1
      .next/cache/next-babel-loader/040ef475f61b72488745e59ae4db6df4.json
  5. +0
    -1
      .next/cache/next-babel-loader/04fe6227b8162694c8bccc55d78010cf.json
  6. +0
    -1
      .next/cache/next-babel-loader/05619a0855f22e261b2e83d39cc9fa43.json
  7. +0
    -1
      .next/cache/next-babel-loader/080f2d5e23bd33a41e61a8eb1cd67c0b.json
  8. +1
    -0
      .next/cache/next-babel-loader/08cd7456410df3df0b075ce5870fc632.json
  9. +1
    -0
      .next/cache/next-babel-loader/0ab1c72ad4d1a3e8b1c33fc07ec38258.json
  10. +1
    -0
      .next/cache/next-babel-loader/1242e623bdb5889aca732fd60e06c3fa.json
  11. +1
    -0
      .next/cache/next-babel-loader/174e339522c1647570892ec100294162.json
  12. +0
    -1
      .next/cache/next-babel-loader/19613cb9762e0fc2ad881d95b5b70c00.json
  13. +1
    -0
      .next/cache/next-babel-loader/1e141f624159efb6d7a6772ff29afb2d.json
  14. +0
    -1
      .next/cache/next-babel-loader/1ebf9ce1600cbbc6a6da47618efbb9a1.json
  15. +0
    -1
      .next/cache/next-babel-loader/218b7a213264e166667c3bf0cbfb705d.json
  16. +0
    -1
      .next/cache/next-babel-loader/240b3cd883cc5220c5ea343802626a37.json
  17. +0
    -1
      .next/cache/next-babel-loader/2584aa036a8e17a3fb3061b13cb9469d.json
  18. +0
    -1
      .next/cache/next-babel-loader/266e6d090c84f0d6e1da4db00ed51aa6.json
  19. +1
    -0
      .next/cache/next-babel-loader/2c1af0cfc966ff17316cdb9363c981c8.json
  20. +0
    -1
      .next/cache/next-babel-loader/2d88df704c1ee5e629382918054c72eb.json
  21. +1
    -0
      .next/cache/next-babel-loader/2fb1cafbe71e991808aaf52e3e8ea0d3.json
  22. +1
    -0
      .next/cache/next-babel-loader/36a79885d898c5a2567016b4816ee6bc.json
  23. +0
    -1
      .next/cache/next-babel-loader/464856d94f383f187bd37dc7b161bf5b.json
  24. +1
    -0
      .next/cache/next-babel-loader/49035e0fe53fc591650c487516c9192d.json
  25. +0
    -1
      .next/cache/next-babel-loader/4d66769fecb50988b08ff08172fe71fe.json
  26. +0
    -1
      .next/cache/next-babel-loader/510aa3ef8e55ffa05adc6c82e3645e2d.json
  27. +1
    -0
      .next/cache/next-babel-loader/5181a29a87f4b969f16465e470344b44.json
  28. +1
    -0
      .next/cache/next-babel-loader/522ebb55d2c14bfca9bd5c7aa902afb5.json
  29. +0
    -1
      .next/cache/next-babel-loader/533ee7aef20f63d2bd5b8466e11a7ca9.json
  30. +1
    -0
      .next/cache/next-babel-loader/59f46bbe542d28b736b3996af5e788cd.json
  31. +0
    -1
      .next/cache/next-babel-loader/5a9ff13514dd405977f321c25ae5e2c0.json
  32. +0
    -1
      .next/cache/next-babel-loader/5b85a6c57fd8681deb32f2a7e54618bb.json
  33. +1
    -0
      .next/cache/next-babel-loader/5c2e1150b97d5f2e43d438134b2c0f7e.json
  34. +1
    -0
      .next/cache/next-babel-loader/5d2caf1065ef3390a3442dbad6bf2b79.json
  35. +1
    -0
      .next/cache/next-babel-loader/5d6e785845f5d0799f6bdb8064728cb2.json
  36. +1
    -0
      .next/cache/next-babel-loader/6293cadaa182c21fb090f4ae6639208e.json
  37. +1
    -0
      .next/cache/next-babel-loader/6806073d7fd7d2432cae19e6975b56fe.json
  38. +1
    -0
      .next/cache/next-babel-loader/680a9029f9ff5358719923239b580bbf.json
  39. +0
    -0
      .next/cache/next-babel-loader/68942a9e3ae3e93020b5fedab0dd6268.json
  40. +1
    -0
      .next/cache/next-babel-loader/6a2414bc7b9c01797835ecfe68ba3037.json
  41. +0
    -1
      .next/cache/next-babel-loader/6b268a93ce67969e1543088b937270de.json
  42. +0
    -1
      .next/cache/next-babel-loader/6b6d218f7830cdf8fee3021c9afb0bd9.json
  43. +1
    -0
      .next/cache/next-babel-loader/6dbaaca53a3422d4e860a492a9e74a29.json
  44. +0
    -1
      .next/cache/next-babel-loader/6fc021639b9a77db9e3236d735b199eb.json
  45. +1
    -0
      .next/cache/next-babel-loader/704742453fbb785d918570129c08c475.json
  46. +1
    -0
      .next/cache/next-babel-loader/74dabb754d39916a6df1b272b71cc8a4.json
  47. +0
    -1
      .next/cache/next-babel-loader/76183aa95558757c33a5a8104f09d3d7.json
  48. +1
    -0
      .next/cache/next-babel-loader/801e1dd9cbfa69e44ce4ed232ce13c87.json
  49. +0
    -1
      .next/cache/next-babel-loader/85bb17cf72ac1f81f3307e119b7ac0dd.json
  50. +0
    -1
      .next/cache/next-babel-loader/87e05bc0e4a708c44fd262f8959f8d6d.json
  51. +0
    -1
      .next/cache/next-babel-loader/89615415d18cf712d2835c3da6f6c370.json
  52. +1
    -0
      .next/cache/next-babel-loader/8a652a7474793f9c315580736a5f8673.json
  53. +1
    -0
      .next/cache/next-babel-loader/8a80596b152d6254fe6855e1d4d17c69.json
  54. +0
    -1
      .next/cache/next-babel-loader/8b1cd6d876f9c49013e620952ccf5a0c.json
  55. +0
    -1
      .next/cache/next-babel-loader/8e1606354a418c7e14227b81476fd200.json
  56. +0
    -1
      .next/cache/next-babel-loader/8f240f1ad7fa986cea8e09282251b5e1.json
  57. +1
    -0
      .next/cache/next-babel-loader/902ea42c2c8c4bf9d6defe5eeca73c5c.json
  58. +1
    -0
      .next/cache/next-babel-loader/9571a91818eb6ca9becc63e0a17e6c79.json
  59. +0
    -1
      .next/cache/next-babel-loader/961f5f4efc0f617f6b6f4708dfec6d68.json
  60. +1
    -0
      .next/cache/next-babel-loader/97a37c94ddb2b6481b2534227e689aba.json
  61. +1
    -0
      .next/cache/next-babel-loader/98af9a2d56448df7a20f666ac17bef3a.json
  62. +1
    -0
      .next/cache/next-babel-loader/99d03e7f623e23859a31cdd5f4bb3cb1.json
  63. +0
    -1
      .next/cache/next-babel-loader/9f7c629655fe6454252b894c57c83f75.json
  64. +1
    -0
      .next/cache/next-babel-loader/a08937c2c4447e8f48efe5a57a1702c0.json
  65. +0
    -1
      .next/cache/next-babel-loader/a1deb46c035a49545d2ebf4f49ed7f05.json
  66. +1
    -0
      .next/cache/next-babel-loader/a46c409c41826c02b581b6af9c30889f.json
  67. +0
    -1
      .next/cache/next-babel-loader/a5a6e2bb8973127a28b7ed0103968187.json
  68. +1
    -0
      .next/cache/next-babel-loader/a8bc918780e4c6eba1ceb6bd40bc4bca.json
  69. +1
    -0
      .next/cache/next-babel-loader/a8db358a44fa466387420af173b4a26f.json
  70. +0
    -1
      .next/cache/next-babel-loader/ae4df79c818d5a57869247d89c85f442.json
  71. +1
    -0
      .next/cache/next-babel-loader/af83057e48c72966928a5fd824f7725c.json
  72. +0
    -1
      .next/cache/next-babel-loader/afccc161852bf25688ce69bd056c7f99.json
  73. +0
    -1
      .next/cache/next-babel-loader/b162467febb0e84c44d94997bfd5eedf.json
  74. +0
    -1
      .next/cache/next-babel-loader/b4ed773c70fa59b3141a993db3369bb0.json
  75. +1
    -0
      .next/cache/next-babel-loader/b7252a716515701f0d8cb862cb0cbaab.json
  76. +1
    -0
      .next/cache/next-babel-loader/b869b4daf519fb9e1cf5e582632173cd.json
  77. +1
    -0
      .next/cache/next-babel-loader/ba90e998e9c8f7feb0771cc653307063.json
  78. +0
    -1
      .next/cache/next-babel-loader/bc5c192f34ee34c5d82f4d84f8b297ed.json
  79. +0
    -1
      .next/cache/next-babel-loader/be5f5907e4caca991f48ca72596d2f02.json
  80. +1
    -0
      .next/cache/next-babel-loader/c1ae6e56438f312c6e65d5963ccb7565.json
  81. +0
    -0
      .next/cache/next-babel-loader/c696a15038c6d643ee01b8608fc53fcb.json
  82. +1
    -0
      .next/cache/next-babel-loader/c6b71a3e4df073c4a938e7a57a476297.json
  83. +1
    -0
      .next/cache/next-babel-loader/cc6c18646ac4ad87e6d208762452e1f0.json
  84. +1
    -0
      .next/cache/next-babel-loader/ccd49e972291c8ab4261760759d70d17.json
  85. +1
    -0
      .next/cache/next-babel-loader/cdda52102fd2ebdec4c46624a989ba02.json
  86. +0
    -1
      .next/cache/next-babel-loader/ce862dfd4b73d052f833e66d648abd99.json
  87. +0
    -1
      .next/cache/next-babel-loader/ce8bbed11c6abd65405c117f969c7484.json
  88. +0
    -1
      .next/cache/next-babel-loader/d46217fa429a16660d50a692d21e58ae.json
  89. +0
    -1
      .next/cache/next-babel-loader/e078e3622c8ddb74d7224990d1e59a1b.json
  90. +1
    -0
      .next/cache/next-babel-loader/e43cbed5d16cccad8c1c5a87e8c52499.json
  91. +1
    -0
      .next/cache/next-babel-loader/e471a854748587d4de837ed5cb622b7d.json
  92. +1
    -0
      .next/cache/next-babel-loader/e4cd845521961ccf42d28b0215bc28e2.json
  93. +0
    -1
      .next/cache/next-babel-loader/e75a20820177f4ccfa595a2086ecd2c1.json
  94. +0
    -1
      .next/cache/next-babel-loader/e75a8dbc9581d6b2adc8f781d0778b49.json
  95. +0
    -1
      .next/cache/next-babel-loader/e7ce8d0334a1881444c9743faca5ee97.json
  96. +1
    -0
      .next/cache/next-babel-loader/e7d23fe01911c0a223a03b03d957c6ac.json
  97. +0
    -1
      .next/cache/next-babel-loader/e8854f7bef14ec897cd6e4f0a5218e23.json
  98. +1
    -0
      .next/cache/next-babel-loader/e92c9cf893e4d27f9126b97edd4cfb86.json
  99. +1
    -0
      .next/cache/next-babel-loader/e97680fa81279c90506c50c6dace0f72.json
  100. +0
    -1
      .next/cache/next-babel-loader/ef88eea776e15f0c63152dce9e810dba.json

+ 1
- 1
.next/BUILD_ID View File

@@ -1 +1 @@
BstJz7heU_Y_HX1RY0Ulz
7b2OAO21GCDl6nVgxLzd-

+ 739
- 697
.next/build-manifest.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/000144a642e71e2af321ebf35dfa3f35.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/040ef475f61b72488745e59ae4db6df4.json View File

@@ -1 +0,0 @@
{"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 GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Carousel from \"react-slick\";\nimport Selling from \"assets/img/service/selling.png\";\nimport Service from \"assets/img/service/service.jpg\";\nimport Sparepart from \"assets/img/service/sparepart.jpg\";\nconst useStyles = makeStyles(styles);\n\nconst DataService = function (_ref) {\n let {\n backend,\n service\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"service\"]);\n\n const classes = useStyles();\n const settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\",\n style: {\n marginTop: \"30px\"\n }\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n align: \"center\"\n }, __jsx(\"div\", {\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha 3S\"\n }))), __jsx(\"div\", null, __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-50px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Selling\n }))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Selling Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/product/product\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Selling\")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n style: {\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Service\n }))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Service Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"https://booking.thamrin.co.id/\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Service\")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Sparepart\n }))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Sparepart Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"sparepart/sparepart\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Sparepart\")))))));\n};\n\nexport default DataService;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/04fe6227b8162694c8bccc55d78010cf.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport HelmetDetail from \"pages-sections/yamaha/product/helmet_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailHelmet from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst HelmetDetails = function (_ref) {\n let {\n user,\n backend,\n detailhelmet\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailhelmet\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(HelmetDetail, {\n detailhelmet: detailhelmet,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default HelmetDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailhelmet = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailHelmet.GetDetailHelmet(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailhelmet = res[\"DATA\"][\"helmets\"];\n }\n\n return {\n props: {\n user,\n detailhelmet,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/05619a0855f22e261b2e83d39cc9fa43.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"ygp\", \"yamalube\", \"helmet\", \"apparel\", \"accessories\", \"backend\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSparepart from \"pages-sections/yamaha/sparepart/sparepart.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar Sparepart = function Sparepart(_ref) {\n var ygp = _ref.ygp,\n yamalube = _ref.yamalube,\n helmet = _ref.helmet,\n apparel = _ref.apparel,\n accessories = _ref.accessories,\n backend = _ref.backend,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataSparepart, {\n ygp: ygp,\n yamalube: yamalube,\n helmet: helmet,\n apparel: apparel,\n accessories: accessories,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Sparepart;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/080f2d5e23bd33a41e61a8eb1cd67c0b.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ProductDetail from \"pages-sections/yamaha/product/product_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailproduct from \"../../../api/product/product.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst ProductDetails = function (_ref) {\n let {\n backend,\n detailproduct,\n user,\n color\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailproduct\", \"user\", \"color\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ProductDetail, {\n detailproduct: detailproduct,\n backend: backend,\n color: color\n })), __jsx(Footer, null));\n};\n\nexport default ProductDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailproduct = [];\n var color = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailproduct.GetProductImgColor(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n color = res[\"DATA\"][\"productImageColors\"];\n }\n\n var res = await GetDetailproduct.GetDetailProduct(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailproduct = res[\"DATA\"][\"products\"];\n }\n\n return {\n props: {\n detailproduct,\n backend,\n color,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/08cd7456410df3df0b075ce5870fc632.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetLatestNews from \"api/latest_news/news.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DetailLatestNews from \"pages-sections/yamaha/latest_news/news_details.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst detailLatestNews = function (_ref) {\n let {\n user,\n backend,\n news,\n othernews\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"news\", \"othernews\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n\n __jsx(DetailLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DetailLatestNews, {\n news: news,\n othernews: othernews,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default detailLatestNews;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var news = [];\n var othernews = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n } else if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetLatestNews.GetDetailNews(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n news = res[\"DATA\"][\"latestNews\"];\n }\n\n var res = await GetLatestNews.GetOtherNewsYamaha();\n\n if (res[\"STATUS\"] === 1) {\n othernews = res[\"DATA\"][\"latestNews\"];\n }\n\n return {\n props: {\n user,\n othernews,\n news,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/0ab1c72ad4d1a3e8b1c33fc07ec38258.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport HelmetDetail from \"pages-sections/yamaha/product/helmet_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailHelmet from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst HelmetDetails = function (_ref) {\n let {\n user,\n backend,\n detailhelmet\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailhelmet\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(HelmetDetail, {\n detailhelmet: detailhelmet,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default HelmetDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailhelmet = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailHelmet.GetDetailHelmet(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailhelmet = res[\"DATA\"][\"helmets\"];\n }\n\n return {\n props: {\n user,\n detailhelmet,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/1242e623bdb5889aca732fd60e06c3fa.json View File

@@ -0,0 +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 styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport CompanyLink from \"components/Header/LinkCompany.js\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Carousel from \"react-slick\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst DataAboutUS = function (_ref) {\n let {\n backend,\n businessPartners,\n service,\n carousel\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"businessPartners\", \"service\", \"carousel\"]);\n\n const classes = useStyles();\n const settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", null, __jsx(Card, {\n className: classes.textCenter,\n align: \"center\",\n style: {\n padding: \"5px\"\n }\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(CardHeader, {\n justify: \"center\",\n color: \"info\",\n style: {\n padding: \"10px\"\n }\n }, __jsx(CompanyLink, null))), __jsx(CardBody, null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(GridContainer, null, __jsx(GridItem, {\n className: classes.marginAuto\n }, __jsx(Carousel, settings, __jsx(\"img\", {\n src: \"http://3.bp.blogspot.com/-_dTNAAE-TMY/VL3Zyiti2OI/AAAAAAAAAT0/YSd7Ok_3I0k/s1600/Thamrin-brother-loker.png\"\n }))))), __jsx(\"h1\", {\n className: classes.cardTitle\n }, __jsx(\"b\", null, \"About Us\")), __jsx(\"p\", null, \"Thamrin Group adalah perusahaan terkemuka di Sumatera Selatan & Bengkulu dengan fokus bisnis pada sektor otomotif dan properti\"), __jsx(\"h3\", null, \"Visi\"), __jsx(\"p\", null, \"Berdampak bagi masyarakat melalui SDM yang dimiliki, pelayanan prima & pengembangan usaha secara berkelanjutan dengan membangun perusahaan yang terpercaya & memiliki reputasi yang baik\"), __jsx(\"h3\", null, \"Misi\"), __jsx(\"p\", null, \"1. Melayani 21,7 juta pelanggan di tahun 2022\"), __jsx(\"p\", null, \"2. Mengembangkan pemimpin yang sukses\"), __jsx(\"p\", null, \"3. Mengelola proses administrasi yang simple & excellent\"), __jsx(\"p\", null, \"4. Mendukung continuous improvement\"))), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n })));\n};\n\nexport default DataAboutUS;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/174e339522c1647570892ec100294162.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSparepart from \"pages-sections/yamaha/sparepart/sparepart.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nimport GetSparepart from \"api/sparepart/sparepart.js\";\nconst useStyles = makeStyles(styles);\n\nconst Sparepart = function (_ref) {\n let {\n ygp,\n yamalube,\n helmet,\n apparel,\n accessories,\n backend,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"ygp\", \"yamalube\", \"helmet\", \"apparel\", \"accessories\", \"backend\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataSparepart, {\n ygp: ygp,\n yamalube: yamalube,\n helmet: helmet,\n apparel: apparel,\n accessories: accessories,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default Sparepart;\nexport async function getServerSideProps(context) {\n var ygp = [];\n var yamalube = [];\n var helmet = [];\n var apparel = [];\n var accessories = [];\n var detailygp = [];\n var detailyamalube = [];\n var detailhelmet = [];\n var detailapparel = [];\n var detailacc = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetSparepart.GetSparepartYGP();\n\n if (res[\"STATUS\"] === 1) {\n ygp = res[\"DATA\"][\"ygParts\"];\n }\n\n var res = await GetSparepart.GetSparepartYamalube();\n\n if (res[\"STATUS\"] === 1) {\n yamalube = res[\"DATA\"][\"yamalubes\"];\n }\n\n var res = await GetSparepart.GetHelmet();\n\n if (res[\"STATUS\"] === 1) {\n helmet = res[\"DATA\"][\"helmets\"];\n }\n\n var res = await GetSparepart.GetApparel();\n\n if (res[\"STATUS\"] === 1) {\n apparel = res[\"DATA\"][\"apparels\"];\n }\n\n var res = await GetSparepart.GetAcc();\n\n if (res[\"STATUS\"] === 1) {\n accessories = res[\"DATA\"][\"accessories\"];\n }\n\n return {\n props: {\n ygp,\n yamalube,\n helmet,\n apparel,\n accessories,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/19613cb9762e0fc2ad881d95b5b70c00.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"dealers\"];\nvar __jsx = React.createElement;\nimport React, { Component } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport imagesStyles from \"assets/jss/nextjs-material-kit/imagesStyles.js\";\nimport { cardTitle } from \"assets/jss/nextjs-material-kit.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nvar useStyles = makeStyles(styles);\n\nvar DataDealer = function DataDealer(_ref) {\n var backend = _ref.backend,\n dealers = _ref.dealers,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var Dealer = dealers.map(function (data) {\n return __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"100%\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: \"\".concat(backend).concat(data.img[\"url\"])\n }), __jsx(CardBody, null, __jsx(\"p\", null, data.name), __jsx(\"p\", null, data.kota_dealer), __jsx(\"p\", null, data.telp), __jsx(\"p\", null, data.address), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: data.location,\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View Location\")))));\n });\n return __jsx(\"div\", null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"50px\"\n },\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha Dealer\"\n }))), __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, Dealer, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/dealers\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Dealers\"))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/1e141f624159efb6d7a6772ff29afb2d.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/1ebf9ce1600cbbc6a6da47618efbb9a1.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/218b7a213264e166667c3bf0cbfb705d.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/240b3cd883cc5220c5ea343802626a37.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetLatestNews from \"api/latest_news/news.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DetailLatestNews from \"pages-sections/yamaha/latest_news/news_details.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst detailLatestNews = function (_ref) {\n let {\n user,\n backend,\n news,\n othernews\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"news\", \"othernews\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n\n __jsx(DetailLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DetailLatestNews, {\n news: news,\n othernews: othernews,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default detailLatestNews;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var news = [];\n var othernews = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n } else if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetLatestNews.GetDetailNews(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n news = res[\"DATA\"][\"latestNews\"];\n }\n\n var res = await GetLatestNews.GetOtherNewsYamaha();\n\n if (res[\"STATUS\"] === 1) {\n othernews = res[\"DATA\"][\"latestNews\"];\n }\n\n return {\n props: {\n user,\n othernews,\n news,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/2584aa036a8e17a3fb3061b13cb9469d.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YGPDetail from \"pages-sections/yamaha/product/ygp_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailYGP from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst YGPDetails = function (_ref) {\n let {\n user,\n backend,\n detailygp\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailygp\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YGPDetail, {\n detailygp: detailygp,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default YGPDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailygp = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailYGP.GetYGPDetail(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailygp = res[\"DATA\"][\"ygParts\"];\n }\n\n console.log(detailygp);\n return {\n props: {\n user,\n detailygp,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/266e6d090c84f0d6e1da4db00ed51aa6.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"service\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Carousel from \"react-slick\";\nimport Selling from \"assets/img/service/selling.png\";\nimport Service from \"assets/img/service/service.jpg\";\nimport Sparepart from \"assets/img/service/sparepart.jpg\";\nvar useStyles = makeStyles(styles);\n\nvar DataService = function DataService(_ref) {\n var _jsx, _jsx2, _jsx3;\n\n var backend = _ref.backend,\n service = _ref.service,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\",\n style: {\n marginTop: \"30px\"\n }\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n align: \"center\"\n }, __jsx(\"div\", {\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha 3S\"\n }))), __jsx(\"div\", null, __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-50px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", (_jsx = {\n style: {\n height: \"180px\",\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx, \"className\", classes.imgCardTop), _defineProperty(_jsx, \"src\", Selling), _jsx)))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Selling Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/product/product\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Selling\")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", (_jsx2 = {\n style: {\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx2, \"className\", classes.imgCardTop), _defineProperty(_jsx2, \"src\", Service), _jsx2)))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Service Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"https://booking.thamrin.co.id/\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Service\")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", (_jsx3 = {\n style: {\n height: \"180px\",\n width: \"300px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx3, \"className\", classes.imgCardTop), _defineProperty(_jsx3, \"src\", Sparepart), _jsx3)))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h3\", null, __jsx(\"b\", null, \"Yamaha Sparepart Product\")), __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"sparepart/sparepart\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Sparepart\")))))));\n};\n\nexport default DataService;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/2c1af0cfc966ff17316cdb9363c981c8.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Checkout from \"pages-sections/yamaha/cart/checkout.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetCheckoutproduct from \"api/cart/checkout.js\";\nimport GetCheckoutprofile from \"api/profile/profile.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst ProductDetails = function (_ref) {\n let {\n backend,\n checkoutproduct,\n user,\n checkoutprofile\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"checkoutproduct\", \"user\", \"checkoutprofile\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(Checkout, {\n checkoutproduct: checkoutproduct,\n backend: backend,\n checkoutprofile: checkoutprofile\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default ProductDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var checkoutproduct = [];\n var checkoutprofile = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetCheckoutproduct.GetCheckoutproduct(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n checkoutproduct = res[\"DATA\"][\"products\"];\n }\n\n var res = await GetCheckoutprofile.profile();\n\n if (res[\"STATUS\"] === 1) {\n checkoutprofile = res[\"DATA\"][\"users\"];\n }\n\n var request = require(\"request\");\n\n var provinces = [];\n var cities = [];\n var province = {\n method: 'GET',\n url: 'https://api.rajaongkir.com/starter/province',\n headers: {\n key: 'f4ac703bb25ada32478d52ef2e1cab7a'\n }\n };\n var city = {\n method: 'GET',\n url: 'https://api.rajaongkir.com/starter/city',\n headers: {\n key: 'f4ac703bb25ada32478d52ef2e1cab7a'\n }\n };\n await request(province, function (error, response, body) {\n if (error) throw new Error(error);\n });\n request(city, function (error, response, body) {\n if (error) throw new Error(error);\n });\n console.log(provinces);\n return {\n props: {\n checkoutprofile,\n user,\n checkoutproduct,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/2d88df704c1ee5e629382918054c72eb.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailyamalube\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YamalubeDetail from \"pages-sections/yamaha/product/yamalube_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar YamalubeDetails = function YamalubeDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailyamalube = _ref.detailyamalube,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YamalubeDetail, {\n detailyamalube: detailyamalube,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default YamalubeDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/2fb1cafbe71e991808aaf52e3e8ea0d3.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/36a79885d898c5a2567016b4816ee6bc.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/464856d94f383f187bd37dc7b161bf5b.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/49035e0fe53fc591650c487516c9192d.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/4d66769fecb50988b08ff08172fe71fe.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderHonda from \"components/Header/HeaderHonda.js\";\nimport FooterHonda from \"components/Footer/FooterHonda.js\";\nimport DataProduct from \"pages-sections/honda/product/product.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Getproduct from \"api/product/product.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst Product = function (_ref) {\n let {\n backend,\n car,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"car\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderHonda, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/honda.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataProduct, {\n car: car,\n backend: backend\n })), __jsx(FooterHonda, null));\n};\n\nexport default Product;\nexport async function getServerSideProps(context) {\n var car = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"HONDA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await Getproduct.GetProductHonda();\n\n if (res[\"STATUS\"] === 1) {\n car = res[\"DATA\"][\"products\"];\n }\n\n return {\n props: {\n car,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/510aa3ef8e55ffa05adc6c82e3645e2d.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/5181a29a87f4b969f16465e470344b44.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Router from 'next/router';\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Getdealer from \"api/dealer/dealer.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataDealers from \"pages-sections/yamaha/dealers/dealers.js\";\nimport { QueryClient, QueryClientProvider, useQuery } from 'react-query';\nimport stylecss from \"pages/home.css\";\nconst queryClient = new QueryClient();\n\nconst handleName = values => {\n Router.push({\n pathname: '/yamaha/dealers',\n query: values && values.length != 0 ? {\n filter: values[0][\"name\"]\n } : {}\n });\n};\n\nconst useStyles = makeStyles(styles);\n\nconst Dealers = function (_ref) {\n let {\n selected,\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"selected\", \"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, null),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/dealers.png\"),\n styles: {\n marginTop: \"50px\"\n }\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(QueryClientProvider, {\n client: queryClient\n }, __jsx(DataSnackbarContent, null), __jsx(DataDealers, {\n selected: selected == \"\" ? null : selected[0][\"id\"],\n handleName: handleName,\n dealers: dealers,\n backend: backend\n })), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default Dealers;\nexport async function getServerSideProps(context) {\n var dealers = [];\n var filter = context.query.filter || \"\";\n var selected = \"\";\n const backend = process.env.BACKEND_SERVER_URI;\n var res = await Getdealer.GetDealers(filter);\n\n if (res[\"STATUS\"] === 1) {\n dealers = res[\"DATA\"][\"dealers\"];\n\n if (filter != \"\") {\n selected = dealers.filter(i => i.name == filter);\n }\n }\n\n return {\n props: {\n selected,\n dealers,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/522ebb55d2c14bfca9bd5c7aa902afb5.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport SectionCarrer from \"pages-sections/yamaha/carrer/carrer.js\";\nimport Getcarrer from \"../../../api/carrer/carrer.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst Carrer = function (_ref) {\n let {\n user,\n backend,\n s1,\n d3,\n sma\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"s1\", \"d3\", \"sma\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(SectionCarrer, {\n s1: s1,\n d3: d3,\n sma: sma,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default Carrer;\nexport async function getServerSideProps(context) {\n var s1 = [];\n var d3 = [];\n var sma = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await Getcarrer.GetCarrerS1Yamaha();\n\n if (res[\"STATUS\"] === 1) {\n s1 = res[\"DATA\"][\"carrers\"];\n }\n\n var res = await Getcarrer.GetCarrerD3Yamaha();\n\n if (res[\"STATUS\"] === 1) {\n d3 = res[\"DATA\"][\"carrers\"];\n }\n\n var res = await Getcarrer.GetCarrerSMAYamaha();\n\n if (res[\"STATUS\"] === 1) {\n sma = res[\"DATA\"][\"carrers\"];\n }\n\n return {\n props: {\n user,\n s1,\n d3,\n sma,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/533ee7aef20f63d2bd5b8466e11a7ca9.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"news\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataLatestNews from \"pages-sections/yamaha/latest_news/news.js\";\nvar useStyles = makeStyles(styles);\n\nvar LatestNews = function LatestNews(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n news = _ref.news,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n __jsx(DataLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataLatestNews, {\n news: news,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default LatestNews;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/59f46bbe542d28b736b3996af5e788cd.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"businessPartners\", \"service\", \"carousel\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport CompanyLink from \"components/Header/LinkCompany.js\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Carousel from \"react-slick\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar DataAboutUS = function DataAboutUS(_ref) {\n var backend = _ref.backend,\n businessPartners = _ref.businessPartners,\n service = _ref.service,\n carousel = _ref.carousel,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", null, __jsx(Card, {\n className: classes.textCenter,\n align: \"center\",\n style: {\n padding: \"5px\"\n }\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(CardHeader, {\n justify: \"center\",\n color: \"info\",\n style: {\n padding: \"10px\"\n }\n }, __jsx(CompanyLink, null))), __jsx(CardBody, null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(GridContainer, null, __jsx(GridItem, {\n className: classes.marginAuto\n }, __jsx(Carousel, settings, __jsx(\"img\", {\n src: \"http://3.bp.blogspot.com/-_dTNAAE-TMY/VL3Zyiti2OI/AAAAAAAAAT0/YSd7Ok_3I0k/s1600/Thamrin-brother-loker.png\"\n }))))), __jsx(\"h1\", {\n className: classes.cardTitle\n }, __jsx(\"b\", null, \"About Us\")), __jsx(\"p\", null, \"Thamrin Group adalah perusahaan terkemuka di Sumatera Selatan & Bengkulu dengan fokus bisnis pada sektor otomotif dan properti\"), __jsx(\"h3\", null, \"Visi\"), __jsx(\"p\", null, \"Berdampak bagi masyarakat melalui SDM yang dimiliki, pelayanan prima & pengembangan usaha secara berkelanjutan dengan membangun perusahaan yang terpercaya & memiliki reputasi yang baik\"), __jsx(\"h3\", null, \"Misi\"), __jsx(\"p\", null, \"1. Melayani 21,7 juta pelanggan di tahun 2022\"), __jsx(\"p\", null, \"2. Mengembangkan pemimpin yang sukses\"), __jsx(\"p\", null, \"3. Mengelola proses administrasi yang simple & excellent\"), __jsx(\"p\", null, \"4. Mendukung continuous improvement\"))), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n })));\n};\n\nexport default DataAboutUS;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/5a9ff13514dd405977f321c25ae5e2c0.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YamalubeDetail from \"pages-sections/yamaha/product/yamalube_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailYamalube from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst YamalubeDetails = function (_ref) {\n let {\n user,\n backend,\n detailyamalube\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailyamalube\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YamalubeDetail, {\n detailyamalube: detailyamalube,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default YamalubeDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailyamalube = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailYamalube.GetDetailAccessories(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailyamalube = res[\"DATA\"][\"yamalubes\"];\n }\n\n return {\n props: {\n user,\n detailyamalube,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/5b85a6c57fd8681deb32f2a7e54618bb.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"s1\", \"d3\", \"sma\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport SectionCarrer from \"pages-sections/yamaha/carrer/carrer.js\";\nvar useStyles = makeStyles(styles);\n\nvar Carrer = function Carrer(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n s1 = _ref.s1,\n d3 = _ref.d3,\n sma = _ref.sma,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(SectionCarrer, {\n s1: s1,\n d3: d3,\n sma: sma,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Carrer;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/5c2e1150b97d5f2e43d438134b2c0f7e.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"checkoutproduct\", \"user\", \"checkoutprofile\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Checkout from \"pages-sections/yamaha/cart/checkout.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar ProductDetails = function ProductDetails(_ref) {\n var backend = _ref.backend,\n checkoutproduct = _ref.checkoutproduct,\n user = _ref.user,\n checkoutprofile = _ref.checkoutprofile,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(Checkout, {\n checkoutproduct: checkoutproduct,\n backend: backend,\n checkoutprofile: checkoutprofile\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ProductDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/5d2caf1065ef3390a3442dbad6bf2b79.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"transactionToken\", \"user\", \"order\", \"unpaid\", \"prepared\", \"sending\", \"finished\", \"backend\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport OrderProduct from \"pages-sections/yamaha/order/order.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar Order = function Order(_ref) {\n var transactionToken = _ref.transactionToken,\n user = _ref.user,\n order = _ref.order,\n unpaid = _ref.unpaid,\n prepared = _ref.prepared,\n sending = _ref.sending,\n finished = _ref.finished,\n backend = _ref.backend,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(OrderProduct, {\n order: order,\n transactionToken: transactionToken,\n unpaid: unpaid,\n prepared: prepared,\n sending: sending,\n finished: finished,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Order;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/5d6e785845f5d0799f6bdb8064728cb2.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/6293cadaa182c21fb090f4ae6639208e.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"dealers\"];\nvar __jsx = React.createElement;\nimport React, { Component } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport imagesStyles from \"assets/jss/nextjs-material-kit/imagesStyles.js\";\nimport { cardTitle } from \"assets/jss/nextjs-material-kit.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nvar useStyles = makeStyles(styles);\n\nvar DataDealer = function DataDealer(_ref) {\n var backend = _ref.backend,\n dealers = _ref.dealers,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var Dealer = dealers.map(function (data) {\n return __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"100%\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: \"\".concat(backend).concat(data.img[\"url\"])\n }), __jsx(CardBody, null, __jsx(\"p\", null, data.name), __jsx(\"p\", null, data.kota_dealer), __jsx(\"p\", null, data.telp), __jsx(\"p\", null, data.address), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: data.location,\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View Location\")))));\n });\n return __jsx(\"div\", null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"-70px\"\n },\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha Dealer\"\n }))), __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, Dealer, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/dealers\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Dealers\"))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/6806073d7fd7d2432cae19e6975b56fe.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport CarrerDetail from \"pages-sections/yamaha/carrer/carrer_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailcarrer from \"../../../api/carrer/carrer.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst CarrerDetails = function (_ref) {\n let {\n user,\n backend,\n detailcarrer\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailcarrer\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(CarrerDetail, {\n detailcarrer: detailcarrer,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default CarrerDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailcarrer = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailcarrer.GetDetailCarrer(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailcarrer = res[\"DATA\"][\"carrers\"];\n }\n\n console.log(res);\n return {\n props: {\n user,\n detailcarrer,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/680a9029f9ff5358719923239b580bbf.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailygp\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YGPDetail from \"pages-sections/yamaha/product/ygp_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar YGPDetails = function YGPDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailygp = _ref.detailygp,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YGPDetail, {\n detailygp: detailygp,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default YGPDetails;","map":null,"metadata":{},"sourceType":"module"}

.next/cache/next-babel-loader/59b4637d0304d6be679b657351e67a43.json → .next/cache/next-babel-loader/68942a9e3ae3e93020b5fedab0dd6268.json View File


+ 1
- 0
.next/cache/next-babel-loader/6a2414bc7b9c01797835ecfe68ba3037.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"carousel\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Carousel from \"react-slick\";\nimport Grid from '@material-ui/core/Grid';\nimport Image1 from \"assets/img/home-yamaha/1.png\";\nimport Image2 from \"assets/img/home-yamaha/2.jpg\";\nimport Image3 from \"assets/img/home-yamaha/3.jpg\";\nvar useStyles = makeStyles(styles);\n\nvar DataCarousel = function DataCarousel(_ref) {\n var backend = _ref.backend,\n carousel = _ref.carousel,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n var Carousels = carousel.map(function (data) {\n return __jsx(\"div\", null, __jsx(\"img\", {\n src: \"\".concat(backend).concat(data.img[0][\"url\"]),\n alt: \"First slide\",\n className: \"slick-image\"\n }));\n });\n return __jsx(\"div\", {\n className: classes.root,\n style: {\n marginTop: \"-50px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 12,\n sm: 12,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, Carousels)))), __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-80px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 8,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image1,\n alt: \"First slide\",\n className: \"slick-image\"\n }))))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image2,\n alt: \"First slide\",\n className: \"slick-image\"\n })))), __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"-80px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image3,\n alt: \"First slide\",\n className: \"slick-image\"\n })))))), __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-80px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n }))))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n }), \" \")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n })))))));\n};\n\nexport default DataCarousel;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/6b268a93ce67969e1543088b937270de.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Router from 'next/router';\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Getdealer from \"api/dealer/dealer.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataDealers from \"pages-sections/yamaha/dealers/dealers.js\";\nimport { QueryClient, QueryClientProvider, useQuery } from 'react-query';\nconst queryClient = new QueryClient();\n\nconst handleName = values => {\n Router.push({\n pathname: '/yamaha/dealers',\n query: values && values.length != 0 ? {\n filter: values[0][\"name\"]\n } : {}\n });\n};\n\nconst useStyles = makeStyles(styles);\n\nconst Dealers = function (_ref) {\n let {\n selected,\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"selected\", \"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, null),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/dealers.png\"),\n styles: {\n marginTop: \"50px\"\n }\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(QueryClientProvider, {\n client: queryClient\n }, __jsx(DataSnackbarContent, null), __jsx(DataDealers, {\n selected: selected == \"\" ? null : selected[0][\"id\"],\n handleName: handleName,\n dealers: dealers,\n backend: backend\n }))), __jsx(Footer, null));\n};\n\nexport default Dealers;\nexport async function getServerSideProps(context) {\n var dealers = [];\n var filter = context.query.filter || \"\";\n var selected = \"\";\n const backend = process.env.BACKEND_SERVER_URI;\n var res = await Getdealer.GetDealers(filter);\n\n if (res[\"STATUS\"] === 1) {\n dealers = res[\"DATA\"][\"dealers\"];\n\n if (filter != \"\") {\n selected = dealers.filter(i => i.name == filter);\n }\n }\n\n return {\n props: {\n selected,\n dealers,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/6b6d218f7830cdf8fee3021c9afb0bd9.json View File

@@ -1 +0,0 @@
{"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 styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport CompanyLink from \"components/Header/LinkCompany.js\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Carousel from \"react-slick\";\nimport GridItem from \"components/Grid/GridItem.js\";\nconst useStyles = makeStyles(styles);\n\nconst DataAboutUS = function (_ref) {\n let {\n backend,\n businessPartners,\n service,\n carousel\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"businessPartners\", \"service\", \"carousel\"]);\n\n const classes = useStyles();\n const settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", null, __jsx(Card, {\n className: classes.textCenter,\n align: \"center\",\n style: {\n padding: \"5px\"\n }\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(CardHeader, {\n justify: \"center\",\n color: \"info\",\n style: {\n padding: \"10px\"\n }\n }, __jsx(CompanyLink, null))), __jsx(CardBody, null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(GridContainer, null, __jsx(GridItem, {\n className: classes.marginAuto\n }, __jsx(Carousel, settings, __jsx(\"img\", {\n src: \"http://3.bp.blogspot.com/-_dTNAAE-TMY/VL3Zyiti2OI/AAAAAAAAAT0/YSd7Ok_3I0k/s1600/Thamrin-brother-loker.png\"\n }))))), __jsx(\"h1\", {\n className: classes.cardTitle\n }, __jsx(\"b\", null, \"About Us\")), __jsx(\"p\", null, \"Thamrin Group adalah perusahaan terkemuka di Sumatera Selatan & Bengkulu dengan fokus bisnis pada sektor otomotif dan properti\"), __jsx(\"h3\", null, \"Visi\"), __jsx(\"p\", null, \"Berdampak bagi masyarakat melalui SDM yang dimiliki, pelayanan prima & pengembangan usaha secara berkelanjutan dengan membangun perusahaan yang terpercaya & memiliki reputasi yang baik\"), __jsx(\"h3\", null, \"Misi\"), __jsx(\"p\", null, \"1. Melayani 21,7 juta pelanggan di tahun 2022\"), __jsx(\"p\", null, \"2. Mengembangkan pemimpin yang sukses\"), __jsx(\"p\", null, \"3. Mengelola proses administrasi yang simple & excellent\"), __jsx(\"p\", null, \"4. Mendukung continuous improvement\"))));\n};\n\nexport default DataAboutUS;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/6dbaaca53a3422d4e860a492a9e74a29.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/6fc021639b9a77db9e3236d735b199eb.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"detailproduct\", \"user\", \"color\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ProductDetail from \"pages-sections/yamaha/product/product_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar ProductDetails = function ProductDetails(_ref) {\n var backend = _ref.backend,\n detailproduct = _ref.detailproduct,\n user = _ref.user,\n color = _ref.color,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ProductDetail, {\n detailproduct: detailproduct,\n backend: backend,\n color: color\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ProductDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/704742453fbb785d918570129c08c475.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetLatestNews from \"api/latest_news/news.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataLatestNews from \"pages-sections/yamaha/latest_news/news.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst LatestNews = function (_ref) {\n let {\n user,\n backend,\n news\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"news\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n\n __jsx(DataLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataLatestNews, {\n news: news,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default LatestNews;\nexport async function getServerSideProps(context) {\n var news = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetLatestNews.GetNewsYamaha();\n\n if (res[\"STATUS\"] === 1) {\n news = res[\"DATA\"][\"latestNews\"];\n }\n\n return {\n props: {\n user,\n news,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/74dabb754d39916a6df1b272b71cc8a4.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"s1\", \"d3\", \"sma\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport SectionCarrer from \"pages-sections/yamaha/carrer/carrer.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar Carrer = function Carrer(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n s1 = _ref.s1,\n d3 = _ref.d3,\n sma = _ref.sma,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(SectionCarrer, {\n s1: s1,\n d3: d3,\n sma: sma,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Carrer;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/76183aa95558757c33a5a8104f09d3d7.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"car\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderHonda from \"components/Header/HeaderHonda.js\";\nimport FooterHonda from \"components/Footer/FooterHonda.js\";\nimport DataProduct from \"pages-sections/honda/product/product.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar Product = function Product(_ref) {\n var backend = _ref.backend,\n car = _ref.car,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderHonda, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/honda.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataProduct, {\n car: car,\n backend: backend\n })), __jsx(FooterHonda, null));\n};\n\nexport var __N_SSP = true;\nexport default Product;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/801e1dd9cbfa69e44ce4ed232ce13c87.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YamalubeDetail from \"pages-sections/yamaha/product/yamalube_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailYamalube from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst YamalubeDetails = function (_ref) {\n let {\n user,\n backend,\n detailyamalube\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailyamalube\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YamalubeDetail, {\n detailyamalube: detailyamalube,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default YamalubeDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailyamalube = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailYamalube.GetDetailAccessories(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailyamalube = res[\"DATA\"][\"yamalubes\"];\n }\n\n return {\n props: {\n user,\n detailyamalube,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/85bb17cf72ac1f81f3307e119b7ac0dd.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/87e05bc0e4a708c44fd262f8959f8d6d.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"carousel\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Carousel from \"react-slick\";\nimport Grid from '@material-ui/core/Grid';\nimport Image1 from \"assets/img/home-yamaha/1.png\";\nimport Image2 from \"assets/img/home-yamaha/2.jpg\";\nimport Image3 from \"assets/img/home-yamaha/3.jpg\";\nvar useStyles = makeStyles(styles);\n\nvar DataCarousel = function DataCarousel(_ref) {\n var backend = _ref.backend,\n carousel = _ref.carousel,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n var Carousels = carousel.map(function (data) {\n return __jsx(\"div\", null, __jsx(\"img\", {\n src: \"\".concat(backend).concat(data.img[0][\"url\"]),\n alt: \"First slide\",\n className: \"slick-image\"\n }));\n });\n return __jsx(\"div\", {\n className: classes.root,\n style: {\n marginTop: \"-50px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 12,\n sm: 12,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, Carousels)))), __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-80px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 8,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image1,\n alt: \"First slide\",\n className: \"slick-image\"\n }))))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image2,\n alt: \"First slide\",\n className: \"slick-image\"\n })))), __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"-80px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"img\", {\n src: Image3,\n alt: \"First slide\",\n className: \"slick-image\"\n })))))), __jsx(Grid, {\n container: true,\n style: {\n marginTop: \"-80px\"\n }\n }, __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n height: \"300px\",\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n }))))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n height: \"300px\",\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n }), \" \")))), __jsx(Grid, {\n item: true,\n xs: 4,\n className: classes.marginAuto\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n className: \"container\"\n }, __jsx(Card, null, __jsx(Carousel, settings, __jsx(\"iframe\", {\n height: \"300px\",\n src: \"https://www.youtube.com/embed/zkbnKHqcez4?list=PLGDlwziWaTGKL0aphOH8j_6D29JQ1TgYY\",\n title: \"YouTube video player\",\n frameBorder: \"0\",\n allow: \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",\n allowFullScreen: true\n })))))));\n};\n\nexport default DataCarousel;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/89615415d18cf712d2835c3da6f6c370.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/8a652a7474793f9c315580736a5f8673.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/8a80596b152d6254fe6855e1d4d17c69.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"ygp\", \"yamalube\", \"helmet\", \"apparel\", \"accessories\", \"backend\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSparepart from \"pages-sections/yamaha/sparepart/sparepart.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar Sparepart = function Sparepart(_ref) {\n var ygp = _ref.ygp,\n yamalube = _ref.yamalube,\n helmet = _ref.helmet,\n apparel = _ref.apparel,\n accessories = _ref.accessories,\n backend = _ref.backend,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataSparepart, {\n ygp: ygp,\n yamalube: yamalube,\n helmet: helmet,\n apparel: apparel,\n accessories: accessories,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Sparepart;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/8b1cd6d876f9c49013e620952ccf5a0c.json View File

@@ -1 +0,0 @@
{"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, { Component } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport imagesStyles from \"assets/jss/nextjs-material-kit/imagesStyles.js\";\nimport { cardTitle } from \"assets/jss/nextjs-material-kit.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nconst useStyles = makeStyles(styles);\n\nconst DataDealer = function (_ref) {\n let {\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const Dealer = dealers.map(data => {\n return __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"100%\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: `${backend}${data.img[\"url\"]}`\n }), __jsx(CardBody, null, __jsx(\"p\", null, data.name), __jsx(\"p\", null, data.kota_dealer), __jsx(\"p\", null, data.telp), __jsx(\"p\", null, data.address), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: data.location,\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View Location\")))));\n });\n return __jsx(\"div\", null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"50px\"\n },\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha Dealer\"\n }))), __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, Dealer, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/dealers\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Dealers\"))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/8e1606354a418c7e14227b81476fd200.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSparepart from \"pages-sections/yamaha/sparepart/sparepart.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Cookies from \"cookies\";\nimport GetSparepart from \"api/sparepart/sparepart.js\";\nconst useStyles = makeStyles(styles);\n\nconst Sparepart = function (_ref) {\n let {\n ygp,\n yamalube,\n helmet,\n apparel,\n accessories,\n backend,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"ygp\", \"yamalube\", \"helmet\", \"apparel\", \"accessories\", \"backend\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataSparepart, {\n ygp: ygp,\n yamalube: yamalube,\n helmet: helmet,\n apparel: apparel,\n accessories: accessories,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default Sparepart;\nexport async function getServerSideProps(context) {\n var ygp = [];\n var yamalube = [];\n var helmet = [];\n var apparel = [];\n var accessories = [];\n var detailygp = [];\n var detailyamalube = [];\n var detailhelmet = [];\n var detailapparel = [];\n var detailacc = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetSparepart.GetSparepartYGP();\n\n if (res[\"STATUS\"] === 1) {\n ygp = res[\"DATA\"][\"ygParts\"];\n }\n\n var res = await GetSparepart.GetSparepartYamalube();\n\n if (res[\"STATUS\"] === 1) {\n yamalube = res[\"DATA\"][\"yamalubes\"];\n }\n\n var res = await GetSparepart.GetHelmet();\n\n if (res[\"STATUS\"] === 1) {\n helmet = res[\"DATA\"][\"helmets\"];\n }\n\n var res = await GetSparepart.GetApparel();\n\n if (res[\"STATUS\"] === 1) {\n apparel = res[\"DATA\"][\"apparels\"];\n }\n\n var res = await GetSparepart.GetAcc();\n\n if (res[\"STATUS\"] === 1) {\n accessories = res[\"DATA\"][\"accessories\"];\n }\n\n return {\n props: {\n ygp,\n yamalube,\n helmet,\n apparel,\n accessories,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/8f240f1ad7fa986cea8e09282251b5e1.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"product\", \"maxi\", \"matic\", \"naked\", \"sport\", \"offroad\", \"moped\", \"monsterenergy\", \"cbu\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataProduct from \"pages-sections/yamaha/product/product.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar Product = function Product(_ref) {\n var backend = _ref.backend,\n product = _ref.product,\n maxi = _ref.maxi,\n matic = _ref.matic,\n naked = _ref.naked,\n sport = _ref.sport,\n offroad = _ref.offroad,\n moped = _ref.moped,\n monsterenergy = _ref.monsterenergy,\n cbu = _ref.cbu,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataProduct, {\n maxi: maxi,\n matic: matic,\n naked: naked,\n sport: sport,\n offroad: offroad,\n moped: moped,\n monsterenergy: monsterenergy,\n cbu: cbu,\n backend: backend,\n product: product\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Product;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/902ea42c2c8c4bf9d6defe5eeca73c5c.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"detailapparel\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ApparelDetail from \"pages-sections/yamaha/product/apparel_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar ApparelDetails = function ApparelDetails(_ref) {\n var backend = _ref.backend,\n detailapparel = _ref.detailapparel,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ApparelDetail, {\n detailapparel: detailapparel,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ApparelDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/9571a91818eb6ca9becc63e0a17e6c79.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/961f5f4efc0f617f6b6f4708dfec6d68.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/97a37c94ddb2b6481b2534227e689aba.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/98af9a2d56448df7a20f666ac17bef3a.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"service\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Carousel from \"react-slick\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport Selling from \"assets/img/service/selling.png\";\nimport Service from \"assets/img/service/service.jpg\";\nimport Sparepart from \"assets/img/service/sparepart.jpg\";\nvar useStyles = makeStyles(styles);\n\nvar DataService = function DataService(_ref) {\n var _jsx, _jsx2, _jsx3;\n\n var backend = _ref.backend,\n service = _ref.service,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\",\n style: {\n marginTop: \"30px\"\n }\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n align: \"center\"\n }, __jsx(\"div\", {\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha 3S\"\n }))), __jsx(\"div\", null, __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", (_jsx = {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx, \"className\", classes.imgCardTop), _defineProperty(_jsx, \"src\", Selling), _jsx)), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Selling Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/product/product\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Selling\"))))), __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", (_jsx2 = {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx2, \"className\", classes.imgCardTop), _defineProperty(_jsx2, \"src\", Service), _jsx2)), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Service Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"https://booking.thamrin.co.id/\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Service\"))))), __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", (_jsx3 = {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\"\n }, _defineProperty(_jsx3, \"className\", classes.imgCardTop), _defineProperty(_jsx3, \"src\", Sparepart), _jsx3)), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Sparepart Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"sparepart/sparepart\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Sparepart\"))))))));\n};\n\nexport default DataService;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/99d03e7f623e23859a31cdd5f4bb3cb1.json View File

@@ -0,0 +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 GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Carousel from \"react-slick\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport Selling from \"assets/img/service/selling.png\";\nimport Service from \"assets/img/service/service.jpg\";\nimport Sparepart from \"assets/img/service/sparepart.jpg\";\nconst useStyles = makeStyles(styles);\n\nconst DataService = function (_ref) {\n let {\n backend,\n service\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"service\"]);\n\n const classes = useStyles();\n const settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\",\n style: {\n marginTop: \"30px\"\n }\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\"\n },\n align: \"center\"\n }, __jsx(\"div\", {\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha 3S\"\n }))), __jsx(\"div\", null, __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Selling\n }), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Selling Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/product/product\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Selling\"))))), __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Service\n }), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Service Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"https://booking.thamrin.co.id/\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Service\"))))), __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n width: \"320px\",\n display: \"block\"\n },\n className: \"image\",\n className: classes.imgCardTop,\n src: Sparepart\n }), __jsx(CardBody, null, __jsx(\"h4\", null, __jsx(\"strong\", null, \"Yamaha Sparepart Product\")), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"sparepart/sparepart\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View More Sparepart\"))))))));\n};\n\nexport default DataService;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/9f7c629655fe6454252b894c57c83f75.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport AccessoriesDetail from \"pages-sections/yamaha/product/accessories_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailAccessories from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst AccessoriesDetails = function (_ref) {\n let {\n backend,\n detailaccessories,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailaccessories\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(AccessoriesDetail, {\n detailaccessories: detailaccessories,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default AccessoriesDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailaccessories = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailAccessories.GetDetailAccessories(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailaccessories = res[\"DATA\"][\"accessories\"];\n }\n\n return {\n props: {\n detailaccessories,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/a08937c2c4447e8f48efe5a57a1702c0.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"car\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderHonda from \"components/Header/HeaderHonda.js\";\nimport FooterHonda from \"components/Footer/FooterHonda.js\";\nimport DataProduct from \"pages-sections/honda/product/product.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar Product = function Product(_ref) {\n var backend = _ref.backend,\n car = _ref.car,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderHonda, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/honda.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataProduct, {\n car: car,\n backend: backend\n })), __jsx(FooterHonda, null), __jsx(\"a\", {\n href: \"https://wa.me/087797315685\",\n target: \"_blank\",\n \"class\": \"float\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-phone my-float\"\n })));\n};\n\nexport var __N_SSP = true;\nexport default Product;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/a1deb46c035a49545d2ebf4f49ed7f05.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"transactionToken\", \"user\", \"order\", \"unpaid\", \"prepared\", \"sending\", \"finished\", \"backend\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport OrderProduct from \"pages-sections/yamaha/order/order.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar Order = function Order(_ref) {\n var transactionToken = _ref.transactionToken,\n user = _ref.user,\n order = _ref.order,\n unpaid = _ref.unpaid,\n prepared = _ref.prepared,\n sending = _ref.sending,\n finished = _ref.finished,\n backend = _ref.backend,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(OrderProduct, {\n order: order,\n transactionToken: transactionToken,\n unpaid: unpaid,\n prepared: prepared,\n sending: sending,\n finished: finished,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Order;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/a46c409c41826c02b581b6af9c30889f.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/a5a6e2bb8973127a28b7ed0103968187.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailcarrer\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport CarrerDetail from \"pages-sections/yamaha/carrer/carrer_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar CarrerDetails = function CarrerDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailcarrer = _ref.detailcarrer,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(CarrerDetail, {\n detailcarrer: detailcarrer,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default CarrerDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/a8bc918780e4c6eba1ceb6bd40bc4bca.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"selected\", \"backend\", \"dealers\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Router from 'next/router';\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataDealers from \"pages-sections/yamaha/dealers/dealers.js\";\nimport { QueryClient, QueryClientProvider, useQuery } from 'react-query';\nimport stylecss from \"pages/home.css\";\nvar queryClient = new QueryClient();\n\nvar handleName = function handleName(values) {\n Router.push({\n pathname: '/yamaha/dealers',\n query: values && values.length != 0 ? {\n filter: values[0][\"name\"]\n } : {}\n });\n};\n\nvar useStyles = makeStyles(styles);\n\nvar Dealers = function Dealers(_ref) {\n var selected = _ref.selected,\n backend = _ref.backend,\n dealers = _ref.dealers,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, null),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/dealers.png\"),\n styles: {\n marginTop: \"50px\"\n }\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(QueryClientProvider, {\n client: queryClient\n }, __jsx(DataSnackbarContent, null), __jsx(DataDealers, {\n selected: selected == \"\" ? null : selected[0][\"id\"],\n handleName: handleName,\n dealers: dealers,\n backend: backend\n })), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Dealers;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/a8db358a44fa466387420af173b4a26f.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ApparelDetail from \"pages-sections/yamaha/product/apparel_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailApparel from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst ApparelDetails = function (_ref) {\n let {\n backend,\n detailapparel,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailapparel\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ApparelDetail, {\n detailapparel: detailapparel,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default ApparelDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailapparel = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailApparel.GetDetailApparel(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailapparel = res[\"DATA\"][\"apparels\"];\n }\n\n return {\n props: {\n detailapparel,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/ae4df79c818d5a57869247d89c85f442.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/af83057e48c72966928a5fd824f7725c.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport AccessoriesDetail from \"pages-sections/yamaha/product/accessories_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailAccessories from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst AccessoriesDetails = function (_ref) {\n let {\n backend,\n detailaccessories,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailaccessories\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(AccessoriesDetail, {\n detailaccessories: detailaccessories,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default AccessoriesDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailaccessories = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailAccessories.GetDetailAccessories(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailaccessories = res[\"DATA\"][\"accessories\"];\n }\n\n return {\n props: {\n detailaccessories,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/afccc161852bf25688ce69bd056c7f99.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"detailapparel\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ApparelDetail from \"pages-sections/yamaha/product/apparel_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar ApparelDetails = function ApparelDetails(_ref) {\n var backend = _ref.backend,\n detailapparel = _ref.detailapparel,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ApparelDetail, {\n detailapparel: detailapparel,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ApparelDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/b162467febb0e84c44d94997bfd5eedf.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"selected\", \"backend\", \"dealers\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Router from 'next/router';\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataDealers from \"pages-sections/yamaha/dealers/dealers.js\";\nimport { QueryClient, QueryClientProvider, useQuery } from 'react-query';\nvar queryClient = new QueryClient();\n\nvar handleName = function handleName(values) {\n Router.push({\n pathname: '/yamaha/dealers',\n query: values && values.length != 0 ? {\n filter: values[0][\"name\"]\n } : {}\n });\n};\n\nvar useStyles = makeStyles(styles);\n\nvar Dealers = function Dealers(_ref) {\n var selected = _ref.selected,\n backend = _ref.backend,\n dealers = _ref.dealers,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, null),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/dealers.png\"),\n styles: {\n marginTop: \"50px\"\n }\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(QueryClientProvider, {\n client: queryClient\n }, __jsx(DataSnackbarContent, null), __jsx(DataDealers, {\n selected: selected == \"\" ? null : selected[0][\"id\"],\n handleName: handleName,\n dealers: dealers,\n backend: backend\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default Dealers;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/b4ed773c70fa59b3141a993db3369bb0.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"checkoutproduct\", \"user\", \"checkoutprofile\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Checkout from \"pages-sections/yamaha/cart/checkout.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar ProductDetails = function ProductDetails(_ref) {\n var backend = _ref.backend,\n checkoutproduct = _ref.checkoutproduct,\n user = _ref.user,\n checkoutprofile = _ref.checkoutprofile,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(Checkout, {\n checkoutproduct: checkoutproduct,\n backend: backend,\n checkoutprofile: checkoutprofile\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ProductDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/b7252a716515701f0d8cb862cb0cbaab.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailhelmet\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport HelmetDetail from \"pages-sections/yamaha/product/helmet_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar HelmetDetails = function HelmetDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailhelmet = _ref.detailhelmet,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(HelmetDetail, {\n detailhelmet: detailhelmet,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default HelmetDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/b869b4daf519fb9e1cf5e582632173cd.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/ba90e998e9c8f7feb0771cc653307063.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YGPDetail from \"pages-sections/yamaha/product/ygp_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailYGP from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst YGPDetails = function (_ref) {\n let {\n user,\n backend,\n detailygp\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"detailygp\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YGPDetail, {\n detailygp: detailygp,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default YGPDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailygp = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailYGP.GetYGPDetail(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailygp = res[\"DATA\"][\"ygParts\"];\n }\n\n console.log(detailygp);\n return {\n props: {\n user,\n detailygp,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/bc5c192f34ee34c5d82f4d84f8b297ed.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/be5f5907e4caca991f48ca72596d2f02.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailhelmet\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport HelmetDetail from \"pages-sections/yamaha/product/helmet_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar HelmetDetails = function HelmetDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailhelmet = _ref.detailhelmet,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(HelmetDetail, {\n detailhelmet: detailhelmet,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default HelmetDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/c1ae6e56438f312c6e65d5963ccb7565.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"detailaccessories\", \"user\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport AccessoriesDetail from \"pages-sections/yamaha/product/accessories_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar AccessoriesDetails = function AccessoriesDetails(_ref) {\n var backend = _ref.backend,\n detailaccessories = _ref.detailaccessories,\n user = _ref.user,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(AccessoriesDetail, {\n detailaccessories: detailaccessories,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default AccessoriesDetails;","map":null,"metadata":{},"sourceType":"module"}

.next/cache/next-babel-loader/11aa0628a49ca2e55676932f2af20f39.json → .next/cache/next-babel-loader/c696a15038c6d643ee01b8608fc53fcb.json View File


+ 1
- 0
.next/cache/next-babel-loader/c6b71a3e4df073c4a938e7a57a476297.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailcarrer\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport CarrerDetail from \"pages-sections/yamaha/carrer/carrer_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar CarrerDetails = function CarrerDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailcarrer = _ref.detailcarrer,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/carrer.png\"),\n height: \"50px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(CarrerDetail, {\n detailcarrer: detailcarrer,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default CarrerDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/cc6c18646ac4ad87e6d208762452e1f0.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"news\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataLatestNews from \"pages-sections/yamaha/latest_news/news.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar LatestNews = function LatestNews(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n news = _ref.news,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n __jsx(DataLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataLatestNews, {\n news: news,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default LatestNews;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/ccd49e972291c8ab4261760759d70d17.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"news\", \"othernews\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DetailLatestNews from \"pages-sections/yamaha/latest_news/news_details.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar detailLatestNews = function detailLatestNews(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n news = _ref.news,\n othernews = _ref.othernews,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n __jsx(DetailLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DetailLatestNews, {\n news: news,\n othernews: othernews,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default detailLatestNews;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/cdda52102fd2ebdec4c46624a989ba02.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/ce862dfd4b73d052f833e66d648abd99.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/ce8bbed11c6abd65405c117f969c7484.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"businessPartners\", \"service\", \"carousel\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport CompanyLink from \"components/Header/LinkCompany.js\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Carousel from \"react-slick\";\nimport GridItem from \"components/Grid/GridItem.js\";\nvar useStyles = makeStyles(styles);\n\nvar DataAboutUS = function DataAboutUS(_ref) {\n var backend = _ref.backend,\n businessPartners = _ref.businessPartners,\n service = _ref.service,\n carousel = _ref.carousel,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n var settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n return __jsx(\"div\", null, __jsx(Card, {\n className: classes.textCenter,\n align: \"center\",\n style: {\n padding: \"5px\"\n }\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(CardHeader, {\n justify: \"center\",\n color: \"info\",\n style: {\n padding: \"10px\"\n }\n }, __jsx(CompanyLink, null))), __jsx(CardBody, null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(GridContainer, null, __jsx(GridItem, {\n className: classes.marginAuto\n }, __jsx(Carousel, settings, __jsx(\"img\", {\n src: \"http://3.bp.blogspot.com/-_dTNAAE-TMY/VL3Zyiti2OI/AAAAAAAAAT0/YSd7Ok_3I0k/s1600/Thamrin-brother-loker.png\"\n }))))), __jsx(\"h1\", {\n className: classes.cardTitle\n }, __jsx(\"b\", null, \"About Us\")), __jsx(\"p\", null, \"Thamrin Group adalah perusahaan terkemuka di Sumatera Selatan & Bengkulu dengan fokus bisnis pada sektor otomotif dan properti\"), __jsx(\"h3\", null, \"Visi\"), __jsx(\"p\", null, \"Berdampak bagi masyarakat melalui SDM yang dimiliki, pelayanan prima & pengembangan usaha secara berkelanjutan dengan membangun perusahaan yang terpercaya & memiliki reputasi yang baik\"), __jsx(\"h3\", null, \"Misi\"), __jsx(\"p\", null, \"1. Melayani 21,7 juta pelanggan di tahun 2022\"), __jsx(\"p\", null, \"2. Mengembangkan pemimpin yang sukses\"), __jsx(\"p\", null, \"3. Mengelola proses administrasi yang simple & excellent\"), __jsx(\"p\", null, \"4. Mendukung continuous improvement\"))));\n};\n\nexport default DataAboutUS;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/d46217fa429a16660d50a692d21e58ae.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ApparelDetail from \"pages-sections/yamaha/product/apparel_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailApparel from \"api/sparepart/sparepart.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst ApparelDetails = function (_ref) {\n let {\n backend,\n detailapparel,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailapparel\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ApparelDetail, {\n detailapparel: detailapparel,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default ApparelDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailapparel = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailApparel.GetDetailApparel(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailapparel = res[\"DATA\"][\"apparels\"];\n }\n\n return {\n props: {\n detailapparel,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/e078e3622c8ddb74d7224990d1e59a1b.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailygp\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YGPDetail from \"pages-sections/yamaha/product/ygp_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nvar useStyles = makeStyles(styles);\n\nvar YGPDetails = function YGPDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailygp = _ref.detailygp,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YGPDetail, {\n detailygp: detailygp,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default YGPDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/e43cbed5d16cccad8c1c5a87e8c52499.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ProductDetail from \"pages-sections/yamaha/product/product_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetDetailproduct from \"../../../api/product/product.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst ProductDetails = function (_ref) {\n let {\n backend,\n detailproduct,\n user,\n color\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailproduct\", \"user\", \"color\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ProductDetail, {\n detailproduct: detailproduct,\n backend: backend,\n color: color\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n class: \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n class: \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport default ProductDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var detailproduct = [];\n var color = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetDetailproduct.GetProductImgColor(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n color = res[\"DATA\"][\"productImageColors\"];\n }\n\n var res = await GetDetailproduct.GetDetailProduct(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n detailproduct = res[\"DATA\"][\"products\"];\n }\n\n return {\n props: {\n detailproduct,\n backend,\n color,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/e471a854748587d4de837ed5cb622b7d.json View File

@@ -0,0 +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, { Component } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport imagesStyles from \"assets/jss/nextjs-material-kit/imagesStyles.js\";\nimport { cardTitle } from \"assets/jss/nextjs-material-kit.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nconst useStyles = makeStyles(styles);\n\nconst DataDealer = function (_ref) {\n let {\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const Dealer = dealers.map(data => {\n return __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"100%\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: `${backend}${data.img[\"url\"]}`\n }), __jsx(CardBody, null, __jsx(\"p\", null, data.name), __jsx(\"p\", null, data.kota_dealer), __jsx(\"p\", null, data.telp), __jsx(\"p\", null, data.address), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: data.location,\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View Location\")))));\n });\n return __jsx(\"div\", null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"-70px\"\n },\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha Dealer\"\n }))), __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, Dealer, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/dealers\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Dealers\"))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/e4cd845521961ccf42d28b0215bc28e2.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"detailyamalube\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport YamalubeDetail from \"pages-sections/yamaha/product/yamalube_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar YamalubeDetails = function YamalubeDetails(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n detailyamalube = _ref.detailyamalube,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/yamalube.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(YamalubeDetail, {\n detailyamalube: detailyamalube,\n backend: backend\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default YamalubeDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/e75a20820177f4ccfa595a2086ecd2c1.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"\"use strict\";\n\nvar _apollo = _interopRequireDefault(require(\"../../lib/apollo.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nasync function getTransaction(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transactions{\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function getTransactionUnpaid(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transactions(where: { status: \"1\" }){\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function PayTransactionUnpaid(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transaction(where: { status: \"1\" }){\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function getTransactionPrepared(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transactions(where: { status: \"2\" }){\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function getTransactionSending(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transactions(where: { status: \"3\" }){\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function getTransactionFinished(token = \"\") {\n var res = await _apollo.default.query(`\n query {\n transactions(where: { status: \"4\" }){\n id\n order_id\n cust_name\n cust_telp\n cust_address\n product_img{\n url\n }\n product_name\n product_color\n product_quantity\n product_courier\n product_price\n }\n }`, token);\n return res;\n}\n\nasync function newTransactionYamaha(content, token = \"\") {\n var res = await _apollo.default.mutation(`\n mutation($input : TransactionInput!){\n createTransaction( input:{data:$input} )\n {\n transaction{\n id\n }\n }\n }\n `, token, {\n input: content\n });\n return res;\n}\n\nasync function newTransactionSuzuki(content, token = \"\") {\n var res = await _apollo.default.mutation(`\n mutation($input : TransactionInput!){\n createTransaction( input:{data:$input} )\n {\n transactionSuzuki{\n id\n }\n }\n }\n `, token, {\n input: content\n });\n return res;\n}\n\nasync function newTransactionHonda(content, token = \"\") {\n var res = await _apollo.default.mutation(`\n mutation($input : TransactionInput!){\n createTransaction( input:{data:$input} )\n {\n transactionHonda{\n id\n }\n }\n }\n `, token, {\n input: content\n });\n return res;\n}\n\nasync function newTransactionHino(content, token = \"\") {\n var res = await _apollo.default.mutation(`\n mutation($input : TransactionInput!){\n createTransaction( input:{data:$input} )\n {\n transactionHino{\n id\n }\n }\n }\n `, token, {\n input: content\n });\n return res;\n}\n\nmodule.exports = {\n newTransactionYamaha: newTransactionYamaha,\n newTransactionSuzuki: newTransactionSuzuki,\n newTransactionHonda: newTransactionHonda,\n newTransactionHino: newTransactionHino,\n getTransaction: getTransaction,\n getTransactionUnpaid: getTransactionUnpaid,\n PayTransactionUnpaid: PayTransactionUnpaid,\n getTransactionPrepared: getTransactionPrepared,\n getTransactionSending: getTransactionSending,\n getTransactionFinished: getTransactionFinished\n};","map":null,"metadata":{},"sourceType":"script"}

+ 0
- 1
.next/cache/next-babel-loader/e75a8dbc9581d6b2adc8f781d0778b49.json
File diff suppressed because it is too large
View File


+ 0
- 1
.next/cache/next-babel-loader/e7ce8d0334a1881444c9743faca5ee97.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetLatestNews from \"api/latest_news/news.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DataLatestNews from \"pages-sections/yamaha/latest_news/news.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst LatestNews = function (_ref) {\n let {\n user,\n backend,\n news\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"user\", \"backend\", \"news\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n\n __jsx(DataLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataLatestNews, {\n news: news,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport default LatestNews;\nexport async function getServerSideProps(context) {\n var news = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetLatestNews.GetNewsYamaha();\n\n if (res[\"STATUS\"] === 1) {\n news = res[\"DATA\"][\"latestNews\"];\n }\n\n return {\n props: {\n user,\n news,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/e7d23fe01911c0a223a03b03d957c6ac.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"backend\", \"detailproduct\", \"user\", \"color\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport ProductDetail from \"pages-sections/yamaha/product/product_details.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport stylecss from \"pages/home.css\";\nvar useStyles = makeStyles(styles);\n\nvar ProductDetails = function ProductDetails(_ref) {\n var backend = _ref.backend,\n detailproduct = _ref.detailproduct,\n user = _ref.user,\n color = _ref.color,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(ProductDetail, {\n detailproduct: detailproduct,\n backend: backend,\n color: color\n }), __jsx(\"a\", {\n href: \"https://wa.me/+6287797315685\",\n \"class\": \"float\",\n target: \"_blank\"\n }, __jsx(\"i\", {\n \"class\": \"fa fa-whatsapp my-float\"\n }))), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default ProductDetails;","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/e8854f7bef14ec897cd6e4f0a5218e23.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Checkout from \"pages-sections/yamaha/cart/checkout.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport GetCheckoutproduct from \"api/cart/checkout.js\";\nimport GetCheckoutprofile from \"api/profile/profile.js\";\nimport Cookies from \"cookies\";\nconst useStyles = makeStyles(styles);\n\nconst ProductDetails = function (_ref) {\n let {\n backend,\n checkoutproduct,\n user,\n checkoutprofile\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"checkoutproduct\", \"user\", \"checkoutprofile\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/Promotion_2-1.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(Checkout, {\n checkoutproduct: checkoutproduct,\n backend: backend,\n checkoutprofile: checkoutprofile\n })), __jsx(Footer, null));\n};\n\nexport default ProductDetails;\nexport async function getServerSideProps(context) {\n var {\n query\n } = context;\n var checkoutproduct = [];\n var checkoutprofile = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"YAMAHA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await GetCheckoutproduct.GetCheckoutproduct(query.s || 0);\n\n if (res[\"STATUS\"] === 1) {\n checkoutproduct = res[\"DATA\"][\"products\"];\n }\n\n var res = await GetCheckoutprofile.profile();\n\n if (res[\"STATUS\"] === 1) {\n checkoutprofile = res[\"DATA\"][\"users\"];\n }\n\n var request = require(\"request\");\n\n var provinces = [];\n var cities = [];\n var province = {\n method: 'GET',\n url: 'https://api.rajaongkir.com/starter/province',\n headers: {\n key: 'f4ac703bb25ada32478d52ef2e1cab7a'\n }\n };\n var city = {\n method: 'GET',\n url: 'https://api.rajaongkir.com/starter/city',\n headers: {\n key: 'f4ac703bb25ada32478d52ef2e1cab7a'\n }\n };\n await request(province, function (error, response, body) {\n if (error) throw new Error(error);\n });\n request(city, function (error, response, body) {\n if (error) throw new Error(error);\n });\n console.log(provinces);\n return {\n props: {\n checkoutprofile,\n user,\n checkoutproduct,\n backend\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 1
- 0
.next/cache/next-babel-loader/e92c9cf893e4d27f9126b97edd4cfb86.json
File diff suppressed because it is too large
View File


+ 1
- 0
.next/cache/next-babel-loader/e97680fa81279c90506c50c6dace0f72.json View File

@@ -0,0 +1 @@
{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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 classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderHonda from \"components/Header/HeaderHonda.js\";\nimport FooterHonda from \"components/Footer/FooterHonda.js\";\nimport DataProduct from \"pages-sections/honda/product/product.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport Getproduct from \"api/product/product.js\";\nimport Cookies from \"cookies\";\nimport stylecss from \"pages/home.css\";\nconst useStyles = makeStyles(styles);\n\nconst Product = function (_ref) {\n let {\n backend,\n car,\n user\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"car\", \"user\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n return __jsx(\"div\", null, __jsx(Header, _extends({\n rightLinks: __jsx(HeaderHonda, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/honda.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DataProduct, {\n car: car,\n backend: backend\n })), __jsx(FooterHonda, null), __jsx(\"a\", {\n href: \"https://wa.me/087797315685\",\n target: \"_blank\",\n class: \"float\"\n }, __jsx(\"i\", {\n class: \"fa fa-phone my-float\"\n })));\n};\n\nexport default Product;\nexport async function getServerSideProps(context) {\n var car = [];\n const backend = process.env.BACKEND_SERVER_URI;\n var {\n req,\n resp\n } = context;\n const cookies = new Cookies(req, resp);\n var user = \"\";\n var userObj = (await cookies.get(\"user\")) ? JSON.parse(await cookies.get(\"user\")) : null;\n\n if (userObj) {\n let sessionId = userObj[\"partners_login_states\"].filter(function (i) {\n return i.business_partner && i.business_partner.name.toUpperCase() == \"HONDA\";\n });\n if (sessionId.length != 0) user = userObj[\"username\"];\n }\n\n var res = await Getproduct.GetProductHonda();\n\n if (res[\"STATUS\"] === 1) {\n car = res[\"DATA\"][\"products\"];\n }\n\n return {\n props: {\n car,\n backend,\n user\n } // will be passed to the page component as props\n\n };\n}","map":null,"metadata":{},"sourceType":"module"}

+ 0
- 1
.next/cache/next-babel-loader/ef88eea776e15f0c63152dce9e810dba.json View File

@@ -1 +0,0 @@
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"user\", \"backend\", \"news\", \"othernews\"];\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Header from \"components/Header/Header.js\";\nimport HeaderLinks from \"components/Header/HeaderLinks.js\";\nimport Footer from \"components/Footer/Footer.js\";\nimport Parallax from \"components/Parallax/Parallax.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/components.js\";\nimport DataSnackbarContent from \"pages-sections/yamaha/snackbar.js\";\nimport DetailLatestNews from \"pages-sections/yamaha/latest_news/news_details.js\";\nvar useStyles = makeStyles(styles);\n\nvar detailLatestNews = function detailLatestNews(_ref) {\n var user = _ref.user,\n backend = _ref.backend,\n news = _ref.news,\n othernews = _ref.othernews,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var classes = useStyles();\n\n var rest = _extends({}, props);\n\n __jsx(DetailLatestNews, {\n news: props.news\n });\n\n return __jsx(\"div\", null, __jsx(Header, _extends({\n leftLinks: __jsx(HeaderLinks, {\n username: user\n }),\n fixed: true,\n color: \"info\",\n changeColorOnScroll: {\n height: 400,\n color: \"white\"\n }\n }, rest)), __jsx(Parallax, {\n image: require(\"assets/img/simulasicicilan.jpg\"),\n width: \"200px\"\n }), __jsx(\"div\", {\n className: classNames(classes.main, classes.mainRaised)\n }, __jsx(DetailLatestNews, {\n news: news,\n othernews: othernews,\n backend: backend\n })), __jsx(Footer, null));\n};\n\nexport var __N_SSP = true;\nexport default detailLatestNews;","map":null,"metadata":{},"sourceType":"module"}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save