PageSourceSearch

https://web.plant-for-the-planet.org/_next/static/chunks/598-aa4ccc46b33c3894.js

js plant-for-the-planet.org collected 2026-09-24 08:30:30 UTC 20,663 bytes, 2 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]="ae23b323-6e99-4666-88bf-44a8cafdb4af",e._sentryDebugIdIdentifier="sentry-dbid-ae23b323-6e99-4666-88bf-44a8cafdb4af")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[598],{9905:(e,t,o)=>{"use strict";function r(e,t){return e?e.length<=t?e:"".concat(e.slice(0,t),"..."):""}o.d(t,{W:()=>r})},31144:e=>{e.exports={singleProject:"ProjectSnippet_singleProject__tcZGr",projectDetailsSnippetMobile:"ProjectSnippet_projectDetailsSnippetMobile__bS1dL",projectImage:"ProjectSnippet_projectImage__0ZDkt",projectImageBlock:"ProjectSnippet_projectImageBlock__v0Hfx",projectImageSecondary:"ProjectSnippet_projectImageSecondary__MCCfv",gradientOverlay:"ProjectSnippet_gradientOverlay__CTaua",projectImageFile:"ProjectSnippet_projectImageFile__MGety",hidden:"ProjectSnippet_hidden__Tgs3l",projectType:"ProjectSnippet_projectType__yBZ59",projectEcosystem:"ProjectSnippet_projectEcosystem__0es5l",projectName:"ProjectSnippet_projectName__zUzDy",verifiedIcon:"ProjectSnippet_verifiedIcon__oq4aW",progressBar:"ProjectSnippet_progressBar___8m9v",progressBarHighlight:"ProjectSnippet_progressBarHighlight__b_nnU",projectInfo:"ProjectSnippet_projectInfo__aEk70",projectInfoSubContainer:"ProjectSnippet_projectInfoSubContainer__fgT3d",targetLocation:"ProjectSnippet_targetLocation__OjO0c",target:"ProjectSnippet_target__lwJVc",projectTpoName:"ProjectSnippet_projectTpoName__CSE9b",noDonation:"ProjectSnippet_noDonation__1NvKL",tpoBackground:"ProjectSnippet_tpoBackground__ZF09t",projectTpoNameSecondary:"ProjectSnippet_projectTpoNameSecondary__cY45J",projectCost:"ProjectSnippet_projectCost__VLDKs",perUnitCost:"ProjectSnippet_perUnitCost___IXVN",topProjectReportsContainer:"ProjectSnippet_topProjectReportsContainer__CMzcF",projectTypeIcon:"ProjectSnippet_projectTypeIcon__Y0exI",topProject:"ProjectSnippet_topProject__DKuAh",regularProject:"ProjectSnippet_regularProject__xJO1M",nonDonatableProject:"ProjectSnippet_nonDonatableProject__SJAKf",projectEcosystemOrTypeContainer:"ProjectSnippet_projectEcosystemOrTypeContainer__FkIc3",country:"ProjectSnippet_country__KgY26",backButton:"ProjectSnippet_backButton__MpRj7",reports_container:"ProjectSnippet_reports_container__5PUbM",reports_description:"ProjectSnippet_reports_description__yT3DU",projectNameTooltip:"ProjectSnippet_projectNameTooltip__3EtB7"}},37032:e=>{e.exports={projectBadge:"Badge_projectBadge__cvUTv",nonInteractive:"Badge_nonInteractive__VQaPX",badgeIcon:"Badge_badgeIcon__o7pdw",badgeTitle:"Badge_badgeTitle__ZIott",tooltipContent:"Badge_tooltipContent__dA3yr"}},56488:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(37876),n=o(7642);let i=function(){let{white:e,coreText:t}=n.A.designSystem.colors;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{backgroundColor:e,borderRadius:30,marginTop:10,marginLeft:10},width:"30",height:"30",enableBackground:"new 0 0 219.151 219.151",version:"1.1",viewBox:"0 0 219.151 219.151",xmlSpace:"preserve",children:(0,r.jsx)("path",{fill:t,d:"M94.861 156.507a7.502 7.502 0 0010.606 0 7.499 7.499 0 00-.001-10.608l-28.82-28.819 83.457-.008a7.5 7.5 0 00-.001-15l-83.46.008 28.827-28.825a7.5 7.5 0 00-10.607-10.608l-41.629 41.628a7.495 7.495 0 00-2.197 5.303 7.51 7.51 0 002.198 5.305l41.627 41.624z"})})}},60598:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>$});var r=o(37876),n=o(14232),i=o(48230),a=o.n(i),s=o(89099),c=o(96851),p=o(1500),l=o(50461),d=o(60867),j=o(20183),u=o(31144),m=o.n(u),g=o(72627),_=o(30171);let C=e=>{let{slug:t,isApproved:o,isTopProject:i,unitCount:a,purpose:s,unitType:u,unitCost:C,allowDonations:h,country:v,currency:f,utmCampaign:x,disableDonations:y}=e,b=(0,c.c)("Common"),P=(0,c.c)("Country"),w=(0,c.c)("AllProjects"),S=(0,p.Ym)(),N=(0,_.Ro)(e=>e.tenantConfig.id),T=(0,_.iH)(e=>e.embed),k=(0,_.iH)(e=>e.callbackUrl),I=(0,_.nc)(e=>e.token),D=(0,l.Q)(N,t,I,T||void 0,k||void 0,void 0,x||void 0),B=(0,n.useMemo)(()=>
1{if(void 0===a)return;let e=a<1e6?(0,g.mC)(S,Math.floor(a),0):(0,g.mC)(S,a,1);return"tree"===u&&"trees"===s?w("treeDonated",{count:a,formattedCount:e}):"m2"===u&&"trees"===s?w("areaRestored",{area:a,formattedCount:e}):w("areaConserved",{area:a,formattedCount:e})},[a,u,s,S]),L=i&&o?"".concat(m().topProject):void 0;return(0,r.jsxs)("div",{className:m().projectInfo,children:[(0,r.jsxs)("div",{className:m().projectInfoSubContainer,children:[(0,r.jsx)("div",{className:m().targetLocation,children:(0,r.jsxs)("div",{className:m().target,children:[void 0!==a&&a>0&&(0,r.jsxs)(r.Fragment,{children:[B," • "]}),(0,r.jsx)("span",{className:m().country,children:P(v.toLowerCase())})]})}),h&&(0,r.jsx)("div",{className:m().perUnitCost,children:w("ratePerUnit",{amount:(0,d.A)(S,f,C),unit:u})})]}),h&&!y&&(0,r.jsx)(j.A,{variant:"primary",text:b("donate"),elementType:"link",href:D,target:T?"_top":"_blank",buttonClasses:L,prefetch:!0})]})};var h=o(39712);let v=e=>{let{width:t}=e;return(0,r.jsxs)("svg",{width:t,viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M1.25289 5.08579C1.28785 5.10992 1.32551 5.13137 1.36585 5.14745C1.42771 5.17426 1.49227 5.19035 1.55682 5.19571C1.57833 5.19571 1.60254 5.19571 1.62406 5.19571H8.37769C8.74616 5.19571 9.04202 4.89812 9.04471 4.53083V0.664879C9.04471 0.297587 8.74616 0.00268097 8.37769 0H1.62406C1.60254 0 1.57833 0 1.55682 0C1.49227 0.00536193 1.42771 0.0241287 1.36585 0.0482574C1.32551 0.0643432 1.28785 0.0857909 1.25289 0.10992C1.1991 0.144772 1.15068 0.190349 1.11034 0.238606C1.01082 0.356568 0.957031 0.506702 0.957031 0.659517V4.53351C0.957031 4.68633 1.01082 4.83646 1.11034 4.95442C1.15068 5.00268 1.1991 5.04826 1.25289 5.08311V5.08579ZM1.62406 0.664879H8.37769V4.53351H1.62406V0.66756V0.664879Z"}),(0,r.jsx)("path",{d:"M9.80166 7.28667L9.42782 6.84667L8.81999 6H1.18447L0.132875 7.36333H0.138254C-0.122628 7.72 -0.00697952 8 0.423342 8H9.57843C10.0356 7.99667 10.1378 7.67667 9.80166 7.28667Z"})]})},f=e=>{let{width:t}=e;return(0,r.jsxs)("svg",{width:t,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_244_162)",children:(0,r.jsx)("path",{d:"M9.55846 5.83584C9.75407 5.61948 10.0001 5.35273 10.0001 5.00003C10.0001 4.64734 9.75703 4.38059 9.55846 4.16423C9.46065 4.07235 9.37766 3.96269 9.31542 3.84414C9.30653 3.70187 9.32431 3.55961 9.36284 3.42327C9.42805 3.12985 9.49918 2.79494 9.32728 2.49855C9.15241 2.1992 8.82639 2.09547 8.53593 2.00359C8.39959 1.97099 8.27215 1.91764 8.15656 1.84058C8.0795 1.72499 8.02615 1.59458 7.99355 1.46121C7.90167 1.17372 7.79793 0.844729 7.49859 0.669862C7.2022 0.497959 6.87025 0.572056 6.57387 0.634296C6.43753 0.67579 6.29527 0.690609 6.153 0.681718C6.03445 0.619477 5.92479 0.536489 5.83291 0.438683C5.61655 0.243069 5.3498 -0.00292969 4.9971 -0.00292969C4.64441 -0.00292969 4.37766 0.240105 4.1613 0.438683C4.06942 0.536489 3.95976 0.619477 3.84121 0.681718C3.69894 0.690609 3.55668 0.672826 3.42034 0.634296C3.12692 0.569092 2.79201 0.497959 2.49562 0.669862C2.19627 0.844729 2.09254 1.17075 2.00066 1.46121C1.96806 1.59754 1.91471 1.72499 1.83765 1.84058C1.72206 1.91764 1.59165 1.97099 1.45828 2.00359C1.17079 2.09547 0.841799 2.1992 0.666933 2.49855C0.49503 2.79494 0.569126 3.12689 0.631366 3.42327C0.67286 3.55961 0.687679 3.70187 0.678788 3.84414C0.616547 3.96269 0.53356 4.07235 0.435753 4.16423C0.240139 4.38059 -0.00585938 4.64734 -0.00585938 5.00003C-0.00585938 5.35273 0.237176 5.61948 0.435753 5.83584C0.53356 5.92772 0.616547 6.03738 0.678788 6.15593C0.687679 6.2982 0.669896 6.44046 0.631366 6.5768C0.566162 6.87022 0.49503 7.20513 0.666933 7.50152C0.841799 7.80086 1.16782 7.9046 1.45828 7.99648C1.59461 8.02908 1.72206 8.08243 1.83765 8.15949C1.91471 8.27508 1.96806 8.40549 2.00066 8.53886C2.09254 8.82635 2.19627 9.15534 2.49562 9.3302C2.79201 9.50211 3.12396 9.42801 3.42034 9.36577C3.55668 9.32428 3.69894 9.30946 3.84121 9.31835C3.95976 9.38059 4.06942 9.46358 4.1613 9.56138C4.37766 9.757 4.64441 10.003 4.9971 10.003C5.3498 10.003 5.61655 9.75996 5.83291 9.56138C5.92479 9.46358 6.03445 9.38059 6.153 9.31835C6.29527 9.30946 6.43753 9.32724 6.57387 9.36577C6.86729 9.43
1098 7.2022 9.50211 7.49859 9.3302C7.79793 9.15534 7.90167 8.82932 7.99355 8.53886C8.02615 8.40252 8.0795 8.27508 8.15656 8.15949C8.27215 8.08243 8.40256 8.02908 8.53593 7.99648C8.82342 7.9046 9.15241 7.80086 9.32728 7.50152C9.49918 7.20513 9.42508 6.87318 9.36284 6.5768C9.32135 6.44046 9.30653 6.2982 9.31542 6.15593C9.37766 6.03738 9.46065 5.92772 9.55846 5.83584ZM7.12811 4.06642L4.60588 6.58865C4.51993 6.6746 4.40137 6.72499 4.27985 6.72499C4.15834 6.72499 4.03978 6.67757 3.95383 6.58865L2.86907 5.50389C2.78312 5.41794 2.73273 5.29938 2.73273 5.17786C2.73273 5.05635 2.78015 4.93779 2.86907 4.85184C2.95798 4.76589 3.07357 4.71551 3.19509 4.71551C3.31661 4.71551 3.43516 4.76293 3.52111 4.85184L4.27985 5.61059L6.47606 3.41438C6.56201 3.32843 6.68057 3.27804 6.80208 3.27804C6.9236 3.27804 7.04215 3.32546 7.12811 3.41438C7.21406 3.50329 7.26444 3.61888 7.26444 3.7404C7.26444 3.86192 7.21406 3.98047 7.12811 4.06642Z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_244_162",children:(0,r.jsx)("rect",{width:"10",height:"10"})})})]})},x=e=>{let{width:t}=e;return(0,r.jsx)("svg",{width:t,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M4.12532 3.44832L5.21774 1.07156C5.27826 0.942321 5.38115 0.844603 5.50825 0.791016C5.63534 0.737428 5.77757 0.737428 5.90467 0.784711C6.03176 0.835146 6.13768 0.932865 6.20123 1.05895L7.35115 3.4105C7.43285 3.57756 7.58718 3.69104 7.76572 3.71941L10.2744 4.06931C10.4105 4.08822 10.5346 4.16072 10.6224 4.27105C10.7101 4.38138 10.7555 4.52007 10.7495 4.66507C10.7434 4.80692 10.6859 4.94247 10.5891 5.04334L8.80368 6.90314C8.67658 7.03553 8.61908 7.22781 8.64935 7.41379L9.10629 10.0081C9.1305 10.1499 9.10326 10.2949 9.03064 10.4147C8.95801 10.5376 8.84302 10.6259 8.70987 10.6637C8.57672 10.7015 8.43449 10.6858 8.31345 10.6227L6.06203 9.4249C5.90164 9.33979 5.70797 9.33979 5.55061 9.4312L3.3234 10.6795C3.20235 10.7488 3.06013 10.7677 2.92698 10.7331C2.79383 10.6984 2.67581 10.6133 2.60016 10.4935C2.52451 10.3737 2.49425 10.2287 2.51543 10.0869L2.91487 7.48314C2.94211 7.29716 2.88159 7.10803 2.75146 6.97879L0.92067 5.15997C0.823834 5.0591 0.763312 4.92355 0.751208 4.7817C0.74213 4.63986 0.784495 4.49801 0.869226 4.38453C0.953957 4.27105 1.07803 4.19855 1.2142 4.17648L3.71679 3.76985C3.89533 3.74148 4.04966 3.61854 4.12532 3.44832Z"})})};var y=o(30420),b=o(37032),P=o.n(b),w=o(13028),S=o(69241);let N=e=>{let{icon:t,title:o,isInteractive:n}=e;return(0,r.jsxs)("div",{className:(0,S.$)(P().projectBadge,{[P().nonInteractive]:!n}),onClick:e=>e.preventDefault(),children:[(0,r.jsx)("div",{className:P().badgeIcon,children:t}),(0,r.jsx)("div",{className:P().badgeTitle,children:o})]})},T=e=>{let{isApproved:t,isTopProject:o,allowDonations:i,showTooltipPopups:a}=e,s=(0,c.c)("Common"),p=(0,c.c)("ProjectDetails"),l=(0,_.y3)(e=>e.page),d=(0,_.Ro)(e=>e.tenantConfig.config.slug),j=(0,n.useMemo)(()=>{let{notDonatable:e,topProject:n,fieldReviewed:a,offSiteReviewed:c}={notDonatable:{icon:(0,r.jsx)(y.A,{width:10}),title:s("notDonatable"),displayPopup:!0,badgeType:"notDonatable"},topProject:{icon:(0,r.jsx)(x,{width:11}),title:s("topProject"),displayPopup:!0,badgeType:"topProject"},fieldReviewed:{icon:(0,r.jsx)(f,{width:10}),title:p("fieldReviewed"),displayPopup:!1,badgeType:"fieldReviewed"},offSiteReviewed:{icon:(0,r.jsx)(v,{width:10}),title:p("offSiteReviewed"),displayPopup:!1,badgeType:"offSiteReviewed"}};return i?o&&t?n:!o&&t?a:o||t?void 0:c:e},[t,o,i,s,p]);if(!j)return null;let{icon:u,title:m,displayPopup:g,badgeType:C}=j,h=(0,r.jsx)(N,{icon:u,title:m,isInteractive:"project-details"!==l});return g?(0,r.jsx)(w.A,{triggerElement:h,showTooltipPopups:a&&g&&"project-details"!==l,children:(e=>"notDonatable"===e?(0,r.jsx)("div",{className:P().tooltipContent,children:"salesforce"===d?"".concat(s("salesforceDisabledDonateButtonText")):"".concat(s("disabledDonateButtonText"))}):"topProject"===e?(0,r.jsx)("div",{className:P().tooltipContent,children:s.rich("top_project_standards_fulfilled",{standardsLink:e=>(0,r.jsx)("a",{target:"_blank",href:s("standardsLink"),rel:"noreferrer",className:"planet-links",onClick:e=>e.stopPropagation(),children:e})})}):null)(C)}):h};var k=o(89468),I=o(9905),D=o(72483),B=o(64940),L=o(1075),M=o(86882),A=o(7642);function R(e){let{projectReviews:t}=e,o=(0,c.c)("Common");return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:m().reports_container,children:[(0,r.jsx)(D.A,{sx:{color:A.A.designSystem.colors.warmBlue}}),(0,r.jsx)("div",{className:m().reports_description,children:null==t?void 0:t.map(e=>{let t;return(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{id:"child-modal-description",children:o.rich("reviewInfo",{reviewMonth:(t=e.issueMonth,(0,L.A)((0,B.A)(t,"MM-yyyy",new Date),"LLLL yyyy",{locale:M.Q[localStorage.getItem("language")||"en"]})),standardsLink:e=>(0,r.jsx)("a",{target:"_blank",href:o("standardsLink"),rel:"noreferrer",className:"planet-links",style:{fontWeight:400},onClick:e=>e.stopPropagation(),children:e})})}),(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"planet-links",href:(0,h.x)("projectReview",e.pdf),onClick:e=>e.stopPropagation(),children:o("viewReport")})]},e.id)})})]})})}var E=o(56488),F=o(46954),H=o(5146);let U=e=>{let{projectName:t,image:o,ecosystem:i,showTooltipPopups:a,projectReviews:p,purpose:l,classification:d,isApproved:j,isTopProject:u,allowDonations:g}
1=e,[C,v]=(0,n.useState)(!0),[f,x]=(0,n.useState)(!1),[y,b]=(0,n.useState)(!1),P=(0,c.c)("Project"),N=(0,c.c)("Common"),B=(0,s.useRouter)(),{localizedPath:L}=(0,H.A)(),M=(0,_.iH)(e=>"true"===e.embed),A=(0,_.iH)(e=>e.callbackUrl),U=(0,_.iH)(e=>e.showBackIcon),Z=(0,_.y3)(e=>e.page);(0,n.useEffect)(()=>{b(!0)},[]);let O=o?(0,h.A)("project","medium",o):"",V=(0,S.$)(m().projectImage,{[m().projectImageSecondary]:"project-details"===Z}),$=t.length>=32,W=(0,I.W)(t,32),z="ontouchstart"in window,J=(0,n.useCallback)(e=>{z&&(e.stopPropagation(),e.preventDefault())},[z]),K=(0,r.jsx)("span",{onClick:J,children:$?W:t});return(0,r.jsxs)("div",{className:V,children:[y&&"project-details"===Z&&!(M&&"false"===U)&&(0,r.jsx)(F.A,{label:N("goBack"),onClick:()=>{let e=sessionStorage.getItem("backNavigationUrl")||"/",t=e.startsWith("http://")||e.startsWith("https://"),o=(t?e.split("?")[0]:L(e)).split("?")[0],r=M?{embed:"true",...void 0!==A&&{callback:A}}:{};B.push({pathname:o,query:t?{}:r}).then(()=>sessionStorage.removeItem("backNavigationUrl")).catch(e=>{console.error("Navigation failed:",e)})},className:m().backButton,children:(0,r.jsx)(E.A,{})}),(0,r.jsx)(T,{isApproved:j,allowDonations:g,isTopProject:u,showTooltipPopups:a}),C&&(0,r.jsx)("img",{alt:"",src:"/assets/images/project-contribution-default-landscape.png",className:m().projectImageFile}),o&&void 0!==o&&(0,r.jsx)("img",{alt:t,src:O,loading:"lazy",decoding:"async",className:(0,S.$)(m().projectImageFile,{[m().hidden]:C}),onLoad:()=>{v(!1)},onError:()=>{v(!1),x(!0)}}),(f||!o)&&(0,r.jsx)("img",{alt:"",src:"/assets/images/project-contribution-default-landscape.png",className:m().projectImageFile}),(0,r.jsx)("div",{className:m().gradientOverlay}),(0,r.jsxs)("div",{className:m().projectImageBlock,children:[(0,r.jsxs)("div",{className:m().projectEcosystemOrTypeContainer,children:[(0,r.jsx)("div",{className:m().projectTypeIcon,children:(0,r.jsx)(k.A,{projectType:"conservation"===l?"conservation":d})}),(0,r.jsxs)("div",{children:[null!==i&&(0,r.jsxs)("div",{className:m().projectEcosystem,children:[P("ecosystem.".concat(i))," /"]}),(0,r.jsx)("div",{className:m().projectType,children:d&&P("classification.".concat(d))})]})]}),(0,r.jsxs)("div",{className:m().projectName,children:[$?(0,r.jsx)(w.A,{showTooltipPopups:a,triggerElement:K,children:(0,r.jsx)("div",{className:m().projectNameTooltip,children:t})}):K,j&&(0,r.jsx)(w.A,{showTooltipPopups:"project-details"!==Z&&a,triggerElement:(0,r.jsx)("span",{className:m().verifiedIcon,onClick:J,children:(0,r.jsx)(D.A,{sx:{width:"100%"}})}),children:(0,r.jsx)("div",{className:m().topProjectReportsContainer,children:(0,r.jsx)(R,{projectReviews:p})})})]})]})]})};var Z=o(62070);let O=e=>{let{projectTpoName:t,allowDonations:o,isTopProject:i,isApproved:s,tpoSlug:p,embed:l}=e,d=(0,c.c)("Common"),{localizedPath:j}=(0,H.A)(),u=(0,_.y3)(e=>e.page),g=(0,n.useMemo)(()=>o?i&&s?"".concat(m().tpoBackground):"":"".concat(m().noDonation),[i,s,o]),C="/t/".concat(p),h="true"===l,v=(0,S.$)(m().projectTpoName,g,{[m().projectTpoNameSecondary]:"project-details"===u});return(0,r.jsx)(a(),{href:h?C:j(C),target:h?"_top":void 0,className:v,children:d("by",{tpoName:t})})},V=e=>{var t,o;let{project:i,showTooltipPopups:a,utmCampaign:s,disableDonations:c}=e,p="trees"===i.purpose&&i.isTopProject,l="trees"===i.purpose&&i.isApproved,d="map"===i._scope?i.ecosystem:i.metadata.ecosystem,j=(0,n.useMemo)(()=>{var e,t;return"trees"===i.purpose&&"tree"===i.unitType&&(null==(e=i.unitsContributed)?void 0:e.tree)&&(null==(t=i.unitsTargeted)?void 0:t.tree)?Math.min(i.unitsContributed.tree/i.unitsTargeted.tree*100,100):0},[i.purpose,i.unitType,i.unitsContributed,i.unitsTargeted]),u=(0,n.useMemo)(()=>"".concat(m()[(0,Z.MD)(i)]),[i.purpose,"trees"===i.purpose&&(i.isTopProject,i.isApproved),i.allowDonations]),g={slug:i.slug,isApproved:l,isTopProject:p,allowDonations:i.allowDonations,purpose:i.purpose},_={...g,projectName:i.name,image:i.image,ecosystem:d,showTooltipPopups:a,projectReviews:i.reviews,classification:i.classification},h={...g,unitType:i.unitType,unitCount:"tree"===i.unitType?null==(t=i.unitsContributed)?void 0:t.tree:null==(o=i.unitsContributed)?void 0:o.m2,unitCost:i.unitCost,country:i.country,currency:i.currency,utmCampaign:s,disableDonations:c};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{..._}),(0,r.jsx)("div",{className:m().progressBar,children:(0,r.jsx)("div",{className:(0,S.$)(m().progressBarHighlight,u),style:{width:"".concat(j,"%")}})}),(0,r.jsx)(C,{...h})]})};function $(e){let{project:t,showTooltipPopups:o,isMobile:i,utmCampaign:c,disableDonations:p}=e,l=(0,s.useRouter)(),{localizedPath:d}=(0,H.A)(),j=(0,_.iH)(e=>e.embed),u=(0,_.iH)(e=>e.callbackUrl),g=(0,_.y3)(e=>e.page),C="trees"===t.purpose&&t.isTopProject,h="trees"===t.purpose&&t.isApproved,v=(0,S.$)(m().singleProject,{[m
1().projectDetailsSnippetMobile]:"project-details"===g&&i}),f={showTooltipPopups:o,project:t,utmCampaign:c,disableDonations:p},x={projectTpoName:t.tpo.name,allowDonations:t.allowDonations,isTopProject:C,isApproved:h,tpoSlug:t.tpo.slug,embed:j},y=(0,n.useMemo)(()=>{let e=(0,Z.Tu)(t.slug,l.asPath),o=new URLSearchParams;"true"===j&&(o.append("embed","true"),void 0!==u&&"string"==typeof u&&o.append("callback",u));let r=o.toString();return r&&(e+="".concat(e.includes("?")?"&":"?").concat(r)),e},[t.slug,j,u,l.asPath]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:v,children:["project-details"===g?(0,r.jsx)(V,{...f}):(0,r.jsx)(a(),{href:d(y),style:{cursor:"pointer"},children:(0,r.jsx)(V,{...f})}),!i&&(0,r.jsx)(O,{...x})]}),i&&(0,r.jsx)(O,{...x})]})}},60867:(e,t,o)=>{"use strict";function r(e,t,o,r){let n={minimumFractionDigits:2*!r,maximumFractionDigits:2,...t?{style:"currency",currency:t}:{}};return new Intl.NumberFormat(e,n).format(o)}o.d(t,{A:()=>r})},72627:(e,t,o)=>{"use strict";o.d(t,{$J:()=>p,OG:()=>c,fu:()=>a,mC:()=>s});class r{parse(e){return(e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,e=>{let t=this._index(e);return void 0!==t?t.toString():""}))?+e:NaN}constructor(e){let t=new Intl.NumberFormat(e),o=t.formatToParts(12345.6),r=Array.from({length:10}).map((e,o)=>t.format(o)),n=new Map(r.map((e,t)=>[e,t])),i=o.find(e=>"group"===e.type),a=o.find(e=>"decimal"===e.type);i&&(this._group=RegExp("[".concat(i.value,"]"),"g")),a&&(this._decimal=new RegExp("[".concat(a.value,"]"))),this._numeral=RegExp("[".concat(r.join(""),"]"),"g"),this._index=e=>n.get(e)}}let n={en:{b:"b",m:"m",k:"k"},de:{b:"Mrd.",m:"Mio.",k:"Tsd."}};function i(e,t){return n[e]?n[e][t]:n.en[t]}function a(e,t,o){return Math.round(t)===Math.round(t*o*10)/(10*o)&&(o=0),new Intl.NumberFormat(e,{minimumFractionDigits:o,maximumFractionDigits:o}).format(t)}function s(e,t,o){return t>=1e9?a(e,t/1e9,o)+i(e,"b"):t>=1e6?a(e,t/1e6,o)+i(e,"m"):a(e,t,o)}function c(e,t){return new Intl.NumberFormat(e).format(t)}function p(e,t){return new r(e).parse(t.toString())}}}]);
2//# sourceMappingURL=598-aa4ccc46b33c3894.js.map

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.