intelicoreact 1.4.97 → 1.4.99

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 (268) hide show
  1. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +1 -10
  2. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +1 -10
  3. package/dist/Atomic/FormElements/Calendar/Calendar.js +4 -24
  4. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +1 -10
  5. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +2 -14
  6. package/dist/Atomic/FormElements/Datepicker/Datepicker.js +5 -54
  7. package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +3 -21
  8. package/dist/Atomic/FormElements/Dropdown/Dropdown.js +52 -145
  9. package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +1 -7
  10. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +25 -91
  11. package/dist/Atomic/FormElements/FileLoader/FileLoader.js +3 -15
  12. package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +15 -29
  13. package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +5 -15
  14. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +60 -49
  15. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +6 -26
  16. package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +19 -38
  17. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +9 -38
  18. package/dist/Atomic/FormElements/Input/Input.js +25 -60
  19. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +4 -31
  20. package/dist/Atomic/FormElements/InputColor/InputColor.js +4 -14
  21. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +6 -29
  22. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +8 -43
  23. package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +3 -21
  24. package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +58 -81
  25. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +6 -41
  26. package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +1 -8
  27. package/dist/Atomic/FormElements/InputDateRange/dependencies.js +16 -46
  28. package/dist/Atomic/FormElements/InputLink/InputLink.js +6 -23
  29. package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +0 -4
  30. package/dist/Atomic/FormElements/InputMask/InputMask.js +77 -208
  31. package/dist/Atomic/FormElements/InputMask/functions.js +2 -28
  32. package/dist/Atomic/FormElements/InputMask2/InputMask2.js +43 -119
  33. package/dist/Atomic/FormElements/InputMask2/functions.js +2 -28
  34. package/dist/Atomic/FormElements/InputMask3/InputMask3.js +44 -137
  35. package/dist/Atomic/FormElements/InputMask3/functions.js +2 -28
  36. package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +3 -17
  37. package/dist/Atomic/FormElements/InputsRow/InputsRow.js +5 -24
  38. package/dist/Atomic/FormElements/Label/Label.js +1 -9
  39. package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +35 -73
  40. package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +3 -15
  41. package/dist/Atomic/FormElements/NumericInput/NumericInput.js +23 -44
  42. package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +7 -17
  43. package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +3 -14
  44. package/dist/Atomic/FormElements/RadioInput/RadioInput.js +1 -10
  45. package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +3 -14
  46. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +3 -23
  47. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +17 -34
  48. package/dist/Atomic/FormElements/RangeList/RangeList.js +6 -25
  49. package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +1 -11
  50. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +14 -85
  51. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +43 -132
  52. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +1 -10
  53. package/dist/Atomic/FormElements/Switcher/Switcher.js +1 -10
  54. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +1 -13
  55. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +1 -10
  56. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +2 -17
  57. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +3 -17
  58. package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +1 -11
  59. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +6 -29
  60. package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +2 -3
  61. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +1 -12
  62. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +6 -23
  63. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +105 -223
  64. package/dist/Atomic/FormElements/Text/Text.js +10 -16
  65. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +1 -9
  66. package/dist/Atomic/FormElements/Textarea/Textarea.js +5 -16
  67. package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +6 -35
  68. package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +4 -13
  69. package/dist/Atomic/FormElements/TimeRange/TimeRange.js +7 -21
  70. package/dist/Atomic/FormElements/UserContacts/UserContacts.js +8 -35
  71. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +5 -18
  72. package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +3 -10
  73. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +3 -11
  74. package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +1 -2
  75. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +5 -12
  76. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +3 -3
  77. package/dist/Atomic/Layout/Header/Header.js +3 -15
  78. package/dist/Atomic/Layout/MainMenu/MainMenu.js +3 -20
  79. package/dist/Atomic/Layout/Spinner/Spinner.js +1 -8
  80. package/dist/Atomic/UI/Accordion/Accordion.js +3 -19
  81. package/dist/Atomic/UI/Accordion/AccordionItem.js +9 -23
  82. package/dist/Atomic/UI/AccordionTable/AccordionTable.js +7 -32
  83. package/dist/Atomic/UI/AccordionText/AccordionText.js +3 -17
  84. package/dist/Atomic/UI/AdvancedTag/AdvTag.js +4 -21
  85. package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +3 -15
  86. package/dist/Atomic/UI/Alert/Alert.js +3 -19
  87. package/dist/Atomic/UI/Arrow/Arrow.js +3 -16
  88. package/dist/Atomic/UI/Box/Box.js +3 -9
  89. package/dist/Atomic/UI/Button/Button.js +2 -11
  90. package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +1 -10
  91. package/dist/Atomic/UI/Chart/Chart.js +4 -29
  92. package/dist/Atomic/UI/Chart/partial/Chart.constants.js +11 -19
  93. package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +1 -12
  94. package/dist/Atomic/UI/Chart/partial/datasetSetters.js +11 -34
  95. package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +82 -56
  96. package/dist/Atomic/UI/Chart/partial/optionsSetters.js +15 -19
  97. package/dist/Atomic/UI/Chart/partial/utils.js +6 -20
  98. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +3 -13
  99. package/dist/Atomic/UI/DateTime/DateTime.js +3 -14
  100. package/dist/Atomic/UI/DebugContainer/DebugContainer.js +4 -16
  101. package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +3 -11
  102. package/dist/Atomic/UI/DoubleString/DoubleString.js +5 -17
  103. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +3 -10
  104. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +17 -52
  105. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +1 -29
  106. package/dist/Atomic/UI/Hint/Hint.js +13 -39
  107. package/dist/Atomic/UI/Hint/partial/_utils.js +52 -0
  108. package/dist/Atomic/UI/Hint/partials/_utils.js +4 -19
  109. package/dist/Atomic/UI/Modal/Modal.js +6 -28
  110. package/dist/Atomic/UI/Modal/ModalHOC.js +1 -9
  111. package/dist/Atomic/UI/Modal/partials/ModalFooter.js +1 -7
  112. package/dist/Atomic/UI/Modal/partials/ModalTitle.js +1 -8
  113. package/dist/Atomic/UI/Modal/partials/useMobileModal.js +32 -49
  114. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +6 -21
  115. package/dist/Atomic/UI/NavLine/NavLine.js +26 -55
  116. package/dist/Atomic/UI/NavLine/Tabs.js +2 -3
  117. package/dist/Atomic/UI/PageTitle/PageTitle.js +2 -10
  118. package/dist/Atomic/UI/PieChart/PieChart.js +1 -10
  119. package/dist/Atomic/UI/Price/Price.js +3 -8
  120. package/dist/Atomic/UI/PriceRange/PriceRange.js +1 -7
  121. package/dist/Atomic/UI/ProgressLine/ProgressLine.js +1 -16
  122. package/dist/Atomic/UI/Status/Status.js +1 -8
  123. package/dist/Atomic/UI/Table/Partials/TdCell.js +5 -29
  124. package/dist/Atomic/UI/Table/Partials/TdHeader.js +1 -11
  125. package/dist/Atomic/UI/Table/Partials/TdRow.js +5 -17
  126. package/dist/Atomic/UI/Table/Partials/TdTitle.js +3 -14
  127. package/dist/Atomic/UI/Table/Table.js +1 -12
  128. package/dist/Atomic/UI/Table/TdTypes/TdActions.js +2 -18
  129. package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +1 -9
  130. package/dist/Atomic/UI/Table/TdTypes/TdRange.js +1 -4
  131. package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +1 -13
  132. package/dist/Atomic/UI/Tag/Tag.js +11 -26
  133. package/dist/Atomic/UI/TagList/TagList.js +21 -47
  134. package/dist/Atomic/UI/UserBox/UserBox.js +1 -13
  135. package/dist/Atomic/UI/WizardStepper/constructor.js +3 -11
  136. package/dist/Atomic/UI/WizardStepper/index.js +1 -5
  137. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +0 -10
  138. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +1 -4
  139. package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +2 -17
  140. package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +1 -5
  141. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +1 -15
  142. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +1 -5
  143. package/dist/Atomic/UI/WizardStepper/ui/icons.js +2 -9
  144. package/dist/Atomic/UI/WizardStepper/ui/index.js +1 -5
  145. package/dist/Classes/AbortableFetch.js +36 -93
  146. package/dist/Classes/AnimatedHandler.js +3 -7
  147. package/dist/Classes/RESTAPI/index.js +39 -43
  148. package/dist/Classes/RESTAPI/partials/AbortableFetch.js +35 -93
  149. package/dist/Classes/RESTAPI/partials/ApiBase.js +1 -9
  150. package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +24 -32
  151. package/dist/Classes/RESTAPI/partials/ApiUtils.js +34 -41
  152. package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +21 -46
  153. package/dist/Classes/RESTAPI/partials/Utils.js +6 -19
  154. package/dist/Classes/RESTAPI/partials/_outerDependencies.js +2 -6
  155. package/dist/Classes/RESTAPI/partials/_utils.js +16 -39
  156. package/dist/Constants/index.constants.js +8 -15
  157. package/dist/Functions/Portal.js +5 -16
  158. package/dist/Functions/customEventListener.js +4 -17
  159. package/dist/Functions/fieldValueFormatters.js +58 -89
  160. package/dist/Functions/hooks/useFormFieldsChangesManager.js +23 -26
  161. package/dist/Functions/locale/createTranslator.js +4 -9
  162. package/dist/Functions/operations.js +12 -22
  163. package/dist/Functions/presets/inputMaskPresets.js +9 -11
  164. package/dist/Functions/presets/inputPresets.js +8 -11
  165. package/dist/Functions/presets/mobileKeyboardTypesPresets.js +7 -9
  166. package/dist/Functions/schemas.js +6 -13
  167. package/dist/Functions/useBodyScrollLock.js +1 -6
  168. package/dist/Functions/useClickOutside.js +0 -4
  169. package/dist/Functions/useDebounce.js +2 -7
  170. package/dist/Functions/useFieldFocus.js +6 -18
  171. package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +0 -9
  172. package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +12 -23
  173. package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +6 -15
  174. package/dist/Functions/useFormTools/functions/General.js +18 -28
  175. package/dist/Functions/useFormTools/functions/RenderFields.js +2 -11
  176. package/dist/Functions/useFormTools/functions/usePrevious.js +1 -5
  177. package/dist/Functions/useFormTools/index.js +85 -144
  178. package/dist/Functions/useInputHighlightError.js +3 -12
  179. package/dist/Functions/useIsMobile.js +7 -13
  180. package/dist/Functions/useKeyPress/useHandleKeyPress.js +1 -7
  181. package/dist/Functions/useKeyPress/useKeyPress.js +1 -9
  182. package/dist/Functions/useLocalStorage.js +1 -9
  183. package/dist/Functions/useLocationParams.js +4 -5
  184. package/dist/Functions/useMediaQuery.js +3 -9
  185. package/dist/Functions/useMetaInfo.js +3 -10
  186. package/dist/Functions/useMouseUpOutside.js +0 -3
  187. package/dist/Functions/useOnlineStatus.js +1 -9
  188. package/dist/Functions/usePasswordChecker.js +4 -20
  189. package/dist/Functions/usePrevious.js +1 -5
  190. package/dist/Functions/useResize.js +2 -10
  191. package/dist/Functions/useScrollTo.js +2 -7
  192. package/dist/Functions/useToggle.js +1 -5
  193. package/dist/Functions/utils.js +56 -133
  194. package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +2 -9
  195. package/dist/Molecular/CustomIcons/components/AlertCircle.js +2 -9
  196. package/dist/Molecular/CustomIcons/components/AppStore.js +2 -9
  197. package/dist/Molecular/CustomIcons/components/Arrow.js +2 -9
  198. package/dist/Molecular/CustomIcons/components/ArrowDown.js +2 -9
  199. package/dist/Molecular/CustomIcons/components/ArrowLeft.js +2 -9
  200. package/dist/Molecular/CustomIcons/components/ArrowRight.js +2 -9
  201. package/dist/Molecular/CustomIcons/components/ArrowUp.js +2 -9
  202. package/dist/Molecular/CustomIcons/components/Bell.js +2 -9
  203. package/dist/Molecular/CustomIcons/components/Button.js +2 -9
  204. package/dist/Molecular/CustomIcons/components/Campaigns.js +2 -9
  205. package/dist/Molecular/CustomIcons/components/Check.js +2 -9
  206. package/dist/Molecular/CustomIcons/components/Check2.js +2 -9
  207. package/dist/Molecular/CustomIcons/components/ChevronDown.js +2 -9
  208. package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +2 -9
  209. package/dist/Molecular/CustomIcons/components/ChevronLeft.js +2 -9
  210. package/dist/Molecular/CustomIcons/components/ChevronRight.js +2 -9
  211. package/dist/Molecular/CustomIcons/components/ChevronUp.js +2 -9
  212. package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +2 -9
  213. package/dist/Molecular/CustomIcons/components/Close.js +2 -9
  214. package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +2 -9
  215. package/dist/Molecular/CustomIcons/components/Delete.js +2 -9
  216. package/dist/Molecular/CustomIcons/components/Edit.js +2 -9
  217. package/dist/Molecular/CustomIcons/components/Email.js +2 -9
  218. package/dist/Molecular/CustomIcons/components/FinturfLogo.js +2 -9
  219. package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +2 -9
  220. package/dist/Molecular/CustomIcons/components/Flows.js +2 -9
  221. package/dist/Molecular/CustomIcons/components/Gift.js +2 -9
  222. package/dist/Molecular/CustomIcons/components/GoogleAuth.js +2 -9
  223. package/dist/Molecular/CustomIcons/components/GooglePlay.js +2 -9
  224. package/dist/Molecular/CustomIcons/components/HelpCircle.js +2 -9
  225. package/dist/Molecular/CustomIcons/components/HelpCircle2.js +2 -9
  226. package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +2 -9
  227. package/dist/Molecular/CustomIcons/components/Home.js +2 -9
  228. package/dist/Molecular/CustomIcons/components/Home2.js +2 -9
  229. package/dist/Molecular/CustomIcons/components/Key.js +2 -9
  230. package/dist/Molecular/CustomIcons/components/Landers.js +2 -9
  231. package/dist/Molecular/CustomIcons/components/Lock.js +2 -9
  232. package/dist/Molecular/CustomIcons/components/Mail.js +2 -9
  233. package/dist/Molecular/CustomIcons/components/Mastercard.js +2 -9
  234. package/dist/Molecular/CustomIcons/components/Minus.js +2 -9
  235. package/dist/Molecular/CustomIcons/components/Offers.js +2 -9
  236. package/dist/Molecular/CustomIcons/components/Pause.js +2 -9
  237. package/dist/Molecular/CustomIcons/components/PayPal.js +2 -9
  238. package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +2 -9
  239. package/dist/Molecular/CustomIcons/components/Phone.js +2 -9
  240. package/dist/Molecular/CustomIcons/components/Play.js +2 -9
  241. package/dist/Molecular/CustomIcons/components/Plus.js +2 -9
  242. package/dist/Molecular/CustomIcons/components/Profile.js +2 -9
  243. package/dist/Molecular/CustomIcons/components/QRCode.js +2 -9
  244. package/dist/Molecular/CustomIcons/components/Rectangle.js +2 -9
  245. package/dist/Molecular/CustomIcons/components/Revert.js +2 -9
  246. package/dist/Molecular/CustomIcons/components/Star.js +2 -9
  247. package/dist/Molecular/CustomIcons/components/Star2.js +2 -9
  248. package/dist/Molecular/CustomIcons/components/TrafficSources.js +2 -9
  249. package/dist/Molecular/CustomIcons/components/Trash.js +2 -9
  250. package/dist/Molecular/CustomIcons/components/TrashRed.js +2 -9
  251. package/dist/Molecular/CustomIcons/components/Triggers.js +2 -9
  252. package/dist/Molecular/CustomIcons/components/User.js +2 -9
  253. package/dist/Molecular/CustomIcons/components/Visa.js +2 -9
  254. package/dist/Molecular/CustomIcons/components/X.js +2 -9
  255. package/dist/Molecular/CustomIcons/index.js +0 -122
  256. package/dist/Molecular/FormElement/FormElement.js +1 -12
  257. package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +30 -31
  258. package/dist/Molecular/FormWithDependOn/partials/_utils.js +9 -12
  259. package/dist/Molecular/InputAddress/InputAddress.js +65 -114
  260. package/dist/Molecular/InputPassword/InputPassword.js +5 -19
  261. package/dist/index.js +0 -2
  262. package/package.json +1 -1
  263. package/dist/Atomic/FormElements/UserContacts/partial/defaultIcons.js +0 -91
  264. package/dist/Atomic/UI/ModalBackup/Modal.js +0 -174
  265. package/dist/Atomic/UI/ModalBackup/Modal.scss +0 -333
  266. package/dist/Atomic/UI/ModalBackup/ModalHOC.js +0 -51
  267. package/dist/Atomic/UI/ModalBackup/partials/ModalFooter.js +0 -24
  268. package/dist/Atomic/UI/ModalBackup/partials/ModalTitle.js +0 -41
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -14,32 +13,22 @@ exports.transformLocalTimeToUTC = transformLocalTimeToUTC;
14
13
  exports.transformUTCHoursToLocal = transformUTCHoursToLocal;
