1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[499],{13460:(v,h,o)=>{o.d(h,{N:()=>r});const r=new(o(14026).OlP)("DropdownSelectAsyncFieldsFetchedFlag")},28479:(v,h,o)=>{o.d(h,{q:()=>f});var p=o(49731),r=o(14026);let f=(()=>{class c extends p.TemplateContainer{}return c.\u0275fac=function(){let a;return function(g){return(a||(a=r.n5z(c)))(g||c)}}(),c.\u0275dir=r.lG2({type:c,selectors:[["","dropdownSelectItem",""]],features:[r.qOj]}),c})()},13631:(v,h,o)=>{o.d(h,{d:()=>f});var p=o(49731),r=o(14026);let f=(()=>{class c extends p.TemplateContainer{}return c.\u0275fac=function(){let a;return function(g){return(a||(a=r.n5z(c)))(g||c)}}(),c.\u0275dir=r.lG2({type:c,selectors:[["","tgDropdownSelectLabel",""]],features:[r.qOj]}),c})()},80499:(v,h,o)=>{o.d(h,{_:()=>m});var p=o(64762),r=o(78425),f=o(92194),c=o(662),a=o(5296),e=o(14026),g=o(52805),P=o(40921),L=o(43383),R=o(88079),O=o(69962),_=o(64852),J=o(8194),y=o(25336),Q=o(95517),S=o(48921),I=o(3811),x=o(50725),b=o(89969),W=o(10067),Z=o(91696),B=o(83375),V=o(93327),Y=o(89763),G=o(51248),A=o(6128),K=o(13460),U=o(13631),H=o(28479);class z{constructor(){this._cache=new Map}getContext(t){if(this._cache.has(t))return this._cache.get(t);const n={$implicit:t};return this._cache.set(t,n),n}reset(){this._cache.clear()}}var M,F,j=o(33043),C=o(64177),X=o(61225),q=o(50339),ee=o(84416),te=o(64683);const ne=["tplDefaultLabel"],le=["toggleBtn"];function se(l,t){if(1&l&&(e._uU(0),e.ALo(1,"tr")),2&l){const n=e.oxw();e.hij("",e.xi3(1,1,"select",n.ns),"\u2026")}}function oe(l,t){if(1&l&&e._uU(0),2&l){const n=e.oxw(2);e.Oqu(n.label)}}function ie(l,t){if(1&l&&(e.TgZ(0,"span",9),e.YNc(1,oe,1,1,"ng-template",10),e.qZA()),2&l){const n=e.oxw(),s=e.MAs(1);e.xp6(1),e.Q6J("ngIf",n.label)("ngIfElse",s)}}function ce(l,t){if(1&l&&(e.TgZ(0,"span"),e._uU(1,"\xa0"),e.qZA(),e._UZ(2,"tg-caret",11)),2&l){const n=e.oxw();e.xp6(2),e.Q6J("direction",n.isOpen?"up":"down")}}function re(l,t){if(1&l&&(e.TgZ(0,"button",12)(1,"span"),e._uU(2),e.ALo(3,"tr"),e.qZA(),e._UZ(4,"tg-caret",11),e.qZA()),2&l){const n=e.oxw();e.ekj("btn-sm",n.small),e.Q6J("disabled",!0)("ngClass",n._btnStyle)("tgConsumeControlId","id"),e.xp6(2),e.hij("",n.noItemsText||e.xi3(3,7,"noItems",n.ns),"\xa0"),e.xp6(2),e.Q6J("direction",n.isOpen?"up":"down")}}function ae(l,t){1&l&&e._uU(0),2&l&&e.hij(","," ","")}function de(l,t){if(1&l&&(e.YNc(0,ae,1,1,"ng-template",14),e.GkF(1,15)),2&l){const n=t.$implicit,s=t.first,i=e.oxw(2),u=e.MAs(11);e.Q6J("ngIf",!s),e.xp6(1),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",i.ctx.getContext(n))}}function pe(l,t){if(1&l&&e.YNc(0,de,2,3,"ng-template",13),2&l){const n=e.oxw();e.Q6J("ngForOf",n.displayedItems)}}function me(l,t){if(1&l&&e._uU(0),2&l){const n=e.oxw().$implicit;e.Oqu(n.label)}}function ue(l,t){if(1&l&&e.GkF(0,15),2&l){const n=e.oxw().$implicit,s=e.oxw();e.Q6J("ngTemplateOutlet",s.customTemplate)("ngTemplateOutletContext",s.ctx.getContext(n.original))}}function he(l,t){if(1&l&&(e.YNc(0,me,1,1,"ng-template",null,16,e.W1O),e.YNc(2,ue,1,2,"ng-container",17)),2&l){const n=e.MAs(1),s=e.oxw();e.xp6(2),e.Q6J("ngIf",s.customTemplate)("ngIfElse",n)}}const fe=function(l){return{n:l}};function ge(l,t){if(1&l&&(e._uU(0),e.ALo(1,"tr")),2&l){const n=e.oxw();e.Oqu(e.Dn7(1,1,"selected",n.ns,e.VKq(5,fe,n.numSelected)))}}function _e(l,t){if(1&l&&e.GkF(0,19),2&l){e.oxw(3);const n=e.MAs(13);e.Q6J("ngTemplateOutlet",n)}}function Ce(l,t){if(1&l&&e.YNc(0,_e,1,1,"ng-container",18),2&l){const n=e.oxw(2),s=e.MAs(9);e.Q6J("ngIf",n.overflowing)("ngIfElse",s)}}function we(l,t){if(1&l&&e.YNc(0,Ce,1,2,"ng-template",10),2&l){const n=e.oxw(),s=e.MAs(3);e.Q6J("ngIf",n.hasValue)("ngIfElse",s)}}function ve(l,t){if(1&l&&e.GkF(0,15),2&l){const n=e.oxw(3);e.Q6J("ngTemplateOutlet",n.customLabel.template)("ngTemplateOutletContext",n.customLabelCtx)}}function xe(l,t){if(1&l&&e.YNc(0,ve,1,2,"ng-container",17),2&l){const n=e.oxw(2),s=e.MAs(13);e.Q6J("ngIf",!n.overflowing)("ngIfElse",s)}}function De(l,t){1&l&&e._UZ(0,"i",29)}function Te(l,t){if(1&l){const n=e.EpF();e.TgZ(0,"li",26),e.NdJ("click",function(i){const Ie=e.CHM(n).$implicit,be=e.oxw(3);return e.KtG(be.toggle(Ie.value,i))}),e.TgZ(1,"a",27),e.YNc(2,De,1,0,"i",28),e.GkF(3,15),e.qZA()()}
1if(2&l){const n=t.$implicit,s=e.oxw(3),i=e.MAs(11);e.ekj("active",s.selected.has(n.value)),e.xp6(2),e.Q6J("ngIf",s.deselectable),e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",s.ctx.getContext(n))}}function Oe(l,t){if(1&l&&(e.TgZ(0,"ul",24),e.YNc(1,Te,4,5,"li",25),e.qZA()),2&l){const n=e.oxw(2);e.Udp("min-width",n.dropdownMinWidth),e.Q6J("id",n.ID_DROPDOWN)("tgConsumeControlId","aria-controlledby")("ngClass",n.extraDropdownClasses),e.xp6(1),e.Q6J("ngForOf",n.sortedItems)("ngForTrackBy",n.trackBy)}}function ye(l,t){if(1&l){const n=e.EpF();e.TgZ(0,"div",20),e.NdJ("isOpenChange",function(i){e.CHM(n);const u=e.oxw();return e.KtG(u.isOpen=i)})("onHidden",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.onTouch())}),e.TgZ(1,"button",21,22),e.NdJ("overflowing",function(i){e.CHM(n);const u=e.oxw();return e.KtG(u.overflowing=i)}),e.YNc(3,xe,1,2,"ng-template",10),e.TgZ(4,"span"),e._uU(5,"\xa0"),e.qZA(),e._UZ(6,"tg-caret",11),e.qZA(),e.YNc(7,Oe,2,7,"ul",23),e.qZA()}if(2&l){const n=e.oxw(),s=e.MAs(15);e.Q6J("isDisabled",n.disabled)("insideClick",n.multi)("container",n.container)("isOpen",n.isOpen),e.xp6(1),e.ekj("btn-sm",n.small),e.Q6J("ngClass",n._btnStyle)("continuousChecking",!1)("disabled",n.disabled)("tgConsumeControlId","id"),e.uIk("aria-controls",n.ID_DROPDOWN),e.xp6(2),e.Q6J("ngIf",n.customLabel)("ngIfElse",s),e.xp6(3),e.Q6J("direction",n.isOpen?"up":"down")}}const D=Symbol("array"),d=Symbol("items"),T=Symbol("sortedItems"),E=Symbol("itemsSortedFor"),N=Symbol("sort"),w=Symbol("multi");class m extends V.v{constructor(t,n){super(),this.inj=t,this.dom=n,this.ID_DROPDOWN=(0,L.Z)("dd-"),this.btnStyle="default",this.ctx=new z,this.deselectable=!0,this.disabled=!1,this.displayedItems=[],this.dropdownMinWidth=null,this.isOpen=!1,this.ns="layout-dropdown-select",this.numSelected=0,this.overflowing=!1,this.selected=new Set,this.selected$=new e.vpe(!0),this.small=!1,this.trackBy=this.defaultTrackBy,this.unselected$=new e.vpe(!0),this._scheduledOverflowCheckRefresh=null,this._writeValue$=new J.x,this[M]=!1,this[F]=[]}get _btnStyle(){return`btn-${this.btnStyle||"default"}`}get array(){return this[D]}set array(t){const n=$("array",t);n!==this[D]&&(this.labelKey="label",this.valueKey="value",this[D]=n,this.items=n.map(Se))}get hasValue(){return Boolean(this.selected.size)}get items(){return this[d]}set items(t){const n=$("items",t);n!==this[d]&&(this[d]=n,this.updateDisplayedValue())}get multi(){return this[w]}set multi(t){t!==this[w]&&(this[w]=t,this.updateDisplayedValue())}get sort(){return this[N]}set sort(t){this[N]=t,this[d]=[...this[d]]}get sortedItems(){if(this[E]===this[d])return this[T];this.ctx.reset();const t=this[d].map(this.mapToListItem,this);return this[T]=void 0===this.sort?t:(0,R.Z)(t,[this.sort]),this[E]=this[d],this[T]}get asyncDataReady$(){return this.inj.get(K.N,null)?.fieldsReady$||(0,y.of)(void 0)}closeDropdown(){this.dropdown?.hide(),this.cdr.markForCheck()}defaultTrackBy(t,n){return n.label}isSelected(t){return this.selected.has(t)}ngAfterContentInit(){this._innerTpl&&(this.customTemplate&&this.customTemplate!==this._innerTpl.template&&console.warn("[TgDropdownSelect] Component has both a [template] and *dropdownSelectItem provided."),this.customTemplate=this._innerTpl.template,this.cdr.markForCheck())}ngAfterViewInit(){this.cdr.markForCheck(),this._subs.push(this.toggleBtn$.changes.pipe((0,S.O)(1),(0,I.w)(()=>{const t=this.toggleBtn$.first;return t?this.dom.observeResize(t.nativeElement).pipe((0,S.O)(1),(0,x.U)(()=>getComputedStyle(t.nativeElement).width)):(0,y.of)(null)}),(0,Y.N)(this.dropdownMinWidth)).subscribe(t=>{this.dropdownMinWidth=t,this.cdr.markForCheck()}))}ngOnDestroy(){null!==this._scheduledOverflowCheckRefresh&&clearTimeout(this._scheduledOverflowCheckRefresh),(0,G.unsubscribeFromAll)(this._subs),(0,B.completeAll)(this.selected$,this.unselected$,this._writeValue$)}ngOnInit(){this.customLabelCtx={$implicit:this.multi?[]:null},this.labelKey??(this.labelKey="label"),this.valueKey??(this.valueKey="value"),this._subs=[this._writeValue$.pipe((0,I.w)(t=>this.asyncDataReady$.pipe((0,x.U)(()=>t))),(0,b.b)(t=>{this.doWriteValue(t)}),(0,a.H)("[TgDropdownSelect.writeValue$]")).subscribe(f.V),(0,Q.T)(this.selected$,this.unselected$).pipe((0,W.b)(0),(0,x.U)(()=>this.multi?[...this.selected]:this.hasValue?this.selected.values().next().value:null),(0,b.b)(()=>{this.refreshOverflowChecker()}),(0,Z.x)((t,n)=>this.multi?(0,O.Z)(t,n):t===n),(0,a.H)("[TgDropdownSelect.value]")).subscribe((0,c.e)(t=>{this.customLabelCtx={$implicit:t},this._onChangeFn(t),this.cdr.markForCheck()}))]}setDisabledState(t){t!==this.disabled&&(this.disabled=t,this.cdr.detectChanges())}toggle(t,n){const s=this.selected.has(t);if(this.multi)if(s){if(!this.deselectable)return k(n);this.selected.delete(t),this.unselected$.emit(t)}else this.selected.add(t),this.selected$.emit(t);else{if(s&&!this.deselectable)return k(n);this.clear(),s||(this.selected.add(t),this.selected$.emit(t))}this.updateDisplayedValue()}writeValue(t){this._writeValue$.next(t)}clear(){const t=[...this.selected];this.selected.clear();for(const n of t)this.unselected$.emit(n)}doWriteValue(t){null==t||Array.isArray(t)&&!t.length?this.clear():this.multi?this.writeMulti(t):this.selected.has(t)?this.writeSingleAlreadyPresent(t):(this.clear(),this.selected.add(t),this.selected$.emit(t)),this.updateDisplayedValue(),this.refreshOverflowChecker()}mapToListItem(t){return{label:t[this.labelKey],original:t,value:t[this.valueKey]}}reduceDisplayedItems(t,n){const s=this.sortedItems,i=s.findIndex(u=>(0,O.Z)(u.value,n));return-1===i?console.warn("tg-dropdown-select selected an unavailable value",n):t.push(s[i]),t}refreshOverflowChecker(t=1){null!==this._scheduledOverflowCheckRefresh&&clearTimeout(this._scheduledOverflowCheckRefresh),this._scheduledOverflowCheckRefresh=setTimeout(()=>{this._scheduledOverflowCheckRefresh=null,this.overflowCheck&&(this.overflowCheck.refresh(!0),1===t&&!this.overflowing&&this.refreshOverflowChecker(t+1))},10)}updateDisplayedValue(){this.displayedItems=this.hasValue?this.multi?[...this.selected].reduce(this.reduceDisplayedItems,[]):this.reduceDisplayedItems([],this.selected.values().next().value):[],this.numSelected=this.selected.size,this.cdr.markForCheck()}writeMulti(t){let n;n=null==t?new Set:Array.isArray(t)?new Set(t):new Set([t]);for(const s of this.selected)n.has(s)||(this.selected.delete(s),this.unselected$.emit(s));for(const s of n)this.selected.has(s)||(this.selected.add(s),this.selected$.emit(s))}writeSingleAlreadyPresent(t){if(1===this.selected.size)return;const n=[...this.selected];for(let s=n.length-1;s>=0;s--)n[s]!==t&&(this.selected.delete(n[s]),this.unselected$.emit(n[s]))}}function $(l,t){return Array.isArray(t)?t:(null!=t&&console.warn(`[TgDropdownSelect] Expected [${l}] to be an array; received`,t),[])}function Se(l){return{label:String(l),original:l,value:l}}function k(l){l&&(l.stopPropagation(),l.preventDefault())}M=w,F=d,m.\u0275fac=function(t){return new(t||m)(e.Y36(e.zs3),e.Y36(j.v))},m.\u0275cmp=e.Xpm({type:m,selectors:[["tg-dropdown-select"]],contentQueries:function(t,n,s){if(1&t&&(e.Suo(s,H.q,5),e.Suo(s,U.d,5)),2&t){let i;e.iGM(i=e.CRH())&&(n._innerTpl=i.first),e.iGM(i=e.CRH())&&(n.customLabel=i.first)}},viewQuery:function(t,n){if(1&t&&(e.Gf(_.TO,5),e.Gf(A.N,5),e.Gf(ne,5),e.Gf(le,5)),2&t){let s;e.iGM(s=e.CRH())&&(n.dropdown=s.first),e.iGM(s=e.CRH())&&(n.overflowCheck=s.first),e.iGM(s=e.CRH())&&(n.tplDefaultLabel=s.first),e.iGM(s=e.CRH())&&(n.toggleBtn$=s)}},inputs:{btnStyle:"btnStyle",container:"container",customTemplate:["template","customTemplate"],deselectable:"deselectable",extraDropdownClasse
1s:"extraDropdownClasses",label:"label",labelKey:"labelKey",noItemsText:"noItemsText",small:"small",trackBy:"trackBy",valueKey:"valueKey",array:"array",items:"items",multi:"multi",sort:"sort"},outputs:{selected$:"selected",unselected$:"unselected"},exportAs:["tgDropdownSelect"],features:[e._Bn([{multi:!0,provide:g.JU,useExisting:(0,e.Gpc)(()=>m)}]),e.qOj],decls:17,vars:2,consts:[["tplDefaultLabel",""],["tplShowLabel",""],["tplCaret",""],["tplNoItems",""],["tplNotOverflowing",""],["tplSortedItem",""],["tplOverflowingText",""],["tplDefaultButton",""],["class","dd-container","dropdown","",3,"isDisabled","insideClick","container","isOpen","isOpenChange","onHidden",4,"ngIf","ngIfElse"],[1,"no-value-selected"],[3,"ngIf","ngIfElse"],[3,"direction"],[1,"btn","btn-block","dropdown-btn",3,"disabled","ngClass","tgConsumeControlId"],["ngFor","",3,"ngForOf"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["tplStandard",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["dropdown","",1,"dd-container",3,"isDisabled","insideClick","container","isOpen","isOpenChange","onHidden"],["type","button","dropdownToggle","",1,"dropdown-toggle","btn","btn-block","dropdown-btn",3,"ngClass","continuousChecking","disabled","tgConsumeControlId","overflowing"],["toggleBtn",""],["class","dropdown-menu","role","menu",3,"min-width","id","tgConsumeControlId","ngClass",4,"dropdownMenu"],["role","menu",1,"dropdown-menu",3,"id","tgConsumeControlId","ngClass"],["role","menuitem",3,"active","click",4,"ngFor","ngForOf","ngForTrackBy"],["role","menuitem",3,"click"],["href","#",1,"dropdown-item"],["class","selected-tick fa fa-check","aria-hidden","1",4,"ngIf"],["aria-hidden","1",1,"selected-tick","fa","fa-check"]],template:function(t,n){if(1&t&&(e.YNc(0,se,2,4,"ng-template",null,0,e.W1O),e.YNc(2,ie,2,2,"ng-template",null,1,e.W1O),e.YNc(4,ce,3,1,"ng-template",null,2,e.W1O),e.YNc(6,re,5,10,"ng-template",null,3,e.W1O),e.YNc(8,pe,1,1,"ng-template",null,4,e.W1O),e.YNc(10,he,3,2,"ng-template",null,5,e.W1O),e.YNc(12,ge,2,7,"ng-template",null,6,e.W1O),e.YNc(14,we,1,2,"ng-template",null,7,e.W1O),e.YNc(16,ye,8,14,"div",8)),2&t){const s=e.MAs(7);e.xp6(16),e.Q6J("ngIf",n.items.length)("ngIfElse",s)}},dependencies:[C.mk,C.sg,C.O5,C.tP,X.c,q.k,_.Hz,_.Mq,_.TO,ee.K,A.N,te.H],styles:["[_nghost-%COMP%]{display:block}.dd-container[_ngcontent-%COMP%]{position:relative}.dropdown-menu[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] .selected-tick[_ngcontent-%COMP%]{visibility:visible}.dropdown-menu[_ngcontent-%COMP%] .selected-tick[_ngcontent-%COMP%]{display:inline-block;margin-right:5px;visibility:hidden}.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}"],changeDetection:0}),(0,p.gn)([(0,P.a)()],m.prototype,"asyncDataReady$",null),(0,p.gn)([(0,r.h)()],m.prototype,"reduceDisplayedItems",null)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.