(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1055],{4653:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs",function(){return a(654)}])},3950:function(t,e,a){"use strict";var n=a(5893),r=a(9008),i=a.n(r),s=a(1163);e.Z=t=>{let{title:e="Virtual Triage - Online Doctor Appointments & Healthcare Services UK",description:a="Book online doctor appointments, find GPs, and access healthcare services across the UK. Virtual consultations with licensed practitioners. Book your appointment today.",keywords:r="online doctor UK, GP near me, family doctor UK, virtual consultations, telehealth UK, book doctor appointment, NHS alternative, private GP UK",canonical:o,ogImage:l="https://virtualtriage.ai/assets/og/default.jpg",ogType:c="website",structuredData:m,noindex:h=!1,location:d="UK"}=t,u=(0,s.useRouter)(),p="https://virtualtriage.ai",g=e.includes("Virtual Triage")?e:"".concat(e," | Virtual Triage"),y=o||"".concat(p).concat(u.asPath.split("?")[0]),f=m||{"@context":"https://schema.org","@type":"MedicalBusiness",name:"Virtual Triage",description:"Online healthcare platform connecting patients with licensed medical practitioners across the UK",url:p,logo:"".concat(p,"/assets/Virtual%20Triage.png"),address:{"@type":"PostalAddress",addressCountry:"GB",addressLocality:d},areaServed:{"@type":"Country",name:"United Kingdom"},sameAs:["https://www.facebook.com/virtualtriage","https://www.instagram.com/virtualtriage","https://www.linkedin.com/company/virtualtriage","https://twitter.com/virtualtriage"]};return(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:g}),(0,n.jsx)("meta",{name:"title",content:g}),(0,n.jsx)("meta",{name:"description",content:a}),(0,n.jsx)("meta",{name:"keywords",content:r}),(0,n.jsx)("meta",{name:"robots",content:h?"noindex,nofollow":"index,follow"}),(0,n.jsx)("meta",{name:"language",content:"English"}),(0,n.jsx)("meta",{name:"revisit-after",content:"7 days"}),(0,n.jsx)("meta",{name:"author",content:"Virtual Triage"}),(0,n.jsx)("meta",{name:"geo.region",content:"GB"}),(0,n.jsx)("meta",{name:"geo.placename",content:d}),(0,n.jsx)("link",{rel:"canonical",href:y}),(0,n.jsx)("meta",{property:"og:type",content:c}),(0,n.jsx)("meta",{property:"og:url",content:y}),(0,n.jsx)("meta",{property:"og:title",content:g}),(0,n.jsx)("meta",{property:"og:description",content:a}),(0,n.jsx)("meta",{property:"og:image",content:l}),(0,n.jsx)("meta",{property:"og:site_name",content:"Virtual Triage"}),(0,n.jsx)("meta",{property:"og:locale",content:"en_GB"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:url",content:y}),(0,n.jsx)("meta",{name:"twitter:title",content:g}),(0,n.jsx)("meta",{name:"twitter:description",content:a}),(0,n.jsx)("meta",{name:"twitter:image",content:l}),(0,n.jsx)("meta",{name:"twitter:site",content:"@virtualtriage"}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(f)}})]})}},6152:function(t,e,a){"use strict";a.d(e,{$6:function(){return h},$h:function(){return d},T$:function(){return l},nC:function(){return o},tl:function(){return u}});var n=a(5893),r=a(1664),i=a.n(r);let s="https://virtualtriage.ai",o=t=>{let{posts:e,canonicalUrl:a,title:n,description:r}=t;return{"@context":"https://schema.org","@type":"CollectionPage","@id":a,url:a,name:n,description:r,isPartOf:{"@type":"WebSite",name:"Virtual Triage",url:s},mainEntity:{"@type":"ItemList",itemListElement:e.map((t,e)=>({"@type":"ListItem",position:e+1,url:"".concat(s).concat(t.slug),name:t.title}))}}},l=t=>{let e=[{"@type":"ListItem",position:1,name:"Home",item:"".concat(s,"/")},{"@type":"ListItem",position:2,name:"Blog",item:"".concat(s,"/blogs")}];return t>1&&e.push({"@type":"ListItem",position:3,name:"Page ".concat(t),item:"".concat(s,"/blogs/page/").concat(t)}),{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e}},c=t=>t?new Date(t).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"",m=t=>{if(!t)return"2 min read";let e=t.split(" ").length;return"".concat(Math.max(1,Math.round(e/200))," min read")},h=t=>{let{post:e}=t;if(!e)return null;let a=e.slug.split("/").pop();return(0,n.jsx)("section",{className:"featured-blog",children:(0,n.jsxs)("div",{className:"featured-container",children:[(0,n.jsx)("div",{className:"featured-image",children:(0,n.jsx)("img",{src:e.hero_image_url||"/assets/Virtual%20Triage.png",alt:e.title})}),(0,n.jsxs)("div",{className:"featured-content",children:[(0,n.jsxs)("div",{className:"featured-meta",children:[(0,n.jsx)("span",{className:"badge",children:"News"}),(0,n.jsx)("span",{className:"read-time",children:m(e.meta_description)})]}),(0,n.jsx)("h1",{children:e.title}),(0,n.jsxs)("p",{className:"featured-date",children:[c(e.publish_date_iso)," • ",m(e.meta_description)]}),(0,n.jsx)(i(),{href:"/blog/".concat(a),className:"read-more",children:"Read More →"})]})]})})},d=t=>{let{post:e}=t,a=e.slug.split("/").pop();return(0,n.jsxs)("div",{className:"blog-card",children:[(0,n.jsx)("img",{src:e.hero_image_url||"https://via.placeholder.com/400x250",alt:e.title}),(0,n.jsxs)("div",{className:"card-content",children:[(0,n.jsx)("h3",{children:e.title}),(0,n.jsx)("span",{className:"date",children:c(e.publish_date_iso)}),(0,n.jsx)(i(),{href:"/blog/".concat(a),className:"read-more-link",children:"Read More →"})]})]})},u=t=>{let{currentPage:e,totalPages:a}=t;return a<=1?null:(0,n.jsxs)("nav",{className:"blog-pagination","aria-label":"Blog pagination",children:[e>1?(0,n.jsx)(i(),{href:e-1<=1?"/blogs":"/blogs/page/".concat(e-1),className:"pagination-btn",children:"← Previous"}):(0,n.jsx)("span",{className:"pagination-btn pagination-btn-disabled","aria-disabled":"true",children:"← Previous"}),(0,n.jsxs)("span",{className:"pagination-status",children:["Page ",e," of ",a]}),e<a?(0,n.jsx)(i(),{href:"/blogs/page/".concat(e+1),className:"pagination-btn",children:"Next →"}):(0,n.jsx)("span",{className:"pagination-btn pagination-btn-disabled","aria-disabled":"true",children:"Next →"})]})}},255:function(t,e,a){"use strict";a.d(e,{A:function(){return n}});let n="/api/blog"},654:function(t,e,a){"use strict";a.r(e),a.d(e,{__N_SSG:function(){return y},default:function(){return f}});var n=a(5893),r=a(7294),i=a(9008),s=a.n(i),o=a(7317),l=a(2194),c=a(3950),m=a(7438),h=a(255);a(3454);var d=a(6152);let u="Healthcare Blog – Medical Tips & Advice | Virtual Triage",p="Read expert healthcare articles, GP advice, and medical tips from Virtual Triage's team of licensed UK practitioners.",g="https://virtualtriage.ai/blogs";var y=!0;function f(t){let{initialFeatured:e=null,initialPosts:a=[],initialTotalPages:i=1}=t,[y,f]=(0,r.useState)(e),[x,j]=(0,r.useState)(a),[v,_]=(0,r.useState)(i),[w,b]=(0,r.useState)(!e&&0===a.length);if((0,r.useEffect)(()=>{(async()=>{try{var t;let e=await (0,m.ft)("".concat(h.A,"?limit=").concat(7,"&offset=0"),{},m.ej.BLOG_LIST),a=Array.isArray(e)?e:e.items||[],n=Array.isArray(e)?a.length:null!==(t=e.total)&&void 0!==t?t:a.length;f(a[0]||null),j(a.slice(1,7)),_(Math.max(1,Math.ceil(Math.max(0,n-1)/6)))}catch(t){console.error(t)}finally{b(!1)}})()},[]),w)return(0,n.jsx)("div",{className:"loading",children:"Loading blogs..."});let S=y?[y,...x]:x;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{title:u,description:p,canonical:g,structuredData:(0,d.nC)({posts:S,canonicalUrl:g,title:u,description:p})}),(0,n.jsx)(s(),{children:(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,d.T$)(1))}})}),(0,n.jsx)(o.Z,{}),(0,n.jsx)(d.$6,{post:y}),(0,n.jsx)("section",{className:"recent-section",children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsx)("h2",{children:"Our Recent Articles"}),(0,n.jsx)("div",{className:"blog-grid",children:x.map(t=>(0,n.jsx)(d.$h,{post:t},t.slug))}),(0,n.jsx)(d.tl,{currentPage:1,totalPages:v})]})}),(0,n.jsx)(l.Z,{})]})}},7438:function(t,e,a){"use strict";a.d(e,{ej:function(){return i},ft:function(){return s}});class n{generateKey(t,e){return"".concat(this.cachePrefix).concat(t,"_").concat(e)}isValid(t){if(!t)return!1;let e=Date.now();return t.timestamp+t.ttl>e}get(t,e){let a=this.generateKey(t,e);if(this.memoryCache.has(a)){let t=this.memoryCache.get(a);if(this.isValid(t))return t.data;this.memoryCache.delete(a)}try{let t=localStorage.getItem(a);if(t){let e=JSON.parse(t);if(this.isValid(e))return this.setMemoryCache(a,e),e.data;localStorage.removeItem(a)}}catch(t){}return null}set(t,e,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.defaultTTL,r=this.generateKey(t,e),i={data:a,timestamp:Date.now(),ttl:n};this.setMemoryCache(r,i);try{localStorage.setItem(r,JSON.stringify(i))}catch(t){}}setMemoryCache(t,e){if(this.memoryCache.size>=this.maxMemorySize){let t=this.memoryCache.keys().next().value;this.memoryCache.delete(t)}this.memoryCache.set(t,e)}invalidate(t,e){let a=this.generateKey(t,e);this.memoryCache.delete(a);try{localStorage.removeItem(a)}catch(t){}}invalidateType(t){let e="".concat(this.cachePrefix).concat(t,"_");for(let t of this.memoryCache.keys())t.startsWith(e)&&this.memoryCache.delete(t);try{let t=[];for(let a=0;a<localStorage.length;a++){let n=localStorage.key(a);n&&n.startsWith(e)&&t.push(n)}t.forEach(t=>localStorage.removeItem(t))}catch(t){}}clear(){this.memoryCache.clear();try{let t=[];for(let e=0;e<localStorage.length;e++){let a=localStorage.key(e);a&&a.startsWith(this.cachePrefix)&&t.push(a)}t.forEach(t=>localStorage.removeItem(t))}catch(t){}}getStats(){let t=this.memoryCache.size,e=0;try{for(let t=0;t<localStorage.length;t++){let a=localStorage.key(t);a&&a.startsWith(this.cachePrefix)&&e++}}catch(t){}return{memory:t,localStorage:e,total:t+e}}constructor(){this.memoryCache=new Map,this.cachePrefix="vt_blog_",this.defaultTTL=3e5,this.maxMemorySize=50}}let r=new n,i={BLOG_POST:{ttl:6e5,type:"post"},BLOG_LIST:{ttl:3e5,type:"list"},RELATED_POSTS:{ttl:9e5,type:"related"}},s=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,{type:n,ttl:i}=a,s=t.split("/").pop()||"index",o=r.get(n,s);if(o)return o;try{let a=await fetch(t,{...e,headers:{"Content-Type":"application/json",...e.headers}});if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));let o=await a.json();return r.set(n,s,o,i),o}catch(t){throw console.error("Fetch with cache failed:",t),t}}}},function(t){t.O(0,[3365,7066,801,1890,8884,2888,9774,179],function(){return t(t.s=4653)}),_N_E=t.O()}]);