1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b2920f02-9172-58b1-bae3-3673a9ee96fe")}catch(e){}}(); 3import{a as S}from"./chunk-PAN4ZM5A.js";import{a as U}from"./chunk-4MMRLOE7.js";import{c as B}from"./chunk-TML3YDBO.js";import"./chunk-YSTTJCSR.js";import"./chunk-LWLX7MZR.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import"./chunk-5CMUHLSG.js";import"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-ZFWNFD6F.js";import"./chunk-IKWIL4NU.js";import"./chunk-5K5PYV5V.js";import"./chunk-TDGVUJZJ.js";import"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import"./chunk-BUOPWRDV.js";import"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import"./chunk-CNRKNNWP.js";import"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import"./chunk-5SJALNJN.js";import"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import"./chunk-MF7VZYLI.js";import"./chunk-NFMDOWTR.js";import"./chunk-QE6DXY66.js";import"./chunk-B5YZVWIB.js";import"./chunk-HCSN2NMS.js";import"./chunk-FDIRDMLL.js";import"./chunk-XQLUXGKM.js";import"./chunk-3JHJJCIF.js";import"./chunk-J4X36CU5.js";import"./chunk-X3ZU2Z3D.js";import"./chunk-QZXCI4ZV.js";import"./chunk-VO633UWN.js";import{b as z,f as F}from"./chunk-DL5K4IMO.js";import"./chunk-2PXCY4PH.js";import"./chunk-UERXTOL6.js";import{k as j,p as R}from"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-RT6Q43NP.js";import"./chunk-AHJZJV4E.js";import"./chunk-EQS4J37G.js";import"./chunk-U3L5FZOY.js";import"./chunk-TYTNPDEC.js";import{f as N}from"./chunk-WAPZ5LEW.js";import{G as D}from"./chunk-746D4QTP.js";import{Ac as h,D as y,Dc as I,Ed as _,Ib as v,Sc as a,Tc as g,bc as k,fc as M,gc as x,hc as T,ic as m,jc as i,kc as r,la as C,lc as d,nd as L,qa as c,qb as s,qd as O,uc as E,va as w,wa as P,x as b}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";var V=(()=>{class o{http=c(N);latestPost;fetchLatestPost(){return new Promise((t,n)=>{if(this.latestPost)t(this.latestPost);else{let e=this.http.get("https://blog.mightycause.com/wp-json/wp/v2/posts?per_page=1"),l=this.http.get("https://blog.mightycause.com/wp-json/wp/v2/categories");y([e,l]).subscribe(f=>{let p=f[0][0];if(p){let G=p.title.rendered.replace(/’/,"'");this.latestPost={title:G,url:p.link,date:p.date,coverImageUrl:p.jetpack_featured_media_url,categoryIds:p.categories,categories:[]},f[1].filter(u=>this.latestPost.categoryIds.indexOf(u.id)!==-1).forEach(u=>{this.latestPost.categories.push({id:u.id,name:u.name,slug:u.slug})}),t(this.latestPost)}else n("No posts")},f=>n(f))}})}fetchPosts(t){return this.http.get("https://blog.mightycause.com/wp-json/wp/v2/posts",{params:t})}static \u0275fac=function(n){return new(n||o)};static \u0275prov=C({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var $=(()=>{class o{image=_(void 0);title=_(void 0);text=_(void 0);static \u0275fac=function(n){return new(n||o)};static \u0275cmp=v({type:o,selectors:[["app-card"]],inputs:{image:[1,"image"],title:[1,"title"],text:[1,"text"]},decls:9,vars:3,consts:[[1,"case-study-card","cursor-pointer","shadow","bg-white","d-flex","align-items-center"],[1,"cover-image"],["appLazyLoad","",1,"bg-cover",3,"url"],[1,"p-2","text-start","content"],[1,"bg-gray-200"],[1,"h4"]],template:function(n,e){n&1&&(i(0,"div",0)(1,"div",1),d(2,"div",2),r(),i(3,"div",3)(4,"span",4)(5,"strong"),a(6),r()(),i(7,"h3",5),a(8),r()()()),n&2&&(s(2),m("url",e.image()),s(4),g(e.title()),s(2),g(e.text()))},dependencies:[S],styles:[".case-study-card[_ngcontent-%COMP%] .cover-image[_ngcontent-%COMP%]{position:relative;width:40%;height:0;padding-bottom:35%}.case-study-card[_ngcontent-%COMP%] .cover-image[_ngcontent-%COMP%] .bg-cover[_ngcontent-%COMP%]{position:absolute;inset:0}.case-study-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:60%}"]})}return o}
3)();function H(o,q){if(o&1){let t=E();i(0,"div",26)(1,"app-card",34),h("click",function(){let e=w(t).$implicit,l=I();return P(l.goToPost(e==null?null:e.url))}),r()()}if(o&2){let t=q.$implicit;s(),m("image",t.coverImageUrl)("text",t.title)}}var ve=(()=>{class o{blogService=c(V);brandNavService=c(U);pageTagsService=c(z);appService=c(F);webAnalyticsService=c(B);caseStudies=[];featured;newest;constructor(){this.appService.header=!0,this.appService.footer=!0,this.brandNavService.configuration={color:"light",topLevel:!0},this.appService.currentBrandObservable.subscribe(()=>{let t="Inspiring stories from successful campaigns and satisfied nonprofits.",n="Case Studies",e={title:n,description:t,relative_url:"/guide/case-studies",og_title:n,og_description:t};this.pageTagsService.updateMetadata(e),this.pageTagsService.createLinkForCanonicalURL(e.relative_url),this.pageTagsService.removeNoIndexTag(),this.pageTagsService.setPageTitle(`${e.title} | Mightycause`,!0),this.pageTagsService.setPageDescription(e.description),this.webAnalyticsService.pageView()})}ngOnInit(){let t={per_page:10,categories:7};this.blogService.fetchPosts(t).pipe(b(n=>{n.forEach(e=>{let l=e.title.rendered.replace(/’/,"'").replace(/&/,"&");this.caseStudies.push({title:l,url:e.link,coverImageUrl:e.jetpack_featured_media_url})})})).subscribe(()=>{this.newest=this.caseStudies[0],this.featured=this.caseStudies[1]})}goToPost(t){window.open(t,"_blank")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=v({type:o,selectors:[["app-case-studies"]],decls:56,vars:10,consts:[["id","guide-case-studies",1,"bg-light"],[1,"banner-bg-img"],["appLazyLoad","","url","https://imagecdn.mightycause.com/44578467-1baa-47ea-8d04-35ef2f346449/"],[1,"bg-primary"],[1,"container"],[1,"row","align-items-middle","py-6"],[1,"col-12","col-md-4","text-white","mt-3"],["routerLink","/guide",1,"text-decoration-none","mb-0","text-white"],["aria-hidden","true",1,"fa-solid","fa-angle-right"],[1,"display-3"],[1,"far","fa-comment-alt-smile"],[1,"col-10","offset-1","col-md-7","mt-3"],[3,"click","image","text","title"],[1,"row","align-items-center","py-6"],[1,"col-12","col-md-10","offset-md-1","position-relative"],[1,"featured-case-study","w-100","d-flex","align-items-center"],[1,"cover-image"],["appLazyLoad","",3,"url"],[1,"content","my-4"],[1,"h4","d-inline-block","bg-gray-200"],[1,"h1"],[1,"bg-gray-200"],["tabindex","0","role","button",1,"h4","bg-primary","d-inline-block","text-white","cursor-pointer",3,"click","keydown.enter"],[1,"mb-0"],[1,"fa","fa-long-arrow-right"],[1,"row"],[1,"col-12","col-sm-6","my-2"],[1,"container","py-6"],[1,"col-6","offset-3","text-center"],[1,"h3","mb-2","text-center"],[1,"mb-1"],["href","https://support.mightycause.com"],["href","https://blog.mightycause.com"],["routerLink","/guide"],[3,"click","image","text"]],template:function(n,e){n&1&&(i(0,"div",0)(1,"div",1),d(2,"div",2),r(),i(3,"section")(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"a",7),a(9,"Resources "),d(10,"i",8),r(),i(11,"h1",9),d(12,"i",10),a(13," Case Studies"),r(),i(14,"p"),a(15,"Inspiring stories from successful campaigns and satisfied nonprofits."),r()(),i(16,"div",11)(17,"app-card",12),h("click",function(){return e.goToPost(e.newest==null?null:e.newest.url)}),r()()()()()(),i(18,"section")(19,"div",4)(20,"div",13)(21,"div",14)(22,"div",15)(23,"div",16),d(24,"div",17),r(),i(25,"div",18)(26,"p",19),a(27,"Featured Story:"),r(),i(28,"h3",20)(29,"span",21),a(30),r()(),i(31,"div",22),h("click",function(){return e.goToPost(e.featured==null?null:e.featured.url)})("keydown.enter",function(){return e.goToPost(e.featured==null?null:e.featured.url)}),i(32,"p",23),a(33,"Read more "),d(34,"i",24),r()()()()()()()(),i(35,"section")(36,"div",4)(37,"div",25),x(38,H,2,2,"div",26,M),L(40,"slice"),r()()(),i(41,"section")(42,"div",27)(43,"div",25)(44,"div",28)(45,"h2",29),a(46,"Looking for something else?"),r(),i(47,"p",30)(48,"a",31),a(49,"Browse our support center"),r()(),i(50,"p",30)(51,"a",32),a(52,"Get tips and tricks from our blog"),r()(),i(53,"p")(54,"a",33),a(55,"Go back to the resource center"),r()()()()()()()),n&2&&(s(17
3),m("image",e.newest==null?null:e.newest.coverImageUrl)("text",e.newest==null?null:e.newest.title)("title","New:"),s(7),m("url",e.featured==null?null:e.featured.coverImageUrl),s(6),g(e.featured==null?null:e.featured.title),s(),k("aria-label",`Read more about ${e.featured==null?null:e.featured.title}`),s(7),T(O(40,6,e.caseStudies,2,10)))},dependencies:[R,j,$,S,D],styles:["#guide-case-studies[_ngcontent-%COMP%] .featured-case-study[_ngcontent-%COMP%]{padding-left:40%;height:50vh}#guide-case-studies[_ngcontent-%COMP%] .featured-case-study[_ngcontent-%COMP%] .cover-image[_ngcontent-%COMP%]{width:50%;position:absolute;top:0;bottom:0;left:0;z-index:0}#guide-case-studies[_ngcontent-%COMP%] .featured-case-study[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}"]})}return o})();export{ve as CaseStudiesComponent}; 4 5//# debugId=b2920f02-9172-58b1-bae3-3673a9ee96fe
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.