text: webpackJsonp([4],{JKda:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("9W2h"),n=a("LMZF"),l=this&&this.__decorate||function(t,e,a,o){var n,l=arguments.length,i=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(i=(l<3?n(i):l>3?n(e,a,i):n(e,a))||i);return l>3&&i&&Object.defineProperty(e,a,i),i},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function t(){}return t.prototype.ngOnInit=function(){},t=l([Object(n.m)({selector:"app-autocomplete",template:"\n    <p>\n      autocomplete works!\n    </p>\n  ",styles:[]}),i("design:paramtypes",[])],t)}(),s=a("0nO6"),p=a("AP4T"),m=a("GZB0");p.a.of=m.a;var f=a("fNvg");p.a.prototype.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return f.a.apply(void 0,t)(this)};var c=a("dmC+");p.a.prototype.map=c.a;var d=a("hxQ8"),u=a("Un6q"),g=[{name:"Arkansas",population:"2.978M",flag:"https://upload.wikimedia.org/wikipedia/commons/9/9d/Flag_of_Arkansas.svg"},{name:"California",population:"39.14M",flag:"https://upload.wikimedia.org/wikipedia/commons/0/01/Flag_of_California.svg"},{name:"Florida",population:"20.27M",flag:"https://upload.wikimedia.org/wikipedia/commons/f/f7/Flag_of_Florida.svg"},{name:"Texas",population:"27.47M",flag:"https://upload.wikimedia.org/wikipedia/commons/f/f7/Flag_of_Texas.svg"}];var h=new s.b,v=h.valueChanges.startWith(null).map(function(t){return t?(e=t,g.filter(function(t){return 0===t.name.toLowerCase().indexOf(e.toLowerCase())})):g.slice();var e});e.default=Object(o.d)(r,{imports:[u.a,d.a,s.j]}).add("Autocomplete overview",{template:'\n        <form [formGroup]="form" class="example-form">\n            <mat-form-field class="example-full-width">\n                <input matInput placeholder="State" aria-label="State" [matAutocomplete]="auto" [formControl]="stateCtrl">\n                <mat-autocomplete #auto="matAutocomplete">\n                <mat-option *ngFor="let state of filteredStates | async" [value]="state.name">\n                    <img style="vertical-align:middle;" aria-hidden src="{{state.flag}}" height="25" />\n                    <span>{{ state.name }}</span> |\n                    <small>Population: {{state.population}}</small>\n                </mat-option>\n                </mat-autocomplete>\n            </mat-form-field>\n\n            <br />\n\n            <mat-slide-toggle\n                [checked]="stateCtrl.disabled"\n                (change)="stateCtrl.disabled ? stateCtrl.enable() : stateCtrl.disable()">\n                Disable Input?\n            </mat-slide-toggle>\n        </form>\n        ',context:{form:new s.c({}),stateCtrl:h,filteredStates:v}})}});