ui-kit-ck-consultant 0.5.210 → 0.5.213

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.css CHANGED
@@ -466,9 +466,6 @@
466
466
  ._1Fq5R::-moz-placeholder, ._1XBGF::-moz-placeholder {
467
467
  color: var(--gray);
468
468
  }
469
- ._1Fq5R:-ms-input-placeholder, ._1XBGF:-ms-input-placeholder {
470
- color: var(--gray);
471
- }
472
469
  ._1Fq5R::placeholder,
473
470
  ._1XBGF::placeholder {
474
471
  color: var(--gray);
@@ -547,9 +544,6 @@
547
544
  ._3--n1::-moz-placeholder, ._1gP7a::-moz-placeholder {
548
545
  color: var(--gray);
549
546
  }
550
- ._3--n1:-ms-input-placeholder, ._1gP7a:-ms-input-placeholder {
551
- color: var(--gray);
552
- }
553
547
  ._3--n1::placeholder,
554
548
  ._1gP7a::placeholder {
555
549
  color: var(--gray);
@@ -604,10 +598,6 @@
604
598
  color: var(--gray);
605
599
  }
606
600
 
607
- ._1DiO5:-ms-input-placeholder {
608
- color: var(--gray);
609
- }
610
-
611
601
  ._1DiO5::placeholder {
612
602
  color: var(--gray);
613
603
  }
@@ -666,9 +656,6 @@
666
656
  ._6hnFm::-moz-placeholder {
667
657
  color: var(--gray);
668
658
  }
669
- ._6hnFm:-ms-input-placeholder {
670
- color: var(--gray);
671
- }
672
659
  ._6hnFm::placeholder {
673
660
  color: var(--gray);
674
661
  }
@@ -704,7 +691,6 @@
704
691
  font-size: 16px;
705
692
  -webkit-user-select: none;
706
693
  -moz-user-select: none;
707
- -ms-user-select: none;
708
694
  user-select: none;
709
695
  color: var(--black);
710
696
  min-height: 26px;
@@ -766,7 +752,6 @@
766
752
  font-size: 16px;
767
753
  -webkit-user-select: none;
768
754
  -moz-user-select: none;
769
- -ms-user-select: none;
770
755
  user-select: none;
771
756
  color: var(--black);
772
757
  min-height: 26px;
@@ -2375,7 +2360,6 @@
2375
2360
  -webkit-touch-callout: none;
2376
2361
  -webkit-user-select: none;
2377
2362
  -moz-user-select: none;
2378
- -ms-user-select: none;
2379
2363
  user-select: none;
2380
2364
  margin: auto;
2381
2365
  display: inline-block;
@@ -2472,8 +2456,7 @@
2472
2456
  color: var(--primary-color);
2473
2457
  -webkit-touch-callout: none; /* iOS Safari */
2474
2458
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
2475
- -moz-user-select: none; /* Old versions of Firefox */
2476
- -ms-user-select: none; /* Internet Explorer/Edge */
2459
+ -moz-user-select: none; /* Old versions of Firefox */ /* Internet Explorer/Edge */
2477
2460
  user-select: none; /* Non-prefixed version, currently
2478
2461
  supported by Chrome, Edge, Opera and Firefox */
2479
2462
  }
@@ -2742,7 +2725,6 @@
2742
2725
  -webkit-touch-callout: none;
2743
2726
  -webkit-user-select: none;
2744
2727
  -moz-user-select: none;
2745
- -ms-user-select: none;
2746
2728
  user-select: none;
2747
2729
  }
2748
2730
 
@@ -2788,7 +2770,6 @@
2788
2770
  -webkit-touch-callout: none;
2789
2771
  -webkit-user-select: none;
2790
2772
  -moz-user-select: none;
2791
- -ms-user-select: none;
2792
2773
  user-select: none;
2793
2774
  cursor: pointer;
2794
2775
  }
@@ -2903,7 +2884,6 @@
2903
2884
  -webkit-touch-callout: none;
2904
2885
  -webkit-user-select: none;
2905
2886
  -moz-user-select: none;
2906
- -ms-user-select: none;
2907
2887
  user-select: none;
