(function() { var exports = {}; exports.id = 4524; exports.ids = [4524]; exports.modules = { /***/ 6968: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var _apollo = _interopRequireDefault(__webpack_require__(6371)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function GetDealers(filter, token = "") { var res = await _apollo.default.query(` query { ${filter != "" ? `name: "${filter}"` : ""} dealers { id name kota_dealer address telp email location img{ url } } } `, token); return res; } async function GetHomeDealer(token = "", start = 0) { var res = await _apollo.default.query(` query($start: Int!) { dealers(limit:6,start:$start){ id name kota_dealer address telp email location img{ url } } } `, token, { start: start }); return res; } module.exports = { GetDealers: GetDealers, GetHomeDealer: GetHomeDealer }; /***/ }), /***/ 5388: /***/ (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 */ yamaha; }, "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); var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); // EXTERNAL MODULE: ./components/_App/NavbarYamaha.js var NavbarYamaha = __webpack_require__(2478); // EXTERNAL MODULE: ./node_modules/next/link.js var next_link = __webpack_require__(1664); ;// CONCATENATED MODULE: ./components/Yamaha/Home/MainBanner.js const MainBanner = () => { return /*#__PURE__*/jsx_runtime_.jsx("div", { className: "main-banner", style: { marginTop: "-50px" }, children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "d-table", children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "d-table-cell", children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "container", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "row h-100 justify-content-center align-items-center", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-5", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "hero-content", children: [/*#__PURE__*/jsx_runtime_.jsx("h1", { children: /*#__PURE__*/jsx_runtime_.jsx("b", { children: "Exclusif Motor Untuk Anda" }) }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida" }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/contact", children: /*#__PURE__*/jsx_runtime_.jsx("a", { className: "btn btn-primary", children: "Get Started" }) })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-6 offset-lg-1", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/yamaha/banner.png", className: "animate__animated animate__fadeInDown animate__delay-0.1s", alt: "man" }) })] }) }) }) }) }); }; /* harmony default export */ var Home_MainBanner = (MainBanner); // EXTERNAL MODULE: ./components/Common/PartnerStyleTwo.js var PartnerStyleTwo = __webpack_require__(161); // EXTERNAL MODULE: external "react-feather" var external_react_feather_ = __webpack_require__(9337); ;// CONCATENATED MODULE: ./components/Yamaha/Home/OurServices.js const OurServices = () => { return /*#__PURE__*/jsx_runtime_.jsx("div", { className: "iot-services-area pt-80 pb-50", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "container justify-content-center", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "section-title", children: [/*#__PURE__*/jsx_runtime_.jsx("h2", { children: "Yamaha 3S Service" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "bar" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "row", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-4 col-md-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "single-repair-services bg1", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "icon", children: /*#__PURE__*/jsx_runtime_.jsx("i", { className: "flaticon-cart" }) }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("h3", { children: ["Selling ", /*#__PURE__*/jsx_runtime_.jsx("br", {}), " Yamaha Product Selling"] }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Lorem ipsum eiusmod dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua." }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "Product/Motor", children: /*#__PURE__*/jsx_runtime_.jsx("a", { children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.ArrowRight, {}) }) })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-4 col-md-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "single-repair-services bg2", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "icon", children: /*#__PURE__*/jsx_runtime_.jsx("i", { className: "flaticon-gear" }) }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("h3", { children: ["Services ", /*#__PURE__*/jsx_runtime_.jsx("br", {}), " Yamaha Services Product"] }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Lorem ipsum eiusmod dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua." }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/service-details", children: /*#__PURE__*/jsx_runtime_.jsx("a", { children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.ArrowRight, {}) }) })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-4 col-md-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "single-repair-services bg3", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "icon", children: /*#__PURE__*/jsx_runtime_.jsx("i", { className: "flaticon-key" }) }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("h3", { children: ["Sparepart ", /*#__PURE__*/jsx_runtime_.jsx("br", {}), "Yamaha Sparepart Product"] }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Lorem ipsum eiusmod dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua." }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/service-details", children: /*#__PURE__*/jsx_runtime_.jsx("a", { children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.ArrowRight, {}) }) })] }) })] })] }) }); }; /* harmony default export */ var Home_OurServices = (OurServices); // EXTERNAL MODULE: external "next/dynamic" var dynamic_ = __webpack_require__(9639); var dynamic_default = /*#__PURE__*/__webpack_require__.n(dynamic_); ;// CONCATENATED MODULE: ./components/Yamaha/Home/FeatureProduct.js function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // import React, { Component } from 'react'; // import Masonry from 'react-masonry-component'; // import Link from 'next/link'; // const masonryOptions = { // transitionDuration: 0 // }; // export class Projects extends Component { // render() { // const images = this.props.images.map((image, idx) => { // return ( //
//
// portfolio-image //
// {image.category} //

