1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[4780],{84780:(A,v,a)=>{a.d(v,{y:()=>y});var h=a(72200),e=a(73664),g=a(68018),b=a(59519),O=a.n(b),f=a(27200),m=a(7673),u=a(44940),D=a(79104),d=a(89777),c=(a(89291),a(2615)),C=a(17705);let M=(()=>{var n;class s{constructor(){this._overrideDragOverPage=!1}overrideDragOverPage(){this._overrideDragOverPage=!0}allowDragOverPage(){this._overrideDragOverPage=!1}isAllowedDragOverPage(){return!this._overrideDragOverPage}static#e=n=()=>(this.\u0275fac=function(i){return new(i||s)},this.\u0275prov=c.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}))}return n(),s})();var F=a(29330),I=a(67138);const x=n=>({"ds-base-drop-zone-file-over":n}),k=n=>({width:n}),_=n=>({"progress-bar":!0,"bg-success progress-bar-striped progress-bar-animated":n});function U(n,s){if(1&n){const o=e.RV6();e.j41(0,"div",7),e.nI1(1,"async"),e.bIt("fileOver",function(i){c.eBV(o);const r=e.XpG();return c.Njj(r.fileOverDocument(i))}),e.k0s()}if(2&n){const o=e.XpG();e.AVh("ds-document-drop-zone-active",e.bMT(1,3,o.isOverDocumentDropZone)),e.Y8G("uploader",o.uploader)}}function B(n,s){if(1&n&&(e.j41(0,"div",2)(1,"div",8)(2,"p",9),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n){const o=e.XpG();e.R7$(3),e.JRh(e.bMT(4,1,o.dropOverDocumentMsg))}}function T(n,s){if(1&n){const o=e.RV6();e.j41(0,"div",6)(1,"span",10),e.nrm(2,"i",11),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"translate"),e.j41(6,"label",12),e.bIt("keyup.enter",function(i){c.eBV(o);const r=e.sdS(12);return i.stopImmediatePropagation(),c.Njj(r.click())}),e.j41(7,"span",13),e.nI1(8,"translate"),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"input",14,0),e.k0s()()}if(2&n){const o=e.XpG();e.R7$(3),e.Lme(" ",e.bMT(4,9,o.dropMsg),"",e.bMT(5,11,"uploader.or")," "),e.R7$(3),e.Y8G("for",e.VkB("inputFileUploader-",o.uploaderId)),e.R7$(),e.BMQ("aria-label",e.bMT(8,13,o.ariaLabel)),e.R7$(2),e.JRh(e.bMT(10,15,"uploader.browse")),e.R7$(2),e.Y8G("id",e.VkB("inputFileUploader-",o.uploaderId))("uploader",o.uploader)}}function z(n,s){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const o=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"uploader.queue-length"),": ",null==o.uploader||null==o.uploader.queue?null:o.uploader.queue.length," | ")}}function P(n,s){if(1&n&&(e.j41(0,"span",21),e.EFF(1),e.k0s()),2&n){const o=e.XpG(2);e.R7$(),e.SpI("",o.uploader.progress,"%")}}function R(n,s){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"uploader.processing")))}function j(n,s){if(1&n){const o=e.RV6();e.j41(0,"div")(1,"div",15)(2,"div",16)(3,"span",17),e.nVh(4,z,3,4,"span"),e.EFF(5),e.k0s(),e.j41(6,"div",18)(7,"button",19),e.nI1(8,"translate"),e.bIt("click",function(){c.eBV(o);const i=e.XpG();return c.Njj(i.uploader.clearQueue())}),e.nrm(9,"i",20),e.k0s()(),e.nVh(10,P,2,1,"span",21),e.nVh(11,R,3,3,"span",21),e.k0s(),e.j41(12,"div",22),e.nrm(13,"div",23),e.k0s()()()}if(2&n){const o=e.XpG();e.R7$(4),e.vxM(o.uploader.options.disableMultipart?-1:4),e.R7$(),e.SpI("",null==o.uploader||null==o.uploader.queue[0]?null:o.uploader.queue[0].file.name," "),e.R7$(2),e.Y8G("title",e.mNQ(e.bMT(8,9,"uploader.delete.btn-title")))("dsBtnDisabled",!o.uploader.queue.length),e.R7$(3),e.vxM(o.uploader.progress<100&&(0!==o.uploader.progress||o.uploader.options.autoUpload)?10:-1),e.R7$(),e.vxM(100===o.uploader.progress?11:-1),e.R7$(2),e.Y8G("ngStyle",e.eq3(11,k,o.uploader.progress+"%"))("ngClass",e.eq3(13,_,100===o.uploader.progress))}}let y=(()=>{var n;class s{onDragOver(t){this.enableDragOverDocument&&this.dragService.isAllowedDragOverPage()&&(t.preventDefault(),"HTML"!==t.target.tagName&&(this.isOverDocumentDropZone=(0,m.of)(!0)))}constructor(t,i,r,l){this.cdr=t,this.dragService=i,this.tokenExtractor=r,this.cookieService=l,this.ON_BEHALF_HEADER="X-On-Behalf-Of",this.onCompleteItem=new e.bkB,this.onUploadError=ne
1w e.bkB,this.onFileSelected=new e.bkB,this.isOverBaseDropZone=(0,m.of)(!1),this.isOverDocumentDropZone=(0,m.of)(!1)}ngOnInit(){this.uploaderId="ds-drag-and-drop-uploader"+O()(),this.checkConfig(this.uploadFilesOptions),this.uploader=new f.l0({url:this.uploadFilesOptions.url,authToken:this.uploadFilesOptions.authToken,disableMultipart:this.uploadFilesOptions.disableMultipart,itemAlias:this.uploadFilesOptions.itemAlias,removeAfterUpload:!0,autoUpload:this.uploadFilesOptions.autoUpload,method:this.uploadFilesOptions.method,queueLimit:this.uploadFilesOptions.maxFileNumber}),(0,d.b0)(this.enableDragOverDocument)&&(this.enableDragOverDocument=!1),(0,d.b0)(this.dropMsg)&&(this.dropMsg="uploader.drag-message"),(0,d.b0)(this.dropOverDocumentMsg)&&(this.dropOverDocumentMsg="uploader.drag-message")}ngAfterViewInit(){this.uploader.onAfterAddingAll=t=>{this.onFileSelected.emit(t)},(0,d.b0)(this.onBeforeUpload)&&(this.onBeforeUpload=()=>{}),this.uploader.onBeforeUploadItem=t=>{t.url!==this.uploader.options.url&&(t.url=this.uploader.options.url),this.uploader.options.headers=[{name:u.sA,value:this.tokenExtractor.getToken()}],(0,d.a4)(this.uploadFilesOptions.impersonatingID)&&this.uploader.options.headers.push({name:this.ON_BEHALF_HEADER,value:this.uploadFilesOptions.impersonatingID}),this.onBeforeUpload(),this.isOverDocumentDropZone=(0,m.of)(!1)},(0,d.a4)(this.uploadProperties)&&(this.uploader.onBuildItemForm=(t,i)=>{i.append("properties",JSON.stringify(this.uploadProperties))}),this.uploader.onCompleteItem=(t,i,r,l)=>{const p=l[u.oo.toLowerCase()];if((0,d.hj)(p)&&(this.saveXsrfToken(p),this.uploader.options.headers=[{name:u.sA,value:this.tokenExtractor.getToken()}]),(0,d.hj)(i)){const E=JSON.parse(i);this.onCompleteItem.emit(E)}},this.uploader.onErrorItem=(t,i,r,l)=>{const p=l[u.oo.toLowerCase()];(0,d.hj)(p)&&(this.saveXsrfToken(p),this.uploader.options.headers=[{name:u.sA,value:this.tokenExtractor.getToken()}]),this.onUploadError.emit({item:t,response:i,status:r,headers:l}),this.uploader.cancelAll()},this.uploader.onProgressAll=()=>this.onProgress(),this.uploader.onProgressItem=()=>this.onProgress()}fileOverBase(t){this.isOverBaseDropZone=(0,m.of)(t)}fileOverDocument(t){t||(this.isOverDocumentDropZone=(0,m.of)(t))}onProgress(){this.cdr.detectChanges()}checkConfig(t){const r=["url","authToken","disableMultipart","itemAlias"].filter(l=>!(l in t&&""!==t[l]));if(0<r.length)throw new Error("UploadFiles: Argument is missing the following required properties: "+r.join(", "))}saveXsrfToken(t){this.cookieService.remove(u.dX),this.cookieService.set(u.dX,t)}static#e=n=()=>(this.\u0275fac=function(i){return new(i||s)(e.rXU(C.gRc),e.rXU(M),e.rXU(F.B3),e.rXU(I.O))},this.\u0275cmp=e.VBU({type:s,selectors:[["ds-uploader"]],hostBindings:function(i,r){1&i&&e.bIt("dragover",function(p){return r.onDragOver(p)},e.tSv)},inputs:{dropMsg:"dropMsg",dropOverDocumentMsg:"dropOverDocumentMsg",enableDragOverDocument:"enableDragOverDocument",onBeforeUpload:"onBeforeUpload",uploadFilesOptions:"uploadFilesOptions",uploadProperties:"uploadProperties",ariaLabel:"ariaLabel"},outputs:{onCompleteItem:"onCompleteItem",onUploadError:"onUploadError",onFileSelected:"onFileSelected"},decls:11,vars:17,consts:[["fileInput",""],["ng2FileDrop","",1,"ds-document-drop-zone","position-fixed","h-100","w-100",3,"ds-document-drop-zone-active","uploader"],[1,"ds-document-drop-zone-inner","position-fixed","h-100","w-100","p-2"],[1,"row"],[1,"col-md-12"],["ng2FileDrop","",1,"well","ds-base-drop-zone","mt-1","mb-3","text-muted",3,"fileOver","ngClass","uploader"],[1,"text-center","m-0","p-2","d-flex","justify-content-center","align-items-center"],["ng2FileDrop","",1,"ds-document-drop-zone","position-fixed","h-100","w-100",3,"fileOver","uploader"],[1,"ds-document-drop-zone-inner-content","position-relative","d-flex","flex-column","justify-content-center","text-center","h-100","w-100"],[1,"text-primary"],[1,"d-flex","align-items-center"],["aria-hidden","true",1,"fas","fa-upload","pe-1"],["tabindex","0",1,"btn","btn-link","m-0","p-0","ms-1",3,"keyup.enter","for"],["role","button"],["type","file","ng2FileSelect","","multiple","","tabindex","0",1,"d-none",3,"id","uploader"],[1,"m-1"],[1,"upload-item-top"],[1,"filename"],["role","group",1,"btn-group","btn-group-sm","float-end"],["type","button",1,"btn","btn-danger",3,"click","title","dsBtnDisabled"],["aria-hidden","true",1,"fas","fa-tras
1h"],[1,"float-end","me-3"],[1,"ds-base-drop-zone-progress","clearfix","mt-2"],["role","progressbar",2,"height","5px","width","0",3,"ngStyle","ngClass"]],template:function(i,r){1&i&&(e.nVh(0,U,2,5,"div",1),e.nI1(1,"async"),e.nVh(2,B,5,3,"div",2),e.nI1(3,"async"),e.j41(4,"div",3)(5,"div",4)(6,"div",5),e.nI1(7,"async"),e.bIt("fileOver",function(p){return r.fileOverBase(p)}),e.nVh(8,T,13,17,"div",6),e.nVh(9,j,14,15,"div"),e.nI1(10,"async"),e.k0s()()()),2&i&&(e.vxM(e.bMT(1,7,r.isOverDocumentDropZone)?0:-1),e.R7$(2),e.vxM(e.bMT(3,9,r.isOverDocumentDropZone)?2:-1),e.R7$(2),e.BMQ("id",r.uploaderId),e.R7$(2),e.Y8G("ngClass",e.eq3(15,x,e.bMT(7,11,r.isOverBaseDropZone)))("uploader",r.uploader),e.R7$(2),e.vxM(0===(null==r.uploader||null==r.uploader.queue?null:r.uploader.queue.length)?8:-1),e.R7$(),e.vxM(e.bMT(10,13,r.isOverBaseDropZone)||0!==(null==r.uploader||null==r.uploader.queue?null:r.uploader.queue.length)?9:-1))},dependencies:[D.A,h.MD,h.YU,h.B3,f.eB,f.Ff,f.UJ,g.h,h.Jj,g.D9],styles:[".ds-base-drop-zone[_ngcontent-%COMP%]{border:2px dashed var(--bs-gray-600)}.ds-base-drop-zone-file-over[_ngcontent-%COMP%]{border:2px dashed var(--bs-primary)}.ds-base-drop-zone[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{min-height:var(--ds-drop-zone-area-height)}.ds-document-drop-zone[_ngcontent-%COMP%]{top:0;left:0;z-index:-1}.ds-document-drop-zone-active[_ngcontent-%COMP%]{z-index:var(--ds-drop-zone-area-z-index)!important}.ds-document-drop-zone-inner[_ngcontent-%COMP%]{background-color:#ffffffb3;z-index:var(--ds-drop-zone-area-inner-z-index);top:0;left:0}.ds-document-drop-zone-inner-content[_ngcontent-%COMP%]{border:4px dashed var(--bs-primary);z-index:var(--ds-drop-zone-area-inner-z-index)}.ds-document-drop-zone-inner-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:calc(var(--bs-font-size-lg) * 2.5)}"]}))}return n(),s})()}}]);
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.