text: (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"99Un":function(e,t,n){"use strict";n.r(t),n.d(t,"HomePageModule",(function(){return fe}));var o=n("ofXK"),i=n("3Pt+"),s=n("tyNb"),l=n("TEn/"),c=n("fXoL"),r=n("vuIU"),u=n("1OyB"),a=n("XNiG"),m=n("Cfvw"),h=n("HDdC"),d=n("nYR2"),p=["searchbarElem"],f=["inputElem"];function b(e,t){if(1&e&&c.Jb(0,"ion-icon",15),2&e){var n=c.Vb(2);c.bc("name",n.frontIcon)("slot","start")}}function g(e,t){if(1&e&&c.Jb(0,"ion-icon",16),2&e){var n=c.Vb().attrs;c.bc("name",n.removeButtonIcon)("slot",n.removeButtonSlot)}}function v(e,t){if(1&e&&(c.Lb(0,"ion-chip",12),c.nc(1,b,1,2,"ion-icon",13),c.Lb(2,"ion-label"),c.pc(3),c.Kb(),c.nc(4,g,1,2,"ion-icon",14),c.Kb()),2&e){var n=t.attrs,o=c.Vb();c.zb(n.removeButtonClasses),c.bc("color",n.removeButtonColor)("outline",!0),c.xb(1),c.bc("ngIf",o.frontIcon),c.xb(2),c.qc(n.label),c.xb(1),c.bc("ngIf",n.removeButtonIcon)}}function y(e,t){}var w=function(e,t,n,o,i,s){return{data:e,label:t,removeButtonClasses:n,removeButtonColor:o,removeButtonIcon:i,removeButtonSlot:s}},O=function(e){return{attrs:e}};function C(e,t){if(1&e){var n=c.Mb();c.Lb(0,"div",18),c.Tb("click",(function(){c.jc(n);var e=t.$implicit;return c.Vb(2).removeItem(e)})),c.nc(1,y,0,0,"ng-template",10),c.Kb()}if(2&e){var o=t.$implicit,i=c.Vb(2),s=c.hc(1);c.xb(1),c.bc("ngTemplateOutlet",i.selectionTemplate||s)("ngTemplateOutletContext",c.cc(9,O,c.fc(2,w,o,i.getLabel(o),i.removeButtonClasses,i.removeButtonColor,i.removeButtonIcon,i.removeButtonSlot)))}}function k(e,t){if(1&e&&(c.Lb(0,"div"),c.nc(1,C,2,11,"div",17),c.Kb()),2&e){var n=c.Vb();c.xb(1),c.bc("ngForOf",n.selected)}}function I(e,t){if(1&e&&(c.Lb(0,"ion-label",19),c.pc(1),c.Kb()),2&e){var n=c.Vb();c.bc("position",n.labelPosition),c.xb(1),c.qc(n.label)}}function S(e,t){if(1&e&&(c.Jb(0,"span",20),c.Wb(1,"boldprefix")),2&e){var n=t.attrs;c.bc("innerHTML",c.Xb(1,1,n.label,n.keyword),c.kc)}}function L(e,t){if(1&e&&c.pc(0),2&e){var n=c.Vb();c.rc(" ",n.autocompleteOptions.noItems,"\n")}}function x(e,t){}function T(e,t){}var B=function(e){return{focus:e}},E=function(e,t,n,o,i,s){return{data:e,label:t,keyword:n,formValue:o,labelAttribute:i,formValueAttribute:s}};function P(e,t){if(1&e){var n=c.Mb();c.Lb(0,"li",24),c.Tb("mouseenter",(function(){c.jc(n);var e=t.index;return c.Vb(3).focusedOption=e}))("click",(function(e){c.jc(n);var o=t.$implicit;return c.Vb(3).handleSelectTap(e,o)}))("tap",(function(e){c.jc(n);var o=t.$implicit;return c.Vb(3).handleSelectTap(e,o)})),c.nc(1,T,0,0,"ng-template",10),c.Kb()}if(2&e){var o=t.$implicit,i=t.index,s=c.Vb(3),l=c.hc(9);c.bc("ngClass",c.cc(4,B,s.focusedOption===i))("ngStyle",s.styles.listItem),c.xb(1),c.bc("ngTemplateOutlet",s.template||l)("ngTemplateOutletContext",c.cc(13,O,c.fc(6,E,o,s.getLabel(o),s.keyword,s.getFormValue(o),s.getLabel(o),s.getFormValue(o))))}}function M(e,t){if(1&e&&(c.Lb(0,"ul",22),c.nc(1,P,2,15,"li",23),c.Wb(2,"slice"),c.Kb()),2&e){var n=c.Vb().attrs,o=c.Vb();c.bc("ngStyle",o.listStyles()),c.xb(1),c.bc("ngForOf",c.Yb(2,2,n.data,0,n.maxResults))}}function _(e,t){}var K=function(e){return{keyword:e}};function F(e,t){if(1&e&&(c.Lb(0,"ul",22),c.Lb(1,"li",22),c.nc(2,_,0,0,"ng-template",10),c.Kb(),c.Kb()),2&e){var n=c.Vb(2),o=c.hc(11);c.bc("ngStyle",n.listStyles()),c.xb(1),c.bc("ngStyle",n.styles.listItem),c.xb(1),c.bc("ngTemplateOutlet",n.emptyTemplate||o)("ngTemplateOutletContext",c.cc(6,O,c.cc(4,K,n.keyword)))}}function V(e,t){if(1&e&&(c.nc(0,M,3,6,"ul",21),c.nc(1,F,3,8,"ul",21)),2&e){var n=t.attrs,o=c.Vb();c.bc("ngIf",!(o.disabled||null!==n.maxSelected&&n.selected.length>=n.maxSelected)&&n.data.length>0&&n.showSuggestions),c.xb(1),c.bc("ngIf",0===o.suggestions.length&&o.showSuggestions)}}var R=function(e,t){return{hidden:e,loading:t}},j=function(e,t,n){return{hidden:e,loading:t,disabled:n}},A=function(e,t,n,o,i,s){return{data:e,keyword:t,maxResults:n,maxSelected:o,selected:i,showSuggestions:s}},H=function e(){Object(u.a)(this,e),this.animated=!1,this.color=null,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon="arrow-round-back",this.cancelButtonText="Cancel",this.clearIcon="close-circle",this.clearInput=!1,this.clearOnEdit=!1,this.debounce=250,this.mode="md",this.noItems="No items found.",this.placeholder="Search",this.searchIcon="search",this.showCancelButton=!1,this.spellcheck="off",this.type="search",this.value=""},D=function e(){Object(u.a)(this,e),this.list={},this.listItem={},this.searchbar={}},J=function(){var e=function(){function e(){Object(u.a)(this,e),this.autocompleteOptions=new H,this.hasFocus=!1,this.isLoading=!1,this.focusedOption=-1,this.showSuggestions=!1,this.onTouchedCallback=!1,this.onChangeCallback=!1,this.showListChanged=!1,this.alwaysShowList=!1,this.autocomplete="off",this.autoFocusSuggestion=!0,this.clearInvalidInput=!0,this.disabled=!1,this.exclude=[],this.frontIcon=!1,this.hideListOnSelection=!0,this.label="",this.labelPosition="fixed",this.location="auto",this.maxResults=8,this.maxSelected=null,this.multi=!1,this.name="",this.removeButtonClasses="",this.removeButtonColor="primary",this.removeButtonIcon="close-circle",this.removeButtonSlot="end",this.removeDuplicateSuggestions=!0,this.selectOnTabOut=!0,this.styles=new D,this.useIonInput=!1,this.autoBlur=new c.n,this.autoFocus=new c.n,this.blur=new c.n,this.focus=new c.n,this.ionAutoInput=new c.n,this.itemsChange=new c.n,this.itemsCleared=new c.n,this.itemsHidden=new c.n,this.itemRemoved=new c.n,this.itemSelected=new c.n,this.itemsShown=new c.n,this.modelChange=new c.n,this.keyword="",this.suggestions=[],this.autocompleteOptions=new H,this.defaultOpts=new H,this.selected=[]}return Object(r.a)(e,[{key:"ngAfterViewChecked",value:function(){this.showListChanged&&(this.showListChanged=!1,this.showSuggestions?this.itemsShown.emit():this.itemsHidden.emit())}},{key:"ngDoCheck",value:function(){this.hasFocus||this.clearInvalidInput&&(null===this.selected||this.multi)&&(""!==this.keyword&&(this.keyword=""),this.inputElem&&this.inputElem.nativeElement&&this.inputElem.nativeElement.children&&0!==this.inputElem.nativeElement.children.length&&this.inputElem.nativeElement.children[0].children&&0!==this.inputElem.nativeElement.children[0].children.length&&this.inputElem.nativeElement.children[0].children[0].value&&(this.inputElem.nativeElement.children[0].children[0].value=""),this.searchbarElem&&this.searchbarElem.nativeElement&&this.searchbarElem.nativeElement.children&&0!==this.searchbarElem.nativeElement.children.length&&this.searchbarElem.nativeElement.children[0].children&&0!==this.searchbarElem.nativeElement.children[0].children.length&&this.searchbarElem.nativeElement.children[0].children[0].value&&(this.searchbarElem.nativeElement.children[0].children[0].value=""))}},{key:"documentClickHandler",value:function(e){(this.searchbarElem&&this.searchbarElem.nativeElement&&!this.searchbarElem.nativeElement.contains(e.target)||this.inputElem&&this.inputElem.nativeElement&&this.inputElem.nativeElement.contains(e.target))&&this.hideItemList()}},{key:"getFormValue",value:function(e){if(void 0===this.provider)return null;if(null==e||"function"==typeof this.provider)return null;var t=null==this.provider.formValueAttribute?this.provider.labelAttribute:this.provider.formValueAttribute;return"object"==typeof e&&t?e[t]:e}},{key:"clickClear",value:function(){this.clearValue(!0),this.itemsCleared.emit(!0)}},{key:"clearValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.keyword="",this.selection=null,this.formValue=null,e&&this.hideItemList(),this.focusedOption=-1}},{key:"getItems",value:function(e,t){var n=this;this.isLoading=!0,this.promise&&clearTimeout(this.promise),this.promise=setTimeout((function(){var o;e&&(n.keyword=e.detail.target.value),n.showResultsFirst&&""===n.keyword.trim()&&(n.keyword=""),"function"==typeof n.provider?(o=n.provider(n.keyword),n.setSuggestions(o,t),n.isLoading=!1):((o=n.provider.getResults(n.keyword))instanceof a.a?o=o.asObservable():o instanceof Promise&&(o=Object(m.a)(o)),o instanceof h.a?o.pipe(Object(d.a)((function(){n.isLoading=!1}))).subscribe((function(e){n.setSuggestions(e,t)}),(function(e){return console.error(e)})):(n.setSuggestions(o,t),n.isLoading=!1)),n.ionAutoInput.emit(n.keyword)}),this.autocompleteOptions.debounce)}},{key:"getLabel",value:function(e){if(void 0===this.provider)return"";if(null==e||"function"==typeof this.provider)return"";var t=null==this.provider.formValueAttribute?this.provider.labelAttribute:this.provider.formValueAttribute,n=e;if(this.provider.getItemLabel&&(n=this.provider.getItemLabel(n)),!this.multi&&void 0!==n&&"[object Array]"===Object.prototype.toString.call(n)){if(0===n.length)return"";n=n[0]}return"object"==typeof n&&t?n[t]||"":n||""}},{key:"listStyles",value:function(){var e=this.listLocationStyles();return Object.assign(Object.assign({},e),this.styles.list)}},{key:"listLocationStyles",value:function(){var t=this.location;if("auto"===this.location){var n=e._getPosition(this.searchbarElem.nativeElement).y;t=n>window.innerHeight-n?"top":"bottom"}return"bottom"===t?{}:{bottom:"37px"}}},{key:"handleTabOut",value:function(e){this.selectOnTabOut&&0!==this.suggestions.length&&-1!==this.focusedOption?this.selectItem(this.suggestions[this.focusedOption]):this.hideItemList(),this.onBlur(e)}},{key:"handleTap",value:function(e){(this.showResultsFirst||this.keyword.length>0)&&this.getItems()}},{key:"handleSelectTap",value:function(e,t){return void 0!==t&&(this.selectItem(t),e.srcEvent?(e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),e.srcEvent.preventDefault&&e.srcEvent.preventDefault()):e.preventDefault&&e.preventDefault()),!1}},{key:"hideItemList",value:function(){!1===this.showSuggestions&&!1===this.alwaysShowList&&(this.showListChanged=!0),this.showSuggestions=this.alwaysShowList,this.focusedOption=-1}},{key:"highlightItem",value:function(e){!1===this.showSuggestions&&this.showItemList();var t=this.suggestions.length-1;t>this.maxResults&&(t=this.maxResults-1),e<0?-1===this.focusedOption||this.focusedOption===t?this.focusedOption=0:this.focusedOption++:e>0&&(-1===this.focusedOption||0===this.focusedOption?this.focusedOption=t:this.focusedOption--)}},{key:"onFocus",value:function(e){this.hasFocus=!0,this.getItems(),e=this._reflectName(e),this.autoFocus.emit(e),this.focus.emit(e)}},{key:"onBlur",value:function(e){this.hasFocus=!1,e=this._reflectName(e),this.autoBlur.emit(e),this.blur.emit(e)}},{key:"_reflectName",value:function(e){return"object"==typeof e.srcElement.attributes["ng-reflect-name"]&&(e.srcElement.name=e.srcElement.attributes["ng-reflect-name"].value),e}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"removeDuplicates",value:function(e){for(var t=this.selected?this.selected.length:0,n=e.length,o=0;o<t;o++)for(var i=this.getLabel(this.selected[o]),s=0;s<n;s++)i===this.getLabel(e[s])&&e.splice(s,1);return e}},{key:"removeExcluded",value:function(e){for(var t=this.exclude.length,n=0;n<t;n++){var o=this.exclude[n];"object"==typeof o&&(o=this.getLabel(o));for(var i=e.length,s=0;s<i;s++)if(o===this.getLabel(e[s])){e.splice(s,1);break}}return e}},{key:"removeItem",value:function(e,t){for(var n=this.selected?this.selected.length:0,o=0;o<n;o++){var i=this.selected[o];this.getLabel(e)===this.getLabel(i)&&this.selected.splice(o,1)}(t=void 0===t||t)&&(this.itemRemoved.emit(e),this.itemsChange.emit(this.selected)),this.modelChange.emit(this.selected)}},{key:"selectItem",value:function(e){if(this.keyword=this.getLabel(e),this.formValue=this.getFormValue(e),this.hideItemList(),this.updateModel(this.formValue),this.hideListOnSelection&&this.hideItemList(),this.multi){if(!(null===this.maxSelected||this.selected.length<=this.maxSelected))return;this.clearValue(),this.selected.push(e),this.itemsChange.emit(this.selected)}else this.selection=e,this.selected=[e],this.itemsChange.emit(e);this.itemSelected.emit(e),this.modelChange.emit(this.selected)}},{key:"setFocus",value:function(){this.useIonInput&&this.inputElem?this.inputElem.nativeElement.setFocus():this.searchbarElem&&this.searchbarElem.nativeElement.setFocus()}},{key:"setSuggestions",value:function(e,t){this.removeDuplicateSuggestions&&(e=this.removeDuplicates(e),e=this.removeExcluded(e)),this.suggestions=e,(t||void 0===t)&&this.showItemList(),this.autoFocusSuggestion&&0!==this.suggestions.length&&(this.focusedOption=0)}},{key:"setValue",value:function(e){this.formValue=this.getFormValue(e),this.keyword=this.getLabel(e)}},{key:"showItemList",value:function(){!1===this.showSuggestions&&(this.showListChanged=!0),this.showSuggestions=!0}},{key:"updateModel",value:function(e){e!==this.formValue&&(this.formValue=e,this.multi||(this.selected=null)),this.onChangeCallback&&this.onChangeCallback(this.formValue),this.modelChange.emit(this.selected)}},{key:"writeValue",value:function(e){e!==this.selection&&(this.selection=e||null,this.formValue=this.getFormValue(this.selection),this.keyword=this.getLabel(this.selection))}},{key:"dataProvider",set:function(e){void 0!==e&&(this.provider=e,void 0!==this.selected&&(this.keyword=this.getLabel(this.selected)))}},{key:"eager",set:function(e){e&&this.getItems(null,!1)}},{key:"options",set:function(e){this.autocompleteOptions=new H;for(var t=Object.keys(this.autocompleteOptions),n=t.length,o=0;o<n;o++){var i=t[o];void 0!==e[i]&&(this.autocompleteOptions[i]=e[i])}}},{key:"model",get:function(){var e=this.selected;return this.multi||void 0===this.selected.length||(e=0===this.selected.length?null:this.selected[0]),e},set:function(e){null!=e&&(this.selected=e,this.keyword=this.getLabel(e))}},{key:"showList",get:function(){return this.showSuggestions},set:function(e){void 0!==e&&this.showSuggestions!==e&&(this.showSuggestions=!0===e,this.showListChanged=!0)}}],[{key:"_getPosition",value:function(e){for(var t=0,n=0;e;){if("BODY"===e.tagName){var o=e.scrollLeft||document.documentElement.scrollLeft,i=e.scrollTop||document.documentElement.scrollTop;t+=e.offsetLeft-o+e.clientLeft,n+=e.offsetTop-i+e.clientTop}else t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop;e=e.offsetParent}return{x:t,y:n}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Cb({type:e,selectors:[["ion-auto-complete"]],viewQuery:function(e,t){var n;1&e&&(c.sc(p,!0,c.l),c.sc(f,!0,c.l)),2&e&&(c.gc(n=c.Ub())&&(t.searchbarElem=n.first),c.gc(n=c.Ub())&&(t.inputElem=n.first))},hostBindings:function(e,t){1&e&&c.Tb("click",(function(e){return t.documentClickHandler(e)}),!1,c.ic)},inputs:{alwaysShowList:"alwaysShowList",autocomplete:"autocomplete",autoFocusSuggestion:"autoFocusSuggestion",clearInvalidInput:"clearInvalidInput",disabled:"disabled",exclude:"exclude",frontIcon:"frontIcon",hideListOnSelection:"hideListOnSelection",label:"label",labelPosition:"labelPosition",location:"location",maxResults:"maxResults",maxSelected:"maxSelected",multi:"multi",name:"name",removeButtonClasses:"removeButtonClasses",removeButtonColor:"removeButtonColor",removeButtonIcon:"removeButtonIcon",removeButtonSlot:"removeButtonSlot",removeDuplicateSuggestions:"removeDuplicateSuggestions",selectOnTabOut:"selectOnTabOut",styles:"styles",useIonInput:"useIonInput",keyword:"keyword",dataProvider:"dataProvider",provider:"provider",eager:"eager",options:"options",model:"model",showList:"showList",emptyTemplate:"emptyTemplate",listTemplate:"listTemplate",selectionTemplate:"selectionTemplate",showResultsFirst:"showResultsFirst",template:"template"},outputs:{autoBlur:"autoBlur",autoFocus:"autoFocus",blur:"blur",focus:"focus",ionAutoInput:"ionAutoInput",itemsChange:"itemsChange",itemsCleared:"itemsCleared",itemsHidden:"itemsHidden",itemRemoved:"itemRemoved",itemSelected:"itemSelected",itemsShown:"itemsShown",modelChange:"modelChange"},features:[c.wb([{provide:i.b,useExisting:e,multi:!0}])],decls:15,vars:50,consts:[["defaultSelection",""],[4,"ngIf"],[3,"position",4,"ngIf"],[3,"autocomplete","name","ngModel","placeholder","type","clearOnEdit","clearInput","color","mode","disabled","ngClass","ngStyle","ionInput","tap","ngModelChange","keydown.tab","keydown.shift.tab","keyup.arrowDown","keyup.arrowUp","keyup.enter","keyup.escape","ionFocus","ionBlur"],["inputElem",""],[3,"autocomplete","name","animated","ngModel","cancelButtonIcon","cancelButtonText","clearIcon","color","showCancelButton","debounce","placeholder","autocorrect","mode","searchIcon","spellcheck","type","ngClass","ngStyle","ionInput","tap","ngModelChange","keydown.tab","keydown.shift.tab","keyup.arrowDown","keyup.arrowUp","keyup.enter","keyup.escape","ionClear","ionFocus","ionBlur"],["searchbarElem",""],["defaultTemplate",""],["class","ion-text-center"],["defaultEmptyTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultList",""],[3,"color","outline"],["color","primary",3,"name","slot",4,"ngIf"],[3,"name","slot",4,"ngIf"],["color","primary",3,"name","slot"],[3,"name","slot"],["class","selected-items",3,"click",4,"ngFor","ngForOf"],[1,"selected-items",3,"click"],[3,"position"],[3,"innerHTML"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"ngClass","ngStyle","mouseenter","click","tap",4,"ngFor","ngForOf"],[3,"ngClass","ngStyle","mouseenter","click","tap"]],template:function(e,t){if(1&e&&(c.nc(0,v,5,8,"ng-template",null,0,c.oc),c.nc(2,k,2,1,"div",1),c.nc(3,I,2,2,"ion-label",2),c.Lb(4,"ion-input",3,4),c.Tb("ionInput",(function(e){return t.getItems(e)}))("tap",(function(e){return t.handleTap(e)}))("ngModelChange",(function(e){return t.keyword=e}))("ngModelChange",(function(e){return t.updateModel(e)}))("keydown.tab",(function(e){return t.handleTabOut(e)}))("keydown.shift.tab",(function(){return t.hideItemList()}))("keyup.arrowDown",(function(){return t.highlightItem(-1)}))("keyup.arrowUp",(function(){return t.highlightItem(1)}))("keyup.enter",(function(e){return t.handleSelectTap(e,t.suggestions[t.focusedOption])}))("keyup.escape",(function(){return t.hideItemList()}))("ionFocus",(function(e){return t.onFocus(e)}))("ionBlur",(function(e){return t.onBlur(e)})),c.Kb(),c.Lb(6,"ion-searchbar",5,6),c.Tb("ionInput",(function(e){return t.getItems(e)}))("tap",(function(e){return t.handleTap(e)}))("ngModelChange",(function(e){return t.keyword=e}))("ngModelChange",(function(e){return t.updateModel(e)}))("keydown.tab",(function(e){return t.handleTabOut(e)}))("keydown.shift.tab",(function(){return t.hideItemList()}))("keyup.arrowDown",(function(){return t.highlightItem(-1)}))("keyup.arrowUp",(function(){return t.highlightItem(1)}))("keyup.enter",(function(e){return t.handleSelectTap(e,t.suggestions[t.focusedOption])}))("keyup.escape",(function(){return t.hideItemList()}))("ionClear",(function(){return t.clickClear()}))("ionFocus",(function(e){return t.onFocus(e)}))("ionBlur",(function(e){return t.onBlur(e)})),c.Kb(),c.nc(8,S,2,4,"ng-template",null,7,c.oc),c.nc(10,L,1,1,"ng-template",8,9,c.oc),c.nc(12,x,0,0,"ng-template",10),c.nc(13,V,2,2,"ng-template",null,11,c.oc)),2&e){var n=c.hc(14);c.xb(2),c.bc("ngIf",t.multi),c.xb(1),c.bc("ngIf",0!==t.label.length),c.xb(1),c.bc("autocomplete",t.autocomplete)("name",t.name)("ngModel",t.keyword)("placeholder",null==t.autocompleteOptions.placeholder?t.defaultOpts.placeholder:t.autocompleteOptions.placeholder)("type",null==t.autocompleteOptions.type?t.defaultOpts.type:t.autocompleteOptions.type)("clearOnEdit",null==t.autocompleteOptions.clearOnEdit?t.defaultOpts.clearOnEdit:t.autocompleteOptions.clearOnEdit)("clearInput",null==t.autocompleteOptions.clearInput?t.defaultOpts.clearInput:t.autocompleteOptions.clearInput)("color",null==t.autocompleteOptions.color?null:t.autocompleteOptions.color)("mode",null==t.autocompleteOptions.mode?t.defaultOpts.mode:t.autocompleteOptions.mode)("disabled",t.disabled||null!==t.maxSelected&&t.selected.length>=t.maxSelected)("ngClass",c.dc(34,R,!t.useIonInput,t.isLoading))("ngStyle",t.styles.searchbar),c.xb(2),c.bc("autocomplete",t.autocomplete)("name",t.name)("animated",null==t.autocompleteOptions.animated?t.defaultOpts.animated:t.autocompleteOptions.animated)("ngModel",t.keyword)("cancelButtonIcon",null==t.autocompleteOptions.cancelButtonIcon?t.defaultOpts.cancelButtonIcon:t.autocompleteOptions.cancelButtonIcon)("cancelButtonText",null==t.autocompleteOptions.cancelButtonText?t.defaultOpts.cancelButtonText:t.autocompleteOptions.cancelButtonText)("clearIcon",null==t.autocompleteOptions.clearIcon?t.defaultOpts.clearIcon:t.autocompleteOptions.clearIcon)("color",null==t.autocompleteOptions.color?null:t.autocompleteOptions.color)("showCancelButton",null==t.autocompleteOptions.showCancelButton?t.defaultOpts.showCancelButton?"always":"never":t.autocompleteOptions.showCancelButton?"always":"never")("debounce",null==t.autocompleteOptions.debounce?t.defaultOpts.debounce:t.autocompleteOptions.debounce)("placeholder",null==t.autocompleteOptions.placeholder?t.defaultOpts.placeholder:t.autocompleteOptions.placeholder)("autocorrect",null==t.autocompleteOptions.autocorrect?t.defaultOpts.autocorrect:t.autocompleteOptions.autocorrect)("mode",null==t.autocompleteOptions.mode?t.defaultOpts.mode:t.autocompleteOptions.mode)("searchIcon",null==t.autocompleteOptions.searchIcon?t.defaultOpts.searchIcon:t.autocompleteOptions.searchIcon)("spellcheck",null==t.autocompleteOptions.spellcheck?t.defaultOpts.spellcheck:t.autocompleteOptions.spellcheck)("type",null==t.autocompleteOptions.type?t.defaultOpts.type:t.autocompleteOptions.type)("ngClass",c.ec(37,j,t.useIonInput,t.isLoading,t.disabled||null!==t.maxSelected&&t.selected.length>=t.maxSelected))("ngStyle",t.styles.searchbar),c.xb(6),c.bc("ngTemplateOutlet",t.listTemplate||n)("ngTemplateOutletContext",c.cc(48,O,c.fc(41,A,t.suggestions,t.keyword,t.maxResults,t.maxSelected,t.selected,t.showSuggestions)))}},directives:function(){return[o.j,l.k,l.C,i.d,i.e,o.h,o.k,l.r,o.l,l.e,l.n,l.i,o.i]},pipes:function(){return[z,o.o]},styles:["ion-auto-complete[_ngcontent-%COMP%]{display:inline-block;overflow:hidden!important;width:90vw}ion-auto-complete[_ngcontent-%COMP%]   ion-searchbar[_ngcontent-%COMP%]{padding:1px!important}ion-auto-complete[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]   input.searchbar-input[_ngcontent-%COMP%]{cursor:default;pointer-events:none}ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{background:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);left:16px;list-style-type:none;margin-top:0;padding:0;position:absolute;width:90vw;z-index:999}ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border-bottom:1px solid #c1c1c1;padding:15px}ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ion-auto-complete-item[_ngcontent-%COMP%]{height:40px;width:100%}ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border:none}ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.focus[_ngcontent-%COMP%], ion-auto-complete[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:focus{background:#f1f1f1;cursor:pointer}ion-auto-complete[_ngcontent-%COMP%]   .hidden[_ngcontent-%COMP%]{display:none}ion-auto-complete[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]   input.searchbar-input[_ngcontent-%COMP%]{background:#fff url(/assets/loading.gif) no-repeat right 4px center;background-size:25px 25px}ion-auto-complete[_ngcontent-%COMP%]   .searchbar-clear-button.sc-ion-searchbar-md[_ngcontent-%COMP%]{right:34px}ion-auto-complete[_ngcontent-%COMP%]   .selected-items[_ngcontent-%COMP%]{float:left}"]}),e}(),z=function(){var e=function(){function e(){Object(u.a)(this,e)}return Object(r.a)(e,[{key:"transform",value:function(e,t){if(!t)return e;var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(n,"gi"),(function(e){return e.bold()}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=c.Hb({name:"boldprefix",type:e,pure:!0}),e.\u0275prov=c.Eb({token:e,factory:e.\u0275fac}),e}(),N=function(){var e=function(){function e(){Object(u.a)(this,e)}return Object(r.a)(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[]}}}]),e}();return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},imports:[[o.b,i.a,l.y]]}),e}(),U=function(){function e(){this.labelAttribute="name",this.objects=[{name:"Cilantro"},{name:"Avocado"},{name:"Onion"},{name:"Pepper"},{name:"Salt"},{name:"Tomato"}]}return e.prototype.add=function(e){this.objects.push(e)},e.prototype.getResults=function(e){var t=this;return e=e.toLowerCase(),this.objects.filter((function(n){return n[t.labelAttribute].toLowerCase().includes(e)}))},e.\u0275prov=c.Eb({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function $(e,t){if(1&e){var n=c.Mb();c.Lb(0,"div",2),c.Lb(1,"ion-text"),c.pc(2,"Sorry, we could not find that ingredient!"),c.Kb(),c.Lb(3,"ion-button",3),c.Tb("click",(function(){return c.jc(n),c.Vb().add()})),c.pc(4," Add Anyways "),c.Kb(),c.Kb()}2&e&&(c.xb(3),c.bc("size","full"))}var G=function(){function e(e){this.provider=e,this.newIngredient="",this.selected=[],this.options=new H,this.options.autocomplete="on",this.options.cancelButtonIcon="assets/icons/clear.svg",this.options.clearIcon="assets/icons/clear.svg",this.options.debounce=750,this.options.placeholder="Type text to search..",this.options.searchIcon="assets/icons/add-user.svg",this.options.type="search"}return e.prototype.add=function(){var e={name:this.newIngredient};this.provider.add(e),this.selected.push(e),this.newIngredient=""},e.prototype.on=function(e,t){"ionAutoInput"===e&&(this.newIngredient=t),console.log(e)},e.\u0275fac=function(t){return new(t||e)(c.Ib(U))},e.\u0275cmp=c.Cb({type:e,selectors:[["ingredient-picker"]],decls:3,vars:8,consts:[["empty",""],[3,"model","multi","dataProvider","disabled","emptyTemplate","options","removeButtonIcon","removeButtonColor","modelChange","blur","autoFocus","autoBlur","focus","ionAutoInput","itemsChange","itemsCleared","itemsHidden","itemRemoved","itemSelected","itemsShown"],[1,"country-suggestions-empty"],[3,"size","click"]],template:function(e,t){if(1&e&&(c.nc(0,$,5,1,"ng-template",null,0,c.oc),c.Lb(2,"ion-auto-complete",1),c.Tb("modelChange",(function(e){return t.selected=e}))("blur",(function(e){return t.on("blur",e)}))("autoFocus",(function(e){return t.on("autoFocus",e)}))("autoBlur",(function(e){return t.on("autoBlur",e)}))("focus",(function(e){return t.on("focus",e)}))("ionAutoInput",(function(e){return t.on("ionAutoInput",e)}))("itemsChange",(function(e){return t.on("itemsChange",e)}))("itemsCleared",(function(e){return t.on("itemsCleared",e)}))("itemsHidden",(function(e){return t.on("itemsHidden",e)}))("itemRemoved",(function(e){return t.on("itemRemoved",e)}))("itemSelected",(function(e){return t.on("itemSelected",e)}))("itemsShown",(function(e){return t.on("itemsShown",e)})),c.Kb()),2&e){var n=c.hc(1);c.xb(2),c.bc("model",t.selected)("multi",!0)("dataProvider",t.provider)("disabled",!1)("emptyTemplate",n)("options",t.options)("removeButtonIcon","assets/icons/clear.svg")("removeButtonColor","dark")}},directives:[J,l.v,l.b],styles:[""]}),e}(),Y=n("LRne"),X=n("lJxs"),q=n("tk/3"),W=function(){function e(e){this.http=e,this.labelAttribute="name",this.countries=[]}return e.prototype.getResults=function(e){var t=this;return e="string"==typeof e?e:"",(0===this.countries.length?this.http.get("https://restcountries.eu/rest/v2/all").pipe(Object(X.a)((function(e){return e&&(t.countries=e),t.countries}))):Object(Y.a)(this.countries)).pipe(Object(X.a)((function(t){return t.filter((function(t){return t.name.toLowerCase().startsWith(e.toLowerCase())}))})))},e.\u0275fac=function(t){return new(t||e)(c.Pb(q.a))},e.\u0275prov=c.Eb({token:e,factory:e.\u0275fac}),e}(),Q=function(){function e(e){this.provider=e,this.selected="",this.options=new H,this.options.autocomplete="on",this.options.debounce=750,this.options.placeholder="Type text to search..",this.options.type="add-friend.svg"}return e.prototype.on=function(e,t){console.log(e)},e.\u0275fac=function(t){return new(t||e)(c.Ib(W))},e.\u0275cmp=c.Cb({type:e,selectors:[["simple-service"]],decls:1,vars:7,consts:[[3,"model","multi","dataProvider","disabled","options","maxResults","removeButtonColor","modelChange","ionAutoInput","itemsChange","itemsCleared","itemsHidden","itemRemoved","itemSelected","itemsShown"]],template:function(e,t){1&e&&(c.Lb(0,"ion-auto-complete",0),c.Tb("modelChange",(function(e){return t.selected=e}))("ionAutoInput",(function(e){return t.on("ionAutoInput",e)}))("itemsChange",(function(e){return t.on("itemsChange",e)}))("itemsCleared",(function(e){return t.on("itemsCleared",e)}))("itemsHidden",(function(e){return t.on("itemsHidden",e)}))("itemRemoved",(function(e){return t.on("itemRemoved",e)}))("itemSelected",(function(e){return t.on("itemSelected",e)}))("itemsShown",(function(e){return t.on("itemsShown",e)})),c.Kb()),2&e&&c.bc("model",t.selected)("multi",!1)("dataProvider",t.provider)("disabled",!1)("options",t.options)("maxResults",6)("removeButtonColor","dark")},directives:[J],styles:[""]}),e}(),Z=function(){function e(){this.labelAttribute="full_name",this.objects=[{first_name:"Dominic",last_name:"Elliot",full_name:"Dominic Elliot"},{first_name:"Duke",last_name:"Ellington",full_name:"Duke Ellington"},{first_name:"Jeremy",last_name:"Quick",full_name:"Jeremy Quick"},{first_name:"Matt",last_name:"Smith",full_name:"Matt Smith"},{first_name:"Matthew",last_name:"Drake",full_name:"Matthew Drake"},{first_name:"Yu",last_name:"Lee",full_name:"Yu Lee"},{first_name:"Zach",last_name:"Smith",full_name:"Zach Smith"}]}return e.prototype.getResults=function(e){var t=this;return e=e.toLowerCase(),this.objects.filter((function(n){return n[t.labelAttribute].toLowerCase().includes(e)}))},e.\u0275prov=c.Eb({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ee=function(){function e(e){this.provider=e,this.otherTeamIsSelecting=!1,this.otherTeam=[],this.selected=[],this.teamOptions=new H,this.teamOptions.autocomplete="on",this.teamOptions.debounce=750,this.teamOptions.searchIcon="assets/icons/add-user.svg",this.teamOptions.type="search",this.teamOptions.placeholder="Select team member",this.otherTeamOptions=new H,this.otherTeamOptions.autocomplete="on",this.otherTeamOptions.debounce=750,this.teamOptions.searchIcon="assets/icons/add-user.svg",this.teamOptions.type="search",this.teamOptions.placeholder="Select opponent"}return e.prototype.on=function(e,t){console.log(e)},e.prototype.random=function(){var e=this.provider.getResults(""),t=e.length;this.otherTeam.push(e[Math.round(Math.random()*t)])},e.prototype.selectTeam=function(e){this.on("itemSelected",e),this.selectOtherTeam()},e.prototype.selectOtherTeam=function(){var e=this;this.otherTeamIsSelecting=!0,setTimeout((function(){e.random(),e.otherTeamIsSelecting=!1}),1e3*Math.random()*5)},e.\u0275fac=function(t){return new(t||e)(c.Ib(Z))},e.\u0275cmp=c.Cb({type:e,selectors:[["multi-function"]],decls:12,vars:25,consts:[[3,"size"],[2,"overflow","inherit","padding","15px"],[2,"overflow","inherit"],[3,"model","multi","dataProvider","disabled","exclude","options","removeButtonIcon","removeButtonColor","useIonInput","label","labelPosition","modelChange","blur","autoFocus","autoBlur","focus","ionAutoInput","itemsChange","itemsCleared","itemsHidden","itemRemoved","itemSelected","itemsShown"],[3,"size","click"]],template:function(e,t){1&e&&(c.Lb(0,"ion-row"),c.Lb(1,"ion-col",0),c.Lb(2,"ion-card",1),c.Lb(3,"ion-item",2),c.Lb(4,"ion-auto-complete",3),c.Tb("modelChange",(function(e){return t.selected=e}))("blur",(function(e){return t.on("blur",e)}))("autoFocus",(function(e){return t.on("autoFocus",e)}))("autoBlur",(function(e){return t.on("autoBlur",e)}))("focus",(function(e){return t.on("focus",e)}))("ionAutoInput",(function(e){return t.on("ionAutoInput",e)}))("itemsChange",(function(e){return t.on("itemsChange",e)}))("itemsCleared",(function(e){return t.on("itemsCleared",e)}))("itemsHidden",(function(e){return t.on("itemsHidden",e)}))("itemRemoved",(function(e){return t.on("itemRemoved",e)}))("itemSelected",(function(e){return t.selectTeam(e)}))("itemsShown",(function(e){return t.on("itemsShown",e)})),c.Kb(),c.Kb(),c.Kb(),c.Kb(),c.Kb(),c.Lb(5,"ion-row"),c.Lb(6,"ion-col",0),c.Lb(7,"ion-card",1),c.Lb(8,"ion-item",2),c.Lb(9,"ion-auto-complete",3),c.Tb("modelChange",(function(e){return t.otherTeam=e}))("blur",(function(e){return t.on("blur",e)}))("autoFocus",(function(e){return t.on("autoFocus",e)}))("autoBlur",(function(e){return t.on("autoBlur",e)}))("focus",(function(e){return t.on("focus",e)}))("ionAutoInput",(function(e){return t.on("ionAutoInput",e)}))("itemsChange",(function(e){return t.on("itemsChange",e)}))("itemsCleared",(function(e){return t.on("itemsCleared",e)}))("itemsHidden",(function(e){return t.on("itemsHidden",e)}))("itemRemoved",(function(e){return t.on("itemRemoved",e)}))("itemSelected",(function(e){return t.on("itemSelected",e)}))("itemsShown",(function(e){return t.on("itemsShown",e)})),c.Kb(),c.Lb(10,"ion-button",4),c.Tb("click",(function(){return t.random()})),c.pc(11," Random "),c.Kb(),c.Kb(),c.Kb(),c.Kb(),c.Kb()),2&e&&(c.xb(1),c.bc("size",12),c.xb(3),c.bc("model",t.selected)("multi",!0)("dataProvider",t.provider)("disabled",t.otherTeamIsSelecting)("exclude",t.otherTeam)("options",t.teamOptions)("removeButtonIcon","assets/icons/clear.svg")("removeButtonColor","dark")("useIonInput",!0)("label","Your Team")("labelPosition","floating"),c.xb(2),c.bc("size",12),c.xb(3),c.bc("model",t.otherTeam)("multi",!0)("dataProvider",t.provider)("disabled",!1)("exclude",t.selected)("options",t.otherTeamOptions)("removeButtonIcon","assets/icons/clear.svg")("removeButtonColor","dark")("useIonInput",!0)("label","The Other Team")("labelPosition","floating"),c.xb(1),c.bc("size","full"))},directives:[l.q,l.f,l.c,l.l,J,l.b],styles:[""]}),e}();function te(e,t){1&e&&(c.Lb(0,"div",4),c.Lb(1,"ion-text"),c.pc(2,"Sorry, we cannot find that country!"),c.Kb(),c.Jb(3,"div",5),c.Kb())}function ne(e,t){if(1&e&&(c.Lb(0,"div",6),c.Jb(1,"ion-img",7),c.Lb(2,"div",8),c.Jb(3,"img",9),c.Kb(),c.Kb()),2&e){var n=t.attrs;c.xb(1),c.bc("slot","start")("src",n.data.flag)}}function oe(e,t){if(1&e&&(c.Lb(0,"ion-item"),c.Jb(1,"ion-img",10),c.Lb(2,"ion-text"),c.Jb(3,"span",11),c.Wb(4,"boldprefix"),c.pc(5),c.Kb(),c.Kb()),2&e){var n=t.attrs;c.xb(1),c.bc("slot","start")("src",n.data.flag),c.xb(2),c.bc("innerHtml",c.Xb(4,4,n.data.name,n.keyword),c.kc),c.xb(2),c.rc(" (",n.data.nativeName,") ")}}var ie=function(){function e(e){this.provider=e,this.selected=[],this.options=new H,this.options.autocomplete="on",this.options.debounce=750,this.options.placeholder="Type text to search..",this.options.type="add-friend.svg"}return e.prototype.on=function(e,t){console.log(e)},e.\u0275fac=function(t){return new(t||e)(c.Ib(W))},e.\u0275cmp=c.Cb({type:e,selectors:[["custom-template"]],decls:7,vars:10,consts:[["empty",""],["selection",""],["suggestions",""],[3,"model","eager","multi","dataProvider","disabled","maxSelected","options","template","emptyTemplate","selectionTemplate","modelChange","blur","autoFocus","autoBlur","focus","ionAutoInput","itemsChange","itemsCleared","itemsHidden","itemRemoved","itemSelected","itemsShown"],[1,"country-suggestions-empty"],[1,"country-suggestions-empty-icon"],[1,"flag-image-wrapper",2,"position","relative"],[1,"flag","ion-float-left","ion-margin-horizontal",2,"height","50px",3,"slot","src"],[1,"close-icon"],["src","assets/icons/clear.svg"],[1,"flag",3,"slot","src"],[3,"innerHtml"]],template:function(e,t){if(1&e&&(c.nc(0,te,4,0,"ng-template",null,0,c.oc),c.nc(2,ne,4,2,"ng-template",null,1,c.oc),c.nc(4,oe,6,7,"ng-template",null,2,c.oc),c.Lb(6,"ion-auto-complete",3),c.Tb("modelChange",(function(e){return t.selected=e}))("blur",(function(e){return t.on("blur",e)}))("autoFocus",(function(e){return t.on("autoFocus",e)}))("autoBlur",(function(e){return t.on("autoBlur",e)}))("focus",(function(e){return t.on("focus",e)}))("ionAutoInput",(function(e){return t.on("ionAutoInput",e)}))("itemsChange",(function(e){return t.on("itemsChange",e)}))("itemsCleared",(function(e){return t.on("itemsCleared",e)}))("itemsHidden",(function(e){return t.on("itemsHidden",e)}))("itemRemoved",(function(e){return t.on("itemRemoved",e)}))("itemSelected",(function(e){return t.on("itemSelected",e)}))("itemsShown",(function(e){return t.on("itemsShown",e)})),c.Kb()),2&e){var n=c.hc(1),o=c.hc(3),i=c.hc(5);c.xb(6),c.bc("model",t.selected)("eager",!0)("multi",!0)("dataProvider",t.provider)("disabled",!1)("maxSelected",3)("options",t.options)("template",i)("emptyTemplate",n)("selectionTemplate",o)}},directives:[J,l.v,l.j,l.l],pipes:[z],styles:[".country-suggestions-empty[_ngcontent-%COMP%]{background:#d3d3d3}.country-suggestions-empty[_ngcontent-%COMP%]   ion-text[_ngcontent-%COMP%]{color:#fff;display:block;font-size:large;margin:0 auto;width:225px}.country-suggestions-empty[_ngcontent-%COMP%]   div.country-suggestions-empty-icon[_ngcontent-%COMP%]{background:#d3d3d3 url(/assets/icons/not-found.svg) no-repeat 50%;min-height:130px}.flag[_ngcontent-%COMP%]{width:50px;height:50px}.flag-image-wrapper[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:10px;right:25px;width:30px}.close-icon[_ngcontent-%COMP%]{display:none}.close-icon[_ngcontent-%COMP%]:hover{display:flex}"]}),e}();function se(e,t){if(1&e&&(c.Lb(0,"ion-segment-button",4),c.Lb(1,"ion-label"),c.pc(2),c.Kb(),c.Kb()),2&e){var n=t.$implicit;c.bc("value",n.key),c.xb(2),c.rc(" ",n.label," ")}}function le(e,t){1&e&&(c.Lb(0,"ion-card",0),c.Lb(1,"ion-card-content"),c.Lb(2,"ion-row"),c.Lb(3,"ion-col",5),c.pc(4," Select Ingredients "),c.Kb(),c.Lb(5,"ion-col",6),c.Jb(6,"ingredient-picker"),c.Kb(),c.Kb(),c.Kb(),c.Kb()),2&e&&(c.xb(5),c.bc("size",12))}function ce(e,t){1&e&&(c.Lb(0,"ion-card",0),c.Lb(1,"ion-card-content"),c.Lb(2,"ion-row"),c.Lb(3,"ion-col",5),c.pc(4," Select Any Country "),c.Kb(),c.Lb(5,"ion-col",6),c.Jb(6,"simple-service"),c.Kb(),c.Kb(),c.Kb(),c.Kb()),2&e&&(c.xb(5),c.bc("size",12))}function re(e,t){1&e&&(c.Lb(0,"ion-card",0),c.Lb(1,"ion-card-content"),c.Lb(2,"ion-row"),c.Lb(3,"ion-col",5),c.pc(4," Select Multiple People "),c.Kb(),c.Lb(5,"ion-col",6),c.Jb(6,"multi-function"),c.Kb(),c.Kb(),c.Kb(),c.Kb()),2&e&&(c.xb(5),c.bc("size",12))}function ue(e,t){1&e&&(c.Lb(0,"ion-card",0),c.Lb(1,"ion-card-content"),c.Lb(2,"ion-row"),c.Lb(3,"ion-col",5),c.pc(4," Select up to 3 Countries "),c.Kb(),c.Lb(5,"ion-col",6),c.Jb(6,"custom-template"),c.Kb(),c.Kb(),c.Kb(),c.Kb()),2&e&&(c.xb(5),c.bc("size",12))}var ae=function(){function e(e,t){this.route=e,this.router=t,this.segments=[{key:"simple-service",label:"Basic"},{key:"ingredients",label:"Ingredients"},{key:"team-picker",label:"Pick Teams"},{key:"country-picker",label:"Pick Countries"}],this.selectedSegment=this.segments[0].key}return e.prototype.ngOnInit=function(){var e=this;this.route.fragment.subscribe((function(t){e.setSegment(t)}))},e.prototype.onClickSegment=function(e){e.detail&&"string"==typeof e.detail.value&&this.setSegment(e.detail.value)},e.prototype.setSegment=function(e){"string"==typeof e&&(e=e.toLowerCase(),this.segments.some((function(t){return t.key===e}))&&(this.selectedSegment=e,this.router.navigate([],{fragment:e}).then()))},e.\u0275fac=function(t){return new(t||e)(c.Ib(s.a),c.Ib(s.f))},e.\u0275cmp=c.Cb({type:e,selectors:[["home-page"]],decls:13,vars:6,consts:[[2,"height","100%"],[3,"value","ionChange"],[3,"value",4,"ngFor","ngForOf"],["style","height: 100%;",4,"ngIf"],[3,"value"],[1,"label"],[3,"size"]],template:function(e,t){1&e&&(c.Lb(0,"ion-header"),c.Lb(1,"ion-toolbar"),c.Lb(2,"ion-title"),c.pc(3," Demo: ionic4-auto-complete "),c.Kb(),c.Kb(),c.Kb(),c.Lb(4,"ion-content"),c.Lb(5,"ion-list",0),c.Lb(6,"ion-segment",1),c.Tb("ionChange",(function(e){return t.onClickSegment(e)})),c.nc(7,se,3,2,"ion-segment-button",2),c.Kb(),c.Jb(8,"ion-item-divider"),c.nc(9,le,7,1,"ion-card",3),c.nc(10,ce,7,1,"ion-card",3),c.nc(11,re,7,1,"ion-card",3),c.nc(12,ue,7,1,"ion-card",3),c.Kb(),c.Kb()),2&e&&(c.xb(6),c.bc("value",t.selectedSegment),c.xb(1),c.bc("ngForOf",t.segments),c.xb(2),c.bc("ngIf","ingredients"===t.selectedSegment),c.xb(1),c.bc("ngIf","simple-service"===t.selectedSegment),c.xb(1),c.bc("ngIf","team-picker"===t.selectedSegment),c.xb(1),c.bc("ngIf","country-picker"===t.selectedSegment))},directives:[l.h,l.x,l.w,l.g,l.o,l.s,l.B,o.i,l.m,o.j,l.t,l.n,l.c,l.d,l.q,l.f,G,Q,ee,ie],styles:[""]}),e}(),me=function(){function e(){}return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},providers:[Z],imports:[[N,o.b,i.a,l.y]]}),e}(),he=function(){function e(){}return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},providers:[Z],imports:[[N,o.b,i.a,l.y]]}),e}(),de=function(){function e(){}return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},providers:[U],imports:[[N,o.b,i.a,l.y]]}),e}(),pe=function(){function e(){}return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},providers:[W],imports:[[N,o.b,i.a,l.y]]}),e}(),fe=function(){function e(){}return e.\u0275mod=c.Gb({type:e}),e.\u0275inj=c.Fb({factory:function(t){return new(t||e)},imports:[[o.b,me,i.a,l.y,he,s.h.forChild([{path:"",component:ae}]),de,pe]]}),e}()}}]);