15
14
  exports.transformUTCTimeToLocal = transformUTCTimeToLocal;
16
15
  exports.uuid = exports.useOutsideToggle = void 0;
17
-
18
16
  var _react = require("react");
19
-
20
17
  var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
21
-
22
18
  var _index = require("../Constants/index.constants");
23
-
24
19
  const uuid = () => Date.now().toString(36) + Math.random().toString(36).substring(2);
25
-
26
20
  exports.uuid = uuid;
27
-
28
21
  const getIsOnlyAnObject = input => typeof input === "object" && input instanceof Object && !Array.isArray(input);
29
- /* eslint-disable guard-for-in, no-unused-vars */
30
-
31
22
 
23
+ /* eslint-disable guard-for-in, no-unused-vars */
32
24
  exports.getIsOnlyAnObject = getIsOnlyAnObject;
33
-
34
25
  const handleObjectChange = (updateObject, updateFunction) => function (data) {
35
26
  let prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
36
27
  let isNumber = arguments.length > 2 ? arguments[2] : undefined;
37
28
  let value;
38
-
39
29
  if (data !== null && data !== void 0 && data.target) {
40
30
  value = data.target.type === "checkbox" ? data.target.checked : data.target.value;
41
31
  } else value = data;
42
-
43
32
  value = isNumber ? Number(value) : value;
44
33
  const props = prop.split(".");
45
34
  const currentObject = props.reduce((res, chapter, index) => {
@@ -49,16 +38,13 @@ const handleObjectChange = (updateObject, updateFunction) => function (data) {
49
38
  currentObject[props.pop()] = value;
50
39
  updateFunction();
51
40
  };
52
-
53
41
  exports.handleObjectChange = handleObjectChange;
54
-
55
42
  const useOutsideToggle = (ref, setOut, open) => {
56
43
  function handleClickOutside(event) {
57
44
  if (ref.current && !ref.current.contains(event.target)) {
58
45
  setOut(open);
59
46
  }
60
47
  }
61
-
62
48
  (0, _react.useEffect)(() => {
63
49
  document.addEventListener("mouseup", handleClickOutside);
64
50
  return () => {
@@ -66,47 +52,37 @@ const useOutsideToggle = (ref, setOut, open) => {
66
52
  document.removeEventListener("mouseup", handleClickOutside);
67
53
  };
68
54
  }, [ref]);
69
- }; // export const clone = obj => {
55
+ };
56
+
57
+ // export const clone = obj => {
70
58
  // const data = obj instanceof Array ? [] : {};
71
59
  // for (const i in obj) data[i] = typeof obj[i] === 'object' && obj[i] != null ? clone(obj[i]) : obj[i];
72
60
  // return data;
73
61
  // };
74
62
  // ! Этот правильнее
75
-
76
-
77
63
  exports.useOutsideToggle = useOutsideToggle;
78
-
79
64
  const clone = input => {
80
65
  if (input === null || typeof input !== "object") return input;
81
66
  const data = input instanceof Array ? [] : {};
82
-
83
67
  for (const i in input) data[i] = clone(input[i]);
84
-
85
68
  return data;
86
69
  };
87
-
88
70
  exports.clone = clone;
71
+ const getResponseClone = async res => await (typeof (res === null || res === void 0 ? void 0 : res.clone) === "function" ? res.clone() : clone(res));
89
72
 
90
- const getResponseClone = async res => await (typeof (res === null || res === void 0 ? void 0 : res.clone) === "function" ? res.clone() : clone(res)); //TimeUtils
91
-
92
-
73
+ //TimeUtils
93
74
  exports.getResponseClone = getResponseClone;
94
-
95
75
  function transformUTCTimeToLocal(date) {
96
76
  let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "YYYY-MM-DD HH:mm:ss";
97
77
  if (!date) return;
98
-
99
78
  const utcDate = _momentTimezone.default.utc(date).toDate();
100
-
101
79
  return (0, _momentTimezone.default)(utcDate, format).local().format(format);
102
80
  }
103
-
104
81
  function transformLocalTimeToUTC(date) {
105
82
  let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "YYYY-MM-DD HH:mm:ss";
106
83
  if (!date) return;
107
84
  return (0, _momentTimezone.default)(date, format).utc().format(format);
108
85
  }
109
-
110
86
  function transformUTCHoursToLocal(time) {
111
87
  let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "HH:mm:ss";
112
88
  if (!time) return;
@@ -116,24 +92,20 @@ function transformUTCHoursToLocal(time) {
116
92
  let mm = Number(splitedTime[1]);
117
93
  const ss = splitedTime[2];
118
94
  mm = mm + offset;
119
-
120
95
  while (mm > 59) {
121
96
  mm -= 60;
122
97
  HH += 1;
123
98
  }
124
-
125
99
  if (HH > 23) HH -= 24;
126
-
127
100
  while (mm < 0) {
128
101
  mm += 60;
129
102
  HH -= 1;
130
103
  }
131
-
132
104
  if (HH < 0) HH += 24;
133
105
  return "".concat(HH, ":").concat(mm, ":").concat(ss);
134
- } //? Намерянно значением по умолчанию назначаю самый информационно-маленький паттерн
135
-
106
+ }
136
107
 
108
+ //? Намерянно значением по умолчанию назначаю самый информационно-маленький паттерн
137
109
  function transformDateOrTimeOrTogetherToFormat(data) {
138
110
  let outputFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "HH:mm";
139
111
  let additional = arguments.length > 2 ? arguments[2] : undefined;
@@ -143,22 +115,24 @@ function transformDateOrTimeOrTogetherToFormat(data) {
143
115
  parseFormat,
144
116
  isReturnAsMomentInstance
145
117
  } = getIsOnlyAnObject(additional) ? additional : {};
146
-
147
118
  if (typeof data !== "string" && typeof data !== "number") {
148
119
  return isReturnAsMomentInstance ? (0, _momentTimezone.default)("error") : ERROR_MESSGE;
149
- } //? Игнорируем parseFormat, если data пришла как timestamp или если parseFormat не строка
150
-
120
+ }
151
121
 
152
- const momentArgs = [data, ...(!Number.isNaN(Number(data)) || typeof parseFormat === "string" ? [] : [parseFormat])]; //? Задача получить moment-экземпляр, валидный либо невалидный
122
+ //? Игнорируем parseFormat, если data пришла как timestamp или если parseFormat не строка
123
+ const momentArgs = [data, ...(!Number.isNaN(Number(data)) || typeof parseFormat === "string" ? [] : [parseFormat])];
153
124
 
125
+ //? Задача получить moment-экземпляр, валидный либо невалидный
154
126
  const momentInstance = (() => {
155
- let instance = (0, _momentTimezone.default)(...momentArgs); //? Проверяем валидность moment-экземпляр-а путем попытки привести его к выходному формату
127
+ let instance = (0, _momentTimezone.default)(...momentArgs);
128
+
129
+ //? Проверяем валидность moment-экземпляр-а путем попытки привести его к выходному формату
156
130
  //? Попадем в этот кейс если
157
131
  //? - data это timestamp
158
132
  //? - data это строка в формате date-time
159
133
  //? - data это строка в формате date (в этом случае время выставится 00:00:00)
160
-
161
- if (instance.format(outputFormat) !== ERROR_VALUE) return instance; //? Если же приведение не удалось, то предполагаем, что data пришла в формате time
134
+ if (instance.format(outputFormat) !== ERROR_VALUE) return instance;
135
+ //? Если же приведение не удалось, то предполагаем, что data пришла в формате time
162
136
  //? В этом случае создадим объект от текущей даты, распарсим data и установим время
163
137
  //? Корректно обработаются паттерны: 'HH*mm', 'HH*mm*ss', 'HH*mm*ss*любое_количество_ms', где * - любой разделитель
164
138
  else if (/^\d\d.\d\d/.test(data)) {
@@ -169,13 +143,13 @@ function transformDateOrTimeOrTogetherToFormat(data) {
169
143
  if (acc.group) acc.result.push(acc.group);
170
144
  acc.group = "";
171
145
  } else acc.group = "".concat(acc.group).concat(symbol);
172
-
173
146
  if (idx === symbols.length - 1 && acc.group) acc.result.push(acc.group);
174
147
  return acc;
175
148
  }, {
176
149
  result: [],
177
150
  group: ""
178
- }) //? reverse используется исключительно для того, чтобы после можно было использовать метод pop, а не shift,
151
+ })
152
+ //? reverse используется исключительно для того, чтобы после можно было использовать метод pop, а не shift,
179
153
  //? т.к. методы добавления/извлечения относительно конца массива работают быстрее,
180
154
  //? чем аналогичные относительно начала массива
181
155
  .result.reverse();
@@ -187,34 +161,32 @@ function transformDateOrTimeOrTogetherToFormat(data) {
187
161
 
188
162
  return instance;
189
163
  })();
190
-
191
164
  if (isReturnAsMomentInstance) return momentInstance;
192
165
  const output = momentInstance.format(outputFormat);
193
166
  return output === ERROR_VALUE ? ERROR_MESSGE : output;
194
- } //? Намерянно значением по умолчанию назначаю самый информационно-маленький паттерн
195
-
167
+ }
196
168
 
