dealpostools 2.3.9 → 2.4.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/573.e2ecd3020f30ae64.js +1 -0
- package/tools/611.fd308985093ccab7.js +1 -0
- package/tools/805.9daaee7025aac324.js +1 -0
- package/tools/index.html +2 -2
- package/tools/{main.7fad19da72228755.js → main.98725ddd6065c435.js} +1 -1
- package/tools/runtime.8c8ba79c4611aa4d.js +1 -0
- package/tools/447.7f8299ceaa4b43ee.js +0 -1
- package/tools/runtime.2fb6023a30755869.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dealpostools","version":"2.
|
|
1
|
+
{"name":"dealpostools","version":"2.4.0"}
|
|
@@ -0,0 +1 @@
|
|
|
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})()}}]);
|