2908
2888
  margin-right: auto;
2909
2889
  }
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var Cookies = _interopDefault(require('universal-cookie'));
14
14
  var Holidays = _interopDefault(require('date-holidays'));
15
15
 
16
16
  function _extends() {
17
- _extends = Object.assign || function (target) {
17
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
18
18
  for (var i = 1; i < arguments.length; i++) {
19
19
  var source = arguments[i];
20
20
 
@@ -27,7 +27,6 @@ function _extends() {
27
27
 
28
28
  return target;
29
29
  };
30
-
31
30
  return _extends.apply(this, arguments);
32
31
  }
33
32
 
@@ -39,11 +38,10 @@ function _inheritsLoose(subClass, superClass) {
39
38
  }
40
39
 
41
40
  function _setPrototypeOf(o, p) {
42
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
41
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
43
42
  o.__proto__ = p;
44
43
  return o;
45
44
  };
46
-
47
45
  return _setPrototypeOf(o, p);
48
46
  }
49
47
 
@@ -281,6 +279,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
281
279
  }, "*") : '') : '', /*#__PURE__*/React__default.createElement("div", {
282
280
  className: style$2.form_input_container_icon
283
281
  }, /*#__PURE__*/React__default.createElement("div", null, this.props.children), /*#__PURE__*/React__default.createElement("input", {
282
+ style: this.props.styleInput,
284
283
  className: style$2.form_input_icon,
285
284
  type: this.props.type,
286
285
  placeholder: this.props.placeholder,
@@ -304,6 +303,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
304
303
  }, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
305
304
  className: "red"
306
305
  }, "*") : '') : '', /*#__PURE__*/React__default.createElement("input", {
306
+ style: this.props.styleInput,
307
307
  className: style$2.form_input,
308
308
  type: this.props.type,
309
309
  placeholder: this.props.placeholder,
@@ -389,9 +389,10 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
389
389
  }, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
390
390
  className: "red"
391
391
  }, "*") : '') : '', this.props.ignore !== true ? /*#__PURE__*/React__default.createElement("select", {
392
+ style: this.props.styleInput,
392
393
  className: style$5.form_select,
393
394
  onChange: this.props.onChange,
394
- value: this.props.value ? this.props.value : "DEFAULT",
395
+ value: this.props.value ? this.props.value : 'DEFAULT',
395
396
  name: this.props.name,
396
397
  required: this.props.required,
397
398
  disabled: this.props.disabled,
@@ -406,9 +407,10 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
406
407
  disabled: element.disabled ? element.disabled : false
407
408
  }, element.text);
408
409
  }) : '') : /*#__PURE__*/React__default.createElement("select", {
410
+ style: this.props.styleInput,
409
411
  className: style$5.form_select,
410
412
  onChange: this.props.onChange,
411
- value: this.props.value ? this.props.value : "DEFAULT",
413
+ value: this.props.value ? this.props.value : 'DEFAULT',
412
414
  name: this.props.name,
413
415
  required: this.props.required,
414
416
  disabled: this.props.disabled
@@ -3636,8 +3638,10 @@ var Dropdown = /*#__PURE__*/function (_Component) {
3636
3638
  className: classNames$1(style$t.space)
3637
3639
  }) : /*#__PURE__*/React__default.createElement(Fragment, null), this.props.icon ? this.props.icon : /*#__PURE__*/React__default.createElement(Fragment, null)), /*#__PURE__*/React__default.createElement("div", {
3638
3640
  className: dropdownMenuClass
3639
- }, this.props.data.map(function (element) {
3640
- return /*#__PURE__*/React__default.createElement("span", null, element.title);
3641
+ }, this.props.data.map(function (element, key) {
3642
+ return /*#__PURE__*/React__default.createElement("span", {
3643
+ key: key
3644
+ }, element.title);
3641
3645
  })));
3642
3646
  };
3643
3647
 
@@ -4022,7 +4026,18 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4022
4026
 