169
+ //? Намерянно значением по умолчанию назначаю самый информационно-маленький паттерн
197
170
  function transformDateOrTimeOrTogetherToFormattedLocal(data) {
198
171
  let outputFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "HH:mm";
199
172
  let additional = arguments.length > 2 ? arguments[2] : undefined;
200
173
  const ERROR_VALUE = "Invalid date";
201
174
  const ERROR_MESSGE = "Invalid input data for ".concat(outputFormat, " format");
202
-
203
175
  if (additional && !getIsOnlyAnObject(additional)) {
204
176
  throw new Error("Bad additional [transformDateOrTimeOrTogetherToFormattedLocal]");
205
177
  }
206
-
207
- const compositeAdditional = { ...(additional || {}),
178
+ const compositeAdditional = {
179
+ ...(additional || {}),
208
180
  isReturnAsMomentInstance: true
209
181
  };
210
182
  const date = transformDateOrTimeOrTogetherToFormat(data, outputFormat, compositeAdditional);
211
183
  const dateWithLocale = date.add((0, _momentTimezone.default)().utcOffset(), "minutes");
212
184
  const output = dateWithLocale.format(outputFormat);
213
185
  return output === ERROR_VALUE ? ERROR_MESSGE : output;
214
- } //принимает обьект и массив ключей обьекта
215
- //возвращает обьект с теми полями, которых нет в массиве ключей
216
-
186
+ }
217
187
 
