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]="8b3d2175-af0f-5fa3-96c9-e86ca8141559")}catch(e){}}(); 3import{a as ut}from"./chunk-VTUARZLO.js";import{a as ct}from"./chunk-WGUD3BTU.js";import{a as ue}from"./chunk-MSRVJ3MY.js";import"./chunk-67GQFGGJ.js";import{a as dt}from"./chunk-5WC7A57R.js";import{a as gt,b as pt}from"./chunk-DW7Z772K.js";import{a as mt}from"./chunk-MYL2H5NC.js";import{a as st}from"./chunk-V3DC62PW.js";import"./chunk-CMSUN764.js";import"./chunk-B36LD7HJ.js";import{a as lt}from"./chunk-ZN3PVEIW.js";import{a as We}from"./chunk-AOVG3ODU.js";import{h as tt}from"./chunk-LHPVZF3V.js";import"./chunk-2M3QETKK.js";import"./chunk-INEWE6SG.js";import{d as et}from"./chunk-IKEJPASG.js";import"./chunk-HVR6QYVL.js";import"./chunk-2JF74RQL.js";import"./chunk-I7BLO743.js";import"./chunk-DF7HIBO6.js";import"./chunk-PVICISUF.js";import"./chunk-PAN4ZM5A.js";import{a as Je}from"./chunk-W43SYNF3.js";import"./chunk-C57QP4TF.js";import"./chunk-6ESVMRDE.js";import{a as Ze}from"./chunk-VIHRMJHO.js";import{a as Ke}from"./chunk-VIEDUWOT.js";import{a as nt,b as it,c as ot,d as rt,f as at}from"./chunk-RZXXF6WL.js";import{a as Xe}from"./chunk-W7NCBQUV.js";import"./chunk-77KO6I45.js";import"./chunk-R7MSJQOC.js";import"./chunk-ETZRMDHS.js";import"./chunk-XZFXRJRY.js";import"./chunk-AAFBOZHS.js";import"./chunk-TA6QZW4D.js";import{c as He}from"./chunk-KSQRQOTB.js";import"./chunk-6UNLROVI.js";import{a as Qe,b as $e}from"./chunk-XBHOMARE.js";import"./chunk-3YM57F2T.js";import"./chunk-MQQUES44.js";import"./chunk-4OKMPB3H.js";import{a as pe}from"./chunk-AGVOJNE2.js";import{a as qe,b as je,c as Ye}from"./chunk-HJXQJEZE.js";import"./chunk-I664YVIA.js";import"./chunk-YSTTJCSR.js";import"./chunk-CN4EGA4I.js";import{d as se,f as Ne}from"./chunk-Z5M2FKAZ.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import"./chunk-5CMUHLSG.js";import{a as ze}from"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-56LBQIQP.js";import"./chunk-IKWIL4NU.js";import{a as le}from"./chunk-5K5PYV5V.js";import{a as ae}from"./chunk-TDGVUJZJ.js";import{b as Ee,d as Me,e as z,f as N,g as W,h as De,i as q}from"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import{a as Ae,b as Re}from"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import"./chunk-BUOPWRDV.js";import{d as oe,e as re}from"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import{b as Ie,d as Be}from"./chunk-CNRKNNWP.js";import{d as Le}from"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import{a as ie}from"./chunk-5SJALNJN.js";import{a as ee,b as te,c as Ue,i as ne}from"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import{C as Fe,G as K,H as Ge,I as Z,b as Y,d as F,g as Q,h as $,m as Te,n as ke,o as H,q as Ve,r as X,u as J}from"./chunk-MF7VZYLI.js";import{a as k,b as j,e as V}from"./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{f as Pe}from"./chunk-XIKGSSI2.js";import"./chunk-MNZQGPDO.js";import{g as ye,k as Oe,p as we}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"./chunk-WAPZ5LEW.js";import{F as Se,L as xe}from"./chunk-746D4QTP.js";import{Ac as f,Dc as d,Fd as ge,Ib as D,Lc as me,Mc as Ce,Nc as x,Ob as G,Sc as a,Tc as I,Ua as fe,Uc as y,Yc as O,Zc as w,_c as P,bc as T,cc as u,dc as _,fc as ce,gc as L,hc as U,hd as be,ic as h,id as R,jc as n,kc as t,lb as A,lc as p,nd as E,pd as M,qa as b,qb as l,sd as ve,uc as v,va as m,wa as g}from"./chunk-BZJI6Z2X.js";import"./chunk-WVYA44CB.js";import{a as de}from"./chunk-CS7K6LXP.js";function Ot(r,s){r&1&&(n(0,"mat-error"),a(1," Domain/DNS Provider Name is "),n(2,"strong"),a(3,"required"),t()())}function wt(r,s){r&1&&(n(0,"mat-error"),a(1," Domain URL is "),n(2,"strong"),a(3,"required"),t()())}function Pt(r,s){if(r&1){let e=v();n(0,"form",4),f("ngSubmit",function(){m(e);let o=d();return g(o.onSubmit())}),n(1,"mat-dialog-content",5)(2,"p"),a(3,"Provide your domain details and our team will deal with the technical stuff for you."),t(),n(4,"mat-form-field")(5,"mat-label"),a(6,"Domain Name"),t(),p(7,"input",6),u(8,Ot,4,0,"mat-error"),t(),n(9,"mat-form-field")(10,"mat-label"),a(11,"Domain URL"),t(),p(12,"input",7),u(13,wt,4,0,"mat-error"),t()(),n(14,"mat-dialog-actions",8)(15,"button",9),a(16," Submit "),t()()()}if(r&2){let e=d();h("formGroup",e.domainForm),l(8),_(e.domainForm.controls.domainNameProvider.errors&&e.domainForm.controls.domainNameProvider.errors.required?8:-1),l(5),_(e.domainForm.controls.domainUrl.errors&&e.domainForm.controls.domainUrl.errors.required?13:-1),l(2),h("active",e.processing)}}function Et(r,s){r&1&&(n(0,"div")(1,"mat-dialog-content",5)(2,"p",10),a(3," Thank y
3ou, our technical team has received your request and will provide you with further instructions and DNS settings required to activate your domain. "),t()(),n(4,"mat-dialog-actions",8)(5,"button",11),a(6," Done "),t()()()),r&2&&(l(5),h("mat-dialog-close",!0))}var ft=(()=>{class r{fb=b(K);orgService=b(se);domainForm=this.fb.group({domainNameProvider:["",F.required],domainUrl:["",F.required]});processing=!1;successMessage=!1;dialogData=b(Ee);ngOnInit(){this.dialogData.currentPricingPlan&&(this.domainForm.controls.domainNameProvider.setValue(this.dialogData.currentPricingPlan.settings.domain_name_provider),this.domainForm.controls.domainUrl.setValue(this.dialogData.currentPricingPlan.settings.domain_url))}onSubmit(){if(this.domainForm.invalid)return;this.processing=!0;let e={domain_name_provider:this.domainForm.value.domainNameProvider,domain_url:this.domainForm.value.domainUrl};this.orgService.update(this.dialogData.urn,e).subscribe(i=>{this.orgService.data=de(de({},this.orgService.data),i),this.orgService.refreshOrgSettings(this.dialogData.urn,{readFromPrimary:!0}).subscribe({next:()=>{this.processing=!1,this.successMessage=!0},error:()=>{this.processing=!1,this.successMessage=!1}})},()=>{this.processing=!1})}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=D({type:r,selectors:[["app-domain-setting-dialog"]],decls:6,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],["appScrollToFirstInvalid","",3,"formGroup"],["appScrollToFirstInvalid","",3,"ngSubmit","formGroup"],["appDialogScroll",""],["type","text","matInput","","formControlName","domainNameProvider","placeholder","Domain/DNS Provider Name","autocomplete","off","cdkFocusInitial",""],["type","text","matInput","","formControlName","domainUrl","autocomplete","off"],["align","end"],["mat-raised-button","","color","primary","type","submit","appLoadingBtn","",1,"custom","auto","mt-2",3,"active"],[1,"mb-7"],["mat-raised-button","","color","primary","cdkFocusInitial","",1,"custom","auto",3,"mat-dialog-close"]],template:function(i,o){i&1&&(n(0,"h3",0),a(1),t(),n(2,"button",1),p(3,"i",2),t(),u(4,Pt,17,4,"form",3)(5,Et,7,1,"div")),i&2&&(l(),y(" ",o.dialogData.action==="activate"?"Activate your domain":"Update your domain",` 4`),l(3),_(o.successMessage?5:4))},dependencies:[Z,H,Y,Q,$,X,J,V,j,k,q,z,N,De,W,ie,ne,ee,te,re,oe,ze,ae,le],encapsulation:2})}return r})();var Ct=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=D({type:r,selectors:[["app-mightycause-pricing-guarantee"]],decls:9,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-close","","mat-icon-button","","aria-label","close",1,"dialog-close"],[1,"fa-solid","fa-times"],["appDialogScroll",""]],template:function(i,o){i&1&&(n(0,"h3",0),a(1,"Mightycause Pricing Guarantee"),t(),n(2,"button",1),p(3,"i",2),t(),n(4,"mat-dialog-content",3)(5,"p"),a(6," At checkout, with the fee payment model enabled, donors will be asked to cover an optional 6.9% plus $0.30 per transaction fee to include all platform and credit card fees, so that it is not removed from their donation amount to you. "),t(),n(7,"p"),a(8," The overall fee processing rate for nonprofits with a fee payment model is a platform average of 0.95% and 29\xA2. This is because the majority of donors opt to cover the fees when they donate. Your rate will never be more than 1.99% and 49\xA2, guaranteed. Prior to disbursing your funds, we will credit you for any of your aggregate fees above more than 1.99% and 49\xA2. Donations processed via Stripe are not eligible for the pricing guarantee. "),t()())},dependencies:[V,k,q,z,N,W,ae],encapsulation:2})}return r})();var Mt=["uploader"],Dt=["feePaymentExpansionPanel"],Tt=()=>["..","org-info"],_e=r=>({"disabled-row":r}),bt=(r,s)=>s.id;function kt(r,s){r&1&&(n(0,"p"),a(1,"Set your organization profile page to the domain of your choice."),t())}function Vt(r,s){r&1&&(n(0,"p")(1,"span",48),p(2,"i",57),t(),a(3," Your domain is connected to your organization profile page. "),t())}function Ft(r,s){if(r&1){let e=v();n(0,"div",56)(1,"button",58),f("click",function(){m(e);let o=d(2);return g(o.setDomain("activate"))}),a(2," Set domain "),t()()}}function Gt(r,s){if(r&1){let e=v();n(0,"div")(1,"p",59),a(2,"Active domain"),t(),n(3,"p",34)(4,"span",52),a(5),t(),n(6,"button",60),f("click",function(){m(e);let o=d(2);return g(o.setDomain("update"))}),n(7,"span",61),p(8,"i",62),t(),n(9,"span"),a(10,"Edit"),t()()()()}if(r&2){let e=d(2);l(5),I(e.orgService.currentPricingPlan==null||e.orgService.currentPricingPlan.settings==null?null:e.orgService.currentPricingPlan.settings.domain_url)}}function Lt(r,s){if(r&1&&(n(0,"section")(1,"div",18)(2,"div",19)(3,"div",55)(4,"h2",21),a(5,"Domain Masking"),t(),u(6,kt,2,0,"p")(7,Vt,4,0,"p"),t(),n(8,"div",29),u(9,Ft,3,0,"div",56)(10,Gt,11,1,"div"),t()()()()),r&2){let e=d();l(6),_(!(e.orgService.currentPricingPlan==null||e.orgService.currentPricingPlan.settings==null)&&e.orgService.currentPricingPlan.settings.domain_url?7:6),l(3),_(!(e.orgService.currentPricingPlan==null||e.orgService.currentPricingPlan.settings==null)&&e.orgService.currentPricingPlan.settings.domain_url?10:9)}}function Ut(r,s){r&1&&(n(0,"div",68)(1,"div",82),p(2,"span")(3,"span"),t(),n(4,"span",83),p(5,"i",84),t()())}function It(r,s){if(r&1){let e=v();n(0,"div",85),f("click",function(){m(e);let o=d(3);return g(o.editPrimaryLogo())})("keydown.enter",function(){m(e);let o=d(3);return g(o.editPrimaryLogo())}),p(1,"img",86),t()}if(r&2){let e=d(3);T("aria-label","Edit primary logo"),l(),h("src",e.orgData.cover_image_url,A)}}function Bt(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function At(r,s){if(r&1){let e=v();n(0,"div",89),f("click",function(){m(e);let o=d(3);return g(o.editBrandLogo("lightLogo"))})("keydown.enter",function(){m(e);let o=d(3);return g(o.editBrandLogo("lightLogo"))}),n(1,"span",83),p(2,"i",84),t()()}r&2&&T("aria-label","Edit light logo")}
4function Rt(r,s){if(r&1){let e=v();n(0,"div",85),f("click",function(){m(e);let o=d(3);return g(o.editBrandLogo("lightLogo"))})("keydown.enter",function(){m(e);let o=d(3);return g(o.editBrandLogo("lightLogo"))}),p(1,"img",90),t()}if(r&2){let e=d(3);T("aria-label","Edit light logo"),l(),h("src",e.orgSettings.brand_settings.light_logo_image_url,A)}}function zt(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function Nt(r,s){if(r&1){let e=v();n(0,"div",89),f("click",function(){m(e);let o=d(3);return g(o.editBrandLogo("headerLogo"))})("keydown.enter",function(){m(e);let o=d(3);return g(o.editBrandLogo("headerLogo"))}),n(1,"div",82),p(2,"span")(3,"span"),t(),n(4,"span",83),p(5,"i",84),t()()}r&2&&T("aria-label","Edit header logo")}function Wt(r,s){if(r&1){let e=v();n(0,"div",85),f("click",function(){m(e);let o=d(3);return g(o.editBrandLogo("headerLogo"))})("keydown.enter",function(){m(e);let o=d(3);return g(o.editBrandLogo("headerLogo"))}),p(1,"img",90),t()}if(r&2){let e=d(3);T("aria-label","Edit header logo"),l(),h("src",e.orgSettings.brand_settings.small_logo_image_url,A)}}function qt(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function jt(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function Yt(r,s){if(r&1){let e=v();n(0,"div",64)(1,"div",65)(2,"div",66)(3,"h3",21),a(4,"Primary Logo"),t(),n(5,"div",67),u(6,Ut,6,0,"div",68)(7,It,2,2,"div",69),u(8,Bt,3,0,"div",27),t()()(),n(9,"div",70)(10,"div",66)(11,"h3",21),a(12,"Light Logo"),t(),n(13,"div",71),u(14,At,3,1,"div",72),u(15,Rt,2,2,"div",69),u(16,zt,3,0,"div",27),t()()(),n(17,"div",73)(18,"h3",21),a(19,"Header Logo"),t(),n(20,"div",74),u(21,Nt,6,1,"div",72),u(22,Wt,2,2,"div",69),u(23,qt,3,0,"div",27),t()()(),n(24,"div",64)(25,"div",20)(26,"h3",21),a(27,"Theme Color"),t(),n(28,"p"),a(29," Customize your Mightycause URL with a subdomain name that reflects your brand. "),t()(),n(30,"div",75)(31,"app-color-picker",76),f("colorChange",function(o){m(e);let c=d(2);return g(c.brandThemeColor=o)}),t(),n(32,"button",77),f("click",function(){m(e);let o=d(2);return g(o.setBrandThemeColor())}),a(33," Save "),t()()(),n(34,"div",78)(35,"div",20)(36,"h3",21),a(37,"Subdomain"),t(),n(38,"p"),a(39," Customize your Mightycause URL with a subdomain name that reflects your brand. "),t()(),n(40,"div",79)(41,"div",80)(42,"mat-form-field")(43,"mat-label"),a(44,"Subdomain"),t(),n(45,"input",81,6),P("ngModelChange",function(o){m(e);let c=d(2);return w(c.subdomain,o)||(c.subdomain=o),g(o)}),t()(),n(47,"p",23),a(48,".mightycause.com/"),t(),n(49,"div",25)(50,"button",26),f("click",function(){m(e);let o=d(2);return g(o.setSubdomain())}),a(51," Save "),t()()(),u(52,jt,3,0,"div",27),t()()}if(r&2){let e=x(46),i=d(2);l(6),_(i.orgData.cover_image_url?7:6),l(2),_(i.spinner.primaryLogo?8:-1),l(),h("hidden",!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain))("ngClass",R(18,_e,!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain)&&!(i.currentUser!=null&&i.currentUser.mighty_admin))),l(5),_(i.orgSettings.brand_settings&&!i.orgSettings.brand_settings.light_logo_image_url?14:-1),l(),_(i.orgSettings.brand_settings&&i.orgSettings.brand_settings.light_logo_image_url?15:-1),l(),_(i.spinner.lightLogo?16:-1),l(),h("hidden",!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain))("ngClass",R(20,_e,!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain)&&!(i.currentUser!=null&&i.currentUser.mighty_admin))),l(4),_(i.orgSettings.brand_settings&&!i.orgSettings.brand_settings.small_logo_image_url?21:-1),l(),_(i.orgSettings.brand_settings&&i.orgSettings.brand_settings.small_logo_image_url?22:-1),l(),_(i.spinner.headerLogo?23:-1),l(8),h("color",i.brandThemeColor),l(),h("active",i.spinner.brandThemeColor),l(2),h("ngClass",R(22,_e,!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain)&&!(i.currentUser!=null&&i.currentUser.mighty_admin))),l(11),O("ngModel",i.subdomain),l(5),h("disabled",e.value&&e.value.length<1),l(2),_(i.spinner.subdomain?52:-1)}}function Qt(r,s){if(r&1){let e=v();n(0,"section",17)(1,"div",18)(2,"div",37)(3,"div",20)(4,"h2",63),a(5,"Brand Appearance & Features"),t(),n(6,"p"),a(7," Customize the visual experience across all pages associated with your brand. These settings will not override any previously configured settings on individual pages. "),t()(),n(8,"div",20)(9,"button",47),f("click",function(){m(e);let o=x(14);return g(o.toggle())}),n(10,"span",48),p(11,"i",49),t(),a(12,"More "),t(),n(13,"mat-expansion-panel",50,5),G(15,Yt,53,24,"ng-template",51),t(),n(16,"button",47),f("click",function(){m(e);let o=x(14);return g(o.toggle())}),n(17,"span",52),p(18,"i",53),t(),a(19,"Less "),t()()()()()}if(r&2){let e=x(14),i=d();h("hidden",!(i.orgService.enabledPlanFeatures!=null&&i.orgService.enabledPlanFeatures.custom_subdomain)),l(9),h("hidden",e.expanded),l(7),h("hidden",!e.expanded)}}function $t(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function Ht(r,s){r&1&&(n(0,"div",29)(1,"div",91)(2,"span")(3,"span",92),p(4,"i",93),t(),a(5," Search engine visibility turned off. "),t()()())}function Xt(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function Jt(r,s){r&1&&(n(0,"div",35)(1,"span")(2,"span",92),p(3,"i",93),t(),a(4," Not Accepting Donations "),t()())}function Kt(r,s){if(r&1&&(n(0,"div",103),p(1,"app-org-opt-out-callout-content",104),t()),r&2){let e=d().$implicit,i=d(2);l(),h("reason",e)("org",i.orgData)("brand",i.brand)("supportEmail",i.supportEmail)}}function Zt(r,s){r&1&&(n(0,"mat-expansion-panel",94)(1,"mat-expansion-panel-header",95)(2,"mat-panel-title",96)(3,"div",97)(4,"div",98)(5,"span",99),p(6,"i",100),t(),n(7,"span",101),a(8,"Visitors to your Organization Page are unable to make donations, and your organization is not shown in platform search."),t()(),p(9,"div",102),t()()(),G(10,Kt,2,4,"ng-template",51),t()),r&2&&h("hideToggle",!0)("expanded",!0)}function en(r,s){if(r&1&&(n(0,"div",14)(1,"div",20),L(2,Zt,11,2,"mat-expansion-panel",94,bt),t()()),r&2){let e=d();l(2),U(e.optOutReasons)}}function tn(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function nn(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function on(r,s){r&1&&(n(0,"span"),a(1,",\xA0"),t())}function rn(r,s){if(r&1&&(a(0),u(1,on,2,0,"span")),r&2){let e=s.$implicit,i=s.$index,o=s.$count;y(" ",e.name," "),l(),_(i!==o-1?1:-1)}}function an(r,s){if(r&1){let e=v();n(0,"div",105)(1,"p",106),a(2," Categories "),n(3,"span",null,7)(5,"button",107),f("click",function(){m(e);let o=x(4),c=d(2);return g(c.editSearchCategories(o))}),p(6,"i",62),t()()(),n(7,"p"),L(8,rn,2,2,null,null,ce),t()()}if(r&2){let e=d(2);l(8),U(e.orgData.search_categories)}}function ln(r,s){if(r&1){let e=v();n(0,"div",105)(1,"p",106),a(2),n(3,"span",null,8)(5,"button",107),f("click",function(){m(e);let o=x(4),c=d().$implicit,S=d(3);return g(S.editBrandCategories(o,c))}),p(6,"i",62),t()()(),n(7,"p"),a(8),t()()}if(r&2){let e=d().$implicit,i=d(3);l(2),y(" ",e.name," "),l(6),y(" ",i.orgData.brand_categories==null||i.orgData.brand_categories.tag_groups[e.id]==null||i.orgData.brand_categories.tag_groups[e.id].tag_names==null?null:i.orgData.brand_categories.tag_groups[e.id].tag_names.join(", ")," ")}}function sn(r,s){if(r&1&&u(0,ln,9,2,"div",105),r&2){let e=s.$implicit;_(e.tags_count>0?0:-1)}}function dn(r,s){if(r&1&&L(0,sn,1,1,null,null,bt),r&2){let e=d(2);U(e.orgSettings==null||e.orgSettings.brand_settings==null?null:e.orgSettings.brand_settings.brand_categories)}}function cn(r,s){if(r&1&&(n(0,"section")(1,"div",18)(2,"div",14)(3,"div",20)(4,"h2",21),a(5,"Search Tags"),t(),n(6,"p"),a(7," Configure the metadata used to present your organization in Search. This information is also dis
4played on your Organization Page. "),t()(),u(8,an,10,0,"div",105),u(9,dn,2,0),t()()()),r&2){let e=d();l(8),_(!(e.brand==null||e.brand.search_config==null)&&e.brand.search_config.hide_categories?-1:8),l(),_(!(e.orgData.brand_org_configs==null||e.orgData.brand_org_configs.brand_search_tags==null)&&e.orgData.brand_org_configs.brand_search_tags.active?9:-1)}}function mn(r,s){if(r&1){let e=v();n(0,"p",111),a(1," Grandfathered version is not eligible for the "),n(2,"span",129),f("click",function(){m(e);let o=d(3);return g(o.pricingGuarantee())})("keydown.enter",function(){m(e);let o=d(3);return g(o.pricingGuarantee())}),a(3,"Mightycause Pricing Guarantee"),t(),a(4,". "),t()}}function gn(r,s){if(r&1&&(n(0,"div",14)(1,"div",79)(2,"mat-radio-button",127),a(3," (Grandfathered) Allow donors to cover fees "),t(),n(4,"p",110),a(5," An unselected checkbox is shown at checkout allowing donors to optionally cover the fees associated with a donation. "),t(),u(6,mn,5,0,"p",111),t(),n(7,"div",112)(8,"p",113),a(9,"What donors see at checkout:"),t(),n(10,"div",114)(11,"p",115),a(12,"Total"),t(),n(13,"p",116),a(14),E(15,"currency"),t(),n(16,"mat-checkbox",128)(17,"span"),a(18,"Cover fees so "),n(19,"strong"),a(20),t(),a(21," gets my full donation"),t()(),p(22,"div",118),n(23,"div",119)(24,"button",120)(25,"span",48),p(26,"i",121),t(),a(27,"Fee info "),t()(),n(28,"button",122),a(29),E(30,"currency"),t()()()()),r&2){let e=d(2);l(2),h("checked",e.feePayment==="grandFathered"),l(4),_(e.showGuarantee?6:-1),l(8),y(" ",M(15,5,e.feeModel.amount,e.getNarrowCurrencySymbol("usd"))," "),l(6),I(e.orgData.org_name),l(9),y(" PAY ",M(30,8,e.feeModel.amount,e.getNarrowCurrencySymbol("usd"))," ")}}function pn(r,s){if(r&1){let e=v();n(0,"p",111),a(1," Enables the "),n(2,"span",130),f("click",function(){m(e);let o=d(2);return g(o.pricingGuarantee())})("keydown.enter",function(){m(e);let o=d(2);return g(o.pricingGuarantee())}),a(3,"Mightycause Pricing Guarantee"),t(),a(4,". "),t()}}function un(r,s){if(r&1){let e=v();n(0,"p",111),a(1," This model is not eligible for the "),n(2,"a",130),f("click",function(){m(e);let o=d(2);return g(o.pricingGuarantee())})("keydown.enter",function(){m(e);let o=d(2);return g(o.pricingGuarantee())}),a(3,"Mightycause Pricing Guarantee"),t(),a(4,". "),t()}}function _n(r,s){if(r&1){let e=v();n(0,"mat-radio-group",108),P("ngModelChange",function(o){m(e);let c=d();return w(c.feePayment,o)||(c.feePayment=o),g(o)}),f("change",function(){m(e);let o=d();return g(o.onFeePaymentChange())}),u(1,gn,31,11,"div",14),n(2,"div",14)(3,"div",79)(4,"mat-radio-button",109),a(5," Allow donors to cover fees (recommended) "),t(),n(6,"p",110),a(7," A checkbox is shown at checkout allowing donors to optionally cover the fees associated with a donation. Donors may still opt out by unchecking the box. "),t(),u(8,pn,5,0,"p",111),t(),n(9,"div",112)(10,"p",113),a(11,"What donors see at checkout:"),t(),n(12,"div",114)(13,"p",115),a(14,"Total"),t(),n(15,"p",116),a(16),E(17,"currency"),t(),n(18,"mat-checkbox",117)(19,"span"),a(20,"Cover fees so "),n(21,"strong"),a(22),t(),a(23," gets my full donation"),t()(),p(24,"div",118),n(25,"div",119)(26,"button",120)(27,"span",48),p(28,"i",121),t(),a(29,"Fee info "),t()(),n(30,"button",122),a(31),E(32,"currency"),t()()()(),n(33,"div",14)(34,"div",79)(35,"mat-radio-button",123),a(36," Subtract fees from disbursements "),t(),n(37,"p",110),a(38," Donors will not be asked to cover fees. Fees will be automatically removed from your proceeds prior to disbursement. Donors may still be allowed to cover fees when donating to multiple organizations via the cart. "),t(),u(39,un,5,0,"p",111),t(),n(40,"div",112)(41,"p",113),a(42,"What donors see at checkout:"),t(),n(43,"div",124)(44,"p",125),a(45,"Total"),t(),n(46,"p",126),a(47),E(48,"currency"),t(),n(49,"button",122),a(50),E(51,"currency"),t()()()()()}if(r&2){let e=d();O("ngModel",e.feePayment),l(),_(e.feePayment==="grandFathered"?1:-1),l(3),h("checked",e.feePayment==="enableGuarantee"),l(4),_(e.showGuarantee?8:-1),l(8),y(" ",M(17,12,e.feeModel.amountWithFees,e.getNarrowCurrencySymbol("usd"))," "),l(2),h("checked",!0),l(4),I(e.orgData.org_name),l(9),y(" PAY ",M(32,15,e.feeModel.amountWithFees,e.getNarrowCurrencySymbol("usd"))," "),l(4),h("checked",e.feePayment==="disableGuarantee"),l(4),_(e.showGuarantee?39:-1),l(8),y(" ",M(48,18,e.feeModel.amount,e.getNarrowCurrencySymbol("usd"))," "),l(3),y(" PAY ",M(51,21,e.feeModel.amount,e.getNarrowCurrencySymbol("usd"))," ")}}function hn(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function fn(r,s){r&1&&(n(0,"div",27)(1,"div",87),p(2,"mat-spinner",88),t()())}function Cn(r,s){if(r&1){let e=v();n(0,"section")(1,"div",18)(2,"div",19)(3,"div",20)(4,"h2",21),a(5,"Default Fundraiser Tracking ID"),t(),n(6,"p"),a(7,' This tracking ID will be used if no Fundraiser Tracking ID is set on a fundraiser page settings. This ID will then be used when creating a transaction with Cybersource and will set the item code (aka source or "ProductCode" in Cybersource XML request) in the Cybersource detailed line items. '),t()(),n(8,"div",131)(9,"mat-form-field")(10,"mat-label"),a(11,"Tracking ID"),t(),n(12,"input",132,9),P("ngModelChange",function(o){m(e);let c=d();return w(c.defaultExtTrackingID,o)||(c.defaultExtTrackingID=o),g(o)}
4),t()(),n(14,"div",25)(15,"button",26),f("click",function(){m(e);let o=d();return g(o.updateDefaultExtTrackingID())}),a(16," Save "),t()()()(),u(17,fn,3,0,"div",27),t()()}if(r&2){let e=x(13),i=d();l(12),O("ngModel",i.defaultExtTrackingID),l(3),h("disabled",e.pristine),l(2),_(i.spinner.defaultExtTrackingID?17:-1)}}function bn(r,s){if(r&1&&(n(0,"mat-option",136),a(1),t()),r&2){let e=s.$implicit;h("value",e),l(),I(e)}}function vn(r,s){r&1&&(n(0,"mat-error"),a(1,"Reason is required when Other is selected"),t())}function Sn(r,s){if(r&1&&(n(0,"mat-form-field",134)(1,"mat-label"),a(2,"Reason"),t(),p(3,"input",142),u(4,vn,2,0,"mat-error"),t()),r&2){let e,i=d(2);l(4),_((e=i.optOutSettingsForm.get("reasonTypeOther"))!=null&&e.invalid&&((e=i.optOutSettingsForm.get("reasonTypeOther"))!=null&&e.touched)?4:-1)}}function xn(r,s){r&1&&(n(0,"mat-error"),a(1,"Description is required"),t())}function yn(r,s){r&1&&(n(0,"mat-checkbox",139),a(1,' Allow organization "Admin" to update '),t())}function On(r,s){if(r&1){let e=v();n(0,"form",133),f("ngSubmit",function(){m(e);let o=d();return g(o.createOptOut())}),n(1,"p",134),a(2,' Display a "Donate" button on your page and allow visitors to make donations. Disabling donations will permanently cancel any active recurring donations and will remove your organization from search results. '),t(),n(3,"mat-form-field",113)(4,"mat-label"),a(5,"Reason type"),t(),n(6,"mat-select",135),L(7,bn,2,2,"mat-option",136,ce),t()(),u(9,Sn,5,1,"mat-form-field",134),n(10,"mat-form-field",137)(11,"mat-label"),a(12,"Additional Details"),t(),p(13,"textarea",138),n(14,"mat-hint"),a(15,"Optional"),t(),u(16,xn,2,0,"mat-error"),t(),u(17,yn,2,0,"mat-checkbox",139),n(18,"div",140)(19,"button",60),f("click",function(){m(e);let o=d();return g(o.closeOptOutSettings())}),a(20," Cancel "),t(),n(21,"button",141),a(22," Save "),t()()()}if(r&2){let e,i=d();h("formGroup",i.optOutSettingsForm),l(7),U(i.optOutReasonTypes),l(2),_(i.optOutSettingsForm.value.reasonType==="Other"?9:-1),l(7),_((e=i.optOutSettingsForm.get("reasonDescription"))!=null&&e.invalid&&((e=i.optOutSettingsForm.get("reasonDescription"))!=null&&e.touched)?16:-1),l(),_(i.currentUser.mighty_admin?17:-1),l(4),h("active",i.spinner.acceptDonations)}}var Ii=(()=>{class r{uploader=ge.required("uploader");route=b(ye);orgService=b(se);appService=b(Pe);uploadCareService=b(Ke);dialog=b(Me);feeService=b(et);pricingService=b(st);donationService=b(tt);userService=b(Ne);scrollService=b(We);popper=b(He);suggestedArticlesService=b(lt);orgDataService=b(dt);feePaymentExpansionPanel=ge("feePaymentExpansionPanel");urn;currentUser;brand;currentDomain;orgData;orgSettings;customUrl;defaultExtTrackingID;discoverability;acceptDonations=new Te(!0);optOutReasonDisplayText="";subdomain;brandThemeColor;feePayment;showGuarantee=!1;pageLoading;currentCropPreset="1:1";spinner={customUrl:!1,discoverability:!1,primaryLogo:!1,lightLogo:!1,headerLogo:!1,subdomain:!1,brandThemeColor:!1,feePayment:!1,aliases:!1,defaultExtTrackingID:!1,acceptDonations:!1};feeModel={amount:25,fees:0,amountWithFees:0};optOutReasonTypes=["Organization closing or merging","Using a different fundraising platform","Fundraising goal met","Not fundraising from individuals","Between campaigns","Pre-campaign quiet period","Gift acceptance policy restriction","Fundraising blackout period","Fiscally sponsored","Membership or earned revenue only","Private foundation not open to public donations","Funded entirely by parent organization","Temporarily paused due to external circumstances","Other"];fb=b(K);storyOptOutService=b(gt);optOutSettingsForm=this.fb.group({reasonType:["",F.required],reasonTypeOther:[""],reasonDescription:[""],allowOrgAdminToRevert:[!0]});optOutReasons=[];optOutSettingsRef;acceptDonationFromValue;pendingUploadContext=null;platformId=b(fe);constructor(){this.appService.footer=!1,this.brand=this.appService.currentBrand,this.currentUser=this.userService.currentUser,this.currentDomain=this.appService.currentDomain,this.suggestedArticlesService.suggestedLabel="org-general-settings"}ngOnInit(){this.urn=this.route.snapshot.parent.params.urn,this.orgData=this.orgService.data,this.setupOptOutOtherValidation(),this.orgService.settingsPromise().then(()=>{this.orgSettings=this.orgService.settings,this.defaultExtTrackingID=this.orgSettings.default_external_tracking_id,this.feePayment=this.pricingService.evaluateFeeOption(this.orgService.currentPricingPlan)}),this.fetchOptOutReasons(),this.customUrl=this.orgData.urn,this.discoverability=!this.orgData.hidden,this.brandTheme
4Color=this.orgData.theme.theme_color,this.subdomain=this.orgData.subdomain||"",this.feeModel.fees=this.feeService.totalFees(this.feeModel.amount,this.orgData.kind,this.orgData.fee,!1,"credit_card"),this.feeModel.amountWithFees=Math.floor(this.feeModel.amount*100+this.feeModel.fees*100)/100,this.brand.guarantee_eligibility&&this.orgService.currentPricingPlan?.type?.indexOf("premium")===-1&&this.orgData.certified_charity&&(this.showGuarantee=!0)}ngAfterViewInit(){xe(this.platformId)&&window.location.hash&&setTimeout(()=>{let e=window.location.hash.replace(/#/,"");if(e==="feePaymentModel"){this.organizationFeeModelSettingsEnabled&&(this.feePaymentExpansionPanel().open(),this.scrollService.scrollToId(e));return}this.scrollService.scrollToId(e)},500)}get supportEmail(){return this.appService.supportEmail}get organizationFeeModelSettingsEnabled(){return this.brand.show_covered_fees&&this.brand.enable_organization_fee_model_settings}getNarrowCurrencySymbol(e){return this.donationService.getNarrowCurrencySymbol(e)}updateUrl(){this.spinner.customUrl=!0;let e={new_url:this.customUrl.replace(/\s+/g,"-")};this.orgService.update(this.urn,e).subscribe({next:()=>{window.location.reload()},error:()=>{this.customUrl=this.orgData.urn,this.spinner.customUrl=!1}})}updateDefaultExtTrackingID(){this.spinner.defaultExtTrackingID=!0;let e={default_external_tracking_id:this.defaultExtTrackingID};this.orgService.update(this.urn,e).subscribe({next:()=>{this.spinner.defaultExtTrackingID=!1},error:()=>{this.defaultExtTrackingID=this.orgSettings.default_external_tracking_id,this.spinner.defaultExtTrackingID=!1}})}updateDiscoverability(e){this.spinner.discoverability=!0;let i={hidden:!e};this.orgService.update(this.urn,i).subscribe({next:o=>{this.spinner.discoverability=!1,this.discoverability=!o.hidden,this.orgService.data=o},error:()=>{this.discoverability=!this.orgData.hidden,this.spinner.discoverability=!1}})}editPrimaryLogo(){this.pendingUploadContext="primaryLogo",this.currentCropPreset="1:1",this.uploader().removeAllFiles(),this.uploadCareService.getExistingUCImageUrl(this.orgData.cover_image_url,!1).then(e=>{e&&this.uploader().addFileFromCdnUrl(e),this.uploader().initFlow()}).catch(()=>{this.uploader().initFlow()})}editBrandLogo(e){this.pendingUploadContext=e;let i=null;e==="headerLogo"?(i=this.orgSettings.brand_settings.small_logo_image_url,this.currentCropPreset=""):e==="lightLogo"&&(i=this.orgSettings.brand_settings.light_logo_image_url,this.currentCropPreset="1:1"),this.uploader().removeAllFiles(),this.uploadCareService.getExistingUCImageUrl(i,!1).then(o=>{o&&this.uploader().addFileFromCdnUrl(o),this.uploader().initFlow()}).catch(()=>{this.uploader().initFlow()})}setSubdomain(){this.dialog.open(pe,{data:{title:"confirm new subdomain",content:`Once this subdomain is created, you won't be able change 5 it again without contacting customer service. Your new address will 6 be: ${this.subdomain}.mightycause.com`,confirmButtonText:"confirm",cancelButtonText:"cancel"}}).afterClosed().subscribe(i=>{i&&(this.spinner.subdomain=!0,this.orgService.updateOrgBrandSubdomain(this.urn,this.subdomain).subscribe({next:o=>{let c=this.orgService.data;c.brand_details=o,this.orgService.data=c,this.spinner.subdomain=!1},error:()=>{this.spinner.subdomain=!1}}))})}setBrandThemeColor(){this.spinner.brandThemeColor=!0;let e={theme_color:this.brandThemeColor};this.orgService.update(this.urn,e).subscribe({next:i=>{this.spinner.brandThemeColor=!1,this.brandThemeColor=i.theme.theme_color,this.orgService.data=i},error:()=>{this.brandThemeColor=this.orgData.theme.theme_color,this.spinner.brandThemeColor=!1}})}onFeePaymentChange(){this.pricingService.evaluateFeeOption(this.orgService.currentPricingPlan)==="grandFathered"?this.dialog.open(pe,{data:{title:"Are you sure?",content:"Once you select another model you cannot return to the Grandfathered model.",confirmButtonText:"confirm",cancelButtonText:"cancel"}}).afterClosed().subscribe(i=>{i?this.updateFeePayment():this.feePayment="grandFathered"}):this.updateFeePayment()}updateFeePayment(){this.spinner.feePayment=!0;let e={show_donation_booster:!1,donation_booster_default_state:!1};this.feePayment==="enableGuarantee"&&(e.show_donation_booster=!0,e.donation_booster_default_state=!0),this.orgService.update(this.urn,e).subscribe({next:i=>{this.orgService.data=i,this.orgService.refreshOrgSettings(this.urn,{readFromPrimary:!0}).subscribe({next:()=>{this.feePayment=this.pricingService.evaluateFeeOption(this.orgService.currentPricingPlan),this.spinner.feePayment=!1},error:()=>{this.spinner.feePayment=!1}})},error:()=>{this.feePayment=this.pricingService.evaluateFeeOption(this.orgService.currentPricingPlan),this.spinner.feePayment=!1}})}pricingGuarantee(){this.dialog.open(Ct,{})}setDomain(e){this.dialog.open(ft,{data:{urn:this.orgData.urn,currentPricingPlan:this.orgService.currentPricingPlan,action:e}}).afterClosed().subscribe(o=>{o&&(this.orgData=this.orgService.data)})}updateAliases(){this.spinner.aliases=!0;let e={cached_alias1:this.orgData.org_info.cached_alias1,cached_alias2:this.orgData.org_info.cached_alias2};this.orgService.updateAliases(this.urn,e).subscribe({next:i=>{this.orgService.data=i,this.spinner.aliases=!1},error:i=>{this.spinner.aliases=!1}})}editBrandCategories(e,i){let o=[];this.orgData.brand_categories?.tag_groups[i.id]&&this.orgData.brand_categories?.tag_groups[i.id].tag_names&&(o=this.orgData.brand_categories.tag_groups[i.id].tag_names);let c,S={urn:this.orgData.urn,tagGroup:i,tagNames:o};i.tags_count>1&&i.params_json&&i.params_json.allow_edit&&(!i.params_json.answer_limit||i.params_json.answer_limit>1)?c=this.dialog.open(ue,{data:S}
6).afterClosed():c=this.popper.open({origin:e,content:ue,width:"280px",data:S}).afterClosed$,c.subscribe(C=>{if(C.data&&(this.orgData=this.orgService.data,this.orgDataService.checkBrandOrgConfigRequired(this.orgData.brand_org_configs,"brand_search_tags"))){let B=[];try{B=this.orgData.brand_org_configs.brand_search_tags.params_json.required_value}catch{}B.includes(i.id)&&this.orgService.fetchCompletenessDataAndAssignAsync(this.orgData.urn)}})}editSearchCategories(e){this.popper.open({origin:e,content:ct,width:"280px"}).afterClosed$.subscribe(()=>this.orgData=this.orgService.data)}openOptOutSettings(e,i,o){if(this.acceptDonationFromValue=o,o){let c={type:this.currentUser.mighty_admin?"Mightycause":"Admin"};this.spinner.acceptDonations=!0,this.storyOptOutService.removeOptOut(this.urn,{opt_out:c}).subscribe({next:()=>{this.spinner.acceptDonations=!1,this.fetchOptOutReasons()},error:()=>{this.spinner.acceptDonations=!1,this.acceptDonations.setValue(!this.acceptDonationFromValue)}})}else this.optOutSettingsForm.reset({allowOrgAdminToRevert:!0}),this.optOutSettingsRef=this.popper.open({content:e,origin:i,width:"280px"}),this.optOutSettingsRef.afterClosed$.subscribe(c=>{c.type==="backdropClick"&&this.closeOptOutSettings()})}closeOptOutSettings(){this.acceptDonations.setValue(!this.acceptDonationFromValue),this.optOutSettingsRef.close()}createOptOut(){if(this.optOutSettingsForm.invalid)return;this.spinner.acceptDonations=!0;let e={type:this.currentUser.mighty_admin&&!this.optOutSettingsForm.value.allowOrgAdminToRevert?"Mightycause":"Admin",reason_type:this.optOutSettingsForm.value.reasonType==="Other"?this.optOutSettingsForm.value.reasonTypeOther:this.optOutSettingsForm.value.reasonType,reason:this.optOutSettingsForm.value.reasonDescription};this.storyOptOutService.createOptOut(this.urn,{opt_out:e}).subscribe({next:()=>{this.spinner.acceptDonations=!1,this.optOutSettingsRef.close(),this.fetchOptOutReasons()},error:()=>{this.spinner.acceptDonations=!1}})}onUploadSuccess(e){switch(this.pendingUploadContext){case"primaryLogo":{this.spinner.primaryLogo=!0;let i={cover_image_url:e.cdnUrl,cover_image_uuid:e.uuid};this.orgService.update(this.urn,i).subscribe({next:o=>{this.orgService.data=o,this.orgData=this.orgService.data,this.spinner.primaryLogo=!1},error:()=>{this.spinner.primaryLogo=!1}});break}case"headerLogo":case"lightLogo":{let i={};this.pendingUploadContext==="headerLogo"?(i.small_logo_image_url=e.cdnUrl,i.small_logo_image_uuid=e.uuid):(i.light_logo_image_url=e.cdnUrl,i.light_logo_image_uuid=e.uuid),this.spinner[this.pendingUploadContext]=!0;let o=this.pendingUploadContext;this.orgService.updateOrgBrandLogos(this.urn,i).subscribe({next:c=>{this.orgService.data=c,this.orgData=this.orgService.data,this.spinner[o]=!1},error:()=>{this.spinner[o]=!1}});break}}this.pendingUploadContext=null}setupOptOutOtherValidation(){this.optOutSettingsForm.get("reasonType")?.valueChanges.subscribe(e=>{let i=this.optOutSettingsForm.get("reasonTypeOther");e==="Other"?i?.setValidators([F.required]):(i?.clearValidators(),i?.setValue("")),i?.updateValueAndValidity()})}fetchOptOutReasons(){this.storyOptOutService.fetchOptOutReasons(this.urn).subscribe(e=>{this.optOutReasons=e,e.length>0?(this.acceptDonations.setValue(!1,{emitEvent:!1}),this.optOutReasonDisplayText=e[0].reason??""):(this.acceptDonations.setValue(!0,{emitEvent:!1}),this.optOutReasonDisplayText=""),this.shouldLockAcceptDonationsToggle(e)?this.acceptDonations.disable({emitEvent:!1}):this.acceptDonations.enable({emitEvent:!1})})}shouldLockAcceptDonationsToggle(e){let i=!!this.currentUser?.mighty_admin;for(let o of e){let c=o.type;if(c==="OptOutReason::Irs"||c==="OptOutReason::California"||c==="OptOutReason::Colorado"||c==="OptOutReason::Unclaimed"||c==="OptOutReason::BankAccount"||c==="OptOutReason::Mightycause"&&!i)return!0}return!1}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=D({type:r,selectors:[["app-general-org-settings"]],viewQuery:function(i,o){i&1&&(me(o.uploader,Mt,5),me(o.feePaymentExpansionPanel,Dt,5)),i&2&&Ce(2)},decls:127,vars:31,consts:[["customURL","ngModel"],["optOutToggleBtn",""],["feePaymentExpansionPanel",""],["OptOutSettingsTpl",""],["uploader",""],["brandAppearanceExpansionPanel",""],["subdomainURL","ngModel"],["searchCategoriesEditButton",""],["brandCategoriesEditButton",""],["TrackingID","ngModel"],[1,"min-vh-100"],[1,"dashboard-container-fluid",3,"hidden"],[3,"changeContentLoading"],[1,"dashboard-container-fluid","pb-5",3,"hidden"],[1,"row"],[1,"col-12","mb-3"],[1,"dashboard-heading"],[3,"hidden"],[1,"shadow","bg-white","setting-wrapper","mb-2"],[1,"row","g-0","align-items-center"],[1,"col-12"],[1,"mb-2"],[1,"col-12","col-md-8","offset-md-4","d-flex","flex-wrap","flex-md-nowrap","align-items-center"],[1,"sm","mb-0"],["type","text","matInput","","placeholder","Custom URL",3,"ngModelChange","ngModel"],[1,"ms-md-2"],["mat-raised-button","","color","primary",1,"custom","auto",3,"click","disabled"],[1,"update-overlay"],[1,"col-12","col-md-10"],[1,"col-12","col-md-4"],[1,"col-12","col-md-2","text-end"],["aria-label","Enable search visibility",3,"toggleChange","checked"],["
6id","accept-donations"],[1,"d-flex","align-items-center","mb-2"],[1,"mb-0"],[1,"status-box","danger","ms-2"],["aria-label","Accept donations",3,"toggleChange","formControl"],[1,"row","g-0"],[1,"col-12","col-sm-7"],[3,"routerLink"],[1,"col-12","col-sm-5"],[1,"ps-2","text-end"],["matInput","",3,"ngModelChange","ngModel"],["mat-raised-button","","color","primary","type","button","appLoadingBtn","",1,"custom","auto","mb-2",3,"click","active"],[3,"shareData"],["id","feePaymentModel",3,"hidden"],["href","/pricing"],[1,"toggle-btn",3,"click","hidden"],[1,"me-1"],[1,"fa-solid","fa-angle-down"],[1,"settings-expansion-panel"],["matExpansionPanelContent",""],[1,"me-2"],[1,"fa-solid","fa-angle-up"],["ctxName","uploader-org-settings",3,"uploaded","cropPreset"],[1,"col-12","col-md-8"],[1,"text-end"],[1,"fal","fa-check-circle"],["type","button","mat-raised-button","","color","accent",1,"custom","auto",3,"click"],[1,"sm","mb-0","text-secondary"],["mat-button","","color","accent","type","button",1,"custom",3,"click"],[1,"left-icon"],[1,"fal","fa-pencil"],[1,"mb-2","text-admin"],[1,"row","g-0","mb-2"],[1,"col-12","col-sm-3","mb-3"],[1,"me-sm-4"],[1,"primary-logo"],[1,"placeholder"],["role","button","type","button","tabindex","0",1,"image"],[1,"col-12","col-sm-3","mb-3",3,"hidden","ngClass"],[1,"light-logo"],["role","button","type","button","tabindex","0",1,"placeholder"],[1,"col-12","col-sm-6","mb-3",3,"hidden","ngClass"],[1,"header-logo","shadow-sm","bg-white"],[1,"col-12","col-sm-6"],[3,"colorChange","color"],["mat-raised-button","","color","primary","appLoadingBtn","",1,"custom","auto",3,"click","active"],[1,"row","g-0","mb-2",3,"ngClass"],[1,"col-12","col-md-7"],[1,"subdomain-input","d-flex","flex-wrap","flex-md-nowrap","align-items-center"],["type","text","matInput","","placeholder","Subdomain",3,"ngModelChange","ngModel"],[1,"edit-box-border"],[1,"image-icon"],[1,"fal","fa-image"],["role","button","type","button","tabindex","0",1,"image",3,"click","keydown.enter"],["alt","primary logo",1,"img-fluid",3,"src"],[1,"spinner"],["diameter","50"],["role","button","type","button","tabindex","0",1,"placeholder",3,"click","keydown.enter"],["alt","light logo",1,"img-fluid",3,"src"],["role","button",1,"status-box","caution","xs"],[1,"me-1","icon"],[1,"fa-solid","fa-exclamation-triangle"],[1,"callouts-box","danger","mb-2",3,"hideToggle","expanded"],[1,"px-0"],[1,"me-0"],[1,"header-title-wrapper"],[1,"left-content"],[1,"icon"],[1,"fa-solid","fa-triangle-exclamation"],[1,"me-1","text-dark"],[1,"right-content"],[1,"content-wrapper"],["context","settings",3,"reason","org","brand","supportEmail"],[1,"col-12","col-md-3"],[1,"overline","mb-0"],["mat-icon-button","","type","button","aria-label","actions",1,"sm",3,"click"],[3,"ngModelChange","change","ngModel"],["value","enableGuarantee","color","primary",3,"checked"],[1,"ms-2","mb-1"],[1,"ms-2","sm"],[1,"col-12","col-md-5"],[1,"sm"],[1,"p-2","mb-2","bg-gray-200"],[1,"display-2","mb-0","text-center"],[1,"display-2","mt-0","mb-0","text-center"],["color","primary","disabled","",3,"checked"],[1,"w-100"],[1,"text-center","mb-1"],["type","button",1,"btn-link","text-secondary","sm"],[1,"fa-solid","fa-circle-info"],["mat-raised-button","","color","primary",1,"custom","pill","lg"],["value","disableGuarantee","color","primary",3,"checked"],[1,"text-center","p-2","mb-2","bg-gray-200"],[1,"display-2","mb-0"],[1,"display-2","mt-0"],["value","grandFathered","color","primary",3,"checked"],["color","primary","disabled",""],["tabindex","0","role","button","type","button",1,"cursor-pointer",3,"click","keydown.enter"],["role","button","type","button","tabindex","0",1,"cursor-pointer",3,"click","keydown.enter"],[1,"col-12","col-md-4","offset-md-8","d-flex","flex-wrap","flex-md-nowrap","align-items-center"],["type","text","matInput","","maxlength","100",3,"ngModelChange","ngModel"],[1,"p-2",3,"ngSubmit","formGroup"],[1,"sm","mb-2"],["formControlName","reasonType"],[3,"value"],["appearance","outline",1,"sm"],["matInput","","formControlName","reasonDescription","rows","3"],["formControlName","allowOrgAdminToRevert",1,"text-admin","mt-1"],[1,"text-end","mt-2"],["appLoadingBtn","","mat-button","","color","primary","type","submit",1,"custom",3,"active"],["matInput","","formControlName","reasonTypeOther","placeholder","Reason"]],template:function(i,o){if(i&1){let c=v();n(0,"div",10)(1,"div",11)(2,"app-org-content-loader",12),f("changeContentLoading",function(C){return m(c),g(o.pageLoading=!!C)}),t()(),n(3,"div",13)(4,"div",14)(5,"div",15)(6,"h1",16),a(7,"General Settings"),t()()(),u(8,Lt,11,2,"section"),u(9,Qt,20,3,"section",17),n(10,"section")(11,"div",18)(12,"div",19)(13,"div",20)(14,"h2",21),a(15,"URL Customization"),t(),n(16,"p"),a(17," Change the text ending of your organization page's web address to better reflect your brand. Your old address will automatically redirect to your new one. "),t()(),n(18,"div",22)(19,"p",23),a(20),t(),n(21,"mat-form-field")(22,"mat-label"),a(23,"Custom URL"),t(),n(24,"input",24,0),P("ngModelChange",function(C){return m(c),w(o.customUrl,C)||
6(o.customUrl=C),g(C)}),t()(),n(26,"div",25)(27,"button",26),f("click",function(){return m(c),g(o.updateUrl())}),a(28," Save "),t()()()(),u(29,$t,3,0,"div",27),t()(),n(30,"section")(31,"div",18)(32,"div",19)(33,"div",28)(34,"h2",21),a(35,"Search Engine Visibility"),t(),u(36,Ht,6,0,"div",29),n(37,"p"),a(38,"Show your cause in platform search results and make it eligible to appear in search engines such as Google. "),t()(),n(39,"div",30)(40,"app-ms-toggle",31),f("toggleChange",function(C){return m(c),g(o.updateDiscoverability(C))}),t()()(),u(41,Xt,3,0,"div",27),t()(),n(42,"section",32)(43,"div",18)(44,"div",19)(45,"div",28)(46,"div",33)(47,"h2",34),a(48,"Accept Donations"),t(),u(49,Jt,5,0,"div",35),t(),n(50,"p"),a(51,' Display a "Donate" button on your page and allow visitors to make donations. Disabling donations will permanently cancel any active recurring donations and will remove your organization from search results. '),t()(),n(52,"div",30,1)(54,"app-ms-toggle",36),f("toggleChange",function(C){m(c);let B=x(53),he=x(124);return g(o.openOptOutSettings(he,B,C))}),t()()(),u(55,en,4,0,"div",14),u(56,tn,3,0,"div",27),t()(),n(57,"section")(58,"div",18)(59,"div",37)(60,"div",38)(61,"h2",21),a(62,"Alternate Search Names"),t(),n(63,"p"),a(64," Alternative names for your organization that donors can use to find you within the search. This could be an acronym or secondary name that is used by your organization. To update your primary name and information please visit your "),n(65,"a",39),a(66,"Organization Info"),t(),a(67," page. "),t()(),n(68,"div",40)(69,"div",41)(70,"mat-form-field")(71,"mat-label"),a(72,"Name 1"),t(),n(73,"input",42),P("ngModelChange",function(C){return m(c),w(o.orgData.org_info.cached_alias1,C)||(o.orgData.org_info.cached_alias1=C),g(C)}),t(),n(74,"mat-hint"),a(75,"Optional"),t()(),n(76,"mat-form-field",21)(77,"mat-label"),a(78,"Name 2"),t(),n(79,"input",42),P("ngModelChange",function(C){return m(c),w(o.orgData.org_info.cached_alias2,C)||(o.orgData.org_info.cached_alias2=C),g(C)}),t(),n(80,"mat-hint"),a(81,"Optional"),t()(),n(82,"button",43),f("click",function(){return m(c),g(o.updateAliases())}),a(83," Save "),t()()()(),u(84,nn,3,0,"div",27),t()(),u(85,cn,10,2,"section"),n(86,"section")(87,"div",18)(88,"div",19)(89,"div",20)(90,"h2",21),a(91,"Social Sharing"),t(),n(92,"p"),a(93," Customize the appearance of the social card that is generated
6when people share your link on social media. "),t()(),n(94,"div",20),p(95,"app-social-share-settings",44),t()()()(),n(96,"section",45)(97,"div",18)(98,"div",37)(99,"div",20)(100,"h2",21),a(101,"Fee Payment Model"),t(),n(102,"p",17),a(103," There are two different models your organization can utilize in order to pay the "),n(104,"a",46),a(105,"Mightycause platform and standard credit card fees"),t(),a(106," associated with each donation. "),t(),n(107,"p",17),a(108," There are two different models your organization can utilize in order to pay the fees associated with each donation. "),t()(),n(109,"div",20)(110,"button",47),f("click",function(){m(c);let C=x(115);return g(C.toggle())}),n(111,"span",48),p(112,"i",49),t(),a(113,"More "),t(),n(114,"mat-expansion-panel",50,2),G(116,_n,52,24,"ng-template",51),t(),n(117,"button",47),f("click",function(){m(c);let C=x(115);return g(C.toggle())}),n(118,"span",52),p(119,"i",53),t(),a(120,"Less "),t()()(),u(121,hn,3,0,"div",27),t()(),u(122,Cn,18,3,"section"),t()(),G(123,On,23,5,"ng-template",null,3,ve),n(125,"app-uc-uploader",54,4),f("uploaded",function(C){return m(c),g(o.onUploadSuccess(C))}),t()}if(i&2){let c=x(25),S=x(115);l(),h("hidden",!o.pageLoading),l(2),h("hidden",o.pageLoading),l(5),_((o.orgService.currentPricingPlan==null?null:o.orgService.currentPricingPlan.category)!=="free"&&(o.orgService.enabledPlanFeatures!=null&&o.orgService.enabledPlanFeatures.domain_masking)?8:-1),l(),_(o.brand.id===1&&(o.currentUser!=null&&o.currentUser.mighty_admin)?9:-1),l(11),y("",o.currentDomain,"/organization/"),l(4),O("ngModel",o.customUrl),l(3),h("disabled",c.pristine),l(2),_(o.spinner.customUrl?29:-1),l(7),_(o.discoverability?-1:36),l(4),h("checked",o.discoverability),l(),_(o.spinner.discoverability?41:-1),l(8),_(o.acceptDonations.value?-1:49),l(5),h("formControl",o.acceptDonations),l(),_(o.acceptDonations.value?-1:55),l(),_(o.spinner.acceptDonations?56:-1),l(9),h("routerLink",be(30,Tt)),l(8),O("ngModel",o.orgData.org_info.cached_alias1),l(6),O("ngModel",o.orgData.org_info.cached_alias2),l(3),h("active",o.spinner.aliases),l(2),_(o.spinner.aliases?84:-1),l(),_(!(!(o.brand==null||o.brand.search_config==null)&&o.brand.search_config.hide_categories)||!(o.orgData.brand_org_configs==null||o.orgData.brand_org_configs.brand_search_tags==null)&&o.orgData.brand_org_configs.brand_search_tags.active&&(o.orgSettings==null||o.orgSettings.brand_settings==null||o.orgSettings.brand_settings.brand_categories==null?null:o.orgSettings.brand_settings.brand_categories.length)>0?85:-1),l(10),h("shareData",o.orgData.metadata),l(),h("hidden",!o.organizationFeeModelSettingsEnabled),l(6),h("hidden",o.brand.id!==1),l(5),h("hidden",o.brand.id===1),l(3),h("hidden",S.expanded),l(7),h("hidden",!S.expanded),l(4),_(o.spinner.feePayment?121:-1),l(),_((o.orgSettings==null?null:o.orgSettings.payment_account_type)==="Cybersource"?122:-1),l(3),h("cropPreset",o.currentCropPreset)}},dependencies:[we,Oe,Ge,H,Y,Q,$,Fe,ke,V,j,k,$e,Qe,at,it,ot,rt,nt,ie,ne,ee,Ue,te,re,oe,Re,Ae,Ye,qe,je,Be,Ie,Le,Xe,Je,le,mt,ut,Z,Ve,X,J,pt,Ze,Se],styles:['.setting-wrapper[_ngcontent-%COMP%]{position:relative;padding:1rem}.setting-wrapper[_ngcontent-%COMP%] .settings-expansion-panel[_ngcontent-%COMP%]{box-shadow:none}.settings-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding-left:0;padding-right:0;font-size:1rem}.primary-logo[_ngcontent-%COMP%]{cursor:pointer;position:relative;width:100%;padding-top:100%;border-radius:var(--mc-radius-8);overflow:hidden}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%]{position:absolute;inset:0}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:after, .primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:after{content:"";position:absolute;left:0;width:100%;height:3px;background:-webkit-linear-gradient(to left,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-o-linear-gradient(right,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-moz-linear-gradient(right,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:linear-gradient(to right,#fff0 50%,#0000001a 50%);background-size:18px 100%}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:before, .primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:before{content:"";position:absolute;top:0;bottom:0;width:3px;height:100%;background:-webkit-linear-gradient(to top,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-o-linear-gradient(bottom,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-moz-linear-gradient(bottom,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:linear-gradient(to bottom,#fff0 50%,#0000001a 50%);background-size:100% 18px}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:after{top:0}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:before{right:0}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:after{bottom:0}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:before{left:0}.primary-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .image-icon[_ngcontent-%COMP%]{font-size:3.5rem;position:absolute;
6left:50%;top:50%;-moz-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.primary-logo[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{position:absolute;inset:0}.primary-logo[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:var(--mc-radius-8)}.light-logo[_ngcontent-%COMP%]{cursor:pointer;position:relative;width:100%;padding-top:100%;background-color:#000c;border-radius:var(--mc-radius-8)}.light-logo[_ngcontent-%COMP%] .image-icon[_ngcontent-%COMP%]{font-size:3.5rem;color:var(--mc-neutral-min);position:absolute;left:50%;top:50%;-moz-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.light-logo[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#000c;border-radius:var(--mc-radius-8)}.header-logo[_ngcontent-%COMP%]{padding:9px 0}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%]{cursor:pointer;position:relative;text-align:center;width:50%;margin:auto;border-radius:var(--mc-radius-8);overflow:hidden}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:after, .header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:after{content:"";position:absolute;left:0;width:100%;height:3px;background:-webkit-linear-gradient(to left,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-o-linear-gradient(right,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-moz-linear-gradient(right,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:linear-gradient(to right,#fff0 50%,#0000001a 50%);background-size:18px 100%}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:before, .header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:before{content:"";position:absolute;top:0;bottom:0;width:3px;height:100%;background:-webkit-linear-gradient(to top,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-o-linear-gradient(bottom,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:-moz-linear-gradient(bottom,rgba(255,255,255,0) 50%,rgba(0,0,0,.1) 50%);background:linear-gradient(to bottom,#fff0 50%,#0000001a 50%);background-size:100% 18px}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:after{top:0}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:before{right:0}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:after{bottom:0}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .edit-box-border[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child:before{left:0}.header-logo[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] .image-icon[_ngcontent-%COMP%]{font-size:3rem}.header-logo[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:50%;margin:auto;border-radius:var(--mc-radius-8)}']})}return r})();export{Ii as OrgGeneralSettingsComponent}; 7 8//# debugId=8b3d2175-af0f-5fa3-96c9-e86ca8141559
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.