@sawport/react-sdk 0.1.0-alpha.40 → 0.1.0-alpha.41
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/dist/index.js +1041 -177
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1
|
+
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
2
|
function getDefaultExportFromCjs(x2) {
|
|
3
3
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4
4
|
}
|
|
@@ -34,7 +34,7 @@ var react_production_min = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var l$4 = Symbol.for("react.element"), n$4 = Symbol.for("react.portal"), p$4 = Symbol.for("react.fragment"), q$3 = Symbol.for("react.strict_mode"), r$3 = Symbol.for("react.profiler"), t$3 = Symbol.for("react.provider"), u$
|
|
37
|
+
var l$4 = Symbol.for("react.element"), n$4 = Symbol.for("react.portal"), p$4 = Symbol.for("react.fragment"), q$3 = Symbol.for("react.strict_mode"), r$3 = Symbol.for("react.profiler"), t$3 = Symbol.for("react.provider"), u$2 = Symbol.for("react.context"), v$3 = Symbol.for("react.forward_ref"), w$2 = Symbol.for("react.suspense"), x$2 = Symbol.for("react.memo"), y$2 = Symbol.for("react.lazy"), z$3 = Symbol.iterator;
|
|
38
38
|
function A$3(a2) {
|
|
39
39
|
if (null === a2 || "object" !== typeof a2)
|
|
40
40
|
return null;
|
|
@@ -226,7 +226,7 @@ react_production_min.cloneElement = function(a2, b2, e2) {
|
|
|
226
226
|
return { $$typeof: l$4, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 };
|
|
227
227
|
};
|
|
228
228
|
react_production_min.createContext = function(a2) {
|
|
229
|
-
a2 = { $$typeof: u$
|
|
229
|
+
a2 = { $$typeof: u$2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
230
230
|
a2.Provider = { $$typeof: t$3, _context: a2 };
|
|
231
231
|
return a2.Consumer = a2;
|
|
232
232
|
};
|
|
@@ -1379,12 +1379,12 @@ var reactIs_production_min = {};
|
|
|
1379
1379
|
* This source code is licensed under the MIT license found in the
|
|
1380
1380
|
* LICENSE file in the root directory of this source tree.
|
|
1381
1381
|
*/
|
|
1382
|
-
var b$1 = "function" === typeof Symbol && Symbol.for, c$
|
|
1382
|
+
var b$1 = "function" === typeof Symbol && Symbol.for, c$3 = b$1 ? Symbol.for("react.element") : 60103, d$1 = b$1 ? Symbol.for("react.portal") : 60106, e$1 = b$1 ? Symbol.for("react.fragment") : 60107, f$2 = b$1 ? Symbol.for("react.strict_mode") : 60108, g$1 = b$1 ? Symbol.for("react.profiler") : 60114, h$1 = b$1 ? Symbol.for("react.provider") : 60109, k$2 = b$1 ? Symbol.for("react.context") : 60110, l$3 = b$1 ? Symbol.for("react.async_mode") : 60111, m$3 = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n$3 = b$1 ? Symbol.for("react.forward_ref") : 60112, p$3 = b$1 ? Symbol.for("react.suspense") : 60113, q$2 = b$1 ? Symbol.for("react.suspense_list") : 60120, r$2 = b$1 ? Symbol.for("react.memo") : 60115, t$2 = b$1 ? Symbol.for("react.lazy") : 60116, v$2 = b$1 ? Symbol.for("react.block") : 60121, w$1 = b$1 ? Symbol.for("react.fundamental") : 60117, x$1 = b$1 ? Symbol.for("react.responder") : 60118, y$1 = b$1 ? Symbol.for("react.scope") : 60119;
|
|
1383
1383
|
function z$2(a2) {
|
|
1384
1384
|
if ("object" === typeof a2 && null !== a2) {
|
|
1385
1385
|
var u2 = a2.$$typeof;
|
|
1386
1386
|
switch (u2) {
|
|
1387
|
-
case c$
|
|
1387
|
+
case c$3:
|
|
1388
1388
|
switch (a2 = a2.type, a2) {
|
|
1389
1389
|
case l$3:
|
|
1390
1390
|
case m$3:
|
|
@@ -1417,7 +1417,7 @@ reactIs_production_min.AsyncMode = l$3;
|
|
|
1417
1417
|
reactIs_production_min.ConcurrentMode = m$3;
|
|
1418
1418
|
reactIs_production_min.ContextConsumer = k$2;
|
|
1419
1419
|
reactIs_production_min.ContextProvider = h$1;
|
|
1420
|
-
reactIs_production_min.Element = c$
|
|
1420
|
+
reactIs_production_min.Element = c$3;
|
|
1421
1421
|
reactIs_production_min.ForwardRef = n$3;
|
|
1422
1422
|
reactIs_production_min.Fragment = e$1;
|
|
1423
1423
|
reactIs_production_min.Lazy = t$2;
|
|
@@ -1437,7 +1437,7 @@ reactIs_production_min.isContextProvider = function(a2) {
|
|
|
1437
1437
|
return z$2(a2) === h$1;
|
|
1438
1438
|
};
|
|
1439
1439
|
reactIs_production_min.isElement = function(a2) {
|
|
1440
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c$
|
|
1440
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c$3;
|
|
1441
1441
|
};
|
|
1442
1442
|
reactIs_production_min.isForwardRef = function(a2) {
|
|
1443
1443
|
return z$2(a2) === n$3;
|
|
@@ -2807,7 +2807,7 @@ function baseHas$1(object2, key2) {
|
|
|
2807
2807
|
var _baseHas = baseHas$1;
|
|
2808
2808
|
var isArray$j = Array.isArray;
|
|
2809
2809
|
var isArray_1 = isArray$j;
|
|
2810
|
-
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2810
|
+
var freeGlobal$1 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
|
|
2811
2811
|
var _freeGlobal = freeGlobal$1;
|
|
2812
2812
|
var freeGlobal = _freeGlobal;
|
|
2813
2813
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -8937,7 +8937,7 @@ var lib$2 = { exports: {} };
|
|
|
8937
8937
|
var implementation = { exports: {} };
|
|
8938
8938
|
var key = "__global_unique_id__";
|
|
8939
8939
|
var gud = function() {
|
|
8940
|
-
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
|
8940
|
+
return commonjsGlobal$1[key] = (commonjsGlobal$1[key] || 0) + 1;
|
|
8941
8941
|
};
|
|
8942
8942
|
var warning = function() {
|
|
8943
8943
|
};
|
|
@@ -20037,16 +20037,16 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
20037
20037
|
});
|
|
20038
20038
|
return config;
|
|
20039
20039
|
};
|
|
20040
|
-
var data$
|
|
20040
|
+
var data$2;
|
|
20041
20041
|
var hasRequiredData;
|
|
20042
20042
|
function requireData() {
|
|
20043
20043
|
if (hasRequiredData)
|
|
20044
|
-
return data$
|
|
20044
|
+
return data$2;
|
|
20045
20045
|
hasRequiredData = 1;
|
|
20046
|
-
data$
|
|
20046
|
+
data$2 = {
|
|
20047
20047
|
"version": "0.27.2"
|
|
20048
20048
|
};
|
|
20049
|
-
return data$
|
|
20049
|
+
return data$2;
|
|
20050
20050
|
}
|
|
20051
20051
|
var VERSION = requireData().version;
|
|
20052
20052
|
var AxiosError = AxiosError_1;
|
|
@@ -24191,20 +24191,20 @@ function getCalendarFormat(myMoment, now2) {
|
|
|
24191
24191
|
var diff2 = myMoment.diff(now2, "days", true);
|
|
24192
24192
|
return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
|
24193
24193
|
}
|
|
24194
|
-
function calendar$1(
|
|
24194
|
+
function calendar$1(time2, formats2) {
|
|
24195
24195
|
if (arguments.length === 1) {
|
|
24196
24196
|
if (!arguments[0]) {
|
|
24197
|
-
|
|
24197
|
+
time2 = void 0;
|
|
24198
24198
|
formats2 = void 0;
|
|
24199
24199
|
} else if (isMomentInput(arguments[0])) {
|
|
24200
|
-
|
|
24200
|
+
time2 = arguments[0];
|
|
24201
24201
|
formats2 = void 0;
|
|
24202
24202
|
} else if (isCalendarSpec(arguments[0])) {
|
|
24203
24203
|
formats2 = arguments[0];
|
|
24204
|
-
|
|
24204
|
+
time2 = void 0;
|
|
24205
24205
|
}
|
|
24206
24206
|
}
|
|
24207
|
-
var now2 =
|
|
24207
|
+
var now2 = time2 || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats2 && (isFunction2(formats2[format2]) ? formats2[format2].call(this, now2) : formats2[format2]);
|
|
24208
24208
|
return this.format(
|
|
24209
24209
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
|
24210
24210
|
);
|
|
@@ -24368,9 +24368,9 @@ function format(inputString) {
|
|
|
24368
24368
|
var output = formatMoment(this, inputString);
|
|
24369
24369
|
return this.localeData().postformat(output);
|
|
24370
24370
|
}
|
|
24371
|
-
function from(
|
|
24372
|
-
if (this.isValid() && (isMoment(
|
|
24373
|
-
return createDuration({ to: this, from:
|
|
24371
|
+
function from(time2, withoutSuffix) {
|
|
24372
|
+
if (this.isValid() && (isMoment(time2) && time2.isValid() || createLocal(time2).isValid())) {
|
|
24373
|
+
return createDuration({ to: this, from: time2 }).locale(this.locale()).humanize(!withoutSuffix);
|
|
24374
24374
|
} else {
|
|
24375
24375
|
return this.localeData().invalidDate();
|
|
24376
24376
|
}
|
|
@@ -24378,9 +24378,9 @@ function from(time, withoutSuffix) {
|
|
|
24378
24378
|
function fromNow(withoutSuffix) {
|
|
24379
24379
|
return this.from(createLocal(), withoutSuffix);
|
|
24380
24380
|
}
|
|
24381
|
-
function to(
|
|
24382
|
-
if (this.isValid() && (isMoment(
|
|
24383
|
-
return createDuration({ from: this, to:
|
|
24381
|
+
function to(time2, withoutSuffix) {
|
|
24382
|
+
if (this.isValid() && (isMoment(time2) && time2.isValid() || createLocal(time2).isValid())) {
|
|
24383
|
+
return createDuration({ from: this, to: time2 }).locale(this.locale()).humanize(!withoutSuffix);
|
|
24384
24384
|
} else {
|
|
24385
24385
|
return this.localeData().invalidDate();
|
|
24386
24386
|
}
|
|
@@ -24432,7 +24432,7 @@ function utcStartOfDate(y2, m2, d2) {
|
|
|
24432
24432
|
}
|
|
24433
24433
|
}
|
|
24434
24434
|
function startOf(units) {
|
|
24435
|
-
var
|
|
24435
|
+
var time2, startOfDate;
|
|
24436
24436
|
units = normalizeUnits(units);
|
|
24437
24437
|
if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
|
24438
24438
|
return this;
|
|
@@ -24440,27 +24440,27 @@ function startOf(units) {
|
|
|
24440
24440
|
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
24441
24441
|
switch (units) {
|
|
24442
24442
|
case "year":
|
|
24443
|
-
|
|
24443
|
+
time2 = startOfDate(this.year(), 0, 1);
|
|
24444
24444
|
break;
|
|
24445
24445
|
case "quarter":
|
|
24446
|
-
|
|
24446
|
+
time2 = startOfDate(
|
|
24447
24447
|
this.year(),
|
|
24448
24448
|
this.month() - this.month() % 3,
|
|
24449
24449
|
1
|
|
24450
24450
|
);
|
|
24451
24451
|
break;
|
|
24452
24452
|
case "month":
|
|
24453
|
-
|
|
24453
|
+
time2 = startOfDate(this.year(), this.month(), 1);
|
|
24454
24454
|
break;
|
|
24455
24455
|
case "week":
|
|
24456
|
-
|
|
24456
|
+
time2 = startOfDate(
|
|
24457
24457
|
this.year(),
|
|
24458
24458
|
this.month(),
|
|
24459
24459
|
this.date() - this.weekday()
|
|
24460
24460
|
);
|
|
24461
24461
|
break;
|
|
24462
24462
|
case "isoWeek":
|
|
24463
|
-
|
|
24463
|
+
time2 = startOfDate(
|
|
24464
24464
|
this.year(),
|
|
24465
24465
|
this.month(),
|
|
24466
24466
|
this.date() - (this.isoWeekday() - 1)
|
|
@@ -24468,30 +24468,30 @@ function startOf(units) {
|
|
|
24468
24468
|
break;
|
|
24469
24469
|
case "day":
|
|
24470
24470
|
case "date":
|
|
24471
|
-
|
|
24471
|
+
time2 = startOfDate(this.year(), this.month(), this.date());
|
|
24472
24472
|
break;
|
|
24473
24473
|
case "hour":
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24474
|
+
time2 = this._d.valueOf();
|
|
24475
|
+
time2 -= mod$1(
|
|
24476
|
+
time2 + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
24477
24477
|
MS_PER_HOUR
|
|
24478
24478
|
);
|
|
24479
24479
|
break;
|
|
24480
24480
|
case "minute":
|
|
24481
|
-
|
|
24482
|
-
|
|
24481
|
+
time2 = this._d.valueOf();
|
|
24482
|
+
time2 -= mod$1(time2, MS_PER_MINUTE);
|
|
24483
24483
|
break;
|
|
24484
24484
|
case "second":
|
|
24485
|
-
|
|
24486
|
-
|
|
24485
|
+
time2 = this._d.valueOf();
|
|
24486
|
+
time2 -= mod$1(time2, MS_PER_SECOND);
|
|
24487
24487
|
break;
|
|
24488
24488
|
}
|
|
24489
|
-
this._d.setTime(
|
|
24489
|
+
this._d.setTime(time2);
|
|
24490
24490
|
hooks.updateOffset(this, true);
|
|
24491
24491
|
return this;
|
|
24492
24492
|
}
|
|
24493
24493
|
function endOf(units) {
|
|
24494
|
-
var
|
|
24494
|
+
var time2, startOfDate;
|
|
24495
24495
|
units = normalizeUnits(units);
|
|
24496
24496
|
if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
|
24497
24497
|
return this;
|
|
@@ -24499,27 +24499,27 @@ function endOf(units) {
|
|
|
24499
24499
|
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
24500
24500
|
switch (units) {
|
|
24501
24501
|
case "year":
|
|
24502
|
-
|
|
24502
|
+
time2 = startOfDate(this.year() + 1, 0, 1) - 1;
|
|
24503
24503
|
break;
|
|
24504
24504
|
case "quarter":
|
|
24505
|
-
|
|
24505
|
+
time2 = startOfDate(
|
|
24506
24506
|
this.year(),
|
|
24507
24507
|
this.month() - this.month() % 3 + 3,
|
|
24508
24508
|
1
|
|
24509
24509
|
) - 1;
|
|
24510
24510
|
break;
|
|
24511
24511
|
case "month":
|
|
24512
|
-
|
|
24512
|
+
time2 = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
|
24513
24513
|
break;
|
|
24514
24514
|
case "week":
|
|
24515
|
-
|
|
24515
|
+
time2 = startOfDate(
|
|
24516
24516
|
this.year(),
|
|
24517
24517
|
this.month(),
|
|
24518
24518
|
this.date() - this.weekday() + 7
|
|
24519
24519
|
) - 1;
|
|
24520
24520
|
break;
|
|
24521
24521
|
case "isoWeek":
|
|
24522
|
-
|
|
24522
|
+
time2 = startOfDate(
|
|
24523
24523
|
this.year(),
|
|
24524
24524
|
this.month(),
|
|
24525
24525
|
this.date() - (this.isoWeekday() - 1) + 7
|
|
@@ -24527,25 +24527,25 @@ function endOf(units) {
|
|
|
24527
24527
|
break;
|
|
24528
24528
|
case "day":
|
|
24529
24529
|
case "date":
|
|
24530
|
-
|
|
24530
|
+
time2 = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
|
24531
24531
|
break;
|
|
24532
24532
|
case "hour":
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24533
|
+
time2 = this._d.valueOf();
|
|
24534
|
+
time2 += MS_PER_HOUR - mod$1(
|
|
24535
|
+
time2 + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
24536
24536
|
MS_PER_HOUR
|
|
24537
24537
|
) - 1;
|
|
24538
24538
|
break;
|
|
24539
24539
|
case "minute":
|
|
24540
|
-
|
|
24541
|
-
|
|
24540
|
+
time2 = this._d.valueOf();
|
|
24541
|
+
time2 += MS_PER_MINUTE - mod$1(time2, MS_PER_MINUTE) - 1;
|
|
24542
24542
|
break;
|
|
24543
24543
|
case "second":
|
|
24544
|
-
|
|
24545
|
-
|
|
24544
|
+
time2 = this._d.valueOf();
|
|
24545
|
+
time2 += MS_PER_SECOND - mod$1(time2, MS_PER_SECOND) - 1;
|
|
24546
24546
|
break;
|
|
24547
24547
|
}
|
|
24548
|
-
this._d.setTime(
|
|
24548
|
+
this._d.setTime(time2);
|
|
24549
24549
|
hooks.updateOffset(this, true);
|
|
24550
24550
|
return this;
|
|
24551
24551
|
}
|
|
@@ -25560,7 +25560,7 @@ const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(moment);
|
|
|
25560
25560
|
} else {
|
|
25561
25561
|
factory(root2.moment);
|
|
25562
25562
|
}
|
|
25563
|
-
})(commonjsGlobal, function(moment2) {
|
|
25563
|
+
})(commonjsGlobal$1, function(moment2) {
|
|
25564
25564
|
if (moment2.version === void 0 && moment2.default) {
|
|
25565
25565
|
moment2 = moment2.default;
|
|
25566
25566
|
}
|
|
@@ -28843,7 +28843,7 @@ function n$1(t2) {
|
|
|
28843
28843
|
return "'" + t3 + "'";
|
|
28844
28844
|
}).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
|
|
28845
28845
|
}
|
|
28846
|
-
function o$
|
|
28846
|
+
function o$3(t2) {
|
|
28847
28847
|
return !!t2 && !!t2[$$j];
|
|
28848
28848
|
}
|
|
28849
28849
|
function i$3(t2) {
|
|
@@ -28857,7 +28857,7 @@ function i$3(t2) {
|
|
|
28857
28857
|
return "function" == typeof r2 && Function.toString.call(r2) === J;
|
|
28858
28858
|
}(t2) || Array.isArray(t2) || !!t2[W] || !!t2.constructor[W] || s(t2) || l$1(t2));
|
|
28859
28859
|
}
|
|
28860
|
-
function u(t2, e2, r2) {
|
|
28860
|
+
function u$1(t2, e2, r2) {
|
|
28861
28861
|
void 0 === r2 && (r2 = false), 0 === a$1(t2) ? (r2 ? Object.keys : X)(t2).forEach(function(n2) {
|
|
28862
28862
|
r2 && "symbol" == typeof n2 || e2(n2, t2[n2], t2);
|
|
28863
28863
|
}) : t2.forEach(function(r3, n2) {
|
|
@@ -28868,7 +28868,7 @@ function a$1(t2) {
|
|
|
28868
28868
|
var e2 = t2[$$j];
|
|
28869
28869
|
return e2 ? e2.i > 3 ? e2.i - 4 : e2.i : Array.isArray(t2) ? 1 : s(t2) ? 2 : l$1(t2) ? 3 : 0;
|
|
28870
28870
|
}
|
|
28871
|
-
function c$
|
|
28871
|
+
function c$2(t2, e2) {
|
|
28872
28872
|
return 2 === a$1(t2) ? t2.has(e2) : Object.prototype.hasOwnProperty.call(t2, e2);
|
|
28873
28873
|
}
|
|
28874
28874
|
function f(t2, e2, r2) {
|
|
@@ -28896,7 +28896,7 @@ function d(t2) {
|
|
|
28896
28896
|
return Object.create(Object.getPrototypeOf(t2), e2);
|
|
28897
28897
|
}
|
|
28898
28898
|
function y(t2, e2) {
|
|
28899
|
-
return void 0 === e2 && (e2 = false), h(t2) || o$
|
|
28899
|
+
return void 0 === e2 && (e2 = false), h(t2) || o$3(t2) || !i$3(t2) || (a$1(t2) > 1 && (t2.set = t2.add = t2.clear = t2.delete = v), Object.freeze(t2), e2 && u$1(t2, function(t3, e3) {
|
|
28900
28900
|
return y(e3, true);
|
|
28901
28901
|
}, true)), t2;
|
|
28902
28902
|
}
|
|
@@ -28939,7 +28939,7 @@ function D(t2, e2, r2) {
|
|
|
28939
28939
|
return e2;
|
|
28940
28940
|
var n2 = e2[$$j];
|
|
28941
28941
|
if (!n2)
|
|
28942
|
-
return u(e2, function(o3, i2) {
|
|
28942
|
+
return u$1(e2, function(o3, i2) {
|
|
28943
28943
|
return E(t2, n2, e2, o3, i2, r2);
|
|
28944
28944
|
}, true), e2;
|
|
28945
28945
|
if (n2.A !== t2)
|
|
@@ -28949,16 +28949,16 @@ function D(t2, e2, r2) {
|
|
|
28949
28949
|
if (!n2.I) {
|
|
28950
28950
|
n2.I = true, n2.A._--;
|
|
28951
28951
|
var o2 = 4 === n2.i || 5 === n2.i ? n2.o = d(n2.k) : n2.o;
|
|
28952
|
-
u(3 === n2.i ? new Set(o2) : o2, function(e3, i2) {
|
|
28952
|
+
u$1(3 === n2.i ? new Set(o2) : o2, function(e3, i2) {
|
|
28953
28953
|
return E(t2, n2, o2, e3, i2, r2);
|
|
28954
28954
|
}), S(t2, o2, false), r2 && t2.u && b("Patches").R(n2, r2, t2.u, t2.s);
|
|
28955
28955
|
}
|
|
28956
28956
|
return n2.o;
|
|
28957
28957
|
}
|
|
28958
28958
|
function E(t2, e2, r2, u2, a2, s2) {
|
|
28959
|
-
if (o$
|
|
28960
|
-
var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$
|
|
28961
|
-
if (f(r2, u2, l2), !o$
|
|
28959
|
+
if (o$3(a2)) {
|
|
28960
|
+
var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$2(e2.D, u2) ? s2.concat(u2) : void 0);
|
|
28961
|
+
if (f(r2, u2, l2), !o$3(l2))
|
|
28962
28962
|
return;
|
|
28963
28963
|
t2.m = false;
|
|
28964
28964
|
}
|
|
@@ -29000,7 +29000,7 @@ function F(t2, e2, r2) {
|
|
|
29000
29000
|
return (r2 ? r2.A : m$1()).p.push(n2), n2;
|
|
29001
29001
|
}
|
|
29002
29002
|
function k(t2) {
|
|
29003
|
-
return o$
|
|
29003
|
+
return o$3(t2) || n$1(22, t2), function t3(e2) {
|
|
29004
29004
|
if (!i$3(e2))
|
|
29005
29005
|
return e2;
|
|
29006
29006
|
var r2, n2 = e2[$$j], o2 = a$1(e2);
|
|
@@ -29010,7 +29010,7 @@ function k(t2) {
|
|
|
29010
29010
|
n2.I = true, r2 = z(e2, o2), n2.I = false;
|
|
29011
29011
|
} else
|
|
29012
29012
|
r2 = z(e2, o2);
|
|
29013
|
-
return u(r2, function(e3, o3) {
|
|
29013
|
+
return u$1(r2, function(e3, o3) {
|
|
29014
29014
|
n2 && function(t4, e4) {
|
|
29015
29015
|
return 2 === a$1(t4) ? t4.get(e4) : t4[e4];
|
|
29016
29016
|
}(n2.t, e3) === o3 || f(r2, e3, t3(o3));
|
|
@@ -29037,7 +29037,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29037
29037
|
if (e2 === $$j)
|
|
29038
29038
|
return t2;
|
|
29039
29039
|
var r2 = p(t2);
|
|
29040
|
-
if (!c$
|
|
29040
|
+
if (!c$2(r2, e2))
|
|
29041
29041
|
return function(t3, e3, r3) {
|
|
29042
29042
|
var n3, o2 = I(e3, r3);
|
|
29043
29043
|
return o2 ? "value" in o2 ? o2.value : null === (n3 = o2.get) || void 0 === n3 ? void 0 : n3.call(t3.k) : void 0;
|
|
@@ -29058,7 +29058,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29058
29058
|
return t2.o[e2] = r2, t2.D[e2] = false, true;
|
|
29059
29059
|
if (function(t3, e3) {
|
|
29060
29060
|
return t3 === e3 ? 0 !== t3 || 1 / t3 == 1 / e3 : t3 != t3 && e3 != e3;
|
|
29061
|
-
}(r2, o2) && (void 0 !== r2 || c$
|
|
29061
|
+
}(r2, o2) && (void 0 !== r2 || c$2(t2.t, e2)))
|
|
29062
29062
|
return true;
|
|
29063
29063
|
x(t2), N(t2);
|
|
29064
29064
|
}
|
|
@@ -29075,7 +29075,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29075
29075
|
}, setPrototypeOf: function() {
|
|
29076
29076
|
n$1(12);
|
|
29077
29077
|
} }, L = {};
|
|
29078
|
-
u(H, function(t2, e2) {
|
|
29078
|
+
u$1(H, function(t2, e2) {
|
|
29079
29079
|
L[t2] = function() {
|
|
29080
29080
|
return arguments[0] = arguments[0][0], e2.apply(this, arguments);
|
|
29081
29081
|
};
|
|
@@ -29138,7 +29138,7 @@ var Q = new (function() {
|
|
|
29138
29138
|
}
|
|
29139
29139
|
var e2 = t2.prototype;
|
|
29140
29140
|
return e2.createDraft = function(t3) {
|
|
29141
|
-
i$3(t3) || n$1(8), o$
|
|
29141
|
+
i$3(t3) || n$1(8), o$3(t3) && (t3 = k(t3));
|
|
29142
29142
|
var e3 = j(this), r2 = F(this, t3, void 0);
|
|
29143
29143
|
return r2[$$j].C = true, P(e3), r2;
|
|
29144
29144
|
}, e2.finishDraft = function(t3, e3) {
|
|
@@ -29159,7 +29159,7 @@ var Q = new (function() {
|
|
|
29159
29159
|
}
|
|
29160
29160
|
}
|
|
29161
29161
|
var i2 = b("Patches").$;
|
|
29162
|
-
return o$
|
|
29162
|
+
return o$3(t3) ? i2(t3, e3) : this.produce(t3, function(t4) {
|
|
29163
29163
|
return i2(t4, e3.slice(r2 + 1));
|
|
29164
29164
|
});
|
|
29165
29165
|
}, t2;
|
|
@@ -31921,6 +31921,166 @@ const SvgRecording = (props) => /* @__PURE__ */ react.exports.createElement("svg
|
|
|
31921
31921
|
fill: "#FE1C1D",
|
|
31922
31922
|
d: "M138.03 62.67c24.37 0 44.12 19.75 44.12 44.12 0 24.37-19.75 44.12-44.12 44.12-24.37 0-44.12-19.75-44.12-44.12 0-24.37 19.75-44.12 44.12-44.12z"
|
|
31923
31923
|
}));
|
|
31924
|
+
const SvgGcal = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31925
|
+
id: "Livello_1",
|
|
31926
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31927
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
31928
|
+
x: "0px",
|
|
31929
|
+
y: "0px",
|
|
31930
|
+
viewBox: "0 0 200 200",
|
|
31931
|
+
enableBackground: "new 0 0 200 200",
|
|
31932
|
+
xmlSpace: "preserve",
|
|
31933
|
+
...props
|
|
31934
|
+
}, /* @__PURE__ */ react.exports.createElement("g", null, /* @__PURE__ */ react.exports.createElement("g", {
|
|
31935
|
+
transform: "translate(3.75 3.75)"
|
|
31936
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31937
|
+
fill: "#FFFFFF",
|
|
31938
|
+
d: "M148.882,43.618l-47.368-5.263l-57.895,5.263L38.355,96.25l5.263,52.632l52.632,6.579l52.632-6.579 l5.263-53.947L148.882,43.618z"
|
|
31939
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31940
|
+
fill: "#1A73E8",
|
|
31941
|
+
d: "M65.211,125.276c-3.934-2.658-6.658-6.539-8.145-11.671l9.132-3.763c0.829,3.158,2.276,5.605,4.342,7.342 c2.053,1.737,4.553,2.592,7.474,2.592c2.987,0,5.553-0.908,7.697-2.724s3.224-4.132,3.224-6.934c0-2.868-1.132-5.211-3.395-7.026 s-5.105-2.724-8.5-2.724h-5.276v-9.039H76.5c2.921,0,5.382-0.789,7.382-2.368c2-1.579,3-3.737,3-6.487 c0-2.447-0.895-4.395-2.684-5.855s-4.053-2.197-6.803-2.197c-2.684,0-4.816,0.711-6.395,2.145s-2.724,3.197-3.447,5.276 l-9.039-3.763c1.197-3.395,3.395-6.395,6.618-8.987c3.224-2.592,7.342-3.895,12.342-3.895c3.697,0,7.026,0.711,9.974,2.145 c2.947,1.434,5.263,3.421,6.934,5.947c1.671,2.539,2.5,5.382,2.5,8.539c0,3.224-0.776,5.947-2.329,8.184 c-1.553,2.237-3.461,3.947-5.724,5.145v0.539c2.987,1.25,5.421,3.158,7.342,5.724c1.908,2.566,2.868,5.632,2.868,9.211 s-0.908,6.776-2.724,9.579c-1.816,2.803-4.329,5.013-7.513,6.618c-3.197,1.605-6.789,2.421-10.776,2.421 C73.408,129.263,69.145,127.934,65.211,125.276z"
|
|
31942
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31943
|
+
fill: "#1A73E8",
|
|
31944
|
+
d: "M121.25,79.961l-9.974,7.25l-5.013-7.605l17.987-12.974h6.895v61.197h-9.895L121.25,79.961z"
|
|
31945
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31946
|
+
fill: "#EA4335",
|
|
31947
|
+
d: "M148.882,196.25l47.368-47.368l-23.684-10.526l-23.684,10.526l-10.526,23.684L148.882,196.25z"
|
|
31948
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31949
|
+
fill: "#34A853",
|
|
31950
|
+
d: "M33.092,172.566l10.526,23.684h105.263v-47.368H43.618L33.092,172.566z"
|
|
31951
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31952
|
+
fill: "#4285F4",
|
|
31953
|
+
d: "M12.039-3.75C3.316-3.75-3.75,3.316-3.75,12.039v136.842l23.684,10.526l23.684-10.526V43.618h105.263 l10.526-23.684L148.882-3.75H12.039z"
|
|
31954
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31955
|
+
fill: "#188038",
|
|
31956
|
+
d: "M-3.75,148.882v31.579c0,8.724,7.066,15.789,15.789,15.789h31.579v-47.368H-3.75z"
|
|
31957
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31958
|
+
fill: "#FBBC04",
|
|
31959
|
+
d: "M148.882,43.618v105.263h47.368V43.618l-23.684-10.526L148.882,43.618z"
|
|
31960
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31961
|
+
fill: "#1967D2",
|
|
31962
|
+
d: "M196.25,43.618V12.039c0-8.724-7.066-15.789-15.789-15.789h-31.579v47.368H196.25z"
|
|
31963
|
+
}))));
|
|
31964
|
+
const SvgYahoo = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31965
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31966
|
+
viewBox: "0 0 3386.34 3010.5",
|
|
31967
|
+
shapeRendering: "geometricPrecision",
|
|
31968
|
+
textRendering: "geometricPrecision",
|
|
31969
|
+
imageRendering: "optimizeQuality",
|
|
31970
|
+
fillRule: "evenodd",
|
|
31971
|
+
clipRule: "evenodd",
|
|
31972
|
+
...props
|
|
31973
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31974
|
+
d: "M0 732.88h645.84l376.07 962.1 380.96-962.1h628.76l-946.8 2277.62H451.98l259.19-603.53L.02 732.88zm2763.84 768.75h-704.26L2684.65 0l701.69.03-622.5 1501.6zm-519.78 143.72c216.09 0 391.25 175.17 391.25 391.22 0 216.06-175.16 391.23-391.25 391.23-216.06 0-391.19-175.17-391.19-391.23 0-216.05 175.16-391.22 391.19-391.22z",
|
|
31975
|
+
fill: "#5f01d1",
|
|
31976
|
+
fillRule: "nonzero"
|
|
31977
|
+
}));
|
|
31978
|
+
const SvgOutlookCalendar = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31979
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31980
|
+
viewBox: "0 0 48 48",
|
|
31981
|
+
width: "48px",
|
|
31982
|
+
height: "48px",
|
|
31983
|
+
...props
|
|
31984
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31985
|
+
fill: "#1976d2",
|
|
31986
|
+
d: "M28,13h14.533C43.343,13,44,13.657,44,14.467v19.066C44,34.343,43.343,35,42.533,35H28V13z"
|
|
31987
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
31988
|
+
width: 14,
|
|
31989
|
+
height: 15.542,
|
|
31990
|
+
x: 28,
|
|
31991
|
+
y: 17.958,
|
|
31992
|
+
fill: "#fff"
|
|
31993
|
+
}), /* @__PURE__ */ react.exports.createElement("polygon", {
|
|
31994
|
+
fill: "#1976d2",
|
|
31995
|
+
points: "27,44 4,39.5 4,8.5 27,4"
|
|
31996
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31997
|
+
fill: "#fff",
|
|
31998
|
+
d: "M15.25,16.5c-3.176,0-5.75,3.358-5.75,7.5s2.574,7.5,5.75,7.5S21,28.142,21,24 S18.426,16.5,15.25,16.5z M15,28.5c-1.657,0-3-2.015-3-4.5s1.343-4.5,3-4.5s3,2.015,3,4.5S16.657,28.5,15,28.5z"
|
|
31999
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32000
|
+
width: 2.7,
|
|
32001
|
+
height: 2.9,
|
|
32002
|
+
x: 28.047,
|
|
32003
|
+
y: 29.737,
|
|
32004
|
+
fill: "#1976d2"
|
|
32005
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32006
|
+
width: 2.7,
|
|
32007
|
+
height: 2.9,
|
|
32008
|
+
x: 31.448,
|
|
32009
|
+
y: 29.737,
|
|
32010
|
+
fill: "#1976d2"
|
|
32011
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32012
|
+
width: 2.7,
|
|
32013
|
+
height: 2.9,
|
|
32014
|
+
x: 34.849,
|
|
32015
|
+
y: 29.737,
|
|
32016
|
+
fill: "#1976d2"
|
|
32017
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32018
|
+
width: 2.7,
|
|
32019
|
+
height: 2.9,
|
|
32020
|
+
x: 28.047,
|
|
32021
|
+
y: 26.159,
|
|
32022
|
+
fill: "#1976d2"
|
|
32023
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32024
|
+
width: 2.7,
|
|
32025
|
+
height: 2.9,
|
|
32026
|
+
x: 31.448,
|
|
32027
|
+
y: 26.159,
|
|
32028
|
+
fill: "#1976d2"
|
|
32029
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32030
|
+
width: 2.7,
|
|
32031
|
+
height: 2.9,
|
|
32032
|
+
x: 34.849,
|
|
32033
|
+
y: 26.159,
|
|
32034
|
+
fill: "#1976d2"
|
|
32035
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32036
|
+
width: 2.7,
|
|
32037
|
+
height: 2.9,
|
|
32038
|
+
x: 38.25,
|
|
32039
|
+
y: 26.159,
|
|
32040
|
+
fill: "#1976d2"
|
|
32041
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32042
|
+
width: 2.7,
|
|
32043
|
+
height: 2.9,
|
|
32044
|
+
x: 28.047,
|
|
32045
|
+
y: 22.706,
|
|
32046
|
+
fill: "#1976d2"
|
|
32047
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32048
|
+
width: 2.7,
|
|
32049
|
+
height: 2.9,
|
|
32050
|
+
x: 31.448,
|
|
32051
|
+
y: 22.706,
|
|
32052
|
+
fill: "#1976d2"
|
|
32053
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32054
|
+
width: 2.7,
|
|
32055
|
+
height: 2.9,
|
|
32056
|
+
x: 34.849,
|
|
32057
|
+
y: 22.706,
|
|
32058
|
+
fill: "#1976d2"
|
|
32059
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32060
|
+
width: 2.7,
|
|
32061
|
+
height: 2.9,
|
|
32062
|
+
x: 38.25,
|
|
32063
|
+
y: 22.706,
|
|
32064
|
+
fill: "#1976d2"
|
|
32065
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32066
|
+
width: 2.7,
|
|
32067
|
+
height: 2.9,
|
|
32068
|
+
x: 31.448,
|
|
32069
|
+
y: 19.112,
|
|
32070
|
+
fill: "#1976d2"
|
|
32071
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32072
|
+
width: 2.7,
|
|
32073
|
+
height: 2.9,
|
|
32074
|
+
x: 34.849,
|
|
32075
|
+
y: 19.112,
|
|
32076
|
+
fill: "#1976d2"
|
|
32077
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32078
|
+
width: 2.7,
|
|
32079
|
+
height: 2.9,
|
|
32080
|
+
x: 38.25,
|
|
32081
|
+
y: 19.112,
|
|
32082
|
+
fill: "#1976d2"
|
|
32083
|
+
}));
|
|
31924
32084
|
const calendars = (params) => api("/calendars", params);
|
|
31925
32085
|
const viewCalendar = (id2, params) => api("/calendars/" + id2, params);
|
|
31926
32086
|
const updateCalendar = (id2, params) => api("/calendars/" + id2, params, "put");
|
|
@@ -32340,7 +32500,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags2) {
|
|
|
32340
32500
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
32341
32501
|
}
|
|
32342
32502
|
}
|
|
32343
|
-
var t$1 = new events.exports(), o$
|
|
32503
|
+
var t$1 = new events.exports(), o$2 = function(n2, e2) {
|
|
32344
32504
|
var o2 = n2.listeners, i2 = void 0 === o2 ? {} : o2, u2 = n2.removeListeners, a2 = void 0 === u2 ? {} : u2, v2 = n2.params, c2 = void 0 === v2 ? {} : v2;
|
|
32345
32505
|
return void 0 === e2 && (e2 = []), react.exports.useLayoutEffect(function() {
|
|
32346
32506
|
var r2 = Object.keys(i2);
|
|
@@ -32697,7 +32857,7 @@ var lodash = { exports: {} };
|
|
|
32697
32857
|
"\u2029": "u2029"
|
|
32698
32858
|
};
|
|
32699
32859
|
var freeParseFloat = parseFloat, freeParseInt = parseInt;
|
|
32700
|
-
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
32860
|
+
var freeGlobal2 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
|
|
32701
32861
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
32702
32862
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
32703
32863
|
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
@@ -36160,37 +36320,37 @@ var lodash = { exports: {} };
|
|
|
36160
36320
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
36161
36321
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
36162
36322
|
}
|
|
36163
|
-
function invokeFunc(
|
|
36323
|
+
function invokeFunc(time2) {
|
|
36164
36324
|
var args = lastArgs, thisArg = lastThis;
|
|
36165
36325
|
lastArgs = lastThis = undefined$12;
|
|
36166
|
-
lastInvokeTime =
|
|
36326
|
+
lastInvokeTime = time2;
|
|
36167
36327
|
result2 = func.apply(thisArg, args);
|
|
36168
36328
|
return result2;
|
|
36169
36329
|
}
|
|
36170
|
-
function leadingEdge(
|
|
36171
|
-
lastInvokeTime =
|
|
36330
|
+
function leadingEdge(time2) {
|
|
36331
|
+
lastInvokeTime = time2;
|
|
36172
36332
|
timerId = setTimeout2(timerExpired, wait);
|
|
36173
|
-
return leading ? invokeFunc(
|
|
36333
|
+
return leading ? invokeFunc(time2) : result2;
|
|
36174
36334
|
}
|
|
36175
|
-
function remainingWait(
|
|
36176
|
-
var timeSinceLastCall =
|
|
36335
|
+
function remainingWait(time2) {
|
|
36336
|
+
var timeSinceLastCall = time2 - lastCallTime, timeSinceLastInvoke = time2 - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
36177
36337
|
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
36178
36338
|
}
|
|
36179
|
-
function shouldInvoke(
|
|
36180
|
-
var timeSinceLastCall =
|
|
36339
|
+
function shouldInvoke(time2) {
|
|
36340
|
+
var timeSinceLastCall = time2 - lastCallTime, timeSinceLastInvoke = time2 - lastInvokeTime;
|
|
36181
36341
|
return lastCallTime === undefined$12 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
36182
36342
|
}
|
|
36183
36343
|
function timerExpired() {
|
|
36184
|
-
var
|
|
36185
|
-
if (shouldInvoke(
|
|
36186
|
-
return trailingEdge(
|
|
36344
|
+
var time2 = now2();
|
|
36345
|
+
if (shouldInvoke(time2)) {
|
|
36346
|
+
return trailingEdge(time2);
|
|
36187
36347
|
}
|
|
36188
|
-
timerId = setTimeout2(timerExpired, remainingWait(
|
|
36348
|
+
timerId = setTimeout2(timerExpired, remainingWait(time2));
|
|
36189
36349
|
}
|
|
36190
|
-
function trailingEdge(
|
|
36350
|
+
function trailingEdge(time2) {
|
|
36191
36351
|
timerId = undefined$12;
|
|
36192
36352
|
if (trailing && lastArgs) {
|
|
36193
|
-
return invokeFunc(
|
|
36353
|
+
return invokeFunc(time2);
|
|
36194
36354
|
}
|
|
36195
36355
|
lastArgs = lastThis = undefined$12;
|
|
36196
36356
|
return result2;
|
|
@@ -36206,10 +36366,10 @@ var lodash = { exports: {} };
|
|
|
36206
36366
|
return timerId === undefined$12 ? result2 : trailingEdge(now2());
|
|
36207
36367
|
}
|
|
36208
36368
|
function debounced() {
|
|
36209
|
-
var
|
|
36369
|
+
var time2 = now2(), isInvoking = shouldInvoke(time2);
|
|
36210
36370
|
lastArgs = arguments;
|
|
36211
36371
|
lastThis = this;
|
|
36212
|
-
lastCallTime =
|
|
36372
|
+
lastCallTime = time2;
|
|
36213
36373
|
if (isInvoking) {
|
|
36214
36374
|
if (timerId === undefined$12) {
|
|
36215
36375
|
return leadingEdge(lastCallTime);
|
|
@@ -37801,7 +37961,7 @@ var lodash = { exports: {} };
|
|
|
37801
37961
|
} else {
|
|
37802
37962
|
root2._ = _2;
|
|
37803
37963
|
}
|
|
37804
|
-
}).call(commonjsGlobal);
|
|
37964
|
+
}).call(commonjsGlobal$1);
|
|
37805
37965
|
})(lodash, lodash.exports);
|
|
37806
37966
|
var cjs$4 = {};
|
|
37807
37967
|
var IoProvider$1 = {};
|
|
@@ -38569,7 +38729,7 @@ var common = setup;
|
|
|
38569
38729
|
}
|
|
38570
38730
|
};
|
|
38571
38731
|
})(browser, browser.exports);
|
|
38572
|
-
var __importDefault$a = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
38732
|
+
var __importDefault$a = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
38573
38733
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
38574
38734
|
};
|
|
38575
38735
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
@@ -38726,7 +38886,7 @@ function XHR(opts) {
|
|
|
38726
38886
|
}
|
|
38727
38887
|
}
|
|
38728
38888
|
xmlhttprequest_browser.XHR = XHR;
|
|
38729
|
-
var __importDefault$9 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
38889
|
+
var __importDefault$9 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
38730
38890
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
38731
38891
|
};
|
|
38732
38892
|
Object.defineProperty(polling, "__esModule", { value: true });
|
|
@@ -39029,7 +39189,7 @@ websocketConstructor_browser.nextTick = (() => {
|
|
|
39029
39189
|
websocketConstructor_browser.WebSocket = globalThis_js_1.globalThisShim.WebSocket || globalThis_js_1.globalThisShim.MozWebSocket;
|
|
39030
39190
|
websocketConstructor_browser.usingBrowserWebSocket = true;
|
|
39031
39191
|
websocketConstructor_browser.defaultBinaryType = "arraybuffer";
|
|
39032
|
-
var __importDefault$8 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39192
|
+
var __importDefault$8 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39033
39193
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39034
39194
|
};
|
|
39035
39195
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
|
@@ -39214,7 +39374,7 @@ function queryKey$1(uri, query) {
|
|
|
39214
39374
|
});
|
|
39215
39375
|
return data2;
|
|
39216
39376
|
}
|
|
39217
|
-
var __importDefault$7 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39377
|
+
var __importDefault$7 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39218
39378
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39219
39379
|
};
|
|
39220
39380
|
Object.defineProperty(socket$1, "__esModule", { value: true });
|
|
@@ -39663,7 +39823,7 @@ Socket$1.protocol = engine_io_parser_1.protocol;
|
|
|
39663
39823
|
return parseuri_js_12.parse;
|
|
39664
39824
|
} });
|
|
39665
39825
|
})(cjs$2);
|
|
39666
|
-
var __importDefault$6 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39826
|
+
var __importDefault$6 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39667
39827
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39668
39828
|
};
|
|
39669
39829
|
Object.defineProperty(url$3, "__esModule", { value: true });
|
|
@@ -40029,7 +40189,7 @@ function on(obj, ev, fn) {
|
|
|
40029
40189
|
};
|
|
40030
40190
|
}
|
|
40031
40191
|
on$1.on = on;
|
|
40032
|
-
var __importDefault$5 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40192
|
+
var __importDefault$5 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40033
40193
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40034
40194
|
};
|
|
40035
40195
|
Object.defineProperty(socket, "__esModule", { value: true });
|
|
@@ -40413,7 +40573,7 @@ Backoff.prototype.setMax = function(max2) {
|
|
|
40413
40573
|
Backoff.prototype.setJitter = function(jitter) {
|
|
40414
40574
|
this.jitter = jitter;
|
|
40415
40575
|
};
|
|
40416
|
-
var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40576
|
+
var __createBinding$2 = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40417
40577
|
if (k22 === void 0)
|
|
40418
40578
|
k22 = k2;
|
|
40419
40579
|
Object.defineProperty(o2, k22, { enumerable: true, get: function() {
|
|
@@ -40424,12 +40584,12 @@ var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Obj
|
|
|
40424
40584
|
k22 = k2;
|
|
40425
40585
|
o2[k22] = m2[k2];
|
|
40426
40586
|
});
|
|
40427
|
-
var __setModuleDefault$2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40587
|
+
var __setModuleDefault$2 = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40428
40588
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
40429
40589
|
} : function(o2, v2) {
|
|
40430
40590
|
o2["default"] = v2;
|
|
40431
40591
|
});
|
|
40432
|
-
var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
40592
|
+
var __importStar$2 = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
40433
40593
|
if (mod2 && mod2.__esModule)
|
|
40434
40594
|
return mod2;
|
|
40435
40595
|
var result = {};
|
|
@@ -40441,7 +40601,7 @@ var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(m
|
|
|
40441
40601
|
__setModuleDefault$2(result, mod2);
|
|
40442
40602
|
return result;
|
|
40443
40603
|
};
|
|
40444
|
-
var __importDefault$4 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40604
|
+
var __importDefault$4 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40445
40605
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40446
40606
|
};
|
|
40447
40607
|
Object.defineProperty(manager, "__esModule", { value: true });
|
|
@@ -40709,7 +40869,7 @@ class Manager extends component_emitter_1.Emitter {
|
|
|
40709
40869
|
}
|
|
40710
40870
|
manager.Manager = Manager;
|
|
40711
40871
|
(function(module2, exports2) {
|
|
40712
|
-
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40872
|
+
var __importDefault2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40713
40873
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40714
40874
|
};
|
|
40715
40875
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -40770,7 +40930,7 @@ manager.Manager = Manager;
|
|
|
40770
40930
|
module2.exports = lookup2;
|
|
40771
40931
|
})(cjs$3, cjs$3.exports);
|
|
40772
40932
|
var IoContext$1 = {};
|
|
40773
|
-
var __importDefault$3 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40933
|
+
var __importDefault$3 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40774
40934
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40775
40935
|
};
|
|
40776
40936
|
Object.defineProperty(IoContext$1, "__esModule", { value: true });
|
|
@@ -40802,8 +40962,8 @@ var IoContext = react_1$1.default.createContext({
|
|
|
40802
40962
|
}
|
|
40803
40963
|
});
|
|
40804
40964
|
IoContext$1.default = IoContext;
|
|
40805
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
40806
|
-
__assign = Object.assign || function(t2) {
|
|
40965
|
+
var __assign$1 = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
40966
|
+
__assign$1 = Object.assign || function(t2) {
|
|
40807
40967
|
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
40808
40968
|
s2 = arguments[i2];
|
|
40809
40969
|
for (var p2 in s2)
|
|
@@ -40812,9 +40972,9 @@ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
|
40812
40972
|
}
|
|
40813
40973
|
return t2;
|
|
40814
40974
|
};
|
|
40815
|
-
return __assign.apply(this, arguments);
|
|
40975
|
+
return __assign$1.apply(this, arguments);
|
|
40816
40976
|
};
|
|
40817
|
-
var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40977
|
+
var __createBinding$1 = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40818
40978
|
if (k22 === void 0)
|
|
40819
40979
|
k22 = k2;
|
|
40820
40980
|
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
@@ -40829,12 +40989,12 @@ var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Obj
|
|
|
40829
40989
|
k22 = k2;
|
|
40830
40990
|
o2[k22] = m2[k2];
|
|
40831
40991
|
});
|
|
40832
|
-
var __setModuleDefault$1 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40992
|
+
var __setModuleDefault$1 = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40833
40993
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
40834
40994
|
} : function(o2, v2) {
|
|
40835
40995
|
o2["default"] = v2;
|
|
40836
40996
|
});
|
|
40837
|
-
var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
40997
|
+
var __importStar$1 = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
40838
40998
|
if (mod2 && mod2.__esModule)
|
|
40839
40999
|
return mod2;
|
|
40840
41000
|
var result = {};
|
|
@@ -40846,7 +41006,7 @@ var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(m
|
|
|
40846
41006
|
__setModuleDefault$1(result, mod2);
|
|
40847
41007
|
return result;
|
|
40848
41008
|
};
|
|
40849
|
-
var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41009
|
+
var __importDefault$2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40850
41010
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40851
41011
|
};
|
|
40852
41012
|
Object.defineProperty(IoProvider$1, "__esModule", { value: true });
|
|
@@ -40891,13 +41051,13 @@ var IoProvider = function(_a) {
|
|
|
40891
41051
|
var handleConnect = function() {
|
|
40892
41052
|
return setStatuses(function(state) {
|
|
40893
41053
|
var _a3;
|
|
40894
|
-
return __assign(__assign({}, state), (_a3 = {}, _a3[namespaceKey] = "connected", _a3));
|
|
41054
|
+
return __assign$1(__assign$1({}, state), (_a3 = {}, _a3[namespaceKey] = "connected", _a3));
|
|
40895
41055
|
});
|
|
40896
41056
|
};
|
|
40897
41057
|
var handleDisconnect = function() {
|
|
40898
41058
|
return setStatuses(function(state) {
|
|
40899
41059
|
var _a3;
|
|
40900
|
-
return __assign(__assign({}, state), (_a3 = {}, _a3[namespaceKey] = "disconnected", _a3));
|
|
41060
|
+
return __assign$1(__assign$1({}, state), (_a3 = {}, _a3[namespaceKey] = "disconnected", _a3));
|
|
40901
41061
|
});
|
|
40902
41062
|
};
|
|
40903
41063
|
var socket2 = (0, socket_io_client_1.default)(urlConfig.source, options);
|
|
@@ -40922,7 +41082,7 @@ var IoProvider = function(_a) {
|
|
|
40922
41082
|
var setLastMessage = function(namespaceKey, forEvent, message) {
|
|
40923
41083
|
return setLastMessages(function(state) {
|
|
40924
41084
|
var _a2;
|
|
40925
|
-
return __assign(__assign({}, state), (_a2 = {}, _a2["".concat(namespaceKey).concat(forEvent)] = message, _a2));
|
|
41085
|
+
return __assign$1(__assign$1({}, state), (_a2 = {}, _a2["".concat(namespaceKey).concat(forEvent)] = message, _a2));
|
|
40926
41086
|
});
|
|
40927
41087
|
};
|
|
40928
41088
|
var getConnection = function(namespaceKey) {
|
|
@@ -40949,7 +41109,7 @@ var IoProvider = function(_a) {
|
|
|
40949
41109
|
}
|
|
40950
41110
|
return setErrors(function(state) {
|
|
40951
41111
|
var _a2;
|
|
40952
|
-
return __assign(__assign({}, state), (_a2 = {}, _a2[namespaceKey] = error, _a2));
|
|
41112
|
+
return __assign$1(__assign$1({}, state), (_a2 = {}, _a2[namespaceKey] = error, _a2));
|
|
40953
41113
|
});
|
|
40954
41114
|
};
|
|
40955
41115
|
var registerSharedListener = function(namespaceKey, forEvent) {
|
|
@@ -41034,7 +41194,7 @@ function queryKey(uri, query) {
|
|
|
41034
41194
|
});
|
|
41035
41195
|
return data2;
|
|
41036
41196
|
}
|
|
41037
|
-
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41197
|
+
var __importDefault$1 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41038
41198
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41039
41199
|
};
|
|
41040
41200
|
Object.defineProperty(url$1, "__esModule", { value: true });
|
|
@@ -41248,7 +41408,7 @@ const index_es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
41248
41408
|
default: SocketMock
|
|
41249
41409
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41250
41410
|
const require$$3 = /* @__PURE__ */ getAugmentedNamespace(index_es);
|
|
41251
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
41411
|
+
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
41252
41412
|
if (k22 === void 0)
|
|
41253
41413
|
k22 = k2;
|
|
41254
41414
|
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
@@ -41263,12 +41423,12 @@ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Objec
|
|
|
41263
41423
|
k22 = k2;
|
|
41264
41424
|
o2[k22] = m2[k2];
|
|
41265
41425
|
});
|
|
41266
|
-
var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
41426
|
+
var __setModuleDefault = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
41267
41427
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
41268
41428
|
} : function(o2, v2) {
|
|
41269
41429
|
o2["default"] = v2;
|
|
41270
41430
|
});
|
|
41271
|
-
var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
41431
|
+
var __importStar = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
41272
41432
|
if (mod2 && mod2.__esModule)
|
|
41273
41433
|
return mod2;
|
|
41274
41434
|
var result = {};
|
|
@@ -41280,7 +41440,7 @@ var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod
|
|
|
41280
41440
|
__setModuleDefault(result, mod2);
|
|
41281
41441
|
return result;
|
|
41282
41442
|
};
|
|
41283
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41443
|
+
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41284
41444
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41285
41445
|
};
|
|
41286
41446
|
Object.defineProperty(useSocket$2, "__esModule", { value: true });
|
|
@@ -41360,7 +41520,7 @@ function requireCjs() {
|
|
|
41360
41520
|
if (hasRequiredCjs)
|
|
41361
41521
|
return cjs$4;
|
|
41362
41522
|
hasRequiredCjs = 1;
|
|
41363
|
-
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41523
|
+
var __importDefault2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41364
41524
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41365
41525
|
};
|
|
41366
41526
|
Object.defineProperty(cjs$4, "__esModule", { value: true });
|
|
@@ -41424,7 +41584,7 @@ const useBaseRequest = ({
|
|
|
41424
41584
|
setData = _setData,
|
|
41425
41585
|
onSuccess
|
|
41426
41586
|
}) => {
|
|
41427
|
-
const emitter = o$
|
|
41587
|
+
const emitter = o$2(
|
|
41428
41588
|
{
|
|
41429
41589
|
listeners: listeners2,
|
|
41430
41590
|
removeListeners,
|
|
@@ -41492,6 +41652,625 @@ const useRequest = ({ asyncRequest, params, ...props }, dep) => {
|
|
|
41492
41652
|
return { setState, next, ...rest };
|
|
41493
41653
|
};
|
|
41494
41654
|
const maximizeIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACAEAQAAAA5p3UDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQflCh0XODE9tr5GAAACo0lEQVR42u3dTU7jQBBA4TaaHacJKJgkErDlSFnB7TgNGCPWLhYlIcEMY/ePqXTX+9btVpl+RAgpdggAAAAAAMCLbm6BiMivDtR1szOhnDPrAWCLAJwjAOcIwDkCcI4AnCMA51YKYByD9H2XwPoHgm8k2eurTH1vPT8ypQdABE3IC4AIqpcfABFUbf5wh2FZBMMg03ZrfT+INH+wm43I8zOfBI2aO1JdQwTNWhKAriOCJi0NQNcSQXNiAtD1RNCU2AD0mouLqAjk+tr6PvGDlAD0OiJoQmoAei0RVC8nAL2eCKqWG4DuERPBOBLBCSkRgO5DBFUqFYDuRQTVKRmA7kcEVSkdgO5JBO5pBC8vROCYyOXl4gim93eZbm6sZ0ZhRAAiQEIEcntrPTMKIwIQAYgAgQgQQhDZ7fSfQETgFhEgIYK7O+uZURgRrKOaJ4R03dNTCPf3Iby9zS8+Pw9ht7OeGStY9knw8GA9J1b0/wg4fBf+HQGH78rXCDh8l0QOB5Hj0XoOAAAAAAAAAAAAAAAAAEC1RI5HkcPBeg4YEHl85LuITn0ePl9I9eevwycCP348fCJon/7Bt8Q4iuz31vOiMJH9nodUOEcEiH9IBU80bQ8RgAhABAhEgBAZAW8+aRMRIO7ZxkTQJiIAEYAIEGIjSH9r+tzO1j8H134jAgI4cdERTH0ftz8BnLw1IyCASqwVAQFURCNY+tb0ZREQQGX0renlIiCACpWMgAAqVSoCAqhYiQgIoHK5ERBAA3IiIIBGxEdwdaXXEUAzUiIggMbItN2KDMOyCObXWd8PEsR9EhBAk0Q2mxIRWN8HMpSIwPoekCk3Auv5UUBOBHN7/7G+OW9O7bfyzHoA2CIA5wjAOQJwjgCcIwDnCAAAAAAAAMCJD8ZQvP1zR7rXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDIzOjU2OjQ5KzAwOjAwRquYIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQyMzo1Njo0OSswMDowMDf2IJ4AAAAASUVORK5CYII=";
|
|
41655
|
+
var RECURRENCE = {
|
|
41656
|
+
FREQUENCY: {
|
|
41657
|
+
DAILY: "DAILY",
|
|
41658
|
+
WEEKLY: "WEEKLY",
|
|
41659
|
+
MONTHLY: "MONTHLY",
|
|
41660
|
+
YEARLY: "YEARLY"
|
|
41661
|
+
}
|
|
41662
|
+
};
|
|
41663
|
+
var FORMAT = {
|
|
41664
|
+
DATE: "YYYYMMDD",
|
|
41665
|
+
TIME: "ThhmmssZ",
|
|
41666
|
+
FULL: "YYYYMMDDThhmmssZ",
|
|
41667
|
+
NO_UTC_FULL: "YYYYMMDDThhmmss",
|
|
41668
|
+
OUTLOOK_DATE: "YYYY-MM-DD",
|
|
41669
|
+
OUTLOOK_TIME: "Thh:mm:ssZ",
|
|
41670
|
+
OUTLOOK_FULL: "YYYY-MM-DDThh:mm:ssZ"
|
|
41671
|
+
};
|
|
41672
|
+
var URL = {
|
|
41673
|
+
YAHOO: "https://calendar.yahoo.com/",
|
|
41674
|
+
GOOGLE: "https://calendar.google.com/calendar/render",
|
|
41675
|
+
OUTLOOK: "https://outlook.{{host}}.com/calendar/0/deeplink/compose"
|
|
41676
|
+
};
|
|
41677
|
+
var addLeadingZero = function(n2) {
|
|
41678
|
+
if (n2 === void 0) {
|
|
41679
|
+
n2 = "";
|
|
41680
|
+
}
|
|
41681
|
+
return "0".concat(parseInt(n2.toString(), 10)).slice(-2);
|
|
41682
|
+
};
|
|
41683
|
+
var getDuration = function(start, end) {
|
|
41684
|
+
var seconds2 = Math.floor((end - start) / 1e3);
|
|
41685
|
+
var hours2 = Math.floor(seconds2 / 3600);
|
|
41686
|
+
var mins = seconds2 / 3600 % 1 * 60;
|
|
41687
|
+
return "".concat(addLeadingZero(hours2)).concat(addLeadingZero(mins));
|
|
41688
|
+
};
|
|
41689
|
+
var getHoursDiff = function(start, end) {
|
|
41690
|
+
var seconds2 = Math.floor((end - start) / 1e3);
|
|
41691
|
+
return Math.floor(seconds2 / 3600);
|
|
41692
|
+
};
|
|
41693
|
+
var getRecurrenceLengthDays = function(recurrence) {
|
|
41694
|
+
var frequency = recurrence.frequency, interval = recurrence.interval;
|
|
41695
|
+
var FREQUENCY = RECURRENCE.FREQUENCY;
|
|
41696
|
+
if (interval) {
|
|
41697
|
+
switch (frequency) {
|
|
41698
|
+
case FREQUENCY.YEARLY:
|
|
41699
|
+
return interval * 365.25;
|
|
41700
|
+
case FREQUENCY.MONTHLY:
|
|
41701
|
+
return interval * 30.42;
|
|
41702
|
+
case FREQUENCY.WEEKLY:
|
|
41703
|
+
return interval * 7;
|
|
41704
|
+
default:
|
|
41705
|
+
return interval;
|
|
41706
|
+
}
|
|
41707
|
+
}
|
|
41708
|
+
return 365.25 * 100;
|
|
41709
|
+
};
|
|
41710
|
+
var formatDate = function(d2, format2) {
|
|
41711
|
+
if (d2 === void 0) {
|
|
41712
|
+
d2 = new Date();
|
|
41713
|
+
}
|
|
41714
|
+
var dateValues = {
|
|
41715
|
+
YYYY: d2.getUTCFullYear(),
|
|
41716
|
+
MM: addLeadingZero(d2.getUTCMonth() + 1),
|
|
41717
|
+
DD: addLeadingZero(d2.getUTCDate()),
|
|
41718
|
+
hh: addLeadingZero(d2.getUTCHours()),
|
|
41719
|
+
mm: addLeadingZero(d2.getUTCMinutes()),
|
|
41720
|
+
ss: addLeadingZero(d2.getUTCSeconds())
|
|
41721
|
+
};
|
|
41722
|
+
return Object.keys(dateValues).reduce(function(date2, key2) {
|
|
41723
|
+
return date2.replace(key2, dateValues[key2].toString());
|
|
41724
|
+
}, format2);
|
|
41725
|
+
};
|
|
41726
|
+
var formatDateNoUtc = function(d2, format2) {
|
|
41727
|
+
if (d2 === void 0) {
|
|
41728
|
+
d2 = new Date();
|
|
41729
|
+
}
|
|
41730
|
+
var dateValues = {
|
|
41731
|
+
YYYY: d2.getFullYear(),
|
|
41732
|
+
MM: addLeadingZero(d2.getMonth() + 1),
|
|
41733
|
+
DD: addLeadingZero(d2.getDate()),
|
|
41734
|
+
hh: addLeadingZero(d2.getHours()),
|
|
41735
|
+
mm: addLeadingZero(d2.getMinutes()),
|
|
41736
|
+
ss: addLeadingZero(d2.getSeconds())
|
|
41737
|
+
};
|
|
41738
|
+
return Object.keys(dateValues).reduce(function(date2, key2) {
|
|
41739
|
+
return date2.replace(key2, dateValues[key2].toString());
|
|
41740
|
+
}, format2);
|
|
41741
|
+
};
|
|
41742
|
+
var getTimeCreated = function() {
|
|
41743
|
+
return formatDate(new Date(), FORMAT.FULL);
|
|
41744
|
+
};
|
|
41745
|
+
var incrementDate = function(dateInput, days2) {
|
|
41746
|
+
var additionalTime = days2 * 864e5;
|
|
41747
|
+
var newDate = new Date();
|
|
41748
|
+
newDate.setTime(dateInput.getTime() + additionalTime);
|
|
41749
|
+
return newDate;
|
|
41750
|
+
};
|
|
41751
|
+
var time = {
|
|
41752
|
+
addLeadingZero,
|
|
41753
|
+
getDuration,
|
|
41754
|
+
getHoursDiff,
|
|
41755
|
+
getRecurrenceLengthDays,
|
|
41756
|
+
formatDate,
|
|
41757
|
+
formatDateNoUtc,
|
|
41758
|
+
getTimeCreated,
|
|
41759
|
+
incrementDate
|
|
41760
|
+
};
|
|
41761
|
+
var CalendarBase = function() {
|
|
41762
|
+
function CalendarBase2(options) {
|
|
41763
|
+
var _this = this;
|
|
41764
|
+
this.isAllDay = false;
|
|
41765
|
+
this.description = "";
|
|
41766
|
+
this.title = "";
|
|
41767
|
+
this.location = "";
|
|
41768
|
+
this.start = new Date();
|
|
41769
|
+
this.end = new Date();
|
|
41770
|
+
this.params = {};
|
|
41771
|
+
this.attendees = [];
|
|
41772
|
+
this.setText = function(options2) {
|
|
41773
|
+
_this.description = options2.description || "";
|
|
41774
|
+
_this.title = options2.title || "";
|
|
41775
|
+
_this.location = options2.location || "";
|
|
41776
|
+
};
|
|
41777
|
+
this.setTimestamps = function(options2) {
|
|
41778
|
+
_this.isAllDay = !options2.end;
|
|
41779
|
+
_this.start = options2.start;
|
|
41780
|
+
_this.end = options2.end || time.incrementDate(_this.start, 1);
|
|
41781
|
+
_this.recurrence = options2.recurrence;
|
|
41782
|
+
};
|
|
41783
|
+
this.setParam = function(key2, value2) {
|
|
41784
|
+
_this.params[key2] = value2;
|
|
41785
|
+
return _this;
|
|
41786
|
+
};
|
|
41787
|
+
this.setText(options);
|
|
41788
|
+
this.setTimestamps(options);
|
|
41789
|
+
this.setAttendees(options);
|
|
41790
|
+
}
|
|
41791
|
+
CalendarBase2.prototype.setAttendees = function(options) {
|
|
41792
|
+
this.attendees = Array.isArray(options.attendees) ? options.attendees : [];
|
|
41793
|
+
};
|
|
41794
|
+
return CalendarBase2;
|
|
41795
|
+
}();
|
|
41796
|
+
var extendStatics = function(d2, b2) {
|
|
41797
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
41798
|
+
d3.__proto__ = b3;
|
|
41799
|
+
} || function(d3, b3) {
|
|
41800
|
+
for (var p2 in b3)
|
|
41801
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
41802
|
+
d3[p2] = b3[p2];
|
|
41803
|
+
};
|
|
41804
|
+
return extendStatics(d2, b2);
|
|
41805
|
+
};
|
|
41806
|
+
function __extends(d2, b2) {
|
|
41807
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
41808
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
41809
|
+
extendStatics(d2, b2);
|
|
41810
|
+
function __() {
|
|
41811
|
+
this.constructor = d2;
|
|
41812
|
+
}
|
|
41813
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
41814
|
+
}
|
|
41815
|
+
var __assign = function() {
|
|
41816
|
+
__assign = Object.assign || function __assign2(t2) {
|
|
41817
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
41818
|
+
s2 = arguments[i2];
|
|
41819
|
+
for (var p2 in s2)
|
|
41820
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
41821
|
+
t2[p2] = s2[p2];
|
|
41822
|
+
}
|
|
41823
|
+
return t2;
|
|
41824
|
+
};
|
|
41825
|
+
return __assign.apply(this, arguments);
|
|
41826
|
+
};
|
|
41827
|
+
function __spreadArray(to2, from2, pack) {
|
|
41828
|
+
if (pack || arguments.length === 2)
|
|
41829
|
+
for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
|
|
41830
|
+
if (ar || !(i2 in from2)) {
|
|
41831
|
+
if (!ar)
|
|
41832
|
+
ar = Array.prototype.slice.call(from2, 0, i2);
|
|
41833
|
+
ar[i2] = from2[i2];
|
|
41834
|
+
}
|
|
41835
|
+
}
|
|
41836
|
+
return to2.concat(ar || Array.prototype.slice.call(from2));
|
|
41837
|
+
}
|
|
41838
|
+
var toParamString = function(params, delimiter, transformFn) {
|
|
41839
|
+
if (delimiter === void 0) {
|
|
41840
|
+
delimiter = ";";
|
|
41841
|
+
}
|
|
41842
|
+
if (transformFn === void 0) {
|
|
41843
|
+
transformFn = function(s2) {
|
|
41844
|
+
return s2;
|
|
41845
|
+
};
|
|
41846
|
+
}
|
|
41847
|
+
var paramString = [];
|
|
41848
|
+
for (var key2 in params) {
|
|
41849
|
+
if (params.hasOwnProperty(key2) && params[key2] !== void 0) {
|
|
41850
|
+
paramString.push("".concat(key2, "=").concat(transformFn(params[key2])));
|
|
41851
|
+
}
|
|
41852
|
+
}
|
|
41853
|
+
return paramString.join(delimiter);
|
|
41854
|
+
};
|
|
41855
|
+
var toQueryString = function(params) {
|
|
41856
|
+
var filteredParams = Object.keys(params).filter(function(p2) {
|
|
41857
|
+
return params[p2] !== null;
|
|
41858
|
+
}).reduce(function(p2, k2) {
|
|
41859
|
+
var _a;
|
|
41860
|
+
return __assign(__assign({}, p2), (_a = {}, _a[k2] = params[k2], _a));
|
|
41861
|
+
}, {});
|
|
41862
|
+
return toParamString(filteredParams, "&", encodeURIComponent);
|
|
41863
|
+
};
|
|
41864
|
+
var toIcsParamString = function(params) {
|
|
41865
|
+
return toParamString(params, ";");
|
|
41866
|
+
};
|
|
41867
|
+
var toMailtoList = function(attendees) {
|
|
41868
|
+
return attendees.map(function(_a) {
|
|
41869
|
+
var email = _a.email, name = _a.name;
|
|
41870
|
+
return name ? "".concat(name, " <").concat(email, ">") : email;
|
|
41871
|
+
});
|
|
41872
|
+
};
|
|
41873
|
+
var toProperCase = function(s2) {
|
|
41874
|
+
return [
|
|
41875
|
+
s2[0].toUpperCase(),
|
|
41876
|
+
s2.slice(-s2.length + 1).toLowerCase()
|
|
41877
|
+
].join("");
|
|
41878
|
+
};
|
|
41879
|
+
var data$1 = {
|
|
41880
|
+
toParamString,
|
|
41881
|
+
toQueryString,
|
|
41882
|
+
toIcsParamString,
|
|
41883
|
+
toMailtoList,
|
|
41884
|
+
toProperCase
|
|
41885
|
+
};
|
|
41886
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
41887
|
+
var FileSaver_min = { exports: {} };
|
|
41888
|
+
(function(module2, exports2) {
|
|
41889
|
+
(function(a2, b2) {
|
|
41890
|
+
b2();
|
|
41891
|
+
})(commonjsGlobal, function() {
|
|
41892
|
+
function b2(a3, b3) {
|
|
41893
|
+
return "undefined" == typeof b3 ? b3 = { autoBom: false } : "object" != typeof b3 && (console.warn("Deprecated: Expected third argument to be a object"), b3 = { autoBom: !b3 }), b3.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a3.type) ? new Blob(["\uFEFF", a3], { type: a3.type }) : a3;
|
|
41894
|
+
}
|
|
41895
|
+
function c2(a3, b3, c3) {
|
|
41896
|
+
var d3 = new XMLHttpRequest();
|
|
41897
|
+
d3.open("GET", a3), d3.responseType = "blob", d3.onload = function() {
|
|
41898
|
+
g2(d3.response, b3, c3);
|
|
41899
|
+
}, d3.onerror = function() {
|
|
41900
|
+
console.error("could not download file");
|
|
41901
|
+
}, d3.send();
|
|
41902
|
+
}
|
|
41903
|
+
function d2(a3) {
|
|
41904
|
+
var b3 = new XMLHttpRequest();
|
|
41905
|
+
b3.open("HEAD", a3, false);
|
|
41906
|
+
try {
|
|
41907
|
+
b3.send();
|
|
41908
|
+
} catch (a4) {
|
|
41909
|
+
}
|
|
41910
|
+
return 200 <= b3.status && 299 >= b3.status;
|
|
41911
|
+
}
|
|
41912
|
+
function e2(a3) {
|
|
41913
|
+
try {
|
|
41914
|
+
a3.dispatchEvent(new MouseEvent("click"));
|
|
41915
|
+
} catch (c3) {
|
|
41916
|
+
var b3 = document.createEvent("MouseEvents");
|
|
41917
|
+
b3.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a3.dispatchEvent(b3);
|
|
41918
|
+
}
|
|
41919
|
+
}
|
|
41920
|
+
var f2 = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof commonjsGlobal && commonjsGlobal.global === commonjsGlobal ? commonjsGlobal : void 0, a2 = f2.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g2 = f2.saveAs || ("object" != typeof window || window !== f2 ? function() {
|
|
41921
|
+
} : "download" in HTMLAnchorElement.prototype && !a2 ? function(b3, g3, h2) {
|
|
41922
|
+
var i2 = f2.URL || f2.webkitURL, j2 = document.createElement("a");
|
|
41923
|
+
g3 = g3 || b3.name || "download", j2.download = g3, j2.rel = "noopener", "string" == typeof b3 ? (j2.href = b3, j2.origin === location.origin ? e2(j2) : d2(j2.href) ? c2(b3, g3, h2) : e2(j2, j2.target = "_blank")) : (j2.href = i2.createObjectURL(b3), setTimeout(function() {
|
|
41924
|
+
i2.revokeObjectURL(j2.href);
|
|
41925
|
+
}, 4e4), setTimeout(function() {
|
|
41926
|
+
e2(j2);
|
|
41927
|
+
}, 0));
|
|
41928
|
+
} : "msSaveOrOpenBlob" in navigator ? function(f3, g3, h2) {
|
|
41929
|
+
if (g3 = g3 || f3.name || "download", "string" != typeof f3)
|
|
41930
|
+
navigator.msSaveOrOpenBlob(b2(f3, h2), g3);
|
|
41931
|
+
else if (d2(f3))
|
|
41932
|
+
c2(f3, g3, h2);
|
|
41933
|
+
else {
|
|
41934
|
+
var i2 = document.createElement("a");
|
|
41935
|
+
i2.href = f3, i2.target = "_blank", setTimeout(function() {
|
|
41936
|
+
e2(i2);
|
|
41937
|
+
});
|
|
41938
|
+
}
|
|
41939
|
+
} : function(b3, d3, e3, g3) {
|
|
41940
|
+
if (g3 = g3 || open("", "_blank"), g3 && (g3.document.title = g3.document.body.innerText = "downloading..."), "string" == typeof b3)
|
|
41941
|
+
return c2(b3, d3, e3);
|
|
41942
|
+
var h2 = "application/octet-stream" === b3.type, i2 = /constructor/i.test(f2.HTMLElement) || f2.safari, j2 = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
41943
|
+
if ((j2 || h2 && i2 || a2) && "undefined" != typeof FileReader) {
|
|
41944
|
+
var k2 = new FileReader();
|
|
41945
|
+
k2.onloadend = function() {
|
|
41946
|
+
var a3 = k2.result;
|
|
41947
|
+
a3 = j2 ? a3 : a3.replace(/^data:[^;]*;/, "data:attachment/file;"), g3 ? g3.location.href = a3 : location = a3, g3 = null;
|
|
41948
|
+
}, k2.readAsDataURL(b3);
|
|
41949
|
+
} else {
|
|
41950
|
+
var l2 = f2.URL || f2.webkitURL, m2 = l2.createObjectURL(b3);
|
|
41951
|
+
g3 ? g3.location = m2 : location.href = m2, g3 = null, setTimeout(function() {
|
|
41952
|
+
l2.revokeObjectURL(m2);
|
|
41953
|
+
}, 4e4);
|
|
41954
|
+
}
|
|
41955
|
+
});
|
|
41956
|
+
f2.saveAs = g2.saveAs = g2, module2.exports = g2;
|
|
41957
|
+
});
|
|
41958
|
+
})(FileSaver_min);
|
|
41959
|
+
var formatText = function(str) {
|
|
41960
|
+
if (str === void 0) {
|
|
41961
|
+
str = "";
|
|
41962
|
+
}
|
|
41963
|
+
return str.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/[,;]/g, "\\$&");
|
|
41964
|
+
};
|
|
41965
|
+
var getBlob = function(icsData) {
|
|
41966
|
+
return new Blob([icsData], {
|
|
41967
|
+
type: "application/octet-stream"
|
|
41968
|
+
});
|
|
41969
|
+
};
|
|
41970
|
+
var getFileName = function(title) {
|
|
41971
|
+
if (!title) {
|
|
41972
|
+
return "event.ics";
|
|
41973
|
+
}
|
|
41974
|
+
return "".concat(title.replace(/[^\w ]/g, ""), ".ics");
|
|
41975
|
+
};
|
|
41976
|
+
var getUid = function() {
|
|
41977
|
+
return Math.random().toString(36).substr(2);
|
|
41978
|
+
};
|
|
41979
|
+
var getProdId = function() {
|
|
41980
|
+
return typeof window !== "undefined" ? window.location.host : "datebook";
|
|
41981
|
+
};
|
|
41982
|
+
var getRrule = function(recurrence) {
|
|
41983
|
+
var _a, _b;
|
|
41984
|
+
var rrule = {
|
|
41985
|
+
FREQ: recurrence.frequency,
|
|
41986
|
+
INTERVAL: (_a = recurrence.interval) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
41987
|
+
COUNT: (_b = recurrence.count) === null || _b === void 0 ? void 0 : _b.toString(),
|
|
41988
|
+
WKST: recurrence.weekstart,
|
|
41989
|
+
BYDAY: recurrence.weekdays,
|
|
41990
|
+
BYMONTHDAY: recurrence.monthdays
|
|
41991
|
+
};
|
|
41992
|
+
if (recurrence.end) {
|
|
41993
|
+
rrule.UNTIL = time.formatDate(recurrence.end, FORMAT.FULL);
|
|
41994
|
+
}
|
|
41995
|
+
return data$1.toIcsParamString(rrule);
|
|
41996
|
+
};
|
|
41997
|
+
var download = function(fileName, data2) {
|
|
41998
|
+
var blob = getBlob(data2);
|
|
41999
|
+
FileSaver_min.exports.saveAs(blob, fileName);
|
|
42000
|
+
};
|
|
42001
|
+
var ics = {
|
|
42002
|
+
formatText,
|
|
42003
|
+
getBlob,
|
|
42004
|
+
getFileName,
|
|
42005
|
+
getUid,
|
|
42006
|
+
getProdId,
|
|
42007
|
+
getRrule,
|
|
42008
|
+
download
|
|
42009
|
+
};
|
|
42010
|
+
var GoogleCalendar = function(_super) {
|
|
42011
|
+
__extends(GoogleCalendar2, _super);
|
|
42012
|
+
function GoogleCalendar2(opts) {
|
|
42013
|
+
var _this = _super.call(this, opts) || this;
|
|
42014
|
+
_this.setInitialParams = function() {
|
|
42015
|
+
var timestampFormat = FORMAT.DATE;
|
|
42016
|
+
if (!_this.isAllDay) {
|
|
42017
|
+
timestampFormat += FORMAT.TIME;
|
|
42018
|
+
}
|
|
42019
|
+
var dates = [
|
|
42020
|
+
time.formatDate(_this.start, timestampFormat),
|
|
42021
|
+
time.formatDate(_this.end, timestampFormat)
|
|
42022
|
+
].join("/");
|
|
42023
|
+
_this.setParam("action", "TEMPLATE").setParam("dates", dates).setParam("text", _this.title).setParam("details", _this.description).setParam("location", _this.location).setParam("allday", _this.isAllDay.toString());
|
|
42024
|
+
if (_this.recurrence) {
|
|
42025
|
+
_this.setParam("recur", "RRULE:".concat(ics.getRrule(_this.recurrence)));
|
|
42026
|
+
}
|
|
42027
|
+
if (_this.attendees.length > 0) {
|
|
42028
|
+
_this.setParam("add", data$1.toMailtoList(_this.attendees).join(","));
|
|
42029
|
+
}
|
|
42030
|
+
};
|
|
42031
|
+
_this.render = function() {
|
|
42032
|
+
var baseUrl = URL.GOOGLE;
|
|
42033
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42034
|
+
return "".concat(baseUrl, "?").concat(queryString);
|
|
42035
|
+
};
|
|
42036
|
+
_this.setInitialParams();
|
|
42037
|
+
return _this;
|
|
42038
|
+
}
|
|
42039
|
+
return GoogleCalendar2;
|
|
42040
|
+
}(CalendarBase);
|
|
42041
|
+
var YahooCalendar = function(_super) {
|
|
42042
|
+
__extends(YahooCalendar2, _super);
|
|
42043
|
+
function YahooCalendar2(opts) {
|
|
42044
|
+
var _this = _super.call(this, opts) || this;
|
|
42045
|
+
_this.setInitialParams = function() {
|
|
42046
|
+
_this.setParam("v", "60").setParam("title", _this.title).setParam("desc", _this.description).setParam("in_loc", _this.location);
|
|
42047
|
+
_this.setTimeParams();
|
|
42048
|
+
if (_this.attendees.length > 0) {
|
|
42049
|
+
_this.setParam("inv_list", data$1.toMailtoList(_this.attendees).join(","));
|
|
42050
|
+
}
|
|
42051
|
+
};
|
|
42052
|
+
_this.setTimeParams = function() {
|
|
42053
|
+
if (_this.isAllDay) {
|
|
42054
|
+
_this.setParam("dur", "allday").setParam("st", time.formatDateNoUtc(_this.start, FORMAT.DATE));
|
|
42055
|
+
} else {
|
|
42056
|
+
_this.setParam("st", time.formatDateNoUtc(_this.start, FORMAT.NO_UTC_FULL));
|
|
42057
|
+
if (time.getHoursDiff(_this.start.getTime(), _this.end.getTime()) > 99) {
|
|
42058
|
+
_this.setParam("et", time.formatDateNoUtc(_this.end, FORMAT.NO_UTC_FULL));
|
|
42059
|
+
} else {
|
|
42060
|
+
_this.setParam("dur", time.getDuration(_this.start.getTime(), _this.end.getTime()));
|
|
42061
|
+
}
|
|
42062
|
+
}
|
|
42063
|
+
};
|
|
42064
|
+
_this.render = function() {
|
|
42065
|
+
var baseUrl = URL.YAHOO;
|
|
42066
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42067
|
+
return "".concat(baseUrl, "?").concat(queryString);
|
|
42068
|
+
};
|
|
42069
|
+
_this.setInitialParams();
|
|
42070
|
+
return _this;
|
|
42071
|
+
}
|
|
42072
|
+
return YahooCalendar2;
|
|
42073
|
+
}(CalendarBase);
|
|
42074
|
+
var OutlookCalendar = function(_super) {
|
|
42075
|
+
__extends(OutlookCalendar2, _super);
|
|
42076
|
+
function OutlookCalendar2(opts) {
|
|
42077
|
+
var _this = _super.call(this, opts) || this;
|
|
42078
|
+
_this.baseUrl = URL.OUTLOOK;
|
|
42079
|
+
_this.setInitialParams = function() {
|
|
42080
|
+
var timestampFormat = FORMAT.OUTLOOK_DATE;
|
|
42081
|
+
if (!_this.isAllDay) {
|
|
42082
|
+
timestampFormat += FORMAT.OUTLOOK_TIME;
|
|
42083
|
+
}
|
|
42084
|
+
_this.setParam("rru", "addevent").setParam("path", "/calendar/action/compose").setParam("startdt", time.formatDate(_this.start, timestampFormat)).setParam("enddt", time.formatDate(_this.end, timestampFormat)).setParam("subject", _this.title).setParam("body", _this.description).setParam("location", _this.location).setParam("allday", _this.isAllDay.toString());
|
|
42085
|
+
if (_this.attendees.length > 0) {
|
|
42086
|
+
_this.setParam("to", data$1.toMailtoList(_this.attendees).join(","));
|
|
42087
|
+
}
|
|
42088
|
+
};
|
|
42089
|
+
_this.setHost = function(host) {
|
|
42090
|
+
if (["live", "office"].includes(host)) {
|
|
42091
|
+
_this.baseUrl = URL.OUTLOOK.replace("{{host}}", host);
|
|
42092
|
+
}
|
|
42093
|
+
return _this;
|
|
42094
|
+
};
|
|
42095
|
+
_this.render = function() {
|
|
42096
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42097
|
+
return "".concat(_this.baseUrl, "?").concat(queryString);
|
|
42098
|
+
};
|
|
42099
|
+
_this.setInitialParams();
|
|
42100
|
+
_this.setHost("live");
|
|
42101
|
+
return _this;
|
|
42102
|
+
}
|
|
42103
|
+
return OutlookCalendar2;
|
|
42104
|
+
}(CalendarBase);
|
|
42105
|
+
(function(_super) {
|
|
42106
|
+
__extends(ICalendar, _super);
|
|
42107
|
+
function ICalendar(opts) {
|
|
42108
|
+
var _this = _super.call(this, opts) || this;
|
|
42109
|
+
_this.additionalEvents = [];
|
|
42110
|
+
_this.properties = [];
|
|
42111
|
+
_this.meta = {};
|
|
42112
|
+
_this.setInitialParams = function() {
|
|
42113
|
+
_this.setMeta("UID", ics.getUid()).setMeta("DTSTAMP", time.getTimeCreated()).addProperty("CLASS", "PUBLIC").addProperty("DESCRIPTION", ics.formatText(_this.description)).addProperty("LOCATION", ics.formatText(_this.location)).addProperty("SUMMARY", ics.formatText(_this.title)).addProperty("TRANSP", "TRANSPARENT");
|
|
42114
|
+
if (_this.isAllDay) {
|
|
42115
|
+
_this.addProperty("DTSTART;VALUE=DATE", time.formatDateNoUtc(_this.start, FORMAT.DATE)).addProperty("DTEND;VALUE=DATE", time.formatDateNoUtc(time.incrementDate(_this.start, 1), FORMAT.DATE));
|
|
42116
|
+
} else {
|
|
42117
|
+
_this.addProperty("DTSTART", time.formatDate(_this.start, FORMAT.FULL)).addProperty("DTEND", time.formatDate(_this.end, FORMAT.FULL));
|
|
42118
|
+
}
|
|
42119
|
+
if (_this.recurrence) {
|
|
42120
|
+
_this.addProperty("RRULE", ics.getRrule(_this.recurrence));
|
|
42121
|
+
}
|
|
42122
|
+
if (_this.attendees.length > 0) {
|
|
42123
|
+
_this.attendees.forEach(function(_a) {
|
|
42124
|
+
var email = _a.email, name = _a.name, _b = _a.icsOptions, icsOptions = _b === void 0 ? {} : _b;
|
|
42125
|
+
var params = _this.getAttendeeParams(icsOptions, name);
|
|
42126
|
+
var mailto = "MAILTO:".concat(email);
|
|
42127
|
+
_this.addProperty(params, mailto);
|
|
42128
|
+
});
|
|
42129
|
+
}
|
|
42130
|
+
};
|
|
42131
|
+
_this.getAttendeeParams = function(options, name) {
|
|
42132
|
+
var params = {};
|
|
42133
|
+
if (name)
|
|
42134
|
+
params["CN"] = name;
|
|
42135
|
+
if (options.delegatedFrom)
|
|
42136
|
+
params["DELEGATED-FROM"] = options.delegatedFrom;
|
|
42137
|
+
if (options.partStat)
|
|
42138
|
+
params["PARTSTAT"] = options.partStat;
|
|
42139
|
+
if (options.role)
|
|
42140
|
+
params["ROLE"] = options.role;
|
|
42141
|
+
if (options.sentBy)
|
|
42142
|
+
params["SENT-BY"] = options.sentBy;
|
|
42143
|
+
params["RSVP"] = options.rsvp ? "TRUE" : "FALSE";
|
|
42144
|
+
var paramString = data$1.toParamString(params, ";");
|
|
42145
|
+
return "ATTENDEE;".concat(paramString);
|
|
42146
|
+
};
|
|
42147
|
+
_this.getAlarmDuration = function(duration) {
|
|
42148
|
+
var features = [
|
|
42149
|
+
"".concat(duration.weeks, "W"),
|
|
42150
|
+
"".concat(duration.days, "D"),
|
|
42151
|
+
"".concat(duration.hours, "H"),
|
|
42152
|
+
"".concat(duration.minutes, "M"),
|
|
42153
|
+
"".concat(duration.seconds, "S")
|
|
42154
|
+
].filter(function(s2) {
|
|
42155
|
+
return /^[0-9]+[A-Z]$/.exec(s2);
|
|
42156
|
+
});
|
|
42157
|
+
features.unshift(duration.after ? "PT" : "-PT");
|
|
42158
|
+
return features.join("");
|
|
42159
|
+
};
|
|
42160
|
+
_this.getMeta = function() {
|
|
42161
|
+
return Object.keys(_this.meta).map(function(key2) {
|
|
42162
|
+
return "".concat(key2, ":").concat(_this.meta[key2]);
|
|
42163
|
+
});
|
|
42164
|
+
};
|
|
42165
|
+
_this.setMeta = function(key2, value2) {
|
|
42166
|
+
_this.meta[key2] = value2;
|
|
42167
|
+
return _this;
|
|
42168
|
+
};
|
|
42169
|
+
_this.addEvent = function(event) {
|
|
42170
|
+
_this.additionalEvents.push(event);
|
|
42171
|
+
return _this;
|
|
42172
|
+
};
|
|
42173
|
+
_this.addProperty = function(key2, value2) {
|
|
42174
|
+
if (typeof value2 === "object") {
|
|
42175
|
+
_this.properties.push("BEGIN:".concat(key2));
|
|
42176
|
+
for (var k2 in value2) {
|
|
42177
|
+
_this.addProperty(k2, value2[k2]);
|
|
42178
|
+
}
|
|
42179
|
+
_this.properties.push("END:".concat(key2));
|
|
42180
|
+
} else {
|
|
42181
|
+
_this.properties.push("".concat(key2, ":").concat(value2.toString()));
|
|
42182
|
+
}
|
|
42183
|
+
return _this;
|
|
42184
|
+
};
|
|
42185
|
+
_this.addAlarm = function(alarm) {
|
|
42186
|
+
var value2 = {
|
|
42187
|
+
ACTION: alarm.action
|
|
42188
|
+
};
|
|
42189
|
+
if (alarm.description)
|
|
42190
|
+
value2.DESCRIPTION = ics.formatText(alarm.description);
|
|
42191
|
+
if (alarm.summary)
|
|
42192
|
+
value2.SUMMARY = ics.formatText(alarm.summary);
|
|
42193
|
+
if (alarm.duration)
|
|
42194
|
+
value2.DURATION = _this.getAlarmDuration(alarm.duration);
|
|
42195
|
+
if (alarm.repeat)
|
|
42196
|
+
value2.REPEAT = alarm.repeat;
|
|
42197
|
+
if (alarm.attach) {
|
|
42198
|
+
var key2 = alarm.attach.params ? "ATTACH;".concat(alarm.attach.params) : "ATTACH";
|
|
42199
|
+
value2[key2] = alarm.attach.url;
|
|
42200
|
+
}
|
|
42201
|
+
if (alarm.trigger instanceof Date) {
|
|
42202
|
+
value2["TRIGGER;VALUE=DATE-TIME"] = time.formatDate(alarm.trigger, FORMAT.FULL);
|
|
42203
|
+
} else {
|
|
42204
|
+
value2["TRIGGER"] = _this.getAlarmDuration(alarm.trigger);
|
|
42205
|
+
}
|
|
42206
|
+
return _this.addProperty("VALARM", value2);
|
|
42207
|
+
};
|
|
42208
|
+
_this.download = function(fileName) {
|
|
42209
|
+
console.warn([
|
|
42210
|
+
"ICalendar.download() is deprecated and will be removed in the next major release.",
|
|
42211
|
+
"See https://datebook.dev/api/icalendar.html#example-for-downloading-an-ics-file for more info on how to download ICS files."
|
|
42212
|
+
].join(" "));
|
|
42213
|
+
ics.download(fileName || ics.getFileName(_this.title), _this.render());
|
|
42214
|
+
};
|
|
42215
|
+
_this.render = function() {
|
|
42216
|
+
var events2 = __spreadArray([
|
|
42217
|
+
_this
|
|
42218
|
+
], _this.additionalEvents, true);
|
|
42219
|
+
var vEvents = events2.reduce(function(properties, calendar2) {
|
|
42220
|
+
return __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], properties, true), [
|
|
42221
|
+
"BEGIN:VEVENT"
|
|
42222
|
+
], false), calendar2.properties, true), calendar2.getMeta(), true), [
|
|
42223
|
+
"END:VEVENT"
|
|
42224
|
+
], false);
|
|
42225
|
+
}, []);
|
|
42226
|
+
return __spreadArray(__spreadArray([
|
|
42227
|
+
"BEGIN:VCALENDAR",
|
|
42228
|
+
"VERSION:2.0"
|
|
42229
|
+
], vEvents, true), [
|
|
42230
|
+
"PRODID:".concat(ics.getProdId()),
|
|
42231
|
+
"END:VCALENDAR"
|
|
42232
|
+
], false).join("\n");
|
|
42233
|
+
};
|
|
42234
|
+
_this.setInitialParams();
|
|
42235
|
+
return _this;
|
|
42236
|
+
}
|
|
42237
|
+
return ICalendar;
|
|
42238
|
+
})(CalendarBase);
|
|
42239
|
+
function o$1(n2, e2, t2) {
|
|
42240
|
+
return e2 in n2 ? Object.defineProperty(n2, e2, { value: t2, enumerable: true, configurable: true, writable: true }) : n2[e2] = t2, n2;
|
|
42241
|
+
}
|
|
42242
|
+
var u = { click: "onClick", focusin: "onFocus", focusout: "onFocus", mousedown: "onMouseDown", mouseup: "onMouseUp", touchstart: "onTouchStart", touchend: "onTouchEnd" }, c$1 = function(c2) {
|
|
42243
|
+
var i2, a2 = c2.children, v2 = c2.onClickAway, s2 = c2.focusEvent, l2 = void 0 === s2 ? "focusin" : s2, d2 = c2.mouseEvent, f2 = void 0 === d2 ? "click" : d2, m2 = c2.touchEvent, E2 = void 0 === m2 ? "touchend" : m2, p2 = react.exports.useRef(null), h2 = react.exports.useRef(null), L2 = react.exports.useRef(false);
|
|
42244
|
+
react.exports.useEffect(function() {
|
|
42245
|
+
return setTimeout(function() {
|
|
42246
|
+
L2.current = true;
|
|
42247
|
+
}, 0), function() {
|
|
42248
|
+
L2.current = false;
|
|
42249
|
+
};
|
|
42250
|
+
}, []);
|
|
42251
|
+
var w2 = function(n2) {
|
|
42252
|
+
return function(e2) {
|
|
42253
|
+
h2.current = e2.target;
|
|
42254
|
+
var t2 = null == a2 ? void 0 : a2.props[n2];
|
|
42255
|
+
t2 && t2(e2);
|
|
42256
|
+
};
|
|
42257
|
+
};
|
|
42258
|
+
react.exports.useEffect(function() {
|
|
42259
|
+
var n2, e2, t2 = null !== (n2 = null === (e2 = p2.current) || void 0 === e2 ? void 0 : e2.ownerDocument) && void 0 !== n2 ? n2 : document, r2 = function(n3) {
|
|
42260
|
+
L2.current && (p2.current && p2.current.contains(n3.target) || h2.current === n3.target || !t2.contains(n3.target) || v2(n3));
|
|
42261
|
+
};
|
|
42262
|
+
return t2.addEventListener(f2, r2), t2.addEventListener(E2, r2), t2.addEventListener(l2, r2), function() {
|
|
42263
|
+
t2.removeEventListener(f2, r2), t2.removeEventListener(E2, r2), t2.removeEventListener(l2, r2);
|
|
42264
|
+
};
|
|
42265
|
+
}, [l2, f2, v2, E2]);
|
|
42266
|
+
var y2 = u[f2], g2 = u[E2], k2 = u[l2];
|
|
42267
|
+
return React$1.Children.only(react.exports.cloneElement(a2, (o$1(i2 = { ref: function(n2) {
|
|
42268
|
+
p2.current = n2;
|
|
42269
|
+
var e2 = a2.ref;
|
|
42270
|
+
"function" == typeof e2 ? e2(n2) : e2 && (e2.current = n2);
|
|
42271
|
+
} }, k2, w2(k2)), o$1(i2, y2, w2(y2)), o$1(i2, g2, w2(g2)), i2)));
|
|
42272
|
+
};
|
|
42273
|
+
c$1.displayName = "ClickAwayListener";
|
|
41495
42274
|
const PhoneInput$1 = lib.default || lib;
|
|
41496
42275
|
const days$1 = {
|
|
41497
42276
|
Monday: 1,
|
|
@@ -41582,7 +42361,7 @@ const Offline = react.exports.memo(({
|
|
|
41582
42361
|
email,
|
|
41583
42362
|
account,
|
|
41584
42363
|
date: date2,
|
|
41585
|
-
time,
|
|
42364
|
+
time: time2,
|
|
41586
42365
|
reason: reason2
|
|
41587
42366
|
}, {
|
|
41588
42367
|
resetForm
|
|
@@ -41590,7 +42369,7 @@ const Offline = react.exports.memo(({
|
|
|
41590
42369
|
try {
|
|
41591
42370
|
saved.current = {
|
|
41592
42371
|
date: date2,
|
|
41593
|
-
time,
|
|
42372
|
+
time: time2,
|
|
41594
42373
|
reason: reason2
|
|
41595
42374
|
};
|
|
41596
42375
|
if (calendar2) {
|
|
@@ -41604,7 +42383,7 @@ const Offline = react.exports.memo(({
|
|
|
41604
42383
|
mobile,
|
|
41605
42384
|
account,
|
|
41606
42385
|
reason: reason2,
|
|
41607
|
-
scheduledAt: hooks(`${date2} ${
|
|
42386
|
+
scheduledAt: hooks(`${date2} ${time2}`).format(),
|
|
41608
42387
|
country,
|
|
41609
42388
|
latitude,
|
|
41610
42389
|
longitude,
|
|
@@ -41625,7 +42404,7 @@ const Offline = react.exports.memo(({
|
|
|
41625
42404
|
mobile,
|
|
41626
42405
|
account,
|
|
41627
42406
|
reason: reason2,
|
|
41628
|
-
scheduledAt: hooks(`${date2} ${
|
|
42407
|
+
scheduledAt: hooks(`${date2} ${time2}`).format(),
|
|
41629
42408
|
country,
|
|
41630
42409
|
latitude,
|
|
41631
42410
|
longitude,
|
|
@@ -41931,7 +42710,7 @@ const EmptySchedule = react.exports.memo(function() {
|
|
|
41931
42710
|
return /* @__PURE__ */ jsx(Col$1, {
|
|
41932
42711
|
children: /* @__PURE__ */ jsx("p", {
|
|
41933
42712
|
className: styles$1.schTitle,
|
|
41934
|
-
children: "
|
|
42713
|
+
children: "No Scheduled Meeting"
|
|
41935
42714
|
})
|
|
41936
42715
|
});
|
|
41937
42716
|
});
|
|
@@ -42014,7 +42793,7 @@ const FInput = react.exports.memo(({
|
|
|
42014
42793
|
const regexPattern = /^[a-zA-Z\s]*$/;
|
|
42015
42794
|
const onNameChange = (e2) => {
|
|
42016
42795
|
if (e2.target.value === "" || regexPattern.test(e2.target.value)) {
|
|
42017
|
-
return onChange && onChange(e2) || handleChange(e2);
|
|
42796
|
+
return onChange && onChange(e2) || handleChange && handleChange(e2);
|
|
42018
42797
|
}
|
|
42019
42798
|
};
|
|
42020
42799
|
return /* @__PURE__ */ jsxs(FormGroup$1, {
|
|
@@ -42030,7 +42809,7 @@ const FInput = react.exports.memo(({
|
|
|
42030
42809
|
className: "",
|
|
42031
42810
|
for: "name",
|
|
42032
42811
|
children: /* @__PURE__ */ jsx("span", {
|
|
42033
|
-
className: "
|
|
42812
|
+
className: "bg-white text-dark pt-1 pl-2 pr-2",
|
|
42034
42813
|
children: label
|
|
42035
42814
|
})
|
|
42036
42815
|
})
|
|
@@ -42048,7 +42827,8 @@ const FInput = react.exports.memo(({
|
|
|
42048
42827
|
valid: touched[name] && !errors[name],
|
|
42049
42828
|
invalid: touched[name] && !!errors[name],
|
|
42050
42829
|
placeholder,
|
|
42051
|
-
type
|
|
42830
|
+
type,
|
|
42831
|
+
bsSize: "sm"
|
|
42052
42832
|
}), errors[name] ? /* @__PURE__ */ jsx(FormFeedback$1, {
|
|
42053
42833
|
children: errors[name]
|
|
42054
42834
|
}) : null]
|
|
@@ -42056,19 +42836,52 @@ const FInput = react.exports.memo(({
|
|
|
42056
42836
|
});
|
|
42057
42837
|
});
|
|
42058
42838
|
const Done = react.exports.memo(({
|
|
42059
|
-
time,
|
|
42839
|
+
time: time2,
|
|
42060
42840
|
date: date2,
|
|
42061
42841
|
reason: reason2,
|
|
42062
42842
|
name,
|
|
42063
42843
|
hexcode,
|
|
42064
42844
|
done
|
|
42065
42845
|
}) => {
|
|
42066
|
-
|
|
42067
|
-
|
|
42068
|
-
|
|
42069
|
-
|
|
42070
|
-
|
|
42071
|
-
|
|
42846
|
+
var _a, _b, _c;
|
|
42847
|
+
const [opened, setOpened] = useState(false);
|
|
42848
|
+
const eventProviders = react.exports.useMemo(() => {
|
|
42849
|
+
const event = {
|
|
42850
|
+
title: `${name} Video Call`,
|
|
42851
|
+
description: `Callback reason: ${reason2}
|
|
42852
|
+
|
|
42853
|
+
Call link: ${window.location}
|
|
42854
|
+
|
|
42855
|
+
Customer Instruction:
|
|
42856
|
+
|
|
42857
|
+
When it is time for the meeting, follow these instructions to chat with an agent.
|
|
42858
|
+
|
|
42859
|
+
Step 1: Log into your bank's internet banking or mobile banking platform.
|
|
42860
|
+
Step 2: Open the video banking widget.
|
|
42861
|
+
Step 2: Click on the "Scheduled Meeting" button.
|
|
42862
|
+
Step 3: Click the blue "Join" button to join meeting.`,
|
|
42863
|
+
location: window.location,
|
|
42864
|
+
startTime: hooks(`${date2}:${time2}`),
|
|
42865
|
+
endTime: hooks(`${date2}:${time2}`).add(1, "h")
|
|
42866
|
+
};
|
|
42867
|
+
const providersObj = {};
|
|
42868
|
+
const objClass = {
|
|
42869
|
+
google: GoogleCalendar,
|
|
42870
|
+
outlook: OutlookCalendar,
|
|
42871
|
+
yahoo: YahooCalendar
|
|
42872
|
+
};
|
|
42873
|
+
const providerNames = ["google", "yahoo", "outlook"];
|
|
42874
|
+
providerNames.map((key2) => providersObj[key2] = new objClass[key2]({
|
|
42875
|
+
title: event.title,
|
|
42876
|
+
description: event.description,
|
|
42877
|
+
location: event.location,
|
|
42878
|
+
start: new Date(event.startTime.toISOString()),
|
|
42879
|
+
end: new Date(event.endTime.toISOString()),
|
|
42880
|
+
attendees: event.attendies
|
|
42881
|
+
}));
|
|
42882
|
+
return providersObj;
|
|
42883
|
+
}, [name, reason2, date2, time2]);
|
|
42884
|
+
const handleClickAway = () => setOpened(false);
|
|
42072
42885
|
return /* @__PURE__ */ jsxs(Col$1, {
|
|
42073
42886
|
className: "d-flex flex-column align-items-center justify-content-center",
|
|
42074
42887
|
style: {
|
|
@@ -42104,18 +42917,69 @@ const Done = react.exports.memo(({
|
|
|
42104
42917
|
children: hooks(date2).format("dddd, MMMM Do YYYY").toString()
|
|
42105
42918
|
}), /* @__PURE__ */ jsx("h6", {
|
|
42106
42919
|
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42107
|
-
children: hooks(`${date2}:${
|
|
42108
|
-
}), /* @__PURE__ */ jsx(
|
|
42109
|
-
|
|
42110
|
-
|
|
42111
|
-
|
|
42112
|
-
|
|
42113
|
-
|
|
42114
|
-
|
|
42115
|
-
|
|
42116
|
-
|
|
42117
|
-
|
|
42118
|
-
|
|
42920
|
+
children: hooks(`${date2}:${time2}`).format("hh:mm A").toString()
|
|
42921
|
+
}), /* @__PURE__ */ jsx(c$1, {
|
|
42922
|
+
onClickAway: handleClickAway,
|
|
42923
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42924
|
+
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
42925
|
+
type: "button",
|
|
42926
|
+
id: "cal",
|
|
42927
|
+
onClick: () => setOpened((s2) => !s2),
|
|
42928
|
+
style: {
|
|
42929
|
+
backgroundColor: `${hexcode}`,
|
|
42930
|
+
color: "#fff",
|
|
42931
|
+
textDecoration: "none"
|
|
42932
|
+
},
|
|
42933
|
+
className: styles$1.scheduleBtn + " btn mt-5 px-4 text-white",
|
|
42934
|
+
children: "Add to calendar"
|
|
42935
|
+
}), /* @__PURE__ */ jsx(Tooltip$1, {
|
|
42936
|
+
id: "calendar-tip",
|
|
42937
|
+
target: "cal",
|
|
42938
|
+
autohide: true,
|
|
42939
|
+
placement: "top",
|
|
42940
|
+
isOpen: opened,
|
|
42941
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42942
|
+
className: "",
|
|
42943
|
+
children: [/* @__PURE__ */ jsxs("a", {
|
|
42944
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
42945
|
+
href: (_a = eventProviders.google) == null ? void 0 : _a.render(),
|
|
42946
|
+
target: "_blank",
|
|
42947
|
+
rel: "noreferrer",
|
|
42948
|
+
children: [/* @__PURE__ */ jsx(SvgGcal, {
|
|
42949
|
+
width: 24,
|
|
42950
|
+
height: 24
|
|
42951
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42952
|
+
className: "ml-2 my-1",
|
|
42953
|
+
children: "Google"
|
|
42954
|
+
})]
|
|
42955
|
+
}), /* @__PURE__ */ jsxs("a", {
|
|
42956
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
42957
|
+
href: (_b = eventProviders.yahoo) == null ? void 0 : _b.render(),
|
|
42958
|
+
target: "_blank",
|
|
42959
|
+
rel: "noreferrer",
|
|
42960
|
+
children: [/* @__PURE__ */ jsx(SvgYahoo, {
|
|
42961
|
+
width: 24,
|
|
42962
|
+
height: 24
|
|
42963
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42964
|
+
className: "ml-2 my-1",
|
|
42965
|
+
children: "Yahoo"
|
|
42966
|
+
})]
|
|
42967
|
+
}), /* @__PURE__ */ jsxs("a", {
|
|
42968
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
42969
|
+
href: (_c = eventProviders.outlook) == null ? void 0 : _c.render(),
|
|
42970
|
+
target: "_blank",
|
|
42971
|
+
rel: "noreferrer",
|
|
42972
|
+
children: [/* @__PURE__ */ jsx(SvgOutlookCalendar, {
|
|
42973
|
+
width: 24,
|
|
42974
|
+
height: 24
|
|
42975
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42976
|
+
className: "ml-2 my-1",
|
|
42977
|
+
children: "Outlook"
|
|
42978
|
+
})]
|
|
42979
|
+
})]
|
|
42980
|
+
})
|
|
42981
|
+
})]
|
|
42982
|
+
})
|
|
42119
42983
|
})]
|
|
42120
42984
|
});
|
|
42121
42985
|
});
|
|
@@ -42148,7 +43012,7 @@ function WidgetOfflineHeader({
|
|
|
42148
43012
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
42149
43013
|
className: "d-flex",
|
|
42150
43014
|
children: [/* @__PURE__ */ jsx("p", {
|
|
42151
|
-
className: "
|
|
43015
|
+
className: "my-0 pb-0",
|
|
42152
43016
|
style: {
|
|
42153
43017
|
fontSize: 24,
|
|
42154
43018
|
fontWeight: "bold"
|
|
@@ -42205,12 +43069,12 @@ function WidgetInitForm({
|
|
|
42205
43069
|
continent
|
|
42206
43070
|
}, setState] = useState({
|
|
42207
43071
|
ipAddress: void 0,
|
|
42208
|
-
country:
|
|
43072
|
+
country: void 0,
|
|
42209
43073
|
longitude: void 0,
|
|
42210
43074
|
latitude: void 0,
|
|
42211
|
-
location:
|
|
42212
|
-
country_code:
|
|
42213
|
-
continent:
|
|
43075
|
+
location: void 0,
|
|
43076
|
+
country_code: void 0,
|
|
43077
|
+
continent: void 0
|
|
42214
43078
|
});
|
|
42215
43079
|
const [mobile, setMobile] = useState("");
|
|
42216
43080
|
const validSchema = react.exports.useMemo(() => {
|
|
@@ -42380,7 +43244,7 @@ function WidgetInitForm({
|
|
|
42380
43244
|
}), /* @__PURE__ */ jsx(InputGroup$1, {
|
|
42381
43245
|
className: "mt-n3",
|
|
42382
43246
|
children: /* @__PURE__ */ jsx(PhoneInput, {
|
|
42383
|
-
country: country_code.toLowerCase(),
|
|
43247
|
+
country: country_code == null ? void 0 : country_code.toLowerCase(),
|
|
42384
43248
|
placeholder: fields[key2].placeholder || `Enter ${key2}`,
|
|
42385
43249
|
value: mobile,
|
|
42386
43250
|
inputProps: {
|
|
@@ -42411,7 +43275,7 @@ function WidgetInitForm({
|
|
|
42411
43275
|
values: formik.values,
|
|
42412
43276
|
touched: formik.touched,
|
|
42413
43277
|
errors: formik.errors
|
|
42414
|
-
});
|
|
43278
|
+
}, key2);
|
|
42415
43279
|
}
|
|
42416
43280
|
}
|
|
42417
43281
|
}), /* @__PURE__ */ jsx(FInput, {
|
|
@@ -42467,7 +43331,7 @@ const WidgetInitForm$1 = react.exports.memo(WidgetInitForm);
|
|
|
42467
43331
|
var check = function(it) {
|
|
42468
43332
|
return it && it.Math == Math && it;
|
|
42469
43333
|
};
|
|
42470
|
-
var global$d = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || function() {
|
|
43334
|
+
var global$d = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof commonjsGlobal$1 == "object" && commonjsGlobal$1) || function() {
|
|
42471
43335
|
return this;
|
|
42472
43336
|
}() || Function("return this")();
|
|
42473
43337
|
var fails$j = function(exec2) {
|
|
@@ -46131,7 +46995,7 @@ const Interval = react.exports.memo(({
|
|
|
46131
46995
|
}) => {
|
|
46132
46996
|
const [, setState] = react.exports.useState();
|
|
46133
46997
|
react.exports.useEffect(() => {
|
|
46134
|
-
const intv = setInterval(() => setState((bool) => !bool),
|
|
46998
|
+
const intv = setInterval(() => setState((bool) => !bool), interval);
|
|
46135
46999
|
return () => clearInterval(intv);
|
|
46136
47000
|
}, [interval]);
|
|
46137
47001
|
return /* @__PURE__ */ jsx(Render, {});
|
|
@@ -46157,19 +47021,19 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46157
47021
|
if (typeof window !== "undefined") {
|
|
46158
47022
|
return;
|
|
46159
47023
|
}
|
|
46160
|
-
if (typeof commonjsGlobal === "undefined") {
|
|
47024
|
+
if (typeof commonjsGlobal$1 === "undefined") {
|
|
46161
47025
|
return;
|
|
46162
47026
|
}
|
|
46163
|
-
commonjsGlobal.navigator = {
|
|
47027
|
+
commonjsGlobal$1.navigator = {
|
|
46164
47028
|
userAgent: browserFakeUserAgent,
|
|
46165
47029
|
getUserMedia: function() {
|
|
46166
47030
|
}
|
|
46167
47031
|
};
|
|
46168
|
-
if (!commonjsGlobal.console) {
|
|
46169
|
-
commonjsGlobal.console = {};
|
|
47032
|
+
if (!commonjsGlobal$1.console) {
|
|
47033
|
+
commonjsGlobal$1.console = {};
|
|
46170
47034
|
}
|
|
46171
|
-
if (typeof commonjsGlobal.console.log === "undefined" || typeof commonjsGlobal.console.error === "undefined") {
|
|
46172
|
-
commonjsGlobal.console.error = commonjsGlobal.console.log = commonjsGlobal.console.log || function() {
|
|
47035
|
+
if (typeof commonjsGlobal$1.console.log === "undefined" || typeof commonjsGlobal$1.console.error === "undefined") {
|
|
47036
|
+
commonjsGlobal$1.console.error = commonjsGlobal$1.console.log = commonjsGlobal$1.console.log || function() {
|
|
46173
47037
|
console.log(arguments);
|
|
46174
47038
|
};
|
|
46175
47039
|
}
|
|
@@ -46215,7 +47079,7 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46215
47079
|
height: 0
|
|
46216
47080
|
};
|
|
46217
47081
|
}
|
|
46218
|
-
if (typeof
|
|
47082
|
+
if (typeof URL2 === "undefined") {
|
|
46219
47083
|
that.URL = {
|
|
46220
47084
|
createObjectURL: function() {
|
|
46221
47085
|
return "";
|
|
@@ -46225,8 +47089,8 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46225
47089
|
}
|
|
46226
47090
|
};
|
|
46227
47091
|
}
|
|
46228
|
-
that.window = commonjsGlobal;
|
|
46229
|
-
})(typeof commonjsGlobal !== "undefined" ? commonjsGlobal : null);
|
|
47092
|
+
that.window = commonjsGlobal$1;
|
|
47093
|
+
})(typeof commonjsGlobal$1 !== "undefined" ? commonjsGlobal$1 : null);
|
|
46230
47094
|
elementClass = elementClass || "multi-streams-mixer";
|
|
46231
47095
|
var videos = [];
|
|
46232
47096
|
var isStopDrawingFrames = false;
|
|
@@ -46254,9 +47118,9 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46254
47118
|
AudioContext = mozAudioContext;
|
|
46255
47119
|
}
|
|
46256
47120
|
}
|
|
46257
|
-
var
|
|
46258
|
-
if (typeof
|
|
46259
|
-
|
|
47121
|
+
var URL2 = window.URL;
|
|
47122
|
+
if (typeof URL2 === "undefined" && typeof webkitURL !== "undefined") {
|
|
47123
|
+
URL2 = webkitURL;
|
|
46260
47124
|
}
|
|
46261
47125
|
if (typeof navigator !== "undefined" && typeof navigator.getUserMedia === "undefined") {
|
|
46262
47126
|
if (typeof navigator.webkitGetUserMedia !== "undefined") {
|
|
@@ -46912,7 +47776,7 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
46912
47776
|
react.exports.useEffect(() => {
|
|
46913
47777
|
return () => callCleanup();
|
|
46914
47778
|
}, [callCleanup]);
|
|
46915
|
-
o$
|
|
47779
|
+
o$2(
|
|
46916
47780
|
{
|
|
46917
47781
|
listeners: {
|
|
46918
47782
|
"calls.call.customer": (otherUserId) => callUser(otherUserId)
|
|
@@ -47455,7 +48319,7 @@ function VideoCall({
|
|
|
47455
48319
|
react.exports.useEffect(() => {
|
|
47456
48320
|
emitter.emit("video-toggle", isIncoming || isOutgoing || isCalling || getCalled);
|
|
47457
48321
|
}, [isIncoming, isOutgoing, isCalling, getCalled]);
|
|
47458
|
-
o$
|
|
48322
|
+
o$2({
|
|
47459
48323
|
listeners: {
|
|
47460
48324
|
"chat-ended": () => isCalling && endCall()
|
|
47461
48325
|
}
|
|
@@ -47988,9 +48852,9 @@ function UnwrapWidget({
|
|
|
47988
48852
|
const cDay = now2.day();
|
|
47989
48853
|
const startDay = days[company == null ? void 0 : company.from_day];
|
|
47990
48854
|
const endDay = days[company == null ? void 0 : company.to_day];
|
|
47991
|
-
const
|
|
48855
|
+
const time2 = hooks(company == null ? void 0 : company.from_time, "hh:mm:ss");
|
|
47992
48856
|
const endtime = hooks(company == null ? void 0 : company.to_time, "hh:mm:ss");
|
|
47993
|
-
return !(cDay >= startDay && cDay <= endDay && now2.isAfter(
|
|
48857
|
+
return !(cDay >= startDay && cDay <= endDay && now2.isAfter(time2) && now2.isBefore(endtime));
|
|
47994
48858
|
}
|
|
47995
48859
|
}, [isLoadingCompany, company == null ? void 0 : company.name]);
|
|
47996
48860
|
react.exports.useEffect(() => {
|
|
@@ -48155,7 +49019,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
48155
49019
|
chatClose: chatClose2
|
|
48156
49020
|
});
|
|
48157
49021
|
};
|
|
48158
|
-
o$
|
|
49022
|
+
o$2({
|
|
48159
49023
|
listeners: {
|
|
48160
49024
|
"video-toggle": (videoToggle2) => setState({
|
|
48161
49025
|
videoToggle: videoToggle2
|
|
@@ -48206,7 +49070,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
48206
49070
|
videoRef,
|
|
48207
49071
|
setShowTip
|
|
48208
49072
|
}), !!((_c = (_b = dataRef == null ? void 0 : dataRef.current) == null ? void 0 : _b.wait) == null ? void 0 : _c.createdAt) && !stateRef.current.agent && /* @__PURE__ */ jsx(LongestWaitime, {}), /* @__PURE__ */ jsx("div", {
|
|
48209
|
-
className: `widget-body-container py-
|
|
49073
|
+
className: `widget-body-container py-1 px-3 ${companyClosed && "widget-body-container-offline"} `,
|
|
48210
49074
|
children: isLoadingCustomer || isLoadingCustomer === void 0 ? /* @__PURE__ */ jsx(Spinner$2, {
|
|
48211
49075
|
className: "d-flex align-self-center m-5 mx-auto"
|
|
48212
49076
|
}) : isScheduling ? /* @__PURE__ */ jsx(Schedules, {
|
|
@@ -48287,14 +49151,14 @@ function WidgetOnlineHeader() {
|
|
|
48287
49151
|
color: "#fff"
|
|
48288
49152
|
},
|
|
48289
49153
|
children: [/* @__PURE__ */ jsx("p", {
|
|
48290
|
-
className: "
|
|
49154
|
+
className: "my-0 pb-0",
|
|
48291
49155
|
style: {
|
|
48292
49156
|
fontSize: 24,
|
|
48293
49157
|
fontWeight: "bold"
|
|
48294
49158
|
},
|
|
48295
49159
|
children: "Video Banking Online"
|
|
48296
49160
|
}), /* @__PURE__ */ jsxs("p", {
|
|
48297
|
-
className: "
|
|
49161
|
+
className: "my-1",
|
|
48298
49162
|
style: {
|
|
48299
49163
|
fontSize: 13
|
|
48300
49164
|
},
|