UNPKG

@rero/rero-ils-ui

Version:

User interface for RERO integrated library system (RERO ILS).

203 lines (183 loc) 568 kB
import{k as Cl,l as Yn,m as wo,o as gl,q as Lo,s as vl,x as xl}from"./chunk-DOJURK4I.js";import{a as le,b as bs,c as Jo,d as Ln,e as ii,i as Ss,j as Ts,k as Pn,l as Mn,n as Jn,o as Ds,p as ws,q as wi,s as Ms,t as Rs,u as As,v as Xo,w as An,x as ks}from"./chunk-SRM7FRU6.js";import{a as Ll,e as Rl,k as ys,l as ue,m as de,n as me,o as Is,p as Es,q as Rn,r as Ls,s as Ps,t as Fs,u as Bs}from"./chunk-SH7HDVOD.js";import{a as Ni,b as Oi,c as ji,d as Ui,f as oe,g as nt,h as Mt}from"./chunk-BNO2ALQS.js";import{$ as pt,$c as bn,$d as Ft,A as Ei,Aa as lr,Ab as ko,Ac as z,Ad as gi,Ae as fs,B as Di,Ba as sr,Bc as jl,Bd as ke,Be as hs,Ca as bl,Cb as Fo,Cc as yn,Cd as Jl,Ce as Qt,Dc as Uo,Dd as ye,E as yo,Ea as Mo,Eb as Bo,Ec as $o,Ed as Xl,Ee as Ko,F as sl,Fa as Sl,Fc as Lt,Fd as es,Fe as Cs,G as bo,Gb as at,Gc as dt,Ge as gs,H as Gn,Ha as He,Hd as ts,I as Ri,Ic as Ue,Ie as Wi,J as cl,Ja as hn,Jc as Ul,Je as Zo,K as So,Ka as ti,Kb as Vo,Kc as $l,Ke as mt,L as qe,La as Bi,Le as wn,M as Qn,Ma as Cn,Mb as We,Mc as gt,Me as vs,N as pl,Na as Tl,Nb as dr,Nc as ql,Ne as xs,O as dl,Oa as en,Ob as qt,Od as Sn,P as or,Pa as Ro,Pd as Pe,Q as ml,Qa as Il,Qc as Hl,Qd as is,R as _n,Ra as El,Rb as Pl,Rd as ns,S as he,Sc as et,Sd as Tn,T as lt,Tc as qo,Td as os,U as st,Ub as ci,Uc as zl,Ud as In,V as Ai,Vb as Ml,Vd as as,W as To,Wb as pi,Wd as M,X as Io,Xb as di,Xd as Te,Y as ki,Yb as mi,Z as ct,Za as Dl,Zb as ui,Zc as Kn,Zd as it,_b as _i,_c as tt,_d as kt,a as sn,aa as Eo,ac as be,ad as Be,ae as Qo,b as rl,ba as Do,bd as Gl,c as go,ca as ri,cb as wl,cc as xn,cd as fi,ce as Ke,da as ul,db as Vi,dd as xe,ea as _l,ec as Al,ed as Ho,ee as rs,fa as fn,fb as cr,fc as No,fd as Ql,fe as En,g as X,ga as fl,ge as Dn,h as vo,ha as hl,hc as kl,hd as hi,he as vt,i as ei,ic as Hi,id as Zn,ja as yl,jd as mr,je as ls,ka as ar,kb as li,kc as Oo,kd as zi,ke as Yo,lc as jo,ld as Yl,le as ss,m as cn,mc as Fl,md as Wl,me as Gi,n as pn,nb as Ao,nc as Bl,nd as Ce,ne as cs,o as Ii,oa as Po,oc as Vl,oe as ps,p as At,pa as Xi,pb as gn,pc as $,pd as Kl,pe as Qi,q as W,qc as A,qd as Ht,qe as ds,r as dn,rb as $i,rc as L,rd as zo,re as ms,s as ll,sc as Nl,sd as tn,se as us,t as mn,tb as si,td as Go,te as Wo,u as un,ub as pr,ud as j,ue as zt,v as wt,va as rr,vb as vn,vd as ge,ve as xt,w as ai,wa as Wn,wb as Q,wc as ht,wd as Zl,we as Gt,xa as Fi,xc as Ol,xd as Ci,xe as Yi,y as $t,yb as qi,yd as $e,ye as pe,z as xo,zc as Ct,zd as Pt,ze as _s}from"./chunk-DMPOHDCX.js";import{$ as Se,$b as D,$c as Jt,Aa as Gr,Ab as Nt,Bb as te,Bc as _e,C as Je,Ca as se,Cc as s,Da as Li,Db as _,Dc as x,E as er,Ec as v,F as Vr,Fc as G,Ga as Qr,Gc as Mi,H as Nr,Ha as ln,Hc as It,I as Or,Ia as Yr,Ic as Et,Ja as bt,Jc as Dt,K as Ve,Kc as Ye,L as ro,Lb as Jr,Lc as _t,M as jr,Mc as je,N as Ur,Na as uo,Nc as Ut,O as an,Oa as Hn,Ob as ot,Oc as ae,Pb as ut,Pc as V,Q as $r,Qb as Xr,Qc as H,Ra as ir,Rb as K,Rc as fo,S as qr,Sb as d,Sc as tl,T as lo,Tb as Rt,Tc as il,Ub as Ji,Vb as Pi,Wb as Ne,Wc as nl,Xb as ni,Y as so,Yb as m,Yc as u,Zb as P,Zc as f,_ as tr,_b as nr,_c as B,a as Ie,ac as w,ad as ce,b as ze,ba as Ge,bc as l,bd as ol,ca as Hr,cb as ne,cc as r,cd as q,db as we,dc as h,ec as Ee,f as kr,fa as U,fc as De,fd as al,g as Fr,ga as yt,gc as Oe,h as Ae,hb as a,hc as R,ia as rn,id as ho,j as oo,ka as Tt,la as C,lb as _o,m as Zi,ma as zr,mb as Wr,n as Si,nb as Ti,nc as T,nd as rt,ob as Kr,oc as c,od as Xt,pc as oi,qc as Ot,qd as zn,r as ao,rc as Qe,rd as Co,s as N,sa as co,sb as Zr,sc as Xe,ta as b,tc as el,ua as S,uc as Ze,va as po,vc as jt,w as F,wa as ee,wc as Me,x as on,xb as y,xc as Re,y as Br,ya as mo,yb as St}from"./chunk-GDWQHTGO.js";var Pd=kr((Pr,Za)=>{(function(t){var o=function(){"use strict";var e="^(\\d{4})-?(\\d{3})([\\dX])$",i=new RegExp(e),n=new RegExp(e,"i");function p(J){var re=k(J).match(i);if(!re)return!1;var Le=re[3],Zt=I(re[1]+re[2]);return Zt===Le}p.format=function(re){var Le=k(re).match(n);return Le?Le[1]+"-"+Le[2]+Le[3].toUpperCase():void 0};var g=new RegExp("^(\\d{7})$");p.calculateCheckDigit=function(re){if(!Y(re))throw new Error("Digits must be a string of 7 numeric characters.");if(!re.match(g))throw new Error("Digits are malformed; expecting 7 numeric characters.");return I(re)};function I(J){var re=J.split("").reverse().reduce(function(Zt,Gd,Qd){return Zt+Gd*(Qd+2)},0)%11,Le=re===0?0:11-re;return Le===10&&(Le="X"),Le.toString()}function k(J){return Y(J)?J:""}function Y(J){return typeof J=="string"}return p}();typeof Pr<"u"?Za&&typeof Za.exports<"u"&&(Za.exports=o):t.issn=o})(Pr)});var Md=kr(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var xw;(function(t){function o(k){if(typeof k!="string")throw new TypeError("Invalid ISBN");if(k=k.replace(/[- ]/gi,""),g(k))return k;if(!p(k))throw new TypeError("Invalid ISBN");return k="978"+k.substring(0,k.length-1),k+i(k)}t.toIsbn13=o;function e(k){if(typeof k!="string")throw new TypeError("Invalid ISBN");if(k=k.replace(/[- ]/gi,""),p(k))return k;if(!g(k))throw new TypeError("Invalid ISBN");if(!k.startsWith("978"))throw new TypeError("Cannot convert ISBN-13 starting with "+k.substr(0,3)+" to ISBN-10");return k=k.substr(3,9),k=k.concat(n(k)),k}t.toIsbn10=e;function i(k){if(!/^\d{12}$/.test(k))throw new TypeError("Invalid partial ISBN 13");let Y=k.split(""),J=0;for(let re=0;re<12;re++)J+=parseInt(Y[re])*(re%2?3:1);return((10-J%10)%10).toString()}t.calculateIsbn13Code=i;function n(k){if(!/^\d{9}$/.test(k))throw new TypeError("Invalid partial ISBN 10");let Y=0,J=0;for(let re=10;re>1;re--)J+=parseInt(k[Y++])*re;switch(J=11-J%11,J){case 10:return"X";case 11:return"0"}return J.toString()}t.calculateIsbn10Code=n;function p(k){if(!/^[\d]{9}[\dX]$/i.test(k))return!1;let Y=k.split("");Y[9].toUpperCase()==="X"&&(Y[9]="10");let J=0;for(let re=0;re<Y.length;re++)J+=(10-re)*parseInt(Y[re]);return J%11===0}t.isValidIsbn10=p;function g(k){if(!/^[\d]{13}$/i.test(k))return!1;for(var Y=k.split(""),J=0,re=0;re<Y.length;re++)re%2===0?J+=parseInt(Y[re]):J+=parseInt(Y[re])*3;return J%10===0}t.isValidIsbn13=g;function I(k){return typeof k!="string"?!1:(k=k.replace(/[- ]/gi,""),k.length===10?p(k):k.length===13?g(k):!1)}t.isValidIsbn=I})(xw=Ja.isbn||(Ja.isbn={}))});var Yd=(()=>{class t extends Lo{constructor(e,i,n){super(e,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(Tt(sn),Tt(Yn),Tt(wo))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function Wd(){return new gl}function Kd(t,o,e){return new xl(t,o,e)}var Ns=[{provide:wo,useFactory:Wd},{provide:Lo,useClass:Yd},{provide:_o,useFactory:Kd,deps:[yo,Lo,Li]}],Zd=[{provide:Yn,useClass:Cl},{provide:Hn,useValue:"NoopAnimations"},...Ns],Vs=[{provide:Yn,useFactory:()=>new vl},{provide:Hn,useFactory:()=>"BrowserAnimations"},...Ns],Os=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Zd:Vs}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=St({type:t});static \u0275inj=yt({providers:Vs,imports:[bo]})}return t})();var js=(()=>{class t extends Ro{static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275cmp=y({type:t,selectors:[["BarsIcon"]],features:[te],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(i,n){i&1&&(po(),l(0,"svg",0),h(1,"path",1),r()),i&2&&(Ne(n.getClassNames()),K("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return t})();var Us=(()=>{class t extends Ro{pathId;ngOnInit(){this.pathId="url(#"+Mo()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275cmp=y({type:t,selectors:[["UploadIcon"]],features:[te],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(po(),l(0,"svg",0)(1,"g"),h(2,"path",1),r(),l(3,"defs")(4,"clipPath",2),h(5,"rect",3),r()()()),i&2&&(Ne(n.getClassNames()),K("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),a(),K("clip-path",n.pathId),a(3),d("id",n.pathId))},encapsulation:2})}return t})();function Jd(t,o){if(t&1&&(l(0,"div",3),h(1,"div",4),r()),t&2){let e=c(2);a(),Rt("width",e.diameter)("height",e.diameter)}}function Xd(t,o){if(t&1&&h(0,"div",5),t&2){let e=c().ngIf,i=c();Rt("background",i.color)("height",i.height)("width",e+"%")}}function em(t,o){if(t&1&&(Ee(0),_(1,Jd,2,4,"div",1)(2,Xd,1,6,"div",2),De()),t&2){let e=c();a(),d("ngIf",e.includeSpinner),a(),d("ngIf",e.includeBar)}}function tm(t,o){if(t&1&&(l(0,"div",3),h(1,"div",4),r()),t&2){let e=c(2);a(),Rt("width",e.diameter)("height",e.diameter)}}function im(t,o){if(t&1&&h(0,"div",5),t&2){let e=c().ngIf,i=c();Rt("background",i.color)("height",i.height)("width",e+"%")}}function nm(t,o){if(t&1&&(Ee(0),_(1,tm,2,4,"div",1)(2,im,1,6,"div",2),De()),t&2){let e=c();a(),d("ngIf",e.includeSpinner),a(),d("ngIf",e.includeBar)}}var om="[_nghost-%COMP%]{position:relative;display:block;pointer-events:none}[_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{transition:.35s linear all;display:block;position:absolute;top:5px;left:0}[_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%] .ngx-spinner-icon[_ngcontent-%COMP%]{width:14px;height:14px;border:solid 2px transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;animation:_ngcontent-%COMP%_loading-bar-spinner .4s linear infinite}[_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{transition:width .35s;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] [_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{right:0;left:unset}[fixed=true][_nghost-%COMP%]{z-index:10002}[fixed=true][_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}[dir=rtl] [fixed=true][_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{right:10px;left:unset}@keyframes _ngcontent-%COMP%_loading-bar-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}",ur=class{constructor(o={}){this.config=o,this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new Zi,this._value$=null,this.timer$=e=>{let i=N(e);switch(e.action){case"start":case"increment":case"set":{e.action==="start"&&this.config.latencyThreshold===0&&e.value===0&&(e.value=e.initialValue),this.requests>0&&(i=er(this.config.latencyThreshold,250).pipe(F(n=>ze(Ie({},e),{value:n===0?this.state.value||e.initialValue:this._increment()}))));break}case"complete":case"stop":{i=e.value===0?N(Ie({},e)):er(0,500).pipe($r(2),F(n=>({value:n===0?100:0})));break}}return i.pipe(F(n=>ze(Ie({},n),{action:"set"})),Ge(n=>this.next(n,!1)))},this.config=Ie({latencyThreshold:0},o)}get value$(){return this._value$?this._value$:this._value$=this.stream$.pipe(tr(this.state),Se(o=>this.timer$(o)),so(),F(o=>o.value))}start(o=2){this.disabled||this.next({action:"start",initialValue:o})}stop(){this.next({action:"stop"})}complete(){this.next({action:"complete"})}disable(){this.disabled=!0}set(o){this.next({action:"set",value:o})}increment(o=0){this.next({action:"increment",value:o})}next(o,e=!0){switch(o.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":o.value=this._increment(o.value);break}this.state=Ie(ze(Ie({},this.state),{action:null}),o),e&&this.stream$.next(this.state)}_increment(o=0){let e=this.state.value;return e>=99&&(o=0),o===0&&(e>=0&&e<25?o=Math.random()*3+3:e>=25&&e<65?o=Math.random()*3:e>=65&&e<90?o=Math.random()*2:e>=90&&e<99?o=.5:o=0),o+e}},am=new rn("LOADING_BAR_CONFIG");var _r=(()=>{class t{get progress$(){return this.value$}constructor(e,i={},n){this.platformId=e,this.config=i,this.zone=n,this.refs={},this.streams$=new Zi,this.value$=this.streams$.pipe(tr(null),Se(()=>on(Object.keys(this.refs).map(p=>this.refs[p].value$))),rm(this.zone),F(p=>Math.max(0,...p)))}start(e=2){this.useRef().start(e)}set(e){this.useRef().set(e)}increment(e){this.useRef().increment(e)}complete(){this.useRef().complete()}stop(){this.useRef().stop()}useRef(e="default"){return this.refs[e]||(this.refs[e]=new ur(this.config),this.streams$.next(),Di(this.platformId)||this.refs[e].disable()),this.refs[e]}static{this.\u0275fac=function(i){return new(i||t)(Tt(uo),Tt(am,8),Tt(Li,8))}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function rm(t){return t?o=>new oo(e=>o.subscribe(i=>t.run(()=>e.next(i)),i=>t.run(()=>e.error(i)),()=>t.run(()=>e.complete()))):o=>o}var lm=(()=>{class t{get value$(){return this.ref?this.loader.useRef(this.ref).value$:this.loader.value$}constructor(e){this.loader=e,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.color="#29d"}static{this.\u0275fac=function(i){return new(i||t)(Ti(_r))}}static{this.\u0275cmp=y({type:t,selectors:[["ngx-loading-bar"]],hostVars:3,hostBindings:function(i,n){i&2&&(K("fixed",n.fixed),Rt("color",n.color))},inputs:{includeSpinner:"includeSpinner",includeBar:"includeBar",fixed:"fixed",color:"color",value:"value",ref:"ref",height:"height",diameter:"diameter"},decls:2,vars:3,consts:[[4,"ngIf"],["class","ngx-spinner",4,"ngIf"],["class","ngx-bar",3,"background","height","width",4,"ngIf"],[1,"ngx-spinner"],[1,"ngx-spinner-icon"],[1,"ngx-bar"]],template:function(i,n){i&1&&(_(0,em,3,2,"ng-container",0),u(1,"async")),i&2&&d("ngIf",n.value!=null?n.value:f(1,1,n.value$))},dependencies:[W,ei],styles:["[_nghost-%COMP%]{position:relative;display:block;pointer-events:none}[_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{transition:.35s linear all;display:block;position:absolute;top:5px;left:0}[_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%] .ngx-spinner-icon[_ngcontent-%COMP%]{width:14px;height:14px;border:solid 2px transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;animation:_ngcontent-%COMP%_loading-bar-spinner .4s linear infinite}[_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{transition:width .35s;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl] [_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{right:0;left:unset}[fixed=true][_nghost-%COMP%]{z-index:10002}[fixed=true][_nghost-%COMP%] .ngx-bar[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}[dir=rtl] [fixed=true][_nghost-%COMP%] .ngx-spinner[_ngcontent-%COMP%]{right:10px;left:unset}@keyframes _ngcontent-%COMP%_loading-bar-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}}return t})(),$s=(()=>{class t extends lm{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})()}static{this.\u0275cmp=y({type:t,selectors:[["ngx-loading-bar"]],hostVars:3,hostBindings:function(i,n){i&2&&(K("fixed",n.fixed),Rt("color",n.color))},standalone:!1,features:[te],decls:2,vars:3,consts:[[4,"ngIf"],["class","ngx-spinner",4,"ngIf"],["class","ngx-bar",3,"background","height","width",4,"ngIf"],[1,"ngx-spinner"],[1,"ngx-spinner-icon"],[1,"ngx-bar"]],template:function(i,n){i&1&&(_(0,nm,3,2,"ng-container",0),u(1,"async")),i&2&&d("ngIf",n.value!=null?n.value:f(1,1,n.value$))},dependencies:[ei,W],styles:[om],changeDetection:0})}}return t})(),fr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=St({type:t})}static{this.\u0275inj=yt({imports:[Ei]})}}return t})();var sm=new cl(()=>!1),cm=(()=>{class t{constructor(e){this.loader=e}intercept(e,i){if(e.context.get(sm)===!0)return i.handle(e);let n=!1,p=this.loader.useRef("http");return i.handle(e).pipe(Ge(()=>{n||(p.start(),n=!0)}),lo(()=>n&&p.complete()))}static{this.\u0275fac=function(i){return new(i||t)(Tt(_r))}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac})}}return t})();var Hs=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=St({type:t})}static{this.\u0275inj=yt({providers:[{provide:Qn,useClass:cm,multi:!0}],imports:[or,fr,or,fr]})}}return t})();var pm=["content"],dm=(t,o)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":o}),mm=t=>({$implicit:t});function um(t,o){if(t&1&&(l(0,"div"),s(1),r()),t&2){let e=c(2);Rt("display",e.value!=null&&e.value!==0?"flex":"none"),K("data-pc-section","label"),a(),G("",e.value,"",e.unit,"")}}function _m(t,o){t&1&&Oe(0)}function fm(t,o){if(t&1&&(l(0,"div",3)(1,"div",4),_(2,um,2,5,"div",5)(3,_m,1,0,"ng-container",6),r()()),t&2){let e=c();Ne(e.valueStyleClass),Rt("width",e.value+"%")("background",e.color),d("ngClass","p-progressbar-value p-progressbar-value-animate"),K("data-pc-section","value"),a(2),d("ngIf",e.showValue&&!e.contentTemplate&&!e._contentTemplate),a(),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",V(11,mm,e.value))}}function hm(t,o){if(t&1&&(l(0,"div",7),h(1,"div",8),r()),t&2){let e=c();Ne(e.valueStyleClass),d("ngClass","p-progressbar-indeterminate-container"),K("data-pc-section","container"),a(),Rt("background",e.color),K("data-pc-section","value")}}var Cm=({dt:t})=>` .p-progressbar { position: relative; overflow: hidden; height: ${t("progressbar.height")}; background: ${t("progressbar.background")}; border-radius: ${t("progressbar.border.radius")}; } .p-progressbar-value { margin: 0; background: ${t("progressbar.value.background")}; } .p-progressbar-label { color: ${t("progressbar.label.color")}; font-size: ${t("progressbar.label.font.size")}; font-weight: ${t("progressbar.label.font.weight")}; } .p-progressbar-determinate .p-progressbar-value { height: 100%; width: 0%; position: absolute; display: none; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: width 1s ease-in-out; } .p-progressbar-determinate .p-progressbar-label { display: inline-flex; } .p-progressbar-indeterminate .p-progressbar-value::before { content: ""; position: absolute; background: inherit; top: 0; inset-inline-start: 0; bottom: 0; will-change: inset-inline-start, inset-inline-end; animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; } .p-progressbar-indeterminate .p-progressbar-value::after { content: ""; position: absolute; background: inherit; top: 0; inset-inline-start: 0; bottom: 0; will-change: inset-inline-start, inset-inline-end; animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; animation-delay: 1.15s; } @-webkit-keyframes p-progressbar-indeterminate-anim { 0% { inset-inline-start: -35%; inset-inline-end: 100%; } 60% { inset-inline-start: 100%; inset-inline-end: -90%; } 100% { inset-inline-start: 100%; inset-inline-end: -90%; } } @keyframes p-progressbar-indeterminate-anim { 0% { inset-inline-start: -35%; inset-inline-end: 100%; } 60% { inset-inline-start: 100%; inset-inline-end: -90%; } 100% { inset-inline-start: 100%; inset-inline-end: -90%; } } @-webkit-keyframes p-progressbar-indeterminate-anim-short { 0% { inset-inline-start: -200%; inset-inline-end: 100%; } 60% { inset-inline-start: 107%; inset-inline-end: -8%; } 100% { inset-inline-start: 107%; inset-inline-end: -8%; } } @keyframes p-progressbar-indeterminate-anim-short { 0% { inset-inline-start: -200%; inset-inline-end: 100%; } 60% { inset-inline-start: 107%; inset-inline-end: -8%; } 100% { inset-inline-start: 107%; inset-inline-end: -8%; } } `,gm={root:({instance:t})=>["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}],value:"p-progressbar-value",label:"p-progressbar-label"},zs=(()=>{class t extends Cn{name="progressbar";theme=Cm;classes=gm;static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Gs=(()=>{class t extends en{value;showValue=!0;styleClass;valueStyleClass;style;unit="%";mode="determinate";color;contentTemplate;_componentStyle=C(zs);templates;_contentTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275cmp=y({type:t,selectors:[["p-progressBar"],["p-progressbar"],["p-progress-bar"]],contentQueries:function(i,n,p){if(i&1&&(Ze(p,pm,4),Ze(p,hn,4)),i&2){let g;Me(g=Re())&&(n.contentTemplate=g.first),Me(g=Re())&&(n.templates=g)}},inputs:{value:[2,"value","value",Xt],showValue:[2,"showValue","showValue",rt],styleClass:"styleClass",valueStyleClass:"valueStyleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[Ut([zs]),te],decls:3,vars:15,consts:[["role","progressbar",3,"ngStyle","ngClass"],["style","display:flex",3,"ngClass","class","width","background",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[2,"display","flex",3,"ngClass"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(i,n){i&1&&(l(0,"div",0),_(1,fm,4,13,"div",1)(2,hm,2,7,"div",2),r()),i&2&&(Ne(n.styleClass),d("ngStyle",n.style)("ngClass",H(12,dm,n.mode==="determinate",n.mode==="indeterminate")),K("aria-valuemin",0)("aria-valuenow",n.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root")("aria-label",n.value+n.unit),a(),d("ngIf",n.mode==="determinate"),a(),d("ngIf",n.mode==="indeterminate"))},dependencies:[Ei,X,ei,At,Ii,ti],encapsulation:2,changeDetection:0})}return t})();var vm=["file"],xm=["header"],Qs=["content"],ym=["toolbar"],bm=["chooseicon"],Sm=["filelabel"],Tm=["uploadicon"],Im=["cancelicon"],Em=["empty"],Dm=["advancedfileinput"],wm=["basicfileinput"],Lm=(t,o,e,i,n)=>({$implicit:t,uploadedFiles:o,chooseCallback:e,clearCallback:i,uploadCallback:n}),Pm=(t,o,e,i,n,p,g,I)=>({$implicit:t,uploadedFiles:o,chooseCallback:e,clearCallback:i,removeUploadedFileCallback:n,removeFileCallback:p,progress:g,messages:I}),Mm=t=>({$implicit:t});function Rm(t,o){if(t&1&&h(0,"span"),t&2){let e=c(3);Ne(e.chooseIcon),K("aria-label",!0)("data-pc-section","chooseicon")}}function Am(t,o){t&1&&h(0,"PlusIcon"),t&2&&K("aria-label",!0)("data-pc-section","chooseicon")}function km(t,o){}function Fm(t,o){t&1&&_(0,km,0,0,"ng-template")}function Bm(t,o){if(t&1&&(l(0,"span"),_(1,Fm,1,0,null,11),r()),t&2){let e=c(4);K("aria-label",!0)("data-pc-section","chooseicon"),a(),d("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function Vm(t,o){if(t&1&&(Ee(0),_(1,Am,1,2,"PlusIcon",9)(2,Bm,2,3,"span",9),De()),t&2){let e=c(3);a(),d("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),a(),d("ngIf",e.chooseIconTemplate||e._chooseIconTemplate)}}function Nm(t,o){if(t&1&&h(0,"span",21),t&2){let e=c(4);d("ngClass",e.uploadIcon),K("aria-hidden",!0)}}function Om(t,o){t&1&&h(0,"UploadIcon")}function jm(t,o){}function Um(t,o){t&1&&_(0,jm,0,0,"ng-template")}function $m(t,o){if(t&1&&(l(0,"span"),_(1,Um,1,0,null,11),r()),t&2){let e=c(5);K("aria-hidden",!0),a(),d("ngTemplateOutlet",e.uploadIconTemplate||e._uploadIconTemplate)}}function qm(t,o){if(t&1&&(Ee(0),_(1,Om,1,0,"UploadIcon",9)(2,$m,2,2,"span",9),De()),t&2){let e=c(4);a(),d("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),a(),d("ngIf",e.uploadIconTemplate||e._uploadIconTemplate)}}function Hm(t,o){if(t&1){let e=R();l(0,"p-button",19),T("onClick",function(){b(e);let n=c(3);return S(n.upload())}),_(1,Nm,1,2,"span",20)(2,qm,3,2,"ng-container",9),r()}if(t&2){let e=c(3);d("label",e.uploadButtonLabel)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass","p-fileupload-upload-button "+e.uploadStyleClass)("buttonProps",e.uploadButtonProps),a(),d("ngIf",e.uploadIcon),a(),d("ngIf",!e.uploadIcon)}}function zm(t,o){if(t&1&&h(0,"span",21),t&2){let e=c(4);d("ngClass",e.cancelIcon)}}function Gm(t,o){t&1&&h(0,"TimesIcon"),t&2&&K("aria-hidden",!0)}function Qm(t,o){}function Ym(t,o){t&1&&_(0,Qm,0,0,"ng-template")}function Wm(t,o){if(t&1&&(l(0,"span"),_(1,Ym,1,0,null,11),r()),t&2){let e=c(5);K("aria-hidden",!0),a(),d("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function Km(t,o){if(t&1&&(Ee(0),_(1,Gm,1,1,"TimesIcon",9)(2,Wm,2,2,"span",9),De()),t&2){let e=c(4);a(),d("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),a(),d("ngIf",e.cancelIconTemplate||e._cancelIconTemplate)}}function Zm(t,o){if(t&1){let e=R();l(0,"p-button",19),T("onClick",function(){b(e);let n=c(3);return S(n.clear())}),_(1,zm,1,1,"span",20)(2,Km,3,2,"ng-container",9),r()}if(t&2){let e=c(3);d("label",e.cancelButtonLabel)("disabled",!e.hasFiles()||e.uploading)("styleClass","p-fileupload-cancel-button "+e.cancelStyleClass)("buttonProps",e.cancelButtonProps),a(),d("ngIf",e.cancelIcon),a(),d("ngIf",!e.cancelIcon)}}function Jm(t,o){if(t&1){let e=R();Ee(0),l(1,"p-button",16),T("focus",function(){b(e);let n=c(2);return S(n.onFocus())})("blur",function(){b(e);let n=c(2);return S(n.onBlur())})("onClick",function(){b(e);let n=c(2);return S(n.choose())})("keydown.enter",function(){b(e);let n=c(2);return S(n.choose())}),l(2,"input",7,0),T("change",function(n){b(e);let p=c(2);return S(p.onFileSelect(n))}),r(),_(4,Rm,1,4,"span",17)(5,Vm,3,2,"ng-container",9),r(),_(6,Hm,3,6,"p-button",18)(7,Zm,3,6,"p-button",18),De()}if(t&2){let e=c(2);a(),d("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled||e.isChooseDisabled())("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),K("data-pc-section","choosebutton"),a(),d("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),K("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),a(2),d("ngIf",e.chooseIcon),a(),d("ngIf",!e.chooseIcon),a(),d("ngIf",!e.auto&&e.showUploadButton),a(),d("ngIf",!e.auto&&e.showCancelButton)}}function Xm(t,o){t&1&&Oe(0)}function e0(t,o){t&1&&Oe(0)}function t0(t,o){if(t&1&&h(0,"p-progressbar",22),t&2){let e=c(2);d("value",e.progress)("showValue",!1)}}function i0(t,o){if(t&1&&h(0,"p-message",14),t&2){let e=o.$implicit;d("severity",e.severity)("text",e.text)}}function n0(t,o){if(t&1){let e=R();l(0,"img",33),T("error",function(n){b(e);let p=c(5);return S(p.imageError(n))}),r()}if(t&2){let e=c().$implicit,i=c(4);d("src",e.objectURL,we)("width",i.previewWidth)}}function o0(t,o){t&1&&h(0,"TimesIcon")}function a0(t,o){}function r0(t,o){t&1&&_(0,a0,0,0,"ng-template")}function l0(t,o){if(t&1&&_(0,o0,1,0,"TimesIcon",9)(1,r0,1,0,null,11),t&2){let e=c(5);d("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),a(),d("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function s0(t,o){if(t&1){let e=R();l(0,"div",24),_(1,n0,1,2,"img",27),l(2,"div",28)(3,"div",29),s(4),r(),l(5,"span",30),s(6),r()(),l(7,"div",31)(8,"p-button",32),T("onClick",function(n){let p=b(e).index,g=c(4);return S(g.remove(n,p))}),_(9,l0,2,2,"ng-template",null,2,q),r()()()}if(t&2){let e=o.$implicit,i=c(4);a(),d("ngIf",i.isImage(e)),a(3),x(e.name),a(2),x(i.formatSize(e.size)),a(2),d("disabled",i.uploading)("styleClass","p-fileupload-file-remove-button "+i.removeStyleClass)}}function c0(t,o){if(t&1&&_(0,s0,11,5,"div",26),t&2){let e=c(3);d("ngForOf",e.files)}}function p0(t,o){}function d0(t,o){if(t&1&&_(0,p0,0,0,"ng-template",25),t&2){let e=c(3);d("ngForOf",e.files)("ngForTemplate",e.fileTemplate||e._fileTemplate)}}function m0(t,o){if(t&1&&(l(0,"div",23),_(1,c0,1,1,"div",24)(2,d0,1,2,null,25),r()),t&2){let e=c(2);a(),m(!e.fileTemplate&&!e._fileTemplate?1:-1),a(),m(e.fileTemplate||e._fileTemplate?2:-1)}}function u0(t,o){t&1&&Oe(0)}function _0(t,o){t&1&&Oe(0)}function f0(t,o){if(t&1&&_(0,_0,1,0,"ng-container",11),t&2){let e=c(2);d("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function h0(t,o){if(t&1){let e=R();l(0,"div",6)(1,"input",7,0),T("change",function(n){b(e);let p=c();return S(p.onFileSelect(n))}),r(),l(3,"div",8),_(4,Jm,8,15,"ng-container",9)(5,Xm,1,0,"ng-container",10)(6,e0,1,0,"ng-container",11),r(),l(7,"div",12,1),T("dragenter",function(n){b(e);let p=c();return S(p.onDragEnter(n))})("dragleave",function(n){b(e);let p=c();return S(p.onDragLeave(n))})("drop",function(n){b(e);let p=c();return S(p.onDrop(n))}),_(9,t0,1,2,"p-progressbar",13),D(10,i0,1,2,"p-message",14,nr),_(12,m0,3,2,"div",15)(13,u0,1,0,"ng-container",10)(14,f0,1,1,"ng-container"),r()()}if(t&2){let e=c();Ne(e.styleClass),d("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),K("data-pc-name","fileupload")("data-pc-section","root"),a(),Rt("display","none"),d("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),K("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),a(3),d("ngIf",!e.headerTemplate&&!e._headerTemplate),a(),d("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",il(24,Lm,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.upload.bind(e))),a(),d("ngTemplateOutlet",e.toolbarTemplate||e._toolbarTemplate),a(),K("data-pc-section","content"),a(2),d("ngIf",e.hasFiles()),a(),w(e.msgs),a(2),d("ngIf",e.hasFiles()),a(),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",nl(30,Pm,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.removeUploadedFile.bind(e),e.remove.bind(e),e.progress,e.msgs)),a(),m((e.emptyTemplate||e._emptyTemplate)&&!e.hasFiles()&&!e.hasUploadedFiles()?14:-1)}}function C0(t,o){if(t&1&&h(0,"p-message",14),t&2){let e=o.$implicit;d("severity",e.severity)("text",e.text)}}function g0(t,o){if(t&1&&h(0,"span",37),t&2){let e=c(4);d("ngClass",e.uploadIcon)}}function v0(t,o){t&1&&h(0,"UploadIcon",40),t&2&&d("styleClass","p-button-icon p-button-icon-left")}function x0(t,o){}function y0(t,o){t&1&&_(0,x0,0,0,"ng-template")}function b0(t,o){if(t&1&&(l(0,"span",41),_(1,y0,1,0,null,11),r()),t&2){let e=c(5);a(),d("ngTemplateOutlet",e._uploadIconTemplate||e.uploadIconTemplate)}}function S0(t,o){if(t&1&&(Ee(0),_(1,v0,1,1,"UploadIcon",38)(2,b0,2,1,"span",39),De()),t&2){let e=c(4);a(),d("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),a(),d("ngIf",e._uploadIconTemplate||e.uploadIconTemplate)}}function T0(t,o){if(t&1&&_(0,g0,1,1,"span",36)(1,S0,3,2,"ng-container",9),t&2){let e=c(3);d("ngIf",e.uploadIcon),a(),d("ngIf",!e.uploadIcon)}}function I0(t,o){if(t&1&&h(0,"span",43),t&2){let e=c(4);d("ngClass",e.chooseIcon)}}function E0(t,o){t&1&&h(0,"PlusIcon"),t&2&&K("data-pc-section","uploadicon")}function D0(t,o){}function w0(t,o){t&1&&_(0,D0,0,0,"ng-template")}function L0(t,o){if(t&1&&(Ee(0),_(1,E0,1,1,"PlusIcon",9)(2,w0,1,0,null,11),De()),t&2){let e=c(4);a(),d("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),a(),d("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function P0(t,o){if(t&1&&_(0,I0,1,1,"span",42)(1,L0,3,2,"ng-container",9),t&2){let e=c(3);d("ngIf",e.chooseIcon),a(),d("ngIf",!e.chooseIcon)}}function M0(t,o){if(t&1&&_(0,T0,2,2)(1,P0,2,2),t&2){let e=c(2);m(e.hasFiles()&&!e.auto?0:1)}}function R0(t,o){if(t&1&&(l(0,"span"),s(1),r()),t&2){let e=c(3);Ne(e.cx("filelabel")),a(),v(" ",e.basicFileChosenLabel()," ")}}function A0(t,o){t&1&&Oe(0)}function k0(t,o){if(t&1&&_(0,A0,1,0,"ng-container",10),t&2){let e=c(3);d("ngTemplateOutlet",e.fileLabelTemplate||e._fileLabelTemplate)("ngTemplateOutletContext",V(2,Mm,e.files))}}function F0(t,o){if(t&1&&_(0,R0,2,3,"span",44)(1,k0,1,4,"ng-container"),t&2){let e=c(2);m(!e.fileLabelTemplate&&!e._fileLabelTemplate?0:1)}}function B0(t,o){if(t&1){let e=R();l(0,"div",21),D(1,C0,1,2,"p-message",14,nr),l(3,"p-button",34),T("onClick",function(){b(e);let n=c();return S(n.onBasicUploaderClick())})("keydown",function(n){b(e);let p=c();return S(p.onBasicKeydown(n))}),_(4,M0,2,1,"ng-template",null,2,q),l(6,"input",35,3),T("change",function(n){b(e);let p=c();return S(p.onFileSelect(n))})("focus",function(){b(e);let n=c();return S(n.onFocus())})("blur",function(){b(e);let n=c();return S(n.onBlur())}),r()(),_(8,F0,2,1),r()}if(t&2){let e=c();Ne(e.styleClass),d("ngClass","p-fileupload p-fileupload-basic p-component"),K("data-pc-name","fileupload"),a(),w(e.msgs),a(2),Pi(e.style),d("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled)("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),a(3),d("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled),K("aria-label",e.browseFilesLabel)("data-pc-section","input"),a(2),m(e.auto?-1:8)}}var V0=({dt:t})=>` .p-fileupload input[type="file"] { display: none; } .p-fileupload-advanced { border: 1px solid ${t("fileupload.border.color")}; border-radius: ${t("fileupload.border.radius")}; background: ${t("fileupload.background")}; color: ${t("fileupload.color")}; } .p-fileupload-header { display: flex; align-items: center; padding: ${t("fileupload.header.padding")}; background: ${t("fileupload.header.background")}; color: ${t("fileupload.header.color")}; border-style: solid; border-width: ${t("fileupload.header.border.width")}; border-color: ${t("fileupload.header.border.color")}; border-radius: ${t("fileupload.header.border.radius")}; gap: ${t("fileupload.header.gap")}; } .p-fileupload-content { border: 1px solid transparent; display: flex; flex-direction: column; gap: ${t("fileupload.content.gap")}; transition: border-color ${t("fileupload.transition.duration")}; padding: ${t("fileupload.content.padding")}; } .p-fileupload-content .p-progressbar { width: 100%; height: ${t("fileupload.progressbar.height")}; } .p-fileupload-file-list { display: flex; flex-direction: column; gap: ${t("fileupload.filelist.gap")}; } .p-fileupload-file { display: flex; flex-wrap: wrap; align-items: center; padding: ${t("fileupload.file.padding")}; border-bottom: 1px solid ${t("fileupload.file.border.color")}; gap: ${t("fileupload.file.gap")}; } .p-fileupload-file:last-child { border-bottom: 0; } .p-fileupload-file-info { display: flex; flex-direction: column; gap: ${t("fileupload.file.info.gap")}; } .p-fileupload-file-thumbnail { flex-shrink: 0; } .p-fileupload-file-actions { margin-left: auto; } .p-fileupload-highlight { border: 1px dashed ${t("fileupload.content.highlight.border.color")}; } .p-fileupload-advanced .p-message { margin-top: 0; } .p-fileupload-basic { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: ${t("fileupload.basic.gap")}; } `,N0={root:({instance:t})=>`p-fileupload p-fileupload-${t.mode} p-component`,header:"p-fileupload-header",pcChooseButton:"p-fileupload-choose-button",pcUploadButton:"p-fileupload-upload-button",pcCancelButton:"p-fileupload-cancel-button",content:"p-fileupload-content",fileList:"p-fileupload-file-list",file:"p-fileupload-file",fileThumbnail:"p-fileupload-file-thumbnail",fileInfo:"p-fileupload-file-info",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",pcFileBadge:"p-fileupload-file-badge",fileActions:"p-fileupload-file-actions",pcFileRemoveButton:"p-fileupload-file-remove-button"},Ys=(()=>{class t extends Cn{name="fileupload";theme=V0;classes=N0;static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var hr=(()=>{class t extends en{name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;chooseButtonProps;uploadButtonProps={severity:"secondary"};cancelButtonProps={severity:"secondary"};onBeforeUpload=new se;onSend=new se;onUpload=new se;onError=new se;onClear=new se;onRemove=new se;onSelect=new se;onProgress=new se;uploadHandler=new se;onImageError=new se;onRemoveUploadedFile=new se;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;fileLabelTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;advancedFileInput;basicFileInput;content;set files(e){this._files=[];for(let i=0;i<e.length;i++){let n=e[i];this.validate(n)&&(this.isImage(n)&&(n.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[i]))),this._files.push(e[i]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];sanitizer=C(ml);zone=C(Li);http=C(qe);_componentStyle=C(Ys);ngOnInit(){super.ngOnInit(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){super.ngAfterViewInit(),Di(this.platformId)&&this.mode==="advanced"&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}_headerTemplate;_contentTemplate;_toolbarTemplate;_chooseIconTemplate;_uploadIconTemplate;_cancelIconTemplate;_emptyTemplate;_fileTemplate;_fileLabelTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"file":this._fileTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"toolbar":this._toolbarTemplate=e.template;break;case"chooseicon":this._chooseIconTemplate=e.template;break;case"uploadicon":this._uploadIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"filelabel":this._fileLabelTemplate=e.template;break;default:this._fileTemplate=e.template;break}})}basicFileChosenLabel(){return this.auto?this.chooseButtonLabel:this.hasFiles()?this.files&&this.files.length===1?this.files[0].name:this.config.getTranslation("fileChosenMessage")?.replace("{0}",this.files.length):this.config.getTranslation("noFileChosenMessage")||""}getTranslation(e){return this.config.getTranslation(e)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(e){if(e.type!=="drop"&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let n=0;n<i.length;n++){let p=i[n];this.isFileSelected(p)||this.validate(p)&&(this.isImage(p)&&(p.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(i[n]))),this.files.push(i[n]))}this.onSelect.emit({originalEvent:e,files:i,currentFiles:this.files}),this.checkFileLimit(i),this.hasFiles()&&this.auto&&(this.mode!=="advanced"||!this.isFileLimitExceeded())&&this.upload(),e.type!=="drop"&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let i of this.files)if(i.name+i.type+i.size===e.name+e.type+e.size)return!0;return!1}isIE11(){if(Di(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(e){if(this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(e)){let i=`${this.invalidFileTypeMessageSummary.replace("{0}",e.name)} ${this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}`;return this.msgs.push({severity:"error",text:i}),!1}if(this.maxFileSize&&e.size>this.maxFileSize){let i=`${this.invalidFileSizeMessageSummary.replace("{0}",e.name)} ${this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}`;return this.msgs.push({severity:"error",text:i}),!1}return!0}isFileTypeValid(e){let i=this.accept?.split(",").map(n=>n.trim());for(let n of i)if(this.isWildcard(n)?this.getTypeClass(e.type)===this.getTypeClass(n):e.type==n||this.getFileExtension(e).toLowerCase()===n.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return e.indexOf("*")!==-1}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}uploader(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i<this.files.length;i++)e.append(this.name,this.files[i],this.files[i].name);this.http.request(this.method,this.url,{body:e,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(i=>{switch(i.type){case So.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case So.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case So.UploadProgress:{i.loaded&&(this.progress=Math.round(i.loaded*100/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress});break}}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.msgs=[],this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit(this.files)}removeUploadedFile(e){let i=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:i,files:this.uploadedFiles})}isFileLimitExceeded(){let i=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=i&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<i}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(e){this.msgs??=[];let i=this.msgs.length>0&&this.fileLimit&&this.fileLimit<e.length;if(this.isFileLimitExceeded()||i){let n=`${this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}`;this.msgs.push({severity:"error",text:n})}else this.msgs=this.msgs.filter(n=>!n.text.includes(this.invalidFileLimitMessageSummary))}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(yl(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||ar(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){ar(this.content?.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&i.length===1)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){let p=this.getTranslation(Bi.FILE_SIZE_TYPES);if(e===0)return`0 ${p[0]}`;let g=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,g)).toFixed(3)} ${p[g]}`}upload(){this.hasFiles()&&this.uploader()}onBasicUploaderClick(){this.basicFileInput?.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault();break}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Bi.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Bi.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Bi.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(Bi.ARIA)[Bi.BROWSE_FILES]}get pendingLabel(){return this.config.getTranslation(Bi.PENDING)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=ee(t)))(n||t)}})();static \u0275cmp=y({type:t,selectors:[["p-fileupload"],["p-fileUpload"]],contentQueries:function(i,n,p){if(i&1&&(Ze(p,vm,4),Ze(p,xm,4),Ze(p,Qs,4),Ze(p,ym,4),Ze(p,bm,4),Ze(p,Sm,4),Ze(p,Tm,4),Ze(p,Im,4),Ze(p,Em,4),Ze(p,hn,4)),i&2){let g;Me(g=Re())&&(n.fileTemplate=g.first),Me(g=Re())&&(n.headerTemplate=g.first),Me(g=Re())&&(n.contentTemplate=g.first),Me(g=Re())&&(n.toolbarTemplate=g.first),Me(g=Re())&&(n.chooseIconTemplate=g.first),Me(g=Re())&&(n.fileLabelTemplate=g.first),Me(g=Re())&&(n.uploadIconTemplate=g.first),Me(g=Re())&&(n.cancelIconTemplate=g.first),Me(g=Re())&&(n.emptyTemplate=g.first),Me(g=Re())&&(n.templates=g)}},viewQuery:function(i,n){if(i&1&&(jt(Dm,5),jt(wm,5),jt(Qs,5)),i&2){let p;Me(p=Re())&&(n.advancedFileInput=p.first),Me(p=Re())&&(n.basicFileInput=p.first),Me(p=Re())&&(n.content=p.first)}},inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",rt],accept:"accept",disabled:[2,"disabled","disabled",rt],auto:[2,"auto","auto",rt],withCredentials:[2,"withCredentials","withCredentials",rt],maxFileSize:[2,