PageSourceSearch

https://internationalhealthjournal.com/_next/static/chunks/pages/categories-ceb2129843aae912.js

js internationalhealthjournal.com collected 2026-10-08 14:40:14 UTC 10,358 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2644],{46435:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/categories",function(){return r(86472)}])},86472:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>I,default:()=>k});var a=r(9329),t=r(6029);r(55729);var l=r(37197),i=r(20148),n=r(81278),c=r(85645),o=r(35987),d=r(48309),m=r(36980),x=r(51383),u=r(84568),p=r(99468),h=r(58455),g=r(39477),j=r(32366),f=r(82026),N=r(56465),v=r(8588),b=r.n(v),y=r(77698),w=r(30490);function A(){let e=(0,a._)(["\n  query GetAllCategoriesWithPosts {\n    categories(first: 100) {\n      nodes {\n        id\n        databaseId\n        name\n        slug\n        uri\n        description\n        count\n        language {\n          code\n        }\n        translations {\n          databaseId\n          name\n          slug\n          uri\n          language {\n            code\n          }\n        }\n        posts(first: 3) {\n          nodes {\n            id\n            title\n            uri\n            date\n            featuredImage {\n              node {\n                sourceUrl\n                altText\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return A=function(){return e},e}let C=(0,l.J1)(A()),k=e=>{var s,r,a;let{__LANGUAGE__:l}=e,v=(0,n.useRouter)(),A=(null==(s=o.A.siteInfo)?void 0:s.name)||"Site Name",k=(null==(r=o.A.siteInfo)?void 0:r.siteUrl)||"",{t:I}=(0,w.Bd)(),_=null==l?void 0:l.code,{language:E}=(0,y.vM)(v.asPath),T=_||E||(0,y.i5)(),U=(0,y.i5)(),B=(0,y.lI)()&&T!==U,{data:z,loading:P,error:F}=(0,i.IT)(C,{fetchPolicy:"cache-and-network"}),S=(0,t.jsx)(c.Ay,{seo:{title:"Article Categories | ".concat(A),description:"Browse article categories on ".concat(A,". Explore articles organized by topic.")},pageType:"collection",breadcrumbs:[{label:"Categories"}]});if(P)return(0,t.jsxs)(t.Fragment,{children:[S,(0,t.jsx)("div",{className:"min-h-screen bg-background",children:(0,t.jsx)("div",{className:"container mx-auto px-4 py-16",children:(0,t.jsx)(d.A,{})})})]});if(F)return(0,t.jsxs)(t.Fragment,{children:[S,(0,t.jsx)("div",{className:"container mx-auto my-8",children:(0,t.jsxs)("div",{className:"empty-state",children:[(0,t.jsx)("div",{className:"empty-state-icon",children:(0,t.jsx)(u.A,{className:"h-full w-full"})}),(0,t.jsx)("h3",{className:"empty-state-title",children:"Unable to load categories"}),(0,t.jsx)("p",{className:"empty-state-description",children:F.message})]})})]});let M=["uncategorized","sin-categoria","nicht-kategorisiert","non-categorise","okategoriserad","senza-categoria","sem-categoria","bez-kategorii","uncategorized-tr","uncategorized-hu","general","未分類"],O=null==T?void 0:T.toUpperCase(),$=((null==z||null==(a=z.categories)?void 0:a.nodes)||[]).filter(e=>{var s;return!M.includes(null==(s=e.slug)?void 0:s.toLowerCase())}).map(e=>{var s,r,a;let t=null==(r=e.language)||null==(s=r.code)?void 0:s.toUpperCase();if(B){if(t===O)return e;if((null==(a=e.translations)?void 0:a.length)>0){let s=e.translations.find(e=>{var s,r;return(null==(r=e.language)||null==(s=r.code)?void 0:s.toUpperCase())===O});if(s)return{...e,id:s.databaseId,name:s.name,slug:s.slug,uri:s.uri}}return null}return t&&t!==U.toUpperCase()?null:e}).filter(Boolean).filter((e,s,r)=>s===r.findIndex(s=>(s.databaseId||s.id)===(e.databaseId||e.id))).sort((e,s)=>(s.count||0)-(e.count||0)),L=$.length,R=$.reduce((e,s)=>e+(s.count||0),0),W=[{label:I("categories")||"Categories"}],X=$.map((e,s)=>({name:e.name,url:"".concat(k).concat(e.uri),position:s+1,description:e.description||"Browse ".concat(e.count," articles in ").concat(e.name)}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Ay,{seo:{title:"Article Categories | ".concat(A),description:"Browse all ".concat(L," article categories on ").concat(A,". Explore ").concat(R," articles organized by topic.")},pageType:"collection",breadcrumbs:W,listItems:X,totalItems:L}),(0,t.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,t.jsx)("header",{className:"relative bg-gradient-to-br from-primary/5 via-background to-background border-b",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 md:py-16",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(p.A,{className:"h-5 w-5 text-primary"}),(0,t.jsx)("span",{className:"text-sm font-medium text-primary",children:I("browseByTopic")||"Browse by Topic"})]}),(0,t.jsx)("h1",{className:"text-4xl md:text-5xl font-bold tracking-tight text-foreground mb-4",children:I("articleCategories")||"Article Categories"}),(0,t.jsx)("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl",children:I("exploreCategoriesDescription",{totalPosts:R,totalCategories:L})||"Explore our comprehensive collection of ".concat(R," articles organized into ").concat(L," categories. Find exactly what you're looking for.")})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 bg-card border rounded-lg px-4 py-3",children:[(0,t.jsx)(u.A,{className:"h-5 w-5 text-primary"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold",children:L}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:I("categories")||"Categories"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 bg-card border rounded-lg px-4 py-3",children:[(0,t.jsx)(h.A,{className:"h-5 w-5 text-primary"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold",children:R}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:I("totalArticles")||"Total Articles"})]})]})]})]})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8 md:py-12",children:[$.length>0?(0,t.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:$.map(e=>{var s,r;return(0,t.jsxs)("div",{className:"group bg-card border rounded-xl overflow-hidden hover:shadow-lg transition-all duration-300 hover:border-primary/50",children:[(0,t.jsxs)("div",{className:"p-6 pb-4",children:[(0,t.jsx)("div",{className:"flex items-start justify-between mb-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:(0,t.jsx)(u.A,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(N.A,{href:e.uri,children:(0,t.jsx)("h2",{className:"text-xl font-bold group-hover:text-primary transition-colors",children:e.name})}),(0,t.jsxs)(m.E,{variant:"secondary",className:"mt-1",children:[e.count," article",1!==e.count?"s":""]})]})]})}),e.description&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-2",children:e.description})]}),(null==(r=e.posts)||null==(s=r.nodes)?void 0:s.length)>0&&(0,t.jsxs)("div",{className:"px-6 pb-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:I("recentArticles")||"Recent Articles"}),(0,t.jsx)("div",{className:"space-y-2",children:e.posts.nodes.slice(0,3).map(e=>{var s,r;return(0,t.jsxs)(N.A,{href:e.uri,className:"flex items-center gap-3 group/post",children:[(null==(r=e.featuredImage)||null==(s=r.node)?void 0:s.sourceUrl)&&(0,t.jsx)("div",{className:"relative w-10 h-10 rounded overflow-hidden flex-shrink-0",children:(0,t.jsx)(b(),{src:e.featuredImage.node.sourceUrl,alt:e.featuredImage.node.altText||e.title,fill:!0,className:"object-cover"})}),(0,t.jsx)("span",{className:"text-sm font-medium line-clamp-1 group-hover/post:text-primary transition-colors",children:e.title})]},e.id)})})]}),(0,t.jsx)("div",{className:"px-6 py-4 bg-muted/30 border-t",children:(0,t.jsx)(N.A,{href:e.uri,children:(0,t.jsxs)(x.$,{variant:"ghost",className:"w-full justify-between group/btn",children:[(0,t.jsx)("span",{children:I("viewAllArticles",{count:e.count})||"View all ".concat(e.count," articles")}),(0,t.jsx)(g.A,{className:"h-4 w-4 transition-transform group-hover/btn:translate-x-1"})]})})})]},e.id)})}):(0,t.jsxs)("div",{className:"empty-state",children:[(0,t.jsx)("div",{className:"empty-state-icon",children:(0,t.jsx)(u.A,{className:"h-full w-full"})}),(0,t.jsx)("h3",{className:"empty-state-title",children:I("noCategoriesFound")||"No categories found"}),(0,t.jsx)("p",{className:"empty-state-description",children:I("categoriesWillAp
1pear")||"Categories will appear here once articles are published."})]}),$.length>6&&(0,t.jsxs)("div",{className:"mt-16 pt-12 border-t",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,t.jsx)(j.A,{className:"h-6 w-6 text-primary"}),(0,t.jsx)("h2",{className:"text-2xl font-bold",children:I("mostPopularCategories")||"Most Popular Categories"})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:$.slice(0,12).map(e=>(0,t.jsxs)(N.A,{href:e.uri,className:"inline-flex items-center gap-2 px-4 py-2 bg-card border rounded-full hover:border-primary hover:bg-primary/5 transition-all",children:[(0,t.jsx)("span",{className:"font-medium",children:e.name}),(0,t.jsx)(m.E,{variant:"secondary",className:"text-xs",children:e.count})]},e.id))})]}),(0,t.jsx)("div",{className:"mt-16 pt-12 border-t",children:(0,t.jsx)("div",{className:"bg-gradient-to-r from-primary/10 via-primary/5 to-transparent rounded-2xl p-8 md:p-12",children:(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(f.A,{className:"h-5 w-5 text-primary"}),(0,t.jsx)("span",{className:"text-sm font-medium text-primary",children:I("exploreMore")||"Explore More"})]}),(0,t.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:I("cantFindLooking")||"Can't find what you're looking for?"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-6",children:I("useSearchOrBrowse")||"Use our search feature to find specific articles, or browse all our latest content."}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)(x.$,{asChild:!0,children:(0,t.jsxs)(N.A,{href:"/articles",children:[(0,t.jsx)(h.A,{className:"h-4 w-4 mr-2"}),I("browseAllArticles")||"Browse All Articles"]})}),(0,t.jsx)(x.$,{variant:"outline",asChild:!0,children:(0,t.jsx)(N.A,{href:"/search",children:I("searchArticles")||"Search Articles"})})]})]})})})]})]})]})};var I=!0}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=46435)),_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.