@twilio/conversations 2.2.2 → 2.3.0-rc.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/builds/browser.js +629 -25
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +501 -3
- package/builds/lib.js +620 -25
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +887 -267
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/aggregated-delivery-receipt.js +9 -0
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/client.js +19 -0
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +9 -0
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +9 -0
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +184 -0
- package/dist/content-client.js.map +1 -0
- package/dist/content-template.js +310 -0
- package/dist/content-template.js.map +1 -0
- package/dist/conversation.js +9 -0
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +9 -0
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +13 -0
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +9 -0
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +9 -0
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +9 -0
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/attributes.js +9 -0
- package/dist/interfaces/attributes.js.map +1 -1
- package/dist/interfaces/notification-types.js +9 -0
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/logger.js +9 -0
- package/dist/logger.js.map +1 -1
- package/dist/media.js +9 -0
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +28 -0
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +94 -0
- package/dist/message.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +9 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +10 -1
- package/dist/packages/conversations/package.json.js.map +1 -1
- package/dist/participant.js +9 -0
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +9 -0
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +9 -0
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +9 -0
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +9 -0
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +9 -0
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +9 -0
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +9 -0
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +9 -0
- package/dist/util/index.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/Client.html +24 -0
- package/docs/classes/ContentTemplate.html +3116 -0
- package/docs/classes/ContentTemplateVariable.html +3116 -0
- package/docs/classes/Message.html +47 -0
- package/docs/classes/MessageBuilder.html +41 -0
- package/docs/index.html +813 -0
- package/docs/modules.html +813 -0
- package/package.json +9 -8
@@ -130,6 +130,15 @@ this.Twilio = this.Twilio || {};
|
|
130
130
|
this.Twilio.Conversations = (function (exports) {
|
131
131
|
'use strict';
|
132
132
|
|
133
|
+
var global =
|
134
|
+
typeof global !== "undefined"
|
135
|
+
? global
|
136
|
+
: typeof self !== "undefined"
|
137
|
+
? self
|
138
|
+
: typeof window !== "undefined"
|
139
|
+
? window
|
140
|
+
: {};
|
141
|
+
|
133
142
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
134
143
|
|
135
144
|
function getAugmentedNamespace(n) {
|
@@ -164,7 +173,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
164
173
|
|
165
174
|
var objectGetOwnPropertyDescriptor = {};
|
166
175
|
|
167
|
-
var fails$
|
176
|
+
var fails$B = function (exec) {
|
168
177
|
try {
|
169
178
|
return !!exec();
|
170
179
|
} catch (error) {
|
@@ -172,10 +181,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
172
181
|
}
|
173
182
|
};
|
174
183
|
|
175
|
-
var fails$
|
184
|
+
var fails$A = fails$B;
|
176
185
|
|
177
186
|
// Detect IE8's incomplete defineProperty implementation
|
178
|
-
var descriptors = !fails$
|
187
|
+
var descriptors = !fails$A(function () {
|
179
188
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
180
189
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
181
190
|
});
|
@@ -211,13 +220,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
211
220
|
return toString$e.call(it).slice(8, -1);
|
212
221
|
};
|
213
222
|
|
214
|
-
var fails$
|
223
|
+
var fails$z = fails$B;
|
215
224
|
var classof$b = classofRaw$1;
|
216
225
|
|
217
226
|
var split = ''.split;
|
218
227
|
|
219
228
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
220
|
-
var indexedObject = fails$
|
229
|
+
var indexedObject = fails$z(function () {
|
221
230
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
222
231
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
223
232
|
return !Object('z').propertyIsEnumerable(0);
|
@@ -240,7 +249,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
240
249
|
return IndexedObject$4(requireObjectCoercible$9(it));
|
241
250
|
};
|
242
251
|
|
243
|
-
var isObject$
|
252
|
+
var isObject$p = function (it) {
|
244
253
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
245
254
|
};
|
246
255
|
|
@@ -283,10 +292,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
283
292
|
/* eslint-disable es/no-symbol -- required for testing */
|
284
293
|
|
285
294
|
var V8_VERSION$3 = engineV8Version;
|
286
|
-
var fails$
|
295
|
+
var fails$y = fails$B;
|
287
296
|
|
288
297
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
289
|
-
var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$
|
298
|
+
var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$y(function () {
|
290
299
|
var symbol = Symbol();
|
291
300
|
// Chrome 38 Symbol has incorrect toString conversion
|
292
301
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
@@ -313,15 +322,15 @@ this.Twilio.Conversations = (function (exports) {
|
|
313
322
|
return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
|
314
323
|
};
|
315
324
|
|
316
|
-
var isObject$
|
325
|
+
var isObject$o = isObject$p;
|
317
326
|
|
318
327
|
// `OrdinaryToPrimitive` abstract operation
|
319
328
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
320
329
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
321
330
|
var fn, val;
|
322
|
-
if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$
|
323
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject$
|
324
|
-
if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$
|
331
|
+
if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
|
332
|
+
if (typeof (fn = input.valueOf) == 'function' && !isObject$o(val = fn.call(input))) return val;
|
333
|
+
if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
|
325
334
|
throw TypeError("Can't convert object to primitive value");
|
326
335
|
};
|
327
336
|
|
@@ -402,7 +411,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
402
411
|
} return WellKnownSymbolsStore$1[name];
|
403
412
|
};
|
404
413
|
|
405
|
-
var isObject$
|
414
|
+
var isObject$n = isObject$p;
|
406
415
|
var isSymbol$5 = isSymbol$6;
|
407
416
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
408
417
|
var wellKnownSymbol$r = wellKnownSymbol$s;
|
@@ -412,13 +421,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
412
421
|
// `ToPrimitive` abstract operation
|
413
422
|
// https://tc39.es/ecma262/#sec-toprimitive
|
414
423
|
var toPrimitive$2 = function (input, pref) {
|
415
|
-
if (!isObject$
|
424
|
+
if (!isObject$n(input) || isSymbol$5(input)) return input;
|
416
425
|
var exoticToPrim = input[TO_PRIMITIVE$1];
|
417
426
|
var result;
|
418
427
|
if (exoticToPrim !== undefined) {
|
419
428
|
if (pref === undefined) pref = 'default';
|
420
429
|
result = exoticToPrim.call(input, pref);
|
421
|
-
if (!isObject$
|
430
|
+
if (!isObject$n(result) || isSymbol$5(result)) return result;
|
422
431
|
throw TypeError("Can't convert object to primitive value");
|
423
432
|
}
|
424
433
|
if (pref === undefined) pref = 'number';
|
@@ -436,22 +445,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
436
445
|
};
|
437
446
|
|
438
447
|
var global$x = global$D;
|
439
|
-
var isObject$
|
448
|
+
var isObject$m = isObject$p;
|
440
449
|
|
441
450
|
var document$3 = global$x.document;
|
442
451
|
// typeof document.createElement is 'object' in old IE
|
443
|
-
var EXISTS = isObject$
|
452
|
+
var EXISTS = isObject$m(document$3) && isObject$m(document$3.createElement);
|
444
453
|
|
445
454
|
var documentCreateElement$2 = function (it) {
|
446
455
|
return EXISTS ? document$3.createElement(it) : {};
|
447
456
|
};
|
448
457
|
|
449
458
|
var DESCRIPTORS$i = descriptors;
|
450
|
-
var fails$
|
459
|
+
var fails$x = fails$B;
|
451
460
|
var createElement$1 = documentCreateElement$2;
|
452
461
|
|
453
462
|
// Thank's IE8 for his funny defineProperty
|
454
|
-
var ie8DomDefine = !DESCRIPTORS$i && !fails$
|
463
|
+
var ie8DomDefine = !DESCRIPTORS$i && !fails$x(function () {
|
455
464
|
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
456
465
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
457
466
|
get: function () { return 7; }
|
@@ -482,10 +491,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
482
491
|
|
483
492
|
var objectDefineProperty = {};
|
484
493
|
|
485
|
-
var isObject$
|
494
|
+
var isObject$l = isObject$p;
|
486
495
|
|
487
496
|
var anObject$k = function (it) {
|
488
|
-
if (!isObject$
|
497
|
+
if (!isObject$l(it)) {
|
489
498
|
throw TypeError(String(it) + ' is not an object');
|
490
499
|
} return it;
|
491
500
|
};
|
@@ -558,7 +567,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
558
567
|
|
559
568
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
560
569
|
var global$v = global$D;
|
561
|
-
var isObject$
|
570
|
+
var isObject$k = isObject$p;
|
562
571
|
var createNonEnumerableProperty$b = createNonEnumerableProperty$c;
|
563
572
|
var objectHas = has$g;
|
564
573
|
var shared$2 = sharedStore;
|
@@ -576,7 +585,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
576
585
|
var getterFor = function (TYPE) {
|
577
586
|
return function (it) {
|
578
587
|
var state;
|
579
|
-
if (!isObject$
|
588
|
+
if (!isObject$k(it) || (state = get$2(it)).type !== TYPE) {
|
580
589
|
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
581
590
|
} return state;
|
582
591
|
};
|
@@ -784,19 +793,19 @@ this.Twilio.Conversations = (function (exports) {
|
|
784
793
|
var anObject$i = anObject$k;
|
785
794
|
|
786
795
|
// all object keys, includes non-enumerable and symbols
|
787
|
-
var ownKeys$
|
796
|
+
var ownKeys$9 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
|
788
797
|
var keys = getOwnPropertyNamesModule$2.f(anObject$i(it));
|
789
798
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
|
790
799
|
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
791
800
|
};
|
792
801
|
|
793
802
|
var has$a = has$g;
|
794
|
-
var ownKeys$
|
803
|
+
var ownKeys$8 = ownKeys$9;
|
795
804
|
var getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor;
|
796
805
|
var definePropertyModule$6 = objectDefineProperty;
|
797
806
|
|
798
807
|
var copyConstructorProperties$2 = function (target, source) {
|
799
|
-
var keys = ownKeys$
|
808
|
+
var keys = ownKeys$8(source);
|
800
809
|
var defineProperty = definePropertyModule$6.f;
|
801
810
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$3.f;
|
802
811
|
for (var i = 0; i < keys.length; i++) {
|
@@ -805,7 +814,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
805
814
|
}
|
806
815
|
};
|
807
816
|
|
808
|
-
var fails$
|
817
|
+
var fails$w = fails$B;
|
809
818
|
|
810
819
|
var replacement = /#|\.prototype\./;
|
811
820
|
|
@@ -813,7 +822,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
813
822
|
var value = data[normalize(feature)];
|
814
823
|
return value == POLYFILL ? true
|
815
824
|
: value == NATIVE ? false
|
816
|
-
: typeof detection == 'function' ? fails$
|
825
|
+
: typeof detection == 'function' ? fails$w(detection)
|
817
826
|
: !!detection;
|
818
827
|
};
|
819
828
|
|
@@ -894,11 +903,11 @@ this.Twilio.Conversations = (function (exports) {
|
|
894
903
|
}
|
895
904
|
};
|
896
905
|
|
897
|
-
var $$
|
906
|
+
var $$y = _export;
|
898
907
|
var global$s = global$D;
|
899
908
|
var setToStringTag$8 = setToStringTag$9;
|
900
909
|
|
901
|
-
$$
|
910
|
+
$$y({ global: true }, { Reflect: {} });
|
902
911
|
|
903
912
|
// Reflect[@@toStringTag] property
|
904
913
|
// https://tc39.es/ecma262/#sec-reflect-@@tostringtag
|
@@ -1027,7 +1036,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1027
1036
|
};
|
1028
1037
|
|
1029
1038
|
var aFunction$8 = aFunction$9;
|
1030
|
-
var isObject$
|
1039
|
+
var isObject$j = isObject$p;
|
1031
1040
|
|
1032
1041
|
var slice = [].slice;
|
1033
1042
|
var factories = {};
|
@@ -1049,18 +1058,18 @@ this.Twilio.Conversations = (function (exports) {
|
|
1049
1058
|
var args = partArgs.concat(slice.call(arguments));
|
1050
1059
|
return this instanceof boundFunction ? construct$1(fn, args.length, args) : fn.apply(that, args);
|
1051
1060
|
};
|
1052
|
-
if (isObject$
|
1061
|
+
if (isObject$j(fn.prototype)) boundFunction.prototype = fn.prototype;
|
1053
1062
|
return boundFunction;
|
1054
1063
|
};
|
1055
1064
|
|
1056
|
-
var $$
|
1065
|
+
var $$x = _export;
|
1057
1066
|
var getBuiltIn$5 = getBuiltIn$a;
|
1058
1067
|
var aFunction$7 = aFunction$9;
|
1059
1068
|
var anObject$f = anObject$k;
|
1060
|
-
var isObject$
|
1069
|
+
var isObject$i = isObject$p;
|
1061
1070
|
var create$7 = objectCreate;
|
1062
1071
|
var bind$8 = functionBind;
|
1063
|
-
var fails$
|
1072
|
+
var fails$v = fails$B;
|
1064
1073
|
|
1065
1074
|
var nativeConstruct = getBuiltIn$5('Reflect', 'construct');
|
1066
1075
|
|
@@ -1068,16 +1077,16 @@ this.Twilio.Conversations = (function (exports) {
|
|
1068
1077
|
// https://tc39.es/ecma262/#sec-reflect.construct
|
1069
1078
|
// MS Edge supports only 2 arguments and argumentsList argument is optional
|
1070
1079
|
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
|
1071
|
-
var NEW_TARGET_BUG = fails$
|
1080
|
+
var NEW_TARGET_BUG = fails$v(function () {
|
1072
1081
|
function F() { /* empty */ }
|
1073
1082
|
return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
|
1074
1083
|
});
|
1075
|
-
var ARGS_BUG = !fails$
|
1084
|
+
var ARGS_BUG = !fails$v(function () {
|
1076
1085
|
nativeConstruct(function () { /* empty */ });
|
1077
1086
|
});
|
1078
1087
|
var FORCED$9 = NEW_TARGET_BUG || ARGS_BUG;
|
1079
1088
|
|
1080
|
-
$$
|
1089
|
+
$$x({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, {
|
1081
1090
|
construct: function construct(Target, args /* , newTarget */) {
|
1082
1091
|
aFunction$7(Target);
|
1083
1092
|
anObject$f(args);
|
@@ -1099,22 +1108,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
1099
1108
|
}
|
1100
1109
|
// with altered newTarget, not support built-in constructors
|
1101
1110
|
var proto = newTarget.prototype;
|
1102
|
-
var instance = create$7(isObject$
|
1111
|
+
var instance = create$7(isObject$i(proto) ? proto : Object.prototype);
|
1103
1112
|
var result = Function.apply.call(Target, instance, args);
|
1104
|
-
return isObject$
|
1113
|
+
return isObject$i(result) ? result : instance;
|
1105
1114
|
}
|
1106
1115
|
});
|
1107
1116
|
|
1108
|
-
var $$
|
1117
|
+
var $$w = _export;
|
1109
1118
|
var toObject$e = toObject$g;
|
1110
1119
|
var nativeKeys = objectKeys$4;
|
1111
|
-
var fails$
|
1120
|
+
var fails$u = fails$B;
|
1112
1121
|
|
1113
|
-
var FAILS_ON_PRIMITIVES$
|
1122
|
+
var FAILS_ON_PRIMITIVES$2 = fails$u(function () { nativeKeys(1); });
|
1114
1123
|
|
1115
1124
|
// `Object.keys` method
|
1116
1125
|
// https://tc39.es/ecma262/#sec-object.keys
|
1117
|
-
$$
|
1126
|
+
$$w({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, {
|
1118
1127
|
keys: function keys(it) {
|
1119
1128
|
return nativeKeys(toObject$e(it));
|
1120
1129
|
}
|
@@ -1210,7 +1219,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1210
1219
|
};
|
1211
1220
|
};
|
1212
1221
|
|
1213
|
-
var isObject$
|
1222
|
+
var isObject$h = isObject$p;
|
1214
1223
|
var isArray$3 = isArray$4;
|
1215
1224
|
var wellKnownSymbol$o = wellKnownSymbol$s;
|
1216
1225
|
|
@@ -1224,7 +1233,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1224
1233
|
C = originalArray.constructor;
|
1225
1234
|
// cross-realm fallback
|
1226
1235
|
if (typeof C == 'function' && (C === Array || isArray$3(C.prototype))) C = undefined;
|
1227
|
-
else if (isObject$
|
1236
|
+
else if (isObject$h(C)) {
|
1228
1237
|
C = C[SPECIES$6];
|
1229
1238
|
if (C === null) C = undefined;
|
1230
1239
|
}
|
@@ -1312,15 +1321,15 @@ this.Twilio.Conversations = (function (exports) {
|
|
1312
1321
|
filterReject: createMethod$4(7)
|
1313
1322
|
};
|
1314
1323
|
|
1315
|
-
var $$
|
1324
|
+
var $$v = _export;
|
1316
1325
|
var global$q = global$D;
|
1317
1326
|
var getBuiltIn$4 = getBuiltIn$a;
|
1318
1327
|
var DESCRIPTORS$d = descriptors;
|
1319
1328
|
var NATIVE_SYMBOL = nativeSymbol$1;
|
1320
|
-
var fails$
|
1329
|
+
var fails$t = fails$B;
|
1321
1330
|
var has$7 = has$g;
|
1322
1331
|
var isArray$2 = isArray$4;
|
1323
|
-
var isObject$
|
1332
|
+
var isObject$g = isObject$p;
|
1324
1333
|
var isSymbol$2 = isSymbol$6;
|
1325
1334
|
var anObject$e = anObject$k;
|
1326
1335
|
var toObject$c = toObject$g;
|
@@ -1372,7 +1381,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1372
1381
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
|
1373
1382
|
|
1374
1383
|
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
1375
|
-
var setSymbolDescriptor = DESCRIPTORS$d && fails$
|
1384
|
+
var setSymbolDescriptor = DESCRIPTORS$d && fails$t(function () {
|
1376
1385
|
return nativeObjectCreate(nativeDefineProperty$1({}, 'a', {
|
1377
1386
|
get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
|
1378
1387
|
})).a != 7;
|
@@ -1513,7 +1522,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1513
1522
|
}
|
1514
1523
|
}
|
1515
1524
|
|
1516
|
-
$$
|
1525
|
+
$$v({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
1517
1526
|
Symbol: $Symbol$1
|
1518
1527
|
});
|
1519
1528
|
|
@@ -1521,7 +1530,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1521
1530
|
defineWellKnownSymbol$1(name);
|
1522
1531
|
});
|
1523
1532
|
|
1524
|
-
$$
|
1533
|
+
$$v({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
1525
1534
|
// `Symbol.for` method
|
1526
1535
|
// https://tc39.es/ecma262/#sec-symbol.for
|
1527
1536
|
'for': function (key) {
|
@@ -1542,7 +1551,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1542
1551
|
useSimple: function () { USE_SETTER = false; }
|
1543
1552
|
});
|
1544
1553
|
|
1545
|
-
$$
|
1554
|
+
$$v({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$d }, {
|
1546
1555
|
// `Object.create` method
|
1547
1556
|
// https://tc39.es/ecma262/#sec-object.create
|
1548
1557
|
create: $create,
|
@@ -1557,7 +1566,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1557
1566
|
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
1558
1567
|
});
|
1559
1568
|
|
1560
|
-
$$
|
1569
|
+
$$v({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
1561
1570
|
// `Object.getOwnPropertyNames` method
|
1562
1571
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
1563
1572
|
getOwnPropertyNames: $getOwnPropertyNames,
|
@@ -1568,7 +1577,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1568
1577
|
|
1569
1578
|
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
1570
1579
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
1571
|
-
$$
|
1580
|
+
$$v({ target: 'Object', stat: true, forced: fails$t(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
|
1572
1581
|
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
1573
1582
|
return getOwnPropertySymbolsModule$1.f(toObject$c(it));
|
1574
1583
|
}
|
@@ -1577,7 +1586,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1577
1586
|
// `JSON.stringify` method behavior with symbols
|
1578
1587
|
// https://tc39.es/ecma262/#sec-json.stringify
|
1579
1588
|
if ($stringify$1) {
|
1580
|
-
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$
|
1589
|
+
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$t(function () {
|
1581
1590
|
var symbol = $Symbol$1();
|
1582
1591
|
// MS Edge converts symbol values to JSON as {}
|
1583
1592
|
return $stringify$1([symbol]) != '[null]'
|
@@ -1587,7 +1596,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1587
1596
|
|| $stringify$1(Object(symbol)) != '{}';
|
1588
1597
|
});
|
1589
1598
|
|
1590
|
-
$$
|
1599
|
+
$$v({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
1591
1600
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1592
1601
|
stringify: function stringify(it, replacer, space) {
|
1593
1602
|
var args = [it];
|
@@ -1595,7 +1604,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1595
1604
|
var $replacer;
|
1596
1605
|
while (arguments.length > index) args.push(arguments[index++]);
|
1597
1606
|
$replacer = replacer;
|
1598
|
-
if (!isObject$
|
1607
|
+
if (!isObject$g(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
|
1599
1608
|
if (!isArray$2(replacer)) replacer = function (key, value) {
|
1600
1609
|
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
1601
1610
|
if (!isSymbol$2(value)) return value;
|
@@ -1617,7 +1626,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1617
1626
|
|
1618
1627
|
hiddenKeys$1[HIDDEN] = true;
|
1619
1628
|
|
1620
|
-
var fails$
|
1629
|
+
var fails$s = fails$B;
|
1621
1630
|
var wellKnownSymbol$m = wellKnownSymbol$s;
|
1622
1631
|
var V8_VERSION$2 = engineV8Version;
|
1623
1632
|
|
@@ -1627,7 +1636,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1627
1636
|
// We can't use this feature detection in V8 since it causes
|
1628
1637
|
// deoptimization and serious performance degradation
|
1629
1638
|
// https://github.com/zloirock/core-js/issues/677
|
1630
|
-
return V8_VERSION$2 >= 51 || !fails$
|
1639
|
+
return V8_VERSION$2 >= 51 || !fails$s(function () {
|
1631
1640
|
var array = [];
|
1632
1641
|
var constructor = array.constructor = {};
|
1633
1642
|
constructor[SPECIES$5] = function () {
|
@@ -1637,7 +1646,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
1637
1646
|
});
|
1638
1647
|
};
|
1639
1648
|
|
1640
|
-
var $$
|
1649
|
+
var $$u = _export;
|
1641
1650
|
var $filter$1 = arrayIteration.filter;
|
1642
1651
|
var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;
|
1643
1652
|
|
@@ -1646,24 +1655,24 @@ this.Twilio.Conversations = (function (exports) {
|
|
1646
1655
|
// `Array.prototype.filter` method
|
1647
1656
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
1648
1657
|
// with adding support of @@species
|
1649
|
-
$$
|
1658
|
+
$$u({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
1650
1659
|
filter: function filter(callbackfn /* , thisArg */) {
|
1651
1660
|
return $filter$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1652
1661
|
}
|
1653
1662
|
});
|
1654
1663
|
|
1655
|
-
var $$
|
1656
|
-
var fails$
|
1664
|
+
var $$t = _export;
|
1665
|
+
var fails$r = fails$B;
|
1657
1666
|
var toIndexedObject$6 = toIndexedObject$c;
|
1658
1667
|
var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
1659
1668
|
var DESCRIPTORS$c = descriptors;
|
1660
1669
|
|
1661
|
-
var FAILS_ON_PRIMITIVES = fails$
|
1662
|
-
var FORCED$8 = !DESCRIPTORS$c || FAILS_ON_PRIMITIVES;
|
1670
|
+
var FAILS_ON_PRIMITIVES$1 = fails$r(function () { nativeGetOwnPropertyDescriptor$1(1); });
|
1671
|
+
var FORCED$8 = !DESCRIPTORS$c || FAILS_ON_PRIMITIVES$1;
|
1663
1672
|
|
1664
1673
|
// `Object.getOwnPropertyDescriptor` method
|
1665
1674
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
1666
|
-
$$
|
1675
|
+
$$t({ target: 'Object', stat: true, forced: FORCED$8, sham: !DESCRIPTORS$c }, {
|
1667
1676
|
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
1668
1677
|
return nativeGetOwnPropertyDescriptor$1(toIndexedObject$6(it), key);
|
1669
1678
|
}
|
@@ -1679,20 +1688,20 @@ this.Twilio.Conversations = (function (exports) {
|
|
1679
1688
|
else object[propertyKey] = value;
|
1680
1689
|
};
|
1681
1690
|
|
1682
|
-
var $$
|
1691
|
+
var $$s = _export;
|
1683
1692
|
var DESCRIPTORS$b = descriptors;
|
1684
|
-
var ownKeys$
|
1693
|
+
var ownKeys$7 = ownKeys$9;
|
1685
1694
|
var toIndexedObject$5 = toIndexedObject$c;
|
1686
1695
|
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
1687
1696
|
var createProperty$4 = createProperty$5;
|
1688
1697
|
|
1689
1698
|
// `Object.getOwnPropertyDescriptors` method
|
1690
1699
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
|
1691
|
-
$$
|
1700
|
+
$$s({ target: 'Object', stat: true, sham: !DESCRIPTORS$b }, {
|
1692
1701
|
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
1693
1702
|
var O = toIndexedObject$5(object);
|
1694
1703
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
1695
|
-
var keys = ownKeys$
|
1704
|
+
var keys = ownKeys$7(O);
|
1696
1705
|
var result = {};
|
1697
1706
|
var index = 0;
|
1698
1707
|
var key, descriptor;
|
@@ -1908,10 +1917,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
1908
1917
|
return target;
|
1909
1918
|
};
|
1910
1919
|
|
1911
|
-
var isObject$
|
1920
|
+
var isObject$f = isObject$p;
|
1912
1921
|
|
1913
1922
|
var aPossiblePrototype$1 = function (it) {
|
1914
|
-
if (!isObject$
|
1923
|
+
if (!isObject$f(it) && it !== null) {
|
1915
1924
|
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
1916
1925
|
} return it;
|
1917
1926
|
};
|
@@ -2148,7 +2157,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2148
2157
|
var engineIsNode = classof$6(global$o.process) == 'process';
|
2149
2158
|
|
2150
2159
|
var global$n = global$D;
|
2151
|
-
var fails$
|
2160
|
+
var fails$q = fails$B;
|
2152
2161
|
var bind$5 = functionBindContext;
|
2153
2162
|
var html = html$2;
|
2154
2163
|
var createElement = documentCreateElement$2;
|
@@ -2235,7 +2244,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2235
2244
|
typeof postMessage == 'function' &&
|
2236
2245
|
!global$n.importScripts &&
|
2237
2246
|
location && location.protocol !== 'file:' &&
|
2238
|
-
!fails$
|
2247
|
+
!fails$q(post)
|
2239
2248
|
) {
|
2240
2249
|
defer = post;
|
2241
2250
|
global$n.addEventListener('message', listener, false);
|
@@ -2375,12 +2384,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
2375
2384
|
};
|
2376
2385
|
|
2377
2386
|
var anObject$8 = anObject$k;
|
2378
|
-
var isObject$
|
2387
|
+
var isObject$e = isObject$p;
|
2379
2388
|
var newPromiseCapability$1 = newPromiseCapability$2;
|
2380
2389
|
|
2381
2390
|
var promiseResolve$1 = function (C, x) {
|
2382
2391
|
anObject$8(C);
|
2383
|
-
if (isObject$
|
2392
|
+
if (isObject$e(x) && x.constructor === C) return x;
|
2384
2393
|
var promiseCapability = newPromiseCapability$1.f(C);
|
2385
2394
|
var resolve = promiseCapability.resolve;
|
2386
2395
|
resolve(x);
|
@@ -2406,7 +2415,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2406
2415
|
|
2407
2416
|
var engineIsBrowser = typeof window == 'object';
|
2408
2417
|
|
2409
|
-
var $$
|
2418
|
+
var $$r = _export;
|
2410
2419
|
var global$j = global$D;
|
2411
2420
|
var getBuiltIn$2 = getBuiltIn$a;
|
2412
2421
|
var NativePromise = nativePromiseConstructor;
|
@@ -2415,7 +2424,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2415
2424
|
var setPrototypeOf$6 = objectSetPrototypeOf;
|
2416
2425
|
var setToStringTag$6 = setToStringTag$9;
|
2417
2426
|
var setSpecies$3 = setSpecies$4;
|
2418
|
-
var isObject$
|
2427
|
+
var isObject$d = isObject$p;
|
2419
2428
|
var aFunction$3 = aFunction$9;
|
2420
2429
|
var anInstance$6 = anInstance$7;
|
2421
2430
|
var inspectSource = inspectSource$3;
|
@@ -2491,7 +2500,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2491
2500
|
// helpers
|
2492
2501
|
var isThenable = function (it) {
|
2493
2502
|
var then;
|
2494
|
-
return isObject$
|
2503
|
+
return isObject$d(it) && typeof (then = it.then) == 'function' ? then : false;
|
2495
2504
|
};
|
2496
2505
|
|
2497
2506
|
var notify = function (state, isReject) {
|
@@ -2721,7 +2730,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2721
2730
|
}
|
2722
2731
|
}
|
2723
2732
|
|
2724
|
-
$$
|
2733
|
+
$$r({ global: true, wrap: true, forced: FORCED$7 }, {
|
2725
2734
|
Promise: PromiseConstructor
|
2726
2735
|
});
|
2727
2736
|
|
@@ -2731,7 +2740,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2731
2740
|
PromiseWrapper = getBuiltIn$2(PROMISE);
|
2732
2741
|
|
2733
2742
|
// statics
|
2734
|
-
$$
|
2743
|
+
$$r({ target: PROMISE, stat: true, forced: FORCED$7 }, {
|
2735
2744
|
// `Promise.reject` method
|
2736
2745
|
// https://tc39.es/ecma262/#sec-promise.reject
|
2737
2746
|
reject: function reject(r) {
|
@@ -2741,7 +2750,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2741
2750
|
}
|
2742
2751
|
});
|
2743
2752
|
|
2744
|
-
$$
|
2753
|
+
$$r({ target: PROMISE, stat: true, forced: FORCED$7 }, {
|
2745
2754
|
// `Promise.resolve` method
|
2746
2755
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
2747
2756
|
resolve: function resolve(x) {
|
@@ -2749,7 +2758,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2749
2758
|
}
|
2750
2759
|
});
|
2751
2760
|
|
2752
|
-
$$
|
2761
|
+
$$r({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION$1 }, {
|
2753
2762
|
// `Promise.all` method
|
2754
2763
|
// https://tc39.es/ecma262/#sec-promise.all
|
2755
2764
|
all: function all(iterable) {
|
@@ -2796,7 +2805,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2796
2805
|
}
|
2797
2806
|
});
|
2798
2807
|
|
2799
|
-
var $$
|
2808
|
+
var $$q = _export;
|
2800
2809
|
var $map$1 = arrayIteration.map;
|
2801
2810
|
var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;
|
2802
2811
|
|
@@ -2805,7 +2814,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
2805
2814
|
// `Array.prototype.map` method
|
2806
2815
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
2807
2816
|
// with adding support of @@species
|
2808
|
-
$$
|
2817
|
+
$$q({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
2809
2818
|
map: function map(callbackfn /* , thisArg */) {
|
2810
2819
|
return $map$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
2811
2820
|
}
|
@@ -2855,11 +2864,11 @@ this.Twilio.Conversations = (function (exports) {
|
|
2855
2864
|
|
2856
2865
|
var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
|
2857
2866
|
|
2858
|
-
var fails$
|
2867
|
+
var fails$p = fails$B;
|
2859
2868
|
|
2860
2869
|
var arrayMethodIsStrict$5 = function (METHOD_NAME, argument) {
|
2861
2870
|
var method = [][METHOD_NAME];
|
2862
|
-
return !!method && fails$
|
2871
|
+
return !!method && fails$p(function () {
|
2863
2872
|
// eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
|
2864
2873
|
method.call(null, argument || function () { throw 1; }, 1);
|
2865
2874
|
});
|
@@ -3601,10 +3610,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
3601
3610
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof$3(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
3602
3611
|
}
|
3603
3612
|
|
3604
|
-
var $$
|
3605
|
-
var fails$
|
3613
|
+
var $$p = _export;
|
3614
|
+
var fails$o = fails$B;
|
3606
3615
|
var isArray$1 = isArray$4;
|
3607
|
-
var isObject$
|
3616
|
+
var isObject$c = isObject$p;
|
3608
3617
|
var toObject$b = toObject$g;
|
3609
3618
|
var toLength$k = toLength$o;
|
3610
3619
|
var createProperty$3 = createProperty$5;
|
@@ -3620,7 +3629,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3620
3629
|
// We can't use this feature detection in V8 since it causes
|
3621
3630
|
// deoptimization and serious performance degradation
|
3622
3631
|
// https://github.com/zloirock/core-js/issues/679
|
3623
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
3632
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$o(function () {
|
3624
3633
|
var array = [];
|
3625
3634
|
array[IS_CONCAT_SPREADABLE] = false;
|
3626
3635
|
return array.concat()[0] !== array;
|
@@ -3629,7 +3638,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3629
3638
|
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
|
3630
3639
|
|
3631
3640
|
var isConcatSpreadable = function (O) {
|
3632
|
-
if (!isObject$
|
3641
|
+
if (!isObject$c(O)) return false;
|
3633
3642
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
3634
3643
|
return spreadable !== undefined ? !!spreadable : isArray$1(O);
|
3635
3644
|
};
|
@@ -3639,7 +3648,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3639
3648
|
// `Array.prototype.concat` method
|
3640
3649
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
3641
3650
|
// with adding support of @@isConcatSpreadable and @@species
|
3642
|
-
$$
|
3651
|
+
$$p({ target: 'Array', proto: true, forced: FORCED$6 }, {
|
3643
3652
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
3644
3653
|
concat: function concat(arg) {
|
3645
3654
|
var O = toObject$b(this);
|
@@ -3716,7 +3725,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3716
3725
|
return result;
|
3717
3726
|
};
|
3718
3727
|
|
3719
|
-
var $$
|
3728
|
+
var $$o = _export;
|
3720
3729
|
var from = arrayFrom$1;
|
3721
3730
|
var checkCorrectnessOfIteration$2 = checkCorrectnessOfIteration$4;
|
3722
3731
|
|
@@ -3727,7 +3736,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3727
3736
|
|
3728
3737
|
// `Array.from` method
|
3729
3738
|
// https://tc39.es/ecma262/#sec-array.from
|
3730
|
-
$$
|
3739
|
+
$$o({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
3731
3740
|
from: from
|
3732
3741
|
});
|
3733
3742
|
|
@@ -3760,9 +3769,9 @@ this.Twilio.Conversations = (function (exports) {
|
|
3760
3769
|
charAt: createMethod$3(true)
|
3761
3770
|
};
|
3762
3771
|
|
3763
|
-
var fails$
|
3772
|
+
var fails$n = fails$B;
|
3764
3773
|
|
3765
|
-
var correctPrototypeGetter = !fails$
|
3774
|
+
var correctPrototypeGetter = !fails$n(function () {
|
3766
3775
|
function F() { /* empty */ }
|
3767
3776
|
F.prototype.constructor = null;
|
3768
3777
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
@@ -3788,7 +3797,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3788
3797
|
} return O instanceof Object ? ObjectPrototype$2 : null;
|
3789
3798
|
};
|
3790
3799
|
|
3791
|
-
var fails$
|
3800
|
+
var fails$m = fails$B;
|
3792
3801
|
var getPrototypeOf$4 = objectGetPrototypeOf;
|
3793
3802
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$c;
|
3794
3803
|
var wellKnownSymbol$c = wellKnownSymbol$s;
|
@@ -3811,7 +3820,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3811
3820
|
}
|
3812
3821
|
}
|
3813
3822
|
|
3814
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
3823
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$m(function () {
|
3815
3824
|
var test = {};
|
3816
3825
|
// FF44- legacy iterators case
|
3817
3826
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
@@ -3848,7 +3857,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3848
3857
|
return IteratorConstructor;
|
3849
3858
|
};
|
3850
3859
|
|
3851
|
-
var $$
|
3860
|
+
var $$n = _export;
|
3852
3861
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
3853
3862
|
var getPrototypeOf$3 = objectGetPrototypeOf;
|
3854
3863
|
var setPrototypeOf$5 = objectSetPrototypeOf;
|
@@ -3930,7 +3939,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
3930
3939
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
3931
3940
|
redefine$7(IterablePrototype, KEY, methods[KEY]);
|
3932
3941
|
}
|
3933
|
-
} else $$
|
3942
|
+
} else $$n({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
3934
3943
|
}
|
3935
3944
|
|
3936
3945
|
return methods;
|
@@ -4467,9 +4476,9 @@ this.Twilio.Conversations = (function (exports) {
|
|
4467
4476
|
parse: parse
|
4468
4477
|
};
|
4469
4478
|
|
4470
|
-
function ownKeys$
|
4479
|
+
function ownKeys$6(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; }
|
4471
4480
|
|
4472
|
-
function _objectSpread$
|
4481
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4473
4482
|
var TYPING_TIMEOUT = 5;
|
4474
4483
|
var HTTP_CACHE_LIFETIME = "PT5S";
|
4475
4484
|
var CONSUMPTION_HORIZON_SENDING_INTERVAL = "PT5S";
|
@@ -4510,7 +4519,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4510
4519
|
emailBodiesAllowedContentTypes: configurationResponse.options.email_bodies_allowed_mime_types
|
4511
4520
|
};
|
4512
4521
|
this.typingIndicatorTimeoutOverride = constructorOptions.typingIndicatorTimeoutOverride;
|
4513
|
-
this.backoffConfiguration = _objectSpread$
|
4522
|
+
this.backoffConfiguration = _objectSpread$6({
|
4514
4523
|
min: MINIMUM_RETRY_DELAY$1,
|
4515
4524
|
max: MAXIMUM_RETRY_DELAY$1,
|
4516
4525
|
maxAttemptsCount: MAXIMUM_ATTEMPTS_COUNT
|
@@ -4653,9 +4662,9 @@ this.Twilio.Conversations = (function (exports) {
|
|
4653
4662
|
|
4654
4663
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
4655
4664
|
|
4656
|
-
var $$
|
4665
|
+
var $$m = _export;
|
4657
4666
|
var getBuiltIn$1 = getBuiltIn$a;
|
4658
|
-
var fails$
|
4667
|
+
var fails$l = fails$B;
|
4659
4668
|
|
4660
4669
|
var $stringify = getBuiltIn$1('JSON', 'stringify');
|
4661
4670
|
var re = /[\uD800-\uDFFF]/g;
|
@@ -4670,7 +4679,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4670
4679
|
} return match;
|
4671
4680
|
};
|
4672
4681
|
|
4673
|
-
var FORCED$5 = fails$
|
4682
|
+
var FORCED$5 = fails$l(function () {
|
4674
4683
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
4675
4684
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
4676
4685
|
});
|
@@ -4679,7 +4688,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4679
4688
|
// `JSON.stringify` method
|
4680
4689
|
// https://tc39.es/ecma262/#sec-json.stringify
|
4681
4690
|
// https://github.com/tc39/proposal-well-formed-stringify
|
4682
|
-
$$
|
4691
|
+
$$m({ target: 'JSON', stat: true, forced: FORCED$5 }, {
|
4683
4692
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
4684
4693
|
stringify: function stringify(it, replacer, space) {
|
4685
4694
|
var result = $stringify.apply(null, arguments);
|
@@ -4688,7 +4697,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4688
4697
|
});
|
4689
4698
|
}
|
4690
4699
|
|
4691
|
-
var isObject$
|
4700
|
+
var isObject$b = isObject$p;
|
4692
4701
|
var setPrototypeOf$4 = objectSetPrototypeOf;
|
4693
4702
|
|
4694
4703
|
// makes subclassing work correct for wrapped built-ins
|
@@ -4700,7 +4709,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4700
4709
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
4701
4710
|
typeof (NewTarget = dummy.constructor) == 'function' &&
|
4702
4711
|
NewTarget !== Wrapper &&
|
4703
|
-
isObject$
|
4712
|
+
isObject$b(NewTargetPrototype = NewTarget.prototype) &&
|
4704
4713
|
NewTargetPrototype !== Wrapper.prototype
|
4705
4714
|
) setPrototypeOf$4($this, NewTargetPrototype);
|
4706
4715
|
return $this;
|
@@ -4749,7 +4758,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4749
4758
|
var inheritIfRequired$2 = inheritIfRequired$3;
|
4750
4759
|
var isSymbol$1 = isSymbol$6;
|
4751
4760
|
var toPrimitive = toPrimitive$2;
|
4752
|
-
var fails$
|
4761
|
+
var fails$k = fails$B;
|
4753
4762
|
var create$4 = objectCreate;
|
4754
4763
|
var getOwnPropertyNames$2 = objectGetOwnPropertyNames.f;
|
4755
4764
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
@@ -4801,7 +4810,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
4801
4810
|
var dummy = this;
|
4802
4811
|
return dummy instanceof NumberWrapper
|
4803
4812
|
// check on 1..constructor(foo) case
|
4804
|
-
&& (BROKEN_CLASSOF ? fails$
|
4813
|
+
&& (BROKEN_CLASSOF ? fails$k(function () { NumberPrototype.valueOf.call(dummy); }) : classof$5(dummy) != NUMBER)
|
4805
4814
|
? inheritIfRequired$2(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
|
4806
4815
|
};
|
4807
4816
|
for (var keys$1 = DESCRIPTORS$9 ? getOwnPropertyNames$2(NativeNumber) : (
|
@@ -4840,43 +4849,43 @@ this.Twilio.Conversations = (function (exports) {
|
|
4840
4849
|
|
4841
4850
|
var regexpStickyHelpers = {};
|
4842
4851
|
|
4843
|
-
var fails$
|
4852
|
+
var fails$j = fails$B;
|
4844
4853
|
var global$f = global$D;
|
4845
4854
|
|
4846
4855
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
4847
4856
|
var $RegExp$2 = global$f.RegExp;
|
4848
4857
|
|
4849
|
-
regexpStickyHelpers.UNSUPPORTED_Y = fails$
|
4858
|
+
regexpStickyHelpers.UNSUPPORTED_Y = fails$j(function () {
|
4850
4859
|
var re = $RegExp$2('a', 'y');
|
4851
4860
|
re.lastIndex = 2;
|
4852
4861
|
return re.exec('abcd') != null;
|
4853
4862
|
});
|
4854
4863
|
|
4855
|
-
regexpStickyHelpers.BROKEN_CARET = fails$
|
4864
|
+
regexpStickyHelpers.BROKEN_CARET = fails$j(function () {
|
4856
4865
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
4857
4866
|
var re = $RegExp$2('^r', 'gy');
|
4858
4867
|
re.lastIndex = 2;
|
4859
4868
|
return re.exec('str') != null;
|
4860
4869
|
});
|
4861
4870
|
|
4862
|
-
var fails$
|
4871
|
+
var fails$i = fails$B;
|
4863
4872
|
var global$e = global$D;
|
4864
4873
|
|
4865
4874
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
4866
4875
|
var $RegExp$1 = global$e.RegExp;
|
4867
4876
|
|
4868
|
-
var regexpUnsupportedDotAll = fails$
|
4877
|
+
var regexpUnsupportedDotAll = fails$i(function () {
|
4869
4878
|
var re = $RegExp$1('.', 's');
|
4870
4879
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
4871
4880
|
});
|
4872
4881
|
|
4873
|
-
var fails$
|
4882
|
+
var fails$h = fails$B;
|
4874
4883
|
var global$d = global$D;
|
4875
4884
|
|
4876
4885
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
4877
4886
|
var $RegExp = global$d.RegExp;
|
4878
4887
|
|
4879
|
-
var regexpUnsupportedNcg = fails$
|
4888
|
+
var regexpUnsupportedNcg = fails$h(function () {
|
4880
4889
|
var re = $RegExp('(?<a>b)', 'g');
|
4881
4890
|
return re.exec('b').groups.a !== 'b' ||
|
4882
4891
|
'b'.replace(re, '$<a>c') !== 'bc';
|
@@ -4995,12 +5004,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
4995
5004
|
|
4996
5005
|
var regexpExec$3 = patchedExec;
|
4997
5006
|
|
4998
|
-
var $$
|
5007
|
+
var $$l = _export;
|
4999
5008
|
var exec = regexpExec$3;
|
5000
5009
|
|
5001
5010
|
// `RegExp.prototype.exec` method
|
5002
5011
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
5003
|
-
$$
|
5012
|
+
$$l({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
5004
5013
|
exec: exec
|
5005
5014
|
});
|
5006
5015
|
|
@@ -5008,7 +5017,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5008
5017
|
|
5009
5018
|
var redefine$5 = redefine$d.exports;
|
5010
5019
|
var regexpExec$2 = regexpExec$3;
|
5011
|
-
var fails$
|
5020
|
+
var fails$g = fails$B;
|
5012
5021
|
var wellKnownSymbol$8 = wellKnownSymbol$s;
|
5013
5022
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$c;
|
5014
5023
|
|
@@ -5018,14 +5027,14 @@ this.Twilio.Conversations = (function (exports) {
|
|
5018
5027
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
5019
5028
|
var SYMBOL = wellKnownSymbol$8(KEY);
|
5020
5029
|
|
5021
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
5030
|
+
var DELEGATES_TO_SYMBOL = !fails$g(function () {
|
5022
5031
|
// String methods call symbol-named RegEp methods
|
5023
5032
|
var O = {};
|
5024
5033
|
O[SYMBOL] = function () { return 7; };
|
5025
5034
|
return ''[KEY](O) != 7;
|
5026
5035
|
});
|
5027
5036
|
|
5028
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
5037
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$g(function () {
|
5029
5038
|
// Symbol-named RegExp methods call .exec
|
5030
5039
|
var execCalled = false;
|
5031
5040
|
var re = /a/;
|
@@ -5149,7 +5158,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5149
5158
|
};
|
5150
5159
|
|
5151
5160
|
var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic;
|
5152
|
-
var fails$
|
5161
|
+
var fails$f = fails$B;
|
5153
5162
|
var anObject$5 = anObject$k;
|
5154
5163
|
var toInteger$6 = toInteger$a;
|
5155
5164
|
var toLength$i = toLength$o;
|
@@ -5183,7 +5192,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5183
5192
|
return false;
|
5184
5193
|
})();
|
5185
5194
|
|
5186
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
5195
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$f(function () {
|
5187
5196
|
var re = /./;
|
5188
5197
|
re.exec = function () {
|
5189
5198
|
var result = [];
|
@@ -5275,7 +5284,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5275
5284
|
];
|
5276
5285
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
5277
5286
|
|
5278
|
-
var $$
|
5287
|
+
var $$k = _export;
|
5279
5288
|
var IndexedObject$2 = indexedObject;
|
5280
5289
|
var toIndexedObject$3 = toIndexedObject$c;
|
5281
5290
|
var arrayMethodIsStrict$3 = arrayMethodIsStrict$5;
|
@@ -5287,7 +5296,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5287
5296
|
|
5288
5297
|
// `Array.prototype.join` method
|
5289
5298
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
5290
|
-
$$
|
5299
|
+
$$k({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
|
5291
5300
|
join: function join(separator) {
|
5292
5301
|
return nativeJoin.call(toIndexedObject$3(this), separator === undefined ? ',' : separator);
|
5293
5302
|
}
|
@@ -5385,8 +5394,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5385
5394
|
|
5386
5395
|
var browser$7 = {};
|
5387
5396
|
|
5388
|
-
var $$
|
5389
|
-
var isObject$
|
5397
|
+
var $$j = _export;
|
5398
|
+
var isObject$a = isObject$p;
|
5390
5399
|
var isArray = isArray$4;
|
5391
5400
|
var toAbsoluteIndex$4 = toAbsoluteIndex$6;
|
5392
5401
|
var toLength$h = toLength$o;
|
@@ -5404,7 +5413,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5404
5413
|
// `Array.prototype.slice` method
|
5405
5414
|
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5406
5415
|
// fallback for not array-like ES3 strings and DOM objects
|
5407
|
-
$$
|
5416
|
+
$$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
5408
5417
|
slice: function slice(start, end) {
|
5409
5418
|
var O = toIndexedObject$2(this);
|
5410
5419
|
var length = toLength$h(O.length);
|
@@ -5417,7 +5426,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5417
5426
|
// cross-realm fallback
|
5418
5427
|
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5419
5428
|
Constructor = undefined;
|
5420
|
-
} else if (isObject$
|
5429
|
+
} else if (isObject$a(Constructor)) {
|
5421
5430
|
Constructor = Constructor[SPECIES];
|
5422
5431
|
if (Constructor === null) Constructor = undefined;
|
5423
5432
|
}
|
@@ -5434,8 +5443,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5434
5443
|
|
5435
5444
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
5436
5445
|
|
5437
|
-
var $$
|
5438
|
-
var isObject$
|
5446
|
+
var $$i = _export;
|
5447
|
+
var isObject$9 = isObject$p;
|
5439
5448
|
|
5440
5449
|
var DELEGATES_TO_EXEC = function () {
|
5441
5450
|
var execCalled = false;
|
@@ -5451,24 +5460,24 @@ this.Twilio.Conversations = (function (exports) {
|
|
5451
5460
|
|
5452
5461
|
// `RegExp.prototype.test` method
|
5453
5462
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
5454
|
-
$$
|
5463
|
+
$$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
5455
5464
|
test: function (str) {
|
5456
5465
|
if (typeof this.exec !== 'function') {
|
5457
5466
|
return nativeTest.call(this, str);
|
5458
5467
|
}
|
5459
5468
|
var result = this.exec(str);
|
5460
|
-
if (result !== null && !isObject$
|
5469
|
+
if (result !== null && !isObject$9(result)) {
|
5461
5470
|
throw new Error('RegExp exec method returned something other than an Object or null');
|
5462
5471
|
}
|
5463
5472
|
return !!result;
|
5464
5473
|
}
|
5465
5474
|
});
|
5466
5475
|
|
5467
|
-
var $$
|
5476
|
+
var $$h = _export;
|
5468
5477
|
var DESCRIPTORS$8 = descriptors;
|
5469
5478
|
var global$c = global$D;
|
5470
5479
|
var has$4 = has$g;
|
5471
|
-
var isObject$
|
5480
|
+
var isObject$8 = isObject$p;
|
5472
5481
|
var defineProperty$7 = objectDefineProperty.f;
|
5473
5482
|
var copyConstructorProperties = copyConstructorProperties$2;
|
5474
5483
|
|
@@ -5499,7 +5508,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5499
5508
|
defineProperty$7(symbolPrototype, 'description', {
|
5500
5509
|
configurable: true,
|
5501
5510
|
get: function description() {
|
5502
|
-
var symbol = isObject$
|
5511
|
+
var symbol = isObject$8(this) ? this.valueOf() : this;
|
5503
5512
|
var string = symbolToString.call(symbol);
|
5504
5513
|
if (has$4(EmptyStringDescriptionStore, symbol)) return '';
|
5505
5514
|
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
@@ -5507,7 +5516,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
5507
5516
|
}
|
5508
5517
|
});
|
5509
5518
|
|
5510
|
-
$$
|
5519
|
+
$$h({ global: true, forced: true }, {
|
5511
5520
|
Symbol: SymbolWrapper
|
5512
5521
|
});
|
5513
5522
|
}
|
@@ -5831,13 +5840,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
5831
5840
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5832
5841
|
})(getPrototypeOf$2);
|
5833
5842
|
|
5834
|
-
var $$
|
5843
|
+
var $$g = _export;
|
5835
5844
|
var $includes$1 = arrayIncludes.includes;
|
5836
5845
|
var addToUnscopables$1 = addToUnscopables$3;
|
5837
5846
|
|
5838
5847
|
// `Array.prototype.includes` method
|
5839
5848
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
5840
|
-
$$
|
5849
|
+
$$g({ target: 'Array', proto: true }, {
|
5841
5850
|
includes: function includes(el /* , fromIndex = 0 */) {
|
5842
5851
|
return $includes$1(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
5843
5852
|
}
|
@@ -5846,22 +5855,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
5846
5855
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
5847
5856
|
addToUnscopables$1('includes');
|
5848
5857
|
|
5849
|
-
var isObject$
|
5858
|
+
var isObject$7 = isObject$p;
|
5850
5859
|
|
5851
5860
|
var floor$5 = Math.floor;
|
5852
5861
|
|
5853
5862
|
// `Number.isInteger` method implementation
|
5854
5863
|
// https://tc39.es/ecma262/#sec-number.isinteger
|
5855
5864
|
var isInteger$3 = function isInteger(it) {
|
5856
|
-
return !isObject$
|
5865
|
+
return !isObject$7(it) && isFinite(it) && floor$5(it) === it;
|
5857
5866
|
};
|
5858
5867
|
|
5859
|
-
var $$
|
5868
|
+
var $$f = _export;
|
5860
5869
|
var isInteger$2 = isInteger$3;
|
5861
5870
|
|
5862
5871
|
// `Number.isInteger` method
|
5863
5872
|
// https://tc39.es/ecma262/#sec-number.isinteger
|
5864
|
-
$$
|
5873
|
+
$$f({ target: 'Number', stat: true }, {
|
5865
5874
|
isInteger: isInteger$2
|
5866
5875
|
});
|
5867
5876
|
|
@@ -5898,12 +5907,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
5898
5907
|
values: createMethod$1(false)
|
5899
5908
|
};
|
5900
5909
|
|
5901
|
-
var $$
|
5910
|
+
var $$e = _export;
|
5902
5911
|
var $entries = objectToArray.entries;
|
5903
5912
|
|
5904
5913
|
// `Object.entries` method
|
5905
5914
|
// https://tc39.es/ecma262/#sec-object.entries
|
5906
|
-
$$
|
5915
|
+
$$e({ target: 'Object', stat: true }, {
|
5907
5916
|
entries: function entries(O) {
|
5908
5917
|
return $entries(O);
|
5909
5918
|
}
|
@@ -9975,22 +9984,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
9975
9984
|
|
9976
9985
|
var internalMetadata = {exports: {}};
|
9977
9986
|
|
9978
|
-
var fails$
|
9987
|
+
var fails$e = fails$B;
|
9979
9988
|
|
9980
|
-
var freezing = !fails$
|
9989
|
+
var freezing = !fails$e(function () {
|
9981
9990
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
9982
9991
|
return Object.isExtensible(Object.preventExtensions({}));
|
9983
9992
|
});
|
9984
9993
|
|
9985
|
-
var $$
|
9994
|
+
var $$d = _export;
|
9986
9995
|
var hiddenKeys = hiddenKeys$6;
|
9987
|
-
var isObject$
|
9996
|
+
var isObject$6 = isObject$p;
|
9988
9997
|
var has$3 = has$g;
|
9989
9998
|
var defineProperty$4 = objectDefineProperty.f;
|
9990
9999
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
9991
10000
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
9992
10001
|
var uid$1 = uid$5;
|
9993
|
-
var FREEZING = freezing;
|
10002
|
+
var FREEZING$1 = freezing;
|
9994
10003
|
|
9995
10004
|
var REQUIRED = false;
|
9996
10005
|
var METADATA = uid$1('meta');
|
@@ -10010,7 +10019,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
10010
10019
|
|
10011
10020
|
var fastKey$1 = function (it, create) {
|
10012
10021
|
// return a primitive with prefix
|
10013
|
-
if (!isObject$
|
10022
|
+
if (!isObject$6(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
10014
10023
|
if (!has$3(it, METADATA)) {
|
10015
10024
|
// can't set metadata to uncaught frozen object
|
10016
10025
|
if (!isExtensible(it)) return 'F';
|
@@ -10035,8 +10044,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
10035
10044
|
};
|
10036
10045
|
|
10037
10046
|
// add metadata on freeze-family methods calling
|
10038
|
-
var onFreeze = function (it) {
|
10039
|
-
if (FREEZING && REQUIRED && isExtensible(it) && !has$3(it, METADATA)) setMetadata(it);
|
10047
|
+
var onFreeze$1 = function (it) {
|
10048
|
+
if (FREEZING$1 && REQUIRED && isExtensible(it) && !has$3(it, METADATA)) setMetadata(it);
|
10040
10049
|
return it;
|
10041
10050
|
};
|
10042
10051
|
|
@@ -10060,7 +10069,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
10060
10069
|
} return result;
|
10061
10070
|
};
|
10062
10071
|
|
10063
|
-
$$
|
10072
|
+
$$d({ target: 'Object', stat: true, forced: true }, {
|
10064
10073
|
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
10065
10074
|
});
|
10066
10075
|
}
|
@@ -10070,20 +10079,20 @@ this.Twilio.Conversations = (function (exports) {
|
|
10070
10079
|
enable: enable,
|
10071
10080
|
fastKey: fastKey$1,
|
10072
10081
|
getWeakData: getWeakData,
|
10073
|
-
onFreeze: onFreeze
|
10082
|
+
onFreeze: onFreeze$1
|
10074
10083
|
};
|
10075
10084
|
|
10076
10085
|
hiddenKeys[METADATA] = true;
|
10077
10086
|
|
10078
|
-
var $$
|
10087
|
+
var $$c = _export;
|
10079
10088
|
var global$b = global$D;
|
10080
10089
|
var isForced = isForced_1;
|
10081
10090
|
var redefine$4 = redefine$d.exports;
|
10082
10091
|
var InternalMetadataModule = internalMetadata.exports;
|
10083
10092
|
var iterate$1 = iterate$3;
|
10084
10093
|
var anInstance$5 = anInstance$7;
|
10085
|
-
var isObject$
|
10086
|
-
var fails$
|
10094
|
+
var isObject$5 = isObject$p;
|
10095
|
+
var fails$d = fails$B;
|
10087
10096
|
var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4;
|
10088
10097
|
var setToStringTag$3 = setToStringTag$9;
|
10089
10098
|
var inheritIfRequired$1 = inheritIfRequired$3;
|
@@ -10104,11 +10113,11 @@ this.Twilio.Conversations = (function (exports) {
|
|
10104
10113
|
nativeMethod.call(this, value === 0 ? 0 : value);
|
10105
10114
|
return this;
|
10106
10115
|
} : KEY == 'delete' ? function (key) {
|
10107
|
-
return IS_WEAK && !isObject$
|
10116
|
+
return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
10108
10117
|
} : KEY == 'get' ? function get(key) {
|
10109
|
-
return IS_WEAK && !isObject$
|
10118
|
+
return IS_WEAK && !isObject$5(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
|
10110
10119
|
} : KEY == 'has' ? function has(key) {
|
10111
|
-
return IS_WEAK && !isObject$
|
10120
|
+
return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
10112
10121
|
} : function set(key, value) {
|
10113
10122
|
nativeMethod.call(this, key === 0 ? 0 : key, value);
|
10114
10123
|
return this;
|
@@ -10118,7 +10127,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
10118
10127
|
|
10119
10128
|
var REPLACE = isForced(
|
10120
10129
|
CONSTRUCTOR_NAME,
|
10121
|
-
typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$
|
10130
|
+
typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$d(function () {
|
10122
10131
|
new NativeConstructor().entries().next();
|
10123
10132
|
}))
|
10124
10133
|
);
|
@@ -10132,12 +10141,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
10132
10141
|
// early implementations not supports chaining
|
10133
10142
|
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
10134
10143
|
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
10135
|
-
var THROWS_ON_PRIMITIVES = fails$
|
10144
|
+
var THROWS_ON_PRIMITIVES = fails$d(function () { instance.has(1); });
|
10136
10145
|
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
10137
10146
|
// eslint-disable-next-line no-new -- required for testing
|
10138
10147
|
var ACCEPT_ITERABLES = checkCorrectnessOfIteration$1(function (iterable) { new NativeConstructor(iterable); });
|
10139
10148
|
// for early implementations -0 and +0 not the same
|
10140
|
-
var BUGGY_ZERO = !IS_WEAK && fails$
|
10149
|
+
var BUGGY_ZERO = !IS_WEAK && fails$d(function () {
|
10141
10150
|
// V8 ~ Chromium 42- fails only with 5+ elements
|
10142
10151
|
var $instance = new NativeConstructor();
|
10143
10152
|
var index = 5;
|
@@ -10169,7 +10178,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
10169
10178
|
}
|
10170
10179
|
|
10171
10180
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
10172
|
-
$$
|
10181
|
+
$$c({ global: true, forced: Constructor != NativeConstructor }, exported);
|
10173
10182
|
|
10174
10183
|
setToStringTag$3(Constructor, CONSTRUCTOR_NAME);
|
10175
10184
|
|
@@ -11519,14 +11528,14 @@ this.Twilio.Conversations = (function (exports) {
|
|
11519
11528
|
var redefine$3 = redefine$d.exports;
|
11520
11529
|
var anObject$4 = anObject$k;
|
11521
11530
|
var $toString$2 = toString$d;
|
11522
|
-
var fails$
|
11531
|
+
var fails$c = fails$B;
|
11523
11532
|
var flags = regexpFlags$1;
|
11524
11533
|
|
11525
11534
|
var TO_STRING = 'toString';
|
11526
11535
|
var RegExpPrototype = RegExp.prototype;
|
11527
11536
|
var nativeToString = RegExpPrototype[TO_STRING];
|
11528
11537
|
|
11529
|
-
var NOT_GENERIC = fails$
|
11538
|
+
var NOT_GENERIC = fails$c(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
11530
11539
|
// FF44- RegExp#toString has a wrong name
|
11531
11540
|
var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
11532
11541
|
|
@@ -12485,7 +12494,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
12485
12494
|
var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative;
|
12486
12495
|
var DESCRIPTORS$4 = descriptors;
|
12487
12496
|
var global$a = global$D;
|
12488
|
-
var isObject$
|
12497
|
+
var isObject$4 = isObject$p;
|
12489
12498
|
var has$2 = has$g;
|
12490
12499
|
var classof$3 = classof$9;
|
12491
12500
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$c;
|
@@ -12531,7 +12540,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
12531
12540
|
};
|
12532
12541
|
|
12533
12542
|
var isView = function isView(it) {
|
12534
|
-
if (!isObject$
|
12543
|
+
if (!isObject$4(it)) return false;
|
12535
12544
|
var klass = classof$3(it);
|
12536
12545
|
return klass === 'DataView'
|
12537
12546
|
|| has$2(TypedArrayConstructorsList, klass)
|
@@ -12539,7 +12548,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
12539
12548
|
};
|
12540
12549
|
|
12541
12550
|
var isTypedArray$1 = function (it) {
|
12542
|
-
if (!isObject$
|
12551
|
+
if (!isObject$4(it)) return false;
|
12543
12552
|
var klass = classof$3(it);
|
12544
12553
|
return has$2(TypedArrayConstructorsList, klass)
|
12545
12554
|
|| has$2(BigIntArrayConstructorsList, klass);
|
@@ -12634,7 +12643,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
12634
12643
|
if (DESCRIPTORS$4 && !has$2(TypedArrayPrototype$1, TO_STRING_TAG)) {
|
12635
12644
|
TYPED_ARRAY_TAG_REQIRED = true;
|
12636
12645
|
defineProperty$2(TypedArrayPrototype$1, TO_STRING_TAG, { get: function () {
|
12637
|
-
return isObject$
|
12646
|
+
return isObject$4(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
|
12638
12647
|
} });
|
12639
12648
|
for (NAME in TypedArrayConstructorsList) if (global$a[NAME]) {
|
12640
12649
|
createNonEnumerableProperty$2(global$a[NAME], TYPED_ARRAY_TAG$1, NAME);
|
@@ -12658,23 +12667,23 @@ this.Twilio.Conversations = (function (exports) {
|
|
12658
12667
|
/* eslint-disable no-new -- required for testing */
|
12659
12668
|
|
12660
12669
|
var global$9 = global$D;
|
12661
|
-
var fails$
|
12670
|
+
var fails$b = fails$B;
|
12662
12671
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$4;
|
12663
12672
|
var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
12664
12673
|
|
12665
12674
|
var ArrayBuffer$3 = global$9.ArrayBuffer;
|
12666
12675
|
var Int8Array$2 = global$9.Int8Array;
|
12667
12676
|
|
12668
|
-
var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$
|
12677
|
+
var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$b(function () {
|
12669
12678
|
Int8Array$2(1);
|
12670
|
-
}) || !fails$
|
12679
|
+
}) || !fails$b(function () {
|
12671
12680
|
new Int8Array$2(-1);
|
12672
12681
|
}) || !checkCorrectnessOfIteration(function (iterable) {
|
12673
12682
|
new Int8Array$2();
|
12674
12683
|
new Int8Array$2(null);
|
12675
12684
|
new Int8Array$2(1.5);
|
12676
12685
|
new Int8Array$2(iterable);
|
12677
|
-
}, true) || fails$
|
12686
|
+
}, true) || fails$b(function () {
|
12678
12687
|
// Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
|
12679
12688
|
return new Int8Array$2(new ArrayBuffer$3(2), 1, undefined).length !== 1;
|
12680
12689
|
});
|
@@ -12801,7 +12810,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
12801
12810
|
var NATIVE_ARRAY_BUFFER = arrayBufferNative;
|
12802
12811
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$c;
|
12803
12812
|
var redefineAll$1 = redefineAll$4;
|
12804
|
-
var fails$
|
12813
|
+
var fails$a = fails$B;
|
12805
12814
|
var anInstance$3 = anInstance$7;
|
12806
12815
|
var toInteger$4 = toInteger$a;
|
12807
12816
|
var toLength$e = toLength$o;
|
@@ -12972,11 +12981,11 @@ this.Twilio.Conversations = (function (exports) {
|
|
12972
12981
|
});
|
12973
12982
|
} else {
|
12974
12983
|
/* eslint-disable no-new -- required for testing */
|
12975
|
-
if (!fails$
|
12984
|
+
if (!fails$a(function () {
|
12976
12985
|
NativeArrayBuffer$1(1);
|
12977
|
-
}) || !fails$
|
12986
|
+
}) || !fails$a(function () {
|
12978
12987
|
new NativeArrayBuffer$1(-1);
|
12979
|
-
}) || fails$
|
12988
|
+
}) || fails$a(function () {
|
12980
12989
|
new NativeArrayBuffer$1();
|
12981
12990
|
new NativeArrayBuffer$1(1.5);
|
12982
12991
|
new NativeArrayBuffer$1(NaN);
|
@@ -13074,7 +13083,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13074
13083
|
return result;
|
13075
13084
|
};
|
13076
13085
|
|
13077
|
-
var $$
|
13086
|
+
var $$b = _export;
|
13078
13087
|
var global$7 = global$D;
|
13079
13088
|
var DESCRIPTORS$2 = descriptors;
|
13080
13089
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
|
@@ -13090,7 +13099,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13090
13099
|
var toPropertyKey = toPropertyKey$5;
|
13091
13100
|
var has$1 = has$g;
|
13092
13101
|
var classof$2 = classof$9;
|
13093
|
-
var isObject$
|
13102
|
+
var isObject$3 = isObject$p;
|
13094
13103
|
var isSymbol = isSymbol$6;
|
13095
13104
|
var create$1 = objectCreate;
|
13096
13105
|
var setPrototypeOf = objectSetPrototypeOf;
|
@@ -13158,7 +13167,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13158
13167
|
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
|
13159
13168
|
key = toPropertyKey(key);
|
13160
13169
|
if (isTypedArrayIndex(target, key)
|
13161
|
-
&& isObject$
|
13170
|
+
&& isObject$3(descriptor)
|
13162
13171
|
&& has$1(descriptor, 'value')
|
13163
13172
|
&& !has$1(descriptor, 'get')
|
13164
13173
|
&& !has$1(descriptor, 'set')
|
@@ -13182,7 +13191,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13182
13191
|
addGetter(TypedArrayPrototype, 'length');
|
13183
13192
|
}
|
13184
13193
|
|
13185
|
-
$$
|
13194
|
+
$$b({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
|
13186
13195
|
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
|
13187
13196
|
defineProperty: wrappedDefineProperty
|
13188
13197
|
});
|
@@ -13226,7 +13235,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13226
13235
|
var index = 0;
|
13227
13236
|
var byteOffset = 0;
|
13228
13237
|
var buffer, byteLength, length;
|
13229
|
-
if (!isObject$
|
13238
|
+
if (!isObject$3(data)) {
|
13230
13239
|
length = toIndex(data);
|
13231
13240
|
byteLength = length * BYTES;
|
13232
13241
|
buffer = new ArrayBuffer$2(byteLength);
|
@@ -13264,7 +13273,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13264
13273
|
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
|
13265
13274
|
anInstance$2(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
|
13266
13275
|
return inheritIfRequired(function () {
|
13267
|
-
if (!isObject$
|
13276
|
+
if (!isObject$3(data)) return new NativeTypedArrayConstructor(toIndex(data));
|
13268
13277
|
if (isArrayBuffer(data)) return $length !== undefined
|
13269
13278
|
? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length)
|
13270
13279
|
: typedArrayOffset !== undefined
|
@@ -13296,7 +13305,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13296
13305
|
|
13297
13306
|
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
|
13298
13307
|
|
13299
|
-
$$
|
13308
|
+
$$b({
|
13300
13309
|
global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
|
13301
13310
|
}, exported);
|
13302
13311
|
|
@@ -13685,12 +13694,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
13685
13694
|
var toLength$8 = toLength$o;
|
13686
13695
|
var toOffset = toOffset$2;
|
13687
13696
|
var toObject$3 = toObject$g;
|
13688
|
-
var fails$
|
13697
|
+
var fails$9 = fails$B;
|
13689
13698
|
|
13690
13699
|
var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray;
|
13691
13700
|
var exportTypedArrayMethod$7 = ArrayBufferViewCore$6.exportTypedArrayMethod;
|
13692
13701
|
|
13693
|
-
var FORCED$3 = fails$
|
13702
|
+
var FORCED$3 = fails$9(function () {
|
13694
13703
|
// eslint-disable-next-line es/no-typed-arrays -- required for testing
|
13695
13704
|
new Int8Array(1).set({});
|
13696
13705
|
});
|
@@ -13710,13 +13719,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
13710
13719
|
|
13711
13720
|
var ArrayBufferViewCore$5 = arrayBufferViewCore;
|
13712
13721
|
var typedArraySpeciesConstructor$1 = typedArraySpeciesConstructor$4;
|
13713
|
-
var fails$
|
13722
|
+
var fails$8 = fails$B;
|
13714
13723
|
|
13715
13724
|
var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
|
13716
13725
|
var exportTypedArrayMethod$6 = ArrayBufferViewCore$5.exportTypedArrayMethod;
|
13717
13726
|
var $slice$1 = [].slice;
|
13718
13727
|
|
13719
|
-
var FORCED$2 = fails$
|
13728
|
+
var FORCED$2 = fails$8(function () {
|
13720
13729
|
// eslint-disable-next-line es/no-typed-arrays -- required for testing
|
13721
13730
|
new Int8Array(1).slice();
|
13722
13731
|
});
|
@@ -13809,7 +13818,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13809
13818
|
|
13810
13819
|
var ArrayBufferViewCore$3 = arrayBufferViewCore;
|
13811
13820
|
var global$5 = global$D;
|
13812
|
-
var fails$
|
13821
|
+
var fails$7 = fails$B;
|
13813
13822
|
var aFunction$1 = aFunction$9;
|
13814
13823
|
var toLength$7 = toLength$o;
|
13815
13824
|
var internalSort$1 = arraySort;
|
@@ -13824,13 +13833,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
13824
13833
|
var nativeSort$1 = Uint16Array && Uint16Array.prototype.sort;
|
13825
13834
|
|
13826
13835
|
// WebKit
|
13827
|
-
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !fails$
|
13836
|
+
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !fails$7(function () {
|
13828
13837
|
var array = new Uint16Array(2);
|
13829
13838
|
array.sort(null);
|
13830
13839
|
array.sort({});
|
13831
13840
|
});
|
13832
13841
|
|
13833
|
-
var STABLE_SORT$1 = !!nativeSort$1 && !fails$
|
13842
|
+
var STABLE_SORT$1 = !!nativeSort$1 && !fails$7(function () {
|
13834
13843
|
// feature detection can be too slow, so check engines versions
|
13835
13844
|
if (V8$1) return V8$1 < 74;
|
13836
13845
|
if (FF$1) return FF$1 < 67;
|
@@ -13917,7 +13926,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13917
13926
|
|
13918
13927
|
var global$4 = global$D;
|
13919
13928
|
var ArrayBufferViewCore$1 = arrayBufferViewCore;
|
13920
|
-
var fails$
|
13929
|
+
var fails$6 = fails$B;
|
13921
13930
|
|
13922
13931
|
var Int8Array$1 = global$4.Int8Array;
|
13923
13932
|
var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
|
@@ -13926,13 +13935,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
13926
13935
|
var $slice = [].slice;
|
13927
13936
|
|
13928
13937
|
// iOS Safari 6.x fails here
|
13929
|
-
var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$
|
13938
|
+
var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$6(function () {
|
13930
13939
|
$toLocaleString.call(new Int8Array$1(1));
|
13931
13940
|
});
|
13932
13941
|
|
13933
|
-
var FORCED$1 = fails$
|
13942
|
+
var FORCED$1 = fails$6(function () {
|
13934
13943
|
return [1, 2].toLocaleString() != new Int8Array$1([1, 2]).toLocaleString();
|
13935
|
-
}) || !fails$
|
13944
|
+
}) || !fails$6(function () {
|
13936
13945
|
Int8Array$1.prototype.toLocaleString.call([1, 2]);
|
13937
13946
|
});
|
13938
13947
|
|
@@ -13943,7 +13952,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13943
13952
|
}, FORCED$1);
|
13944
13953
|
|
13945
13954
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
13946
|
-
var fails$
|
13955
|
+
var fails$5 = fails$B;
|
13947
13956
|
var global$3 = global$D;
|
13948
13957
|
|
13949
13958
|
var Uint8Array$1 = global$3.Uint8Array;
|
@@ -13951,7 +13960,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13951
13960
|
var arrayToString = [].toString;
|
13952
13961
|
var arrayJoin = [].join;
|
13953
13962
|
|
13954
|
-
if (fails$
|
13963
|
+
if (fails$5(function () { arrayToString.call({}); })) {
|
13955
13964
|
arrayToString = function toString() {
|
13956
13965
|
return arrayJoin.call(this);
|
13957
13966
|
};
|
@@ -13963,7 +13972,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13963
13972
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
|
13964
13973
|
exportTypedArrayMethod$1('toString', arrayToString, IS_NOT_ARRAY_METHOD);
|
13965
13974
|
|
13966
|
-
var isObject$
|
13975
|
+
var isObject$2 = isObject$p;
|
13967
13976
|
var classof$1 = classofRaw$1;
|
13968
13977
|
var wellKnownSymbol$3 = wellKnownSymbol$s;
|
13969
13978
|
|
@@ -13973,7 +13982,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13973
13982
|
// https://tc39.es/ecma262/#sec-isregexp
|
13974
13983
|
var isRegexp = function (it) {
|
13975
13984
|
var isRegExp;
|
13976
|
-
return isObject$
|
13985
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
|
13977
13986
|
};
|
13978
13987
|
|
13979
13988
|
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
@@ -13987,7 +13996,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13987
13996
|
var callRegExpExec = regexpExecAbstract;
|
13988
13997
|
var regexpExec = regexpExec$3;
|
13989
13998
|
var stickyHelpers = regexpStickyHelpers;
|
13990
|
-
var fails$
|
13999
|
+
var fails$4 = fails$B;
|
13991
14000
|
|
13992
14001
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
13993
14002
|
var arrayPush = [].push;
|
@@ -13996,7 +14005,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
13996
14005
|
|
13997
14006
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
13998
14007
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
13999
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$
|
14008
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () {
|
14000
14009
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
14001
14010
|
var re = /(?:)/;
|
14002
14011
|
var originalExec = re.exec;
|
@@ -15498,7 +15507,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
15498
15507
|
];
|
15499
15508
|
});
|
15500
15509
|
|
15501
|
-
var $$
|
15510
|
+
var $$a = _export;
|
15502
15511
|
var toAbsoluteIndex = toAbsoluteIndex$6;
|
15503
15512
|
var toInteger$1 = toInteger$a;
|
15504
15513
|
var toLength$3 = toLength$o;
|
@@ -15517,7 +15526,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
15517
15526
|
// `Array.prototype.splice` method
|
15518
15527
|
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
15519
15528
|
// with adding support of @@species
|
15520
|
-
$$
|
15529
|
+
$$a({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
15521
15530
|
splice: function splice(start, deleteCount /* , ...items */) {
|
15522
15531
|
var O = toObject$2(this);
|
15523
15532
|
var len = toLength$3(O.length);
|
@@ -20004,7 +20013,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
20004
20013
|
var browser$3 = {};
|
20005
20014
|
|
20006
20015
|
var DESCRIPTORS$1 = descriptors;
|
20007
|
-
var fails$
|
20016
|
+
var fails$3 = fails$B;
|
20008
20017
|
var objectKeys = objectKeys$4;
|
20009
20018
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
20010
20019
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
@@ -20018,7 +20027,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
20018
20027
|
|
20019
20028
|
// `Object.assign` method
|
20020
20029
|
// https://tc39.es/ecma262/#sec-object.assign
|
20021
|
-
var objectAssign = !$assign || fails$
|
20030
|
+
var objectAssign = !$assign || fails$3(function () {
|
20022
20031
|
// should have correct order of operations (Edge bug)
|
20023
20032
|
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
20024
20033
|
enumerable: true,
|
@@ -20057,13 +20066,13 @@ this.Twilio.Conversations = (function (exports) {
|
|
20057
20066
|
} return T;
|
20058
20067
|
} : $assign;
|
20059
20068
|
|
20060
|
-
var $$
|
20069
|
+
var $$9 = _export;
|
20061
20070
|
var assign$1 = objectAssign;
|
20062
20071
|
|
20063
20072
|
// `Object.assign` method
|
20064
20073
|
// https://tc39.es/ecma262/#sec-object.assign
|
20065
20074
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
20066
|
-
$$
|
20075
|
+
$$9({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, {
|
20067
20076
|
assign: assign$1
|
20068
20077
|
});
|
20069
20078
|
|
@@ -30642,7 +30651,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
30642
30651
|
}
|
30643
30652
|
}
|
30644
30653
|
|
30645
|
-
function ownKeys$
|
30654
|
+
function ownKeys$5(object, enumerableOnly) {
|
30646
30655
|
var keys = Object.keys(object);
|
30647
30656
|
|
30648
30657
|
if (Object.getOwnPropertySymbols) {
|
@@ -30660,18 +30669,18 @@ this.Twilio.Conversations = (function (exports) {
|
|
30660
30669
|
return keys;
|
30661
30670
|
}
|
30662
30671
|
|
30663
|
-
function _objectSpread$
|
30672
|
+
function _objectSpread$5(target) {
|
30664
30673
|
for (var i = 1; i < arguments.length; i++) {
|
30665
30674
|
var source = arguments[i] != null ? arguments[i] : {};
|
30666
30675
|
|
30667
30676
|
if (i % 2) {
|
30668
|
-
ownKeys$
|
30677
|
+
ownKeys$5(Object(source), true).forEach(function (key) {
|
30669
30678
|
_defineProperty__default['default'](target, key, source[key]);
|
30670
30679
|
});
|
30671
30680
|
} else if (Object.getOwnPropertyDescriptors) {
|
30672
30681
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
30673
30682
|
} else {
|
30674
|
-
ownKeys$
|
30683
|
+
ownKeys$5(Object(source)).forEach(function (key) {
|
30675
30684
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
30676
30685
|
});
|
30677
30686
|
}
|
@@ -30695,7 +30704,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
30695
30704
|
};
|
30696
30705
|
} else {
|
30697
30706
|
var mode = arg.mode || (arg.id ? 'open_or_create' : 'create_new');
|
30698
|
-
return _objectSpread$
|
30707
|
+
return _objectSpread$5(_objectSpread$5({}, arg), {}, {
|
30699
30708
|
mode: mode
|
30700
30709
|
});
|
30701
30710
|
}
|
@@ -32140,7 +32149,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32140
32149
|
} return false;
|
32141
32150
|
};
|
32142
32151
|
|
32143
|
-
var $$
|
32152
|
+
var $$8 = _export;
|
32144
32153
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
32145
32154
|
var toLength$2 = toLength$o;
|
32146
32155
|
var toString$2 = toString$d;
|
@@ -32161,7 +32170,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32161
32170
|
|
32162
32171
|
// `String.prototype.startsWith` method
|
32163
32172
|
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
32164
|
-
$$
|
32173
|
+
$$8({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
32165
32174
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
32166
32175
|
var that = toString$2(requireObjectCoercible$1(this));
|
32167
32176
|
notARegExp$1(searchString);
|
@@ -32173,7 +32182,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32173
32182
|
}
|
32174
32183
|
});
|
32175
32184
|
|
32176
|
-
var $$
|
32185
|
+
var $$7 = _export;
|
32177
32186
|
var $reduce = arrayReduce.left;
|
32178
32187
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$5;
|
32179
32188
|
var CHROME_VERSION = engineV8Version;
|
@@ -32186,19 +32195,19 @@ this.Twilio.Conversations = (function (exports) {
|
|
32186
32195
|
|
32187
32196
|
// `Array.prototype.reduce` method
|
32188
32197
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
32189
|
-
$$
|
32198
|
+
$$7({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
|
32190
32199
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
32191
32200
|
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
|
32192
32201
|
}
|
32193
32202
|
});
|
32194
32203
|
|
32195
|
-
var fails$
|
32204
|
+
var fails$2 = fails$B;
|
32196
32205
|
var wellKnownSymbol$1 = wellKnownSymbol$s;
|
32197
32206
|
var IS_PURE = isPure;
|
32198
32207
|
|
32199
32208
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
32200
32209
|
|
32201
|
-
var nativeUrl = !fails$
|
32210
|
+
var nativeUrl = !fails$2(function () {
|
32202
32211
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
32203
32212
|
var searchParams = url.searchParams;
|
32204
32213
|
var result = '';
|
@@ -32396,7 +32405,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32396
32405
|
|
32397
32406
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
32398
32407
|
|
32399
|
-
var $$
|
32408
|
+
var $$6 = _export;
|
32400
32409
|
var getBuiltIn = getBuiltIn$a;
|
32401
32410
|
var USE_NATIVE_URL$1 = nativeUrl;
|
32402
32411
|
var redefine$1 = redefine$d.exports;
|
@@ -32409,7 +32418,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32409
32418
|
var bind = functionBindContext;
|
32410
32419
|
var classof = classof$9;
|
32411
32420
|
var anObject = anObject$k;
|
32412
|
-
var isObject = isObject$
|
32421
|
+
var isObject$1 = isObject$p;
|
32413
32422
|
var $toString$1 = toString$d;
|
32414
32423
|
var create = objectCreate;
|
32415
32424
|
var createPropertyDescriptor = createPropertyDescriptor$7;
|
@@ -32535,7 +32544,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32535
32544
|
});
|
32536
32545
|
|
32537
32546
|
if (init !== undefined) {
|
32538
|
-
if (isObject(init)) {
|
32547
|
+
if (isObject$1(init)) {
|
32539
32548
|
iteratorMethod = getIteratorMethod(init);
|
32540
32549
|
if (typeof iteratorMethod === 'function') {
|
32541
32550
|
iterator = getIterator(init, iteratorMethod);
|
@@ -32710,14 +32719,14 @@ this.Twilio.Conversations = (function (exports) {
|
|
32710
32719
|
|
32711
32720
|
setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
32712
32721
|
|
32713
|
-
$$
|
32722
|
+
$$6({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
32714
32723
|
URLSearchParams: URLSearchParamsConstructor
|
32715
32724
|
});
|
32716
32725
|
|
32717
32726
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
32718
32727
|
if (!USE_NATIVE_URL$1 && typeof Headers == 'function') {
|
32719
32728
|
var wrapRequestOptions = function (init) {
|
32720
|
-
if (isObject(init)) {
|
32729
|
+
if (isObject$1(init)) {
|
32721
32730
|
var body = init.body;
|
32722
32731
|
var headers;
|
32723
32732
|
if (classof(body) === URL_SEARCH_PARAMS) {
|
@@ -32734,7 +32743,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32734
32743
|
};
|
32735
32744
|
|
32736
32745
|
if (typeof nativeFetch == 'function') {
|
32737
|
-
$$
|
32746
|
+
$$6({ global: true, enumerable: true, forced: true }, {
|
32738
32747
|
fetch: function fetch(input /* , init */) {
|
32739
32748
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
32740
32749
|
}
|
@@ -32750,7 +32759,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32750
32759
|
RequestPrototype.constructor = RequestConstructor;
|
32751
32760
|
RequestConstructor.prototype = RequestPrototype;
|
32752
32761
|
|
32753
|
-
$$
|
32762
|
+
$$6({ global: true, forced: true }, {
|
32754
32763
|
Request: RequestConstructor
|
32755
32764
|
});
|
32756
32765
|
}
|
@@ -32763,7 +32772,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
32763
32772
|
|
32764
32773
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
32765
32774
|
|
32766
|
-
var $$
|
32775
|
+
var $$5 = _export;
|
32767
32776
|
var DESCRIPTORS = descriptors;
|
32768
32777
|
var USE_NATIVE_URL = nativeUrl;
|
32769
32778
|
var global$2 = global$D;
|
@@ -33764,7 +33773,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
33764
33773
|
|
33765
33774
|
setToStringTag(URLConstructor, 'URL');
|
33766
33775
|
|
33767
|
-
$$
|
33776
|
+
$$5({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
33768
33777
|
URL: URLConstructor
|
33769
33778
|
});
|
33770
33779
|
|
@@ -34850,7 +34859,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
34850
34859
|
return Network;
|
34851
34860
|
}();
|
34852
34861
|
|
34853
|
-
var version = "0.6.
|
34862
|
+
var version = "0.6.4-rc.1";
|
34854
34863
|
|
34855
34864
|
var _class;
|
34856
34865
|
|
@@ -35239,7 +35248,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
35239
35248
|
return (k < 0 || k >= len) ? undefined : O[k];
|
35240
35249
|
});
|
35241
35250
|
|
35242
|
-
var $$
|
35251
|
+
var $$4 = _export;
|
35243
35252
|
var global$1 = global$D;
|
35244
35253
|
var arrayBufferModule = arrayBuffer;
|
35245
35254
|
var setSpecies = setSpecies$4;
|
@@ -35250,7 +35259,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
35250
35259
|
|
35251
35260
|
// `ArrayBuffer` constructor
|
35252
35261
|
// https://tc39.es/ecma262/#sec-arraybuffer-constructor
|
35253
|
-
$$
|
35262
|
+
$$4({ global: true, forced: NativeArrayBuffer !== ArrayBuffer$1 }, {
|
35254
35263
|
ArrayBuffer: ArrayBuffer$1
|
35255
35264
|
});
|
35256
35265
|
|
@@ -36096,12 +36105,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
36096
36105
|
* @property {Participant#UpdateReason[]} updateReasons - Array of Participant's updated event reasons
|
36097
36106
|
*/
|
36098
36107
|
|
36099
|
-
var $$
|
36108
|
+
var $$3 = _export;
|
36100
36109
|
var aFunction = aFunction$9;
|
36101
36110
|
var toObject = toObject$g;
|
36102
36111
|
var toLength = toLength$o;
|
36103
36112
|
var toString$1 = toString$d;
|
36104
|
-
var fails = fails$
|
36113
|
+
var fails$1 = fails$B;
|
36105
36114
|
var internalSort = arraySort;
|
36106
36115
|
var arrayMethodIsStrict = arrayMethodIsStrict$5;
|
36107
36116
|
var FF = engineFfVersion;
|
@@ -36113,17 +36122,17 @@ this.Twilio.Conversations = (function (exports) {
|
|
36113
36122
|
var nativeSort = test.sort;
|
36114
36123
|
|
36115
36124
|
// IE8-
|
36116
|
-
var FAILS_ON_UNDEFINED = fails(function () {
|
36125
|
+
var FAILS_ON_UNDEFINED = fails$1(function () {
|
36117
36126
|
test.sort(undefined);
|
36118
36127
|
});
|
36119
36128
|
// V8 bug
|
36120
|
-
var FAILS_ON_NULL = fails(function () {
|
36129
|
+
var FAILS_ON_NULL = fails$1(function () {
|
36121
36130
|
test.sort(null);
|
36122
36131
|
});
|
36123
36132
|
// Old WebKit
|
36124
36133
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
36125
36134
|
|
36126
|
-
var STABLE_SORT = !fails(function () {
|
36135
|
+
var STABLE_SORT = !fails$1(function () {
|
36127
36136
|
// feature detection can be too slow, so check engines versions
|
36128
36137
|
if (V8) return V8 < 70;
|
36129
36138
|
if (FF && FF > 3) return;
|
@@ -36171,7 +36180,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36171
36180
|
|
36172
36181
|
// `Array.prototype.sort` method
|
36173
36182
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
36174
|
-
$$
|
36183
|
+
$$3({ target: 'Array', proto: true, forced: FORCED }, {
|
36175
36184
|
sort: function sort(comparefn) {
|
36176
36185
|
if (comparefn !== undefined) aFunction(comparefn);
|
36177
36186
|
|
@@ -36198,7 +36207,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36198
36207
|
}
|
36199
36208
|
});
|
36200
36209
|
|
36201
|
-
var $$
|
36210
|
+
var $$2 = _export;
|
36202
36211
|
var notARegExp = notARegexp;
|
36203
36212
|
var requireObjectCoercible = requireObjectCoercible$a;
|
36204
36213
|
var toString = toString$d;
|
@@ -36206,7 +36215,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36206
36215
|
|
36207
36216
|
// `String.prototype.includes` method
|
36208
36217
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
36209
|
-
$$
|
36218
|
+
$$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
36210
36219
|
includes: function includes(searchString /* , position = 0 */) {
|
36211
36220
|
return !!~toString(requireObjectCoercible(this))
|
36212
36221
|
.indexOf(toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
|
@@ -36738,18 +36747,260 @@ this.Twilio.Conversations = (function (exports) {
|
|
36738
36747
|
var deprecated_1 = browser.deprecated = deprecated;
|
36739
36748
|
var deprecationWarning_1 = browser.deprecationWarning = deprecationWarning;
|
36740
36749
|
|
36741
|
-
|
36750
|
+
var collectActions = function collectActions(actions) {
|
36751
|
+
return actions.map(function (action) {
|
36752
|
+
var _action$id, _action$index, _action$phone, _action$url;
|
36742
36753
|
|
36743
|
-
|
36754
|
+
var rawData = JSON.stringify(action);
|
36755
|
+
|
36756
|
+
switch (action.type) {
|
36757
|
+
case "QUICK_REPLY":
|
36758
|
+
return {
|
36759
|
+
type: "reply",
|
36760
|
+
title: action.title,
|
36761
|
+
id: (_action$id = action.id) !== null && _action$id !== void 0 ? _action$id : "",
|
36762
|
+
index: (_action$index = action.index) !== null && _action$index !== void 0 ? _action$index : 0,
|
36763
|
+
rawData: rawData
|
36764
|
+
};
|
36765
|
+
|
36766
|
+
case "PHONE_NUMBER":
|
36767
|
+
return {
|
36768
|
+
type: "phone",
|
36769
|
+
title: action.title,
|
36770
|
+
phone: (_action$phone = action.phone) !== null && _action$phone !== void 0 ? _action$phone : "",
|
36771
|
+
rawData: rawData
|
36772
|
+
};
|
36773
|
+
|
36774
|
+
case "URL":
|
36775
|
+
return {
|
36776
|
+
type: "url",
|
36777
|
+
title: action.title,
|
36778
|
+
url: (_action$url = action.url) !== null && _action$url !== void 0 ? _action$url : "",
|
36779
|
+
rawData: rawData
|
36780
|
+
};
|
36781
|
+
|
36782
|
+
default:
|
36783
|
+
return {
|
36784
|
+
type: "other",
|
36785
|
+
rawData: rawData
|
36786
|
+
};
|
36787
|
+
}
|
36788
|
+
});
|
36789
|
+
};
|
36790
|
+
|
36791
|
+
var parseVariant = function parseVariant(type, data) {
|
36792
|
+
var rawData = JSON.stringify(data);
|
36793
|
+
|
36794
|
+
switch (type) {
|
36795
|
+
case "twilio/text":
|
36796
|
+
{
|
36797
|
+
var variant = data;
|
36798
|
+
return {
|
36799
|
+
type: "text",
|
36800
|
+
body: variant.body,
|
36801
|
+
rawData: rawData
|
36802
|
+
};
|
36803
|
+
}
|
36804
|
+
|
36805
|
+
case "twilio/media":
|
36806
|
+
{
|
36807
|
+
var _variant = data;
|
36808
|
+
return {
|
36809
|
+
type: "media",
|
36810
|
+
body: _variant.body,
|
36811
|
+
media: _variant.media,
|
36812
|
+
rawData: rawData
|
36813
|
+
};
|
36814
|
+
}
|
36815
|
+
|
36816
|
+
case "twilio/location":
|
36817
|
+
{
|
36818
|
+
var _variant2 = data;
|
36819
|
+
return {
|
36820
|
+
type: "location",
|
36821
|
+
longitude: _variant2.longitude,
|
36822
|
+
latitude: _variant2.latitude,
|
36823
|
+
label: _variant2.label,
|
36824
|
+
rawData: rawData
|
36825
|
+
};
|
36826
|
+
}
|
36827
|
+
|
36828
|
+
case "twilio/quick-reply":
|
36829
|
+
{
|
36830
|
+
var _variant3 = data;
|
36831
|
+
return {
|
36832
|
+
type: "quickReply",
|
36833
|
+
body: _variant3.body,
|
36834
|
+
replies: _variant3.actions,
|
36835
|
+
rawData: rawData
|
36836
|
+
};
|
36837
|
+
}
|
36838
|
+
|
36839
|
+
case "twilio/call-to-action":
|
36840
|
+
{
|
36841
|
+
var _variant4 = data;
|
36842
|
+
return {
|
36843
|
+
type: "callToAction",
|
36844
|
+
body: _variant4.body,
|
36845
|
+
actions: collectActions(_variant4.actions),
|
36846
|
+
rawData: rawData
|
36847
|
+
};
|
36848
|
+
}
|
36849
|
+
|
36850
|
+
case "twilio/list-picker":
|
36851
|
+
{
|
36852
|
+
var _variant5 = data;
|
36853
|
+
return {
|
36854
|
+
type: "listPicker",
|
36855
|
+
body: _variant5.body,
|
36856
|
+
button: _variant5.button,
|
36857
|
+
items: _variant5.items,
|
36858
|
+
rawData: rawData
|
36859
|
+
};
|
36860
|
+
}
|
36861
|
+
|
36862
|
+
case "twilio/card":
|
36863
|
+
{
|
36864
|
+
var _variant6$media, _variant6$actions;
|
36865
|
+
|
36866
|
+
var _variant6 = data;
|
36867
|
+
return {
|
36868
|
+
type: "card",
|
36869
|
+
title: _variant6.title,
|
36870
|
+
subtitle: _variant6.subtitle,
|
36871
|
+
media: (_variant6$media = _variant6.media) !== null && _variant6$media !== void 0 ? _variant6$media : [],
|
36872
|
+
actions: collectActions((_variant6$actions = _variant6.actions) !== null && _variant6$actions !== void 0 ? _variant6$actions : []),
|
36873
|
+
rawData: rawData
|
36874
|
+
};
|
36875
|
+
}
|
36876
|
+
|
36877
|
+
default:
|
36878
|
+
return {
|
36879
|
+
type: "other",
|
36880
|
+
rawData: rawData
|
36881
|
+
};
|
36882
|
+
}
|
36883
|
+
};
|
36884
|
+
|
36885
|
+
var collectVariants = function collectVariants(variants) {
|
36886
|
+
var variantsMap = new Map();
|
36887
|
+
|
36888
|
+
for (var _i = 0, _Object$entries = Object.entries(variants); _i < _Object$entries.length; _i++) {
|
36889
|
+
var _Object$entries$_i = _slicedToArray$1(_Object$entries[_i], 2),
|
36890
|
+
key = _Object$entries$_i[0],
|
36891
|
+
value = _Object$entries$_i[1];
|
36892
|
+
|
36893
|
+
variantsMap.set(key, parseVariant(key, value));
|
36894
|
+
}
|
36895
|
+
|
36896
|
+
return variantsMap;
|
36897
|
+
};
|
36898
|
+
/**
|
36899
|
+
* Represents a variable for a content template. See
|
36900
|
+
* {@link ContentTemplate.variables}.
|
36901
|
+
*/
|
36902
|
+
|
36903
|
+
|
36904
|
+
var ContentTemplateVariable = /*#__PURE__*/function () {
|
36905
|
+
function ContentTemplateVariable(
|
36906
|
+
/**
|
36907
|
+
* Name of the variable.
|
36908
|
+
*/
|
36909
|
+
name,
|
36910
|
+
/**
|
36911
|
+
* Key of the variable
|
36912
|
+
*/
|
36913
|
+
value) {
|
36914
|
+
_classCallCheck$4(this, ContentTemplateVariable);
|
36915
|
+
|
36916
|
+
this.name = name;
|
36917
|
+
this.value = value;
|
36918
|
+
}
|
36919
|
+
/**
|
36920
|
+
* Copies the variable with a new value.
|
36921
|
+
*
|
36922
|
+
* @param value The new value for the variable.
|
36923
|
+
*/
|
36924
|
+
|
36925
|
+
|
36926
|
+
_createClass$4(ContentTemplateVariable, [{
|
36927
|
+
key: "copyWithValue",
|
36928
|
+
value: function copyWithValue(value) {
|
36929
|
+
return new ContentTemplateVariable(this.name, value);
|
36930
|
+
}
|
36931
|
+
}]);
|
36932
|
+
|
36933
|
+
return ContentTemplateVariable;
|
36934
|
+
}();
|
36935
|
+
/**
|
36936
|
+
* A rich content template.
|
36937
|
+
*
|
36938
|
+
* Use {@Link Client.getContentTemplates} to request all the templates available
|
36939
|
+
* for the current account.
|
36940
|
+
*/
|
36941
|
+
|
36942
|
+
|
36943
|
+
var ContentTemplate = /*#__PURE__*/_createClass$4(
|
36944
|
+
/**
|
36945
|
+
* The server-assigned unique identifier for the template.
|
36946
|
+
*/
|
36947
|
+
|
36948
|
+
/**
|
36949
|
+
* Friendly name used to describe the content. Not visible to the recipient.
|
36950
|
+
*/
|
36951
|
+
|
36952
|
+
/**
|
36953
|
+
* Variables used by this template.
|
36954
|
+
*/
|
36955
|
+
|
36956
|
+
/**
|
36957
|
+
* Variants of the content. See @{link ContentData}.
|
36958
|
+
*/
|
36959
|
+
|
36960
|
+
/**
|
36961
|
+
* Date of creation.
|
36962
|
+
*/
|
36963
|
+
|
36964
|
+
/**
|
36965
|
+
* Date of the last update.
|
36966
|
+
*/
|
36967
|
+
|
36968
|
+
/**
|
36969
|
+
* @internal
|
36970
|
+
*/
|
36971
|
+
function ContentTemplate(contentTemplateResponse) {
|
36972
|
+
_classCallCheck$4(this, ContentTemplate);
|
36973
|
+
|
36974
|
+
this.sid = contentTemplateResponse.sid;
|
36975
|
+
this.friendlyName = contentTemplateResponse.friendly_name;
|
36976
|
+
this.variables = Object.entries(JSON.parse(contentTemplateResponse.variables)).map(function (_ref) {
|
36977
|
+
var _ref2 = _slicedToArray$1(_ref, 2),
|
36978
|
+
key = _ref2[0],
|
36979
|
+
value = _ref2[1];
|
36980
|
+
|
36981
|
+
return new ContentTemplateVariable(key, value);
|
36982
|
+
});
|
36983
|
+
this.variants = collectVariants(contentTemplateResponse.variants);
|
36984
|
+
this.dateCreated = new Date(contentTemplateResponse.date_created);
|
36985
|
+
this.dateUpdated = new Date(contentTemplateResponse.date_updated);
|
36986
|
+
});
|
36987
|
+
|
36988
|
+
function ownKeys$4(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; }
|
36989
|
+
|
36990
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
36744
36991
|
|
36745
36992
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
|
36746
36993
|
|
36747
36994
|
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
36748
36995
|
var log$3 = Logger.scope("Message");
|
36996
|
+
|
36997
|
+
var XHR = // eslint-disable-next-line @typescript-eslint/no-var-requires
|
36998
|
+
global["XMLHttpRequest"] || require("xmlhttprequest").XMLHttpRequest;
|
36749
36999
|
/**
|
36750
37000
|
* A message in a conversation.
|
36751
37001
|
*/
|
36752
37002
|
|
37003
|
+
|
36753
37004
|
var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
|
36754
37005
|
_inherits$4(Message, _ReplayEventEmitter);
|
36755
37006
|
|
@@ -36779,6 +37030,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36779
37030
|
index: index,
|
36780
37031
|
author: data.author,
|
36781
37032
|
subject: data.subject,
|
37033
|
+
contentSid: data.contentSid,
|
36782
37034
|
body: (_data$text = data.text) !== null && _data$text !== void 0 ? _data$text : null,
|
36783
37035
|
timestamp: data.timestamp ? new Date(data.timestamp) : null,
|
36784
37036
|
dateUpdated: data.dateUpdated ? new Date(data.dateUpdated) : null,
|
@@ -36788,7 +37040,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36788
37040
|
media: data.type === "media" && data.media ? new Media(data.media, _this.services) : null,
|
36789
37041
|
medias: data.type === "media" && data.medias ? data.medias.map(function (m) {
|
36790
37042
|
return new Media(m, _this.services);
|
36791
|
-
}) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$
|
37043
|
+
}) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$4(_objectSpread$4({}, data.media), {}, {
|
36792
37044
|
category: "media"
|
36793
37045
|
}), _this.services)] : null,
|
36794
37046
|
participantSid: (_data$memberSid = data.memberSid) !== null && _data$memberSid !== void 0 ? _data$memberSid : null,
|
@@ -36833,6 +37085,15 @@ this.Twilio.Conversations = (function (exports) {
|
|
36833
37085
|
get: function get() {
|
36834
37086
|
return this.state.subject;
|
36835
37087
|
}
|
37088
|
+
/**
|
37089
|
+
* Unique identifier of {@link ContentTemplate} for this message.
|
37090
|
+
*/
|
37091
|
+
|
37092
|
+
}, {
|
37093
|
+
key: "contentSid",
|
37094
|
+
get: function get() {
|
37095
|
+
return this.state.contentSid;
|
37096
|
+
}
|
36836
37097
|
/**
|
36837
37098
|
* Body of the message.
|
36838
37099
|
*/
|
@@ -37494,6 +37755,147 @@ this.Twilio.Conversations = (function (exports) {
|
|
37494
37755
|
|
37495
37756
|
return _getDetailedDeliveryReceiptsPaginator;
|
37496
37757
|
}()
|
37758
|
+
/**
|
37759
|
+
* Get the {@link ContentData} for this message. Resolves to `null` when
|
37760
|
+
* {@link Message.contentSid} is null.
|
37761
|
+
*/
|
37762
|
+
|
37763
|
+
}, {
|
37764
|
+
key: "getContentData",
|
37765
|
+
value: function getContentData() {
|
37766
|
+
var _this6 = this;
|
37767
|
+
|
37768
|
+
return new browser$1.CancellablePromise( /*#__PURE__*/function () {
|
37769
|
+
var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee9(resolve, reject, onCancel) {
|
37770
|
+
var bodies, twilioPrefix, filteredMedias, contentMedia, urlPromise, url, jsonStringPromise, json, jsonString, dataType;
|
37771
|
+
return _regeneratorRuntime$1.wrap(function _callee9$(_context9) {
|
37772
|
+
while (1) {
|
37773
|
+
switch (_context9.prev = _context9.next) {
|
37774
|
+
case 0:
|
37775
|
+
if (!(_this6.state.contentSid === null)) {
|
37776
|
+
_context9.next = 3;
|
37777
|
+
break;
|
37778
|
+
}
|
37779
|
+
|
37780
|
+
resolve(null);
|
37781
|
+
return _context9.abrupt("return");
|
37782
|
+
|
37783
|
+
case 3:
|
37784
|
+
bodies = _this6.getMediaByCategories(["body"]);
|
37785
|
+
|
37786
|
+
if (!(bodies === null)) {
|
37787
|
+
_context9.next = 7;
|
37788
|
+
break;
|
37789
|
+
}
|
37790
|
+
|
37791
|
+
resolve(null);
|
37792
|
+
return _context9.abrupt("return");
|
37793
|
+
|
37794
|
+
case 7:
|
37795
|
+
twilioPrefix = "application/x-vnd.com.twilio.rich.";
|
37796
|
+
filteredMedias = bodies.filter(function (media) {
|
37797
|
+
return media.contentType.startsWith(twilioPrefix);
|
37798
|
+
});
|
37799
|
+
|
37800
|
+
if (!(filteredMedias.length === 0)) {
|
37801
|
+
_context9.next = 12;
|
37802
|
+
break;
|
37803
|
+
}
|
37804
|
+
|
37805
|
+
resolve(null);
|
37806
|
+
return _context9.abrupt("return");
|
37807
|
+
|
37808
|
+
case 12:
|
37809
|
+
contentMedia = filteredMedias[0];
|
37810
|
+
urlPromise = contentMedia.getContentTemporaryUrl();
|
37811
|
+
onCancel(function () {
|
37812
|
+
urlPromise.cancel();
|
37813
|
+
});
|
37814
|
+
_context9.prev = 15;
|
37815
|
+
_context9.next = 18;
|
37816
|
+
return urlPromise;
|
37817
|
+
|
37818
|
+
case 18:
|
37819
|
+
url = _context9.sent;
|
37820
|
+
_context9.next = 25;
|
37821
|
+
break;
|
37822
|
+
|
37823
|
+
case 21:
|
37824
|
+
_context9.prev = 21;
|
37825
|
+
_context9.t0 = _context9["catch"](15);
|
37826
|
+
reject(_context9.t0);
|
37827
|
+
return _context9.abrupt("return");
|
37828
|
+
|
37829
|
+
case 25:
|
37830
|
+
if (!(url === null)) {
|
37831
|
+
_context9.next = 28;
|
37832
|
+
break;
|
37833
|
+
}
|
37834
|
+
|
37835
|
+
resolve(null);
|
37836
|
+
return _context9.abrupt("return");
|
37837
|
+
|
37838
|
+
case 28:
|
37839
|
+
jsonStringPromise = new Promise(function (resolve, reject) {
|
37840
|
+
var _url;
|
37841
|
+
|
37842
|
+
var isCancelled = false;
|
37843
|
+
var xhr = new XHR();
|
37844
|
+
xhr.open("GET", (_url = url) !== null && _url !== void 0 ? _url : "", true);
|
37845
|
+
xhr.responseType = "text";
|
37846
|
+
|
37847
|
+
xhr.onreadystatechange = function () {
|
37848
|
+
if (xhr.readyState !== 4 || isCancelled) {
|
37849
|
+
return;
|
37850
|
+
}
|
37851
|
+
|
37852
|
+
resolve(xhr.responseText);
|
37853
|
+
};
|
37854
|
+
|
37855
|
+
xhr.onerror = function () {
|
37856
|
+
reject(xhr.statusText);
|
37857
|
+
};
|
37858
|
+
|
37859
|
+
onCancel(function () {
|
37860
|
+
isCancelled = true;
|
37861
|
+
xhr.abort();
|
37862
|
+
reject(new Error("XHR has been aborted"));
|
37863
|
+
});
|
37864
|
+
xhr.send();
|
37865
|
+
});
|
37866
|
+
_context9.prev = 29;
|
37867
|
+
_context9.next = 32;
|
37868
|
+
return jsonStringPromise;
|
37869
|
+
|
37870
|
+
case 32:
|
37871
|
+
jsonString = _context9.sent;
|
37872
|
+
json = JSON.parse(jsonString);
|
37873
|
+
_context9.next = 40;
|
37874
|
+
break;
|
37875
|
+
|
37876
|
+
case 36:
|
37877
|
+
_context9.prev = 36;
|
37878
|
+
_context9.t1 = _context9["catch"](29);
|
37879
|
+
reject(_context9.t1);
|
37880
|
+
return _context9.abrupt("return");
|
37881
|
+
|
37882
|
+
case 40:
|
37883
|
+
dataType = contentMedia.contentType.replace(twilioPrefix, "").replace(".", "/");
|
37884
|
+
resolve(parseVariant(dataType, json.data));
|
37885
|
+
|
37886
|
+
case 42:
|
37887
|
+
case "end":
|
37888
|
+
return _context9.stop();
|
37889
|
+
}
|
37890
|
+
}
|
37891
|
+
}, _callee9, null, [[15, 21], [29, 36]]);
|
37892
|
+
}));
|
37893
|
+
|
37894
|
+
return function (_x8, _x9, _x10) {
|
37895
|
+
return _ref2.apply(this, arguments);
|
37896
|
+
};
|
37897
|
+
}());
|
37898
|
+
}
|
37497
37899
|
}]);
|
37498
37900
|
|
37499
37901
|
return Message;
|
@@ -37517,6 +37919,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
37517
37919
|
|
37518
37920
|
__decorate$1([validateTypesAsync_1(nonEmptyArray_1("strings", "string")), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [Array]), __metadata$1("design:returntype", browser$1.CancellablePromise)], Message.prototype, "getTemporaryContentUrlsForMediaSids", null);
|
37519
37921
|
|
37922
|
+
function ownKeys$3(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; }
|
37923
|
+
|
37924
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
37925
|
+
|
37520
37926
|
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
37521
37927
|
|
37522
37928
|
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
@@ -37791,7 +38197,11 @@ this.Twilio.Conversations = (function (exports) {
|
|
37791
38197
|
media_sids: media.map(function (m) {
|
37792
38198
|
return m.sid;
|
37793
38199
|
}),
|
37794
|
-
attributes: typeof message.attributes !== "undefined" ? JSON.stringify(message.attributes) : undefined
|
38200
|
+
attributes: typeof message.attributes !== "undefined" ? JSON.stringify(message.attributes) : undefined,
|
38201
|
+
content_sid: message.contentSid,
|
38202
|
+
content_variables: typeof message.contentVariables !== "undefined" ? JSON.stringify(message.contentVariables.reduce(function (accum, current) {
|
38203
|
+
return _objectSpread$3(_objectSpread$3({}, accum), {}, _defineProperty$3({}, current.name, current.value));
|
38204
|
+
}, {})) : undefined
|
37795
38205
|
});
|
37796
38206
|
_context3.prev = 34;
|
37797
38207
|
_context3.t4 = resolve;
|
@@ -38262,6 +38672,29 @@ this.Twilio.Conversations = (function (exports) {
|
|
38262
38672
|
this.emailHistories.set(contentType, history);
|
38263
38673
|
return this;
|
38264
38674
|
}
|
38675
|
+
/**
|
38676
|
+
* Adds {@link ContentTemplate} SID for the message alongside optional
|
38677
|
+
* variables. When no variables provided, the default values will be used.
|
38678
|
+
*
|
38679
|
+
* Adding the content SID converts the message to a rich message. In this
|
38680
|
+
* case, other fields are ignored and the message is sent using the content
|
38681
|
+
* from the the {@link ContentTemplate}.
|
38682
|
+
*
|
38683
|
+
* Use {@link Client.getContentTemplates} to request all available
|
38684
|
+
* {@link ContentTemplate}s.
|
38685
|
+
*
|
38686
|
+
* @param contentSid SID of the {@link ContentTemplate}
|
38687
|
+
* @param variables Custom variables to resolve the template.
|
38688
|
+
*/
|
38689
|
+
|
38690
|
+
}, {
|
38691
|
+
key: "setContentTemplate",
|
38692
|
+
value: function setContentTemplate(contentSid) {
|
38693
|
+
var contentVariables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
38694
|
+
this.message.contentSid = contentSid;
|
38695
|
+
this.message.contentVariables = contentVariables;
|
38696
|
+
return this;
|
38697
|
+
}
|
38265
38698
|
/**
|
38266
38699
|
* Adds media to the message.
|
38267
38700
|
* @param payload Media to add.
|
@@ -41063,7 +41496,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
41063
41496
|
return Conversations;
|
41064
41497
|
}(ReplayEventEmitter_1);
|
41065
41498
|
|
41066
|
-
var
|
41499
|
+
var $$1 = _export;
|
41067
41500
|
var $find = arrayIteration.find;
|
41068
41501
|
var addToUnscopables = addToUnscopables$3;
|
41069
41502
|
|
@@ -41075,7 +41508,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
41075
41508
|
|
41076
41509
|
// `Array.prototype.find` method
|
41077
41510
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
41078
|
-
|
41511
|
+
$$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
41079
41512
|
find: function find(callbackfn /* , that = undefined */) {
|
41080
41513
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
41081
41514
|
}
|
@@ -41541,7 +41974,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
41541
41974
|
this.data = data.data || {};
|
41542
41975
|
});
|
41543
41976
|
|
41544
|
-
var version = "2.
|
41977
|
+
var version = "2.3.0-rc.1";
|
41545
41978
|
|
41546
41979
|
function ownKeys$1(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; }
|
41547
41980
|
|
@@ -41744,6 +42177,153 @@ this.Twilio.Conversations = (function (exports) {
|
|
41744
42177
|
return CommandExecutor;
|
41745
42178
|
}();
|
41746
42179
|
|
42180
|
+
var $ = _export;
|
42181
|
+
var FREEZING = freezing;
|
42182
|
+
var fails = fails$B;
|
42183
|
+
var isObject = isObject$p;
|
42184
|
+
var onFreeze = internalMetadata.exports.onFreeze;
|
42185
|
+
|
42186
|
+
// eslint-disable-next-line es/no-object-freeze -- safe
|
42187
|
+
var $freeze = Object.freeze;
|
42188
|
+
var FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });
|
42189
|
+
|
42190
|
+
// `Object.freeze` method
|
42191
|
+
// https://tc39.es/ecma262/#sec-object.freeze
|
42192
|
+
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
|
42193
|
+
freeze: function freeze(it) {
|
42194
|
+
return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;
|
42195
|
+
}
|
42196
|
+
});
|
42197
|
+
|
42198
|
+
var ContentClient = /*#__PURE__*/function () {
|
42199
|
+
function ContentClient(_services) {
|
42200
|
+
var _pageSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
42201
|
+
|
42202
|
+
var _cacheTtlMs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5000;
|
42203
|
+
|
42204
|
+
_classCallCheck$4(this, ContentClient);
|
42205
|
+
|
42206
|
+
_defineProperty$3(this, "_cachedTemplates", null);
|
42207
|
+
|
42208
|
+
this._services = _services;
|
42209
|
+
this._pageSize = _pageSize;
|
42210
|
+
this._cacheTtlMs = _cacheTtlMs;
|
42211
|
+
}
|
42212
|
+
|
42213
|
+
_createClass$4(ContentClient, [{
|
42214
|
+
key: "getContentTemplates",
|
42215
|
+
value: function () {
|
42216
|
+
var _getContentTemplates = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee() {
|
42217
|
+
var _this = this;
|
42218
|
+
|
42219
|
+
var _yield$this$_fetchCon, _yield$this$_fetchCon2, templatesPage, nextToken, templates, _yield$this$_fetchCon3, _yield$this$_fetchCon4;
|
42220
|
+
|
42221
|
+
return _regeneratorRuntime$1.wrap(function _callee$(_context) {
|
42222
|
+
while (1) {
|
42223
|
+
switch (_context.prev = _context.next) {
|
42224
|
+
case 0:
|
42225
|
+
if (!(this._cachedTemplates !== null)) {
|
42226
|
+
_context.next = 2;
|
42227
|
+
break;
|
42228
|
+
}
|
42229
|
+
|
42230
|
+
return _context.abrupt("return", this._cachedTemplates);
|
42231
|
+
|
42232
|
+
case 2:
|
42233
|
+
_context.next = 4;
|
42234
|
+
return this._fetchContentTemplates();
|
42235
|
+
|
42236
|
+
case 4:
|
42237
|
+
_yield$this$_fetchCon = _context.sent;
|
42238
|
+
_yield$this$_fetchCon2 = _slicedToArray$1(_yield$this$_fetchCon, 2);
|
42239
|
+
templatesPage = _yield$this$_fetchCon2[0];
|
42240
|
+
nextToken = _yield$this$_fetchCon2[1];
|
42241
|
+
templates = templatesPage;
|
42242
|
+
|
42243
|
+
case 9:
|
42244
|
+
if (!(nextToken !== null)) {
|
42245
|
+
_context.next = 19;
|
42246
|
+
break;
|
42247
|
+
}
|
42248
|
+
|
42249
|
+
_context.next = 12;
|
42250
|
+
return this._fetchContentTemplates(nextToken);
|
42251
|
+
|
42252
|
+
case 12:
|
42253
|
+
_yield$this$_fetchCon3 = _context.sent;
|
42254
|
+
_yield$this$_fetchCon4 = _slicedToArray$1(_yield$this$_fetchCon3, 2);
|
42255
|
+
templatesPage = _yield$this$_fetchCon4[0];
|
42256
|
+
nextToken = _yield$this$_fetchCon4[1];
|
42257
|
+
templates = [].concat(_toConsumableArray(templates), _toConsumableArray(templatesPage));
|
42258
|
+
_context.next = 9;
|
42259
|
+
break;
|
42260
|
+
|
42261
|
+
case 19:
|
42262
|
+
this._cachedTemplates = Object.freeze(templates);
|
42263
|
+
setTimeout(function () {
|
42264
|
+
_this._cachedTemplates = null;
|
42265
|
+
}, this._cacheTtlMs);
|
42266
|
+
return _context.abrupt("return", templates);
|
42267
|
+
|
42268
|
+
case 22:
|
42269
|
+
case "end":
|
42270
|
+
return _context.stop();
|
42271
|
+
}
|
42272
|
+
}
|
42273
|
+
}, _callee, this);
|
42274
|
+
}));
|
42275
|
+
|
42276
|
+
function getContentTemplates() {
|
42277
|
+
return _getContentTemplates.apply(this, arguments);
|
42278
|
+
}
|
42279
|
+
|
42280
|
+
return getContentTemplates;
|
42281
|
+
}()
|
42282
|
+
}, {
|
42283
|
+
key: "_fetchContentTemplates",
|
42284
|
+
value: function () {
|
42285
|
+
var _fetchContentTemplates2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee2(pageToken) {
|
42286
|
+
var contentTemplatesUrl, url, response;
|
42287
|
+
return _regeneratorRuntime$1.wrap(function _callee2$(_context2) {
|
42288
|
+
while (1) {
|
42289
|
+
switch (_context2.prev = _context2.next) {
|
42290
|
+
case 0:
|
42291
|
+
contentTemplatesUrl = "Client/v2/ContentTemplates";
|
42292
|
+
url = new UriBuilder$1(contentTemplatesUrl);
|
42293
|
+
url.arg("PageSize", this._pageSize);
|
42294
|
+
|
42295
|
+
if (pageToken !== undefined) {
|
42296
|
+
url.arg("PageToken", pageToken);
|
42297
|
+
}
|
42298
|
+
|
42299
|
+
_context2.next = 6;
|
42300
|
+
return this._services.commandExecutor.fetchResource(url.build());
|
42301
|
+
|
42302
|
+
case 6:
|
42303
|
+
response = _context2.sent;
|
42304
|
+
return _context2.abrupt("return", [response.templates.map(function (template) {
|
42305
|
+
return new ContentTemplate(template);
|
42306
|
+
}), response.meta.next_token]);
|
42307
|
+
|
42308
|
+
case 8:
|
42309
|
+
case "end":
|
42310
|
+
return _context2.stop();
|
42311
|
+
}
|
42312
|
+
}
|
42313
|
+
}, _callee2, this);
|
42314
|
+
}));
|
42315
|
+
|
42316
|
+
function _fetchContentTemplates(_x) {
|
42317
|
+
return _fetchContentTemplates2.apply(this, arguments);
|
42318
|
+
}
|
42319
|
+
|
42320
|
+
return _fetchContentTemplates;
|
42321
|
+
}()
|
42322
|
+
}]);
|
42323
|
+
|
42324
|
+
return ContentClient;
|
42325
|
+
}();
|
42326
|
+
|
41747
42327
|
var _class;
|
41748
42328
|
|
41749
42329
|
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; }
|
@@ -42133,6 +42713,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
42133
42713
|
_this._services.commandExecutor = new CommandExecutor(baseUrl, {
|
42134
42714
|
transport: _this._options.transport
|
42135
42715
|
}, productId);
|
42716
|
+
_this._services.contentClient = new ContentClient(_this._services);
|
42136
42717
|
|
42137
42718
|
var emitFailed = function emitFailed(error) {
|
42138
42719
|
_this._rejectEnsureReady(error);
|
@@ -42905,6 +43486,43 @@ this.Twilio.Conversations = (function (exports) {
|
|
42905
43486
|
});
|
42906
43487
|
return this.getTemporaryContentUrlsForMediaSids(sids);
|
42907
43488
|
}
|
43489
|
+
/**
|
43490
|
+
* Returns rich content templates belonging to the account. Rich content
|
43491
|
+
* templates can be created via the Twilio console or the REST API.
|
43492
|
+
*/
|
43493
|
+
|
43494
|
+
}, {
|
43495
|
+
key: "getContentTemplates",
|
43496
|
+
value: function () {
|
43497
|
+
var _getContentTemplates = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee16() {
|
43498
|
+
return _regeneratorRuntime$1.wrap(function _callee16$(_context16) {
|
43499
|
+
while (1) {
|
43500
|
+
switch (_context16.prev = _context16.next) {
|
43501
|
+
case 0:
|
43502
|
+
_context16.next = 2;
|
43503
|
+
return this._ensureReady;
|
43504
|
+
|
43505
|
+
case 2:
|
43506
|
+
_context16.next = 4;
|
43507
|
+
return this._services.contentClient.getContentTemplates();
|
43508
|
+
|
43509
|
+
case 4:
|
43510
|
+
return _context16.abrupt("return", _context16.sent);
|
43511
|
+
|
43512
|
+
case 5:
|
43513
|
+
case "end":
|
43514
|
+
return _context16.stop();
|
43515
|
+
}
|
43516
|
+
}
|
43517
|
+
}, _callee16, this);
|
43518
|
+
}));
|
43519
|
+
|
43520
|
+
function getContentTemplates() {
|
43521
|
+
return _getContentTemplates.apply(this, arguments);
|
43522
|
+
}
|
43523
|
+
|
43524
|
+
return getContentTemplates;
|
43525
|
+
}()
|
42908
43526
|
/**
|
42909
43527
|
* Initialize the client.
|
42910
43528
|
*/
|
@@ -42912,19 +43530,19 @@ this.Twilio.Conversations = (function (exports) {
|
|
42912
43530
|
}, {
|
42913
43531
|
key: "_initialize",
|
42914
43532
|
value: function () {
|
42915
|
-
var _initialize2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function
|
43533
|
+
var _initialize2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee17() {
|
42916
43534
|
var _this3 = this;
|
42917
43535
|
|
42918
43536
|
var configurationResponse;
|
42919
|
-
return _regeneratorRuntime$1.wrap(function
|
43537
|
+
return _regeneratorRuntime$1.wrap(function _callee17$(_context17) {
|
42920
43538
|
while (1) {
|
42921
|
-
switch (
|
43539
|
+
switch (_context17.prev = _context17.next) {
|
42922
43540
|
case 0:
|
42923
|
-
|
43541
|
+
_context17.next = 2;
|
42924
43542
|
return this._services.commandExecutor.fetchResource("Client/v2/Configuration");
|
42925
43543
|
|
42926
43544
|
case 2:
|
42927
|
-
configurationResponse =
|
43545
|
+
configurationResponse = _context17.sent;
|
42928
43546
|
this._configuration = new Configuration$1(this._options, configurationResponse, Client_1._logger);
|
42929
43547
|
|
42930
43548
|
this._myself._resolveInitialization(this._configuration, this._configuration.userIdentity, this._configuration.userInfo, true);
|
@@ -43004,7 +43622,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
43004
43622
|
}).catch(function (error) {
|
43005
43623
|
throw error;
|
43006
43624
|
});
|
43007
|
-
|
43625
|
+
_context17.next = 28;
|
43008
43626
|
return this._services.users.myself._ensureFetched();
|
43009
43627
|
|
43010
43628
|
case 28:
|
@@ -43025,10 +43643,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
43025
43643
|
|
43026
43644
|
case 34:
|
43027
43645
|
case "end":
|
43028
|
-
return
|
43646
|
+
return _context17.stop();
|
43029
43647
|
}
|
43030
43648
|
}
|
43031
|
-
},
|
43649
|
+
}, _callee17, this);
|
43032
43650
|
}));
|
43033
43651
|
|
43034
43652
|
function _initialize() {
|
@@ -43068,14 +43686,14 @@ this.Twilio.Conversations = (function (exports) {
|
|
43068
43686
|
}], [{
|
43069
43687
|
key: "create",
|
43070
43688
|
value: function () {
|
43071
|
-
var _create = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function
|
43689
|
+
var _create = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee18(token, options) {
|
43072
43690
|
var client;
|
43073
|
-
return _regeneratorRuntime$1.wrap(function
|
43691
|
+
return _regeneratorRuntime$1.wrap(function _callee18$(_context18) {
|
43074
43692
|
while (1) {
|
43075
|
-
switch (
|
43693
|
+
switch (_context18.prev = _context18.next) {
|
43076
43694
|
case 0:
|
43077
43695
|
if (!(options !== null && options !== void 0 && options.twilsockClient)) {
|
43078
|
-
|
43696
|
+
_context18.next = 2;
|
43079
43697
|
break;
|
43080
43698
|
}
|
43081
43699
|
|
@@ -43083,18 +43701,18 @@ this.Twilio.Conversations = (function (exports) {
|
|
43083
43701
|
|
43084
43702
|
case 2:
|
43085
43703
|
client = new Client_1(token, options);
|
43086
|
-
|
43704
|
+
_context18.next = 5;
|
43087
43705
|
return client._ensureReady;
|
43088
43706
|
|
43089
43707
|
case 5:
|
43090
|
-
return
|
43708
|
+
return _context18.abrupt("return", client);
|
43091
43709
|
|
43092
43710
|
case 6:
|
43093
43711
|
case "end":
|
43094
|
-
return
|
43712
|
+
return _context18.stop();
|
43095
43713
|
}
|
43096
43714
|
}
|
43097
|
-
},
|
43715
|
+
}, _callee18);
|
43098
43716
|
}));
|
43099
43717
|
|
43100
43718
|
function create(_x16, _x17) {
|
@@ -43275,6 +43893,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
43275
43893
|
|
43276
43894
|
exports.AggregatedDeliveryReceipt = AggregatedDeliveryReceipt;
|
43277
43895
|
exports.CancellablePromise = browser$1.CancellablePromise;
|
43896
|
+
exports.ContentTemplate = ContentTemplate;
|
43897
|
+
exports.ContentTemplateVariable = ContentTemplateVariable;
|
43278
43898
|
exports.Conversation = Conversation;
|
43279
43899
|
exports.DetailedDeliveryReceipt = DetailedDeliveryReceipt;
|
43280
43900
|
exports.Media = Media;
|