react-cron-generator 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -6,7 +6,7 @@ var cronstrueI18n = {exports: {}};
6
6
  (function (module, exports) {
7
7
  (function webpackUniversalModuleDefinition(root, factory) {
8
8
  module.exports = factory();
9
- })(globalThis, function() {
9
+ })(globalThis, () => {
10
10
  return /******/ (() => { // webpackBootstrap
11
11
  /******/ var __webpack_modules__ = ({
12
12
 
@@ -234,7 +234,7 @@ var cronstrueI18n = {exports: {}};
234
234
  }
235
235
  }
236
236
  ExpressionDescriptor.toString = function (expression, _a) {
237
- var _b = _a === void 0 ? {} : _a, _c = _b.throwExceptionOnParseError, throwExceptionOnParseError = _c === void 0 ? true : _c, _d = _b.verbose, verbose = _d === void 0 ? false : _d, _e = _b.dayOfWeekStartIndexZero, dayOfWeekStartIndexZero = _e === void 0 ? true : _e, _f = _b.monthStartIndexZero, monthStartIndexZero = _f === void 0 ? false : _f, use24HourTimeFormat = _b.use24HourTimeFormat, _g = _b.locale, locale = _g === void 0 ? null : _g;
237
+ var _b = _a === void 0 ? {} : _a, _c = _b.throwExceptionOnParseError, throwExceptionOnParseError = _c === void 0 ? true : _c, _d = _b.verbose, verbose = _d === void 0 ? false : _d, _e = _b.dayOfWeekStartIndexZero, dayOfWeekStartIndexZero = _e === void 0 ? true : _e, _f = _b.monthStartIndexZero, monthStartIndexZero = _f === void 0 ? false : _f, use24HourTimeFormat = _b.use24HourTimeFormat, _g = _b.locale, locale = _g === void 0 ? null : _g, _h = _b.tzOffset, tzOffset = _h === void 0 ? 0 : _h;
238
238
  var options = {
239
239
  throwExceptionOnParseError: throwExceptionOnParseError,
240
240
  verbose: verbose,
@@ -242,6 +242,7 @@ var cronstrueI18n = {exports: {}};
242
242
  monthStartIndexZero: monthStartIndexZero,
243
243
  use24HourTimeFormat: use24HourTimeFormat,
244
244
  locale: locale,
245
+ tzOffset: tzOffset
245
246
  };
246
247
  var descripter = new ExpressionDescriptor(expression, options);
247
248
  return descripter.getFullDescription();
@@ -407,31 +408,18 @@ var cronstrueI18n = {exports: {}};
407
408
  description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s, form) {
408
409
  var exp = s;
409
410
  if (s.indexOf("#") > -1) {
410
- exp = s.substr(0, s.indexOf("#"));
411
+ exp = s.substring(0, s.indexOf("#"));
411
412
  }
412
413
  else if (s.indexOf("L") > -1) {
413
414
  exp = exp.replace("L", "");
414
415
  }
415
- return _this.i18n.daysOfTheWeekInCase
416
+ var description = _this.i18n.daysOfTheWeekInCase
416
417
  ? _this.i18n.daysOfTheWeekInCase(form)[parseInt(exp)]
417
418
  : daysOfWeekNames[parseInt(exp)];
418
- }, function (s) {
419
- if (parseInt(s) == 1) {
420
- return "";
421
- }
422
- else {
423
- return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
424
- }
425
- }, function (s) {
426
- var beginFrom = s.substring(0, s.indexOf("-"));
427
- var domSpecified = _this.expressionParts[3] != "*";
428
- return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
429
- }, function (s) {
430
- var format = null;
431
419
  if (s.indexOf("#") > -1) {
420
+ var dayOfWeekOfMonthDescription = null;
432
421
  var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
433
422
  var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
434
- var dayOfWeekOfMonthDescription = null;
435
423
  switch (dayOfWeekOfMonthNumber) {
436
424
  case "1":
437
425
  dayOfWeekOfMonthDescription = _this.i18n.first(dayOfWeekNumber);
@@ -449,10 +437,25 @@ var cronstrueI18n = {exports: {}};
449
437
  dayOfWeekOfMonthDescription = _this.i18n.fifth(dayOfWeekNumber);
450
438
  break;
451
439
  }
452
- format =
453
- _this.i18n.commaOnThe(dayOfWeekOfMonthNumber) +
454
- dayOfWeekOfMonthDescription +
455
- _this.i18n.spaceX0OfTheMonth();
440
+ description = dayOfWeekOfMonthDescription + " " + description;
441
+ }
442
+ return description;
443
+ }, function (s) {
444
+ if (parseInt(s) == 1) {
445
+ return "";
446
+ }
447
+ else {
448
+ return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
449
+ }
450
+ }, function (s) {
451
+ var beginFrom = s.substring(0, s.indexOf("-"));
452
+ var domSpecified = _this.expressionParts[3] != "*";
453
+ return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
454
+ }, function (s) {
455
+ var format = null;
456
+ if (s.indexOf("#") > -1) {
457
+ var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
458
+ format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber).trim() + _this.i18n.spaceX0OfTheMonth();
456
459
  }
457
460
  else if (s.indexOf("L") > -1) {
458
461
  format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace("L", ""));
@@ -632,7 +635,13 @@ var cronstrueI18n = {exports: {}};
632
635
  return description;
633
636
  };
634
637
  ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {
635
- var hour = parseInt(hourExpression);
638
+ var hour = parseInt(hourExpression) + (this.options.tzOffset ? this.options.tzOffset : 0);
639
+ if (hour >= 24) {
640
+ hour = hour - 24;
641
+ }
642
+ else if (hour < 0) {
643
+ hour = 24 + hour;
644
+ }
636
645
  var period = "";
637
646
  var setPeriodBeforeTime = false;
638
647
  if (!this.options.use24HourTimeFormat) {
@@ -677,7 +686,7 @@ var cronstrueI18n = {exports: {}};
677
686
 
678
687
 
679
688
  Object.defineProperty(exports, "__esModule", ({ value: true }));
680
- exports.th = exports.af = exports.hu = exports.be = exports.ca = exports.fa = exports.sw = exports.sl = exports.fi = exports.sk = exports.cs = exports.he = exports.ja = exports.zh_TW = exports.zh_CN = exports.uk = exports.tr = exports.ru = exports.ro = exports.pt_PT = exports.pt_BR = exports.pl = exports.sv = exports.nb = exports.nl = exports.ko = exports.id = exports.it = exports.fr = exports.es = exports.de = exports.da = exports.en = void 0;
689
+ exports.my = exports.vi = exports.ar = exports.th = exports.af = exports.hu = exports.be = exports.ca = exports.fa = exports.sw = exports.sl = exports.fi = exports.sk = exports.cs = exports.he = exports.ja = exports.zh_TW = exports.zh_CN = exports.uk = exports.tr = exports.ru = exports.ro = exports.pt_PT = exports.pt_BR = exports.pl = exports.sv = exports.nb = exports.nl = exports.ko = exports.id = exports.it = exports.fr = exports.es = exports.de = exports.da = exports.en = void 0;
681
690
  var en_1 = __webpack_require__(751);
682
691
  Object.defineProperty(exports, "en", ({ enumerable: true, get: function () { return en_1.en; } }));
683
692
  var da_1 = __webpack_require__(904);
@@ -744,6 +753,12 @@ var cronstrueI18n = {exports: {}};
744
753
  Object.defineProperty(exports, "af", ({ enumerable: true, get: function () { return af_1.af; } }));
745
754
  var th_1 = __webpack_require__(312);
746
755
  Object.defineProperty(exports, "th", ({ enumerable: true, get: function () { return th_1.th; } }));
756
+ var ar_1 = __webpack_require__(935);
757
+ Object.defineProperty(exports, "ar", ({ enumerable: true, get: function () { return ar_1.ar; } }));
758
+ var vi_1 = __webpack_require__(533);
759
+ Object.defineProperty(exports, "vi", ({ enumerable: true, get: function () { return vi_1.vi; } }));
760
+ var my_1 = __webpack_require__(863);
761
+ Object.defineProperty(exports, "my", ({ enumerable: true, get: function () { return my_1.my; } }));
747
762
 
748
763
 
749
764
  /***/ }),
@@ -958,6 +973,194 @@ var cronstrueI18n = {exports: {}};
958
973
  exports.af = af;
959
974
 
960
975
 
976
+ /***/ }),
977
+
978
+ /***/ 935:
979
+ /***/ ((__unused_webpack_module, exports) => {
980
+
981
+
982
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
983
+ exports.ar = void 0;
984
+ var ar = (function () {
985
+ function ar() {
986
+ }
987
+ ar.prototype.atX0SecondsPastTheMinuteGt20 = function () {
988
+ return null;
989
+ };
990
+ ar.prototype.atX0MinutesPastTheHourGt20 = function () {
991
+ return null;
992
+ };
993
+ ar.prototype.commaMonthX0ThroughMonthX1 = function () {
994
+ return null;
995
+ };
996
+ ar.prototype.commaYearX0ThroughYearX1 = function () {
997
+ return null;
998
+ };
999
+ ar.prototype.use24HourTimeFormatByDefault = function () {
1000
+ return false;
1001
+ };
1002
+ ar.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
1003
+ return "حدث خطأ في إنشاء وصف المصطلح٠ تأكد من تركيب مصطلح الكرون";
1004
+ };
1005
+ ar.prototype.everyMinute = function () {
1006
+ return "كل دقيقة";
1007
+ };
1008
+ ar.prototype.everyHour = function () {
1009
+ return "كل ساعة";
1010
+ };
1011
+ ar.prototype.atSpace = function () {
1012
+ return " ";
1013
+ };
1014
+ ar.prototype.everyMinuteBetweenX0AndX1 = function () {
1015
+ return "كل دقيقة بين %s و %s";
1016
+ };
1017
+ ar.prototype.at = function () {
1018
+ return "";
1019
+ };
1020
+ ar.prototype.spaceAnd = function () {
1021
+ return " و";
1022
+ };
1023
+ ar.prototype.everySecond = function () {
1024
+ return "كل ثانية";
1025
+ };
1026
+ ar.prototype.everyX0Seconds = function () {
1027
+ return "كل %s ثواني";
1028
+ };
1029
+ ar.prototype.secondsX0ThroughX1PastTheMinute = function () {
1030
+ return "الثواني %s حتى %s من بداية الدقيقة";
1031
+ };
1032
+ ar.prototype.atX0SecondsPastTheMinute = function () {
1033
+ return "الثانية %s من بداية الدقيقة";
1034
+ };
1035
+ ar.prototype.everyX0Minutes = function () {
1036
+ return "كل %s دقائق";
1037
+ };
1038
+ ar.prototype.minutesX0ThroughX1PastTheHour = function () {
1039
+ return "الدقائق %s حتى %s من بداية الساعة";
1040
+ };
1041
+ ar.prototype.atX0MinutesPastTheHour = function () {
1042
+ return "الدقيقة %s من بداية الساعة";
1043
+ };
1044
+ ar.prototype.everyX0Hours = function () {
1045
+ return "كل %s ساعات";
1046
+ };
1047
+ ar.prototype.betweenX0AndX1 = function () {
1048
+ return "بين %s و %s";
1049
+ };
1050
+ ar.prototype.atX0 = function () {
1051
+ return "%s";
1052
+ };
1053
+ ar.prototype.commaEveryDay = function () {
1054
+ return "، كل يوم";
1055
+ };
1056
+ ar.prototype.commaEveryX0DaysOfTheWeek = function () {
1057
+ return "، كل %s من أيام الأسبوع";
1058
+ };
1059
+ ar.prototype.commaX0ThroughX1 = function () {
1060
+ return "، %s حتى %s";
1061
+ };
1062
+ ar.prototype.commaAndX0ThroughX1 = function () {
1063
+ return "، و %s حتى %s";
1064
+ };
1065
+ ar.prototype.first = function () {
1066
+ return "أول";
1067
+ };
1068
+ ar.prototype.second = function () {
1069
+ return "ثاني";
1070
+ };
1071
+ ar.prototype.third = function () {
1072
+ return "ثالث";
1073
+ };
1074
+ ar.prototype.fourth = function () {
1075
+ return "رابع";
1076
+ };
1077
+ ar.prototype.fifth = function () {
1078
+ return "خامس";
1079
+ };
1080
+ ar.prototype.commaOnThe = function () {
1081
+ return "، في ال";
1082
+ };
1083
+ ar.prototype.spaceX0OfTheMonth = function () {
1084
+ return " %s من الشهر";
1085
+ };
1086
+ ar.prototype.lastDay = function () {
1087
+ return "اليوم الأخير";
1088
+ };
1089
+ ar.prototype.commaOnTheLastX0OfTheMonth = function () {
1090
+ return "، في اخر %s من الشهر";
1091
+ };
1092
+ ar.prototype.commaOnlyOnX0 = function () {
1093
+ return "، %s فقط";
1094
+ };
1095
+ ar.prototype.commaAndOnX0 = function () {
1096
+ return "، وفي %s";
1097
+ };
1098
+ ar.prototype.commaEveryX0Months = function () {
1099
+ return "، كل %s أشهر";
1100
+ };
1101
+ ar.prototype.commaOnlyInX0 = function () {
1102
+ return "، %s فقط";
1103
+ };
1104
+ ar.prototype.commaOnTheLastDayOfTheMonth = function () {
1105
+ return "، في اخر يوم من الشهر";
1106
+ };
1107
+ ar.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
1108
+ return "، في اخر يوم أسبوع من الشهر";
1109
+ };
1110
+ ar.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
1111
+ return "، %s أيام قبل اخر يوم من الشهر";
1112
+ };
1113
+ ar.prototype.firstWeekday = function () {
1114
+ return "اول ايام الأسبوع";
1115
+ };
1116
+ ar.prototype.weekdayNearestDayX0 = function () {
1117
+ return "يوم الأسبوع الأقرب ليوم %s";
1118
+ };
1119
+ ar.prototype.commaOnTheX0OfTheMonth = function () {
1120
+ return "، في %s من الشهر";
1121
+ };
1122
+ ar.prototype.commaEveryX0Days = function () {
1123
+ return "، كل %s أيام";
1124
+ };
1125
+ ar.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
1126
+ return "، بين يوم %s و %s من الشهر";
1127
+ };
1128
+ ar.prototype.commaOnDayX0OfTheMonth = function () {
1129
+ return "، في اليوم %s من الشهر";
1130
+ };
1131
+ ar.prototype.commaEveryHour = function () {
1132
+ return "، كل ساعة";
1133
+ };
1134
+ ar.prototype.commaEveryX0Years = function () {
1135
+ return "، كل %s سنوات";
1136
+ };
1137
+ ar.prototype.commaStartingX0 = function () {
1138
+ return "، بداية من %s";
1139
+ };
1140
+ ar.prototype.daysOfTheWeek = function () {
1141
+ return ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"];
1142
+ };
1143
+ ar.prototype.monthsOfTheYear = function () {
1144
+ return [
1145
+ "يناير",
1146
+ "فبراير",
1147
+ "مارس",
1148
+ "ابريل",
1149
+ "مايو",
1150
+ "يونيو",
1151
+ "يوليو",
1152
+ "أغسطس",
1153
+ "سبتمبر",
1154
+ "أكتوبر",
1155
+ "نوفمبر",
1156
+ "ديسمبر",
1157
+ ];
1158
+ };
1159
+ return ar;
1160
+ }());
1161
+ exports.ar = ar;
1162
+
1163
+
961
1164
  /***/ }),
