var ZYZGroupCoreVue=function(r,s,a,u){"use strict";function C(){return s.getCurrentInstance()}function i(e,t){return s.createVNode(e,t)}function l(e){const t=i(e.component,e.props);e.appContext&&(t.appContext=e.appContext),s.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function R(e){let t;s.onMounted(()=>{t=e()}),s.onUnmounted(()=>{t?.()})}function V(e){const t=a.createRouter({history:a.createWebHistory("/"),routes:e,scrollBehavior:(n,c,o)=>o||{left:0,top:0}});return t.beforeEach((n,c,o)=>{o()}),{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 g="increment",E="decrement",h="incrementAction";function d(){return{store:u.useStore()}}function A(e,t){let n=u.mapState;return typeof e=="string"&&e.length>0?n=u.createNamespacedHelpers(e).mapState:t=e,f(t,n)}function m(e,t){let n=u.mapGetters;return typeof e=="string"&&e.length>0?n=u.createNamespacedHelpers(e).mapGetters:t=e,f(t,n)}function N(e,t){let n=u.mapMutations;return typeof e=="string"&&e.length>0?n=u.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function I(e,t){let n=u.mapActions;return typeof e=="string"&&e.length>0?n=u.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function f(e,t){const n=u.useStore(),c={},o=t(e);return Object.keys(o).forEach(p=>{const T=o[p].bind({$store:n});c[p]=s.computed(T)}),c}return r.DECREMENT=E,r.INCREMENT=g,r.INCREMENTACTION=h,r.getInstance=C,r.getVNode=i,r.renderComponent=l,r.useVueEffect=R,r.useVueRouter=V,r.useVuex=d,r.useVuexActions=I,r.useVuexGetters=m,r.useVuexMutations=N,r.useVuexStates=A,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),r}({},vue,vue-router,vuex);
//# sourceMappingURL=zyzgroup_core_vue.iife.js.map
