1import{$ as r,Aa as E,Ba as T,Bb as P,Bc as B,Db as y,Dc as U,Fb as R,Gc as V,Hb as x,Hc as H,L as _,Lb as v,M,O as b,Rb as W,U as C,aa as d,ac as $,bc as k,dc as G,ec as z,ia as u,ma as O,od as D,pd as q,s as A,v as w,va as h,wb as I,wc as F,xa as S,xc as X,za as L}from"./chunk-Z2NZFEFO.js";var p=class c{constructor(n){this.dialogRef=n;this.note=""}ngOnInit(){}noteEmpty(){return this.note.length===0||!this.note.trim()}download(){this.dialogRef.close(this.note)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||c)(M(B))}}static{this.\u0275cmp=b({type:c,selectors:[["app-download-note"]],standalone:!1,decls:16,vars:3,consts:()=>{let n;n=$localize`:âd76775fa158d7d09b86c29c9b2ee78b5b7718d44â2237494380739535940:Download Note`;let t;t=$localize`:â5c54befce78d70e20c215f10a00e617245f53bc9â4388879716045736175:Note`;let i;i=$localize`:âd7b35c384aecd25a516200d6921836374613dfe7â2159130950882492111:Cancel`;let o;return o=$localize`:âdc75033a5238fdc4f462212c847a45ba8018a3fdâ3099741642167775297:Download`,[n,t,i,o,["ngClass.xs","flex-container-small","ngClass.sm","flex-container-small",1,"flex-container"],["ngClass.xs","title-small","ngClass.sm","title-small",1,"title"],[1,"content"],["fxLayout","column","fxLayoutAlign","stretch stretch"],[1,"note-field"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","6","maxlength","500",3,"ngModelChange","ngModel"],["align","end"],["fxLayout","row","fxLayoutAlign","space-between center"],["mat-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",3,"click","disabled"]]},template:function(t,i){t&1&&(r(0,"div",4)(1,"span",5),u(2,0),d(),r(3,"mat-dialog-content",6)(4,"div",7)(5,"mat-form-field",8)(6,"mat-label"),u(7,1),d(),r(8,"textarea",9),T("ngModelChange",function(e){return E(i.note,e)||(i.note=e),e}),d(),r(9,"mat-hint",10),h(10),d()()()(),r(11,"mat-dialog-actions",11)(12,"button",12),O("click",function(){return i.cancel()}),u(13,2),d(),r(14,"button",13),O("click",function(){return i.download()}),u(15,3),d()()()),t&2&&(_(8),L("ngModel",i.note),_(2),S("",i.note.length," / 500"),_(4),C("disabled",i.noteEmpty()))},dependencies:[R,x,W,v,y,P,I,X,G,$,k,F,z,H,V],styles:[".flex-container[_ngcontent-%COMP%]{padding:20px;-webkit-font-smoothing:antialiased}.flex-container-small[_ngcontent-%COMP%]{padding:15px}.title[_ngcontent-%COMP%]{display:block;text-align:center;font-size:30px;font-weight:300;margin-bottom:15px}.title-small[_ngcontent-%COMP%]{font-size:22px;margin-bottom:10px}.content[_ngcontent-%COMP%]{padding:0;margin:0}.note-field[_ngcontent-%COMP%]{width:100%}mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:0;padding:8px 0 0}"]})}};var J=class c{constructor(n,t){this.dataService=n;this.dialog=t;this.isDownloading=!1}downloadImage(n,t,i,o,e,a=null,s=!1){return new Promise((m,f)=>{e?this.dialog.open(p,{width:"400px"}).afterClosed().subscribe(N=>{N?this.downloadActualImage(n,t,i,o,N,a,s).then(()=>{m(null)},K=>{f(K)}):m(null)}):this.downloadActualImage(n,t,i,o,void 0,a,s).then(()=>{m(null)},l=>{f(l)})})}downloadActualImage(n,t,i,o,e,a=null,s=!1){return new Promise((m,f)=>{this.dataService.downloadImage(n,t,i,o,a,s,e).subscribe(l=>{if(!l)return f();m(null),l.value&&window.open(l.value,"_self")},l=>f(l))})}downloadMultiple(n,t){return new Promise((o,e)=>{t?this.dialog.open(p,{width:"400px"}).afterClosed().subscribe(s=>{s?this.downloadActualMultipleImages(n,s).then(g=>{o(g)},g=>{e(g)}):o(void 0)}):this.downloadActualMultipleImages(n,void 0).then(a=>{o(a)},a=>{e(a)})})}downloadActualMultipleImages(n,t){return this.isDownloading=!0,new Promise((o,e)=>{this.dataService.downloadMultipleImages(n,t).subscribe(a=>{if(this.isDownloading=!1,!a)return e();if(a.ready)if(a.galloFileName)window.open(D.apiUrl+"assets/"+a.galloFileName+"/getzippackage","_self");else return e();return o(a.ready)},a=>(this.isDownloading=!1,e(a)))})}downloadPurchase(n){return this.isDownloading=!0,new Promise((i,o)=>{this.dataService.downloadPurchase(n).subscribe(e=>{if(this.isDownloading=!1,e.ready)if(e.galloFileName)window.open(D.apiUrl+"assets/"+e.galloFileName+"/getzippackage","_self");else return o();return i(e.ready)},()=>(this.isDownloading=!1,o()))})}downloadPurchaseByWebInvoiceNo(n){return this.isDownloading=!0,new Promise((i,o)=>{this.dataService.downloadPurchaseByWebInvoiceNo(n).subscribe(e=>{if(this.isDownloading=!1,e.ready)if(e.galloFileName)window.open(D.apiUrl+"assets/"+e.galloFileName+"/getzippackage","_self");else return o();return i(e.ready)},()=>(this.isDownloading=!1,o()))})}static{this.\u0275fac=function(t){return new(t||c)(w(q),w(U))}}static{this.\u0275prov=A({token:c,factory:c.\u0275fac})}};export{J as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.