PageSourceSearch

https://medicalfuturist.com/_nuxt/CPIzx_kn.js

js medicalfuturist.com collected 2026-10-02 02:37:09 UTC 3,691 bytes, 1 lines download raw bytes

1import{_ as q}from"./2PDSq-Bk.js";import{u as I}from"./DOmPbSIN.js";import{a1 as O,x as s,s as B,e as W,o as i,c as l,A as G,a as C,l as n,b as L,w as M,m as y,F as T,q as J,p as K}from"./z5raLBf3.js";const Q=O("main",()=>{const t=s({}),u=s({all:{},slugs:{}}),o=s({}),w=s({}),d=s({}),g=s({}),f=s({}),_=s({}),b=s({}),p=s({}),c=s({}),m=s({}),A=s(!1);async function D(){if(A.value)return;const r=B().public.wpApiBase,[k,h,v]=await Promise.all([$fetch(`${r}/wp-json/wp/v2/pages`,{params:{slug:"frontpage"}}),$fetch(`${r}/wp-json/wp/v2/categories`,{params:{per_page:100,exclude:[474,1]}}),$fetch(`${r}/wp-json/wp/v2/project_category`)]);k?.[0]&&(t.value=k[0]);const x={},P={};for(const a of h)x[a.id]=a.slug,P[a.slug]=a;u.value={all:P,slugs:x};const V={patients:"#70C8BB",company:"#8CC2D3","medical-professionals":"#4672A3",developers:"#CB7098",researchers:"#7E6191","policy-makers":"#D76850",educators:"#49A5B8"},$={},j={};for(const a of v)$[a.id]=a.slug,j[a.slug]={...a,color:V[a.slug]};o.value=j,w.value=$,A.value=!0}async function H(e){const r=[...Array.isArray(e.acf?.related_posts)?e.acf.related_posts:[],...Array.isArray(e.acf?.related_posts_footer)?e.acf.related_posts_footer:[]];if(!r.length)return;const h=B().public.wpApiBase,v=await $fetch(`${h}/wp-json/wp/v2/posts`,{params:{include:r}});c.value[e.id]=v}async function S(e){const r=Array.isArray(e.acf?.related_books)?e.acf.related_books:[];if(!r.length)return;const h=B().public.wpApiBase,v=await $fetch(`${h}/wp-json/wp/v2/book`,{params:{include:r}});m.value[e.id]=v}function F(e){return c.value[e]??[]}function R(e){return m.value[e]??[]}function E(e){d.value[e.slug]||(d.value[e.slug]=e)}function N(e){g.value[e.slug]||(g.value[e.slug]=e)}function z(e){f.value[e.slug]||(f.value[e.slug]=e)}return{siteData:t,categories:u,projectCategories:o,projectCategoriesSlugs:w,postList:d,pageList:g,projectList:f,currentPost:_,currentCategory:b,currentProject:p,relatedPosts:c,relatedBooks:m,initStore:D,fetchRelatedArticles:H,fetchRelatedBooks:S,getRelatedArticles:F,getRelatedBooks:R,cachePost:E,cachePage:N,cacheProject:z}}),U={class:"fadeInDown animated card mb-3 mb-md-4"},X={key:0},Y=["srcset","alt"],Z={class:"card-body align-middle px-2"},ee=["innerHTML"],te=["innerHTML"],se={key:0,class:"topics"},oe={key:1},ae=W({__name:"PostCard",props:{post:{},hideExcerpt:{type:Boolean},hideTopics:{type:Boolean},evenCols:{type:Boolean},index:{}},setup(t){const u=t,o=Q(),{hasFeaturedImg:w,getFeaturedImageSrcset:d,getFeaturedImageAlt:g}=I();function f(){return typeof u.index<"u"?"page-"+(Math.floor(u.index/4)+1):""}return(_,b)=>{const p=q;return i(),l("div",{class:G((t.evenCols?"col-md item ":"col-md-3 item ")+f())},[C("div",U,[n(w)(t.post)?(i(),l("div",X,[L(p,{to:`/${t.post.slug}`},{default:M(()=>[C("img",{class:"card-img-top",loading:"lazy",srcset:n(d)(t.post,"medium")??void 0,alt:n(g)(t.post)},null,8,Y)]),_:1},8,["to"])])):y("",!0),C("div",Z,[L(p,{to:`/${t.post.slug}`},{default:M(()=>[C("h3",{class:"title no-border",innerHTML:t.post.title.rendered},null,8,ee),t.hideExcerpt?y("",!0):(i(),l("span",{key:0,class:"excerpt",innerHTML:t.post.excerpt.rendered},null,8,te))]),_:1},8,["to"]),!t.hideTopics&&t.post.categories?.length?(i(),l("div",se,[(i(!0),l(T,null,J(t.post.categories,(c,m)=>(i(),l(T,{key:c},[n(o).categories.slugs[c]&&n(o).categories.all[n(o).categories.slugs[c]]?(i(),K(p,{key:0,to:`/category/${n(o).categories.all[n(o).categories.slugs[c]].slug}`,innerHTML:n(o).categories.all[n(o).categories.slugs[c]].name},null,8,["to","innerHTML"])):y("",!0),m+1<t.post.categories.length?(i(),l("span",oe," | ")):y("",!0)],64))),128))])):y("",!0)])])],2)}}}),ie=Object.assign(ae,{__name:"PostsPostCard"});export{ie as P,Q as u};

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.