962
1165
 
963
1166
  /***/ 445:
@@ -2652,7 +2855,7 @@ var cronstrueI18n = {exports: {}};
2652
2855
  return null;
2653
2856
  };
2654
2857
  fr.prototype.use24HourTimeFormatByDefault = function () {
2655
- return false;
2858
+ return true;
2656
2859
  };
2657
2860
  fr.prototype.everyMinute = function () {
2658
2861
  return "toutes les minutes";
@@ -3923,6 +4126,194 @@ var cronstrueI18n = {exports: {}};
3923
4126
  exports.ko = ko;
3924
4127
 
3925
4128
 
4129
+ /***/ }),
4130
+
4131
+ /***/ 863:
4132
+ /***/ ((__unused_webpack_module, exports) => {
4133
+
4134
+
4135
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
4136
+ exports.my = void 0;
4137
+ var my = (function () {
4138
+ function my() {
4139
+ }
4140
+ my.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4141
+ return null;
4142
+ };
4143
+ my.prototype.atX0MinutesPastTheHourGt20 = function () {
4144
+ return null;
4145
+ };
4146
+ my.prototype.commaMonthX0ThroughMonthX1 = function () {
4147
+ return null;
4148
+ };
4149
+ my.prototype.commaYearX0ThroughYearX1 = function () {
4150
+ return null;
4151
+ };
4152
+ my.prototype.use24HourTimeFormatByDefault = function () {
4153
+ return false;
4154
+ };
4155
+ my.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
4156
+ return "Terdapat ralat semasa menjana penerangan ungkapan. Sila periksa sintaks ungkapan cron.";
4157
+ };
4158
+ my.prototype.everyMinute = function () {
4159
+ return "setiap minit";
4160
+ };
4161
+ my.prototype.everyHour = function () {
4162
+ return "setiap jam";
4163
+ };
4164
+ my.prototype.atSpace = function () {
4165
+ return "Pada ";
4166
+ };
4167
+ my.prototype.everyMinuteBetweenX0AndX1 = function () {
4168
+ return "Setiap minit antara %s dan %s";
4169
+ };
4170
+ my.prototype.at = function () {
4171
+ return "Pada";
4172
+ };
4173
+ my.prototype.spaceAnd = function () {
4174
+ return " dan";
4175
+ };
4176
+ my.prototype.everySecond = function () {
4177
+ return "setiap saat";
4178
+ };
4179
+ my.prototype.everyX0Seconds = function () {
4180
+ return "setiap %s saat";
4181
+ };
4182
+ my.prototype.secondsX0ThroughX1PastTheMinute = function () {
4183
+ return "saat ke %s hingga %s selepas minit";
4184
+ };
4185
+ my.prototype.atX0SecondsPastTheMinute = function () {
4186
+ return "pada %s saat selepas minit";
4187
+ };
4188
+ my.prototype.everyX0Minutes = function () {
4189
+ return "setiap %s minit";
4190
+ };
4191
+ my.prototype.minutesX0ThroughX1PastTheHour = function () {
4192
+ return "minit ke %s hingga %s selepas jam";
4193
+ };
4194
+ my.prototype.atX0MinutesPastTheHour = function () {
4195
+ return "pada %s minit selepas jam";
4196
+ };
4197
+ my.prototype.everyX0Hours = function () {
4198
+ return "setiap %s jam";
4199
+ };
4200
+ my.prototype.betweenX0AndX1 = function () {
4201
+ return "antara %s dan %s";
4202
+ };
4203
+ my.prototype.atX0 = function () {
4204
+ return "pada %s";
4205
+ };
4206
+ my.prototype.commaEveryDay = function () {
4207
+ return ", setiap hari";
4208
+ };
4209
+ my.prototype.commaEveryX0DaysOfTheWeek = function () {
4210
+ return ", setiap %s hari dalam minggu";
4211
+ };
4212
+ my.prototype.commaX0ThroughX1 = function () {
4213
+ return ", %s hingga %s";
4214
+ };
4215
+ my.prototype.commaAndX0ThroughX1 = function () {
4216
+ return ", dan %s hingga %s";
4217
+ };
4218
+ my.prototype.first = function () {
4219
+ return "pertama";
4220
+ };
4221
+ my.prototype.second = function () {
4222
+ return "kedua";
4223
+ };
4224
+ my.prototype.third = function () {
4225
+ return "ketiga";
4226
+ };
4227
+ my.prototype.fourth = function () {
4228
+ return "keempat";
4229
+ };
4230
+ my.prototype.fifth = function () {
4231
+ return "kelima";
4232
+ };
4233
+ my.prototype.commaOnThe = function () {
4234
+ return ", pada ";
4235
+ };
4236
+ my.prototype.spaceX0OfTheMonth = function () {
4237
+ return " %s pada bulan";
4238
+ };
4239
+ my.prototype.lastDay = function () {
4240
+ return "hari terakhir";
4241
+ };
4242
+ my.prototype.commaOnTheLastX0OfTheMonth = function () {
4243
+ return ", pada %s terakhir bulan";
4244
+ };
4245
+ my.prototype.commaOnlyOnX0 = function () {
4246
+ return ", hanya pada %s";
4247
+ };
4248
+ my.prototype.commaAndOnX0 = function () {
4249
+ return ", dan pada %s";
4250
+ };
4251
+ my.prototype.commaEveryX0Months = function () {
4252
+ return ", setiap bulan %s";
4253
+ };
4254
+ my.prototype.commaOnlyInX0 = function () {
4255
+ return ", hanya pada %s";
4256
+ };
4257
+ my.prototype.commaOnTheLastDayOfTheMonth = function () {
4258
+ return ", pada hari terakhir bulan";
4259
+ };
4260
+ my.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
4261
+ return ", pada minggu terakhir bulan";
4262
+ };
4263
+ my.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
4264
+ return ", %s hari sebelum hari terakhir bulan";
4265
+ };
4266
+ my.prototype.firstWeekday = function () {
4267
+ return "hari pertama minggu bekerja";
4268
+ };
4269
+ my.prototype.weekdayNearestDayX0 = function () {
4270
+ return "hari bekerja yang terdekat dengan %s";
4271
+ };
4272
+ my.prototype.commaOnTheX0OfTheMonth = function () {
4273
+ return ", pada %s bulan";
4274
+ };
4275
+ my.prototype.commaEveryX0Days = function () {
4276
+ return ", setiap %s hari";
4277
+ };
4278
+ my.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
4279
+ return ", antara hari %s dan %s dalam bulan";
4280
+ };
4281
+ my.prototype.commaOnDayX0OfTheMonth = function () {
4282
+ return ", pada hari %s dalam bulan";
4283
+ };
4284
+ my.prototype.commaEveryHour = function () {
4285
+ return ", setiap jam";
4286
+ };
4287
+ my.prototype.commaEveryX0Years = function () {
4288
+ return ", setiap %s tahun";
4289
+ };
4290
+ my.prototype.commaStartingX0 = function () {
4291
+ return ", bermula %s";
4292
+ };
4293
+ my.prototype.daysOfTheWeek = function () {
4294
+ return ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"];
4295
+ };
4296
+ my.prototype.monthsOfTheYear = function () {
4297
+ return [
4298
+ "Januari",
4299
+ "Februari",
4300
+ "Mac",
4301
+ "April",
4302
+ "Mei",
4303
+ "Jun",
4304
+ "Julai",
4305
+ "Ogos",
4306
+ "September",
4307
+ "Oktober",
4308
+ "November",
4309
+ "Disember",
4310
+ ];
4311
+ };
4312
+ return my;
4313
+ }());
4314
+ exports.my = my;
4315
+
4316
+
3926
4317
  /***/ }),
