|
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5891],{91288:function(e,r,n){"use strict";var t=n(85893);n(67294);r.Z=function(e){var r=e.pageTitle;return(0,t.jsx)("div",{className:"page-title-area",children:(0,t.jsx)("div",{className:"d-table",children:(0,t.jsx)("div",{className:"d-table-cell",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("h2",{children:r})})})})})}},82337:function(e,r,n){"use strict";var t=n(85893),a=(n(67294),n(41664)),s=n(85611),i=n(39704);r.Z=function(e){var r=e.id,n=(0,s.e1)().addToast,c=(0,i.I0)();return(0,t.jsx)(a.default,{href:"#",children:(0,t.jsx)("a",{onClick:function(e){e.preventDefault(),c({type:"ADD_TO_CART",id:r}),n("Cart Added Successfully",{appearance:"success"})},className:"add-to-cart-btn",children:"Add to Cart"})})}},9280:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return g},default:function(){return y}});var t=n(85893),a=n(38347),s=(n(67294),n(72478)),i=n(80362),c=n(91288),l=n(26265),o=n(41664),d=n(83206),u=n(47811),p=n(39130),h=n(39704),f=n(82337),j=n(57333);function m(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function x(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?m(Object(n),!0).forEach((function(r){(0,l.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var v=function(e){var r=e.ygp,n=(e.yamalube,e.helmet,e.apparel,e.accessories,e.backend);(0,a.Z)(e,["ygp","yamalube","helmet","apparel","accessories","backend"]),(0,h.v9)((function(e){return e.products}));console.log(r);var s=r.map((function(e){return(0,t.jsx)("div",{className:"col-lg-3 col-md-6 col-sm-6",children:(0,t.jsxs)("div",{className:"single-products",children:[(0,t.jsxs)("div",{className:"products-image",children:[(0,t.jsx)("img",{src:"".concat(n).concat(e.img.url)}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"#",children:(0,t.jsx)(d.Z,{})})}),(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"#",children:(0,t.jsx)(u.Z,{})})}),(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{href:"/products/[id]",as:"/products/".concat(r.id),children:(0,t.jsx)("a",{children:(0,t.jsx)(p.Z,{})})})})]})]}),(0,t.jsxs)("div",{className:"products-content",children:[(0,t.jsx)("h3",{children:(0,t.jsx)(o.default,{href:"/yamaha/Product/Motor_Detail?s="+e.id,children:(0,t.jsx)("a",{children:e.name})})}),(0,t.jsx)("span",{children:(0,t.jsx)(j.Z,{value:e.price2,displayType:"text",thousandSeparator:!0,prefix:"Rp."})}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsx)("i",{className:"flaticon-star-1"})}),(0,t.jsx)("li",{children:(0,t.jsx)("i",{className:"flaticon-star-1"})}),(0,t.jsx)("li",{children:(0,t.jsx)("i",{className:"flaticon-star-1"})}),(0,t.jsx)("li",{children:(0,t.jsx)("i",{className:"flaticon-star-1"})}),(0,t.jsx)("li",{children:(0,t.jsx)("i",{className:"flaticon-star-1"})})]}),(0,t.jsx)(f.Z,x({},r))]})]})},r.id)}));return(0,t.jsx)("div",{className:"shop-area ptb-80",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"woocommerce-topbar",children:(0,t.jsxs)("div",{className:"row align-items-center",children:[(0,t.jsx)("div",{className:"col-lg-9 col-md-7 col-sm-7",children:(0,t.jsx)("div",{className:"woocommerce-result-count",children:(0,t.jsx)("p",{children:"Showing 1-8 of 14 results"})})}),(0,t.jsx)("div",{className:"col-lg-3 col-md-5 col-sm-5",children:(0,t.jsx)("div",{className:"woocommerce-topbar-ordering",children:(0,t.jsxs)("select",{className:"form-select",children:[(0,t.jsx)("option",{value:"1",children:"Sort by Popularity"}),(0,t.jsx)("option",{value:"2",children:"Sort by Average Rating"}),(0,t.jsx)("option",{value:"3",children:"Sort by Latest"}),(0,t.jsx)("option",{value:"4",children:"Sort by price: Low to High"}),(0,t.jsx)("option",{value:"5",children:"Sort by price: High to Low"}),(0,t.jsx)("option",{value:"6",children:"Sort by New"})]})})})]})}),(0,t.jsxs)("div",{className:"row justify-content-md-center",children:[s,(0,t.jsx)("div",{className:"col-lg-12 col-md-12 col-sm-12",children:(0,t.jsx)("div",{className:"pagination-area",children:(0,t.jsx)("nav",{"aria-label":"Page navigation",children:(0,t.jsxs)("ul",{className:"pagination justify-content-center",children:[(0,t.jsx)("li",{className:"page-item",children:(0,t.jsx)("a",{className:"page-link",href:"#",children:"Prev"})}),(0,t.jsx)("li",{className:"page-item active",children:(0,t.jsx)("a",{className:"page-link",href:"#",children:"1"})}),(0,t.jsx)("li",{className:"page-item",children:(0,t.jsx)("a",{className:"page-link",href:"#",children:"2"})}),(0,t.jsx)("li",{className:"page-item",children:(0,t.jsx)("a",{className:"page-link",href:"#",children:"3"})}),(0,t.jsx)("li",{className:"page-item",children:(0,t.jsx)("a",{className:"page-link",href:"#",children:"Next"})})]})})})})]})]})})},g=(n(88933),!0),y=function(e){var r=e.ygp,n=e.yamalube,l=e.helmet,o=e.apparel,d=e.accessories,u=e.backend;(0,a.Z)(e,["ygp","yamalube","helmet","apparel","accessories","backend"]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Z,{}),(0,t.jsx)(c.Z,{pageTitle:"Sparepart"}),(0,t.jsx)(v,{ygp:r,yamalube:n,helmet:l,apparel:o,accessories:d,backend:u}),(0,t.jsx)(i.Z,{})]})}},15471:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/yamaha/Product/Sparepart",function(){return n(9280)}])},47811:function(e,r,n){"use strict";var t=n(67294),a=n(45697),s=n.n(a);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function c(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=(0,t.forwardRef)((function(e,r){var n=e.color,a=void 0===n?"currentColor":n,s=e.size,l=void 0===s?24:s,o=c(e,["color","size"]);return t.createElement("svg",i({ref:r,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),t.createElement("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"}))}));l.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},l.displayName="Heart",r.Z=l},39130:function(e,r,n){"use strict";var t=n(67294),a=n(45697),s=n.n(a);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function c(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=(0,t.forwardRef)((function(e,r){var n=e.color,a=void 0===n?"currentColor":n,s=e.size,l=void 0===s?24:s,o=c(e,["color","size"]);return t.createElement("svg",i({ref:r,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),t.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),t.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))}));l.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},l.displayName="Link",r.Z=l},83206:function(e,r,n){"use strict";var t=n(67294),a=n(45697),s=n.n(a);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function c(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=(0,t.forwardRef)((function(e,r){var n=e.color,a=void 0===n?"currentColor":n,s=e.size,l=void 0===s?24:s,o=c(e,["color","size"]);return t.createElement("svg",i({ref:r,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),t.createElement("circle",{cx:"11",cy:"11",r:"8"}),t.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))}));l.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},l.displayName="Search",r.Z=l},46601:function(){},89214:function(){},71922:function(){},2363:function(){},52361:function(){},94616:function(){}},function(e){e.O(0,[3023,6326,7333,8933,7798,9774,2888,179],(function(){return r=15471,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
- //# sourceMappingURL=Sparepart-1687b4a3e769b9660353.js.map
|