PageSourceSearch

https://worldation.com/_next/static/chunks/pages/category/%5Bslug%5D-0c47074cae1bd252.js

js worldation.com collected 2026-10-02 14:08:33 UTC 6,602 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6808],{19236:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[slug]",function(){return t(59961)}])},37912:(e,l,t)=>{"use strict";t.d(l,{A:()=>d});var s=t(37876),a=t(4436),r=t(54587),c=t.n(r),i=t(48230),n=t.n(i),o=t(14232);let d=e=>{let{seeMoreHref:l="/category/read-more",posts:t,title:r,showImage:i=!0,showButton:d=!0}=e,[x,h]=(0,o.useState)(!1);if(!t||0===t.length)return null;let m=d?x?t:t.slice(0,8):t.slice(0,20);return(0,s.jsxs)("section",{children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-[#231f20] uppercase tracking-tight",children:r||"MORE IN TRENDING"})}),(0,s.jsx)("div",{children:m.map((e,l)=>{var t,r;return(0,s.jsxs)("article",{className:"group",children:[(0,s.jsx)(n(),{href:"/".concat(e.slug),className:"block",prefetch:!0,children:(0,s.jsxs)("div",{className:"flex flex-row  py-4 gap-4 md:gap-6",children:[i&&(0,s.jsx)("div",{className:"relative w-[100px] h-[70px] sm:w-[180px] sm:h-[110px] lg:w-[200px] lg:h-[122px] xl:w-[288px] xl:h-[169px] flex-shrink-0 overflow-hidden",children:(null==(r=e.coverImage)||null==(t=r.asset)?void 0:t._ref)?(0,s.jsx)(c(),{src:(0,a.i)(e.coverImage).width(288).height(169).url(),alt:e.title||"",fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-start",children:[(0,s.jsx)("h3",{className:"font-bold mb-3 text-lg md:text-[24px] leading-6 md:leading-7 text-[#231f20] group-hover:text-[#29ABE2] transition-colors line-clamp-2",style:{fontFamily:"Segoe UI, sans-serif"},children:e.title}),i&&e.excerpt&&(0,s.jsx)("p",{className:"hidden md:line-clamp-2 text-gray-500 text-base mb-2",children:e.excerpt})]})]})}),l<m.length-1&&(0,s.jsx)("div",{className:"h-px w-full bg-[#29ABE2]"})]},e._id)})}),i&&d&&t.length>8&&(0,s.jsx)("div",{className:"mt-4 sm:mt-6",children:(0,s.jsx)("button",{onClick:()=>h(!x),className:"font-bold font-poppins cursor-pointer text-white text-[18px] sm:text-[20px] lg:text-[22px] leading-[24px] inline-flex items-center justify-center bg-[#29ABE2] hover:bg-[#29ABE2]/90 transition-colors px-6 py-4",children:x?"Show Less":"Show More"})})]})}},59961:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>m,default:()=>f,runtime:()=>g});var s=t(37876),a=t(22071),r=t(38713),c=t(37912),i=t(4436),n=t(54587),o=t.n(n),d=t(48230),x=t.n(d);function h(e){var l,t,a;let{posts:r,category:c}=e;if(0===r.length)return null;let[n,...d]=r;function h(e){let l=new Date,t=new Date(e),s=Math.floor((l.getTime()-t.getTime())/1e3),a=Math.floor(s/60),r=Math.floor(a/60),c=Math.floor(r/24),i=Math.floor(c/7),n=Math.floor(c/30),o=Math.floor(c/365);return s<60?"".concat(s,"s ago"):a<60?"".concat(a,"m ago"):r<24?"".concat(r,"hr ago"):c<7?"".concat(c," day").concat(c>1?"s":""," ago"):i<4?"".concat(i," week").concat(i>1?"s":""," ago"):n<12?"".concat(n," month").concat(n>1?"s":""," ago"):"".concat(o," year").concat(o>1?"s":""," ago")}return(0,s.jsxs)("section",{className:"py-8 border-b border-[#29ABE2]",children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("h2",{className:"text-2xl font-black text-[#231f20]",children:(0,s.jsx)(x(),{href:"/category/".concat(c.slug),className:"hover:text-[#132439] transition-colors",children:c.name})})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[3fr_1.5fr] gap-x-8 gap-y-4 items-start",children:[(0,s.jsx)("div",{className:"w-full h-px bg-[#29ABE2]"}),(0,s.jsx)("div",{})," ",n&&(0,s.jsxs)(x(),{href:"/".concat(n.slug),className:"group block",prefetch:!0,children:[(0,s.jsx)("div",{className:"relative w-full aspect-[16/10] overflow-hidden bg-gray-100 mb-4",children:(null==(t=n.coverImage)||null==(l=t.asset)?void 0:l._ref)?(0,s.jsx)(o(),{className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",fill:!0,alt:n.title||"",src:(0,i.i)(n.coverImage).height(700).width(1100).url(),sizes:"(max-width: 768px) 100vw, 65vw",priority:!0}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200"})}),(0,s.jsx)("h2",{className:"text-2xl md:text-4xl font-black leading-tight text-[#231f20] group-hover:text-[#29ABE2] transition-colors mb-1",children:n.title}),n.excerpt&&(0,s.jsx)("p",{className:" text-black font-medium text-sm  tracking-normal line-clamp-2 my-4 ",children:n.excerpt}),((null==(a=n.author)?void 0:a.name)||n._updatedAt)&&(0,s.jsx)("div",{className:"mt-2 text-sm text-gray-500 flex items-center flex-wrap",children:n._updatedAt&&(0,s.jsx)("span",{children:h(n._updatedAt)})})]}),d.length>0&&(0,s.jsx)("div",{className:"flex flex-col divide-gray-100",children:d.slice(0,5).map(e=>{var l,t;return(0,s.jsx)(x(),{href:"/".concat(e.slug),className:"group block",prefetch:!0,children:(0,s.jsxs)("div",{className:"flex flex-row py-4 gap-4",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[(0,s.jsx)("h3",{className:"font-bold text-[#231f20] group-hover:text-[#29ABE2] transition-colors line-clamp-3 text-lg md:text-[24px] leading-6 md:leading-7",children:e.title}),e._updatedAt&&(0,s.jsx)("div",{className:"mt-2 text-sm text-[#29ABE2] flex items-center flex-wrap",children:e._updatedAt&&(0,s.jsx)("span",{children:h(e._updatedAt)})})]}),(0,s.jsx)("div",{className:"w-32 lg:w-40 flex-shrink-0",children:(0,s.jsxs)("div",{className:"relative w-full flex-1 aspect-video overflow-hidden ",children:[" ",(null==(t=e.coverImage)||null==(l=t.asset)?void 0:l._ref)?(0,s.jsx)(o(),{className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",fill:!0,alt:e.title||"",src:(0,i.i)(e.coverImage).height(180).width(250).url(),sizes:"(max-width: 768px) 96px, (max-width: 1024px) 128px, 160px"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200"})]})})]})},e._id)})})]})]})}var m=!0;let g="experimental-edge";function f(e){let{posts:l,categorySlug:t,category:i,settings:n,trendingPosts:o,popularPosts:d,categories:x=[]}=e,m=l.slice(0,6),g=l.slice(6);return(0,s.jsx)(a.A,{preview:!1,loading:!1,trendingPosts:o,popularPosts:d,categories:x,children:(0,s.jsx)("div",{className:"",children:(0,s.jsx)(r.A,{children:(0,s.jsxs)("div",{className:"pb-8",children:[(0,s.jsx)(h,{category:i,posts:m}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:(0,s.jsx)("div",{className:" pt-8 lg:col-span-8",children:g.length>0&&(0,s.jsx)(c.A,{posts:g,showButton:!1})})})]})})})})}}},e=>{var l=l=>e(e.s=l);e.O(0,[4215,2071,636,6593,8792],()=>l(19236)),_N_E=e.O()}]);

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.