@e1011/es-kit 1.5.2 → 1.5.4

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 (234) hide show
  1. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js +1 -1
  2. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -1
  3. package/dist/lib/cjs/src/core/utils/array.js +1 -1
  4. package/dist/lib/cjs/src/core/utils/array.js.map +1 -1
  5. package/dist/lib/cjs/src/core/utils/date.js +1 -1
  6. package/dist/lib/cjs/src/core/utils/date.js.map +1 -1
  7. package/dist/lib/cjs/src/core/utils/helpers/other.js +1 -1
  8. package/dist/lib/cjs/src/core/utils/helpers/other.js.map +1 -1
  9. package/dist/lib/cjs/src/core/utils/helpers/textValueOperations.js +1 -1
  10. package/dist/lib/cjs/src/core/utils/helpers/textValueOperations.js.map +1 -1
  11. package/dist/lib/cjs/src/index.js +1 -1
  12. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js +9 -10
  13. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -1
  14. package/dist/lib/esm/src/core/utils/array.js +2 -18
  15. package/dist/lib/esm/src/core/utils/array.js.map +1 -1
  16. package/dist/lib/esm/src/core/utils/date.js +38 -42
  17. package/dist/lib/esm/src/core/utils/date.js.map +1 -1
  18. package/dist/lib/esm/src/core/utils/helpers/other.js +24 -19
  19. package/dist/lib/esm/src/core/utils/helpers/other.js.map +1 -1
  20. package/dist/lib/esm/src/core/utils/helpers/textValueOperations.js +13 -14
  21. package/dist/lib/esm/src/core/utils/helpers/textValueOperations.js.map +1 -1
  22. package/dist/lib/esm/src/index.js +57 -59
  23. package/dist/lib/esm/src/index.js.map +1 -1
  24. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  25. package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts +0 -2
  26. package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts.map +1 -1
  27. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.d.ts.map +1 -1
  28. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.stories.d.ts.map +1 -1
  29. package/dist/types/src/core/utils/array.d.ts +2 -10
  30. package/dist/types/src/core/utils/array.d.ts.map +1 -1
  31. package/dist/types/src/core/utils/array.spec.d.ts +1 -1
  32. package/dist/types/src/core/utils/array.spec.d.ts.map +1 -1
  33. package/dist/types/src/core/utils/date.d.ts.map +1 -1
  34. package/dist/types/src/core/utils/helpers/other.d.ts +8 -3
  35. package/dist/types/src/core/utils/helpers/other.d.ts.map +1 -1
  36. package/dist/types/src/core/utils/helpers/textValueOperations.d.ts.map +1 -1
  37. package/dist/types/src/core/utils/keyExtractor.d.ts +1 -1
  38. package/dist/types/src/core/utils/keyExtractor.d.ts.map +1 -1
  39. package/dist/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
  40. package/dist/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  41. package/dist/utils/appState/peregrineMQ/peregrineMQ.types.js.map +1 -0
  42. package/dist/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  43. package/dist/utils/appState/store/store.vanillajs.js.map +1 -0
  44. package/dist/utils/appState/store/store.vanillajs.templates.js.map +1 -0
  45. package/dist/utils/array.js +2 -0
  46. package/dist/utils/array.js.map +1 -0
  47. package/dist/utils/date.js +2 -0
  48. package/dist/utils/date.js.map +1 -0
  49. package/dist/utils/esm/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.js +9 -10
  50. package/dist/utils/esm/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  51. package/dist/utils/esm/appState/peregrineMQ/peregrineMQ.types.js.map +1 -0
  52. package/dist/utils/esm/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  53. package/dist/utils/esm/appState/store/store.vanillajs.js.map +1 -0
  54. package/dist/utils/esm/appState/store/store.vanillajs.templates.js.map +1 -0
  55. package/dist/utils/esm/array.js +6 -0
  56. package/dist/utils/esm/array.js.map +1 -0
  57. package/dist/utils/esm/date.js +100 -0
  58. package/dist/utils/esm/date.js.map +1 -0
  59. package/dist/utils/esm/helpers/birthnumber.validator.js.map +1 -0
  60. package/dist/utils/esm/helpers/birthnumberCZSKvalidator.js.map +1 -0
  61. package/dist/utils/esm/helpers/cancelableDelayedFunction.js.map +1 -0
  62. package/dist/utils/esm/helpers/date.js.map +1 -0
  63. package/dist/utils/esm/helpers/deviceInfo.js.map +1 -0
  64. package/dist/utils/esm/helpers/emailMatcher.js.map +1 -0
  65. package/dist/utils/esm/helpers/file.js.map +1 -0
  66. package/dist/utils/esm/helpers/fileValidator.js.map +1 -0
  67. package/dist/utils/esm/helpers/objectOperations.js.map +1 -0
  68. package/dist/utils/esm/helpers/other.js +29 -0
  69. package/dist/utils/esm/helpers/other.js.map +1 -0
  70. package/dist/utils/esm/helpers/text.js.map +1 -0
  71. package/dist/utils/esm/helpers/textValueOperations.js +17 -0
  72. package/dist/utils/esm/helpers/textValueOperations.js.map +1 -0
  73. package/dist/utils/esm/helpers/ui.js.map +1 -0
  74. package/dist/utils/esm/helpers/valueOperations.js.map +1 -0
  75. package/dist/utils/esm/index.js +125 -0
  76. package/dist/utils/esm/{src/core/utils/index.js.map → index.js.map} +1 -1
  77. package/dist/utils/esm/keyExtractor.js.map +1 -0
  78. package/dist/utils/esm/webComponents/webComponent.utils.js.map +1 -0
  79. package/dist/utils/helpers/birthnumber.validator.js.map +1 -0
  80. package/dist/utils/helpers/birthnumberCZSKvalidator.js.map +1 -0
  81. package/dist/utils/helpers/cancelableDelayedFunction.js.map +1 -0
  82. package/dist/utils/helpers/date.js.map +1 -0
  83. package/dist/utils/helpers/deviceInfo.js.map +1 -0
  84. package/dist/utils/helpers/emailMatcher.js.map +1 -0
  85. package/dist/utils/helpers/file.js.map +1 -0
  86. package/dist/utils/helpers/fileValidator.js.map +1 -0
  87. package/dist/utils/helpers/objectOperations.js.map +1 -0
  88. package/dist/utils/helpers/other.js +2 -0
  89. package/dist/utils/helpers/other.js.map +1 -0
  90. package/dist/utils/helpers/text.js.map +1 -0
  91. package/dist/utils/helpers/textValueOperations.js +2 -0
  92. package/dist/utils/helpers/textValueOperations.js.map +1 -0
  93. package/dist/utils/helpers/ui.js.map +1 -0
  94. package/dist/utils/helpers/valueOperations.js.map +1 -0
  95. package/dist/utils/index.js +2 -0
  96. package/dist/utils/keyExtractor.js.map +1 -0
  97. package/dist/utils/webComponents/webComponent.utils.js.map +1 -0
  98. package/package.json +21 -5
  99. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js +0 -2
  100. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  101. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js +0 -2
  102. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
  103. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -2
  104. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
  105. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js +0 -2
  106. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
  107. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js +0 -2
  108. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
  109. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js +0 -7
  110. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  111. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js +0 -11
  112. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
  113. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js +0 -10
  114. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
  115. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js +0 -14
  116. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
  117. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js +0 -9
  118. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
  119. package/dist/ui/styles/generic.anims.css +0 -169
  120. package/dist/ui/styles/generic.anims.css.map +0 -1
  121. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js +0 -7
  122. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  123. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js +0 -11
  124. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
  125. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js +0 -10
  126. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
  127. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js +0 -14
  128. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
  129. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js +0 -9
  130. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
  131. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +0 -1
  132. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.types.js.map +0 -1
  133. package/dist/utils/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +0 -1
  134. package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.js.map +0 -1
  135. package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.templates.js.map +0 -1
  136. package/dist/utils/esm/src/core/utils/array.js +0 -22
  137. package/dist/utils/esm/src/core/utils/array.js.map +0 -1
  138. package/dist/utils/esm/src/core/utils/date.js +0 -104
  139. package/dist/utils/esm/src/core/utils/date.js.map +0 -1
  140. package/dist/utils/esm/src/core/utils/helpers/birthnumber.validator.js.map +0 -1
  141. package/dist/utils/esm/src/core/utils/helpers/birthnumberCZSKvalidator.js.map +0 -1
  142. package/dist/utils/esm/src/core/utils/helpers/cancelableDelayedFunction.js.map +0 -1
  143. package/dist/utils/esm/src/core/utils/helpers/date.js.map +0 -1
  144. package/dist/utils/esm/src/core/utils/helpers/deviceInfo.js.map +0 -1
  145. package/dist/utils/esm/src/core/utils/helpers/emailMatcher.js.map +0 -1
  146. package/dist/utils/esm/src/core/utils/helpers/file.js.map +0 -1
  147. package/dist/utils/esm/src/core/utils/helpers/fileValidator.js.map +0 -1
  148. package/dist/utils/esm/src/core/utils/helpers/objectOperations.js.map +0 -1
  149. package/dist/utils/esm/src/core/utils/helpers/other.js +0 -24
  150. package/dist/utils/esm/src/core/utils/helpers/other.js.map +0 -1
  151. package/dist/utils/esm/src/core/utils/helpers/text.js.map +0 -1
  152. package/dist/utils/esm/src/core/utils/helpers/textValueOperations.js +0 -18
  153. package/dist/utils/esm/src/core/utils/helpers/textValueOperations.js.map +0 -1
  154. package/dist/utils/esm/src/core/utils/helpers/ui.js.map +0 -1
  155. package/dist/utils/esm/src/core/utils/helpers/valueOperations.js.map +0 -1
  156. package/dist/utils/esm/src/core/utils/index.js +0 -127
  157. package/dist/utils/esm/src/core/utils/keyExtractor.js.map +0 -1
  158. package/dist/utils/esm/src/core/utils/webComponents/webComponent.utils.js.map +0 -1
  159. package/dist/utils/node_modules/uuid/dist/esm-browser/native.js +0 -2
  160. package/dist/utils/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  161. package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js +0 -2
  162. package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
  163. package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js +0 -2
  164. package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
  165. package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js +0 -2
  166. package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
  167. package/dist/utils/src/core/utils/appState/peregrineMQ/index.js +0 -2
  168. package/dist/utils/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
  169. package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js +0 -2
  170. package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +0 -1
  171. package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.types.js.map +0 -1
  172. package/dist/utils/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +0 -1
  173. package/dist/utils/src/core/utils/appState/store/store.vanillajs.js.map +0 -1
  174. package/dist/utils/src/core/utils/appState/store/store.vanillajs.templates.js.map +0 -1
  175. package/dist/utils/src/core/utils/array.js +0 -2
  176. package/dist/utils/src/core/utils/array.js.map +0 -1
  177. package/dist/utils/src/core/utils/date.js +0 -2
  178. package/dist/utils/src/core/utils/date.js.map +0 -1
  179. package/dist/utils/src/core/utils/helpers/birthnumber.validator.js.map +0 -1
  180. package/dist/utils/src/core/utils/helpers/birthnumberCZSKvalidator.js.map +0 -1
  181. package/dist/utils/src/core/utils/helpers/cancelableDelayedFunction.js.map +0 -1
  182. package/dist/utils/src/core/utils/helpers/date.js.map +0 -1
  183. package/dist/utils/src/core/utils/helpers/deviceInfo.js.map +0 -1
  184. package/dist/utils/src/core/utils/helpers/emailMatcher.js.map +0 -1
  185. package/dist/utils/src/core/utils/helpers/file.js.map +0 -1
  186. package/dist/utils/src/core/utils/helpers/fileValidator.js.map +0 -1
  187. package/dist/utils/src/core/utils/helpers/objectOperations.js.map +0 -1
  188. package/dist/utils/src/core/utils/helpers/other.js +0 -2
  189. package/dist/utils/src/core/utils/helpers/other.js.map +0 -1
  190. package/dist/utils/src/core/utils/helpers/text.js.map +0 -1
  191. package/dist/utils/src/core/utils/helpers/textValueOperations.js +0 -2
  192. package/dist/utils/src/core/utils/helpers/textValueOperations.js.map +0 -1
  193. package/dist/utils/src/core/utils/helpers/ui.js.map +0 -1
  194. package/dist/utils/src/core/utils/helpers/valueOperations.js.map +0 -1
  195. package/dist/utils/src/core/utils/index.js +0 -2
  196. package/dist/utils/src/core/utils/keyExtractor.js.map +0 -1
  197. package/dist/utils/src/core/utils/webComponents/webComponent.utils.js.map +0 -1
  198. /package/dist/utils/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.types.js +0 -0
  199. /package/dist/utils/{src/core/utils/appState → appState}/stateMachine/tiny-state-machine.base.js +0 -0
  200. /package/dist/utils/{src/core/utils/appState → appState}/store/store.vanillajs.js +0 -0
  201. /package/dist/utils/{src/core/utils/appState → appState}/store/store.vanillajs.templates.js +0 -0
  202. /package/dist/utils/esm/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.types.js +0 -0
  203. /package/dist/utils/esm/{src/core/utils/appState → appState}/stateMachine/tiny-state-machine.base.js +0 -0
  204. /package/dist/utils/esm/{src/core/utils/appState → appState}/store/store.vanillajs.js +0 -0
  205. /package/dist/utils/esm/{src/core/utils/appState → appState}/store/store.vanillajs.templates.js +0 -0
  206. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/birthnumber.validator.js +0 -0
  207. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/birthnumberCZSKvalidator.js +0 -0
  208. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/cancelableDelayedFunction.js +0 -0
  209. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/date.js +0 -0
  210. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/deviceInfo.js +0 -0
  211. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/emailMatcher.js +0 -0
  212. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/file.js +0 -0
  213. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/fileValidator.js +0 -0
  214. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/objectOperations.js +0 -0
  215. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/text.js +0 -0
  216. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/ui.js +0 -0
  217. /package/dist/utils/esm/{src/core/utils/helpers → helpers}/valueOperations.js +0 -0
  218. /package/dist/utils/esm/{src/core/utils/keyExtractor.js → keyExtractor.js} +0 -0
  219. /package/dist/utils/esm/{src/core/utils/webComponents → webComponents}/webComponent.utils.js +0 -0
  220. /package/dist/utils/{src/core/utils/helpers → helpers}/birthnumber.validator.js +0 -0
  221. /package/dist/utils/{src/core/utils/helpers → helpers}/birthnumberCZSKvalidator.js +0 -0
  222. /package/dist/utils/{src/core/utils/helpers → helpers}/cancelableDelayedFunction.js +0 -0
  223. /package/dist/utils/{src/core/utils/helpers → helpers}/date.js +0 -0
  224. /package/dist/utils/{src/core/utils/helpers → helpers}/deviceInfo.js +0 -0
  225. /package/dist/utils/{src/core/utils/helpers → helpers}/emailMatcher.js +0 -0
  226. /package/dist/utils/{src/core/utils/helpers → helpers}/file.js +0 -0
  227. /package/dist/utils/{src/core/utils/helpers → helpers}/fileValidator.js +0 -0
  228. /package/dist/utils/{src/core/utils/helpers → helpers}/objectOperations.js +0 -0
  229. /package/dist/utils/{src/core/utils/helpers → helpers}/text.js +0 -0
  230. /package/dist/utils/{src/core/utils/helpers → helpers}/ui.js +0 -0
  231. /package/dist/utils/{src/core/utils/helpers → helpers}/valueOperations.js +0 -0
  232. /package/dist/utils/{src/core/utils/index.js.map → index.js.map} +0 -0
  233. /package/dist/utils/{src/core/utils/keyExtractor.js → keyExtractor.js} +0 -0
  234. /package/dist/utils/{src/core/utils/webComponents → webComponents}/webComponent.utils.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"date.js","sources":["../../../../../../src/core/utils/date.ts"],"sourcesContent":["import dayjs, { UnitType } from 'dayjs'\nimport relativeTime from 'dayjs/plugin/relativeTime'\nimport updateLocale from 'dayjs/plugin/updateLocale'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\n\nexport type DateTimeFormat = {\n value: Date | string | number\n valueFormat?: string\n formatString?: string\n language?: string\n relativeTime?: Record<string, string>\n from?: boolean\n to?: boolean\n shouldSubtractDay?: boolean\n shouldAddDay?: boolean\n showPreffix?: boolean\n}\n\nconst relativeTimeConfig = {\n thresholds: [\n { l: 's', r: 1 },\n { l: 'm', r: 1 },\n { l: 'mm', r: 59, d: 'minute' },\n { l: 'h', r: 1 },\n { l: 'hh', r: 23, d: 'hour' },\n { l: 'd', r: 1 },\n { l: 'dd', r: 29, d: 'day' },\n { l: 'M', r: 1 },\n { l: 'MM', r: 11, d: 'month' },\n { l: 'y', r: 1 },\n { l: 'yy', d: 'year' },\n ],\n}\n\nconst relativeTimeEN = {\n future: 'in %s',\n past: '%s ago',\n s: 'now',\n m: 'now',\n mm: 'now',\n h: '1 hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days', // probably 'a week' instead?\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n}\n\nconst relativeTimeCZ = {\n future: 'za %s',\n past: '%s před',\n s: 'nyní',\n m: 'nyní',\n mm: 'nyní',\n h: '1 hodinu',\n hh: '%d hodiny',\n d: 'den',\n dd: '%d dny',\n M: 'měsíc',\n MM: '%d měsíci',\n y: 'rok',\n yy: '%d roky',\n}\n\ndayjs.extend(customParseFormat)\ndayjs.extend(relativeTime, relativeTimeConfig)\ndayjs.extend(updateLocale)\n\ndayjs.updateLocale('cz', {\n relativeTime: {\n ...relativeTimeCZ,\n },\n})\ndayjs.updateLocale('en', {\n relativeTime: {\n ...relativeTimeEN,\n },\n})\n\nexport const getTimeFromNowOriginal = (value: string, language: string): string => {\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n return dayjs(value, undefined).fromNow(true)\n}\n\nexport const getTimeFromNow = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, from: true, value })\n\nexport const getTimeTo = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, to: true, value })\n\nexport const getDateTime = ({\n value,\n valueFormat,\n formatString,\n language = 'en',\n relativeTime,\n from,\n to,\n shouldAddDay = false,\n shouldSubtractDay = false,\n showPreffix = false,\n}: DateTimeFormat): string => {\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n\n dayjs.locale(language)\n\n if (!from && to) {\n const dateTo = dayjs(value, valueFormat || undefined).add(shouldAddDay ? 1 : 0, 'day')\n\n return dayjs(new Date()).locale(language).to(dateTo, !showPreffix)\n }\n\n if (from && !to) {\n const dateTo = dayjs(value, valueFormat || undefined).subtract(shouldSubtractDay ? 1 : 0, 'day')\n\n return dayjs(dateTo, valueFormat || undefined).locale(language).fromNow(!showPreffix)\n }\n\n return dayjs(value, valueFormat || undefined).locale(language).format(formatString)\n}\n\nexport const dateRangeFormat = (\n dateFrom: Date, dateTo: Date, shortFormat: string, longFormat: string,\n delimiter = ' - ', datePeriod: UnitType = 'month',\n) : string => {\n const dayJSFrom = dayjs(dateFrom)\n const dayJSTo = dayjs(dateTo)\n\n const diffMonths = dayJSFrom.diff(dayJSTo, datePeriod)\n\n return `${dayJSFrom.format(diffMonths === 0 ? shortFormat : longFormat)}${delimiter}${dayJSTo.format(longFormat)}`\n}\n"],"names":["relativeTimeConfig","relativeTimeEN","relativeTimeCZ","dayjs","customParseFormat","relativeTime","updateLocale","getTimeFromNowOriginal","value","language","getTimeFromNow","valueFormat","getDateTime","getTimeTo","formatString","from","to","shouldAddDay","shouldSubtractDay","showPreffix","dateTo","dateRangeFormat","dateFrom","shortFormat","longFormat","delimiter","datePeriod","dayJSFrom","dayJSTo","diffMonths"],"mappings":"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"}
