PageSourceSearch

https://jomi.com/_next/static/chunks/7112-5b5aeffa572b0ab3.js?dpl=dpl_FJ2MSWYTgwBu6viSCPZDZ3CApUft

js jomi.com collected 2026-09-25 04:00:14 UTC 51,934 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:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="38f3d5c0-b5a4-4ba3-878f-3d0f7c671e8d",e._sentryDebugIdIdentifier="sentry-dbid-38f3d5c0-b5a4-4ba3-878f-3d0f7c671e8d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7112],{68214:function(e,n,t){t.r(n);var r,l,i,o=t(12092);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}n.default=function(e){return o.createElement("svg",a({width:85,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=o.createElement("mask",{id:"logo-white_svg__a",fill:"#fff"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.09.724l-.86.213a3.046 3.046 0 00-.862 0l-.215.213h-.646l-.215.213h-.43v.212h-.431v.213h-.216L61 2.001h-.215l-.215.213h-.216v.213h-.215l-.215.213a87.074 87.074 0 01-2.153 2.343l-.215.213v.213h-.216v-.213l-.215-.213V4.77l-.215-.213v-.213h-.215v-.213l-.216-.213-.43-.639A7.345 7.345 0 0051.528.937a23.717 23.717 0 00-3.66.213h-.646l-.215.213h-.215l-.215.212-.431.213h-.43v.213H45.5l-.215.213-.43.213v.213a13.031 13.031 0 00-1.723 1.917h-.215V2.001h-1.938V22.02h2.153v-5.75c.142-2.915.357-5.827.646-8.732l.215-.213V6.9h.215l.216-.426V6.26l.215-.213v-.213l.215-.213.216-.213v-.213a6.674 6.674 0 012.152-1.49l.216-.214h.43l.215-.213h.431l.43-.213h1.723l.43.213h.646l.215.213h.216l.215.213h.43l.216.213h.215v.213h.215v.213h.216l.215.213h.215l.216.213v.213l.215.213.215.213v.213h.215v.426h.216v.426c.26.55.475 1.12.645 1.703v.426l.216.213V22.02h2.368v-6.176c.105-2.847.32-5.688.646-8.519v-.212l.215-.426h.215V6.26h.215v-.213l.216-.426.215-.213.215-.213.43-.426c.224-.205.44-.418.647-.639h.215l.215-.213.43-.213h.216l.215-.213h.43l.216-.213h.215l.862-.213h1.507l.215.213h.
1646l.215.213h.43l.216.213h.215v.213h.43l.216.213v.213h.215A5.747 5.747 0 0170.472 6.9l.216.213v.425l.215.213v.64l.215.212V22.02h2.368v-6.602a224.16 224.16 0 00-.646-9.37v-.213h-.215v-.426l-.215-.213-.215-.426v-.213l-.216-.213v-.213h-.215v-.213h-.215a7.724 7.724 0 00-2.639-2.29 7.815 7.815 0 00-3.389-.904h-.43zm-62 11.713c-.09 4.473-.234 8.946-.43 13.416l-.215.213v.426l-.216.213v.213l-.215.213v.426h-.215v.213h-.216v.426l-.215.213-.215.213-.215.213v.213H.722v.213l-.215.213-.215.213c-.215.213-.215.213.215.425.151.135.295.277.43.426l.216.213c.064.146.136.288.215.426.146.067.29.138.43.213h.216l.43-.426.216-.213.215-.213v-.212h.215v-.213l.216-.213.215-.213v-.213h.215v-.213l.216-.213v-.213l.215-.213v-.213l.215-.213v-.426l.215-.426.216-.213v-.639l.215-.639v-.213h.215v-1.064l.215-.213V2H3.09v10.436zm79.223-.426V22.02h2.368V2h-2.368v10.01z"}))),l||(l=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.09.724l-.86.213a3.046 3.046 0 00-.862 0l-.215.213h-.646l-.215.213h-.43v.212h-.431v.213h-.216L61 2.001h-.215l-.215.213h-.216v.213h-.215l-.215.213a87.074 87.074 0 01-2.153 2.343l-.215.213v.213h-.216v-.213l-.215-.213V4.77l-.215-.213v-.213h-.215v-.213l-.216-.213-.43-.639A7.345 7.345 0 0051.528.937a23.717 23.717 0 00-3.66.213h-.646l-.215.213h-.215l-.215.212-.431.213h-.43v.213H45.5l-.215.213-.43.213v.213a13.031 13.031 0 00-1.723 1.917h-.215V2.001h-1.938V22.02h2.153v-5.75c.142-2.915.357-5.827.646-8.732l.215-.213V6.9h.215l.216-.426V6.26l.215-.213v-.213l.215-.213.216-.213v-.213a6.674 6.674 0 012.152-1.49l.216-.214h.43l.215-.213h.431l.43-.213h1.723l.43.213h.646l.215.213h.216l.215.213h.43l.216.213h.215v.213h.215v.213h.216l.215.213h.215l.216.213v.213l.215.213.215.213v.213h.215v.426h.216v.426c.26.55.475 1.12.645 1.703v.426l.216.213V22.02h2.368v-6.176c.105-2.847.32-5.688.646-8.519v-.212l.215-.426h.215V6.26h.215v-.213l.216-.426.215-.213.215-.213.43-.426c.224-.205.44-.418.647-.639h.215l.215-.213.43-.213h.216l.215-.213h.43l.216-.213h.215l.862-.213h1.507l.215.213h.
1646l.215.213h.43l.216.213h.215v.213h.43l.216.213v.213h.215A5.747 5.747 0 0170.472 6.9l.216.213v.425l.215.213v.64l.215.212V22.02h2.368v-6.602a224.16 224.16 0 00-.646-9.37v-.213h-.215v-.426l-.215-.213-.215-.426v-.213l-.216-.213v-.213h-.215v-.213h-.215a7.724 7.724 0 00-2.639-2.29 7.815 7.815 0 00-3.389-.904h-.43zm-62 11.713c-.09 4.473-.234 8.946-.43 13.416l-.215.213v.426l-.216.213v.213l-.215.213v.426h-.215v.213h-.216v.426l-.215.213-.215.213-.215.213v.213H.722v.213l-.215.213-.215.213c-.215.213-.215.213.215.425.151.135.295.277.43.426l.216.213c.064.146.136.288.215.426.146.067.29.138.43.213h.216l.43-.426.216-.213.215-.213v-.212h.215v-.213l.216-.213.215-.213v-.213h.215v-.213l.216-.213v-.213l.215-.213v-.213l.215-.213v-.426l.215-.426.216-.213v-.639l.215-.639v-.213h.215v-1.064l.215-.213V2H3.09v10.436zm79.223-.426V22.02h2.368V2h-2.368v10.01z",fill:"#FAFAFA",stroke:"#FAFAFA",strokeWidth:.564,mask:"url(#logo-white_svg__a)"})),i||(i=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.896 1.575l.215.213-.215.213h-.215l-.215.213h.645v.426h.646l.215-.213v-.213c.431 0 .431-.426.216-.426h-.43l-.216-.213h-.646zM21.82 2.853h-.215l-.216.213h.646l.215-.213h-.43zm.86 0l-.43.213h.216l-.431.213-.43.213h-.216l-.215.213h-.215v.213h-.646l-.215.213h-.216v.213h-.43l-.216.213h-.43l-.215.213h-.216l-.215.213h-.43v.213l-.431.213-.215.212c-.095.13-.167.274-.216.426l-.215.213v.426h-.43l-.431.426v.213l-.215.213-.216.213v.213l-.215.213-.215.213v.426h-.215v-.639h.215v-.639l-.215.213v.213H14.5v.639l-.215.213v-.639l.215-.213-.215-.213v.213h-.215v.213h-.216v-.426l.216-.213v-.213l.215-.213v-.426l-.43.426v.213h-.216v.213h-.215v.426l-.215.213v.426l-.216.213v.639l-.215.213-.215.426v.639h-.43v.425l.215.213-.216.213v.426l-.215.852.215 1.278v.426l.216.213v.426l.215.426v.426l.215.213v.213h.215v.639h.216v.212h.215v.426h.215v.213l.216.213.215.213.215.213.43.426a20.342 20.342 0 002.153 2.13l.216.213h.215l.215.213.216.213.43.213h.215v.213h.43l.216.213h1.076v-.213h.862v-.213h.215l.215-.213.216-.213h.215v-.213l.215-.213c.215-.213.215-1.278-.215-1.491a5.143 5.143 0 00-1.077-1.065h-.215l-.215-.213H19.02v-.213h-.646l-.43-.213h-.43l-.216-.213-.215-.213-.216-.213v-.212h-.215v-.426l-.43-.213-.216-.213v-.213h.215v-.213c0-.213 0-.213 0 0h.216v.213l.215.213.43.426.216.212h.646v-.212h-.215l-.216-.213-.215-.213h-.215v-.213h-.216l.216-.213v.213l.215-.213v-.426l-.215-.213-.216-.213h-.215v-.213h-.215v-1.065l-.215-1.065v-.639l-.216-.213.215-.213v-.213l-.215-.213V9.882h.215v-.426l.216-.213.215-.213v-.213l.215-.213h.216V8.39l.215-.213v.213h-.215l-.216.426v.426l-.215.213v.426h-.215c0 .852.215.852.43.426v-.213l.216-.64V9.03l.215-.213v-.213h.215V8.39h.216l.215-.639h.215l.215-.426.216-.213.43-.426v-.213l-.215.213h-.215V6.9c-.393.32-.753.677-1.077 1.065l-.215.213v-.426h.215v-.213h.216v-.213l.215-.213.215-.213.43-.213V5.621l-.215.213c-.215 0-.215 0 0 0v-.213l.216-.212h.215l.215-.213.215-.213.431-.213h.215l.215-.213h.431v-.213h.43c0-.213 0-.213 0 0v.213h-.215l-.215.213-.43.213-.431.426h.215l.43-.213v-.213h.647V4.77v.213c-.216.213-.216.213.215.213h.215l-.215.213h-.215l-.216.212h-.215v.213h-.43v.213l-.216.213-.215-.213h-.215v.213l-.216.213h.431l.215-.213.43-.213h.216l.215-.213h.216l.215-.213h.215l.43-.212h.647l.215-.213h.646v.213l.215-.213h1.292l.215.213h.646l.215.212h.215l.216.213h.43v.213h.215v.213h.216l.43.426.215.213h.216l.215.213.215.426.216.213v.213h.215v.426h.215l.216.639v.213l.215.213v.639h.215v1.49l-.215-.213v2.13h.215v-.213l.215.426v.213h-.215v.852h-.215v.426l-.215.213v.213l-.216.213v.213l-.215.213v.213l-.215.213v.212h-.216v.213l-.215.213v-.425h.215v-.213h.216v-.213l.215-.426v-.213l-.215.213v.213h-.216v.213l-.215.213-.215.212v.213l-.215.213h-.216v.426l.215-.213v.213l-.43.64-.43.425h-.646l-.216.213h-.43v.213h-.215v.426h.215-.215v.213h-.216l-.215.213.215.213.216-.213v.426l.215.213h.
1646l.215-.213h.215l-.215.213h-.215l-.216.213h-.215v.213h-.215l-.215.213-.216.213c-.43 0-.646.213-.215.213h.215l.216-.213h.86l.216-.213h.215v.213h.215v-.213h.216l.215-.213.43-.213h.216l.215-.213c0-.213 0-.213 0 0v.213h.215l.216-.213h.215v-.213l.215-.213v.426h-.215l-.215.213h-.216v.213l-.645.426h-.431v.213h-.215l-.216.213h-.215l-.215.213h-.215v.213l-.216.212h-.645l-.216.213v.213h.216l.645-.212h.43l.216-.213.43-.213h.216l.215-.213h.646l.215-.213.216-.213.215-.213h.215v-.213l.646-.213.215-.426h.216c.32-.25.609-.535.86-.852l.216-.213a8.89 8.89 0 01.215-.426l.215-.213v-.213h.216v-.213l.215-.213v-.213h.215v-.426l.216-.426.215-.212v-.213l.215-.213v-.213l.215-.213v-1.065l.216-.213v-.852l.215-.213.215-.852-.215-.426v-.852l-.215-.426v-1.064l-.215-.426v-.426l-.216-.213v-.426l-.215-.213a4.224 4.224 0 00-.215-.852l-.216-.213v-.426h-.215V6.9l-.215-.213a1.694 1.694 0 00-.215-.426l-.216-.213-.215-.213v-.213l-.43-.212v-.213l-.216-.213-.215-.213-.215-.213c.215 0 0 0 0 0l-.431-.213-.215-.213-.215-.213h-.431l-.215-.213-.216-.213h-.645v.213h.215v.213h.215-.646l.215.213h.216l.215.213h.215l.216.213.215.213.215.213.216.426h.215l.215.212.215.213.216.213v.213l.215.213-.43-.426a2.585 2.585 0 00-.646-.426l-.431-.425-.215-.213h-.216l-.215-.213-.215-.213h-.215l-.216-.213h-.215l-.215-.213h-.216l-.215-.213h-.215l-.215-.213h-.216l-.43-.213h-.646l-.215-.213h-1.077l-.43-.213h-.43v-.213h-.216zm-4.305.639l-.215.213-.43.213h-.216v.213H17.3l-.215.213c-.216.213-.216.426-.646.426-.38.482-.739.979-1.077 1.49l-.215.213V6.9l.215-.426.431-.213v-.213l.215-.213.215-.213.431-.425.646-.64.215-.212h.216V4.13h.215l.215-.213h.215l.216-.213-.216-.213zm6.243.213l.43.213h.216l.216.213h-.862v-.213h-.215c-.215 0-.215 0 0 0v-.213h.215zm4.306.639h-.215.215zm-11.194.213l-.216.213-.215.426.215-.213c.43-.213.646-.426.216-.426zm9.472 0v.213h.43v.213h.215l.216.426.215.212V5.41h-.215l-.215-.213-.216-.213h-.43V4.77h-.216v-.213h.216zm-11.625.426v.426c0 .212.43-.213.43-.64l-.43.214zm6.028 0l-.216.213.216-.213h.215-.215zm-6.459 2.13l.215.425v-.426h-.215zm.646.425v.426h-.215v.213h-.216l.216-.213v-.213h.215v-.213zm12.701 1.065l.216.213v.426l.215-.213v-.213l-.215-.213h-.216zm-14.423.639l-.216.426v.213c0 .213 0 0 0 0v-.426h.216v-.426.213zm19.375.852v.426h.215v-.426h-.215zm-3.66 1.916c0 .213 0 0 0 0zm.215.852h-.215H30zm-.215.426v-.213.213zm-.43.852v.213l-.216.213v.213l.216.426v-.213l.215-.213v-.639h-.215zm-16.792.426v-.213.213zm0 .213l.215.213v.213l-.215-.213v-.426.213zm13.778 4.898l-.216.213h-.215v.213h-.215v-.213h.215l.215-.213h.216zm3.444.213h-.215.215zm-3.014 0l
1-.215.213h-.215v.213h-.216l.216-.213.215-.213h.215zm.43 1.278c-.215 0-.215 0 0 0zm.431.852l-.215.213h-.43.215l.215-.213h.215z",fill:"#EF4444"})))}},6920:function(e,n,t){var r=t(57437),l=t(27648),i=t(31604),o=t(48596);n.default=e=>{let{children:n,sx:t,noNextLink:a,...s}=e;return(0,r.jsx)(i.Z,{...s,href:s.href,component:a?i.Z:l.default,sx:{color:"text.secondary",lineHeight:1,...t},"data-event":s["data-event"],onClick:e=>{o.c.trackClick(e)},children:n})}},16330:function(e,n,t){t.d(n,{default:function(){return g}});var r,l,i=t(57437);t(2265);var o=t(59678),a=t(27114),s=t(19606),c=t(12092);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var d=function(e){return c.createElement("svg",u({width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=c.createElement("path",{d:"M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4v-8.5z"})))};function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var v=function(e){return c.createElement("svg",h({width:800,height:800,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=c.createElement("path",{d:"M19.589 6.686a4.793 4.793 0 01-3.77-4.245V2h-3.445v13.672a2.896 2.896 0 01-5.201 1.743l-.002-.001.002.001a2.895 2.895 0 013.183-4.51v-3.5a6.329 6.329 0 00-5.394 10.692 6.33 6.33 0 0010.857-4.424V8.687a8.182 8.182 0 004.773 1.526V6.79a4.831 4.831 0 01-1.003-.104z"})))},p=t(6920),f=e=>{let{children:n,...t}=e;return(0,i.jsx)(p.default,{...t,sx:{display:"flex",alignItems:"center",gap:1},children:n})},m=t(29873),x=t(64635),g=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f,{href:"https://instagram.com/jomijournal",children:[(0,i.jsx)(o.Z,{sx:{color:"text.secondary"}}),(0,i.jsx)(m.Z,{component:"span",color:"inherit",children:"Instagram"})]}),(0,i.jsxs)(f,{href:"https://www.facebook.com/JoMIJournal/",children:[(0,i.jsx)(x.Z,{component:d,inheritViewBox:!0}),(0,i.jsx)(m.Z,{component:"span",color:"inherit",children:"Facebook"})]}),(0,i.jsxs)(f,{href:"https://twitter.com/JoMIJournal",children:[(0,i.jsx)(a.Z,{}),(0,i.jsx)(m.Z,{component:"span",color:"inherit",children:"Twitter"})]}),(0,i.jsxs)(f,{href:"https://www.linkedin.com/company/jomijournal/",children:[(0,i.jsx)(s.Z,{}),(0,i.jsx)(m.Z,{component:"span",color:"inherit",children:"LinkedIn"})]}),(0,i.jsxs)(f,{href:"https://www.tiktok.com/@jomijournal",children:[(0,i.jsx)(x.Z,{component:v,inheritViewBox:!0}),(0,i.jsx)(m.Z,{component:"span",color:"inherit",children:"TikTok"})]})]})},72273:function(e,n,t){t.d(n,{G:function(){return r}});function r(e){return e?e.display_name?e.display_name:"".concat(e.name.first," ").concat(e.name.last).trim()||"N/A":"N/A"}},61450:function(e,n,t){t.d(n,{default:function(){return eL}});var r,l,i=t(57437),o=t(16237),a=t(78545),s=t(7009),c=t(60806),u=t(13001),d=t(13231),h=t(68214),v=t(27648),p=t(2265),f=t(93444),m=t(43927),x=t(74060),g=t(83285),b=t(39888),j=t(73872),y=t(42487),w=t(59685),A=t(48596),S=t(58770),I=t(28028),Z=t(81355),C=t(99376),k=t(45008),F=t(11391),E=t(94685);function T(){let e=(0,k._)(["\n    query Categories {\n  categories {\n    _id\n    short\n    displayName\n    color\n    slug\n    desc\n    name\n    hasSection\n    sections {\n      _id\n      name\n      subSections {\n        _id\n        name\n      }\n    }\n  }\n}\n    "]);return T=function(){return e},e}function z(){let e=(0,k._)(["\n    query SearchCategories($keyword: String!) {\n  searchCategories(keyword: $keyword) {\n    name\n    type\n    id\n  }\n}\n    "]);return z=function(){return e},e}function P(){let e=(0,k._)(["\n    query GetSectionsByCategoryId($categoryId: ID!) {\n  getSectionsByCategoryId(categoryId: $categoryId) {\n    _id\n    name\n    subSections {\n      _id\n    }\n  }\n}\n    "]);return P=function(){return e},e}function O(){let e=(0,k._)(["\n    query getSubSectionsBySectionId($sectionId: ID!) {\n  getSubSectionsBySectionId(sectionId: $sectionId) {\n    _id\n    name\n  }\n}\n    "]);return O=function(){return e},e}function _(){let e=(0,k._)(["\n    query GetSectionsBySectionIds($sectionIds: [ID!]!) {\n  getSectionsBySectionIds(sectionIds: $sectionIds) {\n    _id\n    name\n  }\n}\n    "]);return _=function(){return e},e}function R(){let e=(0,k._)(["\n    query GetSubsectionsBySubsectionIds($subsectionIds: [ID!]!) {\n  getSubsectionsBySubsectionIds(subsectionIds: $subsectionIds) {\n    _id\n    name\n  }\n}\n    "]);return R=function(){return e},e}let V={};(0,F.Ps)(T());let L=(0,F.Ps)(z());(0,F.Ps)(P()),(0,F.Ps)(O()),(0,F.Ps)(_()),(0,F.Ps)(R());var M=(0,p.memo)(function(e){let{data:n}=(0,I.useSession)(),t=(0,C.useRouter)(),{trackClick:r}=(0,Z.G)(),l=(0,o.Z)(),a=(0,f.Z)(l.breakpoints.down("md")),[s,c]=(0,p.useState)([]),[h,v]=(0,p.useState)(""),{loading:k}=function(e){let n={...V,...e};return E.a(L,n)}({variables:{keyword:h},onCompleted:e=>{h.trim()?c((null==e?void 0:e.searchCategories)?[{name:h,type:"search"},...e.searchCategories]:[{name:h,type:"search"}]):c([])},onError:()=>{c([])}});(0,p.useEffect)(()=>{let e=new URLSearchParams(location.search).get("q");e?v(e):v("")},[]);let F=(e,l,i)=>{var o;let a={};a="category"===l&&i?{categoryId:i}:"section"===l&&i?{sectionId:i}:"subsection"===l&&i?{subsectionId:i}:l?{filterByTag:"".concat(l,":").concat(e)}:{q:e}
1,r("nav-bar-search-submit"),t.push("/search?".concat(new URLSearchParams(a).toString())),A.c.trackSearch(e),(0,S.Cb)({search_term:e,userId:(null==n?void 0:null===(o=n.user)||void 0===o?void 0:o._id)||"anon"}),c([])},T=()=>{let e="Search Articles...";return a?e:"mac"!==function(){var e;let n=null===(e=window)||void 0===e?void 0:e.navigator.userAgent;return n.match(/Macintosh|MacIntel|MacPPC|Mac68K/i)?"mac":n.match(/Windows|Win16|Win32|Win64/i)?"windows":"other"}()?"".concat(e," (Ctrl+K)"):"".concat(e," (⌘+K)")};return(0,i.jsx)(u.Z,{component:"form","data-testid":"navbar-search-bar",sx:{display:"flex",alignItems:"center",...e.sx},onSubmit:e=>{e.preventDefault(),F(h)},children:(0,i.jsx)(m.Z,{sx:{width:a?"100%":{md:200,lg:300}},freeSolo:!0,disableClearable:!0,value:h,options:s,getOptionLabel:e=>"string"==typeof e?e:e.name,onInputChange:(e,n)=>v(n),onChange:(e,n)=>{"object"==typeof n&&null!==n&&("search"===n.type?F(n.name):"category"===n.type?F(n.name,n.type,"id"in n?n.id:void 0):"section"===n.type?F(n.name,n.type,"id"in n?n.id:void 0):"subsection"===n.type?F(n.name,n.type,"id"in n?n.id:void 0):F(n.name,n.type))},loading:k,renderInput:e=>(0,i.jsx)(x.Z,{...e,placeholder:T(),fullWidth:!0,autoFocus:!0,variant:"outlined",color:"primary",InputProps:{...e.InputProps,disableUnderline:!0,endAdornment:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{type:"submit",sx:{borderRadius:0,color:"grey.400","&:hover":{backgroundColor:"none"}},"aria-label":"search",children:(0,i.jsx)(w.Z,{color:"inherit"})}),e.InputProps.endAdornment]}),style:{padding:2}},sx:{backgroundColor:"grey.700",color:"grey.50",paddingLeft:"3px",borderRadius:1,"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&:hover .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-input":{color:"grey.50"}}}),renderOption:(e,n,t)=>{let{selected:r}=t,{key:l,...o}=e;return(0,i.jsx)(u.Z,{component:"li",...o,children:(0,i.jsxs)(g.Z,{disableGutters:!0,disableTouchRipple:!0,sx:{p:0,"&.MuiButtonBase-root:hover":{bgcolor:"transparent"}},children:["search"===n.type?(0,i.jsx)(j.Z,{}):(0,i.jsx)(y.Z,{sx:{mr:1}}),(0,i.jsx)(b.Z,{primary:(0,i.jsx)(u.Z,{textTransform:"capitalize",children:n.name}),secondary:(0,i.jsx)(u.Z,{textTransform:"capitalize",children:n.type})})]})},null!=l?l:n.name)}})})}),B=t(59961),D=t(4604),H=t(9135),N=t(35531);function U(){let e=(0,k._)(["\n  from {\n    opacity: 0;\n    transform: rotate(0deg);\n  }\n\n  to {\n    opacity: 1;\n    transform: rotate(180deg);\n  }\n"]);return U=function(){return e},e}var W=e=>{let{open:n}=e,t=(0,p.useRef)(n);return(0,p.useEffect)(()=>{t.current=n},[n]),n?(0,i.jsx)($,{}):(0,i.jsx)(B.Z,{sx:{...t.current&&{animation:"".concat(G," .4s ease-out")}}})};let G=(0,N.F4)(U()),$=(0,H.ZP)(D.Z)({animation:"".concat(G," .4s ease-out")});var J=t(30166),K=t(65342),q=t(13971),Y=t(70803),Q=t(12092);function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var ee=function(e){return Q.createElement("svg",X({width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=Q.createElement("path",{d:"M5.833 21h16.334v-8.13c0-4.53-3.657-8.203-8.167-8.203S5.833 8.339 5.833 12.87V21zM14 2.333c5.799 0 10.5 4.718 10.5 10.537v10.463h-21V12.87C3.5 7.05 8.201 2.333 14 2.333zM11.083 24.5h5.834a2.917 2.917 0 11-5.834 0z",fill:"#A1A1AA"})))};function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var et=function(e){return Q.createElement("svg",en({width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=Q.createElement("path",{d:"M5.833 21h16.334v-8.13c0-4.53-3.657-8.203-8.167-8.203S5.833 8.339 5.833 12.87V21zM14 2.333c5.799 0 10.5 4.718 10.5 10.537v10.463h-21V12.87C3.5 7.05 8.201 2.333 14 2.333zM11.083 24.5h5.834a2.917 2.917 0 11-5.834 0z",fill:"#fff"})))};let er=(0,J.default)((0,K.WS)(()=>t.e(6382).then(t.bind(t,46382))),{loadableGenerated:{webpack:()=>[46382]}}),el=()=>{let{announcements:e,open:n,handleClick:t}=(0,q.Z)(),[r,l]=p.useState(!1);return p.useEffect(()=>{n&&l(!0)},[n]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{sx:{display:"flex",alignItems:"center"},children:(0,i.jsx)(d.Z,{onClick:t,"aria-label":n?"Close notifications":"Open notifications","aria-haspopup":"true","aria-expanded":n,size:"small",sx:{p:0,color:"inherit"},children:(0,i.jsx)(Y.Z,{badgeContent:e.length,color:"primary",children:n?(0,i.jsx)(et,{}):(0,i.jsx)(ee,{})})})}),r&&(0,i.jsx)(er,{})]})};function ei(){return(0,i.jsx)(q.f,{children:(0,i.jsx)(el,{})})}var eo=t(42462),ea=t(84976),es=t(89978),ec=t(30433),eu=t(98575),ed=t(45058),eh=t(29873),ev=t(3829),ep=t(91422),ef=t(84586),em=t(97727),ex=t(28606),eg=t(18282),eb=t(34935),ej=t(31604),ey=t(11846),ew=e=>{let{buttonText:n,items:t}=e,[r,l]=p.useState(null),o=!!r,{trackClick:a}=(0,Z.G)(),s=e=>{var n,t;l(null),a(null!==(t=null==e?void 0:null===(n=e.currentTarget)||void 0===n?void 0:n.getAttribute("data-event"))&&void 0!==t?t:"")};return(0,p.useEffect)(()=>{let e=e=>{"Escape"===e.key&&o&&l(null)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o]),(0,i.jsxs)("div",{children:[(0,i.jsx)(eA,{id:"nav-button","aria-controls":o?"nav-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,onClick:e=>{l(e.currentTarget)},endIcon:o?(0,i.jsx)(eu.Z,{}):(0,i.jsx)(ec.Z,{}),sx:{color:o?"grey.50":void 0},"data-event":"nav-bar-".concat(n),children:n}),(0,i.jsx)(ev.Z,{open:o,anchorEl:r,transition:!0,style:{zIndex:4e3},placement:"bottom-start",children:e=>{let{TransitionProps:n}=e;return(0,i.jsx)(ep.Z,{...n,style:{transformOrigin:"left top"},children:(0,i.jsx)(ef.Z,{sx:{py:2,borderRadius:2,borderTopLeftRadius:0},elevation:8,children:(0,i.jsx)(em.d,{onClickAway:()=>{s(null)},children:(0,i.jsx)(ex.Z,{children:t.map((e,n)=>"divider"===e?(0,i.jsx)(eg.Z,{sx:{my:4}},n):(0,i.jsx)(eb.Z,{onClick:s,sx:{px:2.5},component:e.noNextLink?ej.Z:v.default,href:e.url,target:e.target,rel:e.rel,autoFocus:0===n,tabIndex:0===n?0:-1,"data-event":"nav-bar-item-".concat(e.text),children:e.text},n))})})})})}})]})};let eA=e=>{let{trackClick:n}=(0,Z.G)();return(0,i.jsx)(ey.Z,{...e,onClick:t=>{var r,l;e.onClick&&e.onClick(t),n(null!==(l=null==t?void 0:null===(r=t.currentTarget)||void 0===r?void 0:r.getAttribute("data-event"))&&void 0!==l?l:"")},sx:{color:"grey.400",textTransform:"none","&:hover":{color:"grey.50",backgroundColor:"inherit",boxShadow:"none"}}})};var eS=t(72273),eI=t(45400);let eZ=(0,J.default)((0,K.WS)(()=>Promise.all([t.e(7926),t.e(1215)]).then(t.bind(t,1215))),{loadableGenerated:{webpack:()=>[1215]}});var eC=e=>{let{user:n}=e,[t,r]=(0,p.useState)(null),l=!!t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eA,{id:"account-button","aria-controls":l?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":l?"true":void 0,onClick:e=>{l?r(null):r(e.currentTarget)},endIcon:l?(0,i.jsx)(eu.Z,{}):(0,i.jsx)(ec.Z,{}),sx:{color:l?"grey.50":void 0,transform:"translate3D(11px,0,0)"},size:"large",children:(0,i.jsxs)(ed.Z,{alignItems:"flex-end",spacing:.25,children:[(0,i.jsx)(eh.Z,{component:"span",sx:{color:"inherit",fontWeight:600,fontSize:15,lineHeight:1.2},children:(0,eS.G)(n)}),(0,i.jsx)(eI.Z,{})]})}
1),l&&(0,i.jsx)(eZ,{anchorEl:t,setAnchorEl:r,user:n,geolocation:e.geolocation})]})},ek=t(52034),eF=t(89433),eE=t(23771),eT=t(87652),ez=(0,p.memo)(function(e){let{anchorEl:n,setAnchorEl:t}=e,r=!!n,l=()=>t(null),{contentRef:o,onKeyDown:a}=(0,eE.X)({open:r,onClose:l});return(0,eF.t$)(o,l),(0,i.jsx)("div",{children:(0,i.jsx)(ev.Z,{open:r,anchorEl:n,transition:!0,style:{zIndex:2e3},placement:"bottom-end",children:e=>{let{TransitionProps:n}=e;return(0,i.jsx)(ep.Z,{...n,style:{transformOrigin:"right top"},children:(0,i.jsx)(ef.Z,{elevation:8,ref:o,tabIndex:-1,role:"dialog","aria-label":"Login",onKeyDown:a,sx:{bgcolor:"#27272A",width:{xs:"90vw",sm:"320px"},maxWidth:"320px",borderRadius:"8px",border:"1px solid #3F3F46",marginTop:1,"&:focus":{outline:"none"}},children:(0,i.jsx)(eT.default,{})})})}})})}),eP=()=>{let[e,n]=(0,p.useState)(null),t=!!e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek.Z,{id:"login-button","aria-controls":t?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:e=>{t||n(e.currentTarget)},size:"large",children:"Log In"}),(0,i.jsx)(ez,{anchorEl:e,setAnchorEl:n})]})},eO=()=>{let{data:e}=(0,E.a)(ea.r0b),n=(0,es.Jc)(ea.jC_,null==e?void 0:e.user),t=(0,C.usePathname)();return(null==e?void 0:e.user)?(0,i.jsxs)(u.Z,{display:"flex",alignItems:"center",gap:1,children:[(0,i.jsx)(ei,{}),(0,i.jsx)(eC,{user:n,geolocation:e.geolocation})]}):(0,i.jsxs)(u.Z,{display:"flex",gap:2.5,children:[(0,i.jsx)(eo.Z,{sx:{px:2.5,ml:2},LinkComponent:v.default,href:"/signup?from=".concat(t),children:"Sign Up"}),(0,i.jsx)(eP,{})]})},e_=t(92180),eR=()=>{let{hasAccess:e}=(0,e_.s)();return(0,i.jsxs)(u.Z,{component:"nav","aria-label":"Primary",display:{xs:"none",md:"flex"},gap:{md:1,lg:2},ml:{md:4,lg:8},children:[(0,i.jsx)(ew,{buttonText:"Articles",items:[{text:"Article Index",url:"/index",noNextLink:!0},{text:"Most Recent",url:"/articles"},{text:"Search",url:"/search"},{text:"Sample Cases",url:"/sample-cases"},"divider",{text:"General Surgery",url:"/index#general-surgery",noNextLink:!0},{text:"Orthopaedics",url:"/index#orthopaedics",noNextLink:!0},{text:"Otolaryngology",url:"/index#otolaryngology",noNextLink:!0},{text:"More...",url:"/index#toc",noNextLink:!0}]}),(0,i.jsx)(ew,{buttonText:"About",items:[{text:"About JOMI",url:"/about"},{text:"Editorial Board",url:"/editorial-board"},{text:"Subscribing Institutions",url:"/subscribers"},{text:"News",url:"https://blog.jomi.com/category/announcement/"},{text:"Careers",url:"/careers"},{text:"Contact Us",url:"/contact"}]}),(0,i.jsx)(ew,{buttonText:"Publish",items:[{text:"Peer Review Process",url:"/peer-review"},{text:"Submit Publication",url:"/publish"},{text:"Editorial Policies",url:"/editorial-policies"}]}),!e&&(0,i.jsx)(eA,{id:"nav-button",href:"/#pricing",LinkComponent:v.default,"data-event":"nav-bar-item-pricing",children:"Pricing"})]})};let eV=(0,J.default)((0,K.WS)(()=>Promise.all([t.e(9435),t.e(7926),t.e(1495),t.e(432)]).then(t.bind(t,432))),{loadableGenerated:{webpack:()=>[432]},ssr:!1});var eL=()=>{let e=(0,o.Z)(),[n,t]=(0,p.useState)(!1),r=(0,p.useRef)(null),[l,f]=(0,p.useState)(null),m=!!l;(0,p.useEffect)(()=>{let e=()=>{window.scrollY>84&&t(!0),window.scrollY<=0&&t(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[84]);let x=!n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Z,{sx:{zIndex:m?2e3:e.zIndex.appBar,backgroundImage:"none",backgroundColor:x?"transparent":"header.main",transitionProperty:"all",transitionDuration:".2s",transitionTimingFunction:"ease-in-out",top:{xs:-1,md:0},backdropFilter:x?"blur(12px)":"unset"},position:"fixed",elevation:0,ref:r,children:(0,i.jsxs)(s.Z,{maxWidth:"lg",disableGutters:!0,children:[(0,i.jsxs)(c.Z,{sx:{height:84,px:2},disableGutters:!0,children:[(0,i.jsxs)(u.Z,{display:"flex",alignItems:"center",flexGrow:1,children:[(0,i.jsx)(v.default,{href:"/",passHref:!0,"aria-label":"JOMI Logo",children:(0,i.jsx)(h.default,{style:{marginTop:10}})}),(0,i.jsx)(eR,{})]}),(0,i.jsxs)(u.Z,{display:{xs:"none",md:"flex"},alignItems:"center",gap:{md:1.5,lg:2.5},minHeight:44,flexShrink:0,children:[(0,i.jsx)(M,{}),(0,i.jsx)(eO,{})]}),(0,i.jsxs)(u.Z,{display:{xs:"flex",md:"none"},alignItems:"center",children:[(0,i.jsx)(ei,{}),(0,i.jsx)(d.Z,{color:"secondary",sx:{transition:"all .2s ease"},onClick:e=>{l?f(null):f(r.current)},"aria-label":"Menu Button",children:(0,i.jsx)(W,{open:m})})]})]}),(0,i.jsx)(u.Z,{display:{xs:"flex",md:"none"},px:2,pb:2,children:(0,i.jsx)(M,{sx:{borderColor:"grey.700",backgroundColor:"grey.800",borderStyle:"solid",borderWidth:"1px",width:"100%"}})})]})}
1),m?(0,i.jsx)(eV,{open:m,scrollHeight:84,hasScrolled:n,anchorEl:l,onClose:()=>f(null)}):null,(0,i.jsx)(c.Z,{sx:{height:{xs:120,md:84,lg:84}}})]})}},87652:function(e,n,t){t.r(n),t.d(n,{NewLoginForm:function(){return ey},default:function(){return ew}});var r,l,i,o,a,s,c,u,d,h,v,p=t(57437),f=t(27648),m=t(13001),x=t(45058),g=t(29873),b=t(18282),j=t(31604),y=t(48596),w=t(81555),A=t(72159),S=e=>{let{sx:n,...t}=e;return(0,p.jsx)(A.Z,{...t,sx:{color:"text.secondary","& input":{borderRadius:0,px:2,py:1.5,fontSize:".875rem"},backgroundColor:"grey.700","& input:valid:focus + fieldset":{borderStyle:"none"},"& input:valid:hover + fieldset":{borderColor:"grey.500",borderWidth:1,borderStyle:"solid"},"& input:-webkit-autofill":{boxShadow:"0 0 0 100px #3f3f46 inset"},...n}})},I=t(42462),Z=t(52034),C=t(13231),k=t(64635),F=t(40144),E=t(28028),T=t(2265),z=t(12092);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var O=function(e){return z.createElement("svg",P({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=z.createElement("path",{d:"M23.767 9.65H22.8V9.6H12v4.8h6.782c-.99 2.794-3.648 4.8-6.782 4.8a7.2 7.2 0 010-14.4c1.835 0 3.505.692 4.777 1.823L20.17 3.23A11.945 11.945 0 0012 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12c0-.805-.083-1.59-.233-2.35z",fill:"#FFC107"})),l||(l=z.createElement("path",{d:"M1.384 6.415l3.942 2.891A7.197 7.197 0 0112 4.8c1.835 0 3.505.692 4.776 1.823l3.395-3.394A11.945 11.945 0 0012 0C7.39 0 3.394 2.602 1.384 6.415z",fill:"#FF3D00"})),i||(i=z.createElement("path",{d:"M12 24c3.1 0 5.916-1.186 8.045-3.115l-3.714-3.143A7.146 7.146 0 0112 19.2c-3.121 0-5.771-1.99-6.77-4.768l-3.913 3.015C3.303 21.334 7.337 24 12 24z",fill:"#4CAF50"})),o||(o=z.createElement("path",{d:"M23.767 9.65H22.8V9.6H12v4.8h6.782a7.225 7.225 0 01-2.452 3.343l.001-.002 3.714 3.143C19.783 21.123 24 18 24 12c0-.805-.083-1.59-.233-2.35z",fill:"#1976D2"})))};function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var R=function(e){return z.createElement("svg",_({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=z.createElement("g",{clipPath:"url(#linkedin-2_svg__clip0_657_6137)"},z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 3c0-1.656-1.344-3-3-3H3C1.344 0 0 1.344 0 3v18c0 1.656 1.344 3 3 3h18c1.656 0 3-1.344 3-3V3z",fill:"#2867B2"}),z.createElement("path",{d:"M6.882 8.375h-4.02v12.092h4.02V8.375zM4.899 2.544c-1.375 0-2.274.905-2.274 2.09 0 1.16.871 2.09 2.22 2.09h.027c1.401 0 2.274-.93 2.274-2.09-.026-1.185-.872-2.09-2.247-2.09zM16.747 8.09c-2.132 0-3.087 1.173-3.622 1.997V8.375H9.106c.053 1.134 0 12.092 0 12.092h4.019v-6.753c0-.362.026-.723.133-.981.29-.722.951-1.47 2.062-1.47 1.453 0 2.036 1.11 2.036 2.734v6.47h4.019v-6.934c0-3.715-1.983-5.442-4.628-5.442z",fill:"#fff"}))),s||(s=z.createElement("defs",null,z.createElement("clipPath",{id:"linkedin-2_svg__clip0_657_6137"},z.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))))};function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var L=function(e){return z.createElement("svg",V({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),c||(c=z.createElement("g",{clipPath:"url(#facebook-1_svg__clip0_657_6134)"},z.createElement("rect",{width:24,height:24,rx:3,fill:"#fff"}),z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.068 0A2.934 2.934 0 0124 2.932v18.136A2.934 2.934 0 0121.068 24h-4.99v-9.043h3.121l.594-3.873h-3.716V8.571c0-1.06.52-2.092 2.183-2.092h1.69V3.18s-1.533-.261-3-.261c-3.06 0-5.06 1.855-5.06 5.212v2.952H8.488v3.873h3.402V24H2.932A2.934 2.934 0 010 21.068V2.932A2.934 2.934 0 012.932 0h18.136z",fill:"#1777F2"}))),u||(u=z.createElement("defs",null,z.createElement("clipPath",{id:"facebook-1_svg__clip0_657_6134"},z.createElement("rect",{width:24,height:24,rx:3,fill:"#fff"})))))};function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var B=function(e){return z.createElement("svg",M({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"}
1,e),d||(d=z.createElement("path",{d:"M11.631 3l.694.615c.515.456 1.031.91 1.54 1.372 3.295 2.993 6.085 6.36 8.185 10.236.108.198.206.402.303.605l.147.305-.162.085-.122-.172-.315-.449-.22-.321c-1.529-2.219-3.06-4.44-5.163-6.217a9.845 9.845 0 00-2.09-1.356c-1.52-.728-2.873-.437-4.035.757C9.29 9.595 8.716 11.005 8.2 12.44c-.067.184-.138.367-.208.55l-.123.322-.259-.082c.15-.522.288-1.047.427-1.574.315-1.192.63-2.385 1.068-3.534.465-1.223 1.053-2.404 1.639-3.585.253-.511.507-1.022.75-1.537h.138z",fill:"#C22E33"})),h||(h=z.createElement("path",{d:"M12.672 17.733c-2.439 1.155-8.34 2.346-11.139 2.04C1.075 17.364 5.565 6.075 7.77 4.365l-.142.327a6.955 6.955 0 01-.208.454l-.098.194c-1.14 2.193-2.279 4.389-2.862 6.795-.21.829-.325 1.679-.343 2.534-.014 2.01 1.237 3.378 3.326 3.463 1.005.04 2.02-.065 3.034-.171.441-.045.881-.091 1.32-.126.162-.012.321-.032.528-.059l.347-.041v-.002z",fill:"#C22E33"})),v||(v=z.createElement("path",{d:"M5.737 22.172c-.667.05-1.335.101-1.999.162 6.146.585 12.045-.416 17.865-2.466-1.898-3.345-4.455-5.987-7.428-8.283.039.146.126.253.211.358l.073.09c.255.339.521.672.79 1.005.614.764 1.227 1.527 1.689 2.367 1.167 2.13.534 3.972-1.752 4.944-1.503.64-3.146 1.077-4.77 1.338-1.545.246-3.113.364-4.679.485z",fill:"#C22E33"})))},D=t(99376),H=t(25453);let N=F._n,U=e=>{var n;let{children:t,sx:r,provider:l,...i}=e,o=null!==(n=(0,D.usePathname)())&&void 0!==n?n:"",a=(()=>{let e=decodeURIComponent(new URLSearchParams().get("from"))||N;return o.startsWith("/signup"),e})();return(0,p.jsx)(C.Z,{onClick:e=>{y.c.trackClick(e),(0,E.signIn)(l,{from:a})},sx:{border:"none",borderRadius:"4px",px:2,py:1.25,backgroundColor:"grey.700",color:"#F8FAFC",flexGrow:1},...i,children:t})},W=()=>(0,p.jsx)(U,{provider:"google","data-event":"Login Form - Login via Google Button","aria-label":"Log in via Google",children:(0,p.jsx)(k.Z,{component:O})}),G=()=>(0,p.jsx)(U,{provider:"facebook","data-event":"Login Form - Login via Facebook Button","aria-label":"Log in via Facebook",children:(0,p.jsx)(k.Z,{component:L})}),$=()=>(0,p.jsx)(U,{provider:"linkedin","data-event":"Login Form - Login via Linkedin Button","aria-label":"Log in via LinkedIn",children:(0,p.jsx)(k.Z,{component:R})}),J=()=>(0,p.jsx)(U,{provider:"apple","data-event":"Login Form - Login via Apple Button","aria-label":"Log in via Apple",children:(0,p.jsx)(H.Z,{})}),K=e=>{var n;let{children:t}=e,r=(0,D.useSearchParams)(),l=null!==(n=(0,D.usePathname)())&&void 0!==n?n:"",i=(()=>{var e;let n=(null==r?void 0:r.get("from"))?encodeURIComponent(null!==(e=null==r?void 0:r.get("from"))&&void 0!==e?e:""):encodeURIComponent(N);return l.startsWith("/signup"),n})();return(0,p.jsxs)(C.Z,{"data-event":"Login Form - Login via SAML","aria-label":"Log in via OpenAthens (SAML)",LinkComponent:f.default,href:"/saml?from=".concat(i),sx:{border:"none",borderRadius:1,textTransform:"none",fontSize:15,py:.5,px:2,justifyContent:{xs:"center",md:"flex-start"},backgroundColor:"grey.700",color:"#F8FAFC",gap:2},children:[(0,p.jsx)(k.Z,{component:B}),t]})};var q=t(41639),Y=t(67146),Q=t(73643),X=t(27515),ee=e=>{let{id:n}=e,[t,r]=(0,T.useState)(!1);return(0,p.jsx)(S,{id:n,size:"small",type:t?"text":"password",name:"password",placeholder:"Enter password here",autoComplete:"current-password",InputProps:{sx:{borderTopRightRadius:0,borderBottomRightRadius:0,"&.Mui-focused fieldset":{borderStyle:"none",outlineColor:"grey.200"}},endAdornment:(0,p.jsx)(C.Z,{"aria-label":t?"Hide password":"Show password",onClick:()=>r(e=>!e),edge:"end",size:"small",sx:{color:"grey.400",":hover":{color:"grey.50"}},children:t?(0,p.jsx)(Q.Z,{fontSize:"small"}):(0,p.jsx)(X.Z,{fontSize:"small"})})}})},en=t(96010),et=t(84976),er=t(65987),el=t(74060),ei=t(11846),eo=t(45008),ea=t(11391);function es(){let e=(0,eo._)(["\n    fragment UserParts on User {\n  _id\n  name {\n    first\n    last\n  }\n  subActive\n  email\n  role\n  isPasswordSet\n  twoFactorEnabled\n}\n    "]);return es=function(){return e},e}let ec=(0,ea.Ps)(es());var eu=t(66410);function ed(){let e=(0,eo._)(["\n    mutation VerifyTwoFaLogin($input: VerifyTwoFaLoginInput!) {\n  verifyTwoFaLogin(input: $input) {\n    ...UserParts\n  }\n}\n    ",""]);return ed=function(){return e},e}function eh(){let e=(0,eo._)(["\n    mutation ResendTwoFaCode($twoFaSessionToken: String!) {\n  resendTwoFaCode(twoFaSessionToken: $twoFaSessionToken) {\n    twoFaSessionToken\n    codeExpiresAt\n  }\n}\n    "]);return eh=function(){return e},e}function ev(){let e=(0,eo._)(["\n    mutation EnableTwoFa {\n  enableTwoFa {\n    twoFaSessionToken\n    codeExpiresAt\n  }\n}\n    "]);return ev=function(){return e},e}function ep(){let e=(0,eo._)(["\n    mutation ConfirmEnableTwoFa($input
1: ConfirmEnableTwoFaInput!) {\n  confirmEnableTwoFa(input: $input) {\n    ...UserParts\n  }\n}\n    ",""]);return ep=function(){return e},e}function ef(){let e=(0,eo._)(["\n    mutation DisableTwoFa($currentPassword: String!) {\n  disableTwoFa(currentPassword: $currentPassword) {\n    ...UserParts\n  }\n}\n    ",""]);return ef=function(){return e},e}function em(){let e=(0,eo._)(["\n    mutation AdminResetTwoFa($userId: String!) {\n  adminResetTwoFa(userId: $userId)\n}\n    "]);return em=function(){return e},e}let ex={};(0,ea.Ps)(ed(),ec);let eg=(0,ea.Ps)(eh());(0,ea.Ps)(ev()),(0,ea.Ps)(ep(),ec),(0,ea.Ps)(ef(),ec),(0,ea.Ps)(em());let eb=e=>{let{twoFaSessionToken:n,onCancel:t,onTokenRotated:r,onNavigate:l,callbackUrl:i,onSuccess:o}=e,{enqueueSnackbar:a}=(0,Y.Ds)(),[s,c]=(0,T.useState)(""),[u,d]=(0,T.useState)(!1),[h,v]=(0,T.useState)(""),[f,b]=(0,T.useState)(!1),[j,{loading:w}]=function(e){let n={...ex};return eu.D(eg,n)}(),A=async e=>{var t,c,u;e.preventDefault(),v(""),d(!0);let h=s.replace(/\D/g,""),p=await (0,E.signIn)("credentials",{redirect:!1,callbackUrl:i,twoFaSessionToken:n,twoFaCode:h});if(d(!1),p&&!p.error){a("You are now logged in.",{variant:"success"}),null==o||o(),l(null!==(c=p.url)&&void 0!==c?c:i);return}if(null==p?void 0:null===(t=p.error)||void 0===t?void 0:t.startsWith("TWOFA_REQUIRED:")){r(p.error.slice(15));return}v(null!==(u=null==p?void 0:p.error)&&void 0!==u?u:"Verification failed"),y.c.trackFailedLogin("2fa_verify_failed")},S=async()=>{var e,t;v("");try{let{data:t}=await j({variables:{twoFaSessionToken:n}});(null==t?void 0:null===(e=t.resendTwoFaCode)||void 0===e?void 0:e.twoFaSessionToken)&&(r(t.resendTwoFaCode.twoFaSessionToken),a("A new code has been sent.",{variant:"success"}),b(!0),setTimeout(()=>b(!1),6e4))}catch(e){v(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"Could not resend code")}};return(0,p.jsx)(m.Z,{component:"form",onSubmit:A,children:(0,p.jsxs)(x.Z,{alignItems:"stretch",spacing:2,children:[(0,p.jsx)(g.Z,{variant:"h6",align:"center",children:"Enter your verification code"}),(0,p.jsx)(g.Z,{variant:"body2",align:"center",color:"text.secondary",children:"We sent a 6-digit code to your email. It expires in 10 minutes."}),h&&(0,p.jsx)(g.Z,{role:"alert",color:"error",align:"center",children:h}),(0,p.jsx)(el.Z,{label:"Verification code",size:"small",value:s,onChange:e=>c(e.target.value),inputProps:{inputMode:"numeric",autoComplete:"one-time-code",maxLength:8,"aria-label":"Verification code"},sx:{"& label":{color:"#00FFFF"},"& label.Mui-focused":{color:"#00FFFF"}},autoFocus:!0}),(0,p.jsx)(er.Z,{variant:"contained",type:"submit",loading:u,disabled:6!==s.replace(/\D/g,"").length,children:"Verify"}),(0,p.jsxs)(x.Z,{direction:"row",justifyContent:"space-between",children:[(0,p.jsx)(ei.Z,{size:"small",onClick:t,disabled:u,sx:{color:"#00FFFF"},children:"Back to sign in"}),(0,p.jsx)(ei.Z,{size:"small",onClick:S,disabled:w||f||u,sx:{color:"#00FFFF"},children:f?"Code sent…":"Resend code"})]})]})})},ej="TWOFA_REQUIRED:";function ey(e){let{onComplete:n}=e,t=(0,D.usePathname)(),r=(0,D.useRouter)(),l=(0,en.x)(),[i,o]=(0,T.useState)(!1),[a,s]=(0,T.useState)(""),[c,u]=(0,T.useState)(null),{enqueueSnackbar:d}=(0,Y.Ds)(),h=(0,T.useId)(),v=(0,T.useId)(),A=()=>{var e;return"/login"!==t?null!=t?t:"/":null!==(e=new URLSearchParams().get("from"))&&void 0!==e?e:"/"},C=async e=>{var t;o(!0);let r=A(),i=await (0,E.signIn)("credentials",(0,q.fz)({redirect:!1,callbackUrl:r,email:e.email.toLowerCase(),password:e.password}));if((null==i?void 0:i.error)||(d("You are now logged in.",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"}}),l.refetchQueries({include:[et.r0b]}),n&&n()),null==i?void 0:null===(t=i.error)||void 0===t?void 0:t.startsWith(ej)){u(i.error.slice(ej.length)),o(!1);return}await (0,q._v)(600),o(!1),(null==i?void 0:i.error)&&(s(i.error),y.c.trackFailedLogin(i.error))};return c?(0,p.jsx)(m.Z,{p:"20px",children:(0,p.jsx)(eb,{twoFaSessionToken:c,onCancel:()=>u(null),onTokenRotated:e=>u(e),onNavigate:e=>r.push(e),callbackUrl:A(),onSuccess:()=>{l.refetchQueries({include:[et.r0b]}),null==n||n()}})}):(0,p.jsx)(w.J9,{initialValues:{email:"",password:""},onSubmit:C,children:(0,p.jsx)(w.l0,{"data-testid":"navbar-login-form",children:(0,p.jsxs)(x.Z,{p:"20px",gap:"20px",children:[(0,p.jsx)(x.Z,{direction:"column",rowGap:"8px",children:(0,p.jsx)(g.Z,{sx:{fontSize:"28px",lineHeight:"38.5px",color:"#FAFAFA",fontWeight:"700"},children:"Log In"})}),(0,p.jsxs)(m.Z,{display:"flex",gap:"8px",children:[(0,p.jsx)(W,{}),(0,p.jsx)(G,{}),(0,p.jsx)($,{}),(0,p.jsx)(K,{}),(0,p.jsx)(J,{})]}),(0,p.jsx)(b.Z,{children:(0,p.jsx)(g.Z,{sx:{fontFamily:"Inter",fontSize:"12px",lineHeight:"12px",color:"#A1A1AA"},children:"or"})}),(0,p.jsxs)(x.Z,{direction:"column",gap:"8px",children:[(0,p.jsx)(g.Z,{component:"label",htmlFor:h,variant:"body2",lineHeight:1,children:"Email"}),(0,p.jsx)(S,{id:h,name:"email",size:"small",margin:"normal",placeholder:"Enter email here",autoComplete:"email",autoFocus:!0,sx:{m:0}}),(0,p.jsx)(g.Z,{component:"label",htmlFor:v,variant:"body2",children:"Password"}),(0,p.jsx)(ee,{id:v}),(0,p.jsx)(j.Z,{"data-event":"Login Form - Forgot Password",onClick:y.c.trackClick,component:f.default,href:"/account/forgot-password",variant:"caption",underline:"none",sx:{alignSelf:"flex-end"},children:"Forgot password?"})]}),(0,p.jsxs)(m.Z,{children:[a&&(0,p.jsxs)(g.Z,{role:"alert",color:"error.light",variant:"body2",align:"center",mb:1,children:["Error: ",a]}),(0,p.jsx)(I.Z,{type:"submit","data-event":"Login Form - Sign in",onClick:y.c.trackClick,loading:i,fullWidth:!0,style:{padding:"16px 20px",borderRadius:"4px"},children:"Sign In"})]}),(0,p.jsx)(b.Z,{children:(0,p.jsx)(g.Z,{sx:{fontFamily:"Inter",fontSize:"12px",lineHeight:"12px",color:"#A1A1AA"},children:"Don’t have an account"})}),(0,p.jsx)(f.default,{href:{pathname:"/signup",query:{from:t}},passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)(Z.Z,{sx:{fontSize:".875rem",borderColor:"grey.700"},variant:"outlined",color:"secondary","data-event":"Login Form - Sign Up Button",onClick:y.c.trackClick,style:{padding:"16px 20px"},children:"Create Account"})})]})})})}var ew=ey},13971:function(e,n,t){t.d(n,{f:function(){return c}});var r=t(57437),l=t(94685),i=t(66410),o=t(84976),a=t(2265);let s=(0,a.createContext)(void 0),c=e=>{var n,t,c;let{children:u}=e,{data:d}=(0,l.a)(o.r0b),[h,v]=(0,a.useState)(null),[p,f]=(0,a.useState)("New"),m="New"===p?o.JTe:"Following"===p?o.TEy:o.KRZ,{data:x}=(0,l.a)(m,{skip:!(null==d?void 0:d.user),fetchPolicy:"cache-first"}),[g]=(0,i.D)(o.I9o,{refetchQueries:[m]}),[b]=(0,i.D)(o.VIj,{refetchQueries:[m]}),j=async e=>{let{data:n}=await g({variables:{cacheId:e}});return null==n?void 0:n.markAnnouncementAsRead},y=!!h,w=(null!==(t=null==x?void 0:null===(n=x.announcements)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0;return(0,r.jsx)(s.Provider,{value:{announcements:null!==(c=null==x?void 0:x.announcements)&&void 0!==c?c:[],currentTag:p,setCurrentTag:f,markAnnouncementAsRead:j,markAllAsRead:b,showMarkAllAsRead:w,handleClick:e=>{y?v(null):v(e.currentTarget)},handleClose:()=>
1{v(null)},anchorEl:h,open:y},children:u})};n.Z=()=>{let e=(0,a.useContext)(s);if(!e)throw Error("useNotificationPanel must be used within a NotificationPanelProvider");return e}},45400:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(57437),l=t(94685),i=t(13001),o=t(29873),a=t(89978),s=t(84976);let c={[s.vjO.IndividualSubscription]:"active",[s.vjO.FreeAccess]:"active",[s.vjO.AuthorAccess]:"active",[s.vjO.AdminAccess]:"active",[s.vjO.ArticlePurchase]:"active",[s.vjO.ArticleRent]:"active",[s.vjO.ArticleAccess]:"active",[s.vjO.InstitutionalSubscription]:"institution",[s.vjO.AwaitingEmailConfirmation]:"institution",[s.vjO.InstitutionLoginRequired]:"institution",[s.vjO.IndividualTrial]:"trial",[s.vjO.InstitutionalTrial]:"trial",[s.vjO.SessionKey]:"trial",[s.vjO.Evaluation]:"evaluation",[s.vjO.LimitedAccess]:"evaluation",[s.vjO.RequireSubscription]:"none",[s.vjO.InstitutionSubscriptionExpired]:"none",[s.vjO.EmailConfirmationExpired]:"none",[s.vjO.InstitutionalPromocodeExpired]:"none",[s.vjO.InstitutionalUserTypeRestricted]:"none",[s.vjO.InstitutionalSectionCategoryRestricted]:"none",[s.vjO.InstitutionNameOrAliasRestricted]:"none",[s.vjO.SessionKeyRestricted]:"none"},u="/account/subscription";function d(e){return"".concat(e," day").concat(1===e?"":"s"," left")}let h={active:"#34D399",institution:"#A5B4FC",trial:"#FBBF24",evaluation:"#CBD5E1",none:"#F87171"};function v(e){let{size:n="sm"}=e,{data:t}=(0,l.a)(s.r0b),v=function(e){var n,t,r,l,i;if(!e)return null;let o=function(e){var n,t;let r=null===(n=e.accessType)||void 0===n?void 0:n.accessType;if(r){let e=c[r];if(e)return e}if(e.role===s.vXG.Admin||e.role===s.vXG.Librarian)return"active";let l=null===(t=e.subscription)||void 0===t?void 0:t.subType;return e.subActive&&l===s.ir.Institution?"institution":e.subActive&&l===s.ir.Individual?"active":l===s.ir.Trial?"trial":"evaluation"}(e),a=(null===(n=e.accessType)||void 0===n?void 0:n.institution_name)||(null===(t=e.accessType)||void 0===t?void 0:t.customInstitutionName)||null,h=function(e){if(null==e)return null;let n=new Date(e).getTime();if(Number.isNaN(n))return null;let t=n-Date.now();return t<=0?null:Math.ceil(t/864e5)}(null!==(i=null===(r=e.accessType)||void 0===r?void 0:r.subscriptionExpiresAt)&&void 0!==i?i:null===(l=e.accessType)||void 0===l?void 0:l.expiry);switch(o){case"active":return{variant:o,label:"Active Subscription",detail:null,tooltip:"Your subscription is active — full access to JOMI.",href:u};case"institution":return{variant:o,label:"Institutional Access",detail:a,tooltip:a?"Access provided by ".concat(a,"."):"Access provided by your institution.",href:u};case"trial":return{variant:o,label:"Trial Access",detail:null!=h?d(h):null,tooltip:null!=h?"Temporary trial access — ".concat(d(h),"."):"You have temporary trial access.",href:u};case"evaluation":return{variant:o,label:"Evaluation",detail:null,tooltip:"Evaluation access — subscribe for full access to JOMI.",href:u};case"none":return{variant:o,label:"No Access",detail:null,tooltip:"No active subscription — subscribe for full access to JOMI.",href:u}}}((0,a.Jc)(s.jC_,null==t?void 0:t.user));if(!(null==t?void 0:t.user)||!v)return null;let p=h[v.variant],f="md"===n?9:8;return(0,r.jsxs)(i.Z,{component:"span","data-testid":"subscription-status","data-status":v.variant,"aria-label":"Subscription status: ".concat(v.tooltip),title:v.tooltip,sx:{display:"inline-flex",alignItems:"center",gap:.75,maxWidth:240,animation:"subStatusIn .3s ease both","@keyframes subStatusIn":{from:{opacity:0,transform:"translateY(-2px)"},to:{opacity:1,transform:"translateY(0)"}}},children:[(0,r.jsx)(i.Z,{component:"span",sx:{width:f,height:f,borderRadius:"50%",backgroundColor:p,flexShrink:0,boxShadow:"0 0 6px ".concat(p,"66")}}),(0,r.jsx)(o.Z,{component:"span",sx:{color:p,fontWeight:600,fontSize:"md"===n?14:13,lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:v.label})]})}},92180:function(e,n,t){t.d(n,{s:function(){return d}});var r=t(45008),l=t(11391),i=t(94685);function o(){let e=(0,r._)(["\n    query UserInstitutionalAccess {\n  userAccessType {\n    accessType\n  }\n}\n    "]);return o=function(){return e},e}let a={},s=(0,l.Ps)(o());var c=t(69444);let u=[c.vj.InstitutionalSubscription,c.vj.InstitutionalTrial];function d(){var e,n;let{data:t,loading:r}=function(e){let n={...a,...e};return i.a(s,n)}({ssr:!1});return{hasAccess:!!(n=null==t?void 0:null===(e=t.userAccessType)||void 0===e?void 0:e.accessType)&&u.includes(n),loading:r}}},41639:function(e,n,t){t.d(n,{_v:function(){return r},fz:function(){return l},oV:function(){return i}});let r=e=>new Promise(n=>setTimeout(n,e));function l(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[n,t]=e;return null!==t&&""!==t&&void 0!==t}))}let i=e=>{if(Array.isArray(e))return e.map(i);if(e&&"object"==typeof e){let{__typename:n,...t}=e;return Object.keys(t).reduce((e,n)=>(e[n]=i(t[n]),e),{})}return e}},65342:function(e,n,t){t.d(n,{WS:function(){return i},Wp:function(){return l},b2:function(){return o}});let r="jomi.chunkReload";function l(e){if(!e||"object"!=typeof e)return!1;let{name:n,message:t}=e;return"ChunkLoadError"===n||/Loading chunk\s+\S+\s+failed/i.test(null!=t?t:"")}function i(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;return()=>new Promise((r,i)=>{let o=a=>{e().then(r,e=>{if(a<=1||!l(e)){i(e);return}setTimeout(()=>
1o(a-1),t*(n-a+1))})};o(n)})}function o(e,n){return!!function(e){if(!l(e))return!1;let n=Date.now(),{count:t,ts:i}=function(){try{var e,n;let t=sessionStorage.getItem(r);if(!t)return{count:0,ts:0};let l=JSON.parse(t);return{count:null!==(e=l.count)&&void 0!==e?e:0,ts:null!==(n=l.ts)&&void 0!==n?n:0}}catch(e){return{count:0,ts:0}}}();if(i&&n-i>6e5&&(t=0),t>=1)return!1;try{sessionStorage.setItem(r,JSON.stringify({count:t+1,ts:n}))}catch(e){return!1}return window.location.reload(),!0}(e)||(n(),!1)}},23771:function(e,n,t){t.d(n,{X:function(){return l}});var r=t(2265);function l(e){let{open:n,onClose:t}=e,l=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(n&&!o.current){o.current=!0,i.current=document.activeElement;let e=window.setTimeout(()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()},0);return()=>window.clearTimeout(e)}if(!n&&o.current){var e,t;o.current=!1,null===(t=i.current)||void 0===t||null===(e=t.focus)||void 0===e||e.call(t)}},[n]),{contentRef:l,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),t())}}}},72159:function(e,n,t){var r=t(57437),l=t(74060),i=t(81555);n.Z=e=>{let{name:n,...t}=e,[o,a]=(0,i.U$)(n),s=!!(a.touched&&a.error),c={...o,...t,error:s||t.error,helperText:s?a.error:t.helperText};return s&&(c.FormHelperTextProps={role:"alert",...t.FormHelperTextProps}),(0,r.jsx)(l.Z,{...c})}},52034:function(e,n,t){var r=t(65987);let l=(0,t(9135).ZP)(r.Z)(e=>{let{theme:n}=e;return{textTransform:"none",fontSize:"1rem",whiteSpace:"nowrap","&:hover":{color:"white"},borderRadius:8}});n.Z=l,l.defaultProps={variant:"outlined",color:"secondary"}},82361:function(e,n,t){t.r(n),n.default={src:"/_next/static/media/footer-phone.f04d1fa3.png",height:422,width:431,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEVMaXFDSlF4gIlaYGdAREoAAADKyuU+Nzk2Ky5BPkFeZGuKlZxiaXR/h5J5f4pweIEMBwdqcXoWDxBnbnUyNjy8PRxwAAAAEHRSTlMAlK7AtPkJJ6xT9Eagei72ZIPhEQAAAAlwSFlzAAALEwAACxMBAJqcGAAAADdJREFUeJxjYGBg5+BgZwABTgEhThDNxiwgxAhicHOxCrCAGLzCUAaToAhYMR+/IA8bRACskgEANHkBcKZWYEAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}}}]);

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.