@nethesis/phone-island
Version:
NethVoice CTI Phone Island
3 lines (2 loc) • 9.84 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/objectSpread2.js");function t(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",n=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+n(),REPLACE:"@@redux/REPLACE"+n(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+n()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function u(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=s(e)),t}function c(e,n,s){var a;if("function"==typeof n&&"function"==typeof s||"function"==typeof s&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?t(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof n&&void 0===s&&(s=n,n=void 0),void 0!==s){if("function"!=typeof s)throw new Error("production"===process.env.NODE_ENV?t(1):"Expected the enhancer to be a function. Instead, received: '"+u(s)+"'");return s(c)(e,n)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?t(2):"Expected the root reducer to be a function. Instead, received: '"+u(e)+"'");var d=e,f=n,p=[],l=p,h=!1;function y(){l===p&&(l=p.slice())}function v(){if(h)throw new Error("production"===process.env.NODE_ENV?t(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return f}function E(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?t(4):"Expected the listener to be a function. Instead, received: '"+u(e)+"'");if(h)throw new Error("production"===process.env.NODE_ENV?t(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var r=!0;return y(),l.push(e),function(){if(r){if(h)throw new Error("production"===process.env.NODE_ENV?t(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");r=!1,y();var n=l.indexOf(e);l.splice(n,1),p=null}}}function b(e){if(!i(e))throw new Error("production"===process.env.NODE_ENV?t(7):"Actions must be plain objects. Instead, the actual type was: '"+u(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?t(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(h)throw new Error("production"===process.env.NODE_ENV?t(9):"Reducers may not dispatch actions.");try{h=!0,f=d(f,e)}finally{h=!1}for(var r=p=l,n=0;n<r.length;n++){(0,r[n])()}return e}return b({type:o.INIT}),(a={dispatch:b,subscribe:E,getState:v,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?t(10):"Expected the nextReducer to be a function. Instead, received: '"+u(e));d=e,b({type:o.REPLACE})}})[r]=function(){var e,n=E;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?t(11):"Expected the observer to be an object. Instead, received: '"+u(e)+"'");function r(){e.next&&e.next(v())}return r(),{unsubscribe:n(r)}}})[r]=function(){return this},e},a}var a=c;function d(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function f(e,t){return function(){return t(e.apply(this,arguments))}}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function l(){}"production"!==process.env.NODE_ENV&&"string"==typeof l.name&&"isCrushed"!==l.name&&d('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.'),exports.__DO_NOT_USE__ActionTypes=o,exports.applyMiddleware=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error("production"===process.env.NODE_ENV?t(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},u=n.map((function(e){return e(s)}));return i=p.apply(void 0,u)(o.dispatch),e.default(e.default({},o),{},{dispatch:i})}}},exports.bindActionCreators=function(e,r){if("function"==typeof e)return f(e,r);if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?t(16):"bindActionCreators expected an object or a function, but instead received: '"+u(e)+'\'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var o in e){var i=e[o];"function"==typeof i&&(n[o]=f(i,r))}return n},exports.combineReducers=function(e){for(var r=Object.keys(e),n={},s=0;s<r.length;s++){var c=r[s];"production"!==process.env.NODE_ENV&&void 0===e[c]&&d('No reducer provided for key "'+c+'"'),"function"==typeof e[c]&&(n[c]=e[c])}var a,f,p=Object.keys(n);"production"!==process.env.NODE_ENV&&(a={});try{!function(e){Object.keys(e).forEach((function(r){var n=e[r];if(void 0===n(void 0,{type:o.INIT}))throw new Error("production"===process.env.NODE_ENV?t(12):'The slice reducer for key "'+r+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?t(13):'The slice reducer for key "'+r+"\" returned undefined when probed with a random type. Don't try to handle '"+o.INIT+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){f=e}return function(e,r){if(void 0===e&&(e={}),f)throw f;if("production"!==process.env.NODE_ENV){var s=function(e,t,r,n){var s=Object.keys(t),c=r&&r.type===o.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===s.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!i(e))return"The "+c+' has unexpected type of "'+u(e)+'". Expected argument to be an object with the following keys: "'+s.join('", "')+'"';var a=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!n[e]}));return a.forEach((function(e){n[e]=!0})),r&&r.type===o.REPLACE?void 0:a.length>0?"Unexpected "+(a.length>1?"keys":"key")+' "'+a.join('", "')+'" found in '+c+'. Expected to find one of the known reducer keys instead: "'+s.join('", "')+'". Unexpected keys will be ignored.':void 0}(e,n,r,a);s&&d(s)}for(var c=!1,l={},h=0;h<p.length;h++){var y=p[h],v=n[y],E=e[y],b=v(E,r);if(void 0===b){var w=r&&r.type;throw new Error("production"===process.env.NODE_ENV?t(14):"When called with an action of type "+(w?'"'+String(w)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}l[y]=b,c=c||b!==E}return(c=c||p.length!==Object.keys(e).length)?l:e}},exports.compose=p,exports.createStore=c,exports.legacy_createStore=a;
//# sourceMappingURL=redux.js.map