dealpostools 2.4.8 → 2.4.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.
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e,h={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=h,e=[],r.O=(n,t,o,i)=>{if(!t){var a=1/0;for(f=0;f<e.length;f++){for(var[t,o,i]=e[f],l=!0,c=0;c<t.length;c++)(!1&i||a>=i)&&Object.keys(r.O).every(u=>r.O[u](t[c]))?t.splice(c--,1):(l=!1,i<a&&(a=i));if(l){e.splice(f--,1);var s=o();void 0!==s&&(n=s)}}return n}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,o,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,o){if(1&o&&(t=this(t)),8&o||"object"==typeof t&&t&&(4&o&&t.__esModule||16&o&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var f={};n=n||[null,e({}),e([]),e(e)];for(var a=2&o&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>f[l]=()=>t[l]);return f.default=()=>t,r.d(i,f),i}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{91:"3a818f4398702422",135:"3a32938812752d7e",153:"6a4ca3c0e489cd80",214:"41c74b01b8fa4a41",528:"3979ba78023531d2",573:"e2ecd3020f30ae64",669:"e17f6802da17b7de",692:"21819262e72254c6",700:"190f0416e2792b5f",757:"e159c8e455d9935b",805:"f4276cdf84d0dc1b",967:"0b1f5043f46fc2a0",983:"8f38392b539466eb",998:"af9c07e59ae5bc0f"}[e]+".js",r.miniCssF=e=>{},r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web-tools:";r.l=(t,o,i,f)=>{if(e[t])e[t].push(o);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var d=c[s];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==n+i){a=d;break}}a||(l=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+i),a.src=r.tu(t)),e[t]=[o];var b=(g,u)=>{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(y=>y(u)),g)return g(u)},p=setTimeout(b.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=b.bind(null,a.onerror),a.onload=b.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="https://cdn.jsdelivr.net/npm/dealpostools@2.4.9/tools/",(()=>{var e={666:0};r.f.j=(o,i)=>{var f=r.o(e,o)?e[o]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=o){var a=new Promise((d,b)=>f=e[o]=[d,b]);i.push(f[2]=a);var l=r.p+r.u(o),c=new Error;r.l(l,d=>{if(r.o(e,o)&&(0!==(f=e[o])&&(e[o]=void 0),f)){var b=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;c.message="Loading chunk "+o+" failed.\n("+b+": "+p+")",c.name="ChunkLoadError",c.type=b,c.request=p,f[1](c)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var n=(o,i)=>{var c,s,[f,a,l]=i,d=0;if(f.some(p=>0!==e[p])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(l)var b=l(r)}for(o&&o(i);d<f.length;d++)r.o(e,s=f[d])&&e[s]&&e[s][0](),e[s]=0;return r.O(b)},t=self.webpackChunkweb_tools=self.webpackChunkweb_tools||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[153],{8656:(B,d,i)=>{i.r(d),i.d(d,{InvoicePaymentComponent:()=>O});var l=i(6814),t=i(5879),h=i(4387),x=i(2596),I=i(8017);let u=(()=>{var e;class g{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(I.O)}getImageUrls$(n={PageNumber:1,RowCount:100}){return this.http.post(`${this.domain}/api/image/InvoicePaymentImage`,n)}migrate(n){return this.http.post(`${this.domain}/api/cloudflare/migrate/InvoicePaymentImage`,{Images:n})}migrateAsync(n){const c={...n,Host:`${localStorage.getItem("Domain")}`};return this.http.post("/api/MigrateImage/InvoicePaymentImage",c)}}return(e=g).\u0275fac=function(n){return new(n||e)},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),g})();var m=i(7081),P=i(5619),C=i(7398),M=i(2181),Z=i(6328),_=i(9887),v=i(5986),p=i(6223),T=i(2425),A=i(7700),N=i(3988),S=i(6493),y=i(8745);function $(e,g){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",17),t.NdJ("click",function(){t.CHM(a);const o=t.oxw().ngIf,c=t.oxw();return t.KtG(c.onMigrate(o))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function b(e,g){if(1&e){const a=t.EpF();t.TgZ(0,"button",18),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(e,g){if(1&e&&(t.ynx(0),t.YNc(1,$,3,0,"ng-container",15),t.YNc(2,b,2,0,"ng-template",null,16,t.W1O),t.BQk()),2&e){const a=t.MAs(3),n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.totalSelected()>0)("ngIfElse",a)}}function J(e,g){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(o){const r=t.CHM(a).ngIf,s=t.oxw();return t.KtG(s.onSelectAll(o,r))}),t.qZA(),t.BQk()}}function F(e,g){1&e&&(t.ynx(0),t.TgZ(1,"th"),t._uU(2,"New URL"),t.qZA(),t.BQk())}function Q(e,g){if(1&e&&(t.ynx(0),t.TgZ(1,"div",23)(2,"span",24),t._uU(3),t.qZA()(),t.BQk()),2&e){const a=t.oxw(2).$implicit;t.xp6(3),t.Oqu(a.Message)}}function L(e,g){if(1&e&&(t.TgZ(0,"a",21),t._uU(1),t.qZA()),2&e){const a=t.oxw(2).$implicit;t.Q6J("href",a.CloudflareURL,t.LSH),t.xp6(1),t.hij(" ",a.CloudflareURL," ")}}function R(e,g){if(1&e&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,Q,4,1,"ng-container",15),t.YNc(3,L,2,2,"ng-template",null,22,t.W1O),t.qZA(),t.BQk()),2&e){const a=t.MAs(4),n=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",n.Message)("ngIfElse",a)}}function w(e,g){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",20),t.NdJ("ngModelChange",function(o){const r=t.CHM(a).$implicit;return t.KtG(r.selected=o)})("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,R,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&e){const a=g.$implicit,n=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,n.onMigrate$)),t.xp6(3),t.hij(" ",t.xi3(11,7,a.Date,"dd MMM yyyy")," ")}}let O=(()=>{var e;class g{constructor(){this.invoicePaymentMigrate=(0,t.f3M)(u),this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$().pipe((0,m.d)(1)),this._onMigrate=new P.X(!1),this.onMigrate$=this._onMigrate.asObservable(),this.pagination={PageNumber:1,RowCount:100},this.toastr=(0,t.f3M)(T._W),this.dialog=(0,t.f3M)(A.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0)}onMigrate(n){let o=n.Data.filter(r=>r.selected);if(0===o.length)return void this.toastr.error("Please select at least one image to migrate.","Error");const c=this.invoicePaymentMigrate.migrate(o).pipe((0,C.U)(r=>(this._onMigrate.next(!0),n.Data=n.Data.map(s=>{s.selected=!1;const f=r.find(k=>k.Path===s.Path);return s.CloudflareURL=f?.URL,s.Message=f?.Message,s}),n)));this.invoicePaymentMigrate$=c.pipe((0,m.d)(1))}onSelectAll(n,o){o=o.map(c=>(c.selected=n.checked,c)),this.totalSelected.set(o.filter(c=>c.selected)?.length)}onSelect(n){this.totalSelected.set(n.filter(o=>o.selected)?.length)}onMigrateAsync(){this.dialog.open(N.j,{data:this.dateFilter}).afterClosed().pipe((0,M.h)(n=>S.g.IsNotEmpty(n)),(0,Z.b)(n=>this.invoicePaymentMigrate.migrateAsync({PageNumber:n.pageNumber,RowCount:n.rowCount,From:n.from,To:n.to}))).subscribe(n=>{this.toastr.warning(n.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$().pipe((0,m.d)(1))})}onFilter(){this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$({PageNumber:this.pagination.PageNumber,RowCount:this.pagination.RowCount,From:this.dateFilter.from,To:this.dateFilter.to}).pipe((0,m.d)(1))}onPagination(n){this.pagination.PageNumber=n.pageIndex+1,this.pagination.RowCount=n.pageSize,this.invoicePaymentMigrate$=this.invoicePaymentMigrate.getImageUrls$(this.pagination).pipe((0,m.d)(1))}}return(e=g).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-invoice-payment"]],standalone:!0,features:[t._Bn([u]),t.jDz],decls:31,vars:19,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(n,o){if(1&n&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return o.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 o.dateFilter=r}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,U,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,J,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,F,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,w,12,10,"ng-container",13),t.ALo(28,"async"),t.qZA()(),t.TgZ(29,"mat-paginator",14),t.NdJ("page",function(r){return o.onPagination(r)}),t.ALo(30,"async"),t.qZA()()()()()()),2&n){let c,r,s;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",o.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,9,o.invoicePaymentMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(c=t.lcZ(19,11,o.invoicePaymentMigrate$))?null:c.Data),t.xp6(4),t.Q6J("ngIf",1==t.lcZ(23,13,o.onMigrate$)),t.xp6(5),t.Q6J("ngForOf",null==(r=t.lcZ(28,15,o.invoicePaymentMigrate$))?null:r.Data),t.xp6(2),t.Q6J("length",null==(s=t.lcZ(30,17,o.invoicePaymentMigrate$))?null:s.Count)("pageSize",o.pagination.RowCount)("pageIndex",0==o.pagination.PageNumber?0:o.pagination.PageNumber-1)}},dependencies:[l.ez,l.sg,l.O5,l.Ov,l.uU,h.R,h.p,x.AV,_.TU,_.NW,v.p9,v.oG,p.u5,p.JJ,p.On,y.C8,y.Pg]}),g})()}}]);