@sync-in/server 1.3.0 → 1.3.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 +9 -0
- package/environment/environment.dist.yaml +1 -1
- package/package.json +1 -1
- package/server/configuration/config.loader.js +1 -1
- package/server/configuration/config.loader.js.map +1 -1
- package/server/configuration/config.validation.js +2 -0
- package/server/configuration/config.validation.js.map +1 -1
- package/static/{chunk-UV4UIX6J.js → chunk-2CQOSX2Q.js} +1 -1
- package/static/{chunk-7WRQICEB.js → chunk-2QEYCCHN.js} +1 -1
- package/static/{chunk-QFRQQ4K3.js → chunk-2SX3MVH3.js} +1 -1
- package/static/{chunk-GWUCWOVK.js → chunk-2XXS272C.js} +1 -1
- package/static/{chunk-ZVPX26RB.js → chunk-3RLZPQMJ.js} +1 -1
- package/static/{chunk-3V7XYPSJ.js → chunk-5JDPARJT.js} +1 -1
- package/static/{chunk-2EBPSJJT.js → chunk-5OIPLRAE.js} +1 -1
- package/static/{chunk-7PCJMNDR.js → chunk-7U66TR6P.js} +1 -1
- package/static/{chunk-IFJD2ISM.js → chunk-AA6ZTGRW.js} +1 -1
- package/static/{chunk-WTPZUBNX.js → chunk-AXITQYVN.js} +1 -1
- package/static/{chunk-OWGR4BYT.js → chunk-AYEOHGUD.js} +1 -1
- package/static/{chunk-NPLV4M2H.js → chunk-CTWOQLAR.js} +1 -1
- package/static/{chunk-O4CXCITB.js → chunk-EWY4ALVF.js} +1 -1
- package/static/{chunk-5RFOYHL3.js → chunk-FBG4NUDE.js} +1 -1
- package/static/{chunk-ATFX6EIO.js → chunk-GI2LXVWQ.js} +1 -1
- package/static/{chunk-NU3TPXFY.js → chunk-HDDBV3QQ.js} +1 -1
- package/static/{chunk-I644MKAO.js → chunk-HQC3W7BS.js} +1 -1
- package/static/{chunk-4IYQWOGR.js → chunk-LHKO5Y4A.js} +1 -1
- package/static/{chunk-MQZEETHL.js → chunk-NCIAR3N4.js} +1 -1
- package/static/{chunk-VBD7QTEP.js → chunk-R4USKWW6.js} +1 -1
- package/static/{chunk-XI72YZ2M.js → chunk-RGONEEJE.js} +1 -1
- package/static/{chunk-AKM2LQUU.js → chunk-TFBTBTPR.js} +1 -1
- package/static/{chunk-RUNMEQOV.js → chunk-VIL6L67B.js} +1 -1
- package/static/{chunk-Z6IHRUVL.js → chunk-WA3LPP4G.js} +1 -1
- package/static/{chunk-MEKYVWV4.js → chunk-WQPVP63E.js} +1 -1
- package/static/{chunk-ATLT5DK5.js → chunk-Y6IYSEKU.js} +1 -1
- package/static/{chunk-IUUTIYHF.js → chunk-ZS5YIDNI.js} +1 -1
- package/static/{chunk-VQRN7HFP.js → chunk-ZSMTUPAP.js} +1 -1
- package/static/{chunk-RAVRSB6R.js → chunk-ZZGFGD5E.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-ILCPT3IK.js → main-7IVUWYWM.js} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as at,h as rt}from"./chunk-RAVRSB6R.js";import{Ea as Xe,Ga as et,Ia as tt,e as Ce,f as T,g as K,gb as it,j as Ge,k as re,m as G,n as be,o as oe,qb as nt,t as le,v as Qe,w as Ze,xb as st}from"./chunk-NU3TPXFY.js";import{$ as q,$c as Be,Ad as We,Bb as E,Bc as Ue,Bd as Ke,Dd as Ye,Df as Je,E as Ee,Eb as C,Ec as Ve,Fb as l,Fc as ae,Gb as Pe,H as we,Hb as Fe,J as he,La as B,Ma as de,Mb as N,Me as qe,Nb as j,Ob as z,Pb as U,Qb as b,Rb as x,Sa as c,Ta as Me,Ub as fe,Vb as ye,Wa as D,Wb as _e,Xa as h,Xb as ge,Ya as te,Yc as He,Z as Ie,Zb as De,a as xe,ab as L,ac as ve,ad as Ne,bb as ie,bc as w,c as Se,ca as J,cb as M,cc as Le,da as X,db as R,dc as k,fb as y,fc as $,fd as je,k as ce,kb as P,kc as W,lb as d,mb as Ae,nb as A,o as Oe,ob as pe,pa as u,pb as ke,qa as f,r as Z,rb as O,sd as ze,tb as me,ub as ue,ud as $e,vb as p,vc as Re,wa as v,wb as m,x as Y,xa as ee,xb as g,xc as ne,yc as se,za as I}from"./chunk-FPEGN42P.js";var ai=(()=>{class n{transform(e,t="L HH:mm:ss"){return e?(0,T.default)(e).format(t):""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=R({name:"amDateFormat",type:n,pure:!0})}}return n})();var ut=["*"],ft=n=>["nav-item",n];function yt(n,r){if(n&1){let e=E();p(0,"span",7),C("click",function(i){u(e);let s=l().$implicit,a=l();return i.preventDefault(),f(a.removeTab(s))}),b(1," \u274C"),m()}}function _t(n,r){if(n&1){let e=E();p(0,"li",3),C("keydown",function(i){let s=u(e).index,a=l();return f(a.keyNavActions(i,s))}),p(1,"a",4),C("click",function(){let i=u(e).$implicit;return f(i.active=!0)}),p(2,"span",5),b(3),m(),y(4,yt,2,0,"span",6),m()()}if(n&2){let e=r.$implicit;A("active",e.active)("disabled",e.disabled),d("ngClass",De(15,ft,e.customClass||"")),c(),A("active",e.active)("disabled",e.disabled),P("aria-controls",e.id?e.id:"")("aria-selected",!!e.active)("id",e.id?e.id+"-link":""),c(),d("ngTransclude",e.headingRef),c(),x(e.heading),c(),d("ngIf",e.removable)}}var gt=(()=>{class n{set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}constructor(e){this.viewRef=e}static{this.\u0275fac=function(t){return new(t||n)(h(te))}}static{this.\u0275dir=M({type:n,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}})}}return n})(),vt=(()=>{class n{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ct=(()=>{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,Object.assign(this,e)}ngOnDestroy(){this.isDestroyed=!0}addTab(e){this.tabs.push(e),e.active=this.tabs.length===1&&!e.active}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 s=this.getClosestTabIndex(i);this.tabs[s].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 s,a=1;do s=i[(t+a)%i.length],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===37||e.key==="LeftArrow"){let s,a=1,o=t;do o-a<0?(o=i.length-1,s=i[o],a=0):s=i[o-a],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===36||e.key==="Home"){e.preventDefault();let s,a=0;do s=i[a%i.length],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===35||e.key==="End"){e.preventDefault();let s,a=1,o=t;do o-a<0?(o=i.length-1,s=i[o],a=0):s=i[o-a],a++;while(s.classList.contains("disabled"));s.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 s=e-i,a=e+i;if(this.tabs[s]&&!this.tabs[s].disabled)return s;if(this.tabs[a]&&!this.tabs[a].disabled)return a}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}}static{this.\u0275fac=function(t){return new(t||n)(h(vt),h(D),h(I))}}static{this.\u0275cmp=L({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:ut,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&&(Pe(),p(0,"ul",0),C("click",function(a){return a.preventDefault()}),y(1,_t,5,17,"li",1),m(),p(2,"div",2),Fe(3),m()),t&2&&(d("ngClass",i.classMap),P("aria-label",i.ariaLabel),c(),d("ngForOf",i.tabs))},dependencies:[Re,ne,gt,se],styles:["[_nghost-%COMP%] .nav-tabs[_ngcontent-%COMP%] .nav-item.disabled[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{cursor:default}"]})}}return n})(),bt=(()=>{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,this.tabset.addTab(this)}ngOnInit(){this.removable=!!this.removable}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}static{this.\u0275fac=function(t){return new(t||n)(h(Ct),h(I),h(D))}}static{this.\u0275dir=M({type:n,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(t,i){t&2&&(P("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",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]})}}return n})(),yi=(()=>{class n{constructor(e,t){t.headingRef=e}static{this.\u0275fac=function(t){return new(t||n)(h(Me),h(bt))}}static{this.\u0275dir=M({type:n,selectors:[["","tabHeading",""]]})}}return n})(),_i=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=ie({type:n})}static{this.\u0275inj=X({imports:[ae]})}}return n})();var vi=(()=>{class n{constructor(e){this.elementRef=e,this.autoFocus=!0,this.autoSelect=!0}ngOnInit(){setTimeout(()=>{this.autoFocus&&this.elementRef.nativeElement.focus(),this.autoSelect&&this.elementRef.nativeElement.select()},0)}static{this.\u0275fac=function(t){return new(t||n)(h(I))}}static{this.\u0275dir=M({type:n,selectors:[["","appAutofocus",""]],inputs:{autoFocus:"autoFocus",autoSelect:"autoSelect"}})}}return n})();var ot=(()=>{class n{constructor(e,t){this.cdRef=e,this.ngZone=t}format(e){return e.from((0,T.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,T.default)(e))):this.createTimer(),this.lastText}ngOnDestroy(){this.removeTimer()}createTimer(){if(this.currentTimer)return;let e=(0,T.default)(this.lastValue),t=this.getSecondsUntilUpdate(e)*1e3;this.currentTimer=this.ngZone.runOutsideAngular(()=>typeof window<"u"?window.setTimeout(()=>{this.lastText=this.formatFn((0,T.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,T.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():T.default.isDayjs(e)?e.valueOf():(0,T.default)(e).valueOf()}getLocale(e){return T.default.isDayjs(e)?e.locale():T.default.locale()}static{this.\u0275fac=function(t){return new(t||n)(h(W,16),h(ee,16))}}static{this.\u0275pipe=R({name:"amTimeAgo",type:n,pure:!1})}}return n})();var xt=["ulElement"],St=["liElements"],Ot=(n,r,e,t)=>({matches:n,itemTemplate:r,query:e,$implicit:t}),Et=(n,r,e,t)=>({item:n,index:r,match:e,query:t});function wt(n,r){}function It(n,r){if(n&1&&g(0,"span",4),n&2){let e=r.match,t=r.query,i=l();d("innerHtml",i.highlight(e,t),B)}}function Mt(n,r){if(n&1&&(p(0,"h6",8),b(1),m()),n&2){let e=l().$implicit;c(),x(e)}}function At(n,r){}function kt(n,r){if(n&1){let e=E();p(0,"button",9,2),C("click",function(i){u(e);let s=l().$implicit,a=l(2);return f(a.selectMatch(s,i))})("mouseenter",function(){u(e);let i=l().$implicit,s=l(2);return f(s.selectActive(i))}),y(2,At,0,0,"ng-template",3),m()}if(n&2){let e=l(),t=e.$implicit,i=e.index,s=l(2),a=U(2);A("active",s.isActive(t)),d("id",s.popupId+"-"+i)("@typeaheadAnimation",s.animationState),c(2),d("ngTemplateOutlet",s.itemTemplate||a)("ngTemplateOutletContext",ve(6,Et,t.item,i,t,s.query))}}function Pt(n,r){if(n&1&&y(0,Mt,2,1,"h6",6)(1,kt,3,11,"ng-template",7),n&2){let e=r.$implicit;d("ngIf",e.isHeader()),c(),d("ngIf",!e.isHeader())}}function Ft(n,r){if(n&1&&y(0,Pt,2,2,"ng-template",5),n&2){let e=l();d("ngForOf",e.matches)}}var Dt={\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(r,e=r,t=!1){this.item=r,this.value=e,this.header=t}isHeader(){return this.header}toString(){return this.value}};function Q(n){return n?n.replace(/[^A-Za-z0-9[\] ]/g,function(r){return Dt[r]||r}):""}function Te(n,r=" ",e="",t){let i=[];if(!t)i=lt(n,r,e);else{let s=`([${t}]+)`,a=n.split(new RegExp(s,"g")),o=a[a.length-1];o>""&&(r&&e?i=lt(o,r,e):i.push(o))}return i}function lt(n,r,e){let t=[],i=`(?:[${e}])([^${e}]+)(?:[${e}])|([^${r}]+)`,s=n.split(new RegExp(i,"g")),a=s.length,o,_=new RegExp(`[${e}]+`,"g");for(let S=0;S<a;S+=1)o=s[S],o&&o.length&&o!==r&&t.push(o.replace(_,""));return t}function F(n,r){if(!r||typeof n!="object")return n.toString();if(r.endsWith("()")){let i=r.slice(0,r.length-2);return n[i]().toString()}let t=r.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let i of t)i in n&&(n=n[i]);return n?n.toString():""}var ct="220ms cubic-bezier(0, 0, 0.2, 1)",Lt=Ge("typeaheadAnimation",[be("animated-down",G({height:"*",overflow:"hidden"})),oe("* => animated-down",[G({height:0,overflow:"hidden"}),re(ct)]),be("animated-up",G({height:"*",overflow:"hidden"})),oe("* => animated-up",[G({height:"*",overflow:"hidden"}),re(ct)]),oe("* => unanimated",re("0s"))]),Rt=0,Ut=(()=>{class n{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,s){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=s,this.activeChangeEvent=new v,this.isFocused=!1,this.positionServiceSubscription=new xe,this.height=0,this.popupId=`ngb-typeahead-${Rt++}`,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,s=(this.parent&&this.parent.typeaheadLatinize?Q(i):i).toLowerCase(),a,o;if(typeof t=="object"){let _=t.length;for(let S=0;S<_;S+=1)a=s.indexOf(t[S]),o=t[S].length,a>=0&&o>0&&(i=`${i.substring(0,a)}<strong>${i.substring(a,a+o)}</strong>${i.substring(a+o)}`,s=`${s.substring(0,a)}????????${"??".repeat(o)}??????????${s.substring(a+o)}`)}else t&&(a=s.indexOf(t),o=t.length,a>=0&&o>0&&(i=`${i.substring(0,a)}<strong>${i.substring(a,a+o)}</strong>${i.substring(a+o)}`));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=Ce.getStyles(this.ulElement.nativeElement),t=Ce.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),s=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),a=parseFloat((t.height?t.height:"0").replace("px","")),o=this.typeaheadOptionsInScrollableView*a;this.guiHeight=`${o+s+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),s=e.offsetTop;return s+e.offsetHeight<=i&&s>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}static{this.\u0275fac=function(t){return new(t||n)(h(K),h(D),h(I),h(W))}}static{this.\u0275cmp=L({type:n,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(N(xt,5),N(St,5)),t&2){let s;j(s=z())&&(i.ulElement=s.first),j(s=z())&&(i.liElements=s)}},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&&(P("role","listbox"),Ae("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),A("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[ge([K])],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&&y(0,wt,0,0,"ng-template",3)(1,It,1,1,"ng-template",null,0,$)(3,Ft,1,1,"ng-template",null,1,$),t&2){let s=U(2),a=U(4);d("ngTemplateOutlet",i.optionsListTemplate||a)("ngTemplateOutletContext",ve(2,Ot,i.matches,i.itemTemplate||s,i.query,i.typeaheadTemplateMethods))}},dependencies:[Ue,ne,se],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Lt]}})}}return n})(),ht=(()=>{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}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),dt=(()=>{class n{constructor(e,t,i,s,a,o,_){this.changeDetection=i,this.element=s,this.ngControl=a,this.renderer=o,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(s,_,o).provide({provide:ht,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&&!Z(this.typeahead)&&(this.typeaheadAsync=!1),Z(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(Ut).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?Q(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(he(this.typeaheadWaitMs),q(e=>this._allEnteredValue=e),Ie(()=>this.typeahead?this.typeahead:ce)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(he(this.typeaheadWaitMs),Y(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(Z(this.typeahead)?this.typeahead:Oe(this.typeahead)).pipe(Ee(s=>!!s&&this.testMatch(this.normalizeOption(s),t)),we()):ce})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=F(e,this.typeaheadOptionField);return(this.typeaheadLatinize?Q(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=Te(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=Te(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=Te(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?Q(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let s=0;s<i;s+=1)if(t[s].length>0&&e.indexOf(t[s])<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?Q(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 s=[];i.map(o=>F(o,this.typeaheadGroupField)).filter((o,_,S)=>S.indexOf(o)===_).forEach(o=>{s.push(new H(o,o,!0)),s=s.concat(i.filter(_=>F(_,this.typeaheadGroupField)===o).map(_=>new H(_,F(_,this.typeaheadOptionField))))}),this._matches=s}else this._matches=i.map(s=>new H(s,F(s,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((s,a)=>{let o=F(s,t),_=F(a,t);return o<_?i==="asc"?-1:1:o>_?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{g as at,h as rt}from"./chunk-ZZGFGD5E.js";import{Ea as Xe,Ga as et,Ia as tt,e as Ce,f as T,g as K,gb as it,j as Ge,k as re,m as G,n as be,o as oe,qb as nt,t as le,v as Qe,w as Ze,xb as st}from"./chunk-HDDBV3QQ.js";import{$ as q,$c as Be,Ad as We,Bb as E,Bc as Ue,Bd as Ke,Dd as Ye,Df as Je,E as Ee,Eb as C,Ec as Ve,Fb as l,Fc as ae,Gb as Pe,H as we,Hb as Fe,J as he,La as B,Ma as de,Mb as N,Me as qe,Nb as j,Ob as z,Pb as U,Qb as b,Rb as x,Sa as c,Ta as Me,Ub as fe,Vb as ye,Wa as D,Wb as _e,Xa as h,Xb as ge,Ya as te,Yc as He,Z as Ie,Zb as De,a as xe,ab as L,ac as ve,ad as Ne,bb as ie,bc as w,c as Se,ca as J,cb as M,cc as Le,da as X,db as R,dc as k,fb as y,fc as $,fd as je,k as ce,kb as P,kc as W,lb as d,mb as Ae,nb as A,o as Oe,ob as pe,pa as u,pb as ke,qa as f,r as Z,rb as O,sd as ze,tb as me,ub as ue,ud as $e,vb as p,vc as Re,wa as v,wb as m,x as Y,xa as ee,xb as g,xc as ne,yc as se,za as I}from"./chunk-FPEGN42P.js";var ai=(()=>{class n{transform(e,t="L HH:mm:ss"){return e?(0,T.default)(e).format(t):""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=R({name:"amDateFormat",type:n,pure:!0})}}return n})();var ut=["*"],ft=n=>["nav-item",n];function yt(n,r){if(n&1){let e=E();p(0,"span",7),C("click",function(i){u(e);let s=l().$implicit,a=l();return i.preventDefault(),f(a.removeTab(s))}),b(1," \u274C"),m()}}function _t(n,r){if(n&1){let e=E();p(0,"li",3),C("keydown",function(i){let s=u(e).index,a=l();return f(a.keyNavActions(i,s))}),p(1,"a",4),C("click",function(){let i=u(e).$implicit;return f(i.active=!0)}),p(2,"span",5),b(3),m(),y(4,yt,2,0,"span",6),m()()}if(n&2){let e=r.$implicit;A("active",e.active)("disabled",e.disabled),d("ngClass",De(15,ft,e.customClass||"")),c(),A("active",e.active)("disabled",e.disabled),P("aria-controls",e.id?e.id:"")("aria-selected",!!e.active)("id",e.id?e.id+"-link":""),c(),d("ngTransclude",e.headingRef),c(),x(e.heading),c(),d("ngIf",e.removable)}}var gt=(()=>{class n{set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}constructor(e){this.viewRef=e}static{this.\u0275fac=function(t){return new(t||n)(h(te))}}static{this.\u0275dir=M({type:n,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}})}}return n})(),vt=(()=>{class n{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ct=(()=>{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,Object.assign(this,e)}ngOnDestroy(){this.isDestroyed=!0}addTab(e){this.tabs.push(e),e.active=this.tabs.length===1&&!e.active}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 s=this.getClosestTabIndex(i);this.tabs[s].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 s,a=1;do s=i[(t+a)%i.length],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===37||e.key==="LeftArrow"){let s,a=1,o=t;do o-a<0?(o=i.length-1,s=i[o],a=0):s=i[o-a],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===36||e.key==="Home"){e.preventDefault();let s,a=0;do s=i[a%i.length],a++;while(s.classList.contains("disabled"));s.focus();return}if(e.keyCode===35||e.key==="End"){e.preventDefault();let s,a=1,o=t;do o-a<0?(o=i.length-1,s=i[o],a=0):s=i[o-a],a++;while(s.classList.contains("disabled"));s.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 s=e-i,a=e+i;if(this.tabs[s]&&!this.tabs[s].disabled)return s;if(this.tabs[a]&&!this.tabs[a].disabled)return a}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}}static{this.\u0275fac=function(t){return new(t||n)(h(vt),h(D),h(I))}}static{this.\u0275cmp=L({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:ut,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&&(Pe(),p(0,"ul",0),C("click",function(a){return a.preventDefault()}),y(1,_t,5,17,"li",1),m(),p(2,"div",2),Fe(3),m()),t&2&&(d("ngClass",i.classMap),P("aria-label",i.ariaLabel),c(),d("ngForOf",i.tabs))},dependencies:[Re,ne,gt,se],styles:["[_nghost-%COMP%] .nav-tabs[_ngcontent-%COMP%] .nav-item.disabled[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{cursor:default}"]})}}return n})(),bt=(()=>{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,this.tabset.addTab(this)}ngOnInit(){this.removable=!!this.removable}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}static{this.\u0275fac=function(t){return new(t||n)(h(Ct),h(I),h(D))}}static{this.\u0275dir=M({type:n,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(t,i){t&2&&(P("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",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]})}}return n})(),yi=(()=>{class n{constructor(e,t){t.headingRef=e}static{this.\u0275fac=function(t){return new(t||n)(h(Me),h(bt))}}static{this.\u0275dir=M({type:n,selectors:[["","tabHeading",""]]})}}return n})(),_i=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=ie({type:n})}static{this.\u0275inj=X({imports:[ae]})}}return n})();var vi=(()=>{class n{constructor(e){this.elementRef=e,this.autoFocus=!0,this.autoSelect=!0}ngOnInit(){setTimeout(()=>{this.autoFocus&&this.elementRef.nativeElement.focus(),this.autoSelect&&this.elementRef.nativeElement.select()},0)}static{this.\u0275fac=function(t){return new(t||n)(h(I))}}static{this.\u0275dir=M({type:n,selectors:[["","appAutofocus",""]],inputs:{autoFocus:"autoFocus",autoSelect:"autoSelect"}})}}return n})();var ot=(()=>{class n{constructor(e,t){this.cdRef=e,this.ngZone=t}format(e){return e.from((0,T.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,T.default)(e))):this.createTimer(),this.lastText}ngOnDestroy(){this.removeTimer()}createTimer(){if(this.currentTimer)return;let e=(0,T.default)(this.lastValue),t=this.getSecondsUntilUpdate(e)*1e3;this.currentTimer=this.ngZone.runOutsideAngular(()=>typeof window<"u"?window.setTimeout(()=>{this.lastText=this.formatFn((0,T.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,T.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():T.default.isDayjs(e)?e.valueOf():(0,T.default)(e).valueOf()}getLocale(e){return T.default.isDayjs(e)?e.locale():T.default.locale()}static{this.\u0275fac=function(t){return new(t||n)(h(W,16),h(ee,16))}}static{this.\u0275pipe=R({name:"amTimeAgo",type:n,pure:!1})}}return n})();var xt=["ulElement"],St=["liElements"],Ot=(n,r,e,t)=>({matches:n,itemTemplate:r,query:e,$implicit:t}),Et=(n,r,e,t)=>({item:n,index:r,match:e,query:t});function wt(n,r){}function It(n,r){if(n&1&&g(0,"span",4),n&2){let e=r.match,t=r.query,i=l();d("innerHtml",i.highlight(e,t),B)}}function Mt(n,r){if(n&1&&(p(0,"h6",8),b(1),m()),n&2){let e=l().$implicit;c(),x(e)}}function At(n,r){}function kt(n,r){if(n&1){let e=E();p(0,"button",9,2),C("click",function(i){u(e);let s=l().$implicit,a=l(2);return f(a.selectMatch(s,i))})("mouseenter",function(){u(e);let i=l().$implicit,s=l(2);return f(s.selectActive(i))}),y(2,At,0,0,"ng-template",3),m()}if(n&2){let e=l(),t=e.$implicit,i=e.index,s=l(2),a=U(2);A("active",s.isActive(t)),d("id",s.popupId+"-"+i)("@typeaheadAnimation",s.animationState),c(2),d("ngTemplateOutlet",s.itemTemplate||a)("ngTemplateOutletContext",ve(6,Et,t.item,i,t,s.query))}}function Pt(n,r){if(n&1&&y(0,Mt,2,1,"h6",6)(1,kt,3,11,"ng-template",7),n&2){let e=r.$implicit;d("ngIf",e.isHeader()),c(),d("ngIf",!e.isHeader())}}function Ft(n,r){if(n&1&&y(0,Pt,2,2,"ng-template",5),n&2){let e=l();d("ngForOf",e.matches)}}var Dt={\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(r,e=r,t=!1){this.item=r,this.value=e,this.header=t}isHeader(){return this.header}toString(){return this.value}};function Q(n){return n?n.replace(/[^A-Za-z0-9[\] ]/g,function(r){return Dt[r]||r}):""}function Te(n,r=" ",e="",t){let i=[];if(!t)i=lt(n,r,e);else{let s=`([${t}]+)`,a=n.split(new RegExp(s,"g")),o=a[a.length-1];o>""&&(r&&e?i=lt(o,r,e):i.push(o))}return i}function lt(n,r,e){let t=[],i=`(?:[${e}])([^${e}]+)(?:[${e}])|([^${r}]+)`,s=n.split(new RegExp(i,"g")),a=s.length,o,_=new RegExp(`[${e}]+`,"g");for(let S=0;S<a;S+=1)o=s[S],o&&o.length&&o!==r&&t.push(o.replace(_,""));return t}function F(n,r){if(!r||typeof n!="object")return n.toString();if(r.endsWith("()")){let i=r.slice(0,r.length-2);return n[i]().toString()}let t=r.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let i of t)i in n&&(n=n[i]);return n?n.toString():""}var ct="220ms cubic-bezier(0, 0, 0.2, 1)",Lt=Ge("typeaheadAnimation",[be("animated-down",G({height:"*",overflow:"hidden"})),oe("* => animated-down",[G({height:0,overflow:"hidden"}),re(ct)]),be("animated-up",G({height:"*",overflow:"hidden"})),oe("* => animated-up",[G({height:"*",overflow:"hidden"}),re(ct)]),oe("* => unanimated",re("0s"))]),Rt=0,Ut=(()=>{class n{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,s){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=s,this.activeChangeEvent=new v,this.isFocused=!1,this.positionServiceSubscription=new xe,this.height=0,this.popupId=`ngb-typeahead-${Rt++}`,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,s=(this.parent&&this.parent.typeaheadLatinize?Q(i):i).toLowerCase(),a,o;if(typeof t=="object"){let _=t.length;for(let S=0;S<_;S+=1)a=s.indexOf(t[S]),o=t[S].length,a>=0&&o>0&&(i=`${i.substring(0,a)}<strong>${i.substring(a,a+o)}</strong>${i.substring(a+o)}`,s=`${s.substring(0,a)}????????${"??".repeat(o)}??????????${s.substring(a+o)}`)}else t&&(a=s.indexOf(t),o=t.length,a>=0&&o>0&&(i=`${i.substring(0,a)}<strong>${i.substring(a,a+o)}</strong>${i.substring(a+o)}`));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=Ce.getStyles(this.ulElement.nativeElement),t=Ce.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),s=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),a=parseFloat((t.height?t.height:"0").replace("px","")),o=this.typeaheadOptionsInScrollableView*a;this.guiHeight=`${o+s+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),s=e.offsetTop;return s+e.offsetHeight<=i&&s>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}static{this.\u0275fac=function(t){return new(t||n)(h(K),h(D),h(I),h(W))}}static{this.\u0275cmp=L({type:n,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(N(xt,5),N(St,5)),t&2){let s;j(s=z())&&(i.ulElement=s.first),j(s=z())&&(i.liElements=s)}},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&&(P("role","listbox"),Ae("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),A("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[ge([K])],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&&y(0,wt,0,0,"ng-template",3)(1,It,1,1,"ng-template",null,0,$)(3,Ft,1,1,"ng-template",null,1,$),t&2){let s=U(2),a=U(4);d("ngTemplateOutlet",i.optionsListTemplate||a)("ngTemplateOutletContext",ve(2,Ot,i.matches,i.itemTemplate||s,i.query,i.typeaheadTemplateMethods))}},dependencies:[Ue,ne,se],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Lt]}})}}return n})(),ht=(()=>{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}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),dt=(()=>{class n{constructor(e,t,i,s,a,o,_){this.changeDetection=i,this.element=s,this.ngControl=a,this.renderer=o,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(s,_,o).provide({provide:ht,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&&!Z(this.typeahead)&&(this.typeaheadAsync=!1),Z(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(Ut).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?Q(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(he(this.typeaheadWaitMs),q(e=>this._allEnteredValue=e),Ie(()=>this.typeahead?this.typeahead:ce)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(he(this.typeaheadWaitMs),Y(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(Z(this.typeahead)?this.typeahead:Oe(this.typeahead)).pipe(Ee(s=>!!s&&this.testMatch(this.normalizeOption(s),t)),we()):ce})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=F(e,this.typeaheadOptionField);return(this.typeaheadLatinize?Q(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=Te(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=Te(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=Te(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?Q(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let s=0;s<i;s+=1)if(t[s].length>0&&e.indexOf(t[s])<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?Q(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 s=[];i.map(o=>F(o,this.typeaheadGroupField)).filter((o,_,S)=>S.indexOf(o)===_).forEach(o=>{s.push(new H(o,o,!0)),s=s.concat(i.filter(_=>F(_,this.typeaheadGroupField)===o).map(_=>new H(_,F(_,this.typeaheadOptionField))))}),this._matches=s}else this._matches=i.map(s=>new H(s,F(s,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((s,a)=>{let o=F(s,t),_=F(a,t);return o<_?i==="asc"?-1:1:o>_?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}static{this.\u0275fac=function(t){return new(t||n)(h(le),h(ht),h(W),h(I),h(Be),h(D),h(te))}}static{this.\u0275dir=M({type:n,selectors:[["","typeahead",""]],hostVars:4,hostBindings:function(t,i){t&1&&C("input",function(a){return i.onInput(a)})("keyup",function(a){return i.onChange(a)})("click",function(){return i.onFocus()})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("keydown",function(a){return i.onKeydown(a)}),t&2&&P("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:[ge([le,K])]})}}return n})(),pt=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=ie({type:n})}static{this.\u0275inj=X({imports:[ae]})}}return n})();var mt=(()=>{class n{transform(e,t,i=!1){if(i&&t.length<1)return e;if(t&&e){let s=t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");s=s.split(" ").filter(o=>o.length>0).join("|");let a=new RegExp(s,"gi");return e.replace(a,o=>`<b>${o}</b>`)}else return e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=R({name:"highlight",type:n,pure:!0})}}return n})();var Ht=["InputTypeHead"],Bt=(n,r)=>r.mid,Nt=(n,r)=>r.key;function jt(n,r){if(n&1&&g(0,"img",7),n&2){let e=l().item;d("src",e.avatarUrl,de)}}function zt(n,r){if(n&1&&g(0,"fa-icon",13),n&2){let e=l().item,t=l();pe(e.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),d("icon",t.icons.GROUPS)}}function $t(n,r){if(n&1&&(g(0,"span",10),w(1,"highlight")),n&2){let e=l().item,t=l();d("innerHTML",k(1,1,e.description,t.selection),B)}}function Wt(n,r){if(n&1&&(p(0,"div",5)(1,"div",6),y(2,jt,1,1,"img",7)(3,zt,1,4,"fa-icon",8),m(),p(4,"div"),g(5,"div",9),w(6,"highlight"),y(7,$t,2,4,"span",10),m(),p(8,"div",11)(9,"span",12),b(10),m()()()),n&2){let e=r.item,t=l();c(2),O(e.isUser?2:3),c(2),ke("d-flex ms-2 pe-5 ",e.description?"flex-column align-items-start":"align-items-center",""),c(),d("innerHTML",k(6,7,e.name,t.selection),B),c(2),O(e.description?7:-1),c(3),x(e.type)}}function Kt(n,r){if(n&1){let e=E();p(0,"input",14,1),w(2,"translate"),C("typeaheadOnSelect",function(i){u(e);let s=l();return f(s.onSelect(i))})("typeaheadLoading",function(){u(e);let i=l();return f(i.onLoading())})("typeaheadNoResults",function(){u(e);let i=l();return f(i.onNoResults())})("typeaheadOnPreview",function(){u(e);let i=l();return f(i.onPreview())}),_e("ngModelChange",function(i){u(e);let s=l();return ye(s.selection,i)||(s.selection=i),f(i)}),m()}if(n&2){let e=l(),t=U(1);fe("ngModel",e.selection),d("placeholder",k(2,10,e.placeHolder,e.locale.language))("typeaheadItemTemplate",t)("typeaheadAsync",!0)("typeaheadMinLength",0)("typeaheadSingleWords",!0)("typeaheadOptionField","name")("typeaheadWaitMs",100)("typeaheadHideResultsOnBlur",!0)("typeahead",e.asyncSearchUsersOrGroups)}}function Gt(n,r){if(n&1&&g(0,"img",7),n&2){let e=l().$implicit;d("src",e.avatarUrl,de)}}function Qt(n,r){if(n&1&&g(0,"fa-icon",17),n&2){let e=l(2);d("icon",e.icons.LINKS)}}function Zt(n,r){if(n&1&&g(0,"fa-icon",13),n&2){let e=l().$implicit,t=l();pe(e.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),d("icon",t.icons.GROUPS)}}function Yt(n,r){if(n&1&&(p(0,"span",21),b(1),m()),n&2){let e=l().$implicit;c(),x(e.description)}}function qt(n,r){if(n&1&&(p(0,"span",22),b(1),m()),n&2){let e=l().$implicit;c(),x(e.type)}}function Jt(n,r){if(n&1){let e=E();p(0,"button",32),w(1,"translate"),_e("ngModelChange",function(i){u(e);let s=l().$implicit,a=l(3).$implicit;return ye(a.hPerms[s.key],i)||(a.hPerms[s.key]=i),f(i)}),C("ngModelChange",function(){u(e);let i=l(4).$implicit,s=l();return f(s.onPermissionChange(i))}),g(2,"fa-icon",33),m()}if(n&2){let e=l().$implicit,t=l(3).$implicit,i=l();fe("ngModel",t.hPerms[e.key]),d("tooltip",k(1,3,i.SPACES_PERMISSIONS_TEXT[e.key].text,i.locale.language)),c(2),d("icon",i.SPACES_PERMISSIONS_TEXT[e.key].icon)}}function Xt(n,r){if(n&1&&y(0,Jt,3,6,"button",31),n&2){let e=r.$implicit,t=l(4);O(!t.filterPermissions||(t.filterPermissions&&t.allowedPermissions.indexOf(e.key))>-1?0:-1)}}function ei(n,r){if(n&1&&(me(0,Xt,1,1,null,null,Nt),w(2,"keyvalue"),g(3,"div",30)),n&2){let e=l(2).$implicit,t=l();ue(k(2,0,e.hPerms,t.originalOrderKeyValue))}}function ti(n,r){if(n&1){let e=E();p(0,"button",34),w(1,"translate"),C("click",function(){u(e);let i=l(2).$implicit,s=l();return f(s.editFunction(i))}),g(2,"fa-icon",13),m()}if(n&2){let e=l(3);d("tooltip",k(1,2,"Edit",e.locale.language)),c(2),d("icon",e.icons.faPen)}}function ii(n,r){if(n&1){let e=E();p(0,"div",26),g(1,"div",27),y(2,ei,4,3)(3,ti,3,5,"button",28),p(4,"button",29),w(5,"translate"),C("click",function(){u(e);let i=l().$implicit,s=l();return f(s.removeMember(i))}),g(6,"fa-icon",13),m()()}if(n&2){let e=l(2);c(2),O(e.withPermissions?2:-1),c(),O(e.editFunction?3:-1),c(),d("tooltip",k(5,4,"Remove",e.locale.language)),c(2),d("icon",e.icons.faTimes)}}function ni(n,r){if(n&1&&(p(0,"div",4)(1,"div",15)(2,"div",16),y(3,Gt,1,1,"img",7)(4,Qt,1,1,"fa-icon",17)(5,Zt,1,4,"fa-icon",8),p(6,"div",18)(7,"div",19),b(8),m(),p(9,"div",20),y(10,Yt,2,1,"span",21)(11,qt,2,1,"span",22),m()()(),p(12,"div",23)(13,"div",24),b(14),m(),p(15,"div",25),b(16),w(17,"amTimeAgo"),m()(),y(18,ii,7,7,"div",26),m()()),n&2){let e=r.$implicit,t=l();c(3),O(e.isUser?3:e.isLink?4:5),c(5),x(e.name),c(2),O(e.description?10:e.linkId?-1:11),c(4),x(e.isLink?t.MEMBER_TYPE.LINK:e.type),c(2),x(Le(17,6,e.createdAt)),c(2),O(t.editMode?18:-1)}}var fn=(()=>{class n{constructor(e,t){this.locale=e,this.ngZone=t,this.members=[],this.membersChange=new v,this.withPermissions=!1,this.filterPermissions=!1,this.allowedPermissions=[],this.editMode=!0,this.hideInput=!1,this.editFunction=null,this.MEMBER_TYPE=tt,this.originalOrderKeyValue=it,this.SPACES_PERMISSIONS_TEXT=et,this.icons={GROUPS:st.GROUPS,LINKS:Xe.LINKS,faTimes:Je,faPen:qe},this.defaultPlaceholder="Type to search for users or groups to add",this.lastResults=[],this.placeHolder=this.defaultPlaceholder,this.selection="",this.asyncSearchUsersOrGroups=new Se(i=>i.next(this.selection)).pipe(Y(i=>this.searchFunction(i||"").pipe(q(s=>this.lastResults=s))))}ngOnInit(){this.setDefaultPlaceHolder()}setDefaultPlaceHolder(){this.placeHolder=this.customPlaceholder||this.defaultPlaceholder}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=nt(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()}static{this.\u0275fac=function(t){return new(t||n)(h($e),h(ee))}}static{this.\u0275cmp=L({type:n,selectors:[["app-user-search"]],viewQuery:function(t,i){if(t&1&&N(Ht,5),t&2){let s;j(s=z())&&(i.inputTypeHead=s.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&&(y(0,Wt,11,10,"ng-template",null,0,$)(2,Kt,3,13,"input",2),p(3,"div",3),me(4,ni,19,8,"div",4,Bt),m()),t&2&&(c(2),O(i.hideInput?-1:2),c(2),ue(i.members))},dependencies:[We,ot,pt,dt,ze,He,Ne,je,mt,Ye,Ke,rt,at,Ve,Ze,Qe],encapsulation:2})}}return n})();export{ai as a,Ct as b,bt as c,yi as d,_i as e,vi as f,mt as g,ot as h,fn as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-JXZCNFW7.js";import{Za as b,_a as D,v as I,w as L}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-JXZCNFW7.js";import{Za as b,_a as D,v as I,w as L}from"./chunk-HDDBV3QQ.js";import{Ad as P,Bd as w,Eb as q,Qb as T,Sa as p,Ub as C,Vb as v,Wb as x,Xa as m,Yc as W,ab as d,ad as y,bc as _,dc as M,fd as Q,lb as h,mb as g,nb as c,pb as f,sd as S,ud as B,vb as n,wa as s,wb as r}from"./chunk-FPEGN42P.js";var J=(()=>{class o{constructor(t){this.locale=t,this.quotaChange=new s,this.maxWidthPercent=75,this.fullWidth=!1,this.invalid=!1}ngOnInit(){this.fullWidth&&(this.maxWidthPercent=100),this.quota!==null&&(this.quotaText=this.quota===0?"0":D(this.quota))}onQuotaBlur(){if(this.quotaText){if(this.quotaText==="0"){this.quotaChange.emit(0);return}let t=l.exec(this.quotaText);if(t){this.quotaText=`${t[1]} ${t[2].toUpperCase()}`,this.quotaChange.emit(b(parseInt(t[1]),t[2]));return}}this.quotaChange.emit(null)}validateQuota(){this.invalid=this.quotaText&&this.quotaText!=="0"&&!l.test(this.quotaText)}static{this.\u0275fac=function(i){return new(i||o)(m(B))}}static{this.\u0275cmp=d({type:o,selectors:[["app-storage-quota"]],inputs:{quota:"quota",maxWidthPercent:"maxWidthPercent",fullWidth:"fullWidth"},outputs:{quotaChange:"quotaChange"},decls:5,vars:12,consts:[["for","storageQuota","l10nTranslate",""],["id","storageQuota"],["id","quota","placement","top","tooltip",'"512 MB" "12 GB" "2 TB" ...',"triggers","focus","type","text",3,"ngModelChange","blur","ngModel","placeholder"]],template:function(i,e){i&1&&(n(0,"label",0),T(1,"Storage Quota"),r(),n(2,"div",1)(3,"input",2),_(4,"translate"),x("ngModelChange",function(a){return v(e.quotaText,a)||(e.quotaText=a),a}),q("ngModelChange",function(){return e.validateQuota()})("blur",function(){return e.onQuotaBlur()}),r()()),i&2&&(p(3),f("form-control form-control-sm ",e.invalid?"is-invalid":"",""),g("max-width",e.maxWidthPercent,"%"),c("w-100",e.fullWidth),C("ngModel",e.quotaText),h("placeholder",M(4,9,"Unlimited",e.locale.language)))},dependencies:[P,L,I,S,W,y,Q,w],encapsulation:2})}}return o})();export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Te}from"./chunk-ZVPX26RB.js";import{a as D}from"./chunk-IFJD2ISM.js";import"./chunk-I644MKAO.js";import{a as B,b as R,c as ge,d as ke}from"./chunk-Z6IHRUVL.js";import{a as ye,b as be,c as we,e as ve}from"./chunk-MEKYVWV4.js";import"./chunk-QFRQQ4K3.js";import"./chunk-UV4UIX6J.js";import"./chunk-ATLT5DK5.js";import"./chunk-RAVRSB6R.js";import{Cb as ue,Da as pe,Db as Ce,Eb as fe,Fa as _e,Qb as xe,Sb as he,Ua as me,gb as de,v as G,w as Y}from"./chunk-NU3TPXFY.js";import"./chunk-ZZ3LHYOY.js";import{b as j}from"./chunk-UGSGMP2I.js";import{$e as oe,Ad as q,Bb as y,Bd as K,Dd as J,Eb as C,Ec as z,Fb as r,He as ee,L as N,Ma as P,Mb as L,Me as te,Nb as S,Ob as V,Oe as ie,Qb as u,Rb as v,Sa as o,Sb as I,Tb as $,Ve as ne,Xa as w,Xd as X,ab as O,bc as g,dc as k,fb as f,kb as Q,lb as p,mb as T,mf as re,nb as F,ob as U,of as ae,pa as _,pb as A,pe as Z,pf as le,qa as m,qb as W,qf as se,rb as h,tb as M,ub as E,ud as H,vb as l,wb as c,wf as ce,xb as x}from"./chunk-FPEGN42P.js";import"./chunk-GAL4ENT6.js";var Fe=["MainContextMenu"],Me=["TargetContextMenu"],Le=(t,s)=>s.id,Se=(t,s)=>s.key;function Ee(t,s){if(t&1&&(l(0,"span",30),u(1),c()),t&2){let e=r().$implicit,n=r(2);T("font-size",n.galleryMode.textSize,"px"),o(),I(" ",e.hTimeAccessAgo," ")}}function Ae(t,s){if(t&1){let e=y();l(0,"div",21),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),l(1,"div",22)(2,"img",23),C("error",function(){let i=_(e).$implicit;return m(i.fallBackMimeUrl())}),c(),l(3,"span",24),f(4,Ee,2,3,"span",25),c(),l(5,"span",26),x(6,"app-share-repository",27),c()(),l(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=s.$implicit,n=s.$index,i=r(2);T("height",i.galleryMode.dimensions,"px")("width",i.galleryMode.dimensions,"px"),F("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),o(),Q("rowIndex",n),o(),p("src",e.mimeUrl,P)("height",i.galleryMode.image)("width",i.galleryMode.image),o(2),h(e.newly?4:-1),o(2),p("share",e)("galleryMode",i.galleryMode),o(2),T("font-size",i.galleryMode.textSize,"px"),o(),v(e.name)}}function Ie(t,s){if(t&1){let e=y();l(0,"div",13)(1,"app-virtual-scroll",18),g(2,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(3,"div",19),M(4,Ae,10,18,"div",20,Le),c()()()}if(t&2){let e=r();o(),p("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",k(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),o(3),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function $e(t,s){if(t&1&&x(0,"fa-icon",37),t&2){let e=r(4);p("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Pe(t,s){if(t&1){let e=y();l(0,"th",36),C("click",function(){_(e);let i=r().$implicit,a=r(2);return m(a.sortBy(i.key))}),u(1),f(2,$e,1,2,"fa-icon",37),c()}if(t&2){let e=r().$implicit,n=r(2);U(e.value.class),T("width",e.value.width,"%"),F("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),o(),I(" ",e.value.label," "),o(),h(n.sortTable.sortParam.column===e.key?2:-1)}}function Be(t,s){if(t&1&&f(0,Pe,3,11,"th",35),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function Re(t,s){if(t&1){let e=y();l(0,"div",40)(1,"img",43),C("error",function(){_(e);let i=r(3).$implicit;return m(i.fallBackMimeUrl())}),c(),l(2,"div",44)(3,"span",29),u(4),c(),l(5,"span",45),u(6),c()()()}if(t&2){let e=r(3).$implicit;o(),p("src",e.mimeUrl,P),o(3),v(e.name),o(2),v(e.description)}}function De(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.email||"")}}function Ne(t,s){if(t&1&&(l(0,"span",41)(1,"span"),u(2),c(),f(3,De,2,1,"span"),c()),t&2){let e=r(3).$implicit;o(2),v(e.link.name),o(),h(e.link.email?3:-1)}}function Oe(t,s){if(t&1&&x(0,"app-share-repository",42),t&2){let e=r(3).$implicit;p("share",e)}}function Qe(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;A("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success",""),o(),$(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function Ue(t,s){if(t&1&&(l(0,"span",47),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.nbAccess)}}function We(t,s){if(t&1&&(l(0,"span",49),u(1),g(2,"translate"),c()),t&2){let e=r(5).$implicit,n=r(2);o(),$("",e.hTimeExpirationAgo,"\xA0",k(2,2,e.hTimeExpirationAgo===1?"day":"days",n.locale.language),"")}}function ze(t,s){if(t&1&&(l(0,"span"),x(1,"fa-icon",37),f(2,We,3,5,"span",49),c()),t&2){let e=r(4).$implicit,n=r(2);A("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1"),o(),p("icon",n.icons.faClock)("fixedWidth",!1),o(),h(e.hTimeExpirationAgo>=1?2:-1)}}function je(t,s){if(t&1&&(l(0,"span",48),x(1,"fa-icon",6),c()),t&2){let e=r(6);o(),p("icon",e.icons.faLock)}}function He(t,s){if(t&1&&f(0,Qe,2,5,"span",46)(1,Ue,2,1,"span",47)(2,ze,3,6,"span",46)(3,je,2,1,"span",48),t&2){let e=r(3).$implicit;h(e.link.limitAccess?0:1),o(2),h(e.link.expiresAt?2:-1),o(),h(e.link.requireAuth?3:-1)}}function qe(t,s){if(t&1&&x(0,"app-file-permissions",50),t&2){let e=r(4).$implicit;p("permissions",e.hPerms)}}function Ke(t,s){if(t&1&&f(0,qe,1,1,"app-file-permissions",50),t&2){let e=r(3).$implicit;h(e.link.permissions?0:-1)}}function Ge(t,s){if(t&1&&u(0),t&2){let e=r(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Ye(t,s){t&1&&(l(0,"span",51),u(1,"never"),c())}function Je(t,s){if(t&1&&f(0,Ge,1,1)(1,Ye,2,0,"span",51),t&2){let e=r(3).$implicit;h(e.link.currentAccess?0:1)}}function Xe(t,s){if(t&1&&(l(0,"td"),f(1,Re,7,3,"div",40)(2,Ne,4,2,"span",41)(3,Oe,1,1,"app-share-repository",42)(4,He,4,3)(5,Ke,1,1)(6,Je,2,1),c()),t&2){let e,n=r().$implicit,i=r().$implicit;W("",n.value.class," ",n.value.newly!==void 0?"props-newly-"+i[n.value.newly]:"",""),T("width",n.value.width,"%"),F("text-align-center",n.value.textCenter),o(),h((e=n.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function Ze(t,s){if(t&1&&f(0,Xe,7,9,"td",39),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function et(t,s){if(t&1){let e=y();l(0,"tr",38),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),M(1,Ze,1,1,null,null,Se),g(3,"keyvalue"),c()}if(t&2){let e=s.$implicit,n=r(2);F("selected",e.id===(n.selected==null?null:n.selected.id))("disabled",!e.link.isActive),o(),E(k(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function tt(t,s){if(t&1){let e=y();l(0,"table",31)(1,"thead")(2,"tr"),M(3,Be,1,1,null,null,Se),g(5,"keyvalue"),c()()(),l(6,"app-virtual-scroll",32),g(7,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(8,"table",31)(9,"tbody",33),M(10,et,4,7,"tr",34,Le),c()()()}if(t&2){let e=r();o(3),E(k(5,2,e.tableHeaders,e.originalOrderKeyValue)),o(3),p("bufferAmount",5)("items",k(7,5,e.shares,e.inputFilter.search())),o(4),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function it(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=r();o(),p("icon",e.icons.faArrowRotateRight)}}function nt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=r();o(),p("icon",e.icons.faMapMarkerAlt)}}function ot(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=r();o(),p("icon",e.icons.faPen)}}function rt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=r();o(),p("icon",e.icons.faClipboard)}}function at(t,s){}function lt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=r();o(),p("icon",e.icons.faCircleInfo)}}var $t=(()=>{class t{constructor(e,n,i,a,d,b){this.locale=e,this.activatedRoute=n,this.store=i,this.layout=a,this.linksService=d,this.sharesService=b,this.icons={faLink:se,faArrowRotateRight:ie,faArrowDown:le,faArrowUp:ce,faMapMarkerAlt:ae,faPen:te,faEllipsisH:re,faClock:oe,faLock:X,faClipboard:Z,faClipboardCheck:ee,faCircleInfo:ne},this.originalOrderKeyValue=de,this.TAB_MENU=me,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new ke(this.constructor.name,this.sortSettings),this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(Ve=>this.focusOnSelect=Ve.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${_e.LINKS}/${pe.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:e=>{this.sortBy(this.sortTable.sortParam.column,!1,e),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:e=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",e.error.message)}})}sortBy(e,n=!0,i){this.shares=this.sortTable.sortBy(e,n,i||this.shares)}onSelect(e=null){this.selected=e,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(e=>{this.layout.openDialog(we,"md",{initialState:{share:e}}).content.shareChange.pipe(N(1)).subscribe(i=>{let[a,d]=i;a==="update"?this.selected=Object.assign(this.selected,d):a==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(b=>b.id!==d.id)))})})}onContextMenu(e){e.preventDefault(),e.stopPropagation(),this.layout.openContextMenu(e,this.mainContextMenu)}onTargetContextMenu(e,n){e.preventDefault(),e.type==="contextmenu"&&e.stopPropagation(),this.onSelect(n),this.layout.openContextMenu(e,this.targetContextMenu)}focusOn(e){let n=this.shares.find(i=>i.name===e);n&&(setTimeout(()=>this.scrollView.scrollInto(n),100),this.onSelect(n))}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(e){e=e||this.selected,this.sharesService.goTo(e)}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(j),w(xe),w(he),w(ve),w(be))}}static{this.\u0275cmp=O({type:t,selectors:[["app-shared-links"]],viewQuery:function(n,i){if(n&1&&(L(R,5),L(B,7),L(D,7),L(Fe,7),L(Me,7)),n&2){let a;S(a=V())&&(i.scrollView=a.first),S(a=V())&&(i.inputFilter=a.first),S(a=V())&&(i.btnNavigationView=a.first),S(a=V())&&(i.mainContextMenu=a.first),S(a=V())&&(i.targetContextMenu=a.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","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"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["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"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(n,i){if(n&1){let a=y();l(0,"div",2)(1,"button",3),g(2,"translate"),C("click",function(){return _(a),m(i.loadShareLinks())}),x(3,"fa-icon",4),c(),l(4,"button",5),g(5,"translate"),C("click",function(){return _(a),m(i.openLinkDialog())}),x(6,"fa-icon",6),c(),l(7,"button",7),g(8,"translate"),C("click",function(){return _(a),m(i.copyToClipboard())}),x(9,"fa-icon",6),c(),l(10,"button",8),g(11,"translate"),C("click",function(){return _(a),m(i.goTo())}),x(12,"fa-icon",6),c(),l(13,"div",9)(14,"div",10),x(15,"app-input-filter",11),c(),l(16,"app-navigation-view",12),C("sortBy",function(b){return _(a),m(i.sortBy(b))})("switchView",function(b){return _(a),m(i.galleryMode=b)}),c()()(),f(17,Ie,6,8,"div",13)(18,tt,12,8),l(19,"div",14)(20,"span",15),u(21),g(22,"translate"),c()(),l(23,"context-menu",null,0),f(25,it,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.loadShareLinks())}),c(),l(26,"context-menu",null,1),f(28,nt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.goTo())}),f(29,ot,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.openLinkDialog())}),f(30,rt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.copyToClipboard())}),f(31,at,0,0,"ng-template",17)(32,lt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),c()}n&2&&(o(),p("tooltip",k(2,21,"Refresh",i.locale.language)),o(2),p("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),o(),p("disabled",!i.selected)("tooltip",k(5,24,"Edit link",i.locale.language)),o(2),p("icon",i.icons.faPen),o(),A("btn btn-sm me-1 ",i.linkWasCopied?"btn-info":"btn-secondary",""),p("disabled",!i.selected)("tooltip",k(8,27,"Copy link",i.locale.language)),o(2),p("icon",i.linkWasCopied?i.icons.faClipboardCheck:i.icons.faClipboard),o(),p("disabled",!i.selected)("tooltip",k(11,30,"Go to",i.locale.language)),o(2),p("icon",i.icons.faMapMarkerAlt),o(4),p("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),o(),h(i.galleryMode!=null&&i.galleryMode.enabled?17:18),o(4),$("",i.shares.length," ",k(22,33,"shares",i.locale.language),""),o(10),p("divider",!0))},dependencies:[fe,Ce,ue,J,z,K,q,D,Y,G,B,R,ge,ye,Te],encapsulation:2})}}return t})();export{$t as LinksComponent};
|
|
1
|
+
import{a as Te}from"./chunk-3RLZPQMJ.js";import{a as D}from"./chunk-AA6ZTGRW.js";import"./chunk-HQC3W7BS.js";import{a as B,b as R,c as ge,d as ke}from"./chunk-WA3LPP4G.js";import{a as ye,b as be,c as we,e as ve}from"./chunk-WQPVP63E.js";import"./chunk-2SX3MVH3.js";import"./chunk-2CQOSX2Q.js";import"./chunk-Y6IYSEKU.js";import"./chunk-ZZGFGD5E.js";import{Cb as ue,Da as pe,Db as Ce,Eb as fe,Fa as _e,Qb as xe,Sb as he,Ua as me,gb as de,v as G,w as Y}from"./chunk-HDDBV3QQ.js";import"./chunk-ZZ3LHYOY.js";import{b as j}from"./chunk-UGSGMP2I.js";import{$e as oe,Ad as q,Bb as y,Bd as K,Dd as J,Eb as C,Ec as z,Fb as r,He as ee,L as N,Ma as P,Mb as L,Me as te,Nb as S,Ob as V,Oe as ie,Qb as u,Rb as v,Sa as o,Sb as I,Tb as $,Ve as ne,Xa as w,Xd as X,ab as O,bc as g,dc as k,fb as f,kb as Q,lb as p,mb as T,mf as re,nb as F,ob as U,of as ae,pa as _,pb as A,pe as Z,pf as le,qa as m,qb as W,qf as se,rb as h,tb as M,ub as E,ud as H,vb as l,wb as c,wf as ce,xb as x}from"./chunk-FPEGN42P.js";import"./chunk-GAL4ENT6.js";var Fe=["MainContextMenu"],Me=["TargetContextMenu"],Le=(t,s)=>s.id,Se=(t,s)=>s.key;function Ee(t,s){if(t&1&&(l(0,"span",30),u(1),c()),t&2){let e=r().$implicit,n=r(2);T("font-size",n.galleryMode.textSize,"px"),o(),I(" ",e.hTimeAccessAgo," ")}}function Ae(t,s){if(t&1){let e=y();l(0,"div",21),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),l(1,"div",22)(2,"img",23),C("error",function(){let i=_(e).$implicit;return m(i.fallBackMimeUrl())}),c(),l(3,"span",24),f(4,Ee,2,3,"span",25),c(),l(5,"span",26),x(6,"app-share-repository",27),c()(),l(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=s.$implicit,n=s.$index,i=r(2);T("height",i.galleryMode.dimensions,"px")("width",i.galleryMode.dimensions,"px"),F("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),o(),Q("rowIndex",n),o(),p("src",e.mimeUrl,P)("height",i.galleryMode.image)("width",i.galleryMode.image),o(2),h(e.newly?4:-1),o(2),p("share",e)("galleryMode",i.galleryMode),o(2),T("font-size",i.galleryMode.textSize,"px"),o(),v(e.name)}}function Ie(t,s){if(t&1){let e=y();l(0,"div",13)(1,"app-virtual-scroll",18),g(2,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(3,"div",19),M(4,Ae,10,18,"div",20,Le),c()()()}if(t&2){let e=r();o(),p("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",k(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),o(3),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function $e(t,s){if(t&1&&x(0,"fa-icon",37),t&2){let e=r(4);p("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Pe(t,s){if(t&1){let e=y();l(0,"th",36),C("click",function(){_(e);let i=r().$implicit,a=r(2);return m(a.sortBy(i.key))}),u(1),f(2,$e,1,2,"fa-icon",37),c()}if(t&2){let e=r().$implicit,n=r(2);U(e.value.class),T("width",e.value.width,"%"),F("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),o(),I(" ",e.value.label," "),o(),h(n.sortTable.sortParam.column===e.key?2:-1)}}function Be(t,s){if(t&1&&f(0,Pe,3,11,"th",35),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function Re(t,s){if(t&1){let e=y();l(0,"div",40)(1,"img",43),C("error",function(){_(e);let i=r(3).$implicit;return m(i.fallBackMimeUrl())}),c(),l(2,"div",44)(3,"span",29),u(4),c(),l(5,"span",45),u(6),c()()()}if(t&2){let e=r(3).$implicit;o(),p("src",e.mimeUrl,P),o(3),v(e.name),o(2),v(e.description)}}function De(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.email||"")}}function Ne(t,s){if(t&1&&(l(0,"span",41)(1,"span"),u(2),c(),f(3,De,2,1,"span"),c()),t&2){let e=r(3).$implicit;o(2),v(e.link.name),o(),h(e.link.email?3:-1)}}function Oe(t,s){if(t&1&&x(0,"app-share-repository",42),t&2){let e=r(3).$implicit;p("share",e)}}function Qe(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;A("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success",""),o(),$(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function Ue(t,s){if(t&1&&(l(0,"span",47),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.nbAccess)}}function We(t,s){if(t&1&&(l(0,"span",49),u(1),g(2,"translate"),c()),t&2){let e=r(5).$implicit,n=r(2);o(),$("",e.hTimeExpirationAgo,"\xA0",k(2,2,e.hTimeExpirationAgo===1?"day":"days",n.locale.language),"")}}function ze(t,s){if(t&1&&(l(0,"span"),x(1,"fa-icon",37),f(2,We,3,5,"span",49),c()),t&2){let e=r(4).$implicit,n=r(2);A("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1"),o(),p("icon",n.icons.faClock)("fixedWidth",!1),o(),h(e.hTimeExpirationAgo>=1?2:-1)}}function je(t,s){if(t&1&&(l(0,"span",48),x(1,"fa-icon",6),c()),t&2){let e=r(6);o(),p("icon",e.icons.faLock)}}function He(t,s){if(t&1&&f(0,Qe,2,5,"span",46)(1,Ue,2,1,"span",47)(2,ze,3,6,"span",46)(3,je,2,1,"span",48),t&2){let e=r(3).$implicit;h(e.link.limitAccess?0:1),o(2),h(e.link.expiresAt?2:-1),o(),h(e.link.requireAuth?3:-1)}}function qe(t,s){if(t&1&&x(0,"app-file-permissions",50),t&2){let e=r(4).$implicit;p("permissions",e.hPerms)}}function Ke(t,s){if(t&1&&f(0,qe,1,1,"app-file-permissions",50),t&2){let e=r(3).$implicit;h(e.link.permissions?0:-1)}}function Ge(t,s){if(t&1&&u(0),t&2){let e=r(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Ye(t,s){t&1&&(l(0,"span",51),u(1,"never"),c())}function Je(t,s){if(t&1&&f(0,Ge,1,1)(1,Ye,2,0,"span",51),t&2){let e=r(3).$implicit;h(e.link.currentAccess?0:1)}}function Xe(t,s){if(t&1&&(l(0,"td"),f(1,Re,7,3,"div",40)(2,Ne,4,2,"span",41)(3,Oe,1,1,"app-share-repository",42)(4,He,4,3)(5,Ke,1,1)(6,Je,2,1),c()),t&2){let e,n=r().$implicit,i=r().$implicit;W("",n.value.class," ",n.value.newly!==void 0?"props-newly-"+i[n.value.newly]:"",""),T("width",n.value.width,"%"),F("text-align-center",n.value.textCenter),o(),h((e=n.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function Ze(t,s){if(t&1&&f(0,Xe,7,9,"td",39),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function et(t,s){if(t&1){let e=y();l(0,"tr",38),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),M(1,Ze,1,1,null,null,Se),g(3,"keyvalue"),c()}if(t&2){let e=s.$implicit,n=r(2);F("selected",e.id===(n.selected==null?null:n.selected.id))("disabled",!e.link.isActive),o(),E(k(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function tt(t,s){if(t&1){let e=y();l(0,"table",31)(1,"thead")(2,"tr"),M(3,Be,1,1,null,null,Se),g(5,"keyvalue"),c()()(),l(6,"app-virtual-scroll",32),g(7,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(8,"table",31)(9,"tbody",33),M(10,et,4,7,"tr",34,Le),c()()()}if(t&2){let e=r();o(3),E(k(5,2,e.tableHeaders,e.originalOrderKeyValue)),o(3),p("bufferAmount",5)("items",k(7,5,e.shares,e.inputFilter.search())),o(4),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function it(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=r();o(),p("icon",e.icons.faArrowRotateRight)}}function nt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=r();o(),p("icon",e.icons.faMapMarkerAlt)}}function ot(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=r();o(),p("icon",e.icons.faPen)}}function rt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=r();o(),p("icon",e.icons.faClipboard)}}function at(t,s){}function lt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=r();o(),p("icon",e.icons.faCircleInfo)}}var $t=(()=>{class t{constructor(e,n,i,a,d,b){this.locale=e,this.activatedRoute=n,this.store=i,this.layout=a,this.linksService=d,this.sharesService=b,this.icons={faLink:se,faArrowRotateRight:ie,faArrowDown:le,faArrowUp:ce,faMapMarkerAlt:ae,faPen:te,faEllipsisH:re,faClock:oe,faLock:X,faClipboard:Z,faClipboardCheck:ee,faCircleInfo:ne},this.originalOrderKeyValue=de,this.TAB_MENU=me,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new ke(this.constructor.name,this.sortSettings),this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(Ve=>this.focusOnSelect=Ve.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${_e.LINKS}/${pe.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:e=>{this.sortBy(this.sortTable.sortParam.column,!1,e),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:e=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",e.error.message)}})}sortBy(e,n=!0,i){this.shares=this.sortTable.sortBy(e,n,i||this.shares)}onSelect(e=null){this.selected=e,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(e=>{this.layout.openDialog(we,"md",{initialState:{share:e}}).content.shareChange.pipe(N(1)).subscribe(i=>{let[a,d]=i;a==="update"?this.selected=Object.assign(this.selected,d):a==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(b=>b.id!==d.id)))})})}onContextMenu(e){e.preventDefault(),e.stopPropagation(),this.layout.openContextMenu(e,this.mainContextMenu)}onTargetContextMenu(e,n){e.preventDefault(),e.type==="contextmenu"&&e.stopPropagation(),this.onSelect(n),this.layout.openContextMenu(e,this.targetContextMenu)}focusOn(e){let n=this.shares.find(i=>i.name===e);n&&(setTimeout(()=>this.scrollView.scrollInto(n),100),this.onSelect(n))}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(e){e=e||this.selected,this.sharesService.goTo(e)}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(j),w(xe),w(he),w(ve),w(be))}}static{this.\u0275cmp=O({type:t,selectors:[["app-shared-links"]],viewQuery:function(n,i){if(n&1&&(L(R,5),L(B,7),L(D,7),L(Fe,7),L(Me,7)),n&2){let a;S(a=V())&&(i.scrollView=a.first),S(a=V())&&(i.inputFilter=a.first),S(a=V())&&(i.btnNavigationView=a.first),S(a=V())&&(i.mainContextMenu=a.first),S(a=V())&&(i.targetContextMenu=a.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","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"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["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"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(n,i){if(n&1){let a=y();l(0,"div",2)(1,"button",3),g(2,"translate"),C("click",function(){return _(a),m(i.loadShareLinks())}),x(3,"fa-icon",4),c(),l(4,"button",5),g(5,"translate"),C("click",function(){return _(a),m(i.openLinkDialog())}),x(6,"fa-icon",6),c(),l(7,"button",7),g(8,"translate"),C("click",function(){return _(a),m(i.copyToClipboard())}),x(9,"fa-icon",6),c(),l(10,"button",8),g(11,"translate"),C("click",function(){return _(a),m(i.goTo())}),x(12,"fa-icon",6),c(),l(13,"div",9)(14,"div",10),x(15,"app-input-filter",11),c(),l(16,"app-navigation-view",12),C("sortBy",function(b){return _(a),m(i.sortBy(b))})("switchView",function(b){return _(a),m(i.galleryMode=b)}),c()()(),f(17,Ie,6,8,"div",13)(18,tt,12,8),l(19,"div",14)(20,"span",15),u(21),g(22,"translate"),c()(),l(23,"context-menu",null,0),f(25,it,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.loadShareLinks())}),c(),l(26,"context-menu",null,1),f(28,nt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.goTo())}),f(29,ot,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.openLinkDialog())}),f(30,rt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.copyToClipboard())}),f(31,at,0,0,"ng-template",17)(32,lt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),c()}n&2&&(o(),p("tooltip",k(2,21,"Refresh",i.locale.language)),o(2),p("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),o(),p("disabled",!i.selected)("tooltip",k(5,24,"Edit link",i.locale.language)),o(2),p("icon",i.icons.faPen),o(),A("btn btn-sm me-1 ",i.linkWasCopied?"btn-info":"btn-secondary",""),p("disabled",!i.selected)("tooltip",k(8,27,"Copy link",i.locale.language)),o(2),p("icon",i.linkWasCopied?i.icons.faClipboardCheck:i.icons.faClipboard),o(),p("disabled",!i.selected)("tooltip",k(11,30,"Go to",i.locale.language)),o(2),p("icon",i.icons.faMapMarkerAlt),o(4),p("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),o(),h(i.galleryMode!=null&&i.galleryMode.enabled?17:18),o(4),$("",i.shares.length," ",k(22,33,"shares",i.locale.language),""),o(10),p("divider",!0))},dependencies:[fe,Ce,ue,J,z,K,q,D,Y,G,B,R,ge,ye,Te],encapsulation:2})}}return t})();export{$t as LinksComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O,b as P,c as R,d as X}from"./chunk-
|
|
1
|
+
import{a as O,b as P,c as R,d as X}from"./chunk-HQC3W7BS.js";import{Sb as K,gb as I}from"./chunk-HDDBV3QQ.js";import{Bb as h,Bd as k,Dd as z,Eb as y,Ec as D,Fb as s,Mf as N,Qb as m,Sa as n,Sb as V,Se as c,Ue as B,Xa as M,_e as F,ab as T,bc as C,dc as S,fb as _,lb as d,pa as w,pf as E,qa as g,rb as b,tb as v,ub as x,vb as o,wa as f,wb as r,wf as L,xb as p}from"./chunk-FPEGN42P.js";var $=(t,a)=>a.key;function A(t,a){if(t&1){let e=h();o(0,"li",6)(1,"a",8),y("click",function(){let l=w(e).$implicit,u=s(2);return g(u.setView(l.key))}),o(2,"span"),p(3,"fa-icon",2),m(4),r()()()}if(t&2){let e=a.$implicit;n(3),d("icon",e.value.icon),n(),V(" ",e.value.text,"")}}function U(t,a){if(t&1&&p(0,"fa-icon",10),t&2){let e=s(3);d("icon",e.sortParams.asc?e.icons.faArrowDown:e.icons.faArrowUp)}}function j(t,a){if(t&1){let e=h();o(0,"li",6)(1,"a",8),y("click",function(){let l=w(e).$implicit,u=s(2);return g(u.sortBy.emit(l.key))}),o(2,"span",9),m(3),_(4,U,1,1,"fa-icon",10),r()()()}if(t&2){let e=a.$implicit,i=s(2);n(3),V(" ",e.value," "),n(),b(i.sortParams.column===e.key?4:-1)}}function q(t,a){if(t&1&&(o(0,"ul",4)(1,"li",5),m(2,"Display"),r(),v(3,A,5,2,"li",6,$),C(5,"keyvalue"),o(6,"li",7),m(7,"Sort by"),r(),v(8,j,5,2,"li",6,$),C(10,"keyvalue"),r()),t&2){let e=s();n(3),x(S(5,0,e.viewsMode,e.originalOrderKeyValue)),n(5),x(S(10,3,e.sortFields,e.originalOrderKeyValue))}}var se=(()=>{class t{constructor(e){this.layout=e,this.switchView=new f,this.sortBy=new f,this.originalOrderKeyValue=I,this.icons={faCog:F,faArrowDown:E,faArrowUp:L},this.viewsMode={tl:{enabled:!1,text:"List",icon:N},th:{enabled:!0,text:"S",icon:c,dimensions:96,image:56,imageRes:128,faSize:30,textSize:10,margins:18},thM:{enabled:!0,text:"M",icon:c,dimensions:112,image:72,imageRes:192,faSize:34,textSize:11,margins:18},thL:{enabled:!0,text:"L",icon:c,dimensions:152,image:112,imageRes:256,faSize:50,textSize:12,margins:18},thXl:{enabled:!0,text:"XL",icon:c,dimensions:192,image:152,imageRes:512,faSize:65,textSize:13,margins:18},thXxl:{enabled:!0,text:"XXL",icon:B,dimensions:232,image:192,imageRes:1024,faSize:80,textSize:13,margins:18}},this.viewsMode.tl.text=this.layout.translateString(this.viewsMode.tl.text)}get viewMode(){return localStorage.getItem("viewMode")||"tl"}set viewMode(e){localStorage.setItem("viewMode",e)}currentView(){return this.viewsMode[this.viewMode]}setView(e){this.viewMode=e,this.switchView.emit(this.viewsMode[e])}static{this.\u0275fac=function(i){return new(i||t)(M(K))}}static{this.\u0275cmp=T({type:t,selectors:[["app-navigation-view"]],inputs:{sortParams:"sortParams",sortFields:"sortFields"},outputs:{switchView:"switchView",sortBy:"sortBy"},decls:4,vars:1,consts:[["dropdown","",1,"btn-group","btn-group-sm"],["dropdownToggle","","type","button",1,"btn","btn-sm","btn-secondary","dropdown-toggle"],[3,"icon"],["class","dropdown-menu dropdown-menu-right","role","menu",4,"dropdownMenu"],["role","menu",1,"dropdown-menu","dropdown-menu-right"],["l10nTranslate","",1,"dropdown-header","fw-bold"],["role","menuitem"],["l10nTranslate","",1,"dropdown-header","fw-bold","mt-1"],[1,"dropdown-item",3,"click"],["l10nTranslate","",1,"me-2"],["size","xs",1,"ms-1",3,"icon"]],template:function(i,l){i&1&&(o(0,"div",0)(1,"button",1),p(2,"fa-icon",2),r(),_(3,q,11,6,"ul",3),r()),i&2&&(n(2),d("icon",l.icons.faCog))},dependencies:[D,X,P,R,O,z,k],encapsulation:2,changeDetection:0})}}return t})();export{se as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p2}from"./chunk-ZVPX26RB.js";import{c as c2}from"./chunk-JXZCNFW7.js";import{a as i2}from"./chunk-RUNMEQOV.js";import{a as t2,b as n2,c as r2,d as o2,e as s2,f as Qt,i as a2}from"./chunk-3V7XYPSJ.js";import{a as d2,b as Jt,c as u2,e as Zt}from"./chunk-MEKYVWV4.js";import{a as l2,d as xt,g as ct}from"./chunk-QFRQQ4K3.js";import{f as Xt}from"./chunk-RAVRSB6R.js";import{Da as Yt,Ea as q,Fa as nt,Fb as e2,Ka as Yn,La as Xn,Ma as Qn,N as Ve,Qb as st,Sb as H,Ua as rt,Wa as ot,Xa as Jn,ib as zi,pa as it,qa as Z,ra as Ne,rb as Zn,ta as Gn,ua as qn,wa as Wn}from"./chunk-NU3TPXFY.js";import{c as Me,d as f2,h as je,m as at}from"./chunk-ZZ3LHYOY.js";import{d as wn}from"./chunk-UGSGMP2I.js";import{$ as mn,$b as Nn,Ab as ye,Ad as zn,Bb as P,Bc as ke,Bd as oe,Bf as Hn,C as pn,Ce as Fn,Dd as se,Df as $n,Eb as b,Ee as kn,Fb as u,Fc as Ln,Gb as Sn,Gf as Kt,Hb as xn,If as Un,Jb as En,Kc as Di,L as Ye,Lb as Ct,Ma as Ft,Mb as Vt,Mc as Ht,Nb as Se,Ob as xe,Oe as Vn,Pb as wi,Qb as p,Ra as Mi,Rb as F,Sa as c,Sb as J,Ta as Li,Ub as Je,Vb as Ze,Vc as An,Wa as Qe,Wb as et,X as hn,Xa as v,Xb as Oi,Xc as On,Ya as Ai,Yb as Fe,Yc as $t,Zb as _t,_d as Tn,_e as jn,ab as w,ac as jt,ad as Ut,ag as Kn,bb as gn,bc as fe,be as In,ca as _e,cb as Te,cc as Bt,da as vn,db as bn,dc as yt,f as fn,fb as g,fc as St,fd as Gt,ha as X,lb as f,mb as Ie,nb as G,oa as Pt,ob as Cn,pa as S,pb as kt,pd as qt,qa as x,rb as A,sd as Wt,se as Rn,tb as _n,td as Dn,te as Pn,u as un,ub as yn,ud as tt,v as Ei,vb as l,wa as B,wb as d,xa as Ni,xb as C,xc as Mn,yb as Re,yc as Ee,yf as Bn,za as Xe,zb as Pe}from"./chunk-FPEGN42P.js";import{a as Q,b as ze}from"./chunk-GAL4ENT6.js";var No={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"]};var Mo={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.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 Lo={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 64 0 350.5 0 400l0 88c0 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.4c44.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 0c-35.1-17.6-75.4-22-113.5-12.5L48 52l0-28zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8c54.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.4c-48.2-24.1-103.3-30.1-155.6-17.1L48 338.5l0-237z"]};var Ao={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]};var wo={prefix:"far",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 48L208 48c-17.7 0-32 14.3-32 32l0 16-48 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-48 16 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32zM48 448c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-192L48 256l0 192zM64 128l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64z"]};var h2={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 32L48 192l0-96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zM48 240l416 0 0 176c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-176zM285.7 93.7L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3z"]};var D1={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Oo=D1;var Do={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.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 zo={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 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 To={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},ei={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 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 m2=(()=>{class t{transform(e,i=0,r=void 0){return ot(e,i,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=bn({name:"pathSlice",type:t,pure:!0})}}return t})();var Pi=function(t,n){return Pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])},Pi(t,n)};function M2(t,n){Pi(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var W=function(){return W=Object.assign||function(n){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},W.apply(this,arguments)};function L2(t,n){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var i=e.call(t),r,o=[],s;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function Fi(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(L2(arguments[n]));return t}var z1="An invariant failed, however the error is obfuscated because this is an production build.",ni=[];Object.freeze(ni);var $i={};Object.freeze($i);var T1={};function ki(){return typeof window<"u"?window:typeof global<"u"?global:T1}function K(){return++m.mobxGuid}function O(t){throw Nt(!1,t),"X"}function Nt(t,n){if(!t)throw new Error("[mobx] "+(n||z1))}var v2=[];function he(t,n){return!1}function Ui(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}var g2=function(){};function I1(t){var n=[];return t.forEach(function(e){n.indexOf(e)===-1&&n.push(e)}),n}function Gi(t){return t!==null&&typeof t=="object"}function ut(t){if(t===null||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function R1(t){return pt(t)||qe(t)?t:Array.isArray(t)?new Map(t):ut(t)?new Map(Object.entries(t)):O("Cannot convert to map from '"+t+"'")}function P1(t,n){for(var e=0;e<n.length;e++)Ue(t,n[e],t[n[e]])}function Ue(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0,value:e})}function wt(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!1,configurable:!0,value:e})}function Oe(t,n){var e="isMobX"+t;return n.prototype[e]=!0,function(i){return Gi(i)&&i[e]===!0}}function F1(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)}function pt(t){return ki().Map!==void 0&&t instanceof ki().Map}function Ot(t){return t instanceof Set}function dt(t){for(var n=[];;){var e=t.next();if(e.done)break;n.push(e.value)}return n}function A2(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function w2(t){return t===null?null:typeof t=="object"?""+t:t}function qi(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Wi(t,n){wt(t,qi(),n)}function Mt(t){return t[qi()]=k1,t}function Ki(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function k1(){return this}var li=function(){function t(n){n===void 0&&(n="Atom@"+K()),this.name=n,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=L.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return $2(this)},t.prototype.reportChanged=function(){me(),a0(this),ve()},t.prototype.toString=function(){return this.name},t}(),Yi=Oe("Atom",li);function V1(t,n,e){n===void 0&&(n=g2),e===void 0&&(e=g2);var i=new li(t);return C0(i,n),K2(i,e),i}function O2(t,n){return t===n}function j1(t,n){return Zi(t,n)}function B1(t,n){return Zi(t,n,1)}function H1(t,n){return F1(t,n)||O2(t,n)}var ft={identity:O2,structural:j1,default:H1,shallow:B1},$1={},U1={};function G1(t,n){var e=n?$1:U1;return e[t]||(e[t]={configurable:!0,enumerable:n,get:function(){return He(this),this[t]},set:function(i){He(this),this[t]=i}})}function He(t){if(t.__mobxDidRunLazyInitializers!==!0){var n=t.__mobxDecorators;if(n){Ue(t,"__mobxDidRunLazyInitializers",!0);for(var e in n){var i=n[e];i.propertyCreator(t,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function D2(t,n){return function(){var i,r=function(s,a,h,D){if(D===!0)return n(s,a,h,s,i),null;if(!Object.prototype.hasOwnProperty.call(s,"__mobxDecorators")){var T=s.__mobxDecorators;Ue(s,"__mobxDecorators",W({},T))}return s.__mobxDecorators[a]={prop:a,propertyCreator:n,descriptor:h,decoratorTarget:s,decoratorArguments:i},G1(a,t)};return q1(arguments)?(i=ni,r.apply(null,arguments)):(i=Array.prototype.slice.call(arguments),r)}}function q1(t){return(t.length===2||t.length===3)&&typeof t[1]=="string"||t.length===4&&t[3]===!0}function Dt(t,n,e){return Q2(t)?t:Array.isArray(t)?E.array(t,{name:e}):ut(t)?E.object(t,void 0,{name:e}):pt(t)?E.map(t,{name:e}):Ot(t)?E.set(t,{name:e}):t}function W1(t,n,e){return t==null||At(t)||pi(t)||qe(t)||mt(t)?t:Array.isArray(t)?E.array(t,{name:e,deep:!1}):ut(t)?E.object(t,void 0,{name:e,deep:!1}):pt(t)?E.map(t,{name:e,deep:!1}):Ot(t)?E.set(t,{name:e,deep:!1}):O(!1)}function Lt(t){return t}function K1(t,n,e){return Zi(t,n)?n:t}function di(t){var n=D2(!0,function(i,r,o,s,a){var h=o?o.initializer?o.initializer.call(i):o.value:void 0;T0(i,r,h,t)}),e=(typeof process<"u"&&process.env,n);return e.enhancer=t,e}var z2={deep:!0,name:void 0,defaultDecorator:void 0},Y1={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(z2);Object.freeze(Y1);function lt(t){return t==null?z2:typeof t=="string"?{name:t,deep:!0}:t}function ti(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?Lt:Dt}var Xi=di(Dt),X1=di(W1),T2=di(Lt),Q1=di(K1);function J1(t,n,e){if(typeof arguments[1]=="string")return Xi.apply(null,arguments);if(Q2(t))return t;var i=ut(t)?E.object(t,n,e):Array.isArray(t)?E.array(t,n):pt(t)?E.map(t,n):Ot(t)?E.set(t,n):t;if(i!==t)return i;O(!1)}var b2={box:function(t,n){arguments.length>2&&ue("box");var e=lt(n);return new Ae(t,ti(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&ue("shallowBox"),he("observable.shallowBox","observable.box(value, { deep: false })"),E.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&ue("array");var e=lt(n);return new be(t,ti(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&ue("shallowArray"),he("observable.shallowArray","observable.array(values, { deep: false })"),E.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&ue("map");var e=lt(n);return new hi(t,ti(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&ue("shallowMap"),he("observable.shallowMap","observable.map(values, { deep: false })"),E.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&ue("set");var e=lt(n);return new mi(t,ti(e),e.name)},object:function(t,n,e){typeof arguments[1]=="string"&&ue("object");var i=lt(e);return _0({},t,n,i)},shallowObject:function(t,n){return typeof arguments[1]=="string"&&ue("shallowObject"),he("observable.shallowObject","observable.object(values, {}, { deep: false })"),E.object(t,{},{name:n,deep:!1})},ref:T2,shallow:X1,deep:Xi,struct:Q1},E=J1;Object.keys(b2).forEach(function(t){return E[t]=b2[t]});function ue(t){O("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var ri=D2(!1,function(t,n,e,i,r){var o=e.get,s=e.set,a=r[0]||{};I0(t,n,W({get:o,set:s},a))}),Z1=ri({equals:ft.structural}),I=function(n,e,i){if(typeof e=="string"||n!==null&&typeof n=="object"&&arguments.length===1)return ri.apply(null,arguments);var r=typeof e=="object"?e:{};return r.get=n,r.set=typeof e=="function"?e:r.set,r.name=r.name||n.name||"",new we(r)};I.struct=Z1;var L=function(t){return t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",t}(L||{}),ce=function(t){return t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",t}(ce||{}),oi=function(){function t(n){this.cause=n}return t}();function Et(t){return t instanceof oi}function Vi(t){switch(t.dependenciesState){case L.UP_TO_DATE:return!1;case L.NOT_TRACKING:case L.STALE:return!0;case L.POSSIBLY_STALE:{for(var n=ht(),e=t.observing,i=e.length,r=0;r<i;r++){var o=e[r];if(ui(o)){if(m.disableErrorBoundaries)o.get();else try{o.get()}catch{return Le(n),!0}if(t.dependenciesState===L.STALE)return Le(n),!0}}return k2(t),Le(n),!1}}}function fi(t){var n=t.observers.length>0;m.computationDepth>0&&n&&O(!1),!m.allowStateChanges&&(n||m.enforceActions==="strict")&&O(!1)}function I2(t,n,e){var i=P2(!0);k2(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++m.runId;var r=m.trackingDerivation;m.trackingDerivation=t;var o;if(m.disableErrorBoundaries===!0)o=n.call(e);else try{o=n.call(e)}catch(s){o=new oi(s)}return m.trackingDerivation=r,e0(t),t.observing.length===0&&void 0,F2(i),o}function e0(t){for(var n=t.observing,e=t.observing=t.newObserving,i=L.UP_TO_DATE,r=0,o=t.unboundDepsCount,s=0;s<o;s++){var a=e[s];a.diffValue===0&&(a.diffValue=1,r!==s&&(e[r]=a),r++),a.dependenciesState>i&&(i=a.dependenciesState)}for(e.length=r,t.newObserving=null,o=n.length;o--;){var a=n[o];a.diffValue===0&&B2(a,t),a.diffValue=0}for(;r--;){var a=e[r];a.diffValue===1&&(a.diffValue=0,s0(a,t))}i!==L.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function ji(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)B2(n[e],t);t.dependenciesState=L.NOT_TRACKING}function R2(t){var n=ht(),e=t();return Le(n),e}function ht(){var t=m.trackingDerivation;return m.trackingDerivation=null,t}function Le(t){m.trackingDerivation=t}function P2(t){var n=m.allowStateReads;return m.allowStateReads=t,n}function F2(t){m.allowStateReads=t}function k2(t){if(t.dependenciesState!==L.UP_TO_DATE){t.dependenciesState=L.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=L.UP_TO_DATE}}var si=0,t0=1;function Be(t,n){var e=function(){return i0(t,n,this,arguments)};return e.isMobxAction=!0,e}function i0(t,n,e,i){var r=n0(t,e,i);try{return n.apply(e,i)}catch(o){throw r.error=o,o}finally{r0(r)}}function n0(t,n,e){var i=j()&&!!t,r=0;if(i){r=Date.now();var o=e&&e.length||0,s=new Array(o);if(o>0)for(var a=0;a<o;a++)s[a]=e[a];ee({type:"action",name:t,object:n,arguments:s})}var h=ht();me();var D=V2(!0),T=P2(!0),Y={prevDerivation:h,prevAllowStateChanges:D,prevAllowStateReads:T,notifySpy:i,startTime:r,actionId:t0++,parentActionId:si};return si=Y.actionId,Y}function r0(t){si!==t.actionId&&O("invalid action stack. did you forget to finish an action?"),si=t.parentActionId,t.error!==void 0&&(m.suppressReactionErrors=!0),j2(t.prevAllowStateChanges),F2(t.prevAllowStateReads),ve(),Le(t.prevDerivation),t.notifySpy&&te({time:Date.now()-t.startTime}),m.suppressReactionErrors=!1}function V2(t){var n=m.allowStateChanges;return m.allowStateChanges=t,n}function j2(t){m.allowStateChanges=t}var Ae=function(t){M2(n,t);function n(e,i,r,o,s){r===void 0&&(r="ObservableValue@"+K()),o===void 0&&(o=!0),s===void 0&&(s=ft.default);var a=t.call(this,r)||this;return a.enhancer=i,a.name=r,a.equals=s,a.hasUnreportedChange=!1,a.value=i(e,void 0,r),o&&j()&&$e({type:"create",name:a.name,newValue:""+a.value}),a}return n.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},n.prototype.set=function(e){var i=this.value;if(e=this.prepareNewValue(e),e!==m.UNCHANGED){var r=j();r&&ee({type:"update",name:this.name,newValue:e,oldValue:i}),this.setNewValue(e),r&&te()}},n.prototype.prepareNewValue=function(e){if(fi(this),le(this)){var i=de(this,{object:this,type:"update",newValue:e});if(!i)return m.UNCHANGED;e=i.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?m.UNCHANGED:e},n.prototype.setNewValue=function(e){var i=this.value;this.value=e,this.reportChanged(),ie(this)&&ne(this,{type:"update",object:this,newValue:e,oldValue:i})},n.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},n.prototype.intercept=function(e){return Tt(this,e)},n.prototype.observe=function(e,i){return i&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),It(this,e)},n.prototype.toJSON=function(){return this.get()},n.prototype.toString=function(){return this.name+"["+this.value+"]"},n.prototype.valueOf=function(){return w2(this.get())},n}(li);Ae.prototype[A2()]=Ae.prototype.valueOf;var Fo=Oe("ObservableValue",Ae),we=function(){function t(n){this.dependenciesState=L.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=L.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+K(),this.value=new oi(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ce.NONE,this.derivation=n.get,this.name=n.name||"ComputedValue@"+K(),n.set&&(this.setter=Be(this.name+"-setter",n.set)),this.equals=n.equals||(n.compareStructural||n.struct?ft.structural:ft.default),this.scope=n.context,this.requiresReaction=!!n.requiresReaction,this.keepAlive=!!n.keepAlive}return t.prototype.onBecomeStale=function(){l0(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&O("Cycle detected in computation "+this.name+": "+this.derivation),m.inBatch===0&&this.observers.length===0&&!this.keepAlive?Vi(this)&&(this.warnAboutUntrackedRead(),me(),this.value=this.computeValue(!1),ve()):($2(this),Vi(this)&&this.trackAndCompute()&&c0(this));var n=this.value;if(Et(n))throw n.cause;return n},t.prototype.peek=function(){var n=this.computeValue(!1);if(Et(n))throw n.cause;return n},t.prototype.set=function(n){if(this.setter){Nt(!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,n)}finally{this.isRunningSetter=!1}}else Nt(!1,!1)},t.prototype.trackAndCompute=function(){j()&&$e({object:this.scope,type:"compute",name:this.name});var n=this.value,e=this.dependenciesState===L.NOT_TRACKING,i=this.computeValue(!0),r=e||Et(n)||Et(i)||!this.equals(n,i);return r&&(this.value=i),r},t.prototype.computeValue=function(n){this.isComputing=!0,m.computationDepth++;var e;if(n)e=I2(this,this.derivation,this.scope);else if(m.disableErrorBoundaries===!0)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(i){e=new oi(i)}return m.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(ji(this),this.value=void 0)},t.prototype.observe=function(n,e){var i=this,r=!0,o=void 0;return zt(function(){var s=i.get();if(!r||e){var a=ht();n({type:"update",object:i,newValue:s,oldValue:o}),Le(a)}r=!1,o=s})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return w2(this.get())},t}();we.prototype[A2()]=we.prototype.valueOf;var ui=Oe("ComputedValue",we);var Ti=function(){function t(){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 t}(),Ii=!0,o0=!1,m=function(){var t=ki();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ii=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ti().version&&(Ii=!1),Ii?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ti):(setTimeout(function(){o0||O("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ti)}();function s0(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function B2(t,n){if(t.observers.length===1)t.observers.length=0,H2(t);else{var e=t.observers,i=t.observersIndexes,r=e.pop();if(r!==n){var o=i[n.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],e[o]=r}delete i[n.__mapid]}}function H2(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,m.pendingUnobservations.push(t))}function me(){m.inBatch++}function ve(){if(--m.inBatch===0){q2();for(var t=m.pendingUnobservations,n=0;n<t.length;n++){var e=t[n];e.isPendingUnobservation=!1,e.observers.length===0&&(e.isBeingObserved&&(e.isBeingObserved=!1,e.onBecomeUnobserved()),e instanceof we&&e.suspend())}m.pendingUnobservations=[]}}function $2(t){var n=m.trackingDerivation;return n!==null?(n.runId!==t.lastAccessedBy&&(t.lastAccessedBy=n.runId,n.newObserving[n.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.length===0&&m.inBatch>0&&H2(t),!1)}function a0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale()),i.dependenciesState=L.STALE}}}function c0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.POSSIBLY_STALE?i.dependenciesState=L.STALE:i.dependenciesState===L.UP_TO_DATE&&(t.lowestObserverState=L.UP_TO_DATE)}}}function l0(t){if(t.lowestObserverState===L.UP_TO_DATE){t.lowestObserverState=L.POSSIBLY_STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.dependenciesState=L.POSSIBLY_STALE,i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale())}}}function U2(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===ce.BREAK){var e=[];G2(y0(t),e,1),new Function(`debugger;
|
|
1
|
+
import{a as p2}from"./chunk-3RLZPQMJ.js";import{c as c2}from"./chunk-JXZCNFW7.js";import{a as i2}from"./chunk-VIL6L67B.js";import{a as t2,b as n2,c as r2,d as o2,e as s2,f as Qt,i as a2}from"./chunk-5JDPARJT.js";import{a as d2,b as Jt,c as u2,e as Zt}from"./chunk-WQPVP63E.js";import{a as l2,d as xt,g as ct}from"./chunk-2SX3MVH3.js";import{f as Xt}from"./chunk-ZZGFGD5E.js";import{Da as Yt,Ea as q,Fa as nt,Fb as e2,Ka as Yn,La as Xn,Ma as Qn,N as Ve,Qb as st,Sb as H,Ua as rt,Wa as ot,Xa as Jn,ib as zi,pa as it,qa as Z,ra as Ne,rb as Zn,ta as Gn,ua as qn,wa as Wn}from"./chunk-HDDBV3QQ.js";import{c as Me,d as f2,h as je,m as at}from"./chunk-ZZ3LHYOY.js";import{d as wn}from"./chunk-UGSGMP2I.js";import{$ as mn,$b as Nn,Ab as ye,Ad as zn,Bb as P,Bc as ke,Bd as oe,Bf as Hn,C as pn,Ce as Fn,Dd as se,Df as $n,Eb as b,Ee as kn,Fb as u,Fc as Ln,Gb as Sn,Gf as Kt,Hb as xn,If as Un,Jb as En,Kc as Di,L as Ye,Lb as Ct,Ma as Ft,Mb as Vt,Mc as Ht,Nb as Se,Ob as xe,Oe as Vn,Pb as wi,Qb as p,Ra as Mi,Rb as F,Sa as c,Sb as J,Ta as Li,Ub as Je,Vb as Ze,Vc as An,Wa as Qe,Wb as et,X as hn,Xa as v,Xb as Oi,Xc as On,Ya as Ai,Yb as Fe,Yc as $t,Zb as _t,_d as Tn,_e as jn,ab as w,ac as jt,ad as Ut,ag as Kn,bb as gn,bc as fe,be as In,ca as _e,cb as Te,cc as Bt,da as vn,db as bn,dc as yt,f as fn,fb as g,fc as St,fd as Gt,ha as X,lb as f,mb as Ie,nb as G,oa as Pt,ob as Cn,pa as S,pb as kt,pd as qt,qa as x,rb as A,sd as Wt,se as Rn,tb as _n,td as Dn,te as Pn,u as un,ub as yn,ud as tt,v as Ei,vb as l,wa as B,wb as d,xa as Ni,xb as C,xc as Mn,yb as Re,yc as Ee,yf as Bn,za as Xe,zb as Pe}from"./chunk-FPEGN42P.js";import{a as Q,b as ze}from"./chunk-GAL4ENT6.js";var No={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"]};var Mo={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.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 Lo={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 64 0 350.5 0 400l0 88c0 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.4c44.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 0c-35.1-17.6-75.4-22-113.5-12.5L48 52l0-28zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8c54.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.4c-48.2-24.1-103.3-30.1-155.6-17.1L48 338.5l0-237z"]};var Ao={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]};var wo={prefix:"far",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 48L208 48c-17.7 0-32 14.3-32 32l0 16-48 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-48 16 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32zM48 448c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-192L48 256l0 192zM64 128l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64z"]};var h2={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 32L48 192l0-96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zM48 240l416 0 0 176c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-176zM285.7 93.7L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3z"]};var D1={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Oo=D1;var Do={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.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 zo={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 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 To={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},ei={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 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 m2=(()=>{class t{transform(e,i=0,r=void 0){return ot(e,i,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=bn({name:"pathSlice",type:t,pure:!0})}}return t})();var Pi=function(t,n){return Pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])},Pi(t,n)};function M2(t,n){Pi(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var W=function(){return W=Object.assign||function(n){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},W.apply(this,arguments)};function L2(t,n){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var i=e.call(t),r,o=[],s;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function Fi(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(L2(arguments[n]));return t}var z1="An invariant failed, however the error is obfuscated because this is an production build.",ni=[];Object.freeze(ni);var $i={};Object.freeze($i);var T1={};function ki(){return typeof window<"u"?window:typeof global<"u"?global:T1}function K(){return++m.mobxGuid}function O(t){throw Nt(!1,t),"X"}function Nt(t,n){if(!t)throw new Error("[mobx] "+(n||z1))}var v2=[];function he(t,n){return!1}function Ui(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}var g2=function(){};function I1(t){var n=[];return t.forEach(function(e){n.indexOf(e)===-1&&n.push(e)}),n}function Gi(t){return t!==null&&typeof t=="object"}function ut(t){if(t===null||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function R1(t){return pt(t)||qe(t)?t:Array.isArray(t)?new Map(t):ut(t)?new Map(Object.entries(t)):O("Cannot convert to map from '"+t+"'")}function P1(t,n){for(var e=0;e<n.length;e++)Ue(t,n[e],t[n[e]])}function Ue(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0,value:e})}function wt(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!1,configurable:!0,value:e})}function Oe(t,n){var e="isMobX"+t;return n.prototype[e]=!0,function(i){return Gi(i)&&i[e]===!0}}function F1(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)}function pt(t){return ki().Map!==void 0&&t instanceof ki().Map}function Ot(t){return t instanceof Set}function dt(t){for(var n=[];;){var e=t.next();if(e.done)break;n.push(e.value)}return n}function A2(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function w2(t){return t===null?null:typeof t=="object"?""+t:t}function qi(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Wi(t,n){wt(t,qi(),n)}function Mt(t){return t[qi()]=k1,t}function Ki(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function k1(){return this}var li=function(){function t(n){n===void 0&&(n="Atom@"+K()),this.name=n,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=L.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return $2(this)},t.prototype.reportChanged=function(){me(),a0(this),ve()},t.prototype.toString=function(){return this.name},t}(),Yi=Oe("Atom",li);function V1(t,n,e){n===void 0&&(n=g2),e===void 0&&(e=g2);var i=new li(t);return C0(i,n),K2(i,e),i}function O2(t,n){return t===n}function j1(t,n){return Zi(t,n)}function B1(t,n){return Zi(t,n,1)}function H1(t,n){return F1(t,n)||O2(t,n)}var ft={identity:O2,structural:j1,default:H1,shallow:B1},$1={},U1={};function G1(t,n){var e=n?$1:U1;return e[t]||(e[t]={configurable:!0,enumerable:n,get:function(){return He(this),this[t]},set:function(i){He(this),this[t]=i}})}function He(t){if(t.__mobxDidRunLazyInitializers!==!0){var n=t.__mobxDecorators;if(n){Ue(t,"__mobxDidRunLazyInitializers",!0);for(var e in n){var i=n[e];i.propertyCreator(t,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function D2(t,n){return function(){var i,r=function(s,a,h,D){if(D===!0)return n(s,a,h,s,i),null;if(!Object.prototype.hasOwnProperty.call(s,"__mobxDecorators")){var T=s.__mobxDecorators;Ue(s,"__mobxDecorators",W({},T))}return s.__mobxDecorators[a]={prop:a,propertyCreator:n,descriptor:h,decoratorTarget:s,decoratorArguments:i},G1(a,t)};return q1(arguments)?(i=ni,r.apply(null,arguments)):(i=Array.prototype.slice.call(arguments),r)}}function q1(t){return(t.length===2||t.length===3)&&typeof t[1]=="string"||t.length===4&&t[3]===!0}function Dt(t,n,e){return Q2(t)?t:Array.isArray(t)?E.array(t,{name:e}):ut(t)?E.object(t,void 0,{name:e}):pt(t)?E.map(t,{name:e}):Ot(t)?E.set(t,{name:e}):t}function W1(t,n,e){return t==null||At(t)||pi(t)||qe(t)||mt(t)?t:Array.isArray(t)?E.array(t,{name:e,deep:!1}):ut(t)?E.object(t,void 0,{name:e,deep:!1}):pt(t)?E.map(t,{name:e,deep:!1}):Ot(t)?E.set(t,{name:e,deep:!1}):O(!1)}function Lt(t){return t}function K1(t,n,e){return Zi(t,n)?n:t}function di(t){var n=D2(!0,function(i,r,o,s,a){var h=o?o.initializer?o.initializer.call(i):o.value:void 0;T0(i,r,h,t)}),e=(typeof process<"u"&&process.env,n);return e.enhancer=t,e}var z2={deep:!0,name:void 0,defaultDecorator:void 0},Y1={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(z2);Object.freeze(Y1);function lt(t){return t==null?z2:typeof t=="string"?{name:t,deep:!0}:t}function ti(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?Lt:Dt}var Xi=di(Dt),X1=di(W1),T2=di(Lt),Q1=di(K1);function J1(t,n,e){if(typeof arguments[1]=="string")return Xi.apply(null,arguments);if(Q2(t))return t;var i=ut(t)?E.object(t,n,e):Array.isArray(t)?E.array(t,n):pt(t)?E.map(t,n):Ot(t)?E.set(t,n):t;if(i!==t)return i;O(!1)}var b2={box:function(t,n){arguments.length>2&&ue("box");var e=lt(n);return new Ae(t,ti(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&ue("shallowBox"),he("observable.shallowBox","observable.box(value, { deep: false })"),E.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&ue("array");var e=lt(n);return new be(t,ti(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&ue("shallowArray"),he("observable.shallowArray","observable.array(values, { deep: false })"),E.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&ue("map");var e=lt(n);return new hi(t,ti(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&ue("shallowMap"),he("observable.shallowMap","observable.map(values, { deep: false })"),E.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&ue("set");var e=lt(n);return new mi(t,ti(e),e.name)},object:function(t,n,e){typeof arguments[1]=="string"&&ue("object");var i=lt(e);return _0({},t,n,i)},shallowObject:function(t,n){return typeof arguments[1]=="string"&&ue("shallowObject"),he("observable.shallowObject","observable.object(values, {}, { deep: false })"),E.object(t,{},{name:n,deep:!1})},ref:T2,shallow:X1,deep:Xi,struct:Q1},E=J1;Object.keys(b2).forEach(function(t){return E[t]=b2[t]});function ue(t){O("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var ri=D2(!1,function(t,n,e,i,r){var o=e.get,s=e.set,a=r[0]||{};I0(t,n,W({get:o,set:s},a))}),Z1=ri({equals:ft.structural}),I=function(n,e,i){if(typeof e=="string"||n!==null&&typeof n=="object"&&arguments.length===1)return ri.apply(null,arguments);var r=typeof e=="object"?e:{};return r.get=n,r.set=typeof e=="function"?e:r.set,r.name=r.name||n.name||"",new we(r)};I.struct=Z1;var L=function(t){return t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",t}(L||{}),ce=function(t){return t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",t}(ce||{}),oi=function(){function t(n){this.cause=n}return t}();function Et(t){return t instanceof oi}function Vi(t){switch(t.dependenciesState){case L.UP_TO_DATE:return!1;case L.NOT_TRACKING:case L.STALE:return!0;case L.POSSIBLY_STALE:{for(var n=ht(),e=t.observing,i=e.length,r=0;r<i;r++){var o=e[r];if(ui(o)){if(m.disableErrorBoundaries)o.get();else try{o.get()}catch{return Le(n),!0}if(t.dependenciesState===L.STALE)return Le(n),!0}}return k2(t),Le(n),!1}}}function fi(t){var n=t.observers.length>0;m.computationDepth>0&&n&&O(!1),!m.allowStateChanges&&(n||m.enforceActions==="strict")&&O(!1)}function I2(t,n,e){var i=P2(!0);k2(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++m.runId;var r=m.trackingDerivation;m.trackingDerivation=t;var o;if(m.disableErrorBoundaries===!0)o=n.call(e);else try{o=n.call(e)}catch(s){o=new oi(s)}return m.trackingDerivation=r,e0(t),t.observing.length===0&&void 0,F2(i),o}function e0(t){for(var n=t.observing,e=t.observing=t.newObserving,i=L.UP_TO_DATE,r=0,o=t.unboundDepsCount,s=0;s<o;s++){var a=e[s];a.diffValue===0&&(a.diffValue=1,r!==s&&(e[r]=a),r++),a.dependenciesState>i&&(i=a.dependenciesState)}for(e.length=r,t.newObserving=null,o=n.length;o--;){var a=n[o];a.diffValue===0&&B2(a,t),a.diffValue=0}for(;r--;){var a=e[r];a.diffValue===1&&(a.diffValue=0,s0(a,t))}i!==L.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function ji(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)B2(n[e],t);t.dependenciesState=L.NOT_TRACKING}function R2(t){var n=ht(),e=t();return Le(n),e}function ht(){var t=m.trackingDerivation;return m.trackingDerivation=null,t}function Le(t){m.trackingDerivation=t}function P2(t){var n=m.allowStateReads;return m.allowStateReads=t,n}function F2(t){m.allowStateReads=t}function k2(t){if(t.dependenciesState!==L.UP_TO_DATE){t.dependenciesState=L.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=L.UP_TO_DATE}}var si=0,t0=1;function Be(t,n){var e=function(){return i0(t,n,this,arguments)};return e.isMobxAction=!0,e}function i0(t,n,e,i){var r=n0(t,e,i);try{return n.apply(e,i)}catch(o){throw r.error=o,o}finally{r0(r)}}function n0(t,n,e){var i=j()&&!!t,r=0;if(i){r=Date.now();var o=e&&e.length||0,s=new Array(o);if(o>0)for(var a=0;a<o;a++)s[a]=e[a];ee({type:"action",name:t,object:n,arguments:s})}var h=ht();me();var D=V2(!0),T=P2(!0),Y={prevDerivation:h,prevAllowStateChanges:D,prevAllowStateReads:T,notifySpy:i,startTime:r,actionId:t0++,parentActionId:si};return si=Y.actionId,Y}function r0(t){si!==t.actionId&&O("invalid action stack. did you forget to finish an action?"),si=t.parentActionId,t.error!==void 0&&(m.suppressReactionErrors=!0),j2(t.prevAllowStateChanges),F2(t.prevAllowStateReads),ve(),Le(t.prevDerivation),t.notifySpy&&te({time:Date.now()-t.startTime}),m.suppressReactionErrors=!1}function V2(t){var n=m.allowStateChanges;return m.allowStateChanges=t,n}function j2(t){m.allowStateChanges=t}var Ae=function(t){M2(n,t);function n(e,i,r,o,s){r===void 0&&(r="ObservableValue@"+K()),o===void 0&&(o=!0),s===void 0&&(s=ft.default);var a=t.call(this,r)||this;return a.enhancer=i,a.name=r,a.equals=s,a.hasUnreportedChange=!1,a.value=i(e,void 0,r),o&&j()&&$e({type:"create",name:a.name,newValue:""+a.value}),a}return n.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},n.prototype.set=function(e){var i=this.value;if(e=this.prepareNewValue(e),e!==m.UNCHANGED){var r=j();r&&ee({type:"update",name:this.name,newValue:e,oldValue:i}),this.setNewValue(e),r&&te()}},n.prototype.prepareNewValue=function(e){if(fi(this),le(this)){var i=de(this,{object:this,type:"update",newValue:e});if(!i)return m.UNCHANGED;e=i.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?m.UNCHANGED:e},n.prototype.setNewValue=function(e){var i=this.value;this.value=e,this.reportChanged(),ie(this)&&ne(this,{type:"update",object:this,newValue:e,oldValue:i})},n.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},n.prototype.intercept=function(e){return Tt(this,e)},n.prototype.observe=function(e,i){return i&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),It(this,e)},n.prototype.toJSON=function(){return this.get()},n.prototype.toString=function(){return this.name+"["+this.value+"]"},n.prototype.valueOf=function(){return w2(this.get())},n}(li);Ae.prototype[A2()]=Ae.prototype.valueOf;var Fo=Oe("ObservableValue",Ae),we=function(){function t(n){this.dependenciesState=L.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=L.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+K(),this.value=new oi(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ce.NONE,this.derivation=n.get,this.name=n.name||"ComputedValue@"+K(),n.set&&(this.setter=Be(this.name+"-setter",n.set)),this.equals=n.equals||(n.compareStructural||n.struct?ft.structural:ft.default),this.scope=n.context,this.requiresReaction=!!n.requiresReaction,this.keepAlive=!!n.keepAlive}return t.prototype.onBecomeStale=function(){l0(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&O("Cycle detected in computation "+this.name+": "+this.derivation),m.inBatch===0&&this.observers.length===0&&!this.keepAlive?Vi(this)&&(this.warnAboutUntrackedRead(),me(),this.value=this.computeValue(!1),ve()):($2(this),Vi(this)&&this.trackAndCompute()&&c0(this));var n=this.value;if(Et(n))throw n.cause;return n},t.prototype.peek=function(){var n=this.computeValue(!1);if(Et(n))throw n.cause;return n},t.prototype.set=function(n){if(this.setter){Nt(!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,n)}finally{this.isRunningSetter=!1}}else Nt(!1,!1)},t.prototype.trackAndCompute=function(){j()&&$e({object:this.scope,type:"compute",name:this.name});var n=this.value,e=this.dependenciesState===L.NOT_TRACKING,i=this.computeValue(!0),r=e||Et(n)||Et(i)||!this.equals(n,i);return r&&(this.value=i),r},t.prototype.computeValue=function(n){this.isComputing=!0,m.computationDepth++;var e;if(n)e=I2(this,this.derivation,this.scope);else if(m.disableErrorBoundaries===!0)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(i){e=new oi(i)}return m.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(ji(this),this.value=void 0)},t.prototype.observe=function(n,e){var i=this,r=!0,o=void 0;return zt(function(){var s=i.get();if(!r||e){var a=ht();n({type:"update",object:i,newValue:s,oldValue:o}),Le(a)}r=!1,o=s})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return w2(this.get())},t}();we.prototype[A2()]=we.prototype.valueOf;var ui=Oe("ComputedValue",we);var Ti=function(){function t(){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 t}(),Ii=!0,o0=!1,m=function(){var t=ki();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ii=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ti().version&&(Ii=!1),Ii?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ti):(setTimeout(function(){o0||O("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ti)}();function s0(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function B2(t,n){if(t.observers.length===1)t.observers.length=0,H2(t);else{var e=t.observers,i=t.observersIndexes,r=e.pop();if(r!==n){var o=i[n.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],e[o]=r}delete i[n.__mapid]}}function H2(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,m.pendingUnobservations.push(t))}function me(){m.inBatch++}function ve(){if(--m.inBatch===0){q2();for(var t=m.pendingUnobservations,n=0;n<t.length;n++){var e=t[n];e.isPendingUnobservation=!1,e.observers.length===0&&(e.isBeingObserved&&(e.isBeingObserved=!1,e.onBecomeUnobserved()),e instanceof we&&e.suspend())}m.pendingUnobservations=[]}}function $2(t){var n=m.trackingDerivation;return n!==null?(n.runId!==t.lastAccessedBy&&(t.lastAccessedBy=n.runId,n.newObserving[n.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.length===0&&m.inBatch>0&&H2(t),!1)}function a0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale()),i.dependenciesState=L.STALE}}}function c0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.POSSIBLY_STALE?i.dependenciesState=L.STALE:i.dependenciesState===L.UP_TO_DATE&&(t.lowestObserverState=L.UP_TO_DATE)}}}function l0(t){if(t.lowestObserverState===L.UP_TO_DATE){t.lowestObserverState=L.POSSIBLY_STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.dependenciesState=L.POSSIBLY_STALE,i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale())}}}function U2(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===ce.BREAK){var e=[];G2(y0(t),e,1),new Function(`debugger;
|
|
2
2
|
/*
|
|
3
3
|
Tracing '`+t.name+`'
|
|
4
4
|
|