3927
4318
 
3928
4319
  /***/ 869:
@@ -4543,11 +4934,11 @@ var cronstrueI18n = {exports: {}};
4543
4934
  pt_BR.prototype.commaOnDayX0OfTheMonth = function () {
4544
4935
  return ", no dia %s do mês";
4545
4936
  };
4546
- pt_BR.prototype.commaOnlyInX0 = function () {
4547
- return ", somente em %s";
4937
+ pt_BR.prototype.commaOnlyInX0 = function (s) {
4938
+ return s && s.length > 1 && s[1] === "-" ? "somente %s" : ", somente em %s";
4548
4939
  };
4549
- pt_BR.prototype.commaOnlyOnX0 = function () {
4550
- return ", somente de %s";
4940
+ pt_BR.prototype.commaOnlyOnX0 = function (s) {
4941
+ return s && s.length > 1 && s[1] === "-" ? ", somente %s" : ", somente de %s";
4551
4942
  };
4552
4943
  pt_BR.prototype.commaAndOnX0 = function () {
4553
4944
  return ", e de %s";
@@ -6559,6 +6950,194 @@ var cronstrueI18n = {exports: {}};
6559
6950
  exports.uk = uk;
6560
6951
 
6561
6952
 
6953
+ /***/ }),
6954
+
6955
+ /***/ 533:
6956
+ /***/ ((__unused_webpack_module, exports) => {
6957
+
6958
+
6959
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
6960
+ exports.vi = void 0;
6961
+ var vi = (function () {
6962
+ function vi() {
6963
+ }
6964
+ vi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
6965
+ return null;
6966
+ };
6967
+ vi.prototype.atX0MinutesPastTheHourGt20 = function () {
6968
+ return null;
6969
+ };
6970
+ vi.prototype.commaMonthX0ThroughMonthX1 = function () {
6971
+ return null;
6972
+ };
6973
+ vi.prototype.commaYearX0ThroughYearX1 = function () {
6974
+ return null;
6975
+ };
6976
+ vi.prototype.use24HourTimeFormatByDefault = function () {
6977
+ return false;
6978
+ };
6979
+ vi.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
6980
+ return "Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron.";
6981
+ };
6982
+ vi.prototype.everyMinute = function () {
6983
+ return "mỗi phút";
6984
+ };
6985
+ vi.prototype.everyHour = function () {
6986
+ return "mỗi giờ";
6987
+ };
6988
+ vi.prototype.atSpace = function () {
6989
+ return "Vào ";
6990
+ };
6991
+ vi.prototype.everyMinuteBetweenX0AndX1 = function () {
6992
+ return "Mỗi phút giữa %s and %s";
6993
+ };
6994
+ vi.prototype.at = function () {
6995
+ return "Vào";
6996
+ };
6997
+ vi.prototype.spaceAnd = function () {
6998
+ return " và";
6999
+ };
7000
+ vi.prototype.everySecond = function () {
7001
+ return "mỗi giây";
7002
+ };
7003
+ vi.prototype.everyX0Seconds = function () {
7004
+ return "mỗi %s giây";
7005
+ };
7006
+ vi.prototype.secondsX0ThroughX1PastTheMinute = function () {
7007
+ return "giây thứ %s qua phút thứ %s";
7008
+ };
7009
+ vi.prototype.atX0SecondsPastTheMinute = function () {
7010
+ return "tại giây thứ %s của mỗi phút";
7011
+ };
7012
+ vi.prototype.everyX0Minutes = function () {
7013
+ return "mỗi %s phút";
7014
+ };
7015
+ vi.prototype.minutesX0ThroughX1PastTheHour = function () {
7016
+ return "phút thứ %s qua %s tiếng";
7017
+ };
7018
+ vi.prototype.atX0MinutesPastTheHour = function () {
7019
+ return "vào %s phút của mỗi tiếng";
7020
+ };
7021
+ vi.prototype.everyX0Hours = function () {
7022
+ return "mỗi %s tiếng";
7023
+ };
7024
+ vi.prototype.betweenX0AndX1 = function () {
7025
+ return "giữa %s và %s";
7026
+ };
7027
+ vi.prototype.atX0 = function () {
7028
+ return "vào %s";
7029
+ };
7030
+ vi.prototype.commaEveryDay = function () {
7031
+ return ", mỗi ngày";
7032
+ };
7033
+ vi.prototype.commaEveryX0DaysOfTheWeek = function () {
7034
+ return ", mỗi %s ngày trong tuần";
7035
+ };
7036
+ vi.prototype.commaX0ThroughX1 = function () {
7037
+ return ", %s đến %s";
7038
+ };
7039
+ vi.prototype.commaAndX0ThroughX1 = function () {
7040
+ return ", %s đến %s";
7041
+ };
7042
+ vi.prototype.first = function () {
7043
+ return "đầu tiên";
7044
+ };
7045
+ vi.prototype.second = function () {
7046
+ return "thứ 2";
7047
+ };
7048
+ vi.prototype.third = function () {
7049
+ return "thứ 3";
7050
+ };
7051
+ vi.prototype.fourth = function () {
7052
+ return "thứ 4";
7053
+ };
7054
+ vi.prototype.fifth = function () {
7055
+ return "thứ 5";
7056
+ };
7057
+ vi.prototype.commaOnThe = function () {
7058
+ return ", trên ";
7059
+ };
7060
+ vi.prototype.spaceX0OfTheMonth = function () {
7061
+ return " %s của tháng";
7062
+ };
7063
+ vi.prototype.lastDay = function () {
7064
+ return "ngày cuối cùng";
7065
+ };
7066
+ vi.prototype.commaOnTheLastX0OfTheMonth = function () {
7067
+ return ", vào ngày %s cuối cùng của tháng";
7068
+ };
7069
+ vi.prototype.commaOnlyOnX0 = function () {
7070
+ return ", chỉ trên %s";
7071
+ };
7072
+ vi.prototype.commaAndOnX0 = function () {
7073
+ return ", và hơn %s";
7074
+ };
7075
+ vi.prototype.commaEveryX0Months = function () {
7076
+ return ", mỗi ngày %s tháng";
7077
+ };
7078
+ vi.prototype.commaOnlyInX0 = function () {
7079
+ return ", chỉ trong %s";
7080
+ };
7081
+ vi.prototype.commaOnTheLastDayOfTheMonth = function () {
7082
+ return ", vào ngày cuối cùng của tháng";
7083
+ };
7084
+ vi.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
7085
+ return ", vào ngày cuối tuần của tháng";
7086
+ };
7087
+ vi.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
7088
+ return ", %s ngày trước ngày cuối cùng của tháng";
7089
+ };
7090
+ vi.prototype.firstWeekday = function () {
7091
+ return "ngày đầu tuần";
7092
+ };
7093
+ vi.prototype.weekdayNearestDayX0 = function () {
7094
+ return "ngày trong tuần ngày gần nhất %s";
7095
+ };
7096
+ vi.prototype.commaOnTheX0OfTheMonth = function () {
7097
+ return ", vào ngày %s của tháng";
7098
+ };
7099
+ vi.prototype.commaEveryX0Days = function () {
7100
+ return ", mỗi %s ngày";
7101
+ };
7102
+ vi.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
7103
+ return ", giữa ngày %s và %s trong tháng";
7104
+ };
7105
+ vi.prototype.commaOnDayX0OfTheMonth = function () {
7106
+ return ", vào %s ngày trong tháng";
7107
+ };
7108
+ vi.prototype.commaEveryHour = function () {
7109
+ return ", mỗi tiếng";
7110
+ };
7111
+ vi.prototype.commaEveryX0Years = function () {
7112
+ return ", mỗi %s năm";
7113
+ };
7114
+ vi.prototype.commaStartingX0 = function () {
7115
+ return ", bắt đầu %s";
7116
+ };
7117
+ vi.prototype.daysOfTheWeek = function () {
7118
+ return ["Chủ nhật", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"];
7119
+ };
7120
+ vi.prototype.monthsOfTheYear = function () {
7121
+ return [
7122
+ "Tháng 1",
7123
+ "Tháng 2",
7124
+ "Tháng 3",
7125
+ "Tháng 4",
7126
+ "Tháng 5",
7127
+ "Tháng 6",
7128
+ "Tháng 7",
7129
+ "Tháng 8",
7130
+ "Tháng 9",
7131
+ "Tháng 10",
7132
+ "Tháng 11",
7133
+ "Tháng 12",
7134
+ ];
7135
+ };
7136
+ return vi;
7137
+ }());
7138
+ exports.vi = vi;
7139
+
7140
+
6562
7141
  /***/ }),
