(function() { var exports = {}; exports.id = 5532; exports.ids = [5532]; exports.modules = { /***/ 5647: /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { "default": function() { return /* binding */ LatestNews_LatestNewsDetail; }, "getServerSideProps": function() { return /* binding */ getServerSideProps; } }); // EXTERNAL MODULE: external "react/jsx-runtime" var jsx_runtime_ = __webpack_require__(5282); // EXTERNAL MODULE: external "react" var external_react_ = __webpack_require__(9297); // EXTERNAL MODULE: ./components/_App/NavbarYamaha.js var NavbarYamaha = __webpack_require__(2478); // EXTERNAL MODULE: ./components/_App/FooterYamaha.js var FooterYamaha = __webpack_require__(362); // EXTERNAL MODULE: ./components/Common/PageBanner.js var PageBanner = __webpack_require__(1288); // EXTERNAL MODULE: ./components/Blog/BlogSidebar.js var BlogSidebar = __webpack_require__(1805); // EXTERNAL MODULE: external "react-feather" var external_react_feather_ = __webpack_require__(9337); // EXTERNAL MODULE: ./node_modules/next/link.js var next_link = __webpack_require__(1664); // EXTERNAL MODULE: external "react-html-parser" var external_react_html_parser_ = __webpack_require__(7795); var external_react_html_parser_default = /*#__PURE__*/__webpack_require__.n(external_react_html_parser_); ;// CONCATENATED MODULE: ./components/Yamaha/LatestNews/LatestNewsDetail.js 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; } 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; } const News = function (_ref) { let { backend, news, othernews } = _ref, props = _objectWithoutProperties(_ref, ["backend", "news", "othernews"]); const NewsList = news.map(data => { return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, { children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "blog-details-desc", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "article-image", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: `${backend}${data.img[0]["url"]}`, width: "800px", alt: "image" }) }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "article-content", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "entry-meta", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("ul", { children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("li", { children: [/*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.Clock, {}), " September 31, 2021"] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("li", { children: [/*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.User, {}), " ", /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Steven Smith" })] })] }) }), /*#__PURE__*/jsx_runtime_.jsx("h2", { children: data.title }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: external_react_html_parser_default()(data.description) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "article-footer", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "article-tags", children: [/*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Motor" }), /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Services" }), /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Sparepart" }), /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Event" }), /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Promo" })] }) })] })] }) }); }); const PopularNews = othernews.map(data => { return /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "item", children: [/*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/blog-details", children: /*#__PURE__*/jsx_runtime_.jsx("a", { className: "thumb", children: /*#__PURE__*/jsx_runtime_.jsx("span", { className: "fullimage cover bg1", role: "img" }) }) }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "info", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: `${backend}${data.img[0]["url"]}`, style: { width: "100px" } }), /*#__PURE__*/jsx_runtime_.jsx("time", { children: data.published_at }), /*#__PURE__*/jsx_runtime_.jsx("h4", { className: "title usmall", children: /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/blog-details", children: /*#__PURE__*/jsx_runtime_.jsx("a", { style: { fontSize: "15px" }, children: data.title }) }) })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "clear" })] }); }); return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { children: [/*#__PURE__*/jsx_runtime_.jsx(PageBanner/* default */.Z, { pageTitle: "Latest News" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "blog-details-area ptb-80", children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "container", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "row", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "col-lg-8 col-md-12", children: [NewsList, /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comments-area", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { className: "comments-title", children: "2 Comments:" }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ol", { className: "comment-list", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("li", { className: "comment", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "comment-body", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", { className: "comment-meta", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-author vcard", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/client-image/client1.jpg", className: "avatar", alt: "image" }), /*#__PURE__*/jsx_runtime_.jsx("b", { className: "fn", children: "John Jones" }), /*#__PURE__*/jsx_runtime_.jsx("span", { className: "says", children: "says:" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-metadata", children: "April 24, 2019 at 10:59 am" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-content", children: /*#__PURE__*/jsx_runtime_.jsx("p", { 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." }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "reply", children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", className: "comment-reply-link", children: "Reply" }) })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ol", { className: "children", children: [/*#__PURE__*/jsx_runtime_.jsx("li", { className: "comment", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "comment-body", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", { className: "comment-meta", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-author vcard", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/client-image/client2.jpg", className: "avatar", alt: "image" }), /*#__PURE__*/jsx_runtime_.jsx("b", { className: "fn", children: "Steven Smith" }), /*#__PURE__*/jsx_runtime_.jsx("span", { className: "says", children: "says:" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-metadata", children: "April 24, 2019 at 10:59 am" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-content", children: /*#__PURE__*/jsx_runtime_.jsx("p", { 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." }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "reply", children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", className: "comment-reply-link", children: "Reply" }) })] }) }), /*#__PURE__*/jsx_runtime_.jsx("ol", { className: "children", children: /*#__PURE__*/jsx_runtime_.jsx("li", { className: "comment", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "comment-body", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", { className: "comment-meta", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-author vcard", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/client-image/client3.jpg", className: "avatar", alt: "image" }), /*#__PURE__*/jsx_runtime_.jsx("b", { className: "fn", children: "Sarah Taylor" }), /*#__PURE__*/jsx_runtime_.jsx("span", { className: "says", children: "says:" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-metadata", children: "April 24, 2019 at 10:59 am" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-content", children: /*#__PURE__*/jsx_runtime_.jsx("p", { 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." }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "reply", children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", className: "comment-reply-link", children: "Reply" }) })] }) }) })] })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("li", { className: "comment", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "comment-body", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", { className: "comment-meta", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-author vcard", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/client-image/client4.jpg", className: "avatar", alt: "image" }), /*#__PURE__*/jsx_runtime_.jsx("b", { className: "fn", children: "John Doe" }), /*#__PURE__*/jsx_runtime_.jsx("span", { className: "says", children: "says:" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-metadata", children: "April 24, 2019 at 10:59 am" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-content", children: /*#__PURE__*/jsx_runtime_.jsx("p", { 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." }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "reply", children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", className: "comment-reply-link", children: "Reply" }) })] }), /*#__PURE__*/jsx_runtime_.jsx("ol", { className: "children", children: /*#__PURE__*/jsx_runtime_.jsx("li", { className: "comment", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("article", { className: "comment-body", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("footer", { className: "comment-meta", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-author vcard", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/client-image/client5.jpg", className: "avatar", alt: "image" }), /*#__PURE__*/jsx_runtime_.jsx("b", { className: "fn", children: "James Anderson" }), /*#__PURE__*/jsx_runtime_.jsx("span", { className: "says", children: "says:" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-metadata", children: "April 24, 2019 at 10:59 am" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "comment-content", children: /*#__PURE__*/jsx_runtime_.jsx("p", { 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." }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "reply", children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", className: "comment-reply-link", children: "Reply" }) })] }) }) })] })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "comment-respond", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { className: "comment-reply-title", children: "Leave a Reply" }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("form", { className: "comment-form", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-notes", children: [/*#__PURE__*/jsx_runtime_.jsx("span", { id: "email-notes", children: "Your email address will not be published." }), "Required fields are marked", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "required", children: "*" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-form-comment", children: [/*#__PURE__*/jsx_runtime_.jsx("label", { children: "Comment" }), /*#__PURE__*/jsx_runtime_.jsx("textarea", { name: "comment", id: "comment", cols: "45", rows: "5", maxLength: "65525", required: "required" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-form-author", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", { children: ["Name ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "required", children: "*" })] }), /*#__PURE__*/jsx_runtime_.jsx("input", { type: "text", id: "author", name: "author", required: "required" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-form-email", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("label", { children: ["Email ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "required", children: "*" })] }), /*#__PURE__*/jsx_runtime_.jsx("input", { type: "email", id: "email", name: "email", required: "required" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-form-url", children: [/*#__PURE__*/jsx_runtime_.jsx("label", { children: "Website" }), /*#__PURE__*/jsx_runtime_.jsx("input", { type: "url", id: "url", name: "url" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { className: "comment-form-cookies-consent", children: [/*#__PURE__*/jsx_runtime_.jsx("input", { type: "checkbox", value: "yes", name: "comment-cookies-consent", id: "comment-cookies-consent" }), /*#__PURE__*/jsx_runtime_.jsx("label", { htmlFor: "comment-cookies-consent", children: "Save my name, email, and website in this browser for the next time I comment." })] }), /*#__PURE__*/jsx_runtime_.jsx("p", { className: "form-submit", children: /*#__PURE__*/jsx_runtime_.jsx("input", { type: "submit", name: "submit", id: "submit", className: "submit", value: "Post Comment" }) })] })] })] })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-4 col-md-12", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "widget-area", id: "secondary", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "widget widget_search", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("form", { className: "search-form", children: [/*#__PURE__*/jsx_runtime_.jsx("label", { children: /*#__PURE__*/jsx_runtime_.jsx("input", { type: "search", className: "search-field", placeholder: "Search..." }) }), /*#__PURE__*/jsx_runtime_.jsx("button", { type: "submit", children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.Search, {}) })] }) }), PopularNews, /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "widget widget_categories", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { className: "widget-title", children: "Categories" }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("ul", { children: [/*#__PURE__*/jsx_runtime_.jsx("li", { children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Business" }) }), /*#__PURE__*/jsx_runtime_.jsx("li", { children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Privacy" }) }), /*#__PURE__*/jsx_runtime_.jsx("li", { children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Technology" }) }), /*#__PURE__*/jsx_runtime_.jsx("li", { children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Tips" }) }), /*#__PURE__*/jsx_runtime_.jsx("li", { children: /*#__PURE__*/jsx_runtime_.jsx("a", { href: "#", children: "Uncategorized" }) })] })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "widget widget_tag_cloud", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { className: "widget-title", children: "Tags" }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "tagcloud", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { href: "#", children: ["Motor ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "tag-link-count", children: "(3)" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { href: "#", children: ["Services ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "tag-link-count", children: "(3)" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { href: "#", children: ["Sparepart ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "tag-link-count", children: "(2)" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { href: "#", children: ["Promo ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "tag-link-count", children: "(2)" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { href: "#", children: ["Event ", /*#__PURE__*/jsx_runtime_.jsx("span", { className: "tag-link-count", children: "(1)" })] })] })] })] }) })] }) }) })] }); }; /* harmony default export */ var LatestNewsDetail = (News); // EXTERNAL MODULE: ./api/latest_news/news.js var latest_news_news = __webpack_require__(8888); var news_default = /*#__PURE__*/__webpack_require__.n(latest_news_news); ;// CONCATENATED MODULE: ./pages/yamaha/LatestNews/LatestNewsDetail.js 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; } 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; } const NewsDetail = function (_ref) { let { backend, news, othernews } = _ref, props = LatestNewsDetail_objectWithoutProperties(_ref, ["backend", "news", "othernews"]); return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { children: [/*#__PURE__*/jsx_runtime_.jsx(NavbarYamaha/* default */.Z, {}), /*#__PURE__*/jsx_runtime_.jsx(LatestNewsDetail, { news: news, othernews: othernews, backend: backend }), /*#__PURE__*/jsx_runtime_.jsx(FooterYamaha/* default */.Z, {})] }); }; /* harmony default export */ var LatestNews_LatestNewsDetail = (NewsDetail); async function getServerSideProps(context) { var { query } = context; var news = []; var othernews = []; const backend = process.env.BACKEND_SERVER_URI; var res = await news_default().GetDetailNews(query.s || 0); if (res["STATUS"] === 1) { news = res["DATA"]["latestNews"]; } var res = await news_default().GetOtherNewsYamaha(); if (res["STATUS"] === 1) { othernews = res["DATA"]["latestNews"]; } console.log(othernews); return { props: { news, othernews, backend } // will be passed to the page component as props }; } /***/ }), /***/ 8074: /***/ (function(module) { "use strict"; module.exports = require("@apollo/client");; /***/ }), /***/ 1683: /***/ (function(module) { "use strict"; module.exports = require("cross-fetch");; /***/ }), /***/ 8417: /***/ (function(module) { "use strict"; module.exports = require("next/dist/next-server/lib/router-context.js");; /***/ }), /***/ 2238: /***/ (function(module) { "use strict"; module.exports = require("next/dist/next-server/lib/router/utils/get-asset-path-from-route.js");; /***/ }), /***/ 6731: /***/ (function(module) { "use strict"; module.exports = require("next/router");; /***/ }), /***/ 9297: /***/ (function(module) { "use strict"; module.exports = require("react");; /***/ }), /***/ 9337: /***/ (function(module) { "use strict"; module.exports = require("react-feather");; /***/ }), /***/ 7795: /***/ (function(module) { "use strict"; module.exports = require("react-html-parser");; /***/ }), /***/ 5282: /***/ (function(module) { "use strict"; module.exports = require("react/jsx-runtime");; /***/ }) }; ; // load runtime var __webpack_require__ = require("../../../webpack-runtime.js"); __webpack_require__.C(exports); var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); } var __webpack_exports__ = __webpack_require__.X(0, [1664,4755,6371,7798,567,8888], function() { return __webpack_exec__(5647); }); module.exports = __webpack_exports__; })();