PageSourceSearch

https://www.climatecentral.org/_next/static/chunks/2466-97a446c074f63573.js

js climatecentral.org collected 2026-09-24 08:26:38 UTC 10,462 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2466],{75109:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n,a=o(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}let s=function(e){return a.createElement("svg",r({viewBox:"0 0 12 12"},e),n||(n=a.createElement("path",{fillRule:"evenodd",d:"M11.53.47a.75.75 0 00-1.061 0l-4.47 4.47L1.529.47A.75.75 0 10.468 1.531l4.47 4.47-4.47 4.47a.75.75 0 101.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 101.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 000-1.061z"})))}},92466:(e,t,o)=>{"use strict";o.d(t,{DonationPrompt:()=>T,M5:()=>y,og:()=>w,zs:()=>m});var n=o(12115),a=o(51091),r=o(39411),s=o(8242),i=o(2667),l=o.n(i),u=o(75109),d=o(14398),p=o(21981),c=o(77140),h=o(94408),_=o(31055),f=o(95155);let m="donation-popup",w="test",y="control",g={inlineAsk:"donation_prompt_inline_ask_shown",popup:"donation_prompt_popup_shown",postDownload:"donation_prompt_post_download_shown"},v={inlineAsk:"donation_prompt_inline_ask_clicked",popup:"donation_prompt_popup_clicked",postDownload:"donation_prompt_post_download_clicked"},A="cc:donation-popup:shown-session",x="cc:donation-popup:last-shown-at",b={"inline-ask":g.inlineAsk,popup:g.popup,"post-download":g.postDownload},k={"inline-ask":v.inlineAsk,popup:v.popup,"post-download":v.postDownload};function T(e){let{variant:t,triggerKey:o,className:n}=e,a=(0,c.J)(m);return a!==w&&a!==y?null:"popup"===t?(0,f.jsx)(O,{experimentVariant:a}):a===y?(0,f.jsx)(N,{variant:"download"===t?"post-download":"inline-ask",trackingKey:o}):"download"===t?(0,f.jsx)(S,{triggerKey:o,className:n}):"inline-ask"===t?(0,f.jsx)(R,{}):null}function j(e){let{children:t,className:o,sourceCode2:n,trackingVariant:r}=e,i=(0,s.sf)(),u=(0,_.O2)(n),d=()=>{i.capture(k[r],{donation_prompt_variant:r,donation_source_code:"website",donation_source_code_2:n,donation_href:u,feature_flag_key:m,feature_flag_variant:w})};return(0,f.jsx)("a",{className:(0,a.A)(l().button,o),href:u,onClick:d,onAuxClick:e=>{1===e.button&&d()},children:t})}function E(e,t,o,a){let r=(0,s.sf)(),i=(0,n.useRef)(!1),l=(0,n.useRef)(void 0);(0,n.useEffect)(()=>{if(!t||i.current&&l.current===a)return;let n=b[e];i.current=!0,l.current=a;let s=o===w;s&&r.capture(n,{donation_prompt_variant:e,feature_flag_key:m,feature_flag_variant:o}),(0,h.uT)({capture:(e,t,o)=>void 0===o?r.capture(e,t):r.capture(e,t,o),context:{exposureEvent:n,donationExposureType:s?"rendered":"counterfactual",donationPromptVariant:e,featureFlagKey:m,featureFlagVariant:o}})},[o,t,r,a,e])}function N(e){let{variant:t,trackingKey:o}=e;return E(t,!0,y,o),null}function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();try{if("true"===window.sessionStorage.getItem(A))return!1;let t=window.localStorage.getItem(x);if(!t)return!0;let o=Number(t);return!Number.isFinite(o)||e-o>=1728e5}catch{return!0}}function S(e){let{triggerKey:t,className:o}
1=e,[r,s]=(0,n.useState)(!1),[i,u]=(0,n.useState)(!1);if(E("post-download",!r,w,t),(0,n.useEffect)(()=>{s(!1),u(!1)},[t]),(0,n.useEffect)(()=>{if(r||i)return;let e=window.setTimeout(()=>{s(!0)},7e3);return()=>{window.clearTimeout(e)}},[r,i,t]),r)return null;let p=()=>u(!0),c=()=>u(!1);return(0,f.jsxs)("aside",{className:(0,a.A)(l().downloadPrompt,o),"data-donation-prompt":"download","aria-label":"Support prompt after download",onMouseEnter:p,onMouseLeave:c,onFocus:p,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||c()},children:[(0,f.jsxs)("div",{className:l().promptCopy,children:[(0,f.jsx)("strong",{children:"Your download is ready."}),(0,f.jsx)("span",{children:"Resources like this are free. The science behind it isn't."})]}),(0,f.jsxs)(j,{sourceCode2:"download",trackingVariant:"post-download",children:["Support this work",(0,f.jsx)(d.i,{size:"sm",className:l().buttonArrow})]}),(0,f.jsx)("button",{className:l().closeButton,type:"button","aria-label":"Dismiss donation prompt",onClick:()=>s(!0),children:(0,f.jsx)("span",{"aria-hidden":!0,children:"\xd7"})})]})}function O(e){let{experimentVariant:t}=e,[o,a]=(0,n.useState)(!1),[s,i]=(0,n.useState)(!1),d=(0,p.nc)(e=>e.isAuthModalOpen),c=t===w;return(E("popup",o&&!s&&!d,t),(0,n.useEffect)(()=>{d&&o&&i(!0)},[d,o]),(0,n.useEffect)(()=>{if(s||o||d||!C())return;let e=window.setTimeout(()=>{!p.nc.getState().isAuthModalOpen&&C()&&(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();try{window.sessionStorage.setItem(A,"true"),window.localStorage.setItem(x,String(e))}catch{}}(),a(!0))},45e3);return()=>{window.clearTimeout(e)}},[d,s,o]),(0,n.useEffect)(()=>{if(!c||s||!o||d)return;let e=e=>{"Escape"===e.key&&i(!0)},t=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",e),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",e)}},[d,s,c,o]),!c||s||!o||d)?null:(0,f.jsx)("div",{className:l().popupScrim,"data-donation-prompt":"popup",onPointerDown:e=>{e.target===e.currentTarget&&i(!0)},children:(0,f.jsxs)("aside",{className:l().homepagePopup,role:"dialog","aria-modal":"true","aria-labelledby":"donation-homepage-popup-heading",children:[(0,f.jsx)("button",{className:l().popupClose,type:"button","aria-label":"Close donation prompt",onClick:()=>i(!0),children:(0,f.jsx)(u.A,{"aria-hidden":!0})}),(0,f.jsx)("div",{className:l().popupImage,children:(0,f.jsx)(r.default,{className:l().popupImageAsset,src:"/images/donation-popup-glacier.jpg",alt:"",width:1600,height:1068,sizes:"(max-width: 799px) 100vw, 640px"})}),(0,f.jsxs)("div",{className:l().popupContent,children:[(0,f.jsx)("h2",{id:"donation-homepage-popup-heading",children:"Support climate science that informs the world"}),(0,f.jsx)(j,{sourceCode2:"popup",trackingVariant:"popup",className:l().popupAction,children:"DONATE"})]})]})})}function R(){return E("inline-ask",!0,w),(0,f.jsxs)("aside",{className:(0,a.A)("rich-text-element",l().inlineAsk),"data-donation-prompt":"inline-ask","aria-label":"Support Climate Central",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("h3",{children:"Science-based climate stories start with you."}),(0,f.jsx)("p",{children:"Help Climate Central turn data into actionable information for communities, newsrooms, and classrooms around the world."})]}),(0,f.jsxs)(j,{sourceCode2:"inline",trackingVariant:"inline-ask",children:["Donate",(0,f.jsx)(d.i,{size:"sm",className:l().buttonArrow})]})]})}},77140:(e,t,o)=>{"use strict";o.d(t,{J:()=>l,u:()=>i});var n=o(8242),a=o(12115);let r="off"!==o(87358).env.NEXT_PUBLIC_LOCAL_FEATURE_FLAGS;function s(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{{let e=window.location.hostname;("localhost"===e||"127.0.0.1"===e||"0.0.0.0"===e)&&t(!0)}},[]),e}function i(e){let t=(0,n.Tp)(e);return s()&&r||(t??!1)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"test",o=(0,n._C)(e);return s()&&r?t:"string"==typeof o?o:void 0}},94408:(e,t,o)=>{"use strict";o.d(t,{Gr:()=>w,uT:()=>m});let n="cc:donation-post-exposure-session-quality:v1",a=[1e4,3e4,6e4],r=[],s=null,i=null,l=()=>Date.now();function u(e){return Array.isArray(e)?e.filter(e=>"number"==typeof e):[]}function d(e){try{let t=window.sessionStorage.getItem(n);if(!t)return null;let o=JSON.parse(t),a="number"==typeof o.startedAt?o.startedAt:e,r="number"==typeof o.lastActivityAt?o.lastActivityAt:e;if(e-r>18e5)return null;return{exposureEvent:"string"==typeof o.exposureEvent?o.exposureEvent:"",donationExposureType:"counterfactual"===o.donationExposureType?"counterfactual":"rendered",donationPromptVariant:"string"==typeof o.donationPromptVariant?o.donationPromptVariant:"",featureFlagKey:"string"==typeof o.featureFlagKey?o.featureFlagKey:"",featureFlagVariant:"string"==typeof o.featureFlagVariant?o.featureFlagVariant:"",startedAt:a,lastActivityAt:r,durationObserved:!0===o.durationObserved,durationThresholdsReached:u(o.durationThresholdsReached),durationThresholdsNotReached:u(o.durationThresholdsNotReached)}}catch{return null}}function p(e){try{window.sessionStorage.setItem(n,JSON.stringify(e))}catch{}}function c(e,t){return{source:"donation_post_exposure_session_quality",donation_exposure_event:e.exposureEvent,donation_exposure_type:e.donationExposureType,donation_prompt_variant:e.donationPromptVariant,feature_flag_
1key:e.featureFlagKey,feature_flag_variant:e.featureFlagVariant,..."number"==typeof t?{elapsed_milliseconds:t}:{}}}function h(e,t,o){return{...c(e,t),threshold_milliseconds:o,threshold_seconds:o/1e3}}function _(){r.forEach(e=>window.clearTimeout(e)),r=[]}function f(){if(!i)return;let e=l(),t=d(e);if(!t)return;let o=e-t.startedAt;t.durationObserved||(i("donation_post_exposure_duration_observed",c(t,o),{transport:"sendBeacon"}),t.durationObserved=!0),a.filter(e=>o<e&&!t.durationThresholdsReached.includes(e)&&!t.durationThresholdsNotReached.includes(e)).forEach(e=>{t.durationThresholdsNotReached.push(e),i?.("donation_post_exposure_duration_threshold_not_reached",h(t,o,e),{transport:"sendBeacon"})}),t.lastActivityAt=e,p(t),_()}function m(e){let{capture:t,context:o,now:n=()=>Date.now()}=e,u=n(),c=d(u)??{...o,startedAt:u,lastActivityAt:u,durationObserved:!1,durationThresholdsReached:[],durationThresholdsNotReached:[]};c.lastActivityAt=u,p(c),i=t,l=n,s||(s=f,window.addEventListener("pagehide",s)),function(e,t){_();let o=d(t());if(!o)return;let n=t()-o.startedAt;r=a.filter(e=>!o.durationThresholdsReached.includes(e)).map(o=>{let a=Math.max(o-n,0);return window.setTimeout(()=>{let n=t(),a=d(n);if(!a||a.durationThresholdsReached.includes(o))return;let r=n-a.startedAt;a.durationThresholdsReached.push(o),a.lastActivityAt=n,p(a),e("donation_post_exposure_duration_threshold_reached",h(a,r,o))},a)})}(t,n)}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>Date.now(),t=e(),o=d(t);o&&(o.lastActivityAt=t,p(o))}},2667:e=>{e.exports={button:"styles_button__jZlBZ",closeButton:"styles_closeButton__O0mNE",buttonArrow:"styles_buttonArrow__ZUoDk",downloadPrompt:"styles_downloadPrompt__KToIT",promptCopy:"styles_promptCopy__k113P",popupScrim:"styles_popupScrim__VysFV",homepagePopup:"styles_homepagePopup__GcMEw",popupImage:"styles_popupImage__TFHqN",popupImageAsset:"styles_popupImageAsset__re3Ks",popupContent:"styles_popupContent__AysiQ",inlineAsk:"styles_inlineAsk__MUfAe",popupAction:"styles_popupAction__D16Ja",popupClose:"styles_popupClose__n763A"}}}]);

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.