6563
7142
 
6564
7143
  /***/ 419:
@@ -6770,7 +7349,7 @@ var cronstrueI18n = {exports: {}};
6770
7349
  return null;
6771
7350
  };
6772
7351
  zh_TW.prototype.commaYearX0ThroughYearX1 = function () {
6773
- return ", 从%s年至%s年";
7352
+ return ", 從 %s 年至 %s 年";
6774
7353
  };
6775
7354
  zh_TW.prototype.use24HourTimeFormatByDefault = function () {
6776
7355
  return false;
@@ -6782,7 +7361,7 @@ var cronstrueI18n = {exports: {}};
6782
7361
  return "每小時";
6783
7362
  };
6784
7363
  zh_TW.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
6785
- return "產生正規表達式描述時發生了錯誤,請檢查 cron 表達式語法。";
7364
+ return "產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。";
6786
7365
  };
6787
7366
  zh_TW.prototype.atSpace = function () {
6788
7367
  return "在 ";
@@ -6878,7 +7457,7 @@ var cronstrueI18n = {exports: {}};
6878
7457
  return ", 僅在 %s";
6879
7458
  };
6880
7459
  zh_TW.prototype.commaOnlyInMonthX0 = function () {
6881
- return ", 僅在%s";
7460
+ return ", 僅在 %s";
6882
7461
  };
