Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

709 lignes
30 KiB

  1. (function() {
  2. var exports = {};
  3. exports.id = 5532;
  4. exports.ids = [5532];
  5. exports.modules = {
  6. /***/ 5647:
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. // ESM COMPAT FLAG
  10. __webpack_require__.r(__webpack_exports__);
  11. // EXPORTS
  12. __webpack_require__.d(__webpack_exports__, {
  13. "default": function() { return /* binding */ LatestNews_LatestNewsDetail; },
  14. "getServerSideProps": function() { return /* binding */ getServerSideProps; }
  15. });
  16. // EXTERNAL MODULE: external "react/jsx-runtime"
  17. var jsx_runtime_ = __webpack_require__(5282);
  18. // EXTERNAL MODULE: external "react"
  19. var external_react_ = __webpack_require__(9297);
  20. // EXTERNAL MODULE: ./components/_App/NavbarYamaha.js
  21. var NavbarYamaha = __webpack_require__(2478);
  22. // EXTERNAL MODULE: ./components/_App/FooterYamaha.js
  23. var FooterYamaha = __webpack_require__(362);
  24. // EXTERNAL MODULE: ./components/Common/PageBanner.js
  25. var PageBanner = __webpack_require__(1288);
  26. // EXTERNAL MODULE: ./components/Blog/BlogSidebar.js
  27. var BlogSidebar = __webpack_require__(1805);
  28. // EXTERNAL MODULE: external "react-feather"
  29. var external_react_feather_ = __webpack_require__(9337);
  30. // EXTERNAL MODULE: ./node_modules/next/link.js
  31. var next_link = __webpack_require__(1664);
  32. // EXTERNAL MODULE: external "react-html-parser"
  33. var external_react_html_parser_ = __webpack_require__(7795);
  34. var external_react_html_parser_default = /*#__PURE__*/__webpack_require__.n(external_react_html_parser_);
  35. ;// CONCATENATED MODULE: ./components/Yamaha/LatestNews/LatestNewsDetail.js
  36. 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; }
  37. 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; }
  38. const News = function (_ref) {
  39. let {
  40. backend,
  41. news,
  42. othernews
  43. } = _ref,
  44. props = _objectWithoutProperties(_ref, ["backend", "news", "othernews"]);
  45. const NewsList = news.map(data => {
  46. return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
  47. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  48. className: "blog-details-desc",
  49. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  50. className: "article-image",
  51. children: /*#__PURE__*/jsx_runtime_.jsx("img", {
  52. src: `${backend}${data.img[0]["url"]}`,
  53. width: "800px",
  54. alt: "image"
  55. })
  56. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  57. className: "article-content",
  58. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  59. className: "entry-meta",
  60. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("ul", {
  61. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("li", {
  62. children: [/*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.Clock, {}), " September 31, 2021"]
  63. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("li", {
  64. children: [/*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.User, {}), " ", /*#__PURE__*/jsx_runtime_.jsx("a", {
  65. href: "#",
  66. children: "Steven Smith"
  67. })]
  68. })]
  69. })
  70. }), /*#__PURE__*/jsx_runtime_.jsx("h2", {
  71. children: data.title
  72. }), /*#__PURE__*/jsx_runtime_.jsx("p", {
  73. children: external_react_html_parser_default()(data.description)
  74. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  75. className: "article-footer",
  76. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  77. className: "article-tags",
  78. children: [/*#__PURE__*/jsx_runtime_.jsx("a", {
  79. href: "#",
  80. children: "Motor"
  81. }), /*#__PURE__*/jsx_runtime_.jsx("a", {
  82. href: "#",
  83. children: "Services"
  84. }), /*#__PURE__*/jsx_runtime_.jsx("a", {
  85. href: "#",
  86. children: "Sparepart"
  87. }), /*#__PURE__*/jsx_runtime_.jsx("a", {
  88. href: "#",
  89. children: "Event"
  90. }), /*#__PURE__*/jsx_runtime_.jsx("a", {
  91. href: "#",
  92. children: "Promo"
  93. })]
  94. })
  95. })]
  96. })]
  97. })
  98. });
  99. });
  100. const PopularNews = othernews.map(data => {
  101. return /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  102. className: "item",
  103. children: [/*#__PURE__*/jsx_runtime_.jsx(next_link.default, {
  104. href: "/blog-details",
  105. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  106. className: "thumb",
  107. children: /*#__PURE__*/jsx_runtime_.jsx("span", {
  108. className: "fullimage cover bg1",
  109. role: "img"
  110. })
  111. })
  112. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  113. className: "info",
  114. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  115. src: `${backend}${data.img[0]["url"]}`,
  116. style: {
  117. width: "100px"
  118. }
  119. }), /*#__PURE__*/jsx_runtime_.jsx("time", {
  120. children: data.published_at
  121. }), /*#__PURE__*/jsx_runtime_.jsx("h4", {
  122. className: "title usmall",
  123. children: /*#__PURE__*/jsx_runtime_.jsx(next_link.default, {
  124. href: "/blog-details",
  125. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  126. style: {
  127. fontSize: "15px"
  128. },
  129. children: data.title
  130. })
  131. })
  132. })]
  133. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  134. className: "clear"
  135. })]
  136. });
  137. });
  138. return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  139. children: [/*#__PURE__*/jsx_runtime_.jsx(PageBanner/* default */.Z, {
  140. pageTitle: "Latest News"
  141. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  142. className: "blog-details-area ptb-80",
  143. children: /*#__PURE__*/jsx_runtime_.jsx("div", {
  144. className: "container",
  145. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  146. className: "row",
  147. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  148. className: "col-lg-8 col-md-12",
  149. children: [NewsList, /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  150. className: "comments-area",
  151. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  152. className: "comments-title",
  153. children: "2 Comments:"
  154. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ol", {
  155. className: "comment-list",
  156. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("li", {
  157. className: "comment",
  158. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  159. className: "comment-body",
  160. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", {
  161. className: "comment-meta",
  162. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  163. className: "comment-author vcard",
  164. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  165. src: "/images/client-image/client1.jpg",
  166. className: "avatar",
  167. alt: "image"
  168. }), /*#__PURE__*/jsx_runtime_.jsx("b", {
  169. className: "fn",
  170. children: "John Jones"
  171. }), /*#__PURE__*/jsx_runtime_.jsx("span", {
  172. className: "says",
  173. children: "says:"
  174. })]
  175. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  176. className: "comment-metadata",
  177. children: "April 24, 2019 at 10:59 am"
  178. })]
  179. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  180. className: "comment-content",
  181. children: /*#__PURE__*/jsx_runtime_.jsx("p", {
  182. children: "Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen."
  183. })
  184. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  185. className: "reply",
  186. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  187. href: "#",
  188. className: "comment-reply-link",
  189. children: "Reply"
  190. })
  191. })]
  192. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ol", {
  193. className: "children",
  194. children: [/*#__PURE__*/jsx_runtime_.jsx("li", {
  195. className: "comment",
  196. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  197. className: "comment-body",
  198. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", {
  199. className: "comment-meta",
  200. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  201. className: "comment-author vcard",
  202. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  203. src: "/images/client-image/client2.jpg",
  204. className: "avatar",
  205. alt: "image"
  206. }), /*#__PURE__*/jsx_runtime_.jsx("b", {
  207. className: "fn",
  208. children: "Steven Smith"
  209. }), /*#__PURE__*/jsx_runtime_.jsx("span", {
  210. className: "says",
  211. children: "says:"
  212. })]
  213. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  214. className: "comment-metadata",
  215. children: "April 24, 2019 at 10:59 am"
  216. })]
  217. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  218. className: "comment-content",
  219. children: /*#__PURE__*/jsx_runtime_.jsx("p", {
  220. children: "Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen."
  221. })
  222. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  223. className: "reply",
  224. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  225. href: "#",
  226. className: "comment-reply-link",
  227. children: "Reply"
  228. })
  229. })]
  230. })
  231. }), /*#__PURE__*/jsx_runtime_.jsx("ol", {
  232. className: "children",
  233. children: /*#__PURE__*/jsx_runtime_.jsx("li", {
  234. className: "comment",
  235. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  236. className: "comment-body",
  237. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", {
  238. className: "comment-meta",
  239. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  240. className: "comment-author vcard",
  241. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  242. src: "/images/client-image/client3.jpg",
  243. className: "avatar",
  244. alt: "image"
  245. }), /*#__PURE__*/jsx_runtime_.jsx("b", {
  246. className: "fn",
  247. children: "Sarah Taylor"
  248. }), /*#__PURE__*/jsx_runtime_.jsx("span", {
  249. className: "says",
  250. children: "says:"
  251. })]
  252. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  253. className: "comment-metadata",
  254. children: "April 24, 2019 at 10:59 am"
  255. })]
  256. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  257. className: "comment-content",
  258. children: /*#__PURE__*/jsx_runtime_.jsx("p", {
  259. children: "Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen."
  260. })
  261. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  262. className: "reply",
  263. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  264. href: "#",
  265. className: "comment-reply-link",
  266. children: "Reply"
  267. })
  268. })]
  269. })
  270. })
  271. })]
  272. })]
  273. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("li", {
  274. className: "comment",
  275. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  276. className: "comment-body",
  277. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", {
  278. className: "comment-meta",
  279. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  280. className: "comment-author vcard",
  281. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  282. src: "/images/client-image/client4.jpg",
  283. className: "avatar",
  284. alt: "image"
  285. }), /*#__PURE__*/jsx_runtime_.jsx("b", {
  286. className: "fn",
  287. children: "John Doe"
  288. }), /*#__PURE__*/jsx_runtime_.jsx("span", {
  289. className: "says",
  290. children: "says:"
  291. })]
  292. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  293. className: "comment-metadata",
  294. children: "April 24, 2019 at 10:59 am"
  295. })]
  296. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  297. className: "comment-content",
  298. children: /*#__PURE__*/jsx_runtime_.jsx("p", {
  299. children: "Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen."
  300. })
  301. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  302. className: "reply",
  303. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  304. href: "#",
  305. className: "comment-reply-link",
  306. children: "Reply"
  307. })
  308. })]
  309. }), /*#__PURE__*/jsx_runtime_.jsx("ol", {
  310. className: "children",
  311. children: /*#__PURE__*/jsx_runtime_.jsx("li", {
  312. className: "comment",
  313. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", {
  314. className: "comment-body",
  315. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", {
  316. className: "comment-meta",
  317. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  318. className: "comment-author vcard",
  319. children: [/*#__PURE__*/jsx_runtime_.jsx("img", {
  320. src: "/images/client-image/client5.jpg",
  321. className: "avatar",
  322. alt: "image"
  323. }), /*#__PURE__*/jsx_runtime_.jsx("b", {
  324. className: "fn",
  325. children: "James Anderson"
  326. }), /*#__PURE__*/jsx_runtime_.jsx("span", {
  327. className: "says",
  328. children: "says:"
  329. })]
  330. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  331. className: "comment-metadata",
  332. children: "April 24, 2019 at 10:59 am"
  333. })]
  334. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  335. className: "comment-content",
  336. children: /*#__PURE__*/jsx_runtime_.jsx("p", {
  337. children: "Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen."
  338. })
  339. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  340. className: "reply",
  341. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  342. href: "#",
  343. className: "comment-reply-link",
  344. children: "Reply"
  345. })
  346. })]
  347. })
  348. })
  349. })]
  350. })]
  351. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  352. className: "comment-respond",
  353. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  354. className: "comment-reply-title",
  355. children: "Leave a Reply"
  356. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("form", {
  357. className: "comment-form",
  358. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  359. className: "comment-notes",
  360. children: [/*#__PURE__*/jsx_runtime_.jsx("span", {
  361. id: "email-notes",
  362. children: "Your email address will not be published."
  363. }), "Required fields are marked", /*#__PURE__*/jsx_runtime_.jsx("span", {
  364. className: "required",
  365. children: "*"
  366. })]
  367. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  368. className: "comment-form-comment",
  369. children: [/*#__PURE__*/jsx_runtime_.jsx("label", {
  370. children: "Comment"
  371. }), /*#__PURE__*/jsx_runtime_.jsx("textarea", {
  372. name: "comment",
  373. id: "comment",
  374. cols: "45",
  375. rows: "5",
  376. maxLength: "65525",
  377. required: "required"
  378. })]
  379. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  380. className: "comment-form-author",
  381. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  382. children: ["Name ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  383. className: "required",
  384. children: "*"
  385. })]
  386. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  387. type: "text",
  388. id: "author",
  389. name: "author",
  390. required: "required"
  391. })]
  392. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  393. className: "comment-form-email",
  394. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", {
  395. children: ["Email ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  396. className: "required",
  397. children: "*"
  398. })]
  399. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  400. type: "email",
  401. id: "email",
  402. name: "email",
  403. required: "required"
  404. })]
  405. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  406. className: "comment-form-url",
  407. children: [/*#__PURE__*/jsx_runtime_.jsx("label", {
  408. children: "Website"
  409. }), /*#__PURE__*/jsx_runtime_.jsx("input", {
  410. type: "url",
  411. id: "url",
  412. name: "url"
  413. })]
  414. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", {
  415. className: "comment-form-cookies-consent",
  416. children: [/*#__PURE__*/jsx_runtime_.jsx("input", {
  417. type: "checkbox",
  418. value: "yes",
  419. name: "comment-cookies-consent",
  420. id: "comment-cookies-consent"
  421. }), /*#__PURE__*/jsx_runtime_.jsx("label", {
  422. htmlFor: "comment-cookies-consent",
  423. children: "Save my name, email, and website in this browser for the next time I comment."
  424. })]
  425. }), /*#__PURE__*/jsx_runtime_.jsx("p", {
  426. className: "form-submit",
  427. children: /*#__PURE__*/jsx_runtime_.jsx("input", {
  428. type: "submit",
  429. name: "submit",
  430. id: "submit",
  431. className: "submit",
  432. value: "Post Comment"
  433. })
  434. })]
  435. })]
  436. })]
  437. })]
  438. }), /*#__PURE__*/jsx_runtime_.jsx("div", {
  439. className: "col-lg-4 col-md-12",
  440. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  441. className: "widget-area",
  442. id: "secondary",
  443. children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
  444. className: "widget widget_search",
  445. children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("form", {
  446. className: "search-form",
  447. children: [/*#__PURE__*/jsx_runtime_.jsx("label", {
  448. children: /*#__PURE__*/jsx_runtime_.jsx("input", {
  449. type: "search",
  450. className: "search-field",
  451. placeholder: "Search..."
  452. })
  453. }), /*#__PURE__*/jsx_runtime_.jsx("button", {
  454. type: "submit",
  455. children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.Search, {})
  456. })]
  457. })
  458. }), PopularNews, /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  459. className: "widget widget_categories",
  460. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  461. className: "widget-title",
  462. children: "Categories"
  463. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ul", {
  464. children: [/*#__PURE__*/jsx_runtime_.jsx("li", {
  465. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  466. href: "#",
  467. children: "Business"
  468. })
  469. }), /*#__PURE__*/jsx_runtime_.jsx("li", {
  470. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  471. href: "#",
  472. children: "Privacy"
  473. })
  474. }), /*#__PURE__*/jsx_runtime_.jsx("li", {
  475. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  476. href: "#",
  477. children: "Technology"
  478. })
  479. }), /*#__PURE__*/jsx_runtime_.jsx("li", {
  480. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  481. href: "#",
  482. children: "Tips"
  483. })
  484. }), /*#__PURE__*/jsx_runtime_.jsx("li", {
  485. children: /*#__PURE__*/jsx_runtime_.jsx("a", {
  486. href: "#",
  487. children: "Uncategorized"
  488. })
  489. })]
  490. })]
  491. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  492. className: "widget widget_tag_cloud",
  493. children: [/*#__PURE__*/jsx_runtime_.jsx("h3", {
  494. className: "widget-title",
  495. children: "Tags"
  496. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
  497. className: "tagcloud",
  498. children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("a", {
  499. href: "#",
  500. children: ["Motor ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  501. className: "tag-link-count",
  502. children: "(3)"
  503. })]
  504. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", {
  505. href: "#",
  506. children: ["Services ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  507. className: "tag-link-count",
  508. children: "(3)"
  509. })]
  510. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", {
  511. href: "#",
  512. children: ["Sparepart ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  513. className: "tag-link-count",
  514. children: "(2)"
  515. })]
  516. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", {
  517. href: "#",
  518. children: ["Promo ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  519. className: "tag-link-count",
  520. children: "(2)"
  521. })]
  522. }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", {
  523. href: "#",
  524. children: ["Event ", /*#__PURE__*/jsx_runtime_.jsx("span", {
  525. className: "tag-link-count",
  526. children: "(1)"
  527. })]
  528. })]
  529. })]
  530. })]
  531. })
  532. })]
  533. })
  534. })
  535. })]
  536. });
  537. };
  538. /* harmony default export */ var LatestNewsDetail = (News);
  539. // EXTERNAL MODULE: ./api/latest_news/news.js
  540. var latest_news_news = __webpack_require__(8888);
  541. var news_default = /*#__PURE__*/__webpack_require__.n(latest_news_news);
  542. ;// CONCATENATED MODULE: ./pages/yamaha/LatestNews/LatestNewsDetail.js
  543. function LatestNewsDetail_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = LatestNewsDetail_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; }
  544. function LatestNewsDetail_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; }
  545. const NewsDetail = function (_ref) {
  546. let {
  547. backend,
  548. news,
  549. othernews
  550. } = _ref,
  551. props = LatestNewsDetail_objectWithoutProperties(_ref, ["backend", "news", "othernews"]);
  552. return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
  553. children: [/*#__PURE__*/jsx_runtime_.jsx(NavbarYamaha/* default */.Z, {}), /*#__PURE__*/jsx_runtime_.jsx(LatestNewsDetail, {
  554. news: news,
  555. othernews: othernews,
  556. backend: backend
  557. }), /*#__PURE__*/jsx_runtime_.jsx(FooterYamaha/* default */.Z, {})]
  558. });
  559. };
  560. /* harmony default export */ var LatestNews_LatestNewsDetail = (NewsDetail);
  561. async function getServerSideProps(context) {
  562. var {
  563. query
  564. } = context;
  565. var news = [];
  566. var othernews = [];
  567. const backend = process.env.BACKEND_SERVER_URI;
  568. var res = await news_default().GetDetailNews(query.s || 0);
  569. if (res["STATUS"] === 1) {
  570. news = res["DATA"]["latestNews"];
  571. }
  572. var res = await news_default().GetOtherNewsYamaha();
  573. if (res["STATUS"] === 1) {
  574. othernews = res["DATA"]["latestNews"];
  575. }
  576. console.log(othernews);
  577. return {
  578. props: {
  579. news,
  580. othernews,
  581. backend
  582. } // will be passed to the page component as props
  583. };
  584. }
  585. /***/ }),
  586. /***/ 8074:
  587. /***/ (function(module) {
  588. "use strict";
  589. module.exports = require("@apollo/client");;
  590. /***/ }),
  591. /***/ 1683:
  592. /***/ (function(module) {
  593. "use strict";
  594. module.exports = require("cross-fetch");;
  595. /***/ }),
  596. /***/ 8417:
  597. /***/ (function(module) {
  598. "use strict";
  599. module.exports = require("next/dist/next-server/lib/router-context.js");;
  600. /***/ }),
  601. /***/ 2238:
  602. /***/ (function(module) {
  603. "use strict";
  604. module.exports = require("next/dist/next-server/lib/router/utils/get-asset-path-from-route.js");;
  605. /***/ }),
  606. /***/ 6731:
  607. /***/ (function(module) {
  608. "use strict";
  609. module.exports = require("next/router");;
  610. /***/ }),
  611. /***/ 9297:
  612. /***/ (function(module) {
  613. "use strict";
  614. module.exports = require("react");;
  615. /***/ }),
  616. /***/ 9337:
  617. /***/ (function(module) {
  618. "use strict";
  619. module.exports = require("react-feather");;
  620. /***/ }),
  621. /***/ 7795:
  622. /***/ (function(module) {
  623. "use strict";
  624. module.exports = require("react-html-parser");;
  625. /***/ }),
  626. /***/ 5282:
  627. /***/ (function(module) {
  628. "use strict";
  629. module.exports = require("react/jsx-runtime");;
  630. /***/ })
  631. };
  632. ;
  633. // load runtime
  634. var __webpack_require__ = require("../../../webpack-runtime.js");
  635. __webpack_require__.C(exports);
  636. var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  637. var __webpack_exports__ = __webpack_require__.X(0, [1664,4755,6371,7798,567,8888], function() { return __webpack_exec__(5647); });
  638. module.exports = __webpack_exports__;
  639. })();