UNPKG

angular-base-starter

Version:

Angular starter based on @ngrx/store & Redux

1 lines 7.43 kB
webpackJsonp_name_([0],{19:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(293);n.console=o;var r=t(238);n.ENV=r.ENV;var u=t(13);n.Store=u.Store;var i=t(295);n.resolveRequestAction=i.resolveRequestAction},238:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ENV="production"},293:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.colors={default:32,error:31,info:34,success:32};var t={CR:"\n",dot:"․",error:"✖",info:"i",success:"✓"};n.symbols=t,"win32"===e.platform&&(t.CR="\r\n",t.dot=".",t.error="×",t.info="i",t.success="√"),n.color=function(e,t){return n.colors[e]||(e="default"),"["+n.colors[e]+"m"+t+""},n.printLog=function(e,o){var r=[" ","[BASE]",n.color(e,t[e])].join(" ");return"object"!=typeof o[0]?o[0]=r+" "+o[0]:o.unshift(r),console.log.apply(console,o)},n.line=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.log.apply(console,[t.CR].concat(e).concat(t.CR))},n.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.printLog("info",e)},n.success=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.printLog("success",e)},n.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.printLog("error",e)},n.clear=function(){e.stdout.write("")}}).call(n,t(294))},294:function(e,n){function t(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(a===setTimeout)return setTimeout(e,0);if((a===t||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(n){try{return a.call(null,e,0)}catch(n){return a.call(this,e,0)}}}function u(e){if(f===clearTimeout)return clearTimeout(e);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(n){try{return f.call(null,e)}catch(n){return f.call(this,e)}}}function i(){v&&p&&(v=!1,p.length?y=p.concat(y):g=-1,y.length&&s())}function s(){if(!v){var e=r(i);v=!0;for(var n=y.length;n;){for(p=y,y=[];++g<n;)p&&p[g].run();g=-1,n=y.length}p=null,v=!1,u(e)}}function c(e,n){this.fun=e,this.array=n}function l(){}var a,f,d=e.exports={};!function(){try{a="function"==typeof setTimeout?setTimeout:t}catch(e){a=t}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(e){f=o}}();var p,y=[],v=!1,g=-1;d.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];y.push(new c(e,n)),1!==y.length||v||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},295:function(e,n,t){"use strict";function o(e,n,t){return u.createObservableAction({type:r.getActionPrefix(e.type)+"_"+t,payload:{response:n}})}Object.defineProperty(n,"__esModule",{value:!0});var r=t(296),u=t(297);n.resolveRequestAction=o},296:function(e,n,t){"use strict";function o(e){return e.substr(0,e.lastIndexOf("_"))}Object.defineProperty(n,"__esModule",{value:!0}),n.getActionPrefix=o,n.fakeResponse=function(e,n){return function(t){return t.respond(e,{"Content-Type":"application/json"},JSON.stringify(n))}}},297:function(e,n,t){"use strict";function o(e){return r.Observable.of({type:""+e.type,payload:e.payload})}Object.defineProperty(n,"__esModule",{value:!0});var r=t(0);n.createObservableAction=o},298:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(60);n.ActionTypes=o.createActionTypes(["LOAD_MESSAGE"])},299:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(2),r=t(517),u=t(518),i=t(11),s=t(515),c=t(24),l=t(516),a=o.ɵcmf(r.LazyModule,[],function(e){return o.ɵmod([o.ɵmpd(512,o.ComponentFactoryResolver,o.ɵCodegenComponentFactoryResolver,[[8,[u.LazyContainerNgFactory]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o.ɵmpd(4608,i.NgLocalization,i.NgLocaleLocalization,[o.LOCALE_ID,[2,i.ɵa]]),o.ɵmpd(4608,s.LazyActions,s.LazyActions,[]),o.ɵmpd(512,i.CommonModule,i.CommonModule,[]),o.ɵmpd(512,c.RouterModule,c.RouterModule,[[2,c.ɵa],[2,c.Router]]),o.ɵmpd(512,r.LazyModule,r.LazyModule,[]),o.ɵmpd(1024,c.ROUTES,function(){return[[{path:"",component:l.LazyContainer}]]},[])])});n.LazyModuleNgFactory=a},515:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(298),r=function(){function e(){}return e.prototype.loadMessage=function(e){return{type:o.ActionTypes.LOAD_MESSAGE,payload:{message:e}}},e}();n.LazyActions=r},516:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=(t(2),t(19),t(515),t(520)),r=function(){function e(e,n){this.store=e,this.lazyActions=n,this.message$=this.store.select(o.selectMessage)}return e.prototype.ngOnInit=function(){var e=this;this.messageSubscription=this.message$.subscribe(function(n){return e.message=n}),this.message||this.loadMessage()},e.prototype.ngOnDestroy=function(){this.messageSubscription.unsubscribe()},e.prototype.loadMessage=function(){this.store.dispatch(this.lazyActions.loadMessage("Lazily loaded Container!"))},e}();n.LazyContainer=r},517:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e}();n.LazyModule=o},518:function(e,n,t){"use strict";function o(e){return i.ɵvid(0,[(e()(),i.ɵeld(0,0,null,null,2,"div",[["class","lazyContainer"]],null,null,null,null,null)),(e()(),i.ɵeld(1,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i.ɵted(2,null,["",""]))],null,function(e,n){e(n,2,0,n.component.message)})}function r(e){return i.ɵvid(0,[(e()(),i.ɵeld(0,0,null,null,1,"base-lazy-container",[],null,null,null,o,f)),i.ɵdid(1,245760,null,0,s.LazyContainer,[c.Store,l.LazyActions],null,null)],function(e,n){e(n,1,0)},null)}Object.defineProperty(n,"__esModule",{value:!0});var u=t(519),i=t(2),s=t(516),c=t(13),l=t(515),a=[u.styles],f=i.ɵcrt({encapsulation:0,styles:a,data:{}});n.RenderType_LazyContainer=f,n.View_LazyContainer_0=o,n.View_LazyContainer_Host_0=r;var d=i.ɵccf("base-lazy-container",s.LazyContainer,r,{},{},[]);n.LazyContainerNgFactory=d},519:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=['exports[_ngcontent-%COMP%] =[_ngcontent-%COMP%] module.exports[_ngcontent-%COMP%] =[_ngcontent-%COMP%] require("../../../../node_modules/css-loader/lib/css-base.js")(false)[_ngcontent-%COMP%];\n//[_ngcontent-%COMP%] imports\n\n\n//[_ngcontent-%COMP%] module\nexports.push([module.id[_ngcontent-%COMP%], ".lazyContainer[_ngcontent-%COMP%]{display:flex;justify-content:center}"[_ngcontent-%COMP%], ""])[_ngcontent-%COMP%];\n\n// exports'];n.styles=o},520:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.selectMessage=function(e){return e.lazy.message}},60:function(e,n,t){"use strict";function o(e){return e.reduce(function(e,n){return e[n]=n,e},Object.create(null))}Object.defineProperty(n,"__esModule",{value:!0}),n.createActionTypes=o}});