tabexseriescomponents 0.2.1132 → 0.2.1133
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.cjs.js +10 -8
- package/dist/index.esm.js +10 -8
- package/dist/index.umd.js +10 -8
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13574,16 +13574,18 @@ var Checkout = function Checkout(props) {
|
|
|
13574
13574
|
onChange: function onChange(event) {
|
|
13575
13575
|
var _authdetailsContext$i17;
|
|
13576
13576
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.instid) == '66b4a0338cb14') {
|
|
13577
|
-
var _authdetailsContext$i18;
|
|
13578
13577
|
var selectedDate = event.target.value;
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13578
|
+
if (selectedDate != undefined && selectedDate != null && selectedDate != '' && selectedDate.length != 0) {
|
|
13579
|
+
var _authdetailsContext$i18;
|
|
13580
|
+
var minDate = (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.instid) === '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] : null;
|
|
13581
|
+
if (minDate && selectedDate < minDate) {
|
|
13582
|
+
alert("Please select a date on or after ".concat(minDate));
|
|
13583
|
+
return;
|
|
13584
|
+
}
|
|
13585
|
+
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13586
|
+
temporderextrafeilds[index].value = selectedDate;
|
|
13587
|
+
setorderextrafeilds(_toConsumableArray__default["default"](temporderextrafeilds));
|
|
13583
13588
|
}
|
|
13584
|
-
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13585
|
-
temporderextrafeilds[index].value = event.target.value;
|
|
13586
|
-
setorderextrafeilds(_toConsumableArray__default["default"](temporderextrafeilds));
|
|
13587
13589
|
} else {
|
|
13588
13590
|
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13589
13591
|
temporderextrafeilds[index].value = event.target.value;
|
package/dist/index.esm.js
CHANGED
|
@@ -13523,16 +13523,18 @@ var Checkout = function Checkout(props) {
|
|
|
13523
13523
|
onChange: function onChange(event) {
|
|
13524
13524
|
var _authdetailsContext$i17;
|
|
13525
13525
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.instid) == '66b4a0338cb14') {
|
|
13526
|
-
var _authdetailsContext$i18;
|
|
13527
13526
|
var selectedDate = event.target.value;
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13527
|
+
if (selectedDate != undefined && selectedDate != null && selectedDate != '' && selectedDate.length != 0) {
|
|
13528
|
+
var _authdetailsContext$i18;
|
|
13529
|
+
var minDate = (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.instid) === '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] : null;
|
|
13530
|
+
if (minDate && selectedDate < minDate) {
|
|
13531
|
+
alert("Please select a date on or after ".concat(minDate));
|
|
13532
|
+
return;
|
|
13533
|
+
}
|
|
13534
|
+
var temporderextrafeilds = _toConsumableArray(orderextrafeilds);
|
|
13535
|
+
temporderextrafeilds[index].value = selectedDate;
|
|
13536
|
+
setorderextrafeilds(_toConsumableArray(temporderextrafeilds));
|
|
13532
13537
|
}
|
|
13533
|
-
var temporderextrafeilds = _toConsumableArray(orderextrafeilds);
|
|
13534
|
-
temporderextrafeilds[index].value = event.target.value;
|
|
13535
|
-
setorderextrafeilds(_toConsumableArray(temporderextrafeilds));
|
|
13536
13538
|
} else {
|
|
13537
13539
|
var temporderextrafeilds = _toConsumableArray(orderextrafeilds);
|
|
13538
13540
|
temporderextrafeilds[index].value = event.target.value;
|
package/dist/index.umd.js
CHANGED
|
@@ -13383,16 +13383,18 @@
|
|
|
13383
13383
|
onChange: function onChange(event) {
|
|
13384
13384
|
var _authdetailsContext$i17;
|
|
13385
13385
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.instid) == '66b4a0338cb14') {
|
|
13386
|
-
var _authdetailsContext$i18;
|
|
13387
13386
|
var selectedDate = event.target.value;
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13387
|
+
if (selectedDate != undefined && selectedDate != null && selectedDate != '' && selectedDate.length != 0) {
|
|
13388
|
+
var _authdetailsContext$i18;
|
|
13389
|
+
var minDate = (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.instid) === '66b4a0338cb14' ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000).toISOString().split('T')[0] : null;
|
|
13390
|
+
if (minDate && selectedDate < minDate) {
|
|
13391
|
+
alert("Please select a date on or after ".concat(minDate));
|
|
13392
|
+
return;
|
|
13393
|
+
}
|
|
13394
|
+
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13395
|
+
temporderextrafeilds[index].value = selectedDate;
|
|
13396
|
+
setorderextrafeilds(_toConsumableArray__default["default"](temporderextrafeilds));
|
|
13392
13397
|
}
|
|
13393
|
-
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13394
|
-
temporderextrafeilds[index].value = event.target.value;
|
|
13395
|
-
setorderextrafeilds(_toConsumableArray__default["default"](temporderextrafeilds));
|
|
13396
13398
|
} else {
|
|
13397
13399
|
var temporderextrafeilds = _toConsumableArray__default["default"](orderextrafeilds);
|
|
13398
13400
|
temporderextrafeilds[index].value = event.target.value;
|