@seamly/web-ui 21.0.6 → 21.0.7

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.
@@ -122,7 +122,7 @@ module.exports = Agent;
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 1766:
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__(7487);
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/visionmedia/superagent/issues/1680
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/visionmedia/superagent/pull/1084/commits/dc18679a7c5ccfc6046d882015e5126888973bc8>
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
- /***/ 6172:
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__(6172);
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__(7398);
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__(1437);
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
- /***/ 7398:
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
- /***/ 1437:
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
- /***/ 7487:
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__(1766);
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 !== null && originalError !== void 0 && originalError.payload) {
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 !== null && originalError !== void 0 && originalError.message) {
14911
+ if (!this.message && originalError?.message) {
14605
14912
  const parsedOriginalMessage = parseOriginalErrMsg(originalError.message);
14606
14913
  this.message = parsedOriginalMessage;
14607
14914
  }
14608
- if (originalError !== null && originalError !== void 0 && originalError.error) {
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
- // Loop in reverse order to enable splicing the array while iterating
16232
- for (let i = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f").length - 1; i >= 0; i--) {
16233
- const callback = __classPrivateFieldGet(this, _ConversationConnector_connectionListeners, "f")[i];
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
- if (complete) {
16237
- var _context;
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.4",
17011
+ clientVersion: "21.0.7",
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
- if (started) {
19504
- abortReason = reason;
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" ? requestAnimationFrame : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
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.js
21010
+ ;// CONCATENATED MODULE: ./src/javascripts/domains/visibility/constants.ts
20678
21011
  const StoreKey = 'visibility';
20679
21012
  const visibilityStates = {
20680
21013
  hidden: 'hidden',
@@ -22331,6 +22664,9 @@ const selectIsLoading = es_createSelector(_ref7 => {
22331
22664
  } = _ref8;
22332
22665
  return isLoading;
22333
22666
  });
22667
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js
22668
+ var splice = __webpack_require__(9940);
22669
+ var splice_default = /*#__PURE__*/__webpack_require__.n(splice);
22334
22670
  ;// CONCATENATED MODULE: ./src/javascripts/domains/translations/slice.ts
22335
22671
 
22336
22672
 
@@ -22484,14 +22820,13 @@ function createI18nMiddleware(_ref) {
22484
22820
  } = _ref;
22485
22821
  return next => {
22486
22822
  return action => {
22487
- var _payload$translation, _payload$translation2, _payload$payload, _payload$payload$body;
22488
22823
  const result = next(action);
22489
22824
  const {
22490
22825
  payload
22491
22826
  } = action;
22492
22827
  switch (action.type) {
22493
22828
  case setHistory.type:
22494
- if (payload !== null && payload !== void 0 && (_payload$translation = payload.translation) !== null && _payload$translation !== void 0 && _payload$translation.enabled) {
22829
+ if (payload?.translation?.enabled) {
22495
22830
  dispatch(enableTranslation(payload.translation.locale));
22496
22831
  dispatch(setLocale(payload.translation.locale));
22497
22832
  }
@@ -22502,13 +22837,13 @@ function createI18nMiddleware(_ref) {
22502
22837
  }
22503
22838
  break;
22504
22839
  case setInitialState.type:
22505
- if (payload !== null && payload !== void 0 && (_payload$translation2 = payload.translation) !== null && _payload$translation2 !== void 0 && _payload$translation2.enabled) {
22840
+ if (payload?.translation?.enabled) {
22506
22841
  dispatch(enableTranslation(payload.translation.locale));
22507
22842
  dispatch(setLocale(payload.locale));
22508
22843
  }
22509
22844
  break;
22510
22845
  case addEvent.type:
22511
- if (payload.type === 'info' && (payload === null || payload === void 0 ? void 0 : (_payload$payload = payload.payload) === null || _payload$payload === void 0 ? void 0 : (_payload$payload$body = _payload$payload.body) === null || _payload$payload$body === void 0 ? void 0 : _payload$payload$body.subtype) === 'new_translation' && payload.payload.body.translationEnabled) {
22846
+ if (payload.type === 'info' && payload?.payload?.body?.subtype === 'new_translation' && payload.payload.body.translationEnabled) {
22512
22847
  dispatch(setLocale(payload.payload.body.translationLocale));
22513
22848
  }
22514
22849
  break;
@@ -22910,12 +23245,12 @@ const useSeamlyCommands = () => {
22910
23245
  }
22911
23246
  }).catch(error => {
22912
23247
  dispatch(setInterrupt({
22913
- name: error === null || error === void 0 ? void 0 : error.name,
22914
- message: error === null || error === void 0 ? void 0 : error.message,
22915
- langKey: error === null || error === void 0 ? void 0 : error.langKey,
22916
- action: error === null || error === void 0 ? void 0 : error.action,
22917
- originalEvent: error === null || error === void 0 ? void 0 : error.originalEvent,
22918
- originalError: error === null || error === void 0 ? void 0 : error.originalError
23248
+ name: error?.name,
23249
+ message: error?.message,
23250
+ langKey: error?.langKey,
23251
+ action: error?.action,
23252
+ originalEvent: error?.originalEvent,
23253
+ originalError: error?.originalError
22919
23254
  }));
22920
23255
  });
22921
23256
  }, [api, dispatch, setVisibility]);
@@ -22941,28 +23276,33 @@ function _arrayWithHoles(arr) {
22941
23276
  }
22942
23277
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
22943
23278
  function _iterableToArrayLimit(arr, i) {
22944
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
22945
- if (_i == null) return;
22946
- var _arr = [];
22947
- var _n = true;
22948
- var _d = false;
22949
- var _s, _e;
22950
- try {
22951
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
22952
- _arr.push(_s.value);
22953
- if (i && _arr.length === i) break;
22954
- }
22955
- } catch (err) {
22956
- _d = true;
22957
- _e = err;
22958
- } finally {
23279
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
23280
+ if (null != _i) {
23281
+ var _s,
23282
+ _e,
23283
+ _x,
23284
+ _r,
23285
+ _arr = [],
23286
+ _n = !0,
23287
+ _d = !1;
22959
23288
  try {
22960
- if (!_n && _i["return"] != null) _i["return"]();
23289
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
23290
+ if (Object(_i) !== _i) return;
23291
+ _n = !1;
23292
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
23293
+ ;
23294
+ }
23295
+ } catch (err) {
23296
+ _d = !0, _e = err;
22961
23297
  } finally {
22962
- if (_d) throw _e;
23298
+ try {
23299
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
23300
+ } finally {
23301
+ if (_d) throw _e;
23302
+ }
22963
23303
  }
23304
+ return _arr;
22964
23305
  }
22965
- return _arr;
22966
23306
  }
22967
23307
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
22968
23308
  function _arrayLikeToArray(arr, len) {
@@ -23001,13 +23341,14 @@ function _classCallCheck(instance, Constructor) {
23001
23341
  }
23002
23342
  }
23003
23343
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
23344
+
23004
23345
  function _defineProperties(target, props) {
23005
23346
  for (var i = 0; i < props.length; i++) {
23006
23347
  var descriptor = props[i];
23007
23348
  descriptor.enumerable = descriptor.enumerable || false;
23008
23349
  descriptor.configurable = true;
23009
23350
  if ("value" in descriptor) descriptor.writable = true;
23010
- Object.defineProperty(target, descriptor.key, descriptor);
23351
+ Object.defineProperty(target, toPropertyKey_toPropertyKey(descriptor.key), descriptor);
23011
23352
  }
23012
23353
  }
23013
23354
  function _createClass(Constructor, protoProps, staticProps) {
@@ -23684,8 +24025,6 @@ const useSeamlyChat = () => {
23684
24025
  apiConnected
23685
24026
  } = use_seamly_commands();
23686
24027
  const hasConversation = useSeamlyHasConversation();
23687
- const prevIsOpen = (0,hooks_module/* useRef */.sO)(null);
23688
- const prevIsVisible = (0,hooks_module/* useRef */.sO)(null);
23689
24028
  const connectCalled = (0,hooks_module/* useRef */.sO)(false);
23690
24029
  const {
23691
24030
  sendAssertive
@@ -23700,20 +24039,14 @@ const useSeamlyChat = () => {
23700
24039
  }
23701
24040
  }, [isVisible, sendAssertive, t]);
23702
24041
  (0,hooks_module/* useEffect */.d4)(() => {
23703
- if (isVisible !== prevIsVisible.current) {
23704
- prevIsOpen.current = isOpen;
23705
- prevIsVisible.current = isVisible;
24042
+ if (!isVisible) {
23706
24043
  return;
23707
24044
  }
23708
- if (prevIsOpen.current !== null) {
23709
- if (isOpen) {
23710
- sendAssertive(t('window.srTexts.onOpen'));
23711
- } else {
23712
- sendAssertive(t('window.srTexts.onClose'));
23713
- }
24045
+ if (isOpen) {
24046
+ sendAssertive(t('window.srTexts.onOpen'));
24047
+ } else {
24048
+ sendAssertive(t('window.srTexts.onClose'));
23714
24049
  }
23715
- prevIsOpen.current = isOpen;
23716
- prevIsVisible.current = isVisible;
23717
24050
  }, [isOpen, isVisible, sendAssertive, t]);
23718
24051
  (0,hooks_module/* useEffect */.d4)(() => {
23719
24052
  // This delays the start of the loading inidicator we set when we initialise
@@ -24328,8 +24661,7 @@ const useStableCallback = callback => {
24328
24661
  const useSeamlyEventStream = (nextFn, filterFn) => {
24329
24662
  const api = useSeamlyApiContext();
24330
24663
  (0,hooks_module/* useEffect */.d4)(() => {
24331
- var _api$conversation;
24332
- if (api.connectionInfo && (_api$conversation = api.conversation) !== null && _api$conversation !== void 0 && _api$conversation.channel) {
24664
+ if (api.connectionInfo && api.conversation?.channel) {
24333
24665
  const {
24334
24666
  channel
24335
24667
  } = api.conversation;
@@ -25274,10 +25606,9 @@ const useChoicePrompt = event => {
25274
25606
  service
25275
25607
  } = payload;
25276
25608
  const subEvent = (0,hooks_module/* useMemo */.Ye)(() => {
25277
- var _event$payload$body;
25278
25609
  return choice_prompt_objectSpread(choice_prompt_objectSpread({}, event), {}, {
25279
25610
  payload: choice_prompt_objectSpread(choice_prompt_objectSpread({}, event.payload), {}, {
25280
- body: (_event$payload$body = event.payload.body) === null || _event$payload$body === void 0 ? void 0 : _event$payload$body.prompt,
25611
+ body: event.payload.body?.prompt,
25281
25612
  translatedBody: event.payload.translatedBody && choice_prompt_objectSpread(choice_prompt_objectSpread({}, event.payload.translatedBody), {}, {
25282
25613
  data: event.payload.translatedBody.data.prompt
25283
25614
  })
@@ -25526,7 +25857,7 @@ const ConversationSuggestions = _ref => {
25526
25857
  let {
25527
25858
  payload: eventPayload
25528
25859
  } = _ref2;
25529
- return eventPayload === null || eventPayload === void 0 ? void 0 : eventPayload.transactionLast;
25860
+ return eventPayload?.transactionLast;
25530
25861
  }), [events]);
25531
25862
  const handleClick = (0,hooks_module/* useCallback */.I4)(_ref3 => {
25532
25863
  let {
@@ -25852,12 +26183,11 @@ const timeFormatOptions = {
25852
26183
  minute: 'numeric'
25853
26184
  };
25854
26185
  const useFormattedDate = date => {
25855
- var _config$context;
25856
26186
  const {
25857
26187
  t
25858
26188
  } = useI18n();
25859
26189
  const config = useConfig();
25860
- const locale = (config === null || config === void 0 ? void 0 : (_config$context = config.context) === null || _config$context === void 0 ? void 0 : _config$context.locale) ?? [];
26190
+ const locale = config?.context?.locale ?? [];
25861
26191
  const eventDate = new Date(date);
25862
26192
  const currentDate = new Date();
25863
26193
  const midnight = new Date(currentDate);
@@ -26399,7 +26729,7 @@ var isFocusable = function isFocusable(node, options) {
26399
26729
 
26400
26730
  ;// CONCATENATED MODULE: ./node_modules/focus-trap/dist/focus-trap.esm.js
26401
26731
  /*!
26402
- * focus-trap 7.1.0
26732
+ * focus-trap 7.2.0
26403
26733
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
26404
26734
  */
26405
26735
 
@@ -26426,6 +26756,7 @@ function focus_trap_esm_objectSpread2(target) {
26426
26756
  return target;
26427
26757
  }
26428
26758
  function focus_trap_esm_defineProperty(obj, key, value) {
26759
+ key = focus_trap_esm_toPropertyKey(key);
26429
26760
  if (key in obj) {
26430
26761
  Object.defineProperty(obj, key, {
26431
26762
  value: value,
@@ -26438,8 +26769,21 @@ function focus_trap_esm_defineProperty(obj, key, value) {
26438
26769
  }
26439
26770
  return obj;
26440
26771
  }
26772
+ function focus_trap_esm_toPrimitive(input, hint) {
26773
+ if (typeof input !== "object" || input === null) return input;
26774
+ var prim = input[Symbol.toPrimitive];
26775
+ if (prim !== undefined) {
26776
+ var res = prim.call(input, hint || "default");
26777
+ if (typeof res !== "object") return res;
26778
+ throw new TypeError("@@toPrimitive must return a primitive value.");
26779
+ }
26780
+ return (hint === "string" ? String : Number)(input);
26781
+ }
26782
+ function focus_trap_esm_toPropertyKey(arg) {
26783
+ var key = focus_trap_esm_toPrimitive(arg, "string");
26784
+ return typeof key === "symbol" ? key : String(key);
26785
+ }
26441
26786
 
26442
- var rooTrapStack = [];
26443
26787
  var activeFocusTraps = {
26444
26788
  activateTrap: function activateTrap(trapStack, trap) {
26445
26789
  if (trapStack.length > 0) {
@@ -26476,6 +26820,16 @@ var isEscapeEvent = function isEscapeEvent(e) {
26476
26820
  var isTabEvent = function isTabEvent(e) {
26477
26821
  return e.key === 'Tab' || e.keyCode === 9;
26478
26822
  };
26823
+
26824
+ // checks for TAB by default
26825
+ var isKeyForward = function isKeyForward(e) {
26826
+ return isTabEvent(e) && !e.shiftKey;
26827
+ };
26828
+
26829
+ // checks for SHIFT+TAB by default
26830
+ var isKeyBackward = function isKeyBackward(e) {
26831
+ return isTabEvent(e) && e.shiftKey;
26832
+ };
26479
26833
  var delay = function delay(fn) {
26480
26834
  return setTimeout(fn, 0);
26481
26835
  };
@@ -26519,15 +26873,21 @@ var getActualTarget = function getActualTarget(event) {
26519
26873
  // composedPath()[0] === event.target always).
26520
26874
  return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
26521
26875
  };
26876
+
26877
+ // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
26878
+ // current instance use the same stack if `userOptions.trapStack` isn't specified
26879
+ var internalTrapStack = [];
26522
26880
  var createFocusTrap = function createFocusTrap(elements, userOptions) {
26523
26881
  // SSR: a live trap shouldn't be created in this type of environment so this
26524
26882
  // should be safe code to execute if the `document` option isn't specified
26525
26883
  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
26526
- var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || rooTrapStack;
26884
+ var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
26527
26885
  var config = focus_trap_esm_objectSpread2({
26528
26886
  returnFocusOnDeactivate: true,
26529
26887
  escapeDeactivates: true,
26530
- delayInitialFocus: true
26888
+ delayInitialFocus: true,
26889
+ isKeyForward: isKeyForward,
26890
+ isKeyBackward: isKeyBackward
26531
26891
  }, userOptions);
26532
26892
  var state = {
26533
26893
  // containers given to createFocusTrap()
@@ -26808,12 +27168,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
26808
27168
  }
26809
27169
  };
26810
27170
 
26811
- // Hijack Tab events on the first and last focusable nodes of the trap,
27171
+ // Hijack key nav events on the first and last focusable nodes of the trap,
26812
27172
  // in order to prevent focus from escaping. If it escapes for even a
26813
27173
  // moment it can end up scrolling the page and causing confusion so we
26814
27174
  // kind of need to capture the action at the keydown phase.
26815
- var checkTab = function checkTab(e) {
26816
- var target = getActualTarget(e);
27175
+ var checkKeyNav = function checkKeyNav(event) {
27176
+ var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
27177
+ var target = getActualTarget(event);
26817
27178
  updateTabbableNodes();
26818
27179
  var destinationNode = null;
26819
27180
  if (state.tabbableGroups.length > 0) {
@@ -26824,15 +27185,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
26824
27185
  var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
26825
27186
  if (containerIndex < 0) {
26826
27187
  // target not found in any group: quite possible focus has escaped the trap,
26827
- // so bring it back in to...
26828
- if (e.shiftKey) {
27188
+ // so bring it back into...
27189
+ if (isBackward) {
26829
27190
  // ...the last node in the last group
26830
27191
  destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
26831
27192
  } else {
26832
27193
  // ...the first node in the first group
26833
27194
  destinationNode = state.tabbableGroups[0].firstTabbableNode;
26834
27195
  }
26835
- } else if (e.shiftKey) {
27196
+ } else if (isBackward) {
26836
27197
  // REVERSE
26837
27198
 
26838
27199
  // is the target the first tabbable node in a group?
@@ -26856,6 +27217,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
26856
27217
  var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
26857
27218
  var destinationGroup = state.tabbableGroups[destinationGroupIndex];
26858
27219
  destinationNode = destinationGroup.lastTabbableNode;
27220
+ } else if (!isTabEvent(event)) {
27221
+ // user must have customized the nav keys so we have to move focus manually _within_
27222
+ // the active group: do this based on the order determined by tabbable()
27223
+ destinationNode = containerGroup.nextTabbableNode(target, false);
26859
27224
  }
26860
27225
  } else {
26861
27226
  // FORWARD
@@ -26881,28 +27246,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
26881
27246
  var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
26882
27247
  var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
26883
27248
  destinationNode = _destinationGroup.firstTabbableNode;
27249
+ } else if (!isTabEvent(event)) {
27250
+ // user must have customized the nav keys so we have to move focus manually _within_
27251
+ // the active group: do this based on the order determined by tabbable()
27252
+ destinationNode = containerGroup.nextTabbableNode(target);
26884
27253
  }
26885
27254
  }
26886
27255
  } else {
27256
+ // no groups available
26887
27257
  // NOTE: the fallbackFocus option does not support returning false to opt-out
26888
27258
  destinationNode = getNodeForOption('fallbackFocus');
26889
27259
  }
26890
27260
  if (destinationNode) {
26891
- e.preventDefault();
27261
+ if (isTabEvent(event)) {
27262
+ // since tab natively moves focus, we wouldn't have a destination node unless we
27263
+ // were on the edge of a container and had to move to the next/previous edge, in
27264
+ // which case we want to prevent default to keep the browser from moving focus
27265
+ // to where it normally would
27266
+ event.preventDefault();
27267
+ }
26892
27268
  tryFocus(destinationNode);
26893
27269
  }
26894
27270
  // else, let the browser take care of [shift+]tab and move the focus
26895
27271
  };
26896
27272
 
26897
- var checkKey = function checkKey(e) {
26898
- if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {
26899
- e.preventDefault();
27273
+ var checkKey = function checkKey(event) {
27274
+ if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
27275
+ event.preventDefault();
26900
27276
  trap.deactivate();
26901
27277
  return;
26902
27278
  }
26903
- if (isTabEvent(e)) {
26904
- checkTab(e);
26905
- return;
27279
+ if (config.isKeyForward(event) || config.isKeyBackward(event)) {
27280
+ checkKeyNav(event, config.isKeyBackward(event));
26906
27281
  }
26907
27282
  };
26908
27283
  var checkClick = function checkClick(e) {
@@ -27826,6 +28201,8 @@ var seamly_event_subscriber_rest = undefined && undefined.__rest || function (s,
27826
28201
  const EMITTABLE_MESSAGE_TYPES = ['text', 'choice_prompt', 'image', 'video'];
27827
28202
  const SeamlyEventSubscriber = () => {
27828
28203
  const api = useSeamlyApiContext();
28204
+ const syncChannelRef = (0,hooks_module/* useRef */.sO)();
28205
+ const messageChannelRef = (0,hooks_module/* useRef */.sO)();
27829
28206
  const dispatch = useDispatch();
27830
28207
  const events = useEvents();
27831
28208
  const eventBus = (0,hooks_module/* useContext */.qp)(SeamlyEventBusContext);
@@ -27888,205 +28265,227 @@ const SeamlyEventSubscriber = () => {
27888
28265
  });
27889
28266
  }, [api.conversation, dispatch]);
27890
28267
  (0,hooks_module/* useEffect */.d4)(() => {
27891
- if (api.connectionInfo && api.conversation.channel) {
27892
- const {
27893
- channel
27894
- } = api.conversation;
27895
- const updateParticipant = event => {
27896
- const {
27897
- payload
27898
- } = event;
27899
- if (!payload || !payload.participant) {
27900
- return;
27901
- }
28268
+ if (api.connectionInfo) {
28269
+ api.conversation.onConnection(_ref2 => {
28270
+ let {
28271
+ connected
28272
+ } = _ref2;
28273
+ if (!connected) return false;
27902
28274
  const {
27903
- fromClient,
27904
- participant
27905
- } = payload;
27906
- if (!fromClient && typeof participant !== 'string' && (participant === null || participant === void 0 ? void 0 : participant.name)) {
27907
- dispatch(setHeaderSubTitle(participant.name));
27908
- }
27909
- dispatch(setParticipant({
27910
- participant,
27911
- fromClient
27912
- }));
27913
- if (typeof participant !== 'string' && participant.introduction) {
27914
- dispatch(addEvent(assign_default()(assign_default()({}, event), {
27915
- payload: assign_default()(assign_default()({}, payload), {
27916
- type: 'participant'
27917
- })
27918
- })));
27919
- }
27920
- };
27921
- channel.onMessage = (type, payload) => {
27922
- const event = {
27923
- type,
27924
- payload
28275
+ channel
28276
+ } = api.conversation;
28277
+ const updateParticipant = event => {
28278
+ const {
28279
+ payload
28280
+ } = event;
28281
+ if (!payload || !payload.participant) {
28282
+ return;
28283
+ }
28284
+ const {
28285
+ fromClient,
28286
+ participant
28287
+ } = payload;
28288
+ if (!fromClient && typeof participant !== 'string' && (participant === null || participant === void 0 ? void 0 : participant.name)) {
28289
+ dispatch(setHeaderSubTitle(participant.name));
28290
+ }
28291
+ dispatch(setParticipant({
28292
+ participant,
28293
+ fromClient
28294
+ }));
28295
+ if (typeof participant !== 'string' && participant.introduction) {
28296
+ dispatch(addEvent(assign_default()(assign_default()({}, event), {
28297
+ payload: assign_default()(assign_default()({}, payload), {
28298
+ type: 'participant'
28299
+ })
28300
+ })));
28301
+ }
27925
28302
  };
27926
- switch (type) {
27927
- case 'ui':
27928
- if (payload.state && payload.state.hasOwnProperty('loading')) {
27929
- dispatch(setIsLoading(payload.state.loading));
27930
- }
27931
- switch (payload.type) {
27932
- case 'idle_detach_countdown':
27933
- initCountdown(payload.body.duration);
27934
- break;
27935
- case 'idle_detach_countdown_elapsed':
27936
- endCountdown(undefined, true);
27937
- break;
27938
- case 'resume_conversation_prompt':
27939
- dispatch(initResumeConversationPrompt());
27940
- break;
27941
- case 'translation_proposal':
27942
- dispatch(setTranslationProposalPrompt(payload.body));
27943
- break;
27944
- case 'user_first_response':
27945
- dispatch(setHasResponded(true));
27946
- // @ts-ignore
27947
- eventBus.emit('system.userFirstResponse', payload.body);
27948
- break;
27949
- }
27950
- break;
27951
- case 'message':
27952
- updateParticipant(payload);
27953
- switch (payload.type) {
27954
- case 'text':
27955
- case 'choice_prompt':
27956
- case 'splash':
27957
- case 'image':
27958
- case 'upload':
27959
- case 'video':
27960
- case 'cta':
27961
- case 'custom':
27962
- case 'carousel':
27963
- case 'card':
27964
- if (payload.service && payload.service.serviceSessionId) {
27965
- dispatch(setActiveService(payload.service.serviceSessionId));
28303
+ channel.onMessage = (type, payload) => {
28304
+ const event = {
28305
+ type,
28306
+ payload
28307
+ };
28308
+ switch (type) {
28309
+ case 'ui':
28310
+ if (payload.state && payload.state.hasOwnProperty('loading')) {
28311
+ dispatch(setIsLoading(payload.state.loading));
28312
+ }
28313
+ switch (payload.type) {
28314
+ case 'idle_detach_countdown':
28315
+ initCountdown(payload.body.duration);
28316
+ break;
28317
+ case 'idle_detach_countdown_elapsed':
28318
+ endCountdown(undefined, true);
28319
+ break;
28320
+ case 'resume_conversation_prompt':
28321
+ dispatch(initResumeConversationPrompt());
28322
+ break;
28323
+ case 'translation_proposal':
28324
+ dispatch(setTranslationProposalPrompt(payload.body));
28325
+ break;
28326
+ case 'user_first_response':
28327
+ dispatch(setHasResponded(true));
28328
+ // @ts-ignore
28329
+ eventBus.emit('system.userFirstResponse', payload.body);
28330
+ break;
28331
+ }
28332
+ break;
28333
+ case 'message':
28334
+ updateParticipant(payload);
28335
+ switch (payload.type) {
28336
+ case 'text':
28337
+ case 'choice_prompt':
28338
+ case 'splash':
28339
+ case 'image':
28340
+ case 'upload':
28341
+ case 'video':
28342
+ case 'cta':
28343
+ case 'custom':
28344
+ case 'carousel':
28345
+ case 'card':
28346
+ if (payload.service && payload.service.serviceSessionId) {
28347
+ dispatch(setActiveService(payload.service.serviceSessionId));
28348
+ }
28349
+ dispatch(addEvent(event));
28350
+ break;
28351
+ }
28352
+ break;
28353
+ case 'participant':
28354
+ updateParticipant(event);
28355
+ break;
28356
+ case 'service_data':
28357
+ if (payload.persist) {
28358
+ dispatch(setServiceDataItem(payload));
28359
+ }
28360
+ break;
28361
+ case 'ack':
28362
+ dispatch(ackEvent(event));
28363
+ break;
28364
+ case 'system':
28365
+ if (payload.type === 'service_changed') {
28366
+ const {
28367
+ serviceSettings
28368
+ } = payload,
28369
+ eventPayload = seamly_event_subscriber_rest(payload, ["serviceSettings"]);
28370
+ const {
28371
+ entry
28372
+ } = serviceSettings;
28373
+ const {
28374
+ upload
28375
+ } = entry.options;
28376
+ dispatch(setFeatureEnabledState({
28377
+ key: featureKeys.uploads,
28378
+ enabled: !!(upload && upload.enabled)
28379
+ }));
28380
+ dispatch(setServiceEntryMetadata(entry));
28381
+ if (payload.serviceSessionId) {
28382
+ dispatch(setActiveService(payload.serviceSessionId));
27966
28383
  }
28384
+ emitEvent('system.serviceChanged', eventPayload);
28385
+ }
28386
+ break;
28387
+ case 'info':
28388
+ if (payload.type === 'divider' || payload.type === 'text' || payload.type === 'translation') {
27967
28389
  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
28390
  }
28002
- emitEvent('system.serviceChanged', eventPayload);
28003
- }
28004
- break;
28005
- case 'info':
28006
- if (payload.type === 'divider' || payload.type === 'text' || payload.type === 'translation') {
28007
- dispatch(addEvent(event));
28008
- }
28009
- break;
28010
- case 'error':
28011
- switch (payload.type) {
28012
- case 'find_conversation_erred':
28013
- const seamlySessionExpiredError = new SeamlySessionExpiredError(event);
28014
- dispatch(setInterrupt({
28015
- name: seamlySessionExpiredError.name,
28016
- action: seamlySessionExpiredError.action,
28017
- message: seamlySessionExpiredError.message,
28018
- originalEvent: seamlySessionExpiredError.originalEvent,
28019
- originalError: seamlySessionExpiredError.originalError
28020
- }));
28021
- break;
28022
- case 'conversation_erred':
28023
- const seamlyGeneralError = new SeamlyGeneralError(event);
28024
- dispatch(setInterrupt({
28025
- name: seamlyGeneralError.name,
28026
- message: seamlyGeneralError.message,
28027
- langKey: seamlyGeneralError.langKey,
28028
- originalEvent: seamlyGeneralError.originalEvent,
28029
- originalError: seamlyGeneralError.originalError,
28030
- action: seamlyGeneralError.action
28031
- }));
28032
- break;
28033
- }
28034
- }
28035
- return payload;
28036
- };
28391
+ break;
28392
+ case 'error':
28393
+ switch (payload.type) {
28394
+ case 'find_conversation_erred':
28395
+ const seamlySessionExpiredError = new SeamlySessionExpiredError(event);
28396
+ dispatch(setInterrupt({
28397
+ name: seamlySessionExpiredError.name,
28398
+ action: seamlySessionExpiredError.action,
28399
+ message: seamlySessionExpiredError.message,
28400
+ originalEvent: seamlySessionExpiredError.originalEvent,
28401
+ originalError: seamlySessionExpiredError.originalError
28402
+ }));
28403
+ break;
28404
+ case 'conversation_erred':
28405
+ const seamlyGeneralError = new SeamlyGeneralError(event);
28406
+ dispatch(setInterrupt({
28407
+ name: seamlyGeneralError.name,
28408
+ message: seamlyGeneralError.message,
28409
+ langKey: seamlyGeneralError.langKey,
28410
+ originalEvent: seamlyGeneralError.originalEvent,
28411
+ originalError: seamlyGeneralError.originalError,
28412
+ action: seamlyGeneralError.action
28413
+ }));
28414
+ break;
28415
+ }
28416
+ }
28417
+ return payload;
28418
+ };
28419
+ return true;
28420
+ });
28037
28421
  }
28038
28422
  }, [api, api.connectionInfo, api.conversation.channel, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
28039
28423
  (0,hooks_module/* useEffect */.d4)(() => {
28040
- if (api.connectionInfo && api.conversation.channel) {
28041
- const {
28042
- channel
28043
- } = api.conversation;
28044
- channel.on('message', payload => {
28045
- if (!includes_default()(EMITTABLE_MESSAGE_TYPES).call(EMITTABLE_MESSAGE_TYPES, payload.type)) {
28424
+ if (api.connectionInfo) {
28425
+ api.conversation.onConnection(_ref3 => {
28426
+ let {
28427
+ connected
28428
+ } = _ref3;
28429
+ if (!connected) return false;
28430
+ const {
28431
+ channel
28432
+ } = api.conversation;
28433
+ messageChannelRef.current = channel.on('message', payload => {
28434
+ if (!includes_default()(EMITTABLE_MESSAGE_TYPES).call(EMITTABLE_MESSAGE_TYPES, payload.type)) {
28435
+ return payload;
28436
+ }
28437
+ // This check dedupes the sending of messages via
28438
+ // the bus if a duplicate connection exists in an
28439
+ // error situation.
28440
+ if (payload.id !== prevEmittedEventId.current) {
28441
+ // @ts-ignore
28442
+ eventBus.emit('message', payload);
28443
+ }
28444
+ prevEmittedEventId.current = payload.id;
28046
28445
  return payload;
28047
- }
28048
- // This check dedupes the sending of messages via
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;
28446
+ });
28447
+ return true;
28057
28448
  });
28449
+ return () => {
28450
+ var _a;
28451
+ (_a = api.conversation.channel) === null || _a === void 0 ? void 0 : _a.off('message', messageChannelRef.current);
28452
+ };
28058
28453
  }
28454
+ return () => undefined;
28059
28455
  }, [api, api.connectionInfo, api.conversation.channel, eventBus]);
28060
28456
  (0,hooks_module/* useEffect */.d4)(() => {
28061
- if (api.connectionInfo && api.conversation.channel) {
28062
- const {
28063
- channel
28064
- } = api.conversation;
28065
- const syncChannelRef = channel.on('sync', payload => {
28066
- var _a;
28067
- const lastEvent = events[events.length - 1];
28068
- const payloadLastEventId = (_a = payload === null || payload === void 0 ? void 0 : payload.lastEvent) === null || _a === void 0 ? void 0 : _a.id;
28069
- if (lastEvent && payloadLastEventId === lastEvent.payload.id) {
28070
- return payload;
28071
- }
28072
- return api.getConversation().then(history => {
28073
- if (!history) {
28074
- return;
28457
+ if (api.connectionInfo) {
28458
+ api.conversation.onConnection(_ref4 => {
28459
+ let {
28460
+ connected
28461
+ } = _ref4;
28462
+ if (!connected) return false;
28463
+ syncChannelRef.current = api.conversation.channel.on('sync', payload => {
28464
+ var _a;
28465
+ const lastEvent = events[events.length - 1];
28466
+ const payloadLastEventId = (_a = payload === null || payload === void 0 ? void 0 : payload.lastEvent) === null || _a === void 0 ? void 0 : _a.id;
28467
+ if (lastEvent && payloadLastEventId === lastEvent.payload.id) {
28468
+ return payload;
28075
28469
  }
28076
- dispatch(setHistory(history));
28077
- }).catch(error => {
28078
- dispatch(setInterrupt({
28079
- name: error === null || error === void 0 ? void 0 : error.name,
28080
- message: error === null || error === void 0 ? void 0 : error.message,
28081
- langKey: error === null || error === void 0 ? void 0 : error.langKey,
28082
- action: error === null || error === void 0 ? void 0 : error.action,
28083
- originalEvent: error === null || error === void 0 ? void 0 : error.originalEvent,
28084
- originalError: error === null || error === void 0 ? void 0 : error.originalError
28085
- }));
28470
+ return api.getConversation().then(history => {
28471
+ if (!history) return;
28472
+ dispatch(setHistory(history));
28473
+ }).catch(error => {
28474
+ dispatch(setInterrupt({
28475
+ name: error === null || error === void 0 ? void 0 : error.name,
28476
+ message: error === null || error === void 0 ? void 0 : error.message,
28477
+ langKey: error === null || error === void 0 ? void 0 : error.langKey,
28478
+ action: error === null || error === void 0 ? void 0 : error.action,
28479
+ originalEvent: error === null || error === void 0 ? void 0 : error.originalEvent,
28480
+ originalError: error === null || error === void 0 ? void 0 : error.originalError
28481
+ }));
28482
+ });
28086
28483
  });
28484
+ return true;
28087
28485
  });
28088
28486
  return () => {
28089
- channel.off('sync', syncChannelRef);
28487
+ var _a;
28488
+ (_a = api.conversation.channel) === null || _a === void 0 ? void 0 : _a.off('sync', syncChannelRef.current);
28090
28489
  };
28091
28490
  }
28092
28491
  return () => undefined;
@@ -28309,11 +28708,10 @@ function useSeamlyInstanceFunction(functionName, fn) {
28309
28708
  return undefined;
28310
28709
  }
28311
28710
  const callback = function () {
28312
- var _callbackRef$current;
28313
28711
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28314
28712
  args[_key] = arguments[_key];
28315
28713
  }
28316
- return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
28714
+ return callbackRef.current?.(...args);
28317
28715
  };
28318
28716
  eventBus.emit('function.register', functionName, callback);
28319
28717
  return () => eventBus.emit('function.unregister', functionName, callback);
@@ -28359,12 +28757,12 @@ const SeamlyInstanceFunctionsLoader = () => {
28359
28757
  sendMessage({
28360
28758
  body: text
28361
28759
  });
28362
- }, [api === null || api === void 0 ? void 0 : api.send]);
28760
+ }, [api?.send]);
28363
28761
  useSeamlyInstanceFunction('setVariables', variables => {
28364
28762
  sendContext({
28365
28763
  variables
28366
28764
  });
28367
- }, [api === null || api === void 0 ? void 0 : api.send]);
28765
+ }, [api?.send]);
28368
28766
  useSeamlyInstanceFunction('getVisibility', callback => {
28369
28767
  if (callback) {
28370
28768
  callback(currentVisibility.current);
@@ -28380,7 +28778,7 @@ const SeamlyInstanceFunctionsLoader = () => {
28380
28778
  }
28381
28779
  onActivityHandler();
28382
28780
  setVisibility(visibilityState);
28383
- }, [config === null || config === void 0 ? void 0 : config.api]);
28781
+ }, [config?.api]);
28384
28782
  useSeamlyInstanceFunction('sendCustomAction', (actionType, body) => {
28385
28783
  sendAction({
28386
28784
  type: 'custom',
@@ -29245,7 +29643,7 @@ const validateFileSize = (fileList, maxSize) => {
29245
29643
  }
29246
29644
  return isValid;
29247
29645
  };
29248
- const fileListObjectIsNotEmpty = fileListObj => !!(fileListObj !== null && fileListObj !== void 0 && fileListObj.length) > 0;
29646
+ const fileListObjectIsNotEmpty = fileListObj => !!fileListObj?.length > 0;
29249
29647
 
29250
29648
  /* eslint-disable no-control-regex */
29251
29649
  const isEmailString = val => {
@@ -29860,7 +30258,6 @@ const Options = () => {
29860
30258
 
29861
30259
 
29862
30260
 
29863
-
29864
30261
  const OptionsButton = () => {
29865
30262
  const {
29866
30263
  t
@@ -29884,10 +30281,7 @@ const OptionsButton = () => {
29884
30281
  const prevMenuIsOpen = (0,hooks_module/* useRef */.sO)(false);
29885
30282
  const multiMenu = optionsLength > 1;
29886
30283
  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]);
30284
+ const firstOptionName = (0,hooks_module/* useMemo */.Ye)(() => firstOption?.name?.trim().replace(/\s+/g, ''), [firstOption]);
29891
30285
  (0,hooks_module/* useEffect */.d4)(() => {
29892
30286
  return () => {
29893
30287
  clearTimeout(focusOutDelayTimeoutID.current);
@@ -29910,7 +30304,7 @@ const OptionsButton = () => {
29910
30304
  }
29911
30305
  if (multiMenu) {
29912
30306
  setMenuIsOpen(o => !o);
29913
- } else if (firstOption.available) {
30307
+ } else if (firstOption.available && !panelActive) {
29914
30308
  showOption(firstOption.name);
29915
30309
  }
29916
30310
  };
@@ -30160,7 +30554,7 @@ function TranslationsOptionsButton({ children, position = {
30160
30554
  setMenuIsOpen(false);
30161
30555
  };
30162
30556
  const handleToggleClick = () => {
30163
- setMenuIsOpen((o) => !o);
30557
+ setMenuIsOpen(!menuIsOpen);
30164
30558
  };
30165
30559
  const handleToggleKeyDown = (e) => {
30166
30560
  if (getKey(e) === keyNames.ArrowDown) {
@@ -31190,8 +31584,7 @@ const upload_Upload = () => {
31190
31584
  const prevContentHintText = (0,hooks_module/* useRef */.sO)('');
31191
31585
  const containerRef = (0,hooks_module/* useRef */.sO)(null);
31192
31586
  (0,hooks_module/* useEffect */.d4)(() => {
31193
- var _containerRef$current;
31194
- if (prevContentHintText.current && (_containerRef$current = containerRef.current) !== null && _containerRef$current !== void 0 && _containerRef$current.contains(document.activeElement) && document.activeElement.tagName === 'INPUT') {
31587
+ if (prevContentHintText.current && containerRef.current?.contains(document.activeElement) && document.activeElement.tagName === 'INPUT') {
31195
31588
  sendAssertive(contentHintText);
31196
31589
  }
31197
31590
  prevContentHintText.current = contentHintText;
@@ -31744,7 +32137,7 @@ function PreChatMessages() {
31744
32137
  const {
31745
32138
  isOpen
31746
32139
  } = useVisibility();
31747
- const isVisible = !(hasInterrupt || !(preChatEvents !== null && preChatEvents !== void 0 && preChatEvents.length) || isOpen);
32140
+ const isVisible = !(hasInterrupt || !preChatEvents?.length || isOpen);
31748
32141
  return isVisible && o("ul", {
31749
32142
  className: css_className('pre-chat-messages', `pre-chat-messages--${layoutMode}`),
31750
32143
  "aria-hidden": !isVisible,
@@ -31895,6 +32288,18 @@ const WindowOpenButton = _ref => {
31895
32288
 
31896
32289
 
31897
32290
 
32291
+ 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; }
32292
+ 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; }
32293
+
32294
+
32295
+
32296
+
32297
+
32298
+
32299
+
32300
+
32301
+
32302
+
31898
32303
 
31899
32304
 
31900
32305
 
@@ -31908,6 +32313,10 @@ const WindowView = () => {
31908
32313
  openChat
31909
32314
  } = useVisibility();
31910
32315
  const userHasResponded = useUserHasResponded();
32316
+ const {
32317
+ hasInterrupt,
32318
+ meta
32319
+ } = useInterrupt();
31911
32320
  const {
31912
32321
  t
31913
32322
  } = useI18n();
@@ -31919,6 +32328,9 @@ const WindowView = () => {
31919
32328
  }
31920
32329
  }
31921
32330
  }), [continueChatText]);
32331
+ if (hasInterrupt && !isOpen) {
32332
+ return o(interrupt, window_view_objectSpread({}, meta));
32333
+ }
31922
32334
  return o(preact_module/* Fragment */.HY, {
31923
32335
  children: [o(window_open_button, {
31924
32336
  onClick: openChat
@@ -32369,8 +32781,7 @@ class ExternalApi {
32369
32781
  return typeof this.appConfig === 'function' ? this.appConfig(combinedConfig) : combinedConfig;
32370
32782
  }
32371
32783
  getMergedVariables(userConfig) {
32372
- var _this$appConfig$conte, _userConfig$context;
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 || {});
32784
+ return external_api_objectSpread(external_api_objectSpread(external_api_objectSpread({}, this.appConfig.context?.variables || {}), userConfig.context?.variables || {}), this.context.variables || {});
32374
32785
  }
32375
32786
  }
32376
32787
  /* harmony default export */ var external_api = (ExternalApi);
@@ -32502,7 +32913,7 @@ const AgentInfo = () => {
32502
32913
  hasInterrupt
32503
32914
  } = useInterrupt();
32504
32915
  const startChatIcon = useStartChatIcon();
32505
- const src = (currentAgent === null || currentAgent === void 0 ? void 0 : currentAgent.avatar) ?? startChatIcon;
32916
+ const src = currentAgent?.avatar ?? startChatIcon;
32506
32917
  const displaySubtitle = hasInterrupt ? '' : subTitle;
32507
32918
  const classNames = ['message-count'];
32508
32919
  if (isOpen) {
@@ -32516,7 +32927,7 @@ const AgentInfo = () => {
32516
32927
  children: [o("div", {
32517
32928
  className: css_className('agent-info__graphic'),
32518
32929
  children: [src ? o("img", {
32519
- className: css_className(currentAgent !== null && currentAgent !== void 0 && currentAgent.avatar ? 'avatar' : 'icon'),
32930
+ className: css_className(currentAgent?.avatar ? 'avatar' : 'icon'),
32520
32931
  src: src,
32521
32932
  alt: ""
32522
32933
  }) : o(layout_icon, {