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

@voidwalkers/void-redux

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voidwalkers/void-redux - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

2

dist/index.browser.js
/*! For license information please see index.browser.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ololoepepe/api-redux-bindings"),require("@voidwalkers/void-client"),require("redux"),require("redux-persist"),require("redux-saga"),require("@ololoepepe/reducers"),require("@ololoepepe/api-wrapper")):"function"==typeof define&&define.amd?define(["@ololoepepe/api-redux-bindings","@voidwalkers/void-client","redux","redux-persist","redux-saga","@ololoepepe/reducers","@ololoepepe/api-wrapper"],e):"object"==typeof exports?exports.voidRedux=e(require("@ololoepepe/api-redux-bindings"),require("@voidwalkers/void-client"),require("redux"),require("redux-persist"),require("redux-saga"),require("@ololoepepe/reducers"),require("@ololoepepe/api-wrapper")):t.voidRedux=e(t["@ololoepepe/api-redux-bindings"],t["@voidwalkers/void-client"],t.redux,t["redux-persist"],t["redux-saga"],t["@ololoepepe/reducers"],t["@ololoepepe/api-wrapper"])}(self,((t,e,r,n,o,i,a)=>(()=>{var u={535:e=>{"use strict";e.exports=t},22:t=>{"use strict";t.exports=a},558:t=>{"use strict";t.exports=i},39:t=>{"use strict";t.exports=e},580:t=>{"use strict";t.exports=r},85:t=>{"use strict";t.exports=n},655:t=>{"use strict";t.exports=o},61:(t,e,r)=>{var n=r(698)["default"];function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function y(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),a=new D(n||[]);return u(i,"_invoke",{value:T(t,r,a)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=y;var h="suspendedStart",v="suspendedYield",m="executing",b="completed",g={};function w(){}function x(){}function O(){}var j={};p(j,l,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(I([])));A&&A!==i&&a.call(A,l)&&(j=A);var P=O.prototype=w.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,u,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;u(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function T(t,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=R(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=d(t,r,n);if("normal"===l.type){if(o=n.done?b:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=b,n.method="throw",n.arg=l.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator["return"]&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return x.prototype=O,u(P,"constructor",{value:O,configurable:!0}),u(O,"constructor",{value:x,configurable:!0}),x.displayName=p(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,p(t,f,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},S(E.prototype),p(E.prototype,s,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(y(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(P),p(P,f,"Generator"),p(P,l,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function o(){for(;r.length;){var t=r.pop();if(t in e)return o.value=t,o.done=!1,o}return o.done=!0,o}},r.values=I,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),g}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},698:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},687:(t,e,r)=>{var n=r(61)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},c={};function l(t){var e=c[t];if(e!==undefined)return e.exports;var r=c[t]={exports:{}};return u[t](r,r.exports,l),r.exports}l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function r(r){return function(e){if(Array.isArray(e))return t(e)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||e(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(r!==undefined){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}function a(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function y(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,p(t,e,"get"))}function d(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,p(t,e,"set"),r),r}l.r(s),l.d(s,{VoidRedux:()=>ot});var h=l(687),v=l(535),m=l(39),b=l(580),g=l(85),w=l(655),x=(Array.isArray,function(t){return"@@redux-saga/"+t}),O=x("IO");"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var j=function(t,e){var r;return(r={})[O]=!0,r.combinator=!1,r.type=t,r.payload=e,r};function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var T=l(558);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var D="grouped_list",I="single",C=(v.getSourceAction,function(t){A(r,t);var e=R(r);function r(t){var n=t.apiWrapper,o=t.namespace;return u(this,r),e.call(this,{apiWrapper:n,namespace:o})}return f(r,[{key:"createActions",value:function(t){var e=t.namespace,r=t.reducerOptions,n=[this.createAction(e,"setFetched"),this.createAction(e,"setFetching")];return r.type===I?n.push(this.createAction(e,"setItem")):n.push(this.createAction(e,"setPage")),n}},{key:"createApiActions",value:function(){return[]}},{key:"createReducer",value:function(t){var e=t.actionHandlers,r=t.actions,n=t.reducerOptions,o={changeItem:r[v.ActionType.ChangeItem].actionType,clear:r[v.ActionType.Clear].actionType,create:r[v.ApiActionType.Create].actionType,"delete":r[v.ApiActionType.Delete].actionType,read:r[v.ApiActionType.Read].actionType,removeItem:r[v.ActionType.RemoveItem].actionType,setFetched:r.setFetched.actionType,setFetching:r.setFetching.actionType,update:r[v.ApiActionType.Update].actionType},i=null;return n.type===I?(o.setItem=r.setItem.actionType,i=T.createEntityReducer):(Object.assign(o,{addItem:r[v.ActionType.AddItem].actionType,addItems:r[v.ActionType.AddItems].actionType,changeItems:r[v.ActionType.ChangeItems].actionType,setPage:r.setPage.actionType}),i=n.type===D?T.createGroupedEntityListReducer:T.createEntityListReducer),i(o,L(L({},n),{},{getSourceAction:v.getSourceAction,customHandlers:L(L({},e),null==n?void 0:n.customHandlers)}))}}]),r}(v.ApiDuckCreator)),q=l(22);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var N=function(t){A(r,t);var e=M(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"authenticate",value:function(){}},{key:"loadAuthenticationData",value:function(){}},{key:"saveAuthenticationData",value:function(){}}]),r}(q.ApiAuthenticator);function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var F=function(t){A(r,t);var e=W(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"connect",value:function(){}},{key:"disconnect",value:function(){}},{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}}]),r}(q.ApiRealtimeTransport);function B(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function G(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function H(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}function U(t,e,r){var n,o,i,a=t.apiWrapperOptions,u=t.methodData,c=t.payload,l=u.actionName,s=u.method;return[null==c?void 0:c[e],null==a||null===(n=a[l])||void 0===n?void 0:n[e],null==a||null===(o=a[s])||void 0===o?void 0:o[e],null==a||null===(i=a["default"])||void 0===i?void 0:i[e],r].find((function(t){return t!==undefined}))}var z=new WeakMap,V=new WeakMap,Y=function(t){A(i,t);var e,n,o=G(i);function i(t){var e,r=t.getExtraRequestData,n=t.voidClient;return u(this,i),H(P(e=o.call(this)),z,{writable:!0,value:null}),H(P(e),V,{writable:!0,value:null}),d(P(e),z,r),d(P(e),V,n),e}return f(i,[{key:"callMethod",value:(e=h.mark((function a(t){var e,n,o,i,u,c,l,s,f,p,d;return h.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.methodData,o=t.requestData,i=o.apiWrapperOptions,u=o.payload,c=U({apiWrapperOptions:i,methodData:n,payload:u},"args",[]),l=U({apiWrapperOptions:i,methodData:n,payload:u},"collectionName"),s=U({apiWrapperOptions:i,methodData:n,payload:u},"method",n.method),f=y(this,z).call(this),a.prev=6,a.next=9,(p=y(this,V).mongo.collection(l))[s].apply(p,r(c.map((function(t){return"function"==typeof t?t(u,f):t}))));case 9:d=a.sent,a.t0=s,a.next="find"===a.t0?13:14;break;case 13:return a.abrupt("return",{data:{count_total:(null===(e=d[0].count[0])||void 0===e?void 0:e.total)||0,items:d[0].data}});case 14:return a.abrupt("return",d);case 15:a.next=21;break;case 17:throw a.prev=17,a.t1=a["catch"](6),console.warn(a.t1),a.t1;case 21:case"end":return a.stop()}}),a,this,[[6,17]])})),n=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){B(i,n,o,a,u,"next",t)}function u(t){B(i,n,o,a,u,"throw",t)}a(undefined)}))},function(t){return n.apply(this,arguments)})},{key:"getCreateMethodData",value:function(){return{actionName:"create",method:"insertOne"}}},{key:"getDeleteMethodData",value:function(){return{actionName:"delete",method:"deleteOne"}}},{key:"getReadMethodData",value:function(){return{actionName:"read",method:"find"}}},{key:"getUpdateMethodData",value:function(){return{actionName:"update",method:"updateOne"}}},{key:"isAuthenticationFailedError",value:function(t){return!1}},{key:"isSessionExpiredError",value:function(t){return!1}}]),i}(q.ApiTransport);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var J=function(t){A(r,t);var e=$(r);function r(t){var n=t.getExtraRequestData,o=t.voidClient;return u(this,r),e.call(this,{authenticator:new N,realtimeTransport:new F,transport:new Y({getExtraRequestData:n,voidClient:o})})}return f(r)}(q.ApiWrapper);function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}var Z={key:"redux-store"},tt=new WeakMap,et=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=function(){function t(e){var o=this,i=e.createDucks,a=void 0===i?function(){return[]}:i,c=e.createSagas,l=void 0===c?function(){return[]}:c,s=e.namespace,f=void 0===s?"void":s,p=e.project,x=e.reduxCompose,O=void 0===x?b.compose:x,k=e.reduxPersistConfig,A=void 0===k?{}:k,P=e.voidClientConfig,S=void 0===P?{}:P;u(this,t),X(this,tt,{writable:!0,value:null}),X(this,et,{writable:!0,value:null}),X(this,rt,{writable:!0,value:null}),X(this,nt,{writable:!0,value:null}),d(this,nt,new m.VoidClient(Q(Q({},S),{},{project:p})));var E=new J({getExtraRequestData:function(){return y(o,rt).getState()},voidClient:y(this,nt)}),T=new C({apiWrapper:E,namespace:f}),R=a((function(){return T.createDuck.apply(T,arguments)})).reduce((function(t,e){return t[e.name]=e,t}),{});d(this,tt,R);var _=(0,b.combineReducers)(Object.entries(R).reduce((function(t,e){var r=n(e,2),o=r[0],i=r[1];return t[o]=i.reducer,t}),{})),L=w["default"](),D=(0,g.persistReducer)(Q(Q({},Z),A),_);d(this,rt,(0,b.createStore)(D,O((0,b.applyMiddleware)(L)))),d(this,et,(0,g.persistStore)(y(this,rt))),L.run(h.mark((function I(){return h.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e=[(0,v.apiSaga)()].concat(r(l(R).map((function(t){return t()})))),n=void 0,(n=j("ALL",e)).combinator=!0,n;case 2:case"end":return t.stop()}var e,n}),I)})))}return f(t,[{key:"ducks",get:function(){return y(this,tt)}},{key:"persistor",get:function(){return y(this,et)}},{key:"store",get:function(){return y(this,rt)}},{key:"voidClient",get:function(){return y(this,nt)}}]),t}()})(),s})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ololoepepe/api-redux-bindings"),require("@voidwalkers/void-client"),require("redux"),require("redux-persist"),require("redux-saga"),require("@ololoepepe/reducers"),require("@ololoepepe/api-wrapper")):"function"==typeof define&&define.amd?define(["@ololoepepe/api-redux-bindings","@voidwalkers/void-client","redux","redux-persist","redux-saga","@ololoepepe/reducers","@ololoepepe/api-wrapper"],e):"object"==typeof exports?exports.voidRedux=e(require("@ololoepepe/api-redux-bindings"),require("@voidwalkers/void-client"),require("redux"),require("redux-persist"),require("redux-saga"),require("@ololoepepe/reducers"),require("@ololoepepe/api-wrapper")):t.voidRedux=e(t["@ololoepepe/api-redux-bindings"],t["@voidwalkers/void-client"],t.redux,t["redux-persist"],t["redux-saga"],t["@ololoepepe/reducers"],t["@ololoepepe/api-wrapper"])}(self,((t,e,r,n,o,i,a)=>(()=>{var u={535:e=>{"use strict";e.exports=t},22:t=>{"use strict";t.exports=a},558:t=>{"use strict";t.exports=i},39:t=>{"use strict";t.exports=e},580:t=>{"use strict";t.exports=r},85:t=>{"use strict";t.exports=n},655:t=>{"use strict";t.exports=o},61:(t,e,r)=>{var n=r(698)["default"];function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function y(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),a=new D(n||[]);return u(i,"_invoke",{value:T(t,r,a)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=y;var h="suspendedStart",v="suspendedYield",m="executing",b="completed",g={};function w(){}function x(){}function O(){}var j={};p(j,l,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(I([])));A&&A!==i&&a.call(A,l)&&(j=A);var P=O.prototype=w.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,u,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;u(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function T(t,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=R(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=d(t,r,n);if("normal"===l.type){if(o=n.done?b:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=b,n.method="throw",n.arg=l.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator["return"]&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return x.prototype=O,u(P,"constructor",{value:O,configurable:!0}),u(O,"constructor",{value:x,configurable:!0}),x.displayName=p(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,p(t,f,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},S(E.prototype),p(E.prototype,s,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(y(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(P),p(P,f,"Generator"),p(P,l,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function o(){for(;r.length;){var t=r.pop();if(t in e)return o.value=t,o.done=!1,o}return o.done=!0,o}},r.values=I,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),g}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},698:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},687:(t,e,r)=>{var n=r(61)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},c={};function l(t){var e=c[t];if(e!==undefined)return e.exports;var r=c[t]={exports:{}};return u[t](r,r.exports,l),r.exports}l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function r(r){return function(e){if(Array.isArray(e))return t(e)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||e(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(r!==undefined){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}function a(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function y(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,p(t,e,"get"))}function d(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,p(t,e,"set"),r),r}l.r(s),l.d(s,{VoidRedux:()=>ot});var h=l(687),v=l(535),m=l(39),b=l(580),g=l(85),w=l(655),x=(Array.isArray,function(t){return"@@redux-saga/"+t}),O=x("IO");"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var j=function(t,e){var r;return(r={})[O]=!0,r.combinator=!1,r.type=t,r.payload=e,r};function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var T=l(558);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var D="grouped_list",I="single",C=(v.getSourceAction,function(t){A(r,t);var e=R(r);function r(t){var n=t.apiWrapper,o=t.namespace;return u(this,r),e.call(this,{apiWrapper:n,namespace:o})}return f(r,[{key:"createActions",value:function(t){var e=t.namespace,r=t.reducerOptions,n=[this.createAction(e,"setFetched"),this.createAction(e,"setFetching")];return r.type===I?n.push(this.createAction(e,"setItem")):n.push(this.createAction(e,"setPage")),n}},{key:"createApiActions",value:function(){return[]}},{key:"createReducer",value:function(t){var e=t.actionHandlers,r=t.actions,n=t.reducerOptions,o={changeItem:r[v.ActionType.ChangeItem].actionType,clear:r[v.ActionType.Clear].actionType,create:r[v.ApiActionType.Create].actionType,"delete":r[v.ApiActionType.Delete].actionType,read:r[v.ApiActionType.Read].actionType,removeItem:r[v.ActionType.RemoveItem].actionType,setFetched:r.setFetched.actionType,setFetching:r.setFetching.actionType,update:r[v.ApiActionType.Update].actionType},i=null;return n.type===I?(o.setItem=r.setItem.actionType,i=T.createEntityReducer):(Object.assign(o,{addItem:r[v.ActionType.AddItem].actionType,addItems:r[v.ActionType.AddItems].actionType,changeItems:r[v.ActionType.ChangeItems].actionType,setPage:r.setPage.actionType}),i=n.type===D?T.createGroupedEntityListReducer:T.createEntityListReducer),i(o,L(L({},n),{},{getSourceAction:v.getSourceAction,customHandlers:L(L({},e),null==n?void 0:n.customHandlers)}))}}]),r}(v.ApiDuckCreator)),q=l(22);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var N=function(t){A(r,t);var e=M(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"authenticate",value:function(){}},{key:"loadAuthenticationData",value:function(){}},{key:"saveAuthenticationData",value:function(){}}]),r}(q.ApiAuthenticator);function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var F=function(t){A(r,t);var e=W(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"connect",value:function(){}},{key:"disconnect",value:function(){}},{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}}]),r}(q.ApiRealtimeTransport);function B(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function G(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function H(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}function U(t,e,r){var n,o,i,a=t.apiWrapperOptions,u=t.methodData,c=t.payload,l=u.actionName,s=u.method;return[null==c?void 0:c[e],null==a||null===(n=a[l])||void 0===n?void 0:n[e],null==a||null===(o=a[s])||void 0===o?void 0:o[e],null==a||null===(i=a["default"])||void 0===i?void 0:i[e],r].find((function(t){return t!==undefined}))}var z=new WeakMap,V=new WeakMap,Y=function(t){A(i,t);var e,n,o=G(i);function i(t){var e,r=t.getExtraRequestData,n=t.voidClient;return u(this,i),H(P(e=o.call(this)),z,{writable:!0,value:null}),H(P(e),V,{writable:!0,value:null}),d(P(e),z,r),d(P(e),V,n),e}return f(i,[{key:"callMethod",value:(e=h.mark((function a(t){var e,n,o,i,u,c,l,s,f,p,d;return h.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=t.methodData,o=t.requestData,i=o.apiWrapperOptions,u=o.payload,c=U({apiWrapperOptions:i,methodData:n,payload:u},"args",[]),l=U({apiWrapperOptions:i,methodData:n,payload:u},"collectionName"),s=U({apiWrapperOptions:i,methodData:n,payload:u},"method",n.method),f=y(this,z).call(this),a.prev=6,a.next=9,(p=y(this,V).mongo.collection(l))[s].apply(p,r(c.map((function(t){return"function"==typeof t?t(u,f):t}))));case 9:d=a.sent,a.t0=s,a.next="find"===a.t0?13:"insertOne"===a.t0?14:15;break;case 13:return a.abrupt("return",{data:{count_total:(null===(e=d[0].count[0])||void 0===e?void 0:e.total)||0,items:d[0].data}});case 14:return a.abrupt("return",{data:{item:{_id:d.insertedId}}});case 15:return a.abrupt("return",d);case 16:a.next=22;break;case 18:throw a.prev=18,a.t1=a["catch"](6),console.warn(a.t1),a.t1;case 22:case"end":return a.stop()}}),a,this,[[6,18]])})),n=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){B(i,n,o,a,u,"next",t)}function u(t){B(i,n,o,a,u,"throw",t)}a(undefined)}))},function(t){return n.apply(this,arguments)})},{key:"getCreateMethodData",value:function(){return{actionName:"create",method:"insertOne"}}},{key:"getDeleteMethodData",value:function(){return{actionName:"delete",method:"deleteOne"}}},{key:"getReadMethodData",value:function(){return{actionName:"read",method:"find"}}},{key:"getUpdateMethodData",value:function(){return{actionName:"update",method:"updateOne"}}},{key:"isAuthenticationFailedError",value:function(t){return!1}},{key:"isSessionExpiredError",value:function(t){return!1}}]),i}(q.ApiTransport);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=E(t);if(e){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}var J=function(t){A(r,t);var e=$(r);function r(t){var n=t.getExtraRequestData,o=t.voidClient;return u(this,r),e.call(this,{authenticator:new N,realtimeTransport:new F,transport:new Y({getExtraRequestData:n,voidClient:o})})}return f(r)}(q.ApiWrapper);function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}var Z={key:"redux-store"},tt=new WeakMap,et=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=function(){function t(e){var o=this,i=e.createDucks,a=void 0===i?function(){return[]}:i,c=e.createSagas,l=void 0===c?function(){return[]}:c,s=e.namespace,f=void 0===s?"void":s,p=e.project,x=e.reduxCompose,O=void 0===x?b.compose:x,k=e.reduxPersistConfig,A=void 0===k?{}:k,P=e.voidClientConfig,S=void 0===P?{}:P;u(this,t),X(this,tt,{writable:!0,value:null}),X(this,et,{writable:!0,value:null}),X(this,rt,{writable:!0,value:null}),X(this,nt,{writable:!0,value:null}),d(this,nt,new m.VoidClient(Q(Q({},S),{},{project:p})));var E=new J({getExtraRequestData:function(){return y(o,rt).getState()},voidClient:y(this,nt)}),T=new C({apiWrapper:E,namespace:f}),R=a((function(){return T.createDuck.apply(T,arguments)})).reduce((function(t,e){return t[e.name]=e,t}),{});d(this,tt,R);var _=(0,b.combineReducers)(Object.entries(R).reduce((function(t,e){var r=n(e,2),o=r[0],i=r[1];return t[o]=i.reducer,t}),{})),L=w["default"](),D=(0,g.persistReducer)(Q(Q({},Z),A),_);d(this,rt,(0,b.createStore)(D,O((0,b.applyMiddleware)(L)))),d(this,et,(0,g.persistStore)(y(this,rt))),L.run(h.mark((function I(){return h.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e=[(0,v.apiSaga)()].concat(r(l(R).map((function(t){return t()})))),n=void 0,(n=j("ALL",e)).combinator=!0,n;case 2:case"end":return t.stop()}var e,n}),I)})))}return f(t,[{key:"ducks",get:function(){return y(this,tt)}},{key:"persistor",get:function(){return y(this,et)}},{key:"store",get:function(){return y(this,rt)}},{key:"voidClient",get:function(){return y(this,nt)}}]),t}()})(),s})()));
//# sourceMappingURL=index.browser.js.map
{
"name": "@voidwalkers/void-redux",
"version": "0.1.20",
"version": "0.1.21",
"description": "Redux-based client lib for Void Walkers Void",

@@ -5,0 +5,0 @@ "main": "dist/index.browser.js",

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