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

670 line
28 KiB

  1. (function() {
  2. var exports = {};
  3. exports.id = 6346;
  4. exports.ids = [6346];
  5. exports.modules = {
  6. /***/ 7102:
  7. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  8. "use strict";
  9. var _apollo = _interopRequireDefault(__webpack_require__(6371));
  10. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11. async function GetCheckoutproduct(token = "") {
  12. var res = await _apollo.default.query(`
  13. query{
  14. checkouts{
  15. id
  16. transaction_id
  17. product_img
  18. {
  19. url
  20. }
  21. product_name
  22. product_color
  23. product_quantity
  24. product_total
  25. }
  26. }
  27. `, token);
  28. return res;
  29. }
  30. module.exports = {
  31. GetCheckoutproduct: GetCheckoutproduct
  32. };
  33. /***/ }),
  34. /***/ 1288:
  35. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  36. "use strict";
  37. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5282);
  38. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  39. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9297);
  40. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41. const PageBanner = ({
  42. pageTitle
  43. }) => {
  44. return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  45. className: "page-title-area",
  46. children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  47. className: "d-table",
  48. children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  49. className: "d-table-cell",
  50. children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
  51. className: "container",
  52. children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", {
  53. children: pageTitle
  54. })
  55. })
  56. })
  57. })
  58. });
  59. };
  60. /* harmony default export */ __webpack_exports__["Z"] = (PageBanner);
  61. /***/ }),
  62. /***/ 8794:
  63. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  64. "use strict";
  65. // ESM COMPAT FLAG
  66. __webpack_require__.r(__webpack_exports__);
  67. // EXPORTS
  68. __webpack_require__.d(__webpack_exports__, {
  69. "default": function() { return /* binding */ Shop_Checkout; },
  70. "getServerSideProps": function() { return /* binding */ getServerSideProps; }
  71. });
  72. // EXTERNAL MODULE: external "react/jsx-runtime"
  73. var jsx_runtime_ = __webpack_require__(5282);
  74. // EXTERNAL MODULE: external "react"
  75. var external_react_ = __webpack_require__(9297);
  76. // EXTERNAL MODULE: ./components/_App/NavbarYamaha.js
  77. var NavbarYamaha = __webpack_require__(2478);
  78. // EXTERNAL MODULE: ./components/_App/FooterYamaha.js
  79. var FooterYamaha = __webpack_require__(362);
  80. // EXTERNAL MODULE: ./components/Common/PageBanner.js
  81. var PageBanner = __webpack_require__(1288);
  82. // EXTERNAL MODULE: external "react-feather"
  83. var external_react_feather_ = __webpack_require__(9337);
  84. ;// CONCATENATED MODULE: ./components/Yamaha/Shop/Checkout.js
  85. const CheckoutContent = () => {
  86. return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
  87. children: /*#__PURE__*/jsx_runtime_.jsx("div", {
  88. className: "checkout-area ptb-80",
  89. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  90. className: "container",
  91. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  92. className: "row",
  93. children: /*#__PURE__*/jsx_runtime_.jsx("div", {
  94. className: "col-lg-12 col-md-12",
  95. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  96. className: "user-actions",
  97. children: [/*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.Edit, {}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("span", {
  98. children: ["Returning customer? ", /*#__PURE__*/jsx_runtime_.jsx("a", {
  99. href: "#",
  100. children: "Click here to login"
  101. })]
  102. })]
  103. })
  104. })
  105. }), /*#__PURE__*/jsx_runtime_.jsx("form", {
  106. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  107. className: "row",
  108. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  109. className: "col-lg-6 col-md-12",
  110. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  111. className: "billing-details",
  112. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  113. className: "title",
  114. children: "Billing Details"
  115. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  116. className: "row",
  117. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  118. className: "col-lg-12 col-md-12",
  119. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  120. className: "form-group",
  121. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  122. children: ["Country ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  123. className: "required",
  124. children: "*"
  125. })]
  126. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  127. className: "select-box",
  128. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("select", {
  129. className: "form-select",
  130. children: [/*#__PURE__*/jsx_runtime_.jsx("option", {
  131. value: "1",
  132. children: "United Arab Emirates"
  133. }), /*#__PURE__*/jsx_runtime_.jsx("option", {
  134. value: "2",
  135. children: "China"
  136. }), /*#__PURE__*/jsx_runtime_.jsx("option", {
  137. value: "3",
  138. children: "United Kingdom"
  139. }), /*#__PURE__*/jsx_runtime_.jsx("option", {
  140. value: "4",
  141. children: "Germany"
  142. }), /*#__PURE__*/jsx_runtime_.jsx("option", {
  143. value: "5",
  144. children: "France"
  145. }), /*#__PURE__*/jsx_runtime_.jsx("option", {
  146. value: "6",
  147. children: "Japan"
  148. })]
  149. })
  150. })]
  151. })
  152. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  153. className: "col-lg-6 col-md-6",
  154. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  155. className: "form-group",
  156. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  157. children: ["First Name ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  158. className: "required",
  159. children: "*"
  160. })]
  161. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  162. type: "text",
  163. className: "form-control"
  164. })]
  165. })
  166. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  167. className: "col-lg-6 col-md-6",
  168. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  169. className: "form-group",
  170. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  171. children: ["Last Name ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  172. className: "required",
  173. children: "*"
  174. })]
  175. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  176. type: "text",
  177. className: "form-control"
  178. })]
  179. })
  180. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  181. className: "col-lg-12 col-md-12",
  182. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  183. className: "form-group",
  184. children: [/*#__PURE__*/jsx_runtime_.jsx("label", {
  185. children: "Company Name"
  186. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  187. type: "text",
  188. className: "form-control"
  189. })]
  190. })
  191. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  192. className: "col-lg-12 col-md-6",
  193. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  194. className: "form-group",
  195. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  196. children: ["Address ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  197. className: "required",
  198. children: "*"
  199. })]
  200. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  201. type: "text",
  202. className: "form-control"
  203. })]
  204. })
  205. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  206. className: "col-lg-12 col-md-6",
  207. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  208. className: "form-group",
  209. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  210. children: ["Town / City ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  211. className: "required",
  212. children: "*"
  213. })]
  214. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  215. type: "text",
  216. className: "form-control"
  217. })]
  218. })
  219. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  220. className: "col-lg-6 col-md-6",
  221. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  222. className: "form-group",
  223. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  224. children: ["State / County ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  225. className: "required",
  226. children: "*"
  227. })]
  228. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  229. type: "text",
  230. className: "form-control"
  231. })]
  232. })
  233. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  234. className: "col-lg-6 col-md-6",
  235. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  236. className: "form-group",
  237. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  238. children: ["Postcode / Zip ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  239. className: "required",
  240. children: "*"
  241. })]
  242. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  243. type: "text",
  244. className: "form-control"
  245. })]
  246. })
  247. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  248. className: "col-lg-6 col-md-6",
  249. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  250. className: "form-group",
  251. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  252. children: ["Email Address ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  253. className: "required",
  254. children: "*"
  255. })]
  256. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  257. type: "email",
  258. className: "form-control"
  259. })]
  260. })
  261. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  262. className: "col-lg-6 col-md-6",
  263. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  264. className: "form-group",
  265. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  266. children: ["Phone ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  267. className: "required",
  268. children: "*"
  269. })]
  270. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  271. type: "text",
  272. className: "form-control"
  273. })]
  274. })
  275. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  276. className: "col-lg-12 col-md-12",
  277. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  278. className: "form-check",
  279. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  280. type: "checkbox",
  281. className: "form-check-input",
  282. id: "create-an-account"
  283. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  284. className: "form-check-label",
  285. htmlFor: "create-an-account",
  286. children: "Create an account?"
  287. })]
  288. })
  289. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  290. className: "col-lg-12 col-md-12",
  291. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  292. className: "form-check",
  293. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  294. type: "checkbox",
  295. className: "form-check-input",
  296. id: "ship-different-address"
  297. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  298. className: "form-check-label",
  299. htmlFor: "ship-different-address",
  300. children: "Ship to a different address?"
  301. })]
  302. })
  303. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  304. className: "col-lg-12 col-md-12",
  305. children: /*#__PURE__*/jsx_runtime_.jsx("div", {
  306. className: "form-group",
  307. children: /*#__PURE__*/jsx_runtime_.jsx("textarea", {
  308. name: "notes",
  309. id: "notes",
  310. cols: "30",
  311. rows: "4",
  312. placeholder: "Order Notes",
  313. className: "form-control"
  314. })
  315. })
  316. })]
  317. })]
  318. })
  319. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  320. className: "col-lg-6 col-md-12",
  321. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  322. className: "order-details",
  323. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  324. className: "title",
  325. children: "Your Order"
  326. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  327. className: "order-table table-responsive",
  328. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("table", {
  329. className: "table table-bordered",
  330. children: [/*#__PURE__*/jsx_runtime_.jsx("thead", {
  331. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  332. children: [/*#__PURE__*/jsx_runtime_.jsx("th", {
  333. scope: "col",
  334. children: "Product Name"
  335. }), /*#__PURE__*/jsx_runtime_.jsx("th", {
  336. scope: "col",
  337. children: "Total"
  338. })]
  339. })
  340. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tbody", {
  341. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  342. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  343. className: "product-name",
  344. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  345. href: "#",
  346. children: "Smart Watch"
  347. })
  348. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  349. className: "product-total",
  350. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  351. className: "subtotal-amount",
  352. children: "$30.00"
  353. })
  354. })]
  355. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  356. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  357. className: "product-name",
  358. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  359. href: "#",
  360. children: "TV"
  361. })
  362. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  363. className: "product-total",
  364. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  365. className: "subtotal-amount",
  366. children: "$30.00"
  367. })
  368. })]
  369. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  370. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  371. className: "product-name",
  372. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  373. href: "#",
  374. children: "Book"
  375. })
  376. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  377. className: "product-total",
  378. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  379. className: "subtotal-amount",
  380. children: "$30.00"
  381. })
  382. })]
  383. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  384. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  385. className: "product-name",
  386. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  387. href: "#",
  388. children: "Smart Watch"
  389. })
  390. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  391. className: "product-total",
  392. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  393. className: "subtotal-amount",
  394. children: "$30.00"
  395. })
  396. })]
  397. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  398. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  399. className: "product-name",
  400. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  401. href: "#",
  402. children: "TV"
  403. })
  404. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  405. className: "product-total",
  406. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  407. className: "subtotal-amount",
  408. children: "$30.00"
  409. })
  410. })]
  411. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  412. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  413. className: "product-name",
  414. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  415. href: "#",
  416. children: "Book"
  417. })
  418. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  419. className: "product-total",
  420. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  421. className: "subtotal-amount",
  422. children: "$30.00"
  423. })
  424. })]
  425. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  426. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  427. className: "order-subtotal",
  428. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  429. children: "Cart Subtotal"
  430. })
  431. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  432. className: "order-subtotal-price",
  433. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  434. className: "order-subtotal-amount",
  435. children: "$210.00"
  436. })
  437. })]
  438. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  439. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  440. className: "order-shipping",
  441. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  442. children: "Shipping"
  443. })
  444. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  445. className: "shipping-price",
  446. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  447. children: "$5.00"
  448. })
  449. })]
  450. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("tr", {
  451. children: [/*#__PURE__*/jsx_runtime_.jsx("td", {
  452. className: "total-price",
  453. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  454. children: "Order Total"
  455. })
  456. }), /*#__PURE__*/jsx_runtime_.jsx("td", {
  457. className: "product-subtotal",
  458. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  459. className: "subtotal-amount",
  460. children: "$215.00"
  461. })
  462. })]
  463. })]
  464. })]
  465. })
  466. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  467. className: "payment-method",
  468. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  469. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  470. type: "radio",
  471. id: "direct-bank-transfer",
  472. name: "radio-group",
  473. defaultChecked: true
  474. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  475. htmlFor: "direct-bank-transfer",
  476. children: "Direct Bank Transfer"
  477. }), "Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account."]
  478. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  479. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  480. type: "radio",
  481. id: "paypal",
  482. name: "radio-group"
  483. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  484. htmlFor: "paypal",
  485. children: "PayPal"
  486. })]
  487. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  488. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  489. type: "radio",
  490. id: "cash-on-delivery",
  491. name: "radio-group"
  492. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  493. htmlFor: "cash-on-delivery",
  494. children: "Cash on Delivery"
  495. })]
  496. })]
  497. }), /*#__PURE__*/jsx_runtime_.jsx("a", {
  498. href: "#",
  499. className: "btn btn-primary order-btn",
  500. children: "Place Order"
  501. })]
  502. })
  503. })]
  504. })
  505. })]
  506. })
  507. })
  508. });
  509. };
  510. /* harmony default export */ var Checkout = (CheckoutContent);
  511. // EXTERNAL MODULE: ./api/shop/checkout.js
  512. var checkout = __webpack_require__(7102);
  513. var checkout_default = /*#__PURE__*/__webpack_require__.n(checkout);
  514. ;// CONCATENATED MODULE: ./pages/yamaha/Shop/Checkout.js
  515. function _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; }
  516. function _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; }
  517. const Checkout_Checkout = function (_ref) {
  518. let {
  519. backend,
  520. checkout_product
  521. } = _ref,
  522. props = _objectWithoutProperties(_ref, ["backend", "checkout_product"]);
  523. return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
  524. children: [/*#__PURE__*/jsx_runtime_.jsx(NavbarYamaha/* default */.Z, {}), /*#__PURE__*/jsx_runtime_.jsx(PageBanner/* default */.Z, {
  525. pageTitle: "Checkout"
  526. }), /*#__PURE__*/jsx_runtime_.jsx(Checkout, {
  527. checkout_product: checkout_product,
  528. backend: backend
  529. }), /*#__PURE__*/jsx_runtime_.jsx(FooterYamaha/* default */.Z, {})]
  530. });
  531. };
  532. /* harmony default export */ var Shop_Checkout = (Checkout_Checkout);
  533. async function getServerSideProps() {
  534. var checkout_product = [];
  535. const backend = process.env.BACKEND_SERVER_URI;
  536. var res = await checkout_default().GetCheckoutproduct();
  537. if (res["STATUS"] === 1) {
  538. checkout_product = res["DATA"]["checkouts"];
  539. }
  540. console.log(checkout_product);
  541. return {
  542. props: {
  543. checkout_product,
  544. backend
  545. } // will be passed to the page component as props
  546. };
  547. }
  548. /***/ }),
  549. /***/ 8074:
  550. /***/ (function(module) {
  551. "use strict";
  552. module.exports = require("@apollo/client");;
  553. /***/ }),
  554. /***/ 1683:
  555. /***/ (function(module) {
  556. "use strict";
  557. module.exports = require("cross-fetch");;
  558. /***/ }),
  559. /***/ 8417:
  560. /***/ (function(module) {
  561. "use strict";
  562. module.exports = require("next/dist/next-server/lib/router-context.js");;
  563. /***/ }),
  564. /***/ 2238:
  565. /***/ (function(module) {
  566. "use strict";
  567. module.exports = require("next/dist/next-server/lib/router/utils/get-asset-path-from-route.js");;
  568. /***/ }),
  569. /***/ 6731:
  570. /***/ (function(module) {
  571. "use strict";
  572. module.exports = require("next/router");;
  573. /***/ }),
  574. /***/ 9297:
  575. /***/ (function(module) {
  576. "use strict";
  577. module.exports = require("react");;
  578. /***/ }),
  579. /***/ 9337:
  580. /***/ (function(module) {
  581. "use strict";
  582. module.exports = require("react-feather");;
  583. /***/ }),
  584. /***/ 5282:
  585. /***/ (function(module) {
  586. "use strict";
  587. module.exports = require("react/jsx-runtime");;
  588. /***/ })
  589. };
  590. ;
  591. // load runtime
  592. var __webpack_require__ = require("../../../webpack-runtime.js");
  593. __webpack_require__.C(exports);
  594. var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  595. var __webpack_exports__ = __webpack_require__.X(0, [1664,4755,6371,7798], function() { return __webpack_exec__(8794); });
  596. module.exports = __webpack_exports__;
  597. })();