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 +1 -1
- package/tools/135.19604e09c5416ad2.js +1 -0
- package/tools/153.18af2b93edbc5742.js +1 -0
- package/tools/287.98d506db68c6323f.js +1 -0
- package/tools/{431.9823e0736e7f929a.js → 431.be4811f614158e07.js} +1 -1
- package/tools/528.ff211eec2b035adb.js +1 -0
- package/tools/572.fb3de77dc7ebc07e.js +1 -0
- package/tools/669.35df13b66c6f6b6c.js +1 -0
- package/tools/700.d641161403638a21.js +1 -0
- package/tools/91.6b71156c85cded25.js +1 -0
- package/tools/983.730b43513822f7e7.js +1 -0
- package/tools/998.4a07a80e0d3634da.js +1 -0
- package/tools/common.7c8ab3e99088d717.js +1 -0
- package/tools/index.html +2 -2
- package/tools/main.ef77010fb29e9dc6.js +1 -0
- package/tools/{runtime.11dd8df214b2434b.js → runtime.65233073498d2e49.js} +1 -1
- package/tools/135.d40ec91e32aa005e.js +0 -1
- package/tools/153.16635f9bf55086ae.js +0 -1
- package/tools/440.973134e42401a9ea.js +0 -1
- package/tools/528.176e4468c277e3e5.js +0 -1
- package/tools/572.907fe8dac48d69f6.js +0 -1
- package/tools/669.0c30ed61e934f1c5.js +0 -1
- package/tools/700.a406e74130edb351.js +0 -1
- package/tools/91.50e8c287af1481d6.js +0 -1
- package/tools/983.a4af3b772dd323bb.js +0 -1
- package/tools/998.fb29f5965f9867d5.js +0 -1
- package/tools/common.d7ba7479673e10b6.js +0 -1
- package/tools/main.724786de9f404984.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[528],{528:(B,m,i)=>{i.r(m),i.d(m,{PrepaidPackageComponent:()=>L});var l=i(6814),t=i(5879),h=i(4387),x=i(2596),p=i(7081),k=i(5619),C=i(7398),M=i(2181),v=i(6328),u=i(9887),P=i(5986),d=i(6223),Z=i(2425),T=i(7700),y=i(3988),A=i(6493),S=i(8745),I=i(8017);let f=(()=>{var a;class c{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(I.O)}getImageUrls$(e={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/PrepaidPackage`,e)}migrate(e){return this.http.post(`${this.domain}/api/cloudflare/migrate/PrepaidPackage`,{Images:e})}migrateAsync(e){const r={...e,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/PrepaidPackage",r)}}return(a=c).\u0275fac=function(e){return new(e||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac}),c})();function N(a,c){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",12),t.NdJ("click",function(){t.CHM(o);const n=t.oxw().ngIf,r=t.oxw();return t.KtG(r.onMigrate(n))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function $(a,c){if(1&a){const o=t.EpF();t.TgZ(0,"button",13),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 b(a,c){if(1&a&&(t.ynx(0),t.YNc(1,N,3,0,"ng-container",10),t.YNc(2,$,2,0,"ng-template",null,11,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 U(a,c){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",14),t.NdJ("change",function(n){const g=t.CHM(o).ngIf,s=t.oxw();return t.KtG(s.onSelectAll(n,g))}),t.qZA(),t.BQk()}}function J(a,c){1&a&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function Q(a,c){if(1&a&&(t.ynx(0),t.TgZ(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.BQk()),2&a){const o=t.oxw(2).$implicit;t.xp6(3),t.Oqu(o.Message)}}function R(a,c){if(1&a&&(t.TgZ(0,"a",16),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 w(a,c){if(1&a&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,Q,4,1,"ng-container",10),t.YNc(3,R,2,2,"ng-template",null,17,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 F(a,c){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),t.NdJ("ngModelChange",function(n){const g=t.CHM(o).$implicit;return t.KtG(g.selected=n)})("ngModelChange",function(){const r=t.CHM(o).ngForOf,g=t.oxw();return t.KtG(g.onSelect(r))}),t.qZA()(),t.TgZ(4,"td")(5,"a",16),t._uU(6),t.qZA()(),t.YNc(7,w,5,2,"ng-container",1),t.ALo(8,"async"),t.qZA(),t.BQk()}if(2&a){const o=c.$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,4,e.onMigrate$))}}let L=(()=>{var a;class c{constructor(){this.prepaidPackageMigrate=(0,t.f3M)(f),this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$().pipe((0,p.d)(1)),this._onMigrate=new k.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,t.f3M)(Z._W),this.dialog=(0,t.f3M)(T.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0)}onMigrate(e){let n=e.Data.filter(g=>g.selected);if(0===n.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const r=this.prepaidPackageMigrate.migrate(n).pipe((0,C.U)(g=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(s=>{s.selected=!1;const _=g.find(O=>O.Path===s.Path);return s.CloudflareURL=_?.URL,s.Message=_?.Message,s}),e)));this.prepaidPackageMigrate$=r.pipe((0,p.d)(1))}onSelectAll(e,n){n=n.map(r=>(r.selected=e.checked,r)),this.totalSelected.set(n.filter(r=>r.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(n=>n.selected)?.length)}onMigrateAsync(){this.dialog.open(y.j,{data:{showDateFilter:!1}}).afterClosed().pipe((0,M.h)(e=>A.g.IsNotEmpty(e)),(0,v.b)(e=>this.prepaidPackageMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount}))).subscribe(e=>{this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$().pipe((0,p.d)(1))})}onFilter(){this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,p.d)(1))}onPagination(e){this.pagination.PageNumber=e.pageIndex+1,this.pagination.RowCount=e.pageSize,this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$(this.pagination).pipe((0,p.d)(1))}}return(a=c).\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-prepaid-package"]],standalone:!0,features:[t._Bn([f]),t.jDz],decls:23,vars:19,consts:[["Title","Migrate Prepaid Package",3,"hideSearchBox","hideSearchDropdown","onSubmit"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[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,"actions"),t.YNc(2,b,4,2,"ng-container",1),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),t.YNc(12,U,2,0,"ng-container",1),t.ALo(13,"async"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Old URL"),t.qZA(),t.YNc(16,J,3,0,"ng-container",1),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"tbody"),t.YNc(19,F,9,6,"ng-container",8),t.ALo(20,"async"),t.qZA()(),t.TgZ(21,"mat-paginator",9),t.NdJ("page",function(g){return n.onPagination(g)}),t.ALo(22,"async"),t.qZA()()()()()()),2&e){let r,g,s;t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,9,n.prepaidPackageMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(r=t.lcZ(13,11,n.prepaidPackageMigrate$))?null:r.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(17,13,n.onMigrate$)),t.xp6(3),t.Q6J("ngForOf",null==(g=t.lcZ(20,15,n.prepaidPackageMigrate$))?null:g.Data),t.xp6(2),t.Q6J("length",null==(s=t.lcZ(22,17,n.prepaidPackageMigrate$))?null:s.Count)("pageSize",n.pagination.RowCount)("pageIndex",0==n.pagination.PageNumber?0:n.pagination.PageNumber-1)}},dependencies:[l.ez,l.sg,l.O5,l.Ov,h.R,h.p,x.AV,u.TU,u.NW,P.p9,P.oG,d.u5,d.JJ,d.On,S.C8]}),c})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[572],{4572:(b,m,r)=>{r.r(m),r.d(m,{ProductComponent:()=>N});var g=r(6814),t=r(5879),u=r(4387),x=r(2596),l=r(7081),P=r(2181),v=r(6328),h=r(9887),f=r(5986),p=r(6223),Z=r(2425),y=r(7700),T=r(3988),S=r(6493),C=r(8745),I=r(8017);let M=(()=>{var a;class s{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(I.O)}getImageUrls$(o={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/ProductImage`,o)}migrateSelectedImage(o){const n=`${localStorage.getItem("Domain")}`,e=o.map(i=>i.URL);return this.http.post("/api/migrate/ProductImage/array",{Selected:e,Host:n})}migrateAsync(o){const e={...o,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/Migrate/ProductImage/page",e)}}return(a=s).\u0275fac=function(o){return new(o||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac}),s})();function A(a,s){if(1&a){const c=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){const e=t.CHM(c).ngIf,i=t.oxw();return t.KtG(i.onMigrateAsync(e))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function _(a,s){if(1&a){const c=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){const i=t.CHM(c).ngIf,d=t.oxw();return t.KtG(d.onSelectAll(n,i))}),t.qZA(),t.BQk()}}function F(a,s){if(1&a){const c=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",17),t.NdJ("ngModelChange",function(n){const i=t.CHM(c).$implicit;return t.KtG(i.selected=n)})("ngModelChange",function(){const e=t.CHM(c).ngForOf,i=t.oxw();return t.KtG(i.onSelect(e))}),t.qZA()(),t.TgZ(4,"td")(5,"a",18),t._uU(6),t.qZA()(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA()(),t.BQk()}if(2&a){const c=s.$implicit;t.xp6(3),t.Q6J("ngModel",c.selected),t.xp6(2),t.Q6J("href",c.URL,t.LSH),t.xp6(1),t.hij(" ",c.URL," "),t.xp6(2),t.hij(" ",t.xi3(9,4,c.Date,"dd MMM yyyy")," ")}}let N=(()=>{var a;class s{constructor(){this.productMigrate=(0,t.f3M)(M),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1)),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,t.f3M)(Z._W),this.dialog=(0,t.f3M)(y.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0)}onSelectAll(o,n){n=n.map(e=>(e.selected=o.checked,e)),this.totalSelected.set(n.filter(e=>e.selected)?.length)}onSelect(o){this.totalSelected.set(o.filter(n=>n.selected)?.length)}onMigrateAsync(o){let n=o.Data.filter(e=>e.selected);this.dialog.open(T.j,{data:{showDateFilter:!1,selectedImage:this.totalSelected()}}).afterClosed().pipe((0,P.h)(e=>S.g.IsNotEmpty(e)),(0,v.b)(e=>e.usePaginationFilter?this.productMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount}):this.productMigrate.migrateSelectedImage(n))).subscribe(e=>{this.totalSelected.set(0),this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1))})}onFilter(){this.productMigrate$=this.productMigrate.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,l.d)(1))}onPagination(o){this.pagination.PageNumber=o.pageIndex+1,this.pagination.RowCount=o.pageSize,this.productMigrate$=this.productMigrate.getImageUrls$(this.pagination).pipe((0,l.d)(1))}}return(a=s).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-product-image"]],standalone:!0,features:[t._Bn([M]),t.jDz],decls:29,vars:16,consts:[["Title","Migrate Product Image",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"],["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"]],template:function(o,n){if(1&o&&(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(i){return n.dateFilter=i}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,A,3,0,"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,_,2,0,"ng-container",5),t.ALo(19,"async"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Old URL"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Created"),t.qZA()()(),t.TgZ(24,"tbody"),t.YNc(25,F,10,7,"ng-container",13),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"mat-paginator",14),t.NdJ("page",function(i){return n.onPagination(i)}),t.ALo(28,"async"),t.qZA()()()()()()),2&o){let e,i,d;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",n.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,8,n.productMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(e=t.lcZ(19,10,n.productMigrate$))?null:e.Data),t.xp6(7),t.Q6J("ngForOf",null==(i=t.lcZ(26,12,n.productMigrate$))?null:i.Data),t.xp6(2),t.Q6J("length",null==(d=t.lcZ(28,14,n.productMigrate$))?null:d.Count)("pageSize",n.pagination.RowCount)("pageIndex",0==n.pagination.PageNumber?0:n.pagination.PageNumber-1)}},dependencies:[g.ez,g.sg,g.O5,g.Ov,g.uU,u.R,u.p,x.AV,h.TU,h.NW,f.p9,f.oG,p.u5,p.JJ,p.On,C.C8,C.Pg]}),s})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[669],{3669:(k,u,s)=>{s.r(u),s.d(u,{CustomerDisplayComponent:()=>P});var p=s(6814),t=s(5879),d=s(4387),y=s(2596),g=s(7081),x=s(5619),M=s(7398),D=s(2181),v=s(6328),h=s(9887),C=s(5986),m=s(6223),Z=s(2425),T=s(7700),A=s(3988),I=s(6493),S=s(8745),N=s(8017);let f=(()=>{var n;class r{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(N.O)}getImageUrls$(e={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/customerdisplay`,e)}migrate(e){return this.http.post(`${this.domain}/api/cloudflare/migrate/customerdisplay`,{Images:e})}migrateAsync(e){const i={...e,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/customerdisplay",i)}}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),r})();function $(n,r){if(1&n){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",12),t.NdJ("click",function(){t.CHM(a);const o=t.oxw().ngIf,i=t.oxw();return t.KtG(i.onMigrate(o))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function b(n,r){if(1&n){const a=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(a);const o=t.oxw(2);return t.KtG(o.onMigrateAsync())}),t._uU(1," Migrate Async "),t.qZA()}}function U(n,r){if(1&n&&(t.ynx(0),t.YNc(1,$,3,0,"ng-container",10),t.YNc(2,b,2,0,"ng-template",null,11,t.W1O),t.BQk()),2&n){const a=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.totalSelected()>0)("ngIfElse",a)}}function J(n,r){if(1&n){const a=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",14),t.NdJ("change",function(o){const l=t.CHM(a).ngIf,c=t.oxw();return t.KtG(c.onSelectAll(o,l))}),t.qZA(),t.BQk()}}function Q(n,r){1&n&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function R(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.BQk()),2&n){const a=t.oxw(2).$implicit;t.xp6(3),t.Oqu(a.Message)}}function w(n,r){if(1&n&&(t.TgZ(0,"a",16),t._uU(1),t.qZA()),2&n){const a=t.oxw(2).$implicit;t.Q6J("href",a.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",a.CloudflareURL," ")}}function F(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,R,4,1,"ng-container",10),t.YNc(3,w,2,2,"ng-template",null,17,t.W1O),t.qZA(),t.BQk()),2&n){const a=t.MAs(4),e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.Message)("ngIfElse",a)}}function L(n,r){if(1&n){const a=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),t.NdJ("ngModelChange",function(o){const l=t.CHM(a).$implicit;return t.KtG(l.selected=o)})("ngModelChange",function(){const i=t.CHM(a).ngForOf,l=t.oxw();return t.KtG(l.onSelect(i))}),t.qZA()(),t.TgZ(4,"td")(5,"a",16),t._uU(6),t.qZA()(),t.YNc(7,F,5,2,"ng-container",1),t.ALo(8,"async"),t.qZA(),t.BQk()}if(2&n){const a=r.$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,4,e.onMigrate$))}}let P=(()=>{var n;class r{constructor(){this.customerDisplayMigrate=(0,t.f3M)(f),this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$().pipe((0,g.d)(1)),this._onMigrate=new x.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,t.f3M)(Z._W),this.dialog=(0,t.f3M)(T.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0)}onMigrate(e){let o=e.Data.filter(l=>l.selected);if(0===o.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const i=this.customerDisplayMigrate.migrate(o).pipe((0,M.U)(l=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(c=>{c.selected=!1;const _=l.find(O=>O.Path===c.Path);return c.CloudflareURL=_?.URL,c.Message=_?.Message,c}),e)));this.customerDisplayMigrate$=i.pipe((0,g.d)(1))}onSelectAll(e,o){o=o.map(i=>(i.selected=e.checked,i)),this.totalSelected.set(o.filter(i=>i.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(o=>o.selected)?.length)}onMigrateAsync(){this.dialog.open(A.j,{data:{showDateFilter:!1}}).afterClosed().pipe((0,D.h)(e=>I.g.IsNotEmpty(e)),(0,v.b)(e=>this.customerDisplayMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount}))).subscribe(e=>{this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$().pipe((0,g.d)(1))})}onFilter(){this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,g.d)(1))}onPagination(e){this.pagination.PageNumber=e.pageIndex+1,this.pagination.RowCount=e.pageSize,this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$(this.pagination).pipe((0,g.d)(1))}}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-prepaid-package"]],standalone:!0,features:[t._Bn([f]),t.jDz],decls:23,vars:19,consts:[["Title","Migrate Customer Display Image",3,"hideSearchBox","hideSearchDropdown","onSubmit"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[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,o){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return o.onFilter()}),t.TgZ(1,"actions"),t.YNc(2,U,4,2,"ng-container",1),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),t.YNc(12,J,2,0,"ng-container",1),t.ALo(13,"async"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Old URL"),t.qZA(),t.YNc(16,Q,3,0,"ng-container",1),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"tbody"),t.YNc(19,L,9,6,"ng-container",8),t.ALo(20,"async"),t.qZA()(),t.TgZ(21,"mat-paginator",9),t.NdJ("page",function(l){return o.onPagination(l)}),t.ALo(22,"async"),t.qZA()()()()()()),2&e){let i,l,c;t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,9,o.customerDisplayMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(i=t.lcZ(13,11,o.customerDisplayMigrate$))?null:i.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(17,13,o.onMigrate$)),t.xp6(3),t.Q6J("ngForOf",null==(l=t.lcZ(20,15,o.customerDisplayMigrate$))?null:l.Data),t.xp6(2),t.Q6J("length",null==(c=t.lcZ(22,17,o.customerDisplayMigrate$))?null:c.Count)("pageSize",o.pagination.RowCount)("pageIndex",0==o.pagination.PageNumber?0:o.pagination.PageNumber-1)}},dependencies:[p.ez,p.sg,p.O5,p.Ov,d.R,d.p,y.AV,h.TU,h.NW,C.p9,C.oG,m.u5,m.JJ,m.On,S.C8]}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[700],{4700:(N,d,r)=>{r.r(d),r.d(d,{MigrateComponent:()=>b});var g=r(6814),e=r(5879),h=r(4387),T=r(9887),v=r(7398),M=r(8017),A=r(6493);let y=(()=>{var a;class l{constructor(t){this.datePipe=t,this.domain=`${localStorage.getItem("Domain")}`,this.http=(0,e.f3M)(M.O)}getMigrateHistory(t={logType:null,PageNumber:1,RowCount:100}){const o={...t,domain:this.domain};return this.http.post("/api/Sematext/Notification",o).pipe((0,v.U)(i=>{let s,p;return{data:i.hits.map(c=>(s=this.generateProcessLabel(c?._source?.message),p=this.generateDateLabel(c?._source?.log?.request),{type:c?._source?.logType,process:s,duration:c?._source?.Duration,created:c?._source["@timestamp"],date:p})),total:i.total?.value}}))}generateDateLabel(t){let o="";try{const i=JSON.parse(t),s=i?.From?new Date(i?.From):"",p=i?.To?new Date(i?.To):"";o=this.formatDate(s,p)}catch(i){console.log(i)}return o}formatDate(t,o){let i="-";if(t&&o){const s=A.g.formatTitleFromDate(t,o),p=this.datePipe.transform(t,s);i=`${null==s?"":p+" -"} ${this.datePipe.transform(o,"dd MMM yyyy")}`}return i}generateProcessLabel(t){let o="";try{o=t?JSON.parse(t):null}catch(i){console.log(i)}return o}}return(a=l).\u0275fac=function(t){return new(t||a)(e.LFG(g.uU))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),l})();var u=r(7081),f=r(4807),m=r(6223),C=r(1379);function S(a,l){if(1&a&&(e.ynx(0),e.TgZ(1,"div"),e._uU(2),e.qZA(),e.BQk()),2&a){const n=e.oxw().$implicit;e.xp6(2),e.Oqu(null==n||null==n.process?null:n.process.Message)}}function L(a,l){if(1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"number"),e.qZA(),e.TgZ(3,"div",15),e._uU(4),e.ALo(5,"number"),e.qZA(),e.TgZ(6,"div",16),e._uU(7),e.ALo(8,"number"),e.qZA()),2&a){const n=e.oxw().$implicit;e.xp6(1),e.hij("Total: ",e.lcZ(2,3,null==n||null==n.process?null:n.process.Total),""),e.xp6(3),e.hij("Success: ",e.lcZ(5,5,null==n||null==n.process?null:n.process.Success),""),e.xp6(3),e.hij("Failed: ",e.lcZ(8,7,null==n||null==n.process?null:n.process.Failed),"")}}function P(a,l){if(1&a&&(e.ynx(0),e.TgZ(1,"tr")(2,"td"),e._uU(3),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e.YNc(7,S,3,1,"ng-container",13),e.YNc(8,L,9,9,"ng-template",null,14,e.W1O),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.ALo(12,"number"),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"date"),e.qZA()(),e.BQk()),2&a){const n=l.$implicit,t=e.MAs(9);e.xp6(3),e.hij(" ",n.type," "),e.xp6(2),e.hij(" ",n.date," "),e.xp6(2),e.Q6J("ngIf",null==n||null==n.process?null:n.process.Message)("ngIfElse",t),e.xp6(4),e.hij("",e.xi3(12,6,n.duration,"1.1-1")," s"),e.xp6(3),e.Oqu(e.xi3(15,9,n.created,"dd MMM yyyy HH:mm:ss"))}}let b=(()=>{var a;class l{constructor(){this.migrationLogService=(0,e.f3M)(y),this.signalRService=(0,e.f3M)(C.Y),this.migrationLog$=this.migrationLogService.getMigrateHistory().pipe((0,u.d)(1)),this.pagination={PageNumber:1,RowCount:100},this.typeOptions=["InvoicePayment","BillInvoicePayment","CustomerImage","SupplierImage","PrepaidPackage","CustomerDisplay","Product"],this.selectedType=null,this.listenToSignalR()}listenToSignalR(){this.signalRService.migrateNotification$.subscribe(t=>{this.onFilter()})}onPagination(t){this.pagination.PageNumber=t.pageIndex+1,this.pagination.RowCount=t.pageSize,this.migrationLog$=this.migrationLogService.getMigrateHistory({logType:this.selectedType,PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount}).pipe((0,u.d)(1))}onFilter(){this.migrationLog$=this.migrationLogService.getMigrateHistory({logType:this.selectedType,PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount}).pipe((0,u.d)(1))}}return(a=l).\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-migrate"]],standalone:!0,features:[e._Bn([y]),e.jDz],decls:29,vars:11,consts:[["Title","Migrate Notification",3,"hideSearchBox","onSubmit"],[1,"d-flex"],["container","",1,"mb-4"],[1,"mb-2"],[3,"items","ngModel","ngModelChange"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","200px"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page"],[4,"ngIf","ngIfElse"],["OTHER",""],[1,"text-success"],[1,"text-danger"]],template:function(t,o){if(1&t&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(){return o.onFilter()}),e.TgZ(1,"filters")(2,"div",1)(3,"div",2)(4,"h6",3),e._uU(5,"Type"),e.qZA(),e.TgZ(6,"ng-select",4),e.NdJ("ngModelChange",function(s){return o.selectedType=s}),e.qZA()()()(),e.TgZ(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10),e._uU(15,"Migrate"),e.qZA(),e.TgZ(16,"th",10),e._uU(17,"Date"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Process"),e.qZA(),e.TgZ(20,"th",10),e._uU(21,"Duration"),e.qZA(),e.TgZ(22,"th",10),e._uU(23,"Created"),e.qZA()()(),e.TgZ(24,"tbody"),e.YNc(25,P,16,12,"ng-container",11),e.ALo(26,"async"),e.qZA()(),e.TgZ(27,"mat-paginator",12),e.NdJ("page",function(s){return o.onPagination(s)}),e.ALo(28,"async"),e.qZA()()()()()()),2&t){let i,s;e.Q6J("hideSearchBox",!0),e.xp6(6),e.Q6J("items",o.typeOptions)("ngModel",o.selectedType),e.xp6(19),e.Q6J("ngForOf",null==(i=e.lcZ(26,7,o.migrationLog$))?null:i.data),e.xp6(2),e.Q6J("length",null==(s=e.lcZ(28,9,o.migrationLog$))?null:s.total)("pageSize",o.pagination.RowCount)("pageIndex",0==o.pagination.PageNumber?0:o.pagination.PageNumber-1)}},dependencies:[g.ez,g.sg,g.O5,g.Ov,g.JJ,g.uU,h.R,h.p,T.TU,T.NW,f.A0,f.w9,m.u5,m.JJ,m.On],encapsulation:2}),l})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[91],{5091:(D,u,i)=>{i.r(u),i.d(u,{SupplierMigrateComponent:()=>O});var c=i(6814),t=i(5879),h=i(4387),x=i(2596),s=i(7081),S=i(5619),C=i(7398),I=i(2181),v=i(6328),d=i(9887),f=i(5986),m=i(6223),Z=i(2425),T=i(7700),y=i(3988),A=i(6493),N=i(8745),$=i(8017);let _=(()=>{var n;class g{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)($.O)}getImageUrls$(e={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/SupplierImage`,e)}migrate(e){return this.http.post(`${this.domain}/api/cloudflare/migrate/SupplierImage`,{Images:e})}migrateAsync(e){const r={...e,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/SupplierImage",r)}}return(n=g).\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),g})();function b(n,g){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",12),t.NdJ("click",function(){t.CHM(o);const a=t.oxw().ngIf,r=t.oxw();return t.KtG(r.onMigrate(a))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function U(n,g){if(1&n){const o=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(o);const a=t.oxw(2);return t.KtG(a.onMigrateAsync())}),t._uU(1," Migrate Async "),t.qZA()}}function J(n,g){if(1&n&&(t.ynx(0),t.YNc(1,b,3,0,"ng-container",10),t.YNc(2,U,2,0,"ng-template",null,11,t.W1O),t.BQk()),2&n){const o=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.totalSelected()>0)("ngIfElse",o)}}function Q(n,g){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",14),t.NdJ("change",function(a){const l=t.CHM(o).ngIf,p=t.oxw();return t.KtG(p.onSelectAll(a,l))}),t.qZA(),t.BQk()}}function R(n,g){1&n&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function w(n,g){if(1&n&&(t.ynx(0),t.TgZ(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.BQk()),2&n){const o=t.oxw(2).$implicit;t.xp6(3),t.Oqu(o.Message)}}function F(n,g){if(1&n&&(t.TgZ(0,"a",16),t._uU(1),t.qZA()),2&n){const o=t.oxw(2).$implicit;t.Q6J("href",o.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",o.CloudflareURL," ")}}function L(n,g){if(1&n&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,w,4,1,"ng-container",10),t.YNc(3,F,2,2,"ng-template",null,17,t.W1O),t.qZA(),t.BQk()),2&n){const o=t.MAs(4),e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.Message)("ngIfElse",o)}}function P(n,g){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){const l=t.CHM(o).$implicit;return t.KtG(l.selected=a)})("ngModelChange",function(){const r=t.CHM(o).ngForOf,l=t.oxw();return t.KtG(l.onSelect(r))}),t.qZA()(),t.TgZ(4,"td")(5,"a",16),t._uU(6),t.qZA()(),t.YNc(7,L,5,2,"ng-container",1),t.ALo(8,"async"),t.qZA(),t.BQk()}if(2&n){const o=g.$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,4,e.onMigrate$))}}let O=(()=>{var n;class g{constructor(){this.supplierImageMigrate=(0,t.f3M)(_),this.supplierImageMigrate$=this.supplierImageMigrate.getImageUrls$().pipe((0,s.d)(1)),this._onMigrate=new S.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,t.f3M)(Z._W),this.dialog=(0,t.f3M)(T.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0)}onMigrate(e){let a=e.Data.filter(l=>l.selected);if(0===a.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const r=this.supplierImageMigrate.migrate(a).pipe((0,C.U)(l=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(p=>{p.selected=!1;const M=l.find(B=>B.Path===p.Path);return p.CloudflareURL=M?.URL,p.Message=M?.Message,p}),e)));this.supplierImageMigrate$=r.pipe((0,s.d)(1))}onSelectAll(e,a){a=a.map(r=>(r.selected=e.checked,r)),this.totalSelected.set(a.filter(r=>r.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(a=>a.selected)?.length)}onMigrateAsync(){this.dialog.open(y.j,{data:{showDateFilter:!1}}).afterClosed().pipe((0,I.h)(e=>A.g.IsNotEmpty(e)),(0,v.b)(e=>this.supplierImageMigrate.migrateAsync({PageNumber:e.pageNumber,RowCount:e.rowCount}))).subscribe(e=>{this.toastr.warning(e.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.supplierImageMigrate$=this.supplierImageMigrate.getImageUrls$().pipe((0,s.d)(1))})}onFilter(){this.supplierImageMigrate$=this.supplierImageMigrate.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,s.d)(1))}onPagination(e){this.pagination.PageNumber=e.pageIndex+1,this.pagination.RowCount=e.pageSize,this.supplierImageMigrate$=this.supplierImageMigrate.getImageUrls$(this.pagination).pipe((0,s.d)(1))}}return(n=g).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-supplier-image"]],standalone:!0,features:[t._Bn([_]),t.jDz],decls:23,vars:19,consts:[["Title","Migrate Supplier Image",3,"hideSearchBox","hideSearchDropdown","onSubmit"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[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,a){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return a.onFilter()}),t.TgZ(1,"actions"),t.YNc(2,J,4,2,"ng-container",1),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),t.YNc(12,Q,2,0,"ng-container",1),t.ALo(13,"async"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Old URL"),t.qZA(),t.YNc(16,R,3,0,"ng-container",1),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"tbody"),t.YNc(19,P,9,6,"ng-container",8),t.ALo(20,"async"),t.qZA()(),t.TgZ(21,"mat-paginator",9),t.NdJ("page",function(l){return a.onPagination(l)}),t.ALo(22,"async"),t.qZA()()()()()()),2&e){let r,l,p;t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,9,a.supplierImageMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(r=t.lcZ(13,11,a.supplierImageMigrate$))?null:r.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(17,13,a.onMigrate$)),t.xp6(3),t.Q6J("ngForOf",null==(l=t.lcZ(20,15,a.supplierImageMigrate$))?null:l.Data),t.xp6(2),t.Q6J("length",null==(p=t.lcZ(22,17,a.supplierImageMigrate$))?null:p.Count)("pageSize",a.pagination.RowCount)("pageIndex",0==a.pagination.PageNumber?0:a.pagination.PageNumber-1)}},dependencies:[c.ez,c.sg,c.O5,c.Ov,h.R,h.p,x.AV,d.TU,d.NW,f.p9,f.oG,m.u5,m.JJ,m.On,N.C8]}),g})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[983],{3988:(D,y,d)=>{d.d(y,{j:()=>E});var c=d(6814),e=d(5879),s=d(6223),x=d(7700),C=d(3618),p=d(8745),F=d(4843),g=d(7238),f=d(8660),M=d(4518);function T(m,u){if(1&m){const a=e.EpF();e.ynx(0),e.TgZ(1,"div",3)(2,"radio-options",4),e.NdJ("modelChange",function(i){e.CHM(a);const b=e.oxw();return e.KtG(b.usePaginationFilter.set(i))}),e.qZA()(),e.BQk()}if(2&m){const a=e.oxw();e.xp6(2),e.Q6J("model",a.usePaginationFilter())("options",a.typeOptions)("border",!0)("border",!0)}}function A(m,u){if(1&m){const a=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"h6"),e._uU(3,"From - To"),e.qZA(),e.TgZ(4,"app-datepicker-range",8),e.NdJ("dateChange",function(i){e.CHM(a);const b=e.oxw(2);return e.KtG(b.date=i)}),e.qZA()(),e.BQk()}if(2&m){const a=e.oxw(2);e.xp6(4),e.Q6J("date",a.date)("from",null==a.date?null:a.date.from)("to",null==a.date?null:a.date.to)}}function v(m,u){if(1&m){const a=e.EpF();e.ynx(0),e.YNc(1,A,5,3,"ng-container",2),e.TgZ(2,"div",5)(3,"div",6)(4,"h6"),e._uU(5,"Page Number"),e.qZA(),e.TgZ(6,"input",7),e.NdJ("ngModelChange",function(i){e.CHM(a);const b=e.oxw();return e.KtG(b.pageNumber=i)}),e.qZA()(),e.TgZ(7,"div",6)(8,"h6"),e._uU(9,"Row Count"),e.qZA(),e.TgZ(10,"input",7),e.NdJ("ngModelChange",function(i){e.CHM(a);const b=e.oxw();return e.KtG(b.rowCount=i)}),e.qZA()()(),e.BQk()}if(2&m){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.showDateFilter()),e.xp6(5),e.Q6J("ngModel",a.pageNumber),e.xp6(4),e.Q6J("ngModel",a.rowCount)}}let E=(()=>{var m;class u{constructor(l={date:{from:null,to:null},showDateFilter:!0,selectedImage:0}){this.data=l,this.dialogRef=(0,e.f3M)(x.so),this.date={from:null,to:null},this.pageNumber=1,this.rowCount=100,this.showDateFilter=(0,e.tdS)(!0),this.selectedImage=(0,e.tdS)(0),this.usePaginationFilter=(0,e.tdS)(!1),this.typeOptions=[],this.date=l.date,this.showDateFilter.set(null==l.showDateFilter||l.showDateFilter),this.selectedImage.set(l.selectedImage),this.usePaginationFilter.update(()=>!this.selectedImage()),this.modalConfig=new F.O,this.modalConfig.title="Migrate Images",this.modalConfig.customWidth="350px",this.initOptions()}initOptions(){this.typeOptions=[{Key:!0,Value:"Pagination"},{Key:!1,Value:`Selected ${this.selectedImage()} records`}]}onOk(){this.dialogRef.close({...this.date,pageNumber:this.pageNumber,rowCount:this.rowCount,usePaginationFilter:this.usePaginationFilter()})}onClose(){this.dialogRef.close()}}return(m=u).\u0275fac=function(l){return new(l||m)(e.Y36(x.WI))},m.\u0275cmp=e.Xpm({type:m,selectors:[["app-modal-async-migrate"]],standalone:!0,features:[e.jDz],decls:5,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container"],[4,"ngIf"],[1,"mb-6"],["name","filterModel",3,"model","options","border","modelChange"],[1,"row"],[1,"col-6"],["type","text","autoNum","",1,"form-control",3,"ngModel","ngModelChange"],[1,"datepicker-range-migrate",3,"date","from","to","dateChange"]],template:function(l,i){1&l&&(e.TgZ(0,"modal-material",0),e.NdJ("onOk",function(){return i.onOk()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),e.TgZ(1,"content")(2,"div",1),e.YNc(3,T,3,4,"ng-container",2),e.YNc(4,v,11,3,"ng-container",2),e.qZA()()()),2&l&&(e.Q6J("config",i.modalConfig),e.xp6(3),e.Q6J("ngIf",i.selectedImage()),e.xp6(1),e.Q6J("ngIf",i.usePaginationFilter()))},dependencies:[c.ez,c.O5,p.C8,p.Pg,g.d,g.M,s.u5,s.Fj,s.JJ,s.On,C.X,M.b,f.P],styles:["app-datepicker-range.datepicker-range-migrate input{border:0px!important;padding:0!important}\n"],encapsulation:2}),u})()},5986:(D,y,d)=>{d.d(y,{oG:()=>u,p9:()=>b});var c=d(5879),e=d(6223),s=d(3680),x=d(2495);const C=["input"],p=["label"],F=["*"],g=new c.OlP("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}const M={provide:e.JU,useExisting:(0,c.Gpc)(()=>u),multi:!0};class T{}let A=0;const v=f(),E=(0,s.sb)((0,s.pj)((0,s.Kr)((0,s.Id)(class{constructor(n){this._elementRef=n}}))));let m=(()=>{var n;class h extends E{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,x.Ig)(t)}constructor(t,o,r,_,I,O,w){super(o),this._changeDetectorRef=r,this._ngZone=_,this._animationMode=O,this._options=w,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new c.vpe,this.indeterminateChange=new c.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||v,this.color=this.defaultColor=this._options.color||v.color,this.tabIndex=parseInt(I)||0,this.id=this._uniqueId=`${t}${++A}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){const o=(0,x.Ig)(t);o!=this.checked&&(this._checked=o,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const o=(0,x.Ig)(t);o!==this.disabled&&(this._disabled=o,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const o=t!=this._indeterminate;this._indeterminate=(0,x.Ig)(t),o&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_transitionCheckState(t){let o=this._currentCheckState,r=this._getAnimationTargetElement();if(o!==t&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const _=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(_)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const t=this._options?.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,o){if("NoopAnimations"===this._animationMode)return"";switch(t){case 0:if(1===o)return this._animationClasses.uncheckedToChecked;if(3==o)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===o?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===o?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===o?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){const o=this._inputElement;o&&(o.nativeElement.indeterminate=t)}}return(n=h).\u0275fac=function(t){c.$Z()},n.\u0275dir=c.lG2({type:n,viewQuery:function(t,o){if(1&t&&(c.Gf(C,5),c.Gf(p,5),c.Gf(s.wG,5)),2&t){let r;c.iGM(r=c.CRH())&&(o._inputElement=r.first),c.iGM(r=c.CRH())&&(o._labelElement=r.first),c.iGM(r=c.CRH())&&(o.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[c.qOj]}),h})(),u=(()=>{var n;class h extends m{constructor(t,o,r,_,I,O){super("mat-mdc-checkbox-",t,o,r,_,I,O),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){const o=new T;return o.source=this,o.checked=t,o}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}}return(n=h).\u0275fac=function(t){return new(t||n)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.$8M("tabindex"),c.Y36(c.QbO,8),c.Y36(g,8))},n.\u0275cmp=c.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(t,o){2&t&&(c.Ikx("id",o.id),c.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),c.ekj("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[c._Bn([M]),c.qOj],ngContentSelectors:F,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(t,o){if(1&t&&(c.F$t(),c.TgZ(0,"div",0),c.NdJ("click",function(_){return o._preventBubblingFromLabel(_)}),c.TgZ(1,"div",1,2)(3,"div",3),c.NdJ("click",function(){return o._onTouchTargetClick()}),c.qZA(),c.TgZ(4,"input",4,5),c.NdJ("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(_){return o._onInteractionEvent(_)}),c.qZA(),c._UZ(6,"div",6),c.TgZ(7,"div",7),c.O4$(),c.TgZ(8,"svg",8),c._UZ(9,"path",9),c.qZA(),c.kcU(),c._UZ(10,"div",10),c.qZA(),c._UZ(11,"div",11),c.qZA(),c.TgZ(12,"label",12,13),c.Hsn(14),c.qZA()()),2&t){const r=c.MAs(2);c.ekj("mdc-form-field--align-end","before"==o.labelPosition),c.xp6(4),c.ekj("mdc-checkbox--selected",o.checked),c.Q6J("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.tabIndex),c.uIk("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("name",o.name)("value",o.value),c.xp6(7),c.Q6J("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),c.xp6(1),c.Q6J("for",o.inputId)}},dependencies:[s.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),h})(),i=(()=>{var n;class h{}return(n=h).\u0275fac=function(t){return new(t||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({}),h})(),b=(()=>{var n;class h{}return(n=h).\u0275fac=function(t){return new(t||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[s.BQ,s.si,i,s.BQ,i]}),h})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[998],{3998:(S,_,c)=>{c.r(_),c.d(_,{CustomerMigrateComponent:()=>Q});var s=c(6814),p=c(4387),f=c(2596),u=c(9887),C=c(5986),m=c(6223),x=c(8745),M=c(5915),n=c(5879);let d=(()=>{var t;class r extends M.k{constructor(){super("CustomerImage")}}return(t=r).\u0275fac=function(o){return new(o||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),r})();var h=c(1932);function Z(t,r){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"button",12),n.NdJ("click",function(){n.CHM(e);const a=n.oxw().ngIf,i=n.oxw();return n.KtG(i.onMigrate(a))}),n._uU(2," Migrate "),n.qZA(),n.BQk()}}function T(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){n.CHM(e);const a=n.oxw(2);return n.KtG(a.onMigrateAsync())}),n._uU(1," Migrate Async "),n.qZA()}}function A(t,r){if(1&t&&(n.ynx(0),n.YNc(1,Z,3,0,"ng-container",10),n.YNc(2,T,2,0,"ng-template",null,11,n.W1O),n.BQk()),2&t){const e=n.MAs(3),o=n.oxw();n.xp6(1),n.Q6J("ngIf",o.totalSelected()>0)("ngIfElse",e)}}function v(t,r){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"mat-checkbox",14),n.NdJ("change",function(a){const g=n.CHM(e).ngIf,l=n.oxw();return n.KtG(l.onSelectAll(a,g))}),n.qZA(),n.BQk()}}function y(t,r){1&t&&(n.ynx(0),n.TgZ(1,"th"),n._uU(2,"New URL"),n.qZA(),n.BQk())}function b(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",18)(2,"span",19),n._uU(3),n.qZA()(),n.BQk()),2&t){const e=n.oxw(2).$implicit;n.xp6(3),n.Oqu(e.Message)}}function I(t,r){if(1&t&&(n.TgZ(0,"a",16),n._uU(1),n.qZA()),2&t){const e=n.oxw(2).$implicit;n.Q6J("href",e.CloudflareURL,n.LSH),n.xp6(1),n.hij(" ",e.CloudflareURL," ")}}function J(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"td"),n.YNc(2,b,4,1,"ng-container",10),n.YNc(3,I,2,2,"ng-template",null,17,n.W1O),n.qZA(),n.BQk()),2&t){const e=n.MAs(4),o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.Message)("ngIfElse",e)}}function N(t,r){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),n.NdJ("ngModelChange",function(a){const g=n.CHM(e).$implicit;return n.KtG(g.selected=a)})("ngModelChange",function(){const i=n.CHM(e).ngForOf,g=n.oxw();return n.KtG(g.onSelect(i))}),n.qZA()(),n.TgZ(4,"td")(5,"a",16),n._uU(6),n.qZA()(),n.YNc(7,J,5,2,"ng-container",1),n.ALo(8,"async"),n.qZA(),n.BQk()}if(2&t){const e=r.$implicit,o=n.oxw();n.xp6(3),n.Q6J("ngModel",e.selected),n.xp6(2),n.Q6J("href",e.URL,n.LSH),n.xp6(1),n.hij(" ",e.URL," "),n.xp6(1),n.Q6J("ngIf",1==n.lcZ(8,4,o.onMigrate$))}}let Q=(()=>{var t;class r extends h.X{constructor(o){super(o),this.customerImageService=o}}return(t=r).\u0275fac=function(o){return new(o||t)(n.Y36(d))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-customer-image"]],standalone:!0,features:[n._Bn([d]),n.qOj,n.jDz],decls:23,vars:19,consts:[["Title","Migrate Customer Image",3,"hideSearchBox","hideSearchDropdown","onSubmit"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[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(o,a){if(1&o&&(n.TgZ(0,"mainpanel",0),n.NdJ("onSubmit",function(){return a.onFilter()}),n.TgZ(1,"actions"),n.YNc(2,A,4,2,"ng-container",1),n.ALo(3,"async"),n.qZA(),n.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),n.YNc(12,v,2,0,"ng-container",1),n.ALo(13,"async"),n.qZA(),n.TgZ(14,"th"),n._uU(15,"Old URL"),n.qZA(),n.YNc(16,y,3,0,"ng-container",1),n.ALo(17,"async"),n.qZA()(),n.TgZ(18,"tbody"),n.YNc(19,N,9,6,"ng-container",8),n.ALo(20,"async"),n.qZA()(),n.TgZ(21,"mat-paginator",9),n.NdJ("page",function(g){return a.onPagination(g)}),n.ALo(22,"async"),n.qZA()()()()()()),2&o){let i,g,l;n.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,9,a.imageMigrate$)),n.xp6(10),n.Q6J("ngIf",null==(i=n.lcZ(13,11,a.imageMigrate$))?null:i.Data),n.xp6(4),n.Q6J("ngIf",1==n.lcZ(17,13,a.onMigrate$)),n.xp6(3),n.Q6J("ngForOf",null==(g=n.lcZ(20,15,a.imageMigrate$))?null:g.Data),n.xp6(2),n.Q6J("length",null==(l=n.lcZ(22,17,a.imageMigrate$))?null:l.Count)("pageSize",a.pagination.RowCount)("pageIndex",0==a.pagination.PageNumber?0:a.pagination.PageNumber-1)}},dependencies:[s.ez,s.sg,s.O5,s.Ov,p.R,p.p,f.AV,u.TU,u.NW,C.p9,C.oG,m.u5,m.JJ,m.On,x.C8]}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[592],{1932:(E,h,e)=>{e.d(h,{X:()=>u});var o=e(2425),_=e(7700),n=e(5879),i=e(7081),l=e(5619),m=e(7398),s=e(2181),c=e(6328),d=e(6493),P=e(3988);class u{constructor(t,a=!1){this.migrateService=t,this.showDateFilter=a,this.imageMigrate$=this.migrateService.getImageUrls$().pipe((0,i.d)(1)),this._onMigrate=new l.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,n.f3M)(o._W),this.dialog=(0,n.f3M)(_.uw),this.dateFilter={},this.totalSelected=(0,n.tdS)(0)}onMigrate(t){let a=t.Data.filter(p=>p.selected);if(0===a.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const r=this.migrateService.migrate(a).pipe((0,m.U)(p=>(this._onMigrate.next(!0),t.Data=t.Data.map(g=>{g.selected=!1;const M=p.find(D=>D.Path===g.Path);return g.CloudflareURL=M?.URL,g.Message=M?.Message,g}),this.totalSelected.set(0),t)));this.imageMigrate$=r.pipe((0,i.d)(1))}onSelectAll(t,a){a=a.map(r=>(r.selected=t.checked,r)),this.totalSelected.set(a.filter(r=>r.selected)?.length)}onSelect(t){this.totalSelected.set(t.filter(a=>a.selected)?.length)}onMigrateAsync(){this.dialog.open(P.j,{data:{showDateFilter:this.showDateFilter,date:this.dateFilter}}).afterClosed().pipe((0,s.h)(t=>d.g.IsNotEmpty(t)),(0,c.b)(t=>this.migrateService.migrateAsync({PageNumber:t.pageNumber,RowCount:t.rowCount}))).subscribe(t=>{this.toastr.warning(t.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.imageMigrate$=this.migrateService.getImageUrls$().pipe((0,i.d)(1))})}onFilter(){this.imageMigrate$=this.migrateService.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,i.d)(1))}onPagination(t){this.pagination.PageNumber=t.pageIndex+1,this.pagination.RowCount=t.pageSize,this.imageMigrate$=this.migrateService.getImageUrls$(this.pagination).pipe((0,i.d)(1))}}},5915:(E,h,e)=>{e.d(h,{k:()=>n});var o=e(5879),_=e(8017);let n=(()=>{var i;class l{constructor(s){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,o.f3M)(_.O),this.migrateApi=s}getImageUrls$(s={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/${this.migrateApi}`,s)}migrate(s){return this.http.post(`${this.domain}/api/cloudflare/migrate/${this.migrateApi}`,{Images:s})}migrateAsync(s){const d={...s,Host:`${localStorage.getItem("Domain")}`};return this.http.post(`/api/MigrateImage/${this.migrateApi}`,d)}}return(i=l).\u0275fac=function(s){o.$Z()},i.\u0275prov=o.Yz7({token:i,factory:i.\u0275fac}),l})()}}]);
|