1import{a as R}from"./chunk-THYHJHGM.js";import{a as Q}from"./chunk-ZHXVT7RV.js";import{a as vt}from"./chunk-BJ3FJQUO.js";import{a as A}from"./chunk-4V2XQZUA.js";import"./chunk-ZFPIIN4G.js";import"./chunk-VFGSK2ZR.js";import"./chunk-BV62PJG7.js";import"./chunk-ODFNYISZ.js";import"./chunk-2BMXEA5H.js";import"./chunk-CSORHSSI.js";import"./chunk-BSCXHMPL.js";import{f as wt}from"./chunk-4T6P23E3.js";import"./chunk-IRTQGZ5H.js";import{H as St}from"./chunk-OIC6T4BG.js";import{a as Dt}from"./chunk-TN5CNVPX.js";import"./chunk-QJQN7EZS.js";import"./chunk-PGRHYESF.js";import"./chunk-HVXUXUPP.js";import"./chunk-MP2EA2WC.js";import"./chunk-ARXRLFP2.js";import"./chunk-4ZP4OX7G.js";import{a as B}from"./chunk-F4BI5774.js";import"./chunk-7YYEU5PM.js";import{f as Ot}from"./chunk-5GXW27VC.js";import{f as xt,g as ft,i as G}from"./chunk-UHF6UGZY.js";import{a as Mt}from"./chunk-YFU6CWUS.js";import"./chunk-MTLSSLVV.js";import"./chunk-D6GKABZB.js";import{a as Pt}from"./chunk-ILEAUVHB.js";import{D as z,E as ut,c as lt,h as dt,i as st,k as mt,n as pt,o as gt,w as _t,x as Ct,y as ht}from"./chunk-7MVIDXE6.js";import{c as bt}from"./chunk-A3GSJ6EL.js";import"./chunk-AR4CUNRG.js";import{g as q}from"./chunk-FIDUW7QL.js";import"./chunk-6XDXCMO7.js";import{f as ct,m as I,p as L}from"./chunk-K7ULS6C4.js";import{d as V}from"./chunk-X34TSPSD.js";import"./chunk-QKRDQ354.js";import{$b as o,Aa as Z,Ac as H,Cb as tt,Db as et,Dc as l,Ec as U,Fc as h,Gc as j,Ic as S,Jc as D,Kc as y,Oc as at,Pc as O,Tc as E,Vb as m,Vc as k,Wb as p,Xb as N,Yb as T,Zb as F,_b as M,ac as i,bc as x,hd as rt,ic as f,ja as Y,ka as X,mb as r,mc as C,na as K,oa as b,oc as d,sc as nt,tc as it,ua as g,uc as ot,va as _}from"./chunk-TPFUSCPX.js";import"./chunk-VZXUKQ6R.js";var W=(()=>{class n{constructor(t){this.restService=t,this.GetCreditDebitMemoEndpoint="getCreditDebitMemoForDateRange",this.GetCreditDebitMemoByPoNumEndpoint="getCreditDebitByPoNumber",this.GetCreditDebitMemoPDFFIleEndpoint="getPDFDoc",this.GetInvoicesGlobalSearchEndpoint="getInvoiceGlobalSearchInfo",this.GetCreditDebitMemoExcelEndpoint="getCreditDebitMemoEXCEL",this.GetInvoiceDetailPDFEndpoint="getInvoiceForNYS",this.getPageSortOrderEndpoint="getPageSortOrder"}GetPageSortOrder(t,a){let c={params:new V().set("login",t).set("pageType",a)};return this.restService.get(this.getPageSortOrderEndpoint,c)}GetCreditDebitMemo(t,a,e,c,u,P){let w=JSON.stringify({startDate:e,endDate:c,CustomerAccount:a,PONumber:u,MemoNumber:P,InvoiceNumber:""});return this.restService.post(this.GetCreditDebitMemoEndpoint,w)}GetCreditDebitMemoByPoNumber(t,a,e){let u={params:new V().set("User",t).set("PONumber",e).set("CustomerNumbers",a).set("SortOrder","2")};return this.restService.get(this.GetCreditDebitMemoByPoNumEndpoint,u)}GetInvoicesGlobalSearch(t){let e={params:new V().set("User",t)};return this.restService.get(this.GetInvoicesGlobalSearchEndpoint,e)}GetCreditDebitMemoPDFFIle(t,a,e,c,u,P){let w={params:new V().set("pageName",t).set("docId",a).set("docName",e).set("blobContainer",c).set("user",u).set("customerAccount",P)};return this.restService.get(this.GetCreditDebitMemoPDFFIleEndpoint,w)}GetCreditDebitMemoExportToExcel(t){let a=JSON.stringify(t);return this.restService.post(this.GetCreditDebitMemoExcelEndpoint,a)}GetInvoiceDetailPDForNYS(t,a,e){let u=JSON.stringify({InvoiceNumber:a,BolNumber:e});return this.restService.getPDF(this.GetInvoiceDetailPDFEndpoint,u)}static{this.\u0275fac=function(a){return new(a||n)(K(bt))}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var Nt=["MessageModal"],Tt=()=>({standalone:!0}),$=n=>({disabled:n}),Et=n=>({active:n});function Ft(n,s){n&1&&(o(0,"p"),l(1,"Loading credit/debit memos..."),i())}function It(n,s){n&1&&(o(0,"p"),l(1,"Exporting to Excel..."),i())}function Lt(n,s){n&1&&(o(0,"p"),l(1,"Saving..."),i())}function zt(n,s){if(n&1&&(o(0,"div",13)(1,"div",24),x(2,"mat-spinner",25),m(3,Ft,2,0,"p"),m(4,It,2,0,"p"),m(5,Lt,2,0,"p"),i()()),n&2){let t=d(2);r(3),p(t.isLoadingData?3:-1),r(),p(t.isLoadingExport?4:-1),r(),p(t.isLoadingSave?5:-1)}}function Gt(n,s){if(n&1){let t=f();o(0,"a",45),C("click",function(){g(t);let e=d(3);return _(e.desc("isDesc"))}),x(1,"span",46),i()}}
1function At(n,s){if(n&1){let t=f();o(0,"a",47),C("click",function(){g(t);let e=d(3);return _(e.desc("!isDesc"))}),x(1,"span",48),i()}}function Bt(n,s){n&1&&x(0,"mat-spinner",40)}function Rt(n,s){n&1&&(o(0,"span"),l(1,"Saving..."),i())}function Qt(n,s){n&1&&(o(0,"span"),l(1,"Save Sort"),i())}function Wt(n,s){n&1&&x(0,"mat-spinner",43),n&2&&M("diameter",30)}function $t(n,s){n&1&&x(0,"img",44)}function Ht(n,s){if(n&1){let t=f();o(0,"div",20)(1,"div",26)(2,"label",27),l(3,"Sort by:"),i(),o(4,"select",28),y("ngModelChange",function(e){g(t);let c=d(2);return D(c.sortOrder,e)||(c.sortOrder=e),_(e)}),C("ngModelChange",function(e){g(t);let c=d(2);return _(c.sort(e))}),o(5,"option",29),l(6,"Memo"),i(),o(7,"option",30),l(8,"Customer"),i(),o(9,"option",31),l(10,"Original Invoice#"),i(),o(11,"option",32),l(12,"Original Order#"),i(),o(13,"option",33),l(14,"PO#"),i(),o(15,"option",34),l(16,"Memo Date"),i(),o(17,"option",35),l(18,"Memo Quantity"),i(),o(19,"option",36),l(20,"Memo Amount"),i()(),m(21,Gt,2,0,"a",37),m(22,At,2,0,"a",38),o(23,"button",39),C("click",function(){g(t);let e=d(2);return _(e.savePageSortOrder())}),m(24,Bt,1,0,"mat-spinner",40),m(25,Rt,2,0,"span"),m(26,Qt,2,0,"span"),i(),o(27,"a",41),C("click",function(){g(t);let e=d(2);return _(e.creditDebitMemoExportToExcel())}),o(28,"div",42),m(29,Wt,1,1,"mat-spinner",43),m(30,$t,1,0,"img",44),i()()()()}if(n&2){let t=d(2);r(4),S("ngModel",t.sortOrder),r(17),p(t.isDesc==1?21:-1),r(),p(t.isDesc==-1?22:-1),r(),M("disabled",t.isLoadingSave),r(),p(t.isLoadingSave?24:-1),r(),p(t.isLoadingSave?25:-1),r(),p(t.isLoadingSave?-1:26),r(),H("disabled",t.isLoadingExport),r(2),p(t.isLoadingExport?29:-1),r(),p(t.isLoadingExport?-1:30)}}function Ut(n,s){if(n&1){let t=f();o(0,"li",63)(1,"a",65),C("click",function(){let e=g(t).$implicit,c=d(4);return _(c.setPage(e))}),l(2),i()()}if(n&2){let t=s.$implicit,a=d(4);M("ngClass",O(2,Et,a.pager.currentPage===t)),r(2),U(t)}}function jt(n,s){if(n&1){let t=f();o(0,"ul",59)(1,"li",60)(2,"a",61),C("click",function(){g(t);let e=d(3);return _(e.setPage(1))}),x(3,"span",62),i()(),T(4,Ut,3,4,"li",63,N),o(6,"li",64)(7,"a",65),C("click",function(){g(t);let e=d(3);return _(e.setPage(e.pager.totalPages))}),x(8,"span",66),i()()()}if(n&2){let t=d(3);r(),M("ngClass",O(2,$,t.pager.currentPage===1)),r(3),F(t.pager.pages),r(2),M("ngClass",O(4,$,t.pager.currentPage===t.pager.totalPages))}}function qt(n,s){if(n&1){let t=f();o(0,"div",21)(1,"div",49)(2,"div",50)(3,"div",51)(4,"label",52),l(5,"Items to Display:"),i(),o(6,"select",53),C("change",function(e){g(t);let c=d(2);return _(c.onSelect(e.target.value))}),y("ngModelChange",function(e){g(t);let c=d(2);return D(c.pageSize,e)||(c.pageSize=e),_(e)}
1),o(7,"option",54),l(8,"10"),i(),o(9,"option",55),l(10,"20"),i(),o(11,"option",55),l(12,"50"),i()()()(),o(13,"div",56),l(14),i(),o(15,"div",57)(16,"nav",58),m(17,jt,9,6,"ul",59),i()()()()}if(n&2){let t=d(2);r(6),S("ngModel",t.pageSize),r(),M("value",10),r(2),M("value",20),r(2),M("value",50),r(3),j("",t.totalInvoiceCount," items in ",t.totalInvoicePages," pages"),r(3),p(t.pager.pages&&t.pager.pages.length?17:-1)}}function Jt(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.memoNumber," ")}}function Yt(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.memoNumber," ")}}function Xt(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.customerName," ")}}function Kt(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.customerName," ")}}function Zt(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.invoiceNumber," ")}}function te(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.invoiceNumber," ")}}function ee(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.orderNumber," ")}}function ne(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.orderNumber," ")}}function ie(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.poNumber," ")}}function oe(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.poNumber," ")}}function ae(n,s){if(n&1&&(o(0,"span",75),l(1),E(2,"date"),i()),n&2){let t=d().$implicit;r(),h(" ",k(2,1,t.memoDate,"MM/dd/yyyy")," ")}}function re(n,s){if(n&1&&(o(0,"span"),l(1),E(2,"date"),i()),n&2){let t=d().$implicit;r(),h(" ",k(2,1,t.memoDate,"MM/dd/yyyy")," ")}}function ce(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.memoQuantity," ")}}function le(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.memoQuantity," ")}}function de(n,s){if(n&1&&(o(0,"span",75),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.totalMemoValue," ")}}function se(n,s){if(n&1&&(o(0,"span"),l(1),i()),n&2){let t=d().$implicit;r(),h(" ",t.totalMemoValue," ")}}function me(n,s){if(n&1){let t=f();o(0,"div",73)(1,"div",74)(2,"div",69)(3,"div",70)(4,"div",71)(5,"label"),l(6,"Memo"),i(),m(7,Jt,2,1,"span",75),m(8,Yt,2,1,"span"),o(9,"a",76),C("click",function(){let e=g(t).$implicit,c=d(3);return _(c.GetCreditDebitMemoPdf(e.memoNumber,e.customerAccount,e.dataSource))}),x(10,"span",77),i()(),o(11,"div",72)(12,"label"),l(13,"Customer"),i(),m(14,Xt,2,1,"span",75),m(15,Kt,2,1,"span"),i(),o(16,"div",71)(17,"label"),l(18,"Original Invoice#"),i(),m(19,Zt,2,1,"span",75),m(20,te,2,1,"span"),i(),o(21,"div",71)(22,"label"),l(23,"Original Order#"),i(),m(24,ee,2,1,"span",75),m(25,ne,2,1,"span"),i(),o(26,"div",71)(27,"label"),l(28,"PO#"),i(),m(29,ie,2,1,"span",75),m(30,oe,2,1,"span"),i(),o(31,"div",71)(32,"label"),l(33,"Memo Date"),i(),m(34,ae,3,4,"span",75),E(35,"date"),m(36,re,3,4,"span"),E(37,"date"),i(),o(38,"div",71)(39,"label"),l(40,"Memo Quantity"),i(),m(41,ce,2,1,"span",75),m(42,le,2,1,"span"),i(),o(43,"div",71)(44,"label"),l(45,"Memo Amount"),i(),m(46,de,2,1,"span",75),m(47,se,2,1,"span"),i()()()()()}if(n&2){let t=s.$implicit,a=s.$index,e=d(3);r(),H("altRow",a%2===0)("evenRow",a%2!==0),r(6),p(e.searchValue!==""&&(t.memoNumber&&t.memoNumber.toLowerCase().indexOf(e.searchValue)!==-1)?7:-1),r(),p(e.searchValue==""||!(t.memoNumber&&t.memoNumber.toLowerCase().indexOf(e.searchValue)!==-1)?8:-1),r(6),p(e.searchValue!==""&&(t.customerName&&t.customerName.toLowerCase().indexOf(e.searchValue)!==-1)?14:-1),r(),p(e.searchValue==""||!(t.customerName&&t.customerName.toLowerCase().indexOf(e.searchValue)!==-1)?15:-1),r(4),p(e.searchValue!==""&&(t.invoiceNumber&&t.invoiceNumber.toLowerCase().indexOf(e.searchValue)!==-1)?19:-1),r(),p(e.searchValue==""||!(t.invoiceNumber&&t.invoiceNumber.toLowerCase().indexOf(e.searchValue)!==-1)?20:-1),r(4),p(e.searchValue!==""&&(t.orderNumber&&t.orderNumber.toString().indexOf(e.searchValue)!==-1)?24:-1),r(),p(e.searchValue==""||!(t.orderNumber&&t.orderNumber.toString().indexOf(e.searchValue)!==-1)?25:-1),r(4),p(e.searchValue!==""&&(t.poNumber&&t.poNumber.toString().indexOf(e.searchValue)!==-1)?29:-1),r(),p(e.searchValue==""||!(t.poNumber&&t.poNumber.toString().indexOf(e.searchValue)!==-1)?30:-1),r(4),p(e.searchValue!==""&&(t.memoDate&&k(35,20,t.memoDate,"MM/dd
1/yyyy").indexOf(e.searchValue)!==-1)?34:-1),r(2),p(e.searchValue==""||!(t.memoDate&&k(37,23,t.memoDate,"MM/dd/yyyy").indexOf(e.searchValue)!==-1)?36:-1),r(5),p(e.searchValue!==""&&(t.memoQuantity&&t.memoQuantity.toString().indexOf(e.searchValue)!==-1)?41:-1),r(),p(e.searchValue==""||!(t.memoQuantity&&t.memoQuantity.toString().indexOf(e.searchValue)!==-1)?42:-1),r(4),p(e.searchValue!==""&&(t.totalMemoValue&&t.totalMemoValue.toString().indexOf(e.searchValue)!==-1)?46:-1),r(),p(e.searchValue==""||!(t.totalMemoValue&&t.totalMemoValue.toString().indexOf(e.searchValue)!==-1)?47:-1)}}function pe(n,s){if(n&1&&(o(0,"div",22)(1,"div",67)(2,"div",68)(3,"div",69)(4,"div",70)(5,"div",71)(6,"label"),l(7,"Memo"),i()(),o(8,"div",72)(9,"label"),l(10,"Customer"),i()(),o(11,"div",71)(12,"label"),l(13,"Original Invoice#"),i()(),o(14,"div",71)(15,"label"),l(16,"Original Order#"),i()(),o(17,"div",71)(18,"label"),l(19,"PO#"),i()(),o(20,"div",71)(21,"label"),l(22,"Memo Date"),i()(),o(23,"div",71)(24,"label"),l(25,"Memo Quantity"),i()(),o(26,"div",71)(27,"label"),l(28,"Memo Amount"),i()()()()()(),T(29,me,48,26,"div",73,N),i()),n&2){let t=d(2);r(29),F(t.pagedItems)}}function ge(n,s){if(n&1){let t=f();o(0,"li",63)(1,"a",65),C("click",function(){let e=g(t).$implicit,c=d(4);return _(c.setPage(e))}),l(2),i()()}if(n&2){let t=s.$implicit,a=d(4);M("ngClass",O(2,Et,a.pager.currentPage===t)),r(2),U(t)}}function _e(n,s){if(n&1){let t=f();o(0,"ul",59)(1,"li",60)(2,"a",61),C("click",function(){g(t);let e=d(3);return _(e.setPage(1))}),x(3,"span",62),i()(),T(4,ge,3,4,"li",63,N),o(6,"li",64)(7,"a",65),C("click",function(){g(t);let e=d(3);return _(e.setPage(e.pager.totalPages))}),x(8,"span",66),i()()()}if(n&2){let t=d(3);r(),M("ngClass",O(2,$,t.pager.currentPage===1)),r(3),F(t.pager.pages),r(2),M("ngClass",O(4,$,t.pager.currentPage===t.pager.totalPages))}}function Ce(n,s){if(n&1){let t=f();o(0,"div",23)(1,"div",49)(2,"div",50)(3,"div",51)(4,"label",52),l(5,"Items to Display:"),i(),o(6,"select",53),C("change",function(e){g(t);let c=d(2);return _(c.onSelect(e.target.value))}),y("ngModelChange",function(e){g(t);let c=d(2);return D(c.pageSize,e)||(c.pageSize=e),_(e)}
1),o(7,"option",54),l(8,"10"),i(),o(9,"option",55),l(10,"20"),i(),o(11,"option",55),l(12,"50"),i()()()(),o(13,"div",56),l(14),i(),o(15,"div",57)(16,"nav",58),m(17,_e,9,6,"ul",59),i()()()()}if(n&2){let t=d(2);r(6),S("ngModel",t.pageSize),r(),M("value",10),r(2),M("value",20),r(2),M("value",50),r(3),j("",t.totalInvoiceCount," items in ",t.totalInvoicePages," pages"),r(3),p(t.pager.pages&&t.pager.pages.length?17:-1)}}function he(n,s){if(n&1){let t=f();o(0,"div",1),m(1,zt,6,3,"div",13),o(2,"div",14)(3,"div",15)(4,"div",16)(5,"form",17)(6,"input",18),y("ngModelChange",function(e){g(t);let c=d();return D(c.query,e)||(c.query=e),_(e)}),C("input",function(e){g(t);let c=d();return _(c.updateFilter(e.target.value))}),i(),o(7,"button",19),C("click",function(e){g(t);let c=d();return _(c.updateFilter(e.target.value))}),o(8,"mat-icon"),l(9,"search"),i()()()(),m(10,Ht,31,11,"div",20),i()(),m(11,qt,18,7,"div",21),o(12,"div",14),m(13,pe,31,0,"div",22),i(),m(14,Ce,18,7,"div",23),i()}if(n&2){let t=d();r(),p(t.isLoadingData||t.isLoadingExport||t.isLoadingSave?1:-1),r(5),S("ngModel",t.query),M("ngModelOptions",at(7,Tt)),r(4),p(t.pager.totalPages>0?10:-1),r(),p(t.pager.totalPages>0?11:-1),r(2),p(t.pager.totalPages>0?13:-1),r(),p(t.pager.totalPages>0?14:-1)}}function ue(n,s){n&1&&(o(0,"div",2),l(1," There is no Credit/Debit Memos to display for this selection.... "),i())}var J=(()=>{class n{constructor(){this.globalLoginService=b(A),this.creditDebitMemoService=b(W),this.filterService=b(Pt),this.excelService=b(B),this.paginationService=b(R),this.modalService=b(xt),this.genericService=b(vt),this.cdr=b(rt),this.destroyRef=b(Z),this.temp=[],this.excelData=[],this.creditDebitMemo=[],this.searchResult=!0,this.isDesc=1,this.sortOrder="",this.showSearchDD=!1,this.query="",this.filteredList=[],this.arrowkeyLocation=-1,this.pageSize=10,this.searchValue="",this.pager={},this.highlightSize=!1,this.showNoItems=!1,this.showDefaultNotifications=!1,this.isLoadingData=!1,this.isLoadingExport=!1,this.isLoadingSave=!1,this.filterService.CreditDebitMemoSelectionChanged.pipe(Mt(this.destroyRef)).subscribe(t=>{this.filterService.showDates=!0,this.filterService.ShowHideDates.next(!0),this.filterService.showHeadingFilter=!1,this.filterService.ShowHideHeadingFilter.next(!0),this.stDt=this.datePipe.transform(this.filterService.startDate,"MM/dd/yyyy"),this.endDt=this.datePipe.transform(this.filterService.endDate,"MM/dd/yyyy"),this.pageSize=Number(localStorage.getItem("pageSize")),this.paginationService.pageSizeact=this.pageSize,this.getCustomers(),this.filterService.isReload?this.filterService.dateChanged?this.loadCreditDebitMemo(this.stDt,this.endDt):this.applyFilters(!1):this.applyFilters(!1)}),this.datePipe=new I("en-US"),this.stDt=new Date,this.endDt=new Date}ngOnInit(){let t=new Date;t=this.datePipe.transform(t,"MM/dd/yyyy h:mm:ss a"),this.dateStart=t}updateAuditLogsWithTime(t,a){this.genericService.updateAuditLogsWithTime(this.globalLoginService.loginUser,"Credit Debit Memo",t,a).subscribe(c=>{console.log(c)})}ngOnDestroy(){let t=new Date;t=this.datePipe.transform(t,"MM/dd/yyyy h:mm:ss a"),this.updateAuditLogsWithTime(this.dateStart,t)}getCustomers(){this.customers=[],this.customers.length=0,this.filterService.selectedCustomers.forEach(t=>{this.customers.indexOf(t)<0&&this.customers.push(t.id)}),this.creditDebitMemoService.GetPageSortOrder(this.globalLoginService.loginUser,4).subscribe(t=>{this.isDesc=t.sortOrder,this.sortOrder=t.sortColumn})}DisplayMessageModal(t){this.resultHeading="Information",this.resultMessage=t,Ot.getOrCreateInstance(this.MessageModal.nativeElement).show()}closeMessageModal(){this.resultHeading="",this.resultMessage="",this.comment=""}loadCreditDebitMemo(t,a){console.log("creditDebitMemo Component loadcreditDebitMemo"),this.isLoadingData=!0,this.cdr.detectChanges(),this.creditDebitMemoService.GetCreditDebitMemo(this.globalLoginService.loginUser,this.customers,t,a,this.filterService.creditDebitPoNum,this.filterService.creditDebitMemoNum).subscribe(e=>{if(e!=null){e.length==0?(this.showNoItems=!0,this.divhide=!0,this.filterService.showHeadingFilter=!1,this.filterService.ShowHideHeadingFilter.next(!0)):(this.showNoItems=!1,this.divhide=!1,this.filterService.showHeadingFilter=!0,this.filterService.ShowHideHeadingFilter.next(!0));let c=e.filter(u=>u.memoNumber!="Not posted");this.getCreditDebitMemo=c,this.temp=[...c],this.creditDebitMemo=c,this.filterService.results=c,this.paginationService.pageSizeact=this.pageSize,this.setPage(1),this.filterService.filterDataOnCompanyChange=!0,this.sort(this.sortOrder)}this.isLoadingData=!1,this.cdr.detectChanges(),console.log("GetcreditDebitMemo")},e=>{console.error("Data loading error:",e),this.isLoadingData=!1,this.cdr.detectChanges()})}reLoad(){this.sortOrder="",this.updateFilter(""),(this.filterService.isReload=!0)&&(this.filterService.dateChanged?(this.stDt=this.datePipe.transform(this.filterService.startDate,"MM/dd
1/yyyy"),this.endDt=this.datePipe.transform(this.filterService.endDate,"MM/dd/yyyy"),this.loadCreditDebitMemo(this.stDt,this.endDt),this.pageId=this.filterService.pageId,this.filterService.isShadowing==!0?this.showDefaultNotifications=!1:this.showDefaultNotifications=this.filterService.invoiceshowDefaultNotifications):this.filterService.showInvoiceStatusFilter?this.loadCreditDebitMemo(this.stDt,this.endDt):this.applyFilters(!1))}applyFilters(t){let a=[];if(t)a=this.getCreditDebitMemo;else{let e=[];e=this.creditDebitMemo.filter(c=>this.filterService.selectedCustomers.some(u=>u.id==c.customerAccount)),e.length>0?(this.divhide=!1,a=e):this.divhide=!0}this.getCreditDebitMemo=a,this.temp=a,this.pager=[],this.setPage(1)}updateFilter(t){this.showNoItems=!1;let a=t.trim().toLowerCase();this.searchValue=a;let e=[];t.lenght<=0&&(this.getCreditDebitMemo=this.temp,this.onSelect(this.paginationService.pageSizeact));for(let c of this.temp){let u,P;P=(c.customerPO?c.customerPO.toLowerCase().indexOf(a)!==-1:!1)||(c.customerName?c.customerName.toLowerCase().indexOf(a)!==-1:!1)||(c.invoiceNumber?c.invoiceNumber.toLowerCase().indexOf(a)!==-1:!1)||(c.orderNumber?c.orderNumber.toString().indexOf(a)!==-1:!1)||(c.memoNumber?c.memoNumber.toLowerCase().indexOf(a)!==-1:!1)||(c.memoQuantity?c.memoQuantity.toString().indexOf(a)!==-1:!1)||(c.totalMemoValue?c.totalMemoValue.toString().indexOf(a)!==-1:!1)||(c.memoDate?this.datePipe.transform(c.memoDate,"MM/dd/yyyy").indexOf(a)!==-1:!1),P&&(u=c,e.push(u))}this.getCreditDebitMemo=e,this.onSelect(this.paginationService.pageSizeact),this.setPage(1)}creditDebitMemoExportToExcel(){console.log("CreditDebitMemo Component CreditDebitMemoExportToExcel"),this.isLoadingExport=!0,this.cdr.detectChanges(),this.creditDebitMemoService.GetCreditDebitMemoExportToExcel(this.getCreditDebitMemo).subscribe(t=>{let a=new Uint8Array(atob(t).split("").map(c=>c.charCodeAt(0)));var e=new Blob([a],{type:".xlsx"});this.excelService.saveAsExcelFile(e,"CreditDebitMemo"),this.isLoadingExport=!1,this.cdr.detectChanges()},t=>{console.error("Export error:",t),this.isLoadingExport=!1,this.cdr.detectChanges()})}setPage(t){t<1||(this.pager=this.paginationService.getPager(this.getCreditDebitMemo.length,t),this.pagedItems=this.getCreditDebitMemo.slice(this.pager.startIndex,this.pager.endIndex+1),this.totalInvoicePages=this.pager.totalPages,this.totalInvoiceCount=this.pager.totalItems)}onSelect(t){this.pageSize=Number(t),this.paginationService.pageSizeact=this.pageSize,this.setPage(1)}sort(t){this.sortedBy=t;let a=this.isDesc;this.isDesc=a,this.getCreditDebitMemo.sort(function(e,c){return e[t]<c[t]?-1*a:e[t]>c[t]?1*a:0}),this.setPage(1)}desc(t){t==="isDesc"?this.isDesc=-1:this.isDesc=1,this.sort(this.sortedBy)}GetCreditDebitMemoPdf(t,a,e){console.log("CreditDebitMemo Component getOriginalPDF"),this.isLoadingSave=!0,this.cdr.detectChanges();let c="",u="",P="Credit Debit Memo";e=="D365"?(u="document-storage",c="CDMemos/CDM_"+a+"_"+t+".PDF"):(u="document-storage-legacy",c="CDMemos/CDM_"+a+"_"+t+".PDF"),this.creditDebitMemoService.GetCreditDebitMemoPDFFIle(P,t,c,u,this.globalLoginService.loginUser,a).subscribe(v=>{if(v!="PDFNOTFOUND"){let kt=new Uint8Array(atob(v).split("").map(Vt=>Vt.charCodeAt(0)));var w=new Blob([kt.buffer],{type:"application/pdf"});this.excelService.saveAsPDFFile(w,t)}else this.comment="The requested credit/debit memo will be emailed to you. Thank y
1ou.",this.DisplayMessageModal(this.comment);this.isLoadingSave=!1,this.cdr.detectChanges()},v=>{console.error("PDF loading error:",v),this.isLoadingSave=!1,this.cdr.detectChanges()})}savePageSortOrder(){this.isLoadingSave=!0,this.cdr.detectChanges(),this.genericService.savePageSortOrder(this.globalLoginService.loginUser,4,this.sortOrder,this.isDesc).subscribe(t=>{console.log(t),this.isLoadingSave=!1,this.cdr.detectChanges()},t=>{console.log(t),this.isLoadingSave=!1,this.cdr.detectChanges()})}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=tt({type:n,selectors:[["app-creditDebitMemo"]],viewQuery:function(a,e){if(a&1&&nt(Nt,5),a&2){let c;it(c=ot())&&(e.MessageModal=c.first)}},decls:20,vars:4,consts:[["MessageModal",""],["id","creditDebit",1,"row"],["id","noDataDisplay",1,"Msg"],["id","MessageModal","tabindex","-1","role","dialog","aria-labelledby","MessageModalLabel","aria-hidden","true",1,"modal","fade",3,"clickElsewhere"],["role","document",1,"modal-dialog",2,"max-width","500px"],[1,"modal-content"],[1,"modal-header","adminModal"],["id","newAddressModalLabel",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",2,"text-align","center","font-size","medium"],[1,"w-100"],[1,"modal-footer","adminModal"],[1,"loading-overlay"],[1,"col-12"],[1,"row","sort-controls","justify-content-between","align-items-center"],[1,"col-12","col-md-5","col-lg-4"],["method","get",1,"search-form"],["type","text","placeholder","Search Open Orders...",1,"col-lg-11","text-input","flex-auto",3,"ngModelChange","input","ngModel","ngModelOptions"],["mat-mini-fab","","type","button",1,"search-btn","mat-elevation-z0","text-muted",3,"click"],[1,"col-12","col-md-7","col-lg-8","d-flex","justify-content-end","align-items-center"],[1,"col-12","align-crdtdbt-bar"],[1,"col-12","card-container","tabular",2,"padding","0"],[1,"col-12",2,"padding-top","15px"],[1,"loading-content"],["diameter","50"],[1,"d-flex","align-items-center","flex-nowrap",2,"white-space","nowrap"],["for","sort",1,"mb-0","mr-1",2,"flex-shrink","0"],["id","sort",1,"form-control","form-control-sm","mr-1",2,"min-width","120px",3,"ngModelChange","ngModel"],["selected","","value","memoNumber"],["selected","","value","customerName"],["value","invoiceNumber"],["value","orderNumber"],["value","customerPO"],["value","memoDate"],["value","memoQuantity"],["value","totalMemoValue"],["title","Sort Desc",1,"sort","mr-1",2,"flex-shrink","0"],["title","Sort Asc",1,"sort","mr-1",2,"flex-shrink","0"],["type","button",1,"btn","btn-light","btn-sm","mr-1",2,"border","1px solid #ccc !important","flex-shrink","0","font-size","12px","padding","4px 8px",3,"click","disabled"],["diameter","16",2,"display","inline-block","margin-right","4px"],["href","javascript:void(0);","title","exporttoexcel",1,"download","file","xls",2,"position","relative","display","inline-block","flex-shrink","0",3,"click"],[1,"export-button-content"],[1,"export-spinner",3,"diameter"],["src","../../../assets/images/microsoftexcel.
1svg","width","40","alt",""],["title","Sort Desc",1,"sort","mr-1",2,"flex-shrink","0",3,"click"],["aria-hidden","true",1,"oi","oi-sort-descending"],["title","Sort Asc",1,"sort","mr-1",2,"flex-shrink","0",3,"click"],["aria-hidden","true",1,"oi","oi-sort-ascending"],[1,"row","align-items-center","pagination-container"],[1,"col-5","col-md-auto","pagesize"],[1,"form-inline"],["for","pagesize"],["id","pagesize",1,"form-control","form-control-sm",3,"change","ngModelChange","ngModel"],["selected","",3,"value"],[3,"value"],[1,"col-7","col-md","pagecount"],[1,"col-12","col-md-auto"],["aria-label","Pagination"],[1,"pagination","pagination-sm","flex-wrap"],[1,"page-item","disabled",3,"ngClass"],["tabindex","-1",1,"page-link",3,"click"],[1,"oi","oi-chevron-left"],[1,"page-item","active",3,"ngClass"],[1,"page-item",3,"ngClass"],[1,"page-link",3,"click"],[1,"oi","oi-chevron-right"],[1,"card","vlabel","tabularheader"],[1,"card-body","row","evenRow"],[1,"col"],[1,"row","no-gutters"],[1,"col-6","col-md-4","col-lg"],[1,"col-6","col-md-4","col-lg-2"],[1,"card","hlabel"],[1,"card-body","row"],[1,"searchTermHi"],["href","javascript:void(0);",3,"click"],["placement","right","ngbTooltip","credit Debit Memo PDF","aria-hidden","true",1,"oi","oi-document",2,"font-size","medium"]],template:function(a,e){a&1&&(x(0,"br"),m(1,he,15,8,"div",1),m(2,ue,2,0,"div",2),o(3,"div",3,0),C("clickElsewhere",function(){return e.closeMessageModal()}),o(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5",7),l(9),i(),o(10,"button",8),C("click",function(){return e.closeMessageModal()}),o(11,"span",9),l(12,"\xD7"),i()()(),o(13,"div",10)(14,"div",11),l(15,"\xA0"),i(),l(16),o(17,"div",11),l(18,"\xA0"),i()(),x(19,"div",12),i()()()),a&2&&(r(),p(e.divhide==!1?1:-1),r(),p(e.showNoItems==!0?2:-1),r(7),h("",e.resultHeading," Message"),r(7),h(" ",e.resultMessage," "))},dependencies:[L,ct,z,gt,Ct,ht,lt,_t,dt,st,pt,mt,G,ft,Q,wt,St,Dt,I],styles:[".h-100[_ngcontent-%COMP%]{height:100%!important}.w-100[_ngcontent-%COMP%]{width:100%!important}.mw-100[_ngcontent-%COMP%]{max-width:100%}.fw-300[_ngcontent-%COMP%]{font-weight:300}.fw-400[_ngcontent-%COMP%]{font-weight:400}.fw-500[_ngcontent-%COMP%]{font-weight:500}.lh[_ngcontent-%COMP%]{line-height:27px}.theme-container[_ngcontent-%COMP%]{max-width:1300px;margin:0 auto;width:100%}.light-block.mat-card[_ngcontent-%COMP%]{background:#00000008!important;box-shadow:none!important}.transition[_ngcontent-%COMP%]{-webkit-transition:.3s;-moz-transition:.3s;-ms-transition:.3s;transition:.3s}.text-truncate[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden!important}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.divider[_ngcontent-%COMP%]{border-top:1px solid rgba(204,204,204,.6)}.mat-icon-button[_ngcontent-%COMP%] .mat-icon.mat-icon-xs[_ngcontent-%COMP%], .mat-icon.mat-icon-xs[_ngcontent-%COMP%]{font-size:14px;line-height:14px;height:14px;width:14px;vertical-align:middle}.mat-icon-button[_ngcontent-%COMP%] .mat-icon.mat-icon-sm[_ngcontent-%COMP%], .mat-icon.mat-icon-sm[_ngcontent-%COMP%], .mat-nav-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-icon.mat-icon-sm[_ngcontent-%COMP%]{font-size:18px;line-height:18px;height:18px;width:18px;vertical-align:middle}.mat-icon-button[_ngcontent-%COMP%] .mat-icon.mat-icon-lg[_ngcontent-%COMP%], .mat-icon.mat-icon-lg[_ngcontent-%COMP%]{font-size:36px;line-height:36px;height:36px;width:36px;vertical-align:middle}.mat-icon-button[_ngcontent-%COMP%] .mat-icon.mat-icon-xlg[_ngcontent-%COMP%], .mat-icon.mat-icon-xlg[_ngcontent-%COMP%]{font-size:48px;line-height:48px;height:48px;width:48px;vertical-align:middle}.mat-icon.caret[_ngcontent-%COMP%]{width:14px}.mat-button.flex-row-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.mat-button-wrapper[_ngcontent-%COMP%]{pointer-events:none}.mat-list.reviews[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{align-items:start}.mat-step-text-label[_ngcontent-%COMP%]{text-transform:uppercase}.mat-tab-label-content[_ngcontent-%COMP%]{font-size:16px}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{border-bottom-color:#0000001f}.filter-sidenav[_ngcontent-%COMP%] .mat-drawer-inner-container[_ngcontent-%COMP%]{height:auto;padding:2px;box-sizing:border-box}.filter-sidenav[_ngcontent-%COMP%] .mat-drawer-inner-container[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{border-radius:0!important}.app-dropdown.mat-menu-panel[_ngcontent-%COMP%]{min-width:60px}.app-dropdown[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{height:36px;line-height:36px;font-size:14px}.account-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:2px}.app-dropdown.account[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%]{padding:0}.app-dropdown.account[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{padding:16px}.app-dropdown.account[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:16px;border-radius:3px}.app-dropdown.account[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#fbc02d}
1.categories-dropdown.mat-menu-panel[_ngcontent-%COMP%]{max-height:350px}.categories-dropdown[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{height:24px;line-height:24px;font-size:14px}.sub-category[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:30px}.sub-category[_ngcontent-%COMP%] .sub-category[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:50px}.p-0[_ngcontent-%COMP%]{padding:0!important}.p-1[_ngcontent-%COMP%]{padding:10px!important}.p-2[_ngcontent-%COMP%]{padding:20px!important}.p-3[_ngcontent-%COMP%]{padding:30px!important}.py-1[_ngcontent-%COMP%]{padding:10px 0!important}.py-2[_ngcontent-%COMP%]{padding:20px 0!important}.py-3[_ngcontent-%COMP%]{padding:30px 0!important}.py-4[_ngcontent-%COMP%]{padding:40px 0!important}.py-5[_ngcontent-%COMP%]{padding:50px 0!important}.px-1[_ngcontent-%COMP%]{padding:0 10px!important}.px-2[_ngcontent-%COMP%]{padding:0 20px!important}.px-3[_ngcontent-%COMP%]{padding:0 30px!important}.px-4[_ngcontent-%COMP%]{padding:0 40px!important}.px-5[_ngcontent-%COMP%]{padding:0 50px!important}.pl-3[_ngcontent-%COMP%]{padding-left:30px}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-1[_ngcontent-%COMP%]{margin-top:10px!important}.mt-2[_ngcontent-%COMP%]{margin-top:20px!important}.mt-3[_ngcontent-%COMP%]{margin-top:30px!important}.mr-1[_ngcontent-%COMP%]{margin-right:10px!important}.d-block[_ngcontent-%COMP%]{display:block}.info-bar[_ngcontent-%COMP%]{margin-top:30px}.info-bar[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:100px}.info-bar[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin-left:10px}.info-bar[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:500}.info-bar[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px}.social-icon[_ngcontent-%COMP%]{width:48px;height:48px;cursor:pointer;fill:#8f8f8f;outline:none}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%]{height:32px;font-size:13px}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .sidenav-toggle[_ngcontent-%COMP%]{height:31px;line-height:31px;min-width:24px;padding:0;border-radius:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%]{margin-right:-16px;text-transform:uppercase}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;font-weight:400;font-size:13px;line-height:31px;padding:0 10px;min-width:70px;border-radius:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%] a.mobile-menu-icon[_ngcontent-%COMP%]{min-width:36px}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%] .mat-icon.more[_ngcontent-%COMP%]{height:28px}.flag-menu-title[_ngcontent-%COMP%]{vertical-align:top!important;margin-left:3px}.top-menu-dropdown[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%]{padding:6px 14px;font-size:13px}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-list[_ngcontent-%COMP%], .cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70px;margin-left:10px}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-text[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:13px;font-weight:400}.cart-dropdown.mat-menu-panel[_ngcontent-%COMP%] .cart-dropdown-footer[_ngcontent-%COMP%]{font-size:14px}.app-menu-panel.mat-menu-panel[_ngcontent-%COMP%]{min-width:60px}.app-menu-panel.mat-menu-panel[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%]:not(:empty){padding:0}.app-menu-panel.mat-menu-panel[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;text-transform:uppercase}.app-menu-panel.mat-menu-panel[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%] .mat-badge-small.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:8px}.app-menu-panel.mat-menu-panel.lang[_ngcontent-%COMP%]{min-width:41px}.app-menu-panel.mat-menu-panel.lang[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{line-height:36px;height:36px;padding:0}.app-menu-panel.mat-menu-panel.lang[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;margin:0 auto}.logo-toolbar.mat-toolbar-row[_ngcontent-%COMP%]{height:64px}.logo[_ngcontent-%COMP%]{font-size:28px;font-weight:900;text-transform:uppercase;text-decoration:none;color:inherit}.search-form[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden}.search-form[_ngcontent-%COMP%] .categories[_ngcontent-%COMP%]{height:40px;width:180px;border-radius:0}.search-form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{border:0;outline:none;padding:0 34px 0 12px;border-left:1px solid #ccc}.search-form[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]{margin-left:-20px;background:#fff!important;box-shadow:none!important;border:none!important}.search-dropdown.mat-menu-panel[_ngcontent-%COMP%]{border-radius:26px;max-width:100%;min-height:auto}.search-dropdown.mat-menu-panel[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%]{padding:0}.top-cart[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;font-weight:400;line-height:1.2}.top-navbar.mat-toolbar[_ngcontent-%COMP%]{height:48px;padding:32px}.top-navbar.mat-toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-width:70px;border-radius:0;padding:6px 16px}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%]{left:0!important;width:100%}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%] .mat-menu-panel[_ngcontent-%COMP%]{width:100%;max-width:none;border-radius:0}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%] .mat-menu-panel[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%]{padding:0}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%] .mega-menu-widget[_ngcontent-%COMP%]{position:relative}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%] .mega-menu-widget[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;font-weight:400}.cdk-overlay-pane.mega-menu-pane[_ngcontent-%COMP%] .mega-menu-widget[_ngcontent-%COMP%] .mat-chip-list[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:10px}button.swipe-arrow[_ngcontent-%COMP%]{position:absolute;top:50%;margin-top:-22px;z-index:10;background-image:none}.swiper-pagination.white[_ngcontent-%COMP%] .swiper-pagination-bullet[_ngcontent-%COMP%]{background:#fff}.swiper-pagination-bullet-active[_ngcontent-%COMP%]{width:12px;height:12px;vertical-align:-2px}.swiper-button-prev[_ngcontent-%COMP%]:after, .swiper-container-rtl[_ng
1content-%COMP%] .swiper-button-next[_ngcontent-%COMP%]:after, .swiper-button-next[_ngcontent-%COMP%]:after, .swiper-container-rtl[_ngcontent-%COMP%] .swiper-button-prev[_ngcontent-%COMP%]:after{content:none}.product-item[_ngcontent-%COMP%]{position:relative}.product-item[_ngcontent-%COMP%] .mat-chip-list[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px}.product-item[_ngcontent-%COMP%] .mat-chip-list.list-view[_ngcontent-%COMP%]{left:10px}.product-item[_ngcontent-%COMP%] .image-link[_ngcontent-%COMP%]{display:block}.product-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:12px}.product-item[_ngcontent-%COMP%] .category[_ngcontent-%COMP%]{margin-bottom:4px}.product-item[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;color:inherit;text-decoration:none;font-weight:500;font-size:18px}.product-item[_ngcontent-%COMP%] .prices[_ngcontent-%COMP%]{margin:12px 0}.product-item[_ngcontent-%COMP%] .prices[_ngcontent-%COMP%] .old-price[_ngcontent-%COMP%]{text-decoration:line-through;height:15px}.product-item[_ngcontent-%COMP%] .prices[_ngcontent-%COMP%] .new-price[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.product-item[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{margin-top:18px}.old-price[_ngcontent-%COMP%]{text-decoration:line-through}.back-to-top[_ngcontent-%COMP%]{position:fixed;width:40px;height:40px;cursor:pointer;z-index:999999;right:20px;bottom:20px;opacity:.5;color:#fff;background-color:#000000bf;border-radius:4px}.back-to-top[_ngcontent-%COMP%]:hover{opacity:.9}@media(max-width:575px){.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%]{padding:32px}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%]{margin-right:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-width:56px}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .sidenav-toggle[_ngcontent-%COMP%]{min-width:52px}.search-form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{width:160px}.search-form[_ngcontent-%COMP%] .categories[_ngcontent-%COMP%]{width:140px}}@media(min-width:576px)and (max-width:767px){.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%]{padding:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%]{margin-right:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .sidenav-toggle[_ngcontent-%COMP%]{min-width:52px}}@media(min-width:768px)and (max-width:991px){.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%]{padding:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .top-menu[_ngcontent-%COMP%]{margin-right:0}.top-toolbar.mat-toolbar-row[_ngcontent-%COMP%] .sidenav-toggle[_ngcontent-%COMP%]{min-width:52px}}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;height:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-button{width:0px;height:0px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#e1e1e1;border:0px none #ffffff;border-radius:0}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#ccc}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#666;border:0px none #ffffff;border-radius:0}[_ngcontent-%COMP%]::-webkit-scrollbar-track:hover{background:#666}[_ngcontent-%COMP%]::-webkit-scrollbar-track:active{background:#333}[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background:transparent}.ps[_ngcontent-%COMP%]{-ms-touch-action:auto;touch-action:auto;overflow:hidden!important;-ms-overflow-style:none;position:relative}.ps__rail-x[_ngcontent-%COMP%]{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:7px;bottom:0;position:absolute}.ps__rail-y[_ngcontent-%COMP%]{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:7px;right:0;left:auto!important;position:absolute}.ps--active-x[_ngcontent-%COMP%] > .ps__rail-x[_ngcontent-%COMP%], .ps--active-y[_ngcontent-%COMP%] > .ps__rail-y[_ngcontent-%COMP%]{display:block;background-color:transparent}.ps[_ngcontent-%COMP%]:hover > .ps__rail-x[_ngcontent-%COMP%], .ps[_ngcontent-%COMP%]:hover > .ps__rail-y[_ngcontent-%COMP%], .ps--focus[_ngcontent-%COMP%] > .ps__rail-x[_ngcontent-%COMP%], .ps--focus[_ngcontent-%COMP%] > .ps__rail-y[_ngcontent-%COMP%], .ps--scrolling-x[_ngcontent-%COMP%] > .ps__rail-x[_ngcontent-%COMP%], .ps--scrolling-y[_ngcontent-%COMP%] > .ps__rail-y[_ngcontent-%COMP%]{opacity:.6}.ps__rail-x[_ngcontent-%COMP%]:hover, .ps__rail-y[_ngcontent-%COMP%]:hover, .ps__rail-x[_ngcontent-%COMP%]:focus, .ps__rail-y[_ngcontent-%COMP%]:focus{background-color:#eee;opacity:.9}.ps__thumb-x[_ngcontent-%COMP%]{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:4px;bottom:1px;position:absolute}.ps__thumb-y[_ngcontent-%COMP%]{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:4px;right:1px;position:absolute}.ps__rail-x[_ngcontent-%COMP%]:hover > .ps__thumb-x[_ngcontent-%COMP%], .ps__rail-x[_ngcontent-%COMP%]:focus > .ps__thumb-x[_ngcontent-%COMP%]{background-color:#999;height:7px}.ps__rail-y[_ngcontent-%COMP%]:hover > .ps__thumb-y[_ngcontent-%COMP%], .ps__rail-y[_ngcontent-%COMP%]:focus > .ps__thumb-y[_ngcontent-%COMP%]{background-color:#999;width:7px}@supports (-ms-overflow-style: none){.ps[_ngcontent-%COMP%]{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps[_ngcontent-%COMP%]{overflow:auto!important}}@media(min-width:1380px){.theme-container[_ngcontent-%COMP%]{max-width:94%}}@media(min-width:1920px){.theme-container[_ngcontent-%COMP%]{max-width:93%}}.sidenav[_ngcontent-%COMP%] .mat-drawer-inner-container[_ngcontent-%COMP%]{overflow-x:hidden}#dashnavtoggle[_ngcontent-%COMP%], #filterstoggle[_ngcontent-%COMP%]{text-decoration:none;padding:5px}@media(min-width:992px){#dashnav[_ngcontent-%COMP%], #filter-items[_ngcontent-%COMP%], #sheetfilter-items[_ngcontent-%COMP%]{display:block}}.loading-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#050505cc;display:flex;justify-content:center;align-items:center;z-index:9999}.loading-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:20px}.loading-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:16px;font-size:16px;color:#fff;font-weight:500}.exporttoexcel.disabled[_ngcontent-%COMP%], .btn.disabled.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.exporttoexcel[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%], button[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}@media screen and (max-width:812px){.open-orders-alignment[_ngcontent-%COMP%]{margin-bottom:41px!important}.align-buttons[_ngcontent-%COMP%]{margin-left:61px!important}}
1@media screen and (min-width:1024px)and (max-width:1366px){.align-openordrs-bar[_ngcontent-%COMP%]{margin-top:37px!important}}input[_ngcontent-%COMP%]:invalid{box-shadow:0 0 5px 1px red}input[_ngcontent-%COMP%]:focus:invalid{outline:none}button[_ngcontent-%COMP%]:disabled{cursor:auto}.bbal[_ngcontent-%COMP%]{cursor:pointer}.tonsShipWidth[_ngcontent-%COMP%]{width:30%}a.disabled[_ngcontent-%COMP%]{color:gray;cursor:auto;text-decoration:underline}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{width:110px}.mat-form-field-label[_ngcontent-%COMP%]{color:#000!important}.mat-form-field-underline[_ngcontent-%COMP%], .mat-form-field-ripple[_ngcontent-%COMP%]{background-color:#006325!important}.mat-select-arrow[_ngcontent-%COMP%]{color:#006325!important}.option.mat-selected[_ngcontent-%COMP%]:not(.mat-option-disabled){color:#006325!important}.mat-primary[_ngcontent-%COMP%] .mat-option.mat-selected[_ngcontent-%COMP%]:not(.mat-option-disabled){color:#000!important}.container[_ngcontent-%COMP%], .pointer[_ngcontent-%COMP%]{cursor:pointer}.sort-settings[_ngcontent-%COMP%]{padding-left:3px!important}.label-issue[_ngcontent-%COMP%]{margin-top:10px;margin-right:10px}.dropdown-select[_ngcontent-%COMP%]{margin-top:5px;width:fit-content;font-weight:700}#content[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%]{margin:10px 21px 0}@media(max-width:767px){#content[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%]{margin:0 5px!important;max-width:unset;flex:0 0 calc(100% - 10px);padding-left:5px;padding-right:5px}}.bs-popover-top[_ngcontent-%COMP%], .bs-popover-auto[x-placement^=top][_ngcontent-%COMP%]{width:-webkit-fill-available}.popover-body[_ngcontent-%COMP%]{margin-left:12px;width:265px}.hyperlink[_ngcontent-%COMP%]{color:#0000008c;text-decoration:underline}.form-inline[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{position:relative;flex-shrink:0;margin-top:3px;margin-right:.25rem;margin-left:0}.checkboxtext[_ngcontent-%COMP%]{font-size:110%;display:inline}.modal-content-colmns[_ngcontent-%COMP%]{width:796px!important;margin-left:-112px!important}.btn-right[_ngcontent-%COMP%]{margin-left:88%}.checkbox-val[_ngcontent-%COMP%]{color:red}.select-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-left:13px}.search-form[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden;border:.5px solid!important;color:#006325;max-height:37px}.search-form[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]{float:right;border:none!important;outline:none!important;box-shadow:none!important}.search-form[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]:focus, .search-form[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]:active, .search-form[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]:hover{border:none!important;outline:none!important}.search-form[_ngcontent-%COMP%] button.mat-mini-fab.search-btn[_ngcontent-%COMP%]{border:none!important;outline:none!important;box-shadow:none!important}.search-form[_ngcontent-%COMP%] button.mat-mini-fab.search-btn[_ngcontent-%COMP%]:focus, .search-form[_ngcontent-%COMP%] button.mat-mini-fab.search-btn[_ngcontent-%COMP%]:active, .search-form[_ngcontent-%COMP%] button.mat-mini-fab.search-btn[_ngcontent-%COMP%]:hover{border:none!important;outline:none!important}.btn-light[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.table-m-desc[_ngcontent-%COMP%]{margin-left:5px;margin-right:7px}.items-display[_ngcontent-%COMP%]{margin-right:7px}.search-bar[_ngcontent-%COMP%]{width:inherit}.email-icon[_ngcontent-%COMP%]{margin-top:10px!important;color:#006325!important}@media(max-width:768px){.form-inline-save-def[_ngcontent-%COMP%]{margin-top:19px}.pagecount[_ngcontent-%COMP%]{text-align:center!important}}.flex-wrap[_ngcontent-%COMP%]{margin:0 -5px!important}.text-input[_ngcontent-%COMP%]{height:36px}.dflt-save-btn[_ngcontent-%COMP%]{width:130px;height:32px}.badge-secondary[_ngcontent-%COMP%]{font-size:12px}.align-badges[_ngcontent-%COMP%]{margin-right:8%;margin-top:6px}.x-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}.oi-sort-descending[_ngcontent-%COMP%], .oi-sort-ascending[_ngcontent-%COMP%]{font-size:21px} .tooltip-inner{background-color:#006325} .popover-header{color:#fff!important;text-align:center!important;background-color:#006325!important}.oi[_ngcontent-%COMP%]{color:#006325!important}"]})}}return n})();var Me=[{path:"",component:J}],en=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=et({type:n})}static{this.\u0275inj=X({providers:[W,R,B,A],imports:[L,q.forChild(Me),ut,z,G,Q,J,q]})}}return n})();export{en as CreditDebitMemoModule};
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.