6883
7462
  zh_TW.prototype.commaOnlyInYearX0 = function () {
6884
7463
  return ", 僅在 %s 年";
@@ -7536,18 +8115,4 @@ const Cron = (props) => {
7536
8115
  };
7537
8116
 
7538
8117
  export { HEADER, Cron as default };
7539
- //# sourceMappingURL=index.js.map
7540
-
7541
- translatedText = props.translateFn(key);
7542
- if (typeof translatedText !== 'string') {
7543
- throw new Error('translateFn expects a string translation');
7544
- }
7545
- }
7546
- return translatedText;
7547
- };
7548
- return (jsxRuntime.jsxs("div", Object.assign({ className: 'cron_builder' }, { children: [jsxRuntime.jsx("ul", Object.assign({ className: "nav nav-tabs" }, { children: getHeaders() })), jsxRuntime.jsx("div", Object.assign({ className: "cron_builder_bordering" }, { children: state.selectedTab ? getComponent(state.selectedTab) : "Select a header" })), props.showResultText && jsxRuntime.jsx("div", Object.assign({ className: "cron-builder-bg" }, { children: getVal() })), props.showResultCron && jsxRuntime.jsx("div", Object.assign({ className: "cron-builder-bg" }, { children: state.value.toString().replace(/,/g, ' ').replace(/!/g, ',') }))] })));
7549
- };
7550
-
7551
- exports.HEADER = HEADER;
7552
- exports["default"] = Cron;
7553
8118
  //# sourceMappingURL=index.js.map