188
+ //принимает обьект и массив ключей обьекта
189
+ //возвращает обьект с теми полями, которых нет в массиве ключей
218
190
  const omitKeys = function () {
219
191
  let obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
220
192
  let keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
@@ -226,25 +198,19 @@ const omitKeys = function () {
226
198
  return rest;
227
199
  }, obj);
228
200
  };
229
-
230
201
  exports.omitKeys = omitKeys;
231
-
232
202
  const logout = () => {
233
203
  window.localStorage.removeItem("accessToken");
234
204
  window.localStorage.removeItem("tokenExpires");
235
205
  window.location.reload();
236
206
  };
237
-
238
207
  exports.logout = logout;
239
-
240
208
  const getStyles = (el, prop) => {
241
209
  if (!el) return null;
242
210
  if (!prop) return window.getComputedStyle(el);
243
211
  return window.getComputedStyle(el).getPropertyValue(prop);
244
212
  };
245
-
246
213
  exports.getStyles = getStyles;
247
-
248
214
  const getColorById = (id, colors) => {
249
215
  if (!id) return "#FF7D00";
250
216
  const idToArr = Array.from(id);
@@ -253,26 +219,20 @@ const getColorById = (id, colors) => {
253
219
  if (Number(item)) {
254
220
  return acc + Number(item);
255
221
  }
256
-
257
222
  return acc;
258
223
  }, 0);
