PageSourceSearch

https://preview-9106-ng-zorro-antd.surge.sh/chunk-ZACGXOV7.js

js preview-9106-ng-zorro-antd.surge.sh collected 2026-10-03 15:00:03 UTC 26,251 bytes, 1 lines download raw bytes

1import{a as qt,b as Ht}from"./chunk-TDZC2QNM.js";import{Bc as Vt,D as G,Da as $t,Lc as Bt,Oc as jt,Qc as At,Ua as K,V as St,_a as Pt,a as Lt,ab as Et,c as Nt,d as It,e as Rt,f as Dt,p as Ot,va as J,zc as Mt}from"./chunk-BS5JWHVW.js";import{$,$b as Tt,Aa as w,Ac as Q,Bc as X,E as ht,Fc as u,Gc as Z,Ib as q,Ic as Y,Ja as it,Jb as yt,Ka as zt,Kd as mt,Oa as xt,Ob as p,Sc as st,Tc as E,Ub as v,Vb as s,Wb as H,Xb as P,Xd as kt,Yb as wt,Yd as _t,Zb as ot,_b as lt,_d as tt,a as et,aa as O,ad as U,ae as ut,c as L,ca as gt,cc as m,ec as vt,f as A,fc as Ft,gc as Ut,hc as _,hd as pt,ia as Ct,ic as f,jc as T,ld as S,mc as bt,md as ct,na as M,nb as V,nc as b,o as D,qc as F,rb as c,s as k,sc as a,tc as at,uc as rt,wa as nt,wd as dt,xb as N,z as ft,za as y,zc as W}from"./chunk-NACBYLXS.js";import{a as j}from"./chunk-EQDQRRRY.js";var Zt=["file"],Yt=["nz-upload-btn",""],Qt=["*"],B=n=>({$implicit:n}),Gt=()=>({opacity:.5,"pointer-events":"none"});function Jt(n,l){}function Kt(n,l){if(n&1&&(_(0,"div",16),p(1,Jt,0,0,"ng-template",17),f()),n&2){let t=a(2).$implicit,e=u(5);P("ant-upload-list-item-file",!t.isUploading),c(),s("ngTemplateOutlet",e)("ngTemplateOutletContext",E(4,B,t))}}function te(n,l){if(n&1&&T(0,"img",19),n&2){let t=a(3).$implicit;s("src",t.thumbUrl||t.url,V),v("alt",t.name)}}function ee(n,l){}function ne(n,l){if(n&1&&p(0,ee,0,0,"ng-template",17),n&2){let t=a(3).$implicit,e=u(5);s("ngTemplateOutlet",e)("ngTemplateOutletContext",E(2,B,t))}}function ie(n,l){if(n&1){let t=b();_(0,"a",18),F("click",function(i){y(t);let o=a(2).$implicit,r=a();return w(r.handlePreview(o,i))}),p(1,te,1,2,"img",19)(2,ne,1,4,null,17),f()}if(n&2){let t=a(2).$implicit;P("ant-upload-list-item-file",!t.isImageUrl),s("href",t.url||t.thumbUrl,V),c(),m(t.isImageUrl?1:2)}}function oe(n,l){}function le(n,l){if(n&1&&(_(0,"div",15),p(1,oe,0,0,"ng-template",17),f()),n&2){let t=a(2).$implicit,e=u(5);c(),s("ngTemplateOutlet",e)("ngTemplateOutletContext",E(2,B,t))}}function ae(n,l){if(n&1&&p(0,Kt,2,6,"div",13)(1,ie,3,4,"a",14)(2,le,2,4,"div",15),n&2){let t,e=a().$implicit;m((t=e.iconType)==="uploading"?0:t==="thumbnail"?1:2)}}function re(n,l){n&1&&T(0,"nz-icon",21)}function se(n,l){if(n&1&&T(0,"nz-icon",22),n&2){let t=a(3).$implicit;s("nzType",t.isImageUrl?"picture":"file")}}function pe(n,l){if(n&1&&p(0,re,1,0,"nz-icon",21)(1,se,1,1,"nz-icon",22),n&2){let t=a(2).$implicit;m(t.isUploading?0:1)}}function ce(n,l){if(n&1&&Z(0),n&2){let t=a(5);Y(" ",t.locale.uploading," ")}}function de(n,l){if(n&1&&T(0,"nz-icon",22),n&2){let t=a(3).$implicit;s("nzType",t.isImageUrl?"picture":"file")}}function me(n,l){if(n&1&&p(0,ce,1,1)(1,de,1,1,"nz-icon",22),n&2){let t=a(2).$implicit;m(t.isUploading?0:1)}}function _e(n,l){if(n&1&&T(0,"nz-icon",20),n&2){let t=a(2).$implicit;s("nzType",t.isUploading?"loading":"paper-clip")}}function ue(n,l){if(n&1&&p(0,pe,2,1)(1,me,2,1)(2,_e,1,1,"nz-icon",20),n&2){let t,e=a(3);m((t=e.listType)==="picture"?0:t==="picture-card"?1:2)}}function fe(n,l){}function he(n,l){if(n&1&&p(0,fe,0,0,"ng-template",17),n&2){let t=a().$implicit,e=a(2);s("ngTemplateOutlet",e.iconRender)("ngTemplateOutletContext",E(2,B,t))}}function ge(n,l){if(n&1&&p(0,ue,3,1)(1,he,1,4,null,17),n&2){let t=a(2);m(t.iconRender?1:0)}}function Ce(n,l){if(n&1){let t=b();_(0,"button",24),F("click",function(i){y(t);let o=a(2).$implicit,r=a();return w(r.handleRemove(o,i))}),T(1,"nz-icon",25),f()}if(n&2){let t=a(3);v("title",t.locale.removeFile)}}function ze(n,l){if(n&1&&p(0,Ce,2,1,"button",23),n&2){let t=a(2);m(t.icons.showRemoveIcon?0:-1)}}function xe(n,l){if(n&1){let t=b();_(0,"button",24),F("click",function(){y(t);let i=a(2).$implicit,o=a();return w(o.handleDownload(i))}),T(1,"nz-icon",26),f()}if(n&2){let t=a(3);v("title",t.locale.downloadFile)}}function ye(n,l){if(n&1&&p(0,xe,2,1,"button",23),n&2){let t=a().$implicit;m(t.showDownload?0:-1)}}function we(n,l){}function Te(n,l){}function ve(n,l){if(n&1&&(_(0,"span"),p(1,we,0,0,"ng-template",10)(2,Te,0,0,"ng-template",10),f()),n&2){a(2);let t=u(7),e=u(9),i=a();lt("ant-upload-list-item-card-actions ",i.listType==="picture"?"picture":"",""),c(),s("ngTemplateOutlet",e),c(),s("ngTemplateOutlet",t)}}function Fe(n,l){if(n&1&&p(0,ve,3,5,"span",6),n&2){let t=a(2);m(t.listType!=="picture-card"?0:-1)}}function Ue(n,l){if(n&1){let t=b();_(0,"a",29),F("click",function(i){y(t);let o=a(2).$implicit,r=a();return w(r.handlePreview(o,i))}),Z(1),f()}if(n&2){let t=a(2).$implicit;s("href",t.url,V),v("title",t.name)("download",t.linkProps&&t.linkProps.download),c(),Y(" ",t.name," ")}}function be(n,l){if(n&1){let t=b();_(0,"span",30),F("click",function(i){y(t);let o=a(2).$implicit,r=a();return w(r.handlePreview(o,i))}),Z(1),f()}if(n&2){let t=a(2).$implicit;v("title",t.name),c(),Y(" ",t.name," ")}}function Le(n,l){}function Ne(n,l){if(n&1&&p(0,Ue,2,4,"a",27)(1,be,2,2,"span",28)(2,Le,0,0,"ng-template",10),n&2){let t=a().$implicit,e=u(11);m(t.url?0:1),c(2),s("ngTemplateOutlet",e)}}function Ie(n,l){}function Re(n,l){}function De(n,l){if(n&1){let t=b();_(0,"a",32),F("click",function(i){y(t);let o=a(2).$implicit,r=a();return w(r.handlePreview(o,i))}),T(1,"nz-icon",33),f()}if(n&2){let t=a(2).$implicit,e=a();wt(t.url||t.thumbUrl?null:st(4,Gt)),s("href",t.url||t.thumbUrl,V),v("title",e.locale.previewFile)}}function Oe(n,l){}function Se(n,l){if(n&1&&p(0,Oe,0,0,"ng-template",10),n&2){a(2);let t=u(9);s("ngTemplateOutlet",t)}}function $e(n,l){}function Pe(n,l){if(n&1&&(_(0,"span",11),p(1,De,2,5,"a",31)(2,Se,1,1,null,10)(3,$e,0,0,"ng-template",10),f()),n&2){let t=a().$implicit,e=u(7),i=a();c(),m(i.icons.showPreviewIcon?1:-1),c(),m(t.status==="done"?2:-1),c(),s("ngTemplateOutlet",e)}}function Ee(n,l){if(n&1&&(_(0,"div",12),T(1,"nz-progress",34),f()),n&2){let t=a().$implicit;c(),s("nzPercent",t.percent)("nzShowInfo",!1)("nzStrokeWidth",2)}}function ke(n,l){if(n&1&&(_(0,"div")(1,"div",7),p(2,ae,3,1,"ng-template",null,0,U)(4,ge,2,1,"ng-template",null,1,U)(6,ze,1,1,"ng-template",null,2,U)(8,ye,1,1,"ng-template",null,3,U)(10,Fe,1,1,"ng-template",null,4,U)(12,Ne,3,2,"ng-template",null,5,U),_(14,"div",8)(15,"span",9),p(16,Ie,0,0,"ng-template",10)(17,Re,0,0,"ng-template",10),f()(),p(18,Pe,4,3,"span",11)(19,Ee,2,3,"div",12),f()()),n&2){let t=l.$implicit,e=u(3),i=u(13),o=a();lt("ant-upload-list-",o.listType,"-container"),c(),Tt("ant-upload-list-item ant-upload-list-item-",t.status," ant-upload-list-item-list-type-",o.listType,""),s("@itemState",void 0)("nzTooltipTitle",t.status==="error"?t.message:null),v("data-key",t.key),c(15),s("ngTemplateOutlet",e),c(),s("ngTemplateOutlet",i),c(),m(o.listType==="picture-card"&&!t.isUploading?18:-1),c(),m(t.isUploading?19:-1)}}var Me=["uploadComp"],Ve=["listComp"],Be=()=>[];function je(n,l){if(n&1&&T(0,"nz-upload-list",6,3),n&2){let t=a(2);H("display",t.nzShowUploadList?"":"none"),s("locale",t.locale)("listType",t.nzListType)("items",t.nzFileList||st(13,Be))("icons",t.nzShowUploadList)("iconRender",t.nzIconRender)("previewFile",t.nzPreviewFile)("previewIsImage",t.nzPreviewIsImage)("onPreview",t.nzPreview)("onRemove",t.onRemove)("onDownload",t.nzDownload)("dir",t.dir)}}function Ae(n,l){n&1&&bt(0)}function qe(n,l){if(n&1&&p(0,Ae,1,0,"ng-container",7),n&2){let t=a(2);s("ngTemplateOutlet",t.nzFileListRender)("ngTemplateOutletContext",E(2,B,t.nzFileList))}}function He(n,l){if(n&1&&p(0,je,2,14,"nz-upload-list",5)(1,qe,1,4,"ng-container"),n&2){let t=a();m(t.locale&&!t.nzFileListRender?0:-1),c(),m(t.nzFileListRender?1:-1)}}function We(n,l){n&1&&rt(0)}function Qe(n,l){}function Xe(n,l){if(n&1&&(_(0,"div")(1,"div",8,4),p(3,Qe,0,0,"ng-template",9),f()()),n&2){let t=a(),e=u(3);ot(t.classList),H("display",t.nzShowButton?"":"none"),c(),s("options",t._btnOptions),c(2),s("ngTemplateOutlet",e)}}function Ze(n,l){}function Ye(n,l){}function Ge(n,l){if(n&1){let t=b();_(0,"div",10),F("drop",function(i){y(t);let o=a();return w(o.fileDrop(i))})("dragover",function(i){y(t);let o=a();return w(o.fileDrop(i))})("dragleave",function(i){y(t);let o=a();return w(o.fileDrop(i))}),_(1,"div",11,4)(3,"div",12),p(4,Ze,0,0,"ng-template",9),f()()(),p(5,Ye,0,0,"ng-template",9)}if(n&2){let t=a(),e=u(1),i=u(3);ot(t.classList),c(),s("options",t._btnOptions),c(3),s("ngTemplateOutlet",i),c(),s("ngTemplateOutlet",e)}}function Je(n,l){}function Ke(n,l){}function tn(n,l){if(n&1&&p(0,Je,0,0,"ng-template",9)(1,Ke,0,0,"ng-template",9),n&2){a(2);let t=u(1),e=u(5);s("ngTemplateOutlet",t),c(),s("ngTemplateOutlet",e)}}function en(n,l){}function nn(n,l){}function on(n,l){if(n&1&&p(0,en,0,0,"ng-template",9)(1,nn,0,0,"ng-template",9),n&2){a(2);let t=u(1),e=u(5);s("ngTemplateOutlet",e),c(),s("ngTemplateOutlet",t)}}function ln(n,l){if(n&1&&p(0,tn,2,2)(1,on,2,2),n&2){let t=a();m(t.nzListType==="picture-card"?0:1)}}var an=(()=>{class n{elementRef;reqs={};destroy=!1;destroy$=new A;file;options;onClick(){this.options.disabled||!this.options.openFileDialogOnClick||this.file.nativeElement.click()}onFileDrop(t){if(this.options.disabled||t.type==="dragover"){t.preventDefault();return}if(this.options.directory)this.traverseFileTree(t.dataTransfer.items);else{let e=Array.prototype.slice.call(t.dataTransfer.files).filter(i=>this.attrAccept(i,this.options.accept));e.length&&this.uploadFiles(e)}t.preventDefault()}onChange(t){if(this.options.disabled)return;let e=t.target;this.uploadFiles(e.files),e.value=""}traverseFileTree(t){let e=(i,o)=>{i.isFile?i.file(r=>{this.attrAccept(r,this.options.accept)&&this.uploadFiles([r])}):i.isDirectory&&i.createReader().readEntries(g=>{for(let z of g)e(z,`${o}${i.name}/`)})};for(let i of t)e(i.webkitGetAsEntry(),"")}attrAccept(t,e){if(t&&e){let i=Array.isArray(e)?e:e.split(","),o=`${t.name}`,r=`${t.type}`,g=r.replace(/\/.*$/,"");return i.some(z=>{let h=z.trim();return h.charAt(0)==="."?o.toLowerCase().indexOf(h.toLowerCase(),o.toLowerCase().length-h.toLowerCase().length)!==-1:/\/\*$/.test(h)?g===h.replace(/\/.*$/,""):r===h})}return!0}attachUid(t){return t.uid||(t.uid=Math.random().toString(36).substring(2)),t}uploadFiles(t){let e=D(Array.prototype.slice.call(t));
1this.options.filters&&this.options.filters.forEach(i=>{e=e.pipe($(o=>{let r=i.fn(o);return r instanceof L?r:D(r)}))}),e.subscribe({next:i=>{i.forEach(o=>{this.attachUid(o),this.upload(o,i)})},error:i=>{G("Unhandled upload filter error",i)}})}upload(t,e){if(!this.options.beforeUpload)return this.post(t);let i=this.options.beforeUpload(t,e);if(i instanceof L)i.subscribe({next:o=>{let r=Object.prototype.toString.call(o);r==="[object File]"||r==="[object Blob]"?(this.attachUid(o),this.post(o)):o&&this.post(t)},error:o=>{G("Unhandled upload beforeUpload error",o)}});else if(i)return this.post(t)}post(t){if(this.destroy)return;let e=D(t),i,o=this.options,{uid:r}=t,{action:g,data:z,headers:h,transformFile:R}=o,x={action:typeof g=="string"?g:"",name:o.name,headers:h,file:t,postFile:t,data:z,withCredentials:o.withCredentials,onProgress:o.onProgress?d=>{o.onProgress(d,t)}:void 0,onSuccess:(d,C)=>{this.clean(r),o.onSuccess(d,t,C)},onError:d=>{this.clean(r),o.onError(d,t)}};if(typeof g=="function"){let d=g(t);d instanceof L?e=e.pipe($(()=>d),k(C=>(x.action=C,t))):x.action=d}if(typeof R=="function"){let d=R(t);e=e.pipe($(()=>d instanceof L?d:D(d)),gt(C=>i=C))}if(typeof z=="function"){let d=z(t);d instanceof L?e=e.pipe($(()=>d),k(C=>(x.data=C,i??t))):x.data=d}if(typeof h=="function"){let d=h(t);d instanceof L?e=e.pipe($(()=>d),k(C=>(x.headers=C,i??t))):x.headers=d}e.subscribe(d=>{x.postFile=d;let C=(o.customRequest||this.xhr).call(this,x);C instanceof et||G("Must return Subscription type in '[nzCustomRequest]' property"),this.reqs[r]=C,o.onStart(t)})}xhr(t){let e=new FormData;t.data&&Object.keys(t.data).map(o=>{e.append(o,t.data[o])}),e.append(t.name,t.postFile),t.headers||(t.headers={}),t.headers["X-Requested-With"]!==null?t.headers["X-Requested-With"]="XMLHttpRequest":delete t.headers["X-Requested-With"];let i=new Nt("POST",t.action,e,{reportProgress:!0,withCredentials:t.withCredentials,headers:new Lt(t.headers)});return this.http.request(i).subscribe({next:o=>{o.type===It.UploadProgress?(o.total>0&&(o.percent=o.loaded/o.total*100),t.onProgress(o,t.file)):o instanceof Rt&&t.onSuccess(o.body,t.file,o)},error:o=>{this.abort(t.file),t.onError(o,t.file)}})}clean(t){let e=this.reqs[t];e instanceof et&&e.unsubscribe(),delete this.reqs[t]}abort(t){t?this.clean(t&&t.uid):Object.keys(this.reqs).forEach(e=>this.clean(e))}http=M(Dt,{optional:!0});constructor(t){if(this.elementRef=t,!this.http)throw new Error("Not found 'HttpClient', You can configure 'HttpClient' with 'provideHttpClient()' in your root module.")}ngOnInit(){J(this.elementRef.nativeElement,"click").pipe(O(this.destroy$)).subscribe(()=>this.onClick()),J(this.elementRef.nativeElement,"keydown").pipe(O(this.destroy$)).subscribe(t=>{this.options.disabled||(t.key==="Enter"||t.keyCode===13)&&this.onClick()})}ngOnDestroy(){this.destroy=!0,this.destroy$.next(),this.abort()}static \u0275fac=function(e){return new(e||n)(N(xt))};static \u0275cmp=q({type:n,selectors:[["","nz-upload-btn",""]],viewQuery:function(e,i){if(e&1&&W(Zt,7),e&2){let o;Q(o=X())&&(i.file=o.first)}},hostAttrs:[1,"ant-upload"],hostVars:4,hostBindings:function(e,i){e&1&&F("drop",function(r){return i.onFileDrop(r)})("dragover",function(r){return i.onFileDrop(r)}),e&2&&(v("tabindex","0")("role","button"),P("ant-upload-disabled",i.options.disabled))},inputs:{options:"options"},exportAs:["nzUploadBtn"],attrs:Yt,ngContentSelectors:Qt,decls:3,vars:6,consts:[["file",""],["type","file",3,"change","multiple"]],template:function(e,i){if(e&1){let o=b();at(),_(0,"input",1,0),F("change",function(g){return y(o),w(i.onChange(g))}),f(),rt(2)}e&2&&(H("display","none"),s("multiple",i.options.multiple),v("accept",i.options.accept)("directory",i.options.directory?"directory":null)("webkitdirectory",i.options.directory?"webkitdirectory":null))},encapsulation:2})}return n})(),Wt=n=>!!n&&n.indexOf("image/")===0,I=200,Xt=(()=>{class n{cdr;ngZone;platform;list=[];get showPic(){return this.listType==="picture"||this.listType==="picture-card"}locale={};listType;set items(t){this.list=t}icons;onPreview;onRemove;onDownload;previewFile;previewIsImage;iconRender=null;dir="ltr";document=M(dt);destroy$=new A;genErr(t){return t.response&&typeof t.response=="string"?t.response:t.error&&t.error.statusText||this.locale.uploadError}extname(t){let e=t.split("/"),o=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]}isImageUrl(t){if(Wt(t.type))return!0;let e=t.thumbUrl||t.url||"";if(!e)return!1;let i=this.extname(e);return/^data:image\//.test(e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg)$/i.test(i)?!0:/^data:/.test(e)?!1:!i}getIconType(t){return this.showPic?t.isUploading||!t.thumbUrl&&!t.url?"uploading":"thumbnail":""}previewImage(t){if(!Wt(t.type)||!this.platform.isBrowser)return D("");let e=this.document.createElement("canvas");e.width=I,e.height=I,e.style.cssText=`position: fixed; left: 0; top: 0; width: ${I}px; height: ${I}px; z-index: 9999; display: none;`,this.document.body.appendChild(e);let i=e.getContext("2d"),o=new Image,r=URL.createObjectURL(t);return o.src=r,ft(o,"load").pipe(k(()=>{let{width:g,height:z}=o,h=I,R=I,x=0,d=0;g<z?(R=z*(I/g),d=-(R-h)/2):(h=g*(I/z),x=-(h-R)/2);try{i.drawImage(o,x,d,h,R)}catch{}let C=e.toDataURL();return this.document.body.removeChild(e),URL.revokeObjectURL(r),C}))}genThumb(){if(!this.platform.isBrowser)return;let t=window;!this.showPic||typeof document>"u"||typeof t>"u"||!t.FileReader||!t.File||this.list.filter(e=>
1e.originFileObj instanceof File&&e.thumbUrl===void 0).forEach(e=>{e.thumbUrl="";let i=(this.previewFile?this.previewFile(e):this.previewImage(e.originFileObj)).pipe(O(this.destroy$));this.ngZone.runOutsideAngular(()=>{i.subscribe(o=>{this.ngZone.run(()=>{e.thumbUrl=o,this.detectChanges()})})})})}showDownload(t){return!!(this.icons.showDownloadIcon&&t.status==="done")}fixData(){this.list.forEach(t=>{t.isUploading=t.status==="uploading",t.message=this.genErr(t),t.linkProps=typeof t.linkProps=="string"?JSON.parse(t.linkProps):t.linkProps,t.isImageUrl=this.previewIsImage?this.previewIsImage(t):this.isImageUrl(t),t.iconType=this.getIconType(t),t.showDownload=this.showDownload(t)})}handlePreview(t,e){if(this.onPreview)return e.preventDefault(),this.onPreview(t)}handleRemove(t,e){e.preventDefault(),this.onRemove&&this.onRemove(t)}handleDownload(t){typeof this.onDownload=="function"?this.onDownload(t):t.url&&window.open(t.url)}constructor(t,e,i){this.cdr=t,this.ngZone=e,this.platform=i}detectChanges(){this.fixData(),this.cdr.detectChanges()}ngOnChanges(){this.fixData(),this.genThumb()}ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(e){return new(e||n)(N(pt),N(zt),N(K))};static \u0275cmp=q({type:n,selectors:[["nz-upload-list"]],hostAttrs:[1,"ant-upload-list"],hostVars:8,hostBindings:function(e,i){e&2&&P("ant-upload-list-rtl",i.dir==="rtl")("ant-upload-list-text",i.listType==="text")("ant-upload-list-picture",i.listType==="picture")("ant-upload-list-picture-card",i.listType==="picture-card")},inputs:{locale:"locale",listType:"listType",items:"items",icons:"icons",onPreview:"onPreview",onRemove:"onRemove",onDownload:"onDownload",previewFile:"previewFile",previewIsImage:"previewIsImage",iconRender:"iconRender",dir:"dir"},exportAs:["nzUploadList"],features:[nt],decls:2,vars:0,consts:[["icon",""],["iconNode",""],["removeIcon",""],["downloadIcon",""],["downloadOrDelete",""],["preview",""],[3,"class"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"ant-upload-list-item-info"],[1,"ant-upload-span"],[3,"ngTemplateOutlet"],[1,"ant-upload-list-item-actions"],[1,"ant-upload-list-item-progress"],[1,"ant-upload-list-item-thumbnail",3,"ant-upload-list-item-file"],["target","_blank","rel","noopener noreferrer",1,"ant-upload-list-item-thumbnail",3,"ant-upload-list-item-file","href"],[1,"ant-upload-text-icon"],[1,"ant-upload-list-item-thumbnail"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["target","_blank","rel","noopener noreferrer",1,"ant-upload-list-item-thumbnail",3,"click","href"],[1,"ant-upload-list-item-image",3,"src"],[3,"nzType"],["nzType","loading"],["nzTheme","twotone",3,"nzType"],["type","button","nz-button","","nzType","text","nzSize","small",1,"ant-upload-list-item-card-actions-btn"],["type","button","nz-button","","nzType","text","nzSize","small",1,"ant-upload-list-item-card-actions-btn",3,"click"],["nzType","delete"],["nzType","download"],["target","_blank","rel","noopener noreferrer",1,"ant-upload-list-item-name",3,"href"],[1,"ant-upload-list-item-name"],["target","_blank","rel","noopener noreferrer",1,"ant-upload-list-item-name",3,"click","href"],[1,"ant-upload-list-item-name",3,"click"],["target","_blank","rel","noopener noreferrer",3,"href","style"],["target","_blank","rel","noopener noreferrer",3,"click","href"],["nzType","eye"],["nzType","line",3,"nzPercent","nzShowInfo","nzStrokeWidth"]],template:function(e,i){e&1&&Ft(0,ke,20,14,"div",6,vt),e&2&&Ut(i.list)},dependencies:[Vt,Mt,mt,Et,Pt,At,jt,Bt,Ht,qt],encapsulation:2,data:{animation:[kt("itemState",[ut(":enter",[tt({height:"0",width:"0",opacity:0}),_t(150,tt({height:"*",width:"*",opacity:1}))]),ut(":leave",[_t(150,tt({height:"0",width:"0",opacity:0}))])])]},changeDetection:0})}return n})(),rn=(()=>{class n{cdr;i18n;directionality;static ngAcceptInputType_nzShowUploadList;destroy$=new A;uploadComp;listComp;locale;dir="ltr";nzType="select";nzLimit=0;nzSize=0;nzFileType;nzAccept;nzAction;nzDirectory=!1;nzOpenFileDialogOnClick=!0;nzBeforeUpload;nzCustomRequest;nzData;nzFilter=[];nzFileList=[];nzDisabled=!1;nzHeaders;nzListType="text";nzMultiple=!1;nzName="file";_showUploadList=!0;document=M(dt);set nzShowUploadList(t){this._showUploadList=typeof t=="boolean"?St(t):t}get nzShowUploadList(){return this._showUploadList}nzShowButton=!0;nzWithCredentials=!1;nzRemove;nzPreview;nzPreviewFile;nzPreviewIsImage;nzTransformFile;nzDownload;nzIconRender=null;nzFileListRender=null;nzChange=new it;nzFileListChange=new it;_btnOptions;zipOptions(){typeof this.nzShowUploadList=="boolean"&&this.nzShowUploadList&&(this.nzShowUploadList={showPreviewIcon:!0,showRemoveIcon:!0,showDownloadIcon:!0});let t=this.nzFilter.slice();if(this.nzMultiple&&this.nzLimit>0&&t.findIndex(e=>e.name==="limit")===-1&&t.push({name:"limit",fn:e=>e.slice(-this.nzLimit)}),this.nzSize>0&&t.findIndex(e=>e.name==="size")===-1&&t.push({name:"size",fn:e=>e.filter(i=>i.size/1024<=this.nzSize)}),this.nzFileType&&this.nzFileType.length>0&&t.findIndex(e=>e.name==="type")===-1){let e=this.nzFileType.split(",");t.push({name:"type",fn:i=>i.filter(o=>
1~e.indexOf(o.type))})}return this._btnOptions={disabled:this.nzDisabled,accept:this.nzAccept,action:this.nzAction,directory:this.nzDirectory,openFileDialogOnClick:this.nzOpenFileDialogOnClick,beforeUpload:this.nzBeforeUpload,customRequest:this.nzCustomRequest,data:this.nzData,headers:this.nzHeaders,name:this.nzName,multiple:this.nzMultiple,withCredentials:this.nzWithCredentials,filters:t,transformFile:this.nzTransformFile,onStart:this.onStart,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError},this}platform=M(K);constructor(t,e,i){this.cdr=t,this.i18n=e,this.directionality=i}fileToObject(t){return{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.filename||t.name,size:t.size,type:t.type,uid:t.uid,response:t.response,error:t.error,percent:0,originFileObj:t}}getFileItem(t,e){return e.filter(i=>i.uid===t.uid)[0]}removeFileItem(t,e){return e.filter(i=>i.uid!==t.uid)}onStart=t=>{this.nzFileList||(this.nzFileList=[]);let e=this.fileToObject(t);e.status="uploading",this.nzFileList=this.nzFileList.concat(e),this.nzFileListChange.emit(this.nzFileList),this.nzChange.emit({file:e,fileList:this.nzFileList,type:"start"}),this.detectChangesList()};onProgress=(t,e)=>{let i=this.nzFileList,o=this.getFileItem(e,i);o.percent=t.percent,this.nzChange.emit({event:t,file:j({},o),fileList:this.nzFileList,type:"progress"}),this.detectChangesList()};onSuccess=(t,e)=>{let i=this.nzFileList,o=this.getFileItem(e,i);o.status="done",o.response=t,this.nzChange.emit({file:j({},o),fileList:i,type:"success"}),this.detectChangesList()};onError=(t,e)=>{let i=this.nzFileList,o=this.getFileItem(e,i);o.error=t,o.status="error",this.nzChange.emit({file:j({},o),fileList:i,type:"error"}),this.detectChangesList()};dragState;fileDrop(t){t.type!==this.dragState&&(this.dragState=t.type,this.setClassMap())}detectChangesList(){this.cdr.detectChanges(),this.listComp?.detectChanges()}onRemove=t=>{this.uploadComp.abort(t),t.status="removed";let e=typeof this.nzRemove=="function"?this.nzRemove(t):this.nzRemove==null?!0:this.nzRemove;(e instanceof L?e:D(e)).pipe(ht(i=>i)).subscribe(()=>{this.nzFileList=this.removeFileItem(t,this.nzFileList),this.nzChange.emit({file:t,fileList:this.nzFileList,type:"removed"}),this.nzFileListChange.emit(this.nzFileList),this.cdr.detectChanges()})};prefixCls="ant-upload";classList=[];setClassMap(){let t=[];this.nzType==="drag"?(this.nzFileList.some(e=>e.status==="uploading")&&t.push(`${this.prefixCls}-drag-uploading`),this.dragState==="dragover"&&t.push(`${this.prefixCls}-drag-hover`)):t=[`${this.prefixCls}-select-${this.nzListType}`],this.classList=[this.prefixCls,`${this.prefixCls}-${this.nzType}`,...t,this.nzDisabled&&`${this.prefixCls}-disabled`||"",this.dir==="rtl"&&`${this.prefixCls}-rtl`||""].filter(e=>!!e),this.cdr.detectChanges()}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(O(this.destroy$)).subscribe(t=>{this.dir=t,this.setClassMap(),this.cdr.detectChanges()}),this.i18n.localeChange.pipe(O(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Upload"),this.detectChangesList()})}ngAfterViewInit(){this.platform.FIREFOX&&J(this.document.body,"drop").pipe(O(this.destroy$)).subscribe(t=>{t.preventDefault(),t.stopPropagation()})}ngOnChanges(){this.zipOptions().setClassMap()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(e){return new(e||n)(N(pt),N($t),N(Ot))};static \u0275cmp=q({type:n,selectors:[["nz-upload"]],viewQuery:function(e,i){if(e&1&&(W(Me,5),W(Ve,5)),e&2){let o;Q(o=X())&&(i.uploadComp=o.first),Q(o=X())&&(i.listComp=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&P("ant-upload-picture-card-wrapper",i.nzListType==="picture-card")},inputs:{nzType:"nzType",nzLimit:[2,"nzLimit","nzLimit",ct],nzSize:[2,"nzSize","nzSize",ct],nzFileType:"nzFileType",nzAccept:"nzAccept",nzAction:"nzAction",nzDirectory:[2,"nzDirectory","nzDirectory",S],nzOpenFileDialogOnClick:[2,"nzOpenFileDialogOnClick","nzOpenFileDialogOnClick",S],nzBeforeUpload:"nzBeforeUpload",nzCustomRequest:"nzCustomRequest",nzData:"nzData",nzFilter:"nzFilter",nzFileList:"nzFileList",nzDisabled:[2,"nzDisabled","nzDisabled",S],nzHeaders:"nzHeaders",nzListType:"nzListType",nzMultiple:[2,"nzMultiple","nzMultiple",S],nzName:"nzName",nzShowUploadList:"nzShowUploadList",nzShowButton:[2,"nzShowButton","
1nzShowButton",S],nzWithCredentials:[2,"nzWithCredentials","nzWithCredentials",S],nzRemove:"nzRemove",nzPreview:"nzPreview",nzPreviewFile:"nzPreviewFile",nzPreviewIsImage:"nzPreviewIsImage",nzTransformFile:"nzTransformFile",nzDownload:"nzDownload",nzIconRender:"nzIconRender",nzFileListRender:"nzFileListRender"},outputs:{nzChange:"nzChange",nzFileListChange:"nzFileListChange"},exportAs:["nzUpload"],features:[nt],ngContentSelectors:Qt,decls:8,vars:1,consts:[["list",""],["con",""],["btn",""],["listComp",""],["uploadComp",""],[3,"display","locale","listType","items","icons","iconRender","previewFile","previewIsImage","onPreview","onRemove","onDownload","dir"],[3,"locale","listType","items","icons","iconRender","previewFile","previewIsImage","onPreview","onRemove","onDownload","dir"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-upload-btn","",3,"options"],[3,"ngTemplateOutlet"],[3,"drop","dragover","dragleave"],["nz-upload-btn","",1,"ant-upload-btn",3,"options"],[1,"ant-upload-drag-container"]],template:function(e,i){e&1&&(at(),p(0,He,2,2,"ng-template",null,0,U)(2,We,1,0,"ng-template",null,1,U)(4,Xe,4,6,"ng-template",null,2,U)(6,Ge,6,5)(7,ln,2,1)),e&2&&(c(6),m(i.nzType==="drag"?6:7))},dependencies:[Xt,mt,an],encapsulation:2,changeDetection:0})}return n})(),kn=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=yt({type:n});static \u0275inj=Ct({imports:[rn,Xt]})}return n})();export{rn as a,kn as b};

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.