PageSourceSearch

https://capjournal.org/_next/static/chunks/pages/articles/[articleId]/[slug]-9b96e76ba1dc6fca.js

js capjournal.org collected 2026-10-02 03:30:57 UTC 16,458 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5459],{95217:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles/[articleId]/[slug]",function(){return a(67990)}])},48930:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(74848);a(96540);var n=a(46942),i=a.n(n),c=a(86715),o=a(83914);let r=e=>{let{label:t,onClick:a,url:n,target:r,newTab:s=!1,icon:d,iconLeft:m,...u}=e,x=(0,c.useRouter)(),h=i()(null==u?void 0:u.className,"rounded-full text-center align-middle items-center text-md transition duration-300 flex gap-4");return(0,l.jsxs)("button",{...u,className:h,onClick:()=>{n?s||"_blank"===r?window.open(n,null!=r?r:"_blank"):x.push(n):a&&a()},"aria-label":t,role:"button",children:[d&&m&&(0,l.jsx)(o.g,{icon:d,size:"lg",style:{width:20}}),t,d&&!m&&(0,l.jsx)(o.g,{icon:d,size:"lg",style:{width:20}})]})}},67990:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>P,default:()=>I,extractVolumeIssuePages:()=>S,generateCitations:()=>E});var l=a(74848),n=a(96540),i=a(86715),c=a(91106),o=a.n(c),r=a(46942),s=a.n(r),d=a(29965),m=a.n(d),u=a(13368),x=a.n(u),h=a(83914),p=a(66188),g=a(48930),j=a(37875);let b=e=>{let{url:t,title:a}=e,n=encodeURIComponent(t),i=encodeURIComponent(a),c="https://twitter.com/intent/tweet?url=".concat(n,"&text=").concat(i),o="https://www.linkedin.com/sharing/share-offsite/?url=".concat(n),r="https://www.facebook.com/sharer/sharer.php?u=".concat(n);return(0,l.jsxs)("div",{className:"flex space-x-4 items-center w-full",children:[(0,l.jsx)("span",{children:" Share On"}),(0,l.jsxs)("div",{className:"flex space-x-4",children:[(0,l.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"bg-gray-200 flex items-center justify-center rounded-full hover:bg-[#3366CC] hover:text-white text-gray-800 px-3 py-2 w-10 h-10",children:(0,l.jsx)(h.g,{icon:j.NLt})}),(0,l.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"bg-gray-200 flex items-center justify-center rounded-full hover:bg-[#3366CC] hover:text-white text-gray-800 px-3 py-2 w-10 h-10",children:(0,l.jsx)(h.g,{icon:j.B_4})}),(0,l.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"bg-gray-200 flex items-center justify-center rounded-full hover:bg-[#3366CC] hover:text-white text-gray-800 px-3 py-2 w-10 h-10",children:(0,l.jsx)(h.g,{icon:j.Kjv})})]})]})};var v=a(80119),f=a(37218),w=a(74063);let y=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-"),N=e=>{if(!Array.isArray(e)||0===e.length)return[];let t=new Map;for(let n of e){let e=n.id;if(!t.has(e)){var a,l;let i=(null===(a=n.lastname)||void 0===a?void 0:a.trim())||"",c=(null===(l=n.name)||void 0===l?void 0:l.trim())||"";t.set(e,{id:e,fullname:i?"".concat(c," ").concat(i):c})}}return Array.from(t.values())};function _(e){let t=e.match(/https?:\/\/doi\.org\/[^\s]+/i);return t?t[0]:null}let C=e=>new Date("".concat(e,"T00:00:00")).toLocaleString("en-US",{month:"long",year:"numeric"}),k=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){console.error("Error",e)}},A=async(e,t)=>{try{let a=await fetch("".concat(f.A,"/").concat(e)),l=await a.blob(),n=window.URL.createObjectURL(l),i=document.createElement("a");i.href=n,i.download="".concat(t,".pdf"),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(n)}catch(e){console.error("Error to download:",e)}};var P=!0;function S(e){let t=e.match(/(\d+)\((\d+)\)/),a=e.match(/(\d+–\d+)/);return{volume:t?t[1]:null,number:t?t[2]:null,pages:a?a[1]:null}}function E(e){let t=new Date(e.publication_date).getFullYear(),a=e.article_authors.map(e=>{var t,a;let l=(null===(t=e.name)||void 0===t?void 0:t.trim())||"";if(v.A.includes(l))return l;let n=(null===(a=e.lastname)||void 0===a?void 0:a.trim())||"",i=l.charAt(0).toUpperCase();return n?"".concat(n,", ").concat(i,"."):i?"".concat(i,"."):""}).join(", ").replace(/, ([^,]*)$/,", & $1"),l=function(e){if(1===e.length){let t=e[0];return"".concat(t.lastname,", ").concat(t.name,".")}let t=e[0];return"".concat(null==t?void 0:t.lastname,", ").concat(null==t?void 0:t.name,", et al.")}(e.article_authors),n=e.article_authors.map(e=>"".concat(null==e?void 0:e.name," ").concat(null==e?void 0:e.lastname)).join(", ").replace(/, ([^,]*)$/,", and $1"),i=_(e.citation),c=S(e.citation),o=null!=i?i:"",r=o?" ".concat(o):"";return{apa:"".concat(a," (").concat(t,"). ").concat(e.title,". *Communicating Astronomy with the Public Journal*, ").concat(e.volume,"(").concat(null==c?void 0:c.number,"), ").concat(null==c?void 0:c.pages,". ").concat(r),mla:"".concat(l,' "').concat(e.title,'." *Communicating Astronomy with the Public Journal*, vol. ').concat(e.volume,", no. ").concat(null==c?void 0:c.number,", ").concat(t,", pp. ").concat(null==c?void 0:c.pages,". ").concat(r),chicago:"".concat(n,'. "').concat(e.title,'." *Communicating Astronomy with the Public Journal* ').concat(e.volume,", no. ").concat(null==c?void 0:c.number," (").concat(t,"): ").concat(null==c?void 0:c.pages,". ").concat(r)}}function I(e){var t,a;let c,{article:r}=e,{slug:d}
1=(0,i.useRouter)().query,[u,j]=(0,n.useState)("0"),[f,P]=(0,n.useState)("0"),I=(0,n.useRef)(null),[T,L]=(0,n.useState)(!1),[F,D]=(0,n.useState)(!1),R=S(r.citation),z=null===(t=R.pages)||void 0===t?void 0:t.split("–")[0],O=null===(a=R.pages)||void 0===a?void 0:a.split("–")[1],M=_(r.citation),U=r.abstract.replace(/<br\s*\/?>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").replace(/\s+/g," ").trim();(0,n.useEffect)(()=>{var e,t;if(!(null==r?void 0:r.citation))return;let a=null===(e=r.citation.match(/https:\/\/doi\.org\/[^\s]+/))||void 0===e?void 0:e[0],l=null==a?void 0:null===(t=a.match(/zenodo\.(\d+)/))||void 0===t?void 0:t[1];l&&fetch("https://zenodo.org/api/records/".concat(l)).then(e=>e.json()).then(e=>{var t,a,l,n,i,c;j(null!==(i=null===(a=e.stats)||void 0===a?void 0:null===(t=a.views)||void 0===t?void 0:t.toString())&&void 0!==i?i:"0"),P(null!==(c=null===(n=e.stats)||void 0===n?void 0:null===(l=n.downloads)||void 0===l?void 0:l.toString())&&void 0!==c?c:"0")}).catch(e=>console.error("Error fetching Zenodo data:",e))},[null==r?void 0:r.citation]),(0,n.useEffect)(()=>{if(!I.current)return;let e=new IntersectionObserver(e=>{let[t]=e;L(!t.isIntersecting)},{threshold:.1});return e.observe(I.current),()=>e.disconnect()},[I,r]);let J=s()("container mx-auto mx-2 my-16 px-8 py-2 flex flex-col gap-16");if(r&&(c=E(r)),!r)return(0,l.jsx)("div",{className:"h-screen flex justify-center items-center",children:(0,l.jsx)("p",{role:"alert",children:"Article not found."})});let G={"@context":"https://schema.org","@type":"Article",headline:r.title,description:U,image:r.image_cover,publisher:{"@type":"Organization",name:"CAP Journal",logo:{"@type":"ImageObject",url:"".concat(w.D,"/images/logo-capjournal.png")}},author:r.article_authors.map(e=>({"@type":"Person",name:"".concat(e.name," ").concat(e.lastname)})),datePublished:r.publication_date,mainEntityOfPage:{"@type":"WebPage","@id":"https://www.capjournal.org/articles/".concat(r.id,"/").concat(d)}};return(0,l.jsxs)(l.Fragment,{children:[r&&(0,l.jsxs)(x(),{children:[(0,l.jsx)("title",{children:r.title}),(0,l.jsx)("meta",{property:"title",content:r.title}),(0,l.jsx)("meta",{name:"description",content:U}),(0,l.jsx)("meta",{property:"og:title",content:r.title}),(0,l.jsx)("meta",{property:"og:description",content:U}),(0,l.jsx)("meta",{property:"og:image",content:r.image_cover}),(0,l.jsx)("meta",{property:"og:type",content:"article"}),(0,l.jsx)("meta",{property:"og:url",content:"https://www.capjournal.org/articles/".concat(r.id,"/").concat(d)}),(0,l.jsx)("meta",{property:"article:published_time",content:r.publication_date}),(0,l.jsx)("meta",{name:"citation_title",content:r.title}),r.article_authors.map(e=>(0,l.jsx)("meta",{name:"citation_author",content:"".concat(e.name).concat(e.lastname?" ".concat(e.lastname):"")},e.id)),(0,l.jsx)("meta",{name:"citation_journal_title",content:"Communicating Astronomy with the Public Journal"}),(0,l.jsx)("meta",{name:"citation_publication_date",content:r.publication_date}),(0,l.jsx)("meta",{name:"citation_abstract",content:U}),(0,l.jsx)("meta",{name:"citation_volume",content:r.volume}),r.issue&&(0,l.jsx)("meta",{name:"citation_issue",content:r.issue.toString()}),z&&(0,l.jsx)("meta",{name:"citation_firstpage",content:z}),O&&(0,l.jsx)("meta",{name:"citation_lastpage",content:O}),M&&(0,l.jsx)("meta",{name:"citation_doi",content:M}),(0,l.jsx)("meta",{name:"citation_pdf_url",content:"https://api.capjournal.org/api/v1/articles/".concat(r.id,"/pdf_file")}),(0,l.jsx)("meta",{name:"citation_public_url",content:"https://www.capjournal.org/articles/".concat(r.id,"/").concat(y(r.title))}),(0,l.jsx)("meta",{name:"citation_language",content:"en"}),(0,l.jsx)("meta",{name:"citation_fulltext_html_url",content:"https://www.capjournal.org/articles/".concat(r.id,"/").concat(d)}),r.keywords.map(e=>(0,l.jsx)("meta",{name:"citation_keywords",content:e},e)),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:title",content:r.title}),(0,l.jsx)("meta",{name:"twitter:description",content:U}),(0,l.jsx)("meta",{name:"twitter:image",content:r.image_cover}),(0,l.jsx)("link",{rel:"canonical",href:"https://www.capjournal.org/articles/".concat(r.id,"/").concat(d)}),(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(G)}})]}),(0,l.jsxs)("div",{className:"py-24 relative","aria-labelledby":"article-title",children:[(0,l.jsx)("div",{className:J,children:(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-16",children:[(0,l.jsxs)("article",{className:"flex-1 space-y-8",children:[(0,l.jsx)("header",{children:(0,l.jsx)("h1",{id:"article-title",className:"".concat(r.title.length>50?"lg:text-5xl md:text-4xl text-3xl":"lg:text-6xl md:text-5xl text-4xl","   font-bold relative"),dangerouslySetInnerHTML:{__html:r.title}}
1)}),(0,l.jsxs)("section",{"aria-labelledby":"article-meta",children:[(0,l.jsx)("h2",{id:"article-meta",className:"sr-only",children:"Article metadata"}),(0,l.jsxs)("p",{className:"text-lg text-black",children:[(0,l.jsx)("strong",{children:"Volume:"})," ",(0,l.jsx)("span",{className:"p-1 text-[#696969]",children:r.volume})]}),(0,l.jsxs)("time",{className:"text-lg text-black",children:[(0,l.jsx)("strong",{children:"Publication Date:"})," ",(0,l.jsx)("span",{className:"p-1 text-[#696969]",children:C(r.publication_date)})]}),(0,l.jsxs)("p",{className:"text-lg text-black",children:[(0,l.jsx)("strong",{children:"Content Type:"})," ",(0,l.jsx)("span",{className:"p-1 text-[#696969]",children:r.content_type.name})]}),", "!==r.keywords.join(", ")&&(0,l.jsxs)("p",{className:"text-lg text-black",children:[(0,l.jsx)("strong",{children:"Keywords:"})," ",(0,l.jsx)("em",{className:"p-1 text-[#696969]",children:r.keywords.join(", ")})]}),(0,l.jsxs)("div",{className:"text-lg text-black my-10",children:[(0,l.jsx)("p",{className:"sr-only",children:"Article Authors"}),(0,l.jsx)("ul",{className:"flex flex-wrap gap-2",children:N(r.article_authors).map(e=>(0,l.jsxs)("li",{className:"flex flex-wrap items-center space-x-2",children:[(0,l.jsx)("div",{className:"w-6 h-6 rounded-full ".concat(v.A.includes(e.fullname.trim())?"bg-[#C9D8F2]":"bg-[#C7E4E0]"," flex items-center justify-center"),children:(0,l.jsx)(h.g,{icon:v.A.includes(e.fullname.trim())?p.PKn:p.X46,style:{width:10,height:14},className:"text-white"})},null==e?void 0:e.id),(0,l.jsx)("span",{className:"text-[#696969]",children:e.fullname})]},e.id))})]})]}),(0,l.jsxs)("section",{"aria-labelledby":"abstract-title",className:"space-y-8",children:[(0,l.jsx)("h2",{id:"abstract-title",className:"text-4xl font-bold",children:"Abstract"}),(0,l.jsx)("div",{className:"prose text-lg text-[#696969]",dangerouslySetInnerHTML:{__html:r.abstract}}),(0,l.jsxs)(o(),{href:"/articles/".concat(r.id,"/").concat(d,"/file.pdf"),target:"_blank",className:"text-lg flex items-center gap-2 hover:underline hover:text-orange-700 text-[#f86764] font-extrabold","aria-label":"Read about ".concat(null==r?void 0:r.title),children:["Read More",(0,l.jsx)(h.g,{icon:p.XkK,style:{width:10,height:14}})]})]}),r.image_cover&&(0,l.jsx)("figure",{className:"relative w-full","aria-label":"Article image",children:(0,l.jsx)(m(),{src:r.image_cover,alt:"Cover image for the article",width:500,height:500,style:{objectFit:"cover",width:"100%",height:"auto"},priority:!0,className:"rounded-md",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw"})}),(0,l.jsxs)("section",{"aria-labelledby":"citation-title",className:"flex flex-col gap-1 relative",children:[(0,l.jsx)("div",{className:"absolute right-0",children:(0,l.jsxs)("div",{className:"relative group inline-block",children:[(0,l.jsx)("button",{className:"text-gray-700 px-4 py-2 rounded-md",onClick:()=>k(r.citation),children:(0,l.jsx)(h.g,{icon:p.jPR,style:{width:20,height:25}})}),(0,l.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 mt-2 w-max bg-gray-800 text-white text-sm px-3 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none z-10",children:"Copy Citation"})]})}),(0,l.jsxs)("div",{className:"border border-gray-200 p-6 rounded-md",children:[(0,l.jsx)("h2",{id:"citation-title",className:"sr-only",children:"Citation"}),(0,l.jsxs)("div",{className:"text-lg sm:break-normal break-all whitespace-normal",children:[(0,l.jsx)("strong",{children:"Citation:"})," ",(0,l.jsx)("p",{className:"text-[#696969]",dangerouslySetInnerHTML:{__html:r.citation}})]})]})]})]}),(0,l.jsxs)("aside",{className:"lg:w-72 flex gap-8 flex-col lg:justify-normal justify-between items-center","aria-labelledby":"stats-title",children:[(0,l.jsx)("div",{className:"flex mt-5 w-full",ref:I,children:(0,l.jsx)(g.A,{id:"download-article",label:"Download this article (PDF File)",className:"bg-[#3366CC] justify-center hover:bg-blue-950 text-white py-2 px-4 w-full",icon:p.cbP,onClick:()=>A(r.pdf,r.title)})}),(0,l.jsxs)("div",{className:"relative inline-block text-left w-full",children:[(0,l.jsx)(g.A,{id:"download-article",label:"Copy Citation",className:"w-full justify-center border border-solid border-[#3366CC] text-[#3366CC] hover:text-blue-950 hover:border-blue-950 py-2 px-4",icon:p.$7g,iconLeft:!0,onClick:()=>D(!F)}),F&&(0,l.jsx)("div",{className:"w-full absolute right-0 z-10 mt-2 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black/10",children:(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("button",{onClick:()=>{D(!1),k(c.apa)},className:"block w-full text-left px-4 py-2 text-sm hover:bg-gray-100",children:"APA"}),(0,l.jsx)("button",{onClick:()=>{D(!1),k(c.mla)},className:"block w-full text-left px-4 py-2 text-sm hover:bg-gray-100",children:"MLA"}),(0,l.jsx)("button",{onClick:()=>{D(!1),k(c.chicago)},className:"block w-full text-left px-4 py-2 text-sm hover:bg-gray-100",children:"Chicago"})]})})]}),(0,l.jsx)("hr",{className:"w-full"}),(0,l.jsx)(b,{url:"https://www.capjournal.org/articles/".concat(null==r?void 0:r.id,"/").concat(y(null==r?void 0:r.title)),title:r.title}),(0,l.jsx)("hr",{className:"w-full"}),(0,l.jsxs)("div",{className:"flex gap-4 my-5",children:[(0,l.jsx)("h2",{id:"stats-title",className:"sr-only",children:"Article stats"}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("p",{className:"text-lg",children:"Views"}),(0,l.jsx)("strong",{className:"text-2xl",children:u})]}),(0,l.jsx)("hr",{className:"border-orange-500 my-4"}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("p",{className:"text-lg",children:"Downloads"}),(0,l.jsx)("strong",{className:"text-2xl",children:f})]})]})]})]})}),T&&(0,l.jsx)("div",{className:"fixed bottom-12 right-4 z-50",children:(0,l.jsx)(g.A,{id:"download-article-floating",label:"Download this article (PDF File)",className:"bg-[#3366CC] hover:bg-blue-950 text-white py-2 px-4",icon:p.cbP,onClick:()=>A(r.pdf,r.title)})})]})]})}},80119:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=["A collaboration with Symmetry magazine, a Fermilab/SLAC publication","AIDA-WP5 Team","Astronomers for Planet Earth Network collaboration","Around the World in 80 Telescopes Production Team","GalileoMobile and the Amanar Task Force","IAU IYA2009 EC WG and the IYA2009 Global Cornerstone Projects Task Groups","IYA2009 Image Exhibition Task Group","JENAM2009 IYA2009 Symposium Organising Committee","Space and Nature Aruba Foundation (SNAF)"]}},e=>{var t=t=>e(e.s=t);e.O(0,[8180,636,6593,8792],()=>t(95217)),_N_E=e.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.