1!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new n.Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="b9984fd5-7baf-4461-8c6b-bd03d7940352",n._sentryDebugIdIdentifier="sentry-dbid-b9984fd5-7baf-4461-8c6b-bd03d7940352")}catch(n){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{8266:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return t(56131)}])},43211:function(n,e,t){"use strict";t.d(e,{Z:function(){return r},t:function(){return s}});var i=t(31256);function r(n){switch(n){case"medium":return 20;case"tiny":return 30;default:return 10}}function s(n,e){let t=r(n.display),s=n.sort_by||e||void 0;return(0,i.fz)({page:parseInt(n.page,10)||1,perPage:t,sort_by:s,categoryId:n.categoryId,sectionId:n.sectionId,subsectionId:n.subsectionId,authorId:n.authorId,location:n.location,vid_length:n.vid_length,filterByTag:n.filterByTag,publishedDateFrom:n.publishedDateAfter,publishedDateTo:n.publishedDateBefore,filmedOnFrom:n.filmedOnAfter,filmedOnTo:n.filmedOnBefore,match_by:n.match_by,q:n.q,contentType:n.contentType})}},5384:function(n,e,t){"use strict";t.d(e,{gk:function(){return m}});var i=t(82729),r=t(81548);function s(){let n=(0,i._)(["\n fragment ArticleListParts on Article {\n _id\n title\n status\n publication_id\n descriptionSEO\n authors {\n _id\n display_name\n role\n slug\n }\n visibility\n vid_length\n categories {\n _id\n short\n displayName\n color\n slug\n }\n created\n hospital {\n name\n }\n slug\n image {\n geometry {\n width\n height\n }\n filename\n }\n production_id\n published\n updated\n preprint_date\n restrictions {\n article\n }\n wistia {\n duration\n }\n tags\n comment_count\n isPurchaseArticleFeatureOn\n isRentArticleFeatureOn\n animations {\n wistia_id\n thumbnailUrl\n title\n duration\n vid_length\n }\n shorts {\n wistia_id\n thumbnailUrl\n title\n duration\n vid_length\n }\n}\n "]);return s=function(){return n},n}let a=(0,r.Ps)(s());var o=t(2756);function l(){let n=(0,i._)(["\n query Articles($input: ArticleInput) {\n articleOutput: articles(input: $input) {\n articles {\n ...ArticleListParts\n }\n totalCount\n }\n}\n ",""]);return l=function(){return n},n}function u(){let n=(0,i._)(["\n query ArticlesMetadata($input: ArticleInput) {\n articleOutput: articles(input: $input) {\n articles {\n publication_id\n title\n slug\n status\n published\n content {\n article\n citations\n abstract\n }\n authors {\n _id\n display_name\n role\n slug\n }\n authors_affiliations {\n author_id\n display_name\n name_last\n affiliations {\n affiliation_id\n name\n }\n }\n hospital {\n name\n }\n categories {\n _id\n name\n short\n displayName\n color\n slug\n desc\n }\n tags\n }\n totalCount\n }\n}\n "]);return u=function(){return n},n}function d(){let n=(0,i._)(["\n query ArticlesWithAnimations {\n articlesWithAnimations {\n _id\n animations {\n wistia_id\n thumbnailUrl\n title\n }\n }\n}\n "]);return d=function(){return n},n}function c(){let n=(0,i._)(["\n query ArticlesWithShorts {\n articlesWithShorts {\n _id\n shorts {\n wistia_id\n thumbnailUrl\n title\n }\n }\n}\n "]);return c=function(){return n},n}let p={},h=(0,r.Ps)(l(),a);function m(n){let e={...p,...n};return o.a(h,e)}(0,r.Ps)(u()),(0,r.Ps)(d()),(0,r.Ps)(c())},56131:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return L},default:function(){return z}});var i=t(52322),r=t(27149),s=t(35199),a=t(62197),o=t(69692),l=t(92096),u=t(41075),d=t(47746),c=t(15674),p=t(94013),h=t(85610),m=t(39935),f=t(11163),y=t(43211),g=t(24568),x=t(50548),b=t(44218),_=t(82542),j=t(75200),Z=t(41893),v=t(5384),w=t(62762),I=t(23848),P=t(2784),k=t(15921),A=t(6189),S=t(96664),q=t(84754),C=t(95356),O=t(14117),T=t(82056),E=t(45596),D=t(85801),R=t(23871),W=t(66570),B=t(21129),N=(0,P.memo)(()=>{let[n,e]=(0,P.useState)(!1),[t,r]=(0,P.useState)([]),[a,l]=(0,P.useState)(""),u=(0,f.useRouter)(),{data:d}=(0,I.useSession)(),{loading:p}=(0,B.LW)({variables:{keyword:a},onCompleted:n=>
1{a.trim()?r((null==n?void 0:n.searchCategories)?[{name:a,type:"search"},...n.searchCategories]:[{name:a,type:"search"}]):r([])},onError:()=>{r([])}});(0,P.useEffect)(()=>{let t=t=>{"KeyK"===t.code&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),e(!n))};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[n]),(0,P.useEffect)(()=>{l(Array.isArray(u.query.q)?u.query.q[0]:u.query.q||"")},[u.query]);let h=(n,e,t)=>{var i;let r={...{...u.query}},s=(n,e)=>{if(r[n]){let t=Array.isArray(r[n])?r[n]:r[n].split(",");(null==t?void 0:t.includes(e))||(r[n]=[...null!=t?t:[],e].join(","))}else r[n]=e};"category"===e&&t?s("categoryId",t):"section"===e&&t?s("sectionId",t):"subsection"===e&&t?s("subsectionId",t):e?s("filterByTag","".concat(e,":").concat(n)):r.q=n,u.push({pathname:"/search",query:r}),W.c.trackSearch(n),(0,R.Cb)({search_term:n,userId:(null==d?void 0:null===(i=d.user)||void 0===i?void 0:i._id)||"anon"})};return(0,i.jsx)(c.Z,{theme:m.D4,children:(0,i.jsx)(o.Z,{component:"form",role:"search","data-testid":"search-bar-search-page",sx:{mx:"auto"},onSubmit:n=>{n.preventDefault(),h(a)},children:(0,i.jsx)(C.Z,{freeSolo:!0,size:"small",options:t,getOptionLabel:n=>"string"==typeof n?n:n.name,inputValue:a,loading:p,onInputChange:(n,e)=>l(e),onChange:(n,e)=>{(null==n?void 0:n.key)==="Enter"&&null!==e&&"string"==typeof e&&h(e),"object"==typeof e&&null!==e&&("search"===e.type?h(e.name):"category"===e.type?h(e.name,e.type,e.id):"section"===e.type?h(e.name,e.type,e.id):"subsection"===e.type?h(e.name,e.type,e.id):h(e.name,e.type))},renderOption:(n,e)=>{let{key:t,...r}=n;return(0,i.jsx)(o.Z,{component:"li",...r,children:(0,i.jsxs)(O.Z,{disableGutters:!0,disableTouchRipple:!0,sx:{p:0,"&.MuiButtonBase-root:hover":{bgcolor:"transparent"}},children:["search"===e.type?(0,i.jsx)(S.Z,{sx:{mr:1}}):(0,i.jsx)(q.Z,{sx:{mr:1}}),(0,i.jsx)(T.Z,{primary:(0,i.jsx)(o.Z,{textTransform:"capitalize",children:e.name}),secondary:(0,i.jsx)(o.Z,{textTransform:"capitalize",children:e.type})})]})},null!=t?t:e.name)},renderInput:n=>(0,i.jsxs)(s.Z,{direction:"row",spacing:1,children:[(0,i.jsx)(E.Z,{...n,placeholder:"Search articles by keyword, category, or tag...",fullWidth:!0,autoFocus:!0,color:"primary",InputProps:{...n.InputProps,disableUnderline:!0},inputProps:{...n.inputProps,"aria-label":"Search articles"},sx:{"& fieldset":{border:"none"}}}),(0,i.jsx)(D.Z,{"data-testid":"search-submit-button","aria-label":"Submit search",onClick:()=>h(a),children:(0,i.jsx)(S.Z,{color:"disabled"})})]})})})})}),F=t(58147),L=!0,z=(0,P.memo)(function(n){var e,t,P,S;let{categories:q,articleOutput:C,tags:O}=n,T=(0,f.useRouter)(),E=T.query,D=(0,d.Z)(),{status:R}=(0,I.useSession)(),W=(0,r.Z)(D.breakpoints.up("md")),{q:B}=T.query,[L]=(0,Z.AS)(),{referredFrom:z,referrerPath:U,anon_link_id:G}=(0,j.Z)();(0,k.qR)(()=>{L({variables:{input:{q:B,referredFrom:z,referrerPath:U,anon_link_id:G}}})});let K=(0,A.R)(),{data:M,loading:$}=(0,v.gk)({variables:{input:(0,y.t)(E,w.Qo.MostRelevant)},fetchPolicy:"cache-and-network",skip:!T.isReady}),Q=null!==(P=null==M?void 0:null===(e=M.articleOutput)||void 0===e?void 0:e.articles)&&void 0!==P?P:null==C?void 0:C.articles,X=null!==(S=null==M?void 0:null===(t=M.articleOutput)||void 0===t?void 0:t.totalCount)&&void 0!==S?S:null==C?void 0:C.totalCount,V=(0,y.Z)(E.display);return(0,i.jsx)(h.Z,{enableGutters:W,children:(0,i.jsx)(c.Z,{theme:m.D4,children:(0,i.jsxs)(u.ZP,{container:!0,spacing:2,px:{xs:1},children:[(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsxs)(s.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",pt:2,spacing:3,children:[(0,i.jsxs)(s.Z,{direction:"row",alignItems:"center",sx:{flexGrow:1},spacing:2,children:[(0,i.jsx)(a.Z,{variant:"h3",component:"h1",fontSize:"2rem",fontWeight:300,children:"Search"}),(0,i.jsx)(o.Z,{height:"1px",sx:{background:"linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%)",flexGrow:1}})]}),(0,i.jsx)(s.Z,{direction:"row",spacing:2,sx:{display:"none","@media (min-width: 700px)":{display:"flex"}},children:(0,i.jsx)(F.Z,{})}),(0,i.jsx)(x.Z,{categories:q,tags:O,useShallowRouting:!0})]})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsxs)(a.Z,{variant:"subtitle2",component:"div",role:"status",sx:{dis
1play:"inline-block",fontWeight:"400"},children:[(0,i.jsx)(a.Z,{component:"span",sx:{fontWeight:"700"},children:X})," ","results",B?(0,i.jsxs)(i.Fragment,{children:[" ","for"," ",(0,i.jsxs)(a.Z,{component:"span",sx:{fontWeight:"700"},children:["â",B,"â"]})]}):null]})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,children:(0,i.jsx)(c.Z,{theme:m.jA,children:(0,i.jsxs)(s.Z,{direction:"column",spacing:1,children:[(0,i.jsx)(l.Z,{sx:{border:1.5,borderColor:"grey.700",bgcolor:"background.default !important",borderRadius:2},children:(0,i.jsx)(N,{})}),K&&(0,i.jsx)(l.Z,{sx:{border:1.5,borderColor:"grey.700",bgcolor:"background.default !important",borderRadius:2,p:1},children:(0,i.jsx)(A.Z,{categories:null!=q?q:[]})})]})})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,md:3,p:0,sx:{display:"none","@media (min-width: 700px) and (max-width: 899.95px)":{display:"block",flexBasis:"33.33%",maxWidth:"33.33%"},"@media (min-width: 900px)":{display:"block"}},children:(0,i.jsx)(g.Z,{tags:O,categories:q,defaultSort:w.Qo.MostRelevant,showContentType:!0,shallow:!0})}),(0,i.jsx)(u.ZP,{item:!0,xs:12,md:9,sx:{"@media (min-width: 700px) and (max-width: 899.95px)":{flexBasis:"66.67%",maxWidth:"66.67%"}},children:(0,i.jsx)(s.Z,{children:(0,i.jsxs)(p.l,{totalCount:null!=X?X:0,children:[(0,i.jsx)(_.Z,{articles:Q,totalCount:X,itemsPerPage:V,loading:$}),(0,i.jsx)(b.Z,{totalCount:X,itemsPerPage:V})]})})})]})})})})}},function(n){n.O(0,[2189,966,5327,288,1302,3728,2888,9774,179],function(){return n(n.s=8266)}),_N_E=n.O()}]);
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.