PageSourceSearch

https://app.sudo.africa/chunk-QELTA2ZX.js

js sudo.africa collected 2026-10-01 14:08:39 UTC 22,245 bytes, 1 lines download raw bytes

1import{a as V}from"./chunk-2IRMU3YX.js";import{a as pe}from"./chunk-C5UR7T75.js";import{a as me}from"./chunk-NMNKZJZQ.js";import{a as de}from"./chunk-TWRDSACB.js";import{a as ne}from"./chunk-V2ABDSTM.js";import{a as ce}from"./chunk-D3PE62QW.js";import{a as se}from"./chunk-PSXW6BOQ.js";import{a as ie}from"./chunk-45XQ3WFY.js";import{a as le}from"./chunk-OKIBOQE3.js";import{a as oe}from"./chunk-5UJKBGCL.js";import"./chunk-OB5UAVBE.js";import{a as ve}from"./chunk-QSLNL4BQ.js";import"./chunk-7VIVELAX.js";import"./chunk-D7CWCKRK.js";import{a as ae}from"./chunk-DFZ7TRJB.js";import{a as X}from"./chunk-PNKD2IUI.js";import"./chunk-42GCKX6Z.js";import{a as M}from"./chunk-IS6JCKGM.js";import"./chunk-RN7H27IL.js";import"./chunk-6DTEB7GH.js";import"./chunk-NL7PTJMO.js";import"./chunk-O3NHZOCN.js";import{a as re}from"./chunk-JL2ULAAJ.js";import{b as te}from"./chunk-BGJKUWY7.js";import"./chunk-YEPBCAYY.js";import{d as W}from"./chunk-HKMOIDWK.js";import{a as ee}from"./chunk-VLPYRWR7.js";import{a as Z}from"./chunk-FYSMPE45.js";import{i as K}from"./chunk-AQTHDTEZ.js";import{$ as J,I as H,K as I,L as $,P as z,j as R,k as A,v as B}from"./chunk-FXBDAKGS.js";import{$b as N,Aa as j,Ba as O,Bb as d,Gb as L,Ob as a,Pb as i,Qb as v,Ub as Y,Vc as Q,Zb as m,ab as D,dc as E,eb as q,gb as o,hb as h,ia as P,kc as u,lc as U,mc as T,pa as w,sc as F,zb as _}from"./chunk-FHUOGSRM.js";import{a as y,b as G,g as ge,h as x}from"./chunk-BQWXLU4Q.js";var S=ge(ve());function Se(c,b){if(c&1&&v(0,"app-error-message",30),c&2){let e=N();d("message",e.errorMessage)}}function xe(c,b){if(c&1){let e=Y();a(0,"div",31),m("click",function(){let t=j(e).$implicit,l=N();return O(l.form.brand=t)}),v(1,"img",32),i()}if(c&2){let e=b.$implicit,s=N();L("flex items-center justify-center rounded-[8px] cursor-pointer sm:col-span-3 col-span-6 h-[74px] border ",s.form.brand===e?"bg-[#EDEEFF] border-[#081A46]":"border-[#E5E7EB]",""),o(),E("src","assets/icons/",s.form.brand===e?"active-"+e:e,".svg",D)}}var ue=(()=>{class c{constructor(e,s,t,l,r,f){this.cardProgramService=e,this.customerService=s,this.fundingSourceService=t,this.toastService=l,this.router=r,this.generalService=f,this.store=P(M),this.method="new",this.actionType="physical",this.loading=!1,this.loadingCustomers=!1,this.customers=[],this.searchValue="",this.showCustomers=!1,this.businessName="",this.brands=["vervecard","visacard","mastercard","afrigo"],this.fundingSources=[],this.sources=[],this.errorMessage="",this.form={name:"",brand:"vervecard",reference:"",country:"Nigeria",currency:"NGN",fundingSource:"",description:""},this.formErrors={name:"",brand:"",country:"",reference:"",currency:"",fundingSource:"",description:""},this.user={},this.debitAccount={},this.handleChange=(n,g)=>{this.form[n]=g,n==="name"&&this.generateReference(),g===""&&n!=="fundingSource"?this.formErrors[n]="Required*":this.formErrors[n]=""},this.getUserData=()=>x(this,null,function*(){this.user=yield this.generalService.getUserData(),this.businessName=this.user?.membership?.business?.name||"",this.generateReference()}),this.validateAmount=n=>{this.errorMessage="",n.target.value===""?this.formErrors.amount="Required*":this.formErrors.amount=""},this.generateReference=()=>{this.form.reference=this.generalService.generateReference(this.businessName,this.form.name)},this.handleCustomerSearch=n=>{this.searchValue=n.target.value,this.getCustomers(this.searchValue)},this.getBrands=()=>this.actionType==="physical"?["vervecard","afrigo"]:["vervecard","visacard","mastercard","afrigo"],this.getActiveCurrency=()=>this.actionType==="physical"||this.actionType==="virtual"&&this.form.brand==="vervecard"||this.form.brand==="afrigo"?"NGN":"USD",this.getCurrencies=()=>this.actionType==="physical"?(this.form.currency="NGN",["NGN"]):this.actionType==="virtual"&&(this.form.brand==="vervecard"||this.form.brand==="afrigo")?(this.form.currency="NGN",["NGN"]):this.actionType==="virtual"&&this.form.brand!=="vervecard"&&this.form.brand!=="afrigo"?(this.form.currency="USD",["USD"]):["NGN","USD"],this.getCustomers=(n="")=>{this.loadingCustomers=!0,this.customerService.getCustomers(0,"40","","","",n,"").subscribe({next:g=>{this.customers=g.data,this.loadingCustomers=!1},error:g=>{this.loadingCustomers=!1}})},this.sortBrand=n=>n==="mastercard"?"MasterCard":n==="visacard"?"Visa":n==="vervecard"?"Verve":"AfriGo",this.selectCustomer=n=>{this.form.customer=n,this.searchValue=n.name,this.showCustomers=!1,this.formErrors.customer=""},this.validateForm=()=>{let{name:n,brand:g,reference:p,country:k,currency:he,fundingSource:fe,description:De}=this.form,C={};return n===""&&(C.name="Required*"),he===""&&(C.currency="Required*"),k===""&&(C.country="Required*"),fe===""&&(C.fundingSource="Required*"),p===""&&(C.reference="Required*"),C},this.getAllowedCountries=()=>this.actionType==="physical"?(this.form.country="Nigeria",["Nigeria"]):this.actionType==="virtual"&&(this.form.brand==="vervecard"||this.form.brand==="afrigo")?(this.form.country="Nigeria",["Nigeria"]):this.actionType==="virtual"&&this.form.brand!=="vervecard"&&this.form.brand!=="afrigo"?(this.form.country="United States",["United States"]):["Nigeria","United States"],this.handleSubmit=()=>{if(Object.keys(this.validateForm()).length>0)this.formErrors=y(y({},this.formErrors),this.validateForm());else{this.loading=!0;let n;this.errorMessage="";let g=this.form.fundingSource.split(" ")[0];
1this.actionType==="physical"?n={name:this.form.name,fundingSourceId:this.fundingSources.find(p=>p.type===g)?._id||this.fundingSources.find(p=>p.type==="default")?._id,cardBrand:this.sortBrand(this.form.brand),reference:this.form.reference,currency:this.form.currency,issuerCountry:this.form.country==="Nigeria"?"NGA":"USA",status:"active",metadata:{},enable2FA:!0,cardType:"physical",description:this.form.description,debitAccountId:this.debitAccount._id}:n={debitAccountId:this.debitAccount._id,name:this.form.name,fundingSourceId:this.fundingSources.find(p=>p.type===g)?._id||this.fundingSources.find(p=>p.type==="default")?._id,cardBrand:this.sortBrand(this.form.brand),reference:this.form.reference,currency:this.form.currency,issuerCountry:this.form.country==="Nigeria"?"NGA":"USA",status:"active",metadata:{},enable2FA:!0,cardType:"virtual",description:this.form.description},this.cardProgramService.createProgram(n).subscribe(p=>{p.statusCode===200?(this.toastService.showSuccess(`Card ${n.type=="physical"?"mapped":"created"} successfully`,p.message),setTimeout(()=>{this.router.navigateByUrl(`/dashboard/card-programs/${p.data._id}`)},1e3),this.store.updateModalView("","modal"),this.loading=!1):(this.errorMessage=p.message,this.toastService.showError(p.message,"Request failed"),this.loading=!1,window.scrollTo({top:0,behavior:"smooth"}))},p=>{this.errorMessage="An error occured please try again later.",this.loading=!1,window.scrollTo({top:0,behavior:"smooth"})})}}}ngOnInit(){this.getUserData(),this.getCustomers(),this.getFundingSources()}getFundingSources(){this.fundingSourceService.getFundingSources().subscribe(e=>{this.fundingSources=[...e.data];let s=[];this.fundingSources.forEach(t=>{s.push(t.type+" funding source")}),this.sources=s})}handleClickOutside(e){e.target.closest(".search-input")||(this.showCustomers=!1,setTimeout(()=>{this.form.customer?.name===""?this.searchValue="":this.searchValue=this.form.customer?.name},400))}static{this.\u0275fac=function(s){return new(s||c)(h(V),h(ne),h(me),h(J),h(I),h(W))}}static{this.\u0275cmp=w({type:c,selectors:[["app-new-card-program"]],hostBindings:function(s,t){s&1&&m("click",function(r){return t.handleClickOutside(r)},!1,q)},inputs:{method:"method"},standalone:!0,features:[F],decls:44,vars:56,consts:[[1,"flex","flex-col","lg:gap-[40px]","max-w-[900px]","mx-auto","bg-[#fff]","modal","bottomsheet","gap-[20px]","w-full","lg:py-[37px]","py-[27px]"],[1,"flex","items-center","relative","w-full","justify-between","xl:px-[61px]","sm:px-[30px]","px-[16px]"],[1,"flex","flex-col"],[1,"text-[#252F3F]","sm:text-[24px]","text-[20px]","font-[800]"],["src","assets/icons/close.svg","alt","",1,"cursor-pointer","absolute","top-0","right-[20px]",3,"click"],[1,"bg-[#f3f4f6]","h-[1px]","w-full"],[1,"w-full","xl:px-[61px]","sm:px-[30px]","px-[16px]","overflow-y-auto","scrollbar-hidden"],[1,"m-auto","max-w-[500px]","px-[20px]"],[3,"message",4,"ngIf"],[1,"flex","flex-col","gap-[24px]"],[1,"grid","grid-cols-12","gap-[20px]"],[3,"onChange","submit","label","placeholder","autoComplete","value","disabled","error","className"],[3,"onChange","submit","label","placeholder","value","disabled","error","className","optional"],[1,"col-span-12","relative"],[3,"select","label","option","options","className","error","disabled","placeholder"],[1,"p-[20px]","bg-gray-50","flex","flex-col","gap-[30px]","col-span-12"],[1,"col-span-12","flex","flex-col","gap-[8px]"],[1,"flex","sm:flex-row","flex-col","gap-[29px]","w-full"],[1,"w-full"],[3,"onSelect","label","desc","icon","check"],[1,"col-span-12"],[1,"flex","flex-col","gap-[8px]"],[3,"class","click",4,"ngFor","ngForOf"],[1,"col-span-12","grid","grid-cols-12","gap-[20px]"],[3,"onChange","label","allowed","disabled","error","value","className"],[1,"sm:col-span-6","col-span-12"],[1,"text-[14px]"],[3,"selectAccount","fundingType"],[1,"w-full","col-span-12"],[3,"onClick","label","loading","disabled","className"],[3,"message"],[3,"click"],["alt","",3,"src"]],template:function(s,t){s&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),u(4,"Create A Card Program"),i(),a(5,"span"),u(6,"Enter the following information to create a new card program for your business."),i()(),a(7,"img",4),m("click",function(){return t.store.updateModalView("")}),i()(),v(8,"span",5),a(9,"div",6)(10,"div",7),_(11,Se,1,1,"app-error-message",8),i(),a(12,"div",9)(13,"div",10)(14,"app-input",11),m("onChange",function(r){return t.handleChange("name",r)})("submit",function(){return t.handleSubmit()}),i(),a(15,"app-input",11),m("onChange",function(r){return t.handleChange("reference",r)})("submit",function(){return t.handleSubmit()}),i(),a(16,"app-text-area",12),m("onChange",function(r){return t.handleChange("description",r)}
1)("submit",function(){return t.handleSubmit()}),i(),a(17,"div",13)(18,"app-select",14),m("select",function(r){return t.handleChange("fundingSource",r)}),i()(),a(19,"div",15)(20,"div",16)(21,"span"),u(22,"Card Brand"),i(),a(23,"div",17)(24,"div",18)(25,"app-radio",19),m("onSelect",function(){return t.actionType="physical"}),i()(),a(26,"div",18)(27,"app-radio",19),m("onSelect",function(){return t.actionType="virtual"}),i()()()(),a(28,"div",20)(29,"div",21)(30,"span"),u(31,"Card Brand"),i(),a(32,"div",10),_(33,xe,2,5,"div",22),i()()(),a(34,"div",23)(35,"app-country-field",24),m("onChange",function(r){return t.handleChange("country",r)}),i(),a(36,"div",25)(37,"app-select",14),m("select",function(r){return t.handleChange("currency",r)}),i()()(),a(38,"div",16)(39,"span",26),u(40," Debit Account "),i(),a(41,"app-account-dropdown",27),m("selectAccount",function(r){return t.debitAccount=r}),i()()(),a(42,"div",28)(43,"app-button",29),m("onClick",function(){return t.handleSubmit()}),i()()()()()()),s&2&&(o(11),d("ngIf",t.errorMessage!==""),o(3),d("label","Name")("placeholder","e.g My VISA Card Program")("autoComplete","Name")("value",t.form.name)("disabled",t.loading)("error",t.formErrors.name)("className","sm:col-span-6 col-span-12"),o(),d("label","Unique Reference")("placeholder","e.g My VISA Card Program")("autoComplete","Name")("value",t.form.reference)("disabled",t.loading)("error",t.formErrors.reference)("className","sm:col-span-6 col-span-12"),o(),d("label","Description")("placeholder","e.g A description for my to help me identify my card program.")("value",t.form.description)("disabled",t.loading)("error",t.formErrors.description)("className"," col-span-12")("optional",!0),o(2),d("label","Funding Source")("option",t.form.fundingSource)("options",t.sources)("className","capitalize")("error",t.formErrors.fundingSource)("disabled",t.loading)("placeholder","Select a funding source"),o(7),d("label","Map Physical Card")("desc","")("icon","map-card")("check",t.actionType==="physical"),o(2),d("label","Create Virtual Card")("desc","")("icon","virtual")("check",t.actionType==="virtual"),o(6),d("ngForOf",t.getBrands()),o(2),d("label","Issuer Country")("allowed",t.getAllowedCountries())("disabled",t.loading)("error",t.formErrors.country)("value",t.form.country)("className","sm:col-span-6 col-span-12"),o(2),d("label","Currency")("option",t.form.currency)("options",t.getCurrencies())("className","")("error",t.formErrors.currency)("disabled",t.loading)("placeholder","Select a currency"),o(4),d("fundingType",t.getActiveCurrency()),o(2),d("label","Create Card Program")("loading",t.loading)("disabled",t.loading)("className","w-full"))},dependencies:[B,R,A,re,ee,K,te,de,ce,Z,X,pe]})}}return c})();function Pe(c,b){if(c&1&&(a(0,"div",9)(1,"div",10),v(2,"app-avatar",11),a(3,"div",12)(4,"span",13),u(5),i(),a(6,"span",14),u(7),i(),a(8,"div",15)(9,"span",16),u(10),i(),a(11,"div",17),v(12,"img",18),a(13,"span",19),u(14),i()()()()(),a(15,"div",20)(16,"div",17),v(17,"img",21),a(18,"span",22),u(19),i()()(),a(20,"div",6),v(2
11,"img",23),i(),a(22,"div",6),v(23,"app-badge",24),i()()),c&2){let e=b.$implicit;d("routerLink","/dashboard/card-programs/"+e._id),o(2),d("name",(e==null?null:e.name)||""),o(3),T(" ",e==null?null:e.name," "),o(2),T(" ",e==null?null:e.reference," "),o(3),T(" **",e==null||e.maskedPan==null?null:e.maskedPan.slice(-4)," "),o(4),U(e==null?null:e.cardType),o(5),U(e==null?null:e.cardType),o(2),E("src","assets/icons/",(e==null||e.cardBrand==null?null:e.cardBrand.toLowerCase())==="afrigo"?"active-afrigo":"active-"+(e==null||e.cardBrand==null?null:e.cardBrand.toLowerCase())+((e==null||e.cardBrand==null?null:e.cardBrand.toLowerCase())==="mastercard"?"":"card"),".svg",D),o(2),d("currency",e==null?null:e.currency)}}function we(c,b){c&1&&(a(0,"div",25),v(1,"app-new-card-program"),i())}var nt=(()=>{class c{constructor(e,s,t,l){this.cardProgramService=e,this.accountService=s,this.activeRoutes=t,this.router=l,this.store=P(M),this.appliedFilters=!1,this.search="",this.loading=!1,this.loadingStatement=!1,this.status="",this.filters=[{title:"Date range",type:"date",values:{startDate:"",endDate:""}},{title:"Currency",type:"select",value:"",options:[{name:"NGN",value:"NGN"},{name:"USD",value:"USD"}]},{title:"Card Program Type",type:"select",value:"",options:[{name:"Physical",value:"physical"},{name:"Virtual",value:"virtual"}]},{title:"Brand",type:"select",value:"",options:[{name:"Verve",value:"Verve"},{name:"Visa",value:"Visa"},{name:"Mastercard",value:"MasterCard"},{name:"AfriGo",value:"AfriGo"}]}],this.dateRange={startDate:"",endDate:""},this.filterType="",this.filterCurrency="",this.filterBrand="",this.paginationData={limit:"10",currentPage:1,totalPages:1,total:0},this.tableProps={search:!0,filter:!0,button:!0,buttonProps:{label:"New card program",icon:"plus",disabled:!1,loading:!1}},this.cards=[],this.modal=!1,this.clearFilter=()=>{this.filters=[{title:"Date range",type:"date",values:{startDate:"",endDate:""}},{title:"Currency",type:"select",value:"",options:[{name:"NGN",value:"NGN"},{name:"USD",value:"USD"}]},{title:"Card Program Type",type:"select",value:"",options:[{name:"Physical",value:"physical"},{name:"Virtual",value:"virtual"}]},{title:"Brand",type:"select",value:"",options:[{name:"Verve",value:"Verve"},{name:"Visa",value:"Visa"},{name:"Mastercard",value:"MasterCard"},{name:"AfriGo",value:"AfriGo"}]}],this.status="",this.filterType="",this.filterCurrency="",this.filterBrand="",this.dateRange={startDate:"",endDate:""},this.updateQueryParams({status:"",type:"",currency:"",brand:"",startDate:"",endDate:"",page:1})},this.handlePagination=r=>{this.updateQueryParams({page:r.currentPage,limit:r.limit})},this.handleSearch=r=>{this.updateQueryParams({search:r||"",page:1})},this.getcardstatus=r=>r.toLowerCase()==="active"?"bg-[#DEF7EC] text-[#0E9F6E] w-[60px] h-[24px] text-[11px] font-[900] flex items-center justify-center rounded-[5px] ":"bg-[#FDF2F2] text-[#DC2626] w-[60px] h-[24px] text-[11px] font-[900] flex items-center justify-center rounded-[5px] ",this.getDate=(r,f)=>f===""?(0,S.default)(r).format("llll"):(0,S.default)(r).format("lll"),this.formatAmou
1nt=(r,f="USD")=>{let n=typeof r=="string"?parseFloat(r):r;return isNaN(n)?"":new Intl.NumberFormat("en-US",{style:"currency",currency:f,minimumFractionDigits:2,maximumFractionDigits:2}).format(n)},this.showPagination=()=>{let r=this.status!==""||this.filterType!==""||this.dateRange.startDate!==""||this.filterCurrency!==""||this.filterBrand!==""||this.dateRange.endDate!=="",f=this.cards.length===0&&!this.loading;return this.appliedFilters=r,!r&&f},this.handleFilters=r=>{let f=r.Status?r.Status?.value:"",n=r["Date range"]?r["Date range"]:{startDate:"",endDate:""},g=r["Card Program Type"]?r["Card Program Type"]?.value:"",p=r.Brand?r.Brand?.value:"",k=r.Currency?r.Currency?.value:"";this.updateQueryParams({status:f,startDate:n.startDate,endDate:n.endDate,type:g,brand:p,currency:k})},this.addCard=()=>{this.modal=!0,this.store.updateModalView("new-card","modal")},this.getBalance=(r,f)=>x(this,null,function*(){try{return(yield this.accountService.getAccountBalance(r).toPromise()).data.availableBalance}catch{return f}}),this.fetchCardPrograms=()=>{this.loading=!0,this.cardProgramService.getCardPrograms(this.search,this.filterBrand,this.paginationData.limit,this.paginationData.currentPage-1,this.dateRange.endDate,this.dateRange.startDate,this.filterType,this.filterCurrency).subscribe({next:r=>{this.cards=r.data,this.paginationData=r.pagination?{limit:r.pagination.limit,currentPage:parseInt(r.pagination.page)+1,totalPages:r.pagination.pages,total:r.pagination.total}:{limit:50,currentPage:1,totalPages:1,total:0},this.loading=!1},error:r=>{this.loading=!1}})},Q(()=>{let r=this.store.modalView();this.modal=r},{allowSignalWrites:!0})}ngOnInit(){this.activeRoutes.queryParams.subscribe(e=>{this.paginationData.currentPage=e.page?parseInt(e.page):1,this.paginationData.limit=e.limit||"10",this.status=e.status||"",this.filterType=e.type||"",this.dateRange.startDate=e.startDate||"",this.dateRange.endDate=e.endDate||"",this.search=e.search||"",this.filterCurrency=e.currency||"",this.filterBrand=e.brand||"",this.dateRange={startDate:this.dateRange.startDate,endDate:this.dateRange.endDate||(this.dateRange.startDate===""?"":(0,S.default)().format("YYYY-MM-DD"))},this.updateFiltersFromParams(),this.fetchCardPrograms()})}updateFiltersFromParams(){this.filters=this.filters.map(e=>{if(e.title==="Date range")return{title:"Date range",type:"date",values:{startDate:this.dateRange.startDate,endDate:this.dateRange.endDate}};if(e.title==="Currency"||e.title==="Card Program Type"||e.title==="Brand"){let s;switch(e.title){case"Currency":s=this.filterCurrency;break;case"Card Program Type":s=this.filterType;break;case"Brand":s=this.filterBrand;break;default:s=""}return G(y({},e),{value:s})}return e})}getCurrentQueryParams(){let e=this.activeRoutes.snapshot.queryParams;return{page:e.page||"1",limit:e.limit||"10",status:e.status||"",type:e.type||"",currency:e.currency||"",brand:e.brand||"",startDate:e.startDate||"",endDate:e.endDate||"",search:e.search||""}}updateQueryParams(e){let s=Object.fromEntries(Object.entries(e).filter(([l,r])=>r!=null)),t=y(y({},this.getCurrentQueryParams()),s);this.router.navigate([],{relativeTo:this.activeRoutes,queryParams:t,queryParamsHandling:"merge"})}getDateFormat(e){return(0,S.default)(e).format("DD-MM-YYYY")}static{this.\u0275fac=function(s){return new(s||c)(h(V),h(se),h(H),h(I))}}static{this.\u0275cmp=w({type:c,selectors:[["app-card-programs"]],standalone:!0,features:[F],decls:14,vars:9,consts:[[3,"applyFilters","setPagination","handleSearch","addData","filters","paginationData","search","toolBarProps","title","pagination","isEmpty"],[1,"flex","flex-col","my-[40px]"],[1,"grid","grid-cols-12","items-center","text-[#374151]","text-[11px]","gap-[20px]","font-[800]","px-[10px]","w-full","h-[41px]","bg-[#F4F5F7]"],[1,"flex","sm:col-span-5","col-span-8"],[1,"sm:flex","hidden","col-span-2"],[1,"xs:flex","col-span-2"],[1,"flex","col-span-2"],["class","grid grid-cols-12 items-center text-[#374151] gap-[20px] text-[14px] font-[500] px-[10px] w-full h-[84px] border-b border-b-[#F4F5F7] cursor-pointer hover:bg-[#F4F5F7]",3,"routerLink",4,"ngFor","ngForOf"],["class","flex flex-col w-full","modal","",4,"ngIf"],[1,"grid","grid-cols-12","items-center","text-[#374151]","gap-[20px]","text-[14px]","font-[500]","px-[10px]","w-full","h-[84px]","border-b","border-b-[#F4F5F7]","cursor-pointer","hover:bg-[#F4F5F7]",3,"routerLink"],[1,"flex","gap-2","items-center","sm:col-span-5","col-span-8"],[3,"name"],[1,"flex","flex-col","overflow-hidden"],[1,"text-[#374151]","text-[13px]","font-[700]"],[1,"text-[#6B7280]","sm:text-[12px]","truncate","text-[10px]","font-[400]"],[1,"sm:hidden","flex","items-center","gap-[5px]"],[1,"text-[10px]","pl-[5px]"],[1,"flex","items-center","gap-[5px]"],["src","assets/icons/card.svg","alt","",1,"w-[16px]"],[1,"text-[10px]","pl-[5px]","border-l","border-l-[#394071]"],[1,"sm:flex","hidden","col-span-2","capitalize"],["src","assets/icons/card.svg","alt",""],[1,"text-[12px]","pl-[5px]","h-[16px]","flex","items-center","border-l","border-l-[#394071]"],["alt","",1,"xs:min-w-[30px]","min-w-[45px]",3,"src"],[3,"currency"],["modal","",1,"flex","flex-col","w-full"]],template:function(s,t){s&1&&(a(0,"app-content-layout")(1,"app-table-layout",0),m("applyFilters",function(r){return t.handleFilters(r)})("setPagination",function(r){return t.handlePagination(r)})("handleSearch",function(r){return t.handleSearch(r)})("addData",function(){return t.addCard()}),a(2,"div",1)(3,"div",2)(4,"div",3),u(5,"PROGRAM"),i(),a(6,"div",4),u(7,"TYPE"),i(),a(8,"div",5),u(9,"SCHEME"),i(),a(10,"div",6),u(11,"CURRENCY"),i()(),_(12,Pe,24,10,"div",7),i()(),_(13,we,2,0,"div",8),i()),s&2&&(o(),d("filters",t.filters)("paginationData",t.paginationData)("search",t.search)("toolBarProps",t.tableProps)("title","card programs")("pagination",!t.showPagination()||!0)("isEmpty",t.cards.length===0&&!t.loading),o(11),d("ngForOf",t.cards),o(),d("ngIf",t.modal))},dependencies:[B,R,A,ae,oe,le,ie,z,$,ue]})}}return c})();export{nt as CardProgramsComponent};

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.