1
+ {"version":3,"file":"date.js","sources":["../../../../../../src/core/utils/date.ts"],"sourcesContent":["import dayjs, { UnitType } from 'dayjs'\nimport relativeTime from 'dayjs/plugin/relativeTime'\nimport updateLocale from 'dayjs/plugin/updateLocale'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\n\nexport type DateTimeFormat = {\n value: Date | string | number\n valueFormat?: string\n formatString?: string\n language?: string\n relativeTime?: Record<string, string>\n from?: boolean\n to?: boolean\n shouldSubtractDay?: boolean\n shouldAddDay?: boolean\n showPreffix?: boolean\n}\n\nconst relativeTimeConfig = {\n thresholds: [\n { l: 's', r: 1 },\n { l: 'm', r: 1 },\n { l: 'mm', r: 59, d: 'minute' },\n { l: 'h', r: 1 },\n { l: 'hh', r: 23, d: 'hour' },\n { l: 'd', r: 1 },\n { l: 'dd', r: 29, d: 'day' },\n { l: 'M', r: 1 },\n { l: 'MM', r: 11, d: 'month' },\n { l: 'y', r: 1 },\n { l: 'yy', d: 'year' },\n ],\n}\n\nconst relativeTimeEN = {\n future: 'in %s',\n past: '%s ago',\n s: 'now',\n m: 'now',\n mm: 'now',\n h: '1 hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days', // probably 'a week' instead?\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n}\n\nconst relativeTimeCZ = {\n future: 'za %s',\n past: '%s před',\n s: 'nyní',\n m: 'nyní',\n mm: 'nyní',\n h: '1 hodinu',\n hh: '%d hodiny',\n d: 'den',\n dd: '%d dny',\n M: 'měsíc',\n MM: '%d měsíci',\n y: 'rok',\n yy: '%d roky',\n}\n\nlet _dayjsInitialized = false\nfunction initDayjs() {\n if (_dayjsInitialized) return\n _dayjsInitialized = true\n dayjs.extend(customParseFormat)\n dayjs.extend(relativeTime, relativeTimeConfig)\n dayjs.extend(updateLocale)\n dayjs.updateLocale('cz', {\n relativeTime: { ...relativeTimeCZ },\n })\n dayjs.updateLocale('en', {\n relativeTime: { ...relativeTimeEN },\n })\n}\n\nexport const getTimeFromNowOriginal = (value: string, language: string): string => {\n initDayjs()\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n return dayjs(value, undefined).fromNow(true)\n}\n\nexport const getTimeFromNow = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, from: true, value })\n\nexport const getTimeTo = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, to: true, value })\n\nexport const getDateTime = ({\n value,\n valueFormat,\n formatString,\n language = 'en',\n relativeTime,\n from,\n to,\n shouldAddDay = false,\n shouldSubtractDay = false,\n showPreffix = false,\n}: DateTimeFormat): string => {\n initDayjs()\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n\n dayjs.locale(language)\n\n if (!from && to) {\n const dateTo = dayjs(value, valueFormat || undefined).add(shouldAddDay ? 1 : 0, 'day')\n\n return dayjs(new Date()).locale(language).to(dateTo, !showPreffix)\n }\n\n if (from && !to) {\n const dateTo = dayjs(value, valueFormat || undefined).subtract(shouldSubtractDay ? 1 : 0, 'day')\n\n return dayjs(dateTo, valueFormat || undefined).locale(language).fromNow(!showPreffix)\n }\n\n return dayjs(value, valueFormat || undefined).locale(language).format(formatString)\n}\n\nexport const dateRangeFormat = (\n dateFrom: Date, dateTo: Date, shortFormat: string, longFormat: string,\n delimiter = ' - ', datePeriod: UnitType = 'month',\n) : string => {\n initDayjs()\n const dayJSFrom = dayjs(dateFrom)\n const dayJSTo = dayjs(dateTo)\n\n const diffMonths = dayJSFrom.diff(dayJSTo, datePeriod)\n\n return `${dayJSFrom.format(diffMonths === 0 ? shortFormat : longFormat)}${delimiter}${dayJSTo.format(longFormat)}`\n}\n"],"names":["relativeTimeConfig","relativeTimeEN","relativeTimeCZ","_dayjsInitialized","initDayjs","dayjs","customParseFormat","relativeTime","updateLocale","getTimeFromNowOriginal","value","language","getTimeFromNow","valueFormat","getDateTime","getTimeTo","formatString","from","to","shouldAddDay","shouldSubtractDay","showPreffix","dateTo","dateRangeFormat","dateFrom","shortFormat","longFormat","delimiter","datePeriod","dayJSFrom","dayJSTo","diffMonths"],"mappings":"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"}
@@ -1,24 +1,29 @@
1
- import { memoizeWith as c, identity as l } from "ramda";
2
- const a = (t, o, n) => t ? o : n, d = c(l), f = c((...t) => JSON.stringify(t)), T = (t = (...o) => JSON.stringify(o)) => c(t), z = (t, o = 100, n = !1) => {
3
- let e;
4
- return function(...s) {
5
- const i = this, r = () => {
6
- clearTimeout(e), e = null, n || t.apply(i, s);
7
- }, m = n && !e;
8
- clearTimeout(e), e = setTimeout(r, o), m && t.apply(i, s);
1
+ const y = (t, o, e) => t ? o : e, s = (t) => (o) => {
2
+ const e = {};
3
+ return (...n) => {
4
+ const c = t(...n);
5
+ return c in e || (e[c] = o(...n)), e[c];
9
6
  };
10
- }, x = (t) => new Promise((o) => {
7
+ }, a = s((...t) => String(t[0])), p = s((...t) => JSON.stringify(t)), f = (t = (...o) => JSON.stringify(o)) => s(t), T = (t, o = 100, e = !1) => {
8
+ let n;
9
+ return function(...i) {
10
+ const r = this, u = () => {
11
+ clearTimeout(n), n = null, e || t.apply(r, i);
12
+ }, l = e && !n;
13
+ clearTimeout(n), n = setTimeout(u, o), l && t.apply(r, i);
14
+ };
15
+ }, d = (t) => new Promise((o) => {
11
16
  setTimeout(() => o(`delayed: ${t}`), t);
12
- }), u = (async () => {
13
- }).constructor, N = (t) => t.constructor === u.prototype.constructor;
17
+ }), m = (async () => {
18
+ }).constructor, z = (t) => t.constructor === m.prototype.constructor;
14
19
  export {
15
- u as AsyncFunctionTemplate,
16
- z as debounce,
17
- x as delay,
18
- N as isFunctionAsync,
19
- d as memoize,
20
- f as memoizeComplex,
21
- T as memoizer,
22
- a as nestedTernary
20
+ m as AsyncFunctionTemplate,
21
+ T as debounce,
22
+ d as delay,
23
+ z as isFunctionAsync,
24
+ a as memoize,
25
+ p as memoizeComplex,
26
+ f as memoizer,
27
+ y as nestedTernary
23
28
  };
24
29
  //# sourceMappingURL=other.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"other.js","sources":["../../../../../../../src/core/utils/helpers/other.ts"],"sourcesContent":["import { memoizeWith, identity } from 'ramda'\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const nestedTernary = (condition: boolean, branchA: any, branchB: any): any => (condition ? branchA : branchB)\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport const memoize = memoizeWith(identity)\n\n// Beware fellow developer, this is to be used with caution and precison\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport const memoizeComplex = memoizeWith((...args) => JSON.stringify(args))\n\nexport const memoizer\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n= (memoizeFunc = (...args): string => JSON.stringify(args)): ReturnType<typeof memoizeWith> => memoizeWith(memoizeFunc)\n\nexport const debounce = (func: () => void, wait = 100, immediate = false): () => void => {\n let timeout: any\n\n return function debounced(...args) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const context: unknown = this\n const later = (): void => {\n clearTimeout(timeout)\n timeout = null\n if (!immediate) {\n func.apply(context, args)\n }\n }\n const callNow = immediate && !timeout\n\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) {\n func.apply(context, args)\n }\n }\n}\n\nexport const delay = (delay: number): Promise<string> => new Promise((resolve) => {\n setTimeout(() => resolve(`delayed: ${delay}`), delay)\n})\n\nexport const AsyncFunctionTemplate = (async (): Promise<void> => {}).constructor\n\nexport const isFunctionAsync = (\n func: (...args: any[]) => unknown,\n): boolean => func.constructor === AsyncFunctionTemplate.prototype.constructor\n"],"names":["nestedTernary","condition","branchA","branchB","memoize","memoizeWith","identity","memoizeComplex","args","memoizer","memoizeFunc","debounce","func","wait","immediate","timeout","context","later","callNow","delay","resolve","AsyncFunctionTemplate","isFunctionAsync"],"mappings":";AAGO,MAAMA,IAAgB,CAACC,GAAoBC,GAAcC,MAAuBF,IAAYC,IAAUC,GAIhGC,IAAUC,EAAYC,CAAQ,GAK9BC,IAAiBF,EAAY,IAAIG,MAAS,KAAK,UAAUA,CAAI,CAAC,GAE9DC,IAGX,CAACC,IAAc,IAAIF,MAAiB,KAAK,UAAUA,CAAI,MAAsCH,EAAYK,CAAW,GAEzGC,IAAW,CAACC,GAAkBC,IAAO,KAAKC,IAAY,OAAsB;AACvF,MAAIC;AAEJ,SAAO,YAAsBP,GAAM;AAIjC,UAAMQ,IAAmB,MACnBC,IAAQ,MAAY;AACxB,mBAAaF,CAAO,GACpBA,IAAU,MACLD,KACHF,EAAK,MAAMI,GAASR,CAAI;AAAA,IAE5B,GACMU,IAAUJ,KAAa,CAACC;AAE9B,iBAAaA,CAAO,GACpBA,IAAU,WAAWE,GAAOJ,CAAI,GAC5BK,KACFN,EAAK,MAAMI,GAASR,CAAI;AAAA,EAE5B;AACF,GAEaW,IAAQ,CAACA,MAAmC,IAAI,QAAQ,CAACC,MAAY;AAChF,aAAW,MAAMA,EAAQ,YAAYD,CAAK,EAAE,GAAGA,CAAK;AACtD,CAAC,GAEYE,KAAyB,YAA2B;AAAC,GAAG,aAExDC,IAAkB,CAC7BV,MACYA,EAAK,gBAAgBS,EAAsB,UAAU;"}
1
+ {"version":3,"file":"other.js","sources":["../../../../../../../src/core/utils/helpers/other.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const nestedTernary = (condition: boolean, branchA: any, branchB: any): any => (condition ? branchA : branchB)\n\n/**\n * Creates a memoized version of a function using a custom key function.\n * Replaces ramda's memoizeWith — same API contract.\n */\nconst memoizeWith = (keyFn: (...args: any[]) => string) =>\n <T extends (...args: any[]) => any>(fn: T): T => {\n const cache: Record<string, any> = {}\n return ((...args: any[]) => {\n const key = keyFn(...args)\n if (!(key in cache)) {\n cache[key] = fn(...args)\n }\n return cache[key]\n }) as unknown as T\n }\n\nexport const memoize = memoizeWith((...args) => String(args[0]))\n\n// Beware fellow developer, this is to be used with caution and precison\nexport const memoizeComplex = memoizeWith((...args) => JSON.stringify(args))\n\nexport const memoizer\n= (memoizeFunc = (...args: any[]): string => JSON.stringify(args)) => memoizeWith(memoizeFunc)\n\nexport const debounce = (func: () => void, wait = 100, immediate = false): () => void => {\n let timeout: any\n\n return function debounced(...args) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const context: unknown = this\n const later = (): void => {\n clearTimeout(timeout)\n timeout = null\n if (!immediate) {\n func.apply(context, args)\n }\n }\n const callNow = immediate && !timeout\n\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) {\n func.apply(context, args)\n }\n }\n}\n\nexport const delay = (delay: number): Promise<string> => new Promise((resolve) => {\n setTimeout(() => resolve(`delayed: ${delay}`), delay)\n})\n\nexport const AsyncFunctionTemplate = (async (): Promise<void> => {}).constructor\n\nexport const isFunctionAsync = (\n func: (...args: any[]) => unknown,\n): boolean => func.constructor === AsyncFunctionTemplate.prototype.constructor\n"],"names":["nestedTernary","condition","branchA","branchB","memoizeWith","keyFn","fn","cache","args","key","memoize","memoizeComplex","memoizer","memoizeFunc","debounce","func","wait","immediate","timeout","context","later","callNow","delay","resolve","AsyncFunctionTemplate","isFunctionAsync"],"mappings":"AACO,MAAMA,IAAgB,CAACC,GAAoBC,GAAcC,MAAuBF,IAAYC,IAAUC,GAMvGC,IAAc,CAACC,MACnB,CAAoCC,MAAa;AAC/C,QAAMC,IAA6B,CAAA;AACnC,SAAQ,IAAIC,MAAgB;AAC1B,UAAMC,IAAMJ,EAAM,GAAGG,CAAI;AACzB,WAAMC,KAAOF,MACXA,EAAME,CAAG,IAAIH,EAAG,GAAGE,CAAI,IAElBD,EAAME,CAAG;AAAA,EAClB;AACF,GAEWC,IAAUN,EAAY,IAAII,MAAS,OAAOA,EAAK,CAAC,CAAC,CAAC,GAGlDG,IAAiBP,EAAY,IAAII,MAAS,KAAK,UAAUA,CAAI,CAAC,GAE9DI,IACX,CAACC,IAAc,IAAIL,MAAwB,KAAK,UAAUA,CAAI,MAAMJ,EAAYS,CAAW,GAEhFC,IAAW,CAACC,GAAkBC,IAAO,KAAKC,IAAY,OAAsB;AACvF,MAAIC;AAEJ,SAAO,YAAsBV,GAAM;AAIjC,UAAMW,IAAmB,MACnBC,IAAQ,MAAY;AACxB,mBAAaF,CAAO,GACpBA,IAAU,MACLD,KACHF,EAAK,MAAMI,GAASX,CAAI;AAAA,IAE5B,GACMa,IAAUJ,KAAa,CAACC;AAE9B,iBAAaA,CAAO,GACpBA,IAAU,WAAWE,GAAOJ,CAAI,GAC5BK,KACFN,EAAK,MAAMI,GAASX,CAAI;AAAA,EAE5B;AACF,GAEac,IAAQ,CAACA,MAAmC,IAAI,QAAQ,CAACC,MAAY;AAChF,aAAW,MAAMA,EAAQ,YAAYD,CAAK,EAAE,GAAGA,CAAK;AACtD,CAAC,GAEYE,KAAyB,YAA2B;AAAC,GAAG,aAExDC,IAAkB,CAC7BV,MACYA,EAAK,gBAAgBS,EAAsB,UAAU;"}
@@ -1,18 +1,17 @@
1
- import { toLower as t, toUpper as l } from "ramda";
2
- const i = (e) => e ? t(e) : "", p = (e) => e ? l(e) : "", u = (e) => e ? e.toString().replace(/ /g, "") : "", f = (e) => e.slice((e.lastIndexOf(".") - 1 >>> 0) + 2), r = (e) => {
3
- var o, n;
4
- return (n = (o = e == null ? void 0 : e.normalize("NFD")) == null ? void 0 : o.replace) == null ? void 0 : n.call(o, /[\u0300-\u036f]/g, "");
5
- }, g = (e, o, n = !0, c = !0) => !o || !e || !o.trim() || !e.trim() ? !1 : n && c ? r(o.toLowerCase()).includes(r(e.toLowerCase())) : n ? o.toLowerCase().includes(e.toLowerCase()) : c ? r(o).includes(r(e)) : o.includes(e), L = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), w = (e, o = 0, n = "...") => !o || e.length <= o ? e : `${e.substr(0, o)}${n}`, a = (e) => e && r(e == null ? void 0 : e.toLocaleLowerCase().replaceAll(/\s/g, "-").replaceAll(/["]/g, "")), C = (e) => e && encodeURIComponent(a(e));
1
+ const a = (e) => e ? e.toLowerCase() : "", l = (e) => e ? e.toUpperCase() : "", s = (e) => e ? e.toString().replace(/ /g, "") : "", i = (e) => e.slice((e.lastIndexOf(".") - 1 >>> 0) + 2), r = (e) => {
2
+ var n, o;
3
+ return (o = (n = e == null ? void 0 : e.normalize("NFD")) == null ? void 0 : n.replace) == null ? void 0 : o.call(n, /[\u0300-\u036f]/g, "");
4
+ }, u = (e, n, o = !0, c = !0) => !n || !e || !n.trim() || !e.trim() ? !1 : o && c ? r(n.toLowerCase()).includes(r(e.toLowerCase())) : o ? n.toLowerCase().includes(e.toLowerCase()) : c ? r(n).includes(r(e)) : n.includes(e), p = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), g = (e, n = 0, o = "...") => !n || e.length <= n ? e : `${e.substr(0, n)}${o}`, t = (e) => e && r(e == null ? void 0 : e.toLocaleLowerCase().replaceAll(/\s/g, "-").replaceAll(/["]/g, "")), f = (e) => e && encodeURIComponent(t(e));
6
5
  export {
7
- L as escapeRegExp,
8
- f as fileNameExt,
9
- g as findStringInText,
6
+ p as escapeRegExp,
7
+ i as fileNameExt,
8
+ u as findStringInText,
10
9
  r as normalizeString,
11
- u as removeWhitespaces,
12
- a as sanitizeId,
13
- C as sanitizePathId,
14
- i as toLowerCase,
15
- p as toUpperCase,
16
- w as truncateText
10
+ s as removeWhitespaces,
11
+ t as sanitizeId,
12
+ f as sanitizePathId,
13
+ a as toLowerCase,
14
+ l as toUpperCase,
15
+ g as truncateText
17
16
  };
18
17
  //# sourceMappingURL=textValueOperations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textValueOperations.js","sources":["../../../../../../../src/core/utils/helpers/textValueOperations.ts"],"sourcesContent":["import {\n toLower, toUpper,\n} from 'ramda'\n\n// todo memoize\nexport const toLowerCase = (str: string | number): string | number => (str ? toLower(str as string) as string : '')\n\n// todo memoize\nexport const toUpperCase = (str: string): string => (str ? toUpper(str) as string : '')\n\n// todo memoize\nexport const removeWhitespaces = (str: string | number): string | number => (str ? str.toString()\n .replace(/ /g, '') as string : '')\n\n// eslint-disable-next-line no-bitwise\nexport const fileNameExt = (fileName: string): string => fileName.slice((fileName.lastIndexOf('.') - 1 >>> 0) + 2)\n\nexport const normalizeString = (str: string): string => str?.normalize('NFD')?.replace?.(/[\\u0300-\\u036f]/g, '')\n\nexport const findStringInText = (str: string, text: string, ci = true, norm = true): boolean => {\n if (!text || !str || !text.trim() || !str.trim()) {\n return false\n }\n\n if (ci && norm) {\n return normalizeString(text.toLowerCase()).includes(normalizeString(str.toLowerCase()))\n }\n\n if (ci) {\n return text.toLowerCase().includes(str.toLowerCase())\n }\n\n if (norm) {\n return normalizeString(text).includes(normalizeString(str))\n }\n\n return text.includes(str)\n}\n\n// eslint-disable-next-line no-useless-escape\nexport const escapeRegExp = (str: string): string => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&')\n\nexport const truncateText = (text: string, maxNumChars = 0, indicator = '...'): string => {\n if (!maxNumChars || text.length <= maxNumChars) {\n return text\n }\n return `${text.substr(0, maxNumChars)}${indicator}`\n}\n\nexport const sanitizeId\n = (id: string): string => id && normalizeString(id?.toLocaleLowerCase().replaceAll(/\\s/g, '-').replaceAll(/[\"]/g, ''))\n\nexport const sanitizePathId\n = (id: string): string => id && encodeURIComponent(sanitizeId(id))\n"],"names":["toLowerCase","str","toLower","toUpperCase","toUpper","removeWhitespaces","fileNameExt","fileName","normalizeString","_b","_a","findStringInText","text","ci","norm","escapeRegExp","truncateText","maxNumChars","indicator","sanitizeId","id","sanitizePathId"],"mappings":";AAKO,MAAMA,IAAc,CAACC,MAA2CA,IAAMC,EAAQD,CAAa,IAAc,IAGnGE,IAAc,CAACF,MAAyBA,IAAMG,EAAQH,CAAG,IAAc,IAGvEI,IAAoB,CAACJ,MAA2CA,IAAMA,EAAI,WACpF,QAAQ,MAAM,EAAE,IAAc,IAGpBK,IAAc,CAACC,MAA6BA,EAAS,OAAOA,EAAS,YAAY,GAAG,IAAI,MAAM,KAAK,CAAC,GAEpGC,IAAkB,CAACP,MAAA;;AAAwB,UAAAQ,KAAAC,IAAAT,KAAA,gBAAAA,EAAK,UAAU,WAAf,gBAAAS,EAAuB,YAAvB,gBAAAD,EAAA,KAAAC,GAAiC,oBAAoB;AAAA,GAEhGC,IAAmB,CAACV,GAAaW,GAAcC,IAAK,IAAMC,IAAO,OACxE,CAACF,KAAQ,CAACX,KAAO,CAACW,EAAK,UAAU,CAACX,EAAI,SACjC,KAGLY,KAAMC,IACDN,EAAgBI,EAAK,aAAa,EAAE,SAASJ,EAAgBP,EAAI,YAAA,CAAa,CAAC,IAGpFY,IACKD,EAAK,YAAA,EAAc,SAASX,EAAI,aAAa,IAGlDa,IACKN,EAAgBI,CAAI,EAAE,SAASJ,EAAgBP,CAAG,CAAC,IAGrDW,EAAK,SAASX,CAAG,GAIbc,IAAe,CAACd,MAAwBA,EAAI,QAAQ,uCAAuC,MAAM,GAEjGe,IAAe,CAACJ,GAAcK,IAAc,GAAGC,IAAY,UAClE,CAACD,KAAeL,EAAK,UAAUK,IAC1BL,IAEF,GAAGA,EAAK,OAAO,GAAGK,CAAW,CAAC,GAAGC,CAAS,IAGtCC,IACT,CAACC,MAAuBA,KAAMZ,EAAgBY,KAAA,gBAAAA,EAAI,oBAAoB,WAAW,OAAO,KAAK,WAAW,QAAQ,GAAG,GAE1GC,IACT,CAACD,MAAuBA,KAAM,mBAAmBD,EAAWC,CAAE,CAAC;"}
1
+ {"version":3,"file":"textValueOperations.js","sources":["../../../../../../../src/core/utils/helpers/textValueOperations.ts"],"sourcesContent":["// todo memoize\nexport const toLowerCase = (str: string | number): string | number => (str ? (str as string).toLowerCase() : '')\n\n// todo memoize\nexport const toUpperCase = (str: string): string => (str ? str.toUpperCase() : '')\n\n// todo memoize\nexport const removeWhitespaces = (str: string | number): string | number => (str ? str.toString()\n .replace(/ /g, '') as string : '')\n\n// eslint-disable-next-line no-bitwise\nexport const fileNameExt = (fileName: string): string => fileName.slice((fileName.lastIndexOf('.') - 1 >>> 0) + 2)\n\nexport const normalizeString = (str: string): string => str?.normalize('NFD')?.replace?.(/[\\u0300-\\u036f]/g, '')\n\nexport const findStringInText = (str: string, text: string, ci = true, norm = true): boolean => {\n if (!text || !str || !text.trim() || !str.trim()) {\n return false\n }\n\n if (ci && norm) {\n return normalizeString(text.toLowerCase()).includes(normalizeString(str.toLowerCase()))\n }\n\n if (ci) {\n return text.toLowerCase().includes(str.toLowerCase())\n }\n\n if (norm) {\n return normalizeString(text).includes(normalizeString(str))\n }\n\n return text.includes(str)\n}\n\n// eslint-disable-next-line no-useless-escape\nexport const escapeRegExp = (str: string): string => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&')\n\nexport const truncateText = (text: string, maxNumChars = 0, indicator = '...'): string => {\n if (!maxNumChars || text.length <= maxNumChars) {\n return text\n }\n return `${text.substr(0, maxNumChars)}${indicator}`\n}\n\nexport const sanitizeId\n = (id: string): string => id && normalizeString(id?.toLocaleLowerCase().replaceAll(/\\s/g, '-').replaceAll(/[\"]/g, ''))\n\nexport const sanitizePathId\n = (id: string): string => id && encodeURIComponent(sanitizeId(id))\n"],"names":["toLowerCase","str","toUpperCase","removeWhitespaces","fileNameExt","fileName","normalizeString","_a","_b","findStringInText","text","ci","norm","escapeRegExp","truncateText","maxNumChars","indicator","sanitizeId","id","sanitizePathId"],"mappings":"AACO,MAAMA,IAAc,CAACC,MAA2CA,IAAOA,EAAe,gBAAgB,IAGhGC,IAAc,CAACD,MAAyBA,IAAMA,EAAI,gBAAgB,IAGlEE,IAAoB,CAACF,MAA2CA,IAAMA,EAAI,WACpF,QAAQ,MAAM,EAAE,IAAc,IAGpBG,IAAc,CAACC,MAA6BA,EAAS,OAAOA,EAAS,YAAY,GAAG,IAAI,MAAM,KAAK,CAAC,GAEpGC,IAAkB,CAACL,MAAA;AAZzB,MAAAM,GAAAC;AAYiD,UAAAA,KAAAD,IAAAN,KAAA,gBAAAA,EAAK,UAAU,WAAf,gBAAAM,EAAuB,YAAvB,gBAAAC,EAAA,KAAAD,GAAiC,oBAAoB;AAAA,GAEhGE,IAAmB,CAACR,GAAaS,GAAcC,IAAK,IAAMC,IAAO,OACxE,CAACF,KAAQ,CAACT,KAAO,CAACS,EAAK,UAAU,CAACT,EAAI,SACjC,KAGLU,KAAMC,IACDN,EAAgBI,EAAK,aAAa,EAAE,SAASJ,EAAgBL,EAAI,YAAA,CAAa,CAAC,IAGpFU,IACKD,EAAK,YAAA,EAAc,SAAST,EAAI,aAAa,IAGlDW,IACKN,EAAgBI,CAAI,EAAE,SAASJ,EAAgBL,CAAG,CAAC,IAGrDS,EAAK,SAAST,CAAG,GAIbY,IAAe,CAACZ,MAAwBA,EAAI,QAAQ,uCAAuC,MAAM,GAEjGa,IAAe,CAACJ,GAAcK,IAAc,GAAGC,IAAY,UAClE,CAACD,KAAeL,EAAK,UAAUK,IAC1BL,IAEF,GAAGA,EAAK,OAAO,GAAGK,CAAW,CAAC,GAAGC,CAAS,IAGtCC,IACT,CAACC,MAAuBA,KAAMZ,EAAgBY,KAAA,gBAAAA,EAAI,oBAAoB,WAAW,OAAO,KAAK,WAAW,QAAQ,GAAG,GAE1GC,IACT,CAACD,MAAuBA,KAAM,mBAAmBD,EAAWC,CAAE,CAAC;"}
@@ -3,12 +3,12 @@ import { AnchorLink as i } from "./core/ui/components/atoms/text/anchor-link/Anc
3
3
  import { ArrayFirst as p, ArrayLast as l } from "./core/utils/array.js";
4
4
  import { AsyncFunctionTemplate as f, debounce as x, delay as c, isFunctionAsync as u, memoize as d, memoizeComplex as T, memoizer as g, nestedTernary as S } from "./core/utils/helpers/other.js";
5
5
  import { BoxLayout as C, LayoutBox as h } from "./core/ui/components/container/layoutBox/LayoutBox.js";
6
- import { Button as I, IconButton as P, keys as A } from "./core/ui/components/atoms/button/Button.js";
6
+ import { Button as P, IconButton as A, keys as I } from "./core/ui/components/atoms/button/Button.js";
7
7
  import { CollapsibleContainer as F } from "./core/ui/components/container/CollapsibleContainer.js";
8
- import { DATE_FORMAT as D, DATE_TIME_FORMAT as L, formatDate as b, formatDateTime as z, formatDateToTimestamp as N, getDate as B } from "./core/utils/helpers/date.js";
8
+ import { DATE_FORMAT as M, DATE_TIME_FORMAT as L, formatDate as b, formatDateTime as z, formatDateToTimestamp as N, getDate as B } from "./core/utils/helpers/date.js";
9
9
  import { DefaultErrorComponent as O, ErrorBoundary as R } from "./core/ui/components/error/ErrorBoundary.js";
10
10
  import { DividerHorizontal as H, DividerLine as w, DividerVertical as _ } from "./core/ui/components/dividers/DividerLine.js";
11
- import { ESIcon as j, ESIconBase as J } from "./core/ui/components/icon/IconWC.js";
11
+ import { ESIcon as Q, ESIconBase as J } from "./core/ui/components/icon/IconWC.js";
12
12
  import { Field as q, Select as G, setIconColor as K, setIconComponent as U } from "./core/ui/components/field/Field.js";
13
13
  import { FlowLayout as Y } from "./core/ui/components/molecules/layouts/FlowLayout.js";
14
14
  import { Headline as $, HeadlineSecondary as ee, HeadlineTertiary as re } from "./core/ui/components/atoms/text/Headline.js";
@@ -18,14 +18,14 @@ import { LayoutDirection as ne } from "./core/ui/components/container/layoutBox/
18
18
  import { LazyComponent as le, PendingBoundary as se, createLazyModule as fe, createLazyModuleWithStore as xe, wrapPromise as ce } from "./core/ui/components/container/lazyComponent/LazyComponent.js";
19
19
  import { Link as de } from "./core/ui/components/atoms/text/Link.js";
20
20
  import { NON_EXISTENT_CHANNEL as ge } from "./core/utils/appState/peregrineMQ/peregrineMQ.types.js";
21
- import { Operation as ye, decrementValue as Ce, incerementValue as he, numberDefined as ve, numberOperation as Ie, restrictNumberInLimits as Pe, setValue as Ae } from "./core/utils/helpers/valueOperations.js";
22
- import { Paragraph as Fe, ParagraphBold as Me, ParagraphBoldSmall as De, ParagraphSmall as Le } from "./core/ui/components/atoms/text/Paragraph.js";
21
+ import { Operation as ye, decrementValue as Ce, incerementValue as he, numberDefined as ve, numberOperation as Pe, restrictNumberInLimits as Ae, setValue as Ie } from "./core/utils/helpers/valueOperations.js";
22
+ import { Paragraph as Fe, ParagraphBold as De, ParagraphBoldSmall as Me, ParagraphSmall as Le } from "./core/ui/components/atoms/text/Paragraph.js";
23
23
  import { PeregrineMQ as ze, PeregrineMQClearError as Ne } from "./core/utils/appState/peregrineMQ/peregrineMQ.js";
24
24
  import { Popover as Ve } from "./core/ui/components/molecules/popover/PopoverLite.js";
25
25
  import { PopoverPlacement as Re } from "./core/ui/components/molecules/popover/popover.types.js";
26
26
  import { Popup as He } from "./core/ui/components/molecules/popup/Popup.js";
27
27
  import { PopupAnimateVariant as _e } from "./core/ui/components/molecules/popup/popup.types.js";
28
- import { ResizableContainer as je } from "./core/ui/components/container/ResizableContainer.js";
28
+ import { ResizableContainer as Qe } from "./core/ui/components/container/ResizableContainer.js";
29
29
  import { Tag as We } from "./core/ui/components/atoms/tag/Tag.js";
30
30
  import { TagVariant as Ge } from "./core/ui/components/atoms/tag/tag.types.js";
31
31
  import { Text as Ue } from "./core/ui/components/atoms/text/Text.js";
@@ -34,9 +34,9 @@ import { TinyStateMachine as er, TinyStateMachineEvent as rr, TinyStateMachineEv
34
34
  import { Toggle as nr } from "./core/ui/components/atoms/toggle/Toggle.js";
35
35
  import { Tooltip as lr } from "./core/ui/components/molecules/popover/Tooltip.js";
36
36
  import { anchorClick as fr, classNames as xr, generateId as cr, getBaseThemes as ur, mapSerReplacer as dr, noop as Tr, observeThemePreference as gr, parseProps as Sr, setThemeClassNames as yr, switchColorTheme as Cr, updateColorTheme as hr } from "./core/utils/helpers/ui.js";
37
- import { arrayToObjectTree as Ir, chunkArray as Pr, duplicatesInArray as Ar, formatJsonString as Er, formatObj as Fr, formatObj2 as Mr } from "./core/utils/helpers/objectOperations.js";
37
+ import { arrayToObjectTree as Pr, chunkArray as Ar, duplicatesInArray as Ir, formatJsonString as Er, formatObj as Fr, formatObj2 as Dr } from "./core/utils/helpers/objectOperations.js";
38
38
  import { calculateColors as Lr, calculatePercColor as br, convertHex as zr, convertRGB as Nr, defaultFontSize as Br, pxToRem as Vr, resolveStyleValue as Or, setDefaultFontSize as Rr, toHex as kr } from "./core/ui/utils/style.js";
39
- import { canSetStateMerge as wr, createStore as _r, getSetStateMerge as Qr, shallowEqual as jr } from "./core/utils/appState/store/store.vanillajs.js";
39
+ import { canSetStateMerge as wr, createStore as _r, getSetStateMerge as jr, shallowEqual as Qr } from "./core/utils/appState/store/store.vanillajs.js";
40
40
  import { cancelableSetInterval as Wr, cancelableSetTimeout as qr } from "./core/utils/helpers/cancelableDelayedFunction.js";
41
41
  import { ced as Kr, createResolveAttribute as Ur, customElementDefine as Xr, resolveAttributes as Yr } from "./core/utils/webComponents/webComponent.utils.js";
42
42
  import { cleanCsvLines as $r, formatFilePath as eo } from "./core/utils/helpers/file.js";
@@ -44,26 +44,25 @@ import { composeId as oo, defaultSanitizeConfig as to, sanitizeHtml as ao } from
44
44
  import { createDataStore as io } from "./core/utils/appState/store/store.vanillajs.templates.js";
45
45
  import { dateRangeFormat as po, getDateTime as lo, getTimeFromNow as so, getTimeFromNowOriginal as fo, getTimeTo as xo } from "./core/utils/date.js";
46
46
  import { emailMatch as uo, emailMatcher as To, regexBuilder as go } from "./core/utils/helpers/emailMatcher.js";
47
- import { escapeRegExp as yo, fileNameExt as Co, findStringInText as ho, normalizeString as vo, removeWhitespaces as Io, sanitizeId as Po, sanitizePathId as Ao, toLowerCase as Eo, toUpperCase as Fo, truncateText as Mo } from "./core/utils/helpers/textValueOperations.js";
47
+ import { escapeRegExp as yo, fileNameExt as Co, findStringInText as ho, normalizeString as vo, removeWhitespaces as Po, sanitizeId as Ao, sanitizePathId as Io, toLowerCase as Eo, toUpperCase as Fo, truncateText as Do } from "./core/utils/helpers/textValueOperations.js";
48
48
  import { getDeviceId as Lo } from "./core/utils/helpers/deviceInfo.js";
49
49
  import { getMatch as zo, isValidFormat as No, isValidModulo11 as Bo, parse as Vo, regex as Oo } from "./core/utils/helpers/birthnumberCZSKvalidator.js";
50
50
  import { isBirthNumberValid as ko } from "./core/utils/helpers/birthnumber.validator.js";
51
51
  import { keyExtractor as wo, keyExtractorFunction as _o } from "./core/utils/keyExtractor.js";
52
- import { outsideClickHandler as jo, useOutsideClick as Jo } from "./core/hooks/useOutsideClick.js";
52
+ import { outsideClickHandler as Qo, useOutsideClick as Jo } from "./core/hooks/useOutsideClick.js";
53
53
  import { parseCSVdata as qo, validateCSVFile as Go, validateCSVlines as Ko, validateJSONFile as Uo, validateLineCellTrimmed as Xo, validateLineNumColumns as Yo, validateSDFFile as Zo } from "./core/utils/helpers/fileValidator.js";
54
- import { peregrineMQInstance as et } from "./core/utils/appState/peregrineMQ/index.js";
55
- import { useAnimation as ot } from "./core/hooks/useAnimation.js";
56
- import { useApi as at } from "./core/hooks/useApi.js";
57
- import { useClassNames as it } from "./core/hooks/useClassNames.js";
58
- import { useIntersectionObserver as pt } from "./core/hooks/useIntersectionObserver.js";
59
- import { useParseProps as st } from "./core/hooks/useParseProps.js";
60
- import { usePeregrineMQ as xt } from "./core/utils/appState/peregrineMQ/usePeregrineMQ.react.js";
61
- import { useResize as ut } from "./core/hooks/useResize.js";
62
- import { useStore as Tt, useStoreApi as gt } from "./core/utils/appState/store/useStore.react.js";
63
- import { useThemePreference as yt } from "./core/hooks/useThemePreference.js";
64
- import { useTimeoutFn as ht } from "./core/hooks/useSetTimeout.js";
65
- import { useToggle as It } from "./core/hooks/useToggle.js";
66
- import { useToggle2 as At } from "./core/hooks/useToggle2.js";
54
+ import { useAnimation as et } from "./core/hooks/useAnimation.js";
55
+ import { useApi as ot } from "./core/hooks/useApi.js";
56
+ import { useClassNames as at } from "./core/hooks/useClassNames.js";
57
+ import { useIntersectionObserver as it } from "./core/hooks/useIntersectionObserver.js";
58
+ import { useParseProps as pt } from "./core/hooks/useParseProps.js";
59
+ import { usePeregrineMQ as st } from "./core/utils/appState/peregrineMQ/usePeregrineMQ.react.js";
60
+ import { useResize as xt } from "./core/hooks/useResize.js";
61
+ import { useStore as ut, useStoreApi as dt } from "./core/utils/appState/store/useStore.react.js";
62
+ import { useThemePreference as gt } from "./core/hooks/useThemePreference.js";
63
+ import { useTimeoutFn as yt } from "./core/hooks/useSetTimeout.js";
64
+ import { useToggle as ht } from "./core/hooks/useToggle.js";
65
+ import { useToggle2 as Pt } from "./core/hooks/useToggle2.js";
67
66
  export {
68
67
  o as Alerts,
69
68
  i as AnchorLink,
@@ -71,15 +70,15 @@ export {
71
70
  l as ArrayLast,
72
71
  f as AsyncFunctionTemplate,
73
72
  C as BoxLayout,
74
- I as Button,
73
+ P as Button,
75
74
  F as CollapsibleContainer,
76
- D as DATE_FORMAT,
75
+ M as DATE_FORMAT,
77
76
  L as DATE_TIME_FORMAT,
78
77
  O as DefaultErrorComponent,
79
78
  H as DividerHorizontal,
80
79
  w as DividerLine,
81
80
  _ as DividerVertical,
82
- j as ESIcon,
81
+ Q as ESIcon,
83
82
  J as ESIconBase,
84
83
  R as ErrorBoundary,
85
84
  t as EventName,
@@ -90,7 +89,7 @@ export {
90
89
  re as HeadlineTertiary,
91
90
  te as Icon,
92
91
  me as IconBase,
93
- P as IconButton,
92
+ A as IconButton,
94
93
  a as KeyCode,
95
94
  h as LayoutBox,
96
95
  ne as LayoutDirection,
@@ -99,8 +98,8 @@ export {
99
98
  ge as NON_EXISTENT_CHANNEL,
100
99
  ye as Operation,
101
100
  Fe as Paragraph,
102
- Me as ParagraphBold,
103
- De as ParagraphBoldSmall,
101
+ De as ParagraphBold,
102
+ Me as ParagraphBoldSmall,
104
103
  Le as ParagraphSmall,
105
104
  se as PendingBoundary,
106
105
  ze as PeregrineMQ,
@@ -109,7 +108,7 @@ export {
109
108
  Re as PopoverPlacement,
110
109
  He as Popup,
111
110
  _e as PopupAnimateVariant,
112
- je as ResizableContainer,
111
+ Qe as ResizableContainer,
113
112
  G as Select,
114
113
  We as Tag,
115
114
  Ge as TagVariant,
@@ -123,14 +122,14 @@ export {
123
122
  nr as Toggle,
124
123
  lr as Tooltip,
125
124
  fr as anchorClick,
126
- Ir as arrayToObjectTree,
125
+ Pr as arrayToObjectTree,
127
126
  Lr as calculateColors,
128
127
  br as calculatePercColor,
129
128
  wr as canSetStateMerge,
130
129
  Wr as cancelableSetInterval,
131
130
  qr as cancelableSetTimeout,
132
131
  Kr as ced,
133
- Pr as chunkArray,
132
+ Ar as chunkArray,
134
133
  xr as classNames,
135
134
  $r as cleanCsvLines,
136
135
  oo as composeId,
@@ -149,7 +148,7 @@ export {
149
148
  Br as defaultFontSize,
150
149
  to as defaultSanitizeConfig,
151
150
  c as delay,
152
- Ar as duplicatesInArray,
151
+ Ir as duplicatesInArray,
153
152
  uo as emailMatch,
154
153
  To as emailMatcher,
155
154
  yo as escapeRegExp,
@@ -161,14 +160,14 @@ export {
161
160
  eo as formatFilePath,
162
161
  Er as formatJsonString,
163
162
  Fr as formatObj,
164
- Mr as formatObj2,
163
+ Dr as formatObj2,
165
164
  cr as generateId,
166
165
  ur as getBaseThemes,
167
166
  B as getDate,
168
167
  lo as getDateTime,
169
168
  Lo as getDeviceId,
170
169
  zo as getMatch,
171
- Qr as getSetStateMerge,
170
+ jr as getSetStateMerge,
172
171
  so as getTimeFromNow,
173
172
  fo as getTimeFromNowOriginal,
174
173
  xo as getTimeTo,
@@ -179,7 +178,7 @@ export {
179
178
  Bo as isValidModulo11,
180
179
  wo as keyExtractor,
181
180
  _o as keyExtractorFunction,
182
- A as keys,
181
+ I as keys,
183
182
  dr as mapSerReplacer,
184
183
  d as memoize,
185
184
  T as memoizeComplex,
@@ -188,50 +187,49 @@ export {
188
187
  Tr as noop,
189
188
  vo as normalizeString,
190
189
  ve as numberDefined,
191
- Ie as numberOperation,
190
+ Pe as numberOperation,
192
191
  gr as observeThemePreference,
193
- jo as outsideClickHandler,
192
+ Qo as outsideClickHandler,
194
193
  Vo as parse,
195
194
  qo as parseCSVdata,
196
195
  Sr as parseProps,
197
- et as peregrineMQInstance,
198
196
  Vr as pxToRem,
199
197
  Oo as regex,
200
198
  go as regexBuilder,
201
- Io as removeWhitespaces,
199
+ Po as removeWhitespaces,
202
200
  Yr as resolveAttributes,
203
201
  Or as resolveStyleValue,
204
- Pe as restrictNumberInLimits,
202
+ Ae as restrictNumberInLimits,
205
203
  ao as sanitizeHtml,
206
- Po as sanitizeId,
207
- Ao as sanitizePathId,
204
+ Ao as sanitizeId,
205
+ Io as sanitizePathId,
208
206
  Rr as setDefaultFontSize,
209
207
  K as setIconColor,
210
208
  U as setIconComponent,
211
209
  yr as setThemeClassNames,
212
- Ae as setValue,
213
- jr as shallowEqual,
210
+ Ie as setValue,
211
+ Qr as shallowEqual,
214
212
  mr as stateIterator,
215
213
  Cr as switchColorTheme,
216
214
  kr as toHex,
217
215
  Eo as toLowerCase,
218
216
  Fo as toUpperCase,
219
- Mo as truncateText,
217
+ Do as truncateText,
220
218
  hr as updateColorTheme,
221
- ot as useAnimation,
222
- at as useApi,
223
- it as useClassNames,
224
- pt as useIntersectionObserver,
219
+ et as useAnimation,
220
+ ot as useApi,
221
+ at as useClassNames,
222
+ it as useIntersectionObserver,
225
223
  Jo as useOutsideClick,
226
- st as useParseProps,
227
- xt as usePeregrineMQ,
228
- ut as useResize,
229
- Tt as useStore,
230
- gt as useStoreApi,
231
- yt as useThemePreference,
232
- ht as useTimeoutFn,
233
- It as useToggle,
234
- At as useToggle2,
224
+ pt as useParseProps,
225
+ st as usePeregrineMQ,
226
+ xt as useResize,
227
+ ut as useStore,
228
+ dt as useStoreApi,
229
+ gt as useThemePreference,
230
+ yt as useTimeoutFn,
231
+ ht as useToggle,
232
+ Pt as useToggle2,
235
233
  Go as validateCSVFile,
236
234
  Ko as validateCSVlines,
237
235
  Uo as validateJSONFile,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}