259
-
260
224
  while (number >= colorsArr.length) {
261
225
  number -= colorsArr.length;
262
226
  }
263
-
264
227
  return colorsArr[number];
265
228
  };
266
-
267
229
  exports.getColorById = getColorById;
268
-
269
230
  const debounce = (fn, ms) => {
270
231
  let id = null;
271
232
  return function () {
272
233
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
273
234
  args[_key] = arguments[_key];
274
235
  }
275
-
276
236
  clearTimeout(id);
277
237
  id = setTimeout(() => {
278
238
  clearTimeout(id);
@@ -280,9 +240,7 @@ const debounce = (fn, ms) => {
280
240
  }, ms);
281
241
  };
282
242
  };
283
-
284
243
  exports.debounce = debounce;
285
-
286
244
  const throttle = (fn, ms) => {
287
245
  let id = null;
288
246
  return function () {
@@ -294,57 +252,47 @@ const throttle = (fn, ms) => {
294
252
  }, ms);
295
253
  };
296
254
  };
297
-
298
255
  exports.throttle = throttle;
299
-
300
256
  const addBitDepthPoints = function (value) {
301
257
  let step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
302
258
  //содержит ли value точку
303
- const isFraction = value === null || value === void 0 ? void 0 : value.includes("."); //взять строку до точки
259
+ const isFraction = value === null || value === void 0 ? void 0 : value.includes(".");
304
260
 
305
- const valueBeforeDot = isFraction ? value === null || value === void 0 ? void 0 : value.slice(0, value === null || value === void 0 ? void 0 : value.indexOf(".")) : value; //расстановка запятых после каждой 3й цифры с конца
261
+ //взять строку до точки
262
+ const valueBeforeDot = isFraction ? value === null || value === void 0 ? void 0 : value.slice(0, value === null || value === void 0 ? void 0 : value.indexOf(".")) : value;
306
263
 
264
+ //расстановка запятых после каждой 3й цифры с конца
307
265
  const intPart = valueBeforeDot.split("").reverse().reduce((acc, item, idx) => idx % step === 0 && idx !== 0 ? [...acc, ",", item] : [...acc, item], []).reverse().join("");
308
266
  return isFraction ? intPart + (value === null || value === void 0 ? void 0 : value.slice(value === null || value === void 0 ? void 0 : value.indexOf("."))) : intPart;
309
267
  };
