ouisys-engine 2.1.74 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +0 -2
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/ouisys-engine.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.nvmrc +1 -1
- package/dist/@types/window.d.js +5 -1
- package/dist/api/index.js +80 -48
- package/dist/common-types/AppThunk.js +5 -1
- package/dist/common-types/Either.js +5 -1
- package/dist/common-types/IError.js +5 -1
- package/dist/common-types/ITracker.js +3 -0
- package/dist/common-types/IVisitor.js +5 -1
- package/dist/common-types/RemoteDataState.js +3 -3
- package/dist/ips/tryGetIPRangeName.js +37 -5
- package/dist/pacman/index.js +16 -14
- package/dist/pacman/queryString.js +12 -10
- package/dist/reducers/click2smsFlow/Click2smsTypes.js +5 -1
- package/dist/reducers/click2smsFlow/IClick2smsConstants.js +5 -1
- package/dist/reducers/click2smsFlow/index.d.ts +1 -1
- package/dist/reducers/click2smsFlow/index.js +41 -25
- package/dist/reducers/click2smsFlow/utils.js +53 -31
- package/dist/reducers/moFlow/IMoConstants.js +5 -1
- package/dist/reducers/moFlow/MoTypes.js +5 -1
- package/dist/reducers/moFlow/index.d.ts +1 -1
- package/dist/reducers/moFlow/index.js +41 -25
- package/dist/reducers/moFlow/utils.js +57 -39
- package/dist/reducers/moRedirFlow/IMoRedirConstants.js +5 -1
- package/dist/reducers/moRedirFlow/MoRedirTypes.js +5 -1
- package/dist/reducers/moRedirFlow/index.d.ts +1 -1
- package/dist/reducers/moRedirFlow/index.js +37 -19
- package/dist/reducers/moRedirFlow/utils.js +48 -32
- package/dist/reducers/oneClickFlow/IOneClickConstants.js +5 -1
- package/dist/reducers/oneClickFlow/OneClickTypes.js +5 -1
- package/dist/reducers/oneClickFlow/index.d.ts +1 -1
- package/dist/reducers/oneClickFlow/index.js +44 -28
- package/dist/reducers/oneClickFlow/utils.js +49 -35
- package/dist/reducers/pinFlow/IPinConstants.js +5 -1
- package/dist/reducers/pinFlow/PinTypes.js +5 -1
- package/dist/reducers/pinFlow/index.d.ts +1 -1
- package/dist/reducers/pinFlow/index.js +47 -31
- package/dist/reducers/pinFlow/utils.js +63 -47
- package/dist/reducers/strategy/IStategyActionContants.js +5 -1
- package/dist/reducers/strategy/StrategyTypes.js +5 -1
- package/dist/reducers/strategy/index.d.ts +2 -2
- package/dist/reducers/strategy/index.js +44 -24
- package/dist/reducers/strategy/strategies/ask_mobile_number.js +39 -23
- package/dist/reducers/strategy/strategies/ask_operator.js +41 -25
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +50 -33
- package/dist/reducers/strategy/strategies/header_enrichment.js +42 -24
- package/dist/reducers/strategy/utils.js +72 -54
- package/dist/reducers/ussdFlow/IUssdConstants.js +5 -1
- package/dist/reducers/ussdFlow/UssdTypes.js +5 -1
- package/dist/reducers/ussdFlow/index.d.ts +1 -1
- package/dist/reducers/ussdFlow/index.js +41 -25
- package/dist/reducers/ussdFlow/utils.js +53 -35
- package/dist/store/index.js +16 -16
- package/dist/utilities/handleSubmitNumber.js +6 -6
- package/dist/utilities/index.js +2 -2
- package/package.json +63 -58
- package/prettier.config.js +1 -1
- package/src/reducers/pinFlow/utils.ts +0 -1
- package/src/reducers/strategy/index.ts +3 -2
- package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -1
- package/src/utilities/index.ts +1 -1
- package/tsconfig.json +1 -1
|
@@ -1,72 +1,88 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.symbol.
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.symbol.
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/
|
|
21
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/es.
|
|
23
|
+
require("core-js/modules/es.function.name.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/es.
|
|
25
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
26
26
|
|
|
27
|
-
require("core-js/modules/es.
|
|
27
|
+
require("core-js/modules/es.array.slice.js");
|
|
28
28
|
|
|
29
|
-
require("core-js/modules/es.object.get-own-property-
|
|
29
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
30
30
|
|
|
31
|
-
require("core-js/modules/es.object.
|
|
31
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
32
32
|
|
|
33
|
-
require("core-js/modules/es.
|
|
33
|
+
require("core-js/modules/es.array.from.js");
|
|
34
34
|
|
|
35
|
-
require("core-js/modules/es.
|
|
35
|
+
require("core-js/modules/es.regexp.test.js");
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Object.defineProperty(exports, "__esModule", {
|
|
38
|
+
value: true
|
|
39
|
+
});
|
|
40
|
+
exports.determineFlowByMsidn = determineFlowByMsidn;
|
|
41
|
+
exports.determineFlowByOperator = determineFlowByOperator;
|
|
42
|
+
exports.determineFlowByOperatorFromIp = determineFlowByOperatorFromIp;
|
|
43
|
+
exports.getConfig = void 0;
|
|
44
|
+
exports.getOperators = getOperators;
|
|
45
|
+
exports.identifyUser = void 0;
|
|
46
|
+
exports.left = left;
|
|
47
|
+
exports.loop = void 0;
|
|
48
|
+
exports.mockConfig = mockConfig;
|
|
49
|
+
exports.mockedUssdFlow = exports.mockedTPayFlow = exports.mockedPinFlow = exports.mockedOneClickFlow = exports.mockedMoRdirFlow = exports.mockedMoFlow = exports.mockedClick2smsFlow = void 0;
|
|
50
|
+
exports.right = right;
|
|
51
|
+
exports.wait = exports.subscribe = exports.searchToObject = void 0;
|
|
38
52
|
|
|
39
|
-
require("core-js/modules/es.
|
|
53
|
+
require("core-js/modules/es.object.to-string.js");
|
|
40
54
|
|
|
41
|
-
require("core-js/modules/es.
|
|
55
|
+
require("core-js/modules/es.promise.js");
|
|
42
56
|
|
|
43
|
-
require("core-js/modules/es.
|
|
57
|
+
require("core-js/modules/es.array.map.js");
|
|
44
58
|
|
|
45
|
-
require("core-js/modules/es.
|
|
59
|
+
require("core-js/modules/es.array.filter.js");
|
|
46
60
|
|
|
47
|
-
require("core-js/modules/es.
|
|
61
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
48
62
|
|
|
49
|
-
require("core-js/modules/es.string.split");
|
|
63
|
+
require("core-js/modules/es.string.split.js");
|
|
50
64
|
|
|
51
|
-
require("core-js/modules/
|
|
65
|
+
require("core-js/modules/es.string.search.js");
|
|
52
66
|
|
|
53
|
-
require("core-js/modules/
|
|
67
|
+
require("core-js/modules/es.object.keys.js");
|
|
54
68
|
|
|
55
|
-
require("core-js/modules/
|
|
69
|
+
require("core-js/modules/es.array.join.js");
|
|
56
70
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
exports.right = right;
|
|
61
|
-
exports.left = left;
|
|
62
|
-
exports.determineFlowByMsidn = determineFlowByMsidn;
|
|
63
|
-
exports.determineFlowByOperator = determineFlowByOperator;
|
|
64
|
-
exports.determineFlowByOperatorFromIp = determineFlowByOperatorFromIp;
|
|
65
|
-
exports.getOperators = getOperators;
|
|
66
|
-
exports.mockConfig = mockConfig;
|
|
67
|
-
exports.mockedTPayFlow = exports.mockedOneClickFlow = exports.mockedClick2smsFlow = exports.mockedMoRdirFlow = exports.mockedUssdFlow = exports.mockedMoFlow = exports.mockedPinFlow = exports.subscribe = exports.identifyUser = exports.searchToObject = exports.getConfig = exports.loop = exports.wait = void 0;
|
|
71
|
+
require("core-js/modules/es.array.concat.js");
|
|
72
|
+
|
|
73
|
+
require("core-js/modules/es.array.iterator.js");
|
|
68
74
|
|
|
69
|
-
require("
|
|
75
|
+
require("core-js/modules/es.string.iterator.js");
|
|
76
|
+
|
|
77
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
78
|
+
|
|
79
|
+
require("core-js/modules/web.url.js");
|
|
80
|
+
|
|
81
|
+
require("core-js/modules/web.url-search-params.js");
|
|
82
|
+
|
|
83
|
+
require("core-js/modules/es.string.replace.js");
|
|
84
|
+
|
|
85
|
+
require("core-js/modules/es.string.match.js");
|
|
70
86
|
|
|
71
87
|
var _tryGetIPRangeName = _interopRequireDefault(require("../../ips/tryGetIPRangeName"));
|
|
72
88
|
|
|
@@ -80,16 +96,18 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
80
96
|
|
|
81
97
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
82
98
|
|
|
83
|
-
function _iterableToArrayLimit(arr, i) {
|
|
99
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
84
100
|
|
|
85
101
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
86
102
|
|
|
87
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
103
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
88
104
|
|
|
89
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
105
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
90
106
|
|
|
91
107
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
92
108
|
|
|
109
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
110
|
+
|
|
93
111
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
94
112
|
|
|
95
113
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -107,9 +125,9 @@ var wait = function wait(ms) {
|
|
|
107
125
|
exports.wait = wait;
|
|
108
126
|
|
|
109
127
|
var loop = /*#__PURE__*/function () {
|
|
110
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
128
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(f, max, stop, i) {
|
|
111
129
|
var r;
|
|
112
|
-
return
|
|
130
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
113
131
|
while (1) {
|
|
114
132
|
switch (_context.prev = _context.next) {
|
|
115
133
|
case 0:
|
|
@@ -205,10 +223,10 @@ function determineFlowByMsidn(_x5) {
|
|
|
205
223
|
}
|
|
206
224
|
|
|
207
225
|
function _determineFlowByMsidn() {
|
|
208
|
-
_determineFlowByMsidn = _asyncToGenerator( /*#__PURE__*/
|
|
226
|
+
_determineFlowByMsidn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(internationalMSISDN) {
|
|
209
227
|
var submissionError, msisdn, indentifyFlow, theResult, flow, cannotDetect, hlrError, _submissionError, flowObj, _flowObj, _submissionError2;
|
|
210
228
|
|
|
211
|
-
return
|
|
229
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
212
230
|
while (1) {
|
|
213
231
|
switch (_context5.prev = _context5.next) {
|
|
214
232
|
case 0:
|
|
@@ -227,9 +245,9 @@ function _determineFlowByMsidn() {
|
|
|
227
245
|
_context5.prev = 5;
|
|
228
246
|
|
|
229
247
|
indentifyFlow = /*#__PURE__*/function () {
|
|
230
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
|
248
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
231
249
|
var config, slug, country, device, host, rockmanId, offer, flowOperatorResult;
|
|
232
|
-
return
|
|
250
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
233
251
|
while (1) {
|
|
234
252
|
switch (_context4.prev = _context4.next) {
|
|
235
253
|
case 0:
|
|
@@ -339,9 +357,9 @@ function determineFlowByOperatorFromIp(_x6) {
|
|
|
339
357
|
|
|
340
358
|
|
|
341
359
|
function _determineFlowByOperatorFromIp() {
|
|
342
|
-
_determineFlowByOperatorFromIp = _asyncToGenerator( /*#__PURE__*/
|
|
360
|
+
_determineFlowByOperatorFromIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(isStrict) {
|
|
343
361
|
var operator, flowObj;
|
|
344
|
-
return
|
|
362
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
345
363
|
while (1) {
|
|
346
364
|
switch (_context6.prev = _context6.next) {
|
|
347
365
|
case 0:
|
|
@@ -391,10 +409,10 @@ var fetchJsonp = function fetchJsonp(_url) {
|
|
|
391
409
|
};
|
|
392
410
|
|
|
393
411
|
var identifyUser = /*#__PURE__*/function () {
|
|
394
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
412
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(extraParams) {
|
|
395
413
|
var config, host, country, slug, queryString, device, bupperizeCountry, offer, rockmanId, s, search, extraParamsQs, isDMB, newHost, searchObj, isSuccess, identifyError, subscription_url, newUrl, _queryString, urlParams, msisdn, operator, url2, redirect_url, _newUrl, _queryString2, _urlParams, _msisdn, _operator, _newUrl2, _queryString3, _urlParams2, _msisdn2, _operator2, _url2, result, _identifyError;
|
|
396
414
|
|
|
397
|
-
return
|
|
415
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
398
416
|
while (1) {
|
|
399
417
|
switch (_context2.prev = _context2.next) {
|
|
400
418
|
case 0:
|
|
@@ -565,8 +583,8 @@ var identifyUser = /*#__PURE__*/function () {
|
|
|
565
583
|
exports.identifyUser = identifyUser;
|
|
566
584
|
|
|
567
585
|
var subscribe = /*#__PURE__*/function () {
|
|
568
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
569
|
-
return
|
|
586
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(url) {
|
|
587
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
570
588
|
while (1) {
|
|
571
589
|
switch (_context3.prev = _context3.next) {
|
|
572
590
|
case 0:
|
|
@@ -11,4 +11,4 @@ export declare function backToStart(): {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare const UssdFlowActionMaps: IUssdFlowActionMaps;
|
|
14
|
-
export default function UssdFlowReducer(state: IUssdFlowReducerState, action: IUssdActions):
|
|
14
|
+
export default function UssdFlowReducer(state: IUssdFlowReducerState, action: IUssdActions): IUssdFlowReducerState;
|
|
@@ -1,45 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.keys.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.symbol.
|
|
7
|
+
require("core-js/modules/es.symbol.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.array.filter.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.description.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.array.iterator.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/es.
|
|
23
|
+
require("core-js/modules/es.string.iterator.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/
|
|
25
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
26
26
|
|
|
27
|
-
require("core-js/modules/es.
|
|
27
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
28
28
|
|
|
29
|
-
require("core-js/modules/
|
|
29
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
30
30
|
|
|
31
|
-
require("core-js/modules/
|
|
31
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
34
|
+
|
|
35
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
36
|
+
|
|
37
|
+
require("core-js/modules/es.function.name.js");
|
|
38
|
+
|
|
39
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
40
|
+
|
|
41
|
+
require("core-js/modules/es.array.slice.js");
|
|
42
|
+
|
|
43
|
+
require("core-js/modules/es.weak-map.js");
|
|
32
44
|
|
|
33
45
|
Object.defineProperty(exports, "__esModule", {
|
|
34
46
|
value: true
|
|
35
47
|
});
|
|
36
|
-
exports.
|
|
37
|
-
exports.mockUssdFlow = mockUssdFlow;
|
|
48
|
+
exports.UssdFlowActionMaps = void 0;
|
|
38
49
|
exports.backToStart = backToStart;
|
|
39
50
|
exports.default = UssdFlowReducer;
|
|
40
|
-
exports.
|
|
51
|
+
exports.mockUssdFlow = mockUssdFlow;
|
|
52
|
+
exports.submitMSISDNAction = submitMSISDNAction;
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.object.to-string.js");
|
|
41
55
|
|
|
42
|
-
require("
|
|
56
|
+
require("core-js/modules/es.promise.js");
|
|
43
57
|
|
|
44
58
|
var RDS = _interopRequireWildcard(require("../../common-types/RemoteDataState"));
|
|
45
59
|
|
|
@@ -47,13 +61,15 @@ var _utils = _interopRequireWildcard(require("./utils"));
|
|
|
47
61
|
|
|
48
62
|
var _strategy = require("../strategy");
|
|
49
63
|
|
|
50
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
64
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
65
|
+
|
|
66
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
51
67
|
|
|
52
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
68
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
53
69
|
|
|
54
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
70
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
55
71
|
|
|
56
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
72
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
57
73
|
|
|
58
74
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
59
75
|
|
|
@@ -64,9 +80,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
64
80
|
//ACTION CREATORS
|
|
65
81
|
function submitMSISDNAction(msisdn) {
|
|
66
82
|
return /*#__PURE__*/function () {
|
|
67
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
83
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch, store) {
|
|
68
84
|
var currentState, config, keywordAndShortcode, errorType;
|
|
69
|
-
return
|
|
85
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
70
86
|
while (1) {
|
|
71
87
|
switch (_context.prev = _context.next) {
|
|
72
88
|
case 0:
|
|
@@ -1,68 +1,86 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.symbol");
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/
|
|
11
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.description.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.array.
|
|
19
|
+
require("core-js/modules/es.array.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.string.iterator.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/es.
|
|
25
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
26
26
|
|
|
27
|
-
require("core-js/modules/es.
|
|
27
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
28
28
|
|
|
29
|
-
require("core-js/modules/es.
|
|
29
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
30
30
|
|
|
31
|
-
require("core-js/modules/es.
|
|
31
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
32
32
|
|
|
33
|
-
require("core-js/modules/es.
|
|
33
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
34
34
|
|
|
35
|
-
require("core-js/modules/es.
|
|
35
|
+
require("core-js/modules/es.function.name.js");
|
|
36
36
|
|
|
37
|
-
require("core-js/modules/es.
|
|
37
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
38
38
|
|
|
39
|
-
require("core-js/modules/es.
|
|
39
|
+
require("core-js/modules/es.array.slice.js");
|
|
40
40
|
|
|
41
|
-
require("core-js/modules/
|
|
42
|
-
|
|
43
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
41
|
+
require("core-js/modules/es.weak-map.js");
|
|
44
42
|
|
|
45
43
|
Object.defineProperty(exports, "__esModule", {
|
|
46
44
|
value: true
|
|
47
45
|
});
|
|
46
|
+
exports.checkSubscription = checkSubscription;
|
|
48
47
|
exports.default = submitMSISDN;
|
|
48
|
+
exports.mockedMSISDNEntrySuccess = exports.mockedMSISDNEntryFailure = exports.formatSMSLink = void 0;
|
|
49
49
|
exports.submitMSISDNWithConfig = submitMSISDNWithConfig;
|
|
50
|
-
exports.checkSubscription = checkSubscription;
|
|
51
|
-
exports.mockedMSISDNEntryFailure = exports.mockedMSISDNEntrySuccess = exports.formatSMSLink = void 0;
|
|
52
50
|
|
|
53
|
-
require("
|
|
51
|
+
require("core-js/modules/es.array.concat.js");
|
|
52
|
+
|
|
53
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
54
|
+
|
|
55
|
+
require("core-js/modules/es.regexp.test.js");
|
|
56
|
+
|
|
57
|
+
require("core-js/modules/es.object.to-string.js");
|
|
58
|
+
|
|
59
|
+
require("core-js/modules/es.promise.js");
|
|
60
|
+
|
|
61
|
+
require("core-js/modules/es.string.search.js");
|
|
62
|
+
|
|
63
|
+
require("core-js/modules/es.array.join.js");
|
|
64
|
+
|
|
65
|
+
require("core-js/modules/es.array.map.js");
|
|
66
|
+
|
|
67
|
+
require("core-js/modules/es.object.keys.js");
|
|
68
|
+
|
|
69
|
+
require("core-js/modules/es.string.match.js");
|
|
54
70
|
|
|
55
71
|
var RDS = _interopRequireWildcard(require("../../common-types/RemoteDataState"));
|
|
56
72
|
|
|
57
73
|
var _utils = require("../strategy/utils");
|
|
58
74
|
|
|
59
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
75
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
76
|
+
|
|
77
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
60
78
|
|
|
61
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
79
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
62
80
|
|
|
63
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
81
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
64
82
|
|
|
65
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
83
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
66
84
|
|
|
67
85
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
68
86
|
|
|
@@ -75,9 +93,9 @@ function submitMSISDN(_x, _x2, _x3, _x4) {
|
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
function _submitMSISDN() {
|
|
78
|
-
_submitMSISDN = _asyncToGenerator( /*#__PURE__*/
|
|
96
|
+
_submitMSISDN = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(window, maybeConfig, internationalMSISDN, extraParams) {
|
|
79
97
|
var config;
|
|
80
|
-
return
|
|
98
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
81
99
|
while (1) {
|
|
82
100
|
switch (_context.prev = _context.next) {
|
|
83
101
|
case 0:
|
|
@@ -101,9 +119,9 @@ function submitMSISDNWithConfig(_x5, _x6, _x7, _x8) {
|
|
|
101
119
|
}
|
|
102
120
|
|
|
103
121
|
function _submitMSISDNWithConfig() {
|
|
104
|
-
_submitMSISDNWithConfig = _asyncToGenerator( /*#__PURE__*/
|
|
122
|
+
_submitMSISDNWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(window, config, internationalMSISDN, extraParams) {
|
|
105
123
|
var slug, country, device, offer, host, search, extraParamsQs, msisdn, rockmanId, result, type, error;
|
|
106
|
-
return
|
|
124
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
107
125
|
while (1) {
|
|
108
126
|
switch (_context2.prev = _context2.next) {
|
|
109
127
|
case 0:
|
|
@@ -149,9 +167,9 @@ function checkSubscription(_x9, _x10) {
|
|
|
149
167
|
}
|
|
150
168
|
|
|
151
169
|
function _checkSubscription() {
|
|
152
|
-
_checkSubscription = _asyncToGenerator( /*#__PURE__*/
|
|
170
|
+
_checkSubscription = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(window, maybeConfig) {
|
|
153
171
|
var config, host, rockmanId, check, checkResult, error;
|
|
154
|
-
return
|
|
172
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
155
173
|
while (1) {
|
|
156
174
|
switch (_context3.prev = _context3.next) {
|
|
157
175
|
case 0:
|