{image.title}

//
// // // //
//
// ) // }) // return ( //
//
//
//

Our Latest Projects

//

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

//
// // {images} // //
//
// ); // } // } // Projects.defaultProps = { // images: [ // { // image: "/images/Home/gallery/1.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/2.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/3.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/4.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/5.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/6.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/7.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/8.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // { // image: "/images/Home/gallery/9.jpg", // category: "Marketing", // title: "Marketing & Reporting" // }, // ] // } // export default Projects; const OwlCarousel = dynamic_default()(() => Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 1832, 23)), { loadableGenerated: { webpack: () => [/*require.resolve*/(1832)], modules: ["..\\components\\Yamaha\\Home\\FeatureProduct.js -> " + 'react-owl-carousel3'] } }); const options = { loop: true, nav: false, dots: true, autoplay: true, smartSpeed: 1000, margin: 30, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 576: { items: 2 }, 768: { items: 2 }, 1024: { items: 3 }, 1200: { items: 4 } } }; const Projects = () => { const [display, setDisplay] = external_react_default().useState(false); external_react_default().useEffect(() => { setDisplay(true); }, []); return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "ml-projects-area pt-0 ptb-80", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "container", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "section-title st-fs-28", children: [/*#__PURE__*/jsx_runtime_.jsx("h2", { children: "Yamaha Motor Feature Product" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "bar" })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "container-fluid", children: display ? /*#__PURE__*/(0,jsx_runtime_.jsxs)(OwlCarousel, _objectSpread(_objectSpread({ className: "ml-projects-slides owl-carousel owl-theme" }, options), {}, { children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Aerox.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Fino.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Freego.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Gear123.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Jupiter.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Lexi.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Mio.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/MXKing.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Nmax.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/R15.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Vega.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Vixion.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/WR.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/Xride.jpg", alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "single-ml-projects-box", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/Yamaha/Feature/XSR.jpg", alt: "image" }) })] })) : '' }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape1", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape1.png", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape2 rotateme", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape2.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape3", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape3.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape4", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape4.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape7", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape4.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape8 rotateme", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape2.svg", alt: "shape" }) })] }); }; /* harmony default export */ var FeatureProduct = (Projects); ;// CONCATENATED MODULE: ./components/Yamaha/Home/Summary.js const FunFactsArea = () => { return /*#__PURE__*/jsx_runtime_.jsx("div", { className: "funfacts-area ptb-80", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "container", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "section-title", children: [/*#__PURE__*/jsx_runtime_.jsx("h2", { children: "Total Penjualan, Service & Dealer Yamaha" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "bar" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "row", style: { align: "center" }, children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-3 col-md-3 col-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "funfact", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { children: "200" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Product Motor Terjual" })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-3 col-md-3 col-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "funfact", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { children: "478" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Service Motor" })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-3 col-md-3 col-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "funfact", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { children: "800+" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Sparepart Terjual" })] }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-3 col-md-3 col-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "funfact", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { children: "30" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Dealers yang tersebar di Sumsel & Bengkulu" })] }) })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "contact-cta-box", children: [/*#__PURE__*/jsx_runtime_.jsx("h3", { children: "Punya Pertanyaan ?" }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: "Segera Hubungi Kami" }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: "/contact", children: /*#__PURE__*/jsx_runtime_.jsx("a", { className: "btn btn-primary", children: "Hubungi Kami" }) })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "map-bg", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/map.png", alt: "map" }) })] }) }); }; /* harmony default export */ var Summary = (FunFactsArea); ;// CONCATENATED MODULE: ./components/Yamaha/Home/Dealer.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 Dealers = function (_ref) { let { backend, dealers } = _ref, props = _objectWithoutProperties(_ref, ["backend", "dealers"]); const ListDealer = dealers.map(data => { return /*#__PURE__*/jsx_runtime_.jsx("div", { className: "col-lg-4 col-sm-6 col-md-6", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "agency-services-box", children: [/*#__PURE__*/jsx_runtime_.jsx("img", { style: { height: "250px", width: "100%", display: "block" }, src: `${backend}${data.img["url"]}`, alt: "image" }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "content", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("p", { children: [/*#__PURE__*/jsx_runtime_.jsx("p", { children: /*#__PURE__*/jsx_runtime_.jsx("b", { children: data.name }) }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: /*#__PURE__*/jsx_runtime_.jsx("b", { children: data.kota_dealer }) }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: /*#__PURE__*/jsx_runtime_.jsx("b", { children: data.telp }) }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: /*#__PURE__*/jsx_runtime_.jsx("b", { children: data.address }) })] }), /*#__PURE__*/jsx_runtime_.jsx(next_link.default, { href: `${data.location}`, target: "_blank", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("a", { className: "read-more-btn", target: "_blank", children: ["View Location ", /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.MapPin, {})] }) })] })] }) }); }); return /*#__PURE__*/jsx_runtime_.jsx("div", { children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "agency-services-area pt-80 pb-50", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "container", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "section-title st-fs-28", children: [/*#__PURE__*/jsx_runtime_.jsx("h2", { children: "Yamaha Dealers" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "bar" })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "row justify-content-center", children: ListDealer })] }) }) }); }; /* harmony default export */ var Dealer = (Dealers); // EXTERNAL MODULE: external "react-slick" var external_react_slick_ = __webpack_require__(9080); var external_react_slick_default = /*#__PURE__*/__webpack_require__.n(external_react_slick_); ;// CONCATENATED MODULE: ./components/Yamaha/Home/Testimoni.js function Testimoni_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function Testimoni_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { Testimoni_ownKeys(Object(source), true).forEach(function (key) { Testimoni_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { Testimoni_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function Testimoni_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } const NextArrow = props => { const { onClick } = props; return /*#__PURE__*/jsx_runtime_.jsx("button", { className: "next-arrow slick-arrow", onClick: onClick, children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.ArrowRight, {}) }); }; const PrevArrow = props => { const { onClick } = props; return /*#__PURE__*/jsx_runtime_.jsx("button", { className: "prev-arrow slick-arrow", onClick: onClick, children: /*#__PURE__*/jsx_runtime_.jsx(external_react_feather_.ArrowLeft, {}) }); }; class Feedback extends (external_react_default()).Component { constructor(...args) { super(...args); Testimoni_defineProperty(this, "state", { imagesSlider: null, thumbnailsSlider: null, oldSlide: 0, activeSlide: 0, activeSlide2: 0 }); Testimoni_defineProperty(this, "renderSliderFullContent", () => { return DEFAULT_PROPS.map(({ name, profession, image, content }) => { return /*#__PURE__*/jsx_runtime_.jsx("div", { children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "item", children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "single-feedback", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "client-img", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: image, alt: "image" }) }), /*#__PURE__*/jsx_runtime_.jsx("h3", { children: name }), /*#__PURE__*/jsx_runtime_.jsx("span", { children: profession }), /*#__PURE__*/jsx_runtime_.jsx("p", { children: content })] }) }) }, name); }); }); Testimoni_defineProperty(this, "renderSliderImages", () => { return DEFAULT_PROPS.map(({ name, image }) => { return /*#__PURE__*/jsx_runtime_.jsx("div", { children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "item", children: /*#__PURE__*/jsx_runtime_.jsx("div", { className: "img-fill", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: image, alt: "client" }) }) }) }, name); }); }); } componentDidMount() { this.setState({ imagesSlider: this.slider1, thumbnailsSlider: this.slider2 }); } render() { const sliderSettings1 = { speed: 100, slidesToShow: 1, slidesToScroll: 1, cssEase: 'linear', fade: true, autoplay: true, draggable: true, asNavFor: this.state.thumbnailsSlider, draggable: false, arrows: false, nextArrow: false, prevArrow: false }; const sliderSettings2 = { speed: 300, slidesToShow: 5, slidesToScroll: 1, cssEase: 'linear', autoplay: true, centerMode: true, draggable: false, focusOnSelect: true, asNavFor: this.state.imagesSlider, nextArrow: /*#__PURE__*/jsx_runtime_.jsx(NextArrow, {}), prevArrow: /*#__PURE__*/jsx_runtime_.jsx(PrevArrow, {}), beforeChange: (current, next) => this.setState({ oldSlide: current, activeSlide: next }), afterChange: current => this.setState({ activeSlide2: current }) }; return /*#__PURE__*/(0,jsx_runtime_.jsxs)("section", { className: "feedback-area ptb-80 bg-f7fafd", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "container", children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "section-title", children: [/*#__PURE__*/jsx_runtime_.jsx("h2", { children: "Testimoni Customer Yamaha" }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "bar" })] }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", { className: "feedback-slides", children: [/*#__PURE__*/jsx_runtime_.jsx("div", { className: "client-feedback", children: /*#__PURE__*/jsx_runtime_.jsx("div", { children: /*#__PURE__*/jsx_runtime_.jsx((external_react_slick_default()), Testimoni_objectSpread(Testimoni_objectSpread({ ref: slider => this.slider1 = slider }, sliderSettings1), {}, { children: this.renderSliderFullContent() })) }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "client-thumbnails", children: /*#__PURE__*/jsx_runtime_.jsx("div", { children: /*#__PURE__*/jsx_runtime_.jsx((external_react_slick_default()), Testimoni_objectSpread(Testimoni_objectSpread({ ref: slider => this.slider2 = slider }, sliderSettings2), {}, { children: this.renderSliderImages() })) }) })] })] }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape1", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape1.png", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape2 rotateme", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape2.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape4", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape4.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape5", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape5.png", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape6 rotateme", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape4.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape7", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape4.svg", alt: "shape" }) }), /*#__PURE__*/jsx_runtime_.jsx("div", { className: "shape8 rotateme", children: /*#__PURE__*/jsx_runtime_.jsx("img", { src: "/images/shape2.svg", alt: "shape" }) })] }); } } const DEFAULT_PROPS = [{ name: 'David Gale', profession: 'Web Developer', image: '/images/client-image/client2.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Matt Damon', profession: 'Software Engineer', image: '/images/client-image/client4.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Nicky Parsons', profession: 'Fictional Character', image: '/images/client-image/client1.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Jason Momoa', profession: 'American Actor', image: '/images/client-image/client5.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Gennady Korotkevich', profession: 'Sport Programmer', image: '/images/client-image/client3.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Petr Mitrichev', profession: 'Russian Programmer', image: '/images/client-image/client3.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Reid W. Barton', profession: 'Mathematics', image: '/images/client-image/client2.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Lisa Sauermann', profession: 'Mathematician', image: '/images/client-image/client1.jpg', content: 'Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }]; /* harmony default export */ var Testimoni = (Feedback); // EXTERNAL MODULE: ./components/_App/FooterYamaha.js var FooterYamaha = __webpack_require__(362); // EXTERNAL MODULE: ./api/dealer/dealer.js var dealer = __webpack_require__(6968); var dealer_default = /*#__PURE__*/__webpack_require__.n(dealer); // EXTERNAL MODULE: external "cookies" var external_cookies_ = __webpack_require__(9038); var external_cookies_default = /*#__PURE__*/__webpack_require__.n(external_cookies_); ;// CONCATENATED MODULE: ./pages/yamaha/index.js function yamaha_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = yamaha_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 yamaha_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 Index = function (_ref) { let { dealers, backend, user } = _ref, props = yamaha_objectWithoutProperties(_ref, ["dealers", "backend", "user"]); return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { children: [/*#__PURE__*/jsx_runtime_.jsx(NavbarYamaha/* default */.Z, {}), /*#__PURE__*/jsx_runtime_.jsx(Home_MainBanner, {}), /*#__PURE__*/jsx_runtime_.jsx(PartnerStyleTwo/* default */.Z, {}), /*#__PURE__*/jsx_runtime_.jsx(Home_OurServices, {}), /*#__PURE__*/jsx_runtime_.jsx(FeatureProduct, {}), /*#__PURE__*/jsx_runtime_.jsx(Dealer, { dealers: dealers, backend: backend }), /*#__PURE__*/jsx_runtime_.jsx(Testimoni, {}), /*#__PURE__*/jsx_runtime_.jsx(Summary, {}), /*#__PURE__*/jsx_runtime_.jsx(FooterYamaha/* default */.Z, {})] }); }; async function getServerSideProps(context) { var dealers = []; const backend = process.env.BACKEND_SERVER_URI; var { req, resp } = context; const cookies = new (external_cookies_default())(req, resp); var user = ""; var userObj = (await cookies.get("user")) ? JSON.parse(await cookies.get("user")) : null; if (userObj) { let sessionId = userObj["partners_login_states"].filter(function (i) { return i.business_partner && i.business_partner.name.toUpperCase() == "YAMAHA"; }); if (sessionId.length != 0) user = userObj["username"]; } var res = await dealer_default().GetHomeDealer(); if (res["STATUS"] === 1) { dealers = res["DATA"]["dealers"]; } console.log(dealers); return { props: { dealers, backend, user } // will be passed to the page component as props }; } /* harmony default export */ var yamaha = (Index); /***/ }), /***/ 8074: /***/ (function(module) { "use strict"; module.exports = require("@apollo/client");; /***/ }), /***/ 9038: /***/ (function(module) { "use strict"; module.exports = require("cookies");; /***/ }), /***/ 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");; /***/ }), /***/ 9639: /***/ (function(module) { "use strict"; module.exports = require("next/dynamic");; /***/ }), /***/ 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");; /***/ }), /***/ 1832: /***/ (function(module) { "use strict"; module.exports = require("react-owl-carousel3");; /***/ }), /***/ 9080: /***/ (function(module) { "use strict"; module.exports = require("react-slick");; /***/ }), /***/ 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,161], function() { return __webpack_exec__(5388); }); module.exports = __webpack_exports__; })();