PageSourceSearch

https://hipgive.org/6091.9c35486e7c6855b3.js

js hipgive.org collected 2026-10-03 19:09:31 UTC 8,632 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhipgive_org_front=self.webpackChunkhipgive_org_front||[]).push([[6091],{6091:(y,p,o)=>{o.r(p),o.d(p,{PartnersModule:()=>k});var c=o(177),l=o(7786),t=o(4438),d=o(9081),g=o(418),s=o(8018);function f(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",7)(1,"div",8)(2,"button",9),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.campaignAdminLayoutService.enableCampaingEdit(!1))}),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",10)(6,"button",11),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.showUpdateModal=!0)}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()}2&n&&(t.R7$(3),t.SpI(" ",t.bMT(4,2,"cancel")," "),t.R7$(4),t.SpI(" ",t.bMT(8,4,"update_partners")," "))}function m(n,r){if(1&n&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e.title),t.R7$(2),t.JRh(e.partner_id)}}function u(n,r){1&n&&(t.j41(0,"div",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"no_partners")," "))}function h(n,r){if(1&n&&(t.j41(0,"div"),t.nrm(1,"input",23),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("value",e.partner_id)}}function b(n,r){if(1&n&&(t.j41(0,"div"),t.nrm(1,"input",24),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("value",e.partner_id)}}function _(n,r){if(1&n&&(t.j41(0,"div",21)(1,"div"),t.EFF(2),t.k0s(),t.DNE(3,h,2,1,"div",22)(4,b,2,1,"div",22),t.k0s()),2&n){const e=r.$implicit;t.R7$(2),t.SpI(" ",e.title," "),t.R7$(),t.Y8G("ngIf",e.selected),t.R7$(),t.Y8G("ngIf",!e.selected)}}function x(n,r){if(1&n){const e=t.RV6();t.j41(0,"section",13),t.nrm(1,"div",14),t.j41(2,"div",15)(3,"div",16)(4,"div",9),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.showUpdateModal=!1)}),t.EFF(5,"x"),t.k0s(),t.j41(6,"div",17),t.EFF(7,"Partners "),t.k0s()(),t.j41(8,"div",18),t.DNE(9,_,5,3,"div",19),t.k0s(),t.j41(10,"div",20)(11,"div",8)(12,"button",9),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.showUpdateModal=!1)}),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"button",11),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.updatePartners())}),t.EFF(16),t.nI1(17,"translate"),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(9),t.Y8G("ngForOf",e.partnersAvailable),t.R7$(4),t.SpI(" ",t.bMT(14,3,"cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(17,5,"active")," ")}}const v=[{path:"",component:(()=>{class n{constructor(e,a,i){this.campaignAdminLayoutService=e,this.notifierService=a,this.translate=i,this.partnersSelected=[],this.notifier=a}ngOnInit(){this.getCampaingId(),this.enableCampaingEdit(),this.getLanguage(),this.getCampaingDetail()}getCampaingId(){this.campaingUrl=location.href.split("/")[6]}getLanguage(){this.lang=location.href.split("/")[3],this.translate.setDefaultLang(this.lang),this.translate.use(this.lang)}enableCampaingEdit(){this.campaignAdminLayoutService.currentEnableCampaingEdit.subscribe(e=>{this.shoeEnableCampaingEdit=e})}getCampaingDetail(){this.campaignAdminLayoutService.getCampaingDetail({lang:this.lang},this.campaingUrl).subscribe(a=>{const{results:i}=a;this.campaingId=i.campaign_id,this.getPartners(),this.getGeneralPartners()})}getPartners(){this.campaignAdminLayoutService.getPartners({lang:this.lang},this.campaingId).subscribe(a=>{this.partnersList=a.results,this.partnersTotal=a.total})}getGeneralPartners(){this.campaignAdminLayoutService.getGeneralPartners({conditions:{},lang:this.lang}).subscribe(a=>{this.partnersAvailable=a.results;for(const i of this.partnersAvailable)for(const M of this.partnersList)M.title===i.title&&(i.selected=!0)})}updatePartners(){const e=document.getElementsByClassName("inputItem");this.partnersSelected=[];for(const i of e)i.checked&&this.partnersSelected.push(i.defaultValue);this.campaignAdminLayoutService.updatePartners({campaign:{partners:this.partnersSelected},lang:this.lang},this.campaingId).subscribe(i=>{this.getPartners(),this.showUpdateModal=!1,this.notifier.notify("success",i.message)},i=>{this.notifier.notify("error",i.error.message)})}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(d.H),t.rXU(g.iJ),t.rXU(s.
1c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-partners"]],decls:14,vars:4,consts:[[1,"campaign"],[1,"header"],["class","update-section",4,"ngIf"],[1,"partners-table-section"],[4,"ngFor","ngForOf"],["class","no-partners",4,"ngIf"],["class","update-modal",4,"ngIf"],[1,"update-section"],[1,"cancel-btn"],[3,"click"],[1,"create-section"],[1,"update-btn",3,"click"],[1,"no-partners"],[1,"update-modal"],[1,"update-modal-mask","generic-modal-mask"],[1,"update-modal-wrapper"],[1,"update-modal-header"],[1,""],[1,"update-modal-body"],["class","partner-item",4,"ngFor","ngForOf"],[1,"update-btn-content"],[1,"partner-item"],[4,"ngIf"],["type","checkbox","checked","",1,"inputItem",3,"value"],["type","checkbox",1,"inputItem",3,"value"]],template:function(a,i){1&a&&(t.j41(0,"section",0)(1,"div",1),t.DNE(2,f,9,6,"div",2),t.k0s(),t.j41(3,"div",3)(4,"div")(5,"table")(6,"tr")(7,"th"),t.EFF(8,"Partner"),t.k0s(),t.j41(9,"th"),t.EFF(10,"ID"),t.k0s()(),t.DNE(11,m,5,2,"tr",4),t.k0s()(),t.DNE(12,u,3,3,"div",5),t.k0s()(),t.DNE(13,x,18,7,"section",6)),2&a&&(t.R7$(2),t.Y8G("ngIf",i.shoeEnableCampaingEdit),t.R7$(9),t.Y8G("ngForOf",i.partnersList),t.R7$(),t.Y8G("ngIf",0===i.partnersTotal),t.R7$(),t.Y8G("ngIf",i.showUpdateModal))},dependencies:[c.Sq,c.bT,s.D9],styles:[".update-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:15px}.update-btn[_ngcontent-%COMP%]{height:44px;width:auto;font-size:1rem;font-weight:700;border-radius:8px;border:solid 1px #EA1527;color:#fff;font-weight:600;background-color:#ea1527;transition:.3s;padding:8px 20px}.update-btn[_ngcontent-%COMP%]:hover{color:#ea1527;border:solid 1px #EA1527;background-color:#fff}table[_ngcontent-%COMP%]{border-collapse:collapse;width:100%}th[_ngcontent-%COMP%]{border:0;padding:20px 0 20px 24px;text-align:left;font-family:Poppins;font-size:15px;color:#2f2f2f}td[_ngcontent-%COMP%]{padding:20px 0 20px 24px;border:1px solid #dddddd;text-align:left;font-size:13px;color:#7a7a7a;font-weight:600}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f8f8f88c}.checkbox-partner[_ngcontent-%COMP%]{padding:0;width:120px;text-align:center}.cancel-btn[_ngcontent-%COMP%]{margin-right:15px}.cancel-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100px;height:40px;font-size:1rem;font-weight:700;font-weight:600;border:0;color:#5a5a5a;background-color:#fff;padding:8px 20px}.no-partners[_ngcontent-%COMP%]{display:flex;justify-content:center;font-weight:700;font-size:30px;color:#33333352;padding:40px}.update-modal[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;left:0;z-index:999;display:flex;justify-content:center;align-items:center}.update-modal-wrapper[_ngcontent-%COMP%]{max-width:630px;width:30%;background:#fff;position:relative;margin:0 auto;max-height:87vh;overflow:hidden;border-radius:8px}.update-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}.update-modal-header[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){position:absolute;left:15px;font-size:.9rem;color:#ccc;margin-top:4px;cursor:pointer}.update-modal-body[_ngcontent-%COMP%]{padding:10px 40px;font-size:1.5rem;max-height:70vh;overflow:auto}.btn-section-modal[_ngcontent-%COMP%]{width:100%;padding:0 40px;display:flex;justify-content:center;margin-bottom:20px}.btn-section-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:44px;width:100%;border-radius:7px;background-color:#ea1527;border:0;color:#fff;font-size:1rem;font-weight:700;transition:all .2s}.btn-section-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:#fff;border:1px solid #EA1527;color:#ea1527}.partner-item[_ngcontent-%COMP%]{display:flex;font-size:16px;justify-content:space-between;height:50px;align-items:center;padding:20px}.partner-item[_ngcontent-%COMP%]:nth-child(2n){background-color:#f8f8f8b9}.update-btn-content[_ngcontent-%COMP%]{display:flex;padding:7px 40px;justify-content:flex-end}"]})}}return n})()}];let C=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[l.iI.forChild(v),l.iI]})}}return n})();var P=o(5218);let k=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({providers:[s.c$],imports:[c.MD,C,s.h.forChild({loader:(0,P.Xk)({prefix:"./assets/i18n/campaing-layout/",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.