PageSourceSearch

https://memorabid.com/chunk-AXJMI26W.js

js memorabid.com collected 2026-10-02 02:13:29 UTC 13,052 bytes, 1 lines download raw bytes

1import{a as ve}from"./chunk-F5E34W4S.js";import{a as F}from"./chunk-OJUNU5XK.js";import{a as k}from"./chunk-PGSVJCPW.js";import{a as P}from"./chunk-Z3RJ6543.js";import{a as we}from"./chunk-SF6B4Q7S.js";import{f as ue}from"./chunk-W7NYFTXD.js";import"./chunk-62PPDRN3.js";import"./chunk-R6ZZG3GH.js";import"./chunk-Y2JSFPU2.js";import"./chunk-5B57F7CQ.js";import"./chunk-WP5K4YT2.js";import{a as he}from"./chunk-MLHQZ5ZE.js";import{a as be}from"./chunk-372OA672.js";import"./chunk-5QFE73J2.js";import{b as Me,h as Ee}from"./chunk-NM5ZJMEK.js";import"./chunk-5DGEIKLL.js";import"./chunk-DDN3TDCH.js";import"./chunk-UK7K73B4.js";import"./chunk-VOASLNWF.js";import"./chunk-CRXTC4WA.js";import"./chunk-TYI6PQ6U.js";import"./chunk-3FX6MHYU.js";import"./chunk-DDZ4EERA.js";import{e as ge}from"./chunk-YLXCZFZ3.js";import{P as fe,f as ye,s as Ce}from"./chunk-73T7QSHR.js";import{a as _e,b as T}from"./chunk-TZ5BAEDW.js";import{Fa as ce,pa as me}from"./chunk-G63D4XK2.js";import{y as de}from"./chunk-SSVL63ME.js";import{a as le,b as se}from"./chunk-ZV4QMBVC.js";import{c as ee,g as te,h as ie,i as ne,j as oe,k as re,v as ae}from"./chunk-VRRSYZMO.js";import"./chunk-TC2TZDHK.js";import{d as N,e as pe}from"./chunk-UFCUC3YK.js";import{Aa as H,Ad as $,Bb as y,Db as C,Ea as r,Ed as j,Hb as K,Ib as Q,Jb as Y,Ma as w,Nb as W,Oa as I,Pa as B,Qb as z,Sb as p,Tb as d,Ua as V,Ub as R,Uc as J,Xb as v,Y as L,Yb as x,Zb as S,bc as q,dd as X,ea as m,fa as c,fc as D,g as U,kb as g,la as b,lb as o,mb as i,nb as f,oc as h,pc as _,wb as E,xd as Z}from"./chunk-RUOSUUM6.js";import"./chunk-JSSFPNKJ.js";var Te=["dt"],Le=()=>["categoryDescription","price","title","description"];function Be(a,u){if(a&1){let t=E();o(0,"div",6)(1,"app-app-search-input",7),y("inputChange",function(e){m(t);let s=C();return c(s.applyFilterGlobal(e,"contains",s.table))})("exportExcel",function(){m(t);let e=C();return c(e.exportExcel())}),i()()}}function Ve(a,u){a&1&&(o(0,"tr")(1,"th"),p(2),h(3,"translate"),i(),o(4,"th"),p(5),h(6,"translate"),i(),o(7,"th"),p(8),h(9,"translate"),i(),o(10,"th"),p(11),h(12,"translate"),i(),o(13,"th"),p(14),h(15,"translate"),i(),f(16,"th")(17,"th"),i()),a&2&&(r(2),d(_(3,5,"IDS_LOGO")),r(3),d(_(6,7,"IDS_BUSINESS_NAME")),r(3),d(_(9,9,"IDS_EMAIL")),r(3),d(_(12,11,"IDS_REFERENT_NAME")),r(3),d(_(15,13,"IDS_IBAN_CHARITY")))}function De(a,u){if(a&1){let t=E();o(0,"tr")(1,"td"),f(2,"img",8),i(),o(3,"td"),p(4),i(),o(5,"td"),p(6),i(),o(7,"td"),p(8),i(),o(9,"td"),p(10),i(),o(11,"td")(12,"button",9),y("click",function(){let e=m(t).$implicit,s=C();return c(s.onEdit(e.idCharity))}),f(13,"fa-icon",10),i()(),o(14,"td")(15,"button",9),y("click",function(){let e=m(t).$implicit,s=C();return c(s.onDelete(e.idCharity))}),f(16,"fa-icon",10),i()()()}if(a&2){let t=u.$implicit,n=C();r(2),g("src",t.fullLogoPath+"?w=100",H)("alt",t.postedFileName),r(2),d(t.businessName),r(2),d(t.email),r(2),d(t.referentName),r(2),d(t.iban),r(3),g("icon",n.faEdit),r(3),g("icon",n.faTrash)}}var Se=(()=>{class a{constructor(t){this.modalUtils=t,this.faCheck=fe,this.faEdit=ge,this.faTrash=Ce,this.faFileExcel=ye,this.charityList=[],this.editNewM
1odeEvent=new b,this.editModeEvent=new b,this.deleteEvent=new b}ngOnInit(){window.scrollTo({top:0,left:0})}applyFilterGlobal(t,n,e){e.filterGlobal(t.target.value,"contains")}onNew(){this.editNewModeEvent.emit({})}onEdit(t){this.editModeEvent.emit({idCharity:t})}onDelete(t){this.modalUtils.openModal(we,{size:"sm",keyboard:!1}).result.then(n=>{n==="1"&&this.deleteEvent.emit({idCharity:t})})}exportExcel(){be.exportExcel(this.charityList,"charities")}static{this.\u0275fac=function(n){return new(n||a)(w(ue))}}static{this.\u0275cmp=I({type:a,selectors:[["app-charity-list"]],viewQuery:function(n,e){if(n&1&&K(Te,5),n&2){let s;Q(s=Y())&&(e.table=s.first)}},inputs:{charityList:"charityList"},outputs:{editNewModeEvent:"isEditNewMode",editModeEvent:"isEditMode",deleteEvent:"delete"},standalone:!1,decls:9,vars:7,consts:[["dt",""],[1,"admin-new","text-uppercase","mb-4",3,"click"],["rowGroupMode","rowspan","dataKey","Pk","sortMode","single","responsiveLayout","scroll",3,"value","filterDelay","globalFilterFields"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"table-header"],[3,"inputChange","exportExcel"],[3,"src","alt"],[1,"admin-edit-delete-button",3,"click"],[3,"icon"]],template:function(n,e){n&1&&(o(0,"button",1),y("click",function(){return e.onNew()}),p(1),h(2,"translate"),i(),o(3,"div")(4,"p-table",2,0),V(6,Be,2,0,"ng-template",3)(7,Ve,18,15,"ng-template",4)(8,De,17,8,"ng-template",5),i()()),n&2&&(r(),d(_(2,4,"IDS_NEW_CHARITY")),r(3),g("value",e.charityList)("filterDelay",0)("globalFilterFields",D(6,Le)))},dependencies:[le,de,Me,F,N],styles:["img[_ngcontent-%COMP%]{max-width:100px;max-height:100px}.edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#2f2b27;border:none}.edit-button[_ngcontent-%COMP%]:active{background-color:#cba548;color:#fff}.new-campaign[_ngcontent-%COMP%]{height:40px;background-color:#e3e3e3;border:1px solid #cbcbcb;color:#2f2b27;border-top:none;border-bottom:none}.new-campaign[_ngcontent-%COMP%]:hover{border-left:3px solid #cba548;border-top:none;border-bottom:none}.new-campaign[_ngcontent-%COMP%]:active{background-color:#cba548;color:#fff;border-left:3px solid #cba548;border-right:3px solid #cba548}input[_ngcontent-%COMP%]{height:40px;width:100%;outline:none;padding:0 5px;border:1px solid #e3e3e3}select[_ngcontent-%COMP%]{height:40px;padding:0 5px;background-color:#fff;color:#cba548;border:1px solid #e3e3e3}"]})}}return a})();var Pe=()=>({height:"200px"}),Ie=(()=>{class a{constructor(){this.editModeEvent=new b,this.saveCharityEvent=new b,this.logoImage=null}ngOnInit(){window.scrollTo({top:0,left:0})}onSubmit(t){this.saveCharityEvent.emit({})}onList(){this.editModeEvent.emit({})}onChangeLogoImageModel(){this.logoImage?(this.selectedCharity.postedFileName=this.logoImage.originalFileName,this.selectedCharity.postedFileBase64=this.logoImage.base64,this.selectedCharity.fullLogoPath=null):(this.selectedCharity.postedFileName=null,this.selectedCharity.postedFileBase64=null)}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=I({type:a,selectors:[["app-charity-edit"]],inputs:{selectedCharity:"selectedCharity"},outputs:{editModeEvent:"isEditMode",saveCharityEvent:"save"},standalone:!1,decls:43,vars:41,consts:[["charityForm","ngForm"],[1,"admin-new","text-uppercase","mb-4",3,"click"],[3,"ngSubmit"],[1,"form-group","mb-4"],["for","businessName"],["type","text","id","businessName","name","businessName",1,"form-control",3,"ngModelChange","ngModel"],["for","email"],["type","email","id","email","name","email",1,"form-control",3,"ngModelChange","ngModel"],["for","referentName"],["type","text","id","referentName","name","referentName",1,"form-control",3,"ngModelChange","ngModel"],["for","ibanCharity"],["type","text","id","iban","name","iban",1,"form-control",3,"ngModelChange","ngModel"],["for","emailBody"],["name","emailBody",3,"ngModelChange","ngModel"],["name","fullLogoPath",3,"ngModelChange","labelText","ngModel","showPreview","previewSrc","previewAlt"],["type","submit",1,"btn","admin-submit","text-uppercase","me-2",3,"disabled"],[1,"btn","admin-submit","text-uppercase",3,"click"]],template:function(n,e){if(n&1){let s=E();o(0,"button",1),y("click",function(){return e.onList()}),p(1),h(2,"translate"),i(),o(3,"form",2,0),y("ngSubmit",function(){m(s);let l=W(4);return c(e.onSubmit(l))}),o(5,"div",3)(6,"label",4),p(7),h(8,"translate"),i(),f(9,"br"),o(10,"input",5),S("ngModelChange",function(l){return m(s),x(e.selectedCharity.businessName,l)||(e.selectedCharity.businessName=l),c(l)}),i()(),o(11,"div",3)(12,"label",6),p(13),h(14,"translate"),i(),f(15,"br"),o(16,"input",7),S("ngModelChange",function(l){return m(s),x(e.selectedCharity.email,l)||(e.selectedCharity.email=l),c(l)}),i()(),o(17,"div",3)(18,"label",8),p(19),h(20,"translate"),i(),f(21,"br"),o(22,"input",9),S("ngModelChange",function(l){return m(s),x(e.selectedCharity.referentName,l)||(e.selectedCharity.referentName=l),c(l)}),i()(),o(23,"div",3)(24,"label",10),p(25),h(26,"translate"),i(),f(27,"br"),o(28,"input",11),S("ngModelChange",function(l){return m(s),x(e.selectedCharity.iban,l)||(e.selectedCharity.iban=l),c(l)}),i()(),o(29,"div",3)(30,"label",12),p(31),h(32,"translate"),i(),o(33,"app-memo-editor",13),S("ngModelChange",function(l){return m(s),x(e.selectedCharity.emailBody,l)||(e.selectedCharity.emailBody=l),c(l)}),i()(),o(34,"div",3)(35,"app-image-input-field",14),h(36,"translate"),S("ngModelChange",function(l){return m(s),x(e.logoImage,l)||(e.logoImage=l),c(l)}),y("ngModelChange",function(){return e.onChangeLogoImageModel()}),i()(),o(37,"button",15),p(38),h(39,"translate"),i(),o(40,"button",16),y("click",function(){return e.onList()}),p(41),h(42,"translate"),i()()}if(n&2){let s=W(4);r(),d(_(2,22,"IDS_CHARITIES_GO_BACK")),r(6),d(_(8,24,"IDS_BUSINESS_NAME")),r(3),v("ngModel",e.selectedCharity.businessName),r(3),d(_(14,26,"IDS_EMAIL")),r(3),v("ngModel",e.selectedCharity.email),r(3),d(_(20,28,"IDS_REFERENT_NAME")),r(3),v("ngModel",e.selectedCharity.referentName),r(3),d(_(26,30,"IDS_IBAN_CHARITY")),r(3),v("ngModel",e.selectedCharity.iban),r(3),d(_(32,32,"IDS_EMAIL_BODY")),r(2),z(D(40,Pe)),v("ngModel",e.selectedCharity.emailBody),r(2),g("labelText",q(_(36,34,"IDS_LOGO"))),v("ngModel",e.logoImage),g("showPreview",!0)("previewSrc",e.selectedCharity.fullLogoPath?e.selectedCharity.fullLogoPath:e.selectedCharity.postedFileBase64)("previewAlt",e.selectedCharity.postedFileName),r(2),g("disabled",!s.form.valid),r(),R("",_(39,36,"IDS_BTN_SAVE")," "),r(3),R(" ",_(42,38,"IDS_GO_BACK")," ")}}
1,dependencies:[re,ee,te,ie,oe,ne,P,k,N],styles:["hr[_ngcontent-%COMP%]{border:1px solid #cba548}i[_ngcontent-%COMP%]{font-size:14px}input[_ngcontent-%COMP%]{height:40px;width:100%;outline:none;padding:0 5px;border:1px solid #e3e3e3}"]})}}return a})();function Ae(a,u){if(a&1){let t=E();o(0,"app-charity-list",7),y("isEditMode",function(e){m(t);let s=C();return c(s.goEditMode(e))})("isEditNewMode",function(){m(t);let e=C();return c(e.goNewMode())})("delete",function(e){m(t);let s=C();return c(s.onDelete(e))}),i()}if(a&2){let t=C();g("charityList",t.charityList)}}function Oe(a,u){if(a&1){let t=E();o(0,"app-charity-edit",8),y("save",function(){m(t);let e=C();return c(e.save())})("isEditMode",function(){m(t);let e=C();return c(e.goList())}),i()}if(a&2){let t=C();g("selectedCharity",t.selectedCharity)}}var O=class G{constructor(u,t,n,e){this.charityService=u,this.languageServices=t,this.router=n,this.route=e,this.charityList=[],this.selectedCharity={idCharity:-1,businessName:"",email:"",referentName:"",iban:"",emailBody:"",fullLogoPath:"",postedFileName:"",postedFileBase64:""},this.isEditMode=!1}ngOnInit(){this.loadData()}loadData(){this.charityService.getAll().pipe(T(this)).subscribe(u=>{this.charityList=u})}goNewMode(){this.selectedCharity={idCharity:-1,businessName:"",email:"",referentName:"",iban:"",emailBody:"",fullLogoPath:"",postedFileName:"",postedFileBase64:""},this.isEditMode=!0}save(){this.charityService.save(this.selectedCharity).subscribe(()=>{this.charityService.getAll().pipe(T(this)).subscribe(u=>{this.charityList=u,this.isEditMode=!1})})}goEditMode(u){this.charityService.getByPK(u.idCharity).pipe(T(this)).subscribe(t=>{this.selectedCharity=t,this.isEditMode=!0})}goList(){this.isEditMode=!1}goBack(){this.router.navigate([".."],{relativeTo:this.route})}onDelete(u){this.charityService.delete(u.idCharity).pipe(T(this)).subscribe(()=>{this.loadData()})}static{this.\u0275fac=function(t){return new(t||G)(w(ve),w(he),w($),w(Z))}}static{this.\u0275cmp=I({type:G,selectors:[["app-charity-manager"]],hostAttrs:["ngSkipHydration","true"],standalone:!1,decls:11,vars:5,consts:[[1,"container-md","mt-3","mb-3"],[1,"row","pt-3","pb-3"],[3,"click"],["src","/assets/img/arrow-gold.png","alt","Arrow"],[1,"ms-2","d-inline-block"],[3,"charityList","isEditMode","isEditNewMode","delete",4,"ngIf"],[3,"selectedCharity","save","isEditMode",4,"ngIf"],[3,"isEditMode","isEditNewMode","delete","charityList"],[3,"save","isEditMode","selectedCharity"]],template:function(t,n){t&1&&(o(0,"div",0)(1,"div",1)(2,"h1")(3,"a",2),y("click",function(){return n.goBack()}),p(4,"Admin"),i(),f(5,"img",3),o(6,"h2",4),p(7),h(8,"translate"),i()()(),V(9,Ae,1,1,"app-charity-list",5)(10,Oe,1,1,"app-charity-edit",6),i()),t&2&&(r(7),d(_(8,3,"IDS_CHARITIES")),r(2),g("ngIf",!n.isEditMode),r(),g("ngIf",n.isEditMode))},dependencies:[J,Se,Ie,N],styles:["h1[_ngcontent-%COMP%]{color:#2f2b27}a[_ngcontent-%COMP%]{cursor:pointer;margin-right:10px}a[_ngcontent-%COMP%]:hover{color:#cba548!important}"]})}};O=U([_e()],O);var We=[{path:"",component:O}],Ne=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=B({type:a})}static{this.\u0275inj=L({imports:[j.forChild(We),j]})}}return a})();var Ft=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=B({type:a})}static{this.\u0275inj=L({imports:[X,Ne,ae,ce,se,pe,Ee,P,k,me,F]})}}return a})();export{Ft as CharityManagerModule};

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.