f4492b9a99319c7678b2420dadc94dd9b72dd7bb
[WebKit-https.git] / PerformanceTests / Speedometer / resources / todomvc / architecture-examples / angular / dist / main.779eb2f1ddbe23ac61c7.bundle.js
1 webpackJsonp([1,4],{"/fcW":function(t,e){function n(t){throw new Error("Cannot find module '"+t+"'.")}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="/fcW"},0:function(t,e,n){t.exports=n("x35b")},"1A80":function(t,e,n){"use strict";function l(t){return s._15(0,[(t()(),s._16(0,null,null,11,"li",[],[[2,"completed",null]],null,null,null,null)),(t()(),s._17(null,["\n        "])),(t()(),s._16(0,null,null,8,"div",[["class","view"]],null,null,null,null,null)),(t()(),s._17(null,["\n          "])),(t()(),s._16(0,null,null,0,"input",[["class","toggle"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(t,e,n){var l=!0,o=t.component;if("click"===e){l=!1!==o.toggleTodoComplete(t.context.$implicit)&&l}return l},null,null)),(t()(),s._17(null,["\n          "])),(t()(),s._16(0,null,null,1,"label",[],null,null,null,null,null)),(t()(),s._17(null,["",""])),(t()(),s._17(null,["\n          "])),(t()(),s._16(0,null,null,0,"button",[["class","destroy"]],null,[[null,"click"]],function(t,e,n){var l=!0,o=t.component;if("click"===e){l=!1!==o.removeTodo(t.context.$implicit)&&l}return l},null,null)),(t()(),s._17(null,["\n        "])),(t()(),s._17(null,["\n      "]))],null,function(t,e){t(e,0,0,e.context.$implicit.complete),t(e,4,0,e.context.$implicit.complete),t(e,7,0,e.context.$implicit.title)})}function o(t){return s._15(0,[(t()(),s._16(0,null,null,7,"section",[["class","main"]],null,null,null,null,null)),(t()(),s._17(null,["\n    "])),(t()(),s._16(0,null,null,4,"ul",[["class","todo-list"]],null,null,null,null,null)),(t()(),s._17(null,["\n      "])),(t()(),s._18(8388608,null,null,1,null,l)),s._19(401408,null,0,a.f,[s._0,s._1,s.t],{ngForOf:[0,"ngForOf"]},null),(t()(),s._17(null,["\n    "])),(t()(),s._17(null,["\n  "]))],function(t,e){t(e,5,0,e.component.todos)},null)}function i(t){return s._15(0,[(t()(),s._16(0,null,null,6,"footer",[["class","footer"]],null,null,null,null,null)),(t()(),s._17(null,["\n    "])),(t()(),s._16(0,null,null,3,"span",[["class","todo-count"]],null,null,null,null,null)),(t()(),s._16(0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),s._17(null,["",""])),(t()(),s._17(null,[" "," left"])),(t()(),s._17(null,["\n  "]))],null,function(t,e){var n=e.component;t(e,4,0,n.todos.length),t(e,5,0,1==n.todos.length?"item":"items")})}function _(t){return s._15(0,[(t()(),s._16(0,null,null,20,"section",[["class","todoapp"]],null,null,null,null,null)),(t()(),s._17(null,["\n  "])),(t()(),s._16(0,null,null,11,"header",[["class","header"]],null,null,null,null,null)),(t()(),s._17(null,["\n    "])),(t()(),s._16(0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),s._17(null,["Todos"])),(t()(),s._17(null,["\n    "])),(t()(),s._16(0,null,null,5,"input",[["autofocus",""],["class","new-todo"],["placeholder","What needs to be done?"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var l=!0,o=t.component;if("input"===e){l=!1!==s._20(t,8)._handleInput(n.target.value)&&l}if("blur"===e){l=!1!==s._20(t,8).onTouched()&&l}if("compositionstart"===e){l=!1!==s._20(t,8)._compositionStart()&&l}if("compositionend"===e){l=!1!==s._20(t,8)._compositionEnd(n.target.value)&&l}if("ngModelChange"===e){l=!1!==(o.newTodo.title=n)&&l}if("keyup.enter"===e){l=!1!==o.addTodo()&&l}return l},null,null)),s._19(8192,null,0,p.d,[s.W,s.V,[2,p.e]],null,null),s._21(512,null,p.f,function(t){return[t]},[p.d]),s._19(335872,null,0,p.g,[[8,null],[8,null],[8,null],[2,p.f]],{model:[0,"model"]},{update:"ngModelChange"}),s._21(1024,null,p.h,null,[p.g]),s._19(8192,null,0,p.i,[p.h],null,null),(t()(),s._17(null,["\n  "])),(t()(),s._17(null,["\n  "])),(t()(),s._18(8388608,null,null,1,null,o)),s._19(8192,null,0,a.g,[s._0,s._1],{ngIf:[0,"ngIf"]},null),(t()(),s._17(null,["\n  "])),(t()(),s._18(8388608,null,null,1,null,i)),s._19(8192,null,0,a.g,[s._0,s._1],{ngIf:[0,"ngIf"]},null),(t()(),s._17(null,["\n"]))],function(t,e){var n=e.component;t(e,10,0,n.newTodo.title),t(e,16,0,n.todos.length>0),t(e,19,0,n.todos.length>0)},function(t,e){t(e,7,0,s._20(e,12).ngClassUntouched,s._20(e,12).ngClassTouched,s._20(e,12).ngClassPristine,s._20(e,12).ngClassDirty,s._20(e,12).ngClassValid,s._20(e,12).ngClassInvalid,s._20(e,12).ngClassPending)})}function r(t){return s._15(0,[(t()(),s._16(0,null,null,2,"app-root",[],null,null,null,_,d)),s._21(256,null,h.a,h.a,[]),s._19(24576,null,0,c.a,[h.a],null,null)],null,null)}var u=n("Ni5f"),s=n("3j3K"),a=n("2Je8"),c=n("YWx4"),p=n("NVOs"),h=n("j3en");n.d(e,"a",function(){return g});var f=[u.a],d=s._14({encapsulation:0,styles:f,data:{}}),g=s._22("app-root",c.a,r,{},{},[])},Iksp:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var l=function(){function t(){}return t}()},Ni5f:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var l=[""]},YWx4:function(t,e,n){"use strict";var l=n("aKa3"),o=n("j3en");n.d(e,"a",function(){return i});var i=function(){function t(t){this.todoDataService=t,this.newTodo=new l.a}return t.prototype.addTodo=function(){this.todoDataService.addTodo(this.newTodo),this.newTodo=new l.a},t.prototype.toggleTodoComplete=function(t){this.todoDataService.toggleTodoComplete(t)},t.prototype.removeTodo=function(t){this.todoDataService.deleteTodoById(t.id)},Object.defineProperty(t.prototype,"todos",{get:function(){return this.todoDataService.getAllTodos()},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:o.a}]},t}()},aKa3:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var l=function(){function t(t){void 0===t&&(t={}),this.title="",this.complete=!1,Object.assign(this,t)}return t}()},j3en:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var l=function(){function t(){this.lastId=0,this.todos=[]}return t.prototype.addTodo=function(t){return t.id||(t.id=++this.lastId),this.todos.push(t),this},t.prototype.deleteTodoById=function(t){return this.todos=this.todos.filter(function(e){return e.id!==t}),this},t.prototype.updateTodoById=function(t,e){void 0===e&&(e={});var n=this.getTodoById(t);return n?(Object.assign(n,e),n):null},t.prototype.getAllTodos=function(){return this.todos},t.prototype.getTodoById=function(t){return this.todos.filter(function(e){return e.id===t}).pop()},t.prototype.toggleTodoComplete=function(t){return this.updateTodoById(t.id,{complete:!t.complete})},t.ctorParameters=function(){return[]},t}()},kZql:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var l={production:!0}},kke6:function(t,e,n){"use strict";var l=n("3j3K"),o=n("Iksp"),i=n("2Je8"),_=n("Qbdm"),r=n("NVOs"),u=n("Fzro"),s=n("1A80");n.d(e,"a",function(){return p});var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function l(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(l.prototype=n.prototype,new l)}}(),c=function(t){function e(e){return t.call(this,e,[s.a],[s.a])||this}return a(e,t),Object.defineProperty(e.prototype,"_LOCALE_ID_12",{get:function(){return null==this.__LOCALE_ID_12&&(this.__LOCALE_ID_12=l.b(this.parent.get(l.c,null))),this.__LOCALE_ID_12},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_NgLocalization_13",{get:function(){return null==this.__NgLocalization_13&&(this.__NgLocalization_13=new i.a(this._LOCALE_ID_12)),this.__NgLocalization_13},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Compiler_14",{get:function(){return null==this.__Compiler_14&&(this.__Compiler_14=new l.d),this.__Compiler_14},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_APP_ID_15",{get:function(){return null==this.__APP_ID_15&&(this.__APP_ID_15=l.e()),this.__APP_ID_15},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_IterableDiffers_16",{get:function(){return null==this.__IterableDiffers_16&&(this.__IterableDiffers_16=l.f()),this.__IterableDiffers_16},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_KeyValueDiffers_17",{get:function(){return null==this.__KeyValueDiffers_17&&(this.__KeyValueDiffers_17=l.g()),this.__KeyValueDiffers_17},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_DomSanitizer_18",{get:function(){return null==this.__DomSanitizer_18&&(this.__DomSanitizer_18=new _.b(this.parent.get(_.c))),this.__DomSanitizer_18},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Sanitizer_19",{get:function(){return null==this.__Sanitizer_19&&(this.__Sanitizer_19=this._DomSanitizer_18),this.__Sanitizer_19},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_HAMMER_GESTURE_CONFIG_20",{get:function(){return null==this.__HAMMER_GESTURE_CONFIG_20&&(this.__HAMMER_GESTURE_CONFIG_20=new _.d),this.__HAMMER_GESTURE_CONFIG_20},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_EVENT_MANAGER_PLUGINS_21",{get:function(){return null==this.__EVENT_MANAGER_PLUGINS_21&&(this.__EVENT_MANAGER_PLUGINS_21=[new _.e(this.parent.get(_.c)),new _.f(this.parent.get(_.c)),new _.g(this.parent.get(_.c),this._HAMMER_GESTURE_CONFIG_20)]),this.__EVENT_MANAGER_PLUGINS_21},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_EventManager_22",{get:function(){return null==this.__EventManager_22&&(this.__EventManager_22=new _.h(this._EVENT_MANAGER_PLUGINS_21,this.parent.get(l.h))),this.__EventManager_22},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ɵDomSharedStylesHost_23",{get:function(){return null==this.__ɵDomSharedStylesHost_23&&(this.__ɵDomSharedStylesHost_23=new _.i(this.parent.get(_.c))),this.__ɵDomSharedStylesHost_23},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ɵDomRendererFactory2_24",{get:function(){return null==this.__ɵDomRendererFactory2_24&&(this.__ɵDomRendererFactory2_24=new _.j(this._EventManager_22,this._ɵDomSharedStylesHost_23)),this.__ɵDomRendererFactory2_24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_RendererFactory2_25",{get:function(){return null==this.__RendererFactory2_25&&(this.__RendererFactory2_25=this._ɵDomRendererFactory2_24),this.__RendererFactory2_25},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ɵSharedStylesHost_26",{get:function(){return null==this.__ɵSharedStylesHost_26&&(this.__ɵSharedStylesHost_26=this._ɵDomSharedStylesHost_23),this.__ɵSharedStylesHost_26},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Testability_27",{get:function(){return null==this.__Testability_27&&(this.__Testability_27=new l.i(this.parent.get(l.h))),this.__Testability_27},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Meta_28",{get:function(){return null==this.__Meta_28&&(this.__Meta_28=new _.k(this.parent.get(_.c))),this.__Meta_28},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Title_29",{get:function(){return null==this.__Title_29&&(this.__Title_29=new _.l(this.parent.get(_.c))),this.__Title_29},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ɵi_30",{get:function(){return null==this.__ɵi_30&&(this.__ɵi_30=new r.a),this.__ɵi_30},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_BrowserXhr_31",{get:function(){return null==this.__BrowserXhr_31&&(this.__BrowserXhr_31=new u.a),this.__BrowserXhr_31},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ResponseOptions_32",{get:function(){return null==this.__ResponseOptions_32&&(this.__ResponseOptions_32=new u.b),this.__ResponseOptions_32},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_XSRFStrategy_33",{get:function(){return null==this.__XSRFStrategy_33&&(this.__XSRFStrategy_33=u.c()),this.__XSRFStrategy_33},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_XHRBackend_34",{get:function(){return null==this.__XHRBackend_34&&(this.__XHRBackend_34=new u.d(this._BrowserXhr_31,this._ResponseOptions_32,this._XSRFStrategy_33)),this.__XHRBackend_34},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_RequestOptions_35",{get:function(){return null==this.__RequestOptions_35&&(this.__RequestOptions_35=new u.e),this.__RequestOptions_35},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_Http_36",{get:function(){return null==this.__Http_36&&(this.__Http_36=u.f(this._XHRBackend_34,this._RequestOptions_35)),this.__Http_36},enumerable:!0,configurable:!0}),e.prototype.createInternal=function(){return this._CommonModule_0=new i.b,this._ErrorHandler_1=_.m(),this._APP_INITIALIZER_2=[l.j,_.n(this.parent.get(_.o,null),this.parent.get(l.k,null))],this._ApplicationInitStatus_3=new l.l(this._APP_INITIALIZER_2),this._ɵf_4=new l.m(this.parent.get(l.h),this.parent.get(l.n),this,this._ErrorHandler_1,this.componentFactoryResolver,this._ApplicationInitStatus_3),this._ApplicationRef_5=this._ɵf_4,this._ApplicationModule_6=new l.o(this._ApplicationRef_5),this._BrowserModule_7=new _.p(this.parent.get(_.p,null)),this._ɵba_8=new r.b,this._FormsModule_9=new r.c,this._HttpModule_10=new u.g,this._AppModule_11=new o.a,this._AppModule_11},e.prototype.getInternal=function(t,e){return t===i.b?this._CommonModule_0:t===l.p?this._ErrorHandler_1:t===l.q?this._APP_INITIALIZER_2:t===l.l?this._ApplicationInitStatus_3:t===l.m?this._ɵf_4:t===l.r?this._ApplicationRef_5:t===l.o?this._ApplicationModule_6:t===_.p?this._BrowserModule_7:t===r.b?this._ɵba_8:t===r.c?this._FormsModule_9:t===u.g?this._HttpModule_10:t===o.a?this._AppModule_11:t===l.c?this._LOCALE_ID_12:t===i.c?this._NgLocalization_13:t===l.d?this._Compiler_14:t===l.s?this._APP_ID_15:t===l.t?this._IterableDiffers_16:t===l.u?this._KeyValueDiffers_17:t===_.q?this._DomSanitizer_18:t===l.v?this._Sanitizer_19:t===_.r?this._HAMMER_GESTURE_CONFIG_20:t===_.s?this._EVENT_MANAGER_PLUGINS_21:t===_.h?this._EventManager_22:t===_.i?this._ɵDomSharedStylesHost_23:t===_.j?this._ɵDomRendererFactory2_24:t===l.w?this._RendererFactory2_25:t===_.t?this._ɵSharedStylesHost_26:t===l.i?this._Testability_27:t===_.k?this._Meta_28:t===_.l?this._Title_29:t===r.a?this._ɵi_30:t===u.a?this._BrowserXhr_31:t===u.h?this._ResponseOptions_32:t===u.i?this._XSRFStrategy_33:t===u.d?this._XHRBackend_34:t===u.j?this._RequestOptions_35:t===u.k?this._Http_36:e},e.prototype.destroyInternal=function(){this._ɵf_4.ngOnDestroy(),this.__ɵDomSharedStylesHost_23&&this._ɵDomSharedStylesHost_23.ngOnDestroy()},e}(l.x),p=new l.y(c,o.a)},x35b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=n("3j3K"),o=n("kZql"),i=n("Qbdm"),_=n("kke6");o.a.production&&n.i(l.a)(),n.i(i.a)().bootstrapModuleFactory(_.a)}},[0]);