@sync-in/server 1.9.0 → 1.9.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 +2 -1
- package/package.json +1 -1
- package/server/app.constants.js +3 -3
- package/server/app.constants.js.map +1 -1
- package/server/app.functions.js +42 -0
- package/server/app.functions.js.map +1 -0
- package/static/{chunk-CCGGCHGN.js → chunk-2TB2INBF.js} +1 -1
- package/static/{chunk-KNZ3AQPR.js → chunk-3WLBVJ2S.js} +1 -1
- package/static/{chunk-24Q7OUU2.js → chunk-3YDYZLF7.js} +1 -1
- package/static/{chunk-XOTKK2NJ.js → chunk-4PZPHJ7L.js} +1 -1
- package/static/{chunk-7CFSJ4BO.js → chunk-5E3TYOL3.js} +1 -1
- package/static/{chunk-T74SMT7I.js → chunk-5S6KPQRA.js} +1 -1
- package/static/{chunk-PG54TWBO.js → chunk-6B3GGAV3.js} +1 -1
- package/static/{chunk-KHRF67SG.js → chunk-6NEBGCAZ.js} +1 -1
- package/static/{chunk-N3P6P6GW.js → chunk-BODMMLVB.js} +1 -1
- package/static/{chunk-Y2I36A4K.js → chunk-BU4ZICZR.js} +1 -1
- package/static/{chunk-RX3YQ67K.js → chunk-DQ3GEMPM.js} +1 -1
- package/static/{chunk-BYWSTP3P.js → chunk-FNOTGWRW.js} +1 -1
- package/static/{chunk-F7TXTNZC.js → chunk-GNZPP2VO.js} +1 -1
- package/static/{chunk-LJSVNPPQ.js → chunk-GRLHFXGB.js} +1 -1
- package/static/{chunk-EKEGRXCV.js → chunk-HCSWO7BO.js} +1 -1
- package/static/{chunk-FTSIPHMG.js → chunk-HMOB6XC5.js} +1 -1
- package/static/{chunk-5HNQLBSW.js → chunk-I2S3XPC5.js} +1 -1
- package/static/{chunk-S6EVLDHA.js → chunk-JWPXQOS3.js} +1 -1
- package/static/{chunk-MRF3CNLZ.js → chunk-JY2I3HGL.js} +1 -1
- package/static/{chunk-2FOWUJQF.js → chunk-K657XPXA.js} +1 -1
- package/static/{chunk-MRMSMTWD.js → chunk-MIA5YBOI.js} +1 -1
- package/static/{chunk-BQZWSZNN.js → chunk-NKGKBQBX.js} +1 -1
- package/static/{chunk-OJCAIKUK.js → chunk-PXRT4L57.js} +1 -1
- package/static/{chunk-3IISSX63.js → chunk-RDNTK4YH.js} +1 -1
- package/static/{chunk-MNNCSSHN.js → chunk-RK2ONYTL.js} +1 -1
- package/static/{chunk-QNFNXDSX.js → chunk-S2VBGI6Q.js} +1 -1
- package/static/{chunk-Y44XDRM5.js → chunk-TGLJFALR.js} +1 -1
- package/static/{chunk-LXQGVNU2.js → chunk-U4RW6XG5.js} +1 -1
- package/static/{chunk-4FJUCMEG.js → chunk-V6FA5QY4.js} +1 -1
- package/static/{chunk-XX7JXKA6.js → chunk-VK7XMFVE.js} +1 -1
- package/static/{chunk-RT3K6DZR.js → chunk-VQJYCYWI.js} +1 -1
- package/static/{chunk-MVZJSG5R.js → chunk-XQGPSNQB.js} +1 -1
- package/static/{chunk-2XPHUNYN.js → chunk-ZXXHFBGL.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-3PLRDZTO.js → main-56PZQ6TJ.js} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ot}from"./chunk-XCLK7NJL.js";import{n as it,r as nt}from"./chunk-BYWSTP3P.js";import{a as at,b as st}from"./chunk-ZCOWBVOT.js";import{J as qe,Nb as et,Pb as tt,c as Be,d as X,f as z,g as fe,gb as Je,h as J,l as ye,o as $,p as ee,s as Ye,t as Ke}from"./chunk-5HNQLBSW.js";import{Aa as R,Ac as ue,Bb as M,Cd as $e,E as be,Eb as b,Ed as We,Gb as r,H as Se,Ha as U,Ia as ne,Ic as De,J as ie,Jc as Fe,Jd as Ge,Kb as B,Kd as je,Lb as H,Mb as V,Mc as ke,Oa as c,Pb as F,Pc as Re,Qa as g,Qb as Ae,Qc as Ue,Ra as K,Rb as le,Sb as q,Tb as S,Ub as T,Wa as ae,Xa as v,Xb as he,Ya as Ie,Yb as ce,Zb as pe,_ as Te,a as ve,aa as Y,ab as Q,bb as we,c as Ce,cb as Z,cc as Pe,db as Me,ea as Ee,ec as de,fa as Oe,fb as w,fd as He,id as Ve,ja as D,jc as me,jd as Ne,k as te,kb as se,kc as E,lb as C,lc as Le,mb as x,mc as I,o as xe,oa as y,oc as N,od as ze,og as Xe,pa as _,pb as oe,qb as re,r as G,rb as p,sb as m,tb as u,ub as f,vf as Qe,x as j,zf as Ze}from"./chunk-IOIBQGHN.js";var Jt=(()=>{let a=class a{constructor(){this.maxMove=10,this.maxDuration=350,this.doubleTapInterval=600,this.doubleTapSlop=24,this.enableDoubleTap=!0,this.emitSingleWhenNoDouble=!1,this.preventGhostClick=!0,this.preventDefault=!1,this.disabled=!1,this.appTap=new g,this.elRef=D(R),this.zone=D(K),this.removeFns=[],this.active=!1,this.pointerId=null,this.startX=0,this.startY=0,this.startTime=0,this.moved=!1,this.lastEmitTs=0,this.pendingSingle=null,this.singleTimer=null,this.onDown=e=>{this.disabled||e.button!==0||this.active||(this.active=!0,this.pointerId=e.pointerId,this.startX=e.clientX,this.startY=e.clientY,this.startTime=e.timeStamp,this.moved=!1,e.target.setPointerCapture?.(e.pointerId))},this.onMove=e=>{if(!(!this.active||e.pointerId!==this.pointerId)&&!this.moved){let t=Math.abs(e.clientX-this.startX),i=Math.abs(e.clientY-this.startY);(t>this.maxMove||i>this.maxMove)&&(this.moved=!0)}},this.onUp=e=>{if(!this.active||e.pointerId!==this.pointerId)return;let t=e.timeStamp-this.startTime,i=Math.abs(e.clientX-this.startX),o=Math.abs(e.clientY-this.startY),l=!this.moved&&i<=this.maxMove&&o<=this.maxMove&&t<=this.maxDuration;if(this.resetGesture(),!l)return;this.preventDefault&&e.preventDefault();let h=performance.now(),d=e.clientX,O=e.clientY;if(!this.enableDoubleTap){this.emit("single",d,O,e);return}if(this.pendingSingle){let P=h-this.pendingSingle.t,L=Math.hypot(d-this.pendingSingle.x,O-this.pendingSingle.y);if(P<=this.doubleTapInterval&&L<=this.doubleTapSlop){clearTimeout(this.singleTimer),this.singleTimer=null,this.pendingSingle=null,this.emit("double",d,O,e);return}}this.pendingSingle={x:d,y:O,t:h},clearTimeout(this.singleTimer),this.singleTimer=setTimeout(()=>{if(this.emitSingleWhenNoDouble){let P=this.pendingSingle;this.emit("single",P.x,P.y)}this.pendingSingle=null,this.singleTimer=null},this.doubleTapInterval)},this.onCancel=()=>this.resetGesture(),this.onKey=e=>{if(this.disabled)return;let t=e.key.toLowerCase();if(t==="enter"||t===" "){if(e.preventDefault(),this.enableDoubleTap&&!this.emitSingleWhenNoDouble)return;this.emit("single",0,0,e)}},this.onContextMenu=e=>{this.preventDefault&&e.preventDefault()},this.onNativeClick=e=>{this.preventGhostClick&&performance.now()-this.lastEmitTs<350&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},this.el=this.elRef.nativeElement,this.zone.runOutsideAngular(()=>{this.add("pointerdown",this.onDown,{passive:!0}),this.add("pointermove",this.onMove,{passive:!0}),this.add("pointerup",this.onUp,{passive:!1}),this.add("pointercancel",this.onCancel,{passive:!0}),this.add("pointerleave",this.onCancel,{passive:!0}),this.add("keydown",this.onKey,{passive:!1}),this.add("contextmenu",this.onContextMenu,{passive:!1}),this.add("click",this.onNativeClick,{passive:!1,capture:!0})})}ngOnDestroy(){for(let e of this.removeFns)e();this.removeFns=[],clearTimeout(this.singleTimer)}emit(e,t,i,o){this.lastEmitTs=performance.now(),this.zone.run(()=>this.appTap.emit({x:t,y:i,type:e,sourceEvent:o}))}add(e,t,i){this.el.addEventListener(e,t,i),this.removeFns.push(()=>this.el.removeEventListener(e,t,i))}resetGesture(){this.active=!1,this.pointerId=null,this.startTime=0}};a.\u0275fac=function(t){return new(t||a)},a.\u0275dir=Z({type:a,selectors:[["","appTap",""]],hostAttrs:[2,"touch-action","manipulation","-webkit-tap-highlight-color","transparent"],inputs:{maxMove:"maxMove",maxDuration:"maxDuration",doubleTapInterval:"doubleTapInterval",doubleTapSlop:"doubleTapSlop",enableDoubleTap:"enableDoubleTap",emitSingleWhenNoDouble:"emitSingleWhenNoDouble",preventGhostClick:"preventGhostClick",preventDefault:"preventDefault",disabled:"disabled"},outputs:{appTap:"appTap"}});let n=a;return n})();var ut=["ulElement"],ft=["liElements"],yt=(n,a,s,e)=>({matches:n,itemTemplate:a,query:s,$implicit:e}),_t=(n,a,s,e)=>({item:n,index:a,match:s,query:e});function gt(n,a){}function vt(n,a){if(n&1&&f(0,"span",4),n&2){let s=a.match,e=a.query,t=r();p("innerHtml",t.highlight(s,e),U)}}function Ct(n,a){if(n&1&&(m(0,"h6",8),S(1),u()),n&2){let s=r().$implicit;c(),T(s)}}function xt(n,a){}function bt(n,a){if(n&1){let s=M();m(0,"button",9,2),b("click",function(t){y(s);let i=r().$implicit,o=r(2);return _(o.selectMatch(i,t))})("mouseenter",function(){y(s);let t=r().$implicit,i=r(2);return _(i.selectActive(t))}),w(2,xt,0,0,"ng-template",3),u()}if(n&2){let s=r(),e=s.$implicit,t=s.index,i=r(2),o=F(2);le("active",i.isActive(e)),p("id",i.popupId+"-"+t)("@typeaheadAnimation",i.animationState),c(2),p("ngTemplateOutlet",i.itemTemplate||o)("ngTemplateOutletContext",me(6,_t,e.item,t,e,i.query))}}function St(n,a){if(n&1&&w(0,Ct,2,1,"h6",6)(1,bt,3,11,"ng-template",7),n&2){let s=a.$implicit;p("ngIf",s.isHeader()),c(),p("ngIf",!s.isHeader())}}function Tt(n,a){if(n&1&&w(0,St,2,2,"ng-template",5),n&2){let s=r();p("ngForOf",s.matches)}}var Et={\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 k=class{constructor(a,s=a,e=!1){this.item=a,this.value=s,this.header=e}isHeader(){return this.header}toString(){return this.value}};function W(n){return n?n.replace(/[^A-Za-z0-9[\] ]/g,function(a){return Et[a]||a}):""}function ge(n,a=" ",s="",e){let t=[];if(!e)t=rt(n,a,s);else{let i=`([${e}]+)`,o=n.split(new RegExp(i,"g")),l=o[o.length-1];l>""&&(a&&s?t=rt(l,a,s):t.push(l))}return t}function rt(n,a,s){let e=[],t=`(?:[${s}])([^${s}]+)(?:[${s}])|([^${a}]+)`,i=n.split(new RegExp(t,"g")),o=i.length,l,h=new RegExp(`[${s}]+`,"g");for(let d=0;d<o;d+=1)l=i[d],l&&l.length&&l!==a&&e.push(l.replace(h,""));return e}function A(n,a){if(!a||typeof n!="object")return n.toString();if(a.endsWith("()")){let t=a.slice(0,a.length-2);return n[t]().toString()}let e=a.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let t of e)t in n&&(n=n[t]);return n?n.toString():""}var lt="220ms cubic-bezier(0, 0, 0.2, 1)",Ot=Be("typeaheadAnimation",[fe("animated-down",z({height:"*",overflow:"hidden"})),J("* => animated-down",[z({height:0,overflow:"hidden"}),X(lt)]),fe("animated-up",z({height:"*",overflow:"hidden"})),J("* => animated-up",[z({height:"*",overflow:"hidden"}),X(lt)]),J("* => unanimated",X("0s"))]),It=0,wt=(()=>{let a=class a{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,o){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=o,this.activeChangeEvent=new g,this.isFocused=!1,this.positionServiceSubscription=new ve,this.height=0,this.popupId=`ngb-typeahead-${It++}`,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,o=(this.parent&&this.parent.typeaheadLatinize?W(i):i).toLowerCase(),l,h;if(typeof t=="object"){let d=t.length,O="\u2063",P=17;for(let L=0;L<d;L+=1)l=o.indexOf(t[L]),h=t[L].length,l>=0&&h>0&&(i=`${i.substring(0,l)}<strong>${i.substring(l,l+h)}</strong>${i.substring(l+h)}`,o=`${o.substring(0,l)}${O.repeat(P+h)}${o.substring(l+h)}`)}else t&&(l=o.indexOf(t),h=t.length,l>=0&&h>0&&(i=`${i.substring(0,l)}<strong>${i.substring(l,l+h)}</strong>${i.substring(l+h)}`));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=ye.getStyles(this.ulElement.nativeElement),t=ye.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),o=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),l=parseFloat((t.height?t.height:"0").replace("px","")),h=this.typeaheadOptionsInScrollableView*l;this.guiHeight=`${h+o+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),o=e.offsetTop;return o+e.offsetHeight<=i&&o>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}};a.\u0275fac=function(t){return new(t||a)(v($),v(ae),v(R),v(ue))},a.\u0275cmp=Q({type:a,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(B(ut,5),B(ft,5)),t&2){let o;H(o=V())&&(i.ulElement=o.first),H(o=V())&&(i.liElements=o)}},hostAttrs:[1,"dropdown","open","bottom","dropdown-menu",2,"position","absolute","display","block"],hostVars:7,hostBindings:function(t,i){t&1&&b("mouseleave",function(){return i.focusLost()})("blur",function(){return i.focusLost()}),t&2&&(se("role","listbox"),Ae("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),le("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[de([$])],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&&w(0,gt,0,0,"ng-template",3)(1,vt,1,1,"ng-template",null,0,N)(3,Tt,1,1,"ng-template",null,1,N),t&2){let o=F(2),l=F(4);p("ngTemplateOutlet",i.optionsListTemplate||l)("ngTemplateOutletContext",me(2,yt,i.matches,i.itemTemplate||o,i.query,i.typeaheadTemplateMethods))}},dependencies:[ke,De,Fe],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Ot]}});let n=a;return n})(),ht=(()=>{let a=class a{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}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=Ee({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})(),ct=(()=>{let a=class a{constructor(e,t,i,o,l,h,d){this.changeDetection=i,this.element=o,this.ngControl=l,this.renderer=h,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 g,this.typeaheadNoResults=new g,this.typeaheadOnSelect=new g,this.typeaheadOnPreview=new g,this.typeaheadOnBlur=new g,this.dropup=!1,this.isOpen=!1,this.list="list",this.isActiveItemChanged=!1,this.isFocused=!1,this.cancelRequestOnFocusLost=!1,this.selectItemOnBlur=!1,this.keyUpEventEmitter=new g,this.placement="bottom left",this._matches=[],this._subscriptions=[],this._outsideClickListener=()=>{},this._typeahead=e.createLoader(o,d,h).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&&!G(this.typeahead)&&(this.typeaheadAsync=!1),G(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 k(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(wt).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?W(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(ie(this.typeaheadWaitMs),Y(e=>this._allEnteredValue=e),Te(()=>this.typeahead?this.typeahead:te)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(ie(this.typeaheadWaitMs),j(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(G(this.typeahead)?this.typeahead:xe(this.typeahead)).pipe(be(o=>!!o&&this.testMatch(this.normalizeOption(o),t)),Se()):te})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=A(e,this.typeaheadOptionField);return(this.typeaheadLatinize?W(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=ge(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=ge(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=ge(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?W(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let o=0;o<i;o+=1)if(t[o].length>0&&e.indexOf(t[o])<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?W(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 o=[];i.map(h=>A(h,this.typeaheadGroupField)).filter((h,d,O)=>O.indexOf(h)===d).forEach(h=>{o.push(new k(h,h,!0)),o=o.concat(i.filter(d=>A(d,this.typeaheadGroupField)===h).map(d=>new k(d,A(d,this.typeaheadOptionField))))}),this._matches=o}else this._matches=i.map(o=>new k(o,A(o,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((o,l)=>{let h=A(o,t),d=A(l,t);return h<d?i==="asc"?-1:1:h>d?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{e as ot}from"./chunk-XCLK7NJL.js";import{n as it,r as nt}from"./chunk-FNOTGWRW.js";import{a as at,b as st}from"./chunk-ZCOWBVOT.js";import{J as qe,Nb as et,Pb as tt,c as Be,d as X,f as z,g as fe,gb as Je,h as J,l as ye,o as $,p as ee,s as Ye,t as Ke}from"./chunk-I2S3XPC5.js";import{Aa as R,Ac as ue,Bb as M,Cd as $e,E as be,Eb as b,Ed as We,Gb as r,H as Se,Ha as U,Ia as ne,Ic as De,J as ie,Jc as Fe,Jd as Ge,Kb as B,Kd as je,Lb as H,Mb as V,Mc as ke,Oa as c,Pb as F,Pc as Re,Qa as g,Qb as Ae,Qc as Ue,Ra as K,Rb as le,Sb as q,Tb as S,Ub as T,Wa as ae,Xa as v,Xb as he,Ya as Ie,Yb as ce,Zb as pe,_ as Te,a as ve,aa as Y,ab as Q,bb as we,c as Ce,cb as Z,cc as Pe,db as Me,ea as Ee,ec as de,fa as Oe,fb as w,fd as He,id as Ve,ja as D,jc as me,jd as Ne,k as te,kb as se,kc as E,lb as C,lc as Le,mb as x,mc as I,o as xe,oa as y,oc as N,od as ze,og as Xe,pa as _,pb as oe,qb as re,r as G,rb as p,sb as m,tb as u,ub as f,vf as Qe,x as j,zf as Ze}from"./chunk-IOIBQGHN.js";var Jt=(()=>{let a=class a{constructor(){this.maxMove=10,this.maxDuration=350,this.doubleTapInterval=600,this.doubleTapSlop=24,this.enableDoubleTap=!0,this.emitSingleWhenNoDouble=!1,this.preventGhostClick=!0,this.preventDefault=!1,this.disabled=!1,this.appTap=new g,this.elRef=D(R),this.zone=D(K),this.removeFns=[],this.active=!1,this.pointerId=null,this.startX=0,this.startY=0,this.startTime=0,this.moved=!1,this.lastEmitTs=0,this.pendingSingle=null,this.singleTimer=null,this.onDown=e=>{this.disabled||e.button!==0||this.active||(this.active=!0,this.pointerId=e.pointerId,this.startX=e.clientX,this.startY=e.clientY,this.startTime=e.timeStamp,this.moved=!1,e.target.setPointerCapture?.(e.pointerId))},this.onMove=e=>{if(!(!this.active||e.pointerId!==this.pointerId)&&!this.moved){let t=Math.abs(e.clientX-this.startX),i=Math.abs(e.clientY-this.startY);(t>this.maxMove||i>this.maxMove)&&(this.moved=!0)}},this.onUp=e=>{if(!this.active||e.pointerId!==this.pointerId)return;let t=e.timeStamp-this.startTime,i=Math.abs(e.clientX-this.startX),o=Math.abs(e.clientY-this.startY),l=!this.moved&&i<=this.maxMove&&o<=this.maxMove&&t<=this.maxDuration;if(this.resetGesture(),!l)return;this.preventDefault&&e.preventDefault();let h=performance.now(),d=e.clientX,O=e.clientY;if(!this.enableDoubleTap){this.emit("single",d,O,e);return}if(this.pendingSingle){let P=h-this.pendingSingle.t,L=Math.hypot(d-this.pendingSingle.x,O-this.pendingSingle.y);if(P<=this.doubleTapInterval&&L<=this.doubleTapSlop){clearTimeout(this.singleTimer),this.singleTimer=null,this.pendingSingle=null,this.emit("double",d,O,e);return}}this.pendingSingle={x:d,y:O,t:h},clearTimeout(this.singleTimer),this.singleTimer=setTimeout(()=>{if(this.emitSingleWhenNoDouble){let P=this.pendingSingle;this.emit("single",P.x,P.y)}this.pendingSingle=null,this.singleTimer=null},this.doubleTapInterval)},this.onCancel=()=>this.resetGesture(),this.onKey=e=>{if(this.disabled)return;let t=e.key.toLowerCase();if(t==="enter"||t===" "){if(e.preventDefault(),this.enableDoubleTap&&!this.emitSingleWhenNoDouble)return;this.emit("single",0,0,e)}},this.onContextMenu=e=>{this.preventDefault&&e.preventDefault()},this.onNativeClick=e=>{this.preventGhostClick&&performance.now()-this.lastEmitTs<350&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},this.el=this.elRef.nativeElement,this.zone.runOutsideAngular(()=>{this.add("pointerdown",this.onDown,{passive:!0}),this.add("pointermove",this.onMove,{passive:!0}),this.add("pointerup",this.onUp,{passive:!1}),this.add("pointercancel",this.onCancel,{passive:!0}),this.add("pointerleave",this.onCancel,{passive:!0}),this.add("keydown",this.onKey,{passive:!1}),this.add("contextmenu",this.onContextMenu,{passive:!1}),this.add("click",this.onNativeClick,{passive:!1,capture:!0})})}ngOnDestroy(){for(let e of this.removeFns)e();this.removeFns=[],clearTimeout(this.singleTimer)}emit(e,t,i,o){this.lastEmitTs=performance.now(),this.zone.run(()=>this.appTap.emit({x:t,y:i,type:e,sourceEvent:o}))}add(e,t,i){this.el.addEventListener(e,t,i),this.removeFns.push(()=>this.el.removeEventListener(e,t,i))}resetGesture(){this.active=!1,this.pointerId=null,this.startTime=0}};a.\u0275fac=function(t){return new(t||a)},a.\u0275dir=Z({type:a,selectors:[["","appTap",""]],hostAttrs:[2,"touch-action","manipulation","-webkit-tap-highlight-color","transparent"],inputs:{maxMove:"maxMove",maxDuration:"maxDuration",doubleTapInterval:"doubleTapInterval",doubleTapSlop:"doubleTapSlop",enableDoubleTap:"enableDoubleTap",emitSingleWhenNoDouble:"emitSingleWhenNoDouble",preventGhostClick:"preventGhostClick",preventDefault:"preventDefault",disabled:"disabled"},outputs:{appTap:"appTap"}});let n=a;return n})();var ut=["ulElement"],ft=["liElements"],yt=(n,a,s,e)=>({matches:n,itemTemplate:a,query:s,$implicit:e}),_t=(n,a,s,e)=>({item:n,index:a,match:s,query:e});function gt(n,a){}function vt(n,a){if(n&1&&f(0,"span",4),n&2){let s=a.match,e=a.query,t=r();p("innerHtml",t.highlight(s,e),U)}}function Ct(n,a){if(n&1&&(m(0,"h6",8),S(1),u()),n&2){let s=r().$implicit;c(),T(s)}}function xt(n,a){}function bt(n,a){if(n&1){let s=M();m(0,"button",9,2),b("click",function(t){y(s);let i=r().$implicit,o=r(2);return _(o.selectMatch(i,t))})("mouseenter",function(){y(s);let t=r().$implicit,i=r(2);return _(i.selectActive(t))}),w(2,xt,0,0,"ng-template",3),u()}if(n&2){let s=r(),e=s.$implicit,t=s.index,i=r(2),o=F(2);le("active",i.isActive(e)),p("id",i.popupId+"-"+t)("@typeaheadAnimation",i.animationState),c(2),p("ngTemplateOutlet",i.itemTemplate||o)("ngTemplateOutletContext",me(6,_t,e.item,t,e,i.query))}}function St(n,a){if(n&1&&w(0,Ct,2,1,"h6",6)(1,bt,3,11,"ng-template",7),n&2){let s=a.$implicit;p("ngIf",s.isHeader()),c(),p("ngIf",!s.isHeader())}}function Tt(n,a){if(n&1&&w(0,St,2,2,"ng-template",5),n&2){let s=r();p("ngForOf",s.matches)}}var Et={\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 k=class{constructor(a,s=a,e=!1){this.item=a,this.value=s,this.header=e}isHeader(){return this.header}toString(){return this.value}};function W(n){return n?n.replace(/[^A-Za-z0-9[\] ]/g,function(a){return Et[a]||a}):""}function ge(n,a=" ",s="",e){let t=[];if(!e)t=rt(n,a,s);else{let i=`([${e}]+)`,o=n.split(new RegExp(i,"g")),l=o[o.length-1];l>""&&(a&&s?t=rt(l,a,s):t.push(l))}return t}function rt(n,a,s){let e=[],t=`(?:[${s}])([^${s}]+)(?:[${s}])|([^${a}]+)`,i=n.split(new RegExp(t,"g")),o=i.length,l,h=new RegExp(`[${s}]+`,"g");for(let d=0;d<o;d+=1)l=i[d],l&&l.length&&l!==a&&e.push(l.replace(h,""));return e}function A(n,a){if(!a||typeof n!="object")return n.toString();if(a.endsWith("()")){let t=a.slice(0,a.length-2);return n[t]().toString()}let e=a.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(let t of e)t in n&&(n=n[t]);return n?n.toString():""}var lt="220ms cubic-bezier(0, 0, 0.2, 1)",Ot=Be("typeaheadAnimation",[fe("animated-down",z({height:"*",overflow:"hidden"})),J("* => animated-down",[z({height:0,overflow:"hidden"}),X(lt)]),fe("animated-up",z({height:"*",overflow:"hidden"})),J("* => animated-up",[z({height:"*",overflow:"hidden"}),X(lt)]),J("* => unanimated",X("0s"))]),It=0,wt=(()=>{let a=class a{get typeaheadTemplateMethods(){return{selectMatch:this.selectMatch.bind(this),selectActive:this.selectActive.bind(this),isActive:this.isActive.bind(this)}}constructor(e,t,i,o){this.positionService=e,this.renderer=t,this.element=i,this.changeDetectorRef=o,this.activeChangeEvent=new g,this.isFocused=!1,this.positionServiceSubscription=new ve,this.height=0,this.popupId=`ngb-typeahead-${It++}`,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,o=(this.parent&&this.parent.typeaheadLatinize?W(i):i).toLowerCase(),l,h;if(typeof t=="object"){let d=t.length,O="\u2063",P=17;for(let L=0;L<d;L+=1)l=o.indexOf(t[L]),h=t[L].length,l>=0&&h>0&&(i=`${i.substring(0,l)}<strong>${i.substring(l,l+h)}</strong>${i.substring(l+h)}`,o=`${o.substring(0,l)}${O.repeat(P+h)}${o.substring(l+h)}`)}else t&&(l=o.indexOf(t),h=t.length,l>=0&&h>0&&(i=`${i.substring(0,l)}<strong>${i.substring(l,l+h)}</strong>${i.substring(l+h)}`));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=ye.getStyles(this.ulElement.nativeElement),t=ye.getStyles(this.liElements.first.nativeElement),i=parseFloat((e["padding-bottom"]?e["padding-bottom"]:"").replace("px","")),o=parseFloat((e["padding-top"]?e["padding-top"]:"0").replace("px","")),l=parseFloat((t.height?t.height:"0").replace("px","")),h=this.typeaheadOptionsInScrollableView*l;this.guiHeight=`${h+o+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),o=e.offsetTop;return o+e.offsetHeight<=i&&o>=t}scrollToBottom(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight)}scrollToTop(){this.ulElement?.nativeElement&&(this.ulElement.nativeElement.scrollTop=0)}};a.\u0275fac=function(t){return new(t||a)(v($),v(ae),v(R),v(ue))},a.\u0275cmp=Q({type:a,selectors:[["typeahead-container"]],viewQuery:function(t,i){if(t&1&&(B(ut,5),B(ft,5)),t&2){let o;H(o=V())&&(i.ulElement=o.first),H(o=V())&&(i.liElements=o)}},hostAttrs:[1,"dropdown","open","bottom","dropdown-menu",2,"position","absolute","display","block"],hostVars:7,hostBindings:function(t,i){t&1&&b("mouseleave",function(){return i.focusLost()})("blur",function(){return i.focusLost()}),t&2&&(se("role","listbox"),Ae("height",i.needScrollbar?i.guiHeight:"auto")("visibility","inherit"),le("dropup",i.dropup))},outputs:{activeChangeEvent:"activeChange"},features:[de([$])],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&&w(0,gt,0,0,"ng-template",3)(1,vt,1,1,"ng-template",null,0,N)(3,Tt,1,1,"ng-template",null,1,N),t&2){let o=F(2),l=F(4);p("ngTemplateOutlet",i.optionsListTemplate||l)("ngTemplateOutletContext",me(2,yt,i.matches,i.itemTemplate||o,i.query,i.typeaheadTemplateMethods))}},dependencies:[ke,De,Fe],styles:[".dropdown[_nghost-%COMP%]{z-index:1000}.dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;height:100px}"],data:{animation:[Ot]}});let n=a;return n})(),ht=(()=>{let a=class a{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}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=Ee({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})(),ct=(()=>{let a=class a{constructor(e,t,i,o,l,h,d){this.changeDetection=i,this.element=o,this.ngControl=l,this.renderer=h,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 g,this.typeaheadNoResults=new g,this.typeaheadOnSelect=new g,this.typeaheadOnPreview=new g,this.typeaheadOnBlur=new g,this.dropup=!1,this.isOpen=!1,this.list="list",this.isActiveItemChanged=!1,this.isFocused=!1,this.cancelRequestOnFocusLost=!1,this.selectItemOnBlur=!1,this.keyUpEventEmitter=new g,this.placement="bottom left",this._matches=[],this._subscriptions=[],this._outsideClickListener=()=>{},this._typeahead=e.createLoader(o,d,h).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&&!G(this.typeahead)&&(this.typeaheadAsync=!1),G(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 k(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(wt).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?W(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(ie(this.typeaheadWaitMs),Y(e=>this._allEnteredValue=e),Te(()=>this.typeahead?this.typeahead:te)).subscribe(e=>{this.finalizeAsyncCall(e)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(ie(this.typeaheadWaitMs),j(e=>{this._allEnteredValue=e;let t=this.normalizeQuery(e);return this.typeahead?(G(this.typeahead)?this.typeahead:xe(this.typeahead)).pipe(be(o=>!!o&&this.testMatch(this.normalizeOption(o),t)),Se()):te})).subscribe(e=>{this.finalizeAsyncCall(e)}))}normalizeOption(e){let t=A(e,this.typeaheadOptionField);return(this.typeaheadLatinize?W(t):t).toLowerCase()}tokenizeQuery(e){let t=e;return this.typeaheadMultipleSearch&&this.typeaheadSingleWords?this.haveCommonCharacters(`${this.typeaheadPhraseDelimiters}${this.typeaheadWordDelimiters}`,this.typeaheadMultipleSearchDelimiters)||(t=ge(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters,this.typeaheadMultipleSearchDelimiters)):this.typeaheadSingleWords?t=ge(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t=ge(t,void 0,void 0,this.typeaheadMultipleSearchDelimiters),t}normalizeQuery(e){let t=(this.typeaheadLatinize?W(e):e).toString().toLowerCase();return t=this.tokenizeQuery(t),t}testMatch(e,t){let i;if(typeof t=="object"){i=t.length;for(let o=0;o<i;o+=1)if(t[o].length>0&&e.indexOf(t[o])<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?W(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 o=[];i.map(h=>A(h,this.typeaheadGroupField)).filter((h,d,O)=>O.indexOf(h)===d).forEach(h=>{o.push(new k(h,h,!0)),o=o.concat(i.filter(d=>A(d,this.typeaheadGroupField)===h).map(d=>new k(d,A(d,this.typeaheadOptionField))))}),this._matches=o}else this._matches=i.map(o=>new k(o,A(o,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((o,l)=>{let h=A(o,t),d=A(l,t);return h<d?i==="asc"?-1:1:h>d?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}};a.\u0275fac=function(t){return new(t||a)(v(ee),v(ht),v(ue),v(R),v(Ve),v(ae),v(Ie))},a.\u0275dir=Z({type:a,selectors:[["","typeahead",""]],hostVars:4,hostBindings:function(t,i){t&1&&b("input",function(l){return i.onInput(l)})("keyup",function(l){return i.onChange(l)})("click",function(){return i.onFocus()})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("keydown",function(l){return i.onKeydown(l)}),t&2&&se("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:[de([ee,$])]});let n=a;return n})(),pt=(()=>{let a=class a{static forRoot(){return{ngModule:a,providers:[]}}};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=we({type:a}),a.\u0275inj=Oe({imports:[Ue]});let n=a;return n})();var dt=(()=>{let a=class a{transform(e,t,i=!1){if(i&&t.length<1)return e;if(t&&e){let o=t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");o=o.split(" ").filter(h=>h.length>0).join("|");let l=new RegExp(o,"gi");return e.replace(l,h=>`<b>${h}</b>`)}else return e}};a.\u0275fac=function(t){return new(t||a)},a.\u0275pipe=Me({name:"highlight",type:a,pure:!0});let n=a;return n})();var At=["InputTypeHead"],Pt=(n,a)=>a.mid,Lt=(n,a)=>a.key;function Dt(n,a){if(n&1&&f(0,"img",7),n&2){let s=r().item;p("src",s.avatarUrl,ne)}}function Ft(n,a){if(n&1&&f(0,"fa-icon",13),n&2){let s=r().item,e=r();q(s.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),p("icon",e.icons.GROUPS)}}function kt(n,a){if(n&1&&(f(0,"span",10),E(1,"highlight")),n&2){let s=r().item,e=r();p("innerHTML",I(1,1,s.description,e.selection),U)}}function Rt(n,a){if(n&1&&(m(0,"div",5)(1,"div",6),C(2,Dt,1,1,"img",7)(3,Ft,1,3,"fa-icon",8),u(),m(4,"div"),f(5,"div",9),E(6,"highlight"),C(7,kt,2,4,"span",10),u(),m(8,"div",11)(9,"span",12),S(10),u()()()),n&2){let s=a.item,e=r();c(2),x(s.isUser?2:3),c(2),q(Pe("d-flex ms-2 pe-5 ",s.description?"flex-column align-items-start":"align-items-center")),c(),p("innerHTML",I(6,7,s.name,e.selection),U),c(2),x(s.description?7:-1),c(3),T(s.type)}}function Ut(n,a){if(n&1){let s=M();m(0,"input",14,1),E(2,"translate"),b("typeaheadOnSelect",function(t){y(s);let i=r();return _(i.onSelect(t))})("typeaheadLoading",function(){y(s);let t=r();return _(t.onLoading())})("typeaheadNoResults",function(){y(s);let t=r();return _(t.onNoResults())})("typeaheadOnPreview",function(){y(s);let t=r();return _(t.onPreview())}),pe("ngModelChange",function(t){y(s);let i=r();return ce(i.selection,t)||(i.selection=t),_(t)}),u()}if(n&2){let s=r(),e=F(1);he("ngModel",s.selection),p("placeholder",I(2,10,s.placeHolder,s.locale.language))("typeaheadItemTemplate",e)("typeaheadAsync",!0)("typeaheadMinLength",0)("typeaheadSingleWords",!0)("typeaheadOptionField","name")("typeaheadWaitMs",100)("typeaheadHideResultsOnBlur",!0)("typeahead",s.asyncSearchUsersOrGroups)}}function Bt(n,a){if(n&1&&f(0,"img",7),n&2){let s=r().$implicit;p("src",s.avatarUrl,ne)}}function Ht(n,a){if(n&1&&f(0,"fa-icon",17),n&2){let s=r(2);p("icon",s.icons.LINKS)}}function Vt(n,a){if(n&1&&f(0,"fa-icon",13),n&2){let s=r().$implicit,e=r();q(s.isPersonalGroup?"circle-purple-icon":"circle-primary-icon"),p("icon",e.icons.GROUPS)}}function Nt(n,a){if(n&1&&(m(0,"span",21),S(1),u()),n&2){let s=r().$implicit;c(),T(s.description)}}function zt(n,a){if(n&1&&(m(0,"span",22),S(1),u()),n&2){let s=r().$implicit;c(),T(s.type)}}function $t(n,a){if(n&1){let s=M();m(0,"button",32),E(1,"translate"),pe("ngModelChange",function(t){y(s);let i=r().$implicit,o=r(3).$implicit;return ce(o.hPerms[i.key],t)||(o.hPerms[i.key]=t),_(t)}),b("ngModelChange",function(){y(s);let t=r(4).$implicit,i=r();return _(i.onPermissionChange(t))}),f(2,"fa-icon",33),u()}if(n&2){let s=r().$implicit,e=r(3).$implicit,t=r();he("ngModel",e.hPerms[s.key]),p("tooltip",I(1,3,t.SPACES_PERMISSIONS_TEXT[s.key].text,t.locale.language)),c(2),p("icon",t.SPACES_PERMISSIONS_TEXT[s.key].icon)}}function Wt(n,a){if(n&1&&C(0,$t,3,6,"button",31),n&2){let s=a.$implicit,e=r(4);x(!e.filterPermissions||(e.filterPermissions&&e.allowedPermissions.indexOf(s.key))>-1?0:-1)}}function Gt(n,a){if(n&1&&(oe(0,Wt,1,1,null,null,Lt),E(2,"keyvalue"),f(3,"div",30)),n&2){let s=r(2).$implicit,e=r();re(I(2,0,s.hPerms,e.originalOrderKeyValue))}}function jt(n,a){if(n&1){let s=M();m(0,"button",34),E(1,"translate"),b("click",function(){y(s);let t=r(2).$implicit,i=r();return _(i.editFunction(t))}),f(2,"fa-icon",13),u()}if(n&2){let s=r(3);p("tooltip",I(1,2,"Edit",s.locale.language)),c(2),p("icon",s.icons.faPen)}}function Yt(n,a){if(n&1){let s=M();m(0,"div",26),f(1,"div",27),C(2,Gt,4,3),C(3,jt,3,5,"button",28),m(4,"button",29),E(5,"translate"),b("click",function(){y(s);let t=r().$implicit,i=r();return _(i.removeMember(t))}),f(6,"fa-icon",13),u()()}if(n&2){let s=r(2);c(2),x(s.withPermissions?2:-1),c(),x(s.editFunction?3:-1),c(),p("tooltip",I(5,4,"Remove",s.locale.language)),c(2),p("icon",s.icons.faTimes)}}function Kt(n,a){if(n&1&&(m(0,"div",4)(1,"div",15)(2,"div",16),C(3,Bt,1,1,"img",7)(4,Ht,1,1,"fa-icon",17)(5,Vt,1,3,"fa-icon",8),m(6,"div",18)(7,"div",19),S(8),u(),m(9,"div",20),C(10,Nt,2,1,"span",21)(11,zt,2,1,"span",22),u()()(),m(12,"div",23)(13,"div",24),S(14),u(),m(15,"div",25),S(16),E(17,"amTimeAgo"),u()(),C(18,Yt,7,7,"div",26),u()()),n&2){let s=a.$implicit,e=r();c(3),x(s.isUser?3:s.isLink?4:5),c(5),T(s.name),c(2),x(s.description?10:s.linkId?-1:11),c(4),T(s.isLink?e.MEMBER_TYPE.LINK:s.type),c(2),T(Le(17,6,s.createdAt)),c(2),x(e.editMode?18:-1)}}var Gi=(()=>{let a=class a{constructor(){this.members=[],this.membersChange=new g,this.withPermissions=!1,this.filterPermissions=!1,this.allowedPermissions=[],this.editMode=!0,this.hideInput=!1,this.editFunction=null,this.locale=D(We),this.MEMBER_TYPE=it,this.originalOrderKeyValue=Je,this.SPACES_PERMISSIONS_TEXT=tt,this.icons={GROUPS:qe.GROUPS,LINKS:et.LINKS,faTimes:Qe,faPen:Ze},this.selection="",this.ngZone=D(K),this.defaultPlaceholder="Type to search for users or groups to add",this.placeHolder=this.defaultPlaceholder,this.lastResults=[],this.asyncSearchUsersOrGroups=new Ce(e=>e.next(this.selection)).pipe(j(e=>this.searchFunction(e||"").pipe(Y(t=>this.lastResults=t))))}ngOnInit(){this.setDefaultPlaceHolder()}onSelect(e){this.ngZone.run(()=>{this.selection="",this.inputTypeHead.nativeElement.value=""});let t=e.item;t.createdAt||(t.createdAt=new Date),this.members.unshift(e.item),this.membersChange.emit(this.members),this.lastResults=this.lastResults.filter(i=>i.mid!==t.mid)}onPermissionChange(e){e.permissions=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()}setDefaultPlaceHolder(){this.placeHolder=this.customPlaceholder||this.defaultPlaceholder}};a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=Q({type:a,selectors:[["app-user-search"]],viewQuery:function(t,i){if(t&1&&B(At,5),t&2){let o;H(o=V())&&(i.inputTypeHead=o.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&&(w(0,Rt,11,10,"ng-template",null,0,N),C(2,Ut,3,13,"input",2),m(3,"div",3),oe(4,Kt,19,8,"div",4,Pt),u()),t&2&&(c(2),x(i.hideInput?-1:2),c(2),re(i.members))},dependencies:[pt,ct,$e,He,Ne,ze,Xe,je,st,at,Ke,Ye,Ge,ot,dt,Re],encapsulation:2});let n=a;return n})();export{Jt as a,dt as b,Gi as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as fe}from"./chunk-RX3YQ67K.js";import"./chunk-YMAN4LIU.js";import{h as V}from"./chunk-2XPHUNYN.js";import{a as z}from"./chunk-MRMSMTWD.js";import{a as Q,b as _e}from"./chunk-7CFSJ4BO.js";import"./chunk-MYM43ENO.js";import"./chunk-OJCAIKUK.js";import{Cb as M,gb as ce,pb as pe,qb as me,rb as q,s as re,vb as de}from"./chunk-5HNQLBSW.js";import{d as G}from"./chunk-Y5RLD72B.js";import{Bb as b,Cd as ne,Eb as d,Ed as ie,Gb as p,Ia as H,Jd as oe,Kb as $,Kd as P,L as K,Lb as A,Mb as O,Oa as a,Pc as W,Qa as U,Qb as N,Rb as T,Sb as S,Tb as c,Ub as f,Uf as le,Vb as B,ab as k,cc as L,dc as Y,df as ae,dg as se,ff as D,ja as u,jd as J,kc as E,lb as h,mb as y,mc as F,oa as x,od as X,og as R,pa as v,pb as g,qb as w,rb as m,sb as n,tb as o,tc as j,ub as C,ud as Z,vd as ee,wd as te}from"./chunk-IOIBQGHN.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import"./chunk-KAVP6UXH.js";function Se(t,r){if(t&1&&(n(0,"span",6),c(1,"Events from"),o(),c(2,"\xA0"),n(3,"b"),c(4),o()),t&2){let e=p();a(4),f(e.syncPath.settings.name)}}function xe(t,r){t&1&&(n(0,"span",6),c(1,"All events"),o())}var ue=(()=>{let r=class r{constructor(){this.syncPath=null,this.wasDeleted=new U,this.layout=u(M),this.icons={faTrashCan:D},this.syncService=u(V)}doClear(){this.syncService.deleteTransfers(this.syncPath?.id).then(()=>{this.wasDeleted.emit(),this.layout.closeDialog()})}};r.\u0275fac=function(s){return new(s||r)},r.\u0275cmp=k({type:r,selectors:[["app-sync-transfers-delete-dialog"]],inputs:{syncPath:"syncPath"},outputs:{wasDeleted:"wasDeleted"},decls:18,vars:2,consts:[[1,"modal-header"],["translate","",1,"modal-title"],[3,"icon"],["l10nTranslate","",1,"ms-2"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["l10nTranslate",""],[1,"modal-footer"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary",3,"click"],["type","submit","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(s,l){s&1&&(n(0,"div",0)(1,"h4",1),C(2,"fa-icon",2),n(3,"span",3),c(4,"Clear events"),o()(),n(5,"button",4),d("click",function(){return l.layout.closeDialog()}),o()(),n(6,"div",5),h(7,Se,5,1)(8,xe,2,0,"span",6),n(9,"span"),c(10,"\xA0"),o(),n(11,"span",6),c(12,"will be cleared"),o()(),n(13,"div",7)(14,"button",8),d("click",function(){return l.layout.closeDialog()}),c(15,"Cancel"),o(),n(16,"button",9),d("click",function(){return l.doClear()}),c(17,"Confirm"),o()()),s&2&&(a(2),m("icon",l.icons.faTrashCan),a(5),y(l.syncPath?7:8))},dependencies:[P,R],encapsulation:2});let t=r;return t})();var he=(t,r)=>r.id,ye=(t,r)=>r.key;function ve(t,r){if(t&1&&(n(0,"option",4),c(1),o()),t&2){let e=r.$implicit;m("ngValue",e),a(),f(e.settings.name)}}function Te(t,r){if(t&1&&C(0,"fa-icon",14),t&2){let e=p(3);m("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)}}function ge(t,r){if(t&1){let e=b();n(0,"th",23),d("click",function(){x(e);let s=p().$implicit,l=p();return v(l.sortBy(s.key))}),c(1),h(2,Te,1,1,"fa-icon",14),o()}if(t&2){let e=p().$implicit,i=p();S(e.value.class),N("width",e.value.width,"%"),T("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),a(),B(" ",e.value.label," "),a(),y(i.sortTable.sortParam.column===e.key?2:-1)}}function we(t,r){if(t&1&&h(0,ge,3,10,"th",22),t&2){let e=r.$implicit;y(e.value.show?0:-1)}}function be(t,r){if(t&1&&(n(0,"span",26),C(1,"fa-icon",14)(2,"fa-icon",27),n(3,"span",28),c(4),o()()),t&2){let e=p(3).$implicit;a(),S(e.ok?e.sideIconClass:"circle-error-icon-sm"),m("icon",e.sideIcon),a(),T("text-danger",!e.ok),m("icon",e.actionIcon),a(),T("text-danger",!e.ok),a(),f(e.actionText)}}function Ee(t,r){if(t&1&&(n(0,"span",26)(1,"span",29),c(2),o()()),t&2){let e=p(3).$implicit;a(2),f(e.syncPathName)}}function Fe(t,r){if(t&1&&(n(0,"span"),c(1),o(),n(2,"span")(3,"b",33),c(4,"Source"),o(),c(5),o()),t&2){let e=p(4).$implicit;S(e.selected?"overflow-wrap-and-whitespace":"truncate"),a(),f(e.fileDst),a(),S(L("",e.selected?"overflow-wrap-and-whitespace":"truncate"," fs-xxxs")),a(3),B(":\xA0",e.file)}}function ke(t,r){if(t&1&&(n(0,"span"),c(1),o()),t&2){let e=p(4).$implicit;S(e.selected?"overflow-wrap-and-whitespace":"truncate"),a(),f(e.file)}}function Pe(t,r){if(t&1&&(n(0,"span"),c(1),o()),t&2){let e=p(4).$implicit;S(L("",e.selected?"overflow-wrap-and-whitespace":"truncate"," text-danger fs-xxxs")),a(),f(e.error)}}function De(t,r){if(t&1){let e=b();n(0,"div",26)(1,"img",30),d("error",function(){x(e);let s=p(3).$implicit;return v(s.fallBackMimeUrl())}),o(),n(2,"span",31),h(3,Fe,6,7)(4,ke,2,3,"span",32),h(5,Pe,2,4,"span",32),o()()}if(t&2){let e=p(3).$implicit;a(),m("src",e.mimeUrl,H),a(2),y(e.fileDst?3:4),a(2),y(e.ok?-1:5)}}function Re(t,r){if(t&1){let e=b();n(0,"div",34),d("mouseenter",function(){x(e);let s=p(3).$implicit;return v(s.hovered=!0)})("mouseleave",function(){x(e);let s=p(3).$implicit;return v(s.hovered=!1)}),n(1,"span"),c(2),o()()}if(t&2){let e=p(3).$implicit;a(2),f(e.hovered?e.timestamp:e.hTimeAgo)}}function Me(t,r){if(t&1&&(n(0,"td"),h(1,be,5,9,"span",26)(2,Ee,3,1,"span",26)(3,De,6,3,"div",26)(4,Re,3,1,"div"),o()),t&2){let e,i=p().$implicit,s=p().$implicit;S(Y("",i.value.class," ",i.value.newly?"prop-newly-"+s[i.value.newly]:"")),N("width",i.value.width,"%"),T("text-align-center",i.value.textCenter),a(),y((e=i.key)==="action"?1:e==="sync"?2:e==="file"?3:e==="date"?4:-1)}}function Ve(t,r){if(t&1&&h(0,Me,5,9,"td",25),t&2){let e=r.$implicit;y(e.value.show?0:-1)}}function Ie(t,r){if(t&1){let e=b();n(0,"tr",24),d("click",function(){let s=x(e).$implicit,l=p();return v(l.onSelect(s))}),g(1,Ve,1,1,null,null,ye),E(3,"keyvalue"),o()}if(t&2){let e=r.$implicit,i=p();T("selected",e.selected),a(),w(F(3,2,i.tableHeaders,i.originalOrderKeyValue))}}var _t=(()=>{let r=class r{constructor(){if(this.locale=u(ie),this.action=null,this.syncPathSelected=null,this.transfers=[],this.store=u(de),this.originalOrderKeyValue=ce,this.tableHeaders={action:{label:"Action",width:15,textCenter:!1,class:"",show:!0,sortable:!0},sync:{label:"Synchronization",width:15,textCenter:!1,class:"",show:!0,sortable:!0},file:{label:"File",width:55,textCenter:!1,class:"",show:!0,sortable:!0},date:{label:"Date",width:15,textCenter:!0,class:"",newly:"newly",show:!0,sortable:!0}},this.icons={faRedo:le,faTrashCan:D,faArrowDown:se,faArrowUp:ae},this.router=u(G),this.layout=u(M),this.syncService=u(V),this.sortSettings={default:[{prop:"timestamp",type:"date"}],action:[{prop:"actionText",type:"string"}],sync:[{prop:"syncPathName",type:"string"}],file:[{prop:"file",type:"string"}],date:[{prop:"timestamp",type:"date"}]},this.sortTable=new _e(this.constructor.name,this.sortSettings),this.focusOnSyncPathErrorsId=null,this.search=null,this.query=null,this.layout.setBreadcrumbIcon(me.TRANSFERS),this.layout.setBreadcrumbNav({url:`/${q.BASE}/${q.TRANSFERS}/${pe.TRANSFERS}`,splicing:2,translating:!0,sameLink:!0}),j(()=>{this.doSearch(this.inputFilter.search())}),this.checkRouteState(),this.focusOnSyncPathErrorsId){let i=this.store.clientSyncPaths().find(s=>s.id===this.focusOnSyncPathErrorsId);i?(this.syncPathSelected=i,this.onSelectAction("ERROR")):this.refresh()}else this.refresh()}doSearch(i){this.search=i,this.doQueryRefresh()}refresh(){this.onSelect(),this.syncService.getTransfers(this.syncPathSelected?.id,this.query).then(i=>{this.transfers=i.map(s=>new fe(s)),this.scrollView?.scrollInto(-1)})}onSelectPath(i){this.syncPathSelected=i,this.tableHeaders.sync.show=!this.syncPathSelected,this.refresh()}onSelectAction(i){this.action=i,this.doQueryRefresh()}onSelect(i){for(let s of this.transfers.filter(l=>l.selected))s.selected=!1;i&&(i.selected=!0)}openClearDialog(){this.layout.openDialog(ue,"md",{initialState:{syncPath:this.syncPathSelected||null}}).content.wasDeleted.pipe(K(1)).subscribe(()=>this.refresh())}sortBy(i,s=!0,l){this.transfers=this.sortTable.sortBy(i,s,l||this.transfers)}doQueryRefresh(){this.search&&this.action?this.action==="ERROR"?this.query=`(?=.*${this.search})(?=.*"ok":"false")`:this.query=`(?=.*${this.search})(?=.*"action":"${this.action}")`:this.action?this.query=this.action==="ERROR"?'"ok":false':`"action":"${this.action}"`:this.search?this.query=this.search:this.query=null,this.refresh()}checkRouteState(){let i=this.router.currentNavigation()?.extras.state;i?.id&&(this.focusOnSyncPathErrorsId=i.id)}};r.\u0275fac=function(s){return new(s||r)},r.\u0275cmp=k({type:r,selectors:[["app-sync-transfers"]],viewQuery:function(s,l){if(s&1&&($(z,5),$(Q,7)),s&2){let _;A(_=O())&&(l.scrollView=_.first),A(_=O())&&(l.inputFilter=_.first)}},decls:41,vars:20,consts:[[1,"app-top-menu"],[1,"btn-group","btn-group-sm"],[1,"form-select","form-select-sm","font-size-xs",2,"min-width","210px",3,"ngModelChange","ngModel"],["l10nTranslate","",3,"ngValue"],[3,"ngValue"],[1,"form-select","form-select-sm","font-size-xs","ms-1",2,"min-width","170px",3,"ngModelChange","ngModel"],["l10nTranslate","","value","NEW|MKFILE|MKDIR"],["l10nTranslate","","value","DIFF"],["l10nTranslate","","value","MOVE"],["l10nTranslate","","value","COPY"],["l10nTranslate","","value","RM|RMDIR"],["l10nTranslate","","value","ERROR"],[1,"d-flex","ms-auto"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon"],["placement","bottom","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[1,"d-none","d-sm-block"],[1,"app-table"],[3,"bufferAmount","items","resizeOffset"],[1,"app-table","mb-3"],["tabindex","-1"],[3,"selected"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"click"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],["size","sm",1,"circle-gray-icon-sm",3,"icon"],["l10nTranslate","",1,"fs-xxxs"],[1,"fs-xxs","ms-1"],["alt","","width","24",1,"me-2",3,"error","src"],[1,"d-flex","flex-column","fs-xxs"],[3,"class"],["l10nTranslate",""],[3,"mouseenter","mouseleave"]],template:function(s,l){s&1&&(n(0,"div",0)(1,"div",1)(2,"select",2),d("ngModelChange",function(I){return l.onSelectPath(I)}),n(3,"option",3),c(4,"All syncs"),o(),g(5,ve,2,2,"option",4,he),o(),n(7,"select",5),d("ngModelChange",function(I){return l.onSelectAction(I)}),n(8,"option",3),c(9,"All events"),o(),n(10,"option",6),c(11,"Added"),o(),n(12,"option",7),c(13,"Modified"),o(),n(14,"option",8),c(15,"Moved"),o(),n(16,"option",9),c(17,"Copied"),o(),n(18,"option",10),c(19,"Removed"),o(),n(20,"option",11),c(21,"Error"),o()()(),n(22,"div",12)(23,"button",13),E(24,"translate"),d("click",function(){return l.refresh()}),C(25,"fa-icon",14),o(),n(26,"button",15),E(27,"translate"),d("click",function(){return l.openClearDialog()}),C(28,"fa-icon",14),o(),C(29,"app-input-filter",16),o()(),n(30,"table",17)(31,"thead")(32,"tr"),g(33,we,1,1,null,null,ye),E(35,"keyvalue"),o()()(),n(36,"app-virtual-scroll",18)(37,"table",19)(38,"tbody",20),g(39,Ie,4,5,"tr",21,he),o()()()),s&2&&(a(2),m("ngModel",l.syncPathSelected),a(),m("ngValue",null),a(2),w(l.store.clientSyncPaths()),a(2),m("ngModel",l.action),a(),m("ngValue",null),a(15),m("tooltip",F(24,11,"Refresh",l.locale.language)),a(2),m("icon",l.icons.faRedo),a(),m("tooltip",F(27,14,"Clear events",l.locale.language)),a(2),m("icon",l.icons.faTrashCan),a(5),w(F(35,17,l.tableHeaders,l.originalOrderKeyValue)),a(3),m("bufferAmount",5)("items",l.transfers)("resizeOffset",105),a(3),w(l.scrollView==null?null:l.scrollView.viewPortItems))},dependencies:[ne,ee,te,Z,J,X,P,re,z,R,Q,oe,W],encapsulation:2});let t=r;return t})();export{_t as SyncTransfersComponent};
|
|
1
|
+
import{a as fe}from"./chunk-DQ3GEMPM.js";import"./chunk-YMAN4LIU.js";import{h as V}from"./chunk-ZXXHFBGL.js";import{a as z}from"./chunk-MIA5YBOI.js";import{a as Q,b as _e}from"./chunk-5E3TYOL3.js";import"./chunk-MYM43ENO.js";import"./chunk-PXRT4L57.js";import{Cb as M,gb as ce,pb as pe,qb as me,rb as q,s as re,vb as de}from"./chunk-I2S3XPC5.js";import{d as G}from"./chunk-Y5RLD72B.js";import{Bb as b,Cd as ne,Eb as d,Ed as ie,Gb as p,Ia as H,Jd as oe,Kb as $,Kd as P,L as K,Lb as A,Mb as O,Oa as a,Pc as W,Qa as U,Qb as N,Rb as T,Sb as S,Tb as c,Ub as f,Uf as le,Vb as B,ab as k,cc as L,dc as Y,df as ae,dg as se,ff as D,ja as u,jd as J,kc as E,lb as h,mb as y,mc as F,oa as x,od as X,og as R,pa as v,pb as g,qb as w,rb as m,sb as n,tb as o,tc as j,ub as C,ud as Z,vd as ee,wd as te}from"./chunk-IOIBQGHN.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import"./chunk-KAVP6UXH.js";function Se(t,r){if(t&1&&(n(0,"span",6),c(1,"Events from"),o(),c(2,"\xA0"),n(3,"b"),c(4),o()),t&2){let e=p();a(4),f(e.syncPath.settings.name)}}function xe(t,r){t&1&&(n(0,"span",6),c(1,"All events"),o())}var ue=(()=>{let r=class r{constructor(){this.syncPath=null,this.wasDeleted=new U,this.layout=u(M),this.icons={faTrashCan:D},this.syncService=u(V)}doClear(){this.syncService.deleteTransfers(this.syncPath?.id).then(()=>{this.wasDeleted.emit(),this.layout.closeDialog()})}};r.\u0275fac=function(s){return new(s||r)},r.\u0275cmp=k({type:r,selectors:[["app-sync-transfers-delete-dialog"]],inputs:{syncPath:"syncPath"},outputs:{wasDeleted:"wasDeleted"},decls:18,vars:2,consts:[[1,"modal-header"],["translate","",1,"modal-title"],[3,"icon"],["l10nTranslate","",1,"ms-2"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["l10nTranslate",""],[1,"modal-footer"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary",3,"click"],["type","submit","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(s,l){s&1&&(n(0,"div",0)(1,"h4",1),C(2,"fa-icon",2),n(3,"span",3),c(4,"Clear events"),o()(),n(5,"button",4),d("click",function(){return l.layout.closeDialog()}),o()(),n(6,"div",5),h(7,Se,5,1)(8,xe,2,0,"span",6),n(9,"span"),c(10,"\xA0"),o(),n(11,"span",6),c(12,"will be cleared"),o()(),n(13,"div",7)(14,"button",8),d("click",function(){return l.layout.closeDialog()}),c(15,"Cancel"),o(),n(16,"button",9),d("click",function(){return l.doClear()}),c(17,"Confirm"),o()()),s&2&&(a(2),m("icon",l.icons.faTrashCan),a(5),y(l.syncPath?7:8))},dependencies:[P,R],encapsulation:2});let t=r;return t})();var he=(t,r)=>r.id,ye=(t,r)=>r.key;function ve(t,r){if(t&1&&(n(0,"option",4),c(1),o()),t&2){let e=r.$implicit;m("ngValue",e),a(),f(e.settings.name)}}function Te(t,r){if(t&1&&C(0,"fa-icon",14),t&2){let e=p(3);m("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)}}function ge(t,r){if(t&1){let e=b();n(0,"th",23),d("click",function(){x(e);let s=p().$implicit,l=p();return v(l.sortBy(s.key))}),c(1),h(2,Te,1,1,"fa-icon",14),o()}if(t&2){let e=p().$implicit,i=p();S(e.value.class),N("width",e.value.width,"%"),T("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),a(),B(" ",e.value.label," "),a(),y(i.sortTable.sortParam.column===e.key?2:-1)}}function we(t,r){if(t&1&&h(0,ge,3,10,"th",22),t&2){let e=r.$implicit;y(e.value.show?0:-1)}}function be(t,r){if(t&1&&(n(0,"span",26),C(1,"fa-icon",14)(2,"fa-icon",27),n(3,"span",28),c(4),o()()),t&2){let e=p(3).$implicit;a(),S(e.ok?e.sideIconClass:"circle-error-icon-sm"),m("icon",e.sideIcon),a(),T("text-danger",!e.ok),m("icon",e.actionIcon),a(),T("text-danger",!e.ok),a(),f(e.actionText)}}function Ee(t,r){if(t&1&&(n(0,"span",26)(1,"span",29),c(2),o()()),t&2){let e=p(3).$implicit;a(2),f(e.syncPathName)}}function Fe(t,r){if(t&1&&(n(0,"span"),c(1),o(),n(2,"span")(3,"b",33),c(4,"Source"),o(),c(5),o()),t&2){let e=p(4).$implicit;S(e.selected?"overflow-wrap-and-whitespace":"truncate"),a(),f(e.fileDst),a(),S(L("",e.selected?"overflow-wrap-and-whitespace":"truncate"," fs-xxxs")),a(3),B(":\xA0",e.file)}}function ke(t,r){if(t&1&&(n(0,"span"),c(1),o()),t&2){let e=p(4).$implicit;S(e.selected?"overflow-wrap-and-whitespace":"truncate"),a(),f(e.file)}}function Pe(t,r){if(t&1&&(n(0,"span"),c(1),o()),t&2){let e=p(4).$implicit;S(L("",e.selected?"overflow-wrap-and-whitespace":"truncate"," text-danger fs-xxxs")),a(),f(e.error)}}function De(t,r){if(t&1){let e=b();n(0,"div",26)(1,"img",30),d("error",function(){x(e);let s=p(3).$implicit;return v(s.fallBackMimeUrl())}),o(),n(2,"span",31),h(3,Fe,6,7)(4,ke,2,3,"span",32),h(5,Pe,2,4,"span",32),o()()}if(t&2){let e=p(3).$implicit;a(),m("src",e.mimeUrl,H),a(2),y(e.fileDst?3:4),a(2),y(e.ok?-1:5)}}function Re(t,r){if(t&1){let e=b();n(0,"div",34),d("mouseenter",function(){x(e);let s=p(3).$implicit;return v(s.hovered=!0)})("mouseleave",function(){x(e);let s=p(3).$implicit;return v(s.hovered=!1)}),n(1,"span"),c(2),o()()}if(t&2){let e=p(3).$implicit;a(2),f(e.hovered?e.timestamp:e.hTimeAgo)}}function Me(t,r){if(t&1&&(n(0,"td"),h(1,be,5,9,"span",26)(2,Ee,3,1,"span",26)(3,De,6,3,"div",26)(4,Re,3,1,"div"),o()),t&2){let e,i=p().$implicit,s=p().$implicit;S(Y("",i.value.class," ",i.value.newly?"prop-newly-"+s[i.value.newly]:"")),N("width",i.value.width,"%"),T("text-align-center",i.value.textCenter),a(),y((e=i.key)==="action"?1:e==="sync"?2:e==="file"?3:e==="date"?4:-1)}}function Ve(t,r){if(t&1&&h(0,Me,5,9,"td",25),t&2){let e=r.$implicit;y(e.value.show?0:-1)}}function Ie(t,r){if(t&1){let e=b();n(0,"tr",24),d("click",function(){let s=x(e).$implicit,l=p();return v(l.onSelect(s))}),g(1,Ve,1,1,null,null,ye),E(3,"keyvalue"),o()}if(t&2){let e=r.$implicit,i=p();T("selected",e.selected),a(),w(F(3,2,i.tableHeaders,i.originalOrderKeyValue))}}var _t=(()=>{let r=class r{constructor(){if(this.locale=u(ie),this.action=null,this.syncPathSelected=null,this.transfers=[],this.store=u(de),this.originalOrderKeyValue=ce,this.tableHeaders={action:{label:"Action",width:15,textCenter:!1,class:"",show:!0,sortable:!0},sync:{label:"Synchronization",width:15,textCenter:!1,class:"",show:!0,sortable:!0},file:{label:"File",width:55,textCenter:!1,class:"",show:!0,sortable:!0},date:{label:"Date",width:15,textCenter:!0,class:"",newly:"newly",show:!0,sortable:!0}},this.icons={faRedo:le,faTrashCan:D,faArrowDown:se,faArrowUp:ae},this.router=u(G),this.layout=u(M),this.syncService=u(V),this.sortSettings={default:[{prop:"timestamp",type:"date"}],action:[{prop:"actionText",type:"string"}],sync:[{prop:"syncPathName",type:"string"}],file:[{prop:"file",type:"string"}],date:[{prop:"timestamp",type:"date"}]},this.sortTable=new _e(this.constructor.name,this.sortSettings),this.focusOnSyncPathErrorsId=null,this.search=null,this.query=null,this.layout.setBreadcrumbIcon(me.TRANSFERS),this.layout.setBreadcrumbNav({url:`/${q.BASE}/${q.TRANSFERS}/${pe.TRANSFERS}`,splicing:2,translating:!0,sameLink:!0}),j(()=>{this.doSearch(this.inputFilter.search())}),this.checkRouteState(),this.focusOnSyncPathErrorsId){let i=this.store.clientSyncPaths().find(s=>s.id===this.focusOnSyncPathErrorsId);i?(this.syncPathSelected=i,this.onSelectAction("ERROR")):this.refresh()}else this.refresh()}doSearch(i){this.search=i,this.doQueryRefresh()}refresh(){this.onSelect(),this.syncService.getTransfers(this.syncPathSelected?.id,this.query).then(i=>{this.transfers=i.map(s=>new fe(s)),this.scrollView?.scrollInto(-1)})}onSelectPath(i){this.syncPathSelected=i,this.tableHeaders.sync.show=!this.syncPathSelected,this.refresh()}onSelectAction(i){this.action=i,this.doQueryRefresh()}onSelect(i){for(let s of this.transfers.filter(l=>l.selected))s.selected=!1;i&&(i.selected=!0)}openClearDialog(){this.layout.openDialog(ue,"md",{initialState:{syncPath:this.syncPathSelected||null}}).content.wasDeleted.pipe(K(1)).subscribe(()=>this.refresh())}sortBy(i,s=!0,l){this.transfers=this.sortTable.sortBy(i,s,l||this.transfers)}doQueryRefresh(){this.search&&this.action?this.action==="ERROR"?this.query=`(?=.*${this.search})(?=.*"ok":"false")`:this.query=`(?=.*${this.search})(?=.*"action":"${this.action}")`:this.action?this.query=this.action==="ERROR"?'"ok":false':`"action":"${this.action}"`:this.search?this.query=this.search:this.query=null,this.refresh()}checkRouteState(){let i=this.router.currentNavigation()?.extras.state;i?.id&&(this.focusOnSyncPathErrorsId=i.id)}};r.\u0275fac=function(s){return new(s||r)},r.\u0275cmp=k({type:r,selectors:[["app-sync-transfers"]],viewQuery:function(s,l){if(s&1&&($(z,5),$(Q,7)),s&2){let _;A(_=O())&&(l.scrollView=_.first),A(_=O())&&(l.inputFilter=_.first)}},decls:41,vars:20,consts:[[1,"app-top-menu"],[1,"btn-group","btn-group-sm"],[1,"form-select","form-select-sm","font-size-xs",2,"min-width","210px",3,"ngModelChange","ngModel"],["l10nTranslate","",3,"ngValue"],[3,"ngValue"],[1,"form-select","form-select-sm","font-size-xs","ms-1",2,"min-width","170px",3,"ngModelChange","ngModel"],["l10nTranslate","","value","NEW|MKFILE|MKDIR"],["l10nTranslate","","value","DIFF"],["l10nTranslate","","value","MOVE"],["l10nTranslate","","value","COPY"],["l10nTranslate","","value","RM|RMDIR"],["l10nTranslate","","value","ERROR"],[1,"d-flex","ms-auto"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon"],["placement","bottom","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[1,"d-none","d-sm-block"],[1,"app-table"],[3,"bufferAmount","items","resizeOffset"],[1,"app-table","mb-3"],["tabindex","-1"],[3,"selected"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"click"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],["size","sm",1,"circle-gray-icon-sm",3,"icon"],["l10nTranslate","",1,"fs-xxxs"],[1,"fs-xxs","ms-1"],["alt","","width","24",1,"me-2",3,"error","src"],[1,"d-flex","flex-column","fs-xxs"],[3,"class"],["l10nTranslate",""],[3,"mouseenter","mouseleave"]],template:function(s,l){s&1&&(n(0,"div",0)(1,"div",1)(2,"select",2),d("ngModelChange",function(I){return l.onSelectPath(I)}),n(3,"option",3),c(4,"All syncs"),o(),g(5,ve,2,2,"option",4,he),o(),n(7,"select",5),d("ngModelChange",function(I){return l.onSelectAction(I)}),n(8,"option",3),c(9,"All events"),o(),n(10,"option",6),c(11,"Added"),o(),n(12,"option",7),c(13,"Modified"),o(),n(14,"option",8),c(15,"Moved"),o(),n(16,"option",9),c(17,"Copied"),o(),n(18,"option",10),c(19,"Removed"),o(),n(20,"option",11),c(21,"Error"),o()()(),n(22,"div",12)(23,"button",13),E(24,"translate"),d("click",function(){return l.refresh()}),C(25,"fa-icon",14),o(),n(26,"button",15),E(27,"translate"),d("click",function(){return l.openClearDialog()}),C(28,"fa-icon",14),o(),C(29,"app-input-filter",16),o()(),n(30,"table",17)(31,"thead")(32,"tr"),g(33,we,1,1,null,null,ye),E(35,"keyvalue"),o()()(),n(36,"app-virtual-scroll",18)(37,"table",19)(38,"tbody",20),g(39,Ie,4,5,"tr",21,he),o()()()),s&2&&(a(2),m("ngModel",l.syncPathSelected),a(),m("ngValue",null),a(2),w(l.store.clientSyncPaths()),a(2),m("ngModel",l.action),a(),m("ngValue",null),a(15),m("tooltip",F(24,11,"Refresh",l.locale.language)),a(2),m("icon",l.icons.faRedo),a(),m("tooltip",F(27,14,"Clear events",l.locale.language)),a(2),m("icon",l.icons.faTrashCan),a(5),w(F(35,17,l.tableHeaders,l.originalOrderKeyValue)),a(3),m("bufferAmount",5)("items",l.transfers)("resizeOffset",105),a(3),w(l.scrollView==null?null:l.scrollView.viewPortItems))},dependencies:[ne,ee,te,Z,J,X,P,re,z,R,Q,oe,W],encapsulation:2});let t=r;return t})();export{_t as SyncTransfersComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as fe}from"./chunk-F7TXTNZC.js";import"./chunk-LJSVNPPQ.js";import"./chunk-YMAN4LIU.js";import"./chunk-NMF2ZFBE.js";import{c as me}from"./chunk-Y2I36A4K.js";import{h as M}from"./chunk-2XPHUNYN.js";import{a as se}from"./chunk-QMHUIHSR.js";import{e as pe}from"./chunk-XCLK7NJL.js";import"./chunk-MYM43ENO.js";import{c as de}from"./chunk-OJCAIKUK.js";import{Cb as O,F as N,G as ae,J as ce,qb as re,rb as H,s as Y}from"./chunk-5HNQLBSW.js";import{d as j}from"./chunk-Y5RLD72B.js";import{Bb as R,Eb as m,Ed as K,Gb as u,Ia as $,Jd as W,Kd as k,L as A,Ld as G,Ma as z,Oa as e,Qa as U,Rb as L,Sb as T,Sd as q,Tb as s,Te as Z,Tf as oe,Ub as C,Vb as S,Ve as ee,Wb as E,_e as te,ab as P,cc as I,ce as J,eg as le,ff as D,he as Q,ja as _,kc as f,lb as y,lc as V,mb as g,mc as h,mf as ie,oa as b,og as w,pa as x,pb as B,qb as F,rb as c,sb as n,se as X,tb as l,ub as p,zf as ne}from"./chunk-IOIBQGHN.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import"./chunk-KAVP6UXH.js";function _e(a,r){if(a&1&&p(0,"fa-icon",4),a&2){let t=u();c("icon",t.icons.faSpinner)}}var ue=(()=>{let r=class r{constructor(){this.wasDeleted=new U,this.layout=_(O),this.icons={faSpinner:ie,faTrashCan:D},this.submitted=!1,this.syncService=_(M)}onEnter(){this.onSubmit()}onSubmit(){this.submitted||(this.submitted=!0,this.syncService.deleteClient(this.client.id).subscribe({next:()=>{this.layout.sendNotification("info","Client deleted",this.client.info.node),this.wasDeleted.emit(),this.layout.closeDialog()},error:i=>{this.layout.sendNotification("error","Unable to delete client",i.error.message),this.submitted=!1}}))}};r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=P({type:r,selectors:[["app-sync-client-delete-dialog"]],hostBindings:function(d,o){d&1&&m("keyup.enter",function(){return o.onEnter()},z)},inputs:{client:"client"},outputs:{wasDeleted:"wasDeleted"},decls:21,vars:6,consts:[[1,"modal-header"],["translate","",1,"modal-title"],[3,"icon"],["l10nTranslate","",1,"ms-2"],["animation","spin",1,"ms-2",3,"icon"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["size","lg",1,"me-2",3,"icon","fixedWidth"],["l10nTranslate","",1,"ms-1"],["translate",""],[1,"modal-footer"],["data-dismiss","modal","l10nTranslate","","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],["l10nTranslate","","type","button",1,"btn","btn-sm","btn-danger",3,"click","disabled"]],template:function(d,o){d&1&&(n(0,"div",0)(1,"h4",1),p(2,"fa-icon",2),n(3,"span",3),s(4,"Client"),l(),y(5,_e,1,1,"fa-icon",4),l(),n(6,"button",5),m("click",function(){return o.layout.closeDialog()}),l()(),n(7,"div",6)(8,"div")(9,"b"),p(10,"fa-icon",7),s(11),l(),n(12,"span",8),s(13,"will be removed"),l()(),n(14,"small",9),s(15,"The client will no longer have permission to access your account and will no longer be able to synchronize."),l()(),n(16,"div",10)(17,"button",11),m("click",function(){return o.layout.closeDialog()}),s(18,"Cancel"),l(),n(19,"button",12),m("click",function(){return o.onSubmit()}),s(20,"Confirm"),l()()),d&2&&(e(2),c("icon",o.icons.faTrashCan),e(3),g(o.submitted?5:-1),e(5),c("icon",o.client.icon)("fixedWidth",!1),e(),C(o.client.info.node),e(8),c("disabled",o.submitted))},dependencies:[w,k],encapsulation:2,changeDetection:0});let a=r;return a})();var he=(a,r)=>r.id;function ve(a,r){if(a&1&&(p(0,"fa-icon",13),f(1,"translate")),a&2){let t=u(2);c("icon",t.icons.faCircle)("tooltip",h(1,2,"This client",t.locale.language))}}function ye(a,r){if(a&1&&(s(0),f(1,"amTimeAgo")),a&2){let t=u().$implicit;S(" ",h(1,1,t.settings.lastSync,!0)," ")}}function ge(a,r){if(a&1&&(s(0),f(1,"translate")),a&2){let t=u(3);S(" ",h(1,1,"never",t.locale.language)," ")}}function Se(a,r){if(a&1){let t=R();n(0,"div",20),m("click",function(){let d=b(t).$implicit,o=u(2);return x(o.onSelectPath(d))})("dblclick",function(){b(t);let d=u(2);return x(d.onEditPath())}),n(1,"div",21),p(2,"img",22),n(3,"div",23)(4,"span",24),s(5),l(),n(6,"div"),p(7,"fa-icon",25),n(8,"span",26)(9,"span"),s(10),l()()()()(),n(11,"div",27),p(12,"fa-icon",2),s(13),f(14,"amTimeAgo"),l(),n(15,"div"),p(16,"fa-icon",2),y(17,ye,2,4)(18,ge,2,4),l()()}if(a&2){let t=r.$implicit,i=u(2);L("selected",i.selectedPath&&i.selectedPath.id===t.id),e(2),c("src",t.mimeUrl,$),e(3),C(t.settings.name),e(),T(I("d-flex align-items-center text-",t.iconClass)),e(),c("icon",t.icon),e(3),C(t.showedPath),e(2),c("icon",i.icons.faPlusCircle),e(),S(" ",h(14,16,t.createdAt,!0)," "),e(2),T(I("badge rounded-pill sync-newly-",t.newly)),e(),c("icon",i.icons.faRotate),e(),g(t.newly?17:18)}}function be(a,r){if(a&1){let t=R();n(0,"div",8),m("click",function(){let d=b(t).$implicit,o=u();return x(o.onSelectClient(d))}),n(1,"div",9)(2,"div",10)(3,"div",11),p(4,"fa-icon",2),n(5,"div",12),s(6),l(),y(7,ve,2,5,"fa-icon",13),l(),n(8,"div"),p(9,"fa-icon",2),n(10,"div")(11,"span",14),s(12),l(),s(13),f(14,"amTimeAgo"),l()(),n(15,"div",11),p(16,"fa-icon",15),n(17,"div"),s(18),l()(),n(19,"div",11),p(20,"fa-icon",2),n(21,"div"),s(22),l()(),n(23,"div",11),p(24,"fa-icon",2),n(25,"div",16),s(26),l(),n(27,"div",17),s(28),l()(),n(29,"div",11),p(30,"fa-icon",2),n(31,"div"),s(32),l()(),n(33,"div",11),p(34,"fa-icon",2),n(35,"div"),s(36),f(37,"amDateFormat"),f(38,"amDateFormat"),l()()()(),n(39,"div",18),B(40,Se,19,19,"div",19,he),l()()}if(a&2){let t=r.$implicit,i=u();e(),L("selected",i.selected&&i.selected.id===t.id),e(3),c("icon",i.icons.CLIENT),e(2),C(t.info.node),e(),g(t.isCurrentClient?7:-1),e(),T(I("d-flex align-items-center ",t.expiration.reached?"fw-bold text-danger":t.expiration.approaching?"fw-bold text-warning":"")),e(),c("icon",i.icons.faKey),e(3),C(t.expiration.reached?"The access has expired":"The access expires"),e(),S("\xA0",V(14,25,t.expiration.value)," "),e(3),c("icon",t.icon),e(2),E("",t.osName," ",t.info.osRelease),e(2),c("icon",i.icons.faCircleUser),e(2),C(t.info.user),e(2),c("icon",i.icons.faCodeBranch),e(2),C(t.info.type),e(2),C(t.info.version),e(2),c("icon",i.icons.faAt),e(2),E("",t.currentIp,"\xA0-\xA0",t.lastIp),e(2),c("icon",i.icons.faClock),e(2),E("",h(37,27,t.currentAccess,"L HH:mm:ss"),"\xA0-\xA0",h(38,30,t.lastAccess,"L HH:mm:ss")),e(4),F(t.paths)}}var Ze=(()=>{let r=class r{constructor(){this.locale=_(K),this.icons={faArrowRotateRight:oe,faTrashCan:D,CLIENT:re.CLIENT,faCircle:ee,faCircleUser:te,faCodeBranch:J,faAt:q,faClock:X,faRotate:G,faPlusCircle:Z,faMapMarkerAlt:le,faPen:ne,faKey:Q},this.loading=!1,this.clients=[],this.router=_(j),this.layout=_(O),this.syncService=_(M),this.layout.setBreadcrumbIcon(ce.CLIENTS),this.layout.setBreadcrumbNav({url:`/${N.BASE}/${N.CLIENTS}/${ae.CLIENTS}`,splicing:2,translating:!0,sameLink:!0});let i=this.router.currentNavigation()?.extras.state;i?.clientId&&(this.focusOnSelectId=i.clientId,this.focusOnSelectPathId=i.pathId),this.loadClients()}loadClients(){this.loading=!0,this.onSelectClient(),this.onSelectPath(),this.syncService.getClients().subscribe({next:i=>{de(i,"id",!1),this.clients=i,this.focusOnSelectId&&this.onSelectClient(this.clients.find(d=>d.id===this.focusOnSelectId)),this.focusOnSelectPathId&&this.selected&&(this.onSelectPath(this.selected.paths.find(d=>d.id===this.focusOnSelectPathId)),this.focusOnSelectPathId=null)},error:i=>{console.error(i),this.loading=!1,this.layout.sendNotification("error","Clients",i.error.message)}})}onSelectClient(i){this.selected=i||null}onSelectPath(i){this.selectedPath=i||null}onDeleteClient(){this.layout.openDialog(ue,"md",{initialState:{client:this.selected}}).content.wasDeleted.pipe(A(1)).subscribe(()=>this.loadClients())}gotoPath(i){this.syncService.goToPath(i,!1)}onEditPath(){this.selected.isCurrentClient?this.router.navigate([H.BASE,H.PATHS],{state:{id:this.selectedPath.id,withSettings:!0}}).catch(console.error):this.layout.openDialog(fe,"md",{initialState:{syncPathSelected:this.selectedPath,syncClientSelected:this.selected}}).content.mustRefresh.pipe(A(1)).subscribe(()=>{this.focusOnSelectId=this.selected.id,this.focusOnSelectPathId=this.selectedPath.id,this.loadClients()})}};r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=P({type:r,selectors:[["app-sync-clients"]],decls:16,vars:23,consts:[[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"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],["placement","auto","type","button",1,"btn","btn-sm","btn-secondary","ms-auto","me-1",3,"click","disabled","tooltip"],["placement","auto","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],["appAutoResize","",1,"app-sync-clients"],[1,"d-flex"],[1,"d-flex",3,"click"],[1,"left-panel","app-div-hovered","col-md-5","col-lg-4","col-sm-12"],[1,"left-panel-content","p-2"],[1,"d-flex","align-items-center"],[1,"me-auto","fw-semibold"],[1,"text-light-green","cursor-pointer",3,"icon","tooltip"],["l10nTranslate",""],[1,"osIcon",3,"icon"],[1,"me-2"],[1,"badge","rounded-pill","bg-primary"],[1,"right-panel","d-none","d-md-flex","d-lg-flex","col-md-7","col-lg-8","p-0"],[1,"d-flex","align-items-center","cursor-pointer","app-div-hovered","py-1","ps-2","pe-4",3,"selected"],[1,"d-flex","align-items-center","cursor-pointer","app-div-hovered","py-1","ps-2","pe-4",3,"click","dblclick"],[1,"d-flex","align-items-center","text-truncate","px-2","py-1","me-auto"],["alt","","draggable","false","height","30",3,"src"],[1,"d-flex","flex-column","text-truncate","ms-2",2,"height","34px"],[1,"fs-xxs","text-truncate","user-select-none"],[1,"me-1",3,"icon"],[1,"fs-xxxs","text-truncate","user-select-none"],[1,"badge","rounded-pill","bg-dark","me-1"]],template:function(d,o){d&1&&(n(0,"div",0)(1,"button",1),f(2,"translate"),m("click",function(){return o.loadClients()}),p(3,"fa-icon",2),l(),n(4,"button",3),f(5,"translate"),m("click",function(){return o.onDeleteClient()}),p(6,"fa-icon",2),l(),n(7,"button",4),f(8,"translate"),m("click",function(){return o.gotoPath(o.selectedPath)}),p(9,"fa-icon",2),l(),n(10,"button",5),f(11,"translate"),m("click",function(){return o.onEditPath()}),p(12,"fa-icon",2),l()(),n(13,"div",6),B(14,be,42,33,"div",7,he),l()),d&2&&(e(),c("tooltip",h(2,11,"Refresh",o.locale.language)),e(2),c("icon",o.icons.faArrowRotateRight),e(),c("disabled",!o.selected)("tooltip",h(5,14,"Remove",o.locale.language)),e(2),c("icon",o.icons.faTrashCan),e(),c("disabled",!o.selectedPath)("tooltip",h(8,17,"Go to",o.locale.language)),e(2),c("icon",o.icons.faMapMarkerAlt),e(),c("disabled",!o.selectedPath)("tooltip",h(11,20,"Edit",o.locale.language)),e(2),c("icon",o.icons.faPen),e(2),F(o.clients))},dependencies:[Y,w,me,k,W,se,pe],styles:[`.app-sync-clients[_ngcontent-%COMP%]{font-size:.7rem;display:flex;flex-direction:column;flex:1 1 auto!important}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer;border-right:solid 1px;border-bottom:solid 1px}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] .osIcon[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.4rem;margin-left:-2px}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:first-child:not(.osIcon){font-size:1rem;margin-right:.4rem}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:26px}.app-sync-clients[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-bottom:solid 1px}
|
|
1
|
+
import{a as fe}from"./chunk-GNZPP2VO.js";import"./chunk-GRLHFXGB.js";import"./chunk-YMAN4LIU.js";import"./chunk-NMF2ZFBE.js";import{c as me}from"./chunk-BU4ZICZR.js";import{h as M}from"./chunk-ZXXHFBGL.js";import{a as se}from"./chunk-QMHUIHSR.js";import{e as pe}from"./chunk-XCLK7NJL.js";import"./chunk-MYM43ENO.js";import{c as de}from"./chunk-PXRT4L57.js";import{Cb as O,F as N,G as ae,J as ce,qb as re,rb as H,s as Y}from"./chunk-I2S3XPC5.js";import{d as j}from"./chunk-Y5RLD72B.js";import{Bb as R,Eb as m,Ed as K,Gb as u,Ia as $,Jd as W,Kd as k,L as A,Ld as G,Ma as z,Oa as e,Qa as U,Rb as L,Sb as T,Sd as q,Tb as s,Te as Z,Tf as oe,Ub as C,Vb as S,Ve as ee,Wb as E,_e as te,ab as P,cc as I,ce as J,eg as le,ff as D,he as Q,ja as _,kc as f,lb as y,lc as V,mb as g,mc as h,mf as ie,oa as b,og as w,pa as x,pb as B,qb as F,rb as c,sb as n,se as X,tb as l,ub as p,zf as ne}from"./chunk-IOIBQGHN.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import"./chunk-KAVP6UXH.js";function _e(a,r){if(a&1&&p(0,"fa-icon",4),a&2){let t=u();c("icon",t.icons.faSpinner)}}var ue=(()=>{let r=class r{constructor(){this.wasDeleted=new U,this.layout=_(O),this.icons={faSpinner:ie,faTrashCan:D},this.submitted=!1,this.syncService=_(M)}onEnter(){this.onSubmit()}onSubmit(){this.submitted||(this.submitted=!0,this.syncService.deleteClient(this.client.id).subscribe({next:()=>{this.layout.sendNotification("info","Client deleted",this.client.info.node),this.wasDeleted.emit(),this.layout.closeDialog()},error:i=>{this.layout.sendNotification("error","Unable to delete client",i.error.message),this.submitted=!1}}))}};r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=P({type:r,selectors:[["app-sync-client-delete-dialog"]],hostBindings:function(d,o){d&1&&m("keyup.enter",function(){return o.onEnter()},z)},inputs:{client:"client"},outputs:{wasDeleted:"wasDeleted"},decls:21,vars:6,consts:[[1,"modal-header"],["translate","",1,"modal-title"],[3,"icon"],["l10nTranslate","",1,"ms-2"],["animation","spin",1,"ms-2",3,"icon"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["size","lg",1,"me-2",3,"icon","fixedWidth"],["l10nTranslate","",1,"ms-1"],["translate",""],[1,"modal-footer"],["data-dismiss","modal","l10nTranslate","","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],["l10nTranslate","","type","button",1,"btn","btn-sm","btn-danger",3,"click","disabled"]],template:function(d,o){d&1&&(n(0,"div",0)(1,"h4",1),p(2,"fa-icon",2),n(3,"span",3),s(4,"Client"),l(),y(5,_e,1,1,"fa-icon",4),l(),n(6,"button",5),m("click",function(){return o.layout.closeDialog()}),l()(),n(7,"div",6)(8,"div")(9,"b"),p(10,"fa-icon",7),s(11),l(),n(12,"span",8),s(13,"will be removed"),l()(),n(14,"small",9),s(15,"The client will no longer have permission to access your account and will no longer be able to synchronize."),l()(),n(16,"div",10)(17,"button",11),m("click",function(){return o.layout.closeDialog()}),s(18,"Cancel"),l(),n(19,"button",12),m("click",function(){return o.onSubmit()}),s(20,"Confirm"),l()()),d&2&&(e(2),c("icon",o.icons.faTrashCan),e(3),g(o.submitted?5:-1),e(5),c("icon",o.client.icon)("fixedWidth",!1),e(),C(o.client.info.node),e(8),c("disabled",o.submitted))},dependencies:[w,k],encapsulation:2,changeDetection:0});let a=r;return a})();var he=(a,r)=>r.id;function ve(a,r){if(a&1&&(p(0,"fa-icon",13),f(1,"translate")),a&2){let t=u(2);c("icon",t.icons.faCircle)("tooltip",h(1,2,"This client",t.locale.language))}}function ye(a,r){if(a&1&&(s(0),f(1,"amTimeAgo")),a&2){let t=u().$implicit;S(" ",h(1,1,t.settings.lastSync,!0)," ")}}function ge(a,r){if(a&1&&(s(0),f(1,"translate")),a&2){let t=u(3);S(" ",h(1,1,"never",t.locale.language)," ")}}function Se(a,r){if(a&1){let t=R();n(0,"div",20),m("click",function(){let d=b(t).$implicit,o=u(2);return x(o.onSelectPath(d))})("dblclick",function(){b(t);let d=u(2);return x(d.onEditPath())}),n(1,"div",21),p(2,"img",22),n(3,"div",23)(4,"span",24),s(5),l(),n(6,"div"),p(7,"fa-icon",25),n(8,"span",26)(9,"span"),s(10),l()()()()(),n(11,"div",27),p(12,"fa-icon",2),s(13),f(14,"amTimeAgo"),l(),n(15,"div"),p(16,"fa-icon",2),y(17,ye,2,4)(18,ge,2,4),l()()}if(a&2){let t=r.$implicit,i=u(2);L("selected",i.selectedPath&&i.selectedPath.id===t.id),e(2),c("src",t.mimeUrl,$),e(3),C(t.settings.name),e(),T(I("d-flex align-items-center text-",t.iconClass)),e(),c("icon",t.icon),e(3),C(t.showedPath),e(2),c("icon",i.icons.faPlusCircle),e(),S(" ",h(14,16,t.createdAt,!0)," "),e(2),T(I("badge rounded-pill sync-newly-",t.newly)),e(),c("icon",i.icons.faRotate),e(),g(t.newly?17:18)}}function be(a,r){if(a&1){let t=R();n(0,"div",8),m("click",function(){let d=b(t).$implicit,o=u();return x(o.onSelectClient(d))}),n(1,"div",9)(2,"div",10)(3,"div",11),p(4,"fa-icon",2),n(5,"div",12),s(6),l(),y(7,ve,2,5,"fa-icon",13),l(),n(8,"div"),p(9,"fa-icon",2),n(10,"div")(11,"span",14),s(12),l(),s(13),f(14,"amTimeAgo"),l()(),n(15,"div",11),p(16,"fa-icon",15),n(17,"div"),s(18),l()(),n(19,"div",11),p(20,"fa-icon",2),n(21,"div"),s(22),l()(),n(23,"div",11),p(24,"fa-icon",2),n(25,"div",16),s(26),l(),n(27,"div",17),s(28),l()(),n(29,"div",11),p(30,"fa-icon",2),n(31,"div"),s(32),l()(),n(33,"div",11),p(34,"fa-icon",2),n(35,"div"),s(36),f(37,"amDateFormat"),f(38,"amDateFormat"),l()()()(),n(39,"div",18),B(40,Se,19,19,"div",19,he),l()()}if(a&2){let t=r.$implicit,i=u();e(),L("selected",i.selected&&i.selected.id===t.id),e(3),c("icon",i.icons.CLIENT),e(2),C(t.info.node),e(),g(t.isCurrentClient?7:-1),e(),T(I("d-flex align-items-center ",t.expiration.reached?"fw-bold text-danger":t.expiration.approaching?"fw-bold text-warning":"")),e(),c("icon",i.icons.faKey),e(3),C(t.expiration.reached?"The access has expired":"The access expires"),e(),S("\xA0",V(14,25,t.expiration.value)," "),e(3),c("icon",t.icon),e(2),E("",t.osName," ",t.info.osRelease),e(2),c("icon",i.icons.faCircleUser),e(2),C(t.info.user),e(2),c("icon",i.icons.faCodeBranch),e(2),C(t.info.type),e(2),C(t.info.version),e(2),c("icon",i.icons.faAt),e(2),E("",t.currentIp,"\xA0-\xA0",t.lastIp),e(2),c("icon",i.icons.faClock),e(2),E("",h(37,27,t.currentAccess,"L HH:mm:ss"),"\xA0-\xA0",h(38,30,t.lastAccess,"L HH:mm:ss")),e(4),F(t.paths)}}var Ze=(()=>{let r=class r{constructor(){this.locale=_(K),this.icons={faArrowRotateRight:oe,faTrashCan:D,CLIENT:re.CLIENT,faCircle:ee,faCircleUser:te,faCodeBranch:J,faAt:q,faClock:X,faRotate:G,faPlusCircle:Z,faMapMarkerAlt:le,faPen:ne,faKey:Q},this.loading=!1,this.clients=[],this.router=_(j),this.layout=_(O),this.syncService=_(M),this.layout.setBreadcrumbIcon(ce.CLIENTS),this.layout.setBreadcrumbNav({url:`/${N.BASE}/${N.CLIENTS}/${ae.CLIENTS}`,splicing:2,translating:!0,sameLink:!0});let i=this.router.currentNavigation()?.extras.state;i?.clientId&&(this.focusOnSelectId=i.clientId,this.focusOnSelectPathId=i.pathId),this.loadClients()}loadClients(){this.loading=!0,this.onSelectClient(),this.onSelectPath(),this.syncService.getClients().subscribe({next:i=>{de(i,"id",!1),this.clients=i,this.focusOnSelectId&&this.onSelectClient(this.clients.find(d=>d.id===this.focusOnSelectId)),this.focusOnSelectPathId&&this.selected&&(this.onSelectPath(this.selected.paths.find(d=>d.id===this.focusOnSelectPathId)),this.focusOnSelectPathId=null)},error:i=>{console.error(i),this.loading=!1,this.layout.sendNotification("error","Clients",i.error.message)}})}onSelectClient(i){this.selected=i||null}onSelectPath(i){this.selectedPath=i||null}onDeleteClient(){this.layout.openDialog(ue,"md",{initialState:{client:this.selected}}).content.wasDeleted.pipe(A(1)).subscribe(()=>this.loadClients())}gotoPath(i){this.syncService.goToPath(i,!1)}onEditPath(){this.selected.isCurrentClient?this.router.navigate([H.BASE,H.PATHS],{state:{id:this.selectedPath.id,withSettings:!0}}).catch(console.error):this.layout.openDialog(fe,"md",{initialState:{syncPathSelected:this.selectedPath,syncClientSelected:this.selected}}).content.mustRefresh.pipe(A(1)).subscribe(()=>{this.focusOnSelectId=this.selected.id,this.focusOnSelectPathId=this.selectedPath.id,this.loadClients()})}};r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=P({type:r,selectors:[["app-sync-clients"]],decls:16,vars:23,consts:[[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"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],["placement","auto","type","button",1,"btn","btn-sm","btn-secondary","ms-auto","me-1",3,"click","disabled","tooltip"],["placement","auto","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],["appAutoResize","",1,"app-sync-clients"],[1,"d-flex"],[1,"d-flex",3,"click"],[1,"left-panel","app-div-hovered","col-md-5","col-lg-4","col-sm-12"],[1,"left-panel-content","p-2"],[1,"d-flex","align-items-center"],[1,"me-auto","fw-semibold"],[1,"text-light-green","cursor-pointer",3,"icon","tooltip"],["l10nTranslate",""],[1,"osIcon",3,"icon"],[1,"me-2"],[1,"badge","rounded-pill","bg-primary"],[1,"right-panel","d-none","d-md-flex","d-lg-flex","col-md-7","col-lg-8","p-0"],[1,"d-flex","align-items-center","cursor-pointer","app-div-hovered","py-1","ps-2","pe-4",3,"selected"],[1,"d-flex","align-items-center","cursor-pointer","app-div-hovered","py-1","ps-2","pe-4",3,"click","dblclick"],[1,"d-flex","align-items-center","text-truncate","px-2","py-1","me-auto"],["alt","","draggable","false","height","30",3,"src"],[1,"d-flex","flex-column","text-truncate","ms-2",2,"height","34px"],[1,"fs-xxs","text-truncate","user-select-none"],[1,"me-1",3,"icon"],[1,"fs-xxxs","text-truncate","user-select-none"],[1,"badge","rounded-pill","bg-dark","me-1"]],template:function(d,o){d&1&&(n(0,"div",0)(1,"button",1),f(2,"translate"),m("click",function(){return o.loadClients()}),p(3,"fa-icon",2),l(),n(4,"button",3),f(5,"translate"),m("click",function(){return o.onDeleteClient()}),p(6,"fa-icon",2),l(),n(7,"button",4),f(8,"translate"),m("click",function(){return o.gotoPath(o.selectedPath)}),p(9,"fa-icon",2),l(),n(10,"button",5),f(11,"translate"),m("click",function(){return o.onEditPath()}),p(12,"fa-icon",2),l()(),n(13,"div",6),B(14,be,42,33,"div",7,he),l()),d&2&&(e(),c("tooltip",h(2,11,"Refresh",o.locale.language)),e(2),c("icon",o.icons.faArrowRotateRight),e(),c("disabled",!o.selected)("tooltip",h(5,14,"Remove",o.locale.language)),e(2),c("icon",o.icons.faTrashCan),e(),c("disabled",!o.selectedPath)("tooltip",h(8,17,"Go to",o.locale.language)),e(2),c("icon",o.icons.faMapMarkerAlt),e(),c("disabled",!o.selectedPath)("tooltip",h(11,20,"Edit",o.locale.language)),e(2),c("icon",o.icons.faPen),e(2),F(o.clients))},dependencies:[Y,w,me,k,W,se,pe],styles:[`.app-sync-clients[_ngcontent-%COMP%]{font-size:.7rem;display:flex;flex-direction:column;flex:1 1 auto!important}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer;border-right:solid 1px;border-bottom:solid 1px}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] .osIcon[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.4rem;margin-left:-2px}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:first-child:not(.osIcon){font-size:1rem;margin-right:.4rem}.app-sync-clients[_ngcontent-%COMP%] .left-panel[_ngcontent-%COMP%] .left-panel-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:26px}.app-sync-clients[_ngcontent-%COMP%] .right-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-bottom:solid 1px}
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cb as h}from"./chunk-
|
|
1
|
+
import{Cb as h}from"./chunk-I2S3XPC5.js";import{Aa as o,Wa as n,Y as r,cb as l,ja as t}from"./chunk-IOIBQGHN.js";var m=".selected",c="drag-over";var x=(()=>{let e=class e{constructor(){this.overFlowX="hidden",this.resizeOffset=80,this.useMaxHeight=!0,this.elementRef=t(o),this.renderer=t(n),this.layout=t(h),this.renderer.setStyle(this.elementRef.nativeElement,"overflow-y","auto"),this.renderer.setStyle(this.elementRef.nativeElement,"scrollbar-width","thin"),this.resizeSubscription=this.layout.resizeEvent.pipe(r(1)).subscribe(()=>this.onResize())}ngAfterViewInit(){this.renderer.setStyle(this.elementRef.nativeElement,"overflow-x",this.overFlowX),this.onResize()}ngOnDestroy(){this.resizeSubscription.unsubscribe()}scrollTop(){this.renderer.setProperty(this.elementRef.nativeElement,"scrollTop","0")}scrollIntoView(s=0){setTimeout(()=>this.elementRef.nativeElement.scrollTo({left:0,top:s,behavior:"smooth"}),50)}onResize(){this.renderer.setStyle(this.elementRef.nativeElement,this.useMaxHeight?"max-height":"height",`${window.innerHeight-this.resizeOffset-1}px`)}};e.\u0275fac=function(f){return new(f||e)},e.\u0275dir=l({type:e,selectors:[["","appAutoResize",""]],inputs:{overFlowX:"overFlowX",resizeOffset:"resizeOffset",useMaxHeight:"useMaxHeight"}});let i=e;return i})();export{m as a,c as b,x as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h,c as o,d as i,e as r}from"./chunk-YMAN4LIU.js";import{h as e,m}from"./chunk-MYM43ENO.js";import{$a as s}from"./chunk-
|
|
1
|
+
import{b as h,c as o,d as i,e as r}from"./chunk-YMAN4LIU.js";import{h as e,m}from"./chunk-MYM43ENO.js";import{$a as s}from"./chunk-I2S3XPC5.js";import{n as t}from"./chunk-DM4NXKEP.js";var a=class{constructor(l){this.selected=!1,this.hovered=!1,this.isFiltered=!1,this.newly=0,Object.assign(this,l),this.sideIcon=o[this.side],this.sideIconClass=h[this.side],this.actionText=i[this.action],this.actionIcon=r[this.actionText],this.isFiltered=this.actionText===i.FILTERED,this.mimeUrl=e(this.mime),this.timestamp&&(this.hTimeAgo=t(this.timestamp).fromNow(!0),this.timestamp=t(this.timestamp).format("YYYY-MM-DD HH:mm:ss"),this.newly=s(this.timestamp))}fallBackMimeUrl(){this.mimeUrl=m}};export{a};
|