mupdf-webviewer
Version:
The web viewer SDK using mupdf.js
3 lines (2 loc) • 24.1 kB
JavaScript
import{a as Me}from"./chunk-GYSDD6ED.js";import{$f as xe,A as K,Ae as de,Bb as U,Bi as Pe,Ca as X,Eb as ae,Fc as me,H as F,Hg as W,Ib as f,Ig as he,Ja as Z,Jb as u,Ka as a,Mb as le,Nf as ge,Oa as m,Pa as L,Qa as P,Ra as E,Rb as ce,Sa as ee,Sb as se,Tb as j,Ua as I,We as fe,Xa as R,Ya as g,Za as te,_a as ne,ac as pe,ag as Ce,cb as l,db as c,dh as ve,eb as h,f as r,hb as $,ib as b,k as Q,kf as B,kg as ye,kh as Oe,lb as x,lf as ue,mb as C,nb as ie,oa as J,ob as oe,pa as w,q as Y,qb as D,qg as _e,rb as T,rc as V,sb as k,tb as G,ub as d,uc as q,va as v,vb as N,vc as z,wa as O,wb as y,xb as re}from"./chunk-FQTIMCVV.js";var Ve=n=>["papycon",n];function ze(n,e){if(n&1){let s=b();l(0,"article",3)(1,"pre",4),x("click",function(i){return v(s),i.preventDefault(),O(i.stopPropagation())}),d(2),c(),h(3,"i"),c()}if(n&2){let s=C();a(2),N(s.text)}}var be=(()=>{let e=class e{isOpenTooltip=!1;text="";icon="questionmark"};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275cmp",P({type:e,selectors:[["hd-tooltip"]],inputs:{text:"text",icon:"icon"},standalone:!1,decls:3,vars:4,consts:[[1,"icon",3,"mouseenter","mouseleave"],[3,"ngClass"],["class","tooltip",4,"ngIf"],[1,"tooltip"],[3,"click"]],template:function(i,o){i&1&&(l(0,"div",0),x("mouseenter",function(){return o.isOpenTooltip=!0})("mouseleave",function(){return o.isOpenTooltip=!1}),h(1,"i",1),c(),I(2,ze,4,1,"article",2)),i&2&&(a(),g("ngClass",ae(2,Ve,"papycon-"+o.icon)),a(),g("ngIf",o.isOpenTooltip))},dependencies:[ce,j],styles:['[_nghost-%COMP%]{position:relative;display:flex}.icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:6px;font-size:15px;color:#6c6c6c}.tooltip[_ngcontent-%COMP%]{position:absolute;background-color:#fff;border-radius:2px;border:solid 1px #DADADA;padding:8px 10px;box-shadow:0 4px 32px #6c6c6c1f;top:0;left:0;z-index:1;transform:translate(-42%,-120%);text-align:initial}.tooltip[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;letter-spacing:-.5px;font-size:13px;line-height:22px;font-family:NotoSans-Medium,sans-serif}.tooltip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:100%;left:50%;margin-left:-12px;width:24px;height:12px;overflow:hidden}.tooltip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:after{content:"";position:absolute;width:12px;height:12px;left:50%;transform:translate(-50%,-50%) rotate(45deg);background-color:#fff;box-shadow:0 4px 32px #6c6c6c1f;border:solid 1px #DADADA}']}));let n=e;return n})();var We=30,Qe=6,S=(()=>{let e=class e{gapSrc=new Q(We);columnsSrc=new Q(Qe);ngOnDestroy(){this.gapSrc.unsubscribe(),this.columnsSrc.unsubscribe()}};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275prov",J({token:e,factory:e.\u0275fac}));let n=e;return n})();var we=(()=>{let e=class e{viewContainerRef;cardService;constructor(t,i){this.viewContainerRef=t,this.cardService=i}ngOnInit(){K([this.cardService.gapSrc,this.cardService.columnsSrc]).subscribe({next:([t,i])=>{this.viewContainerRef.element.nativeElement.style.boxSizing="border-box",this.viewContainerRef.element.nativeElement.style.marginLeft=`${t}px`,this.viewContainerRef.element.nativeElement.style.marginTop=`${t}px`,this.viewContainerRef.element.nativeElement.style.width=`calc(${100/i}% - ${t}px)`}})}};r(e,"\u0275fac",function(i){return new(i||e)(m(L),m(S))}),r(e,"\u0275dir",ee({type:e,selectors:[["","card",""]],standalone:!1}));let n=e;return n})();var Ge=["*"],Ee=(()=>{let e=class e{cardService;_gap;set gap(t){this.cardService.gapSrc.next(t)}set columns(t){this.cardService.columnsSrc.next(t)}constructor(t){this.cardService=t}ngOnInit(){this.cardService.gapSrc.subscribe({next:t=>this._gap=t})}};r(e,"\u0275fac",function(i){return new(i||e)(m(S))}),r(e,"\u0275cmp",P({type:e,selectors:[["card-layout"]],inputs:{gap:"gap",columns:"columns"},standalone:!1,features:[U([S])],ngContentSelectors:Ge,decls:2,vars:4,consts:[[1,"card-wrapper"]],template:function(i,o){i&1&&(ie(),l(0,"div",0),oe(1),c()),i&2&&te("margin-left",o._gap*-1,"px")("margin-top",o._gap*-1,"px")},styles:["[_nghost-%COMP%]{display:block}.card-wrapper[_ngcontent-%COMP%]{display:flex;flex-flow:wrap}"]}));let n=e;return n})();var Ie=(()=>{let e=class e{index;file;delete=new X};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275cmp",P({type:e,selectors:[["welcome-file-card"]],inputs:{index:"index",file:"file"},outputs:{delete:"delete"},standalone:!1,decls:6,vars:2,consts:[[1,"file-name-text"],[1,"file-footer-layout"],[1,"file-size-layout"],[1,"papycon","papycon-trash-can",3,"click"]],template:function(i,o){i&1&&(l(0,"div",0),d(1),c(),l(2,"div",1)(3,"div",2),d(4),c(),l(5,"i",3),x("click",function(){return o.delete.emit(o.index)}),c()()),i&2&&(a(),y(" ",o.file.name,`
`),a(3),y(" ",(o.file.size/(1024*1024)).toFixed(2)," MB "))},styles:["[_nghost-%COMP%]{border-radius:4px;border:solid 1px #DADADA;display:flex;flex-direction:column}.file-name-text[_ngcontent-%COMP%]{font-family:NotoSans-Regular,sans-serif;font-size:14px;line-height:24px;color:#1e1e1e;line-height:19px;letter-spacing:-.5px;text-overflow:ellipsis;overflow:hidden;flex:1 1 auto;height:40px;margin:10px 10px 0}.file-footer-layout[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:space-between;margin:0 10px 5px;color:#6c6c6c}.file-footer-layout[_ngcontent-%COMP%] .file-size-layout[_ngcontent-%COMP%]{font-family:NotoSans-Regular,sans-serif;font-size:13px;line-height:22px;letter-spacing:-.5px}.file-footer-layout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px;line-height:24px;cursor:pointer}"]}));let n=e;return n})();var Ye=["sdToastOutlet"],Ke=["sdModalOutlet"],Je=["formResetRef"],Xe=["fileInputRef"],Ze=["fileLayoutRef"];function et(n,e){if(n&1){let s=b();l(0,"div",24),h(1,"i",25),l(2,"div",26),d(3),c(),l(4,"div",27),d(5),f(6,"translate"),c(),l(7,"button",28),f(8,"translate"),x("click",function(){v(s),C();let i=G(4);return O(i.click())}),d(9),f(10,"translate"),c()()}if(n&2){let s=C();a(3),N(s.fileInputAccept),a(2),y(" ",u(6,4,"DRAG_HERE")," "),a(2),R("aria-label",u(8,6,"ADD_FILE")),a(2),y(" ",u(10,8,s.isStreamdocs?"ADD_FILE":"ADD_FILE_VU")," ")}}function tt(n,e){if(n&1){let s=b();l(0,"welcome-file-card",41),x("delete",function(i){v(s);let o=C(2);return O(o.filesPendingUpload.splice(i,1))}),c()}if(n&2){let s=e.$implicit,t=e.index;g("file",s)("index",t)}}function nt(n,e){if(n&1){let s=b();l(0,"button",42),f(1,"translate"),x("click",function(){v(s);let i=C(2);return O(i.onUploadClicked(!0))}),d(2),f(3,"translate"),h(4,"hd-tooltip",43),c()}if(n&2){let s=C(2);R("aria-label",u(1,3,"OPEN_DAP_DOCUMENT")),a(2),y(" ",u(3,5,"OPEN_DAP_DOCUMENT")," "),a(2),g("text",s.getTranslatedDapTooltipText())}}function it(n,e){if(n&1){let s=b();l(0,"div",29)(1,"div",30)(2,"div",31)(3,"div",32)(4,"div",33),d(5),f(6,"translate"),c(),l(7,"button",34),f(8,"translate"),x("click",function(){v(s),C();let i=G(4);return O(i.click())}),d(9),f(10,"translate"),c(),l(11,"button",35),f(12,"translate"),x("click",function(){v(s);let i=C();return O(i.filesPendingUpload.splice(0))}),d(13),f(14,"translate"),c()(),l(15,"card-layout",36),I(16,tt,1,2,"welcome-file-card",37),c()()(),l(17,"div",38),I(18,nt,5,7,"button",39),l(19,"button",40),f(20,"translate"),x("click",function(){v(s);let i=C();return O(i.onUploadClicked(!1))}),d(21),f(22,"translate"),c()()()}if(n&2){let s=C();a(5),re(" ",s.filesPendingUpload.length,"",u(6,13,"COUNT_OF_FILES")," "),a(2),R("aria-label",u(8,15,"ADD_MORE_FILE")),a(2),y(" ",u(10,17,"ADD_MORE_FILE")," "),a(2),R("aria-label",u(12,19,"RESET")),a(2),y(" ",u(14,21,"RESET")," "),a(2),g("gap",16)("columns",s.fileCardColumnCount),a(),g("ngForOf",s.filesPendingUpload),a(2),g("ngIf",s.isStreamdocs),a(),g("disabled",s.filesPendingUpload.length>1),R("aria-label",u(20,23,"OPEN_DOCUMENT")),a(2),N(u(22,25,"OPEN_DOCUMENT"))}}var _=function(n){return n.PHONE="(min-width: 600px)",n.PABLET="(min-width: 768px)",n.TABLET="(min-width: 992px)",n.SMALL_PC="(min-width: 1280px)",n.WIDE_PC="(min-width: 1440px)",n}(_||{}),Re=(()=>{let e=class e{router;changeDetectionRef;subscriptionService;toastService;modalService;breakpointObserver;translatePipe;resourceService;productService;contentService;fileCardColumnCount;sdToastOutlet;sdModalOutlet;formResetRef;fileInputRef;fileLayoutRef;dragOverActivated=!1;filesPendingUpload=[];fileInputAccept="";get logoUrl(){return this.productService.logo}get isStreamdocs(){return this.productService.isStreamDocs}constructor(t,i,o,p,A,Ae,Fe,Le,Ne,Ue){this.router=t,this.changeDetectionRef=i,this.subscriptionService=o,this.toastService=p,this.modalService=A,this.breakpointObserver=Ae,this.translatePipe=Fe,this.resourceService=Le,this.productService=Ne,this.contentService=Ue}ngOnInit(){this.contentService.togglePageLoader(!1),this.fileInputAccept=this.productService.acceptableExtensions.join(", "),this.subscriptionService.push(this.breakpointObserver.observe([_.PHONE,_.PABLET,_.TABLET,_.SMALL_PC,_.WIDE_PC]).subscribe({next:t=>{t.breakpoints[_.WIDE_PC]?this.fileCardColumnCount=5:t.breakpoints[_.SMALL_PC]?this.fileCardColumnCount=4:t.breakpoints[_.TABLET]?this.fileCardColumnCount=3:t.breakpoints[_.PABLET]?this.fileCardColumnCount=2:t.breakpoints[_.PHONE]?this.fileCardColumnCount=3:this.fileCardColumnCount=2,this.changeDetectionRef.markForCheck()}}))}ngAfterViewInit(){this.toastService.registerOutlet(this.sdToastOutlet),this.modalService.registerOutlet(this.sdModalOutlet),this.subscriptionService.push(F(this.fileLayoutRef.nativeElement,"dragover").subscribe({next:t=>{t.preventDefault(),t.dataTransfer&&(this.dragOverActivated=!0,this.changeDetectionRef.markForCheck())}}),F(this.fileLayoutRef.nativeElement,"dragleave").subscribe({next:t=>{t.preventDefault(),!t.currentTarget.contains(t.relatedTarget)&&(this.dragOverActivated=!1,this.changeDetectionRef.markForCheck())}}),F(this.fileLayoutRef.nativeElement,"drop").subscribe({next:t=>{if(t.preventDefault(),t.dataTransfer){let i=Array.from(t.dataTransfer.files);this.afterFileSelected(this.isStreamdocs?i:i.slice(0,1)),this.dragOverActivated=!1,this.changeDetectionRef.markForCheck()}}}),F(this.fileInputRef.nativeElement,"change").subscribe({next:()=>this.onInputFileChanged()}))}afterFileSelected(t){if(t.map(o=>({file:o,result:fe.checkFileExtension(o,this.productService.acceptableExtensions)})).filter(o=>!o.result).length){this.toastService.create({toastStyle:W.FAILURE,header:this.translatePipe.transform("FAILURE"),content:`${this.translatePipe.transform("INVALID_TYPE")}`});return}this.filesPendingUpload.push(...t),this.isStreamdocs||this.onUploadClicked(!1)}onInputFileChanged(){let t=this.fileInputRef.nativeElement.files;if(t===null)throw new me("No files selected.");this.afterFileSelected(Array.from(t)),this.formResetRef.nativeElement.click(),this.changeDetectionRef.markForCheck()}onUploadClicked(t){if(!this.filesPendingUpload.length)return;this.modalService.createCommonModal({type:xe.SPINNER,title:this.translatePipe.transform("OPEN_DOCUMENT"),content:this.translatePipe.transform("UPLOADING_FILE")});let i=this.filesPendingUpload;this.filesPendingUpload=[];let o=new FormData;t?(o.append("type","dap"),i.forEach(A=>o.append("pdf",A))):o.append("pdf",i[0]);let p=this.resourceService.addDocument(o).subscribe({next:A=>{this.modalService.lastModal?.dispose(),this.toastService.create({toastStyle:W.NOTIFICATION,header:this.translatePipe.transform("SUCCESS"),content:`${this.translatePipe.transform("PDF_DOC_ADDED")}`}),p.unsubscribe(),this.router.navigateByUrl(`view/sd;streamdocsId=${A.streamdocsId}`)},error:()=>{this.modalService.lastModal?.dispose(),this.toastService.create({toastStyle:W.FAILURE,header:this.translatePipe.transform("FAILED"),content:`${this.translatePipe.transform("FAILED_TO_ADD_DOCUMENT")}`}),p.unsubscribe()}})}getTranslatedDapTooltipText(){return this.translatePipe.transform("DAP_TOOLTIP")}};r(e,"\u0275fac",function(i){return new(i||e)(m(V),m(le),m(z),m(he),m(Ce),m(Pe),m(B),m(ve),m(ge),m(Oe))}),r(e,"\u0275cmp",P({type:e,selectors:[["sd-welcome"]],viewQuery:function(i,o){if(i&1&&(D(Ye,7,L),D(Ke,7,L),D(Je,5),D(Xe,5),D(Ze,5)),i&2){let p;T(p=k())&&(o.sdToastOutlet=p.first),T(p=k())&&(o.sdModalOutlet=p.first),T(p=k())&&(o.formResetRef=p.first),T(p=k())&&(o.fileInputRef=p.first),T(p=k())&&(o.fileLayoutRef=p.first)}},standalone:!1,features:[U([z])],decls:31,vars:13,consts:[["formResetRef",""],["fileInputRef",""],["fileLayoutRef",""],["sdToastOutlet",""],["sdModalOutlet",""],["type","reset"],["type","file","name","pdf",3,"multiple","accept"],[1,"main-layout"],[1,"absolute-background-layout"],["src","assets/images/welcome/geometry/top-bottom.svg","alt","",1,"top-middle-geometry"],["src","assets/images/welcome/geometry/right-middle.svg","alt","",1,"right-middle-geometry"],["src","assets/images/welcome/geometry/top-bottom.svg","alt","",1,"bottom-middle-geometry"],["src","assets/images/welcome/geometry/bottom.svg","alt","",1,"bottom"],[1,"nav-layout"],[1,"left"],[1,"logo-layout",3,"src"],["src","assets/images/welcome/epapyrus-logo.svg",1,"company-logo-layout"],[1,"title"],[1,"subtitle"],[1,"file-layout"],["class","file-empty-layout",4,"ngIf"],["class","file-exist-layout",4,"ngIf"],[1,"sd-toast-container"],[1,"sd-modal-container"],[1,"file-empty-layout"],[1,"papycon","papycon-document","file-document-icon"],[1,"file-extension-layout"],[1,"file-description-layout"],["size","small","color","white",1,"ep-button",3,"click"],[1,"file-exist-layout"],[1,"file-exist-scrollable-layout"],[1,"file-merged-layout"],[1,"file-header-layout"],[1,"file-count-layout"],["size","tiny","color","white",1,"ep-button",3,"click"],["size","tiny","color","dark",1,"ep-button",3,"click"],[1,"file-card-layout",3,"gap","columns"],["card","",3,"file","index","delete",4,"ngFor","ngForOf"],[1,"file-upload-buttons-layout"],["class","ep-button file-dap-upload-button","size","small","color","white",3,"click",4,"ngIf"],["size","small","color","primary",1,"ep-button","file-normal-upload-button",3,"click","disabled"],["card","",3,"delete","file","index"],["size","small","color","white",1,"ep-button","file-dap-upload-button",3,"click"],[3,"text"]],template:function(i,o){i&1&&(l(0,"form"),h(1,"input",5,0)(3,"input",6,1),c(),l(5,"div",7)(6,"div",8),h(7,"img",9)(8,"img",10)(9,"img",11)(10,"img",12),c(),l(11,"div",13)(12,"div",14),h(13,"img",15),c(),h(14,"img",16),c(),l(15,"div",17),d(16),f(17,"translate"),c(),l(18,"div",18),d(19),f(20,"translate"),c(),l(21,"div",19,2),I(23,et,11,10,"div",20)(24,it,23,27,"div",21),c()(),l(25,"div",22),$(26,null,3),c(),l(28,"div",23),$(29,null,4),c()),i&2&&(a(3),g("multiple",o.isStreamdocs)("accept",o.fileInputAccept),a(10),g("src",o.logoUrl,Z),a(3),y(" ",u(17,9,o.isStreamdocs?"WELCOME":"WELCOME_VU")," "),a(3),y(" ",u(20,11,o.isStreamdocs?"STREAMDOCS_READY":"STREAMDOCS_VU_READY")," "),a(2),ne("active",o.dragOverActivated),a(2),g("ngIf",!o.filesPendingUpload.length),a(),g("ngIf",o.filesPendingUpload.length))},dependencies:[we,Ee,se,j,be,Ie,B],styles:["form[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{width:100%;height:100%;overflow-y:auto;background-color:#f4f4f4;display:flex}.main-layout[_ngcontent-%COMP%]{z-index:1;position:relative;width:100%;display:flex;flex-direction:column;align-items:center;overflow:hidden}.main-layout[_ngcontent-%COMP%] .absolute-background-layout[_ngcontent-%COMP%]{top:0;left:0;position:absolute;display:flex;flex-direction:column;z-index:-1;width:100%;height:100%;background:#fff;-webkit-user-select:none;user-select:none;pointer-events:none}.main-layout[_ngcontent-%COMP%] .absolute-background-layout[_ngcontent-%COMP%] .top-middle-geometry[_ngcontent-%COMP%]{position:absolute;height:210px;top:-70px;right:calc(50% - 420px)}.main-layout[_ngcontent-%COMP%] .absolute-background-layout[_ngcontent-%COMP%] .right-middle-geometry[_ngcontent-%COMP%]{position:absolute;height:126px;top:257px;right:calc(50% - 747px)}.main-layout[_ngcontent-%COMP%] .absolute-background-layout[_ngcontent-%COMP%] .bottom-middle-geometry[_ngcontent-%COMP%]{position:absolute;height:199px;bottom:-83px;right:calc(50% - 476px)}.main-layout[_ngcontent-%COMP%] .absolute-background-layout[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{position:absolute;height:443px;bottom:-103px;left:calc(50% - 917px)}.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%]{width:100%;height:88px;display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none;pointer-events:none}.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex}.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%] .logo-layout[_ngcontent-%COMP%]{height:24px;width:161px;margin:32px 0 32px 5px}@media screen and (min-width: 768px){.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%] .logo-layout[_ngcontent-%COMP%]{margin-left:40px}}.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%] .company-logo-layout[_ngcontent-%COMP%]{height:34px;width:122px;margin:32px 0}@media screen and (min-width: 768px){.main-layout[_ngcontent-%COMP%] .nav-layout[_ngcontent-%COMP%] .company-logo-layout[_ngcontent-%COMP%]{margin-right:40px}}.main-layout[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:NotoSans-Bold,sans-serif;flex:0 1 auto;font-size:42px;line-height:70px;color:#1e1e1e;max-width:calc(100% - 30px)}@media screen and (min-width: 768px){.main-layout[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-top:92px}}.main-layout[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{font-family:NotoSans-Regular,sans-serif;font-size:16px;line-height:26px;color:#6c6c6c;flex:0 1 auto;max-width:calc(100% - 30px)}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%]{border-radius:6px;border:dashed 1px #6C6C6C;background-color:#fff;margin-top:48px;width:calc(100% - 30px);max-width:1150px}@media screen and (min-width: 768px){.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%]{width:calc(100% - 270px)}}.main-layout[_ngcontent-%COMP%] .file-layout.active[_ngcontent-%COMP%]{border-radius:6px;border:solid 1px #F79F1A;background-color:#fff8ed}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-empty-layout[_ngcontent-%COMP%]{height:286px;display:flex;flex-direction:column;justify-content:center;align-items:center}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-empty-layout[_ngcontent-%COMP%] .file-document-icon[_ngcontent-%COMP%]{font-size:28px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-empty-layout[_ngcontent-%COMP%] .file-extension-layout[_ngcontent-%COMP%]{font-family:NotoSans-Medium,sans-serif;font-size:16px;line-height:26px;margin-top:20px;display:flex;justify-content:center;color:#1e1e1e;letter-spacing:-.5px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-empty-layout[_ngcontent-%COMP%] .file-description-layout[_ngcontent-%COMP%]{font-family:NotoSans-Regular,sans-serif;font-size:16px;line-height:26px;margin-top:14px;display:flex;justify-content:center;color:#1e1e1e;letter-spacing:-.5px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-empty-layout[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%]{min-height:210px;max-height:344px;overflow-y:auto}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%]{margin:28px 15px 0}@media screen and (min-width: 768px){.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%]{margin:28px 113px 0}}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%] .file-header-layout[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%] .file-header-layout[_ngcontent-%COMP%] .file-count-layout[_ngcontent-%COMP%]{font-family:NotoSans-Medium,sans-serif;font-size:13px;line-height:22px;color:#6c6c6c;letter-spacing:-.5px;flex:1 1 auto}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%] .file-header-layout[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-exist-scrollable-layout[_ngcontent-%COMP%] .file-merged-layout[_ngcontent-%COMP%] .file-card-layout[_ngcontent-%COMP%]{width:100%;margin-top:20px;margin-bottom:20px}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%]{background-color:#f4f4f4;display:flex;justify-content:center;align-items:center;flex-direction:column}@media screen and (min-width: 600px){.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%]{flex-direction:row}}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%] .file-dap-upload-button[_ngcontent-%COMP%]{display:flex;justify-content:center;width:calc(100% - 30px);margin-top:18px}@media screen and (min-width: 600px){.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%] .file-dap-upload-button[_ngcontent-%COMP%]{margin:18px 18px 18px 0;width:auto}}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%] .file-dap-upload-button[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;color:#6c6c6c}.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%] .file-normal-upload-button[_ngcontent-%COMP%]{width:calc(100% - 30px);min-width:200px;margin:15px 0 18px}@media screen and (min-width: 600px){.main-layout[_ngcontent-%COMP%] .file-layout[_ngcontent-%COMP%] .file-exist-layout[_ngcontent-%COMP%] .file-upload-buttons-layout[_ngcontent-%COMP%] .file-normal-upload-button[_ngcontent-%COMP%]{margin:18px 0;width:auto}}.sd-toast-container[_ngcontent-%COMP%]{z-index:5;position:absolute;top:40px;right:50px;display:flex;flex-direction:column;pointer-events:none}@media screen and (max-width: 577px){.sd-toast-container[_ngcontent-%COMP%]{top:32px;right:16px}}"],changeDetection:0}));let n=e;return n})();var De=(()=>{let e=class e{};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275mod",E({type:e})),r(e,"\u0275inj",w({}));let n=e;return n})();var ot=[{path:"",component:Re}],Te=(()=>{let e=class e{};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275mod",E({type:e})),r(e,"\u0275inj",w({imports:[q.forChild(ot),q]}));let n=e;return n})();var fn=(()=>{let e=class e{};r(e,"\u0275fac",function(i){return new(i||e)}),r(e,"\u0275mod",E({type:e})),r(e,"\u0275inj",w({imports:[De,pe,ue,Te]}));let n=e;return n})();var ke=class{router;constructor(e){this.router=e.get(V)}canActivate(){return _e.get(ye.WELCOME_PAGE_VISIBLE)&&de.includeWelcome||this.router.createUrlTree(["view","error-pages","404"])}canDeactivate(){return!0}};ke=Y([Me()],ke);export{be as a,Ie as b,Re as c,Te as d,fn as e,ke as f};