1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,1771],{84441:function(e,t,a){"use strict";a.d(t,{M:function(){return x}});var n=a(70655),l=a(67294),i=a(6717);var s=a(8626),r=a(45930),c=0;function o(){var e=c;return c++,e}var d=function(e){var t=e.children,a=e.initial,n=e.isPresent,i=e.onExitComplete,c=e.custom,d=e.presenceAffectsLayout,h=(0,r.h)(u),m=(0,r.h)(o),x=(0,l.useMemo)((function(){return{id:m,initial:a,isPresent:n,custom:c,onExitComplete:function(e){h.set(e,!0);var t=!0;h.forEach((function(e){e||(t=!1)})),t&&(null===i||void 0===i||i())},register:function(e){return h.set(e,!1),function(){return h.delete(e)}}}}),d?void 0:[n]);return(0,l.useMemo)((function(){h.forEach((function(e,t){return h.set(t,!1)}))}),[n]),l.useEffect((function(){!n&&!h.size&&(null===i||void 0===i||i())}),[n]),l.createElement(s.O.Provider,{value:x},t)};function u(){return new Map}var h=a(62134);function m(e){return e.key||""}var x=function(e){var t=e.children,a=e.custom,s=e.initial,r=void 0===s||s,c=e.onExitComplete,o=e.exitBeforeEnter,u=e.presenceAffectsLayout,x=void 0===u||u,f=function(){var e=(0,l.useRef)(!1),t=(0,n.CR)((0,l.useState)(0),2),a=t[0],s=t[1];return(0,i.z)((function(){return e.current=!0})),(0,l.useCallback)((function(){!e.current&&s(a+1)}),[a])}(),p=(0,l.useContext)(h.WH);(0,h.Md)(p)&&(f=p.forceUpdate);var g=(0,l.useRef)(!0),v=function(e){var t=[];return l.Children.forEach(e,(function(e){(0,l.isValidElement)(e)&&t.push(e)})),t}(t),j=(0,l.useRef)(v),b=(0,l.useRef)(new Map).current,w=(0,l.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var a=m(e);t.set(a,e)}))}(v,b),g.current)return g.current=!1,l.createElement(l.Fragment,null,v.map((function(e){return l.createElement(d,{key:m(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:x},e)})));for(var y=(0,n.ev)([],(0,n.CR)(v)),N=j.current.map(m),k=v.map(m),S=N.length,C=0;C<S;C++){var E=N[C];-1===k.indexOf(E)?w.add(E):w.delete(E)}return o&&w.size&&(y=[]),w.forEach((function(e){if(-1===k.indexOf(e)){var t=b.get(e);if(t){var n=N.indexOf(e);y.splice(n,0,l.createElement(d,{key:m(t),isPresent:!1,onExitComplete:function(){b.delete(e),w.delete(e);var t=j.current.findIndex((function(t){return t.key===e}));j.current.splice(t,1),w.size||(j.current=v,f(),c&&c())},custom:a,presenceAffectsLayout:x},t))}}})),y=y.map((function(e){var t=e.key;return w.has(t)?e:l.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:x},e)})),j.current=y,l.createElement(l.Fragment,null,w.size?y:y.map((function(e){return(0,l.cloneElement)(e)})))}},86369:function(e,t,a){"use strict";var n=a(67294),l=a(25675),i=a.n(l),s=a(51649),r=a(89583),c=a(85893);t.Z=function(e){var t=e.data,a=e.onClose,l=e.isOpen,o=(0,n.useState)(0),d=(o[0],o[1]),u="https://www.yamaha-motor.com.ph/news";(0,n.useEffect)((function(){var e=function(e){"Escape"===e.key&&a()},t=function(){d(window.scrollY)};return window.addEventListener("keydown",e),window.addEventListener("scroll",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("scroll",t)}}),[a]);var h,m=function(e){for(var t=[],a=[],n=0;n<e.length;n++){var l=e[n];"images"===l.type?a.push(l):(a.length&&(t.push(a),a=[]),t.push([l]))}return a.length&&t.push(a),t}(t.articleContents),x=function(e){window.open(e,"_blank","width=600,height=400")},f=function(){var e="https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(u));x(e)},p=function(){var e="fb-messenger://share?link=".concat(encodeURIComponent(u));x(e)},g=function(){var e="https://t.me/share/url?url=".concat(encodeURIComponent(u));x(e)},v=function(){x(u)};return(0,c.jsxs)("div",{className:"fixed bottom-0 right-0 w-full h-screen bg-[#F4FDFF] text-black px-12 transform transition-transform duration-300 ease-in-out z-50 ".concat(l?"translate-x-0 max-w-[1260px] mx-auto":"translate-x-full"),children:[(0,c.jsx)("div",{className:"w-full fixed bottom-12 right-2 px-12 flex justify-end items-center mt-5",children:(0,c.jsx)("button",{onClick:a,className:"text-white text-4xl rounded-full p-4 bg-yamaha-blue-light",children:(0,c.jsx)(s.QAE,{})})}),(0,c.jsxs)("div",{className:"flex flex-col lg:flex-row h-screen gap-12 overflow-y-auto hide-scrollbar",children:[(0,c.jsxs)("div",{className:"lg:w-1/3 lg:flex lg:flex-col sticky justify-center top-0 transition-transform duration-300 ease-in-out",children:[(0,c.jsx)("div",{className:"w-full h-72",children:(0,c.jsx)("img",{decoding:"async",src:t.Image,className:"h-full w-full object-cover",alt:""})}),(0,c.jsxs)("div",{className:"mt-4 mb-4 flex justify-between w-full",children:[(0,c.jsx)("div",{className:"flex ",children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:(0,c.jsx)("span",{className:"uppercase text-lg font-open",children:"Share on"})}),(0,c.jsxs)("div",{className:"flex gap-6 text-3xl mt-2",children:[(0,c.jsx)("button",{onClick:f,"aria-label":"Share on Facebook",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.Am9,{})}),(0,c.jsx)("button",{onClick:p,"aria-label":"Share on Messenger",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.sAh,{})}),(0,c.jsx)("button",{onClick:v,"aria-label":"Share on TikTok",className:"hover:text-black",children:(0,c.jsx)(r.nTm,{})}),(0,c.jsx)("button",{onClick:g,"aria-label":"Share on Telegram",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.Ww5,{})})]})]})}),(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-xl text-black uppercase",children:(h=t.date,new Date(h).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}).replace(",",","))}),(0,c.jsx)("p",{className:"text-2xl text-black",children:t.location})]})]})]}),(0,c.jsxs)("div",{className:"max-w-5xl lg:pl-8 mt-8 lg:mt-0 py-6",children:[(0,c.jsx)("h1",{className:"text-7xl text-black font-open",children:t.title}),(0,c.jsx)("div",{className:"max-w-3xl mt-20",children:m.map((function(e,t){if("images"===e[0].type){if(e.length>1)return(0,c.jsx)("div",{className:"grid grid-cols-2 gap-4 mb-8",children:e.map((function(e){return e.value.map((function(t,a){return(0,c.jsx)("img",{decoding:"async",src:t,alt:"",className:"object-cover"},"".concat(e.order,"-").concat(a))}))}))},"group-".concat(t));var a=e[0];return(0,c.jsx)("div",{className:"grid mt-12 grid-cols-1 gap-4 mb-4",children:a.value.map((function(e,t){return(0,c.jsx)(i(),{decoding:"async",src:e,alt:"",width:300,height:300,className:"object-cover"},"".concat(a.order,"-").concat(t))}))},"group-".concat(t))}return e.map((function(e){return(0,c.jsx)("p",{className:"mb-12 mt-12 font-open text-3xl text-black",children:e.value},e.order)}))}))}),(0,c.jsx)("div",{className:"flex py-24",children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:(0,c.jsx)("span",{className:"uppercase text-lg font-open",children:"Share on"})}),(0,c.jsxs)("div",{className:"flex gap-6 text-3xl mt-2",children:[(0,c.jsx)("button",{onClick:f,"aria-label":"Share on Facebook",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.Am9,{})}),(0,c.jsx)("button",{onClick:p,"aria-label":"Share on Messenger",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.sAh,{})}),(0,c.jsx)("button",{onClick:v,"aria-label":"Share on TikTok",className:"hover:text-black",children:(0,c.jsx)(r.nTm,{})}),(0,c.jsx)("button",{onClick:g,"aria-label":"Share on Telegram",className:"hover:text-yamaha-blue-light",children:(0,c.jsx)(r.Ww5,{})})]})]})})]})]})]})}},41400:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return X}});var n=a(180),l=a(59499),i=a(50029),s=a(87794),r=a.n(s),c=a(1835),o=a(11163),d=a(35778),u=a(60155),h=a(67294),m=a(85893),x=function(e){var t,a=e.heroSection,n=(0,o.useRouter)(),l=c.Z.AWS_S3.endsWith("/")?c.Z.AWS_S3.slice(0,-1):c.Z.AWS_S3,i="".concat(l,"/").concat(a.backgroundVideo),s=(0,h.useState)("z-40"),r=s[0],x=s[1];(0,h.useEffect)((function(){var e=function(){var e=window.scrollY;x(e>50?"z-30":"z-40")};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]);var f=function(e){var t;return(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())||""}(a.backgroundVideo),p="mp4"===f||"webm"===f||"ogg"===f,g="jpg"===f||"jpeg"===f||"png"===f||"webp"===f;return(0,m.jsxs)("div",{className:"relative xl:block lg:block md:block hidden",children:[(0,m.jsx)("div",{className:"w-full h-72 bg-gradient-to-t from-black absolute bottom-0 z-10"}),p&&(0,m.jsxs)("video",{width:"100%",height:"50%",preload:"none",className:"object-cover w-full",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,children:[(0,m.jsx)("source",{src:i,type:"video/".concat(f)}),(0,m.jsx)("track",{src:"",kind:"subtitles",srcLang:"en",label:"English"}),"Your browser does not support the video tag."]}),g&&(0,m.jsx)("img",{decoding:"async",src:i,alt:"Hero Background",className:"object-cover h-full w-full",loading:"lazy"}),!p&&!g&&(0,m.jsx)("div",{className:"bg-black h-full w-full flex items-center justify-center text-white",children:"Background media not supported"}),(0,m.jsx)("div",{className:"absolute inset-0 flex items-center justify-center w-full",children:(0,m.jsxs)("div",{className:"text-center ".concat(r),children:[(0,m.jsx)("h1",{className:"text-white text-6xl md:text-6xl lg:text-7xl xl:text-[7rem] uppercase max-w-7xl p-4 font-open font-bold text-shadow-lg/30 text-shadow-black",children:a.headerCopy}),(0,m.jsxs)("div",{className:"flex w-full justify-center gap-4 -mt-8",children:[(0,m.jsx)("div",{className:"w-[26rem] font-proxima flex justify-center",children:(0,m.jsx)(d.Z,{onClick:function(){return function(e){var t=e.productPageURL.split("/"),a=t[1],l=t[2],i=t[3];null!==e&&void 0!==e&&e.isOther?window.open(null===e||void 0===e?void 0:e.productPageURL,"_blank"):n.push({pathname:"/motorcycles/".concat(a,"/").concat(l,"/").concat(i)})}(a)},children:a.headerButtonCopy})}),(null===(t=a.productStory)||void 0===t?void 0:t.productStoryURL)&&(0,m.jsx)("div",{className:"w-[24rem] flex justify-center",children:(0,m.jsx)("button",{onClick:function(){return e=a.productStory.productStoryURL,void n.push({pathname:"/product-story-overview/".concat(e)});var e},className:"font-open w-full tracking-widest uppercase bg-transparent backdrop-blur-3xl text-white text-md px-10 py-3 rounded-lg bg-yamaha-blue-light hover:bg-yamaha-blue ease-in-out duration-400 transition-all p-2",children:"uncover story"})})]})]})}),(0,m.jsx)("div",{className:"flex flex-col justify-center w-full items-center absolute bottom-0 z-30",children:(0,m.jsx)("div",{className:"text-center xl:flex lg:flex hidden justify-center w-full overflow-hidden xl:-mt-6 lg:-mt-6 -mt-24",children:(0,m.jsx)("div",{className:"h-[80px] relative",children:(0,m.jsxs)("div",{className:"relative h-full w-12 overflow-hidden mx-auto",children:[(0,m.jsx)(u.AZg,{className:"text-[#004FE0] absolute top-0 left-1/2 -translate-x-1/2 animate-move-up-passthrough",size:20}),(0,m.jsxs)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20",children:[(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/mouse-icon.png"),className:"object-contain w-20 h-20",alt:"Computer mouse icon"}),(0,m.jsx)("div",{className:"w-1 h-1 rounded-full bg-white absolute top-8 left-2.5 animate-bullet-up-passthrough"})]}),(0,m.jsx)(u.CgR,{className:"text-[#004FE0] absolute bottom-0 left-1/2 -translate-x-1/2 animate-move-down-passthrough",size:20})]})})})})]})},f=a(17674),p=a(25675),g=a.n(p),v=new Set(["mp4","webm","ogg"]),j=new Set(["jpg","jpeg","png","webp"]),b=function(e){var t,a,n=e.heroSection,l=(0,o.useRouter)();if(null===n||void 0===n||!n.backgroundVideoMobile)return null;var i=c.Z.AWS_S3.replace(/\/$/,""),s="".concat(i,"/").concat(n.backgroundVideoMobile),r=(null===(t=n.backgroundVideoMobile.split(".").pop())||void 0===t?void 0:t.toLowerCase())||"",d=v.has(r),u=j.has(r);return(0,m.jsxs)("div",{className:"relative w-full h-screen md:hidden",children:[(0,m.jsx)("div",{className:"w-full h-72 bg-gradient-to-t from-black absolute bottom-0 z-10"}),d?(0,m.jsxs)("video",{className:"object-cover h-full w-full",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"none",children:[(0,m.jsx)("source",{src:s,type:"video/".concat(r)}),"Your browser does not support the video tag."]}):u?(0,m.jsx)(g(),{decoding:"async",src:s,alt:"Hero Background",layout:"fill",className:"object-cover",priority:!0,quality:85}):null,(0,m.jsx)("div",{className:"absolute bottom-10 z-20 flex items-center justify-center w-full px-[2rem]",children:(0,m.jsxs)("div",{className:"text-center w-full",children:[(0,m.jsx)("h1",{className:"text-white text-6xl md:text-6xl lg:text-8xl xl:text-[8rem] uppercase p-4 font-open font-bold",children:n.headerCopy}),(0,m.jsxs)("div",{className:"flex w-full justify-center gap-4",children:[(0,m.jsx)("div",{className:"w-full flex justify-center",children:(0,m.jsxs)("div",{onClick:function(){return function(e){var t=e.productPageURL.split("/"),a=(0,f.Z)(t,4),n=a[1],i=a[2],s=a[3];null!==e&&void 0!==e&&e.isOther?window.open(null===e||void 0===e?void 0:e.productPageURL,"_blank"):l.push("/motorcycles/".concat(n,"/").concat(i,"/").concat(s))}(n)},className:" w-full flex items-center justify-center gap-4 text-white uppercase shadow-xl tracking-button shadow-black/30 text-button px-[1.75rem] py-[2rem] rounded-xl bg-yamaha-blue-light hover:bg-yamaha-blue ease-in-out duration-400 transition-all",children:[(0,m.jsx)("span",{className:"text-3xl font-proxima",children:n.headerButtonCopy}),(0,m.jsx)("span",{children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/Icon.png"),alt:"Hero Backgroun
1d",className:"object-contain h-6 w-6"})})]})}),(null===(a=n.productStory)||void 0===a?void 0:a.productStoryURL)&&(0,m.jsx)("div",{className:"w-[280px] flex justify-center",children:(0,m.jsx)("button",{onClick:function(){return e=n.productStory.productStoryURL,void l.push("/product-story-overview/".concat(e));var e},className:"w-full font-proxima tracking-widest uppercase bg-transparent backdrop-blur-3xl text-white text-md px-10 py-4 rounded-lg bg-yamaha-blue-light hover:bg-yamaha-blue ease-in-out duration-400 transition-all p-2",children:"uncover story"})})]})]})})]})},w=a(30719),y=a(23850),N=a(41664),k=a.n(N),S=a(74123),C=function(e){var t,a,n=e.newsData,l=(e.onReadNowClick,(0,h.useState)(0)),i=(l[0],l[1]),s=(0,h.useRef)(null),r=(0,h.useState)(0),d=r[0],u=r[1],x=n.slice(0,3),f=((null===(t=n[d])||void 0===t?void 0:t.banner)||(null===(a=n[0])||void 0===a||a.banner),(0,o.useRouter)());return(0,m.jsxs)("div",{className:"relative h-auto w-full xl:block lg:block hidden bg-yamaha-blue-dark",children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:flex lg:flex md:flex hidden",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/news_background_homepage.webp"),alt:"Hero Background",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsx)("div",{className:"w-full h-96 bg-gradient-to-b from-black absolute top-0 -z-10"}),(0,m.jsx)("div",{className:"px-container py-16 justify-center items-center flex h-auto",children:(0,m.jsxs)("div",{className:"w-full h-full",children:[(0,m.jsxs)("div",{className:"relative h-full w-full justify-center items-center py-12 z-20 bg-white",children:[(0,m.jsx)("div",{className:"z-10 w-full flex justify-center",children:(0,m.jsx)("span",{className:"text-title font-extrabold text-yamaha-blue font-archivo tracking-wide",children:"YAMAHA'S LATEST"})}),(0,m.jsx)("div",{className:"w-full justify-center flex",children:(0,m.jsx)("div",{className:"w-[90rem] h-1 bg-black bg-opacity-20 mt-2 mb-10"})}),(0,m.jsxs)("div",{className:"relative h-full w-full z-10 ",children:[(0,m.jsx)(w.tq,{style:{maxWidth:"90rem",margin:"0 auto"},modules:[y.W_],loop:!0,spaceBetween:30,slidesPerView:1,navigation:{prevEl:".swiper-button-prev-custom",nextEl:".swiper-button-next-custom"},onSlideChange:function(e){i(e.activeIndex),u(e.realIndex)},onSwiper:function(e){s.current=e},initialSlide:0,children:x.map((function(e,t){var a,n,l;return(0,m.jsx)(w.o5,{className:"",children:(0,m.jsx)("div",{className:"text-yamaha-blue rounded-lg h-full flex flex-col transition-transform duration-300",children:(0,m.jsx)("div",{className:"h-full ",children:(0,m.jsxs)("div",{className:"flex h-full gap-20",children:[(0,m.jsxs)("div",{className:"grid w-full justify-between ",children:[(0,m.jsx)("h3",{className:"text-[3rem] tracking-wide font-extrabold font-archivo leading-[3rem] uppercase text-black ",children:e.title}),(0,m.jsx)("p",{className:"text-black text-xl mb-2 tracking-wide uppercase text-opacity-40 font-proxima",children:(l=e.datePublished,new Date(l).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}).replace(",",","))}),(0,m.jsx)("p",{className:"text-[1.75rem] leading-[2rem] tracking-wide font-medium text-black font-proxima",children:(null!==(a=e.description)&&void 0!==a?a:"").length>100?"".concat(e.description.substring(0,100),"..."):null!==(n=e.description)&&void 0!==n?n:""}),(0,m.jsxs)("div",{onClick:function(){return t=e.slug,void f.push({pathname:"/news/news-overview/".concat(t)});var t},className:"flex items-center font-open cursor-pointer gap-4 z-20",children:[(0,m.jsx)("button",{className:"text-lg font-bold font-proxima uppercase tracking-wide text-yamaha-blue-light",children:"Read article now"}),(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/button-icon.png"),alt:"Hero Background",className:"object-contain h-3 w-3"})]})]}),(0,m.jsx)("div",{className:"relative h-[28.5rem] w-full",children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.banner),alt:e.title,layout:"fill",objectFit:"contain",className:"w-full h-full"})})]})})})},e.id)}))}),(0,m.jsx)("div",{className:"mt-10",children:(0,m.jsx)(S.Z,{totalItems:x.length,itemsPerPage:1,currentPage:d+1,onPageChange:function(e){return t=e-1,void(s.current&&s.current.slideToLoop(t));var t},pageWindowSize:3})})]})]}),(0,m.jsx)("div",{className:"w-full flex items-center justify-center mt-12 ",children:(0,m.jsx)(k(),{href:"/news",children:(0,m.jsx)("button",{className:"font-proxima text-white uppercase shadow-xl tracking-button shadow-black/30 text-button px-buttonx py-buttony rounded-lg bg-yamaha-blue-light hover:bg-yamaha-blue ease-in-out duration-400 transition-all",children:"view all news & events"})})})]})})]})},E=function(e){var t,a,n=e.newsData,l=(e.onReadNowClick,(0,h.useState)(0)),i=(l[0],l[1]),s=(0,h.useRef)(null),r=(0,h.useState)(0),d=r[0],u=r[1],x=(0,h.useState)(!1),f=x[0],p=x[1];(0,h.useEffect)((function(){var e=function(){p(window.matchMedia("(orientation: landscape)").matches)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var v=n.slice(0,3),j=((null===(t=n[d])||void 0===t?void 0:t.banner)||(null===(a=n[0])||void 0===a||a.banner),(0,o.useRouter)());return(0,m.jsx)("div",{className:"relative h-auto ".concat(f?"h-auto":""," w-full xl:hidden lg:hidden block bg-white"),children:(0,m.jsxs)("div",{className:"".concat(f?"":"h-full"," relative w-full flex justify-center items-center"),children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:hidden lg:hidden md:hidden flex",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/news_background_homepage_mobile.webp"),alt:"Hero Backgroun
1d",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsxs)("div",{className:"w-full z-20 py-12",children:[(0,m.jsx)("div",{className:"z-20 w-full justify-center flex px-[2rem]",children:(0,m.jsx)("span",{className:"text-[4.5rem] font-extrabold text-white font-archivo",children:"YAMAHA'S LATEST"})}),(0,m.jsxs)("div",{className:"relative w-full h-full mx-auto z-10",children:[(0,m.jsx)(w.tq,{loop:!0,spaceBetween:30,slidesPerView:1,onSlideChange:function(e){i(e.activeIndex),u(e.realIndex)},onSwiper:function(e){s.current=e},initialSlide:0,children:v.map((function(e,t){return(0,m.jsx)(w.o5,{className:"",children:(0,m.jsx)("div",{className:"text-yamaha-blue rounded-lg h-full flex flex-col transition-transform duration-300 relative",children:(0,m.jsx)("div",{className:"h-full uppercase",children:(0,m.jsxs)("div",{className:"h-full gap-8",children:[(0,m.jsx)("div",{className:"justify-between",children:(0,m.jsx)("div",{className:"relative h-[200px] rounded-md w-full",children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.banner),alt:e.title,layout:"fill",objectFit:"cover",className:"",priority:!0})})}),(0,m.jsxs)("div",{className:"px-[2rem] mt-[3rem]",children:[(0,m.jsx)("span",{className:"text-6xl font-extrabold line-clamp-2 text-white font-archivo",children:e.title}),(0,m.jsx)("p",{className:"text-white text-3xl mb-2 uppercase mt-8 font-proxima",children:(a=e.datePublished,new Date(a).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}).replace(",",","))}),(0,m.jsx)("p",{className:"text-4xl font-medium text-white font-proxima mt-8",children:e.description.length>100?"".concat(e.description.substring(0,100)," ..."):e.description.description}),(0,m.jsxs)("div",{onClick:function(){return t=e.slug,void j.push({pathname:"/news/news-overview/".concat(t)});var t},className:"flex items-center mt-12 gap-4",children:[(0,m.jsx)("button",{className:"text-4xl uppercase tracking-widest font-bold font-proxima text-white",children:"Read article now"}),(0,m.jsx)("span",{children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/button-icon.png"),alt:"Hero Background",className:"object-contain h-6 w-6"})})]})]})]})})})},e.id);var a}))}),(0,m.jsx)("div",{className:"flex justify-center mt-8 mb-8 gap-3",children:v.map((function(e,t){return(0,m.jsx)("button",{onClick:function(){return function(e){s.current&&s.current.slideToLoop(e)}(t)},className:"rounded-full transition-all duration-200 ".concat(t===d?"bg-transparent w-6 h-6 border-white border-2":"bg-white bg-opacity-40 w-4 h-4 mt-1"),"aria-label":"Go to slide ".concat(t+1)},t)}))})]}),(0,m.jsx)("div",{className:"w-full flex items-center justify-center px-[2rem] ",children:(0,m.jsx)(k(),{href:"/news",children:(0,m.jsxs)("div",{className:"font-proxima w-full flex items-center justify-center gap-4 text-white uppercase shadow-lg tracking-button shadow-black/30 text-button px-[1.75rem] py-[2rem] rounded-xl bg-yamaha-blue-light hover:bg-yamaha-blue ease-in-out duration-400 transition-all",children:[(0,m.jsx)("span",{className:"text-3xl",children:" view all news & events"}),(0,m.jsx)("span",{children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/Icon.png"),alt:"Hero Background",className:"object-contain h-6 w-6"})})]})})})]})]})})},A=a(84441),_=a(53255);function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?O(Object(a),!0).forEach((function(t){(0,l.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Z=function(e){var t=e.personalCommuter,a=e.sportMachines,n=(0,h.useState)({}),i=n[0],s=n[1],r=(0,h.useState)({}),d=r[0],u=r[1],x=((0,h.useRef)(null),(0,h.useState)(!1)),p=(x[0],x[1],(0,h.useState)(0)),v=(p[0],p[1],(0,h.useState)(0)),j=(v[0],v[1],(0,h.useState)(0)),b=(j[0],j[1],(0,h.useState)(0)),w=(b[0],b[1],function(){var e=(0,h.useRef)(null),t=(0,h.useState)(!1),a=t[0],n=t[1];return(0,h.useEffect)((function(){if(e.current){var t=new IntersectionObserver((function(e){(0,f.Z)(e,1)[0].isIntersecting&&(n(!0),t.disconnect())}),{threshold:.2});return t.observe(e.current),function(){return t.disconnect()}}}),[]),{ref:e,visible:a}}()),y=w.ref,N=w.visible,k=function(e){s((function(t){return P(P({},t),{},(0,l.Z)({},e,!t[e]))}))},S=function(e,t,a){u((function(n){return P(P({},n),{},(0,l.Z)({},e,P(P({},n[e]),{},(0,l.Z)({},t,a))))}))},C=Object.values(t),E=Object.values(a),O=(0,o.useRouter)(),Z=function(e){var t=e.url.split("/"),a=t[1],n=t[2],l=t[3];O.push({pathname:"/motorcycles/".concat(a,"/").concat(n,"/").concat(l)})};return(0,m.jsxs)("div",{className:"relative w-full h-full xl:px-0 lg:px-0 xl:block lg:block hidden bg-white",children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:flex lg:flex md:flex hidden",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/product_background_homepage.webp"),alt:"Hero Backgroun
1d",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsx)("div",{className:"relative h-full w-full justify-center items-center px-container py-28",children:(0,m.jsxs)("div",{className:"w-full",children:[(0,m.jsxs)("div",{className:"",children:[(0,m.jsx)("span",{className:"text-4xl font-proxima uppercase text-yamaha-blue tracking-wide",children:"in the spotlight"}),(0,m.jsxs)("div",{className:"xl:flex lg:flex justify-between -mt-6 relative",children:[(0,m.jsx)("span",{className:"text-title tracking-wide uppercase font-extrabold text-yamaha-blue font-archivo",children:"Daily Versatility"}),C.length>3&&(0,m.jsx)("div",{className:"mt-10 xl:block lg:block hidden absolute bottom-4 right-0",children:(0,m.jsxs)("button",{onClick:function(){return k(1)},className:"flex items-center font-proxima tracking-wide text-yamaha-blue-light text-xl px-4 py-2 rounded transition ease-in-out duration-300 gap-4 uppercase",children:[i[1]?"Show Less":"See More",(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-down.png"),alt:"Hero Background",className:"transition-transform duration-300 h-4 w-4 object-contain ".concat(i[1]?"transform rotate-180":"")})]})})]}),(0,m.jsx)(A.M,{children:(0,m.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12 mt-4",children:C.slice(0,i[1]?C.length:3).map((function(e,t){var a,n,l,i;return(0,m.jsx)(_.E.div,{ref:y,initial:{opacity:0,y:40},animate:N?{opacity:1,y:0}:{},transition:{duration:.6,ease:"easeOut"},className:"rounded-2xl shadow-lg overflow-hidden relative w-full shadow-black/30",onMouseEnter:function(){return S(1,e.id,!0)},onMouseLeave:function(){return S(1,e.id,!1)},children:(0,m.jsxs)("div",{className:"relative h-[24rem] w-full",children:[(0,m.jsxs)("div",{className:"relative h-full w-full overflow-hidden",onClick:function(){return Z(e)},children:[(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.backgroundImage),alt:e.name,layout:"fill",objectFit:"cover",className:"transition-all duration-300 ".concat(null!==(a=d[1])&&void 0!==a&&a[e.id]?" blur-2xl":" blur-none")}),(0,m.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black/80 to-transparent transition-opacity duration-300 ".concat(null!==(n=d[1])&&void 0!==n&&n[e.id]?"opacity-0":"opacity-100"),children:(0,m.jsx)("h4",{className:"text-5xl text-start ml-6 tracking-wide uppercase font-extrabold font-archivo text-white",children:e.name})})]}),(0,m.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center transition-opacity duration-300 cursor-pointer ".concat(null!==(l=d[1])&&void 0!==l&&l[e.id]?"opacity-100":"opacity-0"),onClick:function(){return Z(e)},children:[(0,m.jsx)(_.E.div,{className:"absolute top-6 right-6 p-5 bg-white rounded-full bg-opacity-50",initial:{scale:.8,transformOrigin:"0% 100%"},animate:{scale:null!==(i=d[1])&&void 0!==i&&i[e.id]?1:.1},transition:{type:"keyframes",times:[0,.5,1],values:["0%","50%","100%"],duration:.4},children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-up.png"),alt:"Arrow up",className:"w-7 h-7"})}),(0,m.jsx)("div",{className:"relative w-3/4 h-3/4 ",children:(0,m.jsx)("div",{className:"flex justify-center items-center w-full h-56",children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.motorcycleImage),alt:e.name,width:208,he
1ight:192,layout:"fill",objectFit:"contain"})})})]})]})},t)}))})})]}),(0,m.jsxs)("div",{className:"mt-44",children:[(0,m.jsx)("span",{className:"text-4xl uppercase text-white tracking-wide font-proxima",children:"What's trending"}),(0,m.jsxs)("div",{className:"xl:flex lg:flex justify-between -mt-6 relative",children:[(0,m.jsx)("span",{className:"text-title tracking-wide uppercase font-extrabold text-white font-archivo",children:"Power of Performance"}),E.length>3&&(0,m.jsx)("div",{className:"mt-8 xl:block lg:block hidden",children:(0,m.jsxs)("button",{onClick:function(){return k(2)},className:"flex items-center font-proxima text-yamaha-blue-light tracking-wide text-xl px-4 py-2 rounded transition ease-in-out duration-300 gap-4 uppercase",children:[i[2]?"Show Less":"See More",(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-down.png"),alt:"Hero Background",className:"transition-transform duration-300 h-4 w-4 object-contain ".concat(i[2]?"transform rotate-180":"")})]})})]}),(0,m.jsx)(A.M,{children:(0,m.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12 mt-4 ",children:E.slice(0,i[2]?E.length:3).map((function(e){var t,a,n,l;return(0,m.jsx)(_.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:"rounded-2xl shadow-lg overflow-hidden relative w-full shadow-black/30",onMouseEnter:function(){return S(2,e.id,!0)},onMouseLeave:function(){return S(2,e.id,!1)},children:(0,m.jsxs)("div",{className:"relative h-[24rem] w-full",children:[(0,m.jsxs)("div",{className:"relative h-full w-full overflow-hidden cursor-pointer",onClick:function(){return Z(e)},children:[(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.backgroundImage),alt:e.name,layout:"fill",objectFit:"cover",className:"transition-all duration-300 ".concat(null!==(t=d[2])&&void 0!==t&&t[e.id]?" blur-2xl":" blur-none")}),(0,m.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black/80 to-transparent transition-opacity duration-300 ".concat(null!==(a=d[2])&&void 0!==a&&a[e.id]?"opacity-0":"opacity-100"),children:(0,m.jsx)("h4",{className:"text-5xl tracking-wide font-archivo text-start uppercase font-extrabold text-white",children:e.name})})]}),(0,m.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center transition-opacity duration-300 cursor-pointer ".concat(null!==(n=d[2])&&void 0!==n&&n[e.id]?"opacity-100":"opacity-0"),onClick:function(){return Z(e)},children:[(0,m.jsx)(_.E.div,{className:"absolute top-6 right-6 p-5 bg-white rounded-full bg-opacity-50",initial:{scale:.8,transformOrigin:"0% 100%"},animate:{scale:null!==(l=d[2])&&void 0!==l&&l[e.id]?1:.1},transition:{type:"keyframes",times:[0,.5,1],values:["0%","50%","100%"],duration:.4},children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-up.png"),alt:"Arrow up",className:"w-7 h-7"})}),(0,m.jsx)("div",{className:"relative w-3/4 h-3/4 ",children:(0,m.jsx)("div",{className:"flex justify-center items-center w-full h-56",children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.motorcycleImage),alt:e.name,width:208,he
1ight:192,layout:"fill",objectFit:"contain"})})})]})]})},e.id)}))})})]})]})})]})};var W=function(e){var t=e.personalCommuter,a=e.sportMachines,n=(0,h.useState)({}),l=n[0],i=(n[1],(0,h.useState)({})),s=i[0],r=(i[1],Object.values(t)),d=Object.values(a),u=(0,o.useRouter)(),x=function(e){var t=e.url.split("/"),a=t[1],n=t[2],l=t[3];u.push({pathname:"/motorcycles/".concat(a,"/").concat(n,"/").concat(l)})};return(0,m.jsxs)("div",{className:"relative w-full h-full px-[2rem] py-20 xl:px-0 lg:px-0 xl:hidden lg:hidden block z-20 bg-white",children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:hidden lg:hidden md:hidden flex",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/product_background_homepage_mobile.webp"),alt:"Hero Background",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsx)("div",{className:"relative h-full w-full justify-center items-center ",children:(0,m.jsxs)("div",{className:"w-full",children:[(0,m.jsxs)("div",{className:"",children:[(0,m.jsx)("div",{className:"xl:flex lg:flex justify-between",children:(0,m.jsx)("span",{className:"text-8xl uppercase font-extrabold text-yamaha-blue font-archivo",children:"Daily Versatility"})}),(0,m.jsx)(A.M,{children:(0,m.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-6",children:r.slice(0,l[1]?r.length:3).map((function(e){var t,a;return(0,m.jsx)(_.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:"rounded-2xl shadow-lg overflow-hidden relative w-full shadow-black/30",children:(0,m.jsxs)("div",{className:"relative h-[30rem] w-full",children:[(0,m.jsx)("div",{className:"relative h-full w-full overflow-hidden cursor-pointer",onClick:function(){return x(e)},children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.backgroundImage),alt:e.name,layout:"fill",objectFit:"cover",className:"transition-all duration-300 ".concat(null!==(t=s[1])&&void 0!==t&&t[e.id]?" blur-2xl":" blur-none")})}),(0,m.jsxs)("div",{className:"opacity-100 absolute inset-0 flex items-center justify-center transition-opacity duration-300 cursor-pointer ",onClick:function(){return x(e)},children:[(0,m.jsx)("div",{className:"absolute top-6 right-6 p-8 bg-white rounded-full bg-opacity-50",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-up.png"),alt:"Arrow up",className:"w-10 h-10"})}),(0,m.jsx)("div",{className:"absolute w-full justify-center flex bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black to-transparent transition-opacity duration-300 ".concat(null!==(a=s[1])&&void 0!==a&&a[e.id]?"opacity-0":"opacity-100"),children:(0,m.jsx)("span",{className:"text-6xl text-start uppercase font-extrabold font-archivo text-white py-2",children:e.name})})]})]})},e.id)}))})})]}),(0,m.jsxs)("div",{className:"mt-20",children:[(0,m.jsx)("div",{className:"xl:flex lg:flex justify-between",children:(0,m.jsx)("span",{className:"text-[5.5rem] leading-[5.5rem] uppercase font-extrabold text-yamaha-blue font-archivo",children:"Power of Performance"})}),(0,m.jsx)(A.M,{children:(0,m.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-6",children:d.slice(0,l[2]?d.length:3).map((function(e){var t,a;return(0,m.jsx)(_.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:"rounded-2xl shadow-lg overflow-hidden relative w-full shadow-black/30",children:(0,m.jsxs)("div",{className:"relative h-[30rem] w-full",children:[(0,m.jsx)("div",{className:"relative h-full w-full overflow-hidden cursor-pointer",onClick:function(){return x(e)},children:(0,m.jsx)(g(),{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.backgroundImage),alt:e.name,layout:"fill",objectFit:"cover",className:"transition-all duration-300 ".concat(null!==(t=s[2])&&void 0!==t&&t[e.id]?" blur-2xl":" blur-none")})}),(0,m.jsxs)("div",{className:"opacity-100 absolute inset-0 flex items-center justify-center transition-opacity duration-300 cursor-pointer",onClick:function(){return x(e)},children:[(0,m.jsx)("div",{className:"absolute top-6 right-6 p-8 bg-white rounded-full bg-opacity-50",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/arrow-up.png"),alt:"Arrow up",className:"w-10 h-10"})}),(0,m.jsx)("div",{className:"absolute w-full justify-center flex bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black to-transparent transition-opacity duration-300 ".concat(null!==(a=s[2])&&void 0!==a&&a[e.id]?"opacity-0":"opacity-100"),children:(0,m.jsx)("span",{className:"text-6xl text-start uppercase font-extrabold text-white py-2 font-archivo",children:e.name})})]})]})},e.id)}))})})]})]})})]})},R=function(e){var t=e.platforms;return(0,m.jsxs)("div",{className:"relative w-full h-full xl:block lg:block hidden bg-yamaha-blue-dark",children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:flex lg:flex md:flex hidden",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/gradient_background_homepage.webp"),alt:"Hero Backgroun
1d",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsx)("div",{className:"relative h-full w-full flex justify-center items-center px-container py-container",children:(0,m.jsxs)("div",{className:"w-full mb-12",children:[(0,m.jsx)("div",{className:"flex justify-center text-start items-center h-full",children:(0,m.jsx)("div",{className:"z-10 uppercase",children:(0,m.jsx)("p",{className:"text-title tracking-wide font-extrabold text-white font-archivo",children:"Ride with us EVERYWHERE"})})}),(0,m.jsx)("div",{className:"grid xl:grid-cols-3 lg:grid-cols-2 gap-[5rem] w-full ",children:t.map((function(e){return(0,m.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer",children:(0,m.jsxs)("div",{className:"flex items-center gap-[1rem] w-full hover:bg-yamaha-blue-light transition ease-in-out duration-200 p-6",children:[(0,m.jsx)("div",{className:"shadow-xl shadow-black/30 w-full",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.image),className:"w-full h-[12.5rem] object-cover",alt:e.title})}),(0,m.jsxs)("div",{className:"uppercase w-full justify-between grid items-center h-full",children:[(0,m.jsx)("div",{className:"w-36",children:(0,m.jsx)("p",{className:"text-4xl tracking-wide font-archivo font-extrabold text-white",children:e.title})}),(0,m.jsxs)("div",{className:"w-full items-center flex gap-2 font-open cursor-pointer",children:[(0,m.jsx)("span",{className:"tracking-wide font-proxima text-lg text-white",children:"Discover now"}),(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/Icon.png"),alt:"Arrow up",className:"w-3.5 h-3"})]})]})]})},e.id)}))})]})})]})},L=function(e){var t=e.platforms;return(0,m.jsxs)("div",{className:"relative w-full h-full xl:hidden lg:hidden block bg-yamaha-blue-dark ",children:[(0,m.jsx)("div",{className:"absolute inset-0 xl:flex lg:flex md:flex hidden",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/VIS/gradient_background_homepage_mobile.webp"),alt:"Hero Background",className:"object-cover h-full w-full",loading:"lazy"})}),(0,m.jsx)("div",{className:"relative w-full flex justify-center items-center py-20 px-[2rem]",children:(0,m.jsxs)("div",{className:"w-full",children:[(0,m.jsx)("div",{className:"flex items-center h-full",children:(0,m.jsx)("div",{className:"z-10 uppercase",children:(0,m.jsx)("span",{className:"text-8xl font-extrabold text-white font-archivo",children:"Ride with us EVERYWHERE"})})}),(0,m.jsx)("div",{className:"mt-12 flex flex-wrap gap-12 w-full justify-center",children:t.map((function(e){return(0,m.jsxs)("div",{className:"flex items-center gap-[2rem] w-full bg-yamaha-blue transition ease-in-out duration-200 p-8 rounded-xl",children:[(0,m.jsx)("div",{className:"shadow-xl shadow-black/30 w-full",children:(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/").concat(e.image),className:"w-full h-[20rem] object-cover",alt:e.title})}),(0,m.jsxs)("div",{className:"uppercase w-full justify-between grid items-center h-full",children:[(0,m.jsx)("div",{className:"w-full",children:(0,m.jsx)("p",{className:"text-5xl font-extrabold text-white font-archivo",children:e.title})}),(0,m.jsx)(k(),{href:e.link,children:(0,m.jsxs)("div",{className:"w-full items-center flex gap-4 font-open cursor-pointer",children:[(0,m.jsx)("span",{className:"tracking-title text-xl text-white font-proxima",children:"Discover now"}),(0,m.jsx)("img",{decoding:"async",src:"".concat(c.Z.AWS_S3,"/production/other-images/Icon.png"),alt:"Arrow up",className:"w-5.5 h-5"})]})})]})]},e.id)}))})]})})]})},z=a(21182),I=a(88767),M=a(86369),D=a(51649),F=a(89583),T=function(e){var t=e.data,a=e.onClose,n=e.isOpen,l=(0,h.useState)(0),i=(l[0],l[1]);(0,h.useEffect)((function(){var e=function(e){"Escape"===e.key&&a()},t=function(){i(window.scrollY)};return window.addEventListener("keydown",e),window.addEventListener("scroll",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("scroll",t)}}),[a]);var s,r="https://www.yamaha-motor.com.ph/news",c=function(e){window.open(e,"_blank","width=600,height=400")},o=function(){var e="https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(r));c(e)},d=function(){var e="fb-messenger://share?link=".concat(encodeURIComponent(r));c(e)},u=function(){var e="https://t.me/share/url?url=".concat(encodeURIComponent(r));c(e)},x=function(){c(r)};return(0,m.jsxs)("div",{className:"fixed bottom-0 right-0 w-full h-screen bg-[#F4FDFF] text-black px-12 transform transition-transform duration-300 ease-in-out z-50 ".concat(n?"translate-y-0 w-full mx-auto":"translate-y-full"),children:[(0,m.jsx)("div",{className:"w-full fixed bottom-12 right-2 px-12 flex justify-end items-center mt-5 z-40",children:(0,m.jsx)("button",{onClick:a,className:"text-white text-6xl rounded-full p-6 bg-yamaha-blue-light",children:(0,m.jsx)(D.QAE,{})})}),(0,m.jsxs)("div",{className:"flex flex-col lg:flex-row h-screen gap-12 overflow-y-auto hide-scrollbar py-12",children:[(0,m.jsxs)("div",{className:" transition-transform duration-300 ease-in-out",children:[(0,m.jsx)("h1",{className:"text-6xl text-black font-open",children:t.title}),(0,m.jsx)("div",{className:"w-full h-96",children:(0,m.jsx)("img",{decoding:"async",src:t.Image,className:"h-full w-full object-cover",alt:""})}),(0,m.jsxs)("div",{className:"mt-4 mb-4",children:[(0,m.jsx)("p",{className:"text-2xl text-black uppercase",children:(s=t.date,new Date(s).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}).replace(",",","))}),(0,m.jsx)("p",{className:"text-3xl text-black",children:t.location})]})]}),(0,m.jsxs)("div",{className:"max-w-5xl ",children:[(0,m.jsxs)("div",{className:"flex gap-8 items-center",children:[(0,m.jsx)("div",{children:(0,m.jsx)("span",{className:"uppercase text-2xl font-open",children:"Share on"})}),(0,m.jsxs)("div",{className:"flex gap-6 text-4xl",children:[(0,m.jsx)("button",{onClick:o,"aria-label":"Share on Facebook",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.Am9,{})}),(0,m.jsx)("button",{onClick:d,"aria-label":"Share on Messenger",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.sAh,{})}),(0,m.jsx)("button",{onClick:x,"aria-label":"Share on TikTok",className:"hover:text-black",children:(0,m.jsx)(F.nTm,{})}),(0,m.jsx)("button",{onClick:u,"aria-label":"Share on Telegram",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.Ww5,{})})]})]}),(0,m.jsx)("div",{className:"max-w-3xl mt-20",children:t.articleContents.map((function(e){return"text"===e.type?(0,m.jsx)("p",{className:"mb-12 mt-12 font-open text-3xl text-black",children:e.value},e.order):"images"===e.type?(0,m.jsx)("div",{className:"grid mt-12 ".concat("flex"===e.justify?"grid-cols-2":"grid-cols-1"," gap-2 mb-4"),children:e.value.map((function(e,t){return(0,m.jsx)("img",{src:e,alt:"",className:"w-full"},t)}))},e.order):null}))}),(0,m.jsxs)("div",{className:"flex gap-8 items-center mb-36 mt-24",children:[(0,m.jsx)("div",{children:(0,m.jsx)("span",{className:"uppercase text-2xl font-open",children:"Share on"})}),(0,m.jsxs)("div",{className:"flex gap-6 text-4xl",children:[(0,m.jsx)("button",{onClick:o,"aria-label":"Share on Facebook",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.Am9,{})}),(0,m.jsx)("button",{onClick:d,"aria-label":"Share on Messenger",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.sAh,{})}),(0,m.jsx)("button",{onClick:x,"aria-label":"Share on TikTok",className:"hover:text-black",children:(0,m.jsx)(F.nTm,{})}),(0,m.jsx)("button",{onClick:u,"aria-label":"Share on Telegram",className:"hover:text-yamaha-blue-light",children:(0,m.jsx)(F.Ww5,{})})]})]})]})]})]})},B=a(5152),H=a.n(B),U=a(6192);a(95867),a(27952);function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function Y(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?V(Object(a),!0).forEach((function(t){(0,l.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):V(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var q=H()((function(){return Promise.all([a.e(8826),a.e(4194)]).then(a.bind(a,34301))}),{loadableGenerated:{webpack:function(){return[34301]}}}),Q=function(){var e,t=(0,h.useState)(null),a=t[0],n=t[1],l=(0,h.useState)(null),s=l[0],o=l[1],d=(0,h.useState)(!1),u=d[0],f=d[1],p=(0,h.useState)(!1),g=p[0],v=p[1],j=(0,I.useQuery)("homepageData",(0,i.Z)(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,z.rQ)("/revamp/homepage");case 2:if((t=e.sent)&&t.data){e.next=5;break}throw new Error("Failed to fetch data");case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)})))),w=j.data,y=j.isLoading,N=j.error,k=(null===w||void 0===w||null===(e=w.latestNews)||void 0===e?void 0:e.map((function(e){return Y(Y({},e),{},{Image:"".concat(c.Z.AWS_S3,"/").concat(e.banner),date:e.datePublished,articleContents:e.newsContents.map((function(e){return"images"===e.type?Y(Y({},e),{},{value:e.value.split(",").map((function(e){return"".concat(c.Z.AWS_S3,"/").concat(e.trim())})),layout:e.value.includes(",")?"grid":"flex"}):e}))})})))||[];return y?(0,m.jsx)(q,{},"loading"):N?(0,m.jsx)("div",{children:"Error loading data"}):(0,m.jsxs)("div",{className:"relative bg-white",children:[(0,m.jsx)(U.default,{title:"Yamaha Motor Philippines Inc.",description:"This is the official website of Yamaha Motor Philippines, which provides a variety of Yamaha Motor products that are used on land with high standards of quality and service to customers nationwide.",keywords:"yamaha, yamaha motors, offcial website, yamaha motor philippines, yamaha motor products",pagePath:"",imagePath:""}),(0,m.jsx)(x,{heroSection:w.heroSection}),(0,m.jsx)(b,{heroSection:w.heroSection}),(0,m.jsx)(C,{newsData:k,onReadNowClick:function(e){n(e),f(!0)}}),(0,m.jsx)(E,{newsData:k,onReadNowClick:function(e){o(e),v(!0)}}),(0,m.jsx)(Z,{personalCommuter:w.personalCommuter,sportMachines:w.sportMachines}),(0,m.jsx)(W,{personalCommuter:w.personalCommuter,sportMachines:w.sportMachines}),(0,m.jsx)(R,{platforms:w.otherPlatforms}),(0,m.jsx)(L,{platforms:w.otherPlatforms}),a&&(0,m.jsx)(M.Z,{data:a,onClose:function(){return f(!1)},isOpen:u}),s&&(0,m.jsx)(T,{data:s,onClose:function(){return v(!1)},isOpen:g})]})},G=a(80913),X=function(){return(0,m.jsxs)("div",{children:[(0,m.jsx)(U.default,{title:"Yamaha Motor Philippines Inc.",imagePath:"",description:"",keywords:"yamaha, YAMAHA, yamaha motor, yamaha motor philippines, Yamaha Motor Philippines Inc.",pagePath:"/"}),(0,m.jsx)(n.Z,{}),(0,m.jsx)(Q,{}),(0,m.jsx)(G.Z,{})]})}},48312:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(41400)}])},27952:function(){},95867:function(){}},function(e){e.O(0,[4617,9866,5445,9401,1827,972,9192,5675,7273,3255,6893,719,180,913,4236,9774,2888,179],(function(){return t=48312,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.