File: /mnt/data/smarthr-co-in/demo/angular/template/chunk-QTISLVTV.js
import{c as $,d as D,f as u,g as H,h as z,i as E}from"./chunk-GZFJ7A3T.js";import{a as Xt,c as Yt,d as Jt,h as te,i as ee,j as ne,l as oe,n as ie,o as se,p as re,v as ae,y as de,z as le}from"./chunk-7PPOABPU.js";import{$a as Ft,Ab as Rt,Bb as Nt,Bc as ft,Bd as yt,Cb as At,Cc as Qt,Cd as Gt,Ea as Vt,Eb as P,Ec as at,F as Q,Ha as U,Hc as jt,Hd as dt,Ic as Ut,K as G,Kb as S,O as Dt,Oc as ht,Pc as qt,Q as j,Qc as Wt,Sb as p,Tb as c,Ub as _,Vb as F,ac as A,cc as y,db as X,dd as $t,ea as Et,ec as g,fa as ot,fb as b,fc as K,ga as it,gc as R,hc as N,ic as q,jc as x,kb as l,kc as v,ob as ut,pa as f,pc as Kt,qa as h,qc as L,ra as st,rb as Y,sa as Bt,sb as M,sc as Lt,tc as mt,u as St,uc as Ht,ud as _t,vc as zt,vd as bt,wd as W,xd as Ct,yb as I,yd as wt,zb as rt,zd as Zt}from"./chunk-AQ27DSQO.js";import{a as T,b as et,f as nt}from"./chunk-EQDQRRRY.js";var Pt=["*"];function Oe(o,s){o&1&&(c(0,"span",3),st(),c(1,"svg",4),F(2,"path",5)(3,"g")(4,"g")(5,"g")(6,"g")(7,"g")(8,"g"),_()())}function xe(o,s){if(o&1){let t=A();c(0,"div",2),y("click",function(){f(t);let n=g();return h(n.hide())}),_()}}var ve=[[["ng2-dropdown-button"]],[["ng2-dropdown-menu"]]],Ie=["ng2-dropdown-button","ng2-dropdown-menu"],Te=(()=>{class o{constructor(t){this.element=t,this.onMenuToggled=new l,this.showCaret=!0}toggleMenu(){this.onMenuToggled.emit(!0)}getPosition(){return this.element.nativeElement.getBoundingClientRect()}}return o.\u0275fac=function(t){return new(t||o)(M(U))},o.\u0275cmp=I({type:o,selectors:[["ng2-dropdown-button"]],inputs:{showCaret:"showCaret"},outputs:{onMenuToggled:"onMenuToggled"},standalone:!1,ngContentSelectors:Pt,decls:4,vars:1,consts:[["type","button","tabindex","0s",1,"ng2-dropdown-button",3,"click"],[1,"ng2-dropdown-button__label"],["class","ng2-dropdown-button__caret",4,"ngIf"],[1,"ng2-dropdown-button__caret"],["enable-background","new 0 0 32 32","height","16px","id","\u0421\u043B\u043E\u0439_1","version","1.1","viewBox","0 0 32 32","width","16px",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["d","M24.285,11.284L16,19.571l-8.285-8.288c-0.395-0.395-1.034-0.395-1.429,0 c-0.394,0.395-0.394,1.035,0,1.43l8.999,9.002l0,0l0,0c0.394,0.395,1.034,0.395,1.428,0l8.999-9.002 c0.394-0.395,0.394-1.036,0-1.431C25.319,10.889,24.679,10.889,24.285,11.284z","fill","#121313","id","Expand_More"]],template:function(t,e){t&1&&(K(),c(0,"button",0),y("click",function(){return e.toggleMenu()}),c(1,"span",1),R(2),_(),P(3,Oe,9,0,"span",2),_()),t&2&&(b(3),p("ngIf",e.showCaret))},dependencies:[W],styles:[".ng2-dropdown-button[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,Helvetica,Arial;background:#fff;padding:.45rem .25rem;font-size:14px;letter-spacing:.08rem;color:#444;outline:0;cursor:pointer;font-weight:400;border:none;border-bottom:1px solid #efefef;text-align:left;min-width:100px;width:100%;display:flex;flex-direction:row;max-width:150px}.ng2-dropdown-button[_ngcontent-%COMP%]:hover{color:#222}.ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button[_ngcontent-%COMP%]:focus{color:#222;border-bottom:2px solid #2196F3}.ng2-dropdown-button__label[_ngcontent-%COMP%]{flex:1 1 95%}.ng2-dropdown-button__caret[_ngcontent-%COMP%]{width:12px;height:12px;display:flex;flex:1 1 6%}.ng2-dropdown-button--icon[_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%], .ng2-dropdown-button--icon [_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]{border:none;min-width:40px;width:40px;border-radius:100%;transition:all .2s;text-align:center;height:40px;padding:.5em}.ng2-dropdown-button--icon[_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button--icon [_nghost-%COMP%] .ng2-dropdown-button[_ngcontent-%COMP%]:active{background:rgba(0,0,0,.2)}"]}),o})(),J={BACKSPACE:9,PREV:38,NEXT:40,ENTER:13,ESCAPE:27},ke=(o,s,t)=>{o<s.length-1&&t.select(s[o+1],!0)},Se=(o,s,t)=>{o>0&&t.select(s[o-1],!0)},De=(o,s,t)=>{o<s.length-1?t.select(s[o+1],!0):t.select(s[0],!0)};function Ee(){this.hide()}var Be=(o,s,t)=>t.selectedItem?t.selectedItem.click():void 0,pe={[J.BACKSPACE]:De,[J.PREV]:Se,[J.NEXT]:ke,[J.ENTER]:Be,[J.ESCAPE]:Ee};function Ve(o){[38,40].indexOf(o.keyCode)>-1&&o.preventDefault()}var Mt=class{constructor(){this.onItemSelected=new l,this.onItemClicked=new l,this.onItemDestroyed=new l}get selectedItem(){return this._selectedItem}select(s,t=!0){this._selectedItem=s,!(!t||!s)&&(s.focus(),this.onItemSelected.emit(s))}unselect(){this._selectedItem=void 0}},lt=(()=>{class o{constructor(){this.menuState={isVisible:!1,toString(){return this.isVisible===!0?"visible":"hidden"}},this.dropdownState=new Mt}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=ot({token:o,factory:o.\u0275fac}),o})(),Ot=(()=>{class o{constructor(t,e){this.state=t,this.element=e,this.preventClose=!1}ngOnDestroy(){this.state.dropdownState.onItemDestroyed.emit(this)}get isSelected(){return this===this.state.dropdownState.selectedItem}select(t){this.state.dropdownState.select(this,!0),t&&(t.stopPropagation(),t.preventDefault())}click(){this.state.dropdownState.onItemClicked.emit(this)}focus(){this.element.nativeElement.children[0].focus()}}return o.\u0275fac=function(t){return new(t||o)(M(lt),M(U))},o.\u0275cmp=I({type:o,selectors:[["ng2-menu-item"]],inputs:{preventClose:"preventClose",value:"value"},standalone:!1,ngContentSelectors:Pt,decls:2,vars:2,consts:[["role","button","tabindex","0",1,"ng2-menu-item",3,"keydown.enter","click","mouseover"]],template:function(t,e){t&1&&(K(),c(0,"div",0),y("keydown.enter",function(){return e.click()})("click",function(){return e.click()})("mouseover",function(){return e.select()}),R(1),_()),t&2&&L("ng2-menu-item--selected",e.isSelected)},styles:[".ng2-menu-item[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,Helvetica,Arial;background:#fff;color:#000000de;cursor:pointer;font-size:.9em;text-transform:none;font-weight:400;letter-spacing:.03em;height:48px;line-height:48px;padding:.3em 1.25rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;transition:background .25s}.ng2-menu-item--selected[_ngcontent-%COMP%]{background:rgba(158,158,158,.2);outline:0}.ng2-menu-item[_ngcontent-%COMP%]:focus{outline:0}.ng2-menu-item[_ngcontent-%COMP%]:active{background:rgba(158,158,158,.4)}ng2-menu-item[_nghost-%COMP%] [ng2-menu-item-icon]{vertical-align:middle;font-size:28px;width:1.5em;height:30px;color:#00000070}"]}),o})(),xt=(()=>{class o{constructor(t,e,n){this.dropdownState=t,this.element=e,this.renderer=n,this.width=4,this.focusFirstElement=!0,this.appendToBody=!0,this.zIndex=1e3,this.listeners={arrowHandler:void 0,handleKeypress:void 0}}show(t,e=!0){let n=typeof document<"u"?document:void 0,i=typeof window<"u"?window:void 0;this.dropdownState.menuState.isVisible||(this.listeners.handleKeypress=this.renderer.listen(n.body,"keydown",this.handleKeypress.bind(this)),this.listeners.arrowHandler=this.renderer.listen(i,"keydown",Ve)),this.dropdownState.menuState.isVisible=!0,t&&this.updatePosition(t,e)}hide(){this.dropdownState.menuState.isVisible=!1,this.dropdownState.dropdownState.unselect(),this.listeners.arrowHandler&&this.listeners.arrowHandler(),this.listeners.handleKeypress&&this.listeners.handleKeypress()}updatePosition(t,e){this.position=t,this.updateOnChange(e)}handleKeypress(t){let e=t.keyCode,n=this.items.toArray(),i=n.indexOf(this.dropdownState.dropdownState.selectedItem);pe.hasOwnProperty(e)&&pe[e].call(this,i,n,this.dropdownState.dropdownState)}getMenuElement(){return this.element.nativeElement.children[0]}calcPositionOffset(t){let e=typeof window<"u"?window:void 0,n=typeof document<"u"?document:void 0;if(!e||!n||!t)return;let i=this.getMenuElement(),r=e.pageXOffset!==void 0,d=(n.compatMode||"")==="CSS1Compat",m=r?e.pageXOffset:d?n.documentElement.scrollLeft:n.body.scrollLeft,w=r?e.pageYOffset:d?n.documentElement.scrollTop:n.body.scrollTop,{top:C,left:O}=this.applyOffset(`${t.top+(this.appendToBody?w-15:0)}px`,`${t.left+m-5}px`),k=i.clientWidth,V=i.clientHeight,tt=parseInt(C)+V+(this.appendToBody?0:w-15),ct=parseInt(O)+k,Z=e.innerHeight+e.scrollY,kt=e.innerWidth+e.scrollX;if(tt>=Z&&(C=`${parseInt(C.replace("px",""))-V}px`),ct>=kt){let ye=ct-kt+30;O=`${parseInt(O.replace("px",""))-ye}px`}return{top:C,left:O}}applyOffset(t,e){if(!this.offset)return{top:t,left:e};let n=this.offset.split(" ");return n[1]||(n[1]="0"),t=`${parseInt(t.replace("px",""))+parseInt(n[0])}px`,e=`${parseInt(e.replace("px",""))+parseInt(n[1])}px`,{top:t,left:e}}ngOnInit(){let t=typeof document<"u"?document:void 0;this.appendToBody&&t.body.appendChild(this.element.nativeElement)}updateOnChange(t=!0){let e=this.getMenuElement(),n=this.calcPositionOffset(this.position);n&&(this.renderer.setStyle(e,"top",n.top.toString()),this.renderer.setStyle(e,"left",n.left.toString())),this.focusFirstElement&&this.items.first&&!this.dropdownState.dropdownState.selectedItem&&this.dropdownState.dropdownState.select(this.items.first,!1)}ngOnDestroy(){let t=this.element.nativeElement;t.parentNode.removeChild(t),this.listeners.handleKeypress&&this.listeners.handleKeypress()}}return o.\u0275fac=function(t){return new(t||o)(M(lt),M(U),M(Y))},o.\u0275cmp=I({type:o,selectors:[["ng2-dropdown-menu"]],contentQueries:function(t,e,n){if(t&1&&N(n,Ot,5),t&2){let i;x(i=v())&&(e.items=i)}},inputs:{width:"width",focusFirstElement:"focusFirstElement",offset:"offset",appendToBody:"appendToBody",zIndex:"zIndex"},standalone:!1,ngContentSelectors:Pt,decls:4,vars:12,consts:[[1,"ng2-dropdown-menu__options-container"],["class","ng2-dropdown-backdrop",3,"click",4,"ngIf"],[1,"ng2-dropdown-backdrop",3,"click"]],template:function(t,e){t&1&&(K(),c(0,"div")(1,"div",0),R(2),_()(),P(3,xe,1,0,"div",1)),t&2&&(Lt(Qt("ng2-dropdown-menu ng2-dropdown-menu---width--",e.width)),Kt("z-index",e.zIndex),L("ng2-dropdown-menu--inside-element",!e.appendToBody)("ng2-dropdown-menu--open",e.dropdownState.menuState.isVisible),p("@fade",e.dropdownState.menuState.toString()),b(),p("@opacity",e.dropdownState.menuState.toString()),b(2),p("ngIf",e.dropdownState.menuState.isVisible))},dependencies:[W],styles:["[_nghost-%COMP%]{display:block}.ng2-dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;box-shadow:0 1px 2px #0000004d;position:absolute;padding:.5em 0;background:#fff;border-radius:1px;max-height:400px;width:260px;min-height:0;display:block}.ng2-dropdown-menu.ng2-dropdown-menu--inside-element[_ngcontent-%COMP%]{position:fixed}.ng2-dropdown-menu.ng2-dropdown-menu--width--2[_ngcontent-%COMP%]{width:200px}.ng2-dropdown-menu.ng2-dropdown-menu--width--4[_ngcontent-%COMP%]{width:260px}.ng2-dropdown-menu.ng2-dropdown-menu--width--6[_ngcontent-%COMP%]{width:320px}.ng2-dropdown-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:hidden}[_nghost-%COMP%] .ng2-menu-divider{height:1px;min-height:1px;max-height:1px;width:100%;display:block;background:#f9f9f9}"],data:{animation:[$("fade",[H("visible",u({opacity:1,height:"*",width:"*"})),H("hidden",u({opacity:0,overflow:"hidden",height:0,width:0})),E("hidden => visible",[D("250ms ease-in",u({opacity:1,height:"*",width:"*"}))]),E("visible => hidden",[D("350ms ease-out",u({opacity:0,width:0,height:0}))])]),$("opacity",[E("hidden => visible",[D("450ms ease-in",z([u({opacity:0,offset:0}),u({opacity:1,offset:1})]))]),E("visible => hidden",[D("250ms ease-out",z([u({opacity:1,offset:0}),u({opacity:.5,offset:.3}),u({opacity:0,offset:1})]))])])]}}),o})(),pt=(()=>{class o{constructor(t){this.state=t,this.dynamicUpdate=!0,this.onItemClicked=new l,this.onItemSelected=new l,this.onShow=new l,this.onHide=new l}ngOnInit(){this.state.dropdownState.onItemClicked.subscribe(t=>{this.onItemClicked.emit(t),!t.preventClose&&this.hide.call(this)}),this.button&&this.button.onMenuToggled.subscribe(()=>{this.toggleMenu()}),this.state.dropdownState.onItemSelected.subscribe(t=>{this.onItemSelected.emit(t)}),this.state.dropdownState.onItemDestroyed.subscribe(t=>{let e,n=this.menu.items.toArray();t===this.state.dropdownState.selectedItem&&(this.menu.focusFirstElement&&(e=t===n[0]&&n.length>1?n[1]:n[0]),this.state.dropdownState.select(e))})}toggleMenu(t=this.button.getPosition()){this.state.menuState.isVisible?this.hide():this.show(t)}hide(){this.menu.hide(),this.onHide.emit(this)}show(t=this.button.getPosition()){this.menu.show(t,this.dynamicUpdate),this.onShow.emit(this)}scrollListener(){this.button&&this.dynamicUpdate&&this.menu.updatePosition(this.button.getPosition(),!0)}}return o.\u0275fac=function(t){return new(t||o)(M(lt))},o.\u0275cmp=I({type:o,selectors:[["ng2-dropdown"]],contentQueries:function(t,e,n){if(t&1&&(N(n,Te,7),N(n,xt,7)),t&2){let i;x(i=v())&&(e.button=i.first),x(i=v())&&(e.menu=i.first)}},hostBindings:function(t,e){t&1&&y("scroll",function(){return e.scrollListener()},X)},inputs:{dynamicUpdate:"dynamicUpdate"},outputs:{onItemClicked:"onItemClicked",onItemSelected:"onItemSelected",onShow:"onShow",onHide:"onHide"},standalone:!1,features:[at([lt])],ngContentSelectors:Ie,decls:3,vars:0,consts:[[1,"ng2-dropdown-container"]],template:function(t,e){t&1&&(K(ve),c(0,"div",0),R(1),R(2,1),_())},encapsulation:2}),o})(),ge=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=rt({type:o}),o.\u0275inj=it({imports:[[dt]]}),o})();var Re=["input"],Ne=(o,s)=>({item:o,index:s});function Ae(o,s){}function Ke(o,s){if(o&1&&(c(0,"div"),P(1,Ae,0,0,"ng-template",4),_()),o&2){let t=g();S("contenteditable",t.editing),b(),p("ngTemplateOutletContext",jt(3,Ne,t.model,t.index))("ngTemplateOutlet",t.template)}}function Le(o,s){if(o&1){let t=A();c(0,"delete-icon",8),y("click",function(n){f(t);let i=g(2);return h(i.remove(n))}),_()}}function He(o,s){if(o&1){let t=A();c(0,"div",5)(1,"div",6),y("keydown.enter",function(n){f(t);let i=g();return h(i.disableEditMode(n))})("keydown.escape",function(n){f(t);let i=g();return h(i.disableEditMode(n))})("click",function(n){f(t);let i=g();return h(i.editing?n.stopPropagation():void 0)})("blur",function(n){f(t);let i=g();return h(i.onBlurred(n))}),mt(2),_(),P(3,Le,1,0,"delete-icon",7),_()}if(o&2){let t=g();b(),S("contenteditable",t.editing)("title",t.getDisplayValue(t.model)),b(),zt(" ",t.getDisplayValue(t.model)," "),b(),p("ngIf",t.isDeleteIconVisible())}}function ze(o,s){if(o&1&&F(0,"tag-ripple",9),o&2){let t=g();p("state",t.rippleState),S("tabindex",-1)}}var Qe=(o,s,t)=>({item:o,index:s,last:t});function je(o,s){if(o&1&&(F(0,"span",6),ht(1,"highlight")),o&2){let t=g().$implicit,e=g();p("innerHTML",Wt(1,1,t[e.displayBy],e.tagInput.inputForm.value.value),Ft)}}function Ue(o,s){}function qe(o,s){if(o&1&&P(0,Ue,0,0,"ng-template",7),o&2){let t=g(),e=t.$implicit,n=t.index,i=t.last,r=g();p("ngTemplateOutlet",r.templates.first)("ngTemplateOutletContext",Ut(2,Qe,e,n,i))}}function We(o,s){if(o&1&&(c(0,"ng2-menu-item",3),P(1,je,2,4,"span",4)(2,qe,1,6,null,5),_()),o&2){let t=s.$implicit,e=g();p("value",t)("ngSwitch",!!e.templates.length),b(),p("ngSwitchCase",!1)}}var $e=["*"];function Ze(o,s){if(o&1){let t=A();c(0,"tag",6),y("onSelect",function(){let n=f(t).$implicit,i=g();return h(i.selectItem(n))})("onRemove",function(){let n=f(t),i=n.$implicit,r=n.index,d=g();return h(d.onRemoveRequested(i,r))})("onKeyDown",function(n){f(t);let i=g();return h(i.handleKeydown(n))})("onTagEdited",function(n){f(t);let i=g();return h(i.updateEditedTag(n))})("onBlur",function(n){let i=f(t).index,r=g();return h(r.onTagBlurred(n,i))})("dragstart",function(n){let i=f(t),r=i.$implicit,d=i.index,m=g();return h(m.dragZone?m.onDragStarted(n,r,d):void 0)})("drop",function(n){let i=f(t).index,r=g();return h(r.dragZone?r.onTagDropped(n,i):void 0)})("dragenter",function(n){f(t);let i=g();return h(i.dragZone?i.onDragOver(n):void 0)})("dragover",function(n){let i=f(t).index,r=g();return h(r.dragZone?r.onDragOver(n,i):void 0)})("dragleave",function(){f(t);let n=g();return h(n.dragZone?n.dragProvider.onDragEnd():void 0)}),_()}if(o&2){let t=s.$implicit,e=s.index,n=g();p("draggable",ft(n.editable))("canAddTag",n.isTagValid)("disabled",n.disable)("@animation",n.animationMetadata)("hasRipple",n.ripple)("index",e)("removable",n.removable)("editable",n.editable)("displayBy",n.displayBy)("identifyBy",n.identifyBy)("template",n.hasCustomTemplate()?n.templates.first:void 0)("draggable",n.dragZone)("model",t),S("tabindex",0)}}function Ge(o,s){o&1&&F(0,"div",7)}function Xe(o,s){if(o&1&&(c(0,"p",10)(1,"span"),mt(2),_()()),o&2){let t=s.$implicit;b(2),Ht(t)}}function Ye(o,s){if(o&1&&(c(0,"div",8),P(1,Xe,3,1,"p",9),_()),o&2){let t=g();p("ngClass",t.theme),b(),p("ngForOf",t.errors)}}var Je=o=>o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),tn=(()=>{class o{transform(t,e){if(!e.trim())return t;try{let n=new RegExp(`(${Je(e)})`,"i");return t.replace(n,"<b>$1</b>")}catch{return t}}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275pipe=Nt({name:"highlight",type:o,pure:!0,standalone:!1}),o})(),en="+ Tag",nn="Enter a new tag",vt="keydown",on="keyup";var sn="The number of items specified was greater than the property max-items.",B={DELETE:"DELETE",SWITCH_PREV:"SWITCH_PREV",SWITCH_NEXT:"SWITCH_NEXT",TAB:"TAB"},rn={8:B.DELETE,46:B.DELETE,37:B.SWITCH_PREV,39:B.SWITCH_NEXT,9:B.TAB},ce="Text",gt="NEXT",It="PREV",Ce=(()=>{class o{constructor(){this.state={dragging:!1,dropping:!1,index:void 0}}setDraggedItem(t,e){t&&t.dataTransfer&&t.dataTransfer.setData(ce,JSON.stringify(e))}getDraggedItem(t){if(t&&t.dataTransfer){let e=t.dataTransfer.getData(ce);try{return JSON.parse(e)}catch{return}}}setSender(t){this.sender=t}setReceiver(t){this.receiver=t}onTagDropped(t,e,n){this.onDragEnd(),this.sender.onRemoveRequested(t,e),this.receiver.onAddingRequested(!1,t,n)}setState(t){this.state=T(T({},this.state),t)}getState(t){return t?this.state[t]:this.state}onDragEnd(){this.setState({dragging:!1,dropping:!1,index:void 0})}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=ot({token:o,factory:o.\u0275fac}),o})(),a={tagInput:{separatorKeys:[],separatorKeyCodes:[],maxItems:1/0,placeholder:en,secondaryPlaceholder:nn,validators:[],asyncValidators:[],onlyFromAutocomplete:!1,errorMessages:{},theme:"",onTextChangeDebounce:250,inputId:null,inputClass:"",clearOnBlur:!1,hideForm:!1,addOnBlur:!1,addOnPaste:!1,pasteSplitPattern:",",blinkIfDupe:!0,removable:!0,editable:!1,allowDupes:!1,modelAsStrings:!1,trimTags:!0,ripple:!0,tabIndex:"",disable:!1,dragZone:"",onRemoving:void 0,onAdding:void 0,displayBy:"display",identifyBy:"value",animationDuration:{enter:"250ms",leave:"150ms"}},dropdown:{displayBy:"display",identifyBy:"value",appendToBody:!0,offset:"50 0",focusFirstElement:!1,showDropdownIfEmpty:!1,minimumTextLength:1,limitItemsTo:1/0,keepOpen:!0,dynamicUpdate:!0,zIndex:1e3,matchingFn:an}};function an(o,s){let t=s[this.displayBy].toString();return t&&t.toLowerCase().indexOf(o.toLowerCase())>=0}var Tt=(()=>{class o{setOptions(t){o.defaults.tagInput=T(T({},a.tagInput),t.tagInput),o.defaults.dropdown=T(T({},a.dropdown),t.dropdown)}}return o.defaults=a,o})();function ue(o){return o===Object(o)}var dn=(()=>{class o{constructor(){this._items=[],this.displayBy=Tt.defaults.tagInput.displayBy,this.identifyBy=Tt.defaults.tagInput.identifyBy}get items(){return this._items}set items(t){this._items=t,this._onChangeCallback(this._items)}onTouched(){this._onTouchedCallback()}writeValue(t){this._items=t||[]}registerOnChange(t){this._onChangeCallback=t}registerOnTouched(t){this._onTouchedCallback=t}getItemValue(t,e=!1){let n=e&&this.dropdown?this.dropdown.identifyBy:this.identifyBy;return ue(t)?t[n]:t}getItemDisplay(t,e=!1){let n=e&&this.dropdown?this.dropdown.displayBy:this.displayBy;return ue(t)?t[n]:t}getItemsWithout(t){return this.items.filter((e,n)=>n!==t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275dir=Rt({type:o,inputs:{displayBy:"displayBy",identifyBy:"identifyBy"},standalone:!1}),o})();function me(o,s,t=!0){if(!this.listeners.hasOwnProperty(o))throw new Error("The event entered may be wrong");t&&this.listeners[o].push(s)}var fe=(()=>{class o{constructor(){this.onSubmit=new l,this.onBlur=new l,this.onFocus=new l,this.onKeyup=new l,this.onKeydown=new l,this.inputTextChange=new l,this.validators=[],this.asyncValidators=[],this.tabindex="",this.disabled=!1,this.item=new oe({value:"",disabled:this.disabled})}get inputText(){return this.item.value}set inputText(t){this.item.setValue(t),this.inputTextChange.emit(t)}ngOnInit(){this.item.setValidators(this.validators),this.item.setAsyncValidators(this.asyncValidators),this.form=new ne({item:this.item})}ngOnChanges(t){t.disabled&&!t.disabled.firstChange&&(t.disabled.currentValue?this.form.controls.item.disable():this.form.controls.item.enable())}get value(){return this.form.get("item")}isInputFocused(){let t=typeof document<"u"?document:void 0;return t?t.activeElement===this.input.nativeElement:!1}getErrorMessages(t){return Object.keys(t).filter(e=>this.value.hasError(e)).map(e=>t[e])}hasErrors(){let{dirty:t,value:e,valid:n}=this.form;return t&&e.item&&!n}focus(){this.input.nativeElement.focus()}blur(){this.input.nativeElement.blur()}getElementPosition(){return this.input.nativeElement.getBoundingClientRect()}destroy(){let t=this.input.nativeElement;t.parentElement.removeChild(t)}onKeyDown(t){if(this.inputText=this.value.value,t.key==="Enter")this.submit(t);else return this.onKeydown.emit(t)}onKeyUp(t){return this.inputText=this.value.value,this.onKeyup.emit(t)}submit(t){t.preventDefault(),this.onSubmit.emit(t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=I({type:o,selectors:[["tag-input-form"]],viewQuery:function(t,e){if(t&1&&q(Re,5),t&2){let n;x(n=v())&&(e.input=n.first)}},inputs:{placeholder:"placeholder",validators:"validators",asyncValidators:"asyncValidators",inputId:"inputId",inputClass:"inputClass",tabindex:"tabindex",disabled:"disabled",inputText:"inputText"},outputs:{onSubmit:"onSubmit",onBlur:"onBlur",onFocus:"onFocus",onKeyup:"onKeyup",onKeydown:"onKeydown",inputTextChange:"inputTextChange"},standalone:!1,features:[Vt],decls:3,vars:9,consts:[["input",""],[3,"ngSubmit","formGroup"],["type","text","autocomplete","off","minlength","1","formControlName","item",1,"ng2-tag-input__text-input",3,"focus","blur","keydown","keyup","tabindex","ngClass"]],template:function(t,e){if(t&1){let n=A();c(0,"form",1),y("ngSubmit",function(r){return f(n),h(e.submit(r))}),c(1,"input",2,0),y("focus",function(r){return f(n),h(e.onFocus.emit(r))})("blur",function(r){return f(n),h(e.onBlur.emit(r))})("keydown",function(r){return f(n),h(e.onKeyDown(r))})("keyup",function(r){return f(n),h(e.onKeyUp(r))}),_()()}t&2&&(p("formGroup",e.form),b(),p("tabindex",ft(e.disabled?-1:e.tabindex?e.tabindex:0))("ngClass",e.inputClass),S("id",e.inputId)("placeholder",e.placeholder)("aria-label",e.placeholder)("tabindex",e.tabindex)("disabled",e.disabled?e.disabled:null))},dependencies:[ie,ee,se,Jt,ae,te,re,_t],styles:[".dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}.ng2-tag-input__text-input[_ngcontent-%COMP%]{display:inline;vertical-align:middle;border:none;padding:0 .5rem;height:38px;font-size:1em;font-family:Roboto,Helvetica Neue,sans-serif}.ng2-tag-input__text-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input__text-input[disabled=true][_ngcontent-%COMP%]{opacity:.5;background:#fff}"]}),o})(),he=(()=>{class o{constructor(){this.state="none"}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=I({type:o,selectors:[["tag-ripple"]],inputs:{state:"state"},standalone:!1,decls:1,vars:1,consts:[[1,"tag-ripple"]],template:function(t,e){t&1&&F(0,"div",0),t&2&&p("@ink",e.state)},styles:["[_nghost-%COMP%]{width:100%;height:100%;left:0;overflow:hidden;position:absolute}.tag-ripple[_ngcontent-%COMP%]{background:rgba(0,0,0,.1);top:50%;left:50%;height:100%;transform:translate(-50%,-50%);position:absolute}"],data:{animation:[$("ink",[H("none",u({width:0,opacity:0})),E("none => clicked",[D(300,z([u({opacity:1,offset:0,width:"30%",borderRadius:"100%"}),u({opacity:1,offset:.5,width:"50%"}),u({opacity:.5,offset:1,width:"100%",borderRadius:"16px"})]))])])]}}),o})(),ln=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=I({type:o,selectors:[["delete-icon"]],standalone:!1,decls:3,vars:0,consts:[["height","16px","viewBox","0 0 32 32","width","16px"],["d","M17.459,16.014l8.239-8.194c0.395-0.391,0.395-1.024,0-1.414c-0.394-0.391-1.034-0.391-1.428,0 l-8.232,8.187L7.73,6.284c-0.394-0.395-1.034-0.395-1.428,0c-0.394,0.396-0.394,1.037,0,1.432l8.302,8.303l-8.332,8.286 c-0.394,0.391-0.394,1.024,0,1.414c0.394,0.391,1.034,0.391,1.428,0l8.325-8.279l8.275,8.276c0.394,0.395,1.034,0.395,1.428,0 c0.394-0.396,0.394-1.037,0-1.432L17.459,16.014z","fill","#121313"]],template:function(t,e){t&1&&(c(0,"span"),st(),c(1,"svg",0),F(2,"path",1),_()())},styles:[".dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}delete-icon[_nghost-%COMP%]{width:20px;height:16px;transition:all .15s;display:inline-block;text-align:right}delete-icon[_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#444}delete-icon[_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}delete-icon[_nghost-%COMP%]:hover{transform:scale(1.5) translateY(-3px)}.dark[_nghost-%COMP%], .dark [_nghost-%COMP%]{text-align:right}.dark[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.dark[_nghost-%COMP%] svg[_ngcontent-%COMP%], .dark [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.minimal[_nghost-%COMP%], .minimal [_nghost-%COMP%]{text-align:right}.minimal[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#444}.minimal[_nghost-%COMP%] svg[_ngcontent-%COMP%], .minimal [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.bootstrap[_nghost-%COMP%], .bootstrap [_nghost-%COMP%]{text-align:right}.bootstrap[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.bootstrap[_nghost-%COMP%] svg[_ngcontent-%COMP%], .bootstrap [_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.dark tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .dark tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#000}.minimal tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .minimal tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#000}.bootstrap tag:focus[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:focus [_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:active[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap tag:active [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.bootstrap3-info[_nghost-%COMP%], .bootstrap3-info [_nghost-%COMP%]{height:inherit}.bootstrap3-info[_nghost-%COMP%] path[_ngcontent-%COMP%], .bootstrap3-info [_nghost-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}"]}),o})(),_e=typeof window<"u"?window.navigator:{userAgent:"Chrome",vendor:"Google Inc"},pn=/Chrome/.test(_e.userAgent)&&/Google Inc/.test(_e.vendor),be=(()=>{class o{constructor(t,e,n){this.element=t,this.renderer=e,this.cdRef=n,this.disabled=!1,this.onSelect=new l,this.onRemove=new l,this.onBlur=new l,this.onKeyDown=new l,this.onTagEdited=new l,this.editing=!1,this.rippleState="none"}get readonly(){return typeof this.model!="string"&&this.model.readonly===!0}select(t){this.readonly||this.disabled||(t&&t.stopPropagation(),this.focus(),this.onSelect.emit(this.model))}remove(t){t.stopPropagation(),this.onRemove.emit(this)}focus(){this.element.nativeElement.focus()}move(){this.moving=!0}keydown(t){if(this.editing){if(t.keyCode===13)return this.disableEditMode(t)}else this.onKeyDown.emit({event:t,model:this.model})}blink(){let t=this.element.nativeElement.classList;t.add("blink"),setTimeout(()=>t.remove("blink"),50)}toggleEditMode(){if(this.editable)return this.editing?void 0:this.activateEditMode()}onBlurred(t){if(!this.editable)return;this.disableEditMode();let e=t.target.innerText,n=typeof this.model=="string"?e:et(T({},this.model),{[this.displayBy]:e});this.onBlur.emit(n)}getDisplayValue(t){return typeof t=="string"?t:t[this.displayBy]}get isRippleVisible(){return!this.readonly&&!this.editing&&pn&&this.hasRipple}disableEditMode(t){let e=this.element.nativeElement.classList,n=this.getContentEditableText();if(this.editing=!1,e.remove("tag--editing"),!n){this.setContentEditableText(this.model);return}this.storeNewValue(n),this.cdRef.detectChanges(),t&&t.preventDefault()}isDeleteIconVisible(){return!this.readonly&&!this.disabled&&this.removable&&!this.editing}getContentEditableText(){let t=this.getContentEditable();return t?t.innerText.trim():""}setContentEditableText(t){let e=this.getContentEditable(),n=this.getDisplayValue(t);e.innerText=n}activateEditMode(){this.element.nativeElement.classList.add("tag--editing"),this.editing=!0}storeNewValue(t){let e=r=>typeof r=="string"?r===t:r[this.displayBy]===t,n=()=>this.model[this.identifyBy]!==this.model[this.displayBy];if(e(this.model))return;let i=typeof this.model=="string"?t:{index:this.index,[this.identifyBy]:n()?this.model[this.identifyBy]:t,[this.displayBy]:t};this.canAddTag(i)?this.onTagEdited.emit({tag:i,index:this.index}):this.setContentEditableText(this.model)}getContentEditable(){return this.element.nativeElement.querySelector("[contenteditable]")}}return o.\u0275fac=function(t){return new(t||o)(M(U),M(Y),M($t))},o.\u0275cmp=I({type:o,selectors:[["tag"]],viewQuery:function(t,e){if(t&1&&q(he,5),t&2){let n;x(n=v())&&(e.ripple=n.first)}},hostVars:2,hostBindings:function(t,e){t&1&&y("keydown",function(i){return e.keydown(i)}),t&2&&L("moving",e.moving)},inputs:{model:"model",removable:"removable",editable:"editable",template:"template",displayBy:"displayBy",identifyBy:"identifyBy",index:"index",hasRipple:"hasRipple",disabled:"disabled",canAddTag:"canAddTag"},outputs:{onSelect:"onSelect",onRemove:"onRemove",onBlur:"onBlur",onKeyDown:"onKeyDown",onTagEdited:"onTagEdited"},standalone:!1,decls:4,vars:8,consts:[[3,"click","dblclick","mousedown","mouseup","ngSwitch"],[4,"ngSwitchCase"],["class","tag-wrapper",4,"ngSwitchCase"],[3,"state",4,"ngIf"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"tag-wrapper"],["spellcheck","false",1,"tag__text","inline",3,"keydown.enter","keydown.escape","click","blur"],["aria-label","Remove tag","role","button",3,"click",4,"ngIf"],["aria-label","Remove tag","role","button",3,"click"],[3,"state"]],template:function(t,e){t&1&&(c(0,"div",0),y("click",function(i){return e.select(i)})("dblclick",function(){return e.toggleEditMode()})("mousedown",function(){return e.rippleState="clicked"})("mouseup",function(){return e.rippleState="none"}),P(1,Ke,2,6,"div",1)(2,He,4,4,"div",2),_(),P(3,ze,1,2,"tag-ripple",3)),t&2&&(L("disabled",e.disabled),p("ngSwitch",!!e.template),S("tabindex",-1)("aria-label",e.getDisplayValue(e.model)),b(),p("ngSwitchCase",!0),b(),p("ngSwitchCase",!1),b(),p("ngIf",e.isRippleVisible))},dependencies:[ln,he,Ct,wt,yt,W],styles:["[_nghost-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]:focus{outline:0;overflow:hidden;transition:opacity 1s;z-index:1}[_nghost-%COMP%]{max-width:400px}.blink[_nghost-%COMP%]{-webkit-animation:_ngcontent-%COMP%_blink .3s normal forwards ease-in-out;animation:_ngcontent-%COMP%_blink .3s normal forwards ease-in-out}@-webkit-keyframes _ngcontent-%COMP%_blink{0%{opacity:.3}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.3}}[_nghost-%COMP%] .disabled[_ngcontent-%COMP%]{cursor:not-allowed}[_nghost-%COMP%] [contenteditable=true][_ngcontent-%COMP%]{outline:0}.tag-wrapper[_ngcontent-%COMP%]{flex-direction:row;display:flex}.tag__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]}),o})(),gn=[$("animation",[H("in",u({opacity:1})),H("out",u({opacity:0})),E(":enter",[D("{{ enter }}",z([u({opacity:0,offset:0,transform:"translate(0px, 20px)"}),u({opacity:.3,offset:.3,transform:"translate(0px, -10px)"}),u({opacity:.5,offset:.5,transform:"translate(0px, 0px)"}),u({opacity:.75,offset:.75,transform:"translate(0px, 5px)"}),u({opacity:1,offset:1,transform:"translate(0px, 0px)"})]))]),E(":leave",[D("{{ leave }}",z([u({opacity:1,transform:"translateX(0)",offset:0}),u({opacity:1,transform:"translateX(-15px)",offset:.7}),u({opacity:0,transform:"translateX(100%)",offset:1})]))])])],cn=(()=>{class o{constructor(t){this.injector=t,this.offset=a.dropdown.offset,this.focusFirstElement=a.dropdown.focusFirstElement,this.showDropdownIfEmpty=a.dropdown.showDropdownIfEmpty,this.minimumTextLength=a.dropdown.minimumTextLength,this.limitItemsTo=a.dropdown.limitItemsTo,this.displayBy=a.dropdown.displayBy,this.identifyBy=a.dropdown.identifyBy,this.matchingFn=a.dropdown.matchingFn,this.appendToBody=a.dropdown.appendToBody,this.keepOpen=a.dropdown.keepOpen,this.dynamicUpdate=a.dropdown.dynamicUpdate,this.zIndex=a.dropdown.zIndex,this.items=[],this.tagInput=this.injector.get(we),this._autocompleteItems=[],this.show=()=>{let e=this.tagInput.items.length===this.tagInput.maxItems,n=this.getFormValue(),i=n.trim().length>=this.minimumTextLength,r=this.calculatePosition(),d=this.getMatchingItems(n),m=d.length>0,w=this.isVisible===!1,C=this.showDropdownIfEmpty&&m&&!n,O=this.tagInput.disable,k=w&&(m&&i||C),V=this.isVisible&&!m;if(this.autocompleteObservable&&i)return this.getItemsFromObservable(n);if(!this.showDropdownIfEmpty&&!n||e||O)return this.dropdown.hide();this.setItems(d),k?this.dropdown.show(r):V&&this.hide()},this.requestAdding=e=>nt(this,null,function*(){let n=this.createTagModel(e);yield this.tagInput.onAddingRequested(!0,n).catch(()=>{})}),this.resetItems=()=>{this.items=[]},this.getItemsFromObservable=e=>{this.setLoadingState(!0);let n=i=>{this.setLoadingState(!1).populateItems(i),this.setItems(this.getMatchingItems(e)),this.items.length?this.dropdown.show(this.calculatePosition()):this.dropdown.hide()};this.autocompleteObservable(e).pipe(j()).subscribe(n,()=>this.setLoadingState(!1))}}set autocompleteItems(t){this._autocompleteItems=t}get autocompleteItems(){let t=this._autocompleteItems;return t?t.map(e=>typeof e=="string"?{[this.displayBy]:e,[this.identifyBy]:e}:e):[]}ngAfterViewInit(){this.onItemClicked().subscribe(n=>{this.requestAdding(n)}),this.onHide().subscribe(this.resetItems);let t=200,e=this.keepOpen;this.tagInput.onTextChange.asObservable().pipe(Dt(),G(t),Q(n=>e===!1?n.length>0:!0)).subscribe(this.show)}updatePosition(){let t=this.tagInput.inputForm.getElementPosition();this.dropdown.menu.updatePosition(t,this.dynamicUpdate)}get isVisible(){return this.dropdown.menu.dropdownState.menuState.isVisible}onHide(){return this.dropdown.onHide}onItemClicked(){return this.dropdown.onItemClicked}get selectedItem(){return this.dropdown.menu.dropdownState.dropdownState.selectedItem}get state(){return this.dropdown.menu.dropdownState}hide(){this.resetItems(),this.dropdown.hide()}scrollListener(){!this.isVisible||!this.dynamicUpdate||this.updatePosition()}onWindowBlur(){this.dropdown.hide()}getFormValue(){let t=this.tagInput.formValue;return t?t.toString().trim():""}calculatePosition(){return this.tagInput.inputForm.getElementPosition()}createTagModel(t){let e=typeof t.value=="string"?t.value:t.value[this.displayBy],n=typeof t.value=="string"?t.value:t.value[this.identifyBy];return et(T({},t.value),{[this.tagInput.displayBy]:e,[this.tagInput.identifyBy]:n})}getMatchingItems(t){if(!t&&!this.showDropdownIfEmpty)return[];let e=this.tagInput.allowDupes;return this.autocompleteItems.filter(n=>{let i=e?!1:this.tagInput.tags.some(r=>{let d=this.tagInput.identifyBy;return(typeof r.model=="string"?r.model:r.model[d])===n[this.identifyBy]});return this.matchingFn(t,n)&&i===!1})}setItems(t){this.items=t.slice(0,this.limitItemsTo||t.length)}populateItems(t){return this.autocompleteItems=t.map(e=>typeof e=="string"?{[this.displayBy]:e,[this.identifyBy]:e}:e),this}setLoadingState(t){return this.tagInput.isLoading=t,this}}return o.\u0275fac=function(t){return new(t||o)(M(Bt))},o.\u0275cmp=I({type:o,selectors:[["tag-input-dropdown"]],contentQueries:function(t,e,n){if(t&1&&N(n,ut,4),t&2){let i;x(i=v())&&(e.templates=i)}},viewQuery:function(t,e){if(t&1&&q(pt,5),t&2){let n;x(n=v())&&(e.dropdown=n.first)}},hostBindings:function(t,e){t&1&&y("scroll",function(){return e.scrollListener()},X)("blur",function(){return e.onWindowBlur()},X)},inputs:{offset:"offset",focusFirstElement:"focusFirstElement",showDropdownIfEmpty:"showDropdownIfEmpty",autocompleteObservable:"autocompleteObservable",minimumTextLength:"minimumTextLength",limitItemsTo:"limitItemsTo",displayBy:"displayBy",identifyBy:"identifyBy",matchingFn:"matchingFn",appendToBody:"appendToBody",keepOpen:"keepOpen",dynamicUpdate:"dynamicUpdate",zIndex:"zIndex",autocompleteItems:"autocompleteItems"},standalone:!1,decls:3,vars:6,consts:[[3,"dynamicUpdate"],[3,"focusFirstElement","zIndex","appendToBody","offset"],[3,"value","ngSwitch",4,"ngFor","ngForOf"],[3,"value","ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHTML"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){t&1&&(c(0,"ng2-dropdown",0)(1,"ng2-dropdown-menu",1),P(2,We,3,3,"ng2-menu-item",2),_()()),t&2&&(p("dynamicUpdate",e.dynamicUpdate),b(),p("focusFirstElement",e.focusFirstElement)("zIndex",e.zIndex)("appendToBody",e.appendToBody)("offset",e.offset),b(),p("ngForOf",e.items))},dependencies:[pt,xt,Ot,bt,Ct,wt,Zt,yt,tn],encapsulation:2}),o})(),un={provide:Xt,useExisting:Et(()=>we),multi:!0},we=(()=>{class o extends dn{constructor(t,e){super(),this.renderer=t,this.dragProvider=e,this.separatorKeys=a.tagInput.separatorKeys,this.separatorKeyCodes=a.tagInput.separatorKeyCodes,this.placeholder=a.tagInput.placeholder,this.secondaryPlaceholder=a.tagInput.secondaryPlaceholder,this.maxItems=a.tagInput.maxItems,this.validators=a.tagInput.validators,this.asyncValidators=a.tagInput.asyncValidators,this.onlyFromAutocomplete=a.tagInput.onlyFromAutocomplete,this.errorMessages=a.tagInput.errorMessages,this.theme=a.tagInput.theme,this.onTextChangeDebounce=a.tagInput.onTextChangeDebounce,this.inputId=a.tagInput.inputId,this.inputClass=a.tagInput.inputClass,this.clearOnBlur=a.tagInput.clearOnBlur,this.hideForm=a.tagInput.hideForm,this.addOnBlur=a.tagInput.addOnBlur,this.addOnPaste=a.tagInput.addOnPaste,this.pasteSplitPattern=a.tagInput.pasteSplitPattern,this.blinkIfDupe=a.tagInput.blinkIfDupe,this.removable=a.tagInput.removable,this.editable=a.tagInput.editable,this.allowDupes=a.tagInput.allowDupes,this.modelAsStrings=a.tagInput.modelAsStrings,this.trimTags=a.tagInput.trimTags,this.ripple=a.tagInput.ripple,this.tabindex=a.tagInput.tabIndex,this.disable=a.tagInput.disable,this.dragZone=a.tagInput.dragZone,this.onRemoving=a.tagInput.onRemoving,this.onAdding=a.tagInput.onAdding,this.animationDuration=a.tagInput.animationDuration,this.onAdd=new l,this.onRemove=new l,this.onSelect=new l,this.onFocus=new l,this.onBlur=new l,this.onTextChange=new l,this.onPaste=new l,this.onValidationError=new l,this.onTagEdited=new l,this.isLoading=!1,this.listeners={[vt]:[],[on]:[]},this.inputTextChange=new l,this.inputTextValue="",this.errors=[],this.appendTag=(n,i=this.items.length)=>{let r=this.items,d=this.modelAsStrings?n[this.identifyBy]:n;this.items=[...r.slice(0,i),d,...r.slice(i,r.length)]},this.createTag=n=>{let i=(r,d)=>typeof r=="string"?r.trim():r[d];return et(T({},typeof n!="string"?n:{}),{[this.displayBy]:this.trimTags?i(n,this.displayBy):n,[this.identifyBy]:this.trimTags?i(n,this.identifyBy):n})},this.isTagValid=(n,i=!1)=>{let r=this.dropdown?this.dropdown.selectedItem:void 0,d=this.getItemDisplay(n).trim();if(r&&!i||!d)return!1;let m=this.findDupe(n,i);if(!this.allowDupes&&m&&this.blinkIfDupe){let O=this.tags.find(k=>this.getItemValue(k.model)===this.getItemValue(m));O&&O.blink()}let w=i&&this.onlyFromAutocomplete,C=[!m||this.allowDupes,!this.maxItemsReached,w||!this.onlyFromAutocomplete];return C.filter(Boolean).length===C.length},this.onPasteCallback=n=>nt(this,null,function*(){let r=(()=>{let w=!!window.clipboardData,C=w?window.clipboardData:n.clipboardData,O=w?"Text":"text/plain";return C===null?"":C.getData(O)||""})(),d=r.split(this.pasteSplitPattern).map(w=>{let C=this.createTag(w);return this.setInputValue(C[this.displayBy]),this.onAddingRequested(!1,C)}),m=()=>setTimeout(()=>this.setInputValue(""),50);Promise.all(d).then(()=>{this.onPaste.emit(r),m()}).catch(m)})}get inputText(){return this.inputTextValue}set inputText(t){this.inputTextValue=t,this.inputTextChange.emit(t)}get tabindexAttr(){return this.tabindex!==""?"-1":""}ngAfterViewInit(){this.setUpKeypressListeners(),this.setupSeparatorKeysListener(),this.setUpInputKeydownListeners(),this.onTextChange.observers.length&&this.setUpTextChangeSubscriber(),(this.clearOnBlur||this.addOnBlur)&&this.setUpOnBlurSubscriber(),this.addOnPaste&&this.setUpOnPasteListener();let t=this.inputForm.form.statusChanges;t.pipe(Q(e=>e!=="PENDING")).subscribe(()=>{this.errors=this.inputForm.getErrorMessages(this.errorMessages)}),this.isProgressBarVisible$=t.pipe(St(e=>e==="PENDING"||this.isLoading)),this.hideForm&&this.inputForm.destroy()}ngOnInit(){this.maxItems!==void 0&&this.items&&this.items.length>this.maxItems&&(this.maxItems=this.items.length,console.warn(sn)),this.editable=this.onlyFromAutocomplete?!1:this.editable,this.setAnimationMetadata()}onRemoveRequested(t,e){return new Promise(n=>{let i=r=>{this.removeItem(r,e),n(t)};this.onRemoving?this.onRemoving(t).pipe(j()).subscribe(i):i(t)})}onAddingRequested(t,e,n,i){return new Promise((r,d)=>{let m=w=>this.addItem(t,w,n,i).then(r).catch(d);return this.onAdding?this.onAdding(e).pipe(j()).subscribe(m,d):m(e)})}selectItem(t,e=!0){t&&typeof t!="string"&&t.readonly||this.selectedTag===t||(this.selectedTag=t,e&&this.onSelect.emit(t))}fireEvents(t,e){this.listeners[t].forEach(n=>n.call(this,e))}handleKeydown(t){let e=t.event,n=e.keyCode||e.which,i=e.shiftKey||!1;switch(rn[n]){case B.DELETE:if(this.selectedTag&&this.removable){let r=this.items.indexOf(this.selectedTag);this.onRemoveRequested(this.selectedTag,r)}break;case B.SWITCH_PREV:this.moveToTag(t.model,It);break;case B.SWITCH_NEXT:this.moveToTag(t.model,gt);break;case B.TAB:if(i){if(this.isFirstTag(t.model))return;this.moveToTag(t.model,It)}else{if(this.isLastTag(t.model)&&(this.disable||this.maxItemsReached))return;this.moveToTag(t.model,gt)}break;default:return}e.preventDefault()}onFormSubmit(){return nt(this,null,function*(){try{yield this.onAddingRequested(!1,this.formValue)}catch{return}})}setInputValue(t,e=!0){this.getControl().setValue(t,{emitEvent:e})}getControl(){return this.inputForm.value}focus(t=!1,e=!1){this.dragProvider.getState("dragging")||(this.selectItem(void 0,!1),t&&(this.inputForm.focus(),this.onFocus.emit(this.formValue)))}blur(){this.onTouched(),this.onBlur.emit(this.formValue)}hasErrors(){return!!this.inputForm&&this.inputForm.hasErrors()}isInputFocused(){return!!this.inputForm&&this.inputForm.isInputFocused()}hasCustomTemplate(){let t=this.templates?this.templates.first:void 0,e=this.dropdown&&this.dropdown.templates?this.dropdown.templates.first:void 0;return!!(t&&t!==e)}get maxItemsReached(){return this.maxItems!==void 0&&this.items.length>=this.maxItems}get formValue(){let t=this.inputForm.value;return t?t.value:""}onDragStarted(t,e,n){t.stopPropagation();let i={zone:this.dragZone,tag:e,index:n};this.dragProvider.setSender(this),this.dragProvider.setDraggedItem(t,i),this.dragProvider.setState({dragging:!0,index:n})}onDragOver(t,e){this.dragProvider.setState({dropping:!0}),this.dragProvider.setReceiver(this),t.preventDefault()}onTagDropped(t,e){let n=this.dragProvider.getDraggedItem(t);!n||n.zone!==this.dragZone||(this.dragProvider.onTagDropped(n.tag,n.index,e),t.preventDefault(),t.stopPropagation())}isDropping(){let t=this.dragProvider.receiver===this,e=this.dragProvider.getState("dropping");return!!(t&&e)}onTagBlurred(t,e){this.items[e]=t,this.blur()}trackBy(t,e){return e[this.identifyBy]}updateEditedTag(t){this.onTagEdited.emit(t)}moveToTag(t,e){let n=this.isLastTag(t),i=this.isFirstTag(t);if(e===gt&&n||e===It&&i){this.focus(!0);return}let d=e===gt?1:-1,m=this.getTagIndex(t)+d,w=this.getTagAtIndex(m);return w.select.call(w)}isFirstTag(t){return this.tags.first.model===t}isLastTag(t){return this.tags.last.model===t}getTagIndex(t){return this.tags.toArray().findIndex(n=>n.model===t)}getTagAtIndex(t){return this.tags.toArray()[t]}removeItem(t,e){this.items=this.getItemsWithout(e),this.selectedTag===t&&this.selectItem(void 0,!1),this.focus(!0,!1),this.onRemove.emit(t)}addItem(t=!1,e,n,i){let r=this.getItemDisplay(e),d=this.createTag(e);return t&&this.setInputValue(this.getItemValue(e,!0)),new Promise((m,w)=>{let C=()=>{this.setInputValue(""),i?this.focus(!1,!1):this.focus(!0,!1),m(r)},O=()=>{this.appendTag(d,n),this.onAdd.emit(d),this.dropdown&&(this.dropdown.hide(),this.dropdown.showDropdownIfEmpty&&this.dropdown.show())},k=this.inputForm.form.status,V=this.isTagValid(d,t),tt=()=>(this.onValidationError.emit(d),w());if(k==="VALID"&&V)return O(),C();if(k==="INVALID"||!V)return C(),tt();if(k==="PENDING")return this.inputForm.form.statusChanges.pipe(Q(Z=>Z!=="PENDING"),j()).subscribe(Z=>Z==="VALID"&&V?(O(),C()):(C(),tt()))})}setupSeparatorKeysListener(){let t=this.separatorKeyCodes.length>0||this.separatorKeys.length>0,e=n=>{let i=this.separatorKeyCodes.indexOf(n.keyCode)>=0,r=this.separatorKeys.indexOf(n.key)>=0,d=n.keyCode===229;(i||r&&!d)&&(n.preventDefault(),this.onAddingRequested(!1,this.formValue).catch(()=>{}))};me.call(this,vt,e,t)}setUpKeypressListeners(){let t=e=>{(e.keyCode===37||e.keyCode===8)&&!this.formValue&&this.items.length&&this.tags.last.select.call(this.tags.last)};me.call(this,vt,t)}setUpInputKeydownListeners(){this.inputForm.onKeydown.subscribe(t=>{t.key==="Backspace"&&this.formValue.trim()===""&&t.preventDefault()})}setUpOnPasteListener(){let t=this.inputForm.input.nativeElement;this.renderer.listen(t,"paste",e=>(this.onPasteCallback(e),e.preventDefault(),!0))}setUpTextChangeSubscriber(){this.inputForm.form.valueChanges.pipe(G(this.onTextChangeDebounce)).subscribe(t=>{this.onTextChange.emit(t.item)})}setUpOnBlurSubscriber(){let t=()=>!(this.dropdown&&this.dropdown.isVisible)&&!!this.formValue;this.inputForm.onBlur.pipe(G(100),Q(t)).subscribe(()=>{let e=()=>this.setInputValue("");if(this.addOnBlur)return this.onAddingRequested(!1,this.formValue,void 0,!0).then(e).catch(e);e()})}findDupe(t,e){let n=e?this.dropdown.identifyBy:this.identifyBy,i=t[n];return this.items.find(r=>this.getItemValue(r)===i)}setAnimationMetadata(){this.animationMetadata={value:"in",params:T({},this.animationDuration)}}}return o.\u0275fac=function(t){return new(t||o)(M(Y),M(Ce))},o.\u0275cmp=I({type:o,selectors:[["tag-input"]],contentQueries:function(t,e,n){if(t&1&&(N(n,cn,5),N(n,ut,4)),t&2){let i;x(i=v())&&(e.dropdown=i.first),x(i=v())&&(e.templates=i)}},viewQuery:function(t,e){if(t&1&&(q(fe,5),q(be,5)),t&2){let n;x(n=v())&&(e.inputForm=n.first),x(n=v())&&(e.tags=n)}},hostVars:1,hostBindings:function(t,e){t&2&&S("tabindex",e.tabindexAttr)},inputs:{separatorKeys:"separatorKeys",separatorKeyCodes:"separatorKeyCodes",placeholder:"placeholder",secondaryPlaceholder:"secondaryPlaceholder",maxItems:"maxItems",validators:"validators",asyncValidators:"asyncValidators",onlyFromAutocomplete:"onlyFromAutocomplete",errorMessages:"errorMessages",theme:"theme",onTextChangeDebounce:"onTextChangeDebounce",inputId:"inputId",inputClass:"inputClass",clearOnBlur:"clearOnBlur",hideForm:"hideForm",addOnBlur:"addOnBlur",addOnPaste:"addOnPaste",pasteSplitPattern:"pasteSplitPattern",blinkIfDupe:"blinkIfDupe",removable:"removable",editable:"editable",allowDupes:"allowDupes",modelAsStrings:"modelAsStrings",trimTags:"trimTags",inputText:"inputText",ripple:"ripple",tabindex:"tabindex",disable:"disable",dragZone:"dragZone",onRemoving:"onRemoving",onAdding:"onAdding",animationDuration:"animationDuration"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onSelect:"onSelect",onFocus:"onFocus",onBlur:"onBlur",onTextChange:"onTextChange",onPaste:"onPaste",onValidationError:"onValidationError",onTagEdited:"onTagEdited",inputTextChange:"inputTextChange"},standalone:!1,features:[at([un]),At],ngContentSelectors:$e,decls:8,vars:27,consts:[[1,"ng2-tag-input",3,"click","drop","dragenter","dragover","dragend","ngClass"],[1,"ng2-tags-container"],[3,"draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model","onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave",4,"ngFor","ngForOf","ngForTrackBy"],[3,"onSubmit","onBlur","click","onKeydown","onKeyup","inputText","disabled","validators","asyncValidators","hidden","placeholder","inputClass","inputId","tabindex"],["class","progress-bar",4,"ngIf"],["class","error-messages",3,"ngClass",4,"ngIf"],[3,"onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave","draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model"],[1,"progress-bar"],[1,"error-messages",3,"ngClass"],["class","error-message",4,"ngFor","ngForOf"],[1,"error-message"]],template:function(t,e){t&1&&(K(),c(0,"div",0),y("click",function(){return e.focus(!0,!1)})("drop",function(i){return e.dragZone?e.onTagDropped(i,void 0):void 0})("dragenter",function(i){return e.dragZone?e.onDragOver(i):void 0})("dragover",function(i){return e.dragZone?e.onDragOver(i):void 0})("dragend",function(){return e.dragZone?e.dragProvider.onDragEnd():void 0}),c(1,"div",1),P(2,Ze,1,15,"tag",2),c(3,"tag-input-form",3),y("onSubmit",function(){return e.onFormSubmit()})("onBlur",function(){return e.blur()})("click",function(){return e.dropdown?e.dropdown.show():void 0})("onKeydown",function(i){return e.fireEvents("keydown",i)})("onKeyup",function(i){return e.fireEvents("keyup",i)}),_()(),P(4,Ge,1,0,"div",4),ht(5,"async"),_(),P(6,Ye,2,2,"div",5),R(7)),t&2&&(L("ng2-tag-input--dropping",e.isDropping())("ng2-tag-input--disabled",e.disable)("ng2-tag-input--loading",e.isLoading)("ng2-tag-input--invalid",e.hasErrors())("ng2-tag-input--focused",e.isInputFocused()),p("ngClass",e.theme),S("tabindex",-1),b(2),p("ngForOf",e.items)("ngForTrackBy",e.trackBy),b(),p("inputText",e.inputText)("disabled",e.disable)("validators",e.validators)("asyncValidators",e.asyncValidators)("hidden",e.maxItemsReached)("placeholder",e.items.length?e.placeholder:e.secondaryPlaceholder)("inputClass",e.inputClass)("inputId",e.inputId)("tabindex",e.tabindex),b(),p("ngIf",qt(5,25,e.isProgressBarVisible$)),b(2),p("ngIf",e.hasErrors()))},dependencies:[be,fe,_t,bt,W,Gt],styles:['.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:none;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #0006;border:1px solid #ccc}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:all .25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196F3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px #00000013;border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%] .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d9534f}.progress-bar[_ngcontent-%COMP%], .progress-bar[_ngcontent-%COMP%]:before{height:2px;width:100%;margin:0}.progress-bar[_ngcontent-%COMP%]{background-color:#2196f3;display:flex;position:absolute;bottom:0}.progress-bar[_ngcontent-%COMP%]:before{background-color:#82c4f8;content:"";-webkit-animation:_ngcontent-%COMP%_running-progress 2s cubic-bezier(.4,0,.2,1) infinite;animation:_ngcontent-%COMP%_running-progress 2s cubic-bezier(.4,0,.2,1) infinite}@-webkit-keyframes _ngcontent-%COMP%_running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}@keyframes _ngcontent-%COMP%_running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:1em;letter-spacing:.05rem;color:#444;border-radius:16px;transition:all .3s;margin:.1rem .3rem .1rem 0;padding:.08rem .45rem;height:32px;line-height:34px;background:#efefef;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#2196F3;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#0d8aee;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#e2e2e2;color:#000;color:initial;box-shadow:0 2px 3px 1px #d4d1d1}tag.readonly[_ngcontent-%COMP%]{cursor:default}tag.readonly[_ngcontent-%COMP%]:focus, tag[_ngcontent-%COMP%]:focus{outline:0}tag.tag--editing[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;cursor:text}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;border-radius:0;background:#f9f9f9;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#d0d0d0;color:#000;color:initial}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#d0d0d0;color:#000;color:initial}.minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#ececec}.minimal[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.minimal[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .minimal[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.minimal[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:3px;background:#444;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#efefef;color:#444}.dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#2b2b2b;color:#f9f9f9}.dark[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.dark[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .dark[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.dark[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:.25rem;background:#0275d8;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#025aa5}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#025aa5}.bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#0267bf;color:#f9f9f9}.bootstrap[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:inherit;font-weight:400;font-size:95%;color:#fff;border-radius:.25em;background:#5bc0de;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative;padding:.25em .6em;text-align:center;white-space:nowrap}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#28a1c5}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#28a1c5}.bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#46b8da;color:#fff}.bootstrap3-info[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap3-info[_ngcontent-%COMP%] tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap3-info[_ngcontent-%COMP%] tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info[_ngcontent-%COMP%] tag.tag--editing[_ngcontent-%COMP%]{cursor:text}[_nghost-%COMP%]{display:block}'],data:{animation:gn}}),o})(),mn=new Tt,Wn=(()=>{class o{static withDefaults(t){mn.setOptions(t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=rt({type:o}),o.\u0275inj=it({providers:[Ce,{provide:Yt,useValue:!1}],imports:[[dt,le,de,ge]]}),o})();export{we as a,Wn as b};