PageSourceSearch

https://www.yamaha-motor.com.ph/_next/static/chunks/pages/yamaha-racing/racing-news-66a6a7af3bb089a6.js

js yamaha-motor.com.ph collected 2026-10-02 13:18:04 UTC 16,631 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4691,1771],{34622:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});const r=(0,a(91373).Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},39530:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});const r=(0,a(91373).Z)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},87764:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});const r=(0,a(91373).Z)("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},75131:function(e,t,a){"use strict";a.d(t,{y:function(){return c}});var r=a(45579);const i=(0,a(91373).Z)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var n=a(34622),s=a(64998),l=a(11163),o=a(85893);function c(e){var t=e.title,a=e.date,c=e.category,d=e.image,x=e.excerpt,p=e.index,u=e.slug,m=e.views,h=e.onClick,f=(0,l.useRouter)();return(0,o.jsx)(r.E.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1*p},whileHover:{y:-12,scale:1.01},onClick:h,className:"group relative cursor-pointer",children:(0,o.jsxs)("div",{className:"relative h-full flex flex-col bg-gradient-to-br from-white/[0.08] to-white/[0.03] backdrop-blur-xl border border-white/10 rounded-[32px] overflow-hidden hover:border-[#326EFF]/40 transition-all duration-500",children:[(0,o.jsx)(r.E.div,{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500",style:{background:"radial-gradient(circle at top left, #326EFF15 0%, transparent 70%)"}}),(0,o.jsxs)("div",{className:"relative h-[280px] overflow-hidden",children:[(0,o.jsx)(r.E.img,{src:d,alt:t,className:"w-full h-full object-cover",whileHover:{scale:1.1},transition:{duration:.6}}),(0,o.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"}),(0,o.jsx)(r.E.div,{initial:{x:-20,opacity:0},whileInView:{x:0,opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.1*p+.2},className:"absolute top-6 left-6",children:(0,o.jsx)("div",{className:"inline-flex items-center gap-2 bg-[#326EFF] backdrop-blur-xl rounded-full px-5 py-2 shadow-lg shadow-[#326EFF]/30",children:(0,o.jsx)("span",{className:"font-proxima text-[10px] tracking-[2px] text-white uppercase font-bold",children:c})})}),(0,o.jsxs)("div",{className:"absolute top-6 right-6 flex items-center gap-2 bg-black/40 backdrop-blur-xl rounded-full px-4 py-2",children:[(0,o.jsx)(i,{className:"w-3.5 h-3.5 text-white/70"}),(0,o.jsx)("span",{className:"font-proxima text-[11px] text-white/70 font-medium",children:m})]})]}),(0,o.jsxs)("div",{className:"relative p-8 flex flex-col flex-grow",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,o.jsx)(n.Z,{className:"w-4 h-4 text-yamaha-blue-racing"}),(0,o.jsx)("span",{className:"font-proxima text-[11px] tracking-[1.5px] text-white/60 uppercase",children:a})]}),(0,o.jsx)("h3",{className:"font-archivo font-black text-[24px] leading-[1.3] uppercase text-white mb-4 line-clamp-2 min-h-[62px] group-hover:text-yamaha-blue-racing transition-colors duration-300",children:t}),(0,o.jsx)("span",{className:"font-proxima font-light text-[14px] leading-[1.7] text-white/60 mb-6 line-clamp-2",children:(null===x||void 0===x?void 0:x.length)>200?"".concat(x.substring(0,140),"..."):x}),(0,o.jsxs)("div",{className:"flex items-center gap-2 text-yamaha-blue-racing group-hover:gap-4 mt-auto pt-4 transition-all duration-300",children:[(0,o.jsx)("span",{className:"font-proxima text-[12px] tracking-[2px] uppercase font-semibold",onClick:function(){return f.push("/yamaha-racing/racing-news/overview/".concat(u))},children:"Read More"}),(0,o.jsx)(s.Z,{className:"w-4 h-4 group-hover:translate-x-2 transition-transform duration-300"})]})]}),(0,o.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-gradient-to-r from-[#326EFF] to-[#0055D4] transform scale-x-0 group-hover:scale-x-100 transition-transform duration-500 origin-left rounded-b-[32px]"})]})})}},78828:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var r=a(50029),i=a(87794),n=a.n(i),s=a(67294),l=a(45579),o=a(11163),c=a(34622),d=a(64998),x=a(87764),p=a(39530),u=a(72413),m=a(36543),h=a(75131),f=a(37839),g=a(34623),b=a(21182),v=a(1835),w=a(6192),j=a(85893),y=["ALL","LATEST NEWS","NEWS"];
1function N(){var e,t=(0,o.useRouter)(),a=(0,s.useState)(null),i=a[0],N=a[1],k=(0,s.useState)("ALL"),E=k[0],_=k[1],F=(0,s.useState)(""),S=F[0],A=F[1],T=(0,s.useState)(6),L=T[0],C=T[1];(0,s.useEffect)((function(){C(6)}),[E,S]),(0,s.useEffect)((function(){var e=function(){var e=(0,r.Z)(n().mark((function e(){var t;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,b.rQ)("/racing/racing-news");case 3:(t=e.sent)&&t.data&&N(t.data),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Failed to load news data:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var R=(0,s.useMemo)((function(){if(null===i||void 0===i||!i.latestArticle||0===i.latestArticle.length)return null;var e=i.latestArticle[0],t=new Date(e.datePublished);return{id:e.id,title:e.title,slug:e.slug,category:"LATEST NEWS",date:t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),excerpt:"Read the latest update from Yamaha Racing Philippines to get full details on the recent events.",image:"".concat(v.Z.AWS_S3,"/").concat(e.banner)}}),[i]),Z=(0,s.useMemo)((function(){return null!==i&&void 0!==i&&i.racingNews?i.racingNews.map((function(e){return{id:e.id,title:e.title,slug:e.slug,category:"NEWS",date:new Date(e.datePublished).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),excerpt:"Click to read more about this article and get the full story from the track.",image:"".concat(v.Z.AWS_S3,"/").concat(e.banner),views:e.views}})).filter((function(e){return"ALL"===E||e.category===E})).filter((function(e){return e.title.toLowerCase().includes(S.toLowerCase())||e.excerpt.toLowerCase().includes(S.toLowerCase())})):[]}),[i,E,S]),D=Z.slice(0,L);return i?(0,j.jsxs)("div",{className:"relative w-full min-h-screen bg-black overflow-x-hidden font-proxima",children:[(0,j.jsx)(w.default,{title:"Yamaha Racing News",description:"",keywords:"",pagePath:"",imagePath:""}),(0,j.jsx)(f.A,{}),(0,j.jsx)(u.F,{}),(0,j.jsxs)("div",{className:"relative h-screen min-h-[600px] overflow-hidden flex items-end",children:[(0,j.jsxs)("div",{className:"absolute inset-0",children:[(0,j.jsx)("img",{src:"".concat(v.Z.AWS_S3,"/","production/yamaha-racing/racing-header-image/news-page-header-desktop.webp"),alt:"Racing Stadium",className:"w-full h-full object-cover"}),(0,j.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/40 to-black"}),(0,j.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-[#326EFF]/10 via-trans
1parent to-transparent"}),(0,j.jsx)("div",{className:"absolute inset-0 opacity-[0.03]",children:(0,j.jsx)("img",{src:"".concat(v.Z.AWS_S3,"/","production/yamaha-racing/others/LATEST FROM THE TRACK- DESKTOP.webp"),alt:"",className:"w-full h-full object-cover"})})]}),(0,j.jsx)("div",{className:"relative z-10 w-full px-4 md:px-12 lg:px-24 pb-32 max-w-[1600px] mx-auto text-center flex flex-col items-center justify-center h-full",children:(0,j.jsxs)(l.E.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"relative flex flex-col items-center mt-24",children:[(0,j.jsxs)("div",{className:"inline-flex items-center gap-2 bg-white/5 backdrop-blur-xl border border-white/10 rounded-full px-5 py-2 mb-6 shadow-[0_0_20px_rgba(50,110,255,0.1)]",children:[(0,j.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-[#326EFF]"}),(0,j.jsx)("span",{className:"font-proxima text-[9px] md:text-[10px] tracking-[3px] text-white/80 uppercase font-medium",children:"NEWS & UPDATES"})]}),(0,j.jsxs)("h1",{className:"font-archivo font-black text-[50px] sm:text-[60px] md:text-[80px] lg:text-[100px] xl:text-[120px] leading-[0.9]  uppercase mb-4 drop-shadow-lg text-center",children:[(0,j.jsx)("span",{className:"block text-white mb-2",children:"LATEST FROM"}),(0,j.jsx)("span",{className:"block font-black text-transparent bg-clip-text bg-gradient-to-r from-[#326EFF] via-[#5A8BFF] to-[#326EFF]",children:"THE TRACK"})]}),(0,j.jsx)("p",{className:"font-proxima font-light text-[13px] md:text-[15px] leading-[1.7] text-white/50 max-w-xl mx-auto mt-4 px-4",children:"Every lap, every result, every breakthrough. Stay connected to the action as Yamaha continues to Defy Limits."})]})}),(0,j.jsxs)("div",{className:"absolute bottom-8 justify-center w-full flex flex-col items-center gap-2 animate-[bounce_2s_infinite] z-50",children:[(0,j.jsx)("span",{className:"font-proxima text-[9px] tracking-[2.5px] text-white/40 uppercase",children:"Scroll"}),(0,j.jsx)("div",{className:"w-[1px] h-10 bg-gradient-to-b from-[#326EFF] to-transparent"})]})]}),(0,j.jsxs)("div",{className:"relative z-20 bg-gradient-to-b from-[#00132D] via-black to-[#00132D]/30 pt-20 pb-24",children:[(0,j.jsxs)("div",{className:"absolute inset-0 ",children:[(0,j.jsx)("img",{src:"".concat(v.Z.AWS_S3,"/","production/yamaha-racing/others/LATEST FROM THE TRACK- DESKTOP.webp"),alt:"",className:"w-full h-full object-cover hidden md:flex lg:flex xl:flex"}),(0,j.jsx)("img",{src:"".concat(v.Z.AWS_S3,"/","production/yamaha-racing/others/LATEST FROM THE TRACK- MOBILE.webp"),alt:"",className:"w-full h-full object-cover flex md:hidden lg:hidden xl:hidden"})]}),(0,j.jsxs)("div",{className:"px-4 md:px-12 lg:px-24 max-w-[1600px] mx-auto relative z-10",children:[R&&(0,j.jsx)(l.E.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"group cursor-pointer mb-24 relative",onClick:function(){return t.push("/yamaha-racing/racing-news/overview/".concat(R.slug))},children:(0,j.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 bg-[#040B1D]/60 backdrop-blur-sm border border-white/10 rounded-2xl overflow-hidden shadow-[0_20px_50px_rgba(0,0,0,0.5),inset_0_0_0_1px_rgba(50,110,255,0.2)] transition-all duration-500 hover:shadow-[0_20px_50px_rgba(50,110,255,0.15),inset_0_0_0_1px_rgba(50,110,255,0.4)]",children:[(0,j.jsxs)("div",{className:"relative h-full overflow-hidden",children:[(0,j.jsx)("img",{src:R.image,alt:R.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",onError:function(e){e.target.src="https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080"}}),(0,j.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#040B1D] via-transparent to-transparent opacity-80 lg:hidden"}),(0,j.jsxs)("div",{className:"absolute top-6 left-6 inline-flex items-center gap-2 bg-[#0A2D81]/80 backdrop-blur-md border border-[#326EFF]/30 rounded-full px-4 py-2",children:[(0,j.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#326EFF] animate-pulse"}),(0,j.jsx)("span",{className:"font-proxima text-[10px] text-white tracking-[3px] uppercase font-bold",children:R.category})]})]}),(0,j.jsxs)("div",{className:"p-8 md:p-12 lg:p-16 flex flex-col justify-center relative",children:[(0,j.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-[radial-gradient(ellipse_at_top_right,_var(--tw-gradient-stops))] from-[#326EFF]/20 via-trans
1parent to-transparent"}),(0,j.jsx)("div",{className:"flex items-center gap-6 mb-8",children:(0,j.jsxs)("div",{className:"flex items-center gap-2 text-white/50",children:[(0,j.jsx)(c.Z,{className:"w-3.5 h-3.5 text-yamaha-blue-racing"}),(0,j.jsx)("span",{className:"font-proxima text-[11px] font-medium uppercase tracking-[2px]",children:R.date})]})}),(0,j.jsx)("h2",{className:"font-archivo font-black text-[28px] md:text-[36px] lg:text-[56px] leading-[1.1] text-white uppercase mb-6 group-hover:text-yamaha-blue-racing transition-colors duration-300",children:R.title}),(0,j.jsx)("p",{className:"font-proxima text-[14px] md:text-[15px] leading-[1.8] text-white/60 mb-10 font-light max-w-xl",children:(null===(e=R.excerpt)||void 0===e?void 0:e.length)>150?"".concat(R.excerpt.substring(0,150),"..."):R.excerpt}),(0,j.jsx)("div",{className:"mt-auto",children:(0,j.jsxs)("button",{className:"bg-white hover:bg-gray-100 rounded-[8px] px-8 py-3.5 transition-all duration-300 hover:scale-105 group/btn inline-flex items-center justify-center gap-3 shadow-[0_4px_20px_rgba(0,0,0,0.4)]",children:[(0,j.jsx)("span",{className:"font-proxima font-bold text-[12px] text-[#0A2D81] tracking-[2px] uppercase",children:"Read Article"}),(0,j.jsx)(d.Z,{className:"w-4 h-4 text-[#0A2D81] group-hover/btn:translate-x-1 transition-transform duration-300"})]})})]})]})}),(0,j.jsxs)("div",{className:"flex flex-col xl:flex-row xl:items-center justify-between gap-6 mb-12 relative z-10",children:[(0,j.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:gap-3 bg-[#040B1D]/40 backdrop-blur-xl border border-white/10 p-2 rounded-2xl md:rounded-full overflow-x-auto hide-scrollbar",children:y.map((function(e){return(0,j.jsx)("button",{onClick:function(){return _(e)},className:"whitespace-nowrap font-proxima text-[10px] md:text-[11px] font-bold tracking-[1.5px] uppercase px-5 py-2.5 rounded-full transition-all duration-300 ".concat(E===e?"bg-[#326EFF] text-white shadow-[0_0_15px_rgba(50,110,255,0.4)]":"text-white/50 hover:text-white hover:bg-white/5"),children:e},e)}))}),(0,j.jsxs)("div",{className:"relative group w-full xl:w-80",children:[(0,j.jsx)("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none",children:(0,j.jsx)(x.Z,{className:"w-4 h-4 text-white/40 group-focus-within:text-yamaha-blue-racing transition-colors"})}),(0,j.jsx)("input",{type:"text",placeholder:"SEARCH ARTICLES...",value:S,onChange:function(e){return A(e.target.value)},className:"w-full bg-[#040B1D]/40 backdrop-blur-xl border border-white/10 text-white font-proxima text-[12px] placeholder:text-white/30 rounded-full py-3 pl-11 pr-4 focus:outline-none focus:border-[#326EFF]/50 focus:ring-1 focus:ring-[#326EFF]/50 transition-all duration-300"})]})]}),Z.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8 lg:gap-10 relative z-10",children:D.map((function(e,a){return(0,j.jsx)(h.y,{title:e.title,date:e.date,category:e.category,image:e.image,excerpt:e.excerpt,index:a,slug:e.slug,views:e.views,onClick:function(){return t.push("/yamaha-racing/racing-news/overview/".concat(e.slug))}},e.id)}))}),Z.length>L&&(0,j.jsx)("div",{className:"mt-20 flex justify-center",children:(0,j.jsx)("button",{onClick:function(){return C((function(e){return e+6}))},className:"bg-transparent hover:bg-white/5 border border-white/20 rounded-[8px] px-10 py-4 transition-all duration-300 group flex items-center justify-center gap-3",children:(0,j.jsx)("span",{className:"font-proxima font-medium text-[13px] text-white tracking-[2px] uppercase",children:"LOAD MORE ARTICLES"})})})]}):(0,j.jsxs)(l.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"flex flex-col items-center justify-center py-20 text-center relative z-10",children:[(0,j.jsx)("div",{className:"w-16 h-16 rounded-full bg-white/5 flex items-center justify-center mb-4",children:(0,j.jsx)(p.Z,{className:"w-6 h-6 text-white/30"})}),(0,j.jsx)("h3",{className:"font-archivo text-[24px] text-white uppercase tracking-[-0.5px] mb-2",children:"No Articles Found"}),(0,j.jsx)("p",{className:"font-proxima text-[14px] text-white/50 max-w-md",children:"We couldn't find any articles matching your current search criteria. Try adjusting your filters."}),(0,j.jsx)("button",{onClick:function(){_("ALL"),A("")},className:"mt-6 font-proxima text-[11px] font-bold tracking-[2px] uppercase text-yamaha-blue-racing hover:text-white transition-colors",children:"Clear Filters"})]})]})]}),(0,j.jsx)(m.P,{})]}):(0,j.jsx)(g.b,{})}},1331:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/yamaha-racing/racing-news",function(){return a(78828)}])}},function(e){e.O(0,[972,9192,404,426,9774,2888,179],(function(){return t=1331,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.