PageSourceSearch

https://frontierclimate.com/_next/static/chunks/pages/donate/flights-d1213e83b93d93c6.js

js frontierclimate.com collected 2026-10-01 09:17:40 UTC 16,833 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9010],{37489:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/donate/flights",function(){return n(66026)}])},1463:function(e,t){"use strict";t.Z={src:"/_next/static/media/rocks.68d7ba62.jpg",height:1506,width:2008,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAGAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAL/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABgS//xAAXEAADAQAAAAAAAAAAAAAAAAAAAQQR/9oACAEBAAEFAqcR/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAIx/9oACAEDAQE/AWp//8QAFhEAAwAAAAAAAAAAAAAAAAAAAAIx/9oACAECAQE/AVh//8QAFxAAAwEAAAAAAAAAAAAAAAAAAAISIv/aAAgBAQAGPwJK0f/EABkQAQACAwAAAAAAAAAAAAAAAAEAESFBYf/aAAgBAQABPyEJks23rhP/2gAMAwEAAgADAAAAEPP/xAAVEQEBAAAAAAAAAAAAAAAAAAAAMf/aAAgBAwEBPxCr/8QAFREBAQAAAAAAAAAAAAAAAAAAADH/2gAIAQIBAT8Qi//EABkQAQACAwAAAAAAAAAAAAAAAAEAESFBUf/aAAgBAQABPxAi0CAFaoydn//Z",blurWidth:8,blurHeight:6}},25743:function(e,t){"use strict";t.Z={src:"/_next/static/media/social-contribute-flights.47e431be.png",height:945,width:1800,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAMFBMVEX6+fX////s6uj08u/r4dfY1tbApYlYW1XS0NHQw7ff0sSDZE6HgnKCgXnFq6GulncZPRCgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJ0lEQVR4nAXBhwEAIAzDMKeDsvn/WyQANF8RPVN3bcxwjXbAQdHqAwreAJcMd49aAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},66026:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var r=n(85893),l=n(67294),s=n(25743),a=n(11163),i=n(89738);let o=[{value:"economy",label:"Economy",description:"100 kg"},{value:"business",label:"Business",description:"300 kg"},{value:"private",label:"Private",description:"3-23 tons"}];o.map(e=>e.value);let c=[{value:"dont_know",label:"I don't know"},{value:"vlj",label:"VLJ",description:"2.9 tons"},{value:"turboprop",label:"Turboprop aircraft",description:"2.9 tons"},{value:"light",label:"Light",description:"5.3 tons"},{value:"super_light",label:"Super light",description:"6.2 tons"},{value:"midsize",label:"Midsize",description:"7.3 tons"},{value:"super_midsize",label:"Super midsize",description:"8.8 tons"},{value:"large",label:"Large",description:"11.7 tons"},{value:"ultra_long_range",label:"Ultra long range",description:"14.3 tons"},{value:"vip_airliner",label:"VIP airliner",description:"22.5 tons"}];c.map(e=>e.value);let d=e=>{let t=o.find(t=>t.value===e.planeType)?.label;return[(()=>{let n=c.find(t=>t.value===e.privatePlaneCategory);return"private"===e.planeType?["","dont_know"].includes(e.privatePlaneCategory)?t:(0,r.jsxs)(r.Fragment,{children:[t,"\xa0(",n.label,")"]}):t})(),1===Number(e.hoursFlown)?"1 hour":`${e.hoursFlown} hours`].filter(Boolean).reduce((e,t)=>[e,", ",t])};var A=n(76299);let u={dont_know:5,vlj:2.9,turboprop:2.9,light:5.3,super_light:6.2,midsize:7.3,super_midsize:8.8,large:11.7,ultra_long_range:14.3,vip_airliner:22.5},p=(e,t)=>({economy:.1,business:.3,private:u[t]})[e],m=e=>{let{hoursFlown:t,planeType:n,privatePlaneCategory:r}=e;return t&&n?t*p(n,r):0},h=e=>{let{formData:t,setFormData:n}=e,s=l.useId(),a=e=>t=>{let{value:r}=t;n(t=>{let n={...t,[e]:r};return"planeType"===e&&"private"===r&&(n.privatePlaneCategory="dont_know"),n})};return(0,r.jsxs)("div",{className:"column gap-3",children:[(0,r.jsx)(i.p7,{label:(0,r.jsx)("label",{id:`plane_type-${s}`,children:"Flight category"}),element:(0,r.jsx)(A.Lt,{menuWidth:"328px",value:o.find(e=>e.value===t.planeType),options:o,onChange:a("planeType"),menuListHeaderLabel:"Flight category",menuListHeaderDescription:"CO₂e per hour","aria-labelledby":`plane_type-${s}`})}),"private"===t.planeType&&(0,r.jsx)(i.p7,{label:(0,r.jsx)("label",{id:`private_plane_category-${s}`,children:"Plane type"}),element:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Lt,{menuWidth:"328px",value:c.find(e=>e.value===t.privatePlaneCategory),options:c,onChange:a("privatePlaneCategory"),menuListHeaderLabel:"Plane type",menuListHeaderDescription:"CO₂e per hour","aria-labelledby":`private_plane_category-${s}`}),["","dont_know"].includes(t.privatePlaneCategory)?(0,r.jsxs)("div",{className:"mt-2 kicker text-secondary",children:["We calculate using average emissions of"," ",(0,r.jsxs)("b",{children:[u.dont_know," tons/hr"]})]}):null]})}),(0,r.jsx)(i.p7,{label:(0,r.jsx)("label",{id:`hours_flown-${s}`,children:"Hours"}),element:(0,r.jsx)("div",{className:"flex gap-3 items-center *:flex-[1_1_auto]",children:(0,r.jsx)("input",{className:"box-border py-[9px] px-3 font-medium text-base/6 border border-beige rounded",placeholder:"0",type:"number",min:"0",max:"9999",value:t.hoursFlown,onChange:e=>a("hoursFlown")({value:e.target.value.substring(0,4)}),"aria-labelledby":`hours_flown-${s}`,inputMode:"numeric",pattern:"[0-9]*"})})})]})},x=e=>{let{planeType:t,privatePlaneCategory:n,hoursFlown:r}=e;return""===t||""===r||"private"===t&&""===n},g=e=>{let{formData:t}=e,n=l.useId(),s=x(t);return(0,r.jsx)(i.p7,{label:(0,r.jsx)("label",{id:`plane_type-${n}`,children:"Flight category"}),element:(0,r.jsxs)(r.Fragment,{children:[d(t),s?(0,r.jsx)("div",{className:"text-xs text-critical-500",children:(0,r.jsx)("span",{children:"Please complete flight inputs"})}):null]})})};
1var f=n(5405),b=n(12515);function v(e,t){let[n,r]=l.useState(!1),[s,a]=l.useState(e);return l.useEffect(()=>{let e=window.sessionStorage.getItem(t);null!==e&&a(JSON.parse(e)),r(!0)},[t]),l.useEffect(()=>{n&&window.sessionStorage.setItem(t,JSON.stringify(s))},[n,t,s]),[s,a]}let j=e=>{let{onTonsUpdated:t,collapsed:n,removable:s,onRemoveClicked:a,onExpandClicked:o,storageKey:c}=e,[d,A]=v({planeType:"",privatePlaneCategory:"",hoursFlown:""},`line-item-${c}`),u=m(d);return(l.useEffect(()=>{t(u)},[u,t]),n)?(0,r.jsx)("div",{className:"pt-4 border-t border-beige border-dashed first-of-type:pt-0 first-of-type:border-none",children:(0,r.jsx)(i.Vz,{row:(0,r.jsx)(g,{formData:d}),actions:(0,r.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full hover:bg-sienna-100",children:(0,r.jsx)(f.Z,{color:"sienna",onClick:o,children:(0,r.jsx)(b.IYd,{size:"16px"})})})})}):(0,r.jsx)("div",{className:"pt-4 border-t border-beige border-dashed first-of-type:pt-0 first-of-type:border-none",children:(0,r.jsx)(i.Vz,{row:(0,r.jsx)(h,{formData:d,setFormData:A}),actions:s?(0,r.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-full hover:bg-sienna-100",children:(0,r.jsx)(f.Z,{color:"sienna",onClick:()=>{a(),window.sessionStorage.removeItem(`line-item-${c}`)},children:(0,r.jsx)(b.q5L,{size:"16px"})})}):null})})};var w=n(27072),_=n(89587);let y=e=>{let{onClose:t}=e,n=(0,_.H0)("https://www.icao.int/environmental-protection/Carbonoffset/Pages/default.aspx"),l=(0,_.H0)("https://compareprivateplanes.com/emissions-calculator-logged-out"),s=(0,_.H0)("https://www.eia.gov/environment/emissions/co2_vol_mass.php"),a=(0,_.H0)("https://www.sciencedirect.com/science/article/pii/S1352231020305689");return(0,r.jsx)(w.u_,{onClose:t,children:(0,r.jsxs)("p",{children:["Emissions calculations are based on jet fuel consumption by aircraft type (from ",(0,r.jsx)(n,{children:"here"})," and ",(0,r.jsx)(l,{children:"here"}),"), the CO₂ ",(0,r.jsx)(s,{children:"content"})," of jet fuel, and an estimate of non-CO₂ ",(0,r.jsx)(a,{children:"climate impacts"})," such as contrails."]})})};var E=n(31284);let N=e=>{let t=E.N.formatNumber(e??0);return null!==e?t:t.replace("0","--")},C=e=>{let{onSubmit:t,onSkip:n,style:s={}}=e,[a,o]=v([{keyId:0,tons:null,collapsed:!1}],"estimate-form"),[c,d]=l.useState(0),A=()=>{let e=a.reduce((e,t)=>Math.max(e,t.keyId),c);return d(e+1),e+1},u=(e,t)=>{a[e].tons!==t&&o(n=>{let r=[...n];return r[e].tons=t,r})},p=e=>{o(t=>{let n=[...t];return n.splice(e,1),n[n.length-1].collapsed=!1,n})},m=e=>{o(t=>{let n=[...t];return n.forEach(e=>{e.collapsed=!0}),n[e].collapsed=!1,n})},h=a.map(e=>e.tons).filter(Boolean),x=h.length>0?h.reduce((e,t)=>e+t,0):null;return(0,r.jsxs)(i.l0,{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),t(null!==x?Math.round(x):null)},style:s,footnoteContent:(0,r.jsxs)("span",{children:[(0,r.jsx)(e=>{let{children:t}=e;return(0,r.jsx)(w.q7,{modal:e=>(0,r.jsx)(y,{...e}),trigger:e=>{let{open:n}=e;return(0,r.jsx)(f.Z,{color:"sienna",onClick:()=>n(),children:t})}})},{children:"Learn more"})," about our methodology."]}),children:[(0,r.jsx)(i.ph,{children:(0,r.jsx)("h5",{children:"Estimate flight emissions"})}),(0,r.jsxs)(i.fb,{children:[(0,r.jsx)("div",{className:"column gap-5",children:a.map((e,t)=>(0,r.jsx)(j,{storageKey:`${e.keyId}`,onTonsUpdated:e=>u(t,e),collapsed:e.collapsed,removable:a.length>1,onExpandClicked:()=>m(t),onRemoveClicked:()=>p(t)},e.keyId))}),(0,r.jsx)(i.Vz,{row:(0,r.jsx)(i.p7,{element:(0,r.jsxs)(f.Z,{color:"sienna",onClick:()=>{o(e=>{let t=[...e];return t.forEach(e=>{e.collapsed=!0}),t.push({keyId:A(),tons:null,collapsed:!1}),t})},children:[(0,r.jsx)(b.OvN,{size:"16px"}),"Add another flight category"]})}),actions:a.length>1?(0,r.jsx)("div",{className:"w-8"}):null})]}),(0,r.jsxs)(i.ZL,{stacked:!0,children:[(0,r.jsxs)("div",{className:"column gap- items-baseline pb-2 md:flex-row md:justify-between",children:[(0,r.jsx)("div",{className:"font-semibold text-sm",children:"Recommended contribution"}),(0,r.jsx)("div",{className:"font-medium text-base/6",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"font-semibold text-[24px]/[32px]",children:N(x)})," ",1===x?"ton":"tons"]})})]}),(0,r.jsxs)(f.z,{type:"submit",color:"black",size:"large",disabled:null===x||h.length!==a.length,fullWidth:!0,children:["Continue",(0,r.jsx)(b.Rgz,{size:"16px"})]}),(0,r.jsx)(f.Z,{color:"sienna",onClick:n,fullWidth:!0,children:"Enter amount manually"})]})]})};var k=n(13481),z=n(57625);function Q(){let e=(0,a.useRouter)();return(0,r.jsx)(z.G,{href:"/donate/flights",title:"Contribute to Frontier",description:"Fund carbon removal through Frontier",socialImage:s.Z.src,textContent:(0,r.jsx)(k.y,{}),formContent:(0,r.jsx)(C,{onSubmit:t=>{e.push(null===t?"/donate":`/donate?tons=${t}`)},onSkip:()=>{e.push("/donate")}})})}},13481:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(85893);n(67294);var l=n(41664),s=n.n(l);let a=()=>(0,r.jsxs)("div",{className:"md:self-start",children:[(0,r.jsx)("h1",{className:"pb-10",children:"Mitigate the climate impact of flying"}),(0,r.jsx)("p",{className:"text-pretty pb-4",children:"Flying is one of the largest sources of personal emissions and one of the hardest sectors to decarbonize. If you can’t avoid flying, consider buying permanent carbon removal as a way to reduce your climate impact."}),(0,r.jsx)("p",{className:"text-pretty pb-4",children:"Our calculator recommends a contribution amount based on flight emissions. Funds are used to buy carbon removal from promising new technologies in order to help them scale up and reduce their costs."}),(0,r.jsxs)("p",{className:"text-pretty pb-4",children:["Permanent carbon removal is critical to counteract climate change, but it’s behind."," ",(0,r.jsx)(s(),{href:"/",target:"_blank",children:"Learn more"})," ","about Frontier’s approach to buying carbon removal and"," ",(0,r.jsx)(s(),{href:"/portfolio",target:"_blank",children:"our growing portfolio"})," ","of companies."]})]})},57625:function(e,t,n){"use strict";n.d(t,{G:function(){return A}});var r=n(85893);n(67294);var l=n(93967),s=n.n(l),a=n(25675),i=n.n(a),o=n(80951),c=n(26864),d=n(1463);let A=e=>{let{href:t,title:n,description:l,socialImage:a,includeFormMarginTop:A=!1,textContent:u,formContent:p}=e;return(0,r.jsx)(o.T,{href:t,title:n,description:l,socialImage:a,children:(0,r.jsxs)("div",{className:s()("md:flex md:flex-col-reverse","[&_form]:mt-[10px]",{"[&_form]:md:mt-[162px]":A}),children:[(0,r.jsxs)(c.$,{name:"form-page-content",background:"cream",className:"[&_.section-content]:md:flex [&_.section-content]:md:items-start [&_.section-content]:gap-10 [&_.section-content>*]:md:flex-1 [&_.section-content>div:first-child]:md:pr-[64px]",children:[u,p]}),(0,r.jsx)("div",{className:"-mt-[175px] relative md:m-0",children:(0,r.jsx)(i(),{src:d.Z.src,width:616,height:650,className:"block w-full h-[300px] object-cover object-[top_left] md:absolute md:top-[64px] md:left-[62.5%] md:w-[37.5%] md:h-[650px] md:rounded-l min-[1060px]:left-[calc(50%+240px/2+40px/2)] min-[1060px]:w-[calc(50%-(240px/2+40px/2))]",alt:""})})]})})}},76299:function(e,t,n){"use strict";n.d(t,{Lt:function(){return u}});var r=n(85893),l=n(40645),s=n.n(l);n(67294);var a=n(79648),i=n(93862),o=n(12515);let c=e=>{let{children:t,selectProps:n}=e,{menuListHeaderLabel:l,menuListHeaderDescription:s}=n;return(0,r.jsx)(a.c.MenuList,{...e,children:(0,r.jsxs)("div",{children:[l||s?(0,r.jsxs)("div",{className:"row-between p-3 text-black font-bold text-[12px]/[18px]",children:[l?(0,r.jsx)("div",{children:l}):null,s?(0,r.jsx)("div",{children:s}):null]}):null,t]}
1)})},d=e=>(0,r.jsx)(a.c.DropdownIndicator,{...e,children:(0,r.jsx)(o.bTu,{size:"16px"})}),A=e=>{let{innerProps:t,innerRef:n,data:l}=e;return(0,r.jsx)(a.c.Option,{...e,children:(0,r.jsxs)("article",{ref:n,...t,className:"flex items-center justify-between pt-3 pr-3 pl-3 text-black font-medium text-[14px]/[24px] first-of-type:pt-0",children:[(0,r.jsx)("span",{children:l.label}),l.description?(0,r.jsx)("div",{className:"text-slate text-[14px]/[24px]",children:l.description}):null]})})};function u(e){let{options:t,onChange:n,Option:l=A,menuWidth:a,...o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.ZP,{className:"react-select-container",classNamePrefix:"react-select",isSearchable:!1,options:t,onChange:n,components:{MenuList:c,Option:l,DropdownIndicator:d,IndicatorSeparator:()=>null},...o}),(0,r.jsx)(s(),{id:"677d8a35c18e9248",dynamic:[a||"100%"],children:`.react-select-container .react-select__option{padding-right:0;padding-left:0;color:var(--color-black)}.react-select-container .react-select__option:active{background-color:var(--color-neutral-light)}.react-select-container .react-select__option--is-focused{background-color:var(--color-neutral-light)}.react-select-container .react-select__option--is-selected{background-color:var(--color-neutral-light)}.react-select-container .react-select__menu-list{padding:0}.react-select-container .react-select__control{height:44px;border-color:var(--color-beige)}.react-select-container .react-select__control--is-focused{border-color:transparent;outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.react-select-container .react-select__dropdown-indicator{color:var(--color-black)}.react-select-container .react-select__menu{width:${a||"100%"}}@media only screen and (min-width:768px){.react-select-container .react-select__menu{right:0}}`})]})}},89738:function(e,t,n){"use strict";n.d(t,{Vz:function(){return c},ZL:function(){return A},fb:function(){return o},l0:function(){return a},p7:function(){return d},ph:function(){return i}});var r=n(85893);n(67294);var l=n(93967),s=n.n(l);let a=e=>{let{onSubmit:t=()=>{},children:n,style:l={},footnoteContent:s}=e;return(0,r.jsxs)("form",{style:l,className:"relative z-[1] column box-border bg-white rounded-lg shadow-[0_-12px_35px_rgba(60_66_87_/_10%),_0_5px_15px_rgba(0_0_0_/_12%)]",onSubmit:t,children:[(0,r.jsx)("div",{className:"p-8",children:n}),s?(0,r.jsx)("div",{className:"py-3 px-8 text-slate text-sm bg-cream rounded-b-lg",children:s}):null]})},i=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"column gap-6 mb-6",children:t})},o=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"column gap-4",children:t})},c=e=>{let{row:t,actions:n}=e;return(0,r.jsxs)("div",{className:"flex gap-3 items-baseline",children:[(0,r.jsx)("div",{className:"flex-[auto]",children:t}),n?(0,r.jsx)("div",{className:"flex-[initial]",children:n}):null]})},d=e=>{let{label:t,element:n}=e;return(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 items-baseline",children:[(0,r.jsx)("div",{className:"flex-initial w-[145px] font-semibold text-sm",children:t}),(0,r.jsx)("div",{className:"flex-[1_0_auto] w-[175px] font-medium text-sm",children:n})]})},A=e=>{let{children:t,hasBorder:n=!0,stacked:l=!1}=e;return(0,r.jsx)("div",{className:s()("flex gap-6 justify-between pt-8",{"mt-10 border-t border-dashed border-beige":n,"flex-row-reverse":!l,"flex-col":l}),children:t})}},89587:function(e,t,n){"use strict";n.d(t,{H0:function(){return a}});var r=n(85893);n(67294);var l=n(41664),s=n.n(l);let a=function(e){let{forceTargetBlank:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{children:l}=n,a=e.startsWith("/")&&!t?{}:{target:"_blank",rel:"noreferrer"};return(0,r.jsx)(s(),{href:e,...a,children:l})}}}},function(e){e.O(0,[6130,2222,3061,608,267,951,2888,9774,179],function(){return e(e.s=37489)}),_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.