310
-
311
268
  exports.addBitDepthPoints = addBitDepthPoints;
312
-
313
269
  const changeMeta = function (key) {
314
270
  let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
315
271
  const defaultMeta = items.find(i => i.key === "default");
316
-
317
272
  if (key) {
318
273
  var _item$title, _item$description;
319
-
320
274
  const item = items.find(i => i.key === key);
321
275
  document.title = (_item$title = item === null || item === void 0 ? void 0 : item.title) !== null && _item$title !== void 0 ? _item$title : defaultMeta === null || defaultMeta === void 0 ? void 0 : defaultMeta.title;
322
276
  document.querySelector('meta[name="description"]').setAttribute("content", (_item$description = item === null || item === void 0 ? void 0 : item.description) !== null && _item$description !== void 0 ? _item$description : defaultMeta === null || defaultMeta === void 0 ? void 0 : defaultMeta.description);
323
277
  }
324
278
  };
325
-
326
279
  exports.changeMeta = changeMeta;
327
-
328
280
  const firstLetterCapital = str => typeof str === "string" ? "".concat(str.charAt(0).toUpperCase()).concat(str.slice(1)) : str;
329
-
330
281
  exports.firstLetterCapital = firstLetterCapital;
331
- const capitalized = firstLetterCapital;
332
- exports.capitalized = capitalized;
333
-
282
+ const capitalized = exports.capitalized = firstLetterCapital;
334
283
  const checkedRef = ref => ref ? typeof ref === "function" ? node => ref(node) : ref : null;
335
-
336
284
  exports.checkedRef = checkedRef;
