dealpostools 2.6.2 → 25.44.0
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/3rdpartylicenses.txt +505 -161
- package/tools/chunk-2C225VYE.js +2 -0
- package/tools/chunk-2HIM3UX2.js +1 -0
- package/tools/chunk-4F5TWOC5.js +3 -0
- package/tools/chunk-54CMHXEM.js +3 -0
- package/tools/chunk-6SUCPVGV.js +1 -0
- package/tools/chunk-73XB25WH.js +1 -0
- package/tools/chunk-A6UDXX4L.js +3 -0
- package/tools/chunk-B3N76L3I.js +2 -0
- package/tools/chunk-BBGB7I4B.js +1 -0
- package/tools/chunk-DHBBWJUT.js +193 -0
- package/tools/chunk-DWYIM5CC.js +1 -0
- package/tools/chunk-EASBGMMC.js +1 -0
- package/tools/chunk-EC3GOKCC.js +2 -0
- package/tools/chunk-ENDTIDEL.js +1 -0
- package/tools/chunk-F5X5MWHG.js +0 -0
- package/tools/chunk-FAJZECQR.js +13 -0
- package/tools/chunk-FBCQBCW3.js +8 -0
- package/tools/chunk-FG4S6NWY.js +3 -0
- package/tools/chunk-FPASOMCI.js +2 -0
- package/tools/chunk-H6RLFBCZ.js +1 -0
- package/tools/chunk-HRH3TYVG.js +1 -0
- package/tools/chunk-HSN6HHU7.js +1 -0
- package/tools/chunk-IIJMZKPL.js +1 -0
- package/tools/chunk-JPDEIDEJ.js +1 -0
- package/tools/chunk-K2H6WANG.js +1 -0
- package/tools/chunk-KJXJE53Y.js +17 -0
- package/tools/chunk-L4FL72G2.js +1 -0
- package/tools/chunk-MO5X4QZG.js +1 -0
- package/tools/chunk-NR6MRK3T.js +1 -0
- package/tools/chunk-NU4XUYAX.js +1 -0
- package/tools/chunk-OXC3XM5P.js +1 -0
- package/tools/chunk-RFR3OPT5.js +1 -0
- package/tools/chunk-SDDPQVXQ.js +3 -0
- package/tools/chunk-SMABOF7H.js +1 -0
- package/tools/chunk-UC6KKYVW.js +1 -0
- package/tools/chunk-V5WYSCVT.js +21 -0
- package/tools/chunk-VYXNTLH6.js +1 -0
- package/tools/chunk-WEA73DPD.js +926 -0
- package/tools/chunk-XVYRBDMB.js +1 -0
- package/tools/chunk-Y2MSHJTG.js +1 -0
- package/tools/chunk-ZQZNA72T.js +1 -0
- package/tools/index.html +5 -5
- package/tools/main-M7PZTTNB.js +3 -0
- package/tools/media/primeicons-4GST5W3O.woff2 +0 -0
- package/tools/{primeicons.76044b1c189cc4d7.svg → media/primeicons-DHQU4SEP.svg} +110 -35
- package/tools/{primeicons.5f5d08cd089b4e5d.ttf → media/primeicons-GEFHGEHP.ttf} +0 -0
- package/tools/{primeicons.29151a741d66863a.woff → media/primeicons-P53SE5CV.woff} +0 -0
- package/tools/{primeicons.964f445f3ea9db80.eot → media/primeicons-RSSEDYLY.eot} +0 -0
- package/tools/polyfills-BUUDEW7V.js +2 -0
- package/tools/prerendered-routes.json +3 -0
- package/tools/scripts-ZCJ6RYLB.js +8 -0
- package/tools/styles-YGWQG6GA.css +1 -0
- package/tools/135.19604e09c5416ad2.js +0 -1
- package/tools/153.18af2b93edbc5742.js +0 -1
- package/tools/431.be4811f614158e07.js +0 -1
- package/tools/528.ff211eec2b035adb.js +0 -1
- package/tools/572.101a54bef6e1f498.js +0 -1
- package/tools/573.e2ecd3020f30ae64.js +0 -1
- package/tools/574.1c19346387b8519f.js +0 -1
- package/tools/669.35df13b66c6f6b6c.js +0 -1
- package/tools/692.21819262e72254c6.js +0 -1
- package/tools/696.132f96b645ff773d.js +0 -1
- package/tools/700.d641161403638a21.js +0 -1
- package/tools/757.e159c8e455d9935b.js +0 -1
- package/tools/792.b0502d19fc7b3923.js +0 -1
- package/tools/805.08a569c3acbec885.js +0 -1
- package/tools/818.e84d0f0fa59d6451.js +0 -1
- package/tools/91.6b71156c85cded25.js +0 -1
- package/tools/967.0b1f5043f46fc2a0.js +0 -1
- package/tools/983.730b43513822f7e7.js +0 -1
- package/tools/998.4a07a80e0d3634da.js +0 -1
- package/tools/color.dae87a04d07ca92b.png +0 -0
- package/tools/common.7c8ab3e99088d717.js +0 -1
- package/tools/hue.8b1818380241e6ac.png +0 -0
- package/tools/main.cc96db47aa78be31.js +0 -1
- package/tools/polyfills.20890db57b62159d.js +0 -1
- package/tools/runtime.bcd34bab5e4a7057.js +0 -1
- package/tools/scripts.96e155fd8f109bec.js +0 -1
- package/tools/styles.345e387c0c8b4ac0.css +0 -19
|
@@ -1 +0,0 @@
|
|
|
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})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[431],{4431:(Q,_,r)=>{r.r(_),r.d(_,{CustomerFeedbackComponent:()=>N});var f=r(5915),e=r(5879);let u=(()=>{var n;class c extends f.k{constructor(){super("CustomerFeedBackImage")}}return(n=c).\u0275fac=function(o){return new(o||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),c})();var x=r(1932),l=r(6814),p=r(4387),b=r(2596),d=r(9887),C=r(5986),m=r(6223),k=r(8745);function h(n,c){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",12),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().ngIf,i=e.oxw();return e.KtG(i.onMigrate(a))}),e._uU(2," Migrate "),e.qZA(),e.BQk()}}function Z(n,c){if(1&n){const t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onMigrateAsync())}),e._uU(1," Migrate Async "),e.qZA()}}function F(n,c){if(1&n&&(e.ynx(0),e.YNc(1,h,3,0,"ng-container",10),e.YNc(2,Z,2,0,"ng-template",null,11,e.W1O),e.BQk()),2&n){const t=e.MAs(3),o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.totalSelected()>0)("ngIfElse",t)}}function T(n,c){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"mat-checkbox",14),e.NdJ("change",function(a){const s=e.CHM(t).ngIf,g=e.oxw();return e.KtG(g.onSelectAll(a,s))}),e.qZA(),e.BQk()}}function A(n,c){1&n&&(e.ynx(0),e.TgZ(1,"th"),e._uU(2,"New URL"),e.qZA(),e.BQk())}function v(n,c){if(1&n&&(e.ynx(0),e.TgZ(1,"div",18)(2,"span",19),e._uU(3),e.qZA()(),e.BQk()),2&n){const t=e.oxw(2).$implicit;e.xp6(3),e.Oqu(t.Message)}}function M(n,c){if(1&n&&(e.TgZ(0,"a",16),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.Q6J("href",t.CloudflareURL,e.LSH),e.xp6(1),e.hij(" ",t.CloudflareURL," ")}}function y(n,c){if(1&n&&(e.ynx(0),e.TgZ(1,"td"),e.YNc(2,v,4,1,"ng-container",10),e.YNc(3,M,2,2,"ng-template",null,17,e.W1O),e.qZA(),e.BQk()),2&n){const t=e.MAs(4),o=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",o.Message)("ngIfElse",t)}}function J(n,c){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),e.NdJ("ngModelChange",function(a){const s=e.CHM(t).$implicit;return e.KtG(s.selected=a)})("ngModelChange",function(){const i=e.CHM(t).ngForOf,s=e.oxw();return e.KtG(s.onSelect(i))}),e.qZA()(),e.TgZ(4,"td")(5,"a",16),e._uU(6),e.qZA()(),e.YNc(7,y,5,2,"ng-container",1),e.ALo(8,"async"),e.qZA(),e.BQk()}if(2&n){const t=c.$implicit,o=e.oxw();e.xp6(3),e.Q6J("ngModel",t.selected),e.xp6(2),e.Q6J("href",t.URL,e.LSH),e.xp6(1),e.hij(" ",t.URL," "),e.xp6(1),e.Q6J("ngIf",1==e.lcZ(8,4,o.onMigrate$))}}let N=(()=>{var n;class c extends x.X{constructor(o){super(o,!0),this.customerFeedbackService=o}}return(n=c).\u0275fac=function(o){return new(o||n)(e.Y36(u))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-customer-feedback"]],standalone:!0,features:[e._Bn([u]),e.qOj,e.jDz],decls:24,vars:21,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&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(){return a.onFilter()}),e.TgZ(1,"actions"),e.YNc(2,F,4,2,"ng-container",1),e.ALo(3,"async"),e.qZA(),e.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),e.YNc(12,T,2,0,"ng-container",1),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Old URL"),e.qZA(),e.YNc(16,A,3,0,"ng-container",1),e.ALo(17,"async"),e.qZA()(),e.TgZ(18,"tbody"),e.YNc(19,J,9,6,"ng-container",8),e.ALo(20,"async"),e.qZA()(),e.TgZ(21,"mat-paginator",9),e.NdJ("page",function(s){return a.onPagination(s)}),e.ALo(22,"async"),e.ALo(23,"async"),e.qZA()()()()()()),2&o){let i,s,g;e.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,9,a.imageMigrate$)),e.xp6(10),e.Q6J("ngIf",null==(i=e.lcZ(13,11,a.imageMigrate$))?null:i.Data),e.xp6(4),e.Q6J("ngIf",1==e.lcZ(17,13,a.onMigrate$)),e.xp6(3),e.Q6J("ngForOf",null==(s=e.lcZ(20,15,a.imageMigrate$))?null:s.Data),e.xp6(2),e.Q6J("length",null==(g=e.lcZ(22,17,a.imageMigrate$))?null:g.Count)("pageSize",e.lcZ(23,19,a.rowCount$))("pageIndex",0==a.pageNumber()?0:a.pageNumber()-1)}},dependencies:[l.ez,l.sg,l.O5,l.Ov,p.R,p.p,b.AV,d.TU,d.NW,C.p9,C.oG,m.u5,m.JJ,m.On,k.C8]}),c})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[528],{528:(Y,m,i)=>{i.r(m),i.d(m,{PrepaidPackageComponent:()=>B});var l=i(6814),e=i(5879),h=i(4387),M=i(2596),p=i(7081),k=i(5619),u=i(7398),v=i(2181),Z=i(6328),f=i(9887),P=i(5986),d=i(6223),y=i(2425),T=i(7700),A=i(3988),S=i(6493),$=i(8745),N=i(4664),I=i(8017),_=i(2787);let C=(()=>{var n;class c{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,e.f3M)(I.O),this.migrateConfigService=(0,e.f3M)(_.o)}getImageUrls$(t={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,N.w)(a=>(t.RowCount=a.RowCount,this.http.post(`${this.domain}/api/image/PrepaidPackage`,t))))}migrate(t){return this.http.post(`${this.domain}/api/cloudflare/migrate/PrepaidPackage`,{Images:t})}migrateAsync(t){const r={...t,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/PrepaidPackage",r)}}return(n=c).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),c})();function b(n,c){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"button",12),e.NdJ("click",function(){e.CHM(o);const a=e.oxw().ngIf,r=e.oxw();return e.KtG(r.onMigrate(a))}),e._uU(2," Migrate "),e.qZA(),e.BQk()}}function U(n,c){if(1&n){const o=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(o);const a=e.oxw(2);return e.KtG(a.onMigrateAsync())}),e._uU(1," Migrate Async "),e.qZA()}}function J(n,c){if(1&n&&(e.ynx(0),e.YNc(1,b,3,0,"ng-container",10),e.YNc(2,U,2,0,"ng-template",null,11,e.W1O),e.BQk()),2&n){const o=e.MAs(3),t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.totalSelected()>0)("ngIfElse",o)}}function Q(n,c){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"mat-checkbox",14),e.NdJ("change",function(a){const g=e.CHM(o).ngIf,s=e.oxw();return e.KtG(s.onSelectAll(a,g))}),e.qZA(),e.BQk()}}function L(n,c){1&n&&(e.ynx(0),e.TgZ(1,"th"),e._uU(2,"New URL"),e.qZA(),e.BQk())}function w(n,c){if(1&n&&(e.ynx(0),e.TgZ(1,"div",18)(2,"span",19),e._uU(3),e.qZA()(),e.BQk()),2&n){const o=e.oxw(2).$implicit;e.xp6(3),e.Oqu(o.Message)}}function F(n,c){if(1&n&&(e.TgZ(0,"a",16),e._uU(1),e.qZA()),2&n){const o=e.oxw(2).$implicit;e.Q6J("href",o.CloudflareURL,e.LSH),e.xp6(1),e.hij(" ",o.CloudflareURL," ")}}function R(n,c){if(1&n&&(e.ynx(0),e.TgZ(1,"td"),e.YNc(2,w,4,1,"ng-container",10),e.YNc(3,F,2,2,"ng-template",null,17,e.W1O),e.qZA(),e.BQk()),2&n){const o=e.MAs(4),t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",t.Message)("ngIfElse",o)}}function O(n,c){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),e.NdJ("ngModelChange",function(a){const g=e.CHM(o).$implicit;return e.KtG(g.selected=a)})("ngModelChange",function(){const r=e.CHM(o).ngForOf,g=e.oxw();return e.KtG(g.onSelect(r))}),e.qZA()(),e.TgZ(4,"td")(5,"a",16),e._uU(6),e.qZA()(),e.YNc(7,R,5,2,"ng-container",1),e.ALo(8,"async"),e.qZA(),e.BQk()}if(2&n){const o=c.$implicit,t=e.oxw();e.xp6(3),e.Q6J("ngModel",o.selected),e.xp6(2),e.Q6J("href",o.URL,e.LSH),e.xp6(1),e.hij(" ",o.URL," "),e.xp6(1),e.Q6J("ngIf",1==e.lcZ(8,4,t.onMigrate$))}}let B=(()=>{var n;class c{constructor(){this.prepaidPackageMigrate=(0,e.f3M)(C),this.migrateConfig=(0,e.f3M)(_.o),this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$().pipe((0,p.d)(1)),this._onMigrate=new k.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.toastr=(0,e.f3M)(y._W),this.dialog=(0,e.f3M)(T.uw),this.dateFilter={},this.totalSelected=(0,e.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,u.U)(t=>t.RowCount),(0,p.d)(1)),this.pageNumber=(0,e.tdS)(1)}onMigrate(t){let a=t.Data.filter(g=>g.selected);if(0===a.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const r=this.prepaidPackageMigrate.migrate(a).pipe((0,u.U)(g=>(this._onMigrate.next(!0),this.totalSelected.set(0),t.Data=t.Data.map(s=>{s.selected=!1;const x=g.find(D=>D.Path===s.Path);return s.CloudflareURL=x?.URL,s.Message=x?.Message,s}),t)));this.prepaidPackageMigrate$=r.pipe((0,p.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(A.j,{data:{showDateFilter:!1}}).afterClosed().pipe((0,v.h)(t=>S.g.IsNotEmpty(t)),(0,Z.b)(t=>this.prepaidPackageMigrate.migrateAsync({PageNumber:t.pageNumber,RowCount:t.rowCount}))).subscribe(t=>{this.toastr.warning(t.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$().pipe((0,p.d)(1))})}onFilter(){const t={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$(t).pipe((0,p.d)(1))}onPagination(t){this.pageNumber.update(()=>t.pageIndex+1);const a={PageNumber:this.pageNumber()};this.prepaidPackageMigrate$=this.prepaidPackageMigrate.getImageUrls$(a).pipe((0,p.d)(1))}}return(n=c).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-prepaid-package"]],standalone:!0,features:[e._Bn([C]),e.jDz],decls:24,vars:21,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(t,a){if(1&t&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(){return a.onFilter()}),e.TgZ(1,"actions"),e.YNc(2,J,4,2,"ng-container",1),e.ALo(3,"async"),e.qZA(),e.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),e.YNc(12,Q,2,0,"ng-container",1),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Old URL"),e.qZA(),e.YNc(16,L,3,0,"ng-container",1),e.ALo(17,"async"),e.qZA()(),e.TgZ(18,"tbody"),e.YNc(19,O,9,6,"ng-container",8),e.ALo(20,"async"),e.qZA()(),e.TgZ(21,"mat-paginator",9),e.NdJ("page",function(g){return a.onPagination(g)}),e.ALo(22,"async"),e.ALo(23,"async"),e.qZA()()()()()()),2&t){let r,g,s;e.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,9,a.prepaidPackageMigrate$)),e.xp6(10),e.Q6J("ngIf",null==(r=e.lcZ(13,11,a.prepaidPackageMigrate$))?null:r.Data),e.xp6(4),e.Q6J("ngIf",1==e.lcZ(17,13,a.onMigrate$)),e.xp6(3),e.Q6J("ngForOf",null==(g=e.lcZ(20,15,a.prepaidPackageMigrate$))?null:g.Data),e.xp6(2),e.Q6J("length",null==(s=e.lcZ(22,17,a.prepaidPackageMigrate$))?null:s.Count)("pageSize",e.lcZ(23,19,a.rowCount$))("pageIndex",0==a.pageNumber()?0:a.pageNumber()-1)}},dependencies:[l.ez,l.sg,l.O5,l.Ov,h.R,h.p,M.AV,f.TU,f.NW,P.p9,P.oG,d.u5,d.JJ,d.On,$.C8]}),c})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[572],{4572:(R,u,a)=>{a.r(u),a.d(u,{ProductComponent:()=>L});var g=a(6814),t=a(5879),h=a(4387),P=a(2596),l=a(7081),Z=a(7398),y=a(2181),S=a(6328),f=a(9887),C=a(5986),p=a(6223),T=a(2425),A=a(7700),I=a(3988),$=a(6493),M=a(8745),N=a(4664),U=a(8017),m=a(8813),v=a(2787);let x=(()=>{var r;class s{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(U.O),this.migrateConfigService=(0,t.f3M)(v.o)}getImageUrls$(n={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,N.w)(e=>(n.RowCount=e.RowCount,this.http.post(`${this.domain}${m.l.getProductImageMigrate}`,n))))}migrateSelectedImage(n){const e=`${localStorage.getItem("Domain")}`,o=n.map(i=>({URL:i.URL,Path:i.Path}));return this.http.post(m.l.migrateProductImages,{Selected:o,Host:e})}migrateAsync(n){const o={...n,Host:`${localStorage.getItem("Domain")}`};return this.http.post(m.l.migrateProductImagePagination,o)}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),s})();function F(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){const o=t.CHM(c).ngIf,i=t.oxw();return t.KtG(i.onMigrateAsync(o))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function b(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(e){const i=t.CHM(c).ngIf,d=t.oxw();return t.KtG(d.onSelectAll(e,i))}),t.qZA(),t.BQk()}}function J(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",17),t.NdJ("ngModelChange",function(e){const i=t.CHM(c).$implicit;return t.KtG(i.selected=e)})("ngModelChange",function(){const o=t.CHM(c).ngForOf,i=t.oxw();return t.KtG(i.onSelect(o))}),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&r){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 L=(()=>{var r;class s{constructor(){this.productMigrate=(0,t.f3M)(x),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1)),this.migrateConfig=(0,t.f3M)(v.o),this.toastr=(0,t.f3M)(T._W),this.dialog=(0,t.f3M)(A.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,Z.U)(n=>n.RowCount),(0,l.d)(1)),this.pageNumber=(0,t.tdS)(1)}onSelectAll(n,e){e=e.map(o=>(o.selected=n.checked,o)),this.totalSelected.set(e.filter(o=>o.selected)?.length)}onSelect(n){this.totalSelected.set(n.filter(e=>e.selected)?.length)}onMigrateAsync(n){let e=n.Data.filter(o=>o.selected);this.dialog.open(I.j,{data:{showDateFilter:!1,selectedImage:this.totalSelected()}}).afterClosed().pipe((0,y.h)(o=>$.g.IsNotEmpty(o)),(0,S.b)(o=>o.usePaginationFilter?this.productMigrate.migrateAsync({PageNumber:o.pageNumber,RowCount:o.rowCount}):this.productMigrate.migrateSelectedImage(e))).subscribe(o=>{this.totalSelected.set(0),this.toastr.warning(o.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1))})}onFilter(){const n={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.productMigrate$=this.productMigrate.getImageUrls$(n).pipe((0,l.d)(1))}onPagination(n){this.pageNumber.update(()=>n.pageIndex+1);const e={PageNumber:this.pageNumber()};this.productMigrate$=this.productMigrate.getImageUrls$(e).pipe((0,l.d)(1))}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-product-image"]],standalone:!0,features:[t._Bn([x]),t.jDz],decls:30,vars:18,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(n,e){if(1&n&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return e.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 e.dateFilter=i}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,F,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,b,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,J,10,7,"ng-container",13),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"mat-paginator",14),t.NdJ("page",function(i){return e.onPagination(i)}),t.ALo(28,"async"),t.ALo(29,"async"),t.qZA()()()()()()),2&n){let o,i,d;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",e.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,8,e.productMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(o=t.lcZ(19,10,e.productMigrate$))?null:o.Data),t.xp6(7),t.Q6J("ngForOf",null==(i=t.lcZ(26,12,e.productMigrate$))?null:i.Data),t.xp6(2),t.Q6J("length",null==(d=t.lcZ(28,14,e.productMigrate$))?null:d.Count)("pageSize",t.lcZ(29,16,e.rowCount$))("pageIndex",0==e.pageNumber()?0:e.pageNumber()-1)}},dependencies:[g.ez,g.sg,g.O5,g.Ov,g.uU,h.R,h.p,P.AV,f.TU,f.NW,C.p9,C.oG,p.u5,p.JJ,p.On,M.C8,M.Pg]}),s})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[573],{4573:($,m,i)=>{i.r(m),i.d(m,{ImageMigrateComponent:()=>y});var t=i(5879),l=i(4387),h=i(8017);let p=(()=>{var e;class o{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(h.O)}getImageUrls$(){return this.http.get(`${this.domain}/api/image/ReceiptTemplate`)}migrate(){return this.http.post(`${this.domain}/api/cloudflare/migrate/ReceiptTemplate`)}}return(e=o).\u0275fac=function(a){return new(a||e)},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),o})();var c=i(6814),f=i(7081),d=i(5619),_=i(7398),M=i(2596);function x(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",9),t.NdJ("click",function(){const s=t.CHM(n).ngIf,g=t.oxw(2);return t.KtG(g.onMigrate(s))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function I(e,o){if(1&e&&(t.ynx(0),t.YNc(1,x,3,0,"ng-container",1),t.ALo(2,"async"),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,n.imageMigrate$))}}function v(e,o){1&e&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function Z(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",13)(2,"span",14),t._uU(3),t.qZA()(),t.BQk()),2&e){const n=t.oxw(2).$implicit;t.xp6(3),t.Oqu(n.Message)}}function C(e,o){if(1&e&&(t.TgZ(0,"a",10),t._uU(1),t.qZA()),2&e){const n=t.oxw(2).$implicit;t.Q6J("href",n.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",n.CloudflareURL," ")}}function T(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,Z,4,1,"ng-container",11),t.YNc(3,C,2,2,"ng-template",null,12,t.W1O),t.qZA(),t.BQk()),2&e){const n=t.MAs(4),a=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",a.Message)("ngIfElse",n)}}function A(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"a",10),t._uU(4),t.qZA()(),t.YNc(5,T,5,2,"ng-container",1),t.ALo(6,"async"),t.qZA(),t.BQk()),2&e){const n=o.$implicit,a=t.oxw();t.xp6(3),t.Q6J("href",n.URL,t.LSH),t.xp6(1),t.hij(" ",n.URL," "),t.xp6(1),t.Q6J("ngIf",1==t.lcZ(6,3,a.onMigrate$))}}let y=(()=>{var e;class o{constructor(){this.imageMigrate=(0,t.f3M)(p),this.imageMigrate$=this.imageMigrate.getImageUrls$().pipe((0,f.d)(1)),this._onMigrate=new d.X(!1),this.onMigrate$=this._onMigrate.asObservable()}onMigrate(a){const r=this.imageMigrate.migrate().pipe((0,_.U)(s=>(this._onMigrate.next(!0),a=a.map(g=>{const u=s.find(U=>U.Path===g.Path);return g.CloudflareURL=u?.URL,g.Message=u?.Message,g}))));this.imageMigrate$=r.pipe((0,f.d)(1))}}return(e=o).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-image-migrate"]],standalone:!0,features:[t._Bn([p]),t.jDz],decls:19,vars:11,consts:[["Title","Migrate Receipt Logo",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[4,"ngFor","ngForOf"],[1,"row","mt-8"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],["target","_blank",1,"text-break",3,"href"],[4,"ngIf","ngIfElse"],["SHOW_URL",""],[1,"text-break"],[1,"text-danger"]],template:function(a,r){1&a&&(t.TgZ(0,"mainpanel",0)(1,"actions"),t.YNc(2,I,3,3,"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"),t._uU(12,"Old URL"),t.qZA(),t.YNc(13,v,3,0,"ng-container",1),t.ALo(14,"async"),t.qZA()(),t.TgZ(15,"tbody"),t.YNc(16,A,7,5,"ng-container",7),t.ALo(17,"async"),t.qZA()()()(),t._UZ(18,"div",8),t.qZA()()()),2&a&&(t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf",0==t.lcZ(3,5,r.onMigrate$)),t.xp6(11),t.Q6J("ngIf",1==t.lcZ(14,7,r.onMigrate$)),t.xp6(3),t.Q6J("ngForOf",t.lcZ(17,9,r.imageMigrate$)))},dependencies:[c.ez,c.sg,c.O5,c.Ov,l.R,l.p,M.AV]}),o})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[574],{1574:(O,i,a)=>{a.r(i),a.d(i,{ManufactureOutputCostComponent:()=>v});var p=a(6814),t=a(5879),d=a(4387),f=a(4807),h=a(8745),l=a(6223),C=a(8017);let m=(()=>{var n;class o{constructor(){this.httpService=(0,t.f3M)(C.O),this.url=`https://${localStorage.getItem("Domain")}/API/`}recalculateManufactureOutputCost(e,s,r){return this.httpService.post(`${this.url}tools/UnitCost/ManufactureCost`,{From:e,To:s,ListIDs:r})}getOutletList(){return this.httpService.get(`${this.url}Outlet/SelectOptions/2`)}}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),o})();var g=a(2425);let v=(()=>{var n;class o{constructor(){this.manufacturOutputCostService=(0,t.f3M)(m),this.toastr=(0,t.f3M)(g._W),this.outletList$=this.manufacturOutputCostService.getOutletList()}onDateChange(e){this.from=e.from,this.to=e.to}onProcess(){this.from&&this.to&&this.selectedOutlet?this.manufacturOutputCostService.recalculateManufactureOutputCost(this.from,this.to,this.selectedOutlet).subscribe({next:e=>{e.Affected>0?this.toastr.success(`<div class="text-nowrap"><span class="fw-bold">${e.Affected} job orders</span> successfully recalculated.</div>\n <div><span class="fw-bold">${e.NotAffected} job orders</span> not affected.</div>\n `,"Success",{timeOut:3e4,enableHtml:!0}):this.toastr.info("No items affected by the recalculation.","Info")}}):this.toastr.error("Please select a date range and an outlet.","Error")}}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-manufacture-output-cost"]],standalone:!0,features:[t._Bn([m]),t.jDz],decls:20,vars:7,consts:[["Title","Manufacture Output Cost",3,"hideSearchBox","hideSearchDropdown"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"container-fluid"],[1,"d-inline","ms-10","mt-6"],["bindLabel","v","bindValue","k","placeholder","Select an Outlet",2,"width","250px",3,"clearable","items","ngModel","ngModelChange"],[1,"mb-0","mt-8","ms-1"],[2,"width","250px"],[1,"net-sales-filter",3,"dateChange"],[1,"d-inline","ms-10","text-danger"],[1,"mt-2"]],template:function(e,s){1&e&&(t.TgZ(0,"mainpanel",0)(1,"actions")(2,"button",1),t.NdJ("click",function(){return s.onProcess()}),t._uU(3," Process "),t.qZA()(),t.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"h6"),t._uU(8,"Outlet"),t.qZA(),t.TgZ(9,"ng-select",4),t.NdJ("ngModelChange",function(u){return s.selectedOutlet=u}),t.ALo(10,"async"),t.qZA(),t.TgZ(11,"h6",5),t._uU(12,"From - To"),t.qZA(),t.TgZ(13,"div",6)(14,"app-datepicker-range",7),t.NdJ("dateChange",function(u){return s.onDateChange(u)}),t.qZA()()(),t.TgZ(15,"div",8)(16,"h6"),t._uU(17,"NOTES"),t.qZA(),t.TgZ(18,"p",9),t._uU(19," Recalculate will sum material and expense costs, and apply it to the output cost only if there's a single output item. No recalculation if multiple outputs exist. "),t.qZA()()()()()),2&e&&(t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(9),t.Q6J("clearable",!0)("items",t.lcZ(10,5,s.outletList$))("ngModel",s.selectedOutlet))},dependencies:[p.ez,p.Ov,d.R,d.p,f.A0,f.w9,h.C8,h.Pg,l.u5,l.JJ,l.On]}),o})()}}]);
|
|
@@ -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),M=s(2596),g=s(7081),D=s(5619),h=s(7398),v=s(2181),Z=s(6328),f=s(9887),C=s(5986),m=s(6223),T=s(2425),A=s(7700),S=s(3988),$=s(6493),I=s(8745),N=s(4664),b=s(8017),y=s(2787);let _=(()=>{var o;class r{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,N.w)(n=>(e.RowCount=n.RowCount,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(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),r})();function U(o,r){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",12),t.NdJ("click",function(){t.CHM(a);const n=t.oxw().ngIf,i=t.oxw();return t.KtG(i.onMigrate(n))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function J(o,r){if(1&o){const a=t.EpF();t.TgZ(0,"button",13),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 Q(o,r){if(1&o&&(t.ynx(0),t.YNc(1,U,3,0,"ng-container",10),t.YNc(2,J,2,0,"ng-template",null,11,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 L(o,r){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",14),t.NdJ("change",function(n){const l=t.CHM(a).ngIf,c=t.oxw();return t.KtG(c.onSelectAll(n,l))}),t.qZA(),t.BQk()}}function w(o,r){1&o&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function F(o,r){if(1&o&&(t.ynx(0),t.TgZ(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.BQk()),2&o){const a=t.oxw(2).$implicit;t.xp6(3),t.Oqu(a.Message)}}function R(o,r){if(1&o&&(t.TgZ(0,"a",16),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,r){if(1&o&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,F,4,1,"ng-container",10),t.YNc(3,R,2,2,"ng-template",null,17,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,r){if(1&o){const a=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",15),t.NdJ("ngModelChange",function(n){const l=t.CHM(a).$implicit;return t.KtG(l.selected=n)})("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,O,5,2,"ng-container",1),t.ALo(8,"async"),t.qZA(),t.BQk()}if(2&o){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 o;class r{constructor(){this.customerDisplayMigrate=(0,t.f3M)(_),this.migrateConfig=(0,t.f3M)(y.o),this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$().pipe((0,g.d)(1)),this._onMigrate=new D.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.toastr=(0,t.f3M)(T._W),this.dialog=(0,t.f3M)(A.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,h.U)(e=>e.RowCount),(0,g.d)(1)),this.pageNumber=(0,t.tdS)(1)}onMigrate(e){let n=e.Data.filter(l=>l.selected);if(0===n.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const i=this.customerDisplayMigrate.migrate(n).pipe((0,h.U)(l=>(this._onMigrate.next(!0),this.totalSelected.set(0),e.Data=e.Data.map(c=>{c.selected=!1;const x=l.find(Y=>Y.Path===c.Path);return c.CloudflareURL=x?.URL,c.Message=x?.Message,c}),e)));this.customerDisplayMigrate$=i.pipe((0,g.d)(1))}onSelectAll(e,n){n=n.map(i=>(i.selected=e.checked,i)),this.totalSelected.set(n.filter(i=>i.selected)?.length)}onSelect(e){this.totalSelected.set(e.filter(n=>n.selected)?.length)}onMigrateAsync(){this.dialog.open(S.j,{data:{showDateFilter:!1}}).afterClosed().pipe((0,v.h)(e=>$.g.IsNotEmpty(e)),(0,Z.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(){const e={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$(e).pipe((0,g.d)(1))}onPagination(e){this.pageNumber.update(()=>e.pageIndex+1);const n={PageNumber:this.pageNumber()};this.customerDisplayMigrate$=this.customerDisplayMigrate.getImageUrls$(n).pipe((0,g.d)(1))}}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-prepaid-package"]],standalone:!0,features:[t._Bn([_]),t.jDz],decls:24,vars:21,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,n){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return n.onFilter()}),t.TgZ(1,"actions"),t.YNc(2,Q,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,L,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,w,3,0,"ng-container",1),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"tbody"),t.YNc(19,B,9,6,"ng-container",8),t.ALo(20,"async"),t.qZA()(),t.TgZ(21,"mat-paginator",9),t.NdJ("page",function(l){return n.onPagination(l)}),t.ALo(22,"async"),t.ALo(23,"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,n.customerDisplayMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(i=t.lcZ(13,11,n.customerDisplayMigrate$))?null:i.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(17,13,n.onMigrate$)),t.xp6(3),t.Q6J("ngForOf",null==(l=t.lcZ(20,15,n.customerDisplayMigrate$))?null:l.Data),t.xp6(2),t.Q6J("length",null==(c=t.lcZ(22,17,n.customerDisplayMigrate$))?null:c.Count)("pageSize",t.lcZ(23,19,n.rowCount$))("pageIndex",0==n.pageNumber()?0:n.pageNumber()-1)}},dependencies:[p.ez,p.sg,p.O5,p.Ov,d.R,d.p,M.AV,f.TU,f.NW,C.p9,C.oG,m.u5,m.JJ,m.On,I.C8]}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[692],{7692:(O,i,l)=>{l.r(i),l.d(i,{RenumberBillComponent:()=>b});var d=l(6814),e=l(5879),c=l(4387),_=l(4807),p=l(8017),M=l(2425),E=l(7081),h=l(8813),u=l(6493),a=l(6223);let b=(()=>{var r;class m{constructor(){this.httpService=(0,e.f3M)(p.O),this.toastr=(0,e.f3M)(M._W),this.domain=`https://${localStorage.getItem("Domain")}`,this.yearOptions=u.g.GenerateYears((new Date).getFullYear(),11,!0),this.monthOptions=u.g.Month,this.selectedYear=(new Date).getFullYear(),this.selectedMonth=(new Date).getMonth()+1,this.formLoader$=this.httpService.post(`${this.domain}${h.l.renumberInvoice}`).pipe((0,E.d)(1))}onSave(){return this.selectedOutletId?this.selectedMonth?this.selectedYear?void this.httpService.post(`${this.domain}${h.l.saveBillRenumber}`,{EntityID:this.selectedOutletId,Month:this.selectedMonth,Year:this.selectedYear}).subscribe(t=>{if(t.Error.length>0){let n="";t.Error.length>1?(t.Error.forEach(o=>{n+=`<li>${o}</li>`}),n=`<ul>${n}</ul>`):n=t.Error[0],this.toastr.error(n,"Error",{enableHtml:!0})}else this.toastr.success(t.Message,"Success")}):this.toastr.warning("Year must be selected","Year is Empty"):this.toastr.warning("Month must be selected","Month is Empty"):this.toastr.warning("Outlet must be selected","Outlet is Empty")}}return(r=m).\u0275fac=function(s){return new(s||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-renumber-bill"]],standalone:!0,features:[e.jDz],decls:23,vars:13,consts:[["Title","Renumber Bill",3,"hideSearchBox","hideSearchDropdown"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"container-fluid"],[1,"row","border-bottom","mt-5","ms-2"],[1,"col-sm-2","mb-7"],[1,"form-group"],["bindLabel","Name","bindValue","ID","placeholder","Select an Outlet",3,"clearable","items","ngModel","ngModelChange"],[1,"col-sm-2"],["bindLabel","years","bindValue","years","placeholder","Select Year",3,"clearable","items","ngModel","ngModelChange"],["bindLabel","Label","bindValue","ID","placeholder","Select Month",3,"clearable","items","ngModel","ngModelChange"]],template:function(s,t){if(1&s&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"button",1),e.NdJ("click",function(){return t.onSave()}),e._uU(3," Save "),e.qZA()(),e.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"h6"),e._uU(10,"Outlet"),e.qZA(),e.TgZ(11,"ng-select",6),e.NdJ("ngModelChange",function(o){return t.selectedOutletId=o}),e.ALo(12,"async"),e.qZA()()(),e.TgZ(13,"div",7)(14,"div",5)(15,"h6"),e._uU(16,"Year"),e.qZA(),e.TgZ(17,"ng-select",8),e.NdJ("ngModelChange",function(o){return t.selectedYear=o}),e.qZA()()(),e.TgZ(18,"div",7)(19,"div",5)(20,"h6"),e._uU(21,"Month"),e.qZA(),e.TgZ(22,"ng-select",9),e.NdJ("ngModelChange",function(o){return t.selectedMonth=o}),e.qZA()()()()()()()),2&s){let n;e.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(11),e.Q6J("clearable",!0)("items",null==(n=e.lcZ(12,11,t.formLoader$))||null==n.Options?null:n.Options.Entities)("ngModel",t.selectedOutletId),e.xp6(6),e.Q6J("clearable",!0)("items",t.yearOptions)("ngModel",t.selectedYear),e.xp6(5),e.Q6J("clearable",!0)("items",t.monthOptions)("ngModel",t.selectedMonth)}},dependencies:[d.ez,d.Ov,c.R,c.p,_.A0,_.w9,a.u5,a.JJ,a.On]}),m})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[696],{5696:(y,C,i)=>{i.r(C),i.d(C,{CssEditorComponent:()=>F});var d=i(6814),e=i(5879),h=i(4387),p=i(4807),a=i(6223),m=i(8017);let u=(()=>{var n;class r{constructor(){this.domain=localStorage.getItem("Domain"),this.httpService=(0,e.f3M)(m.O)}saveCssFile(t,s){return this.httpService.post("/API/UploadStyles/Submit",{Domain:this.domain,FileName:t,RequestBody:s})}getCssFile(t,s){return this.httpService.post(`https://${this.domain}/API/tools/Advanced/FileTextEditor`,{Filter:{Label:t,Url:s}})}}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),r})();var f=i(7398),S=i(9397),g=i(7081),v=i(2425);function b(n,r){1&n&&e.GkF(0)}let F=(()=>{var n;class r{constructor(){this.cssEditorService=(0,e.f3M)(u),this.toastr=(0,e.f3M)(v._W),this.editedCssContent=(0,e.tdS)(""),this.cssContentSource=(0,e.tdS)(""),this.cssOptions=(0,e.Flj)(()=>[{label:"PaperSizeA4_custom.css",url:"Styles\\Print\\PaperSizeA4_custom.css",backupUrl:"StylesB\\Print\\PaperSizeA4_custom.css"},{label:"PaperSize8cm_custom.css",url:"Styles\\Print\\PaperSize8cm_custom.css",backupUrl:"StylesB\\Print\\PaperSize8cm_custom.css"}]),this.filterSelectedCss=(0,e.tdS)({label:this.cssOptions()[0].label,url:`${this.cssOptions()[0].url}&${this.cssOptions()[0].backupUrl}`})}ngOnInit(){this.initGetCssFile()}initGetCssFile(){this.cssFileContent$=this.cssEditorService.getCssFile(this.filterSelectedCss().label,this.filterSelectedCss().url).pipe((0,f.U)(t=>(t.Url=`https://styles.dealpos.app${t.Url}`,t)),(0,S.b)(t=>{this.editedCssContent.set(t.Text),this.cssContentSource.set(t.Text)}),(0,g.d)(1))}onCssChange(t){this.filterSelectedCss.update(()=>({label:t.label,url:`${t.url}&${t.backupUrl}`})),this.initGetCssFile()}onSaveCssFile(){if(this.cssContentSource()===this.editedCssContent())return void this.toastr.info("No changes detected","Info");const t=this.filterSelectedCss().label,s=this.editedCssContent();this.cssEditorService.saveCssFile(t,s).subscribe(()=>{this.toastr.success("File saved successfully","Success"),this.initGetCssFile()})}}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-css-editor"]],standalone:!0,features:[e._Bn([u]),e.jDz],decls:23,vars:15,consts:[["Title","Css Editor",3,"hideSearchBox","hideSearchDropdown"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"container-fluid"],[1,"d-none","d-sm-block"],[1,"mt-5","d-flex","align-items-center","w-100"],[1,"d-flex","align-items-center","me-4"],["bindLabel","label","bindValue","label","placeholder","Choose css file",1,"ms-5",2,"width","200px",3,"clearable","items","ngModel","change"],[2,"margin-top","6px"],[4,"ngIf"],[2,"width","100%","height","440px","font-size","15px","font-family","Cambria",3,"ngModel","ngModelChange"],[1,"me-3"],["target","_blank",1,"fw-normal",3,"href"]],template:function(t,s){if(1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"button",1),e.NdJ("click",function(){return s.onSaveCssFile()}),e._uU(3,"Save"),e.qZA()(),e.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"label"),e._uU(10,"File Name"),e.qZA(),e.TgZ(11,"ng-select",6),e.NdJ("change",function(o){return s.onCssChange(o)}),e.qZA()()(),e.TgZ(12,"div",7),e.YNc(13,b,1,0,"ng-container",8),e.ALo(14,"async"),e.TgZ(15,"textarea",9),e.NdJ("ngModelChange",function(o){return s.editedCssContent.set(o)}),e.qZA(),e.TgZ(16,"h6")(17,"span",10),e._uU(18,"Css Url:"),e.qZA(),e.TgZ(19,"a",11),e.ALo(20,"async"),e._uU(21),e.ALo(22,"async"),e.qZA()()()()()()()),2&t){let l,o;e.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(11),e.Q6J("clearable",!1)("items",s.cssOptions())("ngModel",s.filterSelectedCss().label),e.xp6(2),e.Q6J("ngIf",e.lcZ(14,9,s.cssFileContent$)),e.xp6(2),e.Q6J("ngModel",s.editedCssContent()),e.xp6(4),e.Q6J("href",null==(l=e.lcZ(20,11,s.cssFileContent$))?null:l.Url,e.LSH),e.xp6(2),e.Oqu(null==(o=e.lcZ(22,13,s.cssFileContent$))?null:o.Url)}},dependencies:[d.ez,d.O5,d.Ov,h.R,h.p,p.A0,p.w9,a.u5,a.Fj,a.JJ,a.On]}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[700],{4700:(N,d,s)=>{s.r(d),s.d(d,{MigrateComponent:()=>P});var g=s(6814),e=s(5879),h=s(4387),T=s(9887),v=s(7398),M=s(8017),A=s(6493);let Z=(()=>{var a;class r{constructor(n){this.datePipe=n,this.domain=`${localStorage.getItem("Domain")}`,this.http=(0,e.f3M)(M.O)}getMigrateHistory(n={logType:null,PageNumber:1,RowCount:100}){const o={...n,domain:this.domain};return this.http.post("/api/Sematext/Notification",o).pipe((0,v.U)(i=>{let l,p;return{data:i.hits.map(u=>(l=this.generateProcessLabel(u?._source?.message),p=this.generateDateLabel(u?._source?.log?.request),{type:u?._source?.logType,process:l,duration:u?._source?.Duration,created:u?._source["@timestamp"],date:p})),total:i.total?.value}}))}generateDateLabel(n){let o="";try{const i=JSON.parse(n),l=i?.From?new Date(i?.From):"",p=i?.To?new Date(i?.To):"";o=this.formatDate(l,p)}catch(i){console.log(i)}return o}formatDate(n,o){let i="-";if(n&&o){const l=A.g.formatTitleFromDate(n,o),p=this.datePipe.transform(n,l);i=`${null==l?"":p+" -"} ${this.datePipe.transform(o,"dd MMM yyyy")}`}return i}generateProcessLabel(n){let o="";try{o=n?JSON.parse(n):null}catch(i){console.log(i)}return o}}return(a=r).\u0275fac=function(n){return new(n||a)(e.LFG(g.uU))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),r})();var c=s(7081),y=s(4807),m=s(6223),C=s(1379);function S(a,r){if(1&a&&(e.ynx(0),e.TgZ(1,"div"),e._uU(2),e.qZA(),e.BQk()),2&a){const t=e.oxw().$implicit;e.xp6(2),e.Oqu(null==t||null==t.process?null:t.process.Message)}}function b(a,r){if(1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"number"),e.qZA(),e.TgZ(3,"div",16),e._uU(4),e.ALo(5,"number"),e.qZA(),e.TgZ(6,"div",17),e._uU(7),e.ALo(8,"number"),e.qZA()),2&a){const t=e.oxw().$implicit;e.xp6(1),e.hij("Total: ",e.lcZ(2,3,null==t||null==t.process?null:t.process.Total),""),e.xp6(3),e.hij("Success: ",e.lcZ(5,5,null==t||null==t.process?null:t.process.Success),""),e.xp6(3),e.hij("Failed: ",e.lcZ(8,7,null==t||null==t.process?null:t.process.Failed),"")}}function L(a,r){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._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"td"),e.YNc(10,S,3,1,"ng-container",14),e.YNc(11,b,9,9,"ng-template",null,15,e.W1O),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"number"),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"date"),e.qZA()(),e.BQk()),2&a){const t=r.$implicit,n=e.MAs(12);e.xp6(3),e.hij(" ",t.type," "),e.xp6(2),e.hij(" ",t.date," "),e.xp6(2),e.hij(" ",null!=t&&null!=t.process&&t.process.PageNumber?e.lcZ(8,7,null==t||null==t.process?null:t.process.PageNumber):"-"," "),e.xp6(3),e.Q6J("ngIf",null==t||null==t.process?null:t.process.Message)("ngIfElse",n),e.xp6(4),e.hij("",e.xi3(15,9,t.duration,"1.1-1")," s"),e.xp6(3),e.Oqu(e.xi3(18,12,t.created,"dd MMM yyyy HH:mm:ss"))}}let P=(()=>{var a;class r{constructor(){this.migrationLogService=(0,e.f3M)(Z),this.signalRService=(0,e.f3M)(C.Y),this.migrationLog$=this.migrationLogService.getMigrateHistory().pipe((0,c.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(n=>{this.onFilter()})}onPagination(n){this.pagination.PageNumber=n.pageIndex+1,this.pagination.RowCount=n.pageSize,this.migrationLog$=this.migrationLogService.getMigrateHistory({logType:this.selectedType,PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount}).pipe((0,c.d)(1))}onFilter(){this.migrationLog$=this.migrationLogService.getMigrateHistory({logType:this.selectedType,PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount}).pipe((0,c.d)(1))}}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-migrate"]],standalone:!0,features:[e._Bn([Z]),e.jDz],decls:31,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"],[2,"width","100px"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page"],[4,"ngIf","ngIfElse"],["OTHER",""],[1,"text-success"],[1,"text-danger"]],template:function(n,o){if(1&n&&(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(l){return o.selectedType=l}),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",11),e._uU(19,"page"),e.qZA(),e.TgZ(20,"th",10),e._uU(21,"Process"),e.qZA(),e.TgZ(22,"th",10),e._uU(23,"Duration"),e.qZA(),e.TgZ(24,"th",10),e._uU(25,"Created"),e.qZA()()(),e.TgZ(26,"tbody"),e.YNc(27,L,19,15,"ng-container",12),e.ALo(28,"async"),e.qZA()(),e.TgZ(29,"mat-paginator",13),e.NdJ("page",function(l){return o.onPagination(l)}),e.ALo(30,"async"),e.qZA()()()()()()),2&n){let i,l;e.Q6J("hideSearchBox",!0),e.xp6(6),e.Q6J("items",o.typeOptions)("ngModel",o.selectedType),e.xp6(21),e.Q6J("ngForOf",null==(i=e.lcZ(28,7,o.migrationLog$))?null:i.data),e.xp6(2),e.Q6J("length",null==(l=e.lcZ(30,9,o.migrationLog$))?null:l.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,y.A0,y.w9,m.u5,m.JJ,m.On],encapsulation:2}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[757],{1757:(p,e,n)=>{n.r(e),n.d(e,{NotificationComponent:()=>u});var l=n(6814),i=n(8184),r=n(8525),t=n(5879);let u=(()=>{var a;class s{constructor(){this.productTabs=[{Title:"Migrate",Url:"/menu/notification/migrate"}]}}return(a=s).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-notification"]],standalone:!0,features:[t.jDz],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(o,_){1&o&&(t.TgZ(0,"nav",0)(1,"div",1)(2,"div"),t._UZ(3,"nav-tab",2),t.qZA()()(),t._UZ(4,"router-outlet")),2&o&&(t.xp6(3),t.Q6J("Tabs",_.productTabs))},dependencies:[l.ez,r.e,i.Bz,i.lC],encapsulation:2}),s})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[792],{8792:(L,u,a)=>{a.r(u),a.d(u,{ExtraProductComponent:()=>J});var g=a(6814),t=a(5879),h=a(4387),P=a(2596),l=a(7081),Z=a(7398),y=a(2181),S=a(6328),f=a(9887),x=a(5986),p=a(6223),T=a(2425),A=a(7700),E=a(3988),I=a(6493),C=a(8745),$=a(4664),N=a(8017),m=a(8813),M=a(2787);let v=(()=>{var r;class s{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(N.O),this.migrateConfigService=(0,t.f3M)(M.o)}getImageUrls$(n={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,$.w)(e=>(n.RowCount=e.RowCount,this.http.post(`${this.domain}${m.l.getExtraProductMigrate}`,n))))}migrateSelectedImage(n){const e=`${localStorage.getItem("Domain")}`,o=n.map(i=>({URL:i.URL,Path:i.Path}));return this.http.post(m.l.migrateExtraProductImages,{Selected:o,Host:e})}migrateAsync(n){const o={...n,Host:`${localStorage.getItem("Domain")}`};return this.http.post(m.l.migrateExtraProductImagePagination,o)}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),s})();function U(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){const o=t.CHM(c).ngIf,i=t.oxw();return t.KtG(i.onMigrateAsync(o))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function F(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(e){const i=t.CHM(c).ngIf,d=t.oxw();return t.KtG(d.onSelectAll(e,i))}),t.qZA(),t.BQk()}}function b(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",17),t.NdJ("ngModelChange",function(e){const i=t.CHM(c).$implicit;return t.KtG(i.selected=e)})("ngModelChange",function(){const o=t.CHM(c).ngForOf,i=t.oxw();return t.KtG(i.onSelect(o))}),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&r){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 J=(()=>{var r;class s{constructor(){this.productMigrate=(0,t.f3M)(v),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1)),this.migrateConfig=(0,t.f3M)(M.o),this.toastr=(0,t.f3M)(T._W),this.dialog=(0,t.f3M)(A.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,Z.U)(n=>n.RowCount),(0,l.d)(1)),this.pageNumber=(0,t.tdS)(1)}onSelectAll(n,e){e=e.map(o=>(o.selected=n.checked,o)),this.totalSelected.set(e.filter(o=>o.selected)?.length)}onSelect(n){this.totalSelected.set(n.filter(e=>e.selected)?.length)}onMigrateAsync(n){let e=n.Data.filter(o=>o.selected);this.dialog.open(E.j,{data:{showDateFilter:!1,selectedImage:this.totalSelected()}}).afterClosed().pipe((0,y.h)(o=>I.g.IsNotEmpty(o)),(0,S.b)(o=>o.usePaginationFilter?this.productMigrate.migrateAsync({PageNumber:o.pageNumber,RowCount:o.rowCount}):this.productMigrate.migrateSelectedImage(e))).subscribe(o=>{this.totalSelected.set(0),this.toastr.warning(o.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1))})}onFilter(){const n={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.productMigrate$=this.productMigrate.getImageUrls$(n).pipe((0,l.d)(1))}onPagination(n){this.pageNumber.update(()=>n.pageIndex+1);const e={PageNumber:this.pageNumber()};this.productMigrate$=this.productMigrate.getImageUrls$(e).pipe((0,l.d)(1))}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-extra-product-image"]],standalone:!0,features:[t._Bn([v]),t.jDz],decls:30,vars:18,consts:[["Title","Migrate Extra 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(n,e){if(1&n&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return e.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 e.dateFilter=i}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,U,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,F,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,b,10,7,"ng-container",13),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"mat-paginator",14),t.NdJ("page",function(i){return e.onPagination(i)}),t.ALo(28,"async"),t.ALo(29,"async"),t.qZA()()()()()()),2&n){let o,i,d;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",e.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,8,e.productMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(o=t.lcZ(19,10,e.productMigrate$))?null:o.Data),t.xp6(7),t.Q6J("ngForOf",null==(i=t.lcZ(26,12,e.productMigrate$))?null:i.Data),t.xp6(2),t.Q6J("length",null==(d=t.lcZ(28,14,e.productMigrate$))?null:d.Count)("pageSize",t.lcZ(29,16,e.rowCount$))("pageIndex",0==e.pageNumber()?0:e.pageNumber()-1)}},dependencies:[g.ez,g.sg,g.O5,g.Ov,g.uU,h.R,h.p,P.AV,f.TU,f.NW,x.p9,x.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([[805],{3805:(c,n,t)=>{t.r(n),t.d(n,{MigrateComponent:()=>s});var m=t(6814),u=t(8525),l=t(8184),e=t(5879);let s=(()=>{var a;class o{constructor(){this.productTabs=[{Title:"Product",Url:"/menu/migrate/product"},{Title:"Extra Product",Url:"/menu/migrate/extra-product"},{Title:"Receipt Logo",Url:"/menu/migrate/receipt-logo"},{Title:"Invoice Payment",Url:"/menu/migrate/invoice-payment"},{Title:"Bill Payment",Url:"/menu/migrate/bill-payment"},{Title:"Customer",Url:"/menu/migrate/customer-image"},{Title:"Supplier",Url:"/menu/migrate/supplier-image"},{Title:"Prepaid Package",Url:"/menu/migrate/prepaid-package"},{Title:"Customer Display",Url:"/menu/migrate/customer-display"},{Title:"Customer Feedback",Url:"/menu/migrate/customer-feedback"}]}}return(a=o).\u0275fac=function(r){return new(r||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-migrate"]],standalone:!0,features:[e.jDz],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(r,p){1&r&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&r&&(e.xp6(3),e.Q6J("Tabs",p.productTabs))},dependencies:[m.ez,u.e,l.Bz,l.lC]}),o})()}}]);
|