(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["kamaji-0.1.2"]=e():t["kamaji-0.1.2"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"0b4b":function(t,e,n){var r=n("5eaa");e=r(!1),e.push([t.i,".card[data-v-1cc1b31b]{background-color:#fff;color:#000!important;position:relative;color:inherit;text-decoration:none;margin-top:10px;border:1px solid #eee;border-radius:1rem;padding:1rem;border-left:1rem solid #add8e6;display:grid;grid-template-columns:auto 1fr;gap:10px;max-width:30rem}.card[data-v-1cc1b31b]:hover{background-color:#add8e6}.card h3[data-v-1cc1b31b]{color:#000}.card .open-link[data-v-1cc1b31b]{position:absolute;top:1rem;right:1rem}",""]),t.exports=e},"0ed3":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},a=0;an.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(a=0;a-1:t.certManagerInstalled},on:{change:function(e){var n=t.certManagerInstalled,r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=null,i=t._i(n,o);r.checked?i<0&&(t.certManagerInstalled=n.concat([o])):i>-1&&(t.certManagerInstalled=n.slice(0,i).concat(n.slice(i+1)))}else t.certManagerInstalled=a}}}),e("label",{attrs:{for:"cert-manager"}},[t._v("cert-manager")])]),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.kamajiInstalled,expression:"kamajiInstalled"}],attrs:{type:"checkbox",id:"cert-manager",disabled:""},domProps:{checked:Array.isArray(t.kamajiInstalled)?t._i(t.kamajiInstalled,null)>-1:t.kamajiInstalled},on:{change:function(e){var n=t.kamajiInstalled,r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=null,i=t._i(n,o);r.checked?i<0&&(t.kamajiInstalled=n.concat([o])):i>-1&&(t.kamajiInstalled=n.slice(0,i).concat(n.slice(i+1)))}else t.kamajiInstalled=a}}}),e("label",{attrs:{for:"cert-manager"}},[t._v("kamaji")])]),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.console,expression:"console"}],attrs:{type:"checkbox",id:"cert-manager",disabled:""},domProps:{checked:Array.isArray(t.console)?t._i(t.console,null)>-1:t.console},on:{change:function(e){var n=t.console,r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=null,i=t._i(n,o);r.checked?i<0&&(t.console=n.concat([o])):i>-1&&(t.console=n.slice(0,i).concat(n.slice(i+1)))}else t.console=a}}}),e("label",{attrs:{for:"cert-manager"}},[t._v("kamaji console")])])])])},I=[function(){var t=this,e=t._self._c;return e("p",[t._v(" Please complete the installation process "),e("a",{attrs:{href:"https://kamaji.clastix.io/",target:"_blank"}},[t._v(" following this guide ")]),t._v(". ")])}],S=n("9ce4");async function A(t,e){const n=Object.keys(t),r=Object.values(t),a=await Promise[e](r),o={};for(let i=0;i{const e=t["management/byId"](v.SETTING,w.UI_PERFORMANCE);let n={};if(null!==e&&void 0!==e&&e.value)try{n=JSON.parse(e.value)}catch(r){console.warn("ui-performance setting contains invalid data")}return Object.assign(L,n||{})};class D{isApplicable(t){return Array.isArray(t.namespaced)}isEnabled(t){var e;const n=t["currentProduct"];if("cluster"!==(null===n||void 0===n?void 0:n.inStore))return!1;if(null!==n&&void 0!==n&&n.showWorkspaceSwitcher)return!1;const r=P(t);return!(null===(e=r.forceNsFilterV2)||void 0===e||!e.enabled)}checkAndCreateParam(t){return this.isApplicable(t)?this.createParam(t.namespaced):""}createParam(t){if(!t||!t.length)return"";const e=t.map(t=>t.replace(x,"").replace(j,"")).join(",");return`${D.param}=${e}`}}D.param="projectsornamespaces";var $=new D,G={data(){return{forceUpdateLiveAndDelayed:0}},computed:{...Object(S["a"])(["currentProduct","currentCluster","namespaceFilters"]),namespaceFilterRequired(){return this.__namespaceRequired&&!this.__validFilter},namespaceFilter(){return this.__namespaceRequired?this.__validFilter:""},__validFilter(){const t=this.namespaceFilters.length&&this.namespaceFilters.every(t=>t.startsWith(U)||t.startsWith(k));return t?this.namespaceFilters:null},__namespaceRequired(){return!!$.isEnabled(this.$store.getters)&&this.__areResourcesNamespaced},__areResourcesNamespaced(){return"cluster"===this.currentProduct.inStore&&(this.loadResources||[]).every(t=>{var e;const n=this.$store.getters["cluster/schemaFor"](t);return null===n||void 0===n||null===(e=n.attributes)||void 0===e?void 0:e.namespaced})}},watch:{async namespaceFilter(t){t&&(this.$options.name!==F&&this.$fetch&&await this.$fetch(),this.forceUpdateLiveAndDelayed=(new Date).getTime())}}};const B=4;var H={mixins:[G],data(){const t=this.$store.getters["management/byId"](v.SETTING,w.UI_PERFORMANCE);let e={};if(t&&t.value)try{e=JSON.parse(t.value)}catch(n){console.warn("ui-performance setting contains invalid data")}else e=L;return{perfConfig:e,init:!1,multipleResources:[],loadResources:[this.resource],hasManualRefresh:!1,watch:!0,isTooManyItemsToAutoUpdate:!1,force:!1,incremental:!1,fetchedResourceType:[]}},beforeDestroy(){this.init&&(this.$store.dispatch("resource-fetch/clearData"),this.fetchedResourceType.forEach(t=>{this.$store.dispatch(t.currStore+"/incrementLoadCounter",t.type)}))},computed:{...Object(S["a"])({refreshFlag:"resource-fetch/refreshFlag"}),rows(){const t=this.fetchedResourceType.find(t=>t.type===this.resource);return t?this.$store.getters[t.currStore+"/all"](this.resource):[]},loading(){return!this.rows.length&&this.$fetchState.pending}},watch:{refreshFlag(t){this.init&&t&&this.$fetch()}},methods:{$initializeFetchData(t,e=[],n){if(!this.init){const r=n||this.$store.getters["currentStore"]();this.__gatherResourceFetchData(t,e,r),this.watch||(this.force=!0),this.isTooManyItemsToAutoUpdate&&(this.hasManualRefresh=!0)}},$fetchType(t,e=[],n){var r;const a=n||this.$store.getters["currentStore"]();this.$initializeFetchData(t,e,a),this.fetchedResourceType.find(e=>e.type===t)||this.fetchedResourceType.push({type:t,currStore:a});let o=0;if(this.incremental){const e=this.__getCountForResources([t],this.namespaceFilter,a);o=Math.ceil(e/B)}const i={incremental:o,watch:this.watch,force:this.force,hasManualRefresh:this.hasManualRefresh},s=this.$store.getters[a+"/schemaFor"](t);return null!==s&&void 0!==s&&null!==(r=s.attributes)&&void 0!==r&&r.namespaced&&(i.namespaced=this.namespaceFilter),this.$store.dispatch(a+"/findAll",{type:t,opt:i})},__getCountForResources(t,e,n){const r=n||this.$store.getters["currentStore"]();return t.reduce((t,n)=>t+this.__getCountForResource(n,e,r),0)},__getCountForResource(t,e,n){var r,a,o;const i=null===(r=this.$store.getters[n+"/all"](c)[0])||void 0===r?void 0:r.counts[""+t],s=e&&null!==i&&void 0!==i&&i.namespaces?null===i||void 0===i||null===(a=i.namespaces[e])||void 0===a?void 0:a.count:null===i||void 0===i||null===(o=i.summary)||void 0===o?void 0:o.count;return s||0},__gatherResourceFetchData(t,e,n){var r,a,o,i,s,c,l,u;this.init=!0;const d=null===(r=this.perfConfig)||void 0===r||null===(a=r.manualRefresh)||void 0===a?void 0:a.enabled,h=parseInt((null===(o=this.perfConfig)||void 0===o||null===(i=o.manualRefresh)||void 0===i?void 0:i.threshold)||"0",10),p=null===(s=this.perfConfig)||void 0===s||null===(c=s.incrementalLoading)||void 0===c?void 0:c.enabled,f=parseInt((null===(l=this.perfConfig)||void 0===l||null===(u=l.incrementalLoading)||void 0===u?void 0:u.threshold)||"0",10);this.multipleResources=e;let m=0,_=!0,v=!1,g=!1;const E=this.multipleResources.length?this.multipleResources:[t];m=this.__getCountForResources(E,this.namespaceFilter,n),d&&m>=h&&(_=!1,v=!0),g=p&&f>0&&m>=f,this.$store.dispatch("resource-fetch/updateIsTooManyItems",v),this.watch=_,this.isTooManyItemsToAutoUpdate=v,this.incremental=g}}},K={async fetch(){const t=[this.$fetchType(d)];await C(t)},mixins:[H],data(){return{console:!1}},computed:{...Object(S["a"])(["currentCluster","currentProduct"]),...Object(S["a"])({allRepos:"catalog/repos"}),certManagerInstalled(){return!!this.$store.getters[this.currentProduct.inStore+"/schemaFor"]("cert-manager.io.certificate")},kamajiInstalled(){return!!this.$store.getters[this.currentProduct.inStore+"/schemaFor"]("kamaji.clastix.io.tenantcontrolplane")}}},V=K,Y=(n("f498"),T(V,O,I,!1,null,null,null)),J=Y.exports,W={name:"Dashboard",layout:"single",async beforeMount(){var t;const e=await this.$store.dispatch("cluster/findMatching",{type:l,selector:"app=kamaji-console"}),n=e[0];this.consoleUrl=null===n||void 0===n||null===(t=n.spec.rules[0])||void 0===t?void 0:t.host},components:{Console:N,Install:J},data(){return{consoleUrl:""}},computed:{hasUrl(){return!!this.consoleUrl}}},X=W,Z=T(X,i,s,!1,null,null,null),q=Z.exports,z=n("90cd");const Q=[{name:`c-cluster-${z["a"]}-dashboard`,path:"/c/:cluster/:product/dashboard",component:q}];var tt=function(t){o(t),t.metadata=n("9224"),t.addProduct(n("85d6")),t.addRoutes(Q)};e["default"]=tt},"362a":function(t,e,n){"use strict";n("f84c")},"43ca":function(t,e,n){t.exports=n.p+"img/icon.ccfe9b3e.svg"},"5eaa":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var o=a(r),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}function a(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var a={};if(r)for(var o=0;o=12"},"devDependencies":{"@vue/cli-plugin-babel":"4.5.18","@vue/cli-service":"4.5.18","@vue/cli-plugin-typescript":"4.5.18"},"browserslist":["> 1%","last 2 versions","not dead"]}')},"9ce4":function(t,e,n){"use strict";(function(t){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"a",(function(){return w}));var a="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=a.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function l(t){return t&&"function"===typeof t.then}function u(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){s(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,h);var p=function(t){this.register([],t,!1)};function f(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;f(t.concat(r),e.getChild(r),n.modules[r])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){f([],this.root,t)},p.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var a=new d(e,n);if(0===t.length)this.root=a;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}e.modules&&s(e.modules,(function(e,a){r.register(t.concat(a),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},p.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var m;var _=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,s=o.dispatch,c=o.commit;this.dispatch=function(t,e){return s.call(a,t,e)},this.commit=function(t,e,n){return c.call(a,t,e,n)},this.strict=r;var l=this._modules.root.state;b(this,l,[],this._modules.root),y(this,l),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:m.config.devtools;u&&i(this)},v={state:{configurable:!0}};function g(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function E(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;b(t,n,[],t._modules.root,!0),y(t,n,e)}function y(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,o={};s(a,(function(e,n){o[n]=u(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var i=m.config.silent;m.config.silent=!0,t._vm=new m({data:{$$state:e},computed:o}),m.config.silent=i,t.strict&&S(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function b(t,e,n,r,a){var o=!n.length,i=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[i],t._modulesNamespaceMap[i]=r),!o&&!a){var s=A(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){m.set(s,c,r.state)}))}var l=r.context=T(t,i,n);r.forEachMutation((function(e,n){var r=i+n;N(t,r,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:i+n,a=e.handler||e;O(t,r,a,l)})),r.forEachGetter((function(e,n){var r=i+n;I(t,r,e,l)})),r.forEachChild((function(r,o){b(t,e,n.concat(o),r,a)}))}function T(t,e,n){var r=""===e,a={dispatch:r?t.dispatch:function(n,r,a){var o=C(n,r,a),i=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,i)},commit:r?t.commit:function(n,r,a){var o=C(n,r,a),i=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,i,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return t.getters}:function(){return R(t,e)}},state:{get:function(){return A(t.state,n)}}}),a}function R(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(a){if(a.slice(0,r)===e){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[a]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function N(t,e,n,r){var a=t._mutations[e]||(t._mutations[e]=[]);a.push((function(e){n.call(t,r.state,e)}))}function O(t,e,n,r){var a=t._actions[e]||(t._actions[e]=[]);a.push((function(e){var a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return l(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}function I(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function S(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function C(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function M(t){m&&t===m||(m=t,r(m))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},_.prototype.commit=function(t,e,n){var r=this,a=C(t,e,n),o=a.type,i=a.payload,s=(a.options,{type:o,payload:i}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(i)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},_.prototype.dispatch=function(t,e){var n=this,r=C(t,e),a=r.type,o=r.payload,i={type:a,payload:o},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(i,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(i,n.state)}))}catch(l){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(i,n.state,t)}))}catch(l){0}e(t)}))}))}},_.prototype.subscribe=function(t,e){return g(t,this._subscribers,e)},_.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return g(n,this._actionSubscribers,e)},_.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},_.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},_.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),b(this,this.state,t,this._modules.get(t),n.preserveState),y(this,this.state)},_.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=A(e.state,t.slice(0,-1));m.delete(n,t[t.length-1])})),E(this)},_.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},_.prototype.hotUpdate=function(t){this._modules.update(t),E(this,!0)},_.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(_.prototype,v);k((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,a=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=x(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof a?a.call(this,e,n):e[a]},n[r].vuex=!0})),n})),k((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,a=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=x(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof a?a.apply(this,[r].concat(e)):r.apply(this.$store,[a].concat(e))}})),n}));var w=k((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,a=e.val;a=t+a,n[r]=function(){if(!t||x(this.$store,"mapGetters",t))return this.$store.getters[a]},n[r].vuex=!0})),n}));k((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,a=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=x(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof a?a.apply(this,[r].concat(e)):r.apply(this.$store,[a].concat(e))}})),n}));function L(t){return U(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function U(t){return Array.isArray(t)||c(t)}function k(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function x(t,e,n){var r=t._modulesNamespaceMap[n];return r}}).call(this,n("7d15"))},a29f:function(t,e,n){var r=n("7bce");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("0ed3").default;a("a0e30642",r,!0,{sourceMap:!1,shadowMode:!1})},f498:function(t,e,n){"use strict";n("a29f")},f84c:function(t,e,n){var r=n("0b4b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("0ed3").default;a("76b1dfb6",r,!0,{sourceMap:!1,shadowMode:!1})}})})); //# sourceMappingURL=kamaji-0.1.2.umd.min.js.map