@sync-in/server 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/environment/environment.dist.yaml +1 -1
- package/package.json +10 -10
- package/server/authentication/auth.config.js +8 -4
- package/server/authentication/auth.config.js.map +1 -1
- package/server/authentication/constants/auth-ldap.js +44 -0
- package/server/authentication/constants/auth-ldap.js.map +1 -0
- package/server/authentication/services/auth-methods/auth-method-ldap.service.js +98 -86
- package/server/authentication/services/auth-methods/auth-method-ldap.service.js.map +1 -1
- package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js +50 -47
- package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js.map +1 -1
- package/static/assets/pdfjs/build/pdf.mjs +2522 -914
- package/static/assets/pdfjs/build/pdf.mjs.map +1 -1
- package/static/assets/pdfjs/build/pdf.sandbox.mjs +2 -2
- package/static/assets/pdfjs/build/pdf.worker.mjs +1024 -566
- package/static/assets/pdfjs/build/pdf.worker.mjs.map +1 -1
- package/static/assets/pdfjs/version +1 -1
- package/static/assets/pdfjs/web/debugger.mjs +116 -37
- package/static/assets/pdfjs/web/images/comment-popup-editButton.svg +5 -0
- package/static/assets/pdfjs/web/locale/ach/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/af/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/an/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/ar/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ast/viewer.ftl +0 -19
- package/static/assets/pdfjs/web/locale/az/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/be/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/bg/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/bn/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/bo/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/br/viewer.ftl +0 -22
- package/static/assets/pdfjs/web/locale/brx/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/bs/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ca/viewer.ftl +12 -23
- package/static/assets/pdfjs/web/locale/cak/viewer.ftl +0 -23
- package/static/assets/pdfjs/web/locale/ckb/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/cs/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/cy/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/da/viewer.ftl +3 -35
- package/static/assets/pdfjs/web/locale/de/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/dsb/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/el/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/en-CA/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/en-GB/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/en-US/viewer.ftl +25 -13
- package/static/assets/pdfjs/web/locale/eo/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/es-AR/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/es-CL/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/es-ES/viewer.ftl +5 -32
- package/static/assets/pdfjs/web/locale/es-MX/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/et/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/eu/viewer.ftl +38 -32
- package/static/assets/pdfjs/web/locale/fa/viewer.ftl +0 -19
- package/static/assets/pdfjs/web/locale/ff/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/fi/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/fr/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/fur/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/fy-NL/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ga-IE/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/gd/viewer.ftl +0 -23
- package/static/assets/pdfjs/web/locale/gl/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/gn/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/gu-IN/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/he/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/hi-IN/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/hr/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/hsb/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/hu/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/hy-AM/viewer.ftl +372 -16
- package/static/assets/pdfjs/web/locale/hye/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/ia/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/id/viewer.ftl +38 -32
- package/static/assets/pdfjs/web/locale/is/viewer.ftl +27 -32
- package/static/assets/pdfjs/web/locale/it/viewer.ftl +0 -33
- package/static/assets/pdfjs/web/locale/ja/viewer.ftl +31 -33
- package/static/assets/pdfjs/web/locale/ka/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/kab/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/kk/viewer.ftl +31 -32
- package/static/assets/pdfjs/web/locale/km/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/kn/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/ko/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/lij/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/lo/viewer.ftl +0 -23
- package/static/assets/pdfjs/web/locale/lt/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/ltg/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/lv/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/meh/viewer.ftl +0 -14
- package/static/assets/pdfjs/web/locale/mk/viewer.ftl +0 -19
- package/static/assets/pdfjs/web/locale/ml/viewer.ftl +0 -31
- package/static/assets/pdfjs/web/locale/mr/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/ms/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/my/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/nb-NO/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ne-NP/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/nl/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/nn-NO/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/oc/viewer.ftl +0 -24
- package/static/assets/pdfjs/web/locale/pa-IN/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/pl/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/pt-BR/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/pt-PT/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/rm/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ro/viewer.ftl +5 -37
- package/static/assets/pdfjs/web/locale/ru/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/sat/viewer.ftl +0 -23
- package/static/assets/pdfjs/web/locale/sc/viewer.ftl +8 -27
- package/static/assets/pdfjs/web/locale/sco/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/si/viewer.ftl +0 -22
- package/static/assets/pdfjs/web/locale/sk/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/skr/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/sl/viewer.ftl +30 -32
- package/static/assets/pdfjs/web/locale/son/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/sq/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/sr/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/sv-SE/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/szl/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/ta/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/te/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/tg/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/th/viewer.ftl +38 -32
- package/static/assets/pdfjs/web/locale/tl/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/tr/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/trs/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/uk/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/ur/viewer.ftl +0 -16
- package/static/assets/pdfjs/web/locale/uz/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/vi/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/xh/viewer.ftl +0 -12
- package/static/assets/pdfjs/web/locale/zh-CN/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/locale/zh-TW/viewer.ftl +0 -32
- package/static/assets/pdfjs/web/viewer.css +586 -437
- package/static/assets/pdfjs/web/viewer.html +12 -23
- package/static/assets/pdfjs/web/viewer.mjs +955 -514
- package/static/assets/pdfjs/web/viewer.mjs.map +1 -1
- package/static/assets/pdfjs/web/wasm/openjpeg.wasm +0 -0
- package/static/assets/pdfjs/web/wasm/openjpeg_nowasm_fallback.js +10 -22
- package/static/{chunk-YVJDYSDE.js → chunk-27YQB3TE.js} +1 -1
- package/static/{chunk-CN27VAGB.js → chunk-2I4CUFUA.js} +1 -1
- package/static/{chunk-2TZUZMCM.js → chunk-2MTM6SWN.js} +3 -3
- package/static/{chunk-5M4YJZUB.js → chunk-34MKICK5.js} +1 -1
- package/static/chunk-5O3DIUU3.js +1 -0
- package/static/{chunk-IIFHIIC6.js → chunk-6NMVZIIT.js} +1 -1
- package/static/{chunk-G2TKYYWK.js → chunk-7DN7ZAPU.js} +1 -1
- package/static/{chunk-DNMO47SY.js → chunk-7FUM3JGM.js} +1 -1
- package/static/{chunk-HME7LAEY.js → chunk-7ITZXYYJ.js} +1 -1
- package/static/{chunk-XPIYOZBX.js → chunk-7P27WBGC.js} +1 -1
- package/static/chunk-ATP3BFHV.js +562 -0
- package/static/{chunk-XCBLEI2E.js → chunk-AWQ2YTVC.js} +1 -1
- package/static/{chunk-NN3VQOS7.js → chunk-DSOE3FEP.js} +1 -1
- package/static/{chunk-ABGR5AYC.js → chunk-EFKMBLRE.js} +1 -1
- package/static/{chunk-ET6QDNNM.js → chunk-FUFKVHPU.js} +1 -1
- package/static/{chunk-5ZGQYTS2.js → chunk-HCDLWTMW.js} +1 -1
- package/static/{chunk-G3FOG2QB.js → chunk-IPAC4VAF.js} +1 -1
- package/static/{chunk-QFOMEU3T.js → chunk-IQOALFYU.js} +1 -1
- package/static/{chunk-6BFNMDUD.js → chunk-JASU3CIH.js} +1 -1
- package/static/{chunk-O3ANXCPE.js → chunk-JQ5FTO2M.js} +1 -1
- package/static/{chunk-IEUANP3Q.js → chunk-JUNZFADM.js} +1 -1
- package/static/{chunk-YD74UCFG.js → chunk-LJUKI4SQ.js} +1 -1
- package/static/{chunk-WINILGQN.js → chunk-LUWQFIWR.js} +1 -1
- package/static/{chunk-RKNTQYMU.js → chunk-ORMRCEGT.js} +1 -1
- package/static/{chunk-YDFVKH2D.js → chunk-Q7D6RN4N.js} +1 -1
- package/static/{chunk-M57NVD4V.js → chunk-QJX6ITLW.js} +1 -1
- package/static/{chunk-KPZ7FEMO.js → chunk-QQ6UQQBR.js} +1 -1
- package/static/{chunk-2XJ5Z2GZ.js → chunk-S2HDY3OL.js} +1 -1
- package/static/{chunk-X7MFVDBY.js → chunk-S75P2FFI.js} +1 -1
- package/static/{chunk-XLWCV4HI.js → chunk-T3EYFSVZ.js} +1 -1
- package/static/{chunk-GCUWGVYT.js → chunk-U34OZUZ7.js} +1 -1
- package/static/{chunk-NW3CTYUW.js → chunk-Y7EH7G5K.js} +1 -1
- package/static/{chunk-EI4PVI2W.js → chunk-ZQQPUYLU.js} +1 -1
- package/static/index.html +1 -1
- package/static/main-7SQDDVMD.js +9 -0
- package/static/chunk-6IRL673W.js +0 -559
- package/static/chunk-UQ4TRQCE.js +0 -1
- package/static/main-QNBKYA6L.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as kr}from"./chunk-EI4PVI2W.js";import{c as Tr}from"./chunk-JXZCNFW7.js";import{a as Mr}from"./chunk-GCUWGVYT.js";import{a as xr,b as wr,c as Ar,d as Dr,e as Nr,h as Or}from"./chunk-XPIYOZBX.js";import{b as Lr,c as xi,d as Ir,e as Mi}from"./chunk-CN27VAGB.js";import{a as Pr,d as Jt,g as Ot}from"./chunk-DNMO47SY.js";import{m as Si,p as _i}from"./chunk-IEUANP3Q.js";import{Ab as Sr,Ba as hr,Ca as mr,Cb as _r,Da as gr,Jb as Ci,Ka as vr,Kb as ee,Lb as Dt,Na as xt,P as rt,Pa as Mt,Qa as br,ab as on,f as tr,lb as yr,nb as wt,ob as At,pb as le,qb as Be,sb as Cr,zb as H}from"./chunk-2TZUZMCM.js";import{a as Ei,c as je,d as zr,h as st,m as Nt}from"./chunk-22EANI6R.js";import{d as Xn}from"./chunk-RKNTQYMU.js";import{$ as Gn,$b as bt,$c as Qn,Ab as ke,Ac as Ve,Ad as Et,B as T,C as Gt,Cb as b,Db as qn,Dc as nt,Eb as f,Fb as Wt,Ga as ze,Gb as Kt,Gd as er,Ha as $n,Hb as et,Hc as be,Hd as Ce,Ib as Me,Jb as J,Jf as dr,Kb as Z,L as pt,La as Ji,Lb as Yt,Ld as ir,Lf as ur,Ma as l,Mb as j,Me as or,Na as Zi,Nb as V,Nc as Qt,Ob as Fe,Pb as h,Pc as He,Qa as ht,Qb as R,Ra as me,Rb as se,Sa as en,Tb as mt,Ub as gt,Ue as ar,Uf as fr,Vb as vt,X as jn,Xa as y,Xb as Re,Ya as ge,Yc as gi,Za as xe,Zb as tt,Zf as pr,_a as tn,_b as it,_c as ye,ab as P,ad as Jn,ba as Un,bb as L,bc as Wn,bd as vi,bf as lr,c as Hn,ca as Q,cb as Ut,cc as hi,da as he,dc as ve,ec as mi,ef as yi,f as Bt,fc as yt,fd as Ct,gg as Er,ha as p,hc as Xt,jb as D,kb as N,kd as St,ma as S,na as _,nb as nn,ne as nr,nf as cr,ob as rn,pb as u,qb as c,qc as sn,rb as d,rc as Kn,sb as g,se as rr,tb as $t,u as Qi,ub as qt,ud as bi,v as jt,va as Qe,vb as pi,ve as sr,w as Bn,wb as Je,xb as Ze,ya as ae,yb as Ie,yd as _t,zb as F,zc as Yn,zd as Zn}from"./chunk-6IRL673W.js";import{a as oe,b as Ye,j as Xe}from"./chunk-RTRJ3KFH.js";var ml={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-13.3 0-24 10.7-24 24l0 9.7C118.6 45.3 56 115.4 56 200l0 14.5c0 37.7-10 74.7-29 107.3L5.1 359.2C1.8 365 0 371.5 0 378.2 0 399.1 16.9 416 37.8 416l372.4 0c20.9 0 37.8-16.9 37.8-37.8 0-6.7-1.8-13.3-5.1-19L421 321.7c-19-32.6-29-69.6-29-107.3l0-14.5c0-84.6-62.6-154.7-144-166.3l0-9.7c0-13.3-10.7-24-24-24zM392.4 368l-336.9 0 12.9-22.1C91.7 306 104 260.6 104 214.5l0-14.5c0-66.3 53.7-120 120-120s120 53.7 120 120l0 14.5c0 46.2 12.3 91.5 35.5 131.4L392.4 368zM156.1 464c9.9 28 36.6 48 67.9 48s58-20 67.9-48l-135.8 0z"]};var go={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zM80 104c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm0 80c0 13.3 10.7 24 24 24l32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-32 0c-13.3 0-24 10.7-24 24zm64 56l-32 0c-17.7 0-32 14.3-32 32l0 48c0 26.5 21.5 48 48 48s48-21.5 48-48l0-48c0-17.7-14.3-32-32-32zm-16 64a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},gl=go;var vl={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var wi={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M176 48L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-240-88 0c-39.8 0-72-32.2-72-72l0-88zM316.1 160L224 67.9 224 136c0 13.3 10.7 24 24 24l68.1 0zM0 64C0 28.7 28.7 0 64 0L197.5 0c17 0 33.3 6.7 45.3 18.7L365.3 141.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var bl={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"]};var yl={prefix:"far",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M144 128a80 80 0 1 1 160 0 80 80 0 1 1 -160 0zm208 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0zM48 480c0-70.7 57.3-128 128-128l96 0c70.7 0 128 57.3 128 128l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8c0-97.2-78.8-176-176-176l-96 0C78.8 304 0 382.8 0 480l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8z"]};var Cl={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var Sl={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M0 240c0 54.4 19.3 104.6 51.9 144.9L3.1 474.3c-2 3.7-3.1 7.9-3.1 12.2 0 14.1 11.4 25.5 25.5 25.5 4 0 7.8-.6 11.5-2.1L153.4 460c31.4 12.9 66.1 20 102.6 20 141.4 0 256-107.5 256-240S397.4 0 256 0 0 107.5 0 240zM94 407.9c9.3-17.1 7.4-38.1-4.8-53.2-26.1-32.3-41.2-71.9-41.2-114.7 0-103.2 90.2-192 208-192s208 88.8 208 192-90.2 192-208 192c-30.2 0-58.7-5.9-84.3-16.4-11.9-4.9-25.3-4.8-37.1 .3L76 440.9 94 407.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var _l={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 488c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4 44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0-35.1-17.6-75.4-22-113.5-12.5L48 52 48 24zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8 54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4-48.2-24.1-103.3-30.1-155.6-17.1l-68.6 17.2 0-237z"]};var El={prefix:"far",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]};var Fr={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M448 400L64 400c-8.8 0-16-7.2-16-16l0-144 416 0 0 144c0 8.8-7.2 16-16 16zm16-208l-416 0 0-96c0-8.8 7.2-16 16-16l138.7 0c3.5 0 6.8 1.1 9.6 3.2L250.7 112c13.8 10.4 30.7 16 48 16L448 128c8.8 0 16 7.2 16 16l0 48zM64 448l384 0c35.3 0 64-28.7 64-64l0-240c0-35.3-28.7-64-64-64L298.7 80c-6.9 0-13.7-2.2-19.2-6.4L241.1 44.8C230 36.5 216.5 32 202.7 32L64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64z"]};var Rr=(()=>{let e=class e{transform(t,n=0,s=void 0){return Mt(t,n,s)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=tn({name:"pathSlice",type:e,pure:!0});let i=e;return i})();var dn=function(i,e){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},dn(i,e)};function Yr(i,e){dn(i,e);function r(){this.constructor=i}i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var te=function(){return te=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},te.apply(this,arguments)};function Xr(i,e){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var t=r.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=t.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(o)throw o.error}}return s}function un(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Xr(arguments[e]));return i}var vo="An invariant failed, however the error is obfuscated because this is an production build.",Ni=[];Object.freeze(Ni);var vn={};Object.freeze(vn);var bo={};function fn(){return typeof window<"u"?window:typeof global<"u"?global:bo}function ie(){return++v.mobxGuid}function k(i){throw ei(!1,i),"X"}function ei(i,e){if(!i)throw new Error("[mobx] "+(e||vo))}var Vr=[];function De(i,e){return!1}function bn(i){var e=!1;return function(){if(!e)return e=!0,i.apply(this,arguments)}}var Hr=function(){};function yo(i){var e=[];return i.forEach(function(r){e.indexOf(r)===-1&&e.push(r)}),e}function yn(i){return i!==null&&typeof i=="object"}function zt(i){if(i===null||typeof i!="object")return!1;var e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Co(i){return It(i)||ut(i)?i:Array.isArray(i)?new Map(i):zt(i)?new Map(Object.entries(i)):k("Cannot convert to map from '"+i+"'")}function So(i,e){for(var r=0;r<e.length;r++)ct(i,e[r],i[e[r]])}function ct(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!0,configurable:!0,value:r})}function ri(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!1,configurable:!0,value:r})}function qe(i,e){var r="isMobX"+i;return e.prototype[r]=!0,function(t){return yn(t)&&t[r]===!0}}function _o(i,e){return typeof i=="number"&&typeof e=="number"&&isNaN(i)&&isNaN(e)}function It(i){return fn().Map!==void 0&&i instanceof fn().Map}function si(i){return i instanceof Set}function Pt(i){for(var e=[];;){var r=i.next();if(r.done)break;e.push(r.value)}return e}function Qr(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function Jr(i){return i===null?null:typeof i=="object"?""+i:i}function Cn(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Sn(i,e){ri(i,Cn(),e)}function ti(i){return i[Cn()]=Eo,i}function _n(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function Eo(){return this}var Ii=(function(){function i(e){e===void 0&&(e="Atom@"+ie()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=O.NOT_TRACKING}return i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.reportObserved=function(){return fs(this)},i.prototype.reportChanged=function(){Ne(),qo(this),Oe()},i.prototype.toString=function(){return this.name},i})(),En=qe("Atom",Ii);function xo(i,e,r){e===void 0&&(e=Hr),r===void 0&&(r=Hr);var t=new Ii(i);return ra(t,e),vs(t,r),t}function Zr(i,e){return i===e}function Mo(i,e){return An(i,e)}function wo(i,e){return An(i,e,1)}function Ao(i,e){return _o(i,e)||Zr(i,e)}var Lt={identity:Zr,structural:Mo,default:Ao,shallow:wo},Do={},No={};function Oo(i,e){var r=e?Do:No;return r[i]||(r[i]={configurable:!0,enumerable:e,get:function(){return at(this),this[i]},set:function(t){at(this),this[i]=t}})}function at(i){if(i.__mobxDidRunLazyInitializers!==!0){var e=i.__mobxDecorators;if(e){ct(i,"__mobxDidRunLazyInitializers",!0);for(var r in e){var t=e[r];t.propertyCreator(i,t.prop,t.descriptor,t.decoratorTarget,t.decoratorArguments)}}}}function es(i,e){return function(){var t,n=function(o,a,m,C){if(C===!0)return e(o,a,m,o,t),null;if(!Object.prototype.hasOwnProperty.call(o,"__mobxDecorators")){var I=o.__mobxDecorators;ct(o,"__mobxDecorators",te({},I))}return o.__mobxDecorators[a]={prop:a,propertyCreator:e,descriptor:m,decoratorTarget:o,decoratorArguments:t},Oo(a,i)};return To(arguments)?(t=Ni,n.apply(null,arguments)):(t=Array.prototype.slice.call(arguments),n)}}function To(i){return(i.length===2||i.length===3)&&typeof i[1]=="string"||i.length===4&&i[3]===!0}function oi(i,e,r){return Cs(i)?i:Array.isArray(i)?M.array(i,{name:r}):zt(i)?M.object(i,void 0,{name:r}):It(i)?M.map(i,{name:r}):si(i)?M.set(i,{name:r}):i}function Po(i,e,r){return i==null||ni(i)||Vi(i)||ut(i)||Ft(i)?i:Array.isArray(i)?M.array(i,{name:r,deep:!1}):zt(i)?M.object(i,void 0,{name:r,deep:!1}):It(i)?M.map(i,{name:r,deep:!1}):si(i)?M.set(i,{name:r,deep:!1}):k(!1)}function ii(i){return i}function Lo(i,e,r){return An(i,e)?e:i}function ki(i){var e=es(!0,function(t,n,s,o,a){var m=s?s.initializer?s.initializer.call(t):s.value:void 0;ba(t,n,m,i)}),r=(typeof process<"u"&&process.env,e);return r.enhancer=i,r}var ts={deep:!0,name:void 0,defaultDecorator:void 0},zo={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(ts);Object.freeze(zo);function Tt(i){return i==null?ts:typeof i=="string"?{name:i,deep:!0}:i}function Ai(i){return i.defaultDecorator?i.defaultDecorator.enhancer:i.deep===!1?ii:oi}var xn=ki(oi),Io=ki(Po),is=ki(ii),ko=ki(Lo);function Fo(i,e,r){if(typeof arguments[1]=="string")return xn.apply(null,arguments);if(Cs(i))return i;var t=zt(i)?M.object(i,e,r):Array.isArray(i)?M.array(i,e):It(i)?M.map(i,e):si(i)?M.set(i,e):i;if(t!==i)return t;k(!1)}var Br={box:function(i,e){arguments.length>2&&we("box");var r=Tt(e);return new Ue(i,Ai(r),r.name,!0,r.equals)},shallowBox:function(i,e){return arguments.length>2&&we("shallowBox"),De("observable.shallowBox","observable.box(value, { deep: false })"),M.box(i,{name:e,deep:!1})},array:function(i,e){arguments.length>2&&we("array");var r=Tt(e);return new Pe(i,Ai(r),r.name)},shallowArray:function(i,e){return arguments.length>2&&we("shallowArray"),De("observable.shallowArray","observable.array(values, { deep: false })"),M.array(i,{name:e,deep:!1})},map:function(i,e){arguments.length>2&&we("map");var r=Tt(e);return new Hi(i,Ai(r),r.name)},shallowMap:function(i,e){return arguments.length>2&&we("shallowMap"),De("observable.shallowMap","observable.map(values, { deep: false })"),M.map(i,{name:e,deep:!1})},set:function(i,e){arguments.length>2&&we("set");var r=Tt(e);return new Bi(i,Ai(r),r.name)},object:function(i,e,r){typeof arguments[1]=="string"&&we("object");var t=Tt(r);return sa({},i,e,t)},shallowObject:function(i,e){return typeof arguments[1]=="string"&&we("shallowObject"),De("observable.shallowObject","observable.object(values, {}, { deep: false })"),M.object(i,{},{name:e,deep:!1})},ref:is,shallow:Io,deep:xn,struct:ko},M=Fo;Object.keys(Br).forEach(function(i){return M[i]=Br[i]});function we(i){k("Expected one or two arguments to observable."+i+". Did you accidentally try to use observable."+i+" as decorator?")}var Oi=es(!1,function(i,e,r,t,n){var s=r.get,o=r.set,a=n[0]||{};ya(i,e,te({get:s,set:o},a))}),Ro=Oi({equals:Lt.structural}),U=function(e,r,t){if(typeof r=="string"||e!==null&&typeof e=="object"&&arguments.length===1)return Oi.apply(null,arguments);var n=typeof r=="object"?r:{};return n.get=e,n.set=typeof r=="function"?r:n.set,n.name=n.name||e.name||"",new $e(n)};U.struct=Ro;var O=(function(i){return i[i.NOT_TRACKING=-1]="NOT_TRACKING",i[i.UP_TO_DATE=0]="UP_TO_DATE",i[i.POSSIBLY_STALE=1]="POSSIBLY_STALE",i[i.STALE=2]="STALE",i})(O||{}),Se=(function(i){return i[i.NONE=0]="NONE",i[i.LOG=1]="LOG",i[i.BREAK=2]="BREAK",i})(Se||{}),Ti=(function(){function i(e){this.cause=e}return i})();function Zt(i){return i instanceof Ti}function pn(i){switch(i.dependenciesState){case O.UP_TO_DATE:return!1;case O.NOT_TRACKING:case O.STALE:return!0;case O.POSSIBLY_STALE:{for(var e=kt(),r=i.observing,t=r.length,n=0;n<t;n++){var s=r[n];if(Ri(s)){if(v.disableErrorBoundaries)s.get();else try{s.get()}catch{return Ge(e),!0}if(i.dependenciesState===O.STALE)return Ge(e),!0}}return as(i),Ge(e),!1}}}function Fi(i){var e=i.observers.length>0;v.computationDepth>0&&e&&k(!1),!v.allowStateChanges&&(e||v.enforceActions==="strict")&&k(!1)}function ns(i,e,r){var t=ss(!0);as(i),i.newObserving=new Array(i.observing.length+100),i.unboundDepsCount=0,i.runId=++v.runId;var n=v.trackingDerivation;v.trackingDerivation=i;var s;if(v.disableErrorBoundaries===!0)s=e.call(r);else try{s=e.call(r)}catch(o){s=new Ti(o)}return v.trackingDerivation=n,Vo(i),i.observing.length===0&&void 0,os(t),s}function Vo(i){for(var e=i.observing,r=i.observing=i.newObserving,t=O.UP_TO_DATE,n=0,s=i.unboundDepsCount,o=0;o<s;o++){var a=r[o];a.diffValue===0&&(a.diffValue=1,n!==o&&(r[n]=a),n++),a.dependenciesState>t&&(t=a.dependenciesState)}for(r.length=n,i.newObserving=null,s=e.length;s--;){var a=e[s];a.diffValue===0&&ds(a,i),a.diffValue=0}for(;n--;){var a=r[n];a.diffValue===1&&(a.diffValue=0,$o(a,i))}t!==O.UP_TO_DATE&&(i.dependenciesState=t,i.onBecomeStale())}function hn(i){var e=i.observing;i.observing=[];for(var r=e.length;r--;)ds(e[r],i);i.dependenciesState=O.NOT_TRACKING}function rs(i){var e=kt(),r=i();return Ge(e),r}function kt(){var i=v.trackingDerivation;return v.trackingDerivation=null,i}function Ge(i){v.trackingDerivation=i}function ss(i){var e=v.allowStateReads;return v.allowStateReads=i,e}function os(i){v.allowStateReads=i}function as(i){if(i.dependenciesState!==O.UP_TO_DATE){i.dependenciesState=O.UP_TO_DATE;for(var e=i.observing,r=e.length;r--;)e[r].lowestObserverState=O.UP_TO_DATE}}var Pi=0,Ho=1;function ot(i,e){var r=function(){return Bo(i,e,this,arguments)};return r.isMobxAction=!0,r}function Bo(i,e,r,t){var n=jo(i,r,t);try{return e.apply(r,t)}catch(s){throw n.error=s,s}finally{Go(n)}}function jo(i,e,r){var t=K()&&!!i,n=0;if(t){n=Date.now();var s=r&&r.length||0,o=new Array(s);if(s>0)for(var a=0;a<s;a++)o[a]=r[a];ce({type:"action",name:i,object:e,arguments:o})}var m=kt();Ne();var C=ls(!0),I=ss(!0),ne={prevDerivation:m,prevAllowStateChanges:C,prevAllowStateReads:I,notifySpy:t,startTime:n,actionId:Ho++,parentActionId:Pi};return Pi=ne.actionId,ne}function Go(i){Pi!==i.actionId&&k("invalid action stack. did you forget to finish an action?"),Pi=i.parentActionId,i.error!==void 0&&(v.suppressReactionErrors=!0),cs(i.prevAllowStateChanges),os(i.prevAllowStateReads),Oe(),Ge(i.prevDerivation),i.notifySpy&&de({time:Date.now()-i.startTime}),v.suppressReactionErrors=!1}function ls(i){var e=v.allowStateChanges;return v.allowStateChanges=i,e}function cs(i){v.allowStateChanges=i}var Ue=(function(i){Yr(e,i);function e(r,t,n,s,o){n===void 0&&(n="ObservableValue@"+ie()),s===void 0&&(s=!0),o===void 0&&(o=Lt.default);var a=i.call(this,n)||this;return a.enhancer=t,a.name=n,a.equals=o,a.hasUnreportedChange=!1,a.value=t(r,void 0,n),s&&K()&<({type:"create",name:a.name,newValue:""+a.value}),a}return e.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.prototype.set=function(r){var t=this.value;if(r=this.prepareNewValue(r),r!==v.UNCHANGED){var n=K();n&&ce({type:"update",name:this.name,newValue:r,oldValue:t}),this.setNewValue(r),n&&de()}},e.prototype.prepareNewValue=function(r){if(Fi(this),_e(this)){var t=Ee(this,{object:this,type:"update",newValue:r});if(!t)return v.UNCHANGED;r=t.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?v.UNCHANGED:r},e.prototype.setNewValue=function(r){var t=this.value;this.value=r,this.reportChanged(),ue(this)&&fe(this,{type:"update",object:this,newValue:r,oldValue:t})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(r){return li(this,r)},e.prototype.observe=function(r,t){return t&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),ci(this,r)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return Jr(this.get())},e})(Ii);Ue.prototype[Qr()]=Ue.prototype.valueOf;var Al=qe("ObservableValue",Ue),$e=(function(){function i(e){this.dependenciesState=O.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=O.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ie(),this.value=new Ti(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Se.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ie(),e.set&&(this.setter=ot(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Lt.structural:Lt.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return i.prototype.onBecomeStale=function(){Ko(this)},i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.get=function(){this.isComputing&&k("Cycle detected in computation "+this.name+": "+this.derivation),v.inBatch===0&&this.observers.length===0&&!this.keepAlive?pn(this)&&(this.warnAboutUntrackedRead(),Ne(),this.value=this.computeValue(!1),Oe()):(fs(this),pn(this)&&this.trackAndCompute()&&Wo(this));var e=this.value;if(Zt(e))throw e.cause;return e},i.prototype.peek=function(){var e=this.computeValue(!1);if(Zt(e))throw e.cause;return e},i.prototype.set=function(e){if(this.setter){ei(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ei(!1,!1)},i.prototype.trackAndCompute=function(){K()&<({object:this.scope,type:"compute",name:this.name});var e=this.value,r=this.dependenciesState===O.NOT_TRACKING,t=this.computeValue(!0),n=r||Zt(e)||Zt(t)||!this.equals(e,t);return n&&(this.value=t),n},i.prototype.computeValue=function(e){this.isComputing=!0,v.computationDepth++;var r;if(e)r=ns(this,this.derivation,this.scope);else if(v.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(t){r=new Ti(t)}return v.computationDepth--,this.isComputing=!1,r},i.prototype.suspend=function(){this.keepAlive||(hn(this),this.value=void 0)},i.prototype.observe=function(e,r){var t=this,n=!0,s=void 0;return ai(function(){var o=t.get();if(!n||r){var a=kt();e({type:"update",object:t,newValue:o,oldValue:s}),Ge(a)}n=!1,s=o})},i.prototype.warnAboutUntrackedRead=function(){},i.prototype.toJSON=function(){return this.get()},i.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},i.prototype.valueOf=function(){return Jr(this.get())},i})();$e.prototype[Qr()]=$e.prototype.valueOf;var Ri=qe("ComputedValue",$e);var an=(function(){function i(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return i})(),ln=!0,Uo=!1,v=(function(){var i=fn();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ln=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==new an().version&&(ln=!1),ln?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new an):(setTimeout(function(){Uo||k("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new an)})();function $o(i,e){var r=i.observers.length;r&&(i.observersIndexes[e.__mapid]=r),i.observers[r]=e,i.lowestObserverState>e.dependenciesState&&(i.lowestObserverState=e.dependenciesState)}function ds(i,e){if(i.observers.length===1)i.observers.length=0,us(i);else{var r=i.observers,t=i.observersIndexes,n=r.pop();if(n!==e){var s=t[e.__mapid]||0;s?t[n.__mapid]=s:delete t[n.__mapid],r[s]=n}delete t[e.__mapid]}}function us(i){i.isPendingUnobservation===!1&&(i.isPendingUnobservation=!0,v.pendingUnobservations.push(i))}function Ne(){v.inBatch++}function Oe(){if(--v.inBatch===0){ms();for(var i=v.pendingUnobservations,e=0;e<i.length;e++){var r=i[e];r.isPendingUnobservation=!1,r.observers.length===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBecomeUnobserved()),r instanceof $e&&r.suspend())}v.pendingUnobservations=[]}}function fs(i){var e=v.trackingDerivation;return e!==null?(e.runId!==i.lastAccessedBy&&(i.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=i,i.isBeingObserved||(i.isBeingObserved=!0,i.onBecomeObserved())),!0):(i.observers.length===0&&v.inBatch>0&&us(i),!1)}function qo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale()),t.dependenciesState=O.STALE}}}function Wo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.POSSIBLY_STALE?t.dependenciesState=O.STALE:t.dependenciesState===O.UP_TO_DATE&&(i.lowestObserverState=O.UP_TO_DATE)}}}function Ko(i){if(i.lowestObserverState===O.UP_TO_DATE){i.lowestObserverState=O.POSSIBLY_STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.dependenciesState=O.POSSIBLY_STALE,t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale())}}}function ps(i,e){if(console.log("[mobx.trace] '"+i.name+"' is invalidated due to a change in: '"+e.name+"'"),i.isTracing===Se.BREAK){var r=[];hs(oa(i),r,1),new Function(`debugger;
|
|
1
|
+
import{a as kr}from"./chunk-ZQQPUYLU.js";import{c as Tr}from"./chunk-JXZCNFW7.js";import{a as Mr}from"./chunk-U34OZUZ7.js";import{a as xr,b as wr,c as Ar,d as Dr,e as Nr,h as Or}from"./chunk-7P27WBGC.js";import{b as Lr,c as xi,d as Ir,e as Mi}from"./chunk-2I4CUFUA.js";import{a as Pr,d as Jt,g as Ot}from"./chunk-7FUM3JGM.js";import{m as Si,p as _i}from"./chunk-JUNZFADM.js";import{Ab as Sr,Ba as hr,Ca as mr,Cb as _r,Da as gr,Jb as Ci,Ka as vr,Kb as ee,Lb as Dt,Na as xt,P as rt,Pa as Mt,Qa as br,ab as on,f as tr,lb as yr,nb as wt,ob as At,pb as le,qb as Be,sb as Cr,zb as H}from"./chunk-2MTM6SWN.js";import{a as Ei,c as je,d as zr,h as st,m as Nt}from"./chunk-22EANI6R.js";import{d as Xn}from"./chunk-ORMRCEGT.js";import{$ as Gn,$b as bt,$c as Qn,Ab as ke,Ac as Ve,Ad as Et,B as T,C as Gt,Cb as b,Db as qn,Dc as nt,Eb as f,Fb as Wt,Ga as ze,Gb as Kt,Gd as er,Ha as $n,Hb as et,Hc as be,Hd as Ce,Ib as Me,Jb as J,Jf as dr,Kb as Z,L as pt,La as Ji,Lb as Yt,Ld as ir,Lf as ur,Ma as l,Mb as j,Me as or,Na as Zi,Nb as V,Nc as Qt,Ob as Fe,Pb as h,Pc as He,Qa as ht,Qb as R,Ra as me,Rb as se,Sa as en,Tb as mt,Ub as gt,Ue as ar,Uf as fr,Vb as vt,X as jn,Xa as y,Xb as Re,Ya as ge,Yc as gi,Za as xe,Zb as tt,Zf as pr,_a as tn,_b as it,_c as ye,ab as P,ad as Jn,ba as Un,bb as L,bc as Wn,bd as vi,bf as lr,c as Hn,ca as Q,cb as Ut,cc as hi,da as he,dc as ve,ec as mi,ef as yi,f as Bt,fc as yt,fd as Ct,gg as Er,ha as p,hc as Xt,jb as D,kb as N,kd as St,ma as S,na as _,nb as nn,ne as nr,nf as cr,ob as rn,pb as u,qb as c,qc as sn,rb as d,rc as Kn,sb as g,se as rr,tb as $t,u as Qi,ub as qt,ud as bi,v as jt,va as Qe,vb as pi,ve as sr,w as Bn,wb as Je,xb as Ze,ya as ae,yb as Ie,yd as _t,zb as F,zc as Yn,zd as Zn}from"./chunk-ATP3BFHV.js";import{a as oe,b as Ye,j as Xe}from"./chunk-RTRJ3KFH.js";var ml={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-13.3 0-24 10.7-24 24l0 9.7C118.6 45.3 56 115.4 56 200l0 14.5c0 37.7-10 74.7-29 107.3L5.1 359.2C1.8 365 0 371.5 0 378.2 0 399.1 16.9 416 37.8 416l372.4 0c20.9 0 37.8-16.9 37.8-37.8 0-6.7-1.8-13.3-5.1-19L421 321.7c-19-32.6-29-69.6-29-107.3l0-14.5c0-84.6-62.6-154.7-144-166.3l0-9.7c0-13.3-10.7-24-24-24zM392.4 368l-336.9 0 12.9-22.1C91.7 306 104 260.6 104 214.5l0-14.5c0-66.3 53.7-120 120-120s120 53.7 120 120l0 14.5c0 46.2 12.3 91.5 35.5 131.4L392.4 368zM156.1 464c9.9 28 36.6 48 67.9 48s58-20 67.9-48l-135.8 0z"]};var go={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zM80 104c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm0 80c0 13.3 10.7 24 24 24l32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-32 0c-13.3 0-24 10.7-24 24zm64 56l-32 0c-17.7 0-32 14.3-32 32l0 48c0 26.5 21.5 48 48 48s48-21.5 48-48l0-48c0-17.7-14.3-32-32-32zm-16 64a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},gl=go;var vl={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var wi={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M176 48L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-240-88 0c-39.8 0-72-32.2-72-72l0-88zM316.1 160L224 67.9 224 136c0 13.3 10.7 24 24 24l68.1 0zM0 64C0 28.7 28.7 0 64 0L197.5 0c17 0 33.3 6.7 45.3 18.7L365.3 141.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var bl={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"]};var yl={prefix:"far",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M144 128a80 80 0 1 1 160 0 80 80 0 1 1 -160 0zm208 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0zM48 480c0-70.7 57.3-128 128-128l96 0c70.7 0 128 57.3 128 128l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8c0-97.2-78.8-176-176-176l-96 0C78.8 304 0 382.8 0 480l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8z"]};var Cl={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var Sl={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M0 240c0 54.4 19.3 104.6 51.9 144.9L3.1 474.3c-2 3.7-3.1 7.9-3.1 12.2 0 14.1 11.4 25.5 25.5 25.5 4 0 7.8-.6 11.5-2.1L153.4 460c31.4 12.9 66.1 20 102.6 20 141.4 0 256-107.5 256-240S397.4 0 256 0 0 107.5 0 240zM94 407.9c9.3-17.1 7.4-38.1-4.8-53.2-26.1-32.3-41.2-71.9-41.2-114.7 0-103.2 90.2-192 208-192s208 88.8 208 192-90.2 192-208 192c-30.2 0-58.7-5.9-84.3-16.4-11.9-4.9-25.3-4.8-37.1 .3L76 440.9 94 407.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var _l={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 488c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4 44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0-35.1-17.6-75.4-22-113.5-12.5L48 52 48 24zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8 54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4-48.2-24.1-103.3-30.1-155.6-17.1l-68.6 17.2 0-237z"]};var El={prefix:"far",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]};var Fr={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M448 400L64 400c-8.8 0-16-7.2-16-16l0-144 416 0 0 144c0 8.8-7.2 16-16 16zm16-208l-416 0 0-96c0-8.8 7.2-16 16-16l138.7 0c3.5 0 6.8 1.1 9.6 3.2L250.7 112c13.8 10.4 30.7 16 48 16L448 128c8.8 0 16 7.2 16 16l0 48zM64 448l384 0c35.3 0 64-28.7 64-64l0-240c0-35.3-28.7-64-64-64L298.7 80c-6.9 0-13.7-2.2-19.2-6.4L241.1 44.8C230 36.5 216.5 32 202.7 32L64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64z"]};var Rr=(()=>{let e=class e{transform(t,n=0,s=void 0){return Mt(t,n,s)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=tn({name:"pathSlice",type:e,pure:!0});let i=e;return i})();var dn=function(i,e){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},dn(i,e)};function Yr(i,e){dn(i,e);function r(){this.constructor=i}i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var te=function(){return te=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},te.apply(this,arguments)};function Xr(i,e){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var t=r.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=t.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(o)throw o.error}}return s}function un(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Xr(arguments[e]));return i}var vo="An invariant failed, however the error is obfuscated because this is an production build.",Ni=[];Object.freeze(Ni);var vn={};Object.freeze(vn);var bo={};function fn(){return typeof window<"u"?window:typeof global<"u"?global:bo}function ie(){return++v.mobxGuid}function k(i){throw ei(!1,i),"X"}function ei(i,e){if(!i)throw new Error("[mobx] "+(e||vo))}var Vr=[];function De(i,e){return!1}function bn(i){var e=!1;return function(){if(!e)return e=!0,i.apply(this,arguments)}}var Hr=function(){};function yo(i){var e=[];return i.forEach(function(r){e.indexOf(r)===-1&&e.push(r)}),e}function yn(i){return i!==null&&typeof i=="object"}function zt(i){if(i===null||typeof i!="object")return!1;var e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Co(i){return It(i)||ut(i)?i:Array.isArray(i)?new Map(i):zt(i)?new Map(Object.entries(i)):k("Cannot convert to map from '"+i+"'")}function So(i,e){for(var r=0;r<e.length;r++)ct(i,e[r],i[e[r]])}function ct(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!0,configurable:!0,value:r})}function ri(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!1,configurable:!0,value:r})}function qe(i,e){var r="isMobX"+i;return e.prototype[r]=!0,function(t){return yn(t)&&t[r]===!0}}function _o(i,e){return typeof i=="number"&&typeof e=="number"&&isNaN(i)&&isNaN(e)}function It(i){return fn().Map!==void 0&&i instanceof fn().Map}function si(i){return i instanceof Set}function Pt(i){for(var e=[];;){var r=i.next();if(r.done)break;e.push(r.value)}return e}function Qr(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function Jr(i){return i===null?null:typeof i=="object"?""+i:i}function Cn(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Sn(i,e){ri(i,Cn(),e)}function ti(i){return i[Cn()]=Eo,i}function _n(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function Eo(){return this}var Ii=(function(){function i(e){e===void 0&&(e="Atom@"+ie()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=O.NOT_TRACKING}return i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.reportObserved=function(){return fs(this)},i.prototype.reportChanged=function(){Ne(),qo(this),Oe()},i.prototype.toString=function(){return this.name},i})(),En=qe("Atom",Ii);function xo(i,e,r){e===void 0&&(e=Hr),r===void 0&&(r=Hr);var t=new Ii(i);return ra(t,e),vs(t,r),t}function Zr(i,e){return i===e}function Mo(i,e){return An(i,e)}function wo(i,e){return An(i,e,1)}function Ao(i,e){return _o(i,e)||Zr(i,e)}var Lt={identity:Zr,structural:Mo,default:Ao,shallow:wo},Do={},No={};function Oo(i,e){var r=e?Do:No;return r[i]||(r[i]={configurable:!0,enumerable:e,get:function(){return at(this),this[i]},set:function(t){at(this),this[i]=t}})}function at(i){if(i.__mobxDidRunLazyInitializers!==!0){var e=i.__mobxDecorators;if(e){ct(i,"__mobxDidRunLazyInitializers",!0);for(var r in e){var t=e[r];t.propertyCreator(i,t.prop,t.descriptor,t.decoratorTarget,t.decoratorArguments)}}}}function es(i,e){return function(){var t,n=function(o,a,m,C){if(C===!0)return e(o,a,m,o,t),null;if(!Object.prototype.hasOwnProperty.call(o,"__mobxDecorators")){var I=o.__mobxDecorators;ct(o,"__mobxDecorators",te({},I))}return o.__mobxDecorators[a]={prop:a,propertyCreator:e,descriptor:m,decoratorTarget:o,decoratorArguments:t},Oo(a,i)};return To(arguments)?(t=Ni,n.apply(null,arguments)):(t=Array.prototype.slice.call(arguments),n)}}function To(i){return(i.length===2||i.length===3)&&typeof i[1]=="string"||i.length===4&&i[3]===!0}function oi(i,e,r){return Cs(i)?i:Array.isArray(i)?M.array(i,{name:r}):zt(i)?M.object(i,void 0,{name:r}):It(i)?M.map(i,{name:r}):si(i)?M.set(i,{name:r}):i}function Po(i,e,r){return i==null||ni(i)||Vi(i)||ut(i)||Ft(i)?i:Array.isArray(i)?M.array(i,{name:r,deep:!1}):zt(i)?M.object(i,void 0,{name:r,deep:!1}):It(i)?M.map(i,{name:r,deep:!1}):si(i)?M.set(i,{name:r,deep:!1}):k(!1)}function ii(i){return i}function Lo(i,e,r){return An(i,e)?e:i}function ki(i){var e=es(!0,function(t,n,s,o,a){var m=s?s.initializer?s.initializer.call(t):s.value:void 0;ba(t,n,m,i)}),r=(typeof process<"u"&&process.env,e);return r.enhancer=i,r}var ts={deep:!0,name:void 0,defaultDecorator:void 0},zo={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(ts);Object.freeze(zo);function Tt(i){return i==null?ts:typeof i=="string"?{name:i,deep:!0}:i}function Ai(i){return i.defaultDecorator?i.defaultDecorator.enhancer:i.deep===!1?ii:oi}var xn=ki(oi),Io=ki(Po),is=ki(ii),ko=ki(Lo);function Fo(i,e,r){if(typeof arguments[1]=="string")return xn.apply(null,arguments);if(Cs(i))return i;var t=zt(i)?M.object(i,e,r):Array.isArray(i)?M.array(i,e):It(i)?M.map(i,e):si(i)?M.set(i,e):i;if(t!==i)return t;k(!1)}var Br={box:function(i,e){arguments.length>2&&we("box");var r=Tt(e);return new Ue(i,Ai(r),r.name,!0,r.equals)},shallowBox:function(i,e){return arguments.length>2&&we("shallowBox"),De("observable.shallowBox","observable.box(value, { deep: false })"),M.box(i,{name:e,deep:!1})},array:function(i,e){arguments.length>2&&we("array");var r=Tt(e);return new Pe(i,Ai(r),r.name)},shallowArray:function(i,e){return arguments.length>2&&we("shallowArray"),De("observable.shallowArray","observable.array(values, { deep: false })"),M.array(i,{name:e,deep:!1})},map:function(i,e){arguments.length>2&&we("map");var r=Tt(e);return new Hi(i,Ai(r),r.name)},shallowMap:function(i,e){return arguments.length>2&&we("shallowMap"),De("observable.shallowMap","observable.map(values, { deep: false })"),M.map(i,{name:e,deep:!1})},set:function(i,e){arguments.length>2&&we("set");var r=Tt(e);return new Bi(i,Ai(r),r.name)},object:function(i,e,r){typeof arguments[1]=="string"&&we("object");var t=Tt(r);return sa({},i,e,t)},shallowObject:function(i,e){return typeof arguments[1]=="string"&&we("shallowObject"),De("observable.shallowObject","observable.object(values, {}, { deep: false })"),M.object(i,{},{name:e,deep:!1})},ref:is,shallow:Io,deep:xn,struct:ko},M=Fo;Object.keys(Br).forEach(function(i){return M[i]=Br[i]});function we(i){k("Expected one or two arguments to observable."+i+". Did you accidentally try to use observable."+i+" as decorator?")}var Oi=es(!1,function(i,e,r,t,n){var s=r.get,o=r.set,a=n[0]||{};ya(i,e,te({get:s,set:o},a))}),Ro=Oi({equals:Lt.structural}),U=function(e,r,t){if(typeof r=="string"||e!==null&&typeof e=="object"&&arguments.length===1)return Oi.apply(null,arguments);var n=typeof r=="object"?r:{};return n.get=e,n.set=typeof r=="function"?r:n.set,n.name=n.name||e.name||"",new $e(n)};U.struct=Ro;var O=(function(i){return i[i.NOT_TRACKING=-1]="NOT_TRACKING",i[i.UP_TO_DATE=0]="UP_TO_DATE",i[i.POSSIBLY_STALE=1]="POSSIBLY_STALE",i[i.STALE=2]="STALE",i})(O||{}),Se=(function(i){return i[i.NONE=0]="NONE",i[i.LOG=1]="LOG",i[i.BREAK=2]="BREAK",i})(Se||{}),Ti=(function(){function i(e){this.cause=e}return i})();function Zt(i){return i instanceof Ti}function pn(i){switch(i.dependenciesState){case O.UP_TO_DATE:return!1;case O.NOT_TRACKING:case O.STALE:return!0;case O.POSSIBLY_STALE:{for(var e=kt(),r=i.observing,t=r.length,n=0;n<t;n++){var s=r[n];if(Ri(s)){if(v.disableErrorBoundaries)s.get();else try{s.get()}catch{return Ge(e),!0}if(i.dependenciesState===O.STALE)return Ge(e),!0}}return as(i),Ge(e),!1}}}function Fi(i){var e=i.observers.length>0;v.computationDepth>0&&e&&k(!1),!v.allowStateChanges&&(e||v.enforceActions==="strict")&&k(!1)}function ns(i,e,r){var t=ss(!0);as(i),i.newObserving=new Array(i.observing.length+100),i.unboundDepsCount=0,i.runId=++v.runId;var n=v.trackingDerivation;v.trackingDerivation=i;var s;if(v.disableErrorBoundaries===!0)s=e.call(r);else try{s=e.call(r)}catch(o){s=new Ti(o)}return v.trackingDerivation=n,Vo(i),i.observing.length===0&&void 0,os(t),s}function Vo(i){for(var e=i.observing,r=i.observing=i.newObserving,t=O.UP_TO_DATE,n=0,s=i.unboundDepsCount,o=0;o<s;o++){var a=r[o];a.diffValue===0&&(a.diffValue=1,n!==o&&(r[n]=a),n++),a.dependenciesState>t&&(t=a.dependenciesState)}for(r.length=n,i.newObserving=null,s=e.length;s--;){var a=e[s];a.diffValue===0&&ds(a,i),a.diffValue=0}for(;n--;){var a=r[n];a.diffValue===1&&(a.diffValue=0,$o(a,i))}t!==O.UP_TO_DATE&&(i.dependenciesState=t,i.onBecomeStale())}function hn(i){var e=i.observing;i.observing=[];for(var r=e.length;r--;)ds(e[r],i);i.dependenciesState=O.NOT_TRACKING}function rs(i){var e=kt(),r=i();return Ge(e),r}function kt(){var i=v.trackingDerivation;return v.trackingDerivation=null,i}function Ge(i){v.trackingDerivation=i}function ss(i){var e=v.allowStateReads;return v.allowStateReads=i,e}function os(i){v.allowStateReads=i}function as(i){if(i.dependenciesState!==O.UP_TO_DATE){i.dependenciesState=O.UP_TO_DATE;for(var e=i.observing,r=e.length;r--;)e[r].lowestObserverState=O.UP_TO_DATE}}var Pi=0,Ho=1;function ot(i,e){var r=function(){return Bo(i,e,this,arguments)};return r.isMobxAction=!0,r}function Bo(i,e,r,t){var n=jo(i,r,t);try{return e.apply(r,t)}catch(s){throw n.error=s,s}finally{Go(n)}}function jo(i,e,r){var t=K()&&!!i,n=0;if(t){n=Date.now();var s=r&&r.length||0,o=new Array(s);if(s>0)for(var a=0;a<s;a++)o[a]=r[a];ce({type:"action",name:i,object:e,arguments:o})}var m=kt();Ne();var C=ls(!0),I=ss(!0),ne={prevDerivation:m,prevAllowStateChanges:C,prevAllowStateReads:I,notifySpy:t,startTime:n,actionId:Ho++,parentActionId:Pi};return Pi=ne.actionId,ne}function Go(i){Pi!==i.actionId&&k("invalid action stack. did you forget to finish an action?"),Pi=i.parentActionId,i.error!==void 0&&(v.suppressReactionErrors=!0),cs(i.prevAllowStateChanges),os(i.prevAllowStateReads),Oe(),Ge(i.prevDerivation),i.notifySpy&&de({time:Date.now()-i.startTime}),v.suppressReactionErrors=!1}function ls(i){var e=v.allowStateChanges;return v.allowStateChanges=i,e}function cs(i){v.allowStateChanges=i}var Ue=(function(i){Yr(e,i);function e(r,t,n,s,o){n===void 0&&(n="ObservableValue@"+ie()),s===void 0&&(s=!0),o===void 0&&(o=Lt.default);var a=i.call(this,n)||this;return a.enhancer=t,a.name=n,a.equals=o,a.hasUnreportedChange=!1,a.value=t(r,void 0,n),s&&K()&<({type:"create",name:a.name,newValue:""+a.value}),a}return e.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.prototype.set=function(r){var t=this.value;if(r=this.prepareNewValue(r),r!==v.UNCHANGED){var n=K();n&&ce({type:"update",name:this.name,newValue:r,oldValue:t}),this.setNewValue(r),n&&de()}},e.prototype.prepareNewValue=function(r){if(Fi(this),_e(this)){var t=Ee(this,{object:this,type:"update",newValue:r});if(!t)return v.UNCHANGED;r=t.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?v.UNCHANGED:r},e.prototype.setNewValue=function(r){var t=this.value;this.value=r,this.reportChanged(),ue(this)&&fe(this,{type:"update",object:this,newValue:r,oldValue:t})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(r){return li(this,r)},e.prototype.observe=function(r,t){return t&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),ci(this,r)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return Jr(this.get())},e})(Ii);Ue.prototype[Qr()]=Ue.prototype.valueOf;var Al=qe("ObservableValue",Ue),$e=(function(){function i(e){this.dependenciesState=O.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=O.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ie(),this.value=new Ti(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Se.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ie(),e.set&&(this.setter=ot(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Lt.structural:Lt.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return i.prototype.onBecomeStale=function(){Ko(this)},i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.get=function(){this.isComputing&&k("Cycle detected in computation "+this.name+": "+this.derivation),v.inBatch===0&&this.observers.length===0&&!this.keepAlive?pn(this)&&(this.warnAboutUntrackedRead(),Ne(),this.value=this.computeValue(!1),Oe()):(fs(this),pn(this)&&this.trackAndCompute()&&Wo(this));var e=this.value;if(Zt(e))throw e.cause;return e},i.prototype.peek=function(){var e=this.computeValue(!1);if(Zt(e))throw e.cause;return e},i.prototype.set=function(e){if(this.setter){ei(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ei(!1,!1)},i.prototype.trackAndCompute=function(){K()&<({object:this.scope,type:"compute",name:this.name});var e=this.value,r=this.dependenciesState===O.NOT_TRACKING,t=this.computeValue(!0),n=r||Zt(e)||Zt(t)||!this.equals(e,t);return n&&(this.value=t),n},i.prototype.computeValue=function(e){this.isComputing=!0,v.computationDepth++;var r;if(e)r=ns(this,this.derivation,this.scope);else if(v.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(t){r=new Ti(t)}return v.computationDepth--,this.isComputing=!1,r},i.prototype.suspend=function(){this.keepAlive||(hn(this),this.value=void 0)},i.prototype.observe=function(e,r){var t=this,n=!0,s=void 0;return ai(function(){var o=t.get();if(!n||r){var a=kt();e({type:"update",object:t,newValue:o,oldValue:s}),Ge(a)}n=!1,s=o})},i.prototype.warnAboutUntrackedRead=function(){},i.prototype.toJSON=function(){return this.get()},i.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},i.prototype.valueOf=function(){return Jr(this.get())},i})();$e.prototype[Qr()]=$e.prototype.valueOf;var Ri=qe("ComputedValue",$e);var an=(function(){function i(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return i})(),ln=!0,Uo=!1,v=(function(){var i=fn();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ln=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==new an().version&&(ln=!1),ln?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new an):(setTimeout(function(){Uo||k("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new an)})();function $o(i,e){var r=i.observers.length;r&&(i.observersIndexes[e.__mapid]=r),i.observers[r]=e,i.lowestObserverState>e.dependenciesState&&(i.lowestObserverState=e.dependenciesState)}function ds(i,e){if(i.observers.length===1)i.observers.length=0,us(i);else{var r=i.observers,t=i.observersIndexes,n=r.pop();if(n!==e){var s=t[e.__mapid]||0;s?t[n.__mapid]=s:delete t[n.__mapid],r[s]=n}delete t[e.__mapid]}}function us(i){i.isPendingUnobservation===!1&&(i.isPendingUnobservation=!0,v.pendingUnobservations.push(i))}function Ne(){v.inBatch++}function Oe(){if(--v.inBatch===0){ms();for(var i=v.pendingUnobservations,e=0;e<i.length;e++){var r=i[e];r.isPendingUnobservation=!1,r.observers.length===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBecomeUnobserved()),r instanceof $e&&r.suspend())}v.pendingUnobservations=[]}}function fs(i){var e=v.trackingDerivation;return e!==null?(e.runId!==i.lastAccessedBy&&(i.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=i,i.isBeingObserved||(i.isBeingObserved=!0,i.onBecomeObserved())),!0):(i.observers.length===0&&v.inBatch>0&&us(i),!1)}function qo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale()),t.dependenciesState=O.STALE}}}function Wo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.POSSIBLY_STALE?t.dependenciesState=O.STALE:t.dependenciesState===O.UP_TO_DATE&&(i.lowestObserverState=O.UP_TO_DATE)}}}function Ko(i){if(i.lowestObserverState===O.UP_TO_DATE){i.lowestObserverState=O.POSSIBLY_STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.dependenciesState=O.POSSIBLY_STALE,t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale())}}}function ps(i,e){if(console.log("[mobx.trace] '"+i.name+"' is invalidated due to a change in: '"+e.name+"'"),i.isTracing===Se.BREAK){var r=[];hs(oa(i),r,1),new Function(`debugger;
|
|
2
2
|
/*
|
|
3
3
|
Tracing '`+i.name+`'
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as B}from"./chunk-2I4CUFUA.js";import"./chunk-7FUM3JGM.js";import"./chunk-IPAC4VAF.js";import"./chunk-Y7EH7G5K.js";import"./chunk-JUNZFADM.js";import{Kb as A}from"./chunk-2MTM6SWN.js";import{c as I,d as M,h as R,k as j,m as z}from"./chunk-22EANI6R.js";import{b as P,e as w}from"./chunk-ORMRCEGT.js";import{Ad as E,Cb as _,Eb as c,Ga as h,Gd as T,Hd as D,Ma as a,Pb as m,Qb as v,Sb as b,Xa as L,_c as y,dc as x,fc as C,ha as u,jb as f,kb as k,ma as g,na as S,pb as p,qb as o,rb as r,sb as d,zb as U}from"./chunk-ATP3BFHV.js";import"./chunk-RTRJ3KFH.js";function N(e,i){if(e&1){let t=U();o(0,"img",14),_("error",function(){g(t);let s=c();return S(s.fallBackMimeUrl())}),r()}if(e&2){let t=c();p("src",t.mimeUrl,h)}}function V(e,i){if(e&1&&d(0,"fa-icon",7),e&2){let t=c();p("icon",t.icons.SPACES)("fixedWidth",!1)}}function F(e,i){if(e&1&&(d(0,"img",15),o(1,"span",16),m(2),r()),e&2){let t=c();p("src",t.link.owner.avatar,h),a(2),v(t.link.owner.fullName)}}function O(e,i){e&1&&(o(0,"span",13),m(1,"You have been invited to join this space"),r())}function W(e,i){if(e&1&&(o(0,"span"),m(1),x(2,"translate"),x(3,"translate"),r()),e&2){let t=c();a(),b("",C(2,2,"share with you this",t.locale.language)," ",C(3,5,t.link.share.isDir?"directory":"file",t.locale.language))}}function Y(e,i){e&1&&(o(0,"span",13),m(1,"You have been invited to join this share"),r())}var ie=(()=>{let i=class i{constructor(){this.locale=u(E),this.icons={SPACES:A.SPACES},this.logoUrl=j,this.mimeUrl=null,this.activatedRoute=u(P),this.linksService=u(B),this.activatedRoute.params.subscribe(n=>this.linkUUID=n.uuid),this.activatedRoute.data.subscribe(n=>this.setLink(n.link))}setLink(n){n.space||(this.mimeUrl=R(n.share.isDir?n.share.hasParent?M:I:n.share.mime)),this.link=n}followLink(){this.linksService.linkAccess(this.linkUUID,this.link)}fallBackMimeUrl(){this.mimeUrl=z}};i.\u0275fac=function(s){return new(s||i)},i.\u0275cmp=L({type:i,selectors:[["app-public-link"]],decls:18,vars:5,consts:[[1,"link-page"],[1,"header"],["routerLink",""],["alt","","height","40",3,"src"],[1,"d-flex","flex-column","align-content-center"],[1,"resource","d-flex","flex-column","align-items-center","mt-3","mx-auto","cursor-pointer",3,"click"],["alt","","height","96",1,"no-select-pointer",3,"src"],[1,"circle-primary-icon",2,"min-width","128px","min-height","128px","font-size","64px",3,"icon","fixedWidth"],[1,"error-code"],[1,"error-text","no-select"],[1,"hr"],[1,"d-flex","justify-content-center","align-items-center"],[1,"solve"],["l10nTranslate",""],["alt","","height","96",1,"no-select-pointer",3,"error","src"],["alt","","width","42","height","42",1,"avatar-base-img","me-3",3,"src"],[1,"oops","me-2"]],template:function(s,l){s&1&&(o(0,"div",0)(1,"div",1)(2,"a",2),d(3,"img",3),r()(),o(4,"div",4)(5,"div",5),_("click",function(){return l.followLink()}),f(6,N,1,1,"img",6)(7,V,1,2,"fa-icon",7),o(8,"span",8),m(9),r()()(),o(10,"div",9),d(11,"span",10),o(12,"div",11),f(13,F,3,2),o(14,"span",12),f(15,O,2,0,"span",13)(16,W,4,8,"span")(17,Y,2,0,"span",13),r()()()()),s&2&&(a(3),p("src",l.logoUrl,h),a(3),k(l.mimeUrl?6:7),a(3),v((l.link.share==null?null:l.link.share.name)||(l.link.space==null?null:l.link.space.name)),a(4),k(l.link.owner?13:-1),a(2),k(l.link.space?15:l.link.owner?16:17))},dependencies:[w,y,D,T],encapsulation:2});let e=i;return e})();export{ie as PublicLinkComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Q}from"./chunk-YDFVKH2D.js";import{a as xe}from"./chunk-GCUWGVYT.js";import{a as fe}from"./chunk-XPIYOZBX.js";import{a as B,b as N,c as de,d as Ce}from"./chunk-ET6QDNNM.js";import"./chunk-G3FOG2QB.js";import{p as me}from"./chunk-IEUANP3Q.js";import{P as re,_a as pe,ra as se,sa as ae,ta as le,ua as R,v as X,va as ce,wa as ue,zb as _e}from"./chunk-2TZUZMCM.js";import{Ad as W,Cb as x,Eb as s,Ga as H,Gc as j,Gd as z,Hd as J,Ib as S,Id as Y,Jb as F,Jf as ie,Kb as U,L as D,Lf as ne,Ma as a,Mb as I,Nb as $,Ob as k,Pb as m,Qb as V,Rb as w,Sb as O,Xa as L,Xe as ee,Xf as oe,Yb as K,_c as q,ab as M,ce as Z,dc as g,ec as P,fc as y,ha as E,jb as v,kb as h,ma as p,na as _,nb as b,ob as T,pb as d,qb as l,rb as u,rf as te,sb as C,zb as G}from"./chunk-6IRL673W.js";import"./chunk-RTRJ3KFH.js";var he=["MainContextMenu"],ye=["TargetContextMenu"],ge=(e,o)=>o.key,we=(e,o)=>o.id,be=(e,o)=>o.mid;function Te(e,o){if(e&1&&C(0,"fa-icon",18),e&2){let t=s(3);d("icon",t.sortTable.sortParam.asc?t.icons.faArrowDown:t.icons.faArrowUp)("fixedWidth",!1)}}function Ge(e,o){if(e&1){let t=G();l(0,"th",17),x("click",function(){p(t);let r=s().$implicit,n=s();return _(n.sortBy(r.key))}),m(1),v(2,Te,1,2,"fa-icon",18),u()}if(e&2){let t=s().$implicit,i=s();k(t.value.class),I("width",t.value.width,"%"),$("text-align-center",t.value.textCenter)("cursor-pointer",t.value.sortable),a(),w(" ",t.value.label," "),a(),h(i.sortTable.sortParam.column===t.key?2:-1)}}function Se(e,o){if(e&1&&v(0,Ge,3,10,"th",16),e&2){let t=o.$implicit;h(t.value.show?0:-1)}}function Fe(e,o){if(e&1&&(l(0,"div",21),C(1,"img",24),l(2,"div",22)(3,"span",25),m(4),u(),l(5,"span",26),m(6),u()()()),e&2){let t=s(3).$implicit;a(),d("src",t.avatarUrl,H),a(3),w(" ",t.login," "),a(2),V(t.email)}}function Ue(e,o){if(e&1&&(l(0,"div",22)(1,"span",25),m(2),u()()),e&2){let t=s(3).$implicit;a(2),V(t.fullName)}}function Ve(e,o){if(e&1&&C(0,"app-user-avatar",27),e&2){let t=o.$implicit;d("user",t)("isMember",!0)}}function Ae(e,o){if(e&1&&b(0,Ve,1,2,"app-user-avatar",27,be),e&2){let t=s(3).$implicit;T(t.managers)}}function Ee(e,o){e&1&&m(0," too many login attempts ")}function Me(e,o){if(e&1&&m(0),e&2){let t=s(4).$implicit;w(" ",t.userIsActiveText," ")}}function $e(e,o){if(e&1&&(l(0,"span",28),v(1,Ee,1,0)(2,Me,1,1),u()),e&2){let t=s(3).$implicit;k(t.isActive?"text-success":"text-danger"),a(),h(!t.isActive&&t.passwordAttempts?1:2)}}function ke(e,o){if(e&1&&(m(0),g(1,"amDateFormat")),e&2){let t=s(3).$implicit;w(" ",P(1,1,t.createdAt)," ")}}function Pe(e,o){if(e&1&&(l(0,"div",22)(1,"div"),m(2),g(3,"amDateFormat"),u(),l(4,"div"),m(5),g(6,"amDateFormat"),u()()),e&2){let t=s(5).$implicit;a(2),V(P(3,2,t.currentAccess)),a(3),V(P(6,4,t.lastAccess))}}function De(e,o){if(e&1&&m(0),e&2){let t=s(5).$implicit;w(" ",t.hTimeAgo," ")}}function Ie(e,o){if(e&1){let t=G();l(0,"div",30),x("mouseover",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!0)})("focus",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!0)})("mouseleave",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!1)}),v(1,Pe,7,6,"div",22)(2,De,1,1),u()}if(e&2){let t=s(4).$implicit;a(),h(t.currentAccessHover?1:2)}}function Re(e,o){e&1&&(l(0,"span",28),m(1,"never"),u())}function Be(e,o){if(e&1&&v(0,Ie,3,1,"div",29)(1,Re,2,0,"span",28),e&2){let t=s(3).$implicit;h(t.currentAccess?0:1)}}function Ne(e,o){if(e&1&&(l(0,"td"),v(1,Fe,7,3,"div",21)(2,Ue,3,1,"div",22)(3,Ae,2,0)(4,$e,3,3,"span",23)(5,ke,2,3)(6,Be,2,1),u()),e&2){let t,i=s().$implicit,r=s().$implicit;k(K("",i.value.class," ",i.value.newly?"prop-newly-"+r[i.value.newly]:"")),I("width",i.value.width,"%"),$("text-align-center",i.value.textCenter),a(),h((t=i.key)==="login"?1:t==="fullName"?2:t==="managers"?3:t==="isActive"?4:t==="createdAt"?5:t==="currentAccess"?6:-1)}}function Qe(e,o){if(e&1&&v(0,Ne,7,9,"td",20),e&2){let t=o.$implicit;h(t.value.show?0:-1)}}function He(e,o){if(e&1){let t=G();l(0,"tr",19),x("click",function(){let r=p(t).$implicit,n=s();return _(n.onSelect(r))})("contextmenu",function(r){let n=p(t).$implicit,c=s();return _(c.onTargetContextMenu(r,n))})("pressup",function(r){let n=p(t).$implicit,c=s();return _(c.onTargetContextMenu(r,n))})("tap",function(){p(t);let r=s();return _(r.openGuestDialog())}),b(1,Qe,1,1,null,null,ge),g(3,"keyvalue"),u()}if(e&2){let t=o.$implicit,i=s();$("disabled",!t.isActive)("selected",t.id===(i.selected==null?null:i.selected.id)),a(),T(y(3,4,i.tableHeaders,i.originalOrderKeyValue))}}function Le(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"New guest"),u()),e&2){let t=s();a(),d("icon",t.icons.faPlus)}}function Oe(e,o){}function Ke(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"Refresh"),u()),e&2){let t=s();a(),d("icon",t.icons.faArrowRotateRight)}}function je(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"Edit guest"),u()),e&2){let t=s();a(),d("icon",t.icons.faPen)}}var xt=(()=>{let o=class o{constructor(){this.locale=E(W),this.originalOrderKeyValue=pe,this.icons={faRotate:Y,faPlus:ie,faPen:te,faArrowDown:oe,faArrowUp:ee,faKey:Z,faArrowRotateRight:ne},this.tableHeaders={login:{label:"Login",width:30,textCenter:!1,class:"",show:!0,sortable:!0},fullName:{label:"Full name",width:15,class:"",textCenter:!1,show:!0,sortable:!0},managers:{label:"Managers",width:15,class:"d-none d-md-table-cell",textCenter:!0,show:!0,sortable:!0},isActive:{label:"Status",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},createdAt:{label:"Created",width:12,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},currentAccess:{label:"Seen",width:12,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.loading=!1,this.selected=null,this.guests=[],this.layout=E(_e),this.userService=E(me),this.canCreateGuest=this.userService.userHavePermission(re.GUESTS_ADMIN),this.sortSettings={default:[{prop:"login",type:"string"}],login:[{prop:"login",type:"string"}],fullName:[{prop:"fullName",type:"string"}],managers:[{prop:"managers",type:"length"}],storage:[{prop:"storageUsage",type:"number"}],currentAccess:[{prop:"currentAccess",type:"date"}],createdAt:[{prop:"createdAt",type:"date"}],isActive:[{prop:"isActive",type:"number"}]},this.sortTable=new Ce(this.constructor.name,this.sortSettings),this.loadGuests(),this.layout.setBreadcrumbIcon(ue.GUESTS),this.layout.setBreadcrumbNav({url:`/${R.BASE}/${R.GUESTS}/${ce.GUESTS}`,splicing:2,translating:!0,sameLink:!0})}loadGuests(){this.loading=!0,this.onSelect(),this.userService.listGuests().subscribe({next:i=>{this.sortBy(this.sortTable.sortParam.column,!1,i),this.scrollView.scrollInto(-1),this.loading=!1},error:i=>{this.guests=[],this.layout.sendNotification("error","Guests",i.error.message),this.loading=!1}})}onSelect(i=null){this.selected=i}onContextMenu(i){i.preventDefault(),i.stopPropagation(),this.layout.openContextMenu(i,this.mainContextMenu)}onTargetContextMenu(i,r){i.preventDefault(),i.type==="contextmenu"&&i.stopPropagation(),this.onSelect(r),this.layout.openContextMenu(i,this.targetContextMenu)}sortBy(i,r=!0,n){this.guests=this.sortTable.sortBy(i,r,n||this.guests)}openGuestDialog(i=!1){i?this.layout.openDialog(Q,"md").content.guestChange.pipe(D(1)).subscribe(n=>{let[c,f]=n;c==="add"&&(this.sortBy(this.sortTable.sortParam.column,!1,[...this.guests,f]),this.onSelect(f))}):this.userService.getGuest(this.selected.id).subscribe({next:r=>{this.layout.openDialog(Q,"md",{initialState:{guest:r}}).content.guestChange.pipe(D(1)).subscribe(c=>{let[f,A]=c;f==="update"?this.selected=Object.assign(this.selected,A):f==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.guests.filter(ve=>ve.id!==A.id)))})},error:r=>this.layout.sendNotification("error","Guest error",this.selected.fullName,r)})}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=L({type:o,selectors:[["app-user-guests"]],viewQuery:function(r,n){if(r&1&&(S(N,5),S(B,7),S(he,7),S(ye,7)),r&2){let c;F(c=U())&&(n.scrollView=c.first),F(c=U())&&(n.inputFilter=c.first),F(c=U())&&(n.mainContextMenu=c.first),F(c=U())&&(n.targetContextMenu=c.first)}},decls:35,vars:32,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],[1,"d-none","d-sm-block","ms-auto"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"disabled","selected"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center","avatar"],[1,"d-flex","flex-column"],["l10nTranslate","",3,"class"],["alt","",1,"avatar-img",3,"src"],["draggable","false",1,"no-pointer-events"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"user","isMember"],["l10nTranslate",""],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center",3,"mouseover","focus","mouseleave"]],template:function(r,n){if(r&1){let c=G();l(0,"div",2)(1,"button",3),g(2,"translate"),x("click",function(){return p(c),_(n.loadGuests())}),C(3,"fa-icon",4),u(),l(4,"button",5),g(5,"translate"),x("click",function(){return p(c),_(n.openGuestDialog(!0))}),C(6,"fa-icon",6),u(),l(7,"button",5),g(8,"translate"),x("click",function(){return p(c),_(n.openGuestDialog())}),C(9,"fa-icon",6),u(),C(10,"app-input-filter",7),u(),l(11,"table",8)(12,"thead")(13,"tr"),b(14,Se,1,1,null,null,ge),g(16,"keyvalue"),u()()(),l(17,"app-virtual-scroll",9),g(18,"searchFilter"),x("contextmenu",function(A){return p(c),_(n.onContextMenu(A))}),l(19,"table",8)(20,"tbody",10),b(21,He,4,7,"tr",11,we),u()()(),l(23,"div",12)(24,"span",13),m(25),g(26,"translate"),u()(),l(27,"context-menu",null,0),M(29,Le,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.openGuestDialog(!0))}),M(30,Oe,0,0,"ng-template",15)(31,Ke,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.loadGuests())}),u(),l(32,"context-menu",null,1),M(34,je,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.openGuestDialog())}),u()}r&2&&(a(),d("tooltip",y(2,14,"Refresh",n.locale.language)),a(2),d("icon",n.icons.faRotate)("animation",n.loading?"spin":null),a(),d("disabled",!n.canCreateGuest)("tooltip",y(5,17,"New guest",n.locale.language)),a(2),d("icon",n.icons.faPlus),a(),d("disabled",!n.selected)("tooltip",y(8,20,"Edit guest",n.locale.language)),a(2),d("icon",n.icons.faPen),a(5),T(y(16,23,n.tableHeaders,n.originalOrderKeyValue)),a(3),d("bufferAmount",5)("items",y(18,26,n.guests,n.inputFilter.search())),a(4),T(n.scrollView==null?null:n.scrollView.viewPortItems),a(4),O("",n.guests.length," ",y(26,29,"guests",n.locale.language)),a(5),d("divider",!0))},dependencies:[q,B,X,J,N,le,ae,se,xe,z,j,de,fe],encapsulation:2});let e=o;return e})();export{xt as UserGuestsComponent};
|
|
1
|
+
import{a as Q}from"./chunk-Q7D6RN4N.js";import{a as xe}from"./chunk-U34OZUZ7.js";import{a as fe}from"./chunk-7P27WBGC.js";import{a as B,b as N,c as de,d as Ce}from"./chunk-FUFKVHPU.js";import"./chunk-IPAC4VAF.js";import{p as me}from"./chunk-JUNZFADM.js";import{P as re,_a as pe,ra as se,sa as ae,ta as le,ua as R,v as X,va as ce,wa as ue,zb as _e}from"./chunk-2MTM6SWN.js";import{Ad as W,Cb as x,Eb as s,Ga as H,Gc as j,Gd as z,Hd as J,Ib as S,Id as Y,Jb as F,Jf as ie,Kb as U,L as D,Lf as ne,Ma as a,Mb as I,Nb as $,Ob as k,Pb as m,Qb as V,Rb as w,Sb as O,Xa as L,Xe as ee,Xf as oe,Yb as K,_c as q,ab as M,ce as Z,dc as g,ec as P,fc as y,ha as E,jb as v,kb as h,ma as p,na as _,nb as b,ob as T,pb as d,qb as l,rb as u,rf as te,sb as C,zb as G}from"./chunk-ATP3BFHV.js";import"./chunk-RTRJ3KFH.js";var he=["MainContextMenu"],ye=["TargetContextMenu"],ge=(e,o)=>o.key,we=(e,o)=>o.id,be=(e,o)=>o.mid;function Te(e,o){if(e&1&&C(0,"fa-icon",18),e&2){let t=s(3);d("icon",t.sortTable.sortParam.asc?t.icons.faArrowDown:t.icons.faArrowUp)("fixedWidth",!1)}}function Ge(e,o){if(e&1){let t=G();l(0,"th",17),x("click",function(){p(t);let r=s().$implicit,n=s();return _(n.sortBy(r.key))}),m(1),v(2,Te,1,2,"fa-icon",18),u()}if(e&2){let t=s().$implicit,i=s();k(t.value.class),I("width",t.value.width,"%"),$("text-align-center",t.value.textCenter)("cursor-pointer",t.value.sortable),a(),w(" ",t.value.label," "),a(),h(i.sortTable.sortParam.column===t.key?2:-1)}}function Se(e,o){if(e&1&&v(0,Ge,3,10,"th",16),e&2){let t=o.$implicit;h(t.value.show?0:-1)}}function Fe(e,o){if(e&1&&(l(0,"div",21),C(1,"img",24),l(2,"div",22)(3,"span",25),m(4),u(),l(5,"span",26),m(6),u()()()),e&2){let t=s(3).$implicit;a(),d("src",t.avatarUrl,H),a(3),w(" ",t.login," "),a(2),V(t.email)}}function Ue(e,o){if(e&1&&(l(0,"div",22)(1,"span",25),m(2),u()()),e&2){let t=s(3).$implicit;a(2),V(t.fullName)}}function Ve(e,o){if(e&1&&C(0,"app-user-avatar",27),e&2){let t=o.$implicit;d("user",t)("isMember",!0)}}function Ae(e,o){if(e&1&&b(0,Ve,1,2,"app-user-avatar",27,be),e&2){let t=s(3).$implicit;T(t.managers)}}function Ee(e,o){e&1&&m(0," too many login attempts ")}function Me(e,o){if(e&1&&m(0),e&2){let t=s(4).$implicit;w(" ",t.userIsActiveText," ")}}function $e(e,o){if(e&1&&(l(0,"span",28),v(1,Ee,1,0)(2,Me,1,1),u()),e&2){let t=s(3).$implicit;k(t.isActive?"text-success":"text-danger"),a(),h(!t.isActive&&t.passwordAttempts?1:2)}}function ke(e,o){if(e&1&&(m(0),g(1,"amDateFormat")),e&2){let t=s(3).$implicit;w(" ",P(1,1,t.createdAt)," ")}}function Pe(e,o){if(e&1&&(l(0,"div",22)(1,"div"),m(2),g(3,"amDateFormat"),u(),l(4,"div"),m(5),g(6,"amDateFormat"),u()()),e&2){let t=s(5).$implicit;a(2),V(P(3,2,t.currentAccess)),a(3),V(P(6,4,t.lastAccess))}}function De(e,o){if(e&1&&m(0),e&2){let t=s(5).$implicit;w(" ",t.hTimeAgo," ")}}function Ie(e,o){if(e&1){let t=G();l(0,"div",30),x("mouseover",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!0)})("focus",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!0)})("mouseleave",function(){p(t);let r=s(4).$implicit;return _(r.currentAccessHover=!1)}),v(1,Pe,7,6,"div",22)(2,De,1,1),u()}if(e&2){let t=s(4).$implicit;a(),h(t.currentAccessHover?1:2)}}function Re(e,o){e&1&&(l(0,"span",28),m(1,"never"),u())}function Be(e,o){if(e&1&&v(0,Ie,3,1,"div",29)(1,Re,2,0,"span",28),e&2){let t=s(3).$implicit;h(t.currentAccess?0:1)}}function Ne(e,o){if(e&1&&(l(0,"td"),v(1,Fe,7,3,"div",21)(2,Ue,3,1,"div",22)(3,Ae,2,0)(4,$e,3,3,"span",23)(5,ke,2,3)(6,Be,2,1),u()),e&2){let t,i=s().$implicit,r=s().$implicit;k(K("",i.value.class," ",i.value.newly?"prop-newly-"+r[i.value.newly]:"")),I("width",i.value.width,"%"),$("text-align-center",i.value.textCenter),a(),h((t=i.key)==="login"?1:t==="fullName"?2:t==="managers"?3:t==="isActive"?4:t==="createdAt"?5:t==="currentAccess"?6:-1)}}function Qe(e,o){if(e&1&&v(0,Ne,7,9,"td",20),e&2){let t=o.$implicit;h(t.value.show?0:-1)}}function He(e,o){if(e&1){let t=G();l(0,"tr",19),x("click",function(){let r=p(t).$implicit,n=s();return _(n.onSelect(r))})("contextmenu",function(r){let n=p(t).$implicit,c=s();return _(c.onTargetContextMenu(r,n))})("pressup",function(r){let n=p(t).$implicit,c=s();return _(c.onTargetContextMenu(r,n))})("tap",function(){p(t);let r=s();return _(r.openGuestDialog())}),b(1,Qe,1,1,null,null,ge),g(3,"keyvalue"),u()}if(e&2){let t=o.$implicit,i=s();$("disabled",!t.isActive)("selected",t.id===(i.selected==null?null:i.selected.id)),a(),T(y(3,4,i.tableHeaders,i.originalOrderKeyValue))}}function Le(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"New guest"),u()),e&2){let t=s();a(),d("icon",t.icons.faPlus)}}function Oe(e,o){}function Ke(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"Refresh"),u()),e&2){let t=s();a(),d("icon",t.icons.faArrowRotateRight)}}function je(e,o){if(e&1&&(l(0,"span",28),C(1,"fa-icon",6),m(2,"Edit guest"),u()),e&2){let t=s();a(),d("icon",t.icons.faPen)}}var xt=(()=>{let o=class o{constructor(){this.locale=E(W),this.originalOrderKeyValue=pe,this.icons={faRotate:Y,faPlus:ie,faPen:te,faArrowDown:oe,faArrowUp:ee,faKey:Z,faArrowRotateRight:ne},this.tableHeaders={login:{label:"Login",width:30,textCenter:!1,class:"",show:!0,sortable:!0},fullName:{label:"Full name",width:15,class:"",textCenter:!1,show:!0,sortable:!0},managers:{label:"Managers",width:15,class:"d-none d-md-table-cell",textCenter:!0,show:!0,sortable:!0},isActive:{label:"Status",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},createdAt:{label:"Created",width:12,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},currentAccess:{label:"Seen",width:12,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.loading=!1,this.selected=null,this.guests=[],this.layout=E(_e),this.userService=E(me),this.canCreateGuest=this.userService.userHavePermission(re.GUESTS_ADMIN),this.sortSettings={default:[{prop:"login",type:"string"}],login:[{prop:"login",type:"string"}],fullName:[{prop:"fullName",type:"string"}],managers:[{prop:"managers",type:"length"}],storage:[{prop:"storageUsage",type:"number"}],currentAccess:[{prop:"currentAccess",type:"date"}],createdAt:[{prop:"createdAt",type:"date"}],isActive:[{prop:"isActive",type:"number"}]},this.sortTable=new Ce(this.constructor.name,this.sortSettings),this.loadGuests(),this.layout.setBreadcrumbIcon(ue.GUESTS),this.layout.setBreadcrumbNav({url:`/${R.BASE}/${R.GUESTS}/${ce.GUESTS}`,splicing:2,translating:!0,sameLink:!0})}loadGuests(){this.loading=!0,this.onSelect(),this.userService.listGuests().subscribe({next:i=>{this.sortBy(this.sortTable.sortParam.column,!1,i),this.scrollView.scrollInto(-1),this.loading=!1},error:i=>{this.guests=[],this.layout.sendNotification("error","Guests",i.error.message),this.loading=!1}})}onSelect(i=null){this.selected=i}onContextMenu(i){i.preventDefault(),i.stopPropagation(),this.layout.openContextMenu(i,this.mainContextMenu)}onTargetContextMenu(i,r){i.preventDefault(),i.type==="contextmenu"&&i.stopPropagation(),this.onSelect(r),this.layout.openContextMenu(i,this.targetContextMenu)}sortBy(i,r=!0,n){this.guests=this.sortTable.sortBy(i,r,n||this.guests)}openGuestDialog(i=!1){i?this.layout.openDialog(Q,"md").content.guestChange.pipe(D(1)).subscribe(n=>{let[c,f]=n;c==="add"&&(this.sortBy(this.sortTable.sortParam.column,!1,[...this.guests,f]),this.onSelect(f))}):this.userService.getGuest(this.selected.id).subscribe({next:r=>{this.layout.openDialog(Q,"md",{initialState:{guest:r}}).content.guestChange.pipe(D(1)).subscribe(c=>{let[f,A]=c;f==="update"?this.selected=Object.assign(this.selected,A):f==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.guests.filter(ve=>ve.id!==A.id)))})},error:r=>this.layout.sendNotification("error","Guest error",this.selected.fullName,r)})}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=L({type:o,selectors:[["app-user-guests"]],viewQuery:function(r,n){if(r&1&&(S(N,5),S(B,7),S(he,7),S(ye,7)),r&2){let c;F(c=U())&&(n.scrollView=c.first),F(c=U())&&(n.inputFilter=c.first),F(c=U())&&(n.mainContextMenu=c.first),F(c=U())&&(n.targetContextMenu=c.first)}},decls:35,vars:32,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],[1,"d-none","d-sm-block","ms-auto"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"disabled","selected"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center","avatar"],[1,"d-flex","flex-column"],["l10nTranslate","",3,"class"],["alt","",1,"avatar-img",3,"src"],["draggable","false",1,"no-pointer-events"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"user","isMember"],["l10nTranslate",""],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center",3,"mouseover","focus","mouseleave"]],template:function(r,n){if(r&1){let c=G();l(0,"div",2)(1,"button",3),g(2,"translate"),x("click",function(){return p(c),_(n.loadGuests())}),C(3,"fa-icon",4),u(),l(4,"button",5),g(5,"translate"),x("click",function(){return p(c),_(n.openGuestDialog(!0))}),C(6,"fa-icon",6),u(),l(7,"button",5),g(8,"translate"),x("click",function(){return p(c),_(n.openGuestDialog())}),C(9,"fa-icon",6),u(),C(10,"app-input-filter",7),u(),l(11,"table",8)(12,"thead")(13,"tr"),b(14,Se,1,1,null,null,ge),g(16,"keyvalue"),u()()(),l(17,"app-virtual-scroll",9),g(18,"searchFilter"),x("contextmenu",function(A){return p(c),_(n.onContextMenu(A))}),l(19,"table",8)(20,"tbody",10),b(21,He,4,7,"tr",11,we),u()()(),l(23,"div",12)(24,"span",13),m(25),g(26,"translate"),u()(),l(27,"context-menu",null,0),M(29,Le,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.openGuestDialog(!0))}),M(30,Oe,0,0,"ng-template",15)(31,Ke,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.loadGuests())}),u(),l(32,"context-menu",null,1),M(34,je,3,1,"ng-template",14),x("execute",function(){return p(c),_(n.openGuestDialog())}),u()}r&2&&(a(),d("tooltip",y(2,14,"Refresh",n.locale.language)),a(2),d("icon",n.icons.faRotate)("animation",n.loading?"spin":null),a(),d("disabled",!n.canCreateGuest)("tooltip",y(5,17,"New guest",n.locale.language)),a(2),d("icon",n.icons.faPlus),a(),d("disabled",!n.selected)("tooltip",y(8,20,"Edit guest",n.locale.language)),a(2),d("icon",n.icons.faPen),a(5),T(y(16,23,n.tableHeaders,n.originalOrderKeyValue)),a(3),d("bufferAmount",5)("items",y(18,26,n.guests,n.inputFilter.search())),a(4),T(n.scrollView==null?null:n.scrollView.viewPortItems),a(4),O("",n.guests.length," ",y(26,29,"guests",n.locale.language)),a(5),d("divider",!0))},dependencies:[q,B,X,J,N,le,ae,se,xe,z,j,de,fe],encapsulation:2});let e=o;return e})();export{xt as UserGuestsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ja as U}from"./chunk-
|
|
1
|
+
import{Ja as U}from"./chunk-2MTM6SWN.js";import{Te as o,Tf as E,Wf as p,_a as n}from"./chunk-ATP3BFHV.js";var t={BASE:"admin",USERS:"users",GUESTS:"guests",GROUPS:"groups",PGROUPS:"personal_groups"},i={ADMIN:"Administration",USERS:"Users",GROUPS:"Groups",GUESTS:"Guests",PGROUPS:"Personal groups"},s={BASE:o,USERS:p,GROUPS:E},c={title:i.ADMIN,link:`${t.BASE}/${t.USERS}`,icon:s.BASE,matchLink:new RegExp(`^${t.BASE}`),level:12,checks:[{prop:"user",value:"isAdmin"}],submenus:[{title:i.USERS,icon:s.USERS,link:`${t.BASE}/${t.USERS}`,matchLink:RegExp(`^${t.BASE}/${t.USERS}$|^${t.BASE}/${t.GUESTS}$`)},{title:i.GROUPS,icon:s.GROUPS,link:`${t.BASE}/${t.GROUPS}`,matchLink:RegExp(`^${t.BASE}/${t.GROUPS}|^${t.BASE}/${t.PGROUPS}`)}]};var $=(()=>{let S=class S{transform(r){return r&&U(r)}};S.\u0275fac=function(a){return new(a||S)},S.\u0275pipe=n({name:"capitalize",type:S,pure:!0});let e=S;return e})();export{t as a,i as b,s as c,c as d,$ as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ab as r,B as l,Db as N,Eb as C,Fb as k,Ia as c,Lb as p,Pb as U,Rb as h,Ta as d,Tb as A,Wb as u,lb as w,ob as m,rb as x,sb as b}from"./chunk-
|
|
1
|
+
import{Ab as r,B as l,Db as N,Eb as C,Fb as k,Ia as c,Lb as p,Pb as U,Rb as h,Ta as d,Tb as A,Wb as u,lb as w,ob as m,rb as x,sb as b}from"./chunk-2MTM6SWN.js";import{c as a,d as I,h as E,m as $}from"./chunk-22EANI6R.js";import{Pc as M,ca as T,ha as _,v as n}from"./chunk-ATP3BFHV.js";function R(i){i.file?.id?(i.file.isDir&&(i.file.mime=i.parent?.alias?I:a),i.mimeUrl=E(i.file.mime)):i.mimeUrl=E(i.parent?.alias?I:a)}function y(i){let e,o=i.file.path?i.file.path.split("/").filter(s=>s&&s!=="."):[];if(i.parent?.id){if(!o.length)return[p.SPACES_SHARES,i.parent.alias];e=`${p.SPACES_SHARES}/${i.parent.alias}`}else i.file.space?.alias?i.file.inTrash?e=`${p.SPACES_TRASH}/${i.file.space.alias}`:(e=`${p.SPACES_FILES}/${i.file.space.alias}`,i.file.space?.root?.alias&&(o.length?e=`${e}/${i.file.space.root.alias}`:o.push(i.file.space.root.name))):i.file?.ownerId?e=`${i.file.inTrash?p.PERSONAL_TRASH:p.PERSONAL_FILES}`:console.warn("unable to find the right file path",i);let t=o.pop();return e&&o.length&&(e=`${e}/${o.join("/")}`),[e,t]}var g=class{constructor(e){this.hTimeExpirationAgo=0,this.hPerms={},this.newly=0,Object.assign(this,e),R(this),this.updatePermission(),this.updateTimes()}fallBackMimeUrl(){this.mimeUrl=$}updatePermission(){this.hPerms=h(this.link.permissions)}updateTimes(){if(this.hTimeAccessAgo=(0,l.default)(this.link.currentAccess).fromNow(!0),this.newly=d(this.link.currentAccess),this.link.expiresAt){this.link.expiresAt=new Date((0,l.default)(this.link.expiresAt).local().format("YYYY-MM-DD"));let e=Math.max(0,(0,l.default)(this.link.expiresAt).diff((0,l.default)(),"hours"));e===0?this.hTimeExpirationAgo=0:e<=24?this.hTimeExpirationAgo=1:this.hTimeExpirationAgo=Math.round(e/24)+1}else this.hTimeExpirationAgo=0}};var B=(function(i){return i[i.COMMON=0]="COMMON",i[i.LINK=1]="LINK",i})(B||{}),D=Object.values(m).filter(i=>i!==m.SHARE_INSIDE).sort().join(":");var P=class{constructor(e){this.members=[],this.links=[],this.hPerms={},this.setMembers(c("members",e),e.externalPath||e.file?.isDir?[m.SHARE_INSIDE]:[]),Object.assign(this,e),R(this),this.checkFile(),this.setPermissions()}fallBackMimeUrl(){this.mimeUrl=$}setMembers(e,o){if(e)for(let t of e)t.linkId?this.links.push(new A(t,[...o,m.SHARE_OUTSIDE])):this.members.push(new A(t,o))}checkFile(){this.file&&(!this.file.path&&this.file.space.root?.name&&(this.file.path=this.file.space.root.name,this.file.name=this.file.space.root.name),this.file.permissions&&(this.file.permissions=this.file.permissions.split(":").filter(e=>e===m.SHARE_INSIDE||e===m.ADD&&this.file.id&&!this.file.isDir?!1:!(e===m.DELETE&&this.file.id&&!this.file.isDir)).join(":")))}setPermissions(){typeof this.file?.permissions=="string"?this.hPerms=h(this.file.permissions):this.externalPath&&(this.hPerms=h(D))}};var f=class{constructor(e){this.roots=[],this.managers=[],this.members=[],this.links=[],this.hPerms={},this.newly=0,this.hPerms=h(e.permissions),this.setMembers(c("members",e)),this.setRoots(c("roots",e)),Object.assign(this,e),this.hTimeAgo=(0,l.default)(this.modifiedAt).fromNow(!0),this.newly=d(this.modifiedAt),this.sort()}addRoot(e,o=!1){e.hPerms=U(e.permissions,[m.SHARE_INSIDE]),e.owner?.login&&(e.owner.avatarUrl=w(e.owner.login)),e.file.mimeUrl=E(e.file?.mime?e.file.mime:a),o?this.roots.unshift(e):this.roots.push(e),e.isDir=e.file.mime===a||!!e.externalPath}havePermission(e){return this.permissions.indexOf(e)>-1}setMembers(e){if(e)for(let o of e){let t=new A(o);t.isLink?this.links.push(t):t.spaceRole===x.IS_MANAGER?this.managers.push(t):this.members.push(t)}}setRoots(e){if(e)for(let o of e)this.addRoot(o)}sort(){u(this.roots,"createdAt",!1),u(this.managers,"createdAt",!1),u(this.members,"createdAt",!1),u(this.links,"createdAt",!1)}};var Oe=(()=>{let e=class e{constructor(){this.http=_(M)}listSpaces(){return this.http.get(N).pipe(n(t=>t.map(s=>new f(s))))}getSpace(t){return this.http.get(`${r.BASE}/${t}`).pipe(n(s=>new f(s)))}getUserSpaceRoots(t){return this.http.get(`${r.BASE}/${t}/${r.ROOTS}`)}createUserSpaceRoots(t,s){return this.http.post(`${r.BASE}/${t}/${r.ROOTS}`,s)}updateUserSpaceRoots(t,s){return this.http.put(`${r.BASE}/${t}/${r.ROOTS}`,s)}updateSpace(t){return this.http.put(`${r.BASE}/${t.id}`,t).pipe(n(s=>s?new f(s):null))}createSpace(t){return this.http.post(r.BASE,t).pipe(n(s=>(s.permissions=b,new f(s))))}deleteSpace(t,s){return this.http.request("delete",`${r.BASE}/${t}`,{body:s})}searchSpaces(t){return this.http.request("search",r.BASE,{body:t})}listSpaceShares(t){return this.http.get(`${r.BASE}/${t}/${r.SHARES}`)}getSpaceShare(t,s){return this.http.get(`${r.BASE}/${t}/${r.SHARES}/${s}`).pipe(n(S=>new P(S)))}updateSpaceShare(t,s){return this.http.put(`${r.BASE}/${t}/${r.SHARES}/${s.id}`,s).pipe(n(S=>new P(S)))}deleteSpaceShare(t,s){return this.http.delete(`${r.BASE}/${t}/${r.SHARES}/${s}`)}getSpaceShareLink(t,s){return this.http.get(`${r.BASE}/${t}/${r.LINKS}/${s}`).pipe(n(S=>new g(S)))}listTrashBins(){return this.http.get(C)}checkSpaceRootPath(t){return this.http.post(k,{path:t})}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{B as a,R as b,y as c,P as d,g as e,f,Oe as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as b}from"./chunk-22EANI6R.js";import{b as u,e as h}from"./chunk-
|
|
1
|
+
import{k as b}from"./chunk-22EANI6R.js";import{b as u,e as h}from"./chunk-ORMRCEGT.js";import{Ga as d,Hd as x,Ma as o,Pb as s,Qb as v,Qe as R,Xa as f,_c as g,ha as p,ig as E,pb as c,qb as t,rb as i,sb as r}from"./chunk-ATP3BFHV.js";import"./chunk-RTRJ3KFH.js";var A=(()=>{let e=class e{constructor(){this.logoUrl=b,this.icons={faExclamationCircle:R},this.activatedRoute=p(u),this.activatedRoute.params.subscribe(l=>this.error=E[l.error])}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-public-link-error"]],decls:14,vars:3,consts:[[1,"link-page"],[1,"header"],["routerLink",""],["alt","","height","40",3,"src"],["size","4x",1,"text-white",3,"icon"],["l10nTranslate","",1,"error-code","mt-2",2,"font-size","24px"],[1,"error-text"],[1,"hr"],["l10nTranslate",""]],template:function(n,m){n&1&&(t(0,"div",0)(1,"div",1)(2,"a",2),r(3,"img",3),i()(),r(4,"fa-icon",4),t(5,"div",5),s(6,"Link error"),i(),t(7,"div",6),r(8,"span",7)(9,"br"),t(10,"span",8),s(11),i(),r(12,"br")(13,"br"),i()()),n&2&&(o(3),c("src",m.logoUrl,d),o(),c("icon",m.icons.faExclamationCircle),o(7),v(m.error))},dependencies:[h,x,g],encapsulation:2});let a=e;return a})();export{A as PublicLinkErrorComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as ct,r as ht}from"./chunk-IEUANP3Q.js";import{B as x,Kb as at,Mb as rt,Ob as ot,Sb as lt,_a as st,e as Oe,g as G,j as Je,k as he,m as Q,n as Se,o as de,t as pe,v as Xe,w as et,wa as nt}from"./chunk-2TZUZMCM.js";import{$ as ee,$b as Ve,Ac as le,Ad as Ze,Cb as C,Dc as Ne,E as Me,Eb as l,Fa as N,Fb as Fe,Ga as ye,Gb as De,Gc as ze,Gd as Ye,H as ke,Hc as ce,Hd as qe,Ib as z,J as fe,Jb as j,Kb as $,Lb as B,Ma as h,Mb as Re,Na as Le,Nb as A,Ob as re,Pb as b,Qa as D,Qb as T,Ra as u,Sa as ne,Tb as ve,Ub as Ce,Vb as be,Xa as R,Xb as Ue,Ya as se,Z as Pe,Za as U,Zb as xe,_a as V,_c as je,a as we,ab as O,bb as v,bd as $e,c as Ie,ca as te,cb as ae,cc as Te,da as ie,dc as I,ec as Be,ed as We,fc as M,fd as Ke,ha as L,hc as W,ib as k,jb as S,k as ue,kb as E,kd as Ge,ma as y,na as _,nb as _e,nf as tt,o as Ae,ob as ge,pb as d,qb as p,qc as K,r as J,rb as m,rf as it,sb as g,x as X,xc as He,ya as F,yd as Qe,zb as w,zc as oe}from"./chunk-6IRL673W.js";var hi=(()=>{let n=class n{transform(e,t="L HH:mm:ss"){return e?(0,x.default)(e).format(t):""}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=V({name:"amDateFormat",type:n,pure:!0});let s=n;return s})();var vt=["*"],Ct=s=>["nav-item",s];function bt(s,n){if(s&1){let a=w();p(0,"span",7),C("click",function(t){y(a);let i=l().$implicit,r=l();return t.preventDefault(),_(r.removeTab(i))}),b(1," \u274C"),m()}}function xt(s,n){if(s&1){let a=w();p(0,"li",3),C("keydown",function(t){let i=y(a).index,r=l();return _(r.keyNavActions(t,i))}),p(1,"a",4),C("click",function(){let t=y(a).$implicit;return _(t.active=!0)}),p(2,"span",5),b(3),m(),O(4,bt,2,0,"span",6),m()()}if(s&2){let a=n.$implicit;A("active",a.active)("disabled",a.disabled),d("ngClass",Ve(15,Ct,a.customClass||"")),h(),A("active",a.active)("disabled",a.disabled),k("aria-controls",a.id?a.id:"")("aria-selected",!!a.active)("id",a.id?a.id+"-link":""),h(),d("ngTransclude",a.headingRef),h(),T(a.heading),h(),d("ngIf",a.removable)}}var Tt=(()=>{let n=class n{set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}constructor(e){this.viewRef=e}};n.\u0275fac=function(t){return new(t||n)(u(ne))},n.\u0275dir=U({type:n,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}});let s=n;return s})(),Ot=(()=>{let n=class n{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})(),St=(()=>{let n=class n{get vertical(){return this._vertical}set vertical(e){this._vertical=e,this.setClassMap()}get justified(){return this._justified}set justified(e){this._justified=e,this.setClassMap()}get type(){return this._type}set type(e){this._type=e,this.setClassMap()}get isKeysAllowed(){return this._isKeysAllowed}set isKeysAllowed(e){this._isKeysAllowed=e}constructor(e,t,i){this.renderer=t,this.elementRef=i,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,this.defaultActivationScheduled=!1,Object.assign(this,e)}ngOnDestroy(){this.isDestroyed=!0}addTab(e){if(e.tabOrder!==void 0?this.insertTabByOrder(e):this.tabs.push(e),e.active){e.active=!0;return}this.defaultActivationScheduled||(this.defaultActivationScheduled=!0,Promise.resolve().then(()=>{if(this.defaultActivationScheduled=!1,!this.tabs.length||this.tabs.some(i=>!!i.active))return;let t=this.tabs.find(i=>!i.disabled);t&&(t.active=!0)}))}insertTabByOrder(e){let t=this.tabs.length;for(let i=0;i<this.tabs.length;i++){let r=this.tabs[i];if(r.tabOrder!==void 0&&e.tabOrder!==void 0&&e.tabOrder<r.tabOrder){t=i;break}if(r.tabOrder===void 0){t=i;break}}this.tabs.splice(t,0,e)}removeTab(e,t={reselect:!0,emit:!0}){let i=this.tabs.indexOf(e);if(!(i===-1||this.isDestroyed)){if(t.reselect&&e.active&&this.hasAvailableTabs(i)){let r=this.getClosestTabIndex(i);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(i,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}keyNavActions(e,t){if(!this.isKeysAllowed)return;let i=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(e.keyCode===13||e.key==="Enter"||e.keyCode===32||e.key==="Space"){e.preventDefault(),i[t%i.length].click();return}if(e.keyCode===39||e.key==="RightArrow"){let r,o=1;do r=i[(t+o)%i.length],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===37||e.key==="LeftArrow"){let r,o=1,c=t;do c-o<0?(c=i.length-1,r=i[c],o=0):r=i[c-o],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===36||e.key==="Home"){e.preventDefault();let r,o=0;do r=i[o%i.length],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===35||e.key==="End"){e.preventDefault();let r,o=1,c=t;do c-o<0?(c=i.length-1,r=i[c],o=0):r=i[c-o],o++;while(r.classList.contains("disabled"));r.focus();return}if((e.keyCode===46||e.key==="Delete")&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),i[t+1]){i[(t+1)%i.length].focus();return}i[i.length-1]&&i[0].focus()}}getClosestTabIndex(e){let t=this.tabs.length;if(!t)return-1;for(let i=1;i<=t;i+=1){let r=e-i,o=e+i;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[o]&&!this.tabs[o].disabled)return o}return-1}hasAvailableTabs(e){let t=this.tabs.length;if(!t)return!1;for(let i=0;i<t;i+=1)if(!this.tabs[i].disabled&&i!==e)return!0;return!1}setClassMap(){this.classMap={"nav-stacked":this.vertical,"flex-column":this.vertical,"nav-justified":this.justified,[`nav-${this.type}`]:!0}}};n.\u0275fac=function(t){return new(t||n)(u(Ot),u(D),u(F))},n.\u0275cmp=R({type:n,selectors:[["tabset"]],hostVars:2,hostBindings:function(t,i){t&2&&A("tab-container",i.clazz)},inputs:{vertical:"vertical",justified:"justified",type:"type"},ngContentSelectors:vt,decls:4,vars:3,consts:[["role","tablist",1,"nav",3,"click","ngClass"],[3,"ngClass","active","disabled","keydown",4,"ngFor","ngForOf"],[1,"tab-content"],[3,"keydown","ngClass"],["href","javascript:void(0);","role","tab",1,"nav-link",3,"click"],[3,"ngTransclude"],["class","bs-remove-tab",3,"click",4,"ngIf"],[1,"bs-remove-tab",3,"click"]],template:function(t,i){t&1&&(Fe(),p(0,"ul",0),C("click",function(o){return o.preventDefault()}),O(1,xt,5,17,"li",1),m(),p(2,"div",2),De(3),m()),t&2&&(d("ngClass",i.classMap),k("aria-label",i.ariaLabel),h(),d("ngForOf",i.tabs))},dependencies:[He,oe,Tt,le],styles:["[_nghost-%COMP%] .nav-tabs[_ngcontent-%COMP%] .nav-item.disabled[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{cursor:default}"]});let s=n;return s})(),Et=(()=>{let n=class n{get customClass(){return this._customClass}set customClass(e){this.customClass&&this.customClass.split(" ").forEach(t=>{this.renderer.removeClass(this.elementRef.nativeElement,t)}),this._customClass=e?e.trim():"",this.customClass&&this.customClass.split(" ").forEach(t=>{this.renderer.addClass(this.elementRef.nativeElement,t)})}get active(){return this._active}set active(e){if(this._active!==e){if(this.disabled&&e||!e){this._active&&!e&&(this.deselect.emit(this),this._active=e);return}this._active=e,this.selectTab.emit(this),this.tabset.tabs.forEach(t=>{t!==this&&(t.active=!1)})}}get ariaLabelledby(){return this.id?`${this.id}-link`:""}constructor(e,t,i){this.elementRef=t,this.renderer=i,this.disabled=!1,this.removable=!1,this.selectTab=new v,this.deselect=new v,this.removed=new v,this.addClass=!0,this.role="tabpanel",this._active=!1,this._customClass="",this.tabset=e}ngOnInit(){this.removable=!!this.removable,this.tabset.addTab(this)}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}};n.\u0275fac=function(t){return new(t||n)(u(St),u(F),u(D))},n.\u0275dir=U({type:n,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(t,i){t&2&&(k("id",i.id)("role",i.role)("aria-labelledby",i.ariaLabelledby),A("active",i.active)("tab-pane",i.addClass))},inputs:{heading:"heading",id:"id",disabled:"disabled",removable:"removable",tabOrder:"tabOrder",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]});let s=n;return s})(),bi=(()=>{let n=class n{constructor(e,t){t.headingRef=e}};n.\u0275fac=function(t){return new(t||n)(u(Le),u(Et))},n.\u0275dir=U({type:n,selectors:[["","tabHeading",""]]});let s=n;return s})(),xi=(()=>{let n=class n{static forRoot(){return{ngModule:n,providers:[]}}};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=se({type:n}),n.\u0275inj=ie({imports:[ce]});let s=n;return s})();var dt=(()=>{let n=class n{constructor(){this.cdRef=L(K),this.ngZone=L(ae)}format(e){return e.from((0,x.default)(),this.lastOmitSuffix)}transform(e,t,i){return this.hasChanged(e,t)?(this.lastTime=this.getTime(e),this.lastValue=e,this.lastOmitSuffix=t,this.lastLocale=this.getLocale(e),this.formatFn=i||this.format.bind(this),this.removeTimer(),this.createTimer(),this.lastText=this.formatFn((0,x.default)(e))):this.createTimer(),this.lastText}ngOnDestroy(){this.removeTimer()}createTimer(){if(this.currentTimer)return;let e=(0,x.default)(this.lastValue),t=this.getSecondsUntilUpdate(e)*1e3;this.currentTimer=this.ngZone.runOutsideAngular(()=>typeof window<"u"?window.setTimeout(()=>{this.lastText=this.formatFn((0,x.default)(this.lastValue)),this.currentTimer=null,this.ngZone.run(()=>this.cdRef.markForCheck())},t):null)}removeTimer(){this.currentTimer&&(window.clearTimeout(this.currentTimer),this.currentTimer=null)}getSecondsUntilUpdate(e){let t=Math.abs((0,x.default)().diff(e,"minute"));return t<1?1:t<60?30:t<180?300:3600}hasChanged(e,t){return this.getTime(e)!==this.lastTime||this.getLocale(e)!==this.lastLocale||t!==this.lastOmitSuffix}getTime(e){return e instanceof Date?e.getTime():x.default.isDayjs(e)?e.valueOf():(0,x.default)(e).valueOf()}getLocale(e){return x.default.isDayjs(e)?e.locale():x.default.locale()}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=V({name:"amTimeAgo",type:n,pure:!1});let s=n;return s})();var It=["ulElement"],At=["liElements"],Mt=(s,n,a,e)=>({matches:s,itemTemplate:n,query:a,$implicit:e}),kt=(s,n,a,e)=>({item:s,index:n,match:a,query:e});function Pt(s,n){}function Lt(s,n){if(s&1&&g(0,"span",4),s&2){let a=n.match,e=n.query,t=l();d("innerHtml",t.highlight(a,e),N)}}function Ft(s,n){if(s&1&&(p(0,"h6",8),b(1),m()),s&2){let a=l().$implicit;h(),T(a)}}function Dt(s,n){}function Rt(s,n){if(s&1){let a=w();p(0,"button",9,2),C("click",function(t){y(a);let i=l().$implicit,r=l(2);return _(r.selectMatch(i,t))})("mouseenter",function(){y(a);let t=l().$implicit,i=l(2);return _(i.selectActive(t))}),O(2,Dt,0,0,"ng-template",3),m()}if(s&2){let a=l(),e=a.$implicit,t=a.index,i=l(2),r=B(2);A("active",i.isActive(e)),d("id",i.popupId+"-"+t)("@typeaheadAnimation",i.animationState),h(2),d("ngTemplateOutlet",i.itemTemplate||r)("ngTemplateOutletContext",Te(6,kt,e.item,t,e,i.query))}}function Ut(s,n){if(s&1&&O(0,Ft,2,1,"h6",6)(1,Rt,3,11,"ng-template",7),s&2){let a=n.$implicit;d("ngIf",a.isHeader()),h(),d("ngIf",!a.isHeader())}}function Vt(s,n){if(s&1&&O(0,Ut,2,2,"ng-template",5),s&2){let a=l();d("ngForOf",a.matches)}}var Bt={\u00C1:"A",\u0102:"A",\u1EAE:"A",\u1EB6:"A",\u1EB0:"A",\u1EB2:"A",\u1EB4:"A",\u01CD:"A",\u00C2:"A",\u1EA4:"A",\u1EAC:"A",\u1EA6:"A",\u1EA8:"A",\u1EAA:"A",\u00C4:"A",\u01DE:"A",\u0226:"A",\u01E0:"A",\u1EA0:"A",\u0200:"A",\u00C0:"A",\u1EA2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00C5:"A",\u01FA:"A",\u1E00:"A","\u023A":"A",\u00C3:"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY",\u1E02:"B",\u1E04:"B",\u0181:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0106:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0108:"C",\u010A:"C",\u0187:"C","\u023B":"C",\u010E:"D",\u1E10:"D",\u1E12:"D",\u1E0A:"D",\u1E0C:"D",\u018A:"D",\u1E0E:"D",\u01F2:"D",\u01C5:"D",\u0110:"D",\u018B:"D",\u01F1:"DZ",\u01C4:"DZ",\u00C9:"E",\u0114:"E",\u011A:"E",\u0228:"E",\u1E1C:"E",\u00CA:"E",\u1EBE:"E",\u1EC6:"E",\u1EC0:"E",\u1EC2:"E",\u1EC4:"E",\u1E18:"E",\u00CB:"E",\u0116:"E",\u1EB8:"E",\u0204:"E",\u00C8:"E",\u1EBA:"E",\u0206:"E",\u0112:"E",\u1E16:"E",\u1E14:"E",\u0118:"E","\u0246":"E",\u1EBC:"E",\u1E1A:"E","\uA76A":"ET",\u1E1E:"F",\u0191:"F",\u01F4:"G",\u011E:"G",\u01E6:"G",\u0122:"G",\u011C:"G",\u0120:"G",\u0193:"G",\u1E20:"G",\u01E4:"G",\u1E2A:"H",\u021E:"H",\u1E28:"H",\u0124:"H","\u2C67":"H",\u1E26:"H",\u1E22:"H",\u1E24:"H",\u0126:"H",\u00CD:"I",\u012C:"I",\u01CF:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u0130:"I",\u1ECA:"I",\u0208:"I",\u00CC:"I",\u1EC8:"I",\u020A:"I",\u012A:"I",\u012E:"I",\u0197:"I",\u0128:"I",\u1E2C:"I","\uA779":"D","\uA77B":"F","\uA77D":"G","\uA782":"R","\uA784":"S","\uA786":"T","\uA76C":"IS",\u0134:"J","\u0248":"J",\u1E30:"K",\u01E8:"K",\u0136:"K","\u2C69":"K","\uA742":"K",\u1E32:"K",\u0198:"K",\u1E34:"K","\uA740":"K","\uA744":"K",\u0139:"L","\u023D":"L",\u013D:"L",\u013B:"L",\u1E3C:"L",\u1E36:"L",\u1E38:"L","\u2C60":"L","\uA748":"L",\u1E3A:"L",\u013F:"L","\u2C62":"L",\u01C8:"L",\u0141:"L",\u01C7:"LJ",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1E4A:"N",\u1E44:"N",\u1E46:"N",\u01F8:"N",\u019D:"N",\u1E48:"N","\u0220":"N",\u01CB:"N",\u00D1:"N",\u01CA:"NJ",\u00D3:"O",\u014E:"O",\u01D1:"O",\u00D4:"O",\u1ED0:"O",\u1ED8:"O",\u1ED2:"O",\u1ED4:"O",\u1ED6:"O",\u00D6:"O",\u022A:"O",\u022E:"O",\u0230:"O",\u1ECC:"O",\u0150:"O",\u020C:"O",\u00D2:"O",\u1ECE:"O",\u01A0:"O",\u1EDA:"O",\u1EE2:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u020E:"O","\uA74A":"O","\uA74C":"O",\u014C:"O",\u1E52:"O",\u1E50:"O",\u019F:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u00D5:"O",\u1E4C:"O",\u1E4E:"O",\u022C:"O",\u01A2:"OI","\uA74E":"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1E54:"P",\u1E56:"P","\uA752":"P",\u01A4:"P","\uA754":"P","\u2C63":"P","\uA750":"P","\uA758":"Q","\uA756":"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1E58:"R",\u1E5A:"R",\u1E5C:"R",\u0210:"R",\u0212:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA73E":"C",\u018E:"E",\u015A:"S",\u1E64:"S",\u0160:"S",\u1E66:"S",\u015E:"S",\u015C:"S",\u0218:"S",\u1E60:"S",\u1E62:"S",\u1E68:"S",\u0164:"T",\u0162:"T",\u1E70:"T",\u021A:"T","\u023E":"T",\u1E6A:"T",\u1E6C:"T",\u01AC:"T",\u1E6E:"T",\u01AE:"T",\u0166:"T","\u2C6F":"A","\uA780":"L",\u019C:"M","\u0245":"V","\uA728":"TZ",\u00DA:"U",\u016C:"U",\u01D3:"U",\u00DB:"U",\u1E76:"U",\u00DC:"U",\u01D7:"U",\u01D9:"U",\u01DB:"U",\u01D5:"U",\u1E72:"U",\u1EE4:"U",\u0170:"U",\u0214:"U",\u00D9:"U",\u1EE6:"U",\u01AF:"U",\u1EE8:"U",\u1EF0:"U",\u1EEA:"U",\u1EEC:"U",\u1EEE:"U",\u0216:"U",\u016A:"U",\u1E7A:"U",\u0172:"U",\u016E:"U",\u0168:"U",\u1E78:"U",\u1E74:"U","\uA75E":"V",\u1E7E:"V",\u01B2:"V",\u1E7C:"V","\uA760":"VY",\u1E82:"W",\u0174:"W",\u1E84:"W",\u1E86:"W",\u1E88:"W",\u1E80:"W","\u2C72":"W",\u1E8C:"X",\u1E8A:"X",\u00DD:"Y",\u0176:"Y",\u0178:"Y",\u1E8E:"Y",\u1EF4:"Y",\u1EF2:"Y",\u01B3:"Y",\u1EF6:"Y","\u1EFE":"Y",\u0232:"Y","\u024E":"Y",\u1EF8:"Y",\u0179:"Z",\u017D:"Z",\u1E90:"Z","\u2C6B":"Z",\u017B:"Z",\u1E92:"Z",\u0224:"Z",\u1E94:"Z",\u01B5:"Z",\u0132:"IJ",\u0152:"OE","\u1D00":"A","\u1D01":"AE",\u0299:"B","\u1D03":"B","\u1D04":"C","\u1D05":"D","\u1D07":"E","\uA730":"F",\u0262:"G",\u029B:"G",\u029C:"H",\u026A:"I",\u0281:"R","\u1D0A":"J","\u1D0B":"K",\u029F:"L","\u1D0C":"L","\u1D0D":"M",\u0274:"N","\u1D0F":"O",\u0276:"OE","\u1D10":"O","\u1D15":"OU","\u1D18":"P",\u0280:"R","\u1D0E":"N","\u1D19":"R","\uA731":"S","\u1D1B":"T","\u2C7B":"E","\u1D1A":"R","\u1D1C":"U","\u1D20":"V","\u1D21":"W",\u028F:"Y","\u1D22":"Z",\u00E1:"a",\u0103:"a",\u1EAF:"a",\u1EB7:"a",\u1EB1:"a",\u1EB3:"a",\u1EB5:"a",\u01CE:"a",\u00E2:"a",\u1EA5:"a",\u1EAD:"a",\u1EA7:"a",\u1EA9:"a",\u1EAB:"a",\u00E4:"a",\u01DF:"a",\u0227:"a",\u01E1:"a",\u1EA1:"a",\u0201:"a",\u00E0:"a",\u1EA3:"a",\u0203:"a",\u0101:"a",\u0105:"a","\u1D8F":"a",\u1E9A:"a",\u00E5:"a",\u01FB:"a",\u1E01:"a","\u2C65":"a",\u00E3:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay",\u1E03:"b",\u1E05:"b",\u0253:"b",\u1E07:"b","\u1D6C":"b","\u1D80":"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0109:"c",\u0255:"c",\u010B:"c",\u0188:"c","\u023C":"c",\u010F:"d",\u1E11:"d",\u1E13:"d","\u0221":"d",\u1E0B:"d",\u1E0D:"d",\u0257:"d","\u1D91":"d",\u1E0F:"d","\u1D6D":"d","\u1D81":"d",\u0111:"d",\u0256:"d",\u018C:"d",\u0131:"i","\u0237":"j",\u025F:"j",\u0284:"j",\u01F3:"dz",\u01C6:"dz",\u00E9:"e",\u0115:"e",\u011B:"e",\u0229:"e",\u1E1D:"e",\u00EA:"e",\u1EBF:"e",\u1EC7:"e",\u1EC1:"e",\u1EC3:"e",\u1EC5:"e",\u1E19:"e",\u00EB:"e",\u0117:"e",\u1EB9:"e",\u0205:"e",\u00E8:"e",\u1EBB:"e",\u0207:"e",\u0113:"e",\u1E17:"e",\u1E15:"e","\u2C78":"e",\u0119:"e","\u1D92":"e","\u0247":"e",\u1EBD:"e",\u1E1B:"e","\uA76B":"et",\u1E1F:"f",\u0192:"f","\u1D6E":"f","\u1D82":"f",\u01F5:"g",\u011F:"g",\u01E7:"g",\u0123:"g",\u011D:"g",\u0121:"g",\u0260:"g",\u1E21:"g","\u1D83":"g",\u01E5:"g",\u1E2B:"h",\u021F:"h",\u1E29:"h",\u0125:"h","\u2C68":"h",\u1E27:"h",\u1E23:"h",\u1E25:"h",\u0266:"h",\u1E96:"h",\u0127:"h",\u0195:"hv",\u00ED:"i",\u012D:"i",\u01D0:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u1ECB:"i",\u0209:"i",\u00EC:"i",\u1EC9:"i",\u020B:"i",\u012B:"i",\u012F:"i","\u1D96":"i",\u0268:"i",\u0129:"i",\u1E2D:"i","\uA77A":"d","\uA77C":"f","\u1D79":"g","\uA783":"r","\uA785":"s","\uA787":"t","\uA76D":"is",\u01F0:"j",\u0135:"j",\u029D:"j","\u0249":"j",\u1E31:"k",\u01E9:"k",\u0137:"k","\u2C6A":"k","\uA743":"k",\u1E33:"k",\u0199:"k",\u1E35:"k","\u1D84":"k","\uA741":"k","\uA745":"k",\u013A:"l",\u019A:"l",\u026C:"l",\u013E:"l",\u013C:"l",\u1E3D:"l","\u0234":"l",\u1E37:"l",\u1E39:"l","\u2C61":"l","\uA749":"l",\u1E3B:"l",\u0140:"l",\u026B:"l","\u1D85":"l",\u026D:"l",\u0142:"l",\u01C9:"lj",\u017F:"s","\u1E9C":"s",\u1E9B:"s","\u1E9D":"s",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m","\u1D6F":"m","\u1D86":"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1E4B:"n","\u0235":"n",\u1E45:"n",\u1E47:"n",\u01F9:"n",\u0272:"n",\u1E49:"n",\u019E:"n","\u1D70":"n","\u1D87":"n",\u0273:"n",\u00F1:"n",\u01CC:"nj",\u00F3:"o",\u014F:"o",\u01D2:"o",\u00F4:"o",\u1ED1:"o",\u1ED9:"o",\u1ED3:"o",\u1ED5:"o",\u1ED7:"o",\u00F6:"o",\u022B:"o",\u022F:"o",\u0231:"o",\u1ECD:"o",\u0151:"o",\u020D:"o",\u00F2:"o",\u1ECF:"o",\u01A1:"o",\u1EDB:"o",\u1EE3:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u020F:"o","\uA74B":"o","\uA74D":"o","\u2C7A":"o",\u014D:"o",\u1E53:"o",\u1E51:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u00F5:"o",\u1E4D:"o",\u1E4F:"o",\u022D:"o",\u01A3:"oi","\uA74F":"oo",\u025B:"e","\u1D93":"e",\u0254:"o","\u1D97":"o",\u0223:"ou",\u1E55:"p",\u1E57:"p","\uA753":"p",\u01A5:"p","\u1D71":"p","\u1D88":"p","\uA755":"p","\u1D7D":"p","\uA751":"p","\uA759":"q",\u02A0:"q","\u024B":"q","\uA757":"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1E59:"r",\u1E5B:"r",\u1E5D:"r",\u0211:"r",\u027E:"r","\u1D73":"r",\u0213:"r",\u1E5F:"r",\u027C:"r","\u1D72":"r","\u1D89":"r","\u024D":"r",\u027D:"r","\u2184":"c","\uA73F":"c",\u0258:"e",\u027F:"r",\u015B:"s",\u1E65:"s",\u0161:"s",\u1E67:"s",\u015F:"s",\u015D:"s",\u0219:"s",\u1E61:"s",\u1E63:"s",\u1E69:"s",\u0282:"s","\u1D74":"s","\u1D8A":"s","\u023F":"s",\u0261:"g","\u1D11":"o","\u1D13":"o","\u1D1D":"u",\u0165:"t",\u0163:"t",\u1E71:"t",\u021B:"t","\u0236":"t",\u1E97:"t","\u2C66":"t",\u1E6B:"t",\u1E6D:"t",\u01AD:"t",\u1E6F:"t","\u1D75":"t",\u01AB:"t",\u0288:"t",\u0167:"t","\u1D7A":"th",\u0250:"a","\u1D02":"ae",\u01DD:"e","\u1D77":"g",\u0265:"h","\u02AE":"h","\u02AF":"h","\u1D09":"i",\u029E:"k","\uA781":"l",\u026F:"m",\u0270:"m","\u1D14":"oe",\u0279:"r",\u027B:"r",\u027A:"r","\u2C79":"r",\u0287:"t",\u028C:"v",\u028D:"w",\u028E:"y","\uA729":"tz",\u00FA:"u",\u016D:"u",\u01D4:"u",\u00FB:"u",\u1E77:"u",\u00FC:"u",\u01D8:"u",\u01DA:"u",\u01DC:"u",\u01D6:"u",\u1E73:"u",\u1EE5:"u",\u0171:"u",\u0215:"u",\u00F9:"u",\u1EE7:"u",\u01B0:"u",\u1EE9:"u",\u1EF1:"u",\u1EEB:"u",\u1EED:"u",\u1EEF:"u",\u0217:"u",\u016B:"u",\u1E7B:"u",\u0173:"u","\u1D99":"u",\u016F:"u",\u0169:"u",\u1E79:"u",\u1E75:"u","\u1D6B":"ue","\uA778":"um","\u2C74":"v","\uA75F":"v",\u1E7F:"v",\u028B:"v","\u1D8C":"v","\u2C71":"v",\u1E7D:"v","\uA761":"vy",\u1E83:"w",\u0175:"w",\u1E85:"w",\u1E87:"w",\u1E89:"w",\u1E81:"w","\u2C73":"w",\u1E98:"w",\u1E8D:"x",\u1E8B:"x","\u1D8D":"x",\u00FD:"y",\u0177:"y",\u00FF:"y",\u1E8F:"y",\u1EF5:"y",\u1EF3:"y",\u01B4:"y",\u1EF7:"y","\u1EFF":"y",\u0233:"y",\u1E99:"y","\u024F":"y",\u1EF9:"y",\u017A:"z",\u017E:"z",\u1E91:"z",\u0291:"z","\u2C6C":"z",\u017C:"z",\u1E93:"z",\u0225:"z",\u1E95:"z","\u1D76":"z","\u1D8E":"z",\u0290:"z",\u01B6:"z","\u0240":"z",\uFB00:"ff",\uFB03:"ffi",\uFB04:"ffl",\uFB01:"fi",\uFB02:"fl",\u0133:"ij",\u0153:"oe",\uFB06:"st","\u2090":"a","\u2091":"e","\u1D62":"i","\u2C7C":"j","\u2092":"o","\u1D63":"r","\u1D64":"u","\u1D65":"v","\u2093":"x"};var H=class{constructor(n,a=n,e=!1){this.item=n,this.value=a,this.header=e}isHeader(){return this.header}toString(){return this.value}};function Y(s){return s?s.replace(/[^A-Za-z0-9[\] ]/g,function(n){return Bt[n]||n}):""}function Ee(s,n=" ",a="",e){let t=[];if(!e)t=pt(s,n,a);else{let i=`([${e}]+)`,r=s.split(new RegExp(i,"g")),o=r[r.length-1];o>""&&(n&&a?t=pt(o,n,a):t.push(o))}return t}function pt(s,n,a){let e=[],t=`(?:[${a}])([^${a}]+)(?:[${a}])|([^${n}]+)`,i=s.split(new RegExp(t,"g")),r=i.length,o,c=new RegExp(`[${a}]+`,"g");for(let f=0;f<r;f+=1)o=i[f],o&&o.length&&o!==n&&e.push(o.replace(c,""));return e}function P(s,n){if(!n||typeof s!="object")return s.toString();if(n.endsWith("()")){let t=n.slice(0,n.length-2);return s[t]().toString()}let e=n.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let t of e)t in s&&(s=s[t]);return s?s.toString():""}var mt="220ms cubic-bezier(0, 0, 0.2, 1)",Ht=Je("typeaheadAnimation",[Se("animated-down",Q({height:"*",overflow:"hidden"})),de("* => animated-down",[Q({height:0,overflow:"hidden"}),he(mt)]),Se("animated-up",Q({height:"*",overflow:"hidden"})),de("* => animated-up",[Q({height:"*",overflow:"hidden"}),he(mt)]),de("* => unanimated",he("0s"))]),Nt=0,zt=(()=>{let n=class n{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,r){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=r,this.activeChangeEvent=new v,this.isFocused=!1,this.positionServiceSubscription=new we,this.height=0,this.popupId=`ngb-typeahead-${Nt++}`,this._matches=[],this.renderer.setAttribute(this.element.nativeElement,"id",this.popupId),this.positionServiceSubscription.add(this.positionService.event$?.subscribe(()=>{if(this.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down",this.changeDetectorRef.detectChanges();return}this.animationState="unanimated",this.changeDetectorRef.detectChanges()}))}get active(){return this._active}set active(e){this._active=e,this.activeChanged()}get matches(){return this._matches}set matches(e){if(this.positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition}},allowedPositions:["top","bottom"]}),this._matches=e,this.needScrollbar=this.typeaheadScrollable&&this.typeaheadOptionsInScrollableView<this.matches.length,this.typeaheadScrollable&&setTimeout(()=>{this.setScrollableMode()}),this.typeaheadIsFirstItemActive&&this._matches.length>0&&(this.setActive(this._matches[0]),this._active?.isHeader()&&this.nextActiveMatch()),this._active&&!this.typeaheadIsFirstItemActive){let t=this._matches.find(i=>i.value===this._active?.value);if(t){this.selectActive(t);return}this.active=void 0}}get isTopPosition(){return this.element.nativeElement.classList.contains("top")}get optionsListTemplate(){return this.parent?this.parent.optionsListTemplate:void 0}get isAnimated(){return this.parent?this.parent.isAnimated:!1}get adaptivePosition(){return this.parent?this.parent.adaptivePosition:!1}get typeaheadScrollable(){return this.parent?this.parent.typeaheadScrollable:!1}get typeaheadOptionsInScrollableView(){return this.parent?this.parent.typeaheadOptionsInScrollableView:5}get typeaheadIsFirstItemActive(){return this.parent?this.parent.typeaheadIsFirstItemActive:!0}get itemTemplate(){return this.parent?this.parent.typeaheadItemTemplate:void 0}get canSelectItemsOnBlur(){return!!this.parent?.selectItemOnBlur}selectActiveMatch(e){this._active&&this.parent?.typeaheadSelectFirstItem&&this.selectMatch(this._active),!this.parent?.typeaheadSelectFirstItem&&e&&this.selectMatch(this._active)}activeChanged(){if(!this._active)return;let e=this.matches.indexOf(this._active);this.activeChangeEvent.emit(`${this.popupId}-${e}`)}prevActiveMatch(){if(!this._active)return;let e=this.matches.indexOf(this._active);this.setActive(this.matches[e-1<0?this.matches.length-1:e-1]),this._active.isHeader()&&this.prevActiveMatch(),this.typeaheadScrollable&&this.scrollPrevious(e)}nextActiveMatch(){let e=this._active?this.matches.indexOf(this._active):-1;this.setActive(this.matches[e+1>this.matches.length-1?0:e+1]),this._active?.isHeader()&&this.nextActiveMatch(),this.typeaheadScrollable&&this.scrollNext(e)}selectActive(e){this.isFocused=!0,this.setActive(e)}highlight(e,t){let i=e.value,r=(this.parent&&this.parent.typeaheadLatinize?Y(i):i).toLowerCase(),o,c;if(typeof t=="object"){let f=t.length,me="\u2063",gt=17;for(let q=0;q<f;q+=1)o=r.indexOf(t[q]),c=t[q].length,o>=0&&c>0&&(i=`${i.substring(0,o)}<strong>${i.substring(o,o+c)}</strong>${i.substring(o+c)}`,r=`${r.substring(0,o)}${me.repeat(gt+c)}${r.substring(o+c)}`)}else t&&(o=r.indexOf(t),c=t.length,o>=0&&c>0&&(i=`${i.substring(0,o)}<strong>${i.substring(o,o+c)}</strong>${i.substring(o+c)}`));return i}focusLost(){this.isFocused=!1,this.canSelectItemsOnBlur||this.setActive(void 0)}isActive(e){return this.active===e}selectMatch(e,t){return t&&(t.stopPropagation(),t.preventDefault()),this.parent?.changeModel(e),setTimeout(()=>this.parent?.typeaheadOnSelect.emit(e),0),!1}setScrollableMode(){if(this.ulElement||(this.ulElement=this.element),this.liElements?.first){let e=Oe.getStyles(this.ulElement.nativeElement),t=Oe.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),r=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),o=parseFloat((t.height?t.height:"0").replace("px","")),c=this.typeaheadOptionsInScrollableView*o;this.guiHeight=`${c+r+i}px`}this.renderer.setStyle(this.element.nativeElement,"visibility","visible")}scrollPrevious(e){if(e===0){this.scrollToBottom();return}if(this.liElements&&this.ulElement){let t=this.liElements.toArray()[e-1];t&&!this.isScrolledIntoView(t.nativeElement)&&(this.ulElement.nativeElement.scrollTop=t.nativeElement.offsetTop)}}scrollNext(e){if(e+1>this.matches.length-1){this.scrollToTop();return}if(this.liElements&&this.ulElement){let t=this.liElements.toArray()[e+1];t&&!this.isScrolledIntoView(t.nativeElement)&&(this.ulElement.nativeElement.scrollTop=t.nativeElement.offsetTop-Number(this.ulElement.nativeElement.offsetHeight)+Number(t.nativeElement.offsetHeight))}}ngOnDestroy(){this.positionServiceSubscription.unsubscribe()}setActive(e){this._active=e;let t;this._active==null||this._active.isHeader()||(t=e),this.parent?.typeaheadOnPreview.emit(t)}isScrolledIntoView(e){if(!this.ulElement)return!1;let t=this.ulElement.nativeElement.scrollTop,i=t+Number(this.ulElement.nativeElement.offsetHeight),r=e.offsetTop;return r+e.offsetHeight<=i&&r>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}};n.\u0275fac=function(t){return new(t||n)(u(G),u(D),u(F),u(K))},n.\u0275cmp=R({type:n,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(z(It,5),z(At,5)),t&2){let r;j(r=$())&&(i.ulElement=r.first),j(r=$())&&(i.liElements=r)}},hostAttrs:[1,"dropdown","open","bottom","dropdown-menu",2,"position","absolute","display","block"],hostVars:7,hostBindings:function(t,i){t&1&&C("mouseleave",function(){return i.focusLost()})("blur",function(){return i.focusLost()}),t&2&&(k("role","listbox"),Re("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),A("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[xe([G])],decls:5,vars:7,consts:[["bsItemTemplate",""],["bs4Template",""],["liElements",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHtml"],["ngFor","",3,"ngForOf"],["class","dropdown-header",4,"ngIf"],[3,"ngIf"],[1,"dropdown-header"],["role","option",1,"dropdown-item",3,"click","mouseenter","id"]],template:function(t,i){if(t&1&&O(0,Pt,0,0,"ng-template",3)(1,Lt,1,1,"ng-template",null,0,W)(3,Vt,1,1,"ng-template",null,1,W),t&2){let r=B(2),o=B(4);d("ngTemplateOutlet",i.optionsListTemplate||o)("ngTemplateOutletContext",Te(2,Mt,i.matches,i.itemTemplate||r,i.query,i.typeaheadTemplateMethods))}},dependencies:[Ne,oe,le],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Ht]}});let s=n;return s})(),ut=(()=>{let n=class n{constructor(){this.adaptivePosition=!1,this.isAnimated=!1,this.hideResultsOnBlur=!0,this.cancelRequestOnFocusLost=!1,this.selectFirstItem=!0,this.isFirstItemActive=!0,this.minLength=1,this.selectItemOnBlur=!1}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})(),ft=(()=>{let n=class n{constructor(e,t,i,r,o,c,f){this.changeDetection=i,this.element=r,this.ngControl=o,this.renderer=c,this.typeaheadMinLength=1,this.adaptivePosition=!1,this.isAnimated=!1,this.typeaheadWaitMs=0,this.typeaheadLatinize=!0,this.typeaheadSingleWords=!0,this.typeaheadWordDelimiters=" ",this.typeaheadMultipleSearchDelimiters=",",this.typeaheadPhraseDelimiters=`'"`,this.typeaheadScrollable=!1,this.typeaheadOptionsInScrollableView=5,this.typeaheadSelectFirstItem=!0,this.typeaheadIsFirstItemActive=!0,this.typeaheadLoading=new v,this.typeaheadNoResults=new v,this.typeaheadOnSelect=new v,this.typeaheadOnPreview=new v,this.typeaheadOnBlur=new v,this.dropup=!1,this.isOpen=!1,this.list="list",this.isActiveItemChanged=!1,this.isFocused=!1,this.cancelRequestOnFocusLost=!1,this.selectItemOnBlur=!1,this.keyUpEventEmitter=new v,this.placement="bottom left",this._matches=[],this._subscriptions=[],this._outsideClickListener=()=>{},this._typeahead=e.createLoader(r,f,c).provide({provide:ut,useValue:t}),Object.assign(this,{typeaheadHideResultsOnBlur:t.hideResultsOnBlur,cancelRequestOnFocusLost:t.cancelRequestOnFocusLost,typeaheadSelectFirstItem:t.selectFirstItem,typeaheadIsFirstItemActive:t.isFirstItemActive,typeaheadMinLength:t.minLength,adaptivePosition:t.adaptivePosition,isAnimated:t.isAnimated,selectItemOnBlur:t.selectItemOnBlur})}get matches(){return this._matches}ngOnInit(){this.typeaheadOptionsLimit=this.typeaheadOptionsLimit||20,this.typeaheadMinLength=this.typeaheadMinLength===void 0?1:this.typeaheadMinLength,this.typeaheadAsync===void 0&&!J(this.typeahead)&&(this.typeaheadAsync=!1),J(this.typeahead)&&(this.typeaheadAsync=!0),this.typeaheadAsync?this.asyncActions():this.syncActions(),this.checkDelimitersConflict()}onInput(e){let t=e.target.value!==void 0?e.target.value:e.target.textContent!==void 0?e.target.textContent:e.target.innerText;t!=null&&t.trim().length>=this.typeaheadMinLength?(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(e.target.value)):(this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!1),this.hide())}onChange(e){if(this._container){if(e.keyCode===27||e.key==="Escape"){this.hide();return}if(e.keyCode===38||e.key==="ArrowUp"){this.isActiveItemChanged=!0,this._container.prevActiveMatch();return}if(e.keyCode===40||e.key==="ArrowDown"){this.isActiveItemChanged=!0,this._container.nextActiveMatch();return}if(e.keyCode===13||e.key==="Enter"){this._container.selectActiveMatch();return}}}onFocus(){this.isFocused=!0,setTimeout(()=>{this.typeaheadMinLength===0&&(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(this.element.nativeElement.value||""))},0)}onBlur(){this.isFocused=!1,this._container&&!this._container.isFocused&&this.typeaheadOnBlur.emit(this._container.active),!this.container&&this._matches?.length===0&&this.typeaheadOnBlur.emit(new H(this.element.nativeElement.value,this.element.nativeElement.value,!1))}onKeydown(e){if(this._container&&((e.keyCode===9||e.key==="Tab")&&this.onBlur(),e.keyCode===9||e.key==="Tab"||e.keyCode===13||e.key==="Enter")){if(e.preventDefault(),this.typeaheadSelectFirstItem){this._container.selectActiveMatch();return}this.typeaheadSelectFirstItem||(this._container.selectActiveMatch(this.isActiveItemChanged),this.isActiveItemChanged=!1,this.hide())}}changeModel(e){if(!e)return;let t;if(this.typeaheadMultipleSearch&&this._allEnteredValue){let i=this._allEnteredValue.split(new RegExp(`([${this.typeaheadMultipleSearchDelimiters}]+)`));this._allEnteredValue=i.slice(0,i.length-1).concat(e.value).join(""),t=this._allEnteredValue}else t=e.value;this.ngControl.viewToModelUpdate(t),this.ngControl.control?.setValue(t),this.changeDetection.markForCheck(),this.hide()}show(){if(this._typeahead.attach(zt).to(this.container).position({attachment:`${this.dropup?"top":"bottom"} left`}).show({typeaheadRef:this,placement:this.placement,animation:!1,dropup:this.dropup}),this._outsideClickListener=this.renderer.listen("document","click",t=>{this.typeaheadMinLength===0&&this.element.nativeElement.contains(t.target)||!this.typeaheadHideResultsOnBlur||this.element.nativeElement.contains(t.target)||this.onOutsideClick()}),!this._typeahead.instance||!this.ngControl.control)return;this._container=this._typeahead.instance,this._container.parent=this;let e=(this.typeaheadLatinize?Y(this.ngControl.control.value):this.ngControl.control.value).toString().toLowerCase();this._container.query=this.tokenizeQuery(e),this._container.matches=this._matches,this.element.nativeElement.focus(),this._container.activeChangeEvent.subscribe(t=>{this.activeDescendant=t,this.changeDetection.markForCheck()}),this.isOpen=!0}hide(){this._typeahead.isShown&&(this._typeahead.hide(),this._outsideClickListener(),this._container=void 0,this.isOpen=!1,this.changeDetection.markForCheck()),this.typeaheadOnPreview.emit()}onOutsideClick(){this._container&&!this._container.isFocused&&this.hide()}ngOnDestroy(){for(let e of this._subscriptions)e.unsubscribe();this._typeahead.dispose()}asyncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(fe(this.typeaheadWaitMs),ee(e=>this._allEnteredValue=e),Pe(()=>this.typeahead?this.typeahead:ue)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(fe(this.typeaheadWaitMs),X(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(J(this.typeahead)?this.typeahead:Ae(this.typeahead)).pipe(Me(r=>!!r&&this.testMatch(this.normalizeOption(r),t)),ke()):ue})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=P(e,this.typeaheadOptionField);return(this.typeaheadLatinize?Y(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=Ee(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=Ee(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=Ee(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?Y(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let r=0;r<i;r+=1)if(t[r].length>0&&e.indexOf(t[r])<0)return!1;return!0}return e.indexOf(t)>=0}finalizeAsyncCall(e){if(this.prepareMatches(e||[]),this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!this.hasMatches()),!this.hasMatches()){this.hide();return}if(!(!this.isFocused&&this.cancelRequestOnFocusLost))if(this._container&&this.ngControl.control){let i=((this.typeaheadLatinize?Y(this.ngControl.control.value):this.ngControl.control.value)||"").toString().toLowerCase();this._container.query=this.tokenizeQuery(i),this._container.matches=this._matches}else this.show()}prepareMatches(e){let t=e.slice(0,this.typeaheadOptionsLimit),i=this.typeaheadOrderBy?this.orderMatches(t):t;if(this.typeaheadGroupField){let r=[];i.map(c=>P(c,this.typeaheadGroupField)).filter((c,f,me)=>me.indexOf(c)===f).forEach(c=>{r.push(new H(c,c,!0)),r=r.concat(i.filter(f=>P(f,this.typeaheadGroupField)===c).map(f=>new H(f,P(f,this.typeaheadOptionField))))}),this._matches=r}else this._matches=i.map(r=>new H(r,P(r,this.typeaheadOptionField)))}orderMatches(e){if(!e.length)return e;if(this.typeaheadOrderBy!==null&&this.typeaheadOrderBy!==void 0&&typeof this.typeaheadOrderBy=="object"&&Object.keys(this.typeaheadOrderBy).length===0)return console.error("Field and direction properties for typeaheadOrderBy have to be set according to documentation!"),e;let{field:t,direction:i}=this.typeaheadOrderBy||{};return!i||!(i==="asc"||i==="desc")?(console.error('typeaheadOrderBy direction has to equal "asc" or "desc". Please follow the documentation.'),e):typeof e[0]=="string"?i==="asc"?e.sort():e.sort().reverse():!t||typeof t!="string"?(console.error("typeaheadOrderBy field has to set according to the documentation."),e):e.sort((r,o)=>{let c=P(r,t),f=P(o,t);return c<f?i==="asc"?-1:1:c>f?i==="asc"?1:-1:0})}hasMatches(){return this._matches.length>0}checkDelimitersConflict(){if(this.typeaheadMultipleSearch&&this.typeaheadSingleWords&&this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters))throw new Error(`Delimiters used in typeaheadMultipleSearchDelimiters must be different
|
|
1
|
+
import{q as ct,r as ht}from"./chunk-JUNZFADM.js";import{B as x,Kb as at,Mb as rt,Ob as ot,Sb as lt,_a as st,e as Oe,g as G,j as Je,k as he,m as Q,n as Se,o as de,t as pe,v as Xe,w as et,wa as nt}from"./chunk-2MTM6SWN.js";import{$ as ee,$b as Ve,Ac as le,Ad as Ze,Cb as C,Dc as Ne,E as Me,Eb as l,Fa as N,Fb as Fe,Ga as ye,Gb as De,Gc as ze,Gd as Ye,H as ke,Hc as ce,Hd as qe,Ib as z,J as fe,Jb as j,Kb as $,Lb as B,Ma as h,Mb as Re,Na as Le,Nb as A,Ob as re,Pb as b,Qa as D,Qb as T,Ra as u,Sa as ne,Tb as ve,Ub as Ce,Vb as be,Xa as R,Xb as Ue,Ya as se,Z as Pe,Za as U,Zb as xe,_a as V,_c as je,a as we,ab as O,bb as v,bd as $e,c as Ie,ca as te,cb as ae,cc as Te,da as ie,dc as I,ec as Be,ed as We,fc as M,fd as Ke,ha as L,hc as W,ib as k,jb as S,k as ue,kb as E,kd as Ge,ma as y,na as _,nb as _e,nf as tt,o as Ae,ob as ge,pb as d,qb as p,qc as K,r as J,rb as m,rf as it,sb as g,x as X,xc as He,ya as F,yd as Qe,zb as w,zc as oe}from"./chunk-ATP3BFHV.js";var hi=(()=>{let n=class n{transform(e,t="L HH:mm:ss"){return e?(0,x.default)(e).format(t):""}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=V({name:"amDateFormat",type:n,pure:!0});let s=n;return s})();var vt=["*"],Ct=s=>["nav-item",s];function bt(s,n){if(s&1){let a=w();p(0,"span",7),C("click",function(t){y(a);let i=l().$implicit,r=l();return t.preventDefault(),_(r.removeTab(i))}),b(1," \u274C"),m()}}function xt(s,n){if(s&1){let a=w();p(0,"li",3),C("keydown",function(t){let i=y(a).index,r=l();return _(r.keyNavActions(t,i))}),p(1,"a",4),C("click",function(){let t=y(a).$implicit;return _(t.active=!0)}),p(2,"span",5),b(3),m(),O(4,bt,2,0,"span",6),m()()}if(s&2){let a=n.$implicit;A("active",a.active)("disabled",a.disabled),d("ngClass",Ve(15,Ct,a.customClass||"")),h(),A("active",a.active)("disabled",a.disabled),k("aria-controls",a.id?a.id:"")("aria-selected",!!a.active)("id",a.id?a.id+"-link":""),h(),d("ngTransclude",a.headingRef),h(),T(a.heading),h(),d("ngIf",a.removable)}}var Tt=(()=>{let n=class n{set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}constructor(e){this.viewRef=e}};n.\u0275fac=function(t){return new(t||n)(u(ne))},n.\u0275dir=U({type:n,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}});let s=n;return s})(),Ot=(()=>{let n=class n{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})(),St=(()=>{let n=class n{get vertical(){return this._vertical}set vertical(e){this._vertical=e,this.setClassMap()}get justified(){return this._justified}set justified(e){this._justified=e,this.setClassMap()}get type(){return this._type}set type(e){this._type=e,this.setClassMap()}get isKeysAllowed(){return this._isKeysAllowed}set isKeysAllowed(e){this._isKeysAllowed=e}constructor(e,t,i){this.renderer=t,this.elementRef=i,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,this.defaultActivationScheduled=!1,Object.assign(this,e)}ngOnDestroy(){this.isDestroyed=!0}addTab(e){if(e.tabOrder!==void 0?this.insertTabByOrder(e):this.tabs.push(e),e.active){e.active=!0;return}this.defaultActivationScheduled||(this.defaultActivationScheduled=!0,Promise.resolve().then(()=>{if(this.defaultActivationScheduled=!1,!this.tabs.length||this.tabs.some(i=>!!i.active))return;let t=this.tabs.find(i=>!i.disabled);t&&(t.active=!0)}))}insertTabByOrder(e){let t=this.tabs.length;for(let i=0;i<this.tabs.length;i++){let r=this.tabs[i];if(r.tabOrder!==void 0&&e.tabOrder!==void 0&&e.tabOrder<r.tabOrder){t=i;break}if(r.tabOrder===void 0){t=i;break}}this.tabs.splice(t,0,e)}removeTab(e,t={reselect:!0,emit:!0}){let i=this.tabs.indexOf(e);if(!(i===-1||this.isDestroyed)){if(t.reselect&&e.active&&this.hasAvailableTabs(i)){let r=this.getClosestTabIndex(i);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(i,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}keyNavActions(e,t){if(!this.isKeysAllowed)return;let i=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(e.keyCode===13||e.key==="Enter"||e.keyCode===32||e.key==="Space"){e.preventDefault(),i[t%i.length].click();return}if(e.keyCode===39||e.key==="RightArrow"){let r,o=1;do r=i[(t+o)%i.length],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===37||e.key==="LeftArrow"){let r,o=1,c=t;do c-o<0?(c=i.length-1,r=i[c],o=0):r=i[c-o],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===36||e.key==="Home"){e.preventDefault();let r,o=0;do r=i[o%i.length],o++;while(r.classList.contains("disabled"));r.focus();return}if(e.keyCode===35||e.key==="End"){e.preventDefault();let r,o=1,c=t;do c-o<0?(c=i.length-1,r=i[c],o=0):r=i[c-o],o++;while(r.classList.contains("disabled"));r.focus();return}if((e.keyCode===46||e.key==="Delete")&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),i[t+1]){i[(t+1)%i.length].focus();return}i[i.length-1]&&i[0].focus()}}getClosestTabIndex(e){let t=this.tabs.length;if(!t)return-1;for(let i=1;i<=t;i+=1){let r=e-i,o=e+i;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[o]&&!this.tabs[o].disabled)return o}return-1}hasAvailableTabs(e){let t=this.tabs.length;if(!t)return!1;for(let i=0;i<t;i+=1)if(!this.tabs[i].disabled&&i!==e)return!0;return!1}setClassMap(){this.classMap={"nav-stacked":this.vertical,"flex-column":this.vertical,"nav-justified":this.justified,[`nav-${this.type}`]:!0}}};n.\u0275fac=function(t){return new(t||n)(u(Ot),u(D),u(F))},n.\u0275cmp=R({type:n,selectors:[["tabset"]],hostVars:2,hostBindings:function(t,i){t&2&&A("tab-container",i.clazz)},inputs:{vertical:"vertical",justified:"justified",type:"type"},ngContentSelectors:vt,decls:4,vars:3,consts:[["role","tablist",1,"nav",3,"click","ngClass"],[3,"ngClass","active","disabled","keydown",4,"ngFor","ngForOf"],[1,"tab-content"],[3,"keydown","ngClass"],["href","javascript:void(0);","role","tab",1,"nav-link",3,"click"],[3,"ngTransclude"],["class","bs-remove-tab",3,"click",4,"ngIf"],[1,"bs-remove-tab",3,"click"]],template:function(t,i){t&1&&(Fe(),p(0,"ul",0),C("click",function(o){return o.preventDefault()}),O(1,xt,5,17,"li",1),m(),p(2,"div",2),De(3),m()),t&2&&(d("ngClass",i.classMap),k("aria-label",i.ariaLabel),h(),d("ngForOf",i.tabs))},dependencies:[He,oe,Tt,le],styles:["[_nghost-%COMP%] .nav-tabs[_ngcontent-%COMP%] .nav-item.disabled[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{cursor:default}"]});let s=n;return s})(),Et=(()=>{let n=class n{get customClass(){return this._customClass}set customClass(e){this.customClass&&this.customClass.split(" ").forEach(t=>{this.renderer.removeClass(this.elementRef.nativeElement,t)}),this._customClass=e?e.trim():"",this.customClass&&this.customClass.split(" ").forEach(t=>{this.renderer.addClass(this.elementRef.nativeElement,t)})}get active(){return this._active}set active(e){if(this._active!==e){if(this.disabled&&e||!e){this._active&&!e&&(this.deselect.emit(this),this._active=e);return}this._active=e,this.selectTab.emit(this),this.tabset.tabs.forEach(t=>{t!==this&&(t.active=!1)})}}get ariaLabelledby(){return this.id?`${this.id}-link`:""}constructor(e,t,i){this.elementRef=t,this.renderer=i,this.disabled=!1,this.removable=!1,this.selectTab=new v,this.deselect=new v,this.removed=new v,this.addClass=!0,this.role="tabpanel",this._active=!1,this._customClass="",this.tabset=e}ngOnInit(){this.removable=!!this.removable,this.tabset.addTab(this)}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}};n.\u0275fac=function(t){return new(t||n)(u(St),u(F),u(D))},n.\u0275dir=U({type:n,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(t,i){t&2&&(k("id",i.id)("role",i.role)("aria-labelledby",i.ariaLabelledby),A("active",i.active)("tab-pane",i.addClass))},inputs:{heading:"heading",id:"id",disabled:"disabled",removable:"removable",tabOrder:"tabOrder",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]});let s=n;return s})(),bi=(()=>{let n=class n{constructor(e,t){t.headingRef=e}};n.\u0275fac=function(t){return new(t||n)(u(Le),u(Et))},n.\u0275dir=U({type:n,selectors:[["","tabHeading",""]]});let s=n;return s})(),xi=(()=>{let n=class n{static forRoot(){return{ngModule:n,providers:[]}}};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=se({type:n}),n.\u0275inj=ie({imports:[ce]});let s=n;return s})();var dt=(()=>{let n=class n{constructor(){this.cdRef=L(K),this.ngZone=L(ae)}format(e){return e.from((0,x.default)(),this.lastOmitSuffix)}transform(e,t,i){return this.hasChanged(e,t)?(this.lastTime=this.getTime(e),this.lastValue=e,this.lastOmitSuffix=t,this.lastLocale=this.getLocale(e),this.formatFn=i||this.format.bind(this),this.removeTimer(),this.createTimer(),this.lastText=this.formatFn((0,x.default)(e))):this.createTimer(),this.lastText}ngOnDestroy(){this.removeTimer()}createTimer(){if(this.currentTimer)return;let e=(0,x.default)(this.lastValue),t=this.getSecondsUntilUpdate(e)*1e3;this.currentTimer=this.ngZone.runOutsideAngular(()=>typeof window<"u"?window.setTimeout(()=>{this.lastText=this.formatFn((0,x.default)(this.lastValue)),this.currentTimer=null,this.ngZone.run(()=>this.cdRef.markForCheck())},t):null)}removeTimer(){this.currentTimer&&(window.clearTimeout(this.currentTimer),this.currentTimer=null)}getSecondsUntilUpdate(e){let t=Math.abs((0,x.default)().diff(e,"minute"));return t<1?1:t<60?30:t<180?300:3600}hasChanged(e,t){return this.getTime(e)!==this.lastTime||this.getLocale(e)!==this.lastLocale||t!==this.lastOmitSuffix}getTime(e){return e instanceof Date?e.getTime():x.default.isDayjs(e)?e.valueOf():(0,x.default)(e).valueOf()}getLocale(e){return x.default.isDayjs(e)?e.locale():x.default.locale()}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=V({name:"amTimeAgo",type:n,pure:!1});let s=n;return s})();var It=["ulElement"],At=["liElements"],Mt=(s,n,a,e)=>({matches:s,itemTemplate:n,query:a,$implicit:e}),kt=(s,n,a,e)=>({item:s,index:n,match:a,query:e});function Pt(s,n){}function Lt(s,n){if(s&1&&g(0,"span",4),s&2){let a=n.match,e=n.query,t=l();d("innerHtml",t.highlight(a,e),N)}}function Ft(s,n){if(s&1&&(p(0,"h6",8),b(1),m()),s&2){let a=l().$implicit;h(),T(a)}}function Dt(s,n){}function Rt(s,n){if(s&1){let a=w();p(0,"button",9,2),C("click",function(t){y(a);let i=l().$implicit,r=l(2);return _(r.selectMatch(i,t))})("mouseenter",function(){y(a);let t=l().$implicit,i=l(2);return _(i.selectActive(t))}),O(2,Dt,0,0,"ng-template",3),m()}if(s&2){let a=l(),e=a.$implicit,t=a.index,i=l(2),r=B(2);A("active",i.isActive(e)),d("id",i.popupId+"-"+t)("@typeaheadAnimation",i.animationState),h(2),d("ngTemplateOutlet",i.itemTemplate||r)("ngTemplateOutletContext",Te(6,kt,e.item,t,e,i.query))}}function Ut(s,n){if(s&1&&O(0,Ft,2,1,"h6",6)(1,Rt,3,11,"ng-template",7),s&2){let a=n.$implicit;d("ngIf",a.isHeader()),h(),d("ngIf",!a.isHeader())}}function Vt(s,n){if(s&1&&O(0,Ut,2,2,"ng-template",5),s&2){let a=l();d("ngForOf",a.matches)}}var Bt={\u00C1:"A",\u0102:"A",\u1EAE:"A",\u1EB6:"A",\u1EB0:"A",\u1EB2:"A",\u1EB4:"A",\u01CD:"A",\u00C2:"A",\u1EA4:"A",\u1EAC:"A",\u1EA6:"A",\u1EA8:"A",\u1EAA:"A",\u00C4:"A",\u01DE:"A",\u0226:"A",\u01E0:"A",\u1EA0:"A",\u0200:"A",\u00C0:"A",\u1EA2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00C5:"A",\u01FA:"A",\u1E00:"A","\u023A":"A",\u00C3:"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY",\u1E02:"B",\u1E04:"B",\u0181:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0106:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0108:"C",\u010A:"C",\u0187:"C","\u023B":"C",\u010E:"D",\u1E10:"D",\u1E12:"D",\u1E0A:"D",\u1E0C:"D",\u018A:"D",\u1E0E:"D",\u01F2:"D",\u01C5:"D",\u0110:"D",\u018B:"D",\u01F1:"DZ",\u01C4:"DZ",\u00C9:"E",\u0114:"E",\u011A:"E",\u0228:"E",\u1E1C:"E",\u00CA:"E",\u1EBE:"E",\u1EC6:"E",\u1EC0:"E",\u1EC2:"E",\u1EC4:"E",\u1E18:"E",\u00CB:"E",\u0116:"E",\u1EB8:"E",\u0204:"E",\u00C8:"E",\u1EBA:"E",\u0206:"E",\u0112:"E",\u1E16:"E",\u1E14:"E",\u0118:"E","\u0246":"E",\u1EBC:"E",\u1E1A:"E","\uA76A":"ET",\u1E1E:"F",\u0191:"F",\u01F4:"G",\u011E:"G",\u01E6:"G",\u0122:"G",\u011C:"G",\u0120:"G",\u0193:"G",\u1E20:"G",\u01E4:"G",\u1E2A:"H",\u021E:"H",\u1E28:"H",\u0124:"H","\u2C67":"H",\u1E26:"H",\u1E22:"H",\u1E24:"H",\u0126:"H",\u00CD:"I",\u012C:"I",\u01CF:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u0130:"I",\u1ECA:"I",\u0208:"I",\u00CC:"I",\u1EC8:"I",\u020A:"I",\u012A:"I",\u012E:"I",\u0197:"I",\u0128:"I",\u1E2C:"I","\uA779":"D","\uA77B":"F","\uA77D":"G","\uA782":"R","\uA784":"S","\uA786":"T","\uA76C":"IS",\u0134:"J","\u0248":"J",\u1E30:"K",\u01E8:"K",\u0136:"K","\u2C69":"K","\uA742":"K",\u1E32:"K",\u0198:"K",\u1E34:"K","\uA740":"K","\uA744":"K",\u0139:"L","\u023D":"L",\u013D:"L",\u013B:"L",\u1E3C:"L",\u1E36:"L",\u1E38:"L","\u2C60":"L","\uA748":"L",\u1E3A:"L",\u013F:"L","\u2C62":"L",\u01C8:"L",\u0141:"L",\u01C7:"LJ",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1E4A:"N",\u1E44:"N",\u1E46:"N",\u01F8:"N",\u019D:"N",\u1E48:"N","\u0220":"N",\u01CB:"N",\u00D1:"N",\u01CA:"NJ",\u00D3:"O",\u014E:"O",\u01D1:"O",\u00D4:"O",\u1ED0:"O",\u1ED8:"O",\u1ED2:"O",\u1ED4:"O",\u1ED6:"O",\u00D6:"O",\u022A:"O",\u022E:"O",\u0230:"O",\u1ECC:"O",\u0150:"O",\u020C:"O",\u00D2:"O",\u1ECE:"O",\u01A0:"O",\u1EDA:"O",\u1EE2:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u020E:"O","\uA74A":"O","\uA74C":"O",\u014C:"O",\u1E52:"O",\u1E50:"O",\u019F:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u00D5:"O",\u1E4C:"O",\u1E4E:"O",\u022C:"O",\u01A2:"OI","\uA74E":"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1E54:"P",\u1E56:"P","\uA752":"P",\u01A4:"P","\uA754":"P","\u2C63":"P","\uA750":"P","\uA758":"Q","\uA756":"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1E58:"R",\u1E5A:"R",\u1E5C:"R",\u0210:"R",\u0212:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA73E":"C",\u018E:"E",\u015A:"S",\u1E64:"S",\u0160:"S",\u1E66:"S",\u015E:"S",\u015C:"S",\u0218:"S",\u1E60:"S",\u1E62:"S",\u1E68:"S",\u0164:"T",\u0162:"T",\u1E70:"T",\u021A:"T","\u023E":"T",\u1E6A:"T",\u1E6C:"T",\u01AC:"T",\u1E6E:"T",\u01AE:"T",\u0166:"T","\u2C6F":"A","\uA780":"L",\u019C:"M","\u0245":"V","\uA728":"TZ",\u00DA:"U",\u016C:"U",\u01D3:"U",\u00DB:"U",\u1E76:"U",\u00DC:"U",\u01D7:"U",\u01D9:"U",\u01DB:"U",\u01D5:"U",\u1E72:"U",\u1EE4:"U",\u0170:"U",\u0214:"U",\u00D9:"U",\u1EE6:"U",\u01AF:"U",\u1EE8:"U",\u1EF0:"U",\u1EEA:"U",\u1EEC:"U",\u1EEE:"U",\u0216:"U",\u016A:"U",\u1E7A:"U",\u0172:"U",\u016E:"U",\u0168:"U",\u1E78:"U",\u1E74:"U","\uA75E":"V",\u1E7E:"V",\u01B2:"V",\u1E7C:"V","\uA760":"VY",\u1E82:"W",\u0174:"W",\u1E84:"W",\u1E86:"W",\u1E88:"W",\u1E80:"W","\u2C72":"W",\u1E8C:"X",\u1E8A:"X",\u00DD:"Y",\u0176:"Y",\u0178:"Y",\u1E8E:"Y",\u1EF4:"Y",\u1EF2:"Y",\u01B3:"Y",\u1EF6:"Y","\u1EFE":"Y",\u0232:"Y","\u024E":"Y",\u1EF8:"Y",\u0179:"Z",\u017D:"Z",\u1E90:"Z","\u2C6B":"Z",\u017B:"Z",\u1E92:"Z",\u0224:"Z",\u1E94:"Z",\u01B5:"Z",\u0132:"IJ",\u0152:"OE","\u1D00":"A","\u1D01":"AE",\u0299:"B","\u1D03":"B","\u1D04":"C","\u1D05":"D","\u1D07":"E","\uA730":"F",\u0262:"G",\u029B:"G",\u029C:"H",\u026A:"I",\u0281:"R","\u1D0A":"J","\u1D0B":"K",\u029F:"L","\u1D0C":"L","\u1D0D":"M",\u0274:"N","\u1D0F":"O",\u0276:"OE","\u1D10":"O","\u1D15":"OU","\u1D18":"P",\u0280:"R","\u1D0E":"N","\u1D19":"R","\uA731":"S","\u1D1B":"T","\u2C7B":"E","\u1D1A":"R","\u1D1C":"U","\u1D20":"V","\u1D21":"W",\u028F:"Y","\u1D22":"Z",\u00E1:"a",\u0103:"a",\u1EAF:"a",\u1EB7:"a",\u1EB1:"a",\u1EB3:"a",\u1EB5:"a",\u01CE:"a",\u00E2:"a",\u1EA5:"a",\u1EAD:"a",\u1EA7:"a",\u1EA9:"a",\u1EAB:"a",\u00E4:"a",\u01DF:"a",\u0227:"a",\u01E1:"a",\u1EA1:"a",\u0201:"a",\u00E0:"a",\u1EA3:"a",\u0203:"a",\u0101:"a",\u0105:"a","\u1D8F":"a",\u1E9A:"a",\u00E5:"a",\u01FB:"a",\u1E01:"a","\u2C65":"a",\u00E3:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay",\u1E03:"b",\u1E05:"b",\u0253:"b",\u1E07:"b","\u1D6C":"b","\u1D80":"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0109:"c",\u0255:"c",\u010B:"c",\u0188:"c","\u023C":"c",\u010F:"d",\u1E11:"d",\u1E13:"d","\u0221":"d",\u1E0B:"d",\u1E0D:"d",\u0257:"d","\u1D91":"d",\u1E0F:"d","\u1D6D":"d","\u1D81":"d",\u0111:"d",\u0256:"d",\u018C:"d",\u0131:"i","\u0237":"j",\u025F:"j",\u0284:"j",\u01F3:"dz",\u01C6:"dz",\u00E9:"e",\u0115:"e",\u011B:"e",\u0229:"e",\u1E1D:"e",\u00EA:"e",\u1EBF:"e",\u1EC7:"e",\u1EC1:"e",\u1EC3:"e",\u1EC5:"e",\u1E19:"e",\u00EB:"e",\u0117:"e",\u1EB9:"e",\u0205:"e",\u00E8:"e",\u1EBB:"e",\u0207:"e",\u0113:"e",\u1E17:"e",\u1E15:"e","\u2C78":"e",\u0119:"e","\u1D92":"e","\u0247":"e",\u1EBD:"e",\u1E1B:"e","\uA76B":"et",\u1E1F:"f",\u0192:"f","\u1D6E":"f","\u1D82":"f",\u01F5:"g",\u011F:"g",\u01E7:"g",\u0123:"g",\u011D:"g",\u0121:"g",\u0260:"g",\u1E21:"g","\u1D83":"g",\u01E5:"g",\u1E2B:"h",\u021F:"h",\u1E29:"h",\u0125:"h","\u2C68":"h",\u1E27:"h",\u1E23:"h",\u1E25:"h",\u0266:"h",\u1E96:"h",\u0127:"h",\u0195:"hv",\u00ED:"i",\u012D:"i",\u01D0:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u1ECB:"i",\u0209:"i",\u00EC:"i",\u1EC9:"i",\u020B:"i",\u012B:"i",\u012F:"i","\u1D96":"i",\u0268:"i",\u0129:"i",\u1E2D:"i","\uA77A":"d","\uA77C":"f","\u1D79":"g","\uA783":"r","\uA785":"s","\uA787":"t","\uA76D":"is",\u01F0:"j",\u0135:"j",\u029D:"j","\u0249":"j",\u1E31:"k",\u01E9:"k",\u0137:"k","\u2C6A":"k","\uA743":"k",\u1E33:"k",\u0199:"k",\u1E35:"k","\u1D84":"k","\uA741":"k","\uA745":"k",\u013A:"l",\u019A:"l",\u026C:"l",\u013E:"l",\u013C:"l",\u1E3D:"l","\u0234":"l",\u1E37:"l",\u1E39:"l","\u2C61":"l","\uA749":"l",\u1E3B:"l",\u0140:"l",\u026B:"l","\u1D85":"l",\u026D:"l",\u0142:"l",\u01C9:"lj",\u017F:"s","\u1E9C":"s",\u1E9B:"s","\u1E9D":"s",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m","\u1D6F":"m","\u1D86":"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1E4B:"n","\u0235":"n",\u1E45:"n",\u1E47:"n",\u01F9:"n",\u0272:"n",\u1E49:"n",\u019E:"n","\u1D70":"n","\u1D87":"n",\u0273:"n",\u00F1:"n",\u01CC:"nj",\u00F3:"o",\u014F:"o",\u01D2:"o",\u00F4:"o",\u1ED1:"o",\u1ED9:"o",\u1ED3:"o",\u1ED5:"o",\u1ED7:"o",\u00F6:"o",\u022B:"o",\u022F:"o",\u0231:"o",\u1ECD:"o",\u0151:"o",\u020D:"o",\u00F2:"o",\u1ECF:"o",\u01A1:"o",\u1EDB:"o",\u1EE3:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u020F:"o","\uA74B":"o","\uA74D":"o","\u2C7A":"o",\u014D:"o",\u1E53:"o",\u1E51:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u00F5:"o",\u1E4D:"o",\u1E4F:"o",\u022D:"o",\u01A3:"oi","\uA74F":"oo",\u025B:"e","\u1D93":"e",\u0254:"o","\u1D97":"o",\u0223:"ou",\u1E55:"p",\u1E57:"p","\uA753":"p",\u01A5:"p","\u1D71":"p","\u1D88":"p","\uA755":"p","\u1D7D":"p","\uA751":"p","\uA759":"q",\u02A0:"q","\u024B":"q","\uA757":"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1E59:"r",\u1E5B:"r",\u1E5D:"r",\u0211:"r",\u027E:"r","\u1D73":"r",\u0213:"r",\u1E5F:"r",\u027C:"r","\u1D72":"r","\u1D89":"r","\u024D":"r",\u027D:"r","\u2184":"c","\uA73F":"c",\u0258:"e",\u027F:"r",\u015B:"s",\u1E65:"s",\u0161:"s",\u1E67:"s",\u015F:"s",\u015D:"s",\u0219:"s",\u1E61:"s",\u1E63:"s",\u1E69:"s",\u0282:"s","\u1D74":"s","\u1D8A":"s","\u023F":"s",\u0261:"g","\u1D11":"o","\u1D13":"o","\u1D1D":"u",\u0165:"t",\u0163:"t",\u1E71:"t",\u021B:"t","\u0236":"t",\u1E97:"t","\u2C66":"t",\u1E6B:"t",\u1E6D:"t",\u01AD:"t",\u1E6F:"t","\u1D75":"t",\u01AB:"t",\u0288:"t",\u0167:"t","\u1D7A":"th",\u0250:"a","\u1D02":"ae",\u01DD:"e","\u1D77":"g",\u0265:"h","\u02AE":"h","\u02AF":"h","\u1D09":"i",\u029E:"k","\uA781":"l",\u026F:"m",\u0270:"m","\u1D14":"oe",\u0279:"r",\u027B:"r",\u027A:"r","\u2C79":"r",\u0287:"t",\u028C:"v",\u028D:"w",\u028E:"y","\uA729":"tz",\u00FA:"u",\u016D:"u",\u01D4:"u",\u00FB:"u",\u1E77:"u",\u00FC:"u",\u01D8:"u",\u01DA:"u",\u01DC:"u",\u01D6:"u",\u1E73:"u",\u1EE5:"u",\u0171:"u",\u0215:"u",\u00F9:"u",\u1EE7:"u",\u01B0:"u",\u1EE9:"u",\u1EF1:"u",\u1EEB:"u",\u1EED:"u",\u1EEF:"u",\u0217:"u",\u016B:"u",\u1E7B:"u",\u0173:"u","\u1D99":"u",\u016F:"u",\u0169:"u",\u1E79:"u",\u1E75:"u","\u1D6B":"ue","\uA778":"um","\u2C74":"v","\uA75F":"v",\u1E7F:"v",\u028B:"v","\u1D8C":"v","\u2C71":"v",\u1E7D:"v","\uA761":"vy",\u1E83:"w",\u0175:"w",\u1E85:"w",\u1E87:"w",\u1E89:"w",\u1E81:"w","\u2C73":"w",\u1E98:"w",\u1E8D:"x",\u1E8B:"x","\u1D8D":"x",\u00FD:"y",\u0177:"y",\u00FF:"y",\u1E8F:"y",\u1EF5:"y",\u1EF3:"y",\u01B4:"y",\u1EF7:"y","\u1EFF":"y",\u0233:"y",\u1E99:"y","\u024F":"y",\u1EF9:"y",\u017A:"z",\u017E:"z",\u1E91:"z",\u0291:"z","\u2C6C":"z",\u017C:"z",\u1E93:"z",\u0225:"z",\u1E95:"z","\u1D76":"z","\u1D8E":"z",\u0290:"z",\u01B6:"z","\u0240":"z",\uFB00:"ff",\uFB03:"ffi",\uFB04:"ffl",\uFB01:"fi",\uFB02:"fl",\u0133:"ij",\u0153:"oe",\uFB06:"st","\u2090":"a","\u2091":"e","\u1D62":"i","\u2C7C":"j","\u2092":"o","\u1D63":"r","\u1D64":"u","\u1D65":"v","\u2093":"x"};var H=class{constructor(n,a=n,e=!1){this.item=n,this.value=a,this.header=e}isHeader(){return this.header}toString(){return this.value}};function Y(s){return s?s.replace(/[^A-Za-z0-9[\] ]/g,function(n){return Bt[n]||n}):""}function Ee(s,n=" ",a="",e){let t=[];if(!e)t=pt(s,n,a);else{let i=`([${e}]+)`,r=s.split(new RegExp(i,"g")),o=r[r.length-1];o>""&&(n&&a?t=pt(o,n,a):t.push(o))}return t}function pt(s,n,a){let e=[],t=`(?:[${a}])([^${a}]+)(?:[${a}])|([^${n}]+)`,i=s.split(new RegExp(t,"g")),r=i.length,o,c=new RegExp(`[${a}]+`,"g");for(let f=0;f<r;f+=1)o=i[f],o&&o.length&&o!==n&&e.push(o.replace(c,""));return e}function P(s,n){if(!n||typeof s!="object")return s.toString();if(n.endsWith("()")){let t=n.slice(0,n.length-2);return s[t]().toString()}let e=n.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let t of e)t in s&&(s=s[t]);return s?s.toString():""}var mt="220ms cubic-bezier(0, 0, 0.2, 1)",Ht=Je("typeaheadAnimation",[Se("animated-down",Q({height:"*",overflow:"hidden"})),de("* => animated-down",[Q({height:0,overflow:"hidden"}),he(mt)]),Se("animated-up",Q({height:"*",overflow:"hidden"})),de("* => animated-up",[Q({height:"*",overflow:"hidden"}),he(mt)]),de("* => unanimated",he("0s"))]),Nt=0,zt=(()=>{let n=class n{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,r){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=r,this.activeChangeEvent=new v,this.isFocused=!1,this.positionServiceSubscription=new we,this.height=0,this.popupId=`ngb-typeahead-${Nt++}`,this._matches=[],this.renderer.setAttribute(this.element.nativeElement,"id",this.popupId),this.positionServiceSubscription.add(this.positionService.event$?.subscribe(()=>{if(this.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down",this.changeDetectorRef.detectChanges();return}this.animationState="unanimated",this.changeDetectorRef.detectChanges()}))}get active(){return this._active}set active(e){this._active=e,this.activeChanged()}get matches(){return this._matches}set matches(e){if(this.positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition}},allowedPositions:["top","bottom"]}),this._matches=e,this.needScrollbar=this.typeaheadScrollable&&this.typeaheadOptionsInScrollableView<this.matches.length,this.typeaheadScrollable&&setTimeout(()=>{this.setScrollableMode()}),this.typeaheadIsFirstItemActive&&this._matches.length>0&&(this.setActive(this._matches[0]),this._active?.isHeader()&&this.nextActiveMatch()),this._active&&!this.typeaheadIsFirstItemActive){let t=this._matches.find(i=>i.value===this._active?.value);if(t){this.selectActive(t);return}this.active=void 0}}get isTopPosition(){return this.element.nativeElement.classList.contains("top")}get optionsListTemplate(){return this.parent?this.parent.optionsListTemplate:void 0}get isAnimated(){return this.parent?this.parent.isAnimated:!1}get adaptivePosition(){return this.parent?this.parent.adaptivePosition:!1}get typeaheadScrollable(){return this.parent?this.parent.typeaheadScrollable:!1}get typeaheadOptionsInScrollableView(){return this.parent?this.parent.typeaheadOptionsInScrollableView:5}get typeaheadIsFirstItemActive(){return this.parent?this.parent.typeaheadIsFirstItemActive:!0}get itemTemplate(){return this.parent?this.parent.typeaheadItemTemplate:void 0}get canSelectItemsOnBlur(){return!!this.parent?.selectItemOnBlur}selectActiveMatch(e){this._active&&this.parent?.typeaheadSelectFirstItem&&this.selectMatch(this._active),!this.parent?.typeaheadSelectFirstItem&&e&&this.selectMatch(this._active)}activeChanged(){if(!this._active)return;let e=this.matches.indexOf(this._active);this.activeChangeEvent.emit(`${this.popupId}-${e}`)}prevActiveMatch(){if(!this._active)return;let e=this.matches.indexOf(this._active);this.setActive(this.matches[e-1<0?this.matches.length-1:e-1]),this._active.isHeader()&&this.prevActiveMatch(),this.typeaheadScrollable&&this.scrollPrevious(e)}nextActiveMatch(){let e=this._active?this.matches.indexOf(this._active):-1;this.setActive(this.matches[e+1>this.matches.length-1?0:e+1]),this._active?.isHeader()&&this.nextActiveMatch(),this.typeaheadScrollable&&this.scrollNext(e)}selectActive(e){this.isFocused=!0,this.setActive(e)}highlight(e,t){let i=e.value,r=(this.parent&&this.parent.typeaheadLatinize?Y(i):i).toLowerCase(),o,c;if(typeof t=="object"){let f=t.length,me="\u2063",gt=17;for(let q=0;q<f;q+=1)o=r.indexOf(t[q]),c=t[q].length,o>=0&&c>0&&(i=`${i.substring(0,o)}<strong>${i.substring(o,o+c)}</strong>${i.substring(o+c)}`,r=`${r.substring(0,o)}${me.repeat(gt+c)}${r.substring(o+c)}`)}else t&&(o=r.indexOf(t),c=t.length,o>=0&&c>0&&(i=`${i.substring(0,o)}<strong>${i.substring(o,o+c)}</strong>${i.substring(o+c)}`));return i}focusLost(){this.isFocused=!1,this.canSelectItemsOnBlur||this.setActive(void 0)}isActive(e){return this.active===e}selectMatch(e,t){return t&&(t.stopPropagation(),t.preventDefault()),this.parent?.changeModel(e),setTimeout(()=>this.parent?.typeaheadOnSelect.emit(e),0),!1}setScrollableMode(){if(this.ulElement||(this.ulElement=this.element),this.liElements?.first){let e=Oe.getStyles(this.ulElement.nativeElement),t=Oe.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),r=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),o=parseFloat((t.height?t.height:"0").replace("px","")),c=this.typeaheadOptionsInScrollableView*o;this.guiHeight=`${c+r+i}px`}this.renderer.setStyle(this.element.nativeElement,"visibility","visible")}scrollPrevious(e){if(e===0){this.scrollToBottom();return}if(this.liElements&&this.ulElement){let t=this.liElements.toArray()[e-1];t&&!this.isScrolledIntoView(t.nativeElement)&&(this.ulElement.nativeElement.scrollTop=t.nativeElement.offsetTop)}}scrollNext(e){if(e+1>this.matches.length-1){this.scrollToTop();return}if(this.liElements&&this.ulElement){let t=this.liElements.toArray()[e+1];t&&!this.isScrolledIntoView(t.nativeElement)&&(this.ulElement.nativeElement.scrollTop=t.nativeElement.offsetTop-Number(this.ulElement.nativeElement.offsetHeight)+Number(t.nativeElement.offsetHeight))}}ngOnDestroy(){this.positionServiceSubscription.unsubscribe()}setActive(e){this._active=e;let t;this._active==null||this._active.isHeader()||(t=e),this.parent?.typeaheadOnPreview.emit(t)}isScrolledIntoView(e){if(!this.ulElement)return!1;let t=this.ulElement.nativeElement.scrollTop,i=t+Number(this.ulElement.nativeElement.offsetHeight),r=e.offsetTop;return r+e.offsetHeight<=i&&r>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}};n.\u0275fac=function(t){return new(t||n)(u(G),u(D),u(F),u(K))},n.\u0275cmp=R({type:n,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(z(It,5),z(At,5)),t&2){let r;j(r=$())&&(i.ulElement=r.first),j(r=$())&&(i.liElements=r)}},hostAttrs:[1,"dropdown","open","bottom","dropdown-menu",2,"position","absolute","display","block"],hostVars:7,hostBindings:function(t,i){t&1&&C("mouseleave",function(){return i.focusLost()})("blur",function(){return i.focusLost()}),t&2&&(k("role","listbox"),Re("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),A("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[xe([G])],decls:5,vars:7,consts:[["bsItemTemplate",""],["bs4Template",""],["liElements",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHtml"],["ngFor","",3,"ngForOf"],["class","dropdown-header",4,"ngIf"],[3,"ngIf"],[1,"dropdown-header"],["role","option",1,"dropdown-item",3,"click","mouseenter","id"]],template:function(t,i){if(t&1&&O(0,Pt,0,0,"ng-template",3)(1,Lt,1,1,"ng-template",null,0,W)(3,Vt,1,1,"ng-template",null,1,W),t&2){let r=B(2),o=B(4);d("ngTemplateOutlet",i.optionsListTemplate||o)("ngTemplateOutletContext",Te(2,Mt,i.matches,i.itemTemplate||r,i.query,i.typeaheadTemplateMethods))}},dependencies:[Ne,oe,le],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Ht]}});let s=n;return s})(),ut=(()=>{let n=class n{constructor(){this.adaptivePosition=!1,this.isAnimated=!1,this.hideResultsOnBlur=!0,this.cancelRequestOnFocusLost=!1,this.selectFirstItem=!0,this.isFirstItemActive=!0,this.minLength=1,this.selectItemOnBlur=!1}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})(),ft=(()=>{let n=class n{constructor(e,t,i,r,o,c,f){this.changeDetection=i,this.element=r,this.ngControl=o,this.renderer=c,this.typeaheadMinLength=1,this.adaptivePosition=!1,this.isAnimated=!1,this.typeaheadWaitMs=0,this.typeaheadLatinize=!0,this.typeaheadSingleWords=!0,this.typeaheadWordDelimiters=" ",this.typeaheadMultipleSearchDelimiters=",",this.typeaheadPhraseDelimiters=`'"`,this.typeaheadScrollable=!1,this.typeaheadOptionsInScrollableView=5,this.typeaheadSelectFirstItem=!0,this.typeaheadIsFirstItemActive=!0,this.typeaheadLoading=new v,this.typeaheadNoResults=new v,this.typeaheadOnSelect=new v,this.typeaheadOnPreview=new v,this.typeaheadOnBlur=new v,this.dropup=!1,this.isOpen=!1,this.list="list",this.isActiveItemChanged=!1,this.isFocused=!1,this.cancelRequestOnFocusLost=!1,this.selectItemOnBlur=!1,this.keyUpEventEmitter=new v,this.placement="bottom left",this._matches=[],this._subscriptions=[],this._outsideClickListener=()=>{},this._typeahead=e.createLoader(r,f,c).provide({provide:ut,useValue:t}),Object.assign(this,{typeaheadHideResultsOnBlur:t.hideResultsOnBlur,cancelRequestOnFocusLost:t.cancelRequestOnFocusLost,typeaheadSelectFirstItem:t.selectFirstItem,typeaheadIsFirstItemActive:t.isFirstItemActive,typeaheadMinLength:t.minLength,adaptivePosition:t.adaptivePosition,isAnimated:t.isAnimated,selectItemOnBlur:t.selectItemOnBlur})}get matches(){return this._matches}ngOnInit(){this.typeaheadOptionsLimit=this.typeaheadOptionsLimit||20,this.typeaheadMinLength=this.typeaheadMinLength===void 0?1:this.typeaheadMinLength,this.typeaheadAsync===void 0&&!J(this.typeahead)&&(this.typeaheadAsync=!1),J(this.typeahead)&&(this.typeaheadAsync=!0),this.typeaheadAsync?this.asyncActions():this.syncActions(),this.checkDelimitersConflict()}onInput(e){let t=e.target.value!==void 0?e.target.value:e.target.textContent!==void 0?e.target.textContent:e.target.innerText;t!=null&&t.trim().length>=this.typeaheadMinLength?(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(e.target.value)):(this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!1),this.hide())}onChange(e){if(this._container){if(e.keyCode===27||e.key==="Escape"){this.hide();return}if(e.keyCode===38||e.key==="ArrowUp"){this.isActiveItemChanged=!0,this._container.prevActiveMatch();return}if(e.keyCode===40||e.key==="ArrowDown"){this.isActiveItemChanged=!0,this._container.nextActiveMatch();return}if(e.keyCode===13||e.key==="Enter"){this._container.selectActiveMatch();return}}}onFocus(){this.isFocused=!0,setTimeout(()=>{this.typeaheadMinLength===0&&(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(this.element.nativeElement.value||""))},0)}onBlur(){this.isFocused=!1,this._container&&!this._container.isFocused&&this.typeaheadOnBlur.emit(this._container.active),!this.container&&this._matches?.length===0&&this.typeaheadOnBlur.emit(new H(this.element.nativeElement.value,this.element.nativeElement.value,!1))}onKeydown(e){if(this._container&&((e.keyCode===9||e.key==="Tab")&&this.onBlur(),e.keyCode===9||e.key==="Tab"||e.keyCode===13||e.key==="Enter")){if(e.preventDefault(),this.typeaheadSelectFirstItem){this._container.selectActiveMatch();return}this.typeaheadSelectFirstItem||(this._container.selectActiveMatch(this.isActiveItemChanged),this.isActiveItemChanged=!1,this.hide())}}changeModel(e){if(!e)return;let t;if(this.typeaheadMultipleSearch&&this._allEnteredValue){let i=this._allEnteredValue.split(new RegExp(`([${this.typeaheadMultipleSearchDelimiters}]+)`));this._allEnteredValue=i.slice(0,i.length-1).concat(e.value).join(""),t=this._allEnteredValue}else t=e.value;this.ngControl.viewToModelUpdate(t),this.ngControl.control?.setValue(t),this.changeDetection.markForCheck(),this.hide()}show(){if(this._typeahead.attach(zt).to(this.container).position({attachment:`${this.dropup?"top":"bottom"} left`}).show({typeaheadRef:this,placement:this.placement,animation:!1,dropup:this.dropup}),this._outsideClickListener=this.renderer.listen("document","click",t=>{this.typeaheadMinLength===0&&this.element.nativeElement.contains(t.target)||!this.typeaheadHideResultsOnBlur||this.element.nativeElement.contains(t.target)||this.onOutsideClick()}),!this._typeahead.instance||!this.ngControl.control)return;this._container=this._typeahead.instance,this._container.parent=this;let e=(this.typeaheadLatinize?Y(this.ngControl.control.value):this.ngControl.control.value).toString().toLowerCase();this._container.query=this.tokenizeQuery(e),this._container.matches=this._matches,this.element.nativeElement.focus(),this._container.activeChangeEvent.subscribe(t=>{this.activeDescendant=t,this.changeDetection.markForCheck()}),this.isOpen=!0}hide(){this._typeahead.isShown&&(this._typeahead.hide(),this._outsideClickListener(),this._container=void 0,this.isOpen=!1,this.changeDetection.markForCheck()),this.typeaheadOnPreview.emit()}onOutsideClick(){this._container&&!this._container.isFocused&&this.hide()}ngOnDestroy(){for(let e of this._subscriptions)e.unsubscribe();this._typeahead.dispose()}asyncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(fe(this.typeaheadWaitMs),ee(e=>this._allEnteredValue=e),Pe(()=>this.typeahead?this.typeahead:ue)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(fe(this.typeaheadWaitMs),X(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(J(this.typeahead)?this.typeahead:Ae(this.typeahead)).pipe(Me(r=>!!r&&this.testMatch(this.normalizeOption(r),t)),ke()):ue})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=P(e,this.typeaheadOptionField);return(this.typeaheadLatinize?Y(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=Ee(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=Ee(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=Ee(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?Y(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let r=0;r<i;r+=1)if(t[r].length>0&&e.indexOf(t[r])<0)return!1;return!0}return e.indexOf(t)>=0}finalizeAsyncCall(e){if(this.prepareMatches(e||[]),this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!this.hasMatches()),!this.hasMatches()){this.hide();return}if(!(!this.isFocused&&this.cancelRequestOnFocusLost))if(this._container&&this.ngControl.control){let i=((this.typeaheadLatinize?Y(this.ngControl.control.value):this.ngControl.control.value)||"").toString().toLowerCase();this._container.query=this.tokenizeQuery(i),this._container.matches=this._matches}else this.show()}prepareMatches(e){let t=e.slice(0,this.typeaheadOptionsLimit),i=this.typeaheadOrderBy?this.orderMatches(t):t;if(this.typeaheadGroupField){let r=[];i.map(c=>P(c,this.typeaheadGroupField)).filter((c,f,me)=>me.indexOf(c)===f).forEach(c=>{r.push(new H(c,c,!0)),r=r.concat(i.filter(f=>P(f,this.typeaheadGroupField)===c).map(f=>new H(f,P(f,this.typeaheadOptionField))))}),this._matches=r}else this._matches=i.map(r=>new H(r,P(r,this.typeaheadOptionField)))}orderMatches(e){if(!e.length)return e;if(this.typeaheadOrderBy!==null&&this.typeaheadOrderBy!==void 0&&typeof this.typeaheadOrderBy=="object"&&Object.keys(this.typeaheadOrderBy).length===0)return console.error("Field and direction properties for typeaheadOrderBy have to be set according to documentation!"),e;let{field:t,direction:i}=this.typeaheadOrderBy||{};return!i||!(i==="asc"||i==="desc")?(console.error('typeaheadOrderBy direction has to equal "asc" or "desc". Please follow the documentation.'),e):typeof e[0]=="string"?i==="asc"?e.sort():e.sort().reverse():!t||typeof t!="string"?(console.error("typeaheadOrderBy field has to set according to the documentation."),e):e.sort((r,o)=>{let c=P(r,t),f=P(o,t);return c<f?i==="asc"?-1:1:c>f?i==="asc"?1:-1:0})}hasMatches(){return this._matches.length>0}checkDelimitersConflict(){if(this.typeaheadMultipleSearch&&this.typeaheadSingleWords&&this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters))throw new Error(`Delimiters used in typeaheadMultipleSearchDelimiters must be different
|
|
2
2
|
from delimiters used in typeaheadWordDelimiters (current value: ${this.typeaheadWordDelimiters}) and
|
|
3
3
|
typeaheadPhraseDelimiters (current value: ${this.typeaheadPhraseDelimiters}).
|
|
4
4
|
Please refer to the documentation`)}haveCommonCharacters(e,t){for(let i=0;i<e.length;i++)if(e.charAt(i).indexOf(t)>-1)return!0;return!1}};n.\u0275fac=function(t){return new(t||n)(u(pe),u(ut),u(K),u(F),u(We),u(D),u(ne))},n.\u0275dir=U({type:n,selectors:[["","typeahead",""]],hostVars:4,hostBindings:function(t,i){t&1&&C("input",function(o){return i.onInput(o)})("keyup",function(o){return i.onChange(o)})("click",function(){return i.onFocus()})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("keydown",function(o){return i.onKeydown(o)}),t&2&&k("aria-activedescendant",i.activeDescendant)("aria-owns",i.isOpen?i._container.popupId:null)("aria-expanded",i.isOpen)("aria-autocomplete",i.list)},inputs:{typeahead:"typeahead",typeaheadMinLength:"typeaheadMinLength",adaptivePosition:"adaptivePosition",isAnimated:"isAnimated",typeaheadWaitMs:"typeaheadWaitMs",typeaheadOptionsLimit:"typeaheadOptionsLimit",typeaheadOptionField:"typeaheadOptionField",typeaheadGroupField:"typeaheadGroupField",typeaheadOrderBy:"typeaheadOrderBy",typeaheadAsync:"typeaheadAsync",typeaheadLatinize:"typeaheadLatinize",typeaheadSingleWords:"typeaheadSingleWords",typeaheadWordDelimiters:"typeaheadWordDelimiters",typeaheadMultipleSearch:"typeaheadMultipleSearch",typeaheadMultipleSearchDelimiters:"typeaheadMultipleSearchDelimiters",typeaheadPhraseDelimiters:"typeaheadPhraseDelimiters",typeaheadItemTemplate:"typeaheadItemTemplate",optionsListTemplate:"optionsListTemplate",typeaheadScrollable:"typeaheadScrollable",typeaheadOptionsInScrollableView:"typeaheadOptionsInScrollableView",typeaheadHideResultsOnBlur:"typeaheadHideResultsOnBlur",typeaheadSelectFirstItem:"typeaheadSelectFirstItem",typeaheadIsFirstItemActive:"typeaheadIsFirstItemActive",container:"container",dropup:"dropup"},outputs:{typeaheadLoading:"typeaheadLoading",typeaheadNoResults:"typeaheadNoResults",typeaheadOnSelect:"typeaheadOnSelect",typeaheadOnPreview:"typeaheadOnPreview",typeaheadOnBlur:"typeaheadOnBlur"},exportAs:["bs-typeahead"],features:[xe([pe,G])]});let s=n;return s})(),yt=(()=>{let n=class n{static forRoot(){return{ngModule:n,providers:[]}}};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=se({type:n}),n.\u0275inj=ie({imports:[ce]});let s=n;return s})();var _t=(()=>{let n=class n{transform(e,t,i=!1){if(i&&t.length<1)return e;if(t&&e){let r=t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");r=r.split(" ").filter(c=>c.length>0).join("|");let o=new RegExp(r,"gi");return e.replace(o,c=>`<b>${c}</b>`)}else return e}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=V({name:"highlight",type:n,pure:!0});let s=n;return s})();var $t=["InputTypeHead"],Wt=(s,n)=>n.mid,Kt=(s,n)=>n.key;function Gt(s,n){if(s&1&&g(0,"img",7),s&2){let a=l().item;d("src",a.avatarUrl,ye)}}function Qt(s,n){if(s&1&&g(0,"fa-icon",13),s&2){let a=l().item,e=l();re(a.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),d("icon",e.icons.GROUPS)}}function Zt(s,n){if(s&1&&(g(0,"span",10),I(1,"highlight")),s&2){let a=l().item,e=l();d("innerHTML",M(1,1,a.description,e.selection),N)}}function Yt(s,n){if(s&1&&(p(0,"div",5)(1,"div",6),S(2,Gt,1,1,"img",7)(3,Qt,1,3,"fa-icon",8),m(),p(4,"div"),g(5,"div",9),I(6,"highlight"),S(7,Zt,2,4,"span",10),m(),p(8,"div",11)(9,"span",12),b(10),m()()()),s&2){let a=n.item,e=l();h(2),E(a.isUser?2:3),h(2),re(Ue("d-flex ms-2 pe-5 ",a.description?"flex-column align-items-start":"align-items-center")),h(),d("innerHTML",M(6,7,a.name,e.selection),N),h(2),E(a.description?7:-1),h(3),T(a.type)}}function qt(s,n){if(s&1){let a=w();p(0,"input",14,1),I(2,"translate"),C("typeaheadOnSelect",function(t){y(a);let i=l();return _(i.onSelect(t))})("typeaheadLoading",function(){y(a);let t=l();return _(t.onLoading())})("typeaheadNoResults",function(){y(a);let t=l();return _(t.onNoResults())})("typeaheadOnPreview",function(){y(a);let t=l();return _(t.onPreview())}),be("ngModelChange",function(t){y(a);let i=l();return Ce(i.selection,t)||(i.selection=t),_(t)}),m()}if(s&2){let a=l(),e=B(1);ve("ngModel",a.selection),d("placeholder",M(2,10,a.placeHolder,a.locale.language))("typeaheadItemTemplate",e)("typeaheadAsync",!0)("typeaheadMinLength",0)("typeaheadSingleWords",!0)("typeaheadOptionField","name")("typeaheadWaitMs",100)("typeaheadHideResultsOnBlur",!0)("typeahead",a.asyncSearchUsersOrGroups)}}function Jt(s,n){if(s&1&&g(0,"img",7),s&2){let a=l().$implicit;d("src",a.avatarUrl,ye)}}function Xt(s,n){if(s&1&&g(0,"fa-icon",17),s&2){let a=l(2);d("icon",a.icons.LINKS)}}function ei(s,n){if(s&1&&g(0,"fa-icon",13),s&2){let a=l().$implicit,e=l();re(a.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),d("icon",e.icons.GROUPS)}}function ti(s,n){if(s&1&&(p(0,"span",21),b(1),m()),s&2){let a=l().$implicit;h(),T(a.description)}}function ii(s,n){if(s&1&&(p(0,"span",22),b(1),m()),s&2){let a=l().$implicit;h(),T(a.type)}}function ni(s,n){if(s&1){let a=w();p(0,"button",32),I(1,"translate"),be("ngModelChange",function(t){y(a);let i=l().$implicit,r=l(3).$implicit;return Ce(r.hPerms[i.key],t)||(r.hPerms[i.key]=t),_(t)}),C("ngModelChange",function(){y(a);let t=l(4).$implicit,i=l();return _(i.onPermissionChange(t))}),g(2,"fa-icon",33),m()}if(s&2){let a=l().$implicit,e=l(3).$implicit,t=l();ve("ngModel",e.hPerms[a.key]),d("tooltip",M(1,3,t.SPACES_PERMISSIONS_TEXT[a.key].text,t.locale.language)),h(2),d("icon",t.SPACES_PERMISSIONS_TEXT[a.key].icon)}}function si(s,n){if(s&1&&S(0,ni,3,6,"button",31),s&2){let a=n.$implicit,e=l(4);E(!e.filterPermissions||(e.filterPermissions&&e.allowedPermissions.indexOf(a.key))>-1?0:-1)}}function ai(s,n){if(s&1&&(_e(0,si,1,1,null,null,Kt),I(2,"keyvalue"),g(3,"div",30)),s&2){let a=l(2).$implicit,e=l();ge(M(2,0,a.hPerms,e.originalOrderKeyValue))}}function ri(s,n){if(s&1){let a=w();p(0,"button",34),I(1,"translate"),C("click",function(){y(a);let t=l(2).$implicit,i=l();return _(i.editFunction(t))}),g(2,"fa-icon",13),m()}if(s&2){let a=l(3);d("tooltip",M(1,2,"Edit",a.locale.language)),h(2),d("icon",a.icons.faPen)}}function oi(s,n){if(s&1){let a=w();p(0,"div",26),g(1,"div",27),S(2,ai,4,3),S(3,ri,3,5,"button",28),p(4,"button",29),I(5,"translate"),C("click",function(){y(a);let t=l().$implicit,i=l();return _(i.removeMember(t))}),g(6,"fa-icon",13),m()()}if(s&2){let a=l(2);h(2),E(a.withPermissions?2:-1),h(),E(a.editFunction?3:-1),h(),d("tooltip",M(5,4,"Remove",a.locale.language)),h(2),d("icon",a.icons.faTimes)}}function li(s,n){if(s&1&&(p(0,"div",4)(1,"div",15)(2,"div",16),S(3,Jt,1,1,"img",7)(4,Xt,1,1,"fa-icon",17)(5,ei,1,3,"fa-icon",8),p(6,"div",18)(7,"div",19),b(8),m(),p(9,"div",20),S(10,ti,2,1,"span",21)(11,ii,2,1,"span",22),m()()(),p(12,"div",23)(13,"div",24),b(14),m(),p(15,"div",25),b(16),I(17,"amTimeAgo"),m()(),S(18,oi,7,7,"div",26),m()()),s&2){let a=n.$implicit,e=l();h(3),E(a.isUser?3:a.isLink?4:5),h(5),T(a.name),h(2),E(a.description?10:a.linkId?-1:11),h(4),T(a.isLink?e.MEMBER_TYPE.LINK:a.type),h(2),T(Be(17,6,a.createdAt)),h(2),E(e.editMode?18:-1)}}var vn=(()=>{let n=class n{constructor(){this.members=[],this.membersChange=new v,this.withPermissions=!1,this.filterPermissions=!1,this.allowedPermissions=[],this.editMode=!0,this.hideInput=!1,this.editFunction=null,this.locale=L(Ze),this.MEMBER_TYPE=ot,this.originalOrderKeyValue=st,this.SPACES_PERMISSIONS_TEXT=rt,this.icons={GROUPS:nt.GROUPS,LINKS:at.LINKS,faTimes:tt,faPen:it},this.selection="",this.ngZone=L(ae),this.defaultPlaceholder="Type to search for users or groups to add",this.placeHolder=this.defaultPlaceholder,this.lastResults=[],this.asyncSearchUsersOrGroups=new Ie(e=>e.next(this.selection)).pipe(X(e=>this.searchFunction(e||"").pipe(ee(t=>this.lastResults=t))))}ngOnInit(){this.setDefaultPlaceHolder()}onSelect(e){this.ngZone.run(()=>{this.selection="",this.inputTypeHead.nativeElement.value=""});let t=e.item;t.createdAt||(t.createdAt=new Date),this.members.unshift(e.item),this.membersChange.emit(this.members),this.lastResults=this.lastResults.filter(i=>i.mid!==t.mid)}onPermissionChange(e){e.permissions=lt(e.hPerms)}removeMember(e){this.members=this.members.filter(t=>t.mid!==e.mid),this.membersChange.emit(this.members),this.lastResults.push(e)}onLoading(){this.placeHolder="Loading..."}onNoResults(){this.placeHolder="No results"}onPreview(){this.setDefaultPlaceHolder()}setDefaultPlaceHolder(){this.placeHolder=this.customPlaceholder||this.defaultPlaceholder}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=R({type:n,selectors:[["app-user-search"]],viewQuery:function(t,i){if(t&1&&z($t,5),t&2){let r;j(r=$())&&(i.inputTypeHead=r.first)}},inputs:{members:"members",withPermissions:"withPermissions",filterPermissions:"filterPermissions",allowedPermissions:"allowedPermissions",editMode:"editMode",hideInput:"hideInput",searchFunction:"searchFunction",editFunction:"editFunction",customPlaceholder:"customPlaceholder"},outputs:{membersChange:"membersChange"},decls:6,vars:1,consts:[["searchMembers",""],["InputTypeHead",""],[1,"form-control","form-control-sm","mb-2",3,"ngModel","placeholder","typeaheadItemTemplate","typeaheadAsync","typeaheadMinLength","typeaheadSingleWords","typeaheadOptionField","typeaheadWaitMs","typeaheadHideResultsOnBlur","typeahead"],[1,"col-12","mt-1"],[1,"bg-theme","mb-1","p-2",2,"border-radius","4px"],["role","button",1,"d-flex"],[1,"d-flex","align-items-center","text-truncate"],["alt","","height","30","width","30",1,"avatar-base-img",3,"src"],[3,"icon","class"],[3,"innerHTML"],[1,"fs-xxxs","me-4",3,"innerHTML"],[1,"ms-auto","ps-5","me-1","text-muted","d-none","d-lg-block","fs-xxxs","align-self-center"],["l10nTranslate",""],[3,"icon"],[1,"form-control","form-control-sm","mb-2",3,"typeaheadOnSelect","typeaheadLoading","typeaheadNoResults","typeaheadOnPreview","ngModelChange","ngModel","placeholder","typeaheadItemTemplate","typeaheadAsync","typeaheadMinLength","typeaheadSingleWords","typeaheadOptionField","typeaheadWaitMs","typeaheadHideResultsOnBlur","typeahead"],[1,"d-flex","align-items-center","text-truncate","no-select","fs-xs",2,"height","32px"],[1,"d-flex","align-items-center","text-truncate","me-auto"],[1,"circle-primary-icon",3,"icon"],[1,"d-flex","flex-column","text-truncate","ms-2"],[1,"text-truncate"],[1,"fs-xxxs","text-truncate"],[1,"fs-xxxs"],["l10nTranslate","",1,"fs-xxxs"],[1,"d-flex","flex-column","fs-xxxs","text-muted","d-none","d-lg-block","ms-3"],["l10nTranslate","",1,"d-flex","justify-content-end"],[1,"d-flex","justify-content-end"],[1,"d-flex","no-select"],[1,"vr","mx-2"],["type","button",1,"btn","btn-sm","btn-custom","me-2",3,"tooltip"],["type","button",1,"btn","btn-sm","btn-danger",3,"click","tooltip"],[1,"vr","ms-1","me-2"],["btnCheckbox","","type","button",1,"btn","btn-sm","btn-custom",3,"ngModel","tooltip"],["btnCheckbox","","type","button",1,"btn","btn-sm","btn-custom",3,"ngModelChange","ngModel","tooltip"],["size","lg",3,"icon"],["type","button",1,"btn","btn-sm","btn-custom","me-2",3,"click","tooltip"]],template:function(t,i){t&1&&(O(0,Yt,11,10,"ng-template",null,0,W),S(2,qt,3,13,"input",2),p(3,"div",3),_e(4,li,19,8,"div",4,Wt),m()),t&2&&(h(2),E(i.hideInput?-1:2),h(2),ge(i.members))},dependencies:[yt,ft,Qe,$e,Ke,Ge,je,qe,ht,ct,et,Xe,Ye,dt,_t,ze],encapsulation:2});let s=n;return s})();export{hi as a,St as b,Et as c,bi as d,xi as e,_t as f,dt as g,vn as h};
|