Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liqueflies/vuex-async-module

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liqueflies/vuex-async-module - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/mixin.js

@@ -11,3 +11,3 @@ 'use strict';

var _lodash3 = require('lodash.capitalize');
var _lodash3 = require('lodash.upperfirst');

@@ -14,0 +14,0 @@ var _lodash4 = _interopRequireDefault(_lodash3);

import { mapState, mapActions } from 'vuex';
import camelCase from 'lodash.camelcase';
import capitalize from 'lodash.capitalize';
import upperFirst from 'lodash.upperfirst';

@@ -12,4 +12,4 @@ export default {

this.$options.computed = Object.assign({}, this.$options.computed, mapState(name, (_mapState = {}, _mapState[name] = 'data', _mapState[name + 'RequestIsPending'] = 'isPending', _mapState)));
this.$options.methods = Object.assign({}, this.$options.methods, mapActions(name, (_mapActions = {}, _mapActions['getAsync' + capitalize(camelCase(name))] = 'getAsync', _mapActions)));
this.$options.methods = Object.assign({}, this.$options.methods, mapActions(name, (_mapActions = {}, _mapActions['getAsync' + upperFirst(camelCase(name))] = 'getAsync', _mapActions)));
}
};
{
"name": "@liqueflies/vuex-async-module",
"version": "0.0.2",
"version": "0.0.3",
"description": "vuex async module generator.",

@@ -72,3 +72,3 @@ "main": "dist/index.js",

"lodash.camelcase": "4.3.0",
"lodash.capitalize": "4.2.1"
"lodash.upperfirst": "4.3.1"
},

