PageSourceSearch

https://static-prod.mightycause.com/mc-client/chunk-6K4RU5JK.js

js mightycause.com collected 2026-09-24 07:15:19 UTC 63,918 bytes, 5 lines download raw bytes

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]="669cc3c4-dcba-55aa-9561-90a1807c7aa0")}catch(e){}}();
3import{a as Xt}from"./chunk-TOKNDEAB.js";import{a as Zt}from"./chunk-QIGIPFFY.js";import"./chunk-Y54WF4EA.js";import"./chunk-JRHQOV6G.js";import{a as j}from"./chunk-LDJUZT6Y.js";import{a as Yt}from"./chunk-WRXC5ORK.js";import"./chunk-SF3LBQWY.js";import"./chunk-3EG53Q5T.js";import"./chunk-WDSEG2HL.js";import"./chunk-TFZ6BMYA.js";import"./chunk-KM7DT4K3.js";import"./chunk-XVD3ROXQ.js";import"./chunk-63ANJDYR.js";import"./chunk-YW2E6DSI.js";import"./chunk-KH5DZGNM.js";import"./chunk-Z6USEE7H.js";import"./chunk-LHPVZF3V.js";import"./chunk-2M3QETKK.js";import"./chunk-INEWE6SG.js";import"./chunk-IKEJPASG.js";import"./chunk-HVR6QYVL.js";import"./chunk-2JF74RQL.js";import"./chunk-I7BLO743.js";import"./chunk-DF7HIBO6.js";import{a as Qt}from"./chunk-6H5XAIK2.js";import"./chunk-5UK6QKW4.js";import{a as jt}from"./chunk-PAN4ZM5A.js";import{a as Pe}from"./chunk-O5N53BEO.js";import"./chunk-C57QP4TF.js";import{a as Gt,b as $t,c as Wt,d as qt,e as zt,f as Ht}from"./chunk-6ESVMRDE.js";import{a as Rt}from"./chunk-VIHRMJHO.js";import{a as Nt}from"./chunk-VIEDUWOT.js";import{a as At}from"./chunk-W7NCBQUV.js";import{a as Tt}from"./chunk-HZCYJNH4.js";import"./chunk-77KO6I45.js";import"./chunk-R7MSJQOC.js";import{a as Dt}from"./chunk-6HTRP6U7.js";import"./chunk-BSKHYKXK.js";import"./chunk-I5X7DE55.js";import"./chunk-ETZRMDHS.js";import"./chunk-NPR23P7I.js";import"./chunk-BVS47MGJ.js";import"./chunk-WDJPTZC5.js";import"./chunk-XZFXRJRY.js";import"./chunk-AAFBOZHS.js";import"./chunk-TA6QZW4D.js";import"./chunk-T5Q4IEHB.js";import{c as Vt}from"./chunk-KSQRQOTB.js";import"./chunk-A7W5NRHC.js";import"./chunk-NTJ4CINI.js";import"./chunk-6UNLROVI.js";import"./chunk-XBHOMARE.js";import{a as Bt,c as It,d as Ut,e as Ot}from"./chunk-C5T7GUT6.js";import"./chunk-DSHWJW7U.js";import"./chunk-FLZNG7WM.js";import"./chunk-Y53ZYOIU.js";import"./chunk-3YM57F2T.js";import"./chunk-MQQUES44.js";import{a as Pt,c as Lt}from"./chunk-4OKMPB3H.js";import{a as Oe}from"./chunk-AGVOJNE2.js";import"./chunk-HJXQJEZE.js";import{c as Ft}from"./chunk-I664YVIA.js";import"./chunk-YSTTJCSR.js";import{c as wt}from"./chunk-CN4EGA4I.js";import{f as Et}from"./chunk-Z5M2FKAZ.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import{a as Mt}from"./chunk-5CMUHLSG.js";import{a as yt}from"./chunk-TNAGEFXD.js";import{a as ct}from"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-56LBQIQP.js";import"./chunk-IKWIL4NU.js";import{a as I}from"./chunk-5K5PYV5V.js";import{a as Y}from"./chunk-TDGVUJZJ.js";import{a as q,b as z,d as mt,e as k,f as A,g as N,h as H,i as y}from"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import{a as St,b as kt}from"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import{a as Ue}from"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import{a as gt,b as Ct,c as bt}from"./chunk-BUOPWRDV.js";import{d as V,e as B}from"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import{b as xt,c as ht,d as vt}from"./chunk-CNRKNNWP.js";import{d as Ee}from"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import{a as D}from"./chunk-5SJALNJN.js";import{a as L,b as ce,c as R,d as ft,i as F}from"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import{C as Q,D as ke,F as ye,G as Me,H as le,I as se,b as T,d as O,g as P,h as ie,n as ne,o as oe,r as ae,s as ut,t as _t,u as re}from"./chunk-MF7VZYLI.js";import{a as M,b as E,c as dt,d as pt,e as w}from"./chunk-NFMDOWTR.js";import"./chunk-QE6DXY66.js";import{a as we,b as Te}from"./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 st,f as te}from"./chunk-XIKGSSI2.js";import"./chunk-MNZQGPDO.js";import{k as rt,p as lt}from"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-KRFZY2QT.js";import"./chunk-DFSGG2NH.js";import"./chunk-MREDPIUE.js";import"./chunk-BWICLBYB.js";import"./chunk-TYTNPDEC.js";import{f as at}from"./chunk-WAPZ5LEW.js";import{L as ot,w as nt}from"./chunk-746D4QTP.js";import{Ac as _,Dc as m,Dd as it,Ed as Ie,Fd as he,Ib as S,Lc as Ce,M as We,Mc as Je,Nc as U,O as qe,Ob as ge,Pc as be,R as ze,Rc as xe,Sc as l,Tc as G,Ua as Ye,Uc as h,Vc as Se,Yc as J,Zc as K,_c as ee,a as je,ac as Ve,c as Ge,cc as p,dc as u,dd as Be,ec as Xe,fc as X,gc as $,hc as W,ic as f,id as Ke,jc as o,kb as Ze,kc as i,la as He,lb as De,lc as s,nd as et,pd as tt,qa as b,qb as r,rc as ve,
3sd as Z,uc as x,va as g,w as $e,wa as C,xa as Fe,ya as Qe}from"./chunk-BZJI6Z2X.js";import"./chunk-WVYA44CB.js";import{a as Ae,b as Ne,g as Re}from"./chunk-CS7K6LXP.js";function li(t,c){t&1&&(o(0,"mat-hint"),l(1,"Sorry, we couldn't find anything"),i())}function si(t,c){if(t&1&&(o(0,"mat-option",21),s(1,"app-org-suggestion-label",22),i()),t&2){let e=c.$implicit;f("value",e),r(),f("title",e.title)("details",e.details)}}function ci(t,c){if(t&1){let e=x();o(0,"div",12)(1,"div",13)(2,"button",14),_("click",function(){g(e);let n=m();return C(n.addCausesFromRecentDonations())}),o(3,"span",15),s(4,"i",16),i(),o(5,"span"),l(6,"Add from recent donations"),i()()(),o(7,"div",13)(8,"button",14),_("click",function(){g(e);let n=m();return C(n.addCausesFromAmbassadorProgram())}),o(9,"span",15),s(10,"i",16),i(),o(11,"span"),l(12,"Add from ambassador program"),i()()()(),o(13,"div",17)(14,"mat-form-field")(15,"mat-label"),l(16,"Start typing a cause"),i(),o(17,"input",18),ee("ngModelChange",function(n){g(e);let d=m();return K(d.keyword,n)||(d.keyword=n),C(n)}),_("input",function(n){g(e);let d=m();return C(d.onSearchInputChange(n.target.value))}),i(),s(18,"mat-icon",19),p(19,li,2,0,"mat-hint"),o(20,"mat-autocomplete",20,0),_("optionSelected",function(n){g(e);let d=m();return C(d.selectedStory(n))}),$(22,si,2,3,"mat-option",21,Xe),i()()()}if(t&2){let e=U(21),a=m();r(2),f("active",a.spinnerObj.addFromRecentDonations),r(6),f("active",a.spinnerObj.addFromAmbassadorProgram),r(9),f("matAutocomplete",e),J("ngModel",a.keyword),r(2),u(a.resultEmpty?19:-1),r(3),W(a.suggestions)}}function mi(t,c){if(t&1&&(o(0,"div",6),s(1,"app-horizontal-tile",23),i()),t&2){let e=m();r(),f("urn",e.selectedCampaignUrn)}}var Jt=(()=>{class t{appService=b(te);searchService=b(Dt);userProfileService=b(j);snackBar=b(wt);dialogRef=b(q);brand;keyword="";suggestions;resultEmpty=!1;inputChangeObserver;selectedCampaignUrn;searchParams={per_page:10,searchSortOrder:"title",type:"allStoryPicker"};causeSelected=!1;processing=!1;spinnerObj={addFromRecentDonations:!1,addFromAmbassadorProgram:!1};data=b(z);constructor(){this.brand=this.appService.currentBrand}onSearchInputChange(e){this.inputChangeObserver||new Ge(a=>{this.inputChangeObserver=a}).pipe(We(500)).pipe(ze()).subscribe(a=>{a===""?(this.resultEmpty=!1,this.suggestions=[]):this.updateResults(a)}),this.inputChangeObserver.next(e)}selectedStory(e){this.keyword="",setTimeout(()=>this.keyword=e.option.value.title),this.selectedCampaignUrn=e.option.value.urn}addCause(){this.processing=!0,this.userProfileService.addCauses(this.data.id,this.selectedCampaignUrn).subscribe(e=>{this.processing=!1,this.dialogRef.close(e)},()=>{this.processing=!1})}addCausesFromRecentDonations(){this.spinnerObj.addFromRecentDonations=!0,this.userProfileService.addCausesFromDonationHistory(this.data.id).subscribe(e=>{this.spinnerObj.addFromRecentDonations=!1;let a={reload:!0};e.count===0&&(this.snackBar.open("No causes were found to be added.","Ok"),a.reload=!1),this.dialogRef.close(a)},()=>{this.spinnerObj.addFromRecentDonations=!1})}addCausesFromAmbassadorProgram(){this.spinnerObj.addFromAmbassadorProgram=!0,this.userProfileService.addCausesFromAmbassadorProgram(this.data.id).subscribe(e=>{this.spinnerObj.addFromAmbassadorProgram=!1;let a={reload:!0};e.count===0&&(this.snackBar.open("No causes were found to be added.","Ok"),a.reload=!1),this.dialogRef.close(a)},()=>{this.spinnerObj.addFromAmbassadorProgram=!1})}updateResults(e){let a=Ne(Ae({},this.searchParams),{term:e});this.searchService.suggestStory(a).subscribe(n=>{this.suggestions=n,this.suggestions&&this.suggestions.length===0?this.resultEmpty=!0:this.resultEmpty=!1})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-add-cause"]],decls:18,vars:8,consts:[["causeSuggestions","matAutocomplete"],["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],["appDialogScroll",""],[1,"mb-4"],[1,"mx-4"],["align","end"],["mat-button","","color","accent","type","button",1,"custom","auto",3,"mat-dialog-close"],[3,"hidden"],["mat-button","","color","primary","type","button",1,"custom","auto",3,"click","disabled"],["mat-button","","color","primary","type","button","appLoadingBtn","",1,"custom","auto",3,"click","active"],[1,"text-center"],[1,"mb-2"],["mat-button","","color","accent","appLoadingBtn","",1,"custom",3,"click","active"],[1,"left-icon"],[1,"fa-light","fa-heart-circle-plus"],[1,"w-75","m-auto"],["matInput","",3,"ngModelChange","input","matAutocomplete","ngModel"],["matPrefix","","fontSet","fa-solid","fontIcon","fa-magnifying-glass-plus"],[3,"optionSelected"],[1,"multi-line",3,"value"],[3,"title","details"],[3,"urn"]],template:function(a,n){a&1&&(o(0,"h3",1),l(1,"Add a cause"),i(),o(2,"button",2),s(3,"i",3),i(),o(4,"mat-dialog-content",4)(5,"p",5),l(6),i(),p(7,ci,24,5),p(8,mi,2,1,"div",6),i(),o(9,"mat-dialog-actions",7)(10,"button",8),l(11," Cancel "),i(),o(12,"span",9)(13,"button",10),_("click",function(){return n.causeSelected=!0}),l(14," Continue "),i()(),o(15,"span",9)(16,"button",11),_("click",function(){return n.addCause()}),l(17," Add cause "),i()()()),a&2&&(r(6),h(" Highlight any fundraiser, team, or nonprofit organization on ",n.brand==null?null:n.brand.name," on your profile. "),r(),u(n.causeSelected?-1:7),r(),u(n.causeSelected&&n.selectedCampaignUrn?8:-1),r(2),f("mat-dialog-close",!1),r(2),f("hidden",n.causeSelected),r(),f("disabled",!n.selectedCampaignUrn),r(2),f("hidden",!n.causeSelected),r(),f("active",n.processing))},dependencies:[le,T,P,ne,bt,gt,Ee,Ct,w,E,M,y,k,A,H,N,D,F,L,R,ft,Te,we,B,V,Y,I,Pe,Qt],encapsulation:2})}return t})();var Kt=(()=>{class t{userProfileService=b(j);dialogRef=b(q);caption;removing=!1;processing=!1;data=b(z);constructor(){this.caption=this.data?.caption}remove(){this.removing=!0;let e={user_profile_cause:{caption:""}};this.userProfileService.updateCause(this.data.profileId,this.data.id,e).subscribe({next:()=>{this.removing=!1,this.dialogRef.close("remove")},error:()=>{this.removing=!1}})}save(){this.processing=!0;let e={user_profile_cause:{caption:this.caption}};this.userProfileService.updateCause(this.data.profileId,this.data.id,e).subscribe({next:a=>{this.processing=!1,this.dialogRef.close(a.caption)},error:()=>{this.processing=!1}})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-cause-caption"]],decls:23,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],["appDialogScroll",""],[1,"mt-2"],["appearance","outline"],["matInput","","maxlength","350",3,"ngModelChange","ngModel"],["align","end"],[1,"text-center","mt-1"],["mat-button","","color","warn","type","button","appLoadingBtn","",1,"custom",3,"click","active"],[1,"left-icon"],[1,"fa-light","fa-tras
3h"],["mat-button","","color","accent",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","button","appLoadingBtn","",1,"custom","auto",3,"click","disabled","active"]],template:function(a,n){a&1&&(o(0,"h3",0),l(1,"Cause caption"),i(),o(2,"button",1),s(3,"i",2),i(),o(4,"mat-dialog-content",3)(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),l(8,"About this cause"),i(),o(9,"textarea",6),ee("ngModelChange",function(v){return K(n.caption,v)||(n.caption=v),v}),i(),o(10,"mat-hint",7),l(11),i()()(),o(12,"div",8)(13,"button",9),_("click",function(){return n.remove()}),o(14,"span",10),s(15,"i",11),i(),o(16,"span"),l(17,"Remove caption"),i()()()(),o(18,"mat-dialog-actions",7)(19,"button",12),l(20,"Cancel"),i(),o(21,"button",13),_("click",function(){return n.save()}),l(22," Save "),i()()),a&2&&(r(9),J("ngModel",n.caption),r(2),h("",(n.caption==null?null:n.caption.length)||0,"/350"),r(2),f("active",n.removing),r(6),f("mat-dialog-close",!1),r(2),f("disabled",n.removing)("active",n.processing))},dependencies:[le,T,P,Q,ne,w,E,M,y,k,A,H,N,D,F,L,R,B,V,Y,I],encapsulation:2})}return t})();function di(t,c){t&1&&(o(0,"mat-error"),l(1," Ending is "),o(2,"strong"),l(3,"required"),i()())}function pi(t,c){t&1&&(o(0,"mat-error"),l(1," Ending is "),o(2,"strong"),l(3,"invalid"),i()())}var ei=(()=>{class t{fb=b(ye);appService=b(te);userProfileService=b(j);dialogRef=b(q);currentDomain;processing=!1;customUrlSlugForm=this.fb.group({urlSlug:["",O.required]});dialogData=b(z);constructor(){this.currentDomain=this.appService.currentDomain}
3onFormSubmit(){this.customUrlSlugForm.invalid||(this.processing=!0,this.userProfileService.publishProfile(this.dialogData.urlSlug,this.customUrlSlugForm.value.urlSlug).subscribe(e=>{this.dialogData.urlSlug!==e.url_slug&&(window.location.pathname=`/profile/${e.url_slug}`),this.userProfileService.profile=e,this.processing=!1,this.dialogRef.close(!0)},()=>{this.processing=!1}))}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-make-public"]],decls:23,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],[3,"ngSubmit","formGroup"],["appDialogScroll",""],[1,"sm","mb-0"],["type","text","matInput","","maxlength","50","formControlName","urlSlug","pattern","[a-zA-Z0-9_\\-]+"],["align","end"],["mat-button","","color","accent",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","submit","appLoadingBtn","",1,"custom","auto",3,"active"]],template:function(a,n){a&1&&(o(0,"h3",0),l(1,"Make your profile public"),i(),o(2,"button",1),s(3,"i",2),i(),o(4,"form",3),_("ngSubmit",function(){return n.onFormSubmit()}),o(5,"mat-dialog-content",4)(6,"p",5),l(7," Set a unique URL ending. This is the link you share to send people to your profile. "),i(),o(8,"mat-form-field")(9,"mat-label"),l(10,"Ending"),i(),s(11,"input",6),o(12,"mat-hint"),l(13),i(),o(14,"mat-hint",7),l(15),i(),p(16,di,4,0,"mat-error"),p(17,pi,4,0,"mat-error"),i()(),o(18,"mat-dialog-actions",7)(19,"button",8),l(20,"Cancel"),i(),o(21,"button",9),l(22," Save & Make Public "),i()()()),a&2&&(r(4),f("formGroup",n.customUrlSlugForm),r(9),Se("",n.currentDomain,"/profile/",n.customUrlSlugForm.value.urlSlug),r(2),h("",(n.customUrlSlugForm.value.urlSlug==null?null:n.customUrlSlugForm.value.urlSlug.length)||0,"/50"),r(),u(n.customUrlSlugForm.controls.urlSlug.errors!=null&&n.customUrlSlugForm.controls.urlSlug.errors.required?16:-1),r(),u(n.customUrlSlugForm.controls.urlSlug.errors!=null&&n.customUrlSlugForm.controls.urlSlug.errors.pattern?17:-1),r(2),f("mat-dialog-close",!1),r(2),f("active",n.processing))},dependencies:[se,oe,T,P,ie,Q,ke,ae,re,w,E,M,y,k,A,H,N,D,F,L,R,ce,B,V,Y,I],encapsulation:2})}return t})();var ti=(()=>{class t{userProfileService=b(j);dialogRef=b(q);processing=!1;bio;data=b(z);constructor(){this.data.bio&&(this.bio=this.data.bio)}save(){this.processing=!0;let e={user_profile:{user_bio:this.bio}};this.userProfileService.updateProfile(this.data.urlSlug,e).subscribe(a=>{this.userProfileService.profile=a,this.processing=!1,this.dialogRef.close(!0)},()=>{this.processing=!1})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-user-bio"]],decls:18,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],["appDialogScroll",""],[1,"mt-2"],["appearance","outline"],["matInput","","placeholder","Bio","maxlength","400","rows","4",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","color","accent",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","button","appLoadingBtn","",1,"custom","auto",3,"click","active"]],template:function(a,n){a&1&&(o(0,"h3",0),l(1,"Bio"),i(),o(2,"button",1),s(3,"i",2),i(),o(4,"mat-dialog-content",3)(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),l(8,"Bio"),i(),o(9,"textarea",6),ee("ngModelChange",function(v){return K(n.bio,v)||(n.bio=v),v}),l(10,"      "),i(),o(11,"mat-hint",7),l(12),i()()()(),o(13,"mat-dialog-actions",7)(14,"button",8),l(15,"Cancel"),i(),o(16,"button",9),_("click",function(){return n.save()}),l(17," Save "),i()()),a&2&&(r(9),J("ngModel",n.bio),r(3),h("",(n.bio==null?null:n.bio.length)||0,"/400"),r(2),f("mat-dialog-close",!1),r(2),f("active",n.processing))},dependencies:[le,T,P,Q,ne,w,E,M,y,k,A,H,N,D,F,L,R,B,V,Y,I],encapsulation:2})}return t})();var Le=(()=>{class t{http=b(at);fetchAllLinkTypes(){return this.http.get("/api/v4/external_link_types.json")}getLinks(e){return this.http.get("/api/v4/external_links.json",{params:e})}bulkActions(e){return this.http.post("/api/v4/external_links/bulk_actions.json",e)}static \u0275fac=function(a){return new(a||t)};static \u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ui(t,c){if(t&1&&(o(0,"mat-option",12)(1,"span"),s(2,"i"),i()()),t&2){let e=c.$implicit;f("value",e),r(2),xe(e.icon_class)}}function _i(t,c){t&1&&(o(0,"mat-error"),l(1," Username is "),o(2,"strong"),l(3,"required"),i()())}function fi(t,c){if(t&1){let e=x();o(0,"div",1)(1,"div",8)(2,"div",9)(3,"mat-form-field")(4,"mat-select",10),_("selectionChange",function(){let n=g(e).$implicit,d=m();return C(d.computeUpdatedLinksDeltaObj(n))}),o(5,"mat-select-trigger"),s(6,"span",11),et(7,"safe"),i(),$(8,ui,3,3,"mat-option",12,X),i()()(),o(10,"div",13)(11,"div",14)(12,"mat-form-field")(13,"mat-label"),l(14,"Username"),i(),o(15,"input",15),_("keyup",function(){let n=g(e).$implicit,d=m();return C(d.computeUpdatedLinksDeltaObj(n))}),i(),p(16,_i,4,0,"mat-error"),i(),o(17,"button",16),_("click",function(){let n=g(e).$index,d=m();return C(d.removeSocialUrl(n))}),s(18,"i",17),i()()()()()}if(t&2){let e=c.$implicit,a=c.$index,n=m();r(),f("formGroupName",a),r(3),f("compareWith",n.compareLinkTypes),r(2),f("innerHTML",tt(7,4,`<i class='${e.controls.item.value.icon_class}'></i>`,"html"),Ze),r(2),W(n.externalLinkTypes),r(8),u(e.controls.username.errors!=null&&e.controls.username.errors.required?16:-1)}}var ii=(()=>{class t{fb=b(Me);externalLinkService=b(Le);externalLinks=Ie(void 0);processing=Ie(!1);
3updateExternalLinks=it();externalLinkTypes;loading=!0;externalLinksForm=this.fb.group({externalLinks:this.fb.array([])});linkTypeTriggerText="";changeObj={deletedLinks:{},createdLinks:{},updatedLinks:{}};updatedLinkDeltaObj={};ngOnInit(){this.externalLinkService.fetchAllLinkTypes().pipe(qe(1)).subscribe(e=>{this.externalLinkTypes=e;let a=this.externalLinks();if(a&&a.length>0)for(let n of a){let d=this.externalLinkTypes.findIndex(v=>v.id===n.external_link_type_id);this.externalLinksForm.controls.externalLinks.push(this.createExternalLink(n.id,this.externalLinkTypes[d],n.account_handle))}else this.externalLinksForm.controls.externalLinks.push(this.createExternalLink(null,this.externalLinkTypes[0],null))})}createExternalLink(e,a,n){return this.fb.group({id:[e],item:[a,O.required],username:[n,O.required]})}addSocialUrl(){this.externalLinkTypes&&this.externalLinksForm.controls.externalLinks.push(this.createExternalLink(null,this.externalLinkTypes[0],null))}removeSocialUrl(e){let a=this.externalLinksForm.controls.externalLinks,n=a.controls[e];n.value.id&&(this.changeObj.deletedLinks[n.value.id]=!0,delete this.updatedLinkDeltaObj[n.value.id]),a.removeAt(e)}compareLinkTypes(e,a){return e.id===a.id}computeUpdatedLinksDeltaObj(e){e.value.id&&(this.updatedLinkDeltaObj[e.value.id]=!0)}onSubmit(){this.externalLinksForm.invalid||(this.externalLinksForm.value.externalLinks.forEach((e,a)=>{e.id?e.id&&this.updatedLinkDeltaObj[e.id]&&(this.changeObj.updatedLinks[e.id]={value:{external_link_type_id:e.item.id,account_handle:e.username}}):this.changeObj.createdLinks[`new_${a}`]={value:{external_link_type_id:e.item.id,account_handle:e.username}}}),this.updateExternalLinks.emit(this.changeObj))}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-external-link-settings"]],inputs:{externalLinks:[1,"externalLinks"],processing:[1,"processing"]},outputs:{updateExternalLinks:"updateExternalLinks"},decls:13,vars:5,consts:[["appScrollToFirstInvalid","",3,"ngSubmit","formGroup"],["formArrayName","externalLinks"],["type","button","mat-button","","color","accent",1,"custom",3,"click","hidden"],[1,"left-icons"],[1,"fal","fa-plus"],[1,"d-flex","justify-content-end"],["mat-button","","color","accent","type","button",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","submit","appLoadingBtn","",1,"custom","auto",3,"active"],[1,"row",3,"formGroupName"],[1,"col-3"],["formControlName","item","cdkFocusInitial","",3,"selectionChange","compareWith"],[3,"innerHTML"],[3,"value"],[1,"col-9"],[1,"d-flex","align-items-center"],["type","text","matInput","","formControlName","username",3,"keyup"],["type","button","mat-icon-button","","aria-label","remove",3,"click"],[1,"fas","fa-times"]],template:function(a,n){a&1&&(o(0,"form",0),_("ngSubmit",function(){return n.onSubmit()}),$(1,fi,19,7,"div",1,X),o(3,"button",2),_("click",function(){return n.addSocialUrl()}),o(4,"span",3),s(5,"i",4),i(),o(6,"span"),l(7),i()(),o(8,"div",5)(9,"button",6),l(10," Cancel "),i(),o(11,"button",7),l(12," Save "),i()()()),a&2&&(f("formGroup",n.externalLinksForm),r(),W(n.externalLinksForm.controls.externalLinks.controls),r(2),f("hidden",n.externalLinksForm.value.externalLinks.length>=5),r(4),G(n.externalLinksForm.value.externalLinks.length===0?"Add a link":"Add another"),r(2),f("mat-dialog-close",!1),r(2),f("active",n.processing()))},dependencies:[se,oe,T,P,ie,ae,re,ut,_t,w,E,M,y,k,D,F,L,ce,B,V,vt,xt,ht,Ee,yt,I,Mt],encapsulation:2})}return t})();function gi(t,c){t&1&&(o(0,"mat-error"),l(1," Ending is "),o(2,"strong"),l(3,"required"),i()())}function Ci(t,c){t&1&&(o(0,"mat-error"),l(1," Ending is "),o(2,"strong"),l(3,"invalid"),i()())}var ni=(()=>{class t{fb=b(ye);appService=b(te);userProfileService=b(j);dialogRef=b(q);currentDomain;processing=!1;customUrlSlugForm=this.fb.group({urlSlug:["",O.required]});dialogData=b(z);constructor(){this.currentDomain=this.appService.currentDomain,this.customUrlSlugForm.controls.urlSlug.setValue(this.dialogData.urlSlug)}
3onFormSubmit(){if(this.customUrlSlugForm.invalid)return;this.processing=!0;let e={user_profile:{url_slug:this.customUrlSlugForm.value.urlSlug}};this.userProfileService.updateProfile(this.dialogData.urlSlug,e).subscribe(a=>{window.location.pathname=`/profile/${a.url_slug}`},()=>{this.processing=!1})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-edit-profile-url"]],decls:23,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],[3,"ngSubmit","formGroup"],["appDialogScroll",""],[1,"sm"],["type","text","matInput","","maxlength","50","formControlName","urlSlug","pattern","[a-zA-Z0-9_\\-]+"],["align","end"],["mat-button","","color","accent",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","submit","appLoadingBtn","",1,"custom","auto",3,"active"]],template:function(a,n){a&1&&(o(0,"h3",0),l(1,"Edit profile URL"),i(),o(2,"button",1),s(3,"i",2),i(),o(4,"form",3),_("ngSubmit",function(){return n.onFormSubmit()}),o(5,"mat-dialog-content",4)(6,"p",5),l(7,"Changing your URL ending will make your previous URL available to other users."),i(),o(8,"mat-form-field")(9,"mat-label"),l(10,"Ending"),i(),s(11,"input",6),o(12,"mat-hint"),l(13),i(),o(14,"mat-hint",7),l(15),i(),p(16,gi,4,0,"mat-error"),p(17,Ci,4,0,"mat-error"),i()(),o(18,"mat-dialog-actions",7)(19,"button",8),l(20,"Cancel"),i(),o(21,"button",9),l(22," Save "),i()()()),a&2&&(r(4),f("formGroup",n.customUrlSlugForm),r(9),Se("",n.currentDomain,"/profile/",n.customUrlSlugForm.value.urlSlug),r(2),h("",(n.customUrlSlugForm.value.urlSlug==null?null:n.customUrlSlugForm.value.urlSlug.length)||0,"/50"),r(),u(n.customUrlSlugForm.controls.urlSlug.errors!=null&&n.customUrlSlugForm.controls.urlSlug.errors.required?16:-1),r(),u(n.customUrlSlugForm.controls.urlSlug.errors!=null&&n.customUrlSlugForm.controls.urlSlug.errors.pattern?17:-1),r(2),f("mat-dialog-close",!1),r(2),f("active",n.processing))},dependencies:[se,oe,T,P,ie,Q,ke,ae,re,w,E,M,y,k,A,H,N,D,F,L,R,ce,B,V,Y,I],encapsulation:2})}return t})();var bi=["editWebsiteBtnDialogTpl"],xi=["editSocialLinkDialogTpl"],hi=["notificationContentRef"],vi=["uploader"],Si=t=>["/user",t,"settings"];function ki(t,c){t&1&&(o(0,"div",14)(1,"div",17)(2,"div",18)(3,"div",19)(4,"content-loader",20),Fe(),s(5,"rect",21),i()()(),Qe(),o(6,"div",22)(7,"div",19)(8,"content-loader",20),Fe(),s(9,"rect",21),i()()()()())}function yi(t,c){if(t&1){let e=x();o(0,"span",31)(1,"button",49),_("click",function(){g(e);let n=m(2);return C(n.uploadProfileImg())}),s(2,"i",50),i()()}}function Mi(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Ei(t,c){if(t&1){let e=x();o(0,"span",39,9)(2,"button",53),_("click",function(){g(e);let n=U(1),d=m(2),v=U(3);return C(d.showDisplayNameInput(v,n))}),s(3,"i",50),i()()}}function wi(t,c){if(t&1&&(o(0,"span",39)(1,"a",54),s(2,"i",55),i()()),t&2){let e=m(2);r(),f("routerLink",Ke(1,Si,e.profile.user_short_token))}}function Ti(t,c){if(t&1&&(o(0,"p",40),l(1),i()),t&2){let e=m(2);r(),G(e.profile.pronouns)}}function Pi(t,c){t&1&&ve(0)}function Li(t,c){t&1&&ve(0)}function Fi(t,c){if(t&1){let e=x();o(0,"div",56)(1,"div",57)(2,"app-ms-toggle",58),ee("ngModelChange",function(n){g(e);let d=m(2);return K(d.editMode,n)||(d.editMode=n),C(n)}),l(3," Edit "),i()()()}if(t&2){let e=m(2);be("small-screen",e.isXs)("help-button-space",e.appSettings.helpButton)("chat-widget-space",e.appSettings.aiChatWidget),r(2),J("ngModel",e.editMode)}}function Di(t,c){t&1&&ve(0)}function Vi(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Bi(t,c){if(t&1){let e=x();o(0,"div",47)(1,"div",59)(2,"div",60)(3,"div",61)(4,"button",62),_("click",function(){g(e);let n=m(2);return C(n.browseButton(!0))}),o(5,"span",63),s(6,"i",64),i(),o(7,"span"),l(8,"Browse button"),i()()(),s(9,"div",65),i(),p(10,Vi,3,0,"div",32),i()()}if(t&2){let e=m(2);r(10),u(e.spinnerObj.addBrowseButton?10:-1)}}function Ii(t,c){if(t&1){let e=x();o(0,"span",68)(1,"button",69),_("click",function(){g(e);let n=m(3);return C(n.browseButton(!1))}),s(2,"i",70),i()()}}function Ui(t,c){if(t&1&&(o(0,"div",48)(1,"span",66)(2,"a",67),l(3," Browse all causes "),i(),p(4,Ii,3,0,"span",68),i()()),t&2){let e=m(2);r(4),u(e.editMode?4:-1)}}function Oi(t,c){if(t&1&&(o(0,"div",23)(1,"div",24)(2,"div",25)(3,"div",26)(4,"div",27)(5,"div",28)(6,"div",29),s(7,"img",30),p(8,yi,3,0,"span",31),p(9,Mi,3,0,"div",32),i(),o(10,"div",33)(11,"p",34)(12,"span",35),s(13,"i",36),i(),l(14,"A Giving Profile for "),i(),o(15,"div",37)(16,"p",38),l(17),i(),p(18,Ei,4,0,"span",39),p(19,wi,3,3,"span",39),i(),p(20,Ti,2,1,"p",40),i()()()(),o(21,"div",41)(22,"div",27),ge(23,Pi,1,0,"ng-container",42)(24,Li,1,0,"ng-container",42),i()()(),p(25,Fi,4,7,"div",43),i(),o(26,"div",44)(27,"div",41)(28,"div",45),ge(29,Di,1,0,"ng-container",42),i()(),o(30,"div",46),p(31,Bi,11,1,"div",47),p(32,Ui,5,1,"div",48),i()()()),t&2){let e=m(),a=U(5),n=U(7),d=U(9);
3be("bg-white",!e.editMode&&!e.profile.display_causes),r(7),f("url",e.profile.user_profile_picture),r(),u(e.editMode?8:-1),r(),u(e.spinnerObj.profileImage?9:-1),r(8),G(e.profile.display_name),r(),u(e.editMode?18:-1),r(),u(e.currentUser.mighty_admin||e.currentUser.brand_admin?19:-1),r(),u(e.profile.pronouns?20:-1),r(3),f("ngTemplateOutlet",a),r(),f("ngTemplateOutlet",n),r(),u(e.disableEditMode?-1:25),r(4),f("ngTemplateOutlet",d),r(2),u(e.editMode&&!e.profile.display_browse_all_btn?31:-1),r(),u(e.profile.display_browse_all_btn?32:-1)}}function Ai(t,c){t&1&&(o(0,"mat-error"),l(1," Display name is "),o(2,"strong"),l(3,"required"),i()())}function Ni(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Ri(t,c){if(t&1){let e=x();o(0,"form",71),_("ngSubmit",function(){g(e);let n=m();return C(n.onDisplayNameFormSubmit())}),o(1,"mat-form-field")(2,"mat-label"),l(3,"Display name"),i(),s(4,"input",72),o(5,"mat-hint"),l(6,"Does not change your account name."),i(),p(7,Ai,4,0,"mat-error"),i(),o(8,"div",73)(9,"mat-form-field")(10,"mat-label"),l(11,"Pronouns"),i(),s(12,"input",74),o(13,"mat-hint"),l(14,"Optional"),i(),o(15,"mat-hint",75),l(16),i()()(),o(17,"div",76)(18,"button",77),_("click",function(){g(e);let n=m();return C(n.displayNameInputRef.close())}),l(19," Cancel "),i(),o(20,"button",78),l(21,"Save"),i()(),p(22,Ni,3,0,"div",32),i()}if(t&2){let e=m();f("formGroup",e.displayNameForm),r(7),u(e.displayNameForm.controls.displayName.errors!=null&&e.displayNameForm.controls.displayName.errors.required?7:-1),r(9),h("",(e.displayNameForm.value.pronouns==null?null:e.displayNameForm.value.pronouns.length)||0,"/30"),r(6),u(e.spinnerObj.displayName?22:-1)}}function ji(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Gi(t,c){if(t&1){let e=x();o(0,"div",79)(1,"div",61)(2,"button",62),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("userBio"))}),o(3,"span",63),s(4,"i",64),i(),o(5,"span"),l(6,"Bio"),i()()(),s(7,"div",65),p(8,ji,3,0,"div",32),i()}if(t&2){let e=m(2);r(8),u(e.spinnerObj.userBio?8:-1)}}function $i(t,c){if(t&1&&(o(0,"p",81),l(1),i()),t&2){let e=m(3);r(),G(e.profile.user_bio)}}function Wi(t,c){t&1&&(o(0,"div",88)(1,"div",89)(2,"span")(3,"span",35),s(4,"i",90),i(),l(5," No bio added. "),i()()())}function qi(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function zi(t,c){if(t&1){let e=x();o(0,"div",80)(1,"div",61)(2,"button",82),s(3,"i",83),i(),o(4,"mat-menu",84,10)(6,"button",85),_("click",function(){g(e);let n=m(2);return C(n.editUserBio())}),s(7,"mat-icon",86),l(8," Edit "),i(),o(9,"button",85),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("userBio"))}),s(10,"mat-icon",87),l(11," Hide section "),i()()(),o(12,"div",65),p(13,$i,2,1,"p",81)(14,Wi,6,0,"div",88),i(),p(15,qi,3,0,"div",32),i()}if(t&2){let e=U(5),a=m(2);r(2),f("matMenuTriggerFor",e),r(11),u(a.profile.user_bio?13:14),r(2),u(a.spinnerObj.userBio?15:-1)}}function Hi(t,c){if(t&1&&(o(0,"p",81),l(1),i()),t&2){let e=m(2);r(),G(e.profile.user_bio)}}function Qi(t,c){if(t&1&&(p(0,Gi,9,1,"div",79),p(1,zi,16,3,"div",80),p(2,Hi,2,1,"p",81)),t&2){let e=m();u(e.editMode&&!e.profile.display_user_bio?0:-1),r(),u(e.editMode&&e.profile.display_user_bio?1:-1),r(),u(!e.editMode&&e.profile.display_user_bio?2:-1)}}function Yi(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Zi(t,c){if(t&1){let e=x();o(0,"div",60)(1,"div",61)(2,"button",62),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("links"))}),o(3,"span",63),s(4,"i",64),i(),o(5,"span"),l(6,"Links"),i()()(),s(7,"div",65),p(8,Yi,3,0,"div",32),i()}if(t&2){let e=m(2);r(8),u(e.spinnerObj.links?8:-1)}}function Xi(t,c){if(t&1&&(o(0,"a",97)(1,"span",63),s(2,"i",100),i(),o(3,"span"),l(4),i()()),t&2){let e=m(4);Ve("aria-label",Be("",e.profile.website_btn_label," (opens in new window)")),f("href",e.profile.website_url,De),r(4),G(e.profile.website_btn_label)}}function Ji(t,c){if(t&1){let e=x();o(0,"button",101),_("click",function(){let n=g(e).$implicit,d=m(4);return C(d.externalLinkOnClick(n))}),s(1,"i"),i()}if(t&2){let e=c.$implicit,a=c.$index,n=c.$count;be("me-1",a!==n-1),r(),xe(e.external_link_type_icon_class)}}function Ki(t,c){if(t&1&&(p(0,Xi,5,4,"a",97),o(1,"div",98),$(2,Ji,2,4,"button",99,X),i()),t&2){let e=m(3);u(e.profile.website_url?0:-1),r(2),W(e.externalLinks)}}function en(t,c){t&1&&(o(0,"div",89)(1,"span")(2,"span",35),s(3,"i",90),i(),l(4," No links added. "),i()())}function tn(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function nn(t,c){if(t&1){let e=x();o(0,"div",91)(1,"div",61)(2,"button",93),s(3,"i",83),i(),o(4,"mat-menu",84,11)(6,"button",85),_("click",function(){g(e);let n=m(2);return C(n.editWebsiteBtn())}),s(7,"mat-icon",94),l(8," Website button "),i(),o(9,"button",85),_("click",function(){g(e);let n=m(2);return C(n.editSocialLinks())}),s(10,"mat-icon",95),l(11," Social links "),i(),o(12,"button",85),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("links"))}),s(13,"mat-icon",87),l(14," Hide section "),i()()(),o(15,"div",96),p(16,Ki,4,1),p(17,en,5,0,"div",89),i(),p(18,tn,3,0,"div",32),i()}if(t&2){let e=U(5),a=m(2);r(2),f("matMenuTriggerFor",e),r(14),u(a.profile.website_url||a.externalLinks.length>0?16:-1),r(),u(!a.profile.website_url&&a.externalLinks.length<=0?17:-1),r(),u(a.spinnerObj.links?18:-1)}}function on(t,c){if(t&1&&(o(0,"a",97)(1,"span",63),s(2,"i",100),i(),o(3,"span"),l(4),i()()),t&2){let e=m(3);Ve("aria-label",Be("",e.profile.website_btn_label," (opens in new window)")),f("href",e.profile.website_url,De),r(4),G(e.profile.website_btn_label)}}function an(t,c){if(t&1){let e=x();o(0,"button",101),_("click",function(){let n=g(e).$implicit,d=m(3);return C(d.externalLinkOnClick(n))}),s(1,"i"),i()}if(t&2){let e=c.$implicit,a=c.$index,n=c.$count;be("me-1",a!==n-1),r(),xe(e.external_link_type_icon_class)}}function rn(t,c){if(t&1&&(o(0,"div",92)(1,"div",48),p(2,on,5,4,"a",97),o(3,"div",98),$(4,an,2,4,"button",99,X),i()()()),t&2){let e=m(2);r(2),u(e.profile.website_url?2:-1),r(2),W(e.externalLinks)}}function ln(t,c){if(t&1&&(p(0,Zi,9,1,"div",60),p(1,nn,19,4,"div",91),p(2,rn,6,1,"div",92)),t&2){let e=m();u(e.editMode&&!e.profile.display_social_links?0:-1),r(),u(e.editMode&&e.profile.display_social_links?1:-1),r(),u(!e.editMode&&e.profile.display_social_links&&(e.profile.website_url||e.externalLinks.length>0)?2:-1)}}function sn(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function cn(t,c){if(t&1){let e=x();o(0,"div",41)(1,"div",102)(2,"div",60)(3,"div",61)(4,"button",62),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("causeList"))}),o(5,"span",63),s(6,"i",64),i(),o(7,"span"),l(8,"Cause List"),i()()(),o(9,"div",96)(10,"p",103),l(11,"Add a list of causes and encourage others to support them"),i()(),p(12,sn,3,0,"div",32),i()()()}if(t&2){let e=m(2);r(12),u(e.spinnerObj.causeList?12:-1)}}function mn(t,c){if(t&1){let e=x();o(0,"span",39,13)(2,"button",112),_("click",function(){g(e);let n=U(1),d=m(3),v=U(15);return C(d.showCauseTitleInput(v,n))}),s(3,"i",83),i()()}}function dn(t,c){if(t&1){let e=x();o(0,"div",60)(1,"div",61)(2,"button",62),_("click",function(){g(e);let n=m().$index,d=m(3);return C(d.addUpdateCaption(n))}),o(3,"span",63),s(4,"i",64),i(),o(5,"span"),l(6,"Caption"),i()()(),s(7,"div",65),i()}}function pn(t,c){if(t&1){let e=x();o(0,"div",91)(1,"div",61)(2,"button",101),_("click",function(){g(e);let n=m().$index,d=m(3);return C(d.addUpdateCaption(n))}),s(3,"i",83),i()(),o(4,"div",120),l(5),i()()}if(t&2){let e=m().$implicit;r(5),h(" ",e.caption," ")}}function un(t,c){if(t&1){let e=x();o(0,"div",113),_("cdkDropListDropped",function(n){g(e);let d=m(3);return C(d.dropListDropped(n))}),o(1,"div",114)(2,"span",115)(3,"button",116),s(4,"i",117),i()(),o(5,"div",118),s(6,"app-horizontal-tile",119),i(),o(7,"span",68)(8,"button",69),_("click",function(){let n=g(e).$index,d=m(3);return C(d.removeCause(n))}),s(9,"i",70),i()(),p(10,dn,8,0,"div",60)(11,pn,6,1,"div",91),i()()}if(t&2){let e=c.$implicit,a=c.$index;f("hidden",e.badge.deleted_at)("cdkDropListData",a),r(6),f("badge",e.badge),r(4),u(e.caption?11:10)}}function _n(t,c){if(t&1){let e=x();o(0,"div",47)(1,"div",121)(2,"div",122)(3,"div",123)(4,"div",61)(5,"button",124),_("click",function(){g(e);let n=m(3);return C(n.addCause())}),o(6,"span",63),s(7,"i",64),i(),o(8,"span"),l(9,"Cause"),i()()(),o(10,"div",125),s(11,"div",126)(12,"div",127),i()()()()()}}function fn(t,c){t&1&&(o(0,"div",111),s(1,"mat-spinner",128),i())}function gn(t,c){if(t&1){let e=x();o(0,"div",41)(1,"div",129)(2,"button",130),_("click",function(){g(e);let n=m(3);return C(n.onShowMore())}),s(3,"i",131),l(4,"Show more "),i()()()}}function Cn(t,c){if(t&1){let e=x();o(0,"div",59)(1,"div",104)(2,"p",105),l(3),i(),p(4,mn,4,0,"span",39),i(),o(5,"p",106),l(6),i(),o(7,"span",68)(8,"button",107),s(9,"i",83),i(),o(10,"mat-menu",84,12)(12,"button",85),_("click",function(){g(e);let n=m(2);return C(n.addCause())}),s(13,"mat-icon",108),l(14," Add cause "),i(),o(15,"button",85),_("click",function(){g(e);let n=m(2);return C(n.toggleSection("causeList"))}),s(16,"mat-icon",87),l(17," Hide section "),i()()()(),o(18,"div",109),$(19,un,12,4,"div",110,X),p(21,_n,13,0,"div",47)(22,fn,2,0,"div",111),i(),p(23,gn,5,0,"div",41)}if(t&2){let e=U(11),a=m(2);r(3),G(a.profile.cause_section_title||"My Cause List"),r(),u(a.editMode?4:-1),r(2),h(" ",a.profile.cause_section_subtext||"Click a cause to learn more and donate."," "),r(2),f("matMenuTriggerFor",e),r(11),W(a.cause.data),r(2),u(a.cause.loading?22:21),r(2),u(a.cause.data.length<a.cause.total?23:-1)}}function bn(t,c){if(t&1){let e=x();o(0,"div",136)(1,"button",139),_("click",function(){g(e);let n=m().$implicit,d=m(3);return C(d.quickAdd(n.badge))}),s(2,"i",140),i()()}}function xn(t,c){t&1&&(o(0,"div",137)(1,"div",141)(2,"p",142)(3,"span",143),s(4,"i",144),i(),l(5,"Added to cart "),i(),o(6,"a",145)(7,"span",143),s(8,"i",146),i(),l(9,"Go to cart "),i()()())}function hn(t,c){if(t&1&&(o(0,"div",138),l(1),i()),t&2){let e=m().$implicit;r(),h(" ",e.caption," ")}}function vn(t,c){if(t&1&&(o(0,"div",134)(1,"div",135),s(2,"app-horizontal-tile",119),p(3,bn,3,0,"div",136),p(4,xn,10,0,"div",137),i(),p(5,hn,2,1,"div",138),i()),t&2){let e=c.$implicit,a=m(3);f("hidden",e.badge.deleted_at),r(2),f("badge",e.badge),r(),u(!a.addedToCart[e.badge.perm_urn]&&e.badge.type!=="Campaign"&&e.badge.type!=="Group"?3:-1),r(),u(a.addedToCart[e.badge.perm_urn]?4:-1),r(),u(e.caption?5:-1)}}function Sn(t,c){t&1&&(o(0,"div",111),s(1,"mat-spinner",128),i())}function kn(t,c){if(t&1){let e=x();o(0,"div",19)(1,"div",41)(2,"div",129)(3,"button",130),_("click",function(){g(e);let n=m(3);return C(n.onShowMore())}),s(4,"i",131),l(5,"Show more "),i()()()()}}function yn(t,c){if(t&1&&(o(0,"div",41)(1,"div",48)(2,"p",132),l(3),i(),o(4,"p",133),l(5),i()(),$(6,vn,6,5,"div",134,X),p(8,Sn,2,0,"div",111),p(9,kn,6,0,"div",19),i()),t&2){let e=m(2);r(3),G(e.profile.cause_section_title||"My Cause List"),r(2),h(" ",e.profile.cause_section_subtext||"Click a cause to learn more and donate."," "),r(),W(e.cause.data),r(2),u(e.cause.loading?8:-1),r(),u(e.cause.data.length<e.cause.total?9:-1)}}function Mn(t,c){if(t&1&&(p(0,cn,13,1,"div",41),p(1,Cn,24,6),p(2,yn,10,4,"div",41)),t&2){let e=m();u(e.editMode&&!e.profile.display_causes?0:-1),r(),u(e.editMode&&e.profile.display_causes?1:-1),r(),u(!e.editMode&&e.profile.display_causes?2:-1)}}function En(t,c){t&1&&(o(0,"mat-error"),l(1," Button label is "),o(2,"strong"),l(3,"required"),i()())}function wn(t,c){t&1&&(o(0,"mat-error"),l(1," Link URL is "),o(2,"strong"),l(3,"required"),i()())}function Tn(t,c){t&1&&(o(0,"mat-error"),l(1," Link URL is "),o(2,"strong"),l(3,"invali
3d"),i()())}function Pn(t,c){if(t&1){let e=x();o(0,"form",147),_("ngSubmit",function(){g(e);let n=m();return C(n.onUpdateWebsiteButton())}),o(1,"mat-form-field")(2,"mat-label"),l(3,"Button label"),i(),s(4,"input",148),p(5,En,4,0,"mat-error"),i(),o(6,"mat-form-field")(7,"mat-label"),l(8,"Link URL"),i(),s(9,"input",149),p(10,wn,4,0,"mat-error"),p(11,Tn,4,0,"mat-error"),i(),o(12,"div",150)(13,"button",151),_("click",function(){g(e);let n=m();return C(n.removeWebsiteBtn())}),s(14,"i",152),l(15,"Remove button "),i()(),o(16,"div",153)(17,"button",154),l(18," Cancel "),i(),o(19,"button",155),l(20," Save "),i()()()}if(t&2){let e=m();f("formGroup",e.websiteBtnForm),r(5),u(e.websiteBtnForm.controls.buttonLabel.errors!=null&&e.websiteBtnForm.controls.buttonLabel.errors.required?5:-1),r(5),u(e.websiteBtnForm.controls.url.errors!=null&&e.websiteBtnForm.controls.url.errors.required?10:-1),r(),u(e.websiteBtnForm.controls.url.errors!=null&&e.websiteBtnForm.controls.url.errors.invalidUrl?11:-1),r(6),f("mat-dialog-close",!1),r(2),f("active",e.spinnerObj.websiteBtn)}}function Ln(t,c){if(t&1){let e=x();o(0,"h3",156),l(1,"Edit Social links"),i(),o(2,"button",157),s(3,"i",158),i(),o(4,"mat-dialog-content")(5,"app-external-link-settings",159),_("updateExternalLinks",function(n){g(e);let d=m();return C(d.onUpdateExternalLinks(n))}),i()()}if(t&2){let e=m();r(5),f("externalLinks",e.externalLinks)("processing",e.spinnerObj.socialLinks)}}function Fn(t,c){t&1&&(o(0,"mat-error"),l(1," Title is "),o(2,"strong"),l(3,"required"),i()())}function Dn(t,c){t&1&&(o(0,"div",32)(1,"div",51),s(2,"mat-spinner",52),i()())}function Vn(t,c){if(t&1){let e=x();o(0,"form",160),_("ngSubmit",function(){g(e);let n=m();return C(n.onCauseTitleFormSubmit())}),o(1,"mat-form-field")(2,"mat-label"),l(3,"Section title"),i(),s(4,"input",161),o(5,"mat-hint",75),l(6),i(),p(7,Fn,4,0,"mat-error"),i(),o(8,"mat-form-field")(9,"mat-label"),l(10,"Subtext"),i(),s(11,"input",162),o(12,"mat-hint",75),l(13),i()(),o(14,"div",76)(15,"button",77),_("click",function(){g(e);let n=m();return C(n.causeTitleInputRef.close())}),l(16," Cancel "),i(),o(17,"button",78),l(18,"Save"),i()(),p(19,Dn,3,0,"div",32),i()}if(t&2){let e=m();f("formGroup",e.causeTitleForm),r(6),h("",(e.causeTitleForm.controls.title.value==null?null:e.causeTitleForm.controls.title.value.length)||0,"/30"),r(),u(e.causeTitleForm.controls.title.errors!=null&&e.causeTitleForm.controls.title.errors.required?7:-1),r(6),h("",(e.causeTitleForm.controls.subtext.value==null?null:e.causeTitleForm.controls.subtext.value.length)||0,"/60"),r(6),u(e.spinnerObj.causeTitle?19:-1)}}function Bn(t,c){if(t&1){let e=x();o(0,"p",164)(1,"span",35),s(2,"i",165),i(),l(3,"This Profile is in private mode. "),i(),o(4,"div",166)(5,"button",167),_("click",function(){g(e);let n=m(2);return C(n.makePublic())}),o(6,"span",168),s(7,"i",169),i(),l(8,"Make public "),i()()}}function In(t,c){if(t&1){let e=x();o(0,"p",164)(1,"span",35),s(2,"i",170),i(),l(3,"This Profile is in public mode. "),i(),o(4,"div",166)(5,"button",171)(6,"span",63),s(7,"i",172),i(),o(8,"span"),l(9,"Copy profile URL"),i()(),o(10,"button",167),_("click",function(){g(e);let n=m(2);return C(n.editUrl())}),o(11,"span",63),s(12,"i",173),i(),o(13,"span"),l(14,"Edit URL"),i()(),o(15,"button",167),_("click",function(){g(e);let n=m(2);return C(n.makePrivate())}),o(16,"span",174),s(17,"i",175),i(),l(18,"Make private "),i()()}if(t&2){let e=m(2);r(5),f("appCopyText",e.profileUrl)}}function Un(t,c){if(t&1&&(o(0,"div",163),p(1,Bn,9,0)(2,In,19,1),i()),t&2){let e=m();r(),u(e.profile.published_at?2:1)}}var sr=(()=>{class t{dialog=b(mt);fb=b(Me);popper=b(Vt);userService=b(Et);appService=b(te);pageTagsService=b(st);uploadCareService=b(Nt);userProfileService=b(j);externalLinkService=b(Le);webAnalyticsService=b(Ft);notificationService=b(Tt);cartService=b(ct);editWebsiteBtnDialogTpl=he("editWebsiteBtnDialogTpl");editSocialLinkDialogTpl=he("editSocialLinkDialogTpl");notificationContentRef=he("notificationContentRef");brand;currentUser;profile;editMode=!1;disableEditMode=!1;profileUrl;uploader=he.required("uploader");displayNameInputRef;causeTitleInputRef;socialLinksDialogRef;websiteBtnDialogRef;externalLinks=[];appSettings;addedToCart={};cart;cause={total:0,data:[],page:1,perPage:6,loading:!1};spinnerObj={displayName:!1,profileImage:!1,userBio:!1,causeList:!1,causeTitle:!1,addBrowseButton:!1,socialLinks:!1,websiteBtn:!1};displayNameForm=this.fb.group({displayName:["",[O.required]],pronouns:[""]});causeTitleForm=this.fb.group({title:["",[O.required]],subtext:[""]});websiteBtnForm=this.fb.group({buttonLabel:["",O.required],url:["",O.compose([O.required,Ue.urlValidator])]});subscription=new je;platformId=b(Ye);constructor(){this.currentUser=this.userService.currentUser,this.cart=this.cartService.cart,this.brand=this.appService.currentBrand,this.appSett
3ings=this.appService.settings,this.profile=this.userProfileService.profile,this.profile.user_profile_causes_count>0&&this.getCauses(),this.profile.external_links_count>0&&this.getExternalLinks(),this.appService.currentBrandObservable.subscribe(()=>{this.profileUrl=`${this.appService.currentDomain}/profile/${this.profile.url_slug}`,this.pageTagsService.createLinkForCanonicalURL("/profile",this.appService.generateHostname()),this.pageTagsService.setPageTitle("Giving Profile"),this.profile.user_bio&&this.pageTagsService.setPageDescription(this.profile.user_bio),this.webAnalyticsService.pageView(),this.pageTagsService.setNoIndexTag()})}ngOnInit(){ot(this.platformId)&&(this.userProfileService.trackProfileView(this.profile.id),this.currentUser.id&&this.evalEditMode(),this.subscription.add(this.userService.changeCurrentUser.subscribe(()=>this.evalEditMode())),this.subscription.add(this.userProfileService.changeUserProfile.subscribe(()=>this.evalEditMode())))}ngOnDestroy(){this.subscription.unsubscribe(),this.notificationService.close()}makePublic(){if(this.profile.url_slug===this.profile.user_short_token){let e={urlSlug:this.profile.url_slug};this.dialog.open(ei,{data:e})}else this.userProfileService.publishProfile(this.profile.url_slug).subscribe(e=>{this.userProfileService.profile=e})}makePrivate(){let e={user_profile:{published_at:null}};this.userProfileService.updateProfile(this.profile.url_slug,e).subscribe(a=>{this.userProfileService.profile=a})}editUrl(){let e={urlSlug:this.profile.url_slug};this.dialog.open(ni,{data:e})}showDisplayNameInput(e,a){this.displayNameForm.controls.displayName.setValue(this.profile.display_name),this.displayNameForm.controls.pronouns.setValue(this.profile.pronouns),this.displayNameInputRef=this.popper.open({content:e,origin:a})}onDisplayNameFormSubmit(){if(this.displayNameForm.invalid)return;this.spinnerObj.displayName=!0;let e={display_name:this.displayNameForm.value.displayName,pronouns:this.displayNameForm.value.pronouns};this.userService.updateUser(this.profile.user_short_token,e).subscribe({next:a=>{this.userService.user=a,this.userProfileService.profile={display_name:a.display_name,pronouns:a.pronouns},this.spinnerObj.displayName=!1,this.displayNameInputRef.close()},error:()=>{this.displayNameForm.controls.displayName.setValue(this.profile.display_name),this.displayNameForm.controls.pronouns.setValue(this.profile.pronouns),this.spinnerObj.displayName=!1,this.displayNameInputRef.close()}})}uploadProfileImg(){this.uploadCareService.getExistingUCImageUrl(this.profile.user_profile_picture,!1).then(a=>{this.uploader().removeAllFiles(),a&&this.uploader().addFileFromCdnUrl(a),this.uploader().initFlow()}).catch(()=>{this.uploader().removeAllFiles(),this.uploader().initFlow()})}onUploadSuccess(e){this.spinnerObj.profileImage=!0;let a={cover_image_url:e.cdnUrl,cover_image_uuid:e.uuid};this.userService.updateUser(this.profile.user_short_token,a).subscribe({next:n=>{this.userService.user=n,this.userProfileService.profile={user_profile_picture:n.user_profile_picture},this.spinnerObj.profileImage=!1},error:()=>{this.spinnerObj.profileImage=!1}})}toggleSection(e){let a={};switch(e){case"userBio":a.display_user_bio=!this.profile.display_user_bio;break;case"links":a.display_social_links=!this.profile.display_social_links;break;case"causeList":a.display_causes=!this.profile.display_causes;break;case"causeBrowseBtn":a.display_browse_all_btn=!this.profile.display_browse_all_btn;break;default:return}this.spinnerObj[e]=!0,this.userProfileService.updateProfile(this.profile.url_slug,{user_profile:a}).subscribe(n=>{this.userProfileService.profile=n,this.spinnerObj[e]=!1})}editUserBio(){this.dialog.open(ti,{data:{bio:this.profile.user_bio,urlSlug:this.profile.url_slug}})}editWebsiteBtn(){this.websiteBtnForm.setValue({buttonLabel:this.profile.website_btn_label,url:this.profile.website_url}),this.websiteBtnDialogRef=this.dialog.open(this.editWebsiteBtnDialogTpl())}editSocialLinks(){this.socialLinksDialogRef=this.dialog.open(this.editSocialLinkDialogTpl())}onUpdateExternalLinks(e){this.spinnerObj.socialLinks=!0;let a={user_profile_id:this.profile.id,delete:e.deletedLinks,create:e.createdLinks,update:e.updatedLinks};this.externalLinkService.bulkActions(a).subscribe({next:n=>{this.spinnerObj.socialLinks=!1,this.externalLinks=n,this.socialLinksDialogRef.close()},error:()=>this.spinnerObj.socialLinks=!1})}showCauseTitleInput(e,a){this.causeTitleForm.controls.title.setValue(this.profile.cause_section_title),this.causeTitleForm.controls.subtext.setValue(this.profile.cause_section_subtext),this.causeTitleInputRef=this.popper.open({content:e,origin:a})}
3onCauseTitleFormSubmit(){if(this.causeTitleForm.invalid)return;this.spinnerObj.causeTitle=!0;let e={user_profile:{cause_section_title:this.causeTitleForm.value.title,cause_section_subtext:this.causeTitleForm.value.subtext}};this.userProfileService.updateProfile(this.profile.url_slug,e).subscribe({next:a=>{this.userProfileService.profile=a,this.spinnerObj.causeTitle=!1,this.causeTitleInputRef.close()},error:()=>{this.causeTitleForm.controls.title.setValue(this.profile.cause_section_title),this.causeTitleForm.controls.subtext.setValue(this.profile.cause_section_subtext),this.spinnerObj.causeTitle=!1,this.causeTitleInputRef.close()}})}addCause(){this.dialog.open(Jt,{data:{id:this.profile.id}}).afterClosed().subscribe(a=>{a?.reload?(this.cause.data=[],this.cause.page=1,this.getCauses()):a?.id&&(this.cause.data.push(a),this.cause.total+=1)})}removeCause(e){this.dialog.open(Oe,{data:{title:"Are you sure?",confirmButtonText:"Delete",confirmButtonStyle:"button",confirmButtonColor:"warn",cancelButtonText:"Cancel"}}).afterClosed().subscribe(n=>{n&&this.userProfileService.removeCauses(this.profile.id,this.cause.data[e].id).subscribe(()=>{this.cause.data.splice(e,1),this.cause.total-=1})})}addUpdateCaption(e){this.dialog.open(Kt,{data:{profileId:this.profile.id,id:this.cause.data[e].id,caption:this.cause.data[e].caption}}).afterClosed().subscribe(n=>{n&&(n==="remove"?this.cause.data[e].caption="":this.cause.data[e].caption=n)})}quickAdd(e){this.dialog.open(Zt,{data:{id:e.id,urn:e.urn,type:e.type,kind:e.kind}}).afterClosed().subscribe(n=>{n==="success"&&this.checkItemsAddedToCart()})}browseButton(e){this.spinnerObj.addBrowseButton=!0;let a={user_profile:{display_browse_all_btn:e}};this.userProfileService.updateProfile(this.profile.url_slug,a).subscribe({next:n=>{this.userProfileService.profile=n,this.spinnerObj.addBrowseButton=!1},error:()=>{this.spinnerObj.addBrowseButton=!1}})}dropListDropped(e){let a=e.previousContainer.data,n=e.container.data;a!==n&&(this.updateCausePosition(a,n),Gt(this.cause.data,a,n))}externalLinkOnClick(e){window.open(e.public_url,"_blank")}onUpdateWebsiteButton(){if(this.websiteBtnForm.invalid)return;this.spinnerObj.websiteBtn=!0;let e={user_profile:{website_btn_label:this.websiteBtnForm.value.buttonLabel,website_url:Ue.resolveUrlValue(this.websiteBtnForm.value.url)}};this.userProfileService.updateProfile(this.profile.url_slug,e).subscribe({next:a=>{this.userProfileService.profile=a,this.spinnerObj.websiteBtn=!1,this.websiteBtnDialogRef.close()},error:()=>{this.spinnerObj.websiteBtn=!1}})}removeWebsiteBtn(){return Re(this,null,function*(){let e={title:"Are you sure?",confirmButtonText:"Yes",cancelButtonText:"No"};if(!(yield $e(this.dialog.open(Oe,{data:e}).afterClosed())))return;this.spinnerObj.websiteBtn=!0;let n={user_profile:{website_btn_label:null,website_url:null}};this.userProfileService.updateProfile(this.profile.url_slug,n).subscribe({next:d=>{this.userProfileService.profile=d,this.spinnerObj.websiteBtn=!1,this.websiteBtnDialogRef.close()},error:()=>{this.spinnerObj.websiteBtn=!1}})})}onShowMore(){++this.cause.page,this.getCauses()}getCauses(){this.cause.loading=!0;let e={page:this.cause.page,per_page:this.cause.perPage};this.userProfileService.getCauses(this.profile.id,e).subscribe({next:a=>{this.cause.page===1?(this.cause.data=a.causes,this.cause.total=a.total):this.cause.data=this.cause.data.concat(a.causes),this.cart.id?this.checkItemsAddedToCart():this.cartService.changeCart.subscribe(()=>{this.checkItemsAddedToCart()}),this.cause.loading=!1},error:()=>{this.cause.loading=!1}})}updateCausePosition(e,a){let n={user_profile_cause:{rank:this.computePosition(this.cause.data,e,a)}};this.userProfileService.updateCause(this.profile.id,this.cause.data[e].id,n).subscribe(d=>{this.cause.data[a].rank=d.rank})}getExternalLinks(){let e={user_profile_id:this.profile.id};this.externalLinkService.getLinks(e).subscribe(a=>this.externalLinks=a)}evalEditMode(){this.currentUser.mighty_admin||this.currentUser.brand_admin||this.profile.user_short_token===this.currentUser.user_id?(this.editMode=!0,setTimeout(()=>{this.notificationService.open(this.notificationContentRef(),"fixed")})):(this.editMode=!1,this.disableEditMode=!0,this.notificationService.close())}checkItemsAddedToCart(){this.addedToCart={}
3,this.cart.cart_items.forEach(e=>{let a=!0;e.form_question_answers&&e.form_question_answers.forEach(n=>{typeof n.answer=="object"&&(a=!1)}),a&&(this.addedToCart[e.perm_urn]=!0)})}computePosition(e,a,n){let d=0,v=a<n?"up":"down";return n===0?d=e[n].rank/2:n===e.length-1?d=Math.ceil(e[n].rank+1):v==="up"?d=(e[n].rank+e[n+1].rank)/2:d=(e[n].rank+e[n-1].rank)/2,parseFloat(d.toString())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-profile"]],viewQuery:function(a,n){a&1&&(Ce(n.editWebsiteBtnDialogTpl,bi,5),Ce(n.editSocialLinkDialogTpl,xi,5),Ce(n.notificationContentRef,hi,5),Ce(n.uploader,vi,5)),a&2&&Je(4)},decls:20,vars:1,consts:[["displayNameInlineFieldTpl",""],["userBioSectionTpl",""],["socialLinksSectionTpl",""],["causeListSectionTpl",""],["editWebsiteBtnDialogTpl",""],["editSocialLinkDialogTpl",""],["causeTitleInlineField",""],["uploader",""],["notificationContentRef",""],["displayNameEditBtn",""],["userBioEditMenu","matMenu"],["socialLinksEditMenu","matMenu"],["causeListEditMenu","matMenu"],["causeTitleEditBtn",""],[1,"min-vh-100","page-top-spacer"],[1,"min-vh-100","bg-light",3,"bg-white"],["ctxName","uploader-profile","cropPreset","1:1",3,"uploaded"],[1,"container"],[1,"row","mt-4","mb-3"],[1,"col-12"],["viewBox","0 0 100 25"],["x","0","y","0","rx","3","ry","3","width","100%","height","100%"],[1,"row","mb-5"],[1,"min-vh-100","bg-light"],[1,"bg-white","page-top-spacer"],[1,"container","pt-7","pt-md-4","pb-4"],[1,"row","justify-content-center","mb-4"],[1,"col-12","col-md-6"],[1,"d-flex","justify-content-center","align-items-center"],[1,"profile-img"],["alt","profile image","appLazyLoad","","alt","giving profile","lazy","false",1,"rounded-circle","img-fluid",3,"url"],[1,"position-absolute","top-0","end-0"],[1,"update-overlay"],[1,"ms-4"],[1,"xs","mb-0"],[1,"me-1"],[1,"fa-solid","fa-hands-holding-heart"],[1,"d-flex","align-items-center","mb-1"],[1,"h3","mb-0"],[1,"ms-1"],[1,"sm","mb-0","text-transparent-5"],[1,"row","justify-content-center"],[4,"ngTemplateOutlet"],[1,"floating-edit-button",3,"small-screen","help-button-space","chat-widget-space"],[1,"container","py-5"],[1,"col-12","mb-4"],[1,"row","mt-2","justify-content-center"],[1,"col-12","col-sm-4"],[1,"col-12","text-center"],["mat-mini-fab","","aria-label","Edit profile image","type","button",1,"custom","xs","secondary",3,"click"],[1,"fa-solid","fa-pencil"],[1,"spinner"],["diameter","50"],["mat-mini-fab","","aria-label","Edit display name",1,"custom","xs","secondary",3,"click"],["mat-mini-fab","","aria-label","User Account",1,"custom","xs","secondary",3,"routerLink"],["aria-hidden","true",1,"fa-solid","fa-gear"],[1,"floating-edit-button"],[1,"d-inline-block","bg-white","p-1","shadow","rounded"],[3,"ngModelChange","ngModel"],[1,"position-relative"],[1,"edit-box","min-height","unadded-section"],[1,"edit-btn-box"],["mat-raised-button","","color","accent",1,"custom","pill",3,"click"],[1,"left-icon"],[1,"fas","fa-plus-circle"],[1,"content"],[1,"d-inline-block","position-relative"],["routerLink","/search","mat-stroked-button","","color","primary",1,"custom","auto"],[1,"edit-btn-position"],["mat-mini-fab","","aria-label","Remove",1,"custom","secondary",3,"click"],[1,"fa-light","fa-trash"],[1,"px-2","py-1",3,"ngSubmit","formGroup"],["type","text","matInput","","formControlName","displayName"],[1,"mt-1"],["type","text","matInput","","formControlName","pronouns","maxlength","30"],["align","end"],[1,"text-end","mt-2"],["mat-button","","color","accent","type","button",1,"custom",3,"click"],["mat-button","","color","primary","type","submit",1,"custom"],[1,"edit-box","min-height","unadded-section","mb-4"],[1,"edit-box","min-height","added-section","mb-4"],[1,"mb-0"],["mat-fab","","aria-label","Edit user bio",1,"custom","secondary","ms-1",3,"matMenuTriggerFor"],[1,"fal","fa-pencil"],[1,"auto-width","shadow-lg"],["mat-menu-item","",3,"click"],["fontSet","fal","fontIcon","fa-pencil"],["fontSet","fal","fontIcon","fa-eye-slash"],[1,"text-center"],[1,"status-box"],[1,"fa-light","fa-circle-info"],[1,"edit-box","min-height","added-section"],[1,"row"],["mat-fab","","aria-label","Edit social links",1,"custom","secondary","ms-1",3,"matMenuTriggerFor"],["fontSet","fal","fontIcon","fa-link"],["fontSet","fal","fontIcon","fa-user"],[1,"content","text-center"],["mat-button","","color","accent","target","_blank",1,"custom",3,"href","aria-label"],[1,"d-flex","align-items-center","justify-content-center","mt-1"],["mat-mini-fab","","aria-label","Edit",1,"custom","secondary",3,"me-1"],["aria-hidden","true",1,"fal","fa-link"],["mat-mini-fab","","aria-label","Edit",1,"custom","secondary",3,"click"],[1,"col-12","col-md-8"],[1,"my-2"],[1,"d-flex","align-items-center","justify-content-center","mb-2"],[1,"h2","mb-0"],[1,"text-center","mb-4"],["mat-fab","","aria-label","Edit cause list",1,"custom","secondary","ms-1",3,"matMenuTriggerFor"],["fontSet","fal","fontIcon","fa-plus"],["cdkDropListGroup","",1,"row","justify-content-center"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"col-12","col-sm-4",3,"hidden","cdkDropListData"],[1,"col-12","mt-4","mb-4"],["mat-mini-fab","","aria-label","Edit cause title",1,"custom","secondary",3,"click"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"col-12","col-sm-4",3,"cdkDropListDropped","hidden","cdkDropListData"],["cdkDrag","",1,"position-relative","mb-4"],["cdkDragHandle","",1,"add-btn-position"],["mat-mini-fab","","aria-label","Drag",1,"custom","secondary"],[1,"fa-solid","fa-grip-dots-vertical"],[1,"mb-2"],[3,"badge"],[1,"content","p-2"],[1,"ratio","custom-ratio-25x9","add-cause-tile"],[1,"text-center","pb-2"],[1,"edit-box","h-100","unadded-section"],["mat-raised-button","","color","accent","type","button",1,"custom","pill",3,"click"],[1,"content","d-flex"],[1,"logo-placeholder","h-100","bg-transparent-4"],[1,"details-placeholder","h-100"],[1,"mx-auto"],[1,"col-12","col-md-4"],[1,"toggle-btn",3,"click"],[1,"fa-solid","fa-angle-down"],[1,"h2"],[1,"mb-4"],[1,"col-12","col-sm-4","mb-4",3,"hidden"],[1,"mb-2","tile-wrapper"],[1,"add-to-cart-btn"],[1,"added-to-cart"],[1,"bg-white","p-2","rounded"],["mat-fab","","aria-label","add to cart",1,"custom","primary",3,"click"],[1,"far","fa-shopping-cart"],[1,"d-flex","justify-content-between","align-items-center","h-100"],[1,"added","mb-0","text-secondary"],[1,"me-2"],[1,"fas","fa-check-circle"],["routerLink","/checkout/cart",1,"c-brand-theme","text-decoration-none"],["aria-hidden","true",1,"far","fa-shopping-cart"],[1,"p-2",3,"ngSubmit","formGroup"],["type","text","matInput","","formControlName","buttonLabel"],["type","text","matInput","","formControlName","url","appNormalizeUrl",""],[1,"w-100","text-center"],["type","button","mat-button","","color","warn",1,"custom",3,"click"],[1,"fal","fa-tras
3h"],[1,"d-flex","justify-content-end","mt-2"],["mat-button","","color","accent","type","button",1,"custom","auto",3,"mat-dialog-close"],["mat-button","","color","primary","type","submit","appLoadingBtn","",1,"custom","auto",3,"active"],["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"far","fa-times"],[3,"updateExternalLinks","externalLinks","processing"],[1,"position-relative","px-2","py-1",3,"ngSubmit","formGroup"],["type","text","matInput","","maxlength","30","formControlName","title"],["type","text","matInput","","maxlength","60","formControlName","subtext"],["id","user-profile-header",1,"d-flex","align-items-center","justify-content-between","shadow","bg-light","p-1"],[1,"status-text","mb-0","ms-2"],[1,"fa-regular","fa-eye-slash"],[1,"action-btns"],["mat-button","","type","button","color","accent",1,"custom","me-1",3,"click"],[1,"left-icon","text-primary"],[1,"fa-light","fa-eye"],[1,"fa-regular","fa-eye"],["mat-button","","type","button","color","accent","message","Your profile URL has been copied to your clipboard.",1,"custom","me-1",3,"appCopyText"],[1,"fa-light","fa-copy"],[1,"fa-light","fa-pencil"],[1,"text-primary","left-icon"],[1,"fa-light","fa-eye-slash"]],template:function(a,n){if(a&1){let d=x();p(0,ki,10,0,"div",14)(1,Oi,33,15,"div",15),ge(2,Ri,23,4,"ng-template",null,0,Z)(4,Qi,3,3,"ng-template",null,1,Z)(6,ln,3,3,"ng-template",null,2,Z)(8,Mn,3,3,"ng-template",null,3,Z)(10,Pn,21,6,"ng-template",null,4,Z)(12,Ln,6,2,"ng-template",null,5,Z)(14,Vn,20,5,"ng-template",null,6,Z),o(16,"app-uc-uploader",16,7),_("uploaded",function(oi){return g(d),C(n.onUploadSuccess(oi))}),i(),ge(18,Un,3,1,"ng-template",null,8,Z)}a&2&&u(n.profile!=null&&n.profile.id?1:0)},dependencies:[nt,lt,rt,le,oe,T,P,ie,Q,ne,se,ae,re,Ht,zt,qt,Wt,$t,w,E,pt,M,dt,y,k,A,N,D,F,L,R,ce,Te,we,B,V,Ot,It,Bt,Ut,kt,St,At,Lt,Pt,Xt,jt,I,Yt,Pe,ii,Rt],styles:[".profile-img[_ngcontent-%COMP%]{position:relative;width:100px;height:100px}.tile-wrapper[_ngcontent-%COMP%]{position:relative;z-index:2}.tile-wrapper[_ngcontent-%COMP%]   .add-to-cart-btn[_ngcontent-%COMP%]{position:absolute;top:50%;-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);-webkit-transform:translate(0,-50%);transform:translateY(-50%);text-transform:uppercase;letter-spacing:.2em;z-index:3}.tile-wrapper[_ngcontent-%COMP%]   .add-to-cart-btn[_ngcontent-%COMP%]{right:-13px}.tile-wrapper[_ngcontent-%COMP%]   .added-to-cart[_ngcontent-%COMP%]{position:absolute;inset:0;background:var(--mc-neutral-300);border-radius:var(--mc-radius-2);z-index:4;padding:0 18px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--mc-radius-5);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.5}.cdk-drop-list-dragging[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){display:none}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.floating-edit-button[_ngcontent-%COMP%]{position:fixed;z-index:11;bottom:1rem;right:.5rem}.floating-edit-button.small-screen[_ngcontent-%COMP%]{bottom:4rem}.floating-edit-button.help-button-space[_ngcontent-%COMP%]{right:calc(1.5rem + var(--mc-mat-fab-size))}.floating-edit-button.chat-widget-space[_ngcontent-%COMP%]{right:calc(64px + 4rem)}.add-cause-tile.custom-ratio-25x9[_ngcontent-%COMP%]{--bs-aspect-ratio: 36% }.add-cause-tile[_ngcontent-%COMP%]   .logo-placeholder[_ngcontent-%COMP%]{width:30%}.add-cause-tile[_ngcontent-%COMP%]   .details-placeholder[_ngcontent-%COMP%]{width:70%}"]})}return t})();export{sr as ProfileComponent};
4
5//# debugId=669cc3c4-dcba-55aa-9561-90a1807c7aa0

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.