PageSourceSearch

https://astmh.org/_nuxt/C1swpc5h.js

js astmh.org collected 2026-09-24 17:39:13 UTC 29,873 bytes, 7 lines download raw bytes

1import{_ as De,u as Re}from"./B_zL3pl1.js";import{d as Ie,L as Ae,a8 as $e,N as je,q as h,f as v,I as ze,z as S,s as Se,x as Xe,p as Fe,c as i,u as p,a as s,A as u,e as Ge,t as d,D as Ee,y as g,F as k,b,B as ee,Y as qe,o as n,n as X,_ as Ne}from"./BjIo-nJV.js";import{d as We,e as Ve}from"./f2QIS_H_.js";import{d as Ye}from"./DE0cv2Yy.js";import{p as te}from"./A66Cw1IH.js";import{m as Je}from"./DKjyhwJX.js";import"./IDP_tSQk.js";const Oe={key:0,class:"flex flex-col w-full bg-white items-center justify-center"},Ue={key:1,class:"flex flex-col w-full bg-white items-center justify-center min-h-screen"},Ze={key:2,class:"flex flex-col w-full bg-white"},Ke={class:"w-full flex justify-center px-5 md:px-10 lg:px-[70px] py-5"},Qe={class:"w-full max-w-[1700px] flex flex-col items-start gap-[20px]"},et={class:"w-full flex justify-center px-5 md:px-10 lg:px-[70px] py-[40px]"},tt={class:"w-full max-w-[1700px] flex gap-[20px]"},st={class:"hidden lg:flex flex-col items-start flex-1 justify-start"},lt=["innerHTML"],ot={class:"flex flex-col items-center w-full lg:w-1/2"},it={class:"flex flex-col gap-[30px] items-start w-full"},nt={class:"flex gap-[20px] items-center w-full"},rt={key:0,class:"bg-[#dfeaf1] flex gap-[10px] items-center px-[10px] py-[5px] rounded-[20px] shrink-0"},at=["src","alt"],ct=["innerHTML"],ut=["innerHTML"],pt={class:"text-[16px] font-normal leading-[1.4] text-[#254455]"},dt={class:"basis-0 flex flex-col grow items-start justify-center min-h-px min-w-px overflow-clip relative shrink-0"},xt={class:"text-[15px] font-normal leading-[1.4] text-[#0b1419] text-nowrap"},ft={class:"flex gap-[10px] items-center shrink-0"},vt=["disabled"],mt=["innerHTML"],_t={class:"text-[16px] font-normal leading-[1.4] text-[#383c3e]"},ht={class:"flex flex-col items-start justify-center w-full"},gt={class:"text-[40px] font-bold leading-[1.2] text-[#0b1419] w-full"},wt={key:0,class:"flex flex-col items-start justify-center w-full"},yt={class:"text-[16px] font-normal text-[#0b1419] w-full"},kt=["innerHTML"],bt={key:1,class:"flex flex-col gap-[40px] items-start w-full"},Tt={key:0,class:"content-start flex flex-wrap gap-[5px] items-start relative shrink-0 w-full"},Mt={class:"text-[16px] font-normal leading-[1.4] text-[#6e7420] text-nowrap"},Lt={key:1,class:"flex flex-col md:flex-row gap-[30px] md:gap-[40px] items-start w-full"},Bt={key:0,class:"w-full md:w-[262px] shrink-0"},Ht=["src","alt"],Ct={class:"flex flex-col w-full md:basis-0 md:grow items-start min-h-px min-w-px relative shrink-0"},Pt={key:0,class:"flex flex-col items-start justify-start relative shrink-0 w-full"},Dt={class:"text-[16px] font-normal text-[#0b1419] w-full"},Rt=["innerHTML"],It=["href"],At={class:"text-[16px] font-semibold leading-[1.4] text-white text-nowrap"},$t={key:2,class:"flex flex-col gap-0 relative w-full"},jt={class:"flex gap-0 items-end relative"},zt=["innerHTML"],St=["innerHTML"],Xt=["innerHTML"],Ft={key:3,class:"flex flex-col gap-[30px] items-start w-full"},Gt={key:0,class:"flex flex-col gap-0 relative w-full"},Et={class:"flex gap-[8px] items-center py-0 h-[40px] relative"},qt={class:"border-b-2 border-[#335598] flex gap-[8px] items-center h-[40px]"},Nt=["innerHTML"],Wt={class:"flex flex-col gap-[10px] items-start w-full lg:w-full"},Vt={class:"h-[420px] relative rounded-[20px] shrink-0 w-full overflow-hidden"},Yt=["src"],Jt=["innerHTML"],Ot={key:1,class:"bg-[#edf4f7] h-[420px] overflow-hidden relative rounded-[15px] w-full"},Ut={class:"absolute flex flex-col gap-[15px] items-start left-[30px] top-[73px] w-[700px] max-w-[calc(100%-60px)] overflow-y-auto h-[347px] pr-[30px] pb-[30px] custom-scrollbar"},Zt={class:"relative shrink-0 text-[#6d7579] w-[50px] text-[16px] font-normal leading-[1.4]"},Kt={class:"flex-1 min-w-0 text-[#0b1419] text-[16px] font-normal leading-[1.4]"},Qt={key:4,class:"flex flex-col gap-[30px] items-start w-full"},es={key:0,class:"flex flex-col gap-0 relative w-full"},ts={class:"flex gap-[8px] items-center py-0 h-[40px] relative"},ss={class:"border-b-2 border-[#335598] flex gap-[8px] items-center h-[40px]"},ls=["innerHTML"],os={class:"flex flex-col gap-[10px] items-start w-full"},is={class:"bg-[#346079] h-[130px] relative rounded-[20px] shrink-0 w-full overflow-visible px-[15px] sm:px-[20px] md:px-[30px] py-[20px] sm:py-[25px] md:py-[30px] flex flex-col justify-between"},ns={class:"relative top-[5px] flex justify-between items-center w-full"},rs={class:"font-normal leading-[1.4] text-white text-[14px] sm:text-[16
1px] text-nowrap"},as={class:"font-normal leading-[1.4] text-white text-[14px] sm:text-[16px] text-nowrap"},cs={class:"flex items-center justify-center gap-[10px] sm:gap-[20px] w-full"},us=["innerHTML"],ps={class:"w-[15px] h-[15px] sm:w-[18px] sm:h-[18px] flex items-center justify-center"},ds=["innerHTML"],xs=["innerHTML"],fs=["innerHTML"],vs=["src"],ms={key:1,class:"bg-[#edf4f7] h-[420px] overflow-hidden relative rounded-[15px] w-full"},_s={class:"absolute flex flex-col gap-[15px] items-start left-[30px] top-[73px] w-[700px] max-w-[calc(100%-60px)] overflow-y-auto h-[347px] pr-[30px] pb-[30px] custom-scrollbar"},hs={class:"relative shrink-0 text-[#6d7579] w-[50px] text-[16px] font-normal leading-[1.4]"},gs={class:"flex-1 min-w-0 text-[#0b1419] text-[16px] font-normal leading-[1.4]"},ws={key:5,class:"flex flex-col gap-[20px] items-start w-full"},ys={key:0,class:"flex flex-col gap-0 relative w-full"},ks={class:"flex gap-[8px] items-center py-0 h-[40px] relative"},bs={class:"border-b-2 border-[#335598] flex gap-[8px] items-center h-[40px]"},Ts=["innerHTML"],Ms={class:"flex flex-col gap-[20px] items-start w-full"},Ls=["onClick"],Bs={class:"relative shrink-0 w-[52px] h-[52px]"},Hs=["src","alt"],Cs={class:"flex flex-col items-start gap-[4px] min-w-0 flex-1 pt-[2px]"},Ps={class:"text-[16px] font-semibold leading-[1.2] text-[#0b1419] max-w-full break-words"},Ds={class:"text-[14px] font-normal leading-[1.4] text-[#383c3e] shrink-0"},Rs={key:0,class:"w-full flex justify-center px-5 md:px-10 lg:px-[70px] pb-[40px] md:pb-[60px] lg:pb-20"},Is={class:"w-full max-w-[1700px] flex flex-col gap-[78px]"},As={class:"text-[32px] font-semibold leading-[1.2] text-[#0b1419]"},$s={class:"hidden lg:flex flex-col gap-[20px]"},js={class:"relative flex items-center"},zs=["innerHTML"],Ss=["onClick"],Xs={key:0,class:"bg-[#dfeaf1] flex gap-[10px] items-center px-[10px] py-[5px] rounded-[20px] w-fit"},Fs=["src","alt"],Gs=["innerHTML"],Es={class:"text-[14px] font-normal leading-[1.4] text-[#254455]"},qs={class:"text-[22px] font-semibold leading-[1.2] text-[#0b1419] line-clamp-2"},Ns={key:1,class:"text-[16px] font-normal leading-[1.4] text-[#383c3e] line-clamp-2 whitespace-pre-wrap"},Ws={class:"text-[15px] font-normal leading-[1.4] text-[#6d7579] mt-auto"},Vs=["innerHTML"],Ys={key:0,class:"flex justify-center items-center gap-2"},Js=["onClick"],Os=["innerHTML"],Us={class:"flex lg:hidden flex-col gap-[20px]"},Zs=["onClick"],Ks={key:0,class:"bg-[#dfeaf1] flex gap-[10px] items-center px-[10px] py-[5px] rounded-[20px] w-fit"},Qs=["src","alt"],el=["innerHTML"],tl={class:"text-[14px] font-normal leading-[1.4] text-[#254455]"},sl={class:"text-[22px] font-semibold leading-[1.2] text-[#0b1419] line-clamp-2"},ll={key:1,class:"text-[16px] font-normal leading-[1.4] text-[#383c3e] line-clamp-2 whitespace-pre-wrap"},ol={class:"text-[15px] font-normal leading-[1.4] text-[#6d7579] mt-auto"},il={key:0,class:"flex justify-center items-center gap-2"},nl=["onClick"],rl=["innerHTML"],N=3,al=Ie({__name:"[resourceId]",async setup(cl){let j,W;const V=Ae(),{$getIcon:f}=$e(),se=qe(),{user:F}=je(),_=h(null),G=h(null),P=h(!1),z=h(0),M=h(0),le=v(()=>M.value===0?0:z.value/M.value*100),oe=v(()=>V.params.resourceId),{data:H,pending:Y,error:J}=([j,W]=ze(()=>We(oe.value)),j=await j,W(),j),o=v(()=>{var e;return((e=H.value)==null?void 0:e.data)||null});S([Y,J,o],([e,t,a])=>{!e&&(t||!a)&&X("/education-resources/gotropmed/forbidden")},{immediate:!0});const C=v(()=>{var e,t;return((t=(e=o.value)==null?void 0:e.go_trop_med_resource_types)==null?void 0:t.some(a=>{var c;return((c=a.title)==null?void 0:c.toLowerCase())==="quiz"}))||!1}),m=h("video"),L=v(()=>{var l,r,x;const e=!!((l=o.value)!=null&&l.videoBlock),t=!!((r=o.value)!=null&&r.audioBlock),a=!!((x=o.value)!=null&&x.supplementalAssets&&o.value.supplementalAssets.length>0);return[e,t,a].filter(Boolean).length>=2});S(()=>o.value,e=>{var t;e&&(e.videoBlock?m.value="video":e.audioBlock?m.value="audio":(t=e.supplementalAssets)!=null&&t.length&&(m.value="documents"))},{immediate:!0});const ie=v(()=>{var t;const e=Re(V.path);return(t=o.value)!=null&&t.title?e.map((a,c)=>c===e.length-1?{...a,name:o.value.title}:a):e}),B=e=>e!=null&&e.url?e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:`${se.public.strapiUrl}${e.url}`:"",E=e=>e?Ye(e).format("MMMM D, YYYY"):"",ne=e=>{if(!(e!=null&&e.url))return;const t=B(e),a=e.name||t.split("/").pop()||"download",c=document.createElement("a");c.href=t,c.download=a,c.target="_blank",document.body.appendChild(c),c.click(),document.body.removeChild(c)},re=e=>e?e.toUpperCase().replace(".",""):"FILE",ae=e=>{let t=e.ext||"";if(!t&&e.name){const x=e.name.match(/\.([^.]+)$/);x&&(t=x[1])}t=t.toUpperCase().replace(/^\./,"");const c={DOC:"DOC",DOCX:"DOC",PDF:"PDF",PPT:"PPT",PPTX:"PPTX",XLS:"XLS",XLSX:"XLSX",TXT:"TXT",ZIP:"ZIP",RAR:"RAR",PNG:"PNG",JPG:"JPG",JPEG:"JPG",IMG:"IMG"}[t]||t||"PDF";return`/icons/${["DOC","PDF","PPT","PPTX","XLS","XLSX","TXT","ZIP","RAR","PNG","JPG","IMG"].includes(c)?c:"PDF"}.svg`},ce=e=>e?e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`:"0 B",ue=e=>{if(!e)return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/watch\?.*v=([^&\n?#]+)/,/youtu\.be\/([^?\n&#]+)/];for(const a of t){const c=e.match(a);if(c&&c[1])return c[1]}return null},pe=e=>{var a,c;if(!e)return"";let t="";if(e.includes("<iframe"))t=e;else if(e.includes("youtube.com")||e.includes("youtu.be")){const l=ue(e);
1if(l&&l.length===11){const r=typeof window<"u"?window.location.origin:"";t=`<iframe width="100%" height="100%" src="${r?`https://www.youtube.com/embed/${l}?enablejsapi=1&origin=${r}`:`https://www.youtube.com/embed/${l}?enablejsapi=1`}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen style="border-radius: 20px;"></iframe>`}else return console.warn("Invalid YouTube URL:",e),""}else if(e.includes("vimeo.com")){let l="";e.includes("vimeo.com/")&&(l=((c=(a=e.split("vimeo.com/")[1])==null?void 0:a.split("?")[0])==null?void 0:c.split("/").pop())||""),l&&(t=`<iframe width="100%" height="100%" src="https://player.vimeo.com/video/${l}" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen style="border-radius: 20px;"></iframe>`)}else t=`<iframe width="100%" height="100%" src="${e}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="border-radius: 20px;"></iframe>`;return te.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","src","style"]})},O=e=>{if(!e)return"";if(typeof window>"u")return e;const t=Je.parse(e);return te.sanitize(t)},D=h(!1),U=v(()=>{var t;return!o.value||!((t=F.value)!=null&&t.idImpex)?!1:(o.value.likedByImpexIds||[]).includes(String(F.value.idImpex))}),de=async e=>{var t,a;if(e==null||e.preventDefault(),e==null||e.stopPropagation(),!(!o.value||D.value)&&(t=F.value)!=null&&t.idImpex)try{D.value=!0;const c=!U.value,l=await Ve(o.value.documentId,{liked:c});l!=null&&l.data&&((a=H.value)!=null&&a.data)&&(H.value.data.likes=l.data.likes??H.value.data.likes,H.value.data.likedByImpexIds=l.data.likedByImpexIds??H.value.data.likedByImpexIds)}catch(c){console.error("Failed to toggle like:",c)}finally{D.value=!1}},w=v(()=>{var t;if(!o.value)return[];const e=[];return(t=o.value)!=null&&t.go_trop_med_resources_child&&e.push(...o.value.go_trop_med_resources_child),e}),xe=v(()=>{var a,c;if(!o.value)return"Related Resources";const e=(a=o.value.go_trop_med_resource_types)==null?void 0:a.some(l=>{var r;return((r=l.title)==null?void 0:r.toLowerCase())==="annual meeting"}),t=(c=o.value.annualMeetingBlock)==null?void 0:c.relatedHeadline;return e&&t?t:"Related Resources"}),T=h(null),q=h(0),fe=h(null),y=h(0),R=v(()=>Math.ceil(w.value.length/N)),ve=v(()=>{const e=y.value*N,t=e+N;return w.value.slice(e,t)}),I=h(1),A=()=>{if(!T.value){I.value=Math.ceil(w.value.length/2);return}const t=T.value.clientWidth<768?1:2;I.value=Math.ceil(w.value.length/t)};Se(()=>{A(),typeof window<"u"&&window.addEventListener("resize",A)}),Xe(()=>{typeof window<"u"&&window.removeEventListener("resize",A)}),S(()=>w.value.length,()=>{A()}),S(T,()=>{T.value&&A()});const Z=e=>{e==="prev"&&y.value>0?y.value--:e==="next"&&y.value<R.value-1&&y.value++},me=e=>{e>=0&&e<R.value&&(y.value=e)},_e=()=>{if(!T.value)return;const e=T.value,t=e.scrollLeft,a=e.clientWidth,c=e.querySelector('div[class*="snap-start"]');if(!c)return;const l=c.offsetWidth,r=a<768?20:30,x=a<768?1:2,$=Math.ceil(w.value.length/x);I.value!==$&&(I.value=$);const Pe=Math.round(t/((l+r)*x));q.value=Math.min(Pe,$-1)},he=e=>{if(!T.value)return;const t=T.value,a=t.clientWidth,c=t.querySelector('div[class*="snap-start"]');if(!c)return;const l=c.offsetWidth,r=a<768?20:30,x=a<768?1:2,$=e*(l+r)*x;t.scrollTo({left:$,behavior:"smooth"})},ge=v(()=>{var c,l;if(!((l=(c=o.value)==null?void 0:c.videoBlock)!=null&&l.transcript))return[];const t=o.value.videoBlock.transcript.split(`
2`).filter(r=>r.trim()),a=/^(\d{1,2}:\d{2})\s+(.+)$/;return t.map(r=>{const x=r.match(a);return x?{timecode:x[1],text:x[2].trim()}:{timecode:"",text:r.trim()}}).filter(r=>r.text)}),we=v(()=>{var c,l;if(!((l=(c=o.value)==null?void 0:c.audioBlock)!=null&&l.transcript))return[];const t=o.value.audioBlock.transcript.split(`
3`).filter(r=>r.trim()),a=/^(\d{1,2}:\d{2})\s+(.+)$/;return t.map(r=>{const x=r.match(a);return x?{timecode:x[1],text:x[2].trim()}:{timecode:"",text:r.trim()}}).filter(r=>r.text)}),K=v(()=>{var e,t;return((e=o.value)==null?void 0:e.description)||((t=o.value)==null?void 0:t.previewDescription)||""}),ye=v(()=>K.value?K.value.split(`
4
5`).filter(e=>e.trim()):[]),ke=v(()=>{var t,a,c;const e=((t=o.value)==null?void 0:t.headline)||((a=o.value)==null?void 0:a.description)||((c=o.value)==null?void 0:c.previewDescription);return e?e.split(`
6
7`).filter(l=>l.trim()):[]}),be=()=>{_.value&&(P.value?_.value.pause():_.value.play(),P.value=!P.value)},Te=()=>{_.value&&(_.value.currentTime=Math.max(0,_.value.currentTime-30))},Me=()=>{_.value&&(_.value.currentTime=Math.min(M.value,_.value.currentTime+30))},Le=e=>{if(!_.value||!G.value||M.value===0)return;const t=G.value.getBoundingClientRect(),a=e.clientX-t.left,c=t.width,r=a/c*M.value;_.value.currentTime=Math.max(0,Math.min(r,M.value))},Be=()=>{_.value&&(M.value=_.value.duration)},He=()=>{_.value&&(z.value=_.value.currentTime)},Ce=()=>{P.value=!1,z.value=0},Q=e=>{if(!e||isNaN(e))return"0:00";const t=Math.floor(e/60),a=Math.floor(e%60);return`${t}:${a.toString().padStart(2,"0")}`};return Fe({title:v(()=>{var e,t,a;return((t=(e=o.value)==null?void 0:e.seo)==null?void 0:t.metaTitle)||((a=o.value)==null?void 0:a.title)||"GoTropMed Resource | ASTMH"}),meta:[{name:"description",content:v(()=>{var e,t,a;return((t=(e=o.value)==null?void 0:e.seo)==null?void 0:t.metaDescription)||((a=o.value)==null?void 0:a.previewDescription)||"GoTropMed resource from ASTMH"})},{property:"og:image",content:v(()=>{var e,t,a;return((a=(t=(e=o.value)==null?void 0:e.seo)==null?void 0:t.shareImage)==null?void 0:a.url)||void 0})}]}),(e,t)=>{var c;const a=De;return p(Y)?(n(),i("div",Oe,t[6]||(t[6]=[s("p",{class:"text-gray-400"},null,-1)]))):p(J)||!o.value?(n(),i("div",Ue,t[7]||(t[7]=[s("p",{class:"text-red-500"}
7,"Resource not found",-1)]))):(n(),i("div",Ze,[s("div",Ke,[s("div",Qe,[Ge(a,{items:ie.value},null,8,["items"])])]),s("div",et,[s("div",tt,[s("div",st,[s("button",{onClick:t[0]||(t[0]=l=>("navigateTo"in e?e.navigateTo:p(X))("/education-resources/gotropmed")),class:"border border-[#335598] flex gap-[10px] items-center justify-center h-[40px] px-[20px] py-[10px] rounded-[20px] hover:opacity-80 transition-opacity shrink-0"},[s("i",{class:"w-5 h-5 fill-[#335598] shrink-0",innerHTML:p(f)("arrow-left")},null,8,lt),t[8]||(t[8]=s("span",{class:"text-[15px] font-semibold leading-[1.4] text-[#335598]"}," All Resources ",-1))])]),s("div",ot,[s("div",it,[s("div",nt,[o.value.go_trop_med_resource_types&&o.value.go_trop_med_resource_types.length>0?(n(),i("div",rt,[o.value.go_trop_med_resource_types[0].icon&&o.value.go_trop_med_resource_types[0].icon.url?(n(),i("img",{key:0,src:B(o.value.go_trop_med_resource_types[0].icon),alt:o.value.go_trop_med_resource_types[0].title,class:"w-5 h-5 shrink-0"},null,8,at)):((c=o.value.go_trop_med_resource_types[0].title)==null?void 0:c.toLowerCase())==="quiz"?(n(),i("i",{key:1,class:"w-4 h-4 text-[#254455] shrink-0",innerHTML:p(f)("quiz")},null,8,ct)):(n(),i("i",{key:2,class:"w-5 h-5 fill-[#254455] shrink-0",innerHTML:p(f)("pdf-small")},null,8,ut)),s("span",pt,d(o.value.go_trop_med_resource_types[0].title),1)])):u("",!0),s("div",dt,[s("p",xt,d(E(o.value.publishedDate)),1)]),s("div",ft,[s("button",{class:g(["rounded-[40px] w-[35px] h-[35px] flex items-center justify-center shrink-0 transition-opacity",D.value?"opacity-50 cursor-not-allowed":"hover:opacity-80 cursor-pointer",U.value?"bg-[#335598]":"bg-[#b5be35] cursor-pointer"]),onClick:Ee(de,["stop","prevent"]),disabled:D.value,type:"button"},[s("i",{class:"w-5 h-5 fill-white",innerHTML:p(f)("like")},null,8,mt)],10,vt),s("p",_t,d(o.value.likes||0),1)])]),s("div",ht,[s("h1",gt,d(o.value.title),1)]),!C.value&&(o.value.headline||o.value.description||o.value.previewDescription)?(n(),i("div",wt,[s("div",yt,[(n(!0),i(k,null,b(ke.value,(l,r)=>(n(),i("p",{key:r,class:"mb-4 last:mb-0 whitespace-pre-wrap",innerHTML:O(l)},null,8,kt))),128))])])):u("",!0),C.value?(n(),i("div",bt,[o.value.go_trop_med_topics&&o.value.go_trop_med_topics.length>0?(n(),i("div",Tt,[(n(!0),i(k,null,b(o.value.go_trop_med_topics,(l,r)=>(n(),i("div",{key:r,class:"bg-[#e4e8ab] flex gap-[10px] items-center px-[10px] py-[5px] rounded-[20px] shrink-0"},[s("p",Mt,d(l.title),1)]))),128))])):u("",!0),o.value.quizBlock?(n(),i("div",Lt,[o.value.quizBlock.primaryImage?(n(),i("div",Bt,[s("img",{src:B(o.value.quizBlock.primaryImage),alt:o.value.title,class:"w-full h-auto max-w-full object-contain pointer-events-none rounded-[10px] md:rounded-none block"},null,8,Ht)])):u("",!0),s("div",Ct,[o.value.description||o.value.previewDescription?(n(),i("div",Pt,[s("div",Dt,[(n(!0),i(k,null,b(ye.value,(l,r)=>(n(),i("p",{key:r,class:"mb-4 last:mb-0 whitespace-pre-wrap",innerHTML:O(l)},null,8,Rt))),128))]),t[9]||(t[9]=s("div",{class:"h-[20px] shrink-0 w-full"},null,-1))])):u("",!0),o.value.quizBlock.link&&o.value.quizBlock.lable?(n(),i("a",{key:1,href:o.value.quizBlock.link,target:"_blank",rel:"noopener noreferrer",style:ee({backgroundColor:o.value.quizBlock.color||"#f36b21"}),class:"flex gap-[10px] h-[50px] items-center justify-center px-[30px] md:px-[40px] py-[13px] rounded-[30px] shrink-0 hover:opacity-90 transition-opacity w-full md:w-auto"},[s("p",At,d(o.value.quizBlock.lable),1)],12,It)):u("",!0)])])):u("",!0)])):u("",!0),!C.value&&L.value?(n(),i("div",$t,[t[10]||(t[10]=s("div",{class:"absolute left-0 right-0 top-[39px] h-px bg-[#e2e3e4]"},null,-1)),s("div",jt,[o.value.videoBlock?(n(),i("button",{key:0,onClick:t[1]||(t[1]=l=>m.value="video"),class:g(["flex gap-[8px] items-center pr-[10px] py-0 h-[40px] relative shrink-0 cursor-pointer transition-colors",m.value==="video"?"border-b-2 border-[#335598]":""])},[s("i",{class:g(["w-5 h-5 shrink-0",m.value==="video"?"text-[#335598]":"text-[#a7acaf]"]),innerHTML:p(f)("video-library")},null,10,zt),s("p",{class:g(["text-[16px] font-semibold leading-[1.2]",m.value==="video"?"text-[#335598]":"text-[#a7acaf]"])}," Video ",2)],2)):u("",!0),o.value.audioBlock?(n(),i("button",{key:1,onClick:t[2]||(t[2]=l=>m.value="audio"),class:g(["flex gap-[8px] items-center py-0 h-[40px] relative shrink-0 cursor-pointer transition-colors",o.value.videoBlock?"px-[10px]":"pr-[10px]",m.value==="audio"?"border-b-2 border-[#335598]":""])},[s("i",{class:g(["w-5 h-5 shrink-0",m.value==="audio"?"text-[#335598]":"text-[#a7acaf]"]),innerHTML:p(f)("volume")},null,10,St),s("p",{class:g(["text-[16px] font-semibold leading-[1.2]",m.value==="audio"?"text-[#335598]":"text-[#a7acaf]"])}," Audio ",2)],2)):u("",!0),o.value.supplementalAssets&&o.value.supplementalAssets.length>0?(n(),i("button",{key:2,onClick:t[3]||(t[3]=l=>m.value="documents"),class:g(["flex gap-[8px] items-center py-0 h-[40px] relative shrink-0 cursor-pointer transition-colors",o.value.videoBlock||o.value.audioBlock?"px-[10px]":"pr-[10px]",m.value==="documents"?"border-b-2 border-[#335598]":""])},[s("i",{class:g(["w-5 h-5 shrink-0",m.value==="documents"?"text-[#335598]":"text-[#a7acaf]"]),innerHTML:p(f)("pdf-small")},null,10,Xt),s("p",{class:g(["text-[16px] font-semibold leading-[1.2]",m.value==="documents"?"text-[#335598]":"text-[#a7acaf]"])}," Supplemental Documents ",2)],2)):u("",!0)])])):u("",!0),!C.value&&o.value.videoBlock&&(!L.value||m.value==="video")?(n(),i("div",Ft,[L.value?u("",!0):(n(),i("div",Gt,[t[12]||(t[12]=s("div",{class:"absolute left-0 right-0 top-[39px] h-px bg-[#e2e3e4]"},null,-1)),s("div",Et,[s("div",qt,[s("i",{class:"w-5 h-5 text-[#335598] shrink-0",innerHTML:p(f)("video-library")},null,8,Nt),t[11]||(t[11]=s("p",{class:"text-[16px] font-semibold leading-[1.2] text-[#335598]"}," Video ",-1))])])])),s("div",Wt,[s("div",Vt,[o.value.videoBlock.videoSource==="Uploaded video asset"&&o.value.videoBlock.videoFile?(n(),i("video",{key:0,src:B(o.value.videoBlock.videoFile),controls:"",class:"w-full h-full object-cover rounded-[20px]"},null,8,Yt)):o.value.videoBlock.videoSource==="Embed URL Link"&&o.value.videoBlock.videoEmbed?(n(),i("div",{key:1,class:"w-full h-full rounded-[20px] overflow-hidden",innerHTML:pe(o.value.videoBlock.videoEmbed)},null,8,Jt)):u("",!0)])]),o.value.videoBlock.transcript?(n(),i("div",Ot,[t[13]||(t[13]=s("p",{class:"absolute font-semibold leading-[1.3] left-[30px] text-[#0b1419] text-[18px] text-nowrap top-[30px]"}," Video Transcript ",-1)),s("div",Ut,[(n(!0),i(k,null,b(ge.value,(l,r)=>(n(),i("div",{key:r,class:"flex gap-[23px] items-start w-full"}
7,[s("p",Zt,d(l.timecode),1),s("p",Kt,d(l.text),1)]))),128))])])):u("",!0)])):u("",!0),!C.value&&o.value.audioBlock&&(!L.value||m.value==="audio")?(n(),i("div",Qt,[L.value?u("",!0):(n(),i("div",es,[t[15]||(t[15]=s("div",{class:"absolute left-0 right-0 top-[39px] h-px bg-[#e2e3e4]"},null,-1)),s("div",ts,[s("div",ss,[s("i",{class:"w-5 h-5 text-[#335598] shrink-0",innerHTML:p(f)("volume")},null,8,ls),t[14]||(t[14]=s("p",{class:"text-[16px] font-semibold leading-[1.2] text-[#335598]"}," Audio ",-1))])])])),s("div",os,[s("div",is,[s("div",{ref_key:"progressBarRef",ref:G,onClick:Le,class:"bg-[#427999] h-[7px] min-h-[7px] rounded-[54px] cursor-pointer relative w-full shrink-0",style:{"background-color":"#427999"}},[s("div",{class:"absolute bg-white h-[10px] w-[10px] rounded-full top-[-1.5px] transition-all duration-100 pointer-events-none z-10",style:ee({left:`calc(${le.value}% - 5px)`})},null,4)],512),s("div",ns,[s("p",rs,d(Q(z.value)),1),s("p",as,d(Q(M.value)),1)]),s("div",cs,[s("button",{onClick:Te,class:"w-7 h-7 flex items-center justify-center hover:opacity-80 transition-opacity shrink-0"},[s("i",{class:"w-7 h-7 fill-white shrink-0",innerHTML:p(f)("rewind-audio")},null,8,us)]),s("button",{onClick:be,class:"bg-white rounded-full w-[55px] h-[55px] sm:w-[55px] sm:h-[55px] hover:opacity-90 transition-opacity relative overflow-hidden flex items-center justify-center shrink-0"},[s("div",ps,[P.value?(n(),i("i",{key:1,class:"absolute left-[16px] top-[16px] w-[15px] h-[15px] sm:w-[18px] sm:h-[18px] text-[#346079] shrink-0",innerHTML:p(f)("pause")},null,8,xs)):(n(),i("i",{key:0,class:"absolute left-[22px] top-[20px] w-[15px] h-[15px] sm:w-[15px] sm:h-[15px] fill-[#346079] shrink-0",innerHTML:p(f)("play-audio")},null,8,ds))])]),s("button",{onClick:Me,class:"w-7 h-7 flex items-center justify-center hover:opacity-80 transition-opacity shrink-0"},[s("i",{class:"w-7 h-7 fill-white shrink-0",innerHTML:p(f)("forward-audio")},null,8,fs)])]),s("audio",{ref_key:"audioElement",ref:_,src:o.value.audioBlock.audioFile?B(o.value.audioBlock.audioFile):"",onLoadedmetadata:Be,onTimeupdate:He,onEnded:Ce},null,40,vs)])]),o.value.audioBlock.transcript?(n(),i("div",ms,[t[16]||(t[16]=s("p",{class:"absolute font-semibold leading-[1.3] left-[30px] text-[#0b1419] text-[18px] text-nowrap top-[30px]"}," Audio Transcript ",-1)),s("div",_s,[(n(!0),i(k,null,b(we.value,(l,r)=>(n(),i("div",{key:r,class:"flex gap-[23px] items-start w-full"},[s("p",hs,d(l.timecode),1),s("p",gs,d(l.text),1)]))),128))])])):u("",!0)])):u("",!0),!C.value&&o.value.supplementalAssets&&o.value.supplementalAssets.length>0&&(!L.value||m.value==="documents")?(n(),i("div",ws,[L.value?u("",!0):(n(),i("div",ys,[t[18]||(t[18]=s("div",{class:"absolute left-0 right-0 top-[39px] h-px bg-[#e2e3e4]"},null,-1)),s("div",ks,[s("div",bs,[s("i",{class:"w-5 h-5 text-[#335598] shrink-0",innerHTML:p(f)("pdf")},null,8,Ts),t[17]||(t[17]=s("p",{class:"text-[16px] font-semibold leading-[1.2] text-[#335598]"}," Supplemental Documents ",-1))])])])),s("div",Ms,[(n(!0),i(k,null,b(o.value.supplementalAssets,(l,r)=>(n(),i("div",{key:r,class:"flex gap-[20px] min-h-[52px] items-start cursor-pointer hover:opacity-80 transition-opacity w-[760px] max-w-full py-[2px]",onClick:x=>ne(l)},[s("div",Bs,[s("img",{src:ae(l),alt:`${re(l.ext)} file`,class:"w-full h-full"},null,8,Hs)]),s("div",Cs,[s("p",Ps,d(l.name||"Document"),1),s("p",Ds,d(ce(l.size)),1)])],8,Ls))),128))])])):u("",!0)])]),t[19]||(t[19]=s("div",{class:"hidden lg:block flex-1"},null,-1))])]),w.value&&w.value.length>0?(n(),i("div",Rs,[s("div",Is,[s("h2",As,d(xe.value),1),s("div",$s,[s("div",js,[y.value>0?(n(),i("button",{key:0,onClick:t[4]||(t[4]=l=>Z("prev")),class:"absolute left-0 z-10 bg-white rounded-full w-[40px] h-[40px] flex items-center justify-center shadow-[0px_2px_8px_0px_rgba(0,0,0,0.1)] hover:opacity-80 transition-opacity shrink-0",style:{transform:"translateX(-50%)"}},[s("i",{class:"w-5 h-5 fill-[#6d7579] shrink-0",innerHTML:p(f)("arrow-left")},null,8,zs)])):u("",!0),s("div",{ref_key:"desktopRelatedResourcesContainer",ref:fe,class:"flex gap-[40px] overflow-hidden w-full"},[(n(!0),i(k,null,b(ve.value,l=>(n(),i("div",{key:l.id,class:"bg-white h-[254px] rounded-[20px] border border-[#e2e3e4] shadow-[0px_4px_15px_0px_rgba(23,42,53,0.08)] p-5 flex flex-col gap-[20px] cursor-pointer hover:opacity-90 transition-opacity w-[calc((100%-80p
7x)/3)] flex-shrink-0",onClick:r=>("navigateTo"in e?e.navigateTo:p(X))(`/education-resources/gotropmed/${l.documentId}`)},[l.go_trop_med_resource_types&&l.go_trop_med_resource_types.length>0?(n(),i("div",Xs,[l.go_trop_med_resource_types[0].icon&&l.go_trop_med_resource_types[0].icon.url?(n(),i("img",{key:0,src:B(l.go_trop_med_resource_types[0].icon),alt:l.go_trop_med_resource_types[0].title,class:"w-5 h-5 shrink-0"},null,8,Fs)):(n(),i("i",{key:1,class:"w-5 h-5 fill-[#254455] shrink-0",innerHTML:p(f)("pdf-small")},null,8,Gs)),s("span",Es,d(l.go_trop_med_resource_types[0].title),1)])):u("",!0),s("h3",qs,d(l.title),1),l.previewDescription?(n(),i("p",Ns,d(l.previewDescription),1)):u("",!0),s("p",Ws,d(E(l.publishedDate)),1)],8,Ss))),128))],512),y.value<R.value-1?(n(),i("button",{key:1,onClick:t[5]||(t[5]=l=>Z("next")),class:"absolute right-0 z-10 bg-white rounded-full w-[40px] h-[40px] flex items-center justify-center shadow-[0px_2px_8px_0px_rgba(0,0,0,0.1)] hover:opacity-80 transition-opacity shrink-0",style:{transform:"translateX(50%)"}},[s("i",{class:"w-5 h-5 fill-[#6d7579] shrink-0",innerHTML:p(f)("arrow-right")},null,8,Vs)])):u("",!0)]),R.value>1?(n(),i("div",Ys,[(n(!0),i(k,null,b(R.value,(l,r)=>(n(),i("div",{key:r,onClick:x=>me(r),class:"cursor-pointer"},[s("i",{class:g([{"fill-[#00B4D8]":y.value===r,"fill-[#6B7280]":y.value!==r},"transition-colors"]),innerHTML:p(f)("nav-dot")},null,10,Os)],8,Js))),128))])):u("",!0)]),s("div",Us,[s("div",{ref_key:"relatedResourcesContainer",ref:T,class:"flex gap-[20px] md:gap-[30px] overflow-x-auto scroll-smooth snap-x snap-mandatory hide-scrollbar py-2 px-2 -mx-2",onScroll:_e},[(n(!0),i(k,null,b(w.value,l=>(n(),i("div",{key:l.id,class:"bg-white h-[254px] rounded-[20px] shadow-[0px_0px_0px_1px_rgba(152,168,177,0.08),0px_4px_15px_0px_rgba(23,42,53,0.08)] p-5 flex flex-col gap-[20px] cursor-pointer hover:opacity-90 transition-opacity flex-none w-[calc(100%-40px)] sm:w-[calc(100%-40px)] md:w-[calc((100%-60px)/2)] snap-start",onClick:r=>("navigateTo"in e?e.navigateTo:p(X))(`/education-resources/gotropmed/${l.documentId}`)},[l.go_trop_med_resource_types&&l.go_trop_med_resource_types.length>0?(n(),i("div",Ks,[l.go_trop_med_resource_types[0].icon&&l.go_trop_med_resource_types[0].icon.url?(n(),i("img",{key:0,src:B(l.go_trop_med_resource_types[0].icon),alt:l.go_trop_med_resource_types[0].title,class:"w-5 h-5 shrink-0"},null,8,Qs)):(n(),i("i",{key:1,class:"w-5 h-5 fill-[#254455] shrink-0",innerHTML:p(f)("pdf-small")},null,8,el)),s("span",tl,d(l.go_trop_med_resource_types[0].title),1)])):u("",!0),s("h3",sl,d(l.title),1),l.previewDescription?(n(),i("p",ll,d(l.previewDescription),1)):u("",!0),s("p",ol,d(E(l.publishedDate)),1)],8,Zs))),128))],544),w.value.length>0?(n(),i("div",il,[(n(!0),i(k,null,b(I.value,(l,r)=>(n(),i("div",{key:r,onClick:x=>he(r),class:"cursor-pointer"},[s("i",{class:g([{"fill-[#00B4D8]":q.value===r,"fill-[#6B7280]":q.value!==r},"transition-colors"]),innerHTML:p(f)("nav-dot")},null,10,rl)],8,nl))),128))])):u("",!0)])])])):u("",!0)]))}}}),_l=Ne(al,[["__scopeId","data-v-c879aca1"]]);export{_l as default};

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.