@@ -75,0 +75,0 @@ "peerDependencies": {

import { mapState, mapActions } from 'vuex'
import camelCase from 'lodash.camelcase'
import capitalize from 'lodash.capitalize'
import upperFirst from 'lodash.upperfirst'

@@ -20,3 +20,3 @@ export default {

mapActions(name, {
[`getAsync${capitalize(camelCase(name))}`]: 'getAsync'
[`getAsync${upperFirst(camelCase(name))}`]: 'getAsync'
})

@@ -23,0 +23,0 @@ )

/*! @liqueflies/vuex-async-module - v0.0.2
/*! @liqueflies/vuex-async-module - v0.0.3
* https://github.com/liqueflies/vuex-async-module

@@ -1846,21 +1846,2 @@ * Copyright (c) 2017 - [object Object];

/**
* Converts the first character of `string` to upper case and the remaining
* to lower case.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to capitalize.
* @returns {string} Returns the capitalized string.
* @example
*
* _.capitalize('FRED');
* // => 'Fred'
*/
function capitalize$1(string) {
return upperFirst$1(toString$1(string).toLowerCase());
}
/**
* Converts the first character of `string` to upper case.

@@ -1884,3 +1865,3 @@ *

var lodash_capitalize = capitalize$1;
var lodash_upperfirst = upperFirst$1;

@@ -1894,3 +1875,3 @@ var mixin = {

this.$options.computed = Object.assign({}, this.$options.computed, mapState(name, (_mapState = {}, _mapState[name] = 'data', _mapState[name + 'RequestIsPending'] = 'isPending', _mapState)));
this.$options.methods = Object.assign({}, this.$options.methods, mapActions(name, (_mapActions = {}, _mapActions['getAsync' + lodash_capitalize(lodash_camelcase(name))] = 'getAsync', _mapActions)));
this.$options.methods = Object.assign({}, this.$options.methods, mapActions(name, (_mapActions = {}, _mapActions['getAsync' + lodash_upperfirst(lodash_camelcase(name))] = 'getAsync', _mapActions)));
}

@@ -1897,0 +1878,0 @@ };

@@ -1,2 +0,2 @@

/*! @liqueflies/vuex-async-module - v0.0.2
/*! @liqueflies/vuex-async-module - v0.0.3
* https://github.com/liqueflies/vuex-async-module

@@ -6,3 +6,3 @@ * Copyright (c) 2017 - [object Object];

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.VuexAsyncModule={})}(this,function(t){"use strict";function e(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function n(t,e,o){if(e.update(o),o.modules)for(var r in o.modules){if(!e.getChild(r))return;n(t.concat(r),e.getChild(r),o.modules[r])}}function o(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function r(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;u(t,n,[],t._modules.root,!0),i(t,n,e)}function i(t,n,o){var r=t._vm;t.getters={};var i={};e(t._wrappedGetters,function(e,n){i[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var u=T.config.silent;T.config.silent=!0,t._vm=new T({data:{$$state:n},computed:i}),T.config.silent=u,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(t),r&&(o&&t._withCommit(function(){r._data.$$state=null}),T.nextTick(function(){return r.$destroy()}))}function u(t,e,n,o,r){var i=!n.length,f=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[f]=o),!i&&!r){var a=c(e,n.slice(0,-1)),d=n[n.length-1];t._withCommit(function(){T.set(a,d,o.state)})}var l=o.context=function(t,e,n){var o=""===e,r={dispatch:o?t.dispatch:function(n,o,r){var i=s(n,o,r),u=i.payload,c=i.options,f=i.type;return c&&c.root||(f=e+f),t.dispatch(f,u)},commit:o?t.commit:function(n,o,r){var i=s(n,o,r),u=i.payload,c=i.options,f=i.type;c&&c.root||(f=e+f),t.commit(f,u,c)}};return Object.defineProperties(r,{getters:{get:o?function(){return t.getters}:function(){return function(t,e){var n={},o=e.length;return Object.keys(t.getters).forEach(function(r){if(r.slice(0,o)===e){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return t.getters[r]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return c(t.state,n)}}}),r}(t,f,n);o.forEachMutation(function(e,n){!function(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}(t,f+n,e,l)}),o.forEachAction(function(e,n){var o=e.root?n:f+n,r=e.handler||e;!function(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e,r){var i=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e,r);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}(t,o,r,l)}),o.forEachGetter(function(e,n){!function(t,e,n,o){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)}}(t,f+n,e,l)}),o.forEachChild(function(o,i){u(t,e,n.concat(i),o,r)})}function c(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function s(t,e,n){return function(t){return null!==t&&"object"==typeof t}(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function f(t){return 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 a(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function d(t,e,n){return t._modulesNamespaceMap[n]}function l(t){return ut.test(t)}function p(t){return l(t)?function(t){return t.match(rt)||[]}(t):function(t){return t.split("")}(t)}function h(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&lt.call(t)==P}(t))return _t?_t.call(t):"";var e=t+"";return"0"==e&&1/t==-M?"-0":e}function _(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}(t,e,n)}function m(t){return null==t?"":h(t)}function v(t){return $t.test(t)}function g(t){return v(t)?function(t){return t.match(Rt)||[]}(t):function(t){return t.split("")}(t)}function y(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Dt.call(t)==Et}(t))return Gt?Gt.call(t):"";var e=t+"";return"0"==e&&1/t==-yt?"-0":e}function E(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}(t,e,n)}function b(t){return null==t?"":y(t)}var S=function(t){function e(){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)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},x="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,O=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)||{}},j={namespaced:{configurable:!0}};j.namespaced.get=function(){return!!this._rawModule.namespaced},O.prototype.addChild=function(t,e){this._children[t]=e},O.prototype.removeChild=function(t){delete this._children[t]},O.prototype.getChild=function(t){return this._children[t]},O.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)},O.prototype.forEachChild=function(t){e(this._children,t)},O.prototype.forEachGetter=function(t){this._rawModule.getters&&e(this._rawModule.getters,t)},O.prototype.forEachAction=function(t){this._rawModule.actions&&e(this._rawModule.actions,t)},O.prototype.forEachMutation=function(t){this._rawModule.mutations&&e(this._rawModule.mutations,t)},Object.defineProperties(O.prototype,j);var w=function(t){this.register([],t,!1)};w.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},w.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},w.prototype.update=function(t){n([],this.root,t)},w.prototype.register=function(t,n,o){var r=this;void 0===o&&(o=!0);var i=new O(n,o);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}n.modules&&e(n.modules,function(e,n){r.register(t.concat(n),e,o)})},w.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var T,A=function(t){var e=this;void 0===t&&(t={}),!T&&"undefined"!=typeof window&&window.Vue&&function(t){T&&t===T||S(T=t)}(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1);var r=t.state;void 0===r&&(r={}),"function"==typeof r&&(r=r()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new w(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new T;var c=this,s=this.dispatch,f=this.commit;this.dispatch=function(t,e){return s.call(c,t,e)},this.commit=function(t,e,n){return f.call(c,t,e,n)},this.strict=o,u(this,r,[],this._modules.root),i(this,r),n.forEach(function(t){return t(e)}),T.config.devtools&&function(t){x&&(t._devtoolHook=x,x.emit("vuex:init",t),x.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){x.emit("vuex:mutation",t,e)}))}(this)},C={state:{configurable:!0}};C.state.get=function(){return this._vm._data.$$state},C.state.set=function(t){},A.prototype.commit=function(t,e,n){var o=this,r=s(t,e,n),i=r.type,u=r.payload,c={type:i,payload:u},f=this._mutations[i];f&&(this._withCommit(function(){f.forEach(function(t){t(u)})}),this._subscribers.forEach(function(t){return t(c,o.state)}))},A.prototype.dispatch=function(t,e){var n=this,o=s(t,e),r=o.type,i=o.payload,u={type:r,payload:i},c=this._actions[r];if(c)return this._actionSubscribers.forEach(function(t){return t(u,n.state)}),c.length>1?Promise.all(c.map(function(t){return t(i)})):c[0](i)},A.prototype.subscribe=function(t){return o(t,this._subscribers)},A.prototype.subscribeAction=function(t){return o(t,this._actionSubscribers)},A.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},A.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},A.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),u(this,this.state,t,this._modules.get(t),n.preserveState),i(this,this.state)},A.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=c(e.state,t.slice(0,-1));T.delete(n,t[t.length-1])}),r(this)},A.prototype.hotUpdate=function(t){this._modules.update(t),r(this,!0)},A.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(A.prototype,C);var R=a(function(t,e){var n={};return f(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=d(this.$store,0,t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0}),n}),$=a(function(t,e){var n={};return f(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=d(this.$store,0,t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),N="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M=1/0,P="[object Symbol]",D=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,I=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,U="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G="[\\ud800-\\udfff]",L="["+U+"]",k="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",z="\\d+",Z="[\\u2700-\\u27bf]",V="[a-z\\xdf-\\xf6\\xf8-\\xff]",H="[^\\ud800-\\udfff"+U+z+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Y="\\ud83c[\\udffb-\\udfff]",F="[^\\ud800-\\udfff]",J="(?:\\ud83c[\\udde6-\\uddff]){2}",K="[\\ud800-\\udbff][\\udc00-\\udfff]",q="[A-Z\\xc0-\\xd6\\xd8-\\xde]",B="(?:"+V+"|"+H+")",W="(?:"+q+"|"+H+")",X="(?:"+k+"|"+Y+")"+"?",Q="[\\ufe0e\\ufe0f]?"+X+("(?:\\u200d(?:"+[F,J,K].join("|")+")[\\ufe0e\\ufe0f]?"+X+")*"),tt="(?:"+[Z,J,K].join("|")+")"+Q,et="(?:"+[F+k+"?",k,J,K,G].join("|")+")",nt=RegExp("['’]","g"),ot=RegExp(k,"g"),rt=RegExp(Y+"(?="+Y+")|"+et+Q,"g"),it=RegExp([q+"?"+V+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[L,q,"$"].join("|")+")",W+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[L,q+B,"$"].join("|")+")",q+"?"+B+"+(?:['’](?:d|ll|m|re|s|t|ve))?",q+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",z,tt].join("|"),"g"),ut=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ct=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st="object"==typeof N&&N&&N.Object===Object&&N,ft="object"==typeof self&&self&&self.Object===Object&&self,at=st||ft||Function("return this")(),dt=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"}),lt=Object.prototype.toString,pt=at.Symbol,ht=pt?pt.prototype:void 0,_t=ht?ht.toString:void 0,mt=function(t){return function(e){return function(t,e,n,o){var r=-1,i=t?t.length:0;for(o&&i&&(n=t[++r]);++r<i;)n=e(n,t[r],r,t);return n}(function(t,e,n){return t=m(t),void 0===(e=n?void 0:e)?function(t){return ct.test(t)}(t)?function(t){return t.match(it)||[]}(t):function(t){return t.match(D)||[]}(t):t.match(e)||[]}(function(t){return(t=m(t))&&t.replace(I,dt).replace(ot,"")}(e).replace(nt,"")),t,"")}}(function(t,e,n){return e=e.toLowerCase(),t+(n?function(t){return vt(m(t).toLowerCase())}(e):e)}),vt=function(t){return function(e){var n=l(e=m(e))?p(e):void 0,o=n?n[0]:e.charAt(0),r=n?_(n,1).join(""):e.slice(1);return o[t]()+r}}("toUpperCase"),gt=mt,yt=1/0,Et="[object Symbol]",bt="[\\ud800-\\udfff]",St="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",xt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="(?:"+St+"|"+xt+")"+"?",At="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[Ot,jt,wt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Ct="(?:"+[Ot+St+"?",St,jt,wt,bt].join("|")+")",Rt=RegExp(xt+"(?="+xt+")|"+Ct+At,"g"),$t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Nt="object"==typeof N&&N&&N.Object===Object&&N,Mt="object"==typeof self&&self&&self.Object===Object&&self,Pt=Nt||Mt||Function("return this")(),Dt=Object.prototype.toString,It=Pt.Symbol,Ut=It?It.prototype:void 0,Gt=Ut?Ut.toString:void 0,Lt=function(t){return function(e){var n=v(e=b(e))?g(e):void 0,o=n?n[0]:e.charAt(0),r=n?E(n,1).join(""):e.slice(1);return o[t]()+r}}("toUpperCase"),kt=function(t){return Lt(b(t).toLowerCase())},zt={beforeCreate:function(){var t,e,n=this.$options.name;this.$options.computed=Object.assign({},this.$options.computed,R(n,(t={},t[n]="data",t[n+"RequestIsPending"]="isPending",t))),this.$options.methods=Object.assign({},this.$options.methods,$(n,(e={},e["getAsync"+kt(gt(n))]="getAsync",e)))}};t.asyncModuleMixin=zt,t.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},t);if(void 0===e.xhr)throw new TypeError("You must provide a valid XHR transport library in `options.xhr`");return{namespaced:!0,state:{isPending:!0,statusCode:null,data:null,errors:null},mutations:function(){var t,e={SET_RESPONSE_DATA:"SET_RESPONSE_DATA",SET_IS_PENDING:"SET_IS_PENDING",SET_STATUS_CODE:"SET_STATUS_CODE",SET_ERRORS:"SET_ERRORS"};return t={},t[e.SET_RESPONSE_DATA]=function(t,e){return t.data=e,t.data},t[e.SET_IS_PENDING]=function(t,e){return t.isPending=e,t.isPending},t[e.SET_STATUS_CODE]=function(t,e){return t.statusCode=e,t.statusCode},t[e.SET_ERRORS]=function(t,e){return t.errors=e,t.errors},t}(),actions:function(t){var e={SET_RESPONSE_DATA:"SET_RESPONSE_DATA",SET_IS_PENDING:"SET_IS_PENDING",SET_STATUS_CODE:"SET_STATUS_CODE",SET_ERRORS:"SET_ERRORS"},n=e.SET_RESPONSE_DATA,o=e.SET_IS_PENDING,r=e.SET_STATUS_CODE,i=e.SET_ERRORS;return{getAsync:function(e,u){var c=e.state,s=e.commit,f=u.url,a=u.forceUpdate,d=void 0!==a&&a;return c.isPending||d?t(f).then(function(t){s(n,t.data),s(r,t.status),s(o,!1)}).catch(function(t){s(i,t.errors),s(r,t.status),s(o,!1)}):Promise.resolve(null)}}}(e.xhr)}},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.VuexAsyncModule={})}(this,function(t){"use strict";function e(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function n(t,e,o){if(e.update(o),o.modules)for(var r in o.modules){if(!e.getChild(r))return;n(t.concat(r),e.getChild(r),o.modules[r])}}function o(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function r(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;u(t,n,[],t._modules.root,!0),i(t,n,e)}function i(t,n,o){var r=t._vm;t.getters={};var i={};e(t._wrappedGetters,function(e,n){i[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var u=w.config.silent;w.config.silent=!0,t._vm=new w({data:{$$state:n},computed:i}),w.config.silent=u,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(t),r&&(o&&t._withCommit(function(){r._data.$$state=null}),w.nextTick(function(){return r.$destroy()}))}function u(t,e,n,o,r){var i=!n.length,f=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[f]=o),!i&&!r){var a=c(e,n.slice(0,-1)),d=n[n.length-1];t._withCommit(function(){w.set(a,d,o.state)})}var l=o.context=function(t,e,n){var o=""===e,r={dispatch:o?t.dispatch:function(n,o,r){var i=s(n,o,r),u=i.payload,c=i.options,f=i.type;return c&&c.root||(f=e+f),t.dispatch(f,u)},commit:o?t.commit:function(n,o,r){var i=s(n,o,r),u=i.payload,c=i.options,f=i.type;c&&c.root||(f=e+f),t.commit(f,u,c)}};return Object.defineProperties(r,{getters:{get:o?function(){return t.getters}:function(){return function(t,e){var n={},o=e.length;return Object.keys(t.getters).forEach(function(r){if(r.slice(0,o)===e){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return t.getters[r]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return c(t.state,n)}}}),r}(t,f,n);o.forEachMutation(function(e,n){!function(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}(t,f+n,e,l)}),o.forEachAction(function(e,n){var o=e.root?n:f+n,r=e.handler||e;!function(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e,r){var i=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e,r);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}(t,o,r,l)}),o.forEachGetter(function(e,n){!function(t,e,n,o){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)}}(t,f+n,e,l)}),o.forEachChild(function(o,i){u(t,e,n.concat(i),o,r)})}function c(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function s(t,e,n){return function(t){return null!==t&&"object"==typeof t}(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function f(t){return 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 a(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function d(t,e,n){return t._modulesNamespaceMap[n]}function l(t){return it.test(t)}function p(t){return l(t)?function(t){return t.match(ot)||[]}(t):function(t){return t.split("")}(t)}function h(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&dt.call(t)==M}(t))return ht?ht.call(t):"";var e=t+"";return"0"==e&&1/t==-N?"-0":e}function _(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}(t,e,n)}function m(t){return null==t?"":h(t)}function v(t){return Rt.test(t)}function g(t){return v(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.split("")}(t)}function y(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Pt.call(t)==yt}(t))return Ut?Ut.call(t):"";var e=t+"";return"0"==e&&1/t==-gt?"-0":e}function E(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}(t,e,n)}var b=function(t){function e(){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)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},S="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,x=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)||{}},O={namespaced:{configurable:!0}};O.namespaced.get=function(){return!!this._rawModule.namespaced},x.prototype.addChild=function(t,e){this._children[t]=e},x.prototype.removeChild=function(t){delete this._children[t]},x.prototype.getChild=function(t){return this._children[t]},x.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)},x.prototype.forEachChild=function(t){e(this._children,t)},x.prototype.forEachGetter=function(t){this._rawModule.getters&&e(this._rawModule.getters,t)},x.prototype.forEachAction=function(t){this._rawModule.actions&&e(this._rawModule.actions,t)},x.prototype.forEachMutation=function(t){this._rawModule.mutations&&e(this._rawModule.mutations,t)},Object.defineProperties(x.prototype,O);var j=function(t){this.register([],t,!1)};j.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},j.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},j.prototype.update=function(t){n([],this.root,t)},j.prototype.register=function(t,n,o){var r=this;void 0===o&&(o=!0);var i=new x(n,o);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}n.modules&&e(n.modules,function(e,n){r.register(t.concat(n),e,o)})},j.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var w,T=function(t){var e=this;void 0===t&&(t={}),!w&&"undefined"!=typeof window&&window.Vue&&function(t){w&&t===w||b(w=t)}(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1);var r=t.state;void 0===r&&(r={}),"function"==typeof r&&(r=r()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new j(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new w;var c=this,s=this.dispatch,f=this.commit;this.dispatch=function(t,e){return s.call(c,t,e)},this.commit=function(t,e,n){return f.call(c,t,e,n)},this.strict=o,u(this,r,[],this._modules.root),i(this,r),n.forEach(function(t){return t(e)}),w.config.devtools&&function(t){S&&(t._devtoolHook=S,S.emit("vuex:init",t),S.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){S.emit("vuex:mutation",t,e)}))}(this)},A={state:{configurable:!0}};A.state.get=function(){return this._vm._data.$$state},A.state.set=function(t){},T.prototype.commit=function(t,e,n){var o=this,r=s(t,e,n),i=r.type,u=r.payload,c={type:i,payload:u},f=this._mutations[i];f&&(this._withCommit(function(){f.forEach(function(t){t(u)})}),this._subscribers.forEach(function(t){return t(c,o.state)}))},T.prototype.dispatch=function(t,e){var n=this,o=s(t,e),r=o.type,i=o.payload,u={type:r,payload:i},c=this._actions[r];if(c)return this._actionSubscribers.forEach(function(t){return t(u,n.state)}),c.length>1?Promise.all(c.map(function(t){return t(i)})):c[0](i)},T.prototype.subscribe=function(t){return o(t,this._subscribers)},T.prototype.subscribeAction=function(t){return o(t,this._actionSubscribers)},T.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},T.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},T.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),u(this,this.state,t,this._modules.get(t),n.preserveState),i(this,this.state)},T.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=c(e.state,t.slice(0,-1));w.delete(n,t[t.length-1])}),r(this)},T.prototype.hotUpdate=function(t){this._modules.update(t),r(this,!0)},T.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(T.prototype,A);var C=a(function(t,e){var n={};return f(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=d(this.$store,0,t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0}),n}),R=a(function(t,e){var n={};return f(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=d(this.$store,0,t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),$="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},N=1/0,M="[object Symbol]",P=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,D=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,I="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",U="[\\ud800-\\udfff]",G="["+I+"]",L="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",k="\\d+",z="[\\u2700-\\u27bf]",Z="[a-z\\xdf-\\xf6\\xf8-\\xff]",V="[^\\ud800-\\udfff"+I+k+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",H="\\ud83c[\\udffb-\\udfff]",Y="[^\\ud800-\\udfff]",F="(?:\\ud83c[\\udde6-\\uddff]){2}",J="[\\ud800-\\udbff][\\udc00-\\udfff]",K="[A-Z\\xc0-\\xd6\\xd8-\\xde]",q="(?:"+Z+"|"+V+")",B="(?:"+K+"|"+V+")",W="(?:"+L+"|"+H+")"+"?",X="[\\ufe0e\\ufe0f]?"+W+("(?:\\u200d(?:"+[Y,F,J].join("|")+")[\\ufe0e\\ufe0f]?"+W+")*"),Q="(?:"+[z,F,J].join("|")+")"+X,tt="(?:"+[Y+L+"?",L,F,J,U].join("|")+")",et=RegExp("['’]","g"),nt=RegExp(L,"g"),ot=RegExp(H+"(?="+H+")|"+tt+X,"g"),rt=RegExp([K+"?"+Z+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[G,K,"$"].join("|")+")",B+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[G,K+q,"$"].join("|")+")",K+"?"+q+"+(?:['’](?:d|ll|m|re|s|t|ve))?",K+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",k,Q].join("|"),"g"),it=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ut=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct="object"==typeof $&&$&&$.Object===Object&&$,st="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||st||Function("return this")(),at=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"}),dt=Object.prototype.toString,lt=ft.Symbol,pt=lt?lt.prototype:void 0,ht=pt?pt.toString:void 0,_t=function(t){return function(e){return function(t,e,n,o){var r=-1,i=t?t.length:0;for(o&&i&&(n=t[++r]);++r<i;)n=e(n,t[r],r,t);return n}(function(t,e,n){return t=m(t),void 0===(e=n?void 0:e)?function(t){return ut.test(t)}(t)?function(t){return t.match(rt)||[]}(t):function(t){return t.match(P)||[]}(t):t.match(e)||[]}(function(t){return(t=m(t))&&t.replace(D,at).replace(nt,"")}(e).replace(et,"")),t,"")}}(function(t,e,n){return e=e.toLowerCase(),t+(n?function(t){return mt(m(t).toLowerCase())}(e):e)}),mt=function(t){return function(e){var n=l(e=m(e))?p(e):void 0,o=n?n[0]:e.charAt(0),r=n?_(n,1).join(""):e.slice(1);return o[t]()+r}}("toUpperCase"),vt=_t,gt=1/0,yt="[object Symbol]",Et="[\\ud800-\\udfff]",bt="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",St="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="(?:"+bt+"|"+St+")"+"?",Tt="[\\ufe0e\\ufe0f]?"+wt+("(?:\\u200d(?:"+[xt,Ot,jt].join("|")+")[\\ufe0e\\ufe0f]?"+wt+")*"),At="(?:"+[xt+bt+"?",bt,Ot,jt,Et].join("|")+")",Ct=RegExp(St+"(?="+St+")|"+At+Tt,"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$t="object"==typeof $&&$&&$.Object===Object&&$,Nt="object"==typeof self&&self&&self.Object===Object&&self,Mt=$t||Nt||Function("return this")(),Pt=Object.prototype.toString,Dt=Mt.Symbol,It=Dt?Dt.prototype:void 0,Ut=It?It.toString:void 0,Gt=function(t){return function(e){var n=v(e=null==e?"":y(e))?g(e):void 0,o=n?n[0]:e.charAt(0),r=n?E(n,1).join(""):e.slice(1);return o[t]()+r}}("toUpperCase"),Lt={beforeCreate:function(){var t,e,n=this.$options.name;this.$options.computed=Object.assign({},this.$options.computed,C(n,(t={},t[n]="data",t[n+"RequestIsPending"]="isPending",t))),this.$options.methods=Object.assign({},this.$options.methods,R(n,(e={},e["getAsync"+Gt(vt(n))]="getAsync",e)))}};t.asyncModuleMixin=Lt,t.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},t);if(void 0===e.xhr)throw new TypeError("You must provide a valid XHR transport library in `options.xhr`");return{namespaced:!0,state:{isPending:!0,statusCode:null,data:null,errors:null},mutations:function(){var t,e={SET_RESPONSE_DATA:"SET_RESPONSE_DATA",SET_IS_PENDING:"SET_IS_PENDING",SET_STATUS_CODE:"SET_STATUS_CODE",SET_ERRORS:"SET_ERRORS"};return t={},t[e.SET_RESPONSE_DATA]=function(t,e){return t.data=e,t.data},t[e.SET_IS_PENDING]=function(t,e){return t.isPending=e,t.isPending},t[e.SET_STATUS_CODE]=function(t,e){return t.statusCode=e,t.statusCode},t[e.SET_ERRORS]=function(t,e){return t.errors=e,t.errors},t}(),actions:function(t){var e={SET_RESPONSE_DATA:"SET_RESPONSE_DATA",SET_IS_PENDING:"SET_IS_PENDING",SET_STATUS_CODE:"SET_STATUS_CODE",SET_ERRORS:"SET_ERRORS"},n=e.SET_RESPONSE_DATA,o=e.SET_IS_PENDING,r=e.SET_STATUS_CODE,i=e.SET_ERRORS;return{getAsync:function(e,u){var c=e.state,s=e.commit,f=u.url,a=u.forceUpdate,d=void 0!==a&&a;return c.isPending||d?t(f).then(function(t){s(n,t.data),s(r,t.status),s(o,!1)}).catch(function(t){s(i,t.errors),s(r,t.status),s(o,!1)}):Promise.resolve(null)}}}(e.xhr)}},Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vuex-async-module.min.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc