PageSourceSearch

https://jomi.com/_next/static/chunks/1302-31c414535e4b123e.js

js jomi.com collected 2026-10-02 16:37:17 UTC 39,256 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33033370-c2d5-42df-b439-ef345425030d",e._sentryDebugIdIdentifier="sentry-dbid-33033370-c2d5-42df-b439-ef345425030d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1302],{43211:function(e,t,n){n.d(t,{ZU:function(){return i},qq:function(){return r},tX:function(){return l}});var a=n(31256);function i(e){switch(e){case"medium":return 20;case"tiny":return 30;default:return 10}}function l(e,t){let n=i(e.display),l=e.sort_by||t||void 0;return(0,a.fz)({page:parseInt(e.page,10)||1,perPage:n,sort_by:l,categoryId:e.categoryId,sectionId:e.sectionId,subsectionId:e.subsectionId,authorId:e.authorId,location:e.location,vid_length:e.vid_length,filterByTag:e.filterByTag,publishedDateFrom:e.publishedDateAfter,publishedDateTo:e.publishedDateBefore,filmedOnFrom:e.filmedOnAfter,filmedOnTo:e.filmedOnBefore,match_by:e.match_by,q:e.q,contentType:e.contentType,cmeOnly:!!r(e.cmeOnly)||void 0})}function r(e){return"true"===e}},6189:function(e,t,n){n.d(t,{R:function(){return h}});var a=n(52322),i=n(66198),l=n(35199),r=n(62197),o=n(75233),s=n(21129),d=n(11163);n(2784);var c=n(46665),u=n(43211);function h(){let e=(0,d.useRouter)().query,t=Array.isArray(e.filterByTag)?e.filterByTag.join(","):e.filterByTag||"";return(t?t.split(",").filter(Boolean):[]).length>0||!!e.location||!!e.vid_length||(0,u.qq)(e.cmeOnly)||!!e.publishedDateAfter||!!e.publishedDateBefore||!!e.filmedOnAfter||!!e.filmedOnBefore||!!e.categoryId||!!e.authorId||!!e.sectionId||!!e.subsectionId}t.Z=e=>{let{categories:t,shallow:n}=e,h=(0,d.useRouter)(),p=h.query,m=Array.isArray(p.filterByTag)?p.filterByTag.join(","):p.filterByTag||"",f=m?m.split(",").map(e=>e.split(":")[1]).filter(Boolean):[],x=p.q?decodeURIComponent(p.q.toString()):null,g=p.location?decodeURIComponent(p.location.toString()):null,b=p.vid_length?p.vid_length.toString():null,y=(0,u.qq)(p.cmeOnly),j=p.publishedDateAfter?p.publishedDateAfter.toString():null,v=p.publishedDateBefore?p.publishedDateBefore.toString():null,Z=p.filmedOnAfter?p.filmedOnAfter.toString():null,w=p.filmedOnBefore?p.filmedOnBefore.toString():null,D=(e,t,n)=>t&&n?"".concat(e,": ").concat(t," - ").concat(n):t?"".concat(e,": After ").concat(t):"".concat(e,": Before ").concat(n),k=e=>Array.isArray(e)?e:e?e.split(","):[],C=k(p.categoryId),_=k(p.authorId),S=k(p.sectionId),I=k(p.subsectionId),O=t.filter(e=>C.includes(e._id)).map(e=>e.displayName),{data:q}=(0,s.yj)({variables:{sectionIds:S},skip:0===S.length}),{data:A}=(0,s.NC)({variables:{subsectionIds:I},skip:0===I.length}),{data:B}=(0,o.Cx)({skip:!p.authorId}),R=(null==B?void 0:B.authors)||[],T=(null==q?void 0:q.getSectionsBySectionIds)||[],E=(null==A?void 0:A.getSubsectionsBySubsectionIds)||[],z=R.filter(e=>_.includes(e._id)).map(e=>e.display_name),L=(e,a)=>{let i={...p};if("author"===a){let t=R.find(t=>t.display_name===e);if(t){let e=_.filter(e=>e!==t._id);e.length>0?i.authorId=e.join(","):delete i.authorId}}else if("publicationDate"===e)delete i.publishedDateAfter,delete i.publishedDateBefore;else if("filmedOnDate"===e)delete i.filmedOnAfter,delete i.filmedOnBefore;else if("category"===a){let n=t.find(t=>t.displayName===e);if(n){let e=C.filter(e=>e!==n._id);e.length>0?i.categoryId=e.join(","):delete i.categoryId}}else if("section"===a){let t=T.find(t=>t.name===e);if(t){let e=S.filter(e=>e!==t._id);e.length>0?i.sectionId=e.join(","):delete i.sectionId}}else if("subsection"===a){let t=E.find(t=>t.name===e);if(t){let e=I.filter(e=>e!==t._id);e.length>0?i.subsectionId=e.join(","):delete i.subsectionId}}else if("location"===a)delete i.location;else if("cmeOnly"===e)delete i.cmeOnly;else if("vidLength"===e)delete i.vid_length;else if(e==="Location: ".concat(g))delete i.location;else{let t=[];p.filterByTag&&(t="string"==typeof p.filterByTag?p.filterByTag.split(","):p.filterByTag),(t=t.filter(t=>!t.endsWith(":".concat(e)))).length>0?i.filterByTag=t.join(","):delete i.filterByTag}h.push({pathname:window.location.pathname,query:i},void 0,{shallow:n})},P=(e,t,n)=>(0,a.jsx)(i.Z,{label:e,variant:"outlined",onDelete:t,size:"small"},n);return 0!==f.length||g||b||y||j||v||Z||w||0!==C.length||0!==_.length||0!==S.length||0!==I.length?(0,a.jsxs)(l.Z,{direction:"row",spacing:.5,flexWrap:"nowrap",children:[(0,a.jsx)(r.Z,{variant:"body2",fontFamily:"Manrope, sans-serif",flexShrink:0,pl:{xs:0,md:1},children:"Filters"}),(0,a.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",width:"100%",alignItems:"start",spacing:1,children:[(0,a.jsxs)(l.Z,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:[f.map((e,t)=>P("Tag: ".concat(e),()=>L(e),t)),g&&P("Location: ".concat(g),()=>L("Location: ".concat(g)),"location"),b&&P("Video Length: ".concat(b.replace("_"," ")),()=>L("vidLength"),"vidLength"),y&&P("CME eligible",()=>L("cmeOnly"),"cmeOnly"),(j||v)&&P(D("Publication Date",j,v),()=>L("publicationDate"),"publishedDate"),(Z||w)&&P(D("Filming Date",Z,w),()=>L("filmedOnDate"),"filmedOn"),O.map((e,t)=>P("Category: ".concat(e),()=>L(e,"category"),t)),T.map(e=>P("Section: ".concat(e.name),()=>L(e.name,"section"),e._id)),E.map(e=>P("Subsection: ".concat(e.name),()=>L(e.name,"subsection"),e._id)),z.map((e,t)=>P("Author: ".concat(e),()=>L(e,"author"),t))]}),(0,a.jsx)(r.Z,{...(0,c.c)(()=>{h.push({pathname:window.location.pathname,query:x?{q:x}:{}},void 0,{shallow:n})}),variant:"body2",fontFamily:"Manrope, sans-serif",flexShrink:0,pl:{xs:0,md:1},sx:{cursor:"pointer"},children:"Clear All"})]})]}):null}},50548:function(e,t,n){var a=n(52322),i=n(41702),l=n(27149),r=n(35199),o=n(8204),s=n(1262),d=n(58147),c=n(39935),u=n(2784),h=n(38508);t.Z=function(e){let{tags:t,categories:n,theme:p=c.jA,categoryHeader:m="Categories",useShallowRouting:f}=e,[x,g]=(0,u.useState)(!1),b=(0,l.Z)("(min-width: 700px)");return((0,u.useEffect)(()=>{b&&g(!1)},[b]),b)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{direction:"row",spacing:2,children:(0,a.jsx)(d.Z,{})}),(0,a.jsxs)(r.Z,{direction:"row",spacing:2,children:[(0,a.jsx)(o.Z,{"data-testid":"mobile-filter-button",startIcon:(0,a.jsx)(i.Z,{}),size:"small",onClick:()=>g(!x),color:"secondary",children:"Filters"}),(0,a.jsx)(s.Z,{"data-testid":"mobile-filter-drawer",anchor:"bottom",open:x,onClose:()=>g(!1),onOpen:()=>g(!0),children:(0,a.jsx)(h.Z,{tags:t,categories:n,onClose:()=>g(!1),theme:p,categoryHeader:m,shallow:f,showContentType:!0,isMobile:!0})})]})]})}},38508:function(e,t,n){n.d(t,{Z:function(){return e_}});var a=n(52322),i=n(41702),l=n(36269),r=n(92096),o=n(42523),s=n(35199),d=n(62197),c=n(8204),u=n(85801),h=n(56961),p=n(15674),m=n(39935),f=n(62762),x=n(11163),g=n(2784),b=n(60791),y=n(92252),j=n(66198),v=n(41033),Z=n(7671),w=n(80422),D=n(15873),k=n(34358),C=n(82056),_=n(95356),S=n(45596),I=n(72841),O=n(17377),q=n(75233),A=n(29260),B=n.n(A),R=(0,g.memo)(e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!1),[c,h]=(0,g.useState)(!1),p=(0,x.useRouter)(),{query:m}=p,f=void 0!==p.query.authorId,{data:A,loading:B}=(0,q.Cx)({skip:!c&&!f,fetchPolicy:"cache-first"}),R=(null==A?void 0:A.authors)||[],E=p.query.authorId,z=E?E.split(","):[],L=e=>{let n=z.filter(t=>t!==e._id).map(e=>e),a={...m};n.length>0?a.authorId=n:delete a.authorId,p.push({pathname:window.location.pathname,query:a},void 0,{shallow:t,scroll:!0})};return(0,a.jsxs)(r.Z,{"data-testid":"filter-author-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Search by Author"}),(0,a.jsx)(j.Z,{label:(0,a.jsx)(d.Z,{variant:"caption",children:z.length}),size:"small"})]}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsxs)(Z.Z,{children:[(0,a.jsx)(w.Z,{dense:!0,children:R.filter(e=>z.includes(e._id)).map(e=>{var t,n;let i=null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.filename,r=i?i.startsWith("http")?i:"/api/files/".concat(i):"";return(0,a.jsxs)(D.ZP,{secondaryAction:(0,a.jsx)(u.Z,{edge:"end","aria-label":"delete",onClick:()=>L(e),children:(0,a.jsx)(l.Z,{})}),children:[(0,a.jsx)(k.Z,{children:(0,a.jsx)(T,{src:r,alt:null!==(n=null==e?void 0:e.display_name)&&void 0!==n?n:""})}),(0,a.jsx)(C.Z,{primary:null==e?void 0:e.display_name})," "]},e.display_name)})}),(0,a.jsx)(_.Z,{size:"small",open:c,onOpen:()=>h(!0),onClose:()=>h(!1),clearOnEscape:!0,clearOnBlur:!0,loading:B,options:R,getOptionLabel:e=>{var t;return null!==(t=e.display_name)&&void 0!==t?t:""},onChange:(e,n)=>{if(n){let e={...m};e.page&&delete e.page;let a=n.map(e=>e._id).join(",");p.push({pathname:window.location.pathname,query:{...e,authorId:a}},void 0,{shallow:t,scroll:!0}),h(!1)}},multiple:!0,value:R.filter(e=>z.includes(e._id)),disableCloseOnSelect:!0,renderTags:()=>null,"data-testid":"author-autocomplete",renderInput:e=>(0,a.jsx)(S.Z,{...e,placeholder:"Search by Author","data-testid":"author-search-input",inputProps:{...e.inputProps,"aria-label":"Search by author"},InputProps:{...e.InputProps,endAdornment:(0,a.jsxs)(g.Fragment,{children:[B?(0,a.jsx)(I.Z,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}}),renderOption:(e,t)=>{var n,i;let l=null==t?void 0:null===(n=t.image)||void 0===n?void 0:n.filename,r=l?l.startsWith("http")?l:"/api/files/".concat(l):"";return(0,a.jsxs)(s.Z,{direction:"row",gap:2,component:D.ZP,...e,children:[(0,a.jsx)(T,{src:r,alt:null!==(i=null==t?void 0:t.display_name)&&void 0!==i?i:""}),(0,a.jsx)(C.Z,{primary:null==t?void 0:t.display_name,primaryTypographyProps:{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]})},PaperComponent:e=>(0,a.jsx)(O.Z,{...e,sx:{width:{md:300,xs:"100%"}},children:e.children})})]})})]})});let T=(0,g.memo)(function(e){let{src:t,alt:n}=e,[i,l]=(0,g.useState)(!1);return(0,a.jsx)(B(),{src:i||!t?"/img/user-profile-icon.png":t,alt:n,width:40,height:40,style:{objectFit:"cover",borderRadius:"50%",backgroundColor:"#f0f0f0"},onError:()=>l(!0)})});var E=n(32538),z=n(69692),L=n(39332),P=n(65992),F=n(61035);let V=(0,P.ZP)("span")(e=>{let{theme:t}=e;return{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px ".concat(t.palette.grey[400],", inset 0 -1px 0 ").concat(t.palette.grey[400]),backgroundColor:"inherit",".Mui-focusVisible &":{outline:"2px s
1olid #137CBD",outlineOffset:2},"input:hover ~ &":{backgroundColor:"inherit"},"input:disabled ~ &":{boxShadow:"none",background:"rgba(206,217,224,.5)"}}}),M=(0,P.ZP)(V)(e=>{let{theme:t}=e;return{backgroundColor:t.palette.primary.light,boxShadow:"none",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'},"input:hover ~ &":{backgroundColor:t.palette.primary.light}}});function W(e){return(0,a.jsx)(F.Z,{sx:{"&:hover":{bgcolor:"transparent"}},disableRipple:!0,color:"default",checkedIcon:(0,a.jsx)(M,{}),icon:(0,a.jsx)(V,{}),inputProps:{"aria-label":"Checkbox demo"},...e})}let N={category:"categoryId",section:"sectionId",subsection:"subsectionId"},Y=(0,E.D)({stringify:e=>"".concat(e.categoryName," ").concat(e.label)}),G=e=>"string"==typeof e?e.split(","):Array.isArray(e)?e:[];var H=e=>{let{categories:t,categoryHeader:n="Categories",shallow:i=!1}=e,[l,c]=(0,g.useState)(!0),h=(0,x.useRouter)(),p=(0,L.useParams)(),m=h.query,f=(0,g.useMemo)(()=>{let e=[];for(let s of t){var n,a,i,l,r,o;let t=null!==(n=s.displayName)&&void 0!==n?n:"";for(let n of(e.push({kind:"category",_id:s._id,label:t,categoryName:t,locked:!!(null==p?void 0:p.category)&&p.category===s.slug}),null!==(a=s.sections)&&void 0!==a?a:[]))for(let a of(e.push({kind:"section",_id:n._id,label:null!==(i=n.name)&&void 0!==i?i:"",categoryName:t}),null!==(l=n.subSections)&&void 0!==l?l:[]))e.push({kind:"subsection",_id:a._id,label:"".concat(null!==(r=n.name)&&void 0!==r?r:""," — ").concat(null!==(o=a.name)&&void 0!==o?o:""),categoryName:t})}return e},[t,null==p?void 0:p.category]),w={category:G(m.categoryId),section:G(m.sectionId),subsection:G(m.subsectionId)},D=f.filter(e=>e.locked||w[e.kind].includes(e._id));return(0,a.jsxs)(r.Z,{"data-testid":"filter-category-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(d.Z,{variant:"subtitle1",children:n}),(0,a.jsx)(j.Z,{label:(0,a.jsx)(d.Z,{variant:"caption",children:D.length}),size:"small"})]}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>c(!l),children:l?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(_.Z,{multiple:!0,size:"small",options:f,value:D,onChange:(e,t)=>
1{let n={...m};for(let e of["category","section","subsection"]){let a=t.filter(t=>t.kind===e&&!t.locked).map(e=>e._id),i=N[e];a.length>0?n[i]=a.join(","):delete n[i]}n.page&&delete n.page,h.push({pathname:window.location.pathname,query:n},void 0,{shallow:i,scroll:!0})},groupBy:e=>e.categoryName,getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.kind===t.kind&&e._id===t._id,getOptionDisabled:e=>!!e.locked,filterOptions:Y,disableCloseOnSelect:!0,"data-testid":"filter-category-autocomplete",renderInput:e=>(0,a.jsx)(S.Z,{...e,placeholder:"Search","data-testid":"filter-category-input",inputProps:{...e.inputProps,"aria-label":"Search categories"}}),renderTags:(e,t)=>e.map((e,n)=>{let{key:i,onDelete:l,...r}=t({index:n});return(0,a.jsx)(j.Z,{label:e.label,size:"small",...r,onDelete:e.locked?void 0:l},"".concat(e.kind,"-").concat(e._id))}),renderOption:(e,t,n)=>{let{selected:i}=n,{key:l,...r}=e;return(0,a.jsxs)(z.Z,{component:"li",...r,sx:{pl:"".concat({category:8,section:24,subsection:40}[t.kind],"px !important")},children:[(0,a.jsx)(W,{checked:i,sx:{mr:1,p:0}}),(0,a.jsx)(d.Z,{variant:"body2",children:t.label})]},"".concat(t.kind,"-").concat(t._id))}})})})]})},U=e=>{var t,n;let{tags:i,type:l,shallow:c,defaultOpen:h=!0}=e,[p,m]=(0,g.useState)(h),f=(0,x.useRouter)(),w=f.query,D=Array.isArray(w.filterByTag)?w.filterByTag:null!==(n=null===(t=w.filterByTag)||void 0===t?void 0:t.split(","))&&void 0!==n?n:[],k=i.filter(e=>{let{name:t}=e;return D.includes("".concat(l,":").concat(t))});return(0,a.jsxs)(r.Z,{"data-testid":"filter-tags-section-".concat(l),sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(d.Z,{variant:"subtitle1",textTransform:"capitalize",children:"independent"===l?"Tags":l}),(0,a.jsx)(j.Z,{label:(0,a.jsx)(d.Z,{variant:"caption",children:k.length}),size:"small"})]}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>m(!p),children:p?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:p,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(_.Z,{multiple:!0,size:"small",options:i,value:k,onChange:(e,t,n,a)=>{var i,r;let o=new URLSearchParams(window.location.search),s=null!==(r=null===(i=o.get("filterByTag"))||void 0===i?void 0:i.split(",").filter(Boolean))&&void 0!==r?r:[],d=s.filter(e=>!e.startsWith("".concat(l,":"))),u=s.filter(e=>e.startsWith("".concat(l,":"))),h=(null==a?void 0:a.option)?"".concat(l,":").concat(a.option.name):null,p=u;"selectOption"===n&&h?p=u.includes(h)?u:[...u,h]:"removeOption"===n&&h?p=u.filter(e=>e!==h):"clear"===n&&(p=[]);let m=[...d,...p];m.join(",")!==s.join(",")&&(m.length>0?o.set("filterByTag",m.join(",")):o.delete("filterByTag"),o.delete("page"),f.push({pathname:window.location.pathname,search:o.toString()},void 0,{shallow:c,scroll:!0}))},getOptionLabel:e=>e.name,isOptionEqualToValue:(e,t)=>e._id===t._id,disableCloseOnSelect:!0,ChipProps:{size:"small"},"data-testid":"filter-tag-autocomplete-".concat(l),renderInput:e=>(0,a.jsx)(S.Z,{...e,placeholder:"Search","data-testid":"filter-tag-input-".concat(l),inputProps:{...e.inputProps,"aria-label":"Search ".concat("independent"===l?"tags":"".concat(l," tags"))}}),renderOption:(e,t,n)=>{let{selected:i}=n,{key:l,...r}=e;return(0,a.jsxs)("li",{...r,children:[(0,a.jsx)(W,{checked:i,sx:{mr:1,p:0}}),t.name]},t._id)}})})})]})},K=n(45986),Q=n(93776),X=n(24511),$=n(28879),J=n.n($);let ee=/^(0?[1-9]|1[0-2])([/-])(0?[1-9]|[12]\d|3[01])\2(\d{4})$/,et=e=>{let t=e.match(ee);if(!t)return null;let[,n,,a,i]=t;return"".concat(n.padStart(2,"0"),"/").concat(a.padStart(2,"0"),"/").concat(i)},en=e=>!!e&&null!==et(e);var ea=e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!1),l=(0,x.useRouter)(),{filmedOnAfter:h,filmedOnBefore:p}=l.query;J()().format("MM/DD/YYYY");let m=X.Ry({afterDate:X.Z_().test("isValidDate","Invalid date format (mm/dd/yyyy or mm-dd-yyyy)",e=>!e||en(e)).test("dateOrder",'"After" must be earlier than "Before"',function(e){let{beforeDate:t}=this.parent;if(!e||!t)return!0;let n=et(e),a=et(t);return!n||!a||new Date(n)<=new Date(a)}),beforeDate:X.Z_().test("isValidDate","Invalid date format (mm/dd/yyyy or mm-dd-yyyy)",e=>!e||en(e))}),f=(0,Q.TA)({initialValues:{afterDate:(Array.isArray(h)?h[0]:h)||"",beforeDate:(Array.isArray(p)?p[0]:p)||""},validationSchema:m,onSubmit:e=>{let n={...l.query};n.page&&delete n.page;let a=e.afterDate?et(e.afterDate):null,i=e.beforeDate?et(e.beforeDate):null;a?n.filmedOnAfter=a:delete n.filmedOnAfter,i?n.filmedOnBefore=i:delete n.filmedOnBefore,l.push({pathname:window.location.pathname,query:n},void 0,{shallow:t,scroll:!0})}});return(0,g.useEffect)(()=>{let e=void 0!==l.query.filmedOnAfter,t=void 0!==l.query.filmedOnBefore;!e&&f.values.afterDate&&f.setFieldValue("afterDate",""),!t&&f.values.beforeDate&&f.setFieldValue("beforeDate","")},[l.query,f.setFieldValue]),(0,a.jsxs)(r.Z,{"data-testid":"filter-filmed-date-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Filming Date"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)("form",{onSubmit:f.handleSubmit,children:(0,a.jsxs)(s.Z,{component:Z.Z,spacing:2,sx:{pt:0},children:[(0,a.jsxs)(z.Z,{children:[(0,a.jsx)(K.Z,{children:"After"}),(0,a.jsx)(S.Z,{id:"after-date","data-testid":"filmed-after-date-input",variant:"outlined",size:"small",type:"text",fullWidth:!0,name:"afterDate",placeholder:"mm/dd/yyyy",value:f.values.afterDate,onChange:f.handleChange,onBlur:f.handleBlur,error:f.touched.afterDate&&!!f.errors.afterDate,helperText:f.touched.afterDate&&f.errors.afterDate})]}),(0,a.jsxs)(z.Z,{children:[(0,a.jsx)(K.Z,{children:"Before"}),(0,a.jsx)(S.Z,{id:"before-date","data-testid":"filmed-before-d
1ate-input",variant:"outlined",size:"small",type:"text",fullWidth:!0,name:"beforeDate",placeholder:"mm/dd/yyyy",value:f.values.beforeDate,onChange:f.handleChange,onBlur:f.handleBlur,error:f.touched.beforeDate&&!!f.errors.beforeDate,helperText:f.touched.beforeDate&&f.errors.beforeDate})]}),(0,a.jsx)(c.Z,{type:"submit",variant:"outlined",color:"secondary",size:"small","data-testid":"filmed-date-filter-button",disabled:!f.isValid||!f.dirty||!f.values.afterDate&&!f.values.beforeDate,children:"Filter"}),(0,a.jsx)(c.Z,{variant:"outlined",color:"secondary",size:"small","data-testid":"filmed-date-clear-button",onClick:()=>{f.resetForm();let e={...l.query};((null==e?void 0:e.filmedOnAfter)||e.filmedOnBefore)&&(delete e.filmedOnAfter,delete e.filmedOnBefore,l.push({pathname:window.location.pathname,query:e},void 0,{shallow:t,scroll:!0}))},disabled:!f.values.afterDate&&!f.values.beforeDate,children:"Clear"})]})})})]})},ei=n(68019),el=n(24032),er=n(69506),eo=n(71423),es=n(52616),ed=n(3891),ec=n(61640);let eu=(0,P.ZP)("span")(e=>{let{theme:t}=e;return{borderRadius:"50%",width:16,height:16,boxShadow:"inset 0 0 0 1px ".concat(t.palette.grey[400],", inset 0 -1px 0 ").concat(t.palette.grey[400]),backgroundColor:"inherit",".Mui-focusVisible &":{outline:"2px solid #137CBD",outlineOffset:2},"input:hover ~ &":{backgroundColor:"inherit"},"input:disabled ~ &":{boxShadow:"none",background:"rgba(206,217,224,.5)"}}}),eh=(0,P.ZP)(eu)(e=>{let{theme:t}=e;return{backgroundColor:t.palette.primary.light,boxShadow:"none",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:16,height:16,backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'},"input:hover ~ &":{backgroundColor:t.palette.primary.light}}});function ep(e){return(0,a.jsx)(ec.Z,{disableRipple:!0,color:"default",checkedIcon:(0,a.jsx)(eh,{}),icon:(0,a.jsx)(eu,{}),...e})}var em=e=>{var t;let{defaultMatch:n="any",shallow:i}=e,[l,c]=(0,g.useState)(!0),h=(0,x.useRouter)(),{trackClick:p}=(0,ed.G)(),m=h.query,f=null!==(t=m.match_by)&&void 0!==t?t:n,j=["/search","/articles","/categories/[category]","/author/[slug]"].some(e=>h.pathname.startsWith(e));return(0,a.jsxs)(r.Z,{"data-testid":"filter-match-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Filter Match"}),(0,a.jsx)(el.Z,{title:"Choose 'Match All' to return results that satisfy every condition. Choose 'Match Any' to return results that satisfy at least one condition.",arrow:!0,componentsProps:{tooltip:{sx:j?{}:{backgroundColor:"grey.800",color:"black",opacity:"1 !important"}},arrow:{sx:j?{}:{color:"white"}}},children:(0,a.jsx)(ei.Z,{color:"action",fontSize:"small"})})]}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"toggle filter collapse",onClick:()=>c(!l),children:l?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(er.Z,{sx:{width:"100%"},children:(0,a.jsxs)(eo.Z,{name:"match_by",onChange:e=>{let t=e.currentTarget.value,n={...m};t?n.match_by=t:delete n.match_by,n.page&&delete n.page,h.push({pathname:window.location.pathname,query:n},void 0,{shallow:i,scroll:!0}),p("match-by-filter-".concat(t))},value:f,children:[(0,a.jsx)(es.Z,{value:"any",control:(0,a.jsx)(ep,{checked:"any"===f}),label:"Match Any","data-testid":"filter-match-any",sx:{..."any"===f&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"all",control:(0,a.jsx)(ep,{checked:"all"===f}),label:"Match All","data-testid":"filter-match-all",sx:{..."all"===f&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}})]})})})})]})},ef=n(56312),ex=n(96664),eg=n(35469),eb=e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!1),[l,c]=(0,g.useState)(""),h=(0,x.useRouter)();(0,g.useEffect)(()=>{h.query.location?c(h.query.location):m()},[h.query.location]);let p=()=>{let e={...h.query};""===l.trim()?delete e.location:e.location=l.trim(),e.page&&delete e.page,h.push({pathname:window.location.pathname,query:e},void 0,{shallow:t,scroll:!0})},m=()=>{c("");let e={...h.query};e.location&&(delete e.location,h.push({pathname:window.location.pathname,query:e},void 0,{shallow:t,scroll:!0}))};return(0,a.jsxs)(r.Z,{"data-testid":"filter-location-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Location"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(S.Z,{id:"outlined-basic",placeholder:"Search Location",variant:"outlined",size:"small",fullWidth:!0,"data-testid":"filter-location-input",value:l,onCh
1ange:e=>c(e.target.value),onKeyDown:e=>{"Enter"===e.key&&p()},InputProps:{endAdornment:(0,a.jsxs)(eg.Z,{position:"end",children:[l&&(0,a.jsx)(u.Z,{size:"small","aria-label":"Clear location",onClick:m,edge:"end",children:(0,a.jsx)(ef.Z,{color:"inherit",fontSize:"small"})}),(0,a.jsx)(u.Z,{size:"small","aria-label":"Search location",onClick:p,edge:"end",children:(0,a.jsx)(ex.Z,{color:"inherit",fontSize:"small"})})]})}})})})]})},ey=e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!1),l=(0,x.useRouter)(),{publishedDateAfter:h,publishedDateBefore:p}=l.query;J()().format("MM/DD/YYYY");let m=X.Ry({afterDate:X.Z_().test("isValidDate","Invalid date format (mm/dd/yyyy or mm-dd-yyyy)",e=>!e||en(e)).test("dateOrder",'"After" must be earlier than "Before"',function(e){let{beforeDate:t}=this.parent;if(!e||!t)return!0;let n=et(e),a=et(t);return!n||!a||new Date(n)<=new Date(a)}),beforeDate:X.Z_().test("isValidDate","Invalid date format (mm/dd/yyyy or mm-dd-yyyy)",e=>!e||en(e))}),f=(0,Q.TA)({initialValues:{afterDate:(Array.isArray(h)?h[0]:h)||"",beforeDate:(Array.isArray(p)?p[0]:p)||""},validationSchema:m,onSubmit:e=>{let n={...l.query};n.page&&delete n.page;let a=e.afterDate?et(e.afterDate):null,i=e.beforeDate?et(e.beforeDate):null;a?n.publishedDateAfter=a:delete n.publishedDateAfter,i?n.publishedDateBefore=i:delete n.publishedDateBefore,l.push({pathname:window.location.pathname,query:n},void 0,{shallow:t,scroll:!0})}});return(0,g.useEffect)(()=>{let e=void 0!==l.query.publishedDateAfter,t=void 0!==l.query.publishedDateBefore;!e&&f.values.afterDate&&f.setFieldValue("afterDate",""),!t&&f.values.beforeDate&&f.setFieldValue("beforeDate","")},[l.query,f.setFieldValue]),(0,a.jsxs)(r.Z,{"data-testid":"filter-publication-date-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Publication Date"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)("form",{onSubmit:f.handleSubmit,children:(0,a.jsxs)(s.Z,{component:Z.Z,spacing:2,sx:{pt:0},children:[(0,a.jsxs)(z.Z,{children:[(0,a.jsx)(K.Z,{children:"After"}),(0,a.jsx)(S.Z,{id:"after-date","data-testid":"publication-after-date-input",variant:"outlined",size:"small",type:"text",fullWidth:!0,name:"afterDate",placeholder:"mm/dd/yyyy",value:f.values.afterDate,onChange:f.handleChange,onBlur:f.handleBlur,error:f.touched.afterDate&&!!f.errors.afterDate,helperText:f.touched.afterDate&&f.errors.afterDate})]}),(0,a.jsxs)(z.Z,{children:[(0,a.jsx)(K.Z,{children:"Before"}),(0,a.jsx)(S.Z,{id:"before-date","data-testid":"publication-before-d
1ate-input",variant:"outlined",size:"small",type:"text",fullWidth:!0,name:"beforeDate",placeholder:"mm/dd/yyyy",value:f.values.beforeDate,onChange:f.handleChange,onBlur:f.handleBlur,error:f.touched.beforeDate&&!!f.errors.beforeDate,helperText:f.touched.beforeDate&&f.errors.beforeDate})]}),(0,a.jsx)(c.Z,{type:"submit",variant:"outlined",color:"secondary",size:"small","data-testid":"publication-date-filter-button",disabled:!f.isValid||!f.dirty||!f.values.afterDate&&!f.values.beforeDate,children:"Filter"}),(0,a.jsx)(c.Z,{variant:"outlined",color:"secondary",size:"small","data-testid":"publication-date-clear-button",onClick:()=>{f.resetForm();let e={...l.query};((null==e?void 0:e.publishedDateAfter)||e.publishedDateBefore)&&(delete e.publishedDateAfter,delete e.publishedDateBefore,l.push({pathname:window.location.pathname,query:e},void 0,{shallow:t,scroll:!0}))},disabled:!f.values.afterDate&&!f.values.beforeDate,children:"Clear"})]})})})]})},ej=e=>{var t;let{defaultSort:n=f.Qo.None,shallow:i}=e,[l,c]=(0,g.useState)(!0),h=(0,x.useRouter)(),{trackClick:p}=(0,ed.G)(),m=h.query,j="/search"===h.pathname||!!m.q,w=null!==(t=m.sort_by)&&void 0!==t?t:n;return(0,a.jsxs)(r.Z,{"data-testid":"filter-sorting-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Sorting"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>c(!l),children:l?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(er.Z,{sx:{width:"100%"},children:(0,a.jsxs)(eo.Z,{"data-testid":"filter-sorting-options","aria-label":"Sort by",name:"radio-buttons-group",onChange:e=>{let t=e.currentTarget.value,n={...m};t?n.sort_by=t:delete n.sort_by,n.page&&delete n.page,h.push({pathname:window.location.pathname,query:n},void 0,{shallow:i,scroll:!0}),p("sort-articles-".concat(t))},children:[j&&(0,a.jsx)(es.Z,{value:"most_relevant",control:(0,a.jsx)(ep,{checked:"most_relevant"===w}),label:"Most Relevant",sx:{..."most_relevant"===w&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"published",control:(0,a.jsx)(ep,{checked:["published","none"].includes(w)}),label:"Publication Date","data-testid":"filter-sorting-publication-date",sx:{...["published","none"].includes(w)&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"alphabetic",control:(0,a.jsx)(ep,{checked:"alphabetic"===w}),label:"Alphabetic","data-testid":"filter-sorting-alphabetic",sx:{..."alphabetic"===w&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}})]})})})})]})},ev=e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!1),l=(0,x.useRouter)(),r=l.query;return(0,a.jsxs)(O.Z,{"data-testid":"filter-video-length-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Video Length"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"settings",onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsxs)(Z.Z,{component:s.Z,spacing:2,sx:{pt:0},children:[(0,a.jsx)(er.Z,{sx:{width:"100%"},children:(0,a.jsxs)(eo.Z,{"aria-label":"Video length",name:"radio-buttons-group",onChange:e=>{let n=e.currentTarget.value,a={...r};n?a.vid_length=n:delete a.vid_length,a.page&&delete a.page,l.push({pathname:window.location.pathname,query:a},void 0,{shallow:t,scroll:!0})},"data-testid":"video-length-radio-group",children:[(0,a.jsx)(es.Z,{value:"under_30","data-testid":"video-length-under-30",control:(0,a.jsx)(ep,{checked:"under_30"===r.vid_length}),label:"Less than 30 minutes",sx:{..."under_30"===r.vid_length&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"under_60","data-testid":"video-length-under-60",control:(0,a.jsx)(ep,{checked:"under_60"===r.vid_length}),label:"Less than 1 hour",sx:{..."under_60"===r.vid_length&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"over_60","data-testid":"video-length-over-60",control:(0,a.jsx)(ep,{checked:"over_60"===r.vid_length}),label:"Longer than 1 hour",sx:{..."over_60"===r.vid_length&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}})]})}),(0,a.jsx)(c.Z,{variant:"outlined",fullWidth:!0,color:"secondary",size:"small",disabled:!r.vid_length,onClick:()=>{let e={...r};delete e.vid_length,l.push({pathname:window.location.pathname,query:e},void 0,{shallow:t,scroll:!0})},children:"Clear"})]})})]})},eZ=e=>{var t;let{defaultContentType:n="articles",shallow:i}=e,[l,c]=(0,g.useState)(!0),h=(0,x.useRouter)(),p=h.query,m=null!==(t=p.contentType)&&void 0!==t?t:n;return(0,a.jsxs)(r.Z,{sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"Video Type"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"toggle filter collapse",onClick:()=>c(!l),children:l?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(er.Z,{sx:{width:"100%"},children:(0,a.jsxs)(eo.Z,{name:"contentType",onChange:e=>{let t=e.currentTarget.value,n={...p,contentType:t};n.page&&delete n.page,h.push({pathname:window.location.pathname,query:n},void 0,{shallow:i,scroll:!0})},value:m,children:[(0,a.jsx)(es.Z,{value:"articles",control:(0,a.jsx)(ep,{checked:"articles"===m}),label:"Articles",sx:{..."articles"===m&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"animations",control:(0,a.jsx)(ep,{checked:"animations"===m}),label:"Animations",sx:{..."animations"===m&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}}),(0,a.jsx)(es.Z,{value:"shorts",control:(0,a.jsx)(ep,{checked:"shorts"===m}),label:"Shorts",sx:{..."shorts"===m&&{backgroundColor:"grey.700"},mx:0,borderRadius:2}})]})})})})]})},ew=n(43211);let eD="CME-eligible articles only";var ek=e=>{let{shallow:t}=e,[n,i]=(0,g.useState)(!0),l=(0,x.useRouter)(),{trackClick:c}=(0,ed.G)(),h=(0,ew.qq)(l.query.cmeOnly);return(0,a.jsxs)(r.Z,{"data-testid":"filter-cme-section",sx:{m:1,borderRadius:2,boxShadow:"none"},children:[(0,a.jsx)(o.Z,{title:(0,a.jsx)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:(0,a.jsx)(d.Z,{variant:"subtitle1",children:"CME"})}),sx:{p:1},action:(0,a.jsx)(u.Z,{"aria-label":"Toggle CME filter section","aria-expanded":n,onClick:()=>i(!n),children:n?(0,a.jsx)(b.Z,{}):(0,a.jsx)(y.Z,{})})}),(0,a.jsx)(v.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(Z.Z,{sx:{pt:0},children:(0,a.jsx)(es.Z,{control:(0,a.jsx)(W,{"data-testid":"filter-cme-checkbox",checked:h,onChange:(e,n)=>{let a=new URLSearchParams(window.location.search);n?a.set("cmeOnly","true"):a.delete("cmeOnly"),a.delete("page"),l.push({pathname:window.location.pathname,search:a.toString()},void 0,{shallow:t,scroll:!0}),c("cme-filter-".concat(n?"on":"off"))},inputProps:{"aria-label":eD}}),label:eD,sx:{...h&&{backgroundColor:"grey.700"},mx:0,width:"100%",borderRadius:2}})})})]})};let eC=()=>{let[e,t]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let e=()=>{t(!0),window.removeEventListener("scroll",e),window.removeEventListener("click",e),window.removeEventListener("keydown",e),window.removeEventListener("touchstart",e)};return window.addEventListener("scroll",e),window.addEventListener("click",e),window.addEventListener("keydown",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("click",e),window.removeEventListener("keydown",e),window.removeEventListener("touchstart",e)}},[]),e};var e_=e=>{let{tags:t,categories:n,onClose:g,hideAuthors:b=!1,showContentType:y=!1,categoryHeader:j,theme:v=m.jA,defaultSort:Z=f.Qo.None,isMobile:w=!1,shallow:D}=e,k=(0,x.useRouter)();return eC(),(0,a.jsx)(p.Z,{theme:v,children:(0,a.jsxs)(r.Z,{"data-testid":w?"filter-sidebar-mobile":"filter-sidebar",sx:{border:1.5,borderColor:"grey.700",bgcolor:"background.default",borderRadius:2,overflow:{md:"hidden"}},component:"aside",children:[(0,a.jsx)(o.Z,{title:(0,a.jsxs)(s.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,a.jsx)(d.Z,{component:"h2",children:"Filters"}),(0,a.jsx)(c.Z,{"data-testid":"filter-clear-all",variant:"outlined",color:"secondary",size:"small",onClick:()=>{k.query&&k.push({pathname:window.location.pathname,query:{}},void 0,{shallow:D})},sx:{textTransform:"capitalize"},children:"Clear All"})]}),avatar:(0,a.jsx)(i.Z,{}),sx:{px:2,py:1.5,position:"sticky",top:0,bgcolor:{xs:"background.default",md:"inherit"},zIndex:1},action:(0,a.jsx)(u.Z,{"data-testid":"filter-close","aria-label":"Close filters",onClick:g,sx:{dis
1play:"flex","@media (min-width: 700px)":{display:"none"}},children:(0,a.jsx)(l.Z,{})})}),(0,a.jsx)(h.Z,{}),y&&(0,a.jsx)(eZ,{defaultContentType:"articles",shallow:D}),(0,a.jsx)(ej,{defaultSort:Z,shallow:D}),(0,a.jsx)(ek,{shallow:D}),(0,a.jsx)(em,{shallow:D}),(0,a.jsx)(H,{categories:null!=n?n:[],categoryHeader:j,shallow:D}),(0,a.jsxs)(a.Fragment,{children:[t&&Object.entries(t).map(e=>{let[t,n]=e;return(0,a.jsx)(U,{tags:n,type:t,shallow:D,defaultOpen:"independent"===t||"approach"===t},t)}),(0,a.jsx)(eb,{shallow:D}),(0,a.jsx)(ey,{shallow:D}),(0,a.jsx)(ea,{shallow:D}),(0,a.jsx)(ev,{shallow:D}),!b&&(0,a.jsx)(R,{shallow:D})]})]})})}},58147:function(e,t,n){var a=n(52322),i=n(56241),l=n(33042),r=n(35156),o=n(35199),s=n(85801),d=n(11163);t.Z=()=>{var e,t;let n=(0,d.useRouter)(),c=n.query,u=null!==(e=c.display)&&void 0!==e?e:"large";((null==c?void 0:c.contentType)==="animations"||(null==c?void 0:c.contentType)==="shorts")&&(u=null!==(t=c.display)&&void 0!==t?t:"medium");let h=e=>{switch(e){case"large":return(0,a.jsx)(l.Z,{fontSize:"small"});case"medium":return(0,a.jsx)(r.Z,{fontSize:"small"});case"tiny":return(0,a.jsx)(i.Z,{fontSize:"small"})}},p=e=>{let t=10;switch(e){case"large":t=10;break;case"medium":t=20;break;case"tiny":t=30}n.push({query:{...n.query,display:e,perPage:t}},void 0)};return(0,a.jsx)(o.Z,{direction:"row",alignItems:"center",spacing:2,display:{xs:"none",md:"flex"},children:["large","medium","tiny"].map(e=>(0,a.jsx)(s.Z,{size:"small",sx:{opacity:e!==u?.6:1,border:e===u?.6:void 0,borderRadius:e===u?1:void 0,p:.5},"aria-label":"display-".concat(e),onClick:()=>p(e),"data-event":"select-articles-view-".concat(e),disableRipple:!0,children:h(e)},e))})}},46665:function(e,t,n){n.d(t,{c:function(){return a}});let a=e=>({role:"button",tabIndex:0,onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e(t))}})},85610:function(e,t,n){var a=n(52322),i=n(69692),l=n(86617),r=n(15674),o=n(39935),s=n(2784),d=n(85038),c=n(8634),u=n(80343),h=n(35608);t.Z=(0,s.memo)(function(e){let{children:t,noBackground:n,noContainer:p,enableGutters:m,noFooter:f}=e,[x,g]=(0,s.useState)(25),b=(0,s.createRef)(),y=(0,a.jsx)(i.Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1},component:"main",id:"main-content",tabIndex:-1,children:t});return(0,s.useEffect)(()=>{var e,t;(null===(e=b.current)||void 0===e?void 0:e.clientHeight)&&g(null===(t=b.current)||void 0===t?void 0:t.clientHeight)},[g,x,b]),(0,a.jsxs)(i.Z,{height:"100%",minHeight:"100vh",width:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",sx:{backgroundColor:n?null:"background.default"},children:[(0,a.jsx)(d.Z,{}),(0,a.jsx)(u.Z,{}),(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(c.Z,{ref:b}),p?y:(0,a.jsx)(l.Z,{maxWidth:"lg",component:"div",sx:{px:{xs:0,sm:0,md:m?2:0},mb:{md:6}},children:y}),!f&&(0,a.jsx)(r.Z,{theme:o.D4,children:(0,a.jsx)(h.Z,{})})]})]})})},75233:function(e,t,n){n.d(t,{Cx:function(){return c}});var a=n(82729),i=n(81548),l=n(2756);function r(){let e=(0,a._)(["\n    query AuthorsList {\n  authors {\n    _id\n    display_name\n    slug\n    image {\n      filename\n    }\n  }\n}\n    "]);return r=function(){return e},e}function o(){let e=(0,a._)(["\n    query Authors {\n  authors {\n    _id\n    display_name\n    slug\n    image {\n      filename\n    }\n  }\n}\n    "]);return o=function(){return e},e}let s={},d=(0,i.Ps)(r());function c(e){let t={...s,...e};return l.a(d,t)}(0,i.Ps)(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.