PageSourceSearch

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

js mightycause.com collected 2026-10-01 07:34:19 UTC 13,346 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]="c335a72a-0453-5158-a820-dfcdbf8f5724")}catch(e){}}();
3import{a as Ne}from"./chunk-7XZRVYPS.js";import{b as Pe}from"./chunk-HIIYI656.js";import{a as Ae}from"./chunk-5DR2TZCK.js";import{a as Be,b as Ie,c as Ve}from"./chunk-XHPBKMRW.js";import{a as Fe,b as ke}from"./chunk-FMAAPPZH.js";import{a as Te}from"./chunk-ILMBWTNW.js";import{a as _e,b as be,c as fe,h as De}from"./chunk-TMNV4PDT.js";import{a as ge,b as he,c as Ce,e as Se,f as we,h as ve,i as xe,k as ye,l as Me,n as Ee,p as Re}from"./chunk-IZJQTZVB.js";import"./chunk-ETZRMDHS.js";import{a as ue}from"./chunk-XZFXRJRY.js";import{d as E}from"./chunk-AAFBOZHS.js";import{c as ce}from"./chunk-KSQRQOTB.js";import"./chunk-FLZNG7WM.js";import"./chunk-Y53ZYOIU.js";import"./chunk-4OKMPB3H.js";import{c as pe}from"./chunk-CN4EGA4I.js";import{f as de}from"./chunk-LWLX7MZR.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import"./chunk-5CMUHLSG.js";import"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-ZFWNFD6F.js";import"./chunk-IKWIL4NU.js";import"./chunk-5K5PYV5V.js";import"./chunk-TDGVUJZJ.js";import"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import{a as me,b as le}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 ae}from"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import"./chunk-CNRKNNWP.js";import"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import{a as se}from"./chunk-5SJALNJN.js";import{b as te,c as ne,e as ie,i as re}from"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import{G as Y,H as Z,I as ee,b as Q,d as T,g as U,h as K,o as J,r as W,u as X}from"./chunk-MF7VZYLI.js";import{b as z,e as G}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 $}from"./chunk-DL5K4IMO.js";import"./chunk-2PXCY4PH.js";import"./chunk-UERXTOL6.js";import{g as L,j as q}from"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-RT6Q43NP.js";import"./chunk-AHJZJV4E.js";import"./chunk-EQS4J37G.js";import"./chunk-U3L5FZOY.js";import"./chunk-TYTNPDEC.js";import"./chunk-WAPZ5LEW.js";import{B as j,L as H}from"./chunk-746D4QTP.js";import{Ac as g,Dc as C,Fd as O,Ib as k,Lc as B,Mc as I,Nc as y,Ob as _,Sc as m,Ua as F,Uc as h,cc as b,dc as f,hd as V,ic as d,jc as i,kc as r,lc as D,nd as R,pc as S,pd as P,qa as l,qb as o,qc as w,qd as A,sd as N,uc as x,va as u,wa as c}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";var Oe=["disbursementsTable"],je=()=>[5,10,15,25];function He(e,a){if(e&1){let t=x();i(0,"button",34),g("click",function(){u(t);let n=C(),p=y(10),M=y(13);return c(n.showNewDisbursement(M,p))}),i(1,"span",35),D(2,"i",36),r(),i(3,"span"),m(4,"New Disbursement"),r()()}}function Le(e,a){if(e&1&&(i(0,"p",38)(1,"strong"),m(2,"Processing Entity:"),r(),m(3),r()),e&2){let t=C(2);o(3),h(" ",t.disbBrandSettings.processing_entity_name," ")}}function qe(e,a){e&1&&(i(0,"mat-error"),m(1," Donations End Date is "),i(2,"strong"),m(3,"required"),r()())}function $e(e,a){e&1&&(i(0,"mat-error"),m(1," Disb. Adjustments End Date is "),i(2,"strong"),m(3,"required"),r()())}function ze(e,a){e&1&&(i(0,"div",32)(1,"div",45),D(2,"mat-spinner",46),r()())}function Ge(e,a){if(e&1){let t=x();i(0,"form",37),g("ngSubmit",function(){u(t);let n=C();return c(n.onNewDisbursementFormSubmit())}),b(1,Le,4,1,"p",38),i(2,"mat-form-field"),D(3,"input",39)(4,"mat-datepicker-toggle",40)(5,"mat-datepicker",null,3),b(7,qe,4,0,"mat-error"),r(),i(8,"mat-form-field"),D(9,"input",41),i(10,"mat-hint"),m(11),r(),D(12,"mat-datepicker-toggle",40)(13,"mat-datepicker",null,4),b(15,$e,4,0,"mat-error"),r(),i(16,"div",42)(17,"button",43),g("click",function(){u(t);let n=C();return c(n.cancelNewDisbursement())}),m(18," Cancel "),r(),i(19,"button",44),m(20,"Submit"),r()(),b(21,ze,3,0,"div",32),r()}if(e&2){let t=y(6),s=y(14),n=C();d("formGroup",n.newDisbursementForm),o(),f(n.disbBrandSettings!=null&&n.disbBrandSettings.processing_entity_name?1:-1),o(2),d("matDatepicker",t)("max",n.maxDate),o(),d("for",t),o(3),f(n.newDisbursementForm.controls.donationsEndDate.errors&&n.newDisbursementForm.controls.donationsEndDate.errors.required?7:-1),o(2),d("matDatepicker",s)("max",n.maxDate),o(2),h("11:59 PM ",n.disbBrandSettings==null?null:n.disbBrandSettings.processing_entity_time_zone),o(),d("for",s),o(3),f(n.newDisbursementForm.controls.disbur
3sementAdjustmentsEndDate.errors&&n.newDisbursementForm.controls.disbursementAdjustmentsEndDate.errors.required?15:-1),o(6),f(n.newDisbursementSpinner?21:-1)}}function Qe(e,a){e&1&&(i(0,"th",47),m(1,"Date"),r())}function Ue(e,a){if(e&1&&(i(0,"td",48),m(1),R(2,"date"),r()),e&2){let t=a.$implicit;o(),h(" ",P(2,1,t.date,"MM-dd-yyyy")," ")}}function Ke(e,a){e&1&&(i(0,"th",49),m(1," Total Sent "),r())}function Je(e,a){if(e&1&&(i(0,"td",50),m(1),R(2,"centsToCurrency"),r()),e&2){let t=a.$implicit;o(),h(" ",A(2,1,t.total_in_cents,"$","1.2-2")," ")}}function We(e,a){e&1&&(i(0,"th",47),m(1,"Method"),r())}function Xe(e,a){if(e&1&&(i(0,"td",51),m(1),r()),e&2){let t=a.$implicit;o(),h(" ",t.payment_method," ")}}function Ye(e,a){e&1&&(i(0,"th",47),m(1,"Status"),r())}function Ze(e,a){if(e&1&&(i(0,"td",51),m(1),r()),e&2){let t=a.$implicit;o(),h(" ",t.status," ")}}function et(e,a){e&1&&(i(0,"th",52),m(1,"Disbursed By"),r())}function tt(e,a){if(e&1&&(i(0,"td",51),m(1),r()),e&2){let t=a.$implicit;o(),h(" ",t.processing_entity_name," ")}}function nt(e,a){e&1&&D(0,"tr",53)}function it(e,a){if(e&1){let t=x();i(0,"tr",54),g("click",function(){let n=u(t).$implicit,p=C();return c(p.openDisbursementReport(n))}),r()}}function rt(e,a){e&1&&(i(0,"div",31)(1,"p"),m(2,"No results found."),r()())}function st(e,a){e&1&&(i(0,"div",32)(1,"div",45),D(2,"mat-spinner",46),r()())}var Ht=(()=>{class e{appService=l($);route=l(L);disbursementService=l(Ae);router=l(q);downloadReportService=l(Pe);userService=l(de);popper=l(ce);fb=l(Y);snackBar=l(pe);suggestedArticlesService=l(Te);table=O("disbursementsTable");urn;disbursementsColumns=["date","total_in_cents","payment_method","status","processing_entity_name"];disbursementsReport={data:null,page:1,perPage:10,sortBy:"created_at",sortOrder:"desc",total:0};loadingSpinner=!1;pageLoading;user;newDisbursementInputRef;newDisbursementSpinner=!1;mayManageDisbursements=!1;newDisbursementForm=this.fb.group({donationsEndDate:[E.now(),[T.required]],disbursementAdjustmentsEndDate:[E.now(),[T.required]]});maxDate=E.now();disbBrandSettings;platformId=l(F);constructor(){this.appService.footer=!1,this.urn=this.route.snapshot.parent.params.urn,this.suggestedArticlesService.suggestedLabel="org-disbursements"}ngOnInit(){H(this.platformId)&&(this.user=this.userService.currentUser,this.getReport(),this.route.queryParams.subscribe(t=>{t.download&&this.downloadReportService.download(this.urn,t.download)}))}getReport(){this.loadingSpinner=!0;let t={sort_by:this.disbursementsReport.sortBy,sort_order:this.disbursementsReport.sortOrder,per_page:this.disbursementsReport.perPage,page:this.disbursementsReport.page};this.disbursementService.getOrgDisbursements(this.urn,t).subscribe(s=>{this.disbursementsReport.data=s.disbursements,this.disbursementsReport.page===1&&(this.disbursementsReport.total=s.total,this.mayManageDisbursements=s.may_manage_disbursements),this.loadingSpinner=!1},()=>{this.loadingSpinner=!1})}openDisbursementReport(t){this.router.navigate([t.id],{relativeTo:this.route})}onPageChange(t){this.disbursementsReport.page=t.pageIndex+1,this.disbursementsReport.perPage=t.pageSize,this.getReport()}onSortChange(t){this.disbursementsReport.sortBy=t.active,this.disbursementsReport.sortOrder=t.direction,this.getReport()}showNewDisbursement(t,s){this.disbursementService.getOrgDisbursementSettings(this.urn).subscribe(n=>{this.disbBrandSettings=n.brand_settings;let p=this.maxDate.minus({months:1}).endOf("month");this.newDisbursementForm.controls.donationsEndDate.setValue(p),this.newDisbursementForm.controls.disbursementAdjustmentsEndDate.setValue(this.maxDate),this.newDisbursementInputRef=this.popper.open({content:t,origin:s,width:"250px"})})}cancelNewDisbursement(){this.newDisbursementForm.reset(),this.newDisbursementInputRef.close()}onNewDisbursementFormSubmit(){if(this.newDisbursementForm.invalid)return;this.newDisbursementSpinner=!0;let t={donations_end_date:this.newDisbursementForm.value.donationsEndDate.toFormat("yyyy-MM-dd"),disbursement_adjustments_end_date:this.newDisbursementForm.value.disbursementAdjustmentsEndDate.toFormat("yyyy-MM-dd")};this.disbursementService.create(this.urn,t).subscribe(s=>{this.newDisbursementSpinner=!1,this.newDisbursementInputRef.close(),s.message&&this.snackBar.open(s.message,"OK"),s.status==="success"&&(this.disbursementsReport.data.unshift(s.disbursement),this.table().renderRows())},()=>{this.newDisbursementSpinner=!1})}static \u0275fac=function(s){return new(s||e)};static \u0275cmp=k({type:e,selectors:[["app-disbursements"]],viewQuery:function(s,n){s&1&&B(n.table,Oe,5),s&2&&I()},decls:40,vars:12,consts:[["newDisbursementBtn",""],["newDisbursementInlineField",""],["disbursementsTable",""],["picker1",""],["picker2",""],[1,"min-vh-100"],[1,"container",3,"hidden"],[3,"changeContentLoading"],[1,"container","pb-5",3,"hidden"],[1,"row"],[1,"col-12"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center"],[1,"display-2","mb-3"],[1,"actions"],["mat-button","",1,"custom","text-admin"],[1,"table-wrapper"],[1,"table-responsive"],["mat-table","","matSort","",3,"matSortChange","dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","text-nowrap",4,"matCellDef"],["matColumnDef","total_in_cents"],["mat-header-cell","","mat-sort-header","","style","direction: rtl",4,"matHeaderCellDef"],["mat-cell","","class","text-end",4,"matCellDef"],["matColumnDef","payment_method"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","processing_entity_name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","cursor-pointer",3,"click",4,"matRowDef","matRowDefColumns"],[1,"table-no-results"],[1,"update-overlay"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions"],["mat-button","",1,"custom","text-admin",3,"click"],[1,"left-icon"],[1,"fal","fa-plus"],[1,"p-2",3,"ngSubmit","formGroup"],[1,"sm","mb-0"],["matInput","","placeholder","Donations End Date","formControlName","donationsEndDate",3,"matDatepicker","max"],["matSuffix","",3,"for"],["matInput","","placeholder","Adjustments End Date","formControlName","disbursementAdjustmentsEndDate",3,"matDatepicker","max"],[1,"text-end","mt-2"],["mat-button","","color","accent","type","button",1,"custom",3,"click"],["mat-button","","color","primary","type","submit",1,"custom"],[1,"spinner"],["diameter","50"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-nowrap"],["mat-header-cell","","mat-sort-header","",2,"direction","rtl"],["mat-cell","",1,"text-end"],["mat-cell",""],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"curs
3or-pointer",3,"click"]],template:function(s,n){if(s&1){let p=x();i(0,"div",5)(1,"div",6)(2,"app-org-content-loader",7),g("changeContentLoading",function(v){return u(p),c(n.pageLoading=!!v)}),r()(),i(3,"div",8)(4,"div",9)(5,"div",10)(6,"div",11)(7,"h1",12),m(8,"Disbursements"),r(),i(9,"div",13,0),b(11,He,5,0,"button",14),_(12,Ge,22,12,"ng-template",null,1,N),r()()()(),i(14,"div",9)(15,"div",10)(16,"div",15)(17,"div",16)(18,"table",17,2),g("matSortChange",function(v){return u(p),c(n.onSortChange(v))}),S(20,18),_(21,Qe,2,0,"th",19)(22,Ue,3,4,"td",20),w(),S(23,21),_(24,Ke,2,0,"th",22)(25,Je,3,5,"td",23),w(),S(26,24),_(27,We,2,0,"th",19)(28,Xe,2,1,"td",25),w(),S(29,26),_(30,Ye,2,0,"th",19)(31,Ze,2,1,"td",25),w(),S(32,27),_(33,et,2,0,"th",28)(34,tt,2,1,"td",25),w(),_(35,nt,1,0,"tr",29)(36,it,1,0,"tr",30),r()(),b(37,rt,3,0,"div",31),b(38,st,3,0,"div",32),i(39,"mat-paginator",33),g("page",function(v){return u(p),c(n.onPageChange(v))}),r()()()()()()}s&2&&(o(),d("hidden",!n.pageLoading),o(2),d("hidden",n.pageLoading),o(8),f(n.mayManageDisbursements?11:-1),o(7),d("dataSource",n.disbursementsReport.data),o(17),d("matHeaderRowDef",n.disbursementsColumns),o(),d("matRowDefColumns",n.disbursementsColumns),o(),f((n.disbursementsReport.data==null?null:n.disbursementsReport.data.length)===0?37:-1),o(),f(n.loadingSpinner?38:-1),o(),d("length",n.disbursementsReport.total)("pageSize",n.disbursementsReport.perPage)("pageSizeOptions",V(11,je)))},dependencies:[Z,J,Q,U,K,ee,W,X,G,z,De,_e,be,fe,se,re,ne,te,ie,ae,oe,ke,Fe,le,me,Ve,Be,Ie,Re,ge,Ce,xe,Se,he,ye,we,ve,Me,Ee,Ne,j,ue],encapsulation:2})}return e})();export{Ht as DisbursementsComponent};
4
5//# debugId=c335a72a-0453-5158-a820-dfcdbf8f5724

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.