i65626eo626d6ao636f6dz.oszar.com
Open in
urlscan Pro
172.67.220.76
Public Scan
Submitted URL: http://i65626eo626d6ao636f6dz.oszar.com/_next/static/chunks/pages/index-042d5b0af898d600.js
Effective URL: https://i65626eo626d6ao636f6dz.oszar.com/_next/static/chunks/pages/index-042d5b0af898d600.js
Submission: On October 23 via api from US — Scanned from CA
Effective URL: https://i65626eo626d6ao636f6dz.oszar.com/_next/static/chunks/pages/index-042d5b0af898d600.js
Submission: On October 23 via api from US — Scanned from CA
Form analysis
0 forms found in the DOMText Content
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{7314:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(1664)}])},1664:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return t$},default:function(){return t0}});var a={};l.r(a),l.d(a,{altmetricsWidgetUI:function(){return tn},authorsWidgetUI:function(){return td},blogPostsWidgetUI:function(){return tc},brightcoveWidgetUI:function(){return to},collectionArticlesWidgetUI:function(){return tm},editorialTeamWidgetUI:function(){return tN},featuredArticleWidgetUI:function(){return t_},highlightedCollectionsWidgetUI:function(){return tC},introWidgetUI:function(){return tM},introductoryInformationWidgetUI:function(){return tA},jobsWidgetUI:function(){return tI},journalSpecialityWidgetUI:function(){return tk},latestArticlesWidgetUI:function(){return tL},mostReadWidgetUI:function(){return tW},multimediaPodcastWidgetUI:function(){return tU},newEditorWidgetUI:function(){return tT},newLatestArticlesWidgetUI:function(){return tS},publishWidgetUI:function(){return tB},relatedJournalsWidgetUI:function(){return tD},searchBarWidgetUI:function(){return tF},spotlightWidgetUI:function(){return tE},topicCollectionsWidgetUI:function(){return tH},twitterWidgetUI:function(){return tQ},whyPublishWithUsWidgetUI:function(){return tJ}});var i=l(2322),s=l(2784),r=l(6089);let n=()=>e=>{let{altmetricItemsData:t,className:l}=e;return(0,i.jsx)("div",{className:"".concat(l," m-0 mx-auto grid w-full min-w-0 gap-6 md:grid-cols-[repeat(auto-fill,minmax(20rem,1fr))]"),children:t.map((e,t)=>{let{id:l,title:a,doi:s,altmetricScore:r,badgeUrl:n,publicationDate:d}=e;return(0,i.jsxs)("div",{className:"grid min-h-[64px] grid-cols-[84px,1fr] leading-6","data-testid":"altmetrics-item-".concat(t),children:[(0,i.jsx)("div",{className:"min-w-[84px] p-[10px]",children:(0,i.jsx)("a",{href:"http://i777777o616c746d6574726963o636f6dz.oszar.com/details.php?citation_id=".concat(l),title:"Altmetric details: ".concat(a,", score: ").concat(r),"aria-label":"Altmetric details: ".concat(a,", score: ").concat(r),children:(0,i.jsx)("div",{className:"h-[64px] w-[64px]",children:(0,i.jsx)("img",{alt:"altmetric badge",src:n,width:64,height:64})})})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:(0,i.jsx)("a",{href:"https://i646f69o6f7267z.oszar.com/".concat(s),className:"hover:no-underline",children:a})}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"text-sm",children:d})]})]},l)})})},d=n(),c=(0,r.QM)((0,r.Le)(r.fF,d),"[&]:grid-cols-[repeat(1,1fr)]"),o=(0,r.QM)((0,r.CM)(d),"my-2 mx-0 md:mt-12 md:mr-4 md:mb-0 md:ml-0 [& div]:flex [&>div]:flex-wrap [&>div]:flex-[1 1 50%]"),m=(0,r.QM)((0,r.AD)(o,c),"bg-bmj-silver-10"),x=n(),u=(0,r.Le)(r.HU,x),h=(0,r.QM)((0,r.CM)(x),"flex-wrap flex-[1 1 50%]"),f=(0,r.AD)(h,u),p=n(),j=(0,r.QM)((0,r.Le)(r.UW,p),"grid-cols-[repeat(1,1fr)] md:grid-cols-[repeat(auto-fill,minmax(20rem,1fr))]"),b=(0,r.QM)((0,r.CM)(p),"flex-wrap flex-[1 1 50%]"),w=(0,r.AD)(b,j),g=e=>{let{buttonOne:t,buttonTwo:l,className:a}=e;return(0,i.jsxs)("div",{className:"".concat(a," flex flex-wrap items-start justify-between"),children:[(0,i.jsx)("a",{"data-testid":"authors-information-button-1",className:"bg-bmj-primary-brand - mb-4 inline-block w-full cursor-pointer rounded-sm py-2.5 px-5 text-center text-white no-underline md:w-[230px] [&&]:text-[1.0625rem] [&&]:text-white [&&]:no-underline",href:t.link,children:t.text}),(0,i.jsx)("a",{"data-testid":"authors-information-button-2",className:"bg-bmj-primary-brand - mb-4 inline-block w-full cursor-pointer rounded-sm py-2.5 px-5 text-center text-white no-underline md:w-[230px] [&&]:text-[1.0625rem] [&&]:text-white [&&]:no-underline",href:l.link,children:l.text})]})},v=e=>{let{contentWrapper:t,firstColumn:l,secondColumn:a}=e;return e=>{let{columnsContent:s,className:r}=e;return(0,i.jsxs)("div",{className:"".concat(r," ").concat(t),children:[(0,i.jsx)("div",{"data-testid":"authors-information-content",className:l,dangerouslySetInnerHTML:{__html:s[0]}}),(0,i.jsx)(g,{className:a,...s[1]})]})}},y={contentWrapper:"flex justify-between w-full flex-col md:flex-row",firstColumn:"hidden md:block w-full md:w-[calc(60%-0.5rem)] [&>p:nth-of-type(1)]:mt-0 [&>p]:my-4",secondColumn:"flex w-full md:w-[calc(40%-0.5rem)] flex-col md:flex-row"},N=(0,r.Le)(r.UW,v(y)),_=(0,r.CM)(v(y)),C=(0,r.AD)(_,N),A={contentWrapper:"flex justify-between w-full flex-col",firstColumn:"[&>p]:my-4 [&>p:nth-of-type(1)]:mt-0 hidden md:block w-full",secondColumn:"flex w-full flex-col [&>a]:w-full"},M=(0,r.Le)(r.fF,v(A)),I=(0,r.CM)(v(A)),k=(0,r.AD)(I,M),L={contentWrapper:"flex justify-between w-full flex-col",firstColumn:"[&>p]:my-4 [&>p:nth-of-type(1)]:mt-0 hidden md:block w-full",secondColumn:"flex w-full flex-col [&>a]:w-full"},W=(0,r.Le)(r.UW,v(L)),U=(0,r.CM)(v(L)),T=(0,r.AD)(U,W),S=e=>{let{id:t,title:l,link:a,publicationDate:s,categories:r}=e;return(0,i.jsxs)("div",{"data-testid":"blog-post-".concat(t),children:[(0,i.jsx)("a",{className:"leading-6",href:a,children:l}),(0,i.jsx)("p",{className:"my-0 [&&]:text-sm",children:s}),(0,i.jsx)("p",{className:"m-0 pb-8",children:r.map(e=>{let{category:t,url:l}=e;return(0,i.jsx)("a",{className:"text-sm after:content-[',_'] last-of-type:after:content-['']",href:l,"data-testid":"post-category-".concat(t),children:t},l)})})]})},B=e=>{let{blogPosts:t,className:l}=e;return(0,i.jsx)("div",{className:"".concat(l," m-0 mx-auto flex w-full min-w-0 flex-col"),children:t.map((e,t)=>(0,i.jsx)(S,{...e},t))})},D=(0,r.Le)(r.fF,B),F=(0,r.CM)(B),E=(0,r.AD)(F,D),H=(0,r.Le)(r.UW,B),Q=(0,r.CM)(B),J=(0,r.AD)(Q,H),K=e=>{let{videoId:t,brightcoveAccountId:l,playerId:a}=e;return(0,i.jsx)("div",{"data-test-id":"brightcove-video-player",children:(0,i.jsx)("div",{className:"relative m-0 aspect-video max-w-full",children:(0,i.jsx)("iframe",{allowFullScreen:!0,className:"absolute m-0 h-full w-full border-none p-0",title:"brightcove-video-title",src:"//i706c6179657273o627269676874636f7665o6e6574z.oszar.com/".concat(l,"/").concat(a,"_default/index.html?videoId=").concat(t)})})})},O=e=>{let{className:t,articleTitle:l,videoPublishedDate:a,videoDescription:s,videoId:r,brightcoveAccountId:n,playerId:d,articleUrl:c,title:o}=e;return(0,i.jsxs)("div",{"data-test-id":"brightcove-video-widget",className:"".concat(t," flex"),children:[(0,i.jsxs)("section",{className:"shrink-1 mr-0 h-full w-full pb-1 md:mr-8 md:shrink-[0.6]",children:[(0,i.jsx)("h2",{className:"mt-0","data-test-id":"title",children:o}),(0,i.jsx)(K,{videoId:r,brightcoveAccountId:n,playerId:d}),(0,i.jsx)("h3",{className:"text-bmj-primary-brand mt-4 mb-1 text-base font-bold",children:l}),(0,i.jsx)("time",{className:"text-sm",children:a})]}),(0,i.jsxs)("section",{className:"h-full w-full",children:[(0,i.jsx)("p",{className:"mt-0 mb-4","data-testid":"brightcove-video-widget-description",children:s}),(0,i.jsx)("a",{href:c,children:"Find out more"})]})]})},X=(0,r.Le)(r.UW,(0,r.QM)(O,"flex-col md:flex-row")),P=(0,r.CM)((0,r.QM)(O,"flex-col md:flex-row")),R=(0,r.AD)(P,X),G=(0,r.Le)(r.fF,(0,r.QM)(O,"flex-col")),V=(0,r.CM)((0,r.QM)(O,"flex-col")),Z=(0,r.AD)(V,G),q=(0,r.Le)(r.UW,(0,r.QM)(O,"flex-col")),z=(0,r.CM)((0,r.QM)(O,"flex-col")),Y=(0,r.AD)(z,q);var $=l(9782),ee=l(5649);let et=e=>{let{testId:t,src:l,alt:a,title:s,url:r,description:n,isOpenAccess:d,date:c,marginClass:o}=e;return(0,i.jsxs)("article",{className:"bg-bmj-white mb-8 flex w-full max-w-[268px] flex-col self-center ".concat(null!=o?o:"md:mr-8"," md:self-stretch"),"data-testid":"highlighted-collection-".concat(t),children:[(0,i.jsx)("div",{className:"relative h-[180px] w-full",children:(0,i.jsx)("a",{"data-testid":"highlighted-collection-link-".concat(t),href:r,children:(0,i.jsx)(ee.Ee,{"data-testid":"highlighted-collection-image-".concat(t),src:l,alt:a,width:"268",height:"180",style:{objectFit:"cover",height:"180px"}})})}),(0,i.jsxs)("div",{className:"flex flex-col pt-4 pr-4 pb-2.5 pl-4",children:[(0,i.jsx)("a",{"data-testid":"highlighted-collection-title-".concat(t),href:r,className:"text-lg no-underline",children:s}),(0,i.jsx)("div",{className:"mt-2.5 mb-0 leading-6","data-testid":"highlighted-collection-description-".concat(t),dangerouslySetInnerHTML:{__html:n}}),(0,i.jsxs)("div",{className:"mt-1 flex items-center",children:[c&&(0,i.jsx)("time",{"data-testid":"highlighted-collection-date-".concat(t),className:"mr-2 text-sm",children:c}),d&&(0,i.jsx)($.rG,{"data-testid":"highlighted-collection-open-access-".concat(t),className:"mt-1",color:"#E3721F"})]})]})]})},el=e=>{let{highlightedCollections:t,className:l}=e;return(0,i.jsx)("div",{className:"".concat(l," h-full w-full"),children:(0,i.jsx)("div",{className:"my-0 mx-auto mt-1 flex w-full flex-col flex-wrap items-center justify-center md:m-0 md:flex-row",children:t.map((e,t)=>{let{src:l,alt:a,title:s,url:r,description:n,date:d,isOpenAccess:c}=e;return(0,i.jsx)(et,{testId:t+1,src:l,alt:a,title:s,url:r,description:n,date:d,isOpenAccess:c},s)})})})},ea=(0,r.CM)(el),ei=(0,r.Le)(r.UW,el),es=(0,r.AD)(ea,ei),er=e=>{let{jobTitle:t,jobTitleUrl:l,location:a,description:s,recruiter:r,testId:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{"data-testid":"job-title-".concat(n),href:l,className:"mb-[0.1rem] [&&]:no-underline",children:t}),(0,i.jsx)("p",{"data-testid":"job-location-".concat(n),className:"m-0 [&&]:text-sm [&&]:leading-loose",children:a}),(0,i.jsx)("span",{"data-testid":"job-description-".concat(n),className:"text-bmj-silver-800 text-[0.9375rem] leading-normal",children:s}),(0,i.jsxs)("p",{"data-testid":"job-recruiter-".concat(n),className:"m-0 [&&]:text-sm [&&]:leading-loose",children:["Recruiter: ",r]})]})},en=e=>{let{className:t,buttons:l,jobs:a,testId:r}=e;return(0,i.jsxs)("div",{"data-testid":r,className:"".concat(t," flex flex-col"),children:[(0,i.jsx)("div",{className:"flex flex-wrap",children:l.map((e,t)=>{let{text:l,link:a}=e;return(0,i.jsx)("a",{"data-testid":"jobs-button-".concat(t+1),className:"bg-bmj-primary-brand flex justify-center items-center mb-4 mr-0 inline-block w-full cursor-pointer rounded-sm px-5 py-2.5 text-center text-white no-underline lg:mb-2 lg:mr-2 lg:w-[calc(50%-1rem)] [&&]:text-white [&&]:no-underline",href:a,children:l},t)})}),(0,i.jsx)("div",{className:"flex flex-col",children:a.map((e,t)=>(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(er,{testId:t+1,...e}),(0,i.jsx)("hr",{className:"border-bmj-silver-100 my-2 mx-0 h-px last:hidden"})]},t))})]})},ed=(0,r.Le)(r.fF,en),ec=(0,r.CM)(en),eo=(0,r.AD)(ec,ed),em=(0,r.Le)(r.UW,en),ex=(0,r.CM)(en),eu=(0,r.AD)(ex,em);var eh=l(4792),ef=l.n(eh);let ep=e=>{let{id:t,type:l,title:a,link:s,publicationDate:r,icons:n}=e,d=n.includes("editorsChoice"),c=n.includes("openAccess");return(0,i.jsxs)("div",{className:"pb-8 leading-6 [&:last-of-type]:pb-4 sm:[&:last-of-type]:pb-8","data-testid":"article-".concat(t),children:[d?(0,i.jsx)("p",{className:"mt-0 mb-2",children:(0,i.jsx)($.In,{className:"text-bmj-editors-choice-color box-content h-4"})}):null,l?(0,i.jsxs)("p",{className:"m-0 uppercase","data-testid":"article-label-".concat(t),children:[l,":"]}):null,(0,i.jsx)("a",{className:"pr-2",href:s,"data-testid":"article-link-".concat(t),children:ef()(a)}),(0,i.jsxs)("p",{className:"m-0 whitespace-nowrap [&&]:text-[0.875rem]","data-testid":"article-date-".concat(t),children:[r,c?(0,i.jsx)($.rG,{className:"ml-2 box-content inline-block h-4 align-[-3px]",color:"#E3721F"}):null]})]})},ej=e=>{let{articleData:t,className:l}=e;return(0,i.jsx)("div",{className:l,children:(0,i.jsx)("div",{className:"flex flex-col","data-testid":"article-listing",children:t.map((e,t)=>(0,i.jsx)(ep,{...e},t))})})},eb=(0,r.Le)(r.fF,ej),ew=(0,r.CM)(ej),eg=(0,r.AD)(ew,eb),ev=(0,r.Le)(r.UW,ej),ey=(0,r.CM)(ej),eN=(0,r.AD)(ey,ev),e_=e=>{let{content:t,className:l,height:a="740px"}=e;if(!t)throw Error("No content was provided for the Multimedia Widget.");let s=t.includes("podbean")?"podbean":"soundcloud";return(0,i.jsx)("div",{className:"".concat(l," m-0 mx-auto w-full min-w-0"),children:(0,i.jsx)("div",{className:"".concat(s,"-embed-container-widget w-full [&_iframe]:absolute [&_iframe]:h-full [&_iframe]:min-h-[400px] [&_p]:ml-0 [&_p]:mt-0 [&_p]:mr-0 [&_p]:mb-4 [&_p]:md:m-0"),style:{height:a},"data-testid":"multimedia-widget-content",dangerouslySetInnerHTML:{__html:t}})})};var eC=l(6039);let eA=e=>t=>{let l=(0,s.useRef)(null),[a,r]=(0,s.useState)(450),n=(0,eC.m)("(min-width: 48rem)");return(0,s.useEffect)(()=>{if(n){let e=l.current.parentElement.parentElement.offsetHeight-110;e>450&&r(e)}},[n]),(0,i.jsx)("div",{ref:l,className:"h-full w-full [&&]:pr-0 [&&]:last-of-type:pr-0 [&&]:md:pr-4",children:(0,i.jsx)(e,{...t,height:"".concat(a,"px")})})},eM=(0,r.Le)(r.fF,e_),eI=(0,r.CM)(e_),ek=eA((0,r.AD)(eI,eM)),eL=(0,r.Le)(r.UW,e_),eW=(0,r.CM)(e_),eU=eA((0,r.AD)(eW,eL)),eT="text-[20px] mt-[14px]",eS=e=>{let{code:t,src:l,title:a,currentIssue:s,journal:r,orientation:n,rank:d=""}=e;return(0,i.jsxs)("div",{className:"".concat(d?"border-transparent md:pl-0":"border-bmj-silver-100"," flex border-0 border-solid ").concat("row"===n?"lg:pl-4 md:pl-4 pb-4 border-l-0 border-b last-of-type:border-b-0 [&:nth-child(3n+1)]:pl-0 [&:nth-child(3n+1)]:border-l-0 md:pb-0 md:border-l md:border-b-0":"pb-4 border-b border-solid border-bmj-silver-100 last-of-type:border-b-0"," bg-white"),children:[(0,i.jsx)("a",{href:r.url,children:(0,i.jsx)(ee.Ee,{"data-testid":"related-journals-image-".concat(t),src:l,alt:a||r.text,width:"".concat(d?"200":"60"),height:"80",className:d?"mt-[5px] h-[174px] w-[200px] max-w-[134px]":"mt-[5px] h-[89px] w-[60px] max-w-[60px]"})}),(0,i.jsxs)("div",{className:"ml-4 flex w-[fit-content] flex-col",children:[a&&!d&&(0,i.jsx)("h3",{"data-testid":"related-journals-title-".concat(t),className:"mt-0 mr-0 ml-0 text-base font-bold leading-6",children:a}),s&&(0,i.jsx)("a",{"data-testid":"related-journals-link-1-".concat(t),"aria-label":"Current issue",className:"leading-6 [&&]:text-base",href:s.url,children:s.text}),r&&!d&&(0,i.jsx)("a",{"data-testid":"related-journals-link-2-".concat(t),className:"max-w-max leading-6 [&&]:text-base ".concat(d&&eT),href:r.url,"aria-label":"Visit this journal",children:r.text}),r&&d&&(0,i.jsx)("a",{"data-testid":"related-journals-link-2-".concat(t),className:"max-w-max leading-[20px] [&&]:text-base ".concat(d&&eT),href:r.url,"aria-label":a,children:a}),d&&(0,i.jsx)("h3",{"data-testid":"related-journals-rank-".concat(t),className:"text-bmj-journal-speciality-rank mt-0 mr-0 mb-2 ml-0 text-base leading-6 ".concat(d&&"mt-[6px] text-[18px] leading-[19px]"),children:d})]})]})},eB=e=>(0,i.jsx)(eD,{...e,orientation:"row"}),eD=e=>{let{relatedJournals:t,className:l,orientation:a="column",description1:r,description2:n}=e,d="row"===a?r?"1fr,1fr":"1fr,1fr,1fr":"1fr",c="row"===a?"lg:grid-cols-[1fr,1fr,1fr]":"grid-cols-[1fr]";return(0,i.jsxs)(i.Fragment,{children:[r&&n&&(0,i.jsxs)("div",{"data-testid":"top-rank-journals-description",children:[(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r},className:"font-sans"}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:n},className:"mt-2 mb-4 font-sans sm:mt-4"})]}),(0,i.jsx)("div",{className:"".concat(l," flex w-full"),children:(0,i.jsx)("div",{className:"grid w-full gap-8 sm:grid-cols-[1fr] ".concat(r&&c," md:grid-cols-[").concat(d,"]"),"data-testid":"top-rank-journals-widget",children:t.map(e=>{let{code:t,src:l,title:r,currentIssue:n,journal:d,rank:c}=e;return(0,i.jsx)(s.Fragment,{children:(0,i.jsx)(eS,{code:t,src:l,title:r,currentIssue:n,journal:d,orientation:a,rank:c})},t)})})})]})},eF=(0,r.Le)(r.fF,eD),eE=(0,r.CM)(eD),eH=(0,r.AD)(eE,eF),eQ=(0,r.Le)(r.UW,eD),eJ=(0,r.CM)(eD),eK=(0,r.AD)(eJ,eQ),eO=(0,r.Le)(r.UW,eB),eX=(0,r.CM)(eB),eP=(0,r.AD)(eX,eO),eR=e=>{let{content:t,ctaText:l,ctaLink:a,className:s}=e;return(0,i.jsxs)("div",{className:"".concat(s," flex w-full flex-col [&_p]:mb-4"),children:[(0,i.jsx)("div",{"data-testid":"spotlight-content",className:"[&_img]:my-0 [&_img]:mx-auto [&_img]:block",dangerouslySetInnerHTML:{__html:t}}),l&&a&&(0,i.jsx)("a",{className:"bg-bmj-primary-brand mb-4 inline-block w-full cursor-pointer rounded-sm py-2.5 px-5 text-center text-white no-underline [&&]:text-white [&&]:no-underline",href:a,"data-testid":"spotlight-cta",children:l})]})},eG=(0,r.Le)(r.fF,eR),eV=(0,r.CM)(eR),eZ=(0,r.AD)(eV,eG),eq=(0,r.Le)(r.HU,eR),ez=(0,r.CM)(eR),eY=(0,r.AD)(ez,eq),e$=(0,r.Le)(r.UW,eR),e0=(0,r.CM)(eR),e1=(0,r.AD)(e0,e$),e2=e=>{let{height:t="450px",screenName:l,className:a}=e;return(0,s.useEffect)(()=>{let e=document.createElement("script");e.id="twitter-injected-script",e.src="https://i706c6174666f726do74776974746572o636f6dz.oszar.com/widgets.js",document.body.appendChild(e)},[]),(0,i.jsx)("div",{className:"".concat(a," flex flex-col m-0 min-w-0 w-full mx-auto pb-4"),children:(0,i.jsx)("div",{"data-testid":"twitter-feed-skeleton",className:"bg-bmj-silver-10 h-[".concat(t,"]"),children:(0,i.jsx)("div",{"data-testid":"twitter-feed-timeline",id:"timeline",children:(0,i.jsx)("a",{className:"twitter-timeline",href:"https://i74776974746572o636f6dz.oszar.com/".concat(l),"data-height":function(e){let t=e.match(/(\d+).*/);return t&&t[1]}(t),"data-chrome":"noheader nofooter noborders","data-width":"auto",children:"\xa0"})})})})},e4=(0,r.Le)(r.fF,e2),e3=eA((0,r.CM)(e2)),e5=eA((0,r.AD)(e3,e4)),e6=(0,r.Le)(r.UW,e2),e8=(0,r.CM)(e2),e7=eA((0,r.AD)(e8,e6)),e9=e=>{let{name:t,slug:l,color:a}=e;return(0,i.jsx)("div",{className:"border-bmj-primary-brand flex h-[1.625rem] items-center border-l-[0.3125rem] border-solid pl-2",style:{borderColor:a&&a},children:(0,i.jsx)(ee.rU,{className:"text-inherit no-underline",href:"/pages/collection/".concat(l),"data-testid":"topic-collection-".concat(t),children:t})})},te=e=>{let{topicCollections:t,className:l}=e;return(0,i.jsx)("div",{className:"".concat(l," m-0 mx-auto w-full min-w-0"),children:(0,i.jsxs)("div",{className:"".concat(l," flex w-full flex-col"),children:[(0,i.jsx)("ul",{className:"leading-0 ml-0",children:t.map((e,t)=>(0,i.jsx)("li",{className:"mb-[1.875rem] list-none leading-6 last:mb-0","data-testid":"topic-collections-list-".concat(t+1),children:(0,i.jsx)(e9,{...e})},e.name))}),(0,i.jsx)("div",{className:"flex justify-center","data-testid":"view-full-list",children:(0,i.jsx)(ee.rU,{className:"text-2xl no-underline",href:"/pages/browse-by-collection",children:"View full list"})})]})})},tt=(0,r.Le)(r.UW,te),tl=(0,r.CM)(te),ta=(0,r.AD)(tl,tt),ti=(0,r.Le)(r.fF,te),ts=(0,r.CM)(te),tr=(0,r.AD)(ts,ti),tn={name:"altmetrics_data",ui:{A:w,B:f,C:m}},td={name:"author_data",ui:{A:C,B:T,C:k}},tc={name:"blogs_data",ui:{A:J,B:J,C:E}},to={name:"brightcove_data",ui:{A:R,B:Y,C:Z}},tm={names:["collection1_data","collection2_data","collection3_data"],ui:{A:eN,B:eN,C:eg}};var tx=l(8311);function tu(){return(0,i.jsx)("hr",{className:"border-bmj-primary-brand mb-4 border-t-2 border-solid"})}function th(e){let{image:t,author:l,id:a}=e,{name:s,description:r}=l;return(0,i.jsxs)("div",{className:"mb-4 flex flex-col lg:mb-0 lg:flex-row",children:[(0,i.jsx)("img",{"data-testid":"editor-image-".concat(a),className:"h-[360px] w-full object-contain lg:h-[280px] lg:w-[268px]",src:t,alt:"editorial-team-author"}),(0,i.jsxs)("div",{className:"ml-0 flex flex-col lg:ml-4",children:[(0,i.jsx)("span",{"data-testid":"editor-name-".concat(a),className:"mb-4 mt-4 lg:mt-0",children:s}),(0,i.jsx)("span",{"data-testid":"editor-description-".concat(a),dangerouslySetInnerHTML:{__html:r}})]})]})}let tf=e=>{let{buttons:t,testId:l,title:a}=e;return(0,i.jsxs)("div",{"data-testid":"publish-container",children:[(0,i.jsx)(tx.K,{className:"pb-8 md:justify-center",title:a}),(0,i.jsx)("div",{className:"flex flex-col","data-testid":l,children:t.map((e,t)=>{let{text:l,link:a}=e;return(0,i.jsx)("a",{"data-testid":"publish-button-".concat(t+1),className:"bg-bmj-primary-brand mb-10 mr-0 inline-block flex w-full cursor-pointer items-center justify-center rounded-sm px-5 py-2.5 text-center text-white hover:bg-[#1F5189]",href:a,children:l},t)})})]})};var tp=l(2596),tj=JSON.parse('[{"name":"Specialty","link":"/pages/browse-by-collection"},{"name":"Latest content","link":"/content/current"},{"name":"Most read","link":"/pages/most-read-articles/"},{"name":"Responses","link":"/eletters"},{"name":"Images","link":"/pages/collections/case_reports_images/"}]');function tb(){return(0,i.jsxs)("div",{className:"mt-4 flex flex-col sm:flex-row","data-testid":"browseBy-container",children:[(0,i.jsx)("p",{className:"text-bmj-primary-brand mb-2 text-center sm:mb-0 sm:mr-1","data-testid":"browseBy-title",children:"Browse case reports by:"}),(0,i.jsx)("div",{className:"flex flex-wrap justify-center sm:flex-nowrap","data-testid":"browseBy-categories",children:tj.map((e,t)=>(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)("a",{className:"browse-by-class text-black","data-testid":"browseBy-link-".concat(t),href:e.link,children:e.name}),t<tj.length-1&&(0,i.jsx)("span",{className:"mx-2 sm:hidden",children:"|"}),t<tj.length-1&&(0,i.jsx)("span",{className:"mx-2 hidden sm:inline",children:"|"})]},t))})]})}var tw=l.p+"static/media/search.083f810b3a4ce1983321f19cee0b0fb2.svg";let tg=e=>{let{testId:t,src:l,alt:a,title:s,url:r,description:n,date:d,articleClassName:c}=e;return(0,i.jsxs)("article",{className:"".concat(c," bg-bmj-white mb-8 flex w-full flex-col self-center md:w-full lg:w-72"),"data-testid":"latest-article-".concat(t),children:[(0,i.jsx)("div",{className:"relative h-[180px] w-full",children:(0,i.jsx)("a",{"data-testid":"latest-article-link-".concat(t),href:r,children:(0,i.jsx)("img",{src:l,alt:a,className:"h-full w-full object-cover","data-testid":"latest-article-image-".concat(t)})})}),(0,i.jsxs)("div",{className:"flex flex-col pt-4 pb-2.5",children:[(0,i.jsx)("a",{"data-testid":"latest-article-title-".concat(t),href:r,className:"text-lg no-underline",children:s}),(0,i.jsx)("div",{className:"mt-2.5 mb-0 leading-6","data-testid":"latest-article-description-".concat(t),dangerouslySetInnerHTML:{__html:n}}),(0,i.jsx)("div",{className:"mt-1 flex items-center",children:d&&(0,i.jsx)("time",{"data-testid":"latest-article-date-".concat(t),className:"mr-2 text-sm",children:d})})]})]})};var tv=l.p+"static/media/upArrow.32377be32bc96c01074775a0c56c786f.svg",ty=l.p+"static/media/downArrow.a00b2dcc2cf9d10478bce63892236ce7.svg";let tN={name:"editorteamwidget_data",ui:{A:function(e){let{editorialTeam:t,title:l}=e;return(0,i.jsxs)("section",{children:[(0,i.jsxs)("section",{className:"flex flex-row justify-between pb-2",children:[(0,i.jsx)(tx.K,{title:l}),(0,i.jsx)("a",{href:"/pages/editorial-team/",className:"pt-2",children:"View Editorial Team"})]}),(0,i.jsx)("div",{className:"flex flex-col lg:flex-row lg:flex-wrap lg:justify-between",children:t.map((e,t)=>{let{image:l,author:a}=e;return(0,i.jsxs)("div",{className:"w-full lg:mb-4 lg:w-[calc(50%-1rem)]",children:[(0,i.jsx)(tu,{}),(0,i.jsx)(th,{image:l,author:a,id:t})]},a.name)})})]})}}},t_={name:"featuredarticle_data",ui:{A:function(e){let{articleImageURL:t,articleCollection:l,articleTitle:a,articleLink:s,articleDescription:r,articleReadMoreText:n,articleReadMoreLink:d}=e;return(0,i.jsxs)("article",{className:"mt-2 flex flex-col lg:m-4 lg:ml-0 lg:flex-row lg:space-x-6","data-testid":"featuredArticle-container",children:[(0,i.jsx)("section",{className:"flex flex-col lg:w-1/2",children:(0,i.jsx)("img",{className:"h-auto w-full",src:t,alt:"Article","data-testid":"featuredArticle-image"})}),(0,i.jsxs)("section",{className:"lg:w-1/2",children:[(0,i.jsx)("header",{className:"text-bmj-silver-800 mt-2 text-lg font-bold","data-testid":"featuredArticle-articleCollection",children:l}),(0,i.jsx)("a",{href:s,children:(0,i.jsx)("h2",{className:"my-4 text-2xl","data-testid":"featuredArticle-articleTitle",children:a})}),(0,i.jsx)("div",{className:"mb-4 text-gray-700","data-testid":"featuredArticle-articleDescription",dangerouslySetInnerHTML:{__html:r}}),(0,i.jsx)("a",{href:d,className:"text-bmj-blue-500 hover:text-bmj-blue-500-hover mt-2 text-left","data-testid":"featuredArticle-readMoreLink",children:n})]})]})}}},tC={name:"highlighted_data",ui:{A:es}},tA={name:"introtwo_data",ui:{A:function(e){let{layoutType:t,columnsContent:l}=e;return(0,i.jsx)("div",{children:(0,i.jsxs)(r.X3,{className:"md:flex-col [&>div:nth-of-type(1)]:md:w-full [&>div:nth-of-type(2)]:md:w-full lg:flex-row [&>div:nth-of-type(1)]:lg:w-[75.00%] [&>div:nth-of-type(2)]:lg:w-[25.00%] ",layoutType:t,testId:"introductory-information-with-two-columns",children:[(0,i.jsx)("div",{className:"md:mb-5 lg:mb-0 [&_h2]:mt-0 [&_h2]:mb-2","data-testid":"sections-columns-0",dangerouslySetInnerHTML:{__html:l[0]}}),(0,i.jsxs)("div",{className:"bg-bmj-primary-brand h-full","data-testid":"sections-columns-1-wrapper",children:[(0,i.jsx)("div",{className:"mb-4 p-4 text-center text-lg font-medium text-white md:text-left",dangerouslySetInnerHTML:{__html:l[1]},"data-testid":"sections-columns-1"}),(0,i.jsx)("a",{href:l[2],className:"text-bmj-primary-brand mx-4 flex justify-center rounded bg-white p-2 text-lg","data-testid":"email-alerts-link",children:"Sign me up to e-alerts"}),"."]})]})})}}},tM={name:"intro_data",ui:{A:e=>{let{layoutType:t,columnsContent:l}=e;return(0,i.jsx)("div",{className:"mx-auto max-w-[77rem]",children:(0,i.jsxs)(r.X3,{layoutType:t,testId:"introductory-information",children:[(0,i.jsx)("div",{"data-testid":"sections-column-0",className:"[&_h1]:text-bmj-primary-brand [&_p]:text-bmj-primary-brand [&_a]:text-[1.125rem] [&_h1]:mt-0 [&_h1]:inline [&_h1]:text-[1.3125rem] [&_p:nth-of-type(1)]:inline [&_p:nth-of-type(2)]:my-4 [&_p:nth-of-type(3)]:my-4 [&_p]:text-[1.125rem]",dangerouslySetInnerHTML:{__html:l[0]}}),(0,i.jsx)("div",{"data-testid":"sections-column-1",className:"[&_p]:text-bmj-silver-800 hidden md:inline-block [&_a]:text-[1rem] [&_p:nth-of-type(1)]:mt-0 [&_p]:my-[0.7rem] [&_p]:mx-0 [&_p]:block [&_p]:text-[1rem] [&_img]:inline [&_img]:align-baseline",dangerouslySetInnerHTML:{__html:l[1]}}),(0,i.jsxs)("div",{"data-testid":"sections-column-2",className:"!mt-0 !w-auto",children:[(0,i.jsx)("a",{href:"/content/current",className:"bg-bmj-primary-brand decoration-none mb-8 block cursor-pointer rounded-[0.125rem] py-[0.625rem] px-[1.25rem] text-center text-white md:hidden",children:"Current Issue"}),(0,i.jsx)("a",{href:"/content/current",className:"mb-8 flex justify-center md:mb-0",children:(0,i.jsx)(ee.Ee,{"data-testid":"introductory-information-image",src:l[2],alt:"Journal Current Issue",width:"130",height:"176",style:{objectFit:"contain",maxWidth:"130px"}})})]})]})})}}},tI={name:"jobs_data",ui:{B:eu,C:eo}},tk={name:"journalSpecialitywidget_data",ui:{A:function(e){let{journalSpeciality:t,title:l}=e,[a,r]=(0,s.useState)({}),[n,d]=(0,s.useState)(null),c=e=>{let t=e.title;r(e=>({...e,[t]:!e[t]})),Object.keys(a).forEach(e=>{e!==t&&a[e]&&r(t=>({...t,[e]:!1}))}),d(e)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"mb-4","data-testid":"journal-specialty-title",children:(0,i.jsx)(tx.K,{title:l})}),(0,i.jsx)("div",{className:"md:grid lg:grid lg:grid-cols-4 lg:gap-0","data-testid":"journal-specialty",children:t.map((e,t)=>(0,i.jsxs)("div",{className:"max-w-24 md:w-full md:border-r lg:ml-0 lg:w-full lg:border-r",style:{gridRowStart:"".concat(t%8+1),gridColumnStart:"".concat(Math.min(Math.ceil((t+1)/8),4))},id:"journal-".concat(t),"data-testid":"journal-specialty-test-".concat(t),children:[(0,i.jsx)("div",{onClick:()=>c(e),className:"cursor-pointer items-center p-4 hover:bg-gray-200 md:flex","data-testid":"journal-specialty-handler",children:(0,i.jsxs)("div",{className:"color-[#565759] flex w-full justify-between text-[1rem] font-normal",children:[e.title,(0,i.jsx)("img",{className:"ml-2 w-[1.5rem]",src:a[e.title]?tv:ty,alt:a[e.title]?"Down":"Up","data-testid":"journal-specialty-image"})]})}),a[e.title]&&n===e&&(0,i.jsx)("div",{className:"ml-6 mb-3","data-testid":"journal-specialty-category",children:e.child_items.map((e,t)=>(0,i.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"mt-3 grid max-w-max","data-testid":"journal-specialty-child-items-".concat(t),children:(0,i.jsxs)("div",{children:[e.title,e.icon.map((e,l)=>"TJ"===e?(0,i.jsx)("div",{className:"bg-bmj-blue-500 ml-[3px] inline-block h-5 w-5 border border-blue-700 pl-[4px] pt-[2px] text-xs font-bold leading-tight text-white","data-testid":"journal-specialty-TJ-icon-".concat(t),children:e},"TJ-icon-".concat(t,"-").concat(l)):"OA"===e?(0,i.jsx)($.rG,{"data-testid":"journal-specialty-open-access-".concat(t),className:"ml-2 box-content inline-block h-4 align-[-3px]",color:"#2a6ebb"},"OA-icon-".concat(t,"-").concat(l)):null)]})},t))})]},t))}),(0,i.jsxs)("div",{className:"mt-3",children:[(0,i.jsx)("div",{className:"bg-bmj-blue-500 inline-block h-5 w-5 border border-blue-700 pl-[4px] pt-[4px] text-xs font-bold leading-tight text-white","data-testid":"journal-specialty-TJ-icon-description",children:"TJ"}),(0,i.jsx)("span",{className:"ml-2 text-gray-600","data-testid":"journal-specialty-description",children:"= Transformative Journals"})]})]})}}},tL={names:["latestarticles_data","currentissue_data"],ui:{A:eN,B:eN,C:eg}},tW={name:"mostread_data",ui:{B:eN,C:eg}},tU={name:"multimediaWidget_data",ui:{A:eU,B:eU,C:ek}},tT={name:"editorwidget_data",ui:{B:function(e){let{imagesrc:t,title:l,name:a,description:s}=e;return(0,i.jsxs)("div",{className:"bg-bmj-silver-10 p-4",children:[(0,i.jsxs)("div",{className:"mb-4 flex flex-col items-center md:flex-row",children:[(0,i.jsx)("img",{"data-testid":"new-editor-image",className:"h-[220px] w-full object-cover",src:t,alt:a}),(0,i.jsx)("h2",{"data-testid":"new-editor-title",className:"md:pt-o m-0 inline-block p-0 pt-4 text-center text-[1.75rem]",children:l})]}),(0,i.jsxs)("div",{children:[a&&(0,i.jsx)("a",{"data-testid":"new-editor-name",className:"text-lg",href:"/pages/editorial-team",children:a}),(0,i.jsx)("div",{"data-testid":"new-editor-description",className:"mt-2",dangerouslySetInnerHTML:{__html:s}})]})]})}}},tS={name:"latesthome_data",ui:{B:function(e){let{title:t,latestArticles:l}=e;return(0,i.jsxs)("div",{className:"flex flex-col justify-start md:flex-col md:flex-wrap lg:flex-row","data-testid":"new-articles-container",children:[(0,i.jsxs)("div",{className:"mb-4 flex w-full justify-between",children:[(0,i.jsx)(tx.K,{"data-testid":"new-articles-title",title:t}),(0,i.jsx)("a",{href:"/content/current",className:"mt-2","data-testid":"new-articles-link",children:"View latest articles"})]}),(0,i.jsx)("section",{className:"flex flex-col md:flex-row",children:l.map((e,t)=>(0,i.jsxs)("div",{className:"flex-grow pr-0 md:first:pr-4",style:{flexBasis:"calc(50% - 4px)"},children:[(0,i.jsx)(tu,{}),(0,i.jsx)("div",{className:"items-left flex w-full flex-col md:flex-row",children:(0,i.jsx)(tg,{testId:e.id,src:e.src,alt:e.alt,title:e.title,url:e.url,description:e.description,date:e.date,articleClassName:"md:mb-0"})})]},t))})]})}}},tB={name:"publishwidget_data",ui:{A:tf,B:tf,C:tf}},tD={name:"relatedjournals_data",ui:{A:eP,B:eK,C:eH}},tF={name:"searchwidget_data",ui:{A:function(e){let{title:t}=e;return(0,i.jsxs)("div",{className:"flex flex-col items-center pb-6 pt-4","data-testid":"searchBar-container",children:[(0,i.jsx)(tx.K,{className:"pb-2",title:t,"data-testid":"searchBar-title"}),(0,i.jsx)(tp.ol,{searchFormUrl:"/search",inputClassName:"!w-full rounded-md border-black border-1.5 border-bmj-silver-800 h-[48px] md:ml-6",buttonClassName:"w-[50px] h-full !ml-auto relative bottom-[38px] md:left-[20px] bg-transparent border-0",linkClassName:"w-[50px] h-full relative bottom-[35px] md:bottom-0 md:top-[50px] md:right-[25px] justify-end ml-auto",anchorClassName:"text-bmj-primary-brand hover:text-[#C50084] md:block",containerClassName:"".concat("!w-full md:w-full md:max-w-[720px] !mb-[-25px] items-center"," "),formClassName:"w-full flex-col mb-0",placeholderText:"Search the BMJ Case Reports archive",svgPath:tw}),(0,i.jsx)("em",{className:"font-semibold text-[#C50084] md:pt-6","data-testid":"searchBar-subtitle",children:"Sharing and learning through experience"}),(0,i.jsx)(tb,{})]})}}},tE={names:["spotlight1_data","spotlight2_data"],ui:{A:e1,B:eY,C:eZ}},tH={name:"topicCollection_data",ui:{B:ta,C:tr}},tQ={name:"twitter_data",ui:{A:e7,B:e7,C:e5}},tJ={name:"whypublishwidget_data",ui:{AFullWidth:function(e){let{src:t,title:l,description:a,href:s}=e;return(0,i.jsxs)("div",{className:"bg-bmj-primary-brand flex flex-col text-white lg:flex-row",children:[(0,i.jsx)("img",{className:"h-[220px] object-cover lg:w-1/2",src:t,alt:"why-publish-with-us","data-testid":"why-publish-with-us-image"}),(0,i.jsxs)("div",{className:"mx-4 mb-4 flex flex-col justify-center lg:mb-0 lg:w-1/2",children:[(0,i.jsx)("h1",{className:"text-3xl lg:mt-0","data-testid":"why-publish-with-us-title",children:l}),(0,i.jsx)("div",{className:"mb-5 lg:mb-2.5 lg:text-sm","data-testid":"why-publish-with-us-description",dangerouslySetInnerHTML:{__html:a}}),(0,i.jsx)("div",{className:"lg:justify-left flex","data-testid":"why-publish-with-us-button-wrapper",children:(0,i.jsx)("a",{className:"text-bmj-primary-brand w-full rounded-md bg-white py-2.5 px-8 text-center text-lg font-semibold lg:w-auto",href:s,"data-testid":"why-publish-with-us-button",children:"Submit your manuscript"})})]})]})}}},tK=()=>null,tO=(e,t)=>{let l=Object.values(a).find(t=>{let{name:l,names:a}=t;return l===e||(null==a?void 0:a.includes(e))});return l&&l.ui?l.ui[t]?l.ui[t]:(console.info(e+" does not support layout type "+t),tK):(console.info(e+" is not supported"),tK)},tX=e=>{let{testId:t,children:l}=e;return(0,i.jsx)("div",{className:"my-4","data-testid":t,children:(0,i.jsx)("div",{children:l})})};tX.condition=e=>"AFullWidth"===e,tX.widgetLayout="AFullWidth";let tP=e=>{let{testId:t,children:l}=e;return(0,i.jsx)("div",{className:"my-4 mx-auto max-w-[77rem] px-4","data-testid":t,children:(0,i.jsx)("div",{children:l})})};tP.condition=e=>"A"===e,tP.widgetLayout="A";let tR=e=>{let{testId:t,children:l}=e,a=s.Children.toArray(l);return(0,i.jsx)("div",{className:"my-4 mx-auto grid max-w-[77rem] grid-cols-[1fr] gap-4 px-4 md:grid-cols-[1fr,1fr]","data-testid":t,children:s.Children.map(a,e=>(0,i.jsx)("div",{children:(0,s.cloneElement)(e)}))})};tR.condition=(e,t)=>"B"===e&&!t,tR.widgetLayout="B";let tG=e=>{let{testId:t,children:l}=e,a=s.Children.toArray(l);return(0,i.jsx)("div",{className:"my-8 mx-auto grid max-w-[77rem] grid-cols-[1fr] gap-4 px-0 md:grid-cols-[1fr,1fr] md:px-4","data-testid":t,children:s.Children.map(a,e=>(0,i.jsx)("div",{className:"bg-white p-4",children:(0,s.cloneElement)(e)}))})};tG.condition=(e,t)=>"B"===e&&t,tG.widgetLayout="C";let tV=e=>{let{testId:t,children:l}=e,a=s.Children.toArray(l);return(0,i.jsx)("div",{className:"my-4 mx-auto grid max-w-[77rem] grid-cols-[1fr] gap-4 px-4 md:grid-cols-[1fr,1fr,1fr]","data-testid":t,children:s.Children.map(a,e=>(0,i.jsx)("div",{className:"mt-4 md:mt-0",children:(0,s.cloneElement)(e)}))})};tV.condition=(e,t)=>"C"===e&&!t,tV.widgetLayout="C";let tZ=e=>{let{testId:t,children:l}=e,a=s.Children.toArray(l);return(0,i.jsx)("div",{className:"my-8 mx-auto grid max-w-[77rem] grid-cols-[1fr] gap-4 px-0 md:grid-cols-[1fr,1fr,1fr] md:px-4","data-testid":t,children:s.Children.map(a,e=>(0,i.jsx)("div",{className:"bg-white p-4",children:(0,s.cloneElement)(e)}))})};tZ.condition=(e,t)=>"C"===e&&t,tZ.widgetLayout="C";let tq=[tP,tX,tG,tR,tZ,tV],tz=(e,t)=>{let l=tq.find(l=>l.condition(e,t));if(l)return{LayoutComponent:l,widgetLayout:l.widgetLayout};throw Error("Layout ".concat(e," is not supported in homepage"))},tY=e=>{let{layoutType:t,accentedBackground:l,columnsContent:a,testId:r}=e,{LayoutComponent:n,widgetLayout:d}=tz(t,l);return(0,i.jsx)("div",{className:"[&>div]:px-0",children:(0,i.jsx)("div",{className:"m-0 w-full min-w-0 px-4","data-testid":"homepage-two-intro-section-".concat(r),children:(0,i.jsx)(n,{testId:r,children:a.map((e,t)=>{let{widgetId:l,data:a}=e,i=tO(l,d);return(0,s.createElement)(i,{...a,key:l+t,testId:l})})})})})};var t$=!0,t0=e=>{let{widgets:t}=e;return(0,i.jsx)("div",{className:"pb-6",children:t.map((e,t)=>{let{layoutType:l,columnsContent:a,accentedBackground:s}=e;return(0,i.jsx)("div",{className:"sections-homepage-class\n ".concat(s?"bg-bmj-silver-10 overflow-y-auto":"overflow-y-auto bg-inherit"),children:(0,i.jsx)(tY,{layoutType:l,accentedBackground:s,columnsContent:a,testId:"homepage-section-".concat(t)})},t)})})}},1159:function(e,t,l){"use strict";l.d(t,{X:function(){return r}});var a=l(2322);let i={A:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[100.00%]",B:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[50.00%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[50.00%]",C:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[33.33%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[33.33%] [&>div:nth-of-type(3)]:w-full [&>div:nth-of-type(3)]:md:w-[33.33%]",D:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[33.33%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[66.67%]",E:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[66.67%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[33.00%]",F:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[25.00%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[75.00%]",G:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[75.00%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[25.00%]",Z:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[24.22%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[66.67%] [&>div:nth-of-type(3)]:w-full [&>div:nth-of-type(3)]:md:w-[11.11%]",CM:"[&>div:nth-of-type(1)]:w-full [&>div:nth-of-type(1)]:md:w-[33.33%] [&>div:nth-of-type(2)]:w-full [&>div:nth-of-type(2)]:md:w-[33.33%] [&>div:nth-of-type(2)]:mt-0 [&>div:nth-of-type(3)]:w-full [&>div:nth-of-type(3)]:md:w-[33.33%] [&>div:nth-of-type(3)]:mt-0"},s=e=>i[e],r=e=>{let{layoutType:t,className:l,testId:i,children:r}=e,n=s(t),d="\n ".concat(l,"\n mt-0 flex flex-col md:mt-4 md:flex-row\n [&>div:last-of-type]:pr-0\n [&>div]:mt-6\n [&>div]:pr-0\n [&>div]:md:mt-0\n [&>div]:md:pr-4\n ").concat(n,"\n ");return(0,a.jsx)("div",{className:d,"data-testid":i,children:r})}},2246:function(e,t,l){"use strict";l.d(t,{h:function(){return r}});var a=l(2322);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sections",l=["hidden","inline"];return e.map((e,i)=>(0,a.jsx)("div",{"data-testid":"".concat(t,"-column-").concat(i),className:"".concat(l[e?1:0]," md:inline [&_h2]:mt-0"),dangerouslySetInnerHTML:{__html:e}},i))};var s=l(1159);let r=e=>{let{sectionTitle:t,sectionIndex:l,subsections:r,testId:n="sections-container"}=e;return(0,a.jsxs)("div",{className:"border-t-[1px] border-solid ".concat(0===l?"border-transparent":"border-bmj-silver-100 mt-4"),"data-testid":n,children:[t&&(0,a.jsx)("h2",{dangerouslySetInnerHTML:{__html:t},"data-testid":"sections-section-title",className:"relative mb-0 [&>a]:absolute [&>a]:mt-[-20px]"}),r.map((e,t)=>{let{layoutType:l,columnsContent:r}=e;return(0,a.jsx)(s.X,{className:"text-bmj-silver-800 whitespace-pre-wrap font-normal leading-[1.625rem]",layoutType:l,testId:"sections-subsection-content-container-".concat(t),children:i(r,"sections")},t)})]})}},2076:function(e,t,l){"use strict";l.d(t,{u:function(){return n}});var a=l(2322),i=l(2784),s=l(1811),r=l(2246);let n=e=>{let{className:t,sections:l,title:n,renderBeforeContent:d=()=>null}=e;return(0,a.jsx)("section",{className:"whitespace-pre-wrap pb-12 [&_p]:mb-4",children:(0,a.jsx)("div",{className:t,children:(0,a.jsxs)(s.J,{children:[n&&(0,a.jsx)("h1",{dangerouslySetInnerHTML:{__html:n},"data-testid":"sections-page-title",className:"mb-5"}),d(),l.map((e,t)=>(0,i.createElement)(r.h,{...e,key:"".concat(e.sectionTitle,"-").concat(t),sectionIndex:t,testId:"sections-container-".concat(t)}))]})})})};t.Z=n},6089:function(e,t,l){"use strict";l.d(t,{X3:function(){return b.X},u5:function(){return a.u},fF:function(){return r},HU:function(){return j},UW:function(){return n},AD:function(){return f},CM:function(){return u},QM:function(){return p},Le:function(){return d}}),l(2246);var a=l(2076),i=l(2322),s=l(8311);let r=e=>{let{title:t,children:l,className:a,testId:r}=e;return(0,i.jsxs)("div",{className:"".concat(a," relative m-0 ml-auto flex w-full min-w-0 flex-col flex-wrap bg-white"),"data-testid":r,children:[(0,i.jsx)(s.K,{title:t,className:"pt-0 pr-0 pb-4 pl-0 mx-auto"}),l]})},n=e=>{let{title:t,children:l,testId:a}=e;return(0,i.jsxs)("div",{"data-testid":a,children:[(0,i.jsx)(s.K,{title:t,className:"py-4 px-0"}),(0,i.jsx)("div",{className:"flex w-full flex-row flex-wrap",children:l})]})},d=(e,t)=>l=>{let{title:a,testId:s,...r}=l;return(0,i.jsx)(e,{title:a,testId:s,children:(0,i.jsx)(t,{...r})})};var c=l(7600),o=l(2784),m=l(7968);let x=e=>{let[t,l]=(0,o.useState)(e),a={show:"block",hide:"hidden"};return{isExpanded:t,toggleExapanded:()=>l(!t),setIsExpanded:l,ToggleButton:()=>(0,i.jsxs)("button",{"data-testid":"expandable-button",className:"absolute right-4 block border-0 bg-transparent p-0 md:hidden",children:[(0,i.jsx)("img",{src:(0,c.n)("/minus-button.svg"),alt:"expandable-button","aria-expanded":"true",role:"button",className:"".concat(a[t?"show":"hide"]," w-[15px]")}),(0,i.jsx)("img",{src:(0,c.n)("/plus-button.svg"),alt:"expandable-button","aria-expanded":"false",role:"button",className:"".concat(a[t?"hide":"show"]," w-[15px]")})]})}},u=e=>t=>{let{title:l,testId:a,className:s,...r}=t,{isExpanded:n,toggleExapanded:d,ToggleButton:c}=x(!1);return(0,i.jsxs)("div",{onClick:d,"data-testid":a,className:"".concat(s," relative"),children:[(0,i.jsxs)("div",{className:"".concat(["border-bmj-primary-brand","border-transparent"][n?1:0]," relative flex items-center justify-center border p-4 md:justify-start md:border-0"),children:[(0,i.jsx)(m.K,{title:l}),(0,i.jsx)(c,{})]}),(0,i.jsx)("div",{className:"".concat(["hidden","flex"][n?1:0]," md:flex"),children:(0,i.jsx)(e,{...r})})]})};var h=l(6039);let f=(e,t)=>l=>{let{collapsible:a,...s}=l,r=(0,h.m)("(min-width: 48rem)");return a&&!r?(0,i.jsx)(e,{...s}):(0,i.jsx)(t,{...s})},p=(e,t)=>l=>(0,i.jsx)(e,{...l,className:t}),j=e=>{let{className:t,title:l,testId:a,children:r}=e;return(0,i.jsxs)("div",{className:t,"data-testid":a,children:[(0,i.jsx)(s.K,{title:l,className:"py-4 px-0"}),r]})};var b=l(1159)},7968:function(e,t,l){"use strict";l.d(t,{K:function(){return i}});var a=l(2322);let i=e=>{let{title:t,className:l}=e;return(0,a.jsx)("div",{className:"".concat(l," flex items-center justify-center md:justify-start"),children:(0,a.jsx)("h2",{className:"m-0 inline-block p-0 text-center text-[1.75rem]","data-testid":"title",children:t})})}},8311:function(e,t,l){"use strict";l.d(t,{K:function(){return a.K}});var a=l(7968)},1811:function(e,t,l){"use strict";l.d(t,{J:function(){return i}});var a=l(2322);function i(e){let{children:t,testId:l}=e;return(0,a.jsx)("div",{className:"m-0 mx-auto w-full min-w-0 max-w-[77rem] px-4","data-testid":l,children:t})}}},function(e){e.O(0,[792,888,774,179],function(){return e(e.s=7314)}),_N_E=e.O()}]);