@xaypay/tui 0.2.7 → 0.2.8

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.
Files changed (3) hide show
  1. package/dist/index.es.js +152 -151
  2. package/dist/index.js +152 -151
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47,10 +47,12 @@ function rng() {
47
47
  if (!getRandomValues) {
48
48
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
49
49
  getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
50
+
50
51
  if (!getRandomValues) {
51
52
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
52
53
  }
53
54
  }
55
+
54
56
  return getRandomValues(rnds8);
55
57
  }
56
58
 
@@ -60,9 +62,11 @@ function rng() {
60
62
  */
61
63
 
62
64
  const byteToHex = [];
65
+
63
66
  for (let i = 0; i < 256; ++i) {
64
67
  byteToHex.push((i + 0x100).toString(16).slice(1));
65
68
  }
69
+
66
70
  function unsafeStringify(arr, offset = 0) {
67
71
  // Note: Be careful editing this code! It's been tuned for performance
68
72
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
@@ -78,6 +82,7 @@ function v4(options, buf, offset) {
78
82
  if (native.randomUUID && !buf && !options) {
79
83
  return native.randomUUID();
80
84
  }
85
+
81
86
  options = options || {};
82
87
  const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
83
88
 
@@ -86,27 +91,25 @@ function v4(options, buf, offset) {
86
91
 
87
92
  if (buf) {
88
93
  offset = offset || 0;
94
+
89
95
  for (let i = 0; i < 16; ++i) {
90
96
  buf[offset + i] = rnds[i];
91
97
  }
98
+
92
99
  return buf;
93
100
  }
101
+
94
102
  return unsafeStringify(rnds);
95
103
  }
96
104
 
97
105
  function _extends() {
98
- _extends = Object.assign ? Object.assign.bind() : function (target) {
99
- for (var i = 1; i < arguments.length; i++) {
100
- var source = arguments[i];
101
- for (var key in source) {
102
- if (Object.prototype.hasOwnProperty.call(source, key)) {
103
- target[key] = source[key];
104
- }
105
- }
106
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
107
+ for (var e = 1; e < arguments.length; e++) {
108
+ var t = arguments[e];
109
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
106
110
  }
107
- return target;
108
- };
109
- return _extends.apply(this, arguments);
111
+ return n;
112
+ }, _extends.apply(null, arguments);
110
113
  }
111
114
 
112
115
  const SvgHeic = ({
@@ -1253,9 +1256,6 @@ async function getProps() {
1253
1256
  }
1254
1257
 
1255
1258
  var configStylesPromise = getProps();
1256
- const hasOwnerProperty$1 = (object, property) => {
1257
- return Object.prototype.hasOwnProperty.call(object, property);
1258
- };
1259
1259
 
1260
1260
  const Button = ({
1261
1261
  icon,
@@ -2282,15 +2282,98 @@ SingleCheckbox.propTypes = {
2282
2282
  ignoreDisabledForChecked: PropTypes__default["default"].bool
2283
2283
  };
2284
2284
 
2285
- function styleInject(css, ref) {
2286
- if (ref === void 0) ref = {};
2287
- var insertAt = ref.insertAt;
2288
- if (!css || typeof document === 'undefined') {
2285
+ const hasOwnerProperty = (object, property) => {
2286
+ return Object.prototype.hasOwnProperty.call(object, property);
2287
+ };
2288
+ const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
2289
+ if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
2290
+ alert('Please set a second param of handleUtilsMouseEnter function as valid object');
2289
2291
  return;
2290
2292
  }
2293
+ if (!hasOwnerProperty(e, 'target')) {
2294
+ alert('Please set a valid object like DOM event');
2295
+ return;
2296
+ }
2297
+ const existStyle = e.target.style;
2298
+ if (typeof existStyle !== 'object' || existStyle === null) {
2299
+ alert('Please set a valid style object in DOM event tergat');
2300
+ return;
2301
+ }
2302
+ for (const property in behaviourStyle) {
2303
+ if (existStyle[property]) {
2304
+ existStyle[property] = behaviourStyle[property];
2305
+ }
2306
+ }
2307
+ };
2308
+ const handleUtilsCheckTypeTel = (val, prevVal) => {
2309
+ const phoneNumberRegex = /^\d{0,8}$/;
2310
+ if (!phoneNumberRegex.test(val)) {
2311
+ val = prevVal;
2312
+ }
2313
+ return val;
2314
+ };
2315
+ const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize) => {
2316
+ if (maxLength && maxLength > 0) {
2317
+ if (val.length > maxLength) {
2318
+ val = val.substr(0, maxLength);
2319
+ }
2320
+ } else {
2321
+ const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.)?(\d+)?$/ : /^\d+$/;
2322
+ if (val.length > 16 && !val.includes('.')) {
2323
+ val = val.substr(0, 16);
2324
+ }
2325
+ if (val < Number.MIN_SAFE_INTEGER || val > Number.MAX_SAFE_INTEGER || innerMinNumSize && val < innerMinNumSize || maxNumSize && val > maxNumSize) {
2326
+ val = prevVal;
2327
+ }
2328
+ const floatNumParts = typeof val === 'string' ? val.split('.') : val;
2329
+ const int = floatNumParts[0];
2330
+ const float = floatNumParts[1];
2331
+ if (floatToFix > 0) {
2332
+ if (float && float.length > 0) {
2333
+ let floatResult = '';
2334
+ [...float].map((item, index) => {
2335
+ if (index + 1 <= floatToFix) {
2336
+ floatResult += item;
2337
+ }
2338
+ });
2339
+ floatResult !== '' ? val = `${int}.${floatResult}` : val = `${int}`;
2340
+ }
2341
+ } else {
2342
+ if (floatNumParts && floatNumParts.length > 0 && floatToFix === 0) {
2343
+ val = `${int}`;
2344
+ }
2345
+ }
2346
+ if (!regNum.test(val)) {
2347
+ const newStr = val.replace(/[^0-9.]/g, '').replace(/^([^.]*\.)(.*)$/, function (_, b, c) {
2348
+ return b + c.replace(/\./g, '');
2349
+ });
2350
+ val = newStr;
2351
+ }
2352
+ }
2353
+ if (withoutDot && !/^\d+$/.test(val)) {
2354
+ const newStr = val.replace(/[^0-9]/g, '').replace(/^([^.]*\.)(.*)$/, function (_, b, c) {
2355
+ return b + c.replace(/\./g, '');
2356
+ });
2357
+ val = newStr;
2358
+ }
2359
+ return val;
2360
+ };
2361
+ const handleUtilsOpenInNewTab = url => {
2362
+ const imageLink = document.createElement('a');
2363
+ imageLink.href = url, imageLink.target = '_blank';
2364
+ imageLink.click();
2365
+ };
2366
+
2367
+ function styleInject(css, ref) {
2368
+ if ( ref === void 0 ) ref = {};
2369
+ var insertAt = ref.insertAt;
2370
+
2371
+ if (!css || typeof document === 'undefined') { return; }
2372
+
2291
2373
  var head = document.head || document.getElementsByTagName('head')[0];
2292
2374
  var style = document.createElement('style');
2293
2375
  style.type = 'text/css';
2376
+
2294
2377
  if (insertAt === 'top') {
2295
2378
  if (head.firstChild) {
2296
2379
  head.insertBefore(style, head.firstChild);
@@ -2300,6 +2383,7 @@ function styleInject(css, ref) {
2300
2383
  } else {
2301
2384
  head.appendChild(style);
2302
2385
  }
2386
+
2303
2387
  if (style.styleSheet) {
2304
2388
  style.styleSheet.cssText = css;
2305
2389
  } else {
@@ -2330,7 +2414,7 @@ const TH = ({
2330
2414
  handleCheckArrowActionHeader
2331
2415
  }) => {
2332
2416
  const handleCheckArrowAction = (e, object, property) => {
2333
- if (hasOwnerProperty$1(object, property)) {
2417
+ if (hasOwnerProperty(object, property)) {
2334
2418
  handleCheckArrowActionHeader(e, object);
2335
2419
  }
2336
2420
  };
@@ -2351,14 +2435,14 @@ const TH = ({
2351
2435
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
2352
2436
  },
2353
2437
  onClick: handleHeaderItemClick,
2354
- className: `${hasOwnerProperty$1(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
2438
+ className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
2355
2439
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2356
2440
  style: {
2357
2441
  display: 'flex',
2358
2442
  alignItems: 'flex-start',
2359
- justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2443
+ justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2360
2444
  }
2361
- }, hasOwnerProperty$1(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2445
+ }, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2362
2446
  data: item,
2363
2447
  checked: item.checkBox.checked,
2364
2448
  disabled: item.checkBox.disabled,
@@ -2370,7 +2454,7 @@ const TH = ({
2370
2454
  margin: '0px'
2371
2455
  },
2372
2456
  onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
2373
- }, item.type === 'show' ? item.content : hasOwnerProperty$1(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
2457
+ }, item.type === 'show' ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
2374
2458
  };
2375
2459
 
2376
2460
  const TD = ({
@@ -2415,7 +2499,7 @@ const TD = ({
2415
2499
  handleBodyActionClick(e, actionData);
2416
2500
  };
2417
2501
  const handleCheckActions = (e, object, property, objectIndex) => {
2418
- if (hasOwnerProperty$1(object, property)) {
2502
+ if (hasOwnerProperty(object, property)) {
2419
2503
  handleBodyAction(e, {
2420
2504
  item: object,
2421
2505
  itemIndex: objectIndex
@@ -2458,7 +2542,7 @@ const TD = ({
2458
2542
  maxWidth: tableColumnMaxWidth,
2459
2543
  whiteSpace: Array.isArray(item) ? 'nowrap' : 'wrap',
2460
2544
  borderColor: hideBorder ? 'transparent' : borderRightColor,
2461
- boxShadow: hasOwnerProperty$1(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
2545
+ boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
2462
2546
  borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
2463
2547
  borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
2464
2548
  borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
@@ -2471,7 +2555,7 @@ const TD = ({
2471
2555
  width: '32px',
2472
2556
  height: '32px',
2473
2557
  marginRight: '10px',
2474
- cursor: hasOwnerProperty$1(newItem, 'type') ? 'pointer' : 'auto'
2558
+ cursor: hasOwnerProperty(newItem, 'type') ? 'pointer' : 'auto'
2475
2559
  },
2476
2560
  id: newItem.id,
2477
2561
  type: newItem.type,
@@ -2493,7 +2577,7 @@ const TD = ({
2493
2577
  width: '32px',
2494
2578
  height: '32px',
2495
2579
  marginRight: '10px',
2496
- cursor: hasOwnerProperty$1(iT, 'type') ? 'pointer' : 'auto'
2580
+ cursor: hasOwnerProperty(iT, 'type') ? 'pointer' : 'auto'
2497
2581
  },
2498
2582
  id: iT.id ? iT.id : '',
2499
2583
  type: iT.type ? iT.type : '',
@@ -2511,9 +2595,9 @@ const TD = ({
2511
2595
  style: {
2512
2596
  display: 'flex',
2513
2597
  alignItems: 'flex-start',
2514
- justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2598
+ justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2515
2599
  }
2516
- }, !hasOwnerProperty$1(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty$1(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty$1(item, 'contentList') && (hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2600
+ }, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2517
2601
  id: item.id,
2518
2602
  style: {
2519
2603
  width: '21px',
@@ -2522,7 +2606,7 @@ const TD = ({
2522
2606
  },
2523
2607
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
2524
2608
  className: styles$9['td-span']
2525
- }, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty$1(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2609
+ }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2526
2610
  data: item,
2527
2611
  index: index,
2528
2612
  innerIndex: innerIndex,
@@ -2534,18 +2618,18 @@ const TD = ({
2534
2618
  }), /*#__PURE__*/React__default["default"].createElement("div", {
2535
2619
  style: {
2536
2620
  flexShrink: 11,
2537
- marginLeft: hasOwnerProperty$1(item, 'contentList') && (!hasOwnerProperty$1(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty$1(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '11px' : hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow') ? '11px' : '0px' : '0px',
2538
- marginRight: hasOwnerProperty$1(item, 'contentList') && (!hasOwnerProperty$1(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty$1(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
2621
+ marginLeft: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '11px' : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow') ? '11px' : '0px' : '0px',
2622
+ marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
2539
2623
  }
2540
2624
  }, /*#__PURE__*/React__default["default"].createElement("p", {
2541
2625
  style: {
2542
2626
  textAlign: tBodyTextAlign,
2543
2627
  margin: '0px',
2544
- cursor: hasOwnerProperty$1(item, 'arrowComponent') || hasOwnerProperty$1(item, 'dots') ? 'pointer' : 'auto',
2628
+ cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto',
2545
2629
  ...item.props
2546
2630
  },
2547
- onClick: hasOwnerProperty$1(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty$1(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
2548
- }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty$1(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty$1(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
2631
+ onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
2632
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
2549
2633
  style: {
2550
2634
  display: 'block',
2551
2635
  position: 'relative'
@@ -2566,7 +2650,7 @@ const TD = ({
2566
2650
  backgroundColor: '#FFFFFF',
2567
2651
  boxShadow: '0px 0px 20px 0px #3C393E4D'
2568
2652
  }
2569
- }, hasOwnerProperty$1(item, 'options') && item.options.map((optionItem, optionIndex) => {
2653
+ }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
2570
2654
  return /*#__PURE__*/React__default["default"].createElement("span", {
2571
2655
  key: `${optionItem.content}_${optionIndex}`,
2572
2656
  className: styles$9['dots-option-item'],
@@ -2591,7 +2675,7 @@ const TD = ({
2591
2675
  },
2592
2676
  title: optionItem.content
2593
2677
  }, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
2594
- }))) : ''), hasOwnerProperty$1(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
2678
+ }))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
2595
2679
  style: {
2596
2680
  overflow: 'auto',
2597
2681
  marginTop: '10px',
@@ -2641,7 +2725,7 @@ const TD = ({
2641
2725
  onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
2642
2726
  }, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
2643
2727
  }
2644
- }))), !hasOwnerProperty$1(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty$1(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty$1(item, 'contentList') && (hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2728
+ }))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2645
2729
  id: item.id,
2646
2730
  style: {
2647
2731
  width: '21px',
@@ -2650,7 +2734,7 @@ const TD = ({
2650
2734
  },
2651
2735
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
2652
2736
  className: styles$9['td-span']
2653
- }, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
2737
+ }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
2654
2738
  };
2655
2739
 
2656
2740
  const SvgUpArrow = ({
@@ -2755,7 +2839,7 @@ const Table = ({
2755
2839
  bodyData.map((item, index) => {
2756
2840
  if (index === data.index) {
2757
2841
  item.map((innerItem, innerIndex) => {
2758
- if (hasOwnerProperty$1(innerItem, 'arrowComponent')) {
2842
+ if (hasOwnerProperty(innerItem, 'arrowComponent')) {
2759
2843
  removeItemIndex = innerIndex;
2760
2844
  }
2761
2845
  });
@@ -2779,7 +2863,7 @@ const Table = ({
2779
2863
  let removeItemIndex;
2780
2864
  let headerWithoutArrow;
2781
2865
  header.map((item, index) => {
2782
- if (hasOwnerProperty$1(item, 'arrowComponent')) {
2866
+ if (hasOwnerProperty(item, 'arrowComponent')) {
2783
2867
  removeItemIndex = index;
2784
2868
  }
2785
2869
  });
@@ -2819,7 +2903,7 @@ const Table = ({
2819
2903
  let checkedItems = [];
2820
2904
  data.map((item, index) => {
2821
2905
  item.map((innerItem, innerIndex) => {
2822
- if (hasOwnerProperty$1(innerItem, 'checkBox')) {
2906
+ if (hasOwnerProperty(innerItem, 'checkBox')) {
2823
2907
  if (!checkedItems[innerIndex]) {
2824
2908
  checkedItems[innerIndex] = [];
2825
2909
  }
@@ -2899,7 +2983,7 @@ const Table = ({
2899
2983
  checkableItemBool = !item.checkBox.checked;
2900
2984
  item.checkBox.checked = !item.checkBox.checked;
2901
2985
  }
2902
- if (hasOwnerProperty$1(item, 'arrowComponent')) {
2986
+ if (hasOwnerProperty(item, 'arrowComponent')) {
2903
2987
  removeItemIndex = index;
2904
2988
  }
2905
2989
  return item;
@@ -2907,7 +2991,7 @@ const Table = ({
2907
2991
  const newUpdatedBody = updatedBody.map((item, index) => {
2908
2992
  return item.map((innerItem, innerIndex) => {
2909
2993
  if (checkableItemIndex === innerIndex) {
2910
- if (!hasOwnerProperty$1(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
2994
+ if (!hasOwnerProperty(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
2911
2995
  innerItem.checkBox.checked = checkableItemBool;
2912
2996
  checkableBodyRowItems.push({
2913
2997
  column: innerIndex,
@@ -2951,7 +3035,7 @@ const Table = ({
2951
3035
  const updatedBody = body.slice().map(item => Object.values(item));
2952
3036
  const newData = updatedBody.map((item, index) => {
2953
3037
  return item.map((innerItem, innerIndex) => {
2954
- if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty$1(innerItem, 'checkBox')) {
3038
+ if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty(innerItem, 'checkBox')) {
2955
3039
  innerItem.checkBox.checked = !innerItem.checkBox.checked;
2956
3040
  handleHeaderCheckedUpdate({
2957
3041
  row: index,
@@ -3008,7 +3092,7 @@ const Table = ({
3008
3092
  const handleCheckArrowAction = (item, rowPosition) => {
3009
3093
  const status = item.status;
3010
3094
  const checkedOpenableRow = body[rowPosition].map(innerItem => {
3011
- if (hasOwnerProperty$1(innerItem, 'status')) {
3095
+ if (hasOwnerProperty(innerItem, 'status')) {
3012
3096
  if (status === 'close') {
3013
3097
  innerItem.status = 'open';
3014
3098
  } else {
@@ -3034,13 +3118,13 @@ const Table = ({
3034
3118
  }
3035
3119
  single = item;
3036
3120
  }
3037
- if (hasOwnerProperty$1(item, 'status') && !hasOwnerProperty$1(item, 'arrowComponent')) {
3121
+ if (hasOwnerProperty(item, 'status') && !hasOwnerProperty(item, 'arrowComponent')) {
3038
3122
  allArrows.push(item);
3039
3123
  }
3040
3124
  return item;
3041
3125
  });
3042
3126
  const checkedOpenableRowArrow = checkedOpenableRow.map(item => {
3043
- if (hasOwnerProperty$1(item, 'arrowComponent')) {
3127
+ if (hasOwnerProperty(item, 'arrowComponent')) {
3044
3128
  if (single && single.status === 'close') {
3045
3129
  item.status = 'close';
3046
3130
  } else if (single && single.status === 'open') {
@@ -3049,7 +3133,7 @@ const Table = ({
3049
3133
  }
3050
3134
  }
3051
3135
  }
3052
- if (hasOwnerProperty$1(clickableItem, 'theSame') && hasOwnerProperty$1(item, 'theSame') && clickableItem.theSame === item.theSame) {
3136
+ if (hasOwnerProperty(clickableItem, 'theSame') && hasOwnerProperty(item, 'theSame') && clickableItem.theSame === item.theSame) {
3053
3137
  item.status = clickableItem.status;
3054
3138
  }
3055
3139
  return item;
@@ -3073,7 +3157,7 @@ const Table = ({
3073
3157
  });
3074
3158
  const checkedOpenableAllRowsBody = body.map(innerItem => {
3075
3159
  return innerItem.map(iElem => {
3076
- if (hasOwnerProperty$1(iElem, 'status')) {
3160
+ if (hasOwnerProperty(iElem, 'status')) {
3077
3161
  if (item.status === 'open') {
3078
3162
  iElem.status = 'open';
3079
3163
  } else {
@@ -3090,7 +3174,7 @@ const Table = ({
3090
3174
  e.stopPropagation();
3091
3175
  const checkBodyMore = body.map((elemItem, elemIndex) => {
3092
3176
  return elemItem.map((elemInnerItem, elemInnerIndex) => {
3093
- if (elemIndex === index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
3177
+ if (elemIndex === index && hasOwnerProperty(elemInnerItem, 'dots')) {
3094
3178
  if (elemInnerIndex === innerIndex) {
3095
3179
  if (item.dotsStatus === 'deActive') {
3096
3180
  elemInnerItem.dotsStatus = 'active';
@@ -3098,7 +3182,7 @@ const Table = ({
3098
3182
  elemInnerItem.dotsStatus = 'deActive';
3099
3183
  }
3100
3184
  }
3101
- } else if (elemIndex !== index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
3185
+ } else if (elemIndex !== index && hasOwnerProperty(elemInnerItem, 'dots')) {
3102
3186
  if (elemInnerIndex === innerIndex) {
3103
3187
  elemInnerItem.dotsStatus = 'deActive';
3104
3188
  }
@@ -3147,7 +3231,7 @@ const Table = ({
3147
3231
  const handleTableClick = () => {
3148
3232
  const checkBodyMore = body.map(elemItem => {
3149
3233
  return elemItem.map(elemInnerItem => {
3150
- if (hasOwnerProperty$1(elemInnerItem, 'dots')) {
3234
+ if (hasOwnerProperty(elemInnerItem, 'dots')) {
3151
3235
  elemInnerItem.dotsStatus = 'deActive';
3152
3236
  }
3153
3237
  return elemInnerItem;
@@ -3164,8 +3248,8 @@ const Table = ({
3164
3248
  const checkForInsertArrow = handleTransformDataForInsertArrow(checkBodyForChackedItems, arrowColumnCount, 'body');
3165
3249
  const insert = checkForInsertArrow.map((item, index) => {
3166
3250
  item.map((innerItem, innerIndex) => {
3167
- if (hasOwnerProperty$1(innerItem, 'checkBox')) {
3168
- if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
3251
+ if (hasOwnerProperty(innerItem, 'checkBox')) {
3252
+ if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
3169
3253
  if (innerItem.checkBox.disabled === true) {
3170
3254
  if (!disabledArray[innerIndex]) {
3171
3255
  disabledArray[innerIndex] = {
@@ -3184,8 +3268,8 @@ const Table = ({
3184
3268
  } else {
3185
3269
  const insert = checkBodyForChackedItems.map((item, index) => {
3186
3270
  item.map((innerItem, innerIndex) => {
3187
- if (hasOwnerProperty$1(innerItem, 'checkBox')) {
3188
- if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
3271
+ if (hasOwnerProperty(innerItem, 'checkBox')) {
3272
+ if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
3189
3273
  if (innerItem.checkBox.disabled === true) {
3190
3274
  if (!disabledArray[innerIndex]) {
3191
3275
  disabledArray[innerIndex] = {
@@ -3534,11 +3618,6 @@ const Modal = ({
3534
3618
  handleCloseModal();
3535
3619
  }
3536
3620
  };
3537
- const handleOpenInNewTab = url => {
3538
- const imageLink = document.createElement('a');
3539
- imageLink.href = url, imageLink.target = '_blank';
3540
- imageLink.click();
3541
- };
3542
3621
  const handleMouseEnter = () => {
3543
3622
  setIsHover(true);
3544
3623
  };
@@ -3709,7 +3788,7 @@ const Modal = ({
3709
3788
  }
3710
3789
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
3711
3790
  if (select === index) {
3712
- if (!hasOwnerProperty$1(item, 'url')) {
3791
+ if (!hasOwnerProperty(item, 'url')) {
3713
3792
  alert('Please add url property in data prop on each element');
3714
3793
  } else {
3715
3794
  return /*#__PURE__*/React__default["default"].createElement("span", {
@@ -3741,7 +3820,7 @@ const Modal = ({
3741
3820
  alignItems: 'center',
3742
3821
  justifyContent: 'center'
3743
3822
  },
3744
- onClick: () => handleOpenInNewTab(item.url)
3823
+ onClick: () => handleUtilsOpenInNewTab(item.url)
3745
3824
  }, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
3746
3825
  }
3747
3826
  }
@@ -3817,60 +3896,6 @@ Modal.propTypes = {
3817
3896
  closeAreaBackgroundColor: PropTypes__default["default"].string
3818
3897
  };
3819
3898
 
3820
- const handleCheckTypeTel = (val, prevVal) => {
3821
- const phoneNumberRegex = /^\d{0,8}$/;
3822
- if (!phoneNumberRegex.test(val)) {
3823
- val = prevVal;
3824
- }
3825
- return val;
3826
- };
3827
- const handleCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize) => {
3828
- if (maxLength && maxLength > 0) {
3829
- if (val.length > maxLength) {
3830
- val = val.substr(0, maxLength);
3831
- }
3832
- } else {
3833
- const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.)?(\d+)?$/ : /^\d+$/;
3834
- if (val.length > 16 && !val.includes('.')) {
3835
- val = val.substr(0, 16);
3836
- }
3837
- if (val < Number.MIN_SAFE_INTEGER || val > Number.MAX_SAFE_INTEGER || innerMinNumSize && val < innerMinNumSize || maxNumSize && val > maxNumSize) {
3838
- val = prevVal;
3839
- }
3840
- const floatNumParts = typeof val === 'string' ? val.split('.') : val;
3841
- const int = floatNumParts[0];
3842
- const float = floatNumParts[1];
3843
- if (floatToFix > 0) {
3844
- if (float && float.length > 0) {
3845
- let floatResult = '';
3846
- [...float].map((item, index) => {
3847
- if (index + 1 <= floatToFix) {
3848
- floatResult += item;
3849
- }
3850
- });
3851
- floatResult !== '' ? val = `${int}.${floatResult}` : val = `${int}`;
3852
- }
3853
- } else {
3854
- if (floatNumParts && floatNumParts.length > 0 && floatToFix === 0) {
3855
- val = `${int}`;
3856
- }
3857
- }
3858
- if (!regNum.test(val)) {
3859
- const newStr = val.replace(/[^0-9.]/g, '').replace(/^([^.]*\.)(.*)$/, function (_, b, c) {
3860
- return b + c.replace(/\./g, '');
3861
- });
3862
- val = newStr;
3863
- }
3864
- }
3865
- if (withoutDot && !/^\d+$/.test(val)) {
3866
- const newStr = val.replace(/[^0-9]/g, '').replace(/^([^.]*\.)(.*)$/, function (_, b, c) {
3867
- return b + c.replace(/\./g, '');
3868
- });
3869
- val = newStr;
3870
- }
3871
- return val;
3872
- };
3873
-
3874
3899
  const TelInput = ({
3875
3900
  type,
3876
3901
  value,
@@ -3894,7 +3919,7 @@ const TelInput = ({
3894
3919
  const handleChange = event => {
3895
3920
  let prevValue = innerValue;
3896
3921
  let currentValue = event.target.value;
3897
- currentValue = handleCheckTypeTel(currentValue, prevValue);
3922
+ currentValue = handleUtilsCheckTypeTel(currentValue, prevValue);
3898
3923
  setInnerValue(() => currentValue);
3899
3924
  if (inputChange && currentValue !== prevValue) {
3900
3925
  inputChange(currentValue);
@@ -3903,7 +3928,7 @@ const TelInput = ({
3903
3928
  React.useEffect(() => {
3904
3929
  let newValue = '';
3905
3930
  if (value !== undefined && value !== null) {
3906
- newValue = handleCheckTypeTel(value, newValue);
3931
+ newValue = handleUtilsCheckTypeTel(value, newValue);
3907
3932
  }
3908
3933
  setInnerValue(() => newValue);
3909
3934
  }, [value]);
@@ -4057,7 +4082,7 @@ const NumberInput = ({
4057
4082
  let prevValue = innerValue;
4058
4083
  let currentValue = event.target.value;
4059
4084
  const max = maxLength ? maxLength : null;
4060
- currentValue = handleCheckTypeNumber(currentValue, prevValue, max, float, maxNumSize, dots, innerMinNumSize);
4085
+ currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, max, float, maxNumSize, dots, innerMinNumSize);
4061
4086
  setInnerValue(() => currentValue);
4062
4087
  if (inputChange && currentValue !== prevValue) {
4063
4088
  inputChange(currentValue);
@@ -4081,7 +4106,7 @@ const NumberInput = ({
4081
4106
  let newValue = '';
4082
4107
  if (value !== undefined && value !== null) {
4083
4108
  const max = maxLength ? maxLength : null;
4084
- newValue = handleCheckTypeNumber(value, newValue, max, float, maxNumSize, dots, innerMinNumSize);
4109
+ newValue = handleUtilsCheckTypeNumber(value, newValue, max, float, maxNumSize, dots, innerMinNumSize);
4085
4110
  }
4086
4111
  setInnerValue(() => newValue);
4087
4112
  }, [dots, value, float, maxNumSize, minNumSize]);
@@ -4440,30 +4465,6 @@ Input.propTypes = {
4440
4465
  value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].object])
4441
4466
  };
4442
4467
 
4443
- const hasOwnerProperty = (object, property) => {
4444
- return Object.prototype.hasOwnProperty.call(object, property);
4445
- };
4446
- const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
4447
- if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
4448
- alert('Please set a second param of handleUtilsMouseEnter function as valid object');
4449
- return;
4450
- }
4451
- if (!hasOwnerProperty(e, 'target')) {
4452
- alert('Please set a valid object like DOM event');
4453
- return;
4454
- }
4455
- const existStyle = e.target.style;
4456
- if (typeof existStyle !== 'object' || existStyle === null) {
4457
- alert('Please set a valid style object in DOM event tergat');
4458
- return;
4459
- }
4460
- for (const property in behaviourStyle) {
4461
- if (existStyle[property]) {
4462
- existStyle[property] = behaviourStyle[property];
4463
- }
4464
- }
4465
- };
4466
-
4467
4468
  const RadioDirectionMode = {
4468
4469
  VERTICAL: 'vertical',
4469
4470
  HORINZONTAL: 'horizontal'
@@ -4763,7 +4764,7 @@ const Select = ({
4763
4764
  onChange({});
4764
4765
  setNewSelected([]);
4765
4766
  const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
4766
- if (hasOwnerProperty$1(item, 'checked')) {
4767
+ if (hasOwnerProperty(item, 'checked')) {
4767
4768
  item.checked = false;
4768
4769
  }
4769
4770
  return item;
@@ -4813,7 +4814,7 @@ const Select = ({
4813
4814
  };
4814
4815
  const isObjectEmpty = obj => {
4815
4816
  for (var key in obj) {
4816
- if (hasOwnerProperty$1(obj, key)) {
4817
+ if (hasOwnerProperty(obj, key)) {
4817
4818
  return false;
4818
4819
  }
4819
4820
  }
@@ -5174,8 +5175,8 @@ const SvgToasterSuccess = ({
5174
5175
  fill: fillColor ? fillColor : '#0DA574'
5175
5176
  }));
5176
5177
 
5177
- var css_248z$6 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
5178
- var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
5178
+ var css_248z$6 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
5179
+ var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
5179
5180
  styleInject(css_248z$6);
5180
5181
 
5181
5182
  let wWidth$1 = window.innerWidth;
@@ -6785,7 +6786,7 @@ const Autocomplete = ({
6785
6786
  alert('Please add options prop');
6786
6787
  }
6787
6788
  options && options.length > 0 && options.map(item => {
6788
- if (!hasOwnerProperty$1(item, keyNames.name)) {
6789
+ if (!hasOwnerProperty(item, keyNames.name)) {
6789
6790
  alert(`Please add ${keyNames.name} property in items of options array`);
6790
6791
  }
6791
6792
  });