4023
4027
  return /*#__PURE__*/React__default.createElement("div", {
4024
4028
  className: this.props.className
4025
- }, /*#__PURE__*/React__default.createElement("span", {
4029
+ }, this.props.onEdit ? /*#__PURE__*/React__default.createElement("span", {
4030
+ style: {
4031
+ display: 'inline-block',
4032
+ fontSize: '14px',
4033
+ fontWeight: 'bold',
4034
+ color: 'var(--blue)',
4035
+ marginBottom: '16px',
4036
+ cursor: 'pointer',
4037
+ textDecoration: 'underline'
4038
+ },
4039
+ onClick: this.props.onEdit
4040
+ }, this.props.title) : /*#__PURE__*/React__default.createElement("span", {
4026
4041
  style: {
4027
4042
  display: 'inline-block',
4028
4043
  fontSize: '14px',
@@ -4191,8 +4206,9 @@ var moment = createCommonjsModule(function (module, exports) {
4191
4206
 
4192
4207
  function map(arr, fn) {
4193
4208
  var res = [],
4194
- i;
4195
- for (i = 0; i < arr.length; ++i) {
4209
+ i,
4210
+ arrLen = arr.length;
4211
+ for (i = 0; i < arrLen; ++i) {
4196
4212
  res.push(fn(arr[i], i));
4197
4213
  }
4198
4214
  return res;
@@ -4321,7 +4337,10 @@ var moment = createCommonjsModule(function (module, exports) {
4321
4337
  updateInProgress = false;
4322
4338
 
4323
4339
  function copyConfig(to, from) {
4324
- var i, prop, val;
4340
+ var i,
4341
+ prop,
4342
+ val,
4343
+ momentPropertiesLen = momentProperties.length;
4325
4344
 
4326
4345
  if (!isUndefined(from._isAMomentObject)) {
4327
4346
  to._isAMomentObject = from._isAMomentObject;
@@ -4354,8 +4373,8 @@ var moment = createCommonjsModule(function (module, exports) {
4354
4373
  to._locale = from._locale;
4355
4374
  }
4356
4375
 
4357
- if (momentProperties.length > 0) {
4358
- for (i = 0; i < momentProperties.length; i++) {
4376
+ if (momentPropertiesLen > 0) {
4377
+ for (i = 0; i < momentPropertiesLen; i++) {
4359
4378
  prop = momentProperties[i];
4360
4379
  val = from[prop];
4361
4380
  if (!isUndefined(val)) {
@@ -4410,8 +4429,9 @@ var moment = createCommonjsModule(function (module, exports) {
4410
4429
  var args = [],
4411
4430
  arg,
4412
4431
  i,
4413
- key;
4414
- for (i = 0; i < arguments.length; i++) {
4432
+ key,
4433
+ argLen = arguments.length;
4434
+ for (i = 0; i < argLen; i++) {
4415
4435
  arg = '';
4416
4436
  if (typeof arguments[i] === 'object') {
4417
4437
  arg += '\n[' + i + '] ';
@@ -4561,7 +4581,8 @@ var moment = createCommonjsModule(function (module, exports) {
4561
4581
  );
4562
4582
  }
4563
4583
 
4564
- var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
4584
+ var formattingTokens =
4585
+ /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
4565
4586
  localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
4566
4587
  formatFunctions = {},
4567
4588
  formatTokenFunctions = {};
@@ -4865,8 +4886,9 @@ var moment = createCommonjsModule(function (module, exports) {
4865
4886
  if (typeof units === 'object') {
4866
4887
  units = normalizeObjectUnits(units);
4867
4888
  var prioritized = getPrioritizedUnits(units),
4868
- i;
4869
- for (i = 0; i < prioritized.length; i++) {
4889
+ i,
4890
+ prioritizedLen = prioritized.length;
4891
+ for (i = 0; i < prioritizedLen; i++) {
4870
4892
  this[prioritized[i].unit](units[prioritized[i].unit]);
4871
4893
  }
4872
4894
  } else {
@@ -4896,7 +4918,8 @@ var moment = createCommonjsModule(function (module, exports) {
4896
4918
  matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
4897
4919
  // any word (or two) characters or numbers including two/three word month in arabic.
4898
4920
  // includes scottish gaelic two word and hyphenated months
4899
- matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
4921
+ matchWord =
4922
+ /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
4900
4923
  regexes;
4901
4924
 
4902
4925
  regexes = {};
@@ -4922,15 +4945,12 @@ var moment = createCommonjsModule(function (module, exports) {
4922
4945
  return regexEscape(
4923
4946
  s
4924
4947
  .replace('\\', '')
4925
- .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
4926
- matched,
4927
- p1,
4928
- p2,
4929
- p3,
4930
- p4
4931
- ) {
4932
- return p1 || p2 || p3 || p4;
4933
- })
4948
+ .replace(
4949
+ /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
4950
+ function (matched, p1, p2, p3, p4) {
4951
+ return p1 || p2 || p3 || p4;
4952
+ }
4953
+ )
4934
4954
  );
4935
4955
  }
4936
4956
 
@@ -4942,7 +4962,8 @@ var moment = createCommonjsModule(function (module, exports) {
4942
4962
 
4943
4963
  function addParseToken(token, callback) {
4944
4964
  var i,
4945
- func = callback;
4965
+ func = callback,
4966
+ tokenLen;
4946
4967
  if (typeof token === 'string') {
4947
4968
  token = [token];
4948
4969
  }
@@ -4951,7 +4972,8 @@ var moment = createCommonjsModule(function (module, exports) {
4951
4972
  array[callback] = toInt(input);
4952
4973
  };
4953
4974
  }
4954
- for (i = 0; i < token.length; i++) {
4975
+ tokenLen = token.length;
4976
+ for (i = 0; i < tokenLen; i++) {
4955
4977
  tokens[token[i]] = func;
4956
4978
  }
4957
4979
  }
@@ -5062,12 +5084,12 @@ var moment = createCommonjsModule(function (module, exports) {
5062
5084
 
5063
5085
  // LOCALES
5064
5086
 
5065
- var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
5066
- '_'
5067
- ),
5068
- defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
5069
- '_'
5070
- ),
5087
+ var defaultLocaleMonths =
5088
+ 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
5089
+ '_'
5090
+ ),
5091
+ defaultLocaleMonthsShort =
5092
+ 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
5071
5093
  MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
5072
5094
  defaultMonthsShortRegex = matchWord,
5073
5095
  defaultMonthsRegex = matchWord;
@@ -5509,14 +5531,12 @@ var moment = createCommonjsModule(function (module, exports) {
5509
5531
  addRegexToken('W', match1to2);
5510
5532
  addRegexToken('WW', match1to2, match2);
5511
5533
 
5512
- addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
5513
- input,
5514
- week,
5515
- config,
5516
- token
5517
- ) {
5518
- week[token.substr(0, 1)] = toInt(input);
5519
- });
5534
+ addWeekParseToken(
5535
+ ['w', 'ww', 'W', 'WW'],
5536
+ function (input, week, config, token) {
5537
+ week[token.substr(0, 1)] = toInt(input);
5538
+ }
5539
+ );
5520
5540
 
5521
5541
  // HELPERS
5522
5542
 
@@ -5641,9 +5661,8 @@ var moment = createCommonjsModule(function (module, exports) {
5641
5661
  return ws.slice(n, 7).concat(ws.slice(0, n));
5642
5662
  }
5643
5663
 
5644
- var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
5645
- '_'
5646
- ),
5664
+ var defaultLocaleWeekdays =
5665
+ 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
5647
5666
  defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
5648
5667
  defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
5649
5668
  defaultWeekdaysRegex = matchWord,
@@ -6191,6 +6210,11 @@ var moment = createCommonjsModule(function (module, exports) {
6191
6210
  return globalLocale;
6192
6211
  }
6193
6212
 
6213
+ function isLocaleNameSane(name) {
6214
+ // Prevent names that look like filesystem paths, i.e contain '/' or '\'
6215
+ return name.match('^[^/\\\\]*$') != null;
6216
+ }
6217
+
6194
6218
  function loadLocale(name) {
6195
6219
  var oldLocale = null,
6196
6220
  aliasedRequire;
@@ -6199,7 +6223,8 @@ var moment = createCommonjsModule(function (module, exports) {
6199
6223
  locales[name] === undefined &&
6200
6224
  'object' !== 'undefined' &&
6201
6225
  module &&
6202
- module.exports
6226
+ module.exports &&
6227
+ isLocaleNameSane(name)
6203
6228
  ) {
6204
6229
  try {
6205
6230
  oldLocale = globalLocale._abbr;
@@ -6416,8 +6441,10 @@ var moment = createCommonjsModule(function (module, exports) {
6416
6441
 
6417
6442
  // iso 8601 regex
6418
6443
  // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
6419
- var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
6420
- basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
6444
+ var extendedIsoRegex =
6445
+ /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
6446
+ basicIsoRegex =
6447
+ /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
6421
6448
  tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
6422
6449
  isoDates = [
6423
6450
  ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
@@ -6448,7 +6475,8 @@ var moment = createCommonjsModule(function (module, exports) {
6448
6475
  ],
6449
6476
  aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
6450
6477
  // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
6451
- rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
6478
+ rfc2822 =
6479
+ /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
6452
6480
  obsOffsets = {
6453
6481
  UT: 0,
6454
6482
  GMT: 0,
@@ -6471,12 +6499,13 @@ var moment = createCommonjsModule(function (module, exports) {
6471
6499
  allowTime,
6472
6500
  dateFormat,
6473
6501
  timeFormat,
6474
- tzFormat;
6502
+ tzFormat,
6503
+ isoDatesLen = isoDates.length,
6504
+ isoTimesLen = isoTimes.length;
6475
6505
 
6476
6506
  if (match) {
6477
6507
  getParsingFlags(config).iso = true;
6478
-
6479
- for (i = 0, l = isoDates.length; i < l; i++) {
6508
+ for (i = 0, l = isoDatesLen; i < l; i++) {
6480
6509
  if (isoDates[i][1].exec(match[1])) {
6481
6510
  dateFormat = isoDates[i][0];
6482
6511
  allowTime = isoDates[i][2] !== false;
@@ -6488,7 +6517,7 @@ var moment = createCommonjsModule(function (module, exports) {
6488
6517
  return;
6489
6518
  }
6490
6519
  if (match[3]) {
6491
- for (i = 0, l = isoTimes.length; i < l; i++) {
6520
+ for (i = 0, l = isoTimesLen; i < l; i++) {
6492
6521
  if (isoTimes[i][1].exec(match[3])) {
6493
6522
  // match[2] should be 'T' or space
6494
6523
  timeFormat = (match[2] || ' ') + isoTimes[i][0];
@@ -6868,12 +6897,13 @@ var moment = createCommonjsModule(function (module, exports) {
6868
6897
  skipped,
6869
6898
  stringLength = string.length,
6870
6899
  totalParsedInputLength = 0,
6871
- era;
6900
+ era,
6901
+ tokenLen;
6872
6902
 
6873
6903
  tokens =
6874
6904
  expandFormat(config._f, config._locale).match(formattingTokens) || [];
6875
-
6876
- for (i = 0; i < tokens.length; i++) {
6905
+ tokenLen = tokens.length;
6906
+ for (i = 0; i < tokenLen; i++) {
6877
6907
  token = tokens[i];
6878
6908
  parsedInput = (string.match(getParseRegexForToken(token, config)) ||
6879
6909
  [])[0];
@@ -6968,15 +6998,16 @@ var moment = createCommonjsModule(function (module, exports) {
6968
6998
  i,
6969
6999
  currentScore,
6970
7000
  validFormatFound,
6971
- bestFormatIsValid = false;
7001
+ bestFormatIsValid = false,
7002
+ configfLen = config._f.length;
6972
7003
 
6973
- if (config._f.length === 0) {
7004
+ if (configfLen === 0) {
6974
7005
  getParsingFlags(config).invalidFormat = true;
6975
7006
  config._d = new Date(NaN);
6976
7007
  return;
6977
7008
  }
6978
7009
 
6979
- for (i = 0; i < config._f.length; i++) {
7010
+ for (i = 0; i < configfLen; i++) {
6980
7011
  currentScore = 0;
6981
7012
  validFormatFound = false;
6982
7013
  tempConfig = copyConfig({}, config);
@@ -7217,7 +7248,8 @@ var moment = createCommonjsModule(function (module, exports) {
7217
7248
  function isDurationValid(m) {
7218
7249
  var key,
7219
7250
  unitHasDecimal = false,
7220
- i;
7251
+ i,
7252
+ orderLen = ordering.length;
7221
7253
  for (key in m) {
7222
7254
  if (
7223
7255
  hasOwnProp(m, key) &&
@@ -7230,7 +7262,7 @@ var moment = createCommonjsModule(function (module, exports) {
7230
7262
  }
7231
7263
  }
7232
7264
 
7233
- for (i = 0; i < ordering.length; ++i) {
7265
+ for (i = 0; i < orderLen; ++i) {
7234
7266
  if (m[ordering[i]]) {
7235
7267
  if (unitHasDecimal) {
7236
7268
  return false; // only allow non-integers for smallest unit
@@ -7555,7 +7587,8 @@ var moment = createCommonjsModule(function (module, exports) {
7555
7587
  // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
7556
7588
  // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
7557
7589
  // and further modified to allow for strings containing both week and day
7558
- isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
7590
+ isoRegex =
7591
+ /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
7559
7592
 
7560
7593
  function createDuration(input, key) {
7561
7594
  var duration = input,
@@ -7776,9 +7809,10 @@ var moment = createCommonjsModule(function (module, exports) {
7776
7809
  'ms',
7777
7810
  ],
7778
7811
  i,
7779
- property;
7812
+ property,
7813
+ propertyLen = properties.length;
7780
7814
 
7781
- for (i = 0; i < properties.length; i += 1) {
7815
+ for (i = 0; i < propertyLen; i += 1) {
7782
7816
  property = properties[i];
7783
7817
  propertyTest = propertyTest || hasOwnProp(input, property);
7784
7818
  }
@@ -8401,19 +8435,17 @@ var moment = createCommonjsModule(function (module, exports) {
8401
8435
  addRegexToken('NNNN', matchEraName);
8402
8436
  addRegexToken('NNNNN', matchEraNarrow);
8403
8437
 
8404
- addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
8405
- input,
8406
- array,
8407
- config,
8408
- token
8409
- ) {
8410
- var era = config._locale.erasParse(input, token, config._strict);
8411
- if (era) {
8412
- getParsingFlags(config).era = era;
8413
- } else {
8414
- getParsingFlags(config).invalidEra = input;
8438
+ addParseToken(
8439
+ ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
8440
+ function (input, array, config, token) {
8441
+ var era = config._locale.erasParse(input, token, config._strict);
8442
+ if (era) {
8443
+ getParsingFlags(config).era = era;
8444
+ } else {
8445
+ getParsingFlags(config).invalidEra = input;
8446
+ }
8415
8447
  }
8416
- });
8448
+ );
8417
8449
 
8418
8450
  addRegexToken('y', matchUnsigned);
8419
8451
  addRegexToken('yy', matchUnsigned);
@@ -8705,14 +8737,12 @@ var moment = createCommonjsModule(function (module, exports) {
8705
8737
  addRegexToken('GGGGG', match1to6, match6);
8706
8738
  addRegexToken('ggggg', match1to6, match6);
8707
8739
 
8708
- addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
8709
- input,
8710
- week,
8711
- config,
8712
- token
8713
- ) {
8714
- week[token.substr(0, 2)] = toInt(input);
8715
- });
8740
+ addWeekParseToken(
8741
+ ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
8742
+ function (input, week, config, token) {
8743
+ week[token.substr(0, 2)] = toInt(input);
8744
+ }
8745
+ );
8716
8746
 
8717
8747
  addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
8718
8748
  week[token] = hooks.parseTwoDigitYear(input);
@@ -9735,7 +9765,7 @@ var moment = createCommonjsModule(function (module, exports) {
9735
9765
 
9736
9766
  //! moment.js
9737
9767
 
9738
- hooks.version = '2.29.1';
9768
+ hooks.version = '2.29.3';
9739
9769
 
9740
9770
  setHookCallback(createLocal);
9741
9771