function t(t){for(var e={},s=function(){var s=n[r];e[s]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];this.$store.dispatch(t[s].apply(t,e))}},r=0,n=Object.keys(t);r<n.length;r+=1)s();return e}function e(t,e){return e.reduce((function(t,e){return t&&t[e]}),t)}function s(t){var s={};if(Array.isArray(t))for(var r=function(){var t=o[n].split(".");s[t[t.length-1]]=function(){return e(this.$state,t)}},n=0,o=t;n<o.length;n+=1)r();else for(var i=function(){var r=a[u],n=t[r];if("function"==typeof n)s[r]=function(){return n(this.$state)};else{var o=n.split(".");s[r]=function(){return e(this.$state,o)}}},u=0,a=Object.keys(t);u<a.length;u+=1)i();return s}var r={install:function(t){t.mixin({beforeCreate:function(){var e=this;if(this.$options.store){var s=this.$options.store;this._storeRoot=this,this._store=s,t.util.defineReactive(this,"_state",s.getState()),this.$options._storeUnsubscribe=s.subscribe((function(){e._state=s.getState()}))}else this._storeRoot=this.$parent&&this.$parent._storeRoot||this},destroyed:function(){this.$options._storeUnsubscribe&&this.$options._storeUnsubscribe()}}),Object.defineProperties(t.prototype,{$state:{get:function(){return this._storeRoot._state}},$store:{get:function(){return this._storeRoot._store}}})}};export{r as VueRedux,t as mapActions,s as mapState};
//# sourceMappingURL=index.js.map
