PageSourceSearch

https://hipgive.org/365.13f7d0781bf171a8.js

js hipgive.org collected 2026-10-03 19:07:15 UTC 30,916 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhipgive_org_front=self.webpackChunkhipgive_org_front||[]).push([[365],{365:(J,h,r)=>{r.r(h),r.d(h,{FundsDispersalModule:()=>N});var c=r(177),m=r(7786),s=r(9417),t=r(4438),d=r(8018),p=r(1626),u=r(5312),g=r(4412),b=r(8010);let f=(()=>{class n{constructor(e,i){this.http=e,this.authService=i,this.setShowSideModal=new g.t(!1),this.currentShowSideModal=this.setShowSideModal.asObservable(),this.setShowUpdateOrganizationStatusModal=new g.t(!1),this.currentShowUpdateOrganizationStatusModal=this.setShowUpdateOrganizationStatusModal.asObservable(),this.setDataUpdateOrganizationStatus=new g.t(""),this.currentDataUpdateOrganizationStatus=this.setDataUpdateOrganizationStatus.asObservable(),this.setResetList=new g.t(""),this.currentResetList=this.setResetList.asObservable()}showSideModal(e){this.setShowSideModal.next(e)}showUpdateOrganizationStatusModal(e){this.setShowUpdateOrganizationStatusModal.next(e)}dataUpdateOrganizationStatus(e){this.setDataUpdateOrganizationStatus.next(e)}resetList(e){this.setResetList.next(e)}getAllocateFunds(e){let i=new p.Lr;return i=i.append("Authorization",`Bearer ${this.authService.getToken()}`),this.http.post(`${u.c.api}/allocate_funds/search`,e,{headers:i})}statusUpdate(e){let i=new p.Lr;return i=i.append("Authorization",`Bearer ${this.authService.getToken()}`),this.http.post(`${u.c.api}/allocate_funds/status_update`,e,{headers:i})}getGCInfo(e){let i=new p.Lr;return i=i.append("Authorization",`Bearer ${this.authService.getToken()}`),this.http.post(`${u.c.api}/giving_circle/search_detailed`,e,{headers:i})}getOrganizations(e){let i=new p.Lr;return i=i.append("Authorization",`Bearer ${this.authService.getToken()}`),this.http.post(`${u.c.api}/organization/search`,e,{headers:i})}static{this.\u0275fac=function(i){return new(i||n)(t.KVO(p.Qq),t.KVO(b.u))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var _=r(418);let F=(()=>{class n{constructor(e,i,a){this.formBuilder=e,this.notifierService=i,this.fundsDispersalService=a}ngOnInit(){this.createGeneralStatusBuildForm(),this.getLanguage(),this.errorsLanguage(),this.setExternalVariables()}getLanguage(){this.lang=location.href.split("/")[3]}setExternalVariables(){this.fundsDispersalService.currentDataUpdateOrganizationStatus.subscribe(e=>{this.asignamentFundsId=e.asignament_funds_id,this.updateOrganizationForm.get("status").setValue(e.status)})}createGeneralStatusBuildForm(){this.updateOrganizationForm=this.formBuilder.group({status:[1,s.k0.required]})}errorsLanguage(){this.emptyErrMsg="en"===this.lang?"Please fill all the fields":"Por favor, llene todos los campos"}createGeneralStatus(){if(!this.updateOrganizationForm.valid)return void this.notifierService.notify("error",this.emptyErrMsg);const e={asignament_funds_id:this.asignamentFundsId,status:this.updateOrganizationForm.get("status").value,lang:this.lang};this.fundsDispersalService.statusUpdate(e).subscribe(i=>{this.fundsDispersalService.resetList("reset"),this.notifierService.notify("success",i.message),this.closeModal()},i=>{this.notifierService.notify("error",i.error.message)})}closeModal(){this.updateOrganizationForm.reset(),this.fundsDispersalService.showUpdateOrganizationStatusModal(!1)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(s.ze),t.rXU(_.iJ),t.rXU(f))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-update-org-status-modal"]],decls:39,vars:28,consts:[[1,"modal"],[1,"generic-modal-mask"],[1,"modal__wrapper"],[1,"modal__header"],[3,"click"],[1,"modal__body"],[3,"formGroup"],[1,"row-form"],[1,"input-item"],["formControlName","status"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],[1,"modal__actions"],[1,"cancel-detail-modal",3,"click"],[1,"red-btn",3,"click"]],template:function(i,a){1&i&&(t.j41(0,"section",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"div",3)(4,"div",4),t.bIt("click",function(){return a.closeModal()}),t.EFF(5,"x"),t.k0s(),t.j41(6,"div"),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"label"),t.EFF(14),t.nI1(15,"translate"),t.j41(16,"select",9)(17,"option",10),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"option",11),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"option",12),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"option",13),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"option",14),t.EFF(30),t.nI1(31,"translate"),t.k0s()()()()()()(),t.j41(32,"div",15)(33,"button",16),t.bIt("click",function(){return a.closeModal()}),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.j41(36,"button",17),t.bIt("click",function(){return a.createGeneralStatus()}),t.EFF(37),t.nI1(38,"translate"),t.k0s()()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,10,"edit_status")," "),t.R7$(3),t.Y8G("formGroup",a.updateOrganizationForm),t.R7$(4),t.SpI(" ",t.bMT(15,12,"status")," "),t.R7$(4),t.JRh(t.bMT(19,14,"required")),t.R7$(3),t.JRh(t.bMT(22,16,"approved")),t.R7$(3),t.JRh(t.bMT(25,18,"declined")),t.R7$(3),t.JRh(t.bMT(28,20,"in_review")),t.R7$(3),t.JRh(t.bMT(31,22,"delivered")),t.R7$(4),t.SpI(" ",t.bMT(35,24,"cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(38,26,"save")," "))},dependencies:[s.xH,s.y7,s.wz,s.BC,s.cb,s.j4,s.JD,d.D9],styles:[".modal[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;left:0;z-index:999;display:flex;justify-content:center;align-items:center}.modal__wrapper[_ngcontent-%COMP%]{max-width:450px;width:100%;background:#fff;position:relative;margin:0 auto;max-height:87vh;overflow:hidden;border-radius:8px}.modal__header[_ngcontent-%COMP%]{text-align:center;color:#ea1527;font-weight:700;font-size:1.4rem;border-bottom:1px solid #ddd;font-family:poppins;padding:12px 0}.modal__header[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){position:absolute;
1left:15px;font-size:.9rem;color:#ccc;margin-top:4px;cursor:pointer}.modal__body[_ngcontent-%COMP%]{padding:10px 40px;font-size:1.5rem;overflow-y:scroll;max-height:65vh}.row-form[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.modal__actions[_ngcontent-%COMP%]{padding:10px 40px 20px;display:flex;justify-content:space-evenly}.cancel-detail-modal[_ngcontent-%COMP%]{height:44px;width:50%;border-radius:7px;background-color:#fff;border:0;color:#5c5c5c;font-size:1rem;font-weight:700;transition:all .2s}.red-btn[_ngcontent-%COMP%]{cursor:pointer;height:40px;margin-right:10px;border-radius:7px;background-color:#ea1527;border:1px solid #EA1527;margin-left:10px;color:#fff;font-size:1rem;transition:all .2s;font-weight:700;padding:0 1.5em}.red-btn[_ngcontent-%COMP%]:hover{background-color:#fff;color:#ea1527}"]})}}return n})();function v(n,o){if(1&n){const e=t.RV6();t.j41(0,"button",15),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.showUpdateOrganizationStatusModal())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"update_status")," "))}function M(n,o){1&n&&(t.j41(0,"button",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"update_status")," "))}let x=(()=>{class n{constructor(e){this.fundsDispersalService=e}ngOnInit(){this.translateFuntion(),this.setExternalVariables(),this.allocationStatus=this.asignamentFundsDetail?.status_text}closeSideModal(){this.fundsDispersalService.showSideModal(!1)}translateFuntion(){this.lang=location.href.split("/")[3]}setExternalVariables(){this.fundsDispersalService.currentResetList.subscribe(e=>{"reset"===e&&this.getFundsDispersals()})}getFundsDispersals(){this.fundsDispersalService.getAllocateFunds({conditions:{asignament_funds_id:this.asignamentFundsDetail?.asignament_funds_id},lang:this.lang}).subscribe(i=>{this.allocationStatus=i.results[0].status_text})}showUpdateOrganizationStatusModal(){this.fundsDispersalService.showUpdateOrganizationStatusModal(!0),this.fundsDispersalService.dataUpdateOrganizationStatus(this.asignamentFundsDetail)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(f))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-detail-modal"]],inputs:{asignamentFundsDetail:"asignamentFundsDetail"},decls:47,vars:32,consts:[[1,"side-modal"],[1,"side-modal__wrapper"],[1,"side-modal__header"],[1,"side-modal-modal__title"],[1,"side-modal-modal__body"],[1,"row-form"],[1,"input-item","input-width"],["for",""],["type","text","disabled","",3,"value"],["type","text","disabled","","placeholder","",3,"value"],[1,"input-item"],[1,"side-modal-modal__footer"],[1,"cancel-detail-modal",3,"click"],["class","red-btn",3,"click",4,"ngIf"],["class","red-btn-disable",4,"ngIf"],[1,"red-btn",3,"click"],[1,"red-btn-disable"]],template:function(i,a){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",4)(7,"div",5)(8,"div",6)(9,"label",7),t.EFF(10),t.nI1(11,"translate"),t.nrm(12,"input",8),t.k0s()(),t.j41(13,"div",6)(14,"label",7),t.EFF(15),t.nI1(16,"translate"),t.nrm(17,"input",9),t.k0s()()(),t.j41(18,"div",5)(19,"div",6)(20,"label",7),t.EFF(21),t.nI1(22,"translate"),t.nrm(23,"input",8),t.k0s()(),t.j41(24,"div",6)(25,"label",7),t.EFF(26),t.nI1(27,"translate"),t.nrm(28,"input",8),t.k0s()()(),t.j41(29,"div",5)(30,"div",10)(31,"label"),t.EFF(32),t.nI1(33,"translate"),t.nrm(34,"input",8),t.k0s()()(),t.j41(35,"div",5)(36,"div",10)(37,"label"),t.EFF(38),t.nI1(39,"translate"),t.nrm(40,"input",8),t.k0s()()()(),t.j41(41,"div",11)(42,"button",12),t.bIt("click",function(){return a.closeSideModal()}),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.DNE(45,v,3,3,"button",13)(46,M,3,3,"button",14),t.k0s()()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,16,"transaction_detail")," "),t.R7$(6),t.SpI(" ",t.bMT(11,18,"transaction_id")," "),t.R7$(2),t.Y8G("value",null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.asignament_funds_id),t.R7$(3),t.SpI(" ",t.bMT(16,20,"date")," "),t.R7$(2),t.Y8G("value",null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.created_at),t.R7$(4),t.SpI(" ",t.bMT(22,22,"amount")," "),t.R7$(2),t.Y8G("value",null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.amount),t.R7$(3),t.SpI(" ",t.bMT(27,24,"currency")," "),t.R7$(2),t.Y8G("value",null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.currency),t.R7$(4),t.SpI(" ",t.bMT(33,26,"organization")," "),t.R7$(2),t.Y8G("value",null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.organization),t.R7$(4),t.SpI(" ",t.bMT(39,28,"allocation_status")," "),t.R7$(2),t.Y8G("value",a.allocationStatus),t.R7$(3),t.SpI(" ",t.bMT(44,30,"cancel")," "),t.R7$(2),t.Y8G("ngIf",3!==(null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.status)),t.R7$(),t.Y8G("ngIf",3===(null==a.asignamentFundsDetail?null:a.asignamentFundsDetail.status)))},dependencies:[c.bT,d.D9],styles:[".side-modal[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;display:flex;justify-content:flex-end;align-items:center}.side-modal__wrapper[_ngcontent-%COMP%]{width:530px;overflow:auto;padding-top:10px;box-sizing:border-box;height:100vh;background:#fff;position:relative;margin:0 205px;border:1.5px solid #f2f2f2;border-radius:8px 0 0 8px;box-shadow:0 0 16px #e1e1e1}.side-modal__header[_ngcontent-%COMP%]{color:#2f2f2f;font-family:Poppins;font-size:26px;font-weight:700;padding:10px 0 10px 35px}.side-modal-modal__title[_ngcontent-%COMP%]{display:flex;align-items:center}.row-form[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.input-width[_ngcontent-%COMP%]{width:48%}.side-modal-modal__body[_ngcontent-%COMP%]{padding:10px 40px;font-size:1.5rem;overflow:auto}.side-modal-modal__footer[_ngcontent-%COMP%]{padding:10px 40px;display:flex;justify-content:flex-end}.red-btn-disable[_ngcontent-%COMP%]{height:44px;width:50%;padding:10px 15px;border-radius:7px;background-color:#d0d0d0;border:0;color:#fff;font-size:1rem;font-weight:700;transition:all .2s}.red-btn[_ngcontent-%COMP%]{height:44px;width:50%;padding:10px 15px;border-radius:7px;background-color:#ea1527;border:0;color:#fff;font-size:1rem;font-weight:700;transition:all .2s}.red-btn[_ngcontent-%COMP%]:hover{background-color:#fff;border:1px solid #EA1527;color:#ea1527}.cancel-detail-modal[_ngcontent-%COMP%]{height:44px;width:50%;border-radius:7px;background-color:#fff;border:0;color:#5c5c5c;font-size:1rem;font-weight:700;transition:all .2s}@media screen and (max-width: 900px){.side-modal__wrapper[_ngcontent-%COMP%]{width:505px;margin:0 210px 0 0}}"]})}}return n})();function R(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",14),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return a.filterForm.reset(),a.getFundsDispersals(!0),t.Njj(a.showResetBtn=!1)}),t.nrm(1,"img",15),t.k0s()}}function C(n,o){if(1&n){const e=t.RV6();t.j41(0,"tr",16),t.bIt("click",function(){const a=t.eBV(e).$implicit,l=t.XpG();return t.Njj(l.showAsignamentFundsDetail(a))}),t.j41(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.nI1(5,"number"),t.k0s(),t.j41(6,"td"),t.EFF(7),t.k0s(),t.j41(8,"td"),t.EFF(9),t.k0s(),t.j41(10,"td"),t.EFF(11),t.k0s(),t.j41(12,"td"),t.EFF(13),t.k0s(),t.j41(14,"td"),t.EFF(15),t.k0s(),t.j41(16,"td"),t.EFF(17),t.k0s(),t.j41(18,"td"),t.EFF(19),t.k0s()()}if(2&n){const e=o.$implicit;t.R7$(2),t.JRh(e.asignament_funds_id),t.R7$(2),t.JRh(t.bMT(5,9,e.amount)),t.R7$(3),t.JRh(e.currency),t.R7$(2),t.JRh(e.giving_circle),t.R7$(2),t.JRh(e.giving_circle_id),t.R7$(2),t.JRh(e.organization),t.R7$(2),t.JRh(e.organization_id),t.R7$(2),t.JRh(e.created_at),t.R7$(2),t.JRh(e.status_text)}}function I(n,o){1&n&&(t.j41(0,"div",17),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"no_records")," "))}function k(n,o){if(1&n&&(t.j41(0,"div",18),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.LHq(" ",t.bMT(2,4,"page")," ",e.page," ",t.bMT(3,6,"of")," ",e.paginatorTotalNumber," ")}}function w(n,o){if(1&n){const e=t.RV6();t.j41(0,"button",22),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.paginator("prev"))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"previous")," "))}function O(n,o){if(1&n){const e=t.RV6();t.j41(0,"button",22),t.bIt("click",function(){t.eBV(e);const a=t.XpG(3);return t.Njj(a.paginator("",a.page+1))}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(3);t.R7$(),t.SpI(" ",e.page+1," ")}}function S(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",23)(1,"button",22),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.paginator("",a.page))}),t.EFF(2),t.k0s(),t.DNE(3,O,2,1,"button",20),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(2),t.SpI(" ",e.page," "),t.R7$(),t.Y8G("ngIf",e.page!==e.paginatorTotalNumber)}}function D(n,o){if(1&n){const e=t.RV6();t.j41(0,"button",22),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.paginator("next"))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"next")," "))}function j(n,o){if(1&n&&(t.j41(0,"div",19),t.DNE(1,w,3,3,"button",20)(2,S,4,2,"div",21)(3,D,3,3,"button",20),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",1!==e.page),t.R7$(),t.Y8G("ngIf",e.page>=1),t.R7$(),t.Y8G("ngIf",e.page!==e.paginatorTotalNumber)}}function $(n,o){if(1&n&&(t.j41(0,"option",52),t.EFF(1),t.k0s()),2&n){const e=o.$implicit;t.Y8G("value",e.organization_id),t.R7$(),t.JRh(e.name)}}function T(n,o){if(1&n&&(t.j41(0,"option",52),t.EFF(1),t.k0s()),2&n){const e=o.$implicit;t.Y8G("value",e.giving_circle_id),t.R7$(),t.JRh(e.title)}}function y(n,o){if(1&n){const e=t.RV6();t.j41(0,"section",24),t.nrm(1,"div",25),t.j41(2,"div",26)(3,"div",27)(4,"div",28),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.showFilterModal=!1)}),t.EFF(5,"x"),t.k0s(),t.j41(6,"div",29),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",30)(10,"div",31)(11,"label",32),t.EFF(12),t.nI1(13,"translate"),t.nrm(14,"input",33),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",31)(17,"label"),t.EFF(18),t.nI1(19,"translate"),t.j41(20,"select",34)(21,"option",35),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.DNE(24,$,2,2,"option",36),t.k0s()()(),t.j41(25,"div",31)(26,"label"),t.EFF(27),t.nI1(28,"translate"),t.j41(29,"select",37)(30,"option",35),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"option",38),t.EFF(34,"USD"),t.k0s(),t.j41(35,"option",39),t.EFF(36,"MXN"),t.k0s()()()(),t.j41(37,"div",31)(38,"label"),t.EFF(39),t.nI1(40,"translate"),t.j41(41,"select",40)(42,"o
1ption",35),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.DNE(45,T,2,2,"option",36),t.k0s()()(),t.j41(46,"div",31)(47,"label"),t.EFF(48),t.nI1(49,"translate"),t.j41(50,"select",41)(51,"option",35),t.EFF(52),t.nI1(53,"translate"),t.k0s(),t.j41(54,"option",42),t.EFF(55),t.nI1(56,"translate"),t.k0s(),t.j41(57,"option",43),t.EFF(58),t.nI1(59,"translate"),t.k0s(),t.j41(60,"option",44),t.EFF(61),t.nI1(62,"translate"),t.k0s(),t.j41(63,"option",45),t.EFF(64),t.nI1(65,"translate"),t.k0s(),t.j41(66,"option",46),t.EFF(67),t.nI1(68,"translate"),t.k0s()()()(),t.j41(69,"div",31)(70,"label",32),t.EFF(71),t.nI1(72,"translate"),t.nrm(73,"input",47),t.k0s()(),t.j41(74,"div",31)(75,"label",32),t.EFF(76),t.nI1(77,"translate"),t.nrm(78,"input",48),t.k0s()()(),t.j41(79,"div",49)(80,"button",50),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return a.filterForm.reset(),a.getFundsDispersals(!0),a.showFilterModal=!1,t.Njj(a.showResetBtn=!1)}),t.EFF(81),t.nI1(82,"translate"),t.k0s(),t.j41(83,"button",51),t.bIt("click",function(){t.eBV(e);const a=t.XpG();
1return a.getFundsDispersals(!0),a.showFilterBtn=!0,t.Njj(a.showResetBtn=!0)}),t.EFF(84),t.nI1(85,"translate"),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(7),t.SpI(" ",t.bMT(8,23,"filter")," "),t.R7$(2),t.Y8G("formGroup",e.filterForm),t.R7$(3),t.SpI(" ",t.bMT(13,25,"transaction_id")," "),t.R7$(2),t.FS9("placeholder",t.bMT(15,27,"transaction_id")),t.R7$(4),t.SpI(" ",t.bMT(19,29,"organization")," "),t.R7$(4),t.SpI("- ",t.bMT(23,31,"organization")," -"),t.R7$(2),t.Y8G("ngForOf",e.organizations),t.R7$(3),t.SpI(" ",t.bMT(28,33,"currency")," "),t.R7$(4),t.SpI("- ",t.bMT(32,35,"currency")," -"),t.R7$(8),t.SpI(" ",t.bMT(40,37,"giving_circles")," "),t.R7$(4),t.SpI("- ",t.bMT(44,39,"giving_circles")," -"),t.R7$(2),t.Y8G("ngForOf",e.givingCircle),t.R7$(3),t.SpI(" ",t.bMT(49,41,"status")," "),t.R7$(4),t.JRh(t.bMT(53,43,"status")),t.R7$(3),t.JRh(t.bMT(56,45,"required")),t.R7$(3),t.JRh(t.bMT(59,47,"approved")),t.R7$(3),t.JRh(t.bMT(62,49,"declined")),t.R7$(3),t.JRh(t.bMT(65,51,"in_review")),t.R7$(3),t.JRh(t.bMT(68,53,"delivered")),t.R7$(4),t.SpI(" ",t.bMT(72,55,"date_ini")," "),t.R7$(5),t.SpI(" ",t.bMT(77,57,"date_end")," "),t.R7$(5),t.SpI(" ",t.bMT(82,59,"cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(85,61,"filter_btn")," ")}}function E(n,o){if(1&n&&t.nrm(0,"app-detail-modal",53),2&n){const e=t.XpG();t.Y8G("asignamentFundsDetail",e.asignamentFundsDetail)}}function z(n,o){1&n&&t.nrm(0,"app-update-org-status-modal")}const P=[{path:"",component:(()=>{class n{constructor(e,i,a,l){this.translate=e,this.formBuilder=i,this.fundsDispersalService=a,this.notifierService=l,this.organizations=[],this.givingCircle=[],this.fundsDispersalList=[],this.page=1,this.entrys=20,this.pageLengthContainer=0}ngOnInit(){this.translateFuntion(),this.setExternalVariables(),this.getGCInfo(),this.getOrganizations(),this.filterBuildForm(),this.getFundsDispersals(!1)}setExternalVariables(){this.fundsDispersalService.currentShowSideModal.subscribe(e=>{this.showSideModal=e}),this.fundsDispersalService.currentShowUpdateOrganizationStatusModal.subscribe(e=>{this.showUpdateOrganizationStatusModal=e}),this.fundsDispersalService.currentResetList.subscribe(e=>{"reset"===e&&this.getFundsDispersals(!1)})}translateFuntion(){this.lang=location.href.split("/")[3],this.translate.setDefaultLang(this.lang),this.translate.use(this.lang)}filterBuildForm(){this.filterForm=this.formBuilder.group({asignament_funds_id:new s.hs(""),giving_circle_id:new s.hs(""),date_ini:new s.hs(""),date_end:new s.hs(""),amount:new s.hs(""),status:new s.hs(""),currency:new s.hs(""),organization_id:new s.hs(""),allocation_status:new s.hs("")})}getFundsDispersals(e){this.showLoader=!0;const i={conditions:{},lang:this.lang,pagination:{page:this.page,entrys:this.entrys}};this.filterForm.get("asignament_funds_id").value&&""!==this.filterForm.get("asignament_funds_id").value&&(i.conditions.asignament_funds_id=this.filterForm.get("asignament_funds_id").value),this.filterForm.get("giving_circle_id").value&&""!==this.filterForm.get("giving_circle_id").value&&(i.conditions.giving_circle_id=this.filterForm.get("giving_circle_id").value),this.filterForm.get("date_ini").value&&""!==this.filterForm.get("date_ini").value&&(i.conditions.date_ini=this.filterForm.get("date_ini").value),this.filterForm.get("status").value&&""!==this.filterForm.get("status").value&&(i.conditions.status=this.filterForm.get("status").value),this.filterForm.get("date_end").value&&""!==this.filterForm.get("date_end").value&&(i.conditions.date_end=this.filterForm.get("date_end").value),this.filterForm.get("amount").value&&""!==this.filterForm.get("amount").value&&(i.conditions.amount=this.filterForm.get("amount").value),this.filterForm.get("currency").value&&""!==this.filterForm.get("currency").value&&(i.conditions.currency=this.filterForm.get("currency").value),this.filterForm.get("organization_id").value&&""!==this.filterForm.get("organization_id").value&&(i.conditions.organization_id=this.filterForm.get("organization_id").value),this.filterForm.get("allocation_status").value&&""!==this.filterForm.get("allocation_status").value&&(i.conditions.allocation_status=this.filterForm.get("allocation_status").value),e&&(this.page=1,this.entrys=20),this.fundsDispersalService.getAllocateFunds(i).subscribe(a=>{this.fundsDispersalList=a.results,this.totalItems=this.fundsDispersalList.length,this.pageLengthContainer=this.pageLengthContainer+this.fundsDispersalList.length,this.totalRegs=Number(a.total),this.paginatorNumbers(),this.showLoader=!1,this.show
1FilterModal=!1})}paginatorNumbers(){const e=Number(this.totalRegs/this.entrys);this.paginatorStatus=e%1!=0,this.paginatorTotalNumber=Math.ceil(this.totalRegs/20)}paginator(e,i){"prev"===e?(this.page=this.page-1,this.pageLengthContainer=this.totalRegs-this.pageLengthContainer):this.page="next"===e?this.page+1:i,this.getFundsDispersals(!1)}getGCInfo(){this.fundsDispersalService.getGCInfo({lang:this.lang}).subscribe(i=>{this.givingCircle=i.results})}getOrganizations(){this.fundsDispersalService.getOrganizations({conditions:{},lang:this.lang}).subscribe(i=>{this.organizations=i.results})}showAsignamentFundsDetail(e){this.showSideModal=!0,this.asignamentFundsDetail=e}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(d.c$),t.rXU(s.ze),t.rXU(f),t.rXU(_.iJ))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-funds-dispersal"]],decls:48,vars:41,consts:[[1,"organization-section"],[1,"header-section"],[1,"title-content"],[1,"actions-content"],["class","reset--filter",3,"click",4,"ngIf"],[1,"filter-btn",3,"click"],[1,"table-scroll-ipad"],["class","table--item",3,"click",4,"ngFor","ngForOf"],["class","empty__legend",4,"ngIf"],["class","container-info-paginator",4,"ngIf"],["class","container-button",4,"ngIf"],["class","filter-modal",4,"ngIf"],[3,"asignamentFundsDetail",4,"ngIf"],[4,"ngIf"],[1,"reset--filter",3,"click"],["src","/assets/images/home-user-profile/actualizar-flecha.svg","alt",""],[1,"table--item",3,"click"],[1,"empty__legend"],[1,"container-info-paginator"],[1,"container-button"],["class","btn-button",3,"click",4,"ngIf"],["class","container-page-paginator",4,"ngIf"],[1,"btn-button",3,"click"],[1,"container-page-paginator"],[1,"filter-modal"],[1,"filter-modal-mask","generic-modal-mask"],[1,"filter-modal-wrapper"],[1,"filter-modal-header"],[3,"click"],[1,""],[1,"filter-modal-body",3,"formGroup"],[1,"input-item"],["for",""],["formControlName","asignament_funds_id","type","text",3,"placeholder"],["formControlName","organization_id"],["value",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","currency"],["value","USD"],["value","MXN"],["formControlName","giving_circle_id"],["formControlName","status"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["formControlName","date_ini","type","date"],["formControlName","date_end","type","date"],[1,"filter-btn-content"],[1,"button-cancel",3,"click"],[1,"apply-btn",3,"click"],[3,"value"],[3,"asignamentFundsDetail"]],template:function(i,a){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",3),t.DNE(6,R,2,0,"div",4),t.j41(7,"button",5),t.bIt("click",function(){return a.showFilterModal=!0}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()(),t.j41(10,"div")(11,"div",6)(12,"table")(13,"tr")(14,"th"),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"th"),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"th"),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"th"),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"th"),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"th"),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"th"),t.EFF(33),t.nI1(34,"translate"),t.k0s(),t.j41(35,"th"),t.EFF(36),t.nI1(37,"translate"),t.k0s(),t.j41(38,"th"),t.EFF(39),t.nI1(40,"translate"),t.k0s()(),t.DNE(41,C,20,11,"tr",7),t.k0s()(),t.DNE(42,I,3,3,"div",8)(43,k,4,8,"div",9)(44,j,4,3,"div",10),t.k0s()(),t.DNE(45,y,86,63,"section",11)(46,E,1,1,"app-detail-modal",12)(47,z,1,0,"app-update-org-status-modal",13)),2&i&&(t.R7$(3),t.SpI(" ",t.bMT(4,19,"funds_dispersal")," "),t.R7$(3),t.Y8G("ngIf",a.showResetBtn),t.R7$(2),t.SpI(" ",t.bMT(9,21,"filter")," "),t.R7$(7),t.JRh(t.bMT(16,23,"transaction_id")),t.R7$(3),t.JRh(t.bMT(19,25,"amount")),t.R7$(3),t.JRh(t.bMT(22,27,"currency")),t.R7$(3),t.JRh(t.bMT(25,29,"giving_circles")),t.R7$(3),t.JRh(t.bMT(28,31,"giving_circle_id")),t.R7$(3),t.JRh(t.bMT(31,33,"organization")),t.R7$(3),t.JRh(t.bMT(34,35,"organization_id")),t.R7$(3),t.JRh(t.bMT(37,37,"transaction_date")),t.R7$(3),t.JRh(t.bMT(40,39,"allocation_status")),t.R7$(2),t.Y8G("ngForOf",a.fundsDispersalList),t.R7$(),t.Y8G("ngIf",!a.fundsDispersalList.length),t.R7$(),t.Y8G("ngIf",a.totalRegs>=a.entrys),t.R7$(),t.Y8G("ngIf",a.totalRegs>=a.entrys),t.R7$(),t.Y8G("ngIf",a.showFilterModal),t.R7$(),t.Y8G("ngIf",a.showSideModal),t.R7$(),t.Y8G("ngIf",a.showUpdateOrganizationStatusModal))},dependencies:[c.Sq,c.bT,s.xH,s.y7,s.me,s.wz,s.BC,s.cb,s.j4,s.JD,F,x,c.QX,d.D9],styles:[".organization-section[_ngcontent-%COMP%]{padding:100px 85px 0}.header-section[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;margin-bottom:2em}.title-content[_ngcontent-%COMP%]{width:50%;height:36px;color:#2f2f2f;font-family:Poppins;font-size:26px;font-weight:700}.actions-content[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:50%}.red-btn[_ngcontent-%COMP%]{cursor:pointer;height:40px;margin-right:10px;border-radius:7px;background-color:#ea1527;border:1px solid #EA1527;margin-left:10px;color:#fff;font-size:1rem;transition:all .2s;font-weight:700;padding:0 1.5em}.red-btn[_ngcontent-%COMP%]:hover{background-color:#fff;color:#ea1527}.title-usa-opt[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}.actions__currency-settings[_ngcontent-%COMP%]{display:flex;align-items:center}.actions__currency-settings[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:0 .2em}.actions__currency-settings[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-left:1em}table[_ngcontent-%COMP%]{border-collapse:collapse;width:100%}th[_ngcontent-%COMP%]{border:0;padding:15px;text-align:left;font-family:Poppins;font-size:15px;color:#2f2f2f}td[_ngcontent-%COMP%]{padding:15px;border:1px solid #dddddd;text-align:left;font-size:13px;color:#7a7a7a;font-weight:600}tr[_ngcontent-%COMP%]{transition:all .2s}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f8f8f88c}.table--item[_ngcontent-%COMP%]:hover{background-color:#a0a0a031;
1cursor:pointer}.table__actions[_ngcontent-%COMP%]{text-align:center;width:250px}.table__actions[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;cursor:pointer}.table__actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin:0 .7em}.empty__legend[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:50vh;font-size:1.4rem;color:#33333361;font-weight:700}.filter-modal[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;left:0;z-index:999;display:flex;justify-content:center;align-items:center}.filter-modal-wrapper[_ngcontent-%COMP%]{max-width:630px;width:25%;background:#fff;position:relative;margin:0 auto;max-height:87vh;overflow:hidden;border-radius:8px}.filter-modal-header[_ngcontent-%COMP%]{text-align:center;color:#ea1527;font-weight:700;font-size:1.4rem;border-bottom:1px solid #ddd;font-family:poppins;padding:12px 0}.filter-modal-header[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){position:absolute;left:15px;font-size:.9rem;color:#ccc;margin-top:4px;cursor:pointer}.filter-modal-body[_ngcontent-%COMP%]{padding:10px 40px;font-size:1.5rem;max-height:60vh;overflow:auto}.filter-btn-content[_ngcontent-%COMP%]{width:100%;padding:10px 40px;display:flex;justify-content:center;margin-bottom:2px;align-items:center;border-top:1px solid #cecece}.filter-btn-content[_ngcontent-%COMP%]   .button-cancel[_ngcontent-%COMP%]{height:44px;width:50%;border-radius:7px;background-color:#fff;border:0;color:#5c5c5c;font-size:1rem;font-weight:700;transition:all .2s}.apply-btn[_ngcontent-%COMP%]{height:44px;width:50%;border-radius:7px;margin-left:10px;background-color:#ea1527;border:0;color:#fff;font-size:1rem;font-weight:700;transition:all .2s}.apply-btn[_ngcontent-%COMP%]:hover{background-color:#fff;border:1px solid #EA1527;color:#ea1527}.reset--filter[_ngcontent-%COMP%]{display:flex;align-items:center}.reset--filter[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25px;margin-right:15px;cursor:pointer}.container-info-paginator[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}.container-button[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:20px}.container-button.none[_ngcontent-%COMP%]{display:none}.container-button[_ngcontent-%COMP%]   .btn-button[_ngcontent-%COMP%]{margin:5px;width:auto}.table-scroll-ipad[_ngcontent-%COMP%]{overflow:auto}@media screen and (max-width: 900px){.organization-section[_ngcontent-%COMP%]{padding:100px 30px 0 0}.side-modal__wrapper[_ngcontent-%COMP%]{width:505px;margin:0 210px 0 0}.table__actions[_ngcontent-%COMP%]{width:180px}.table__actions[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:17px;cursor:pointer}.title-content[_ngcontent-%COMP%]{font-size:22px}.red-btn[_ngcontent-%COMP%]{font-size:.7rem}.filter-modal-wrapper[_ngcontent-%COMP%]{max-width:688px;width:44%}}"]})}}return n})()}];let G=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[m.iI.forChild(P),m.iI]})}}return n})();var U=r(5218);let N=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({providers:[d.c$],imports:[c.MD,G,s.X1,d.h.forChild({loader:(0,U.Xk)({prefix:"./assets/i18n/admin-layout/funds-dispersal/",suffix:".json"}),isolate:!0})]})}}return n})()}}]);

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.