PageSourceSearch

https://astromat.org/_next/static/chunks/240.b275ae3c8f342361.js

js astromat.org collected 2026-09-24 09:56:59 UTC 15,818 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]="7b4147df-bcb7-4df8-9227-da04d20d647f",e._sentryDebugIdIdentifier="sentry-dbid-7b4147df-bcb7-4df8-9227-da04d20d647f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[240],{81414:function(e,t,n){n.d(t,{I:function(){return m},R:function(){return h}});var a=n(85893),i=n(5616),o=n(41796),s=n(23795),r=n(15861),l=n(41664),d=n.n(l),c=n(66686),u=n(33738),p=n(66008);let h=e=>{let{headerGradient:t=!1,headerTint:n=.2}=e,{swatchPrimary:s}=(0,p.useGlobalConfig)();return(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(i.Z,{className:"HeaderGradient",sx:{top:0,left:0,right:0,height:300,position:"absolute",backgroundColor:s[950],zIndex:10,mixBlendMode:"multiply",opacity:.8,background:"linear-gradient(184deg, ".concat(s[950]," 5%, rgba(0, 0, 0, 0.00) 50%)")}}),(0,a.jsx)(i.Z,{className:"OrgGradient",sx:{top:0,left:0,bottom:0,right:0,position:"absolute",backgroundColor:s[950],opacity:.2,zIndex:10,mixBlendMode:"multiply",opacity:.7,background:"linear-gradient(40deg, ".concat(s[950]," 25%,").concat((0,o.Fq)(s[950],.5)," 45%,  ").concat((0,o.Fq)(s[950],.1)," 62.99%)")}}),(0,a.jsx)(i.Z,{className:"OrgTint",sx:{top:0,left:0,bottom:0,right:0,position:"absolute",backgroundColor:s[950],opacity:n,zIndex:20,transition:"opacity 0.3s",mixBlendMode:"multiply"}})]})},m=e=>{let{collection:t,setBannerImageLoaded:n}=e,{swatchPrimary:o}=(0,p.useGlobalConfig)();return(0,a.jsx)(s.Z,{href:t.url,onClick:()=>n&&n(!1),component:d(),underline:"none",sx:{"&:hover .OrgTint":{opacity:0}
1,"&:hover .ThumbImage":{transform:"scale(1.05)"},"&:hover .ThumbText":{opacity:1}},children:(0,a.jsxs)(i.Z,{sx:{width:"100%",aspectRatio:"328/220",position:"relative",p:2,display:"flex",alignItems:"end",overflow:"hidden",backgroundColor:o[950]},children:[c.BH(t.data.thumb)&&(0,a.jsx)(u.Z,{field:t.data.thumb,fallbackAlt:"",fill:!0,style:{objectFit:"cover",objectPosition:"center",transition:"all 0.3s"},className:"ThumbImage"}),(0,a.jsx)(h,{}),(0,a.jsx)(r.Z,{className:"ThumbText",variant:"h5",component:"span",color:"common.white",sx:{typography:{sm:"h6",md:"h5"},zIndex:30,position:"relative",opacity:.9,lineHeight:"1.334!important",transition:"opacity 0.3s"},children:t.data.name})]})})}},45329:function(e,t,n){n.d(t,{U:function(){return x}});var a=n(85893),i=n(5616),o=n(15861),s=n(64746),r=n(99036),l=n(69436),d=n(84622),c=n(80104),u=n(88144);async function p(e){let t,n;let{environment:a}=(0,c.h)("production","astromat");return"archive-data-system"===e?(t=fetch("".concat(a.archive_api_base_url,"/api/record/?page=1&processStatus=Calibration%20and%20Validation%7C%7CPublished&doiStatus=findable")).then(e=>e.json()).then(e=>e.count).catch(e=>519),n=fetch("".concat(a.archive_api_base_url,"/api/nameEntity/?page=1")).then(e=>e.json()).then(e=>e.count).catch(e=>67)):"synthesis-data-system"===e?(t=fetch("".concat(a.api_base_url,"/v4/metrics")).then(e=>e.json()).then(e=>{var t;return null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.dataPoints}).catch(e=>2098804),n=fetch("".concat(a.api_base_url,"/v4/metrics")).then(e=>e.json()).then(e=>{var t;return null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.citations}).catch(e=>5038)):"astrorepo-data-system"===e?(t=Promise.resolve(219),n=Promise.resolve(79)):(t=Promise.resolve(0),n=Promise.resolve(0)),{records:await t,contributors:await n}}let h={records:(0,a.jsx)(r.Z,{size:"small"}),submissions:(0,a.jsx)(r.Z,{size:"small"}),values:(0,a.jsx)(r.Z,{size:"small"}),contributors:(0,a.jsx)(l.Z,{size:"small"}),citations:(0,a.jsx)(s.Z,{size:"small"}),loading:(0,a.jsx)(r.Z,{size:"small"})},m=e=>{let{count:t,i18nkey:n,darkBg:s=!1}=e,{t:r}=(0,d.$G)();return(0,a.jsxs)(i.Z,{sx:{color:s?"primary.light":"primary.main",display:"flex",gap:.5,alignItems:"center"},children:[h[n],(0,a.jsx)(o.Z,{variant:"body2",color:s?"primary.light":"primary.dark",sx:{whiteSpace:"nowrap"},children:r("dataSystems.stats.".concat(n),{count:t})})]})},x=e=>{let{dataSystem:t,darkBg:n=!1}=e,o=null,{data:s,isLoading:r}=(0,u.a)({queryKey:["system_stats",t],queryFn:e=>{let{queryKey:t}=e;return p(t[1])},staleTime:1/0});switch(t){case"archive-data-system":default:o=["submissions","contributors"];break;case"synthesis-data-system":o=["values","citations"]}return r?(0,a.jsx)(m,{i18nkey:"loading",darkBg:n}):(0,a.jsx)(i.Z,{sx:{display:"flex",flexWrap:"wrap",gap:2},children:!!(null==s?void 0:s.records)&&!!(null==s?void 0:s.contributors)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m,{count:s.records,i18nkey:o[0],darkBg:n}),(0,a.jsx)(m,{count:s.contributors,i18nkey:o[1],darkBg:n})]})})}},83289:function(e,t,n){n.d(t,{g:function(){return I}});var a,i,o=n(85893),s=n(66008),r=n(42761),l=n(5616),d=n(76295),c=n(23795),u=n(50135),p=n(87109),h=n(98456),m=n(80104),x=n(88144),f=n(57144),b=n(84622),y=n(11163),g=n(67294),j=n(1419);let{search:v,orgDetails:Z}=(0,m.h)(),k=(null==v?void 0:null===(a=v.synthesis)||void 0===a?void 0:a.urlSlug)?v.synthesis.urlSlug:"synthesis",_=null!==(i=null==Z?void 0:Z.apiVersion)&&void 0!==i?i:"v5";function w(e,t,n){let a="/".concat(k,"/sample");return"web"===e?"".concat(a,"/").concat(n):"".concat(t,"/").concat(a,"/").concat(n)}async function C(e,t){return(await fetch("".concat(e,"/").concat(_,"/samples/lookup?size=20&q=").concat(t),{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())).data}let I=e=>{let{size:t="medium",redirect:n=!1,metricsData:a={},...i}=e,{t:m}=(0,b.$G)(),v=(0,y.useRouter)(),{config:Z,site:k}=(0,s.useGlobalConfig)(),[_,I]=(0,g.useState)(""),[S,P]=(0,g.useState)(!1),{data:D,isLoading:z}=(0,x.a)({queryKey:["sample_lookup",_],queryFn:e=>{let{queryKey:t}=e;return C(Z.api_base_url,t[1])},staleTime:1/0}),T=(0,g.useCallback)((0,f.Z)((e,t)=>I(t),700),[I]);function B(e){if("Enter"===e.key){e.preventDefault();let t=null==D?void 0:D.find(t=>t.name.toUpperCase()===e.target.value.toUpperCase());if(S||t){let e=w(k,Z.base_url,t.sampleId);n?window.location.href=e:v.push(e)}}}return(0,g.useEffect)(()=>{P(!1)},[v.asPath]),(0,o.jsx)(l.Z,{component:"form",noValidate:!0,sx:{width:"100%"},"data-test":"sample-lookup-wrapper",...i,children:(0,o.jsx)(d.Z,{disablePortal:!0,id:"sample-lookup",disableClearable:!0,options:null!=D?D:[],isOptionEqualToValue:(e,t)=>
1e.name===t.name,loading:z,getOptionLabel:e=>e.name,filterOptions:e=>e,onInputChange:T,onChange:(e,t)=>t&&function(e){P(!0);let t=w(k,Z.base_url,e);(0,j.Y)("Sample Lookup Used",{sample_id:e,...a}),n?window.location.href=t:v.push(t)}(t.sampleId),renderOption:(e,t)=>(0,o.jsx)(l.Z,{component:"li",...e,children:(0,o.jsx)(c.Z,{sx:{width:"100%"},color:"inherit",underline:"none",children:t.name})}),renderInput:e=>(0,o.jsx)(u.Z,{...e,placeholder:m("sampleLookup.inputPlaceholder"),size:t,variant:"outlined",sx:{backgroundColor:"background.default",borderColor:"panel.primary.border"},onKeyDown:B,fullWidth:!0,inputProps:{...e.inputProps,"data-test":"sample-lookup-input"},InputProps:{...e.InputProps,endAdornment:(0,o.jsxs)(o.Fragment,{children:[S&&(0,o.jsx)(p.Z,{position:"end",children:(0,o.jsx)(h.Z,{size:"1rem",color:"inherit"})}),e.InputProps.endAdornment]}),startAdornment:(0,o.jsx)(p.Z,{position:"start",children:(0,o.jsx)(r.Z,{})})}})})})};t.Z=I},1419:function(e,t,n){n.d(t,{Y:function(){return o},l:function(){return i}});var a=n(73422);function i(e){a.ZP.getDeviceId()&&console.log("Metrics - Identify",{data:e});let t=new a.ZP.Identify;Object.entries(e).map(e=>{let[n,a]=e;return t.set(n,a)}),a.ZP.identify(t)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.ZP.getDeviceId()&&console.log('Metrics - Track Event "'.concat(e,'"'),{data:t}),a.ZP.track(e,t)}},10240:function(e,t,n){n.r(t),n.d(t,{default:function(){return N}});var a=n(85893),i=n(172),o=n(14945),s=n(19602),r=n(23508),l=n(33738),d=n(60339),c=n(5616),u=n(57709),p=n(93946),h=n(58822),m=n(44510),x=n(31812),f=n(84622);let b=e=>{let{name:t,placeholder:n,onSubmit:i,onChange:o,value:s,handleClear:r,loading:l=!1,...d}=e,{t:b}=(0,f.$G)();return(0,a.jsx)("form",{onSubmit:i,role:"search",children:(0,a.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"row"},children:[(0,a.jsx)(u.Z,{name:t,type:"text",value:s,onChange:e=>o(e.target.value),placeholder:n,endAdornment:""!==s&&(0,a.jsx)(p.Z,{onClick:r,color:"secondary","aria-label":b("aria.clearSearch"),children:(0,a.jsx)(m.Z,{})}),fullWidth:!0,className:"disableAutofillHighlight",sx:{borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:"0!important"},inputProps:{...d}}),(0,a.jsx)(x.Z,{loading:l,variant:"contained",color:"primary",disableElevation:!0,size:"large",startIcon:(0,a.jsx)(h.Z,{}),type:"submit","aria-label":b("aria.submitSearch"),sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,"& .MuiButton-startIcon":{margin:0},"&.Mui-disabled":{backgroundColor:"primary.main"}},"data-test":"search-input-submit"})]})})};var y=n(84355),g=n(2734),j=n(65582),v=n(86886),Z=n(15861),k=n(25662),_=n(3892),w=n(40044),C=n(81414),I=n(45329),S=n(3264),P=n(67294),D=n(66008),z=n(11163),T=n(26215),B=n(83289),G=n(94390),q=n(82777),O=n(87509),R=n(66686);let E=e=>{var t,n;let{slice:i}=e,{t:o}=(0,f.$G)(),s=(0,g.Z)(),{swatchPrimary:l}=(0,D.useGlobalConfig)(),d=null==i?void 0:null===(t=i.primary)||void 0===t?void 0:t.scroll_prompt_highlight_text;function u(){document.getElementById("main-content").scrollIntoView({block:"start",behavior:"smooth"})}return(0,a.jsx)(c.Z,{sx:{backgroundColor:l[950],py:5,color:"common.white"},children:(0,a.jsx)(j.Z,{children:(0,a.jsxs)(v.ZP,{container:!0,children:[(0,a.jsx)(v.ZP,{item:!0,xs:10,md:6,children:(0,a.jsx)(Z.Z,{variant:"body1",sx:{[s.breakpoints.up("md")]:{fontSize:20}},children:(n=i.primary.scroll_prompt).includes(d)?(0,a.jsxs)(a.Fragment,{children:[n.split(d)[0],(0,a.jsx)(c.Z,{component:"span",sx:{color:"primary.light",display:"inline"},children:d}),n.split(d)[1]]}):n})}),(0,a.jsx)(v.ZP,{item:!0,md:3}),(0,a.jsx)(v.ZP,{item:!0,xs:2,md:3,children:(0,a.jsxs)(c.Z,{sx:{alignContent:"center",height:"100%",display:"flex",justifyContent:"flex-end"},children:[(0,a.jsx)(k.Z,{onClick:()=>u(),color:"inherit",endIcon:(0,a.jsx)(r.Z,{}),sx:{[s.breakpoints.down("md")]:{display:"none"}},children:o("web.learnMore")}),(0,a.jsx)(p.Z,{"aria-label":o("web.learnMore"),onClick:()=>u(),color:"inherit",sx:{[s.breakpoints.up("md")]:{display:"none"}},children:(0,a.jsx)(r.Z,{})})]})})]})})})},M=e=>{let{banners:t,tabValue:n,bannerPaused:i,setBannerPaused:r}=e,{t:l}=(0,f.$G)();return(0,a.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"row",gap:1,justifyContent:"flex-end",alignItems:"center",py:2},children:[(0,a.jsx)(c.Z,{sx:{display:"flex",flexDirection:"row",gap:1},children:t.map((e,t)=>(0,a.jsx)(c.Z,{sx:{display:"block",width:"8px",height:"8px",backgroundColor:"common.white",borderRadius:"4px",transition:"opacity 0.3s",opacity:n===t?1:.5}},t))}),(0,a.jsx)(p.Z,{"aria-label":l(i?"aria.playCarousel":"aria.pauseCarousel"),onClick:()=>r(!i),color:"inherit",children:i?(0,a.jsx)(s.Z,{}):(0,a.jsx)(o.Z,{})})]})};var N=e=>{var t;let{slice:n,context:o}=e,{t:s}=(0,f.$G)(),r=(0,z.useRouter)(),u=(0,g.Z)(),{swatchPrimary:p,swatchBlack:h,orgDetails:m}=(0,D.useGlobalConfig)(),{cookies:x}=o,j=[];n.items.map(e=>{var t;return(null===(t=e.datasystem)||void 0===t?void 0:t.id)&&j.push(o.dataSystems.results.find(t=>
1t.id===e.datasystem.id))});let v=x&&"banner_preferences"in x?JSON.parse(x.banner_preferences):{},N=v.defaultSystem&&j.find(e=>e.uid===v.defaultSystem)&&j.findIndex(e=>e.uid===v.defaultSystem),F=v.paused||!1,[H,A]=(0,P.useState)(N||0),[$,L]=(0,P.useState)(F),V=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=void 0!==n?n:H;L(e),function(e){let t=(0,O.Z)(Date.now(),365),n=Math.floor(t.getTime()/1e3);document.cookie=q.qC("banner_preferences",JSON.stringify(e),{httpOnly:!1,expires:t,maxAge:n,path:"/"})}({paused:e,defaultSystem:null===(t=j[a])||void 0===t?void 0:t.uid})},U=j.length-1;(0,P.useEffect)(()=>{let e=!$&&setInterval(()=>{A(H<U?H+1:0)},6e3);return()=>clearInterval(e)},[H,U,$]);let[W,J]=(0,P.useState)("");function K(){J("")}return(0,a.jsxs)(c.Z,{sx:{minHeight:"100vh",minHeight:"100svh",display:"flex",flexDirection:"column"},"data-slice-type":n.slice_type,"data-slice-variation":n.variation,children:[(0,a.jsxs)(c.Z,{sx:{width:"100%",minHeight:560,flex:1,position:"relative",display:"flex",justifyContent:"space-between",flexDirection:"column",backgroundColor:p[950],color:"common.white",pt:G.J},children:[j.map((e,t)=>(0,a.jsx)(l.Z,{field:e.data.full_banner,fallbackAlt:"",fill:!0,placeholder:"empty",style:{objectFit:"cover",objectPosition:"center",transition:"opacity 0.3s",opacity:H===t?1:0}},e.id)),(0,a.jsx)(C.R,{headerGradient:!0,headerTint:(null==n?void 0:null===(t=n.primary)||void 0===t?void 0:t.tint_opacity)||.2}),(0,a.jsx)(y.$0,{}),(0,a.jsx)(y.$0,{sx:{position:"relative",zIndex:2e3},children:(0,a.jsxs)(y.or,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,a.jsx)(c.Z,{sx:{display:"flex",flexDirection:"row",gap:2},children:j.length>1&&(0,a.jsx)(_.Z,{value:H,onChange:(e,t)=>
1{A(t),V(!0,t)},"aria-label":s("aria.selectADataSystem"),variant:"scrollable",scrollButtons:"auto",sx:{"& .MuiTabs-indicator":{backgroundColor:p[300]}},children:j.map((e,t)=>(0,a.jsx)(w.Z,{label:e.data.short_name,size:"large",sx:{color:h[300],"&.Mui-selected":{color:p[200]}},id:"simple-tab-".concat(t),"aria-controls":"simple-tabpanel-".concat(t)},e.uid))})}),j.map((e,t)=>{var n;return(0,a.jsxs)(c.Z,{role:"tabpanel",id:"simple-tabpanel-".concat(t),"aria-labelledby":"simple-tab-".concat(t),onClick:()=>V(!0),sx:{flexDirection:"column",gap:2,display:H===t?"flex":"none",minHeight:260,[u.breakpoints.down("md")]:{minHeight:360}},children:[(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(Z.Z,{variant:"h4",component:"h2",color:"common.white",children:e.data.title}),(0,a.jsx)(I.U,{dataSystem:e.uid,darkBg:!0})]}),(0,a.jsx)(Z.Z,{variant:"body1",color:"common.white",children:e.data.description}),e.data.query_base.url&&(0,a.jsx)(b,{name:"".concat(e.uid,"_search"),placeholder:R.Nn(e.data.action_input_placeholder_text)?e.data.action_input_placeholder_text:"".concat(e.data.action_text,"..."),onSubmit:t=>{var n;return n=e.data.query_base.url,void(t.preventDefault(),r.push(n+W))},onChange:J,value:W,handleClear:K,"aria-label":e.data.action_text}),(0,a.jsxs)(c.Z,{sx:{display:"flex",gap:2,alignItems:"center",justifyContent:e.data.query_base.url?"space-between":"flex-start"},children:[e.data.query_base.url?(0,a.jsx)(k.Z,{variant:"text",color:"inherit",size:"large",sx:{pl:0},href:e.data.search_home.url,endIcon:(0,a.jsx)(T.Z,{}),children:s("search.advancedSearch")}):(0,a.jsxs)(c.Z,{sx:{display:"flex",gap:2,width:"100%",[u.breakpoints.down("sm")]:{flexDirection:"column"}},children:["synthesis-data-system"===e.uid&&!!(null===(n=m.contentOptions)||void 0===n?void 0:n.showSampleSearchOnLander)&&(0,a.jsx)(B.Z,{metricsData:{used_from:"Home Banner"}}),(0,a.jsx)(d.f,{field:e.data.search_home,style:{flexShrink:0},children:(0,a.jsx)(k.Z,{variant:"contained",color:"primary",size:"large",endIcon:(0,a.jsx)(T.Z,{}),sx:{height:56,flexShrink:0},children:e.data.action_text})})]}),(0,a.jsx)(c.Z,{sx:{display:"flex",gap:2,[u.breakpoints.down("sm")]:{display:"none"}},children:(0,a.jsx)(i.p,{slices:e.data.slices,components:S.w})})]}),!!e.data.secondary_description&&(0,a.jsx)(Z.Z,{variant:"body2",color:"common.white",sx:{mt:1},children:e.data.secondary_description})]},e.id)})]})}),(0,a.jsx)(y.$0,{sx:{zIndex:1500},children:(0,a.jsx)(y.zQ,{children:(0,a.jsx)(c.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:j.length>1&&(0,a.jsx)(M,{banners:j,tabValue:H,bannerPaused:$,setBannerPaused:V})})})})]}),!!n.primary.scroll_prompt&&(0,a.jsx)(E,{slice:n})]})}}}]);

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.