@seamly/web-ui 21.0.6 → 21.0.8
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/build/dist/lib/components.js +246 -100
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/components.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/config.js +1 -1
- package/build/dist/lib/hooks.js +97 -57
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/index.debug.js +113 -80
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +17 -5
- package/build/dist/lib/index.js +468 -298
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/standalone.js +722 -316
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/style-guide.js +482 -304
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/utils.js +462 -296
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/src/javascripts/domains/interrupt/middleware.ts +7 -14
- package/webpack/parts/babel-loader-plugins.js +7 -2
|
@@ -122,7 +122,7 @@ module.exports = Agent;
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 8158:
|
|
126
126
|
/***/ (function(module, exports, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -1149,7 +1149,7 @@ request.put = (url, data, fn) => {
|
|
|
1149
1149
|
"use strict";
|
|
1150
1150
|
|
|
1151
1151
|
|
|
1152
|
-
var _Set = __webpack_require__(
|
|
1152
|
+
var _Set = __webpack_require__(7724);
|
|
1153
1153
|
var _Promise = __webpack_require__(6226);
|
|
1154
1154
|
var _Array$isArray = __webpack_require__(8309);
|
|
1155
1155
|
var _trimInstanceProperty = __webpack_require__(1607);
|
|
@@ -1582,7 +1582,7 @@ RequestBase.prototype.field = function (name, value, options) {
|
|
|
1582
1582
|
value = String(value);
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
|
-
// fix https://github.com/
|
|
1585
|
+
// fix https://github.com/ladjs/superagent/issues/1680
|
|
1586
1586
|
if (options) this._getFormData().append(name, value, options);else this._getFormData().append(name, value);
|
|
1587
1587
|
return this;
|
|
1588
1588
|
};
|
|
@@ -1608,7 +1608,7 @@ RequestBase.prototype.abort = function () {
|
|
|
1608
1608
|
//
|
|
1609
1609
|
// References:
|
|
1610
1610
|
// <https://github.com/nodejs/node/issues/31630>
|
|
1611
|
-
// <https://github.com/
|
|
1611
|
+
// <https://github.com/ladjs/superagent/pull/1084/commits/dc18679a7c5ccfc6046d882015e5126888973bc8>
|
|
1612
1612
|
//
|
|
1613
1613
|
// Thanks to @shadowgate15 and @niftylettuce
|
|
1614
1614
|
if (semver.gte(process.version, 'v13.0.0') && semver.lt(process.version, 'v14.0.0')) {
|
|
@@ -1653,7 +1653,8 @@ RequestBase.prototype._auth = function (user, pass, options, base64Encoder) {
|
|
|
1653
1653
|
* using "Access-Control-Allow-Origin" with a wildcard,
|
|
1654
1654
|
* and also must set "Access-Control-Allow-Credentials"
|
|
1655
1655
|
* to "true".
|
|
1656
|
-
*
|
|
1656
|
+
* @param {Boolean} [on=true] - Set 'withCredentials' state
|
|
1657
|
+
* @return {Request} for chaining
|
|
1657
1658
|
* @api public
|
|
1658
1659
|
*/
|
|
1659
1660
|
|
|
@@ -2563,6 +2564,36 @@ var parent = __webpack_require__(3059);
|
|
|
2563
2564
|
module.exports = parent;
|
|
2564
2565
|
|
|
2565
2566
|
|
|
2567
|
+
/***/ }),
|
|
2568
|
+
|
|
2569
|
+
/***/ 281:
|
|
2570
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2571
|
+
|
|
2572
|
+
var parent = __webpack_require__(2547);
|
|
2573
|
+
|
|
2574
|
+
module.exports = parent;
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
/***/ }),
|
|
2578
|
+
|
|
2579
|
+
/***/ 31:
|
|
2580
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2581
|
+
|
|
2582
|
+
var parent = __webpack_require__(6509);
|
|
2583
|
+
|
|
2584
|
+
module.exports = parent;
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
/***/ }),
|
|
2588
|
+
|
|
2589
|
+
/***/ 7487:
|
|
2590
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2591
|
+
|
|
2592
|
+
var parent = __webpack_require__(5774);
|
|
2593
|
+
|
|
2594
|
+
module.exports = parent;
|
|
2595
|
+
|
|
2596
|
+
|
|
2566
2597
|
/***/ }),
|
|
2567
2598
|
|
|
2568
2599
|
/***/ 4493:
|
|
@@ -2610,7 +2641,7 @@ module.exports = entryVirtual('Array').every;
|
|
|
2610
2641
|
|
|
2611
2642
|
/***/ }),
|
|
2612
2643
|
|
|
2613
|
-
/***/
|
|
2644
|
+
/***/ 4162:
|
|
2614
2645
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2615
2646
|
|
|
2616
2647
|
__webpack_require__(290);
|
|
@@ -2862,7 +2893,7 @@ module.exports = function (it) {
|
|
|
2862
2893
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2863
2894
|
|
|
2864
2895
|
var isPrototypeOf = __webpack_require__(7046);
|
|
2865
|
-
var method = __webpack_require__(
|
|
2896
|
+
var method = __webpack_require__(4162);
|
|
2866
2897
|
|
|
2867
2898
|
var ArrayPrototype = Array.prototype;
|
|
2868
2899
|
|
|
@@ -3329,7 +3360,7 @@ module.exports = entryVirtual('String').includes;
|
|
|
3329
3360
|
/***/ 3348:
|
|
3330
3361
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3331
3362
|
|
|
3332
|
-
__webpack_require__(
|
|
3363
|
+
__webpack_require__(6371);
|
|
3333
3364
|
var entryVirtual = __webpack_require__(5703);
|
|
3334
3365
|
|
|
3335
3366
|
module.exports = entryVirtual('String').trim;
|
|
@@ -3350,7 +3381,7 @@ __webpack_require__(5903);
|
|
|
3350
3381
|
__webpack_require__(1825);
|
|
3351
3382
|
__webpack_require__(8394);
|
|
3352
3383
|
__webpack_require__(5915);
|
|
3353
|
-
__webpack_require__(
|
|
3384
|
+
__webpack_require__(1766);
|
|
3354
3385
|
__webpack_require__(9791);
|
|
3355
3386
|
__webpack_require__(9911);
|
|
3356
3387
|
__webpack_require__(4315);
|
|
@@ -3365,6 +3396,32 @@ var path = __webpack_require__(4058);
|
|
|
3365
3396
|
module.exports = path.Symbol;
|
|
3366
3397
|
|
|
3367
3398
|
|
|
3399
|
+
/***/ }),
|
|
3400
|
+
|
|
3401
|
+
/***/ 4227:
|
|
3402
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3403
|
+
|
|
3404
|
+
__webpack_require__(6274);
|
|
3405
|
+
__webpack_require__(5967);
|
|
3406
|
+
__webpack_require__(7971);
|
|
3407
|
+
__webpack_require__(1825);
|
|
3408
|
+
var WrappedWellKnownSymbolModule = __webpack_require__(1477);
|
|
3409
|
+
|
|
3410
|
+
module.exports = WrappedWellKnownSymbolModule.f('iterator');
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
/***/ }),
|
|
3414
|
+
|
|
3415
|
+
/***/ 2978:
|
|
3416
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3417
|
+
|
|
3418
|
+
__webpack_require__(8084);
|
|
3419
|
+
__webpack_require__(3131);
|
|
3420
|
+
var WrappedWellKnownSymbolModule = __webpack_require__(1477);
|
|
3421
|
+
|
|
3422
|
+
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');
|
|
3423
|
+
|
|
3424
|
+
|
|
3368
3425
|
/***/ }),
|
|
3369
3426
|
|
|
3370
3427
|
/***/ 2304:
|
|
@@ -3447,6 +3504,30 @@ module.exports = __webpack_require__(4904);
|
|
|
3447
3504
|
module.exports = __webpack_require__(2093);
|
|
3448
3505
|
|
|
3449
3506
|
|
|
3507
|
+
/***/ }),
|
|
3508
|
+
|
|
3509
|
+
/***/ 6600:
|
|
3510
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3511
|
+
|
|
3512
|
+
module.exports = __webpack_require__(2201);
|
|
3513
|
+
|
|
3514
|
+
|
|
3515
|
+
/***/ }),
|
|
3516
|
+
|
|
3517
|
+
/***/ 9759:
|
|
3518
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3519
|
+
|
|
3520
|
+
module.exports = __webpack_require__(7398);
|
|
3521
|
+
|
|
3522
|
+
|
|
3523
|
+
/***/ }),
|
|
3524
|
+
|
|
3525
|
+
/***/ 1384:
|
|
3526
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3527
|
+
|
|
3528
|
+
module.exports = __webpack_require__(6189);
|
|
3529
|
+
|
|
3530
|
+
|
|
3450
3531
|
/***/ }),
|
|
3451
3532
|
|
|
3452
3533
|
/***/ 478:
|
|
@@ -3517,6 +3598,45 @@ var parent = __webpack_require__(5012);
|
|
|
3517
3598
|
module.exports = parent;
|
|
3518
3599
|
|
|
3519
3600
|
|
|
3601
|
+
/***/ }),
|
|
3602
|
+
|
|
3603
|
+
/***/ 2201:
|
|
3604
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3605
|
+
|
|
3606
|
+
var parent = __webpack_require__(281);
|
|
3607
|
+
__webpack_require__(8783);
|
|
3608
|
+
__webpack_require__(3975);
|
|
3609
|
+
__webpack_require__(5799);
|
|
3610
|
+
__webpack_require__(1943);
|
|
3611
|
+
__webpack_require__(6774);
|
|
3612
|
+
// TODO: Remove from `core-js@4`
|
|
3613
|
+
__webpack_require__(5414);
|
|
3614
|
+
__webpack_require__(620);
|
|
3615
|
+
__webpack_require__(6172);
|
|
3616
|
+
|
|
3617
|
+
module.exports = parent;
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
/***/ }),
|
|
3621
|
+
|
|
3622
|
+
/***/ 7398:
|
|
3623
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3624
|
+
|
|
3625
|
+
var parent = __webpack_require__(31);
|
|
3626
|
+
|
|
3627
|
+
module.exports = parent;
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
/***/ }),
|
|
3631
|
+
|
|
3632
|
+
/***/ 6189:
|
|
3633
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3634
|
+
|
|
3635
|
+
var parent = __webpack_require__(7487);
|
|
3636
|
+
|
|
3637
|
+
module.exports = parent;
|
|
3638
|
+
|
|
3639
|
+
|
|
3520
3640
|
/***/ }),
|
|
3521
3641
|
|
|
3522
3642
|
/***/ 4883:
|
|
@@ -9003,6 +9123,14 @@ $({ target: 'Date', stat: true }, {
|
|
|
9003
9123
|
});
|
|
9004
9124
|
|
|
9005
9125
|
|
|
9126
|
+
/***/ }),
|
|
9127
|
+
|
|
9128
|
+
/***/ 8084:
|
|
9129
|
+
/***/ (function() {
|
|
9130
|
+
|
|
9131
|
+
// empty
|
|
9132
|
+
|
|
9133
|
+
|
|
9006
9134
|
/***/ }),
|
|
9007
9135
|
|
|
9008
9136
|
/***/ 3381:
|
|
@@ -10114,7 +10242,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
10114
10242
|
|
|
10115
10243
|
/***/ }),
|
|
10116
10244
|
|
|
10117
|
-
/***/
|
|
10245
|
+
/***/ 6371:
|
|
10118
10246
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10119
10247
|
|
|
10120
10248
|
"use strict";
|
|
@@ -10540,7 +10668,7 @@ defineWellKnownSymbol('match');
|
|
|
10540
10668
|
|
|
10541
10669
|
/***/ }),
|
|
10542
10670
|
|
|
10543
|
-
/***/
|
|
10671
|
+
/***/ 1766:
|
|
10544
10672
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10545
10673
|
|
|
10546
10674
|
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
@@ -10744,6 +10872,103 @@ collection('WeakSet', function (init) {
|
|
|
10744
10872
|
__webpack_require__(1115);
|
|
10745
10873
|
|
|
10746
10874
|
|
|
10875
|
+
/***/ }),
|
|
10876
|
+
|
|
10877
|
+
/***/ 8783:
|
|
10878
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10879
|
+
|
|
10880
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10881
|
+
|
|
10882
|
+
// `Symbol.asyncDispose` well-known symbol
|
|
10883
|
+
// https://github.com/tc39/proposal-using-statement
|
|
10884
|
+
defineWellKnownSymbol('asyncDispose');
|
|
10885
|
+
|
|
10886
|
+
|
|
10887
|
+
/***/ }),
|
|
10888
|
+
|
|
10889
|
+
/***/ 3975:
|
|
10890
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10891
|
+
|
|
10892
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10893
|
+
|
|
10894
|
+
// `Symbol.dispose` well-known symbol
|
|
10895
|
+
// https://github.com/tc39/proposal-using-statement
|
|
10896
|
+
defineWellKnownSymbol('dispose');
|
|
10897
|
+
|
|
10898
|
+
|
|
10899
|
+
/***/ }),
|
|
10900
|
+
|
|
10901
|
+
/***/ 5799:
|
|
10902
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10903
|
+
|
|
10904
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10905
|
+
|
|
10906
|
+
// `Symbol.matcher` well-known symbol
|
|
10907
|
+
// https://github.com/tc39/proposal-pattern-matching
|
|
10908
|
+
defineWellKnownSymbol('matcher');
|
|
10909
|
+
|
|
10910
|
+
|
|
10911
|
+
/***/ }),
|
|
10912
|
+
|
|
10913
|
+
/***/ 1943:
|
|
10914
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10915
|
+
|
|
10916
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10917
|
+
|
|
10918
|
+
// `Symbol.metadataKey` well-known symbol
|
|
10919
|
+
// https://github.com/tc39/proposal-decorator-metadata
|
|
10920
|
+
defineWellKnownSymbol('metadataKey');
|
|
10921
|
+
|
|
10922
|
+
|
|
10923
|
+
/***/ }),
|
|
10924
|
+
|
|
10925
|
+
/***/ 5414:
|
|
10926
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10927
|
+
|
|
10928
|
+
// TODO: Remove from `core-js@4`
|
|
10929
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10930
|
+
|
|
10931
|
+
// `Symbol.metadata` well-known symbol
|
|
10932
|
+
// https://github.com/tc39/proposal-decorators
|
|
10933
|
+
defineWellKnownSymbol('metadata');
|
|
10934
|
+
|
|
10935
|
+
|
|
10936
|
+
/***/ }),
|
|
10937
|
+
|
|
10938
|
+
/***/ 6774:
|
|
10939
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10940
|
+
|
|
10941
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10942
|
+
|
|
10943
|
+
// `Symbol.observable` well-known symbol
|
|
10944
|
+
// https://github.com/tc39/proposal-observable
|
|
10945
|
+
defineWellKnownSymbol('observable');
|
|
10946
|
+
|
|
10947
|
+
|
|
10948
|
+
/***/ }),
|
|
10949
|
+
|
|
10950
|
+
/***/ 620:
|
|
10951
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10952
|
+
|
|
10953
|
+
// TODO: remove from `core-js@4`
|
|
10954
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10955
|
+
|
|
10956
|
+
// `Symbol.patternMatch` well-known symbol
|
|
10957
|
+
// https://github.com/tc39/proposal-pattern-matching
|
|
10958
|
+
defineWellKnownSymbol('patternMatch');
|
|
10959
|
+
|
|
10960
|
+
|
|
10961
|
+
/***/ }),
|
|
10962
|
+
|
|
10963
|
+
/***/ 6172:
|
|
10964
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10965
|
+
|
|
10966
|
+
// TODO: remove from `core-js@4`
|
|
10967
|
+
var defineWellKnownSymbol = __webpack_require__(3464);
|
|
10968
|
+
|
|
10969
|
+
defineWellKnownSymbol('replaceAll');
|
|
10970
|
+
|
|
10971
|
+
|
|
10747
10972
|
/***/ }),
|
|
10748
10973
|
|
|
10749
10974
|
/***/ 7634:
|
|
@@ -11262,6 +11487,27 @@ __webpack_require__(7634);
|
|
|
11262
11487
|
module.exports = parent;
|
|
11263
11488
|
|
|
11264
11489
|
|
|
11490
|
+
/***/ }),
|
|
11491
|
+
|
|
11492
|
+
/***/ 6509:
|
|
11493
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11494
|
+
|
|
11495
|
+
var parent = __webpack_require__(4227);
|
|
11496
|
+
__webpack_require__(7634);
|
|
11497
|
+
|
|
11498
|
+
module.exports = parent;
|
|
11499
|
+
|
|
11500
|
+
|
|
11501
|
+
/***/ }),
|
|
11502
|
+
|
|
11503
|
+
/***/ 5774:
|
|
11504
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11505
|
+
|
|
11506
|
+
var parent = __webpack_require__(2978);
|
|
11507
|
+
|
|
11508
|
+
module.exports = parent;
|
|
11509
|
+
|
|
11510
|
+
|
|
11265
11511
|
/***/ }),
|
|
11266
11512
|
|
|
11267
11513
|
/***/ 2010:
|
|
@@ -14235,7 +14481,7 @@ module.exports = __webpack_require__(7989);
|
|
|
14235
14481
|
|
|
14236
14482
|
/***/ }),
|
|
14237
14483
|
|
|
14238
|
-
/***/
|
|
14484
|
+
/***/ 7724:
|
|
14239
14485
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14240
14486
|
|
|
14241
14487
|
module.exports = __webpack_require__(5519);
|
|
@@ -14310,6 +14556,27 @@ module.exports = __webpack_require__(4710);
|
|
|
14310
14556
|
|
|
14311
14557
|
module.exports = __webpack_require__(3799);
|
|
14312
14558
|
|
|
14559
|
+
/***/ }),
|
|
14560
|
+
|
|
14561
|
+
/***/ 2472:
|
|
14562
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14563
|
+
|
|
14564
|
+
module.exports = __webpack_require__(6600);
|
|
14565
|
+
|
|
14566
|
+
/***/ }),
|
|
14567
|
+
|
|
14568
|
+
/***/ 8994:
|
|
14569
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14570
|
+
|
|
14571
|
+
module.exports = __webpack_require__(9759);
|
|
14572
|
+
|
|
14573
|
+
/***/ }),
|
|
14574
|
+
|
|
14575
|
+
/***/ 24:
|
|
14576
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14577
|
+
|
|
14578
|
+
module.exports = __webpack_require__(1384);
|
|
14579
|
+
|
|
14313
14580
|
/***/ })
|
|
14314
14581
|
|
|
14315
14582
|
/******/ });
|
|
@@ -14472,9 +14739,49 @@ var define_property = __webpack_require__(6718);
|
|
|
14472
14739
|
var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property);
|
|
14473
14740
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js
|
|
14474
14741
|
var object_define_property = __webpack_require__(7445);
|
|
14742
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol.js
|
|
14743
|
+
var symbol = __webpack_require__(2472);
|
|
14744
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js
|
|
14745
|
+
var iterator = __webpack_require__(8994);
|
|
14746
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
|
|
14747
|
+
|
|
14748
|
+
|
|
14749
|
+
function _typeof(obj) {
|
|
14750
|
+
"@babel/helpers - typeof";
|
|
14751
|
+
|
|
14752
|
+
return _typeof = "function" == typeof symbol && "symbol" == typeof iterator ? function (obj) {
|
|
14753
|
+
return typeof obj;
|
|
14754
|
+
} : function (obj) {
|
|
14755
|
+
return obj && "function" == typeof symbol && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
14756
|
+
}, _typeof(obj);
|
|
14757
|
+
}
|
|
14758
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js
|
|
14759
|
+
var to_primitive = __webpack_require__(24);
|
|
14760
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js
|
|
14761
|
+
|
|
14762
|
+
|
|
14763
|
+
function _toPrimitive(input, hint) {
|
|
14764
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
14765
|
+
var prim = input[to_primitive];
|
|
14766
|
+
if (prim !== undefined) {
|
|
14767
|
+
var res = prim.call(input, hint || "default");
|
|
14768
|
+
if (_typeof(res) !== "object") return res;
|
|
14769
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14770
|
+
}
|
|
14771
|
+
return (hint === "string" ? String : Number)(input);
|
|
14772
|
+
}
|
|
14773
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js
|
|
14774
|
+
|
|
14775
|
+
|
|
14776
|
+
function _toPropertyKey(arg) {
|
|
14777
|
+
var key = _toPrimitive(arg, "string");
|
|
14778
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
14779
|
+
}
|
|
14475
14780
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js
|
|
14476
14781
|
|
|
14782
|
+
|
|
14477
14783
|
function _defineProperty(obj, key, value) {
|
|
14784
|
+
key = _toPropertyKey(key);
|
|
14478
14785
|
if (key in obj) {
|
|
14479
14786
|
object_define_property(obj, key, {
|
|
14480
14787
|
value: value,
|
|
@@ -14536,7 +14843,7 @@ var weak_set_default = /*#__PURE__*/__webpack_require__.n(weak_set);
|
|
|
14536
14843
|
var reduce = __webpack_require__(4282);
|
|
14537
14844
|
var reduce_default = /*#__PURE__*/__webpack_require__.n(reduce);
|
|
14538
14845
|
// EXTERNAL MODULE: ./node_modules/superagent/lib/client.js
|
|
14539
|
-
var client = __webpack_require__(
|
|
14846
|
+
var client = __webpack_require__(8158);
|
|
14540
14847
|
var client_default = /*#__PURE__*/__webpack_require__.n(client);
|
|
14541
14848
|
;// CONCATENATED MODULE: ./src/javascripts/config.ts
|
|
14542
14849
|
const CSS_NAME = 'cvco';
|
|
@@ -14596,16 +14903,16 @@ class SeamlyBaseError extends Error {
|
|
|
14596
14903
|
Error.captureStackTrace(this, get_prototype_of_default()(this));
|
|
14597
14904
|
}
|
|
14598
14905
|
this.originalError = originalError;
|
|
14599
|
-
if (originalError
|
|
14906
|
+
if (originalError?.payload) {
|
|
14600
14907
|
this.originalEvent = originalError;
|
|
14601
14908
|
this.originalError = originalError.payload.error;
|
|
14602
14909
|
this.message = `Event of type ${originalError.payload.type} encountered`;
|
|
14603
14910
|
}
|
|
14604
|
-
if (!this.message && originalError
|
|
14911
|
+
if (!this.message && originalError?.message) {
|
|
14605
14912
|
const parsedOriginalMessage = parseOriginalErrMsg(originalError.message);
|
|
14606
14913
|
this.message = parsedOriginalMessage;
|
|
14607
14914
|
}
|
|
14608
|
-
if (originalError
|
|
14915
|
+
if (originalError?.error) {
|
|
14609
14916
|
this.originalError = originalError.error;
|
|
14610
14917
|
}
|
|
14611
14918
|
}
|
|
@@ -14896,9 +15203,6 @@ function store(key) {
|
|
|
14896
15203
|
}
|
|
14897
15204
|
};
|
|
14898
15205
|
}
|
|
14899
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js
|
|
14900
|
-
var splice = __webpack_require__(9940);
|
|
14901
|
-
var splice_default = /*#__PURE__*/__webpack_require__.n(splice);
|
|
14902
15206
|
;// CONCATENATED MODULE: ./node_modules/phoenix/priv/static/phoenix.mjs
|
|
14903
15207
|
// js/phoenix/utils.js
|
|
14904
15208
|
var closure = (value) => {
|
|
@@ -16205,10 +16509,10 @@ class ConversationConnector {
|
|
|
16205
16509
|
}
|
|
16206
16510
|
disconnect() {
|
|
16207
16511
|
var _a, _b, _c;
|
|
16208
|
-
__classPrivateFieldSet(this, _ConversationConnector_connectionListeners, [], "f");
|
|
16209
16512
|
(_a = this.channel) === null || _a === void 0 ? void 0 : _a.leave();
|
|
16210
16513
|
(_b = this.socket) === null || _b === void 0 ? void 0 : _b.remove(this.channel);
|
|
16211
16514
|
(_c = this.socket) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
16515
|
+
__classPrivateFieldSet(this, _ConversationConnector_connectionListeners, [], "f");
|
|
16212
16516
|
}
|
|
16213
16517
|
onConnection(cb) {
|
|
16214
16518
|
__classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").push(cb);
|
|
@@ -16228,16 +16532,12 @@ _ConversationConnector_connectionListeners = new (weak_map_default())(), _Conver
|
|
|
16228
16532
|
});
|
|
16229
16533
|
});
|
|
16230
16534
|
}, _ConversationConnector_emitConnectionState = function _ConversationConnector_emitConnectionState(payload) {
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
const
|
|
16234
|
-
const complete = callback(payload);
|
|
16535
|
+
var _context;
|
|
16536
|
+
__classPrivateFieldSet(this, _ConversationConnector_connectionListeners, filter_default()(_context = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")).call(_context, item => {
|
|
16537
|
+
const complete = item(payload);
|
|
16235
16538
|
// If we only want to execute the callback once, remove it from the listener
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
splice_default()(_context = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")).call(_context, i, 1);
|
|
16239
|
-
}
|
|
16240
|
-
}
|
|
16539
|
+
return !complete;
|
|
16540
|
+
}), "f");
|
|
16241
16541
|
};
|
|
16242
16542
|
;// CONCATENATED MODULE: ./src/javascripts/api/index.ts
|
|
16243
16543
|
|
|
@@ -16708,7 +17008,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
16708
17008
|
return {
|
|
16709
17009
|
clientName: "@seamly/web-ui",
|
|
16710
17010
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
16711
|
-
clientVersion: "21.0.
|
|
17011
|
+
clientVersion: "21.0.8",
|
|
16712
17012
|
currentUrl: window.location.toString(),
|
|
16713
17013
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
16714
17014
|
timezone: getTimeZone(),
|
|
@@ -17620,8 +17920,39 @@ const cardTypes = {
|
|
|
17620
17920
|
function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(false){ var i, o; }throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===immer_esm_o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function immer_esm_o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===immer_esm_o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===immer_esm_o(n)?n.get(r):n[r]}function f(n,r,t){var e=immer_esm_o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)?n:(immer_esm_o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function immer_esm_(){return true||0,U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.O=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( false&&0,r(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:immer_esm_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:immer_esm_()).p.push(e),e}function D(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=immer_esm_o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return false&&0,en.get(r,n)},set:function(r){var t=this[Q]; false&&0,en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.O&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:immer_esm_(),P:!1,I:!1,D:{},l:r,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.D,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=immer_esm_o(f),p=""+i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=immer_esm_o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},R:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.D,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.D,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.D=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=R(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.O&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:immer_esm_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,O:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.D.set(n,!0),t.o.set(n,r),t.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.D.set(n,!1):r.D.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(r){n.D.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=R(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:immer_esm_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,O:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{N:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){N(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return false&&0,on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return false&&0,en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; false&&(0);var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ var immer_esm = (fn);
|
|
17621
17921
|
//# sourceMappingURL=immer.esm.js.map
|
|
17622
17922
|
|
|
17923
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17924
|
+
function typeof_typeof(obj) {
|
|
17925
|
+
"@babel/helpers - typeof";
|
|
17926
|
+
|
|
17927
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
17928
|
+
return typeof obj;
|
|
17929
|
+
} : function (obj) {
|
|
17930
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
17931
|
+
}, typeof_typeof(obj);
|
|
17932
|
+
}
|
|
17933
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
17934
|
+
|
|
17935
|
+
function toPrimitive_toPrimitive(input, hint) {
|
|
17936
|
+
if (typeof_typeof(input) !== "object" || input === null) return input;
|
|
17937
|
+
var prim = input[Symbol.toPrimitive];
|
|
17938
|
+
if (prim !== undefined) {
|
|
17939
|
+
var res = prim.call(input, hint || "default");
|
|
17940
|
+
if (typeof_typeof(res) !== "object") return res;
|
|
17941
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
17942
|
+
}
|
|
17943
|
+
return (hint === "string" ? String : Number)(input);
|
|
17944
|
+
}
|
|
17945
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
17946
|
+
|
|
17947
|
+
|
|
17948
|
+
function toPropertyKey_toPropertyKey(arg) {
|
|
17949
|
+
var key = toPrimitive_toPrimitive(arg, "string");
|
|
17950
|
+
return typeof_typeof(key) === "symbol" ? key : String(key);
|
|
17951
|
+
}
|
|
17623
17952
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17953
|
+
|
|
17624
17954
|
function defineProperty_defineProperty(obj, key, value) {
|
|
17955
|
+
key = toPropertyKey_toPropertyKey(key);
|
|
17625
17956
|
if (key in obj) {
|
|
17626
17957
|
Object.defineProperty(obj, key, {
|
|
17627
17958
|
value: value,
|
|
@@ -19497,17 +19828,14 @@ var createAsyncThunk = (function () {
|
|
|
19497
19828
|
var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
|
|
19498
19829
|
var abortController = new AC();
|
|
19499
19830
|
var abortReason;
|
|
19500
|
-
var abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ name: "AbortError", message: abortReason || "Aborted" }); }); });
|
|
19501
19831
|
var started = false;
|
|
19502
19832
|
function abort(reason) {
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
abortController.abort();
|
|
19506
|
-
}
|
|
19833
|
+
abortReason = reason;
|
|
19834
|
+
abortController.abort();
|
|
19507
19835
|
}
|
|
19508
19836
|
var promise2 = function () {
|
|
19509
19837
|
return __async(this, null, function () {
|
|
19510
|
-
var _a, _b, finalAction, conditionResult, err_1, skipDispatch;
|
|
19838
|
+
var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
|
|
19511
19839
|
return __generator(this, function (_c) {
|
|
19512
19840
|
switch (_c.label) {
|
|
19513
19841
|
case 0:
|
|
@@ -19519,13 +19847,17 @@ var createAsyncThunk = (function () {
|
|
|
19519
19847
|
conditionResult = _c.sent();
|
|
19520
19848
|
_c.label = 2;
|
|
19521
19849
|
case 2:
|
|
19522
|
-
if (conditionResult === false) {
|
|
19850
|
+
if (conditionResult === false || abortController.signal.aborted) {
|
|
19523
19851
|
throw {
|
|
19524
19852
|
name: "ConditionError",
|
|
19525
19853
|
message: "Aborted due to condition callback returning false."
|
|
19526
19854
|
};
|
|
19527
19855
|
}
|
|
19528
19856
|
started = true;
|
|
19857
|
+
abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
|
|
19858
|
+
name: "AbortError",
|
|
19859
|
+
message: abortReason || "Aborted"
|
|
19860
|
+
}); }); });
|
|
19529
19861
|
dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));
|
|
19530
19862
|
return [4 /*yield*/, Promise.race([
|
|
19531
19863
|
abortedPromise,
|
|
@@ -19586,7 +19918,7 @@ var createAsyncThunk = (function () {
|
|
|
19586
19918
|
typePrefix: typePrefix
|
|
19587
19919
|
});
|
|
19588
19920
|
}
|
|
19589
|
-
createAsyncThunk2.withTypes = createAsyncThunk2;
|
|
19921
|
+
createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
|
|
19590
19922
|
return createAsyncThunk2;
|
|
19591
19923
|
})();
|
|
19592
19924
|
function unwrapResult(action) {
|
|
@@ -20158,7 +20490,7 @@ var prepareAutoBatched = function () { return function (payload) {
|
|
|
20158
20490
|
});
|
|
20159
20491
|
}; };
|
|
20160
20492
|
var redux_toolkit_esm_promise;
|
|
20161
|
-
var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : __webpack_require__.g) : function (cb) { return (redux_toolkit_esm_promise || (redux_toolkit_esm_promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {
|
|
20493
|
+
var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : globalThis) : function (cb) { return (redux_toolkit_esm_promise || (redux_toolkit_esm_promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {
|
|
20162
20494
|
throw err;
|
|
20163
20495
|
}, 0); }); };
|
|
20164
20496
|
var createQueueWithTimer = function (timeout) {
|
|
@@ -20166,6 +20498,7 @@ var createQueueWithTimer = function (timeout) {
|
|
|
20166
20498
|
setTimeout(notify, timeout);
|
|
20167
20499
|
};
|
|
20168
20500
|
};
|
|
20501
|
+
var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
|
|
20169
20502
|
var autoBatchEnhancer = function (options) {
|
|
20170
20503
|
if (options === void 0) { options = { type: "raf" }; }
|
|
20171
20504
|
return function (next) { return function () {
|
|
@@ -20178,7 +20511,7 @@ var autoBatchEnhancer = function (options) {
|
|
|
20178
20511
|
var shouldNotifyAtEndOfTick = false;
|
|
20179
20512
|
var notificationQueued = false;
|
|
20180
20513
|
var listeners = new Set();
|
|
20181
|
-
var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ?
|
|
20514
|
+
var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
|
|
20182
20515
|
var notifyListeners = function () {
|
|
20183
20516
|
notificationQueued = false;
|
|
20184
20517
|
if (shouldNotifyAtEndOfTick) {
|
|
@@ -20674,7 +21007,7 @@ const selectUserHasResponded = es_createSelector(_ref => {
|
|
|
20674
21007
|
} = _ref2;
|
|
20675
21008
|
return userHasResponded;
|
|
20676
21009
|
});
|
|
20677
|
-
;// CONCATENATED MODULE: ./src/javascripts/domains/visibility/constants.
|
|
21010
|
+
;// CONCATENATED MODULE: ./src/javascripts/domains/visibility/constants.ts
|
|
20678
21011
|
const StoreKey = 'visibility';
|
|
20679
21012
|
const visibilityStates = {
|
|
20680
21013
|
hidden: 'hidden',
|
|
@@ -22225,12 +22558,7 @@ const {
|
|
|
22225
22558
|
|
|
22226
22559
|
|
|
22227
22560
|
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
const handledErrorTypes = [SeamlyGeneralError, SeamlyConfigurationError, SeamlySessionExpiredError, SeamlyOfflineError, SeamlyUnauthorizedError, SeamlyUnavailableError];
|
|
22561
|
+
const handledErrorTypes = ['SeamlyGeneralError', 'SeamlyConfigurationError', 'SeamlySessionExpiredError', 'SeamlyOfflineError', 'SeamlyUnauthorizedError', 'SeamlyUnavailableError'];
|
|
22234
22562
|
function createInterruptMiddleware(_ref) {
|
|
22235
22563
|
let {
|
|
22236
22564
|
api
|
|
@@ -22241,7 +22569,7 @@ function createInterruptMiddleware(_ref) {
|
|
|
22241
22569
|
type
|
|
22242
22570
|
} = action;
|
|
22243
22571
|
if (type === setInterrupt.type) {
|
|
22244
|
-
if (!
|
|
22572
|
+
if (!includes_default()(handledErrorTypes).call(handledErrorTypes, payload.name)) {
|
|
22245
22573
|
throw new SeamlyGeneralError(payload);
|
|
22246
22574
|
} else if (payload.action === 'reset') {
|
|
22247
22575
|
// [SMLY-942] We clear the store before a reset to force a new conversation if the page is refreshed before the conversation is reset
|
|
@@ -22331,6 +22659,9 @@ const selectIsLoading = es_createSelector(_ref7 => {
|
|
|
22331
22659
|
} = _ref8;
|
|
22332
22660
|
return isLoading;
|
|
22333
22661
|
});
|
|
22662
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js
|
|
22663
|
+
var splice = __webpack_require__(9940);
|
|
22664
|
+
var splice_default = /*#__PURE__*/__webpack_require__.n(splice);
|
|
22334
22665
|
;// CONCATENATED MODULE: ./src/javascripts/domains/translations/slice.ts
|
|
22335
22666
|
|
|
22336
22667
|
|
|
@@ -22484,14 +22815,13 @@ function createI18nMiddleware(_ref) {
|
|
|
22484
22815
|
} = _ref;
|
|
22485
22816
|
return next => {
|
|
22486
22817
|
return action => {
|
|
22487
|
-
var _payload$translation, _payload$translation2, _payload$payload, _payload$payload$body;
|
|
22488
22818
|
const result = next(action);
|
|
22489
22819
|
const {
|
|
22490
22820
|
payload
|
|
22491
22821
|
} = action;
|
|
22492
22822
|
switch (action.type) {
|
|
22493
22823
|
case setHistory.type:
|
|
22494
|
-
if (payload
|
|
22824
|
+
if (payload?.translation?.enabled) {
|
|
22495
22825
|
dispatch(enableTranslation(payload.translation.locale));
|
|
22496
22826
|
dispatch(setLocale(payload.translation.locale));
|
|
22497
22827
|
}
|
|
@@ -22502,13 +22832,13 @@ function createI18nMiddleware(_ref) {
|
|
|
22502
22832
|
}
|
|
22503
22833
|
break;
|
|
22504
22834
|
case setInitialState.type:
|
|
22505
|
-
if (payload
|
|
22835
|
+
if (payload?.translation?.enabled) {
|
|
22506
22836
|
dispatch(enableTranslation(payload.translation.locale));
|
|
22507
22837
|
dispatch(setLocale(payload.locale));
|
|
22508
22838
|
}
|
|
22509
22839
|
break;
|
|
22510
22840
|
case addEvent.type:
|
|
22511
|
-
if (payload.type === 'info' &&
|
|
22841
|
+
if (payload.type === 'info' && payload?.payload?.body?.subtype === 'new_translation' && payload.payload.body.translationEnabled) {
|
|
22512
22842
|
dispatch(setLocale(payload.payload.body.translationLocale));
|
|
22513
22843
|
}
|
|
22514
22844
|
break;
|
|
@@ -22910,12 +23240,12 @@ const useSeamlyCommands = () => {
|
|
|
22910
23240
|
}
|
|
22911
23241
|
}).catch(error => {
|
|
22912
23242
|
dispatch(setInterrupt({
|
|
22913
|
-
name: error
|
|
22914
|
-
message: error
|
|
22915
|
-
langKey: error
|
|
22916
|
-
action: error
|
|
22917
|
-
originalEvent: error
|
|
22918
|
-
originalError: error
|
|
23243
|
+
name: error?.name,
|
|
23244
|
+
message: error?.message,
|
|
23245
|
+
langKey: error?.langKey,
|
|
23246
|
+
action: error?.action,
|
|
23247
|
+
originalEvent: error?.originalEvent,
|
|
23248
|
+
originalError: error?.originalError
|
|
22919
23249
|
}));
|
|
22920
23250
|
});
|
|
22921
23251
|
}, [api, dispatch, setVisibility]);
|
|
@@ -22941,28 +23271,33 @@ function _arrayWithHoles(arr) {
|
|
|
22941
23271
|
}
|
|
22942
23272
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
22943
23273
|
function _iterableToArrayLimit(arr, i) {
|
|
22944
|
-
var _i =
|
|
22945
|
-
if (
|
|
22946
|
-
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
if (i && _arr.length === i) break;
|
|
22954
|
-
}
|
|
22955
|
-
} catch (err) {
|
|
22956
|
-
_d = true;
|
|
22957
|
-
_e = err;
|
|
22958
|
-
} finally {
|
|
23274
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
23275
|
+
if (null != _i) {
|
|
23276
|
+
var _s,
|
|
23277
|
+
_e,
|
|
23278
|
+
_x,
|
|
23279
|
+
_r,
|
|
23280
|
+
_arr = [],
|
|
23281
|
+
_n = !0,
|
|
23282
|
+
_d = !1;
|
|
22959
23283
|
try {
|
|
22960
|
-
if (
|
|
23284
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
23285
|
+
if (Object(_i) !== _i) return;
|
|
23286
|
+
_n = !1;
|
|
23287
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
23288
|
+
;
|
|
23289
|
+
}
|
|
23290
|
+
} catch (err) {
|
|
23291
|
+
_d = !0, _e = err;
|
|
22961
23292
|
} finally {
|
|
22962
|
-
|
|
23293
|
+
try {
|
|
23294
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
23295
|
+
} finally {
|
|
23296
|
+
if (_d) throw _e;
|
|
23297
|
+
}
|
|
22963
23298
|
}
|
|
23299
|
+
return _arr;
|
|
22964
23300
|
}
|
|
22965
|
-
return _arr;
|
|
22966
23301
|
}
|
|
22967
23302
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
22968
23303
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -23001,13 +23336,14 @@ function _classCallCheck(instance, Constructor) {
|
|
|
23001
23336
|
}
|
|
23002
23337
|
}
|
|
23003
23338
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
23339
|
+
|
|
23004
23340
|
function _defineProperties(target, props) {
|
|
23005
23341
|
for (var i = 0; i < props.length; i++) {
|
|
23006
23342
|
var descriptor = props[i];
|
|
23007
23343
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
23008
23344
|
descriptor.configurable = true;
|
|
23009
23345
|
if ("value" in descriptor) descriptor.writable = true;
|
|
23010
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23346
|
+
Object.defineProperty(target, toPropertyKey_toPropertyKey(descriptor.key), descriptor);
|
|
23011
23347
|
}
|
|
23012
23348
|
}
|
|
23013
23349
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -23684,8 +24020,6 @@ const useSeamlyChat = () => {
|
|
|
23684
24020
|
apiConnected
|
|
23685
24021
|
} = use_seamly_commands();
|
|
23686
24022
|
const hasConversation = useSeamlyHasConversation();
|
|
23687
|
-
const prevIsOpen = (0,hooks_module/* useRef */.sO)(null);
|
|
23688
|
-
const prevIsVisible = (0,hooks_module/* useRef */.sO)(null);
|
|
23689
24023
|
const connectCalled = (0,hooks_module/* useRef */.sO)(false);
|
|
23690
24024
|
const {
|
|
23691
24025
|
sendAssertive
|
|
@@ -23700,20 +24034,14 @@ const useSeamlyChat = () => {
|
|
|
23700
24034
|
}
|
|
23701
24035
|
}, [isVisible, sendAssertive, t]);
|
|
23702
24036
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
23703
|
-
if (isVisible
|
|
23704
|
-
prevIsOpen.current = isOpen;
|
|
23705
|
-
prevIsVisible.current = isVisible;
|
|
24037
|
+
if (!isVisible) {
|
|
23706
24038
|
return;
|
|
23707
24039
|
}
|
|
23708
|
-
if (
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
sendAssertive(t('window.srTexts.onClose'));
|
|
23713
|
-
}
|
|
24040
|
+
if (isOpen) {
|
|
24041
|
+
sendAssertive(t('window.srTexts.onOpen'));
|
|
24042
|
+
} else {
|
|
24043
|
+
sendAssertive(t('window.srTexts.onClose'));
|
|
23714
24044
|
}
|
|
23715
|
-
prevIsOpen.current = isOpen;
|
|
23716
|
-
prevIsVisible.current = isVisible;
|
|
23717
24045
|
}, [isOpen, isVisible, sendAssertive, t]);
|
|
23718
24046
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
23719
24047
|
// This delays the start of the loading inidicator we set when we initialise
|
|
@@ -24328,8 +24656,7 @@ const useStableCallback = callback => {
|
|
|
24328
24656
|
const useSeamlyEventStream = (nextFn, filterFn) => {
|
|
24329
24657
|
const api = useSeamlyApiContext();
|
|
24330
24658
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
24331
|
-
|
|
24332
|
-
if (api.connectionInfo && (_api$conversation = api.conversation) !== null && _api$conversation !== void 0 && _api$conversation.channel) {
|
|
24659
|
+
if (api.connectionInfo && api.conversation?.channel) {
|
|
24333
24660
|
const {
|
|
24334
24661
|
channel
|
|
24335
24662
|
} = api.conversation;
|
|
@@ -25274,10 +25601,9 @@ const useChoicePrompt = event => {
|
|
|
25274
25601
|
service
|
|
25275
25602
|
} = payload;
|
|
25276
25603
|
const subEvent = (0,hooks_module/* useMemo */.Ye)(() => {
|
|
25277
|
-
var _event$payload$body;
|
|
25278
25604
|
return choice_prompt_objectSpread(choice_prompt_objectSpread({}, event), {}, {
|
|
25279
25605
|
payload: choice_prompt_objectSpread(choice_prompt_objectSpread({}, event.payload), {}, {
|
|
25280
|
-
body:
|
|
25606
|
+
body: event.payload.body?.prompt,
|
|
25281
25607
|
translatedBody: event.payload.translatedBody && choice_prompt_objectSpread(choice_prompt_objectSpread({}, event.payload.translatedBody), {}, {
|
|
25282
25608
|
data: event.payload.translatedBody.data.prompt
|
|
25283
25609
|
})
|
|
@@ -25526,7 +25852,7 @@ const ConversationSuggestions = _ref => {
|
|
|
25526
25852
|
let {
|
|
25527
25853
|
payload: eventPayload
|
|
25528
25854
|
} = _ref2;
|
|
25529
|
-
return eventPayload
|
|
25855
|
+
return eventPayload?.transactionLast;
|
|
25530
25856
|
}), [events]);
|
|
25531
25857
|
const handleClick = (0,hooks_module/* useCallback */.I4)(_ref3 => {
|
|
25532
25858
|
let {
|
|
@@ -25852,12 +26178,11 @@ const timeFormatOptions = {
|
|
|
25852
26178
|
minute: 'numeric'
|
|
25853
26179
|
};
|
|
25854
26180
|
const useFormattedDate = date => {
|
|
25855
|
-
var _config$context;
|
|
25856
26181
|
const {
|
|
25857
26182
|
t
|
|
25858
26183
|
} = useI18n();
|
|
25859
26184
|
const config = useConfig();
|
|
25860
|
-
const locale =
|
|
26185
|
+
const locale = config?.context?.locale ?? [];
|
|
25861
26186
|
const eventDate = new Date(date);
|
|
25862
26187
|
const currentDate = new Date();
|
|
25863
26188
|
const midnight = new Date(currentDate);
|
|
@@ -26399,7 +26724,7 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
26399
26724
|
|
|
26400
26725
|
;// CONCATENATED MODULE: ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
26401
26726
|
/*!
|
|
26402
|
-
* focus-trap 7.
|
|
26727
|
+
* focus-trap 7.2.0
|
|
26403
26728
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
26404
26729
|
*/
|
|
26405
26730
|
|
|
@@ -26426,6 +26751,7 @@ function focus_trap_esm_objectSpread2(target) {
|
|
|
26426
26751
|
return target;
|
|
26427
26752
|
}
|
|
26428
26753
|
function focus_trap_esm_defineProperty(obj, key, value) {
|
|
26754
|
+
key = focus_trap_esm_toPropertyKey(key);
|
|
26429
26755
|
if (key in obj) {
|
|
26430
26756
|
Object.defineProperty(obj, key, {
|
|
26431
26757
|
value: value,
|
|
@@ -26438,8 +26764,21 @@ function focus_trap_esm_defineProperty(obj, key, value) {
|
|
|
26438
26764
|
}
|
|
26439
26765
|
return obj;
|
|
26440
26766
|
}
|
|
26767
|
+
function focus_trap_esm_toPrimitive(input, hint) {
|
|
26768
|
+
if (typeof input !== "object" || input === null) return input;
|
|
26769
|
+
var prim = input[Symbol.toPrimitive];
|
|
26770
|
+
if (prim !== undefined) {
|
|
26771
|
+
var res = prim.call(input, hint || "default");
|
|
26772
|
+
if (typeof res !== "object") return res;
|
|
26773
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
26774
|
+
}
|
|
26775
|
+
return (hint === "string" ? String : Number)(input);
|
|
26776
|
+
}
|
|
26777
|
+
function focus_trap_esm_toPropertyKey(arg) {
|
|
26778
|
+
var key = focus_trap_esm_toPrimitive(arg, "string");
|
|
26779
|
+
return typeof key === "symbol" ? key : String(key);
|
|
26780
|
+
}
|
|
26441
26781
|
|
|
26442
|
-
var rooTrapStack = [];
|
|
26443
26782
|
var activeFocusTraps = {
|
|
26444
26783
|
activateTrap: function activateTrap(trapStack, trap) {
|
|
26445
26784
|
if (trapStack.length > 0) {
|
|
@@ -26476,6 +26815,16 @@ var isEscapeEvent = function isEscapeEvent(e) {
|
|
|
26476
26815
|
var isTabEvent = function isTabEvent(e) {
|
|
26477
26816
|
return e.key === 'Tab' || e.keyCode === 9;
|
|
26478
26817
|
};
|
|
26818
|
+
|
|
26819
|
+
// checks for TAB by default
|
|
26820
|
+
var isKeyForward = function isKeyForward(e) {
|
|
26821
|
+
return isTabEvent(e) && !e.shiftKey;
|
|
26822
|
+
};
|
|
26823
|
+
|
|
26824
|
+
// checks for SHIFT+TAB by default
|
|
26825
|
+
var isKeyBackward = function isKeyBackward(e) {
|
|
26826
|
+
return isTabEvent(e) && e.shiftKey;
|
|
26827
|
+
};
|
|
26479
26828
|
var delay = function delay(fn) {
|
|
26480
26829
|
return setTimeout(fn, 0);
|
|
26481
26830
|
};
|
|
@@ -26519,15 +26868,21 @@ var getActualTarget = function getActualTarget(event) {
|
|
|
26519
26868
|
// composedPath()[0] === event.target always).
|
|
26520
26869
|
return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
|
|
26521
26870
|
};
|
|
26871
|
+
|
|
26872
|
+
// NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
|
|
26873
|
+
// current instance use the same stack if `userOptions.trapStack` isn't specified
|
|
26874
|
+
var internalTrapStack = [];
|
|
26522
26875
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
26523
26876
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
26524
26877
|
// should be safe code to execute if the `document` option isn't specified
|
|
26525
26878
|
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
26526
|
-
var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) ||
|
|
26879
|
+
var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
|
|
26527
26880
|
var config = focus_trap_esm_objectSpread2({
|
|
26528
26881
|
returnFocusOnDeactivate: true,
|
|
26529
26882
|
escapeDeactivates: true,
|
|
26530
|
-
delayInitialFocus: true
|
|
26883
|
+
delayInitialFocus: true,
|
|
26884
|
+
isKeyForward: isKeyForward,
|
|
26885
|
+
isKeyBackward: isKeyBackward
|
|
26531
26886
|
}, userOptions);
|
|
26532
26887
|
var state = {
|
|
26533
26888
|
// containers given to createFocusTrap()
|
|
@@ -26808,12 +27163,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26808
27163
|
}
|
|
26809
27164
|
};
|
|
26810
27165
|
|
|
26811
|
-
// Hijack
|
|
27166
|
+
// Hijack key nav events on the first and last focusable nodes of the trap,
|
|
26812
27167
|
// in order to prevent focus from escaping. If it escapes for even a
|
|
26813
27168
|
// moment it can end up scrolling the page and causing confusion so we
|
|
26814
27169
|
// kind of need to capture the action at the keydown phase.
|
|
26815
|
-
var
|
|
26816
|
-
var
|
|
27170
|
+
var checkKeyNav = function checkKeyNav(event) {
|
|
27171
|
+
var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
27172
|
+
var target = getActualTarget(event);
|
|
26817
27173
|
updateTabbableNodes();
|
|
26818
27174
|
var destinationNode = null;
|
|
26819
27175
|
if (state.tabbableGroups.length > 0) {
|
|
@@ -26824,15 +27180,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26824
27180
|
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
|
|
26825
27181
|
if (containerIndex < 0) {
|
|
26826
27182
|
// target not found in any group: quite possible focus has escaped the trap,
|
|
26827
|
-
// so bring it back
|
|
26828
|
-
if (
|
|
27183
|
+
// so bring it back into...
|
|
27184
|
+
if (isBackward) {
|
|
26829
27185
|
// ...the last node in the last group
|
|
26830
27186
|
destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
|
|
26831
27187
|
} else {
|
|
26832
27188
|
// ...the first node in the first group
|
|
26833
27189
|
destinationNode = state.tabbableGroups[0].firstTabbableNode;
|
|
26834
27190
|
}
|
|
26835
|
-
} else if (
|
|
27191
|
+
} else if (isBackward) {
|
|
26836
27192
|
// REVERSE
|
|
26837
27193
|
|
|
26838
27194
|
// is the target the first tabbable node in a group?
|
|
@@ -26856,6 +27212,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26856
27212
|
var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
|
|
26857
27213
|
var destinationGroup = state.tabbableGroups[destinationGroupIndex];
|
|
26858
27214
|
destinationNode = destinationGroup.lastTabbableNode;
|
|
27215
|
+
} else if (!isTabEvent(event)) {
|
|
27216
|
+
// user must have customized the nav keys so we have to move focus manually _within_
|
|
27217
|
+
// the active group: do this based on the order determined by tabbable()
|
|
27218
|
+
destinationNode = containerGroup.nextTabbableNode(target, false);
|
|
26859
27219
|
}
|
|
26860
27220
|
} else {
|
|
26861
27221
|
// FORWARD
|
|
@@ -26881,28 +27241,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26881
27241
|
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
26882
27242
|
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
26883
27243
|
destinationNode = _destinationGroup.firstTabbableNode;
|
|
27244
|
+
} else if (!isTabEvent(event)) {
|
|
27245
|
+
// user must have customized the nav keys so we have to move focus manually _within_
|
|
27246
|
+
// the active group: do this based on the order determined by tabbable()
|
|
27247
|
+
destinationNode = containerGroup.nextTabbableNode(target);
|
|
26884
27248
|
}
|
|
26885
27249
|
}
|
|
26886
27250
|
} else {
|
|
27251
|
+
// no groups available
|
|
26887
27252
|
// NOTE: the fallbackFocus option does not support returning false to opt-out
|
|
26888
27253
|
destinationNode = getNodeForOption('fallbackFocus');
|
|
26889
27254
|
}
|
|
26890
27255
|
if (destinationNode) {
|
|
26891
|
-
|
|
27256
|
+
if (isTabEvent(event)) {
|
|
27257
|
+
// since tab natively moves focus, we wouldn't have a destination node unless we
|
|
27258
|
+
// were on the edge of a container and had to move to the next/previous edge, in
|
|
27259
|
+
// which case we want to prevent default to keep the browser from moving focus
|
|
27260
|
+
// to where it normally would
|
|
27261
|
+
event.preventDefault();
|
|
27262
|
+
}
|
|
26892
27263
|
tryFocus(destinationNode);
|
|
26893
27264
|
}
|
|
26894
27265
|
// else, let the browser take care of [shift+]tab and move the focus
|
|
26895
27266
|
};
|
|
26896
27267
|
|
|
26897
|
-
var checkKey = function checkKey(
|
|
26898
|
-
if (isEscapeEvent(
|
|
26899
|
-
|
|
27268
|
+
var checkKey = function checkKey(event) {
|
|
27269
|
+
if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
|
|
27270
|
+
event.preventDefault();
|
|
26900
27271
|
trap.deactivate();
|
|
26901
27272
|
return;
|
|
26902
27273
|
}
|
|
26903
|
-
if (
|
|
26904
|
-
|
|
26905
|
-
return;
|
|
27274
|
+
if (config.isKeyForward(event) || config.isKeyBackward(event)) {
|
|
27275
|
+
checkKeyNav(event, config.isKeyBackward(event));
|
|
26906
27276
|
}
|
|
26907
27277
|
};
|
|
26908
27278
|
var checkClick = function checkClick(e) {
|
|
@@ -27826,6 +28196,8 @@ var seamly_event_subscriber_rest = undefined && undefined.__rest || function (s,
|
|
|
27826
28196
|
const EMITTABLE_MESSAGE_TYPES = ['text', 'choice_prompt', 'image', 'video'];
|
|
27827
28197
|
const SeamlyEventSubscriber = () => {
|
|
27828
28198
|
const api = useSeamlyApiContext();
|
|
28199
|
+
const syncChannelRef = (0,hooks_module/* useRef */.sO)();
|
|
28200
|
+
const messageChannelRef = (0,hooks_module/* useRef */.sO)();
|
|
27829
28201
|
const dispatch = useDispatch();
|
|
27830
28202
|
const events = useEvents();
|
|
27831
28203
|
const eventBus = (0,hooks_module/* useContext */.qp)(SeamlyEventBusContext);
|
|
@@ -27888,205 +28260,227 @@ const SeamlyEventSubscriber = () => {
|
|
|
27888
28260
|
});
|
|
27889
28261
|
}, [api.conversation, dispatch]);
|
|
27890
28262
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
27891
|
-
if (api.connectionInfo
|
|
27892
|
-
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
payload
|
|
27898
|
-
} = event;
|
|
27899
|
-
if (!payload || !payload.participant) {
|
|
27900
|
-
return;
|
|
27901
|
-
}
|
|
28263
|
+
if (api.connectionInfo) {
|
|
28264
|
+
api.conversation.onConnection(_ref2 => {
|
|
28265
|
+
let {
|
|
28266
|
+
connected
|
|
28267
|
+
} = _ref2;
|
|
28268
|
+
if (!connected) return false;
|
|
27902
28269
|
const {
|
|
27903
|
-
|
|
27904
|
-
|
|
27905
|
-
|
|
27906
|
-
|
|
27907
|
-
|
|
27908
|
-
|
|
27909
|
-
|
|
27910
|
-
|
|
27911
|
-
|
|
27912
|
-
|
|
27913
|
-
|
|
27914
|
-
|
|
27915
|
-
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
}
|
|
27919
|
-
|
|
27920
|
-
|
|
27921
|
-
|
|
27922
|
-
|
|
27923
|
-
|
|
27924
|
-
|
|
28270
|
+
channel
|
|
28271
|
+
} = api.conversation;
|
|
28272
|
+
const updateParticipant = event => {
|
|
28273
|
+
const {
|
|
28274
|
+
payload
|
|
28275
|
+
} = event;
|
|
28276
|
+
if (!payload || !payload.participant) {
|
|
28277
|
+
return;
|
|
28278
|
+
}
|
|
28279
|
+
const {
|
|
28280
|
+
fromClient,
|
|
28281
|
+
participant
|
|
28282
|
+
} = payload;
|
|
28283
|
+
if (!fromClient && typeof participant !== 'string' && (participant === null || participant === void 0 ? void 0 : participant.name)) {
|
|
28284
|
+
dispatch(setHeaderSubTitle(participant.name));
|
|
28285
|
+
}
|
|
28286
|
+
dispatch(setParticipant({
|
|
28287
|
+
participant,
|
|
28288
|
+
fromClient
|
|
28289
|
+
}));
|
|
28290
|
+
if (typeof participant !== 'string' && participant.introduction) {
|
|
28291
|
+
dispatch(addEvent(assign_default()(assign_default()({}, event), {
|
|
28292
|
+
payload: assign_default()(assign_default()({}, payload), {
|
|
28293
|
+
type: 'participant'
|
|
28294
|
+
})
|
|
28295
|
+
})));
|
|
28296
|
+
}
|
|
27925
28297
|
};
|
|
27926
|
-
|
|
27927
|
-
|
|
27928
|
-
|
|
27929
|
-
|
|
27930
|
-
|
|
27931
|
-
|
|
27932
|
-
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
|
|
27941
|
-
|
|
27942
|
-
|
|
27943
|
-
|
|
27944
|
-
|
|
27945
|
-
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27949
|
-
|
|
27950
|
-
|
|
27951
|
-
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
27959
|
-
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
|
|
27965
|
-
|
|
28298
|
+
channel.onMessage = (type, payload) => {
|
|
28299
|
+
const event = {
|
|
28300
|
+
type,
|
|
28301
|
+
payload
|
|
28302
|
+
};
|
|
28303
|
+
switch (type) {
|
|
28304
|
+
case 'ui':
|
|
28305
|
+
if (payload.state && payload.state.hasOwnProperty('loading')) {
|
|
28306
|
+
dispatch(setIsLoading(payload.state.loading));
|
|
28307
|
+
}
|
|
28308
|
+
switch (payload.type) {
|
|
28309
|
+
case 'idle_detach_countdown':
|
|
28310
|
+
initCountdown(payload.body.duration);
|
|
28311
|
+
break;
|
|
28312
|
+
case 'idle_detach_countdown_elapsed':
|
|
28313
|
+
endCountdown(undefined, true);
|
|
28314
|
+
break;
|
|
28315
|
+
case 'resume_conversation_prompt':
|
|
28316
|
+
dispatch(initResumeConversationPrompt());
|
|
28317
|
+
break;
|
|
28318
|
+
case 'translation_proposal':
|
|
28319
|
+
dispatch(setTranslationProposalPrompt(payload.body));
|
|
28320
|
+
break;
|
|
28321
|
+
case 'user_first_response':
|
|
28322
|
+
dispatch(setHasResponded(true));
|
|
28323
|
+
// @ts-ignore
|
|
28324
|
+
eventBus.emit('system.userFirstResponse', payload.body);
|
|
28325
|
+
break;
|
|
28326
|
+
}
|
|
28327
|
+
break;
|
|
28328
|
+
case 'message':
|
|
28329
|
+
updateParticipant(payload);
|
|
28330
|
+
switch (payload.type) {
|
|
28331
|
+
case 'text':
|
|
28332
|
+
case 'choice_prompt':
|
|
28333
|
+
case 'splash':
|
|
28334
|
+
case 'image':
|
|
28335
|
+
case 'upload':
|
|
28336
|
+
case 'video':
|
|
28337
|
+
case 'cta':
|
|
28338
|
+
case 'custom':
|
|
28339
|
+
case 'carousel':
|
|
28340
|
+
case 'card':
|
|
28341
|
+
if (payload.service && payload.service.serviceSessionId) {
|
|
28342
|
+
dispatch(setActiveService(payload.service.serviceSessionId));
|
|
28343
|
+
}
|
|
28344
|
+
dispatch(addEvent(event));
|
|
28345
|
+
break;
|
|
28346
|
+
}
|
|
28347
|
+
break;
|
|
28348
|
+
case 'participant':
|
|
28349
|
+
updateParticipant(event);
|
|
28350
|
+
break;
|
|
28351
|
+
case 'service_data':
|
|
28352
|
+
if (payload.persist) {
|
|
28353
|
+
dispatch(setServiceDataItem(payload));
|
|
28354
|
+
}
|
|
28355
|
+
break;
|
|
28356
|
+
case 'ack':
|
|
28357
|
+
dispatch(ackEvent(event));
|
|
28358
|
+
break;
|
|
28359
|
+
case 'system':
|
|
28360
|
+
if (payload.type === 'service_changed') {
|
|
28361
|
+
const {
|
|
28362
|
+
serviceSettings
|
|
28363
|
+
} = payload,
|
|
28364
|
+
eventPayload = seamly_event_subscriber_rest(payload, ["serviceSettings"]);
|
|
28365
|
+
const {
|
|
28366
|
+
entry
|
|
28367
|
+
} = serviceSettings;
|
|
28368
|
+
const {
|
|
28369
|
+
upload
|
|
28370
|
+
} = entry.options;
|
|
28371
|
+
dispatch(setFeatureEnabledState({
|
|
28372
|
+
key: featureKeys.uploads,
|
|
28373
|
+
enabled: !!(upload && upload.enabled)
|
|
28374
|
+
}));
|
|
28375
|
+
dispatch(setServiceEntryMetadata(entry));
|
|
28376
|
+
if (payload.serviceSessionId) {
|
|
28377
|
+
dispatch(setActiveService(payload.serviceSessionId));
|
|
27966
28378
|
}
|
|
28379
|
+
emitEvent('system.serviceChanged', eventPayload);
|
|
28380
|
+
}
|
|
28381
|
+
break;
|
|
28382
|
+
case 'info':
|
|
28383
|
+
if (payload.type === 'divider' || payload.type === 'text' || payload.type === 'translation') {
|
|
27967
28384
|
dispatch(addEvent(event));
|
|
27968
|
-
break;
|
|
27969
|
-
}
|
|
27970
|
-
break;
|
|
27971
|
-
case 'participant':
|
|
27972
|
-
updateParticipant(event);
|
|
27973
|
-
break;
|
|
27974
|
-
case 'service_data':
|
|
27975
|
-
if (payload.persist) {
|
|
27976
|
-
dispatch(setServiceDataItem(payload));
|
|
27977
|
-
}
|
|
27978
|
-
break;
|
|
27979
|
-
case 'ack':
|
|
27980
|
-
dispatch(ackEvent(event));
|
|
27981
|
-
break;
|
|
27982
|
-
case 'system':
|
|
27983
|
-
if (payload.type === 'service_changed') {
|
|
27984
|
-
const {
|
|
27985
|
-
serviceSettings
|
|
27986
|
-
} = payload,
|
|
27987
|
-
eventPayload = seamly_event_subscriber_rest(payload, ["serviceSettings"]);
|
|
27988
|
-
const {
|
|
27989
|
-
entry
|
|
27990
|
-
} = serviceSettings;
|
|
27991
|
-
const {
|
|
27992
|
-
upload
|
|
27993
|
-
} = entry.options;
|
|
27994
|
-
dispatch(setFeatureEnabledState({
|
|
27995
|
-
key: featureKeys.uploads,
|
|
27996
|
-
enabled: !!(upload && upload.enabled)
|
|
27997
|
-
}));
|
|
27998
|
-
dispatch(setServiceEntryMetadata(entry));
|
|
27999
|
-
if (payload.serviceSessionId) {
|
|
28000
|
-
dispatch(setActiveService(payload.serviceSessionId));
|
|
28001
28385
|
}
|
|
28002
|
-
|
|
28003
|
-
|
|
28004
|
-
|
|
28005
|
-
|
|
28006
|
-
|
|
28007
|
-
|
|
28008
|
-
|
|
28009
|
-
|
|
28010
|
-
|
|
28011
|
-
|
|
28012
|
-
|
|
28013
|
-
|
|
28014
|
-
|
|
28015
|
-
|
|
28016
|
-
|
|
28017
|
-
|
|
28018
|
-
|
|
28019
|
-
|
|
28020
|
-
|
|
28021
|
-
|
|
28022
|
-
|
|
28023
|
-
|
|
28024
|
-
|
|
28025
|
-
|
|
28026
|
-
|
|
28027
|
-
|
|
28028
|
-
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
break;
|
|
28033
|
-
}
|
|
28034
|
-
}
|
|
28035
|
-
return payload;
|
|
28036
|
-
};
|
|
28386
|
+
break;
|
|
28387
|
+
case 'error':
|
|
28388
|
+
switch (payload.type) {
|
|
28389
|
+
case 'find_conversation_erred':
|
|
28390
|
+
const seamlySessionExpiredError = new SeamlySessionExpiredError(event);
|
|
28391
|
+
dispatch(setInterrupt({
|
|
28392
|
+
name: seamlySessionExpiredError.name,
|
|
28393
|
+
action: seamlySessionExpiredError.action,
|
|
28394
|
+
message: seamlySessionExpiredError.message,
|
|
28395
|
+
originalEvent: seamlySessionExpiredError.originalEvent,
|
|
28396
|
+
originalError: seamlySessionExpiredError.originalError
|
|
28397
|
+
}));
|
|
28398
|
+
break;
|
|
28399
|
+
case 'conversation_erred':
|
|
28400
|
+
const seamlyGeneralError = new SeamlyGeneralError(event);
|
|
28401
|
+
dispatch(setInterrupt({
|
|
28402
|
+
name: seamlyGeneralError.name,
|
|
28403
|
+
message: seamlyGeneralError.message,
|
|
28404
|
+
langKey: seamlyGeneralError.langKey,
|
|
28405
|
+
originalEvent: seamlyGeneralError.originalEvent,
|
|
28406
|
+
originalError: seamlyGeneralError.originalError,
|
|
28407
|
+
action: seamlyGeneralError.action
|
|
28408
|
+
}));
|
|
28409
|
+
break;
|
|
28410
|
+
}
|
|
28411
|
+
}
|
|
28412
|
+
return payload;
|
|
28413
|
+
};
|
|
28414
|
+
return true;
|
|
28415
|
+
});
|
|
28037
28416
|
}
|
|
28038
28417
|
}, [api, api.connectionInfo, api.conversation.channel, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
28039
28418
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
28040
|
-
if (api.connectionInfo
|
|
28041
|
-
|
|
28042
|
-
|
|
28043
|
-
|
|
28044
|
-
|
|
28045
|
-
if (!
|
|
28419
|
+
if (api.connectionInfo) {
|
|
28420
|
+
api.conversation.onConnection(_ref3 => {
|
|
28421
|
+
let {
|
|
28422
|
+
connected
|
|
28423
|
+
} = _ref3;
|
|
28424
|
+
if (!connected) return false;
|
|
28425
|
+
const {
|
|
28426
|
+
channel
|
|
28427
|
+
} = api.conversation;
|
|
28428
|
+
messageChannelRef.current = channel.on('message', payload => {
|
|
28429
|
+
if (!includes_default()(EMITTABLE_MESSAGE_TYPES).call(EMITTABLE_MESSAGE_TYPES, payload.type)) {
|
|
28430
|
+
return payload;
|
|
28431
|
+
}
|
|
28432
|
+
// This check dedupes the sending of messages via
|
|
28433
|
+
// the bus if a duplicate connection exists in an
|
|
28434
|
+
// error situation.
|
|
28435
|
+
if (payload.id !== prevEmittedEventId.current) {
|
|
28436
|
+
// @ts-ignore
|
|
28437
|
+
eventBus.emit('message', payload);
|
|
28438
|
+
}
|
|
28439
|
+
prevEmittedEventId.current = payload.id;
|
|
28046
28440
|
return payload;
|
|
28047
|
-
}
|
|
28048
|
-
|
|
28049
|
-
// the bus if a duplicate connection exists in an
|
|
28050
|
-
// error situation.
|
|
28051
|
-
if (payload.id !== prevEmittedEventId.current) {
|
|
28052
|
-
// @ts-ignore
|
|
28053
|
-
eventBus.emit('message', payload);
|
|
28054
|
-
}
|
|
28055
|
-
prevEmittedEventId.current = payload.id;
|
|
28056
|
-
return payload;
|
|
28441
|
+
});
|
|
28442
|
+
return true;
|
|
28057
28443
|
});
|
|
28444
|
+
return () => {
|
|
28445
|
+
var _a;
|
|
28446
|
+
(_a = api.conversation.channel) === null || _a === void 0 ? void 0 : _a.off('message', messageChannelRef.current);
|
|
28447
|
+
};
|
|
28058
28448
|
}
|
|
28449
|
+
return () => undefined;
|
|
28059
28450
|
}, [api, api.connectionInfo, api.conversation.channel, eventBus]);
|
|
28060
28451
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
28061
|
-
if (api.connectionInfo
|
|
28062
|
-
|
|
28063
|
-
|
|
28064
|
-
|
|
28065
|
-
|
|
28066
|
-
|
|
28067
|
-
|
|
28068
|
-
|
|
28069
|
-
|
|
28070
|
-
|
|
28071
|
-
|
|
28072
|
-
|
|
28073
|
-
if (!history) {
|
|
28074
|
-
return;
|
|
28452
|
+
if (api.connectionInfo) {
|
|
28453
|
+
api.conversation.onConnection(_ref4 => {
|
|
28454
|
+
let {
|
|
28455
|
+
connected
|
|
28456
|
+
} = _ref4;
|
|
28457
|
+
if (!connected) return false;
|
|
28458
|
+
syncChannelRef.current = api.conversation.channel.on('sync', payload => {
|
|
28459
|
+
var _a;
|
|
28460
|
+
const lastEvent = events[events.length - 1];
|
|
28461
|
+
const payloadLastEventId = (_a = payload === null || payload === void 0 ? void 0 : payload.lastEvent) === null || _a === void 0 ? void 0 : _a.id;
|
|
28462
|
+
if (lastEvent && payloadLastEventId === lastEvent.payload.id) {
|
|
28463
|
+
return payload;
|
|
28075
28464
|
}
|
|
28076
|
-
|
|
28077
|
-
|
|
28078
|
-
|
|
28079
|
-
|
|
28080
|
-
|
|
28081
|
-
|
|
28082
|
-
|
|
28083
|
-
|
|
28084
|
-
|
|
28085
|
-
|
|
28465
|
+
return api.getConversation().then(history => {
|
|
28466
|
+
if (!history) return;
|
|
28467
|
+
dispatch(setHistory(history));
|
|
28468
|
+
}).catch(error => {
|
|
28469
|
+
dispatch(setInterrupt({
|
|
28470
|
+
name: error === null || error === void 0 ? void 0 : error.name,
|
|
28471
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
|
28472
|
+
langKey: error === null || error === void 0 ? void 0 : error.langKey,
|
|
28473
|
+
action: error === null || error === void 0 ? void 0 : error.action,
|
|
28474
|
+
originalEvent: error === null || error === void 0 ? void 0 : error.originalEvent,
|
|
28475
|
+
originalError: error === null || error === void 0 ? void 0 : error.originalError
|
|
28476
|
+
}));
|
|
28477
|
+
});
|
|
28086
28478
|
});
|
|
28479
|
+
return true;
|
|
28087
28480
|
});
|
|
28088
28481
|
return () => {
|
|
28089
|
-
|
|
28482
|
+
var _a;
|
|
28483
|
+
(_a = api.conversation.channel) === null || _a === void 0 ? void 0 : _a.off('sync', syncChannelRef.current);
|
|
28090
28484
|
};
|
|
28091
28485
|
}
|
|
28092
28486
|
return () => undefined;
|
|
@@ -28309,11 +28703,10 @@ function useSeamlyInstanceFunction(functionName, fn) {
|
|
|
28309
28703
|
return undefined;
|
|
28310
28704
|
}
|
|
28311
28705
|
const callback = function () {
|
|
28312
|
-
var _callbackRef$current;
|
|
28313
28706
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28314
28707
|
args[_key] = arguments[_key];
|
|
28315
28708
|
}
|
|
28316
|
-
return
|
|
28709
|
+
return callbackRef.current?.(...args);
|
|
28317
28710
|
};
|
|
28318
28711
|
eventBus.emit('function.register', functionName, callback);
|
|
28319
28712
|
return () => eventBus.emit('function.unregister', functionName, callback);
|
|
@@ -28359,12 +28752,12 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
28359
28752
|
sendMessage({
|
|
28360
28753
|
body: text
|
|
28361
28754
|
});
|
|
28362
|
-
}, [api
|
|
28755
|
+
}, [api?.send]);
|
|
28363
28756
|
useSeamlyInstanceFunction('setVariables', variables => {
|
|
28364
28757
|
sendContext({
|
|
28365
28758
|
variables
|
|
28366
28759
|
});
|
|
28367
|
-
}, [api
|
|
28760
|
+
}, [api?.send]);
|
|
28368
28761
|
useSeamlyInstanceFunction('getVisibility', callback => {
|
|
28369
28762
|
if (callback) {
|
|
28370
28763
|
callback(currentVisibility.current);
|
|
@@ -28380,7 +28773,7 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
28380
28773
|
}
|
|
28381
28774
|
onActivityHandler();
|
|
28382
28775
|
setVisibility(visibilityState);
|
|
28383
|
-
}, [config
|
|
28776
|
+
}, [config?.api]);
|
|
28384
28777
|
useSeamlyInstanceFunction('sendCustomAction', (actionType, body) => {
|
|
28385
28778
|
sendAction({
|
|
28386
28779
|
type: 'custom',
|
|
@@ -29245,7 +29638,7 @@ const validateFileSize = (fileList, maxSize) => {
|
|
|
29245
29638
|
}
|
|
29246
29639
|
return isValid;
|
|
29247
29640
|
};
|
|
29248
|
-
const fileListObjectIsNotEmpty = fileListObj => !!
|
|
29641
|
+
const fileListObjectIsNotEmpty = fileListObj => !!fileListObj?.length > 0;
|
|
29249
29642
|
|
|
29250
29643
|
/* eslint-disable no-control-regex */
|
|
29251
29644
|
const isEmailString = val => {
|
|
@@ -29860,7 +30253,6 @@ const Options = () => {
|
|
|
29860
30253
|
|
|
29861
30254
|
|
|
29862
30255
|
|
|
29863
|
-
|
|
29864
30256
|
const OptionsButton = () => {
|
|
29865
30257
|
const {
|
|
29866
30258
|
t
|
|
@@ -29884,10 +30276,7 @@ const OptionsButton = () => {
|
|
|
29884
30276
|
const prevMenuIsOpen = (0,hooks_module/* useRef */.sO)(false);
|
|
29885
30277
|
const multiMenu = optionsLength > 1;
|
|
29886
30278
|
const firstOption = menuOptions[0];
|
|
29887
|
-
const firstOptionName = (0,hooks_module/* useMemo */.Ye)(() =>
|
|
29888
|
-
var _firstOption$name;
|
|
29889
|
-
return firstOption === null || firstOption === void 0 ? void 0 : (_firstOption$name = firstOption.name) === null || _firstOption$name === void 0 ? void 0 : trim_default()(_firstOption$name).call(_firstOption$name).replace(/\s+/g, '');
|
|
29890
|
-
}, [firstOption]);
|
|
30279
|
+
const firstOptionName = (0,hooks_module/* useMemo */.Ye)(() => firstOption?.name?.trim().replace(/\s+/g, ''), [firstOption]);
|
|
29891
30280
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
29892
30281
|
return () => {
|
|
29893
30282
|
clearTimeout(focusOutDelayTimeoutID.current);
|
|
@@ -29910,7 +30299,7 @@ const OptionsButton = () => {
|
|
|
29910
30299
|
}
|
|
29911
30300
|
if (multiMenu) {
|
|
29912
30301
|
setMenuIsOpen(o => !o);
|
|
29913
|
-
} else if (firstOption.available) {
|
|
30302
|
+
} else if (firstOption.available && !panelActive) {
|
|
29914
30303
|
showOption(firstOption.name);
|
|
29915
30304
|
}
|
|
29916
30305
|
};
|
|
@@ -30160,7 +30549,7 @@ function TranslationsOptionsButton({ children, position = {
|
|
|
30160
30549
|
setMenuIsOpen(false);
|
|
30161
30550
|
};
|
|
30162
30551
|
const handleToggleClick = () => {
|
|
30163
|
-
setMenuIsOpen(
|
|
30552
|
+
setMenuIsOpen(!menuIsOpen);
|
|
30164
30553
|
};
|
|
30165
30554
|
const handleToggleKeyDown = (e) => {
|
|
30166
30555
|
if (getKey(e) === keyNames.ArrowDown) {
|
|
@@ -31190,8 +31579,7 @@ const upload_Upload = () => {
|
|
|
31190
31579
|
const prevContentHintText = (0,hooks_module/* useRef */.sO)('');
|
|
31191
31580
|
const containerRef = (0,hooks_module/* useRef */.sO)(null);
|
|
31192
31581
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
31193
|
-
|
|
31194
|
-
if (prevContentHintText.current && (_containerRef$current = containerRef.current) !== null && _containerRef$current !== void 0 && _containerRef$current.contains(document.activeElement) && document.activeElement.tagName === 'INPUT') {
|
|
31582
|
+
if (prevContentHintText.current && containerRef.current?.contains(document.activeElement) && document.activeElement.tagName === 'INPUT') {
|
|
31195
31583
|
sendAssertive(contentHintText);
|
|
31196
31584
|
}
|
|
31197
31585
|
prevContentHintText.current = contentHintText;
|
|
@@ -31744,7 +32132,7 @@ function PreChatMessages() {
|
|
|
31744
32132
|
const {
|
|
31745
32133
|
isOpen
|
|
31746
32134
|
} = useVisibility();
|
|
31747
|
-
const isVisible = !(hasInterrupt || !
|
|
32135
|
+
const isVisible = !(hasInterrupt || !preChatEvents?.length || isOpen);
|
|
31748
32136
|
return isVisible && o("ul", {
|
|
31749
32137
|
className: css_className('pre-chat-messages', `pre-chat-messages--${layoutMode}`),
|
|
31750
32138
|
"aria-hidden": !isVisible,
|
|
@@ -31895,6 +32283,18 @@ const WindowOpenButton = _ref => {
|
|
|
31895
32283
|
|
|
31896
32284
|
|
|
31897
32285
|
|
|
32286
|
+
function window_view_ownKeys(object, enumerableOnly) { var keys = keys_default()(object); if ((get_own_property_symbols_default())) { var symbols = get_own_property_symbols_default()(object); enumerableOnly && (symbols = filter_default()(symbols).call(symbols, function (sym) { return get_own_property_descriptor_default()(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32287
|
+
function window_view_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? for_each_default()(_context = window_view_ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : (get_own_property_descriptors_default()) ? define_properties_default()(target, get_own_property_descriptors_default()(source)) : for_each_default()(_context2 = window_view_ownKeys(Object(source))).call(_context2, function (key) { define_property_default()(target, key, get_own_property_descriptor_default()(source, key)); }); } return target; }
|
|
32288
|
+
|
|
32289
|
+
|
|
32290
|
+
|
|
32291
|
+
|
|
32292
|
+
|
|
32293
|
+
|
|
32294
|
+
|
|
32295
|
+
|
|
32296
|
+
|
|
32297
|
+
|
|
31898
32298
|
|
|
31899
32299
|
|
|
31900
32300
|
|
|
@@ -31908,6 +32308,10 @@ const WindowView = () => {
|
|
|
31908
32308
|
openChat
|
|
31909
32309
|
} = useVisibility();
|
|
31910
32310
|
const userHasResponded = useUserHasResponded();
|
|
32311
|
+
const {
|
|
32312
|
+
hasInterrupt,
|
|
32313
|
+
meta
|
|
32314
|
+
} = useInterrupt();
|
|
31911
32315
|
const {
|
|
31912
32316
|
t
|
|
31913
32317
|
} = useI18n();
|
|
@@ -31919,6 +32323,9 @@ const WindowView = () => {
|
|
|
31919
32323
|
}
|
|
31920
32324
|
}
|
|
31921
32325
|
}), [continueChatText]);
|
|
32326
|
+
if (hasInterrupt && !isOpen) {
|
|
32327
|
+
return o(interrupt, window_view_objectSpread({}, meta));
|
|
32328
|
+
}
|
|
31922
32329
|
return o(preact_module/* Fragment */.HY, {
|
|
31923
32330
|
children: [o(window_open_button, {
|
|
31924
32331
|
onClick: openChat
|
|
@@ -32369,8 +32776,7 @@ class ExternalApi {
|
|
|
32369
32776
|
return typeof this.appConfig === 'function' ? this.appConfig(combinedConfig) : combinedConfig;
|
|
32370
32777
|
}
|
|
32371
32778
|
getMergedVariables(userConfig) {
|
|
32372
|
-
|
|
32373
|
-
return external_api_objectSpread(external_api_objectSpread(external_api_objectSpread({}, ((_this$appConfig$conte = this.appConfig.context) === null || _this$appConfig$conte === void 0 ? void 0 : _this$appConfig$conte.variables) || {}), ((_userConfig$context = userConfig.context) === null || _userConfig$context === void 0 ? void 0 : _userConfig$context.variables) || {}), this.context.variables || {});
|
|
32779
|
+
return external_api_objectSpread(external_api_objectSpread(external_api_objectSpread({}, this.appConfig.context?.variables || {}), userConfig.context?.variables || {}), this.context.variables || {});
|
|
32374
32780
|
}
|
|
32375
32781
|
}
|
|
32376
32782
|
/* harmony default export */ var external_api = (ExternalApi);
|
|
@@ -32502,7 +32908,7 @@ const AgentInfo = () => {
|
|
|
32502
32908
|
hasInterrupt
|
|
32503
32909
|
} = useInterrupt();
|
|
32504
32910
|
const startChatIcon = useStartChatIcon();
|
|
32505
|
-
const src =
|
|
32911
|
+
const src = currentAgent?.avatar ?? startChatIcon;
|
|
32506
32912
|
const displaySubtitle = hasInterrupt ? '' : subTitle;
|
|
32507
32913
|
const classNames = ['message-count'];
|
|
32508
32914
|
if (isOpen) {
|
|
@@ -32516,7 +32922,7 @@ const AgentInfo = () => {
|
|
|
32516
32922
|
children: [o("div", {
|
|
32517
32923
|
className: css_className('agent-info__graphic'),
|
|
32518
32924
|
children: [src ? o("img", {
|
|
32519
|
-
className: css_className(currentAgent
|
|
32925
|
+
className: css_className(currentAgent?.avatar ? 'avatar' : 'icon'),
|
|
32520
32926
|
src: src,
|
|
32521
32927
|
alt: ""
|
|
32522
32928
|
}) : o(layout_icon, {
|