337
-
338
285
  function downloadEmulation(data, filename) {
339
286
  let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "image/*";
340
287
  const file = new Blob([data], {
341
288
  type
342
289
  });
343
- if (window.navigator.msSaveOrOpenBlob) // IE10+
290
+ if (window.navigator.msSaveOrOpenBlob)
291
+ // IE10+
344
292
  window.navigator.msSaveOrOpenBlob(file, filename);else {
345
293
  // Others
346
294
  const a = document.createElement("a"),
347
- url = URL.createObjectURL(file);
295
+ url = URL.createObjectURL(file);
348
296
  a.href = url;
349
297
  a.download = filename;
350
298
  document.body.appendChild(a);
@@ -355,7 +303,6 @@ function downloadEmulation(data, filename) {
355
303
  }, 0);
356
304
  }
357
305
  }
358
-
359
306
  const downloadFile = async _ref => {
360
307
  let {
361
308
  url,
@@ -368,18 +315,19 @@ const downloadFile = async _ref => {
368
315
  }));
369
316
  downloadEmulation(response.data, name, response.type);
370
317
  };
371
-
372
318
  exports.downloadFile = downloadFile;
373
-
374
319
  const compare = function (first, second) {
375
320
  let keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
376
321
  //? Если типы НЕ равны - не равны априори
377
- if (typeof first !== typeof second) return false; //? Если ответы на вопрос "массив ли?" не равны, то не равны и типы, значит тоже не равны априори
322
+ if (typeof first !== typeof second) return false;
323
+ //? Если ответы на вопрос "массив ли?" не равны, то не равны и типы, значит тоже не равны априори
324
+ if (Array.isArray(first) !== Array.isArray(second)) return false;
325
+ //? Если прошли if-ку - типы условно равны, можем оценивать тип лишь одного параметра, это будет справедливо и для второго
378
326
 
379
- if (Array.isArray(first) !== Array.isArray(second)) return false; //? Если прошли if-ку - типы условно равны, можем оценивать тип лишь одного параметра, это будет справедливо и для второго
380
327
  //? Если примитивы - просто сравниваем. Кейс с null обработан тут.
328
+ if (!(first instanceof Object)) return first === second;
381
329
 
382
- if (!(first instanceof Object)) return first === second; //? Если НЕ приметивы - не важно массив или нет, методы объекта для массива тоже доступны
330
+ //? Если НЕ приметивы - не важно массив или нет, методы объекта для массива тоже доступны
383
331
 
384
332
  const getComparationStructure = data => {
385
333
  if (typeof data === 'function') return data.toString();
@@ -388,17 +336,16 @@ const compare = function (first, second) {
388
336
  let [key, value] = _ref2;
389
337
  return [key, getComparationStructure(data[key])];
390
338
  });
391
- }; //? Получаем структуры для сравнения (с учетом глубины) - массивы массивов, сортируем по ключам,
392
-
339
+ };
393
340
 
341
+ //? Получаем структуры для сравнения (с учетом глубины) - массивы массивов, сортируем по ключам,
394
342
  const structureForComparingOfFirst = getComparationStructure(first);
395
343
  const structureForComparingOfSecond = getComparationStructure(second);
396
344
  return JSON.stringify(structureForComparingOfFirst) === JSON.stringify(structureForComparingOfSecond);
397
- }; // Set Carret to the End of Input
398
-
345
+ };
399
346
 
347
+ // Set Carret to the End of Input
400
348
  exports.compare = compare;
