ouisys-engine 2.1.75 → 3.0.1
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/.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 +75 -47
- package/dist/reducers/pinFlow/utils.js +63 -47
- package/dist/reducers/strategy/IStategyActionContants.js +5 -1
- package/dist/reducers/strategy/StrategyTypes.d.ts +4 -2
- package/dist/reducers/strategy/StrategyTypes.js +5 -1
- package/dist/reducers/strategy/index.d.ts +2 -2
- package/dist/reducers/strategy/index.js +67 -45
- 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.d.ts +2 -0
- package/dist/utilities/index.js +24 -2
- package/package.json +63 -58
- package/prettier.config.js +1 -1
- package/src/reducers/pinFlow/index.ts +12 -1
- package/src/reducers/pinFlow/utils.ts +0 -1
- package/src/reducers/strategy/StrategyTypes.ts +4 -2
- package/src/reducers/strategy/index.ts +6 -3
- package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -1
- package/src/utilities/index.ts +87 -0
- package/tsconfig.json +1 -1
|
@@ -1,38 +1,55 @@
|
|
|
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.symbol.description");
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.symbol.iterator");
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.array.iterator");
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.string.
|
|
19
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/
|
|
23
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
28
|
+
|
|
29
|
+
require("core-js/modules/es.function.name.js");
|
|
30
|
+
|
|
31
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.array.slice.js");
|
|
34
|
+
|
|
35
|
+
require("core-js/modules/es.weak-map.js");
|
|
36
|
+
|
|
37
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
24
38
|
|
|
25
39
|
Object.defineProperty(exports, "__esModule", {
|
|
26
40
|
value: true
|
|
27
41
|
});
|
|
28
|
-
exports.
|
|
29
|
-
exports.identifyStrategy = identifyStrategy;
|
|
42
|
+
exports.StrategyFlowActionMaps = void 0;
|
|
30
43
|
exports.checkSubscriptionAction = checkSubscriptionAction;
|
|
31
|
-
exports.genericHandler = genericHandler;
|
|
32
44
|
exports.default = StrategyReducer;
|
|
33
|
-
exports.
|
|
45
|
+
exports.genericHandler = genericHandler;
|
|
46
|
+
exports.identifyStrategy = identifyStrategy;
|
|
47
|
+
exports.mockStrategyStateByUrlParam = mockStrategyStateByUrlParam;
|
|
48
|
+
exports.tracker = void 0;
|
|
49
|
+
|
|
50
|
+
require("core-js/modules/es.object.to-string.js");
|
|
34
51
|
|
|
35
|
-
require("
|
|
52
|
+
require("core-js/modules/es.promise.js");
|
|
36
53
|
|
|
37
54
|
var RDS = _interopRequireWildcard(require("../../common-types/RemoteDataState"));
|
|
38
55
|
|
|
@@ -42,7 +59,7 @@ var _ask_operator = _interopRequireWildcard(require("./strategies/ask_operator")
|
|
|
42
59
|
|
|
43
60
|
var _ask_mobile_number = _interopRequireWildcard(require("./strategies/ask_mobile_number"));
|
|
44
61
|
|
|
45
|
-
var
|
|
62
|
+
var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"));
|
|
46
63
|
|
|
47
64
|
var _pacman = _interopRequireDefault(require("../../pacman"));
|
|
48
65
|
|
|
@@ -66,9 +83,11 @@ var _oneClickFlow = require("../oneClickFlow");
|
|
|
66
83
|
|
|
67
84
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
68
85
|
|
|
69
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
86
|
+
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); }
|
|
70
87
|
|
|
71
|
-
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; }
|
|
88
|
+
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; }
|
|
89
|
+
|
|
90
|
+
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; }
|
|
72
91
|
|
|
73
92
|
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); } }
|
|
74
93
|
|
|
@@ -141,46 +160,47 @@ function mockStrategyStateByUrlParam() {
|
|
|
141
160
|
|
|
142
161
|
function identifyStrategy() {
|
|
143
162
|
return /*#__PURE__*/function () {
|
|
144
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
145
|
-
var _getConfig, strategy, strategyConfigs, search;
|
|
163
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
|
|
164
|
+
var _getConfig, strategy, strategyConfigs, isUseMsisdnPrefix, search;
|
|
146
165
|
|
|
147
|
-
return
|
|
166
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
148
167
|
while (1) {
|
|
149
168
|
switch (_context.prev = _context.next) {
|
|
150
169
|
case 0:
|
|
151
170
|
_getConfig = (0, _utils.getConfig)(), strategy = _getConfig.strategy, strategyConfigs = _getConfig.strategyConfigs;
|
|
171
|
+
isUseMsisdnPrefix = strategyConfigs.isUseMsisdnPrefix;
|
|
152
172
|
search = (0, _utils.searchToObject)();
|
|
153
173
|
|
|
154
174
|
if (!(search["mock-flow"] !== undefined)) {
|
|
155
|
-
_context.next =
|
|
175
|
+
_context.next = 7;
|
|
156
176
|
break;
|
|
157
177
|
}
|
|
158
178
|
|
|
159
179
|
dispatch(mockStrategyStateByUrlParam());
|
|
160
|
-
_context.next =
|
|
180
|
+
_context.next = 32;
|
|
161
181
|
break;
|
|
162
182
|
|
|
163
|
-
case
|
|
183
|
+
case 7:
|
|
164
184
|
_context.t0 = strategy;
|
|
165
|
-
_context.next = _context.t0 === "pin-mo-ask-operator" ?
|
|
185
|
+
_context.next = _context.t0 === "pin-mo-ask-operator" ? 10 : _context.t0 === "pin-mo-redir-ask-mobile-number" ? 11 : _context.t0 === "pin-mo-ask-mobile-number" ? 11 : _context.t0 === "pin-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "one-click-mo-pin-detect-operator-by-ip-or-msisdn" ? 12 : _context.t0 === "mo-redir-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "mo-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "click2sms-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "pin-mo-detect-operator-by-ip" ? 12 : _context.t0 === "pin-click2sms-ask-operator" ? 13 : _context.t0 === "he-pin-one-click-ask-operator" ? 13 : _context.t0 === "click2sms-one-click-ask-operator" ? 13 : _context.t0 === "pin-one-click-ask-operator" ? 13 : _context.t0 === "pin-header-enrichment" ? 14 : _context.t0 === "he-pin-mo-redir-header-enrichment" ? 14 : _context.t0 === "he-pin-one-click-header-enrichment" ? 14 : _context.t0 === "he-mo-redir-one-click-header-enrichment" ? 14 : _context.t0 === "pin" ? 15 : _context.t0 === "mo" ? 17 : _context.t0 === "mo-redir" ? 19 : _context.t0 === "one-click" ? 21 : _context.t0 === "tallyman-one-click" ? 23 : _context.t0 === "click2sms" ? 25 : _context.t0 === "ussd" ? 27 : _context.t0 === "tpay-he" ? 29 : 31;
|
|
166
186
|
break;
|
|
167
187
|
|
|
168
|
-
case
|
|
188
|
+
case 10:
|
|
169
189
|
return _context.abrupt("return", dispatch((0, _ask_operator.default)()));
|
|
170
190
|
|
|
171
|
-
case
|
|
191
|
+
case 11:
|
|
172
192
|
return _context.abrupt("return", dispatch((0, _ask_mobile_number.default)()));
|
|
173
193
|
|
|
174
|
-
case
|
|
194
|
+
case 12:
|
|
175
195
|
return _context.abrupt("return", dispatch((0, _detect_operator_by_ip.default)()));
|
|
176
196
|
|
|
177
|
-
case
|
|
197
|
+
case 13:
|
|
178
198
|
return _context.abrupt("return", dispatch((0, _ask_operator.default)()));
|
|
179
199
|
|
|
180
|
-
case
|
|
200
|
+
case 14:
|
|
181
201
|
return _context.abrupt("return", dispatch((0, _header_enrichment.default)()));
|
|
182
202
|
|
|
183
|
-
case
|
|
203
|
+
case 15:
|
|
184
204
|
tracker.sendOptInFlowEvent("Pin");
|
|
185
205
|
return _context.abrupt("return", dispatch({
|
|
186
206
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -188,12 +208,13 @@ function identifyStrategy() {
|
|
|
188
208
|
type: "PIN",
|
|
189
209
|
result: {
|
|
190
210
|
nextAction: "submitMSISDNAction",
|
|
191
|
-
config: strategyConfigs.default.flowConfig
|
|
211
|
+
config: strategyConfigs.default.flowConfig,
|
|
212
|
+
isUseMsisdnPrefix: isUseMsisdnPrefix
|
|
192
213
|
}
|
|
193
214
|
}
|
|
194
215
|
}));
|
|
195
216
|
|
|
196
|
-
case
|
|
217
|
+
case 17:
|
|
197
218
|
tracker.sendOptInFlowEvent("Msisdn to sms");
|
|
198
219
|
return _context.abrupt("return", dispatch({
|
|
199
220
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -206,7 +227,7 @@ function identifyStrategy() {
|
|
|
206
227
|
}
|
|
207
228
|
}));
|
|
208
229
|
|
|
209
|
-
case
|
|
230
|
+
case 19:
|
|
210
231
|
tracker.sendOptInFlowEvent("Redirect");
|
|
211
232
|
return _context.abrupt("return", dispatch({
|
|
212
233
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -219,7 +240,7 @@ function identifyStrategy() {
|
|
|
219
240
|
}
|
|
220
241
|
}));
|
|
221
242
|
|
|
222
|
-
case
|
|
243
|
+
case 21:
|
|
223
244
|
tracker.sendOptInFlowEvent("3G click");
|
|
224
245
|
return _context.abrupt("return", dispatch({
|
|
225
246
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -232,7 +253,7 @@ function identifyStrategy() {
|
|
|
232
253
|
}
|
|
233
254
|
}));
|
|
234
255
|
|
|
235
|
-
case
|
|
256
|
+
case 23:
|
|
236
257
|
tracker.sendOptInFlowEvent("3G click");
|
|
237
258
|
return _context.abrupt("return", dispatch({
|
|
238
259
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -245,7 +266,7 @@ function identifyStrategy() {
|
|
|
245
266
|
}
|
|
246
267
|
}));
|
|
247
268
|
|
|
248
|
-
case
|
|
269
|
+
case 25:
|
|
249
270
|
tracker.sendOptInFlowEvent("Click to sms");
|
|
250
271
|
return _context.abrupt("return", dispatch({
|
|
251
272
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -258,7 +279,7 @@ function identifyStrategy() {
|
|
|
258
279
|
}
|
|
259
280
|
}));
|
|
260
281
|
|
|
261
|
-
case
|
|
282
|
+
case 27:
|
|
262
283
|
tracker.sendOptInFlowEvent("Msisdn to sms");
|
|
263
284
|
return _context.abrupt("return", dispatch({
|
|
264
285
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -271,7 +292,7 @@ function identifyStrategy() {
|
|
|
271
292
|
}
|
|
272
293
|
}));
|
|
273
294
|
|
|
274
|
-
case
|
|
295
|
+
case 29:
|
|
275
296
|
tracker.sendOptInFlowEvent("Hybrid Pin");
|
|
276
297
|
return _context.abrupt("return", dispatch({
|
|
277
298
|
type: "IDENTIFY_STRATEGY",
|
|
@@ -284,10 +305,10 @@ function identifyStrategy() {
|
|
|
284
305
|
}
|
|
285
306
|
}));
|
|
286
307
|
|
|
287
|
-
case
|
|
308
|
+
case 31:
|
|
288
309
|
throw "Strategy not supported";
|
|
289
310
|
|
|
290
|
-
case
|
|
311
|
+
case 32:
|
|
291
312
|
case "end":
|
|
292
313
|
return _context.stop();
|
|
293
314
|
}
|
|
@@ -303,9 +324,9 @@ function identifyStrategy() {
|
|
|
303
324
|
|
|
304
325
|
function checkSubscriptionAction(trackingArgs) {
|
|
305
326
|
return /*#__PURE__*/function () {
|
|
306
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
327
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dispatch, store) {
|
|
307
328
|
var currentState, maybeConfig;
|
|
308
|
-
return
|
|
329
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
309
330
|
while (1) {
|
|
310
331
|
switch (_context2.prev = _context2.next) {
|
|
311
332
|
case 0:
|
|
@@ -342,7 +363,8 @@ function checkSubscriptionAction(trackingArgs) {
|
|
|
342
363
|
}
|
|
343
364
|
|
|
344
365
|
function genericHandler(state, payload) {
|
|
345
|
-
return (0,
|
|
366
|
+
return (0, _immutabilityHelper.default)(state, {
|
|
367
|
+
//@ts-ignore
|
|
346
368
|
currentState: {
|
|
347
369
|
$set: payload
|
|
348
370
|
}
|
|
@@ -1,43 +1,57 @@
|
|
|
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
48
|
exports.default = ask_mobile_number;
|
|
49
|
+
exports.pin_mo_redir_ask_mobile_number = exports.pin_mo_ask_mobile_number = exports.one_click_mo_pin_detect_operator_by_ip_or_msisdn = void 0;
|
|
37
50
|
exports.submitMSISDNAction = submitMSISDNAction;
|
|
38
|
-
exports.one_click_mo_pin_detect_operator_by_ip_or_msisdn = exports.pin_mo_redir_ask_mobile_number = exports.pin_mo_ask_mobile_number = void 0;
|
|
39
51
|
|
|
40
|
-
require("
|
|
52
|
+
require("core-js/modules/es.object.to-string.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.promise.js");
|
|
41
55
|
|
|
42
56
|
var RDS = _interopRequireWildcard(require("../../../common-types/RemoteDataState"));
|
|
43
57
|
|
|
@@ -45,13 +59,15 @@ var _utils = require("../utils");
|
|
|
45
59
|
|
|
46
60
|
var _ = require("..");
|
|
47
61
|
|
|
48
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
62
|
+
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); }
|
|
63
|
+
|
|
64
|
+
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; }
|
|
49
65
|
|
|
50
|
-
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; }
|
|
66
|
+
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; }
|
|
51
67
|
|
|
52
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
68
|
+
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; }
|
|
53
69
|
|
|
54
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
70
|
+
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; }
|
|
55
71
|
|
|
56
72
|
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; }
|
|
57
73
|
|
|
@@ -86,10 +102,10 @@ function ask_mobile_number() {
|
|
|
86
102
|
|
|
87
103
|
function submitMSISDNAction(internationalMSISDN) {
|
|
88
104
|
return /*#__PURE__*/function () {
|
|
89
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
105
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
|
|
90
106
|
var _getConfig, strategy, flowObj, errorType;
|
|
91
107
|
|
|
92
|
-
return
|
|
108
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
93
109
|
while (1) {
|
|
94
110
|
switch (_context.prev = _context.next) {
|
|
95
111
|
case 0:
|
|
@@ -1,43 +1,57 @@
|
|
|
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.symbol.description");
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.symbol.iterator");
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.array.
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/es.
|
|
23
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/es.
|
|
25
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
26
26
|
|
|
27
|
-
require("core-js/modules/
|
|
27
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
28
28
|
|
|
29
|
-
require("core-js/modules/
|
|
29
|
+
require("core-js/modules/es.function.name.js");
|
|
30
30
|
|
|
31
|
-
require("core-js/modules/
|
|
31
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.array.slice.js");
|
|
34
|
+
|
|
35
|
+
require("core-js/modules/es.object.keys.js");
|
|
36
|
+
|
|
37
|
+
require("core-js/modules/es.array.filter.js");
|
|
38
|
+
|
|
39
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
40
|
+
|
|
41
|
+
require("core-js/modules/es.object.get-own-property-descriptors.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
48
|
exports.default = ask_operator;
|
|
37
|
-
exports.selectOperator = selectOperator;
|
|
38
49
|
exports.he_pin_one_click_ask_operator = void 0;
|
|
50
|
+
exports.selectOperator = selectOperator;
|
|
39
51
|
|
|
40
|
-
require("
|
|
52
|
+
require("core-js/modules/es.object.to-string.js");
|
|
53
|
+
|
|
54
|
+
require("core-js/modules/es.promise.js");
|
|
41
55
|
|
|
42
56
|
var RDS = _interopRequireWildcard(require("../../../common-types/RemoteDataState"));
|
|
43
57
|
|
|
@@ -45,25 +59,27 @@ var _utils = require("../utils");
|
|
|
45
59
|
|
|
46
60
|
var _ = require("..");
|
|
47
61
|
|
|
48
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
62
|
+
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); }
|
|
49
63
|
|
|
50
|
-
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; }
|
|
64
|
+
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
65
|
|
|
52
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
66
|
+
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; }
|
|
53
67
|
|
|
54
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
68
|
+
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; }
|
|
55
69
|
|
|
56
70
|
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; }
|
|
57
71
|
|
|
72
|
+
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; }
|
|
73
|
+
|
|
58
74
|
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); } }
|
|
59
75
|
|
|
60
76
|
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); }); }; }
|
|
61
77
|
|
|
62
78
|
function ask_operator() {
|
|
63
79
|
return /*#__PURE__*/function () {
|
|
64
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
80
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
|
|
65
81
|
var operators;
|
|
66
|
-
return
|
|
82
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
67
83
|
while (1) {
|
|
68
84
|
switch (_context.prev = _context.next) {
|
|
69
85
|
case 0:
|
|
@@ -105,9 +121,9 @@ function ask_operator() {
|
|
|
105
121
|
|
|
106
122
|
var he_pin_one_click_ask_operator = function he_pin_one_click_ask_operator(flowObj) {
|
|
107
123
|
return /*#__PURE__*/function () {
|
|
108
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
124
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dispatch) {
|
|
109
125
|
var heResult, msisdn, operator;
|
|
110
|
-
return
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
111
127
|
while (1) {
|
|
112
128
|
switch (_context2.prev = _context2.next) {
|
|
113
129
|
case 0:
|