PageSourceSearch

https://hellodarwin.com/component---src-templates-grant-provider-single-builder-tsx-a9e7008a9f8a061e8f57.js

js hellodarwin.com collected 2026-10-03 21:02:22 UTC 9,940 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhellodarwin_website=self.webpackChunkhellodarwin_website||[]).push([[3911],{6467:function(e,n,t){t.r(n),t.d(n,{Head:function(){return w},default:function(){return S}});var r=t(60436),a=t(58168),i=t(74914),l=e=>{var n;return null!==(n=null==e?void 0:e.trim())&&void 0!==n?n:""},o=e=>[e.first_name,e.last_name].map(e=>l(e)).filter(Boolean).join(" "),s=t(25288),d=t(48066),u=t(49213),p=t(71755),c=t(45489),v=t(57226),m=t(5469),g=/{{\s*organization(?:\s*\|\s*([^{}]+?))?\s*}}/gi,f=(e,n)=>e.replace(g,()=>n),h=e=>{var n,{link:t,organization:r,providerAcronym:a}=e;if(f(t.name,r).length<=44)return r;var i,l=(null==a?void 0:a.trim())||(e=>{var n,t=null===(n=e.match(/\(([A-Z0-9][A-Z0-9&+./'’ -]{1,19})\)\s*$/))||void 0===n?void 0:n[1];return null==t?void 0:t.replace(/\s+/g," ").trim()})(r);return l&&f(t.name,l).length<=44?l:null!==(t.name.replace(g,(e,n)=>{var t;return null!==(t=i)&&void 0!==t||(i=(null==n?void 0:n.trim())||void 0),e}),n=i)&&void 0!==n?n:r},y=(e,n)=>e?f(e,n):e,b=(e,n,t)=>{var r=h({link:e,organization:n,providerAcronym:t});return(0,a.A)({},e,{name:f(e.name,r),submissionEmailLabel:y(e.submissionEmailLabel,r),submissionEmailPlaceholder:y(e.submissionEmailPlaceholder,r),submissionProfessionalEmailError:y(e.submissionProfessionalEmailError,r),submissionRequestError:y(e.submissionRequestError,r)})},P=e=>"ContentfulIntroComponent"===e.__typename,k=e=>"ContentfulBannerComponent"===e.__typename,_=e=>{var n,t,{components:r=[],providerAcronym:i,providerName:l}=e,o=l.trim();if(!o)return{banners:[],introCtas:[]};var s=r.find(P);return{banners:r.filter(k).map(e=>((e,n,t)=>{var r,i;return(0,a.A)({},e,{title:f(e.title,n),body:f(e.body,n),leadMagnetEyebrow:y(e.leadMagnetEyebrow,n),leadMagnetFinePrint:y(e.leadMagnetFinePrint,n),leadMagnetSuccessMessage:y(e.leadMagnetSuccessMessage,n),CTAs:null!==(r=null===(i=e.CTAs)||void 0===i?void 0:i.map(e=>b(e,n,t)))&&void 0!==r?r:[]})})(e,o,i)),introCtas:null!==(n=null==s||null===(t=s.ctAs)||void 0===t?void 0:t.map(e=>b(e,o,i)))&&void 0!==n?n:[]}},A=t(74848),S=e=>{var n,{data:{allSingleGrantProviderPageLinks:{nodes:[t]},allGrants:{nodes:r,totalCount:a},featuredFundingPotentialGrant:l,featuredQuickWinGrant:o,featuredCompetitivenessGrant:d,featuredRecentlyAddedGrant:u},pageContext:p}=e,{grantProvider:c,node_locale:v,relatedPage:m}=t,{acronym:g,title:f,description:h}=c,{faqItems:y=[]}=t,{t:b}=(0,i.c3)(),P="fr"===v?"fr":"en",k=f||c.title||"",{banners:S,introCtas:w}=_({components:null==m?void 0:m.components,providerAcronym:g,providerName:k}),C="en"===P?"View "+c.title+"'s website for more information.":"Voir le site de "+c.title+" pour plus d'information.",x="en"===P?"About "+c.title:"À propos de "+c.title,D=c.url?'<a href="'+c.url+'" target="_blank" rel="nofollow noopener noreferrer" style="color: inherit; text-decoration-color: currentColor;">'+C+"</a>":"",I=h?"<p>"+h+(D?" "+D:"")+"</p>":D?"<p>"+D+"</p>":"",T=function(e){void 0===e&&(e=[]);var n={};return e.forEach(e=>{var t,{href:r,key:a,label:i,pageName:l}=e,o="tags_goals"===a?"others":a;null!==(t=n[o])&&void 0!==t||(n[o]={}),n[o][l||i]=r}),n}(p.directoryLinks),M=Object.keys(T),L=y.length?[{__typename:"ContentfulDirectoryFaqBlock",id:"grant-provider-"+(c.slug||"details")+"-faq",title:x,items:y}]:[];M.length&&L.push({__typename:"ContentfulDirectoryFooterLinks",id:"grant-provider-"+(c.slug||"details")+"-directory-links",title:"",listsKeys:M,listsTitles:[]});var G={__typename:"ContentfulDirectoryPage",id:"grant-provider-"+(c.slug||"details")+"-directory",handle:p.fullHandle,pageTitle:k,seoMeta:null!==(n=null==m?void 0:m.seoMeta)&&void 0!==n?n:{titleSeo:k,descriptionSeo:"",openGraphTypes:""},components:L,segment:[],intro:{id:"grant-provider-"+(c.slug||"details")+"-intro",title:b("grant_card|grantProviderTitle",{nameMandatedAgent:""+k}),description:I||"",ctAs:w},banners:S,type:"Grants"};return(0,A.jsx)(s.A,{page:G,locale:P,mappedLinks:T,grants:r,grantsCount:a,directoryString:k,breadcrumbs:p.breadcrumbItems,pageIndex:p.pageIndex,pageTotal:p.pageTotal,fullHandle:p.fullHandle,directoryFreshnessUpdatedAt:p.organizationFreshnessUpdatedAt,featuredGrants:0===p.pageIndex?[{key:"highestFundingPotential",grant:l},{key:"quickestWin",grant:o},{key:"bestCompetitivePosition",grant:d},{key:"recentlyAdded",grant:u}]:void 0,pageDataGrantsSource:"grantProvider"})},w=e=>{var n,{location:t,data:{allSingleGrantProviderPageLinks:{nodes:[i]},allGrants:{nodes:s,totalCount:g},matchingPageLinks:{nodes:f}},pageContext:h}=e,{faqItems:y=[],grantProvider:b,relatedPage:P}=i,k="fr"===h.locale?"fr":"en",_=b.title||"",S=(0,p.cf)(_,null==P?void 0:P.seoMeta),w=((e,n)=>{if(n<=0)return e;var t="Page "+(n+1);return e.includes(" | helloDarwin")?e.replace(" | helloDarwin"," | "+t+" | helloDarwin"):e+" | "+t+" | helloDarwin"})(S,h.pageIndex),C=(0,p.O1)({providerName:_,seoMeta:null==P?void 0:P.seoMeta}),x=(e=>{if(null==e||!e.length)return[];var n=new Set;return e.filter(e=>{var t=l(e.email),r=l(e.phone_number);if(!t&&!r)return!1;var a=l(e.contact_id)||[o(e),l(e.title),t,r].join("|").toLowerCase();return!n.has(a)&&(n.add(a),!0)})})(b.contacts).map(e=>{var n,t,r,i,s,d,u=o(e),p=(e=>{var n=l(e.phone_number),t=l(e.extension);return n?t?n+" #"+t:n:""})(e),c=null!==(n=null===(t=e.email)||void 0===t?void 0:t.trim())&&void 0!==n?n:"",v=null!==(r=null===(i=e.title)||void 0===i?void 0:i.trim())&&void 0!==r?r:"",m=null!==(s=null===(d=e.language)||void 0===d?void 0:d.trim())&&void 0!==s?s:"";return(0,a.A)({"@type":"ContactPoint"},u?{name:u}:{},v?{contactType:v}:{},c?{email:c}:{},p?{telephone:p}:{},m?{availableLanguage:m}:{})}),D=(0,a.A)({},(0,v.O5)({title:S,description:C,location:t,locale:h.locale,dateModified:h.organizationFreshnessUpdatedAt}),{isPartOf:{"@type":"WebSite",name:"helloDarwin",url:c.W},about:(0,a.A)({"@type":"Organization",name:b.title||""},b.url?{url:b.url}:{},x.length?{contactPoint:x}:{})},b.slug&&{alternateName:b.slug}),I={"@context":"https://schema.org","@type":"ItemList",name:"fr"===h.locale?"Subventions offertes par "+(b.title||""):"Grants offered by "+(b.title||""),numberOfItems:g,itemListElement:s.slice(0,50).map((e,n)=>{var t,r=null===(t=e.grantPageLink)||void 0===t?void 0:t.fullHandle;return r?{"@type":"ListItem",position:50*h.pageIndex+n+1,name:e.grant_display_title||e.grant_title,url:(0,c.o)("/"+r)}:null}).filter(e=>!!e)},T=(0,v.WO)({location:t,locale:k,breadcrumbItems:h.breadcrumbItems,fallbackLabel:_||S}),M=0===h.pageIndex?(0,v.md)(y):void 0,L={kind:"funding-organization",pageIndex:h.pageIndex},G=((e,n)=>{if(n<=0)return e;var t=""+(n+1);return e.map(e=>(0,a.A)({},e,{fullHandle:e.fullHandle+"/"+t}))})(f,h.pageIndex),E=i.grant_provider_id+":"+h.pageIndex,z=(0,m.n)({currentPlan:h.publicationPlan,currentRoute:t.pathname,entryId:i.grant_provider_id,family:L,locale:h.locale,materializesStructuralShell:!0,matchingLinks:G,translationKey:E});return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("meta",{name:u.Zl,content:i.grant_provider_id}),(0,A.jsx)(d.Ay,{family:L,plan:z,metadata:(0,m.V)({description:C,explicitImage:(0,d.Lw)(null==P?void 0:P.seoMeta.openGraphImage),openGraphType:null==P?void 0:P.seoMeta.openGraphTypes,schemas:[{key:"grant-provider-collection",value:D}].concat((0,r.A)(I.itemListElement.length?[{key:"provider-item-list",value:I}]:[]),[{key:"provider-breadcrumb",value:T}],(0,r.A)(M?[{key:"provider-faq",value:M}]:[])),supplementalStructuredData:null==P||null===(n=P.seoMeta.seoSchema)||void 0===n?void 0:n.structuredDataJson,title:w})})]})}},71755:function(e,n,t){t.d(n,{FN:function(){return i},Lp:function(){return s},O1:function(){return u},T0:function(){return l},cf:function(){return o},kn:function(){return d}});var r=/\{\{[^{}]+\}\}/,a=(e,n)=>{if(e){var t=Object.entries(n).reduce((e,n)=>{var[t,r]=n;return r?e.replaceAll("{{"+t+"}}",()=>r):e},e).trim();if(t&&!r.test(t))return t}},i=(e,n)=>{if(n===e.profile_language){if(e.description&&e.description.length>10){var t=e.description.replace(/<[^>]*>?/gm,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&");if(t.length<=160)return t;var r=t.slice(0,160),a=r.lastIndexOf(" ");return-1===a?r:r.slice(0,a)}return e.tagline?e.name+" - "+e.tagline:e.name}return"en"===n?"Discover "+e.name+"'s profile, explore their expertise, browse the
1ir portfolios, and read verified customer reviews to find the right partner":"Découvrez le profil de "+e.name+", analysez leurs expertises, explorez leurs portfolios et lisez les avis vérifiés des clients pour trouver le bon partenaire"},l=(e,n)=>e.reviews_count>0?e.name+" ("+e.reviews_count+" "+("fr"===n?"avis) | Avis 2026":"reviews) | Reviews 2026"):e.name+" | helloDarwin 2026",o=(e,n)=>null!=n&&n.titleSeo?n.titleSeo.includes("{{Page Name}}")?n.titleSeo.replaceAll("{{Page Name}}",e):n.titleSeo:e,s=e=>{var n,{deadline:t,intakeCycleKey:r,openingDate:i,pageName:l,seoMeta:o,status:s}=e,d={"Page Name":l,Deadline:t,"Cycle Key":null!=r?r:"2026","Opening Date":i},u=(e=>{var{deadline:n,openingDate:t,status:r,templates:a}=e;switch(r){case"open":case"featured":case"new":return[null==a?void 0:a.openTitle];case"closingSoon":return[n?null==a?void 0:a.closingSoonWithDeadlineTitle:void 0,null==a?void 0:a.closingSoonTitle];case"openingSoon":return[t?null==a?void 0:a.openingSoonWithDateTitle:void 0,null==a?void 0:a.openingSoonTitle];case"closed":return[null==a?void 0:a.closedTitle];case"suspending":return[null==a?void 0:a.suspendingTitle];case"archived":return[null==a?void 0:a.archivedTitle];default:return[]}})({deadline:t,openingDate:i,status:s,templates:null==o?void 0:o.fundingProgramTitleTemplates});for(var p of u){var c=a(p,d);if(c)return c}return null!==(n=a(null==o?void 0:o.titleSeo,d))&&void 0!==n?n:l},d=(e,n)=>null!=n&&n.descriptionSeo?n.descriptionSeo.includes("{{Page Description}}")?n.descriptionSeo.replaceAll("{{Page Description}}",e):n.descriptionSeo:e,u=e=>{var{providerName:n,seoMeta:t}=e;return d(n,t)}}}]);
2//# sourceMappingURL=component---src-templates-grant-provider-single-builder-tsx-a9e7008a9f8a061e8f57.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.