1import{a as Fe}from"./chunk-K74PN6AG.js";import"./chunk-FNGFCHIX.js";import{b as St}from"./chunk-6L7EK6AR.js";import{a as bt}from"./chunk-6XUHUTV3.js";import{a as yt}from"./chunk-DFKKGRSY.js";import{a as ke}from"./chunk-REROY5ZO.js";import{a as ce}from"./chunk-PKVLBAJN.js";import"./chunk-22UPJFRG.js";import"./chunk-M3L4P6UR.js";import"./chunk-PLLXAY34.js";import{a as _e}from"./chunk-UNO3SGZB.js";import{a as gt,c as se}from"./chunk-TZA3P2WG.js";import"./chunk-XDORF7IV.js";import{b as le}from"./chunk-PK2SIITB.js";import{a as re}from"./chunk-ZAZURCMT.js";import"./chunk-CQXZIJEV.js";import"./chunk-HL4JJP3K.js";import{a as vt}from"./chunk-5PLXKRFV.js";import"./chunk-FL3IZFPF.js";import{_d as T,b as Ze,nc as ht}from"./chunk-PKWOC3HC.js";import"./chunk-TEAJ5PHB.js";import{a as ae}from"./chunk-WOQJ2JOD.js";import{a as ft}from"./chunk-7UUCN7EM.js";import"./chunk-URYEM37O.js";import"./chunk-4ERTFGFB.js";import"./chunk-QNJ4IDWK.js";import"./chunk-376BHAVV.js";import"./chunk-6PK65UA2.js";import"./chunk-OHXHEYAG.js";import{b as Ce}from"./chunk-64BPKFYE.js";import"./chunk-RJXL3XLB.js";import"./chunk-WNQJZQ3H.js";import"./chunk-MJNG7XB2.js";import"./chunk-GFMRF6XZ.js";import"./chunk-L6B6UZPP.js";import"./chunk-7LFFGTQ6.js";import"./chunk-MP3CJGIS.js";import"./chunk-UPUTTG5D.js";import"./chunk-MGPPZMV4.js";import"./chunk-5X5UDCML.js";import"./chunk-CF3F2OXO.js";import"./chunk-NSWVOVZA.js";import"./chunk-7AENMD2F.js";import"./chunk-SAN5ST5E.js";import"./chunk-CGR7ROIG.js";import"./chunk-UCSYRS6P.js";import"./chunk-LEZPB37L.js";import"./chunk-OQC4FLYL.js";import"./chunk-AGIVA6CF.js";import"./chunk-54PJY22Z.js";import"./chunk-R35UZKA5.js";import{b as I}from"./chunk-2TA637MQ.js";import{a as K}from"./chunk-EHBZKKQE.js";import"./chunk-RKEGADNZ.js";import"./chunk-QCGG7YDG.js";import"./chunk-DVR5VFHA.js";import{b as Se}from"./chunk-GCP377FX.js";import"./chunk-UKASHLQY.js";import"./chunk-SZTLWYSY.js";import"./chunk-JIXXSHQH.js";import"./chunk-73TAZGEL.js";import"./chunk-OJJTKFBM.js";import"./chunk-L47MVT5V.js";import"./chunk-JVCDKIRW.js";import{f as fe,h as he,k as Ye}from"./chunk-W5AW4RNE.js";import{a as xe}from"./chunk-CPMRJH4C.js";import"./chunk-2UX723EU.js";import"./chunk-5FCDZEDF.js";import"./chunk-Z56EF4E2.js";import"./chunk-YX3BF3AS.js";import"./chunk-7S5LY3SI.js";import"./chunk-7JXTWO4D.js";import{c as ne,e as A}from"./chunk-3PYUHLL5.js";import{a as oe}from"./chunk-X2J5E5E4.js";import"./chunk-P7TPNQXK.js";import{e as it,k as ot}from"./chunk-EHZDUKHY.js";import"./chunk-WJNF6B7D.js";import"./chunk-DBDCXSIX.js";import{a as h}from"./chunk-UXBKBV52.js";import{a as M}from"./chunk-7F5QZ2WZ.js";import{Dc as ut,Tb as pt,_a as ye,ad as R,ed as D,fd as P}from"./chunk-NTW5O2WI.js";import{$ as dt,M as at,N as rt,P as ie,Q as st,Z as lt,_ as ct,aa as mt,c as nt}from"./chunk-CMAA65ZX.js";import"./chunk-5EI2LJU6.js";import{Ia as O,Ja as j,Ka as q,La as V}from"./chunk-O3SHBMLD.js";import{C as $e,E as te,F as et,H as tt,K as N,L as X,b as ve,c as ge,e as v,h as B,i as G,j as ee,m as g,o as be,p as Je,t as W,v as Qe,w as U}from"./chunk-JGAQJZZ3.js";import"./chunk-EC66NZTI.js";import"./chunk-OU7XOOXQ.js";import{A as Le,Ba as y,Ca as He,Ed as We,Hc as je,Jb as b,Jc as l,Kc as qe,Lc as H,Ma as k,Na as F,Rd as Ue,Sb as z,Sc as J,Tc as Q,U as _,Ua as w,Uc as $,Wb as s,Wc as S,Xb as Oe,Xc as f,Yc as Ge,cc as E,ec as ue,fc as me,gc as pe,ge as Xe,hc as o,ic as n,jc as m,me as Ke,nc as Z,qa as ze,qc as p,sc as C,va as c,wb as a}from"./chunk-6OTMHPV4.js";import{a as Me}from"./chunk-3EYC4JTX.js";var Ft=(r,x)=>x.title,Dt=()=>({style:"primary",name:"main"});function Pt(r,x){if(r&1&&(o(0,"div",11)(1,"div",20),m(2,"lucide-icon",21),n(),o(3,"h3",22),l(4),n(),o(5,"p",23),l(6),n()()),r&2){let e=x.$implicit;a(2),s("name",e.icon)("size",24),a(2),H(" ",e.title," "),a(2),H(" ",e.description," ")}}function wt(r,x){if(r&1&&(o(0,"div",16)(1,"div",24)(2,"span",25),l(3),n()(),o(4,"p",26),l(5),n()()),r&2){let e=x.$implicit,i=x.$index;a(3),qe(i+1),a(2),H(" ",e," ")}}var Ee=(()=>{class r{constructor(){this.router=c(he),this.features=[{icon:"shield-check",title:"Fraud Prevention",description:"Automatically notify your bank about checks and ACH payments you issue to prevent unauthorized transactions."},{icon:"file-check",title:"Auto Verification",description:"Bank compares payment details with your records. Mismatches are flagged and blocked automatically."},{icon:"clock",title:"Daily Sync",description:"Once configured, files are sent to your bank daily, ensuring only legitimate checks get cashed."}
1,{icon:"download",title:"Download Records",description:"Access and download check records anytime for proof of approved payments and audit trails."}],this.steps=["Click 'Proceed to Setup' to access the Positive Pay dashboard","Select your bank account and configure Positive Pay settings","Once configured, check files are automatically sent to your bank daily","Download check records anytime for proof of approved payments"]}requestNow(){this.router.navigateByUrl("/v4/manage/positivepay/index")}goBackToBankAccounts(){this.router.navigateByUrl("/v4/manage/bank-accounts/index")}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-positive-pay-restrictions"]],standalone:!0,features:[S],decls:29,vars:5,consts:[[1,"p-4","lg:p-10","max-w-[1600px]","mx-auto","font-peridot"],["type","button",1,"flex","items-center","gap-2","mb-4","text-sm","font-semibold","text-v4-main-text-color","hover:text-v4-primary-brand-bold-color","transition-colors",3,"click"],["name","arrow-left",3,"size"],[1,"bg-v4-secondary-background-color","rounded-2xl","p-6","lg:p-8","border","border-v4-border-color","shadow-common-box-shadow"],[1,"text-center","mb-8"],[1,"text-xs","font-semibold","text-v4-tertiary-text-color","tracking-widest","mb-2","uppercase"],[1,"flex","items-center","justify-center","gap-3","mb-3"],["name","shield",1,"text-v4-primary-brand-bold-color",3,"size"],[1,"text-2xl","lg:text-3xl","font-bold","text-v4-main-text-color","font-funnel","uppercase","tracking-wide"],[1,"text-sm","lg:text-base","text-v4-primary-brand-bold-color","font-medium"],[1,"grid","grid-cols-1","md:grid-cols-2","xl:grid-cols-4","gap-4","mb-8"],[1,"p-4","border","border-v4-border-color","rounded-xl","hover:border-v4-primary-brand-bold-color","hover:shadow-md","transition-all","duration-300","cursor-default"],[1,"bg-v4-tertiary-background-color","rounded-xl","p-6","mb-8"],[1,"text-sm","font-bold","text-v4-main-text-color","mb-4","flex","items-center","gap-2","font-funnel"],["name","shield-check",1,"text-v4-primary-brand-bold-color",3,"size"],[1,"flex","flex-col","gap-3"],[1,"flex","items-center","gap-3"],[1,"flex","flex-col","items-center","gap-3"],["text","Proceed to Setup",3,"clickEvent","type"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-12","h-12","bg-v4-badge-info-bg-color","rounded-lg","flex","items-center","justify-center","mb-4"],[1,"text-v4-common-blue-color",3,"name","size"],[1,"text-sm","font-bold","text-v4-main-text-color","mb-2","font-funnel"],[1,"text-xs","text-v4-tertiary-text-color","leading-relaxed"],[1,"w-6","h-6","bg-v4-primary-brand-color","rounded-full","flex","items-center","justify-center","flex-shrink-0"],[1,"text-white","text-xs","font-bold"],[1,"text-sm","text-v4-secondary-text-color","leading-6"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"button",1),p("click",function(){return t.goBackToBankAccounts()}),m(2,"lucide-icon",2),o(3,"span"),l(4,"Back"),n()(),o(5,"div",3)(6,"div",4)(7,"p",5),l(8," Welcome to "),n(),o(9,"div",6),m(10,"lucide-icon",7),o(11,"h2",8),l(12," Positive Pay "),n()(),o(13,"p",9),l(14," Fraud Prevention for Your Business Payments "),n()(),o(15,"div",10),me(16,Pt,7,4,"div",11,Ft),n(),o(18,"div",12)(19,"h3",13),m(20,"lucide-icon",14),l(21," How Positive Pay Works "),n(),o(22,"div",15),me(23,wt,6,2,"div",16,ue),n()(),o(25,"div",17)(26,"app-common-button-v4",18),p("clickEvent",function(){return t.requestNow()}),n(),o(27,"p",19),l(28," By continuing, you agree to set up Positive Pay with your bank "),n()()()()),i&2&&(a(2),s("size",18),a(8),s("size",32),a(6),pe(t.features),a(4),s("size",18),a(3),pe(t.steps),a(3),s("type",f(4,Dt)))},dependencies:[M,P,D]})}}return r})();var At=()=>({style:"outline",name:"main"}),Tt=()=>({style:"primary",name:"main"}),Pe=(()=>{class r{constructor(){this.fb=c(tt),this.positivePayService=c(T),this.datePipe=c(Xe),this.dialogRef=c(O),this.alertService=c(A),this.destroyRef=c(w),this.data=c(j),this.XIcon=R,this.isSubmitting=b(!1),this.exportForm=this.fb.group({fromDate:[new Date],toDate:[new Date],fileType:["txt",[v.required]]})}selectedRange(e){this.exportForm.controls.fromDate.setValue(e?.start),this.exportForm.controls.toDate.setValue(e?.end)}fromBody(){let e=this.exportForm.value,i=this.datePipe.transform(e.fromDate,"MM/dd
1/Y"),t=this.datePipe.transform(e.toDate,"MM/dd/Y");return{checkIssueFromDate:i,checkIssueToDate:t,fileType:e.fileType,routingNumber:this.data.bank_routing_number}}submit(){if(this.exportForm.markAllAsTouched(),this.exportForm.invalid)return;this.isSubmitting.set(!0);let e=this.fromBody();this.positivePayService.export(e).pipe(_(()=>this.isSubmitting.set(!1)),h(this.destroyRef)).subscribe({next:i=>{if(i.success){let t=document.createElement("a");t.setAttribute("href",i.url),t.click(),t.setAttribute("target","_self"),t.setAttribute("download","products.csv"),document.body.appendChild(t),t.remove(),this.dialogRef.close(),this.alertService.successAlert({content:"Successfully downloaded.",close:!0})}}})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-export-modal"]],standalone:!0,features:[S],decls:28,vars:9,consts:[[1,""],[1,"flex","justify-between","px-6","py-4","bg-v4-secondary-background-color","border-b","border-v4-border-color"],[1,"flex","flex-col"],[1,"text-xl","font-semibold","text-v4-main-text-color","font-funnel"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-9","h-9","rounded-lg","hover:bg-v4-tertiary-background-color","cursor-pointer","flex","justify-center","items-center",3,"mat-dialog-close"],[1,"text-v4-subtle-text-color",3,"img"],[1,"p-6","bg-v4-tertiary-background-color"],[1,"flex","flex-col","gap-5",3,"formGroup"],["selectDate","today",3,"dateEmiter"],[1,"flex","items-center","gap-5"],[1,"text-sm","font-medium","text-v4-main-text-color"],["aria-label","Select an option","formControlName","fileType",1,"flex","gap-5"],["value","txt"],[1,"text-sm","text-v4-subtle-text-color"],["value","csv"],["value","xlsx"],[1,"flex","justify-end","gap-3","p-6","bg-v4-secondary-background-color","border-t","border-v4-border-color"],["mat-dialog-close","","width","120px","text","Cancel",3,"type"],["width","120px","text","Export",3,"clickEvent","type","disabled","loading"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l(4," Export Positive Pay File "),n(),o(5,"h2",4),l(6," Select date range and export format "),n()(),o(7,"div",5),m(8,"lucide-icon",6),n()(),o(9,"div",7)(10,"form",8)(11,"app-v4-
1date-range-selector",9),p("dateEmiter",function(u){return t.selectedRange(u)}),n(),o(12,"div",10)(13,"span",11),l(14,"Export As:"),n(),o(15,"mat-radio-group",12)(16,"mat-radio-button",13)(17,"span",14),l(18,"TXT"),n()(),o(19,"mat-radio-button",15)(20,"span",14),l(21,"CSV"),n()(),o(22,"mat-radio-button",16)(23,"span",14),l(24,"EXCEL"),n()()()()()(),o(25,"div",17),m(26,"app-common-button-v4",18),o(27,"app-common-button-v4",19),p("clickEvent",function(){return t.submit()}),n()()()),i&2&&(a(7),s("mat-dialog-close",!1),a(),s("img",t.XIcon),a(2),s("formGroup",t.exportForm),a(16),s("type",f(7,At)),a(),s("type",f(8,Tt))("disabled",t.isSubmitting())("loading",t.isSubmitting()))},dependencies:[N,Je,B,G,X,W,U,V,at,rt,P,D,M,gt],changeDetection:0})}}return r})();var Mt=()=>({placeholder:"Select auth type",displayField:"label",outputField:"value"}),Et=()=>({placeholder:"RSA Size"}),Vt=()=>({style:"outline",name:"main"}),Bt=()=>({style:"primary",name:"main"});function Nt(r,x){if(r&1&&(o(0,"div"),m(1,"textarea",18)(2,"app-control-message-v4",12),n()),r&2){let e=C();a(2),s("control",e.sshForm.controls.privateKey)}}var we=(()=>{class r{constructor(){this.positivePayService=c(T),this.alertService=c(A),this.dialogRef=c(O),this.destroyRef=c(w),this.XIcon=R,this.showTextArea=b(!1),this.isSubmitting=b(!1),this.sshTypeOptions=[{label:"Create New",value:"1"},{label:"Create From Existing",value:"2"}],this.rsaSizeOptions=["1024","2048","4096"],this.sshForm=new ee({fileName:new g("",[v.required]),sshType:new g("",[v.required]),privateKey:new g(""),rsaSize:new g("1024")}),this.sshForm.controls.sshType.valueChanges.pipe(h(this.destroyRef)).subscribe(e=>this.onChange(e??""))}formBody(){let e=this.sshForm.value;return{nickName:e.fileName,sshType:e.sshType,privateKey:e.privateKey,rsaSize:e.rsaSize}}onChange(e){this.showTextArea.set(!1),e==="2"?(this.showTextArea.set(!0),this.sshForm.controls.privateKey.setValidators(v.required),this.sshForm.controls.privateKey.updateValueAndValidity()):(this.sshForm.controls.privateKey.clearValidators(),this.sshForm.controls.privateKey.updateValueAndValidity())}submit(){this.sshForm.markAllAsTouched(),!this.sshForm.invalid&&(this.isSubmitting.set(!0),this.positivePayService.generateSsh(this.formBody()).pipe(_(()=>this.isSubmitting.set(!1)),h(this.destroyRef)).subscribe(e=>{if(e.success){let i=document.createElement("a");i.setAttribute("href",e.url),i.click(),this.alertService.successAlert({content:"SSH File Generated Successfully",close:!0}),this.dialogRef.close({success:!0,name:this.sshForm.value.fileName})}}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-generate-ssh-modal"]],standalone:!0,features:[S],decls:36,vars:24,consts:[[1,""],[1,"flex","justify-between","px-6","py-4","bg-v4-secondary-background-color","border-b","border-v4-border-color"],[1,"flex","flex-col"],[1,"text-xl","font-semibold","text-v4-main-text-color","font-funnel"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-9","h-9","rounded-lg","hover:bg-v4-tertiary-background-color","cursor-pointer","flex","justify-center","items-center",3,"mat-dialog-close"],[1,"text-v4-subtle-text-color",3,"img"],[1,"p-6","bg-v4-tertiary-background-color"],[1,"flex","flex-col","gap-4",3,"formGroup"],[1,"block","text-sm","font-medium","text-v4-secondary-text-color","mb-1"],[1,"text-v4-common-red-color"],["placeholder","File Name","formControlName","fileName",3,"maxlength"],[3,"control"],["formControlName","sshType",3,"listData","config","clearable","appendTo"],["formControlName","rsaSize",3,"listData","config","clearable","appendTo"],[1,"flex","justify-end","gap-3","p-6","bg-v4-secondary-background-color","border-t","border-v4-border-color"],["mat-dialog-close","","width","120px","text","Cancel",3,"type"],["width","120px","text","Save",3,"clickEvent","type","disabled","loading"],["formControlName","privateKey","placeholder","Private Key",1,"w-full","rounded-lg","border","border-v4-border-color","bg-v4-secondary-background-color","text-v4-main-text-color","text-sm","p-3","resize-none","focus:outline-none","placeholder:text-v4-subtle-text-color",2,"height","160px"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l(4," Generate SSH File "),n(),o(5,"h2",4),l(6," Create or import an SSH key pair "),n()(),o(7,"div",5),m(8,"lucide-icon",6),n()(),o(9,"div",7)(10,"div",8)(11,"div")(12,"label",9),l(13,"File Name "),o(14,"span",10),l(15,"*"),n()(),m(16,"app-common-input-v4",11)(17,"app-control-message-v4",12),n(),o(18,"div")(19,"label",9),l(20,"Auth Type "),o(21,"span",10),l(22,"*"),n()(),m(23,"app-v4-common-dropdown",13)(24,"app-control-message-v4",12),n(),o(25,"div")(26,"label",9),l(27,"RSA Size "),o(28,"span",10),l(29,"*"),n()(),m(30,"app-v4-common-dropdown",14)(31,"app-control-message-v4",12),n(),z(32,Nt,3,1,"div"),n()(),o(33,"div",15),m(34,"app-common-button-v4",16),o(35,"app-common-button-v4",17),p("clickEvent",function(){return t.submit()}),n()()()),i&2&&(a(7),s("mat-dialog-close",!1),a(),s("img",t.XIcon),a(2),s("formGroup",t.sshForm),a(6),s("maxlength",40),a(),s("control",t.sshForm.controls.fileName),a(6),s("listData",t.sshTypeOptions)("config",f(20,Mt))("clearable",!1)("appendTo","body"),a(),s("control",t.sshForm.controls.sshType),a(6),s("listData",t.rsaSizeOptions)("config",f(21,Et))("clearable",!1)("appendTo","body"),a(),s("control",t.sshForm.controls.rsaSize),a(),E(32,t.showTextArea()?32:-1),a(2),s("type",f(22,Vt)),a(),s("type",f(23,Bt))("disabled",t.isSubmitting())("loading",t.isSubmitting()))},dependencies:[N,ge,B,G,te,X,W,U,V,P,D,M,ne,oe,xe],styles:[".v4-select[_ngcontent-%COMP%]{width:100%;border-radius:var(--radius-lg);border-width:1px;border-color:var(--v4-border-color);background-color:var(--v4-secondary-background-color);padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;color:var(--v4-main-text-color)}.v4-select[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}"],changeDetection:0})}}return r})();var Rt=()=>({style:"outline",name:"main"}),It=()=>({style:"primary",name:"main"}),de=(()=>
1{class r{constructor(){this.positivePayService=c(T),this.alertService=c(A),this.dialogRef=c(O),this.destroyRef=c(w),this.data=c(j),this.XIcon=R,this.isSubmitting=b(!1),this.settingsForm=new ee({bankId:new g(""),folderPath:new g(""),fileName:new g(""),routingNumber:new g(this.data.bank_routing_number)},{validators:ot(["bankId","folderPath","fileName"])})}ngOnInit(){this.getMetaData()}getMetaData(){this.positivePayService.getSettingsMeataData(this.data.bank_routing_number).pipe(h(this.destroyRef)).subscribe(e=>{e.success&&this.settingsForm.patchValue({bankId:e.data.bankId,routingNumber:e.data.routingNumber,fileName:e.data.fileName,folderPath:e.data.folderPath})})}submit(){if(this.settingsForm.markAllAsTouched(),this.settingsForm.invalid){this.settingsForm.get("bankId")?.hasError("atLeastOneRequired")&&this.alertService.failedAlert({content:"Enter at least one of Bank Id, Upload folder path or File name"});return}this.isSubmitting.set(!0),this.positivePayService.saveSettings(this.settingsForm.value).pipe(_(()=>this.isSubmitting.set(!1)),h(this.destroyRef)).subscribe(e=>{e.success&&(this.dialogRef.close(),this.alertService.successAlert({content:e.message,close:!0}))})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-settings-modal"]],standalone:!0,features:[S],decls:23,vars:21,consts:[[1,""],[1,"flex","justify-between","px-6","py-4","bg-v4-secondary-background-color","border-b","border-v4-border-color"],[1,"flex","flex-col"],[1,"text-xl","font-semibold","text-v4-main-text-color","font-funnel"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-9","h-9","rounded-lg","hover:bg-v4-tertiary-background-color","cursor-pointer","flex","justify-center","items-center",3,"mat-dialog-close"],[1,"text-v4-subtle-text-color",3,"img"],[1,"p-6","bg-v4-tertiary-background-color"],[1,"flex","flex-col","gap-4",3,"formGroup"],["placeholder","Bank Id","formControlName","bankId",3,"fieldLabel","isFieldRequired","maxlength"],[3,"control"],["placeholder","Upload folder path","formControlName","folderPath",3,"fieldLabel","isFieldRequired","maxlength"],["placeholder","File name","formControlName","fileName",3,"fieldLabel","isFieldRequired","maxlength"],[1,"flex","justify-end","gap-3","p-6","bg-v4-secondary-background-color","border-t","border-v4-border-color"],["mat-dialog-close","","width","120px","text","Cancel",3,"type"],["width","120px","text","Save",3,"clickEvent","type","disabled","loading"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l(4," Set Positive Pay Details "),n(),o(5,"h2",4),l(6," Configure metadata for file uploads "),n()(),o(7,"div",5),m(8,"lucide-icon",6),n()(),o(9,"div",7)(10,"div",8)(11,"div"),m(12,"app-common-input-v4",9)(13,"app-control-message-v4",10),n(),o(14,"div"),m(15,"app-common-input-v4",11)(16,"app-control-message-v4",10),n(),o(17,"div"),m(18,"app-common-input-v4",12)(19,"app-control-message-v4",10),n()()(),o(20,"div",13),m(21,"app-common-button-v4",14),o(22,"app-common-button-v4",15),p("clickEvent",function(){return t.submit()}),n()()()),i&2&&(a(7),s("mat-dialog-close",!1),a(),s("img",t.XIcon),a(2),s("formGroup",t.settingsForm),a(2),s("fieldLabel","Bank Id")("isFieldRequired",!1)("maxlength",40),a(),s("control",t.settingsForm.controls.bankId),a(2),s("fieldLabel","Upload folder path")("isFieldRequired",!1)("maxlength",100),a(),s("control",t.settingsForm.controls.folderPath),a(2),s("fieldLabel","File name")("isFieldRequired",!1)("maxlength",40),a(),s("control",t.settingsForm.controls.fileName),a(2),s("type",f(19,Rt)),a(),s("type",f(20,It))("disabled",t.isSubmitting())("loading",t.isSubmitting()))},dependencies:[N,B,G,te,X,W,U,V,P,D,M,ne,oe],changeDetection:0})}}return r})();var Ve=()=>({standalone:!0}),Lt=()=>[],zt=()=>({placeholder:"Select Time Zone",displayField:"name",outputField:"value"}),Ht=()=>({style:"outline",name:"main"}),Ct=()=>({style:"primary",name:"main"}),Ot=()=>({placeholder:"Select setup method",displayField:"label",outputField:"value"}),jt=()=>({placeholder:"Select file type",displayField:"label",outputField:"value"}),qt=()=>({placeholder:"Select auth type",displayField:"label",outputField:"value"}),Gt=()=>({enableLabelIcon:!1,size:0}),Wt=r=>({placeholder:"Select SSH",displayField:"nickName",style:r,enableAddNew:!0}),Ut=()=>({style:"destructive",name:"main"});function Xt(r,x){r&1&&m(0,"div",31)(1,"div",31)}function Kt(r,x){if(r&1&&(o(0,"div",32)(1,"label",33),l(2," Setup method "),o(3,"span",19),l(4,"*"),n(),m(5,"lucide-icon",34),n(),m(6,"app-v4-common-dropdown",35)(7,"app-control-message-v4",14),n(),o(8,"div",32)(9,"label",17),l(10,"File type "),o(11,"span",19),l(12,"*"),n()(),m(13,"app-v4-common-dropdown",36)(14,"app-control-message-v4",14),n()),r&2){let e=C();a(5),s("img",e.InfoIcon)("size",13),a(),s("listData",e.driverOptionsList)("config",f(14,Ot))("clearable",!1)("searchable",!1)("appendTo","body"),a(),s("control",e.positivePayForm.controls.driver),a(6),s("listData",e.fileTypesList)("config",f(15,jt))("clearable",!1)("searchable",!1)("appendTo","body"),a(),s("control",e.positivePayForm.controls.fileType)}}function Yt(r,x){if(r&1&&(o(0,"div"),m(1,"app-common-input-v4",37)(2,"app-control-message-v4",14),n()),r&2){let e=C();a(),s("maxlength",40)("fieldLabel","Email")("isFieldRequired",!0),a(),s("control",e.positivePayForm.controls.email)}}function Zt(r,x){if(r&1&&(o(0,"div",32),m(1,"app-common-input-v4",44)(2,"app-control-message-v4",14),n()),r&2){let e=C(2);a(),s("fieldLabel","Password")("isFieldRequired",!0),a(),s("control",e.positivePayForm.controls.password)}}function Jt(r,x){if(r&1){let e=Z();o(0,"div",32)(1,"label",17),l(2,"SSH Key "),o(3,"span",19),l(4,"*"),n()(),o(5,"app-v4-common-dropdown",45),$("ngModelChange",function(t){k(e);let d=C(2);return Q(d.sshItem,t)||(d.sshItem=t),F(t)}),p("ngModelChange",function(t){k(e);let d=C(2);return F(d.onChangeSsh(t))})("buttonClick",function(){k(e);let t=C(2);return F(t.AddNewSSH())}),n(),m(6,"app-control-message-v4",14),n()}if(r&2){let e=C(2);a(5),J("ngModel",e.sshItem),s("ngModelOptions",f(6,Ve))("required",!0)("config",Ge(8,Wt,f(7,Gt)))("listData",e.sshList),a(),s("control",e.positivePayForm.controls.ssh)}}function Qt(r,x){if(r&1&&(o(0,"div",16)(1,"p",4),l(2," The following details will be provided by your bank "),n(),o(3,"div",38)(4,"div",32),m(5,"app-common-input-v4",39)(6,"app-control-message-v4",14),n(),o(7,"div",32),m(8,"app-common-input-v4",40)(9,"app-control-message-v4",14),n()(),o(10,"div"),m(11,"app-common-input-v4",41)(12,"app-control-message-v4",14),n(),o(13,"div",15)(14,"div",32)(15,"label",42),l(16,"Auth type "),o(17,"span",19),l(18,"*"),n()(),m(19,"app-v4-common-dropdown",43)(20,"app-control-message-v4",14),n(),z(21,Zt,3,3,"div",32)(22,Jt,7,10,"div",32),n()()),r&2){let e=C();a(5),s("fieldLabel","Host")("isFieldRequired",!0),a(),s("control",e.positivePayForm.controls.host),a(2),s("fieldLabel","Port")("isFieldRequired",!0),a(),s("control",e.positivePayForm.controls.port),a(2),s("fieldLabel","Username")("isFieldRequired",!0),a(),s("control",e.positivePayForm.controls.userName),a(7),s("listData",e.logonTypeOptions)("config",f(17,qt))("clearable",!1)("searchable",!1)("appendTo","body"),a(),s("control",e.positivePayForm.controls.logonType),a(),E(21,e.showPasswordField()?21:-1),a(),E(22,e.showSshField()?22:-1)}}function $t(r,x){if(r&1){let e=Z();o(0,"div",46)(1,"div",32),m(2,"app-common-input-v4",47)(3,"app-control-message-v4",14),n(),o(4,"div",48)(5,"app-common-button-v4",49),p("clickEvent",function(){k(e);let t=C(2);return F(t.addEmailField())}),n(),o(6,"app-common-button-v4",50),p("clickEvent",function(){let t=k(e).$index,d=C(2);return F(d.removeEmailField(t))}),n()()()}if(r&2){let e=x.$index,i=C(2);a(2),s("formControlName",e)("placeholder","Email "+(e+1)),a(),s("control",i.additionalEmailsArray.at(e)),a(2),s("type",f(11,Ct))("backGroundInput","var(--v4-badge-info-bg-color)")("textColorInput","var(--v4-badge-info-text-color)")("lucideIconSize",14),a(),s("type",f(12,Ut))("backGroundInput","var(--v4-badge-error-bg-color)")("textColorInput","var(--v4-badge-error-text-color)")("lucideIconSize",14)}}function ei(r,x){if(r&1&&(o(0,"div",24),me(1,$t,7,13,"div",46,ue),n()),r&2){let e=C();a(),pe(e.additionalEmailsArray.controls)}}function ti(r,x){if(r&1){let e=Z();o(0,"div",16)(1,"div",38)(2,"div",32)(3,"label",17),l(4,"Time 2"),n(),o(5,"input",51),p("change",function(t){k(e);let d=C();return F(d.selectDate(t,0))}),n()(),o(6,"div",32)(7,"label",17),l(8,"Time 3"),n(),o(9,"input",51),p("change",function(t){k(e);let d=C();return F(d.selectDate(t,1))}),n()()(),o(10,"div",38)(11,"div",32)(12,"label",17),l(13,"Time 4"),n(),o(14,"input",51),p("change",function(t){k(e);let d=C();return F(d.selectDate(t,2))}),n()(),o(15,"div",32)(16,"label",17),l(17,"Time 5"),n(),o(18,"input",51),p("change",function(t){k(e);let d=C();return F(d.selectDate(t,3))}),n()()(),o(19,"div",38)(20,"div",32)(21,"label",17),l(22,"Time 6"),n(),o(23,"input",51),p("change",function(t){k(e);let d=C();return F(d.selectDate(t,4))}),n()(),m(24,"div",32),n()()}if(r&2){let e=C();a(5),s("value",e.uploadTimesArray[0]),a(4),s("value",e.uploadTimesArray[1]),a(5),s("value",e.uploadTimesArray[2]),a(4),s("value",e.uploadTimesArray[3]),a(5),s("value",e.uploadTimesArray[4])}}function ii(r,x){r&1&&(o(0,"div",30),m(1,"div",52),n())}var Ae=(()=>
1{class r{constructor(){this.userService=c(ft),this.localStorageService=c(it),this.positivePayService=c(T),this.alertService=c(A),this.bankService=c(Ce),this.dialog=c(q),this.dialogRef=c(O),this.destroyRef=c(w),this.injectData=c(j),this.XIcon=R,this.InfoIcon=ye,this.Trash2Icon=ut,this.PlusIcon=pt,this.bankAccounts=b([]),this.allBankAccounts=b([]),this.bankAccountIds=[],this.uploadTimesArray=[],this.sshList=[],this.showMoreEmails=!1,this.isChecked=b(!0),this.isSelectAll=!1,this.showPasswordField=b(!0),this.showSshField=b(!1),this.loading=b(!1),this.showScheduleTime=b(!1),this.fetchData=b(!1),this.isLoadingFileTypes=b(!1),this.driverOptions={1:"FTP",2:"SFTP",3:"Email"},this.fileTypes={1:"TXT",2:"CSV",3:"EXCEL"},this.logonTypeOptions=[{label:"Password",value:"1"},{label:"SSH",value:"2"}],this.positivePayForm=new ee({driver:new g("",[v.required]),host:new g("",[v.required]),port:new g("",[v.required]),userName:new g("",[v.required]),logonType:new g("1"),password:new g("",[v.required]),fileType:new g("",[v.required]),timeToUpload:new g("",[v.required]),ssh:new g(""),email:new g(""),time_zone:new g(""),running_times:new g([""]),bankAccounts:new g(this.bankAccountIds,[v.required]),additionalEmails:new et([])})}get driverOptionsList(){return Object.entries(this.driverOptions).map(([e,i])=>({label:i,value:e}))}get fileTypesList(){return Object.entries(this.fileTypes).map(([e,i])=>({label:i,value:e}))}get additionalEmailsArray(){return this.positivePayForm.get("additionalEmails")}ngOnInit(){this.loadBankAccounts(),this.observeFormChanges(),this.getUserSSh(),this.getTimezone(),this.getSetupMethod(),this.getFtpSettings();let e=this.localStorageService.getItem("timezone")||"America/Chicago";this.positivePayForm.patchValue({time_zone:e})}loadBankAccounts(){this.positivePayService.getPositivePayBankAccounts(this.injectData.bank_routing_number).pipe(h(this.destroyRef)).subscribe(e=>{e?.success&&(this.bankAccounts.set(e?.data?.bankAccounts??[]),this.totalBankAccountsCount=e?.data?.totalAccounts,this.bankAccounts().length===this.totalBankAccountsCount&&(this.isSelectAll=!0),this.getAllBankAccounts())})}getAllBankAccounts(){this.bankService.getBankAccountsPerPage(this.totalBankAccountsCount,this.injectData.bank_routing_number).pipe(h(this.destroyRef)).subscribe(e=>{this.allBankAccounts.set(e?.data??[])})}selectAll(e){if(e.target?.checked){let t=[...this.bankAccounts()];this.allBankAccounts().forEach(d=>{this.bankAccountIds?.includes(d?.id)||t.push(d)}),this.bankAccounts.set(t),this.isChecked.set(!0)}else this.bankAccounts.set([]),this.bankAccountIds=[],this.isChecked.set(!1);this.positivePayForm.controls.bankAccounts.setValue(this.bankAccountIds)}bankSlectionEvent(e){this.bankAccountIds=[],e?.forEach(i=>{this.bankAccountIds?.indexOf(i?.id)===-1&&this.bankAccountIds?.push(i?.id)}),this.bankAccountIds?.length===this.totalBankAccountsCount?this.isSelectAll=!0:this.isSelectAll=!1,this.positivePayForm.controls.bankAccounts.setValue(this.bankAccountIds)}onChangeSsh(e){if(e){let i=JSON.parse(e);this.positivePayForm.controls.ssh.setValue(i.id)}}getUserSSh(){this.positivePayService.getUserSsh().pipe(h(this.destroyRef)).subscribe(e=>{this.sshList=e.data;let i=this.sshList.find(t=>t.nickName===this.newSsh);if(i){let t=JSON.stringify(i);this.sshItem=t,this.onChangeSsh(this.sshItem)}})}AddNewSSH(){this.dialog.open(we,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded"}).afterClosed().subscribe(e=>{e?.success&&(this.newSsh=e.name,this.getUserSSh())})}openSettingModal(){this.dialog.open(de,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded",data:this.injectData})}observeFormChanges(){let e=[this.positivePayForm.controls.host,this.positivePayForm.controls.port,this.positivePayForm.controls.userName,this.positivePayForm.controls.email,this.positivePayForm.controls.password,this.positivePayForm.controls.ssh];this.positivePayForm.controls.driver.valueChanges.pipe(h(this.destroyRef)).subscribe(i=>{String(i)==="3"?(this.positivePayForm.controls.host.clearValidators(),this.positivePayForm.controls.port.clearValidators(),this.positivePayForm.controls.userName.clearValidators(),this.positivePayForm.controls.password.clearValidators(),this.positivePayForm.controls.ssh.clearValidators(),this.positivePayForm.controls.email.addValidators(v.required)):(this.positivePayForm.controls.host.setValidators(v.required),this.positivePayForm.controls.port.setValidators(v.required),this.positivePayForm.controls.userName.setValidators(v.required),this.positivePayForm.controls.email.clearValidators(),this.positivePayForm.controls.logonType.value==="1"?this.positivePayForm.controls.password.setValidators(v.required):this.positivePayForm.controls.ssh.setValidators(v.required)),e.forEach(t=>t.updateValueAndValidity())}),this.positivePayForm.controls.logonType.valueChanges.pipe(h(this.destroyRef)).subscribe(i=>{this.onChange(i??"1"),i==="1"?(this.positivePayForm.controls.ssh.clearValidators(),this.positivePayForm.controls.password.addValidators(v.required)):(this.positivePayForm.controls.password.clearValidators(),this.positivePayForm.controls.ssh.addValidators(v.required)),this.positivePayForm.controls.password.updateV
1alueAndValidity(),this.positivePayForm.controls.ssh.updateValueAndValidity()})}fromBody(){let e=this.positivePayForm.value,{userName:i}=e;return e.driver==="3"&&(i=e.email),Me(Me({driver:e.driver,host:e.host,port:e.port,userName:i,credentialType:e.logonType,fileType:Number(e.fileType),scheduleTime:e.timeToUpload.substring(0,5),ssh:e.ssh,password:e.password,routingNumber:this.injectData.bank_routing_number},this.uploadTimesArray.length>0&&{running_times:this.uploadTimesArray}),this.additionalEmailsArray.length>0&&{additional_emails:this.additionalEmailsArray.controls.map(t=>t.value).filter(t=>t&&t.trim())})}onChange(e){e==="1"?(this.showPasswordField.set(!0),this.showSshField.set(!1)):e==="2"&&(this.showSshField.set(!0),this.showPasswordField.set(!1))}submit(){if(this.positivePayForm.markAllAsTouched(),this.positivePayForm.invalid)return;let e={routingNumber:this.injectData?.bank_routing_number,bankAccountIds:this.bankAccountIds};this.loading.set(!0),Le([this.positivePayService.setPositivePay(this.fromBody()),this.positivePayService.setPositivePayBankAccounts(e)]).pipe(_(()=>this.loading.set(!1)),h(this.destroyRef)).subscribe(([i,t])=>{i.success&&t.success&&(this.localStorageService.setItem("timezone",this.positivePayForm.controls.time_zone.value),this.dialogRef.close({success:!0}),this.alertService.successAlert({content:i.message,close:!0}))})}getFtpSettings(){this.fetchData.set(!0),this.positivePayService.getFtpSettings(this.injectData?.bank_routing_number).pipe(_(()=>this.fetchData.set(!1)),h(this.destroyRef)).subscribe({next:e=>{if(e.success){let i=e.data;i?.running_times?.length>0&&(this.showScheduleTime.set(!0),this.uploadTimesArray=e.data?.running_times),i?.ftp_driver&&this.positivePayForm.patchValue({driver:String(i.ftp_driver),host:i?.ftp_host,port:i?.port,userName:i?.ftp_username,fileType:i?.file_type!=null?String(i.file_type):null,timeToUpload:i?.schedule_time,password:i?.ftp_password,ssh:null,running_times:i?.running_times}),i?.additional_emails?.length>0&&(this.showMoreEmails=!0,this.additionalEmailsArray.clear(),i.additional_emails.forEach(t=>{this.additionalEmailsArray.push(new g(t[0],[v.required,v.email]))}))}}})}getSetupMethod(){this.isLoadingFileTypes.set(!0),this.positivePayService.getMethods(this.injectData?.bank_routing_number).pipe(_(()=>this.isLoadingFileTypes.set(!1)),h(this.destroyRef)).subscribe(e=>{e.success&&(e.data.setupMethods!==null&&(this.driverOptions=e.data.setupMethods),e.data.fileTypes!==null&&(this.fileTypes=e.data.fileTypes))})}getTimezone(){this.userService.getTimeZone().pipe(h(this.destroyRef)).subscribe(e=>{e.success&&(this.timeZoneList=e.data)})}extraTimesToUpload(){this.showScheduleTime.set(!this.showScheduleTime()),this.showScheduleTime()||(this.uploadTimesArray=[])}selectDate(e,i){let t=e.target;this.uploadTimesArray[i]=t?.value}toggleMoreEmails(){if(this.showMoreEmails)this.addEmailField();else for(;this.additionalEmailsArray.length>0;)this.additionalEmailsArray.removeAt(0)}addEmailField(){this.additionalEmailsArray.length>=5||this.additionalEmailsArray.push(new g("",[v.required,v.email]))}removeEmailField(e){this.additionalEmailsArray.removeAt(e),this.additionalEmailsArray.length===0&&(this.showMoreEmails=!1)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-set-positive-pay-modal"]],standalone:!0,features:[S],decls:56,vars:33,consts:[[1,"relative","flex","flex-col","max-h-[90vh]"],[1,"flex","justify-between","px-6","py-4","bg-v4-secondary-background-color","border-b","border-v4-border-color"],[1,"flex","flex-col"],[1,"text-xl","font-semibold","text-v4-main-text-color","font-funnel"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-9","h-9","rounded-lg","hover:bg-v4-tertiary-background-color","cursor-pointer","flex","justify-center","items-center",3,"mat-dialog-close"],[1,"text-v4-subtle-text-color",3,"img"],[1,"p-6","bg-v4-tertiary-background-color","overflow-y-auto","flex-1"],[1,"flex","flex-col","gap-5",3,"formGroup"],[1,"flex","items-center","gap-2","mb-2"],["type","checkbox","id","selectAllAccounts",1,"cursor-pointer",3,"ngModelChange","change","ngModel","ngModelOptions"],["for","selectAllAccounts",1,"text-sm","text-v4-main-text-color","cursor-pointer"],[1,"text-xs","text-v4-subtle-text-color","ml-1"],["placeholder","All Bank Accounts",3,"selectionEvent","rout
1ingNumber","selectedBankAccounts","selectAll"],[3,"control"],[1,"flex","items-start","gap-3"],[1,"flex","flex-col","gap-4"],[1,"block","text-sm","font-medium","text-v4-secondary-text-color","mb-1"],["formControlName","time_zone",3,"listData","config","appendTo"],[1,"text-v4-common-red-color"],["type","time","formControlName","timeToUpload",1,"v4-time-input"],["type","checkbox","id","addMoreEmails",1,"cursor-pointer",3,"ngModelChange","change","ngModel","ngModelOptions"],["for","addMoreEmails",1,"text-sm","text-v4-main-text-color","cursor-pointer"],["matTooltip","Positive Pay files sent securely to all listed emails, across all setup methods.",1,"text-v4-subtle-text-color",3,"img","size"],["formArrayName","additionalEmails",1,"flex","flex-col","gap-3","max-h-[156px]","overflow-y-auto"],[1,"flex","items-center","justify-between"],["role","presentation",1,"text-xs","text-v4-primary-brand-bold-color","hover:underline","cursor-pointer",3,"click"],[1,"flex","justify-end","gap-3","p-6","bg-v4-secondary-background-color","border-t","border-v4-border-color"],["mat-dialog-close","","width","120px","text","Cancel",3,"type"],["width","120px","text","Save",3,"clickEvent","type","disabled","loading"],[1,"absolute","inset-0","flex","items-center","justify-center","bg-v4-tertiary-background-color/60","rounded-lg","z-10"],[1,"skeleton","w-full","h-10","rounded-lg"],[1,"w-full"],[1,"flex","items-center","gap-1","text-sm","font-medium","text-v4-secondary-text-color","mb-1"],["matTooltip","How would you like your bank to receive check information",1,"text-v4-subtle-text-color",3,"img","size"],["formControlName","driver",3,"listData","config","clearable","searchable","appendTo"],["formControlName","fileType",3,"listData","config","clearable","searchable","appendTo"],["placeholder","Email","formControlName","email",3,"maxlength","fieldLabel","isFieldRequired"],[1,"flex","gap-3"],["placeholder","Host","formControlName","host",3,"fieldLabel","isFieldRequired"],["placeholder","Port","formControlName","port",3,"fieldLabel","isFieldRequired"],["placeholder","Username","formControlName","userName",3,"fieldLabel","isFieldRequired"],[1,"block","text-xs","font-medium","text-v4-secondary-text-color","font-peridot","mb-1.5","tracking-wide"],["formControlName","logonType",3,"listData","config","clearable","searchable","appendTo"],["placeholder","Password","formControlName","password","type","password",3,"fieldLabel","isFieldRequired"],[3,"ngModelChange","buttonClick","ngModel","ngModelOptions","required","config","listData"],[1,"flex","items-start","gap-2"],["type","email",3,"formControlName","placeholder"],[1,"flex","items-center","gap-1"],["lucideIcon","plus","text","","width","44px","toolTip","Add another email address",3,"clickEvent","type","backGroundInput","textColorInput","lucideIconSize"],["lucideIcon","trash-2","text","","width","44px","toolTip","Remove email address",3,"clickEvent","type","backGroundInput","textColorInput","lucideIconSize"],["type","time",1,"v4-time-input",3,"change","value"],[1,"w-8","h-8","border-2","border-v4-primary-color","border-t-transparent","rounded-full","animate-spin"]],template:function(i,t){if(i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l(4," Set Positive Pay "),n(),o(5,"h2",4),l(6," Configure FTP, SFTP, or Email delivery "),n()(),o(7,"div",5),m(8,"lucide-icon",6),n()(),o(9,"div",7)(10,"div",8)(11,"div")(12,"div",9)(13,"input",10),$("ngModelChange",function(u){return Q(t.isSelectAll,u)||(t.isSelectAll=u),u}),p("change",function(u){return t.selectAll(u)}),n(),o(14,"label",11),l(15," Select All "),o(16,"span",12),l(17,"(Select bank accounts to set up for Positive Pay)"),n()()(),o(18,"app-bank-multi-select-dropdown-v4",13),p("selectionEvent",function(u){return t.bankSlectionEvent(u)}),n(),m(19,"app-control-message-v4",14),n(),o(20,"div",15),z(21,Xt,2,0)(22,Kt,15,16),n(),z(23,Yt,3,4,"div")(24,Qt,23,18),o(25,"div",16)(26,"p",4),l(27," Please specify your bank's preferred times to receive checks. You can select multiple time slots, though most banks prefer a single time, often in the evening. "),n(),o(28,"div")(29,"label",17),l(30,"Time Zone"),n(),m(31,"app-v4-common-dropdown",18),n(),o(32,"div")(33,"label",17),l(34,"Time 1 "),o(35,"span",19),l(36,"*"),n()(),m(37,"input",20)(38,"app-control-message-v4",14),n()(),o(39,"div")(40,"div",9)(41,"input",21),$("ngModelChange",function(u){return Q(t.showMoreEmails,u)||(t.showMoreEmails=u),u}),p("change",function(){return t.toggleMoreEmails()}),n(),o(42,"label",22),l(43," Positive Pay Email Notifications "),n(),m(44,"lucide-icon",23),n(),z(45,ei,3,0,"div",24),n(),o(46,"div",25)(47,"span",26),p("click",function(){return t.extraTimesToUpload()}),l(48),n(),o(49,"span",26),p("click",function(){return t.openSettingModal()}),l(50," Settings "),n()(),z(51,ti,25,5,"div",16),n()(),o(52,"div",27),m(53,"app-common-button-v4",28),o(54,"app-common-button-v4",29),p("clickEvent",function(){return t.submit()}),n()(),z(55,ii,2,0,"div",30),n()),i&2){let d;a(7),s("mat-dialog-close",!1),a(),s("img",t.XIcon),a(2),s("formGroup",t.positivePayForm),a(3),J("ngModel",t.isSelectAll),s("ngModelOptions",f(27,Ve)),a(5),s("routingNumber",t.injectData.bank_routing_number)("selectedBankAccounts",t.bankAccounts())("selectAll",t.isChecked()),a(),s("control",t.positivePayForm.controls.bankAccounts),a(2),E(21,t.isLoadingFileTypes()?21:22),a(2),E(23,(t.positivePayForm.controls.driver.value==null?null:t.positivePayForm.controls.driver.value.toString())==="3"?23:24),a(8),s("listData",(d=t.timeZoneList)!==null&&d!==void 0?d:f(28,Lt))("config",f(29,zt))("appendTo","body"),a(7),s("control",t.positivePayForm.controls.timeToUpload),a(3),J("ngModel",t.showMoreEmails),s("ngModelOptions",f(30,Ve)),a(3),s("img",t.InfoIcon)("size",14),a(),E(45,t.showMoreEmails?45:-1),a(3),H(" ",t.showScheduleTime()?"Remove":"Add"," Schedule Time "),a(3),E(51,t.showScheduleTime()?51:-1),a(2),s("type",f(31,Ht)),a(),s("type",f(32,Ct))("disabled",t.loading())("loading",t.loading()),a(),E(55,t.fetchData()?55:-1)}},dependencies:[N,ge,ve,B,G,$e,te,be,X,W,U,Qe,V,ie,P,D,M,ne,oe,xe,Fe],styles:[".v4-select[_ngcontent-%COMP%]{width:100%;border-radius:var(--radius-lg);border-width:1px;border-color:var(--v4-border-color);background-color:var(--v4-secondary-background-color);padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;color:var(--v4-main-text-color)}.v4-select[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.v4-time-input[_ngcontent-%COMP%]{width:100%;border-radius:var(--radius-lg);border-width:1px;border-color:var(--v4-border-color);background-color:var(--v4-secondary-background-color);padding:.625rem .75rem;font-size:.875rem;line-height:1.25rem;color:var(--v4-main-text-color)}.v4-time-input[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.v4-time-input[_ngcontent-%COMP%]{height:42px}"],changeDetection:0})}}return r})();var oi=()=>({style:"outline",name:"main"}),ni=()=>({style:"primary",name:"main"}),xt=(()=>
1{class r{constructor(){this.positivePayService=c(T),this.alertService=c(A),this.bankAccountsService=c(Ce),this.dialog=c(q),this.dataTableService=c(K),this.v3DataTableService=c(I),this.destroyRef=c(w),this.routingNumber=c(j),this.XIcon=R,this.InfoIcon=ye,this.bankAccounts=[],this.allBankAccounts=[],this.bankAccountIds=[],this.totalBankAccountsCount=0,this.isSelectAll=!1,this.isChecked=!0,this.isSubmitting=b(!1)}ngOnInit(){this.loadBankAccounts()}loadBankAccounts(){this.positivePayService.getPositivePayBankAccounts(this.routingNumber).pipe(h(this.destroyRef)).subscribe(e=>{e?.success&&(this.bankAccounts=e?.data?.bankAccounts,this.totalBankAccountsCount=e?.data?.totalAccounts,this.bankAccounts?.length===this.totalBankAccountsCount&&(this.isSelectAll=!0),this.getAllBankAccounts())})}getAllBankAccounts(){this.bankAccountsService.getBankAccountsPerPage(this.totalBankAccountsCount,this.routingNumber).pipe(h(this.destroyRef)).subscribe(e=>{this.allBankAccounts=e?.data})}selectAll(e){e.target?.checked?(this.allBankAccounts.forEach(t=>{this.bankAccountIds?.includes(t?.id)||this.bankAccounts.push(t)}),this.bankAccounts=[...this.bankAccounts],this.isChecked=!0):(this.bankAccounts=[],this.bankAccountIds=[],this.isChecked=!1)}bankSlectionEvent(e){this.bankAccountIds=[],e?.forEach(i=>{this.bankAccountIds?.indexOf(i?.id)===-1&&this.bankAccountIds?.push(i?.id)}),this.isSelectAll=this.bankAccountIds?.length===this.totalBankAccountsCount}save(){if(!this.bankAccountIds.length){this.alertService.warningAlert({content:"Please select at least one bank account"});return}this.isSubmitting.set(!0);let e={routingNumber:this.routingNumber,bankAccountIds:this.bankAccountIds};this.positivePayService.setPositivePayBankAccounts(e).pipe(_(()=>this.isSubmitting.set(!1)),h(this.destroyRef)).subscribe(i=>{i.success?this.alertService.successAlert({content:i.message}).afterClosed().subscribe(d=>{d&&(this.dialog.closeAll(),this.dataTableService.setRefreshStatus(!0,32),this.v3DataTableService.refreshV3DataTable())}):this.alertService.warningAlert({content:i.message})})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-positivepay-bankaccounts"]],standalone:!0,features:[S],decls:20,vars:14,consts:[[1,""],[1,"flex","justify-between","px-6","py-4","bg-v4-secondary-background-color","border-b","border-v4-border-color"],[1,"flex","flex-col"],[1,"flex","items-center","gap-2"],[1,"text-xl","font-semibold","text-v4-main-text-color","font-funnel"],["matTooltip","Choose the bank accounts to set Positive Pay",1,"text-v4-subtle-text-color","cursor-pointer",3,"img","size"],[1,"text-xs","text-v4-subtle-text-color"],[1,"w-9","h-9","rounded-lg","hover:bg-v4-tertiary-background-color","cursor-pointer","flex","justify-center","items-center",3,"mat-dialog-close"],[1,"text-v4-subtle-text-color",3,"img"],[1,"p-6","bg-v4-tertiary-background-color","flex","flex-col","gap-4"],["type","checkbox","id","selectAllAccounts",1,"cursor-pointer",3,"ngModelChange","change","ngModel"],["for","selectAllAccounts",1,"text-sm","text-v4-main-text-color","cursor-pointer"],["placeholder","All Bank Accounts","appendTo","body",3,"selectionEvent","routingNumber","selectedBankAccounts","selectAll"],[1,"flex","justify-end","gap-3","p-6","bg-v4-secondary-background-color","border-t","border-v4-border-color"],["mat-dialog-close","","width","120px","text","Cancel",3,"type"],["width","120px","text","Save",3,"clickEvent","type","disabled","loading"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),l(5," Set Bank Accounts "),n(),m(6,"lucide-icon",5),n(),o(7,"h2",6),l(8," Choose the bank accounts to set Positive Pay "),n()(),o(9,"div",7),m(10,"lucide-icon",8),n()(),o(11,"div",9)(12,"div",3)(13,"input",10),$("ngModelChange",function(u){return Q(t.isSelectAll,u)||(t.isSelectAll=u),u}),p("change",function(u){return t.selectAll(u)}),n(),o(14,"label",11),l(15," Select All "),n()(),o(16,"app-bank-multi-select-dropdown-v4",12),p("selectionEvent",function(u){return t.bankSlectionEvent(u)}),n()(),o(17,"div",13),m(18,"app-common-button-v4",14),o(19,"app-common-button-v4",15),p("clickEvent",function(){return t.save()}),n()()()),i&2&&(a(6),s("img",t.InfoIcon)("size",16),a(3),s("mat-dialog-close",!1),a(),s("img",t.XIcon),a(3),J("ngModel",t.isSelectAll),a(3),s("routingNumber",t.routingNumber)("selectedBankAccounts",t.bankAccounts)("selectAll",t.isChecked),a(2),s("type",f(12,oi)),a(),s("type",f(13,ni))("disabled",t.isSubmitting())("loading",t.isSubmitting()))},dependencies:[N,ve,B,be,V,st,ie,P,D,M,Fe]})}}return r})();var Te=(()=>{class r{agInit(e){this.params=e,this.link=this.params.data.download_link}refresh(){return!0}download(){window.open(this.link)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-dt-v4-file-download"]],standalone:!0,features:[S],decls:2,vars:0,consts:[["role","presentation",1,"curs
1or-pointer","text-[var(--v4-badge-info-text-color)]",3,"click"]],template:function(i,t){i&1&&(o(0,"a",0),p("click",function(){return t.download()}),l(1,"Download File"),n())},encapsulation:2,changeDetection:0})}}return r})(),_t=(()=>{class r{constructor(){this.dialog=c(q),this.router=c(he),this.alertService=c(A),this.dynamicWhiteLabelService=c(Se),this.positivePayService=c(T),this.v3DataTableService=c(I),this.destroyRef=c(w),this.loading=!1}refresh(){return!0}agInit(e){this.params=e}get rowData(){return this.params.data}checkEligibility(){return this.rowData?.is_verified?this.rowData?.is_eligible?!0:(this.alertService.warningAlert({title:"Error",content:"This bank is not eligible for Positive Pay setup. For further details, please contact our support team.",doneMsg:"Contact Now",cancelMsg:"Not Now",isCancel:!0}).afterClosed().subscribe(i=>{i&&this.dynamicWhiteLabelService.goToLiveChat()}),!1):(this.alertService.warningAlert({title:"Error",content:"You must have at least one verified bank account with this bank. Please visit the bank accounts list to verify your account.",isCancel:!0}),!1)}setPositivePay(){if(!this.checkEligibility())return;this.dialog.open(Ae,{maxWidth:"600px",width:"100%",disableClose:!0,autoFocus:!1,data:this.rowData,panelClass:"paddingless-modal-rounded"}).afterClosed().subscribe(i=>{i?.success&&this.v3DataTableService.refreshV3DataTable()})}export(){this.rowData&&this.dialog.open(Pe,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,data:this.rowData,panelClass:"paddingless-modal-rounded"})}settings(){this.rowData&&this.dialog.open(de,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,data:this.rowData,panelClass:"paddingless-modal-rounded"})}runPositivePay(){if(!this.rowData)return;this.alertService.confirmAlert({content:"Are you sure you want to proceed?"}).afterClosed().pipe(h(this.destroyRef)).subscribe(i=>{i&&(this.loading=!0,this.positivePayService.uploadToBank(this.rowData.bank_routing_number).pipe(_(()=>{this.loading=!1}),h(this.destroyRef)).subscribe({next:t=>{t.success&&this.alertService.successAlert({content:"Successfully Uploaded to Bank"})}}))})}openViewLog(){this.router.navigate(["/v4/manage/positivepay/logs",this.rowData.bank_routing_number])}openBankAccountsModal(){this.checkEligibility()&&this.dialog.open(xt,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,data:this.rowData.bank_routing_number,panelClass:"paddingless-modal-rounded"})}viewDownloadHistory(){this.router.navigate(["/v4/manage/positivepay/download-history",this.rowData.bank_routing_number])}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-dt-v4-positivepay-action"]],standalone:!0,features:[S],decls:24,vars:5,consts:[["menu","matMenu"],[1,"flex","items-center","gap-1","h-full"],["matTooltip","Actions",1,"action-icon-btn",3,"click","matMenuTriggerFor"],["name","ellipsis-vertical",1,"v4-action-icon",3,"size"],[1,"v4-action-menu"],[1,"v4-menu-group-label"],["mat-menu-item","",3,"click"],[1,"v4-menu-item"],["name","clock",3,"size"],["name","landmark",3,"size"],["name","download",3,"size"]],template:function(i,t){if(i&1){let d=Z();o(0,"div",1)(1,"button",2),p("click",function(kt){return k(d),F(kt.stopPropagation())}),m(2,"lucide-icon",3),n()(),o(3,"mat-menu",4,0)(5,"div",5),l(6,"ACTIONS"),n(),o(7,"button",6),p("click",function(){return k(d),F(t.openViewLog())}),o(8,"div",7),m(9,"lucide-icon",8),o(10,"span"),l(11,"View Log"),n()()(),o(12,"button",6),p("click",function(){return k(d),F(t.openBankAccountsModal())}),o(13,"div",7),m(14,"lucide-icon",9),o(15,"span"),l(16,"Set Bank Accounts"),n()()(),o(17,"div",5),l(18,"DOCUMENTS"),n(),o(19,"button",6),p("click",function(){return k(d),F(t.viewDownloadHistory())}),o(20,"div",7),m(21,"lucide-icon",10),o(22,"span"),l(23,"View Download History"),n()()()()}if(i&2){let d=je(4);a(),s("matMenuTriggerFor",d),a(),s("size",16),a(7),s("size",16),a(5),s("size",16),a(7),s("size",16)}},dependencies:[Ke,mt,ct,lt,dt,nt,St,P,D,ie],encapsulation:2,changeDetection:0})}}return r})();var Be=(()=>{class r{constructor(){this.dataTableService=c(K),this.dialog=c(q),this.location=c(Ue),this.pageHeaderActions=[{id:"id_generate_ssh",text:"Generate SSH",lucideIcon:"key",
1isAddIcon:!0}],this.alertService=c(A),this.positivePayService=c(T),this.v3DataTableService=c(I),this.dynamicWhiteLabelService=c(Se),this.destroyRef=c(w),this.frameworkComponents={headerCheckBoxComponent:ce,SelectBoxComponent:ke,actionComponent:ht,viewLogComponent:_t,SearchBoxComponent:le},this.tableId=ae.positivePay,this.loading=b(!1),this.selectedRows=b([]),this.isMultiSelected=b(!1),this.exportConfig={heading:"",ignoreColumns:["boxId"]},this.headerElements=We(()=>({titleButtons:[{text:"Generate SSH",id:"id_generate_ssh",lucideIcon:"key",type:"list",backGroundInput:"var(--v4-primary-brand-color)",textColorInput:"white",textClasses:"text-sm"}],buttons:[{text:"Set Positive Pay",id:"id_set_positive_pay",lucideIcon:"settings",floatingBarVariant:"primary",toolTip:this.isMultiSelected()?"":"Configure Positive Pay and enhance your transaction security.",disabled:this.isMultiSelected()},{text:"Export",id:"id_export",lucideIcon:"download",floatingBarVariant:"outline-primary",toolTip:this.isMultiSelected()?"":"Export your Positive Pay file for bank fraud prevention.",disabled:this.isMultiSelected()},{text:"Settings",id:"id_settings",lucideIcon:"settings",floatingBarVariant:"outline-primary",disabled:this.isMultiSelected()},{text:this.loading()?"Loading...":"Run Positive Pay",id:"upload_to_bank",lucideIcon:"play",floatingBarVariant:"outline-danger",disabled:this.loading()||this.isMultiSelected(),toolTip:this.loading()||this.isMultiSelected()?"":"Submit your check or ACH payment details to your bank for fraud prevention."}]})),this.actionComponentProp={actionButton:!0,eyeButton:!1},this.colDefId={headerName:"#",field:"boxId",suppressFloatingFilterButton:!0,minWidth:50,maxWidth:50,checkboxSelection:!0,headerCheckboxSelection:!0,floatingFilter:!0,suppressHeaderMenuButton:!0,lockPosition:!0,resizable:!1,sortable:!1,pinned:"left",cellClass:"flex justify-center",headerClass:"pl-3.5"},this.colDefBankAccName={headerName:"Name",field:"routing_number_db.bank_name",suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,flex:1,cellClass:"text-left",cellRenderer:e=>{if(!e.data)return"";let i=e.data.real_bank_name||e.data.bank_name||"";return e.data.ftp_driver?`${i}<span class="text-[var(--v4-badge-success-text-color)] text-xs ml-2 px-[7px] uppercase py-px rounded-[3px] bg-[var(--v4-badge-success-bg-color)]">${e.data.ftp_driver}</span>`:i}},this.colDefRoutingNo={headerName:"Routing No",field:"bank_routing_number",suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,flex:1,cellClass:"text-left",cellRenderer:e=>e.data?.bank_routing_number??""},this.colDefNumberOfAcc={headerName:"Number of Active Accounts",field:"bank_accounts_count",suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,cellClass:"text-left"},this.colDefAction={headerName:"Action",field:"id",suppressFloatingFilterButton:!0,minWidth:90,maxWidth:90,sortable:!1,cellRenderer:"viewLogComponent",floatingFilter:!0,suppressHeaderMenuButton:!0,pinned:"left",lockPosition:!0},this.columnDefs=[this.colDefId,this.colDefAction,this.colDefBankAccName,this.colDefRoutingNo,this.colDefNumberOfAcc],this.columnFields=[{id:"id",name:"#",isDisabled:!0,colDef:this.colDefId,isChecked:!0},{id:"id_action",name:"Action",isDisabled:!1,colDef:this.colDefAction,isChecked:!0},{id:"id_name",name:"Name",isDisabled:!0,colDef:this.colDefBankAccName,isChecked:!0},{id:"id_routing_no",name:"Routing No",isDisabled:!0,colDef:this.colDefRoutingNo,isChecked:!0},{id:"id_no_accounts",name:"Number of Accounts",isDisabled:!0,colDef:this.colDefNumberOfAcc,isChecked:!0}]}goBack(){this.location.back()}onPageHeaderAction(e){this.headerButtonClick({id:e,selectedRows:[]})}ngOnInit(){this.dataTableService.setDataFromParent(this.columnFields,void 0,void 0,this.actionComponentProp),this.v3DataTableService.resetV3DataTablePayload(),this.v3DataTableService.refreshV3DataTable(),this.v3DataTableService.v3RowSelectionData=[],this.v3DataTableService.gridApi?.deselectAll()}onRowSelected(e){let i=e.api.getSelectedRows();this.selectedRows.set(i),this.isMultiSelected.set(i.length>1)}headerButtonClick(e){let{selectedRows:i}=e;switch(e.id){case"id_generate_ssh":this.generateSSH();break;case"id_export":this.export(i);break;case"id_set_positive_pay":this.setPositivePay(i);break;case"id_settings":this.settings(i);break;case"upload_to_bank":this.uploadToBank(i);break;default:break}}export(e){this.isEmptyRowSelection(e)||this.dialog.open(Pe,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded",data:e[0]})}setPositivePay(e){if(this.isEmptyRowSelection(e))return;this.dialog.open(Ae,{maxWidth:"600px",width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded",data:e[0]}).afterClosed().subscribe(t=>{t?.success&&this.v3DataTableService.refreshV3DataTable()})}settings(e){this.isEmptyRowSelection(e)||this.dialog.open(de,{maxWidth:"400px",
1width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded",data:e[0]})}generateSSH(){this.dialog.open(we,{maxWidth:"510px",width:"100%",disableClose:!0,autoFocus:!1,panelClass:"paddingless-modal-rounded"})}uploadToBank(e){if(this.isEmptyRowSelection(e))return;this.alertService.confirmAlert({content:"Are you sure you want to proceed?"}).afterClosed().subscribe(t=>{t&&(this.loading.set(!0),this.positivePayService.uploadToBank(e[0]?.bank_routing_number).pipe(_(()=>{this.loading.set(!1)}),h(this.destroyRef)).subscribe({next:d=>{d.success&&this.alertService.successAlert({content:"Successfully Uploaded to Bank"})}}))})}isEmptyRowSelection(e){return e.length===0?(this.alertService.warningAlert({content:"Please select at least one row"}),!0):e[0]?.is_verified?e[0]?.is_eligible?!1:(this.alertService.warningAlert({title:"Error",content:"This bank is not eligible for Positive Pay setup. For further details, please contact our support team.",doneMsg:"Contact Now",cancelMsg:"Not Now",isCancel:!0}).afterClosed().subscribe(t=>{t&&this.dynamicWhiteLabelService.goToLiveChat()}),!0):(this.alertService.warningAlert({title:"Error",content:"You must have at least one verified bank account with this bank. Please visit the bank accounts list to verify your account.",isCancel:!0}),!0)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-positive-pay-management"]],standalone:!0,features:[S],decls:5,vars:9,consts:[[1,"h-full","w-full","overflow-x-auto"],[3,"actionClick","title","actions"],["headerLead","","type","button",1,"flex","items-center","justify-center","w-8","h-8","rounded-lg","border","border-v4-border-color","bg-v4-secondary-background-color","text-v4-main-text-color","cursor-pointer","hover:bg-v4-tertiary-background-color","transition-colors",3,"click"],["name","arrow-left",3,"size"],[3,"headerButtonEvent","rowSelected","columnDefs","defaultColumnFields","tableId","frameworkComponents","headerElements","exportConfig"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"app-v4-page-header",1),p("actionClick",function(u){return t.onPageHeaderAction(u)}),o(2,"button",2),p("click",function(){return t.goBack()}),m(3,"lucide-icon",3),n()(),o(4,"app-v4-data-table",4),p("headerButtonEvent",function(u){return t.headerButtonClick(u)})("rowSelected",function(u){return t.onRowSelected(u)}),n()()),i&2&&(a(),s("title","Positive Pay Management")("actions",t.pageHeaderActions),a(2),s("size",16),a(),s("columnDefs",t.columnDefs)("defaultColumnFields",t.columnFields)("tableId",t.tableId)("frameworkComponents",t.frameworkComponents)("headerElements",t.headerElements())("exportConfig",t.exportConfig))},dependencies:[se,re,P,D],encapsulation:2})}}return r})();var Ne={Success:{bg:"var(--v4-badge-success-bg-color)",text:"var(--v4-badge-success-text-color)",label:"Success"},Failed:{bg:"var(--v4-badge-error-bg-color)",text:"var(--v4-badge-error-text-color)",label:"Failed"},processing:{bg:"var(--v4-badge-warning-bg-color)",text:"var(--v4-badge-warning-text-color)",label:"Processing"}},ai=(()=>{class r{constructor(){this.badge=Ne.processing}agInit(e){this.badge=Ne[e.value]??Ne.processing}refresh(){return!1}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-positive-pay-log-status"]],standalone:!0,features:[S],decls:2,vars:5,consts:[[1,"status-badge"]],template:function(i,t){i&1&&(o(0,"span",0),l(1),n()),i&2&&(Oe("background",t.badge.bg)("color",t.badge.text),a(),H(" ",t.badge.label," "))},encapsulation:2,changeDetection:0})}}return r})(),Re=(()=>{class r{constructor(){this.dataTableService=c(K),this.v3DataTableService=c(I),this.activatedRoute=c(fe),this.tableId=ae.positivePayLogs,this.frameworkComponents={headerCheckBoxComponent:ce,SearchBoxComponent:le,DropdownComponent:ke,fileDownloadComponent:Te,v4DateRangeComponent:_e,V4DTCommonFilterComponent:yt,statusBadgeComponent:ai},this.floatingFilterComponent={selectBox:[{id:"status",values:[{value:"Success",name:"Success"},{value:"Failed",name:"Failed"},{value:"processing",name:"Processing"}]}]},this.colDefDate={headerName:"Date",field:"run_date",suppressFloatingFilterButton:!0,floatingFilter:!0,suppressHeaderMenuButton:!0,lockPosition:!0,resizable:!0,sortable:!1,minWidth:150,flex:1,floatingFilterComponent:"v4DateRangeComponent",filter:"agDateColumnFilter"},this.colDefBankName={headerName:"Bank Name",field:"bank_name",suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,flex:1,cellRenderer:"V4DTCommonFilterComponent"},this.colDefRoutingNumber={headerName:"Bank Routing Number",field:"routing_number",suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,flex:1,cellRenderer:"V4DTCommonFilterComponent"},this.colDefFile={headerName:"File",field:"download_link",suppressFloatingFilterButton:!0,floatingFilter:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",suppressHeaderMenuButton:!0,cellRenderer:"fileDownloadComponent",sortable:!1,flex:1},this.colDefStatus={headerName:"Status",field:"status",suppressFloatingFilterButton:!0,minWidth:120,width:150,maxWidth:300,floatingFilterComponent:"DropdownComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0,pinned:"right",lockPosition:"right",lockPinned:!0,suppressMovable:!0,cellRenderer:"statusBadgeComponent"},this.columnDefs=[this.colDefDate,this.colDefBankName,this.colDefRoutingNumber,this.colDefFile,this.colDefStatus],this.columnFields=[{id:"run_date",name:"Date",isDisabled:!0,colDef:this.colDefDate,isChecked:!0},{id:"bank_name",name:"Bank Name",isDisabled:!0,colDef:this.colDefBankName,isChecked:!0},{id:"routing_number",name:"Bank Routing Number",isDisabled:!0,colDef:this.colDefRoutingNumber,isChecked:!0},{id:"download_link",name:"File",isDisabled:!0,colDef:this.colDefFile,isChecked:!0},{id:"status",name:"Status",isDisabled:!0,colDef:this.colDefStatus,isChecked:!0}]}ngOnInit(){this.setRoutingNumber(),this.dataTableService.setDataFromParent(this.columnFields,this.floatingFilterComponent),this.v3DataTableService.resetV3DataTablePayload(),this.v3DataTableService.v3RowSelectionData=[],this.v3DataTableService.gridApi?.deselectAll()}setRoutingNumber(){this.routingNumber=this.activatedRoute.snapshot.paramMap.get("id"),this.routingNumber!==null&&this.v3DataTableService.setRoutingNumber({rout
1ingNumber:this.routingNumber})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-positive-pay-logs"]],standalone:!0,features:[S],decls:3,vars:6,consts:[[1,"h-full","w-full","overflow-x-auto"],[3,"title","showBackButton"],[3,"columnDefs","tableId","frameworkComponents","deferInitialLoad"]],template:function(i,t){i&1&&(o(0,"div",0),m(1,"app-v4-page-header",1)(2,"app-v4-data-table",2),n()),i&2&&(a(),s("title","Positive Pay Logs")("showBackButton",!0),a(),s("columnDefs",t.columnDefs)("tableId",t.tableId)("frameworkComponents",t.frameworkComponents)("deferInitialLoad",!0))},dependencies:[se,re],encapsulation:2})}}return r})();var Ie=(()=>{class r{constructor(){this.dataTableService=c(K),this.v3DataTableService=c(I),this.activatedRoute=c(fe),this.tableId=ae.postivePayDownloadHistory,this.frameworkComponents={headerCheckBoxComponent:ce,SearchBoxComponent:le,v4DateRangeComponent:_e,fileDownloadComponent:Te,bankDropdownComponent:bt},this.colDefBank={flex:1,headerName:"Bank Name",field:"bank_name",suppressFloatingFilterButton:!0,floatingFilterComponent:"bankDropdownComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefRouting={headerName:"Routing Number",field:"routing_number",flex:1,suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefDate={headerName:"From Date",field:"from_date",flex:1,suppressFloatingFilterButton:!0,floatingFilterComponent:"v4DateRangeComponent",filter:"agDateColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefToDate={headerName:"To Date",field:"to_date",flex:1,suppressFloatingFilterButton:!0,floatingFilterComponent:"v4DateRangeComponent",filter:"agDateColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefBy={headerName:"Created By",field:"name",flex:1,suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefFileType={headerName:"File Type",field:"file_type",flex:1,suppressFloatingFilterButton:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",floatingFilter:!0,suppressHeaderMenuButton:!0},this.colDefFile={headerName:"File",field:"download_link",suppressFloatingFilterButton:!0,floatingFilter:!0,floatingFilterComponent:"SearchBoxComponent",filter:"agTextColumnFilter",suppressHeaderMenuButton:!0,cellRenderer:"fileDownloadComponent",sortable:!1,flex:1},this.columnDefs=[this.colDefBank,this.colDefRouting,this.colDefDate,this.colDefToDate,this.colDefBy,this.colDefFileType,this.colDefFile],this.columnFields=[{id:"bank_name",name:"Bank Name",isDisabled:!0,colDef:this.colDefBank,isChecked:!0},{id:"routing_number",name:"Routing Number",isDisabled:!0,colDef:this.colDefRouting,isChecked:!0},{id:"from_date",name:"From Date",isDisabled:!1,colDef:this.colDefDate,isChecked:!0},{id:"to_date",name:"To Date",isDisabled:!1,colDef:this.colDefToDate,isChecked:!0},{id:"name",name:"Created By",isDisabled:!1,colDef:this.colDefBy,isChecked:!0},{id:"file_type",name:"File Type",isDisabled:!1,colDef:this.colDefFileType,isChecked:!0},{id:"download_link",name:"File",isDisabled:!1,colDef:this.colDefFile,isChecked:!0}]}ngOnInit(){this.setRoutingNumber(),this.dataTableService.setDataFromParent(this.columnFields),this.v3DataTableService.resetV3DataTablePayload()}setRoutingNumber(){this.routingNumber=this.activatedRoute.snapshot.paramMap.get("id"),this.routingNumber!==null&&this.v3DataTableService.setRoutingNumber({routingNumber:this.routingNumber})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=y({type:r,selectors:[["app-v4-postive-pay-download-history"]],standalone:!0,features:[S],decls:3,vars:5,consts:[[1,"h-full","w-full","overflow-x-auto"],[3,"title","showBackButton"],[3,"columnDefs","tableId","frameworkComponents"]],template:function(i,t){i&1&&(o(0,"div",0),m(1,"app-v4-page-header",1)(2,"app-v4-data-table",2),n()),i&2&&(a(),s("title","Positive Pay Download History")("showBackButton",!0),a(),s("columnDefs",t.columnDefs)("tableId",t.tableId)("frameworkComponents",t.frameworkComponents))},dependencies:[se,re],encapsulation:2})}}return r})();Ze.registerModules([vt]);var ri=[{path:"",redirectTo:"index",pathMatch:"full"},{path:"restrictions",component:Ee},{path:"index",component:Be},{path:"logs/:id",component:Re},{path:"download-history/:id",component:Ie}],ka=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275mod=He({type:r})}static{this.\u0275inj=ze({imports:[Ye.forChild(ri),Ee,Be,Re,Ie]})}}return r})();export{ka as V4PositivePayModule};
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.