(function(r,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("vue-router"),require("vuex")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuex"],u):(r=typeof globalThis<"u"?globalThis:r||self,u(r.ZYZGroupCoreVue={},r.vue,r["vue-router"],r.vuex))})(this,function(r,u,i,o){"use strict";function d(){return u.getCurrentInstance()}function f(e,t){return u.createVNode(e,t)}function C(e){const t=f(e.component,e.props);e.appContext&&(t.appContext=e.appContext),u.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function R(e){let t;u.onMounted(()=>{t=e()}),u.onUnmounted(()=>{t?.()})}function V(e){const t=i.createRouter({history:i.createWebHistory("/"),routes:e,scrollBehavior:(n,c,s)=>s||{left:0,top:0}});return t.beforeEach((n,c,s)=>{s()}),{router:t,push:async n=>{await t.push(n)},to:function(n){this.push({path:n})},addRoute:(n,c)=>t.addRoute(n,c),removeRoute:n=>{t.removeRoute(n)},hasRoute:n=>t.hasRoute(n),getRoutes:()=>t.getRoutes(),getCurrentRoute:()=>({params:t.currentRoute.value.params,query:t.currentRoute.value.query})}}const h="increment",E="decrement",g="incrementAction";function l(){return{store:o.useStore()}}function m(e,t){let n=o.mapState;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapState:t=e,a(t,n)}function A(e,t){let n=o.mapGetters;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapGetters:t=e,a(t,n)}function T(e,t){let n=o.mapMutations;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function y(e,t){let n=o.mapActions;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function a(e,t){const n=o.useStore(),c={},s=t(e);return Object.keys(s).forEach(p=>{const N=s[p].bind({$store:n});c[p]=u.computed(N)}),c}r.DECREMENT=E,r.INCREMENT=h,r.INCREMENTACTION=g,r.getInstance=d,r.getVNode=f,r.renderComponent=C,r.useVueEffect=R,r.useVueRouter=V,r.useVuex=l,r.useVuexActions=y,r.useVuexGetters=A,r.useVuexMutations=T,r.useVuexStates=m,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map
