(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[235],{858:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/video/[page]",function(){return r(8657)}])},7256:function(e,t,r){"use strict";r.d(t,{y:function(){return o}});var n=r(5893),s=r(5675),a=r.n(s),l=r(2417),c=r(1664),i=r.n(c);let o=e=>{let{bannerImage:t,bannerText:r,ctaButton:s,subText:c,podcastSubText:o=!1}=e;return(0,n.jsxs)("div",{className:"relative z-10 h-[430px] w-screen overflow-hidden md:h-[409px] lg:h-[570.75px]",children:[(0,n.jsx)(a(),{src:t.url,alt:t.name,layout:"fill",objectFit:"cover",className:"inset-0 object-[right_70%] lg:object-[right_40%] xl:object-[right_30%] xxl:object-[right_25%]",priority:!0}),(0,n.jsx)("div",{className:"absolute inset-0 bg-blue-primary opacity-80 md:opacity-[0.69] lg:hidden"}),(0,n.jsxs)("div",{className:"relative z-10 flex size-full flex-col items-center justify-center px-5 text-center md:w-[65%] md:max-w-screen-lg md:items-start md:px-[30px] md:text-left lg:mx-auto lg:w-[1140px] lg:grow lg:px-0",children:[(0,n.jsx)("h1",{className:"-mt-4 mb-5 text-3xl font-bold text-white md:mb-6 md:mt-[-60px] md:text-[35px] lg:mb-5 lg:mt-[-12px] lg:w-1/2 lg:text-[45px] lg:leading-[54px]",children:r}),c&&(0,n.jsx)("p",{className:"text-[18px] leading-[21.6px] text-blue-light md:leading-[25.2px] lg:w-1/2 lg:text-xl",children:c}),o&&(0,n.jsxs)("p",{className:"mt-10 text-[16px] leading-[21.6px] md:text-[18px] md:leading-[25.2px]",children:[(0,n.jsx)("span",{className:"text-orange-400",children:"New episodes every: "}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-white",children:"Monday | Wednesday | Friday"})]}),s&&(0,n.jsx)(l.z,{className:"mt-8 rounded-md bg-orange-600 px-[55px] py-6 text-base text-white hover:bg-orange-500",children:(0,n.jsx)(i(),{href:s.url,"aria-label":s.description,children:s.text})})]})]})}},3754:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(5893),s=r(1664),a=r.n(s);let l=e=>{let{navPath:t,currentPage:r,totalPages:s}=e,l=Math.max(1,r-Math.floor(2.5)),c=Math.min(s,l+5-1);return(0,n.jsx)("nav",{className:"pagination-nav",children:(0,n.jsxs)("ul",{className:"flex flex-row space-x-2 text-blue-primary text-lg",children:[r>1&&(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/".concat(t,"/").concat(r-1),children:(0,n.jsx)("span",{children:"\xab Previous"})})}),l>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/".concat(t,"/1"),children:(0,n.jsx)("span",{children:"1"})})}),l>2&&(0,n.jsx)("li",{children:(0,n.jsx)("span",{children:"…"})})]}),Array.from({length:c-l+1},(e,s)=>(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/".concat(t,"/").concat(l+s),children:(0,n.jsx)("span",{className:r===l+s?"text-blue-secondary":"",children:l+s})})},l+s)),c{let{className:r,variant:s,size:l,asChild:o=!1,...d}=e,x=o?a.g7:"button";return(0,n.jsx)(x,{className:(0,c.cn)(i({variant:s,size:l,className:r})),ref:t,...d})});o.displayName="Button"},3917:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(512),s=r(8388);function a(){for(var e=arguments.length,t=Array(e),r=0;rnew Date(t.attributes.publish_date).getTime()-new Date(e.attributes.publish_date).getTime());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Dentists Who Invest Articles page ",r]}),(0,n.jsx)("meta",{name:"title",content:"Dentists Who Invest Articles page ".concat(r)}),(0,n.jsx)("meta",{name:"description",content:"Page of ".concat(l," dental and finance articles. Page ").concat(r,"/").concat(s)}),(0,n.jsx)("meta",{name:"keywords",content:"Dentistry, Finance, Article, News"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:"Dentists Who Invest Articles page ".concat(r)}),(0,n.jsx)("meta",{property:"og:description",content:"Page of ".concat(l," dental and finance articles. Page ").concat(r,"/").concat(s)}),(0,n.jsx)("meta",{property:"og:url",content:"https://www.dentistswhoinvest.com/articles/".concat(r)}),(0,n.jsx)("meta",{property:"og:image",content:"https://assets.dentistswhoinvest.com/blog_hero_cover_95c157286b/blog_hero_cover_95c157286b.webp"}),(0,n.jsx)("meta",{property:"og:site_name",content:"Dentists Who Invest"})]}),(0,n.jsxs)("main",{className:"flex flex-col",children:[(0,n.jsx)(u.y,{bannerText:"Articles",subText:"Read to understand how you can accelerate your financial goals​",bannerImage:{url:"https://assets.dentistswhoinvest.com/blog_hero_cover_95c157286b/blog_hero_cover_95c157286b.webp",name:"blog_hero_cover_95c157286b"}}),(0,n.jsx)("div",{className:"py-[40px] text-center text-3xl font-bold text-blue-secondary lg:py-[70px] lg:text-[45px]",children:"All Articles"}),(0,n.jsx)("ul",{className:"grid grid-cols-1 gap-4 self-center md:grid-cols-2 xl:mx-[40px] xl:grid-cols-3",children:i.map(e=>{let t=m(e.attributes.title);return(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/article/".concat(t),children:(0,n.jsxs)("div",{className:"m-6 flex w-[315px] grow flex-col justify-evenly rounded-2xl border-2 border-blue-secondary bg-white text-center shadow-custom md:h-[500px] lg:h-[567px] lg:w-[430px]",children:[(0,n.jsx)(c(),{src:e.attributes.cover.data.attributes.url,alt:e.attributes.title,width:311,height:311,className:"h-[311px] rounded-t-xl border border-blue-secondary bg-blue-secondary object-cover md:h-[442px] lg:size-[430px]"}),(0,n.jsx)("div",{className:"grow px-5 pt-5 text-center text-xl text-blue-primary",dangerouslySetInnerHTML:{__html:e.attributes.title}})]})})},e.id)})}),(0,n.jsx)("div",{className:"mt-6 self-center pb-10",children:(0,n.jsx)("div",{children:(0,n.jsx)(h.z,{navPath:"articles",currentPage:r,totalPages:s})})})]})]})}},8657:function(e,t,r){"use strict";r.r(t),r.d(t,{VideoCard:function(){return h},__N_SSG:function(){return u},default:function(){return g}});var n=r(5893),s=r(5675),a=r.n(s),l=r(1664),c=r.n(l),i=r(2233),o=r(7256),d=r(7294),x=r(3754),u=!0;let h=e=>{let{page:t}=e,r=(0,i.createSlug)(t.attributes.name),s=t.attributes.uri.replace("/videos/",""),[l,o]=(0,d.useState)("");return(async e=>{let t=await fetch("https://vimeo.com/api/oembed.json?url=https://vimeo.com/".concat(e));o((await t.json()).thumbnail_url.replace(/-d_[0-9]+x[0-9]+/,"-d_1280"))})(s),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"m-6 flex w-[315px] flex-col justify-evenly rounded-2xl border-2 border-blue-secondary bg-white text-center shadow-custom lg:w-[430px]",children:[(0,n.jsx)(c(),{href:"/videos/".concat(r),children:(0,n.jsx)(a(),{src:l,alt:t.attributes.name,width:387,height:218,className:"h-[218px] rounded-t-xl border border-blue-secondary bg-blue-secondary object-cover lg:h-[300px] lg:w-[430px]"})}),(0,n.jsxs)("div",{className:"mx-8 my-4 flex grow flex-col space-y-4 text-center",children:[(0,n.jsx)("p",{className:"text-[21px] font-bold text-blue-primary",children:(0,n.jsx)(c(),{href:"/videos/".concat(r),children:t.attributes.name})}),(0,n.jsx)("p",{className:"text-sm text-grey-primary",children:t.attributes.description}),(0,n.jsx)("div",{className:"grow"}),(0,n.jsx)(c(),{className:"mb-5 text-xs font-semibold text-blue-secondary ",href:"/videos/".concat(r),children:"WATCH HERE"})]})]})})};function g(e){let{pageData:t,currentPage:r,totalPages:s}=e,a=t.sort((e,t)=>new Date(t.attributes.createdAt).getTime()-new Date(e.attributes.createdAt).getTime());return(0,n.jsxs)("main",{className:"flex flex-col bg-[#f0f3f6]",children:[(0,n.jsx)(o.y,{bannerImage:{url:"https://assets.dentistswhoinvest.com/james_recording_green_screen_3de155024b/james_recording_green_screen_3de155024b.webp",name:"james_recording_green_screen_3de155024b"},bannerText:"Videos/CPD",subText:"Free Verifiable CPD for UK Dentists"}),(0,n.jsx)("ul",{className:"grid grid-cols-1 gap-4 self-center py-[30px] md:grid-cols-2 md:pt-[40px] lg:pt-[50px] xl:grid-cols-3 xl:pt-[70px]",children:a.map(e=>(0,n.jsx)(h,{page:e},e.id))}),(0,n.jsx)("div",{className:"mt-6 self-center pb-10",children:(0,n.jsx)("div",{children:(0,n.jsx)(x.z,{navPath:"video",currentPage:r,totalPages:s})})})]})}}},function(e){e.O(0,[945,786,888,774,179],function(){return e(e.s=858)}),_N_E=e.O()}]);