dealpostools 2.5.8 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"dealpostools","version":"2.5.8"}
1
+ {"name":"dealpostools","version":"2.5.9"}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[135],{1135:(E,d,i)=>{i.r(d),i.d(d,{PaymentBillComponent:()=>k});var m=i(6814),t=i(5879),h=i(4387),v=i(2596),u=i(9887),f=i(5986),p=i(6223),Z=i(4664),b=i(8017),y=i(2787);let _=(()=>{var a;class s{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(b.O),this.migrateConfigService=(0,t.f3M)(y.o)}getImageUrls$(e={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,Z.w)(n=>(e.RowCount=n.RowCount,this.http.post(`${this.domain}/api/image/SupplierInvoicePaymentImage`,e))))}migrate(e){return this.http.post(`${this.domain}/api/cloudflare/migrate/SupplierInvoicePaymentImage`,{Images:e})}migrateAsync(e){const l={...e,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/SupplierInvoicePaymentImage",l)}}return(a=s).\u0275fac=function(e){return new(e||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac}),s})();var c=i(7081),T=i(5619),C=i(7398),A=i(2181),B=i(6328),I=i(2425),x=i(7700),S=i(6493),M=i(8745),N=i(583),$=i(3988);function U(a,s){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",17),t.NdJ("click",function(){t.CHM(o);const n=t.oxw().ngIf,l=t.oxw();return t.KtG(l.onMigrate(n))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function J(a,s){if(1&a){const o=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(o);const n=t.oxw(2);return t.KtG(n.onMigrateAsync())}),t._uU(1," Migrate Async "),t.qZA()}}function F(a,s){if(1&a&&(t.ynx(0),t.YNc(1,U,3,0,"ng-container",15),t.YNc(2,J,2,0,"ng-template",null,16,t.W1O),t.BQk()),2&a){const o=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.totalSelected()>0)("ngIfElse",o)}}function Q(a,s){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){const r=t.CHM(o).ngIf,g=t.oxw();return t.KtG(g.onSelectAll(n,r))}),t.qZA(),t.BQk()}}function L(a,s){1&a&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function R(a,s){if(1&a&&(t.ynx(0),t.TgZ(1,"div",23)(2,"span",24),t._uU(3),t.qZA()(),t.BQk()),2&a){const o=t.oxw(2).$implicit;t.xp6(3),t.Oqu(o.Message)}}function w(a,s){if(1&a&&(t.TgZ(0,"a",21),t._uU(1),t.qZA()),2&a){const o=t.oxw(2).$implicit;t.Q6J("href",o.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",o.CloudflareURL," ")}}function O(a,s){if(1&a&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,R,4,1,"ng-container",15),t.YNc(3,w,2,2,"ng-template",null,22,t.W1O),t.qZA(),t.BQk()),2&a){const o=t.MAs(4),e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.Message)("ngIfElse",o)}}function Y(a,s){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",20),t.NdJ("ngModelChange",function(n){const r=t.CHM(o).$implicit;return t.KtG(r.selected=n)})("ngModelChange",function(){const l=t.CHM(o).ngForOf,r=t.oxw();return t.KtG(r.onSelect(l))}),t.qZA()(),t.TgZ(4,"td")(5,"a",21),t._uU(6),t.qZA()(),t.YNc(7,O,5,2,"ng-container",5),t.ALo(8,"async"),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"date"),t.qZA()(),t.BQk()}if(2&a){const o=s.$implicit,e=t.oxw();t.xp6(3),t.Q6J("ngModel",o.selected),t.xp6(2),t.Q6J("href",o.URL,t.LSH),t.xp6(1),t.hij(" ",o.URL," "),t.xp6(1),t.Q6J("ngIf",1==t.lcZ(8,5,e.onMigrate$)),t.xp6(3),t.hij(" ",t.xi3(11,7,o.Date,"dd MMM yyyy")," ")}}let k=(()=>{var a;class s{constructor(){this.billPaymentMigrate=(0,t.f3M)(_),this.migrateConfig=(0,t.f3M)(y.o),this.billPaymentMigrate$=this.billPaymentMigrate.getImageUrls$().pipe((0,c.d)(1)),this._onMigrate=new T.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.toastr=(0,t.f3M)(I._W),this.dialog=(0,t.f3M)(x.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,C.U)(e=>e.RowCount),(0,c.d)(1)),this.pageNumber=(0,t.tdS)(1)}onMigrate(e){let n=e.Data.filter(r=>r.selected);if(0===n.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const l=this.billPaymentMigrate.migrate(n).pipe((0,C.U)(r=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(g=>{g.selected=!1;const P=r.find(D=>D.Path===g.Path);return g.CloudflareURL=P?.URL,g.Message=P?.Message,g}),e)));this.billPaymentMigrate$=l.pipe((0,c.d)(1))}onFilter(){const e={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.billPaymentMigrate$=this.billPaymentMigrate.getImageUrls$(e).pipe((0,c.d)(1))}onSelectAll(e,n){n=n.map(l=>(l.selected=e.checked,l)),this.totalSelected.set(n.filter(l=>l.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(n=>n.selected)?.length)}onMigrateAsync(){this.dialog.open($.j,{data:{date:this.dateFilter}}).afterClosed().pipe((0,A.h)(e=>S.g.IsNotEmpty(e)),(0,B.b)(e=>this.billPaymentMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount,From:e.from,To:e.to}))).subscribe(e=>{this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.billPaymentMigrate$=this.billPaymentMigrate.getImageUrls$().pipe((0,c.d)(1))})}onPagination(e){this.pageNumber.update(()=>e.pageIndex+1);const n={PageNumber:this.pageNumber()};this.billPaymentMigrate$=this.billPaymentMigrate.getImageUrls$(n).pipe((0,c.d)(1))}}return(a=s).\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-payment-bill"]],standalone:!0,features:[t._Bn([_]),t.jDz],decls:32,vars:21,consts:[["Title","Migrate Bill Payment",3,"hideSearchBox","onSubmit"],[1,"d-flex"],["container",""],[1,"mb-2"],[3,"date","dateChange"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[2,"width","120px"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page"],[4,"ngIf","ngIfElse"],["ASYNC",""],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],["type","button",1,"btn","btn-success","shadow","rounded","me-3",3,"click"],["color","primary",3,"change"],["color","primary",3,"ngModel","ngModelChange"],["target","_blank",1,"text-break",3,"href"],["SHOW_URL",""],[1,"text-break"],[1,"text-danger"]],template:function(e,n){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return n.onFilter()}),t.TgZ(1,"filters")(2,"div",1)(3,"div",2)(4,"h6",3),t._uU(5,"From - To"),t.qZA(),t.TgZ(6,"app-datepicker-range",4),t.NdJ("dateChange",function(r){return n.dateFilter=r}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,F,4,2,"ng-container",5),t.ALo(9,"async"),t.qZA(),t.TgZ(10,"content")(11,"div",6)(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th",11),t.YNc(18,Q,2,0,"ng-container",5),t.ALo(19,"async"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Old URL"),t.qZA(),t.YNc(22,L,3,0,"ng-container",5),t.ALo(23,"async"),t.TgZ(24,"th",12),t._uU(25,"Payment Date"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,Y,12,10,"ng-container",13),t.ALo(28,"async"),t.qZA()(),t.TgZ(29,"mat-paginator",14),t.NdJ("page",function(r){return n.onPagination(r)}),t.ALo(30,"async"),t.ALo(31,"async"),t.qZA()()()()()()),2&e){let l,r,g;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",n.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,9,n.billPaymentMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(l=t.lcZ(19,11,n.billPaymentMigrate$))?null:l.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(23,13,n.onMigrate$)),t.xp6(5),t.Q6J("ngForOf",null==(r=t.lcZ(28,15,n.billPaymentMigrate$))?null:r.Data),t.xp6(2),t.Q6J("length",null==(g=t.lcZ(30,17,n.billPaymentMigrate$))?null:g.Count)("pageSize",t.lcZ(31,19,n.rowCount$))("pageIndex",0==n.pageNumber()?0:n.pageNumber()-1)}},dependencies:[m.ez,m.sg,m.O5,m.Ov,m.uU,h.R,h.p,v.AV,u.TU,u.NW,f.p9,f.oG,p.u5,p.JJ,p.On,x.Is,M.C8,M.Pg,N.ZU]}),s})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[153],{8656:(D,d,i)=>{i.r(d),i.d(d,{InvoicePaymentComponent:()=>Y});var m=i(6814),t=i(5879),h=i(4387),I=i(2596),M=i(4664),P=i(8017),u=i(2787);let v=(()=>{var o;class g{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(P.O),this.migrateConfigService=(0,t.f3M)(u.o)}getImageUrls$(e={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,M.w)(n=>(e.RowCount=n.RowCount,this.http.post(`${this.domain}/api/image/InvoicePaymentImage`,e))))}migrate(e){return this.http.post(`${this.domain}/api/cloudflare/migrate/InvoicePaymentImage`,{Images:e})}migrateAsync(e){const c={...e,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/InvoicePaymentImage",c)}}return(o=g).\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),g})();var l=i(7081),Z=i(5619),f=i(7398),T=i(2181),A=i(6328),y=i(9887),_=i(5986),p=i(6223),N=i(2425),$=i(7700),S=i(3988),b=i(6493),C=i(8745);function U(o,g){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",17),t.NdJ("click",function(){t.CHM(a);const n=t.oxw().ngIf,c=t.oxw();return t.KtG(c.onMigrate(n))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function J(o,g){if(1&o){const a=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(a);const n=t.oxw(2);return t.KtG(n.onMigrateAsync())}),t._uU(1," Migrate Async "),t.qZA()}}function F(o,g){if(1&o&&(t.ynx(0),t.YNc(1,U,3,0,"ng-container",15),t.YNc(2,J,2,0,"ng-template",null,16,t.W1O),t.BQk()),2&o){const a=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.totalSelected()>0)("ngIfElse",a)}}function Q(o,g){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){const r=t.CHM(a).ngIf,s=t.oxw();return t.KtG(s.onSelectAll(n,r))}),t.qZA(),t.BQk()}}function L(o,g){1&o&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function R(o,g){if(1&o&&(t.ynx(0),t.TgZ(1,"div",23)(2,"span",24),t._uU(3),t.qZA()(),t.BQk()),2&o){const a=t.oxw(2).$implicit;t.xp6(3),t.Oqu(a.Message)}}function w(o,g){if(1&o&&(t.TgZ(0,"a",21),t._uU(1),t.qZA()),2&o){const a=t.oxw(2).$implicit;t.Q6J("href",a.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",a.CloudflareURL," ")}}function O(o,g){if(1&o&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,R,4,1,"ng-container",15),t.YNc(3,w,2,2,"ng-template",null,22,t.W1O),t.qZA(),t.BQk()),2&o){const a=t.MAs(4),e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.Message)("ngIfElse",a)}}function B(o,g){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",20),t.NdJ("ngModelChange",function(n){const r=t.CHM(a).$implicit;return t.KtG(r.selected=n)})("ngModelChange",function(){const c=t.CHM(a).ngForOf,r=t.oxw();return t.KtG(r.onSelect(c))}),t.qZA()(),t.TgZ(4,"td")(5,"a",21),t._uU(6),t.qZA()(),t.YNc(7,O,5,2,"ng-container",5),t.ALo(8,"async"),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"date"),t.qZA()(),t.BQk()}if(2&o){const a=g.$implicit,e=t.oxw();t.xp6(3),t.Q6J("ngModel",a.selected),t.xp6(2),t.Q6J("href",a.URL,t.LSH),t.xp6(1),t.hij(" ",a.URL," "),t.xp6(1),t.Q6J("ngIf",1==t.lcZ(8,5,e.onMigrate$)),t.xp6(3),t.hij(" ",t.xi3(11,7,a.Date,"dd MMM yyyy")," ")}}let Y=(()=>{var o;class g{constructor(){this.invoicePaymentMigrate=(0,t.f3M)(v),this.migrateConfig=(0,t.f3M)(u.o),this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$().pipe((0,l.d)(1)),this._onMigrate=new Z.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.toastr=(0,t.f3M)(N._W),this.dialog=(0,t.f3M)($.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,f.U)(e=>e.RowCount),(0,l.d)(1)),this.pageNumber=(0,t.tdS)(1)}onMigrate(e){let n=e.Data.filter(r=>r.selected);if(0===n.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const c=this.invoicePaymentMigrate.migrate(n).pipe((0,f.U)(r=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(s=>{s.selected=!1;const x=r.find(k=>k.Path===s.Path);return s.CloudflareURL=x?.URL,s.Message=x?.Message,s}),e)));this.invoicePaymentMigrate$=c.pipe((0,l.d)(1))}onSelectAll(e,n){n=n.map(c=>(c.selected=e.checked,c)),this.totalSelected.set(n.filter(c=>c.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(n=>n.selected)?.length)}onMigrateAsync(){this.dialog.open(S.j,{data:{date:this.dateFilter}}).afterClosed().pipe((0,T.h)(e=>b.g.IsNotEmpty(e)),(0,A.b)(e=>this.invoicePaymentMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount,From:e.from,To:e.to}))).subscribe(e=>{this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$().pipe((0,l.d)(1))})}onFilter(){const e={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$(e).pipe((0,l.d)(1))}onPagination(e){this.pageNumber.update(()=>e.pageIndex+1);const n={PageNumber:this.pageNumber()};this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$(n).pipe((0,l.d)(1))}}return(o=g).\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-invoice-payment"]],standalone:!0,features:[t._Bn([v]),t.jDz],decls:32,vars:21,consts:[["Title","Migrate Invoice Payment",3,"hideSearchBox","onSubmit"],[1,"d-flex"],["container",""],[1,"mb-2"],[3,"date","dateChange"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[2,"width","120px"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page"],[4,"ngIf","ngIfElse"],["ASYNC",""],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],["type","button",1,"btn","btn-success","shadow","rounded","me-3",3,"click"],["color","primary",3,"change"],["color","primary",3,"ngModel","ngModelChange"],["target","_blank",1,"text-break",3,"href"],["SHOW_URL",""],[1,"text-break"],[1,"text-danger"]],template:function(e,n){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return n.onFilter()}),t.TgZ(1,"filters")(2,"div",1)(3,"div",2)(4,"h6",3),t._uU(5,"From - To"),t.qZA(),t.TgZ(6,"app-datepicker-range",4),t.NdJ("dateChange",function(r){return n.dateFilter=r}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,F,4,2,"ng-container",5),t.ALo(9,"async"),t.qZA(),t.TgZ(10,"content")(11,"div",6)(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th",11),t.YNc(18,Q,2,0,"ng-container",5),t.ALo(19,"async"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Old URL"),t.qZA(),t.YNc(22,L,3,0,"ng-container",5),t.ALo(23,"async"),t.TgZ(24,"th",12),t._uU(25,"Payment Date"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,B,12,10,"ng-container",13),t.ALo(28,"async"),t.qZA()(),t.TgZ(29,"mat-paginator",14),t.NdJ("page",function(r){return n.onPagination(r)}),t.ALo(30,"async"),t.ALo(31,"async"),t.qZA()()()()()()),2&e){let c,r,s;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",n.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,9,n.invoicePaymentMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(c=t.lcZ(19,11,n.invoicePaymentMigrate$))?null:c.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(23,13,n.onMigrate$)),t.xp6(5),t.Q6J("ngForOf",null==(r=t.lcZ(28,15,n.invoicePaymentMigrate$))?null:r.Data),t.xp6(2),t.Q6J("length",null==(s=t.lcZ(30,17,n.invoicePaymentMigrate$))?null:s.Count)("pageSize",t.lcZ(31,19,n.rowCount$))("pageIndex",0==n.pageNumber()?0:n.pageNumber()-1)}},dependencies:[m.ez,m.sg,m.O5,m.Ov,m.uU,h.R,h.p,I.AV,y.TU,y.NW,_.p9,_.oG,p.u5,p.JJ,p.On,C.C8,C.Pg]}),g})()}}]);