webpackJsonp([21],{y75h:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("/oeL"),i=n("BkNc"),c=n("ekaq"),a=this&&this.__decorate||function(e,t,n,o){var i,c=arguments.length,a=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(c<3?i(a):c>3?i(t,n,a):i(t,n))||a);return c>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,n){this.router=e,this.route=t,this.rest=n,this.resource_name="network/vlan/",this.route_success=["network","vlans"]}return e=a([Object(o.Component)({selector:"app-vlan-delete",template:'<entity-delete [conf]="this"></entity-delete>'}),r("design:paramtypes",["function"==typeof(t=void 0!==i.c&&i.c)&&t||Object,"function"==typeof(n=void 0!==i.a&&i.a)&&n||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object])],e);var t,n,f}(),l=n("/oeL"),p=n("BkNc"),s=n("xrDH"),u=(n.n(s),n("ZV8k")),d=n("mQGb"),h=this&&this.__decorate||function(e,t,n,o){var i,c=arguments.length,a=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(c<3?i(a):c>3?i(t,n,a):i(t,n))||a);return c>3&&a&&Object.defineProperty(t,n,a),a},v=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function e(e,t,n,o,i){this.router=e,this.rest=t,this.ws=n,this.networkService=o,this._state=i,this.resource_name="network/vlan/",this.route_success=["network","vlans"],this.isEntity=!0,this.fieldConfig=[{type:"input",name:"vlan_vint",placeholder:"Virtual Interface"},{type:"select",name:"vlan_pint",placeholder:"Parent Interface",options:[]},{type:"input",name:"vlan_tag",placeholder:"Vlan Tag"},{type:"input",name:"vlan_description",placeholder:"Description"}]}return e.prototype.afterInit=function(e){var t=this;this.networkService.getVlanNicChoices().subscribe(function(e){t.vlan_pint=s.find(t.fieldConfig,{name:"vlan_pint"}),e.forEach(function(e){t.vlan_pint.options.push({label:e[1],value:e[0]})})}),e.isNew||e.setDisabled("vlan_vint",!0)},e=h([Object(l.Component)({selector:"app-vlan-form",template:'<entity-form [conf]="this"></entity-form>'}),v("design:paramtypes",["function"==typeof(t=void 0!==p.c&&p.c)&&t||Object,"function"==typeof(n=void 0!==d.f&&d.f)&&n||Object,"function"==typeof(o=void 0!==d.k&&d.k)&&o||Object,"function"==typeof(i=void 0!==d.e&&d.e)&&i||Object,"function"==typeof(c=void 0!==u.a&&u.a)&&c||Object])],e);var t,n,o,i,c}(),m=n("/oeL"),b=n("BkNc"),_=n("ZV8k"),j=n("ekaq"),g=this&&this.__decorate||function(e,t,n,o){var i,c=arguments.length,a=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(c<3?i(a):c>3?i(t,n,a):i(t,n))||a);return c>3&&a&&Object.defineProperty(t,n,a),a},O=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},k=function(){function e(e,t,n){this.resource_name="network/vlan/",this.route_add=["network","vlans","add"],this.route_edit=["network","vlans","edit"],this.route_delete=["network","vlans","delete"],this.columns=[{name:"Vlan Interface",prop:"vlan_vint"},{name:"Parent Interface",prop:"vlan_pint"},{name:"Vlan Tag",prop:"vlan_tag"},{name:"Description",prop:"vlan_description"}],this.config={paging:!0,sorting:{columns:this.columns}}}return e=g([Object(m.Component)({selector:"app-vlan-list",template:'<entity-table [conf]="this"></entity-table>'}),O("design:paramtypes",["function"==typeof(t=void 0!==j.a&&j.a)&&t||Object,"function"==typeof(n=void 0!==b.c&&b.c)&&n||Object,"function"==typeof(o=void 0!==_.a&&_.a)&&o||Object])],e);var t,n,o}(),R=n("BkNc"),w=[{path:"",component:k},{path:"add",component:y},{path:"edit/:pk",component:y},{path:"delete/:pk",component:f}],P=R.d.forChild(w);n.d(t,"VlanModule",function(){return M});var C=n("qbdv"),D=n("/oeL"),V=n("bm2B"),N=n("mQGb"),B=n("Rhg7"),I=n("j9tJ"),L=this&&this.__decorate||function(e,t,n,o){var i,c=arguments.length,a=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(c<3?i(a):c>3?i(t,n,a):i(t,n))||a);return c>3&&a&&Object.defineProperty(t,n,a),a},M=function(){function e(){}return e=L([Object(D.NgModule)({imports:[I.a,C.CommonModule,V.e,V.l,B.a,P],declarations:[k,y,f],providers:[N.e]})],e)}()}});