401
-
402
349
  const setCarretToEnd = input => {
403
350
  setTimeout(() => {
404
351
  const tmp = input.value;
@@ -406,47 +353,35 @@ const setCarretToEnd = input => {
406
353
  input.value = tmp;
407
354
  }, 10);
408
355
  };
409
-
410
356
  exports.setCarretToEnd = setCarretToEnd;
411
-
412
357
  const compareAlphabetical = function (a, b) {
413
358
  var _item, _item2;
414
-
415
359
  let key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "label";
416
360
  let item1 = a === null || a === void 0 ? void 0 : a[key];
417
361
  let item2 = b === null || b === void 0 ? void 0 : b[key];
418
362
  if (typeof item1 !== "string" || typeof item2 !== "string") return 0;
419
363
  item1 = (_item = item1) === null || _item === void 0 ? void 0 : _item.toLowerCase();
420
364
  item2 = (_item2 = item2) === null || _item2 === void 0 ? void 0 : _item2.toLowerCase();
421
-
422
365
  if (item1 < item2) {
423
366
  return -1;
424
367
  }
425
-
426
368
  if (item1 > item2) {
427
369
  return 1;
428
370
  }
429
-
430
371
  return 0;
431
372
  };
432
-
433
373
  exports.compareAlphabetical = compareAlphabetical;
434
-
435
374
  const getBase64 = file => {
436
375
  if (file) {
437
376
  return new Promise(function (resolve, reject) {
438
377
  const reader = new FileReader();
439
378
  reader.readAsDataURL(file);
440
-
441
379
  reader.onload = () => resolve(reader.result);
442
-
443
380
  reader.onerror = error => reject("Error: ", error);
444
381
  });
445
382
  }
446
383
  };
447
-
448
384
  exports.getBase64 = getBase64;
449
-
450
385
  const renderFileSize = function (bytes) {
451
386
  let decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
452
387
  if (!Number(bytes)) return "0 Bytes";
@@ -456,30 +391,26 @@ const renderFileSize = function (bytes) {
456
391
  const i = Math.floor(Math.log(bytes) / Math.log(k));
457
392
  return "".concat(parseFloat((bytes / Math.pow(k, i)).toFixed(dm)), " ").concat(sizes[i]);
458
393
  };
459
-
460
394
  exports.renderFileSize = renderFileSize;
461
-
462
395
  const getUniqueFileExtensions = extListString => {
463
396
  // Split the extensions list into an array
464
- const extArray = extListString === null || extListString === void 0 ? void 0 : extListString.split(",").map(ext => ext.trim().toUpperCase()); // Remove duplicates using a Set
397
+ const extArray = extListString === null || extListString === void 0 ? void 0 : extListString.split(",").map(ext => ext.trim().toUpperCase());
465
398
 
466
- const uniqueExts = [...new Set(extArray)]; // Join the unique extensions into a string
399
+ // Remove duplicates using a Set
400
+ const uniqueExts = [...new Set(extArray)];
467
401
 
402
+ // Join the unique extensions into a string
468
403
  return uniqueExts.join(", ");
469
404
  };
470
-
471
405
  exports.getUniqueFileExtensions = getUniqueFileExtensions;
472
-
473
406
  const getOS = () => {
474
- var _window$navigator, _window$navigator$use;
475
-
407
+ var _window$navigator;
476
408
  let userAgent = window.navigator.userAgent,
477
- platform = ((_window$navigator = window.navigator) === null || _window$navigator === void 0 ? void 0 : (_window$navigator$use = _window$navigator.userAgentData) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.platform) || window.navigator.platform,
478
- macosPlatforms = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"],
479
- windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"],
480
- iosPlatforms = ["iPhone", "iPad", "iPod"],
481
- os = _index.OS.Unknown;
482
-
409
+ platform = ((_window$navigator = window.navigator) === null || _window$navigator === void 0 || (_window$navigator = _window$navigator.userAgentData) === null || _window$navigator === void 0 ? void 0 : _window$navigator.platform) || window.navigator.platform,
410
+ macosPlatforms = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"],
411
+ windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"],
412
+ iosPlatforms = ["iPhone", "iPad", "iPod"],
413
+ os = _index.OS.Unknown;
483
414
  if (macosPlatforms.indexOf(platform) !== -1) {
484
415
  os = _index.OS.MacOS;
485
416
  } else if (iosPlatforms.indexOf(platform) !== -1) {
@@ -491,27 +422,20 @@ const getOS = () => {
491
422
  } else if (/Linux/.test(platform)) {
492
423
  os = _index.OS.Linux;
493
424
  }
494
-
495
425
  return os;
496
426
  };
497
-
498
427
  exports.getOS = getOS;
499
-
500
428
  const disableDefaultBehavior = e => {
501
- e === null || e === void 0 ? void 0 : e.preventDefault();
502
- e === null || e === void 0 ? void 0 : e.stopPropagation();
429
+ e === null || e === void 0 || e.preventDefault();
430
+ e === null || e === void 0 || e.stopPropagation();
503
431
  };
504
-
505
432
  exports.disableDefaultBehavior = disableDefaultBehavior;
506
-
507
433
  String.prototype.longerThan = function (compareWith) {
508
434
  return (this === null || this === void 0 ? void 0 : this.length) > (compareWith === null || compareWith === void 0 ? void 0 : compareWith.length);
509
435
  };
510
-
511
436
  String.prototype.lastIndexEqualsTo = function (index) {
512
437
  return (this === null || this === void 0 ? void 0 : this.length) - 1 === index;
513
438
  };
514
-
515
439
  const getCorrectTestId = _ref3 => {
516
440
  let {
517
441
  testId = "",
@@ -519,5 +443,4 @@ const getCorrectTestId = _ref3 => {
519
443
  } = _ref3;
520
444
  return testId && testId !== undefined ? "".concat(withTier ? "-" : "").concat(testId) : "";
521
445
  };
522
-
523
446
  exports.getCorrectTestId = getCorrectTestId;
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.AffiliateNetworks = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var React = _interopRequireWildcard(require("react"));
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
12
  const AffiliateNetworks = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
19
13
  xmlns: "http://www.w3.org/2000/svg",
20
14
  xmlSpace: "preserve",
@@ -34,5 +28,4 @@ const AffiliateNetworks = props => /*#__PURE__*/React.createElement("svg", (0, _
34
28
  stroke: "#9AA0B9",
35
29
  d: "M23 21v-2c0-1.8-1.2-3.4-3-3.9M16 3.1c2.1.5 3.4 2.7 2.9 4.9-.4 1.4-1.5 2.5-2.9 2.9"
36
30
  }));
37
-
38
31
  exports.AffiliateNetworks = AffiliateNetworks;
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.AlertCircle = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var React = _interopRequireWildcard(require("react"));
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
12
  const AlertCircle = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
19
13
  xmlns: "http://www.w3.org/2000/svg",
20
14
  xmlSpace: "preserve",
@@ -34,5 +28,4 @@ const AlertCircle = props => /*#__PURE__*/React.createElement("svg", (0, _extend
34
28
  d: "M12 8v4M12 16",
35
29
  className: "st0"
36
30
  }));
37
-
38
31
  exports.AlertCircle = AlertCircle;
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.AppStore = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var React = _interopRequireWildcard(require("react"));
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
12
  const AppStore = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
19
13
  xmlns: "http://www.w3.org/2000/svg",
20
14
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -38,5 +32,4 @@ const AppStore = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.
38
32
  width: 260,
39
33
  height: 90
40
34
  })));
41
-
42
35
  exports.AppStore = AppStore;
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.Arrow = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var React = _interopRequireWildcard(require("react"));
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
12
  const Arrow = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
19
13
  xmlns: "http://www.w3.org/2000/svg",
20
14
  width: 16,
@@ -44,5 +38,4 @@ const Arrow = props => /*#__PURE__*/React.createElement("svg", (0, _extends2.def
44
38
  fill: "#fff",
45
39
  d: "M-533-86H491v424H-533z"
46
40
  }))));
47
-
48
41
  exports.Arrow = Arrow;