@temp-spotwork/ui 1.4.3

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 (736) hide show
  1. package/README.md +30 -0
  2. package/dist/Combination-BkpbjcWz.js +672 -0
  3. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  4. package/dist/addYears-D3POA9ql.js +7 -0
  5. package/dist/bundle-mjs-CAy1p0fn.js +2261 -0
  6. package/dist/card-Cc2Qkiqr.js +41 -0
  7. package/dist/components/atoms/avatar/Avatar.stories.d.ts +7 -0
  8. package/dist/components/atoms/avatar/Avatar.stories.js +22 -0
  9. package/dist/components/atoms/avatar/avatar.d.ts +39 -0
  10. package/dist/components/atoms/avatar/avatar.js +76 -0
  11. package/dist/components/atoms/avatar/index.d.ts +2 -0
  12. package/dist/components/atoms/avatar/index.js +4 -0
  13. package/dist/components/atoms/avatar/statusIndicatorIcon.d.ts +3 -0
  14. package/dist/components/atoms/avatar/statusIndicatorIcon.js +33 -0
  15. package/dist/components/atoms/avatar/styles.d.ts +14 -0
  16. package/dist/components/atoms/avatar/styles.js +47 -0
  17. package/dist/components/atoms/badge/badge.d.ts +25 -0
  18. package/dist/components/atoms/badge/badge.js +38 -0
  19. package/dist/components/atoms/badge/badge.stories.d.ts +7 -0
  20. package/dist/components/atoms/badge/badge.stories.js +23 -0
  21. package/dist/components/atoms/badge/index.d.ts +2 -0
  22. package/dist/components/atoms/badge/index.js +4 -0
  23. package/dist/components/atoms/card/card.d.ts +8 -0
  24. package/dist/components/atoms/card/card.js +12 -0
  25. package/dist/components/atoms/card/card.stories.d.ts +13 -0
  26. package/dist/components/atoms/card/card.stories.js +86 -0
  27. package/dist/components/atoms/card/index.d.ts +1 -0
  28. package/dist/components/atoms/card/index.js +4 -0
  29. package/dist/components/atoms/card-content/label-value-pair/index.d.ts +2 -0
  30. package/dist/components/atoms/card-content/label-value-pair/index.js +4 -0
  31. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.d.ts +30 -0
  32. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +22 -0
  33. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.d.ts +7 -0
  34. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +22 -0
  35. package/dist/components/atoms/card-content/label-value-pair/styles.d.ts +1 -0
  36. package/dist/components/atoms/card-content/label-value-pair/styles.js +4 -0
  37. package/dist/components/atoms/card-content/note/index.d.ts +2 -0
  38. package/dist/components/atoms/card-content/note/index.js +4 -0
  39. package/dist/components/atoms/card-content/note/note.d.ts +33 -0
  40. package/dist/components/atoms/card-content/note/note.js +30 -0
  41. package/dist/components/atoms/conversation/chatheader/chatheader.d.ts +11 -0
  42. package/dist/components/atoms/conversation/chatheader/chatheader.js +91 -0
  43. package/dist/components/atoms/conversation/chatheader/index.d.ts +2 -0
  44. package/dist/components/atoms/conversation/chatheader/index.js +4 -0
  45. package/dist/components/atoms/conversation/chatheader/styles.d.ts +4 -0
  46. package/dist/components/atoms/conversation/chatheader/styles.js +7 -0
  47. package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.d.ts +7 -0
  48. package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.js +20 -0
  49. package/dist/components/atoms/daybubble/recurrence-day/index.d.ts +2 -0
  50. package/dist/components/atoms/daybubble/recurrence-day/index.js +4 -0
  51. package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.d.ts +27 -0
  52. package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +86 -0
  53. package/dist/components/atoms/form/calendar/calendar-date-cell.d.ts +68 -0
  54. package/dist/components/atoms/form/calendar/calendar-date-cell.js +82 -0
  55. package/dist/components/atoms/form/calendar/calendar-month.d.ts +57 -0
  56. package/dist/components/atoms/form/calendar/calendar-month.js +148 -0
  57. package/dist/components/atoms/form/calendar/calendar-utils.d.ts +43 -0
  58. package/dist/components/atoms/form/calendar/calendar-utils.js +11 -0
  59. package/dist/components/atoms/form/calendar/calendar.d.ts +20 -0
  60. package/dist/components/atoms/form/calendar/calendar.js +106 -0
  61. package/dist/components/atoms/form/calendar/calendar.stories.d.ts +14 -0
  62. package/dist/components/atoms/form/calendar/calendar.stories.js +215 -0
  63. package/dist/components/atoms/form/calendar/index.d.ts +2 -0
  64. package/dist/components/atoms/form/calendar/index.js +4 -0
  65. package/dist/components/atoms/form/calendar/month-header.d.ts +13 -0
  66. package/dist/components/atoms/form/calendar/month-header.js +19 -0
  67. package/dist/components/atoms/form/calendar/sticky-button.d.ts +24 -0
  68. package/dist/components/atoms/form/calendar/sticky-button.js +24 -0
  69. package/dist/components/atoms/form/calendar/types.d.ts +50 -0
  70. package/dist/components/atoms/form/calendar/types.js +1 -0
  71. package/dist/components/atoms/form/checkbox/checkbox.d.ts +37 -0
  72. package/dist/components/atoms/form/checkbox/checkbox.js +67 -0
  73. package/dist/components/atoms/form/checkbox/index.d.ts +2 -0
  74. package/dist/components/atoms/form/checkbox/index.js +4 -0
  75. package/dist/components/atoms/form/chips/chips.d.ts +46 -0
  76. package/dist/components/atoms/form/chips/chips.js +177 -0
  77. package/dist/components/atoms/form/chips/chips.stories.d.ts +7 -0
  78. package/dist/components/atoms/form/chips/chips.stories.js +24 -0
  79. package/dist/components/atoms/form/chips/index.d.ts +2 -0
  80. package/dist/components/atoms/form/chips/index.js +4 -0
  81. package/dist/components/atoms/form/chips/styles.d.ts +77 -0
  82. package/dist/components/atoms/form/chips/styles.js +55 -0
  83. package/dist/components/atoms/form/dateselect/date-calendar.d.ts +34 -0
  84. package/dist/components/atoms/form/dateselect/date-calendar.js +85 -0
  85. package/dist/components/atoms/form/dateselect/date-dropdown-header.d.ts +21 -0
  86. package/dist/components/atoms/form/dateselect/date-dropdown-header.js +46 -0
  87. package/dist/components/atoms/form/dateselect/date-dropdown.d.ts +70 -0
  88. package/dist/components/atoms/form/dateselect/date-dropdown.js +92 -0
  89. package/dist/components/atoms/form/dateselect/date-input.d.ts +59 -0
  90. package/dist/components/atoms/form/dateselect/date-input.js +3240 -0
  91. package/dist/components/atoms/form/dateselect/date-month-year-switch.d.ts +38 -0
  92. package/dist/components/atoms/form/dateselect/date-month-year-switch.js +67 -0
  93. package/dist/components/atoms/form/dateselect/dateselect.d.ts +62 -0
  94. package/dist/components/atoms/form/dateselect/dateselect.js +164 -0
  95. package/dist/components/atoms/form/dateselect/helpers.d.ts +36 -0
  96. package/dist/components/atoms/form/dateselect/helpers.js +83 -0
  97. package/dist/components/atoms/form/dateselect/index.d.ts +2 -0
  98. package/dist/components/atoms/form/dateselect/index.js +4 -0
  99. package/dist/components/atoms/form/dateselect/month-switch.d.ts +10 -0
  100. package/dist/components/atoms/form/dateselect/month-switch.js +135 -0
  101. package/dist/components/atoms/form/dateselect/styles.d.ts +10 -0
  102. package/dist/components/atoms/form/dateselect/styles.js +14 -0
  103. package/dist/components/atoms/form/dateselect/year-switch.d.ts +8 -0
  104. package/dist/components/atoms/form/dateselect/year-switch.js +134 -0
  105. package/dist/components/atoms/form/dropdown/dropdown.d.ts +65 -0
  106. package/dist/components/atoms/form/dropdown/dropdown.js +182 -0
  107. package/dist/components/atoms/form/dropdown/index.d.ts +2 -0
  108. package/dist/components/atoms/form/dropdown/index.js +4 -0
  109. package/dist/components/atoms/form/dropdown/styles.d.ts +13 -0
  110. package/dist/components/atoms/form/dropdown/styles.js +20 -0
  111. package/dist/components/atoms/form/dropdown-search/dropdown-search.d.ts +93 -0
  112. package/dist/components/atoms/form/dropdown-search/dropdown-search.js +197 -0
  113. package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.d.ts +24 -0
  114. package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +362 -0
  115. package/dist/components/atoms/form/dropdown-search/index.d.ts +2 -0
  116. package/dist/components/atoms/form/dropdown-search/index.js +4 -0
  117. package/dist/components/atoms/form/form-helper-text/form-helper-text.d.ts +22 -0
  118. package/dist/components/atoms/form/form-helper-text/form-helper-text.js +13 -0
  119. package/dist/components/atoms/form/form-helper-text/index.d.ts +1 -0
  120. package/dist/components/atoms/form/form-helper-text/index.js +4 -0
  121. package/dist/components/atoms/form/form-types.d.ts +4 -0
  122. package/dist/components/atoms/form/form-types.js +1 -0
  123. package/dist/components/atoms/form/multiselect/index.d.ts +2 -0
  124. package/dist/components/atoms/form/multiselect/index.js +4 -0
  125. package/dist/components/atoms/form/multiselect/multiselect.d.ts +63 -0
  126. package/dist/components/atoms/form/multiselect/multiselect.js +109 -0
  127. package/dist/components/atoms/form/navigation/index.d.ts +2 -0
  128. package/dist/components/atoms/form/navigation/index.js +4 -0
  129. package/dist/components/atoms/form/navigation/navigation.d.ts +19 -0
  130. package/dist/components/atoms/form/navigation/navigation.js +35 -0
  131. package/dist/components/atoms/form/navigation/styles.d.ts +5 -0
  132. package/dist/components/atoms/form/navigation/styles.js +8 -0
  133. package/dist/components/atoms/form/radiobutton/index.d.ts +2 -0
  134. package/dist/components/atoms/form/radiobutton/index.js +4 -0
  135. package/dist/components/atoms/form/radiobutton/radiobutton.d.ts +41 -0
  136. package/dist/components/atoms/form/radiobutton/radiobutton.js +82 -0
  137. package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.d.ts +7 -0
  138. package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.js +37 -0
  139. package/dist/components/atoms/form/recurrence-week/index.d.ts +2 -0
  140. package/dist/components/atoms/form/recurrence-week/index.js +4 -0
  141. package/dist/components/atoms/form/recurrence-week/recurrence-week.d.ts +32 -0
  142. package/dist/components/atoms/form/recurrence-week/recurrence-week.js +34 -0
  143. package/dist/components/atoms/form/stepper/Stepper.stories.d.ts +7 -0
  144. package/dist/components/atoms/form/stepper/Stepper.stories.js +30 -0
  145. package/dist/components/atoms/form/stepper/index.d.ts +2 -0
  146. package/dist/components/atoms/form/stepper/index.js +4 -0
  147. package/dist/components/atoms/form/stepper/stepper.d.ts +50 -0
  148. package/dist/components/atoms/form/stepper/stepper.js +156 -0
  149. package/dist/components/atoms/form/stepper/styles.d.ts +3 -0
  150. package/dist/components/atoms/form/stepper/styles.js +6 -0
  151. package/dist/components/atoms/form/switch/index.d.ts +2 -0
  152. package/dist/components/atoms/form/switch/index.js +4 -0
  153. package/dist/components/atoms/form/switch/switch.d.ts +41 -0
  154. package/dist/components/atoms/form/switch/switch.js +184 -0
  155. package/dist/components/atoms/form/switch/switch.props.d.ts +26 -0
  156. package/dist/components/atoms/form/switch/switch.props.js +19 -0
  157. package/dist/components/atoms/form/textarea/Textarea.stories.d.ts +7 -0
  158. package/dist/components/atoms/form/textarea/Textarea.stories.js +22 -0
  159. package/dist/components/atoms/form/textarea/index.d.ts +2 -0
  160. package/dist/components/atoms/form/textarea/index.js +4 -0
  161. package/dist/components/atoms/form/textarea/styles.d.ts +6 -0
  162. package/dist/components/atoms/form/textarea/styles.js +9 -0
  163. package/dist/components/atoms/form/textarea/textarea.d.ts +53 -0
  164. package/dist/components/atoms/form/textarea/textarea.js +91 -0
  165. package/dist/components/atoms/form/textfield/index.d.ts +2 -0
  166. package/dist/components/atoms/form/textfield/index.js +4 -0
  167. package/dist/components/atoms/form/textfield/styles.d.ts +4 -0
  168. package/dist/components/atoms/form/textfield/styles.js +7 -0
  169. package/dist/components/atoms/form/textfield/textfield.d.ts +90 -0
  170. package/dist/components/atoms/form/textfield/textfield.js +144 -0
  171. package/dist/components/atoms/form/time-picker/index.d.ts +2 -0
  172. package/dist/components/atoms/form/time-picker/index.js +4 -0
  173. package/dist/components/atoms/form/time-picker/time-picker-dropdown.d.ts +77 -0
  174. package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +193 -0
  175. package/dist/components/atoms/form/time-picker/time-picker-input.d.ts +107 -0
  176. package/dist/components/atoms/form/time-picker/time-picker-input.js +248 -0
  177. package/dist/components/atoms/form/time-picker/time-picker.d.ts +111 -0
  178. package/dist/components/atoms/form/time-picker/time-picker.js +126 -0
  179. package/dist/components/atoms/form/time-picker/time-picker.stories.d.ts +30 -0
  180. package/dist/components/atoms/form/time-picker/time-picker.stories.js +368 -0
  181. package/dist/components/atoms/form/timeselect/hours-switch.d.ts +21 -0
  182. package/dist/components/atoms/form/timeselect/hours-switch.js +88 -0
  183. package/dist/components/atoms/form/timeselect/index.d.ts +2 -0
  184. package/dist/components/atoms/form/timeselect/index.js +4 -0
  185. package/dist/components/atoms/form/timeselect/minutes-switch.d.ts +25 -0
  186. package/dist/components/atoms/form/timeselect/minutes-switch.js +88 -0
  187. package/dist/components/atoms/form/timeselect/styles.d.ts +13 -0
  188. package/dist/components/atoms/form/timeselect/styles.js +16 -0
  189. package/dist/components/atoms/form/timeselect/timeselect.d.ts +50 -0
  190. package/dist/components/atoms/form/timeselect/timeselect.js +220 -0
  191. package/dist/components/atoms/form/typeahead/index.d.ts +2 -0
  192. package/dist/components/atoms/form/typeahead/index.js +4 -0
  193. package/dist/components/atoms/form/typeahead/styles.d.ts +7 -0
  194. package/dist/components/atoms/form/typeahead/styles.js +11 -0
  195. package/dist/components/atoms/form/typeahead/typeahead.d.ts +83 -0
  196. package/dist/components/atoms/form/typeahead/typeahead.js +146 -0
  197. package/dist/components/atoms/form/utils-for-forms/state-functions.d.ts +6 -0
  198. package/dist/components/atoms/form/utils-for-forms/state-functions.js +8 -0
  199. package/dist/components/atoms/horizontal-border/horizontal-border.d.ts +21 -0
  200. package/dist/components/atoms/horizontal-border/horizontal-border.js +7 -0
  201. package/dist/components/atoms/horizontal-border/index.d.ts +1 -0
  202. package/dist/components/atoms/horizontal-border/index.js +4 -0
  203. package/dist/components/atoms/icons/iconMap.d.ts +313 -0
  204. package/dist/components/atoms/icons/iconMap.js +214 -0
  205. package/dist/components/atoms/icons/icons.d.ts +59 -0
  206. package/dist/components/atoms/icons/icons.js +78 -0
  207. package/dist/components/atoms/icons/icons.stories.d.ts +22 -0
  208. package/dist/components/atoms/icons/icons.stories.js +428 -0
  209. package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.d.ts +2 -0
  210. package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.js +12 -0
  211. package/dist/components/atoms/icons/iconsSVGs/Countries/USA.d.ts +2 -0
  212. package/dist/components/atoms/icons/iconsSVGs/Countries/USA.js +49 -0
  213. package/dist/components/atoms/icons/iconsSVGs/Countries/index.d.ts +4 -0
  214. package/dist/components/atoms/icons/iconsSVGs/Countries/index.js +6 -0
  215. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.d.ts +2 -0
  216. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.js +106 -0
  217. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.d.ts +2 -0
  218. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.js +112 -0
  219. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.d.ts +4 -0
  220. package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.js +6 -0
  221. package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.d.ts +4 -0
  222. package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.js +21 -0
  223. package/dist/components/atoms/icons/iconsSVGs/Large/Add.d.ts +4 -0
  224. package/dist/components/atoms/icons/iconsSVGs/Large/Add.js +21 -0
  225. package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.d.ts +4 -0
  226. package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.js +23 -0
  227. package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.d.ts +4 -0
  228. package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.js +23 -0
  229. package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.d.ts +4 -0
  230. package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.js +23 -0
  231. package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.d.ts +4 -0
  232. package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.js +23 -0
  233. package/dist/components/atoms/icons/iconsSVGs/Large/Attach.d.ts +4 -0
  234. package/dist/components/atoms/icons/iconsSVGs/Large/Attach.js +21 -0
  235. package/dist/components/atoms/icons/iconsSVGs/Large/Bell.d.ts +4 -0
  236. package/dist/components/atoms/icons/iconsSVGs/Large/Bell.js +23 -0
  237. package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.d.ts +4 -0
  238. package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.js +26 -0
  239. package/dist/components/atoms/icons/iconsSVGs/Large/Building.d.ts +4 -0
  240. package/dist/components/atoms/icons/iconsSVGs/Large/Building.js +23 -0
  241. package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.d.ts +4 -0
  242. package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.js +23 -0
  243. package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.d.ts +4 -0
  244. package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.js +23 -0
  245. package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.d.ts +4 -0
  246. package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.js +23 -0
  247. package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.d.ts +4 -0
  248. package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.js +23 -0
  249. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.d.ts +4 -0
  250. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.js +23 -0
  251. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.d.ts +4 -0
  252. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.js +23 -0
  253. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.d.ts +4 -0
  254. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.js +23 -0
  255. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.d.ts +4 -0
  256. package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.js +23 -0
  257. package/dist/components/atoms/icons/iconsSVGs/Large/Clock.d.ts +4 -0
  258. package/dist/components/atoms/icons/iconsSVGs/Large/Clock.js +23 -0
  259. package/dist/components/atoms/icons/iconsSVGs/Large/Contact.d.ts +4 -0
  260. package/dist/components/atoms/icons/iconsSVGs/Large/Contact.js +23 -0
  261. package/dist/components/atoms/icons/iconsSVGs/Large/Copy.d.ts +4 -0
  262. package/dist/components/atoms/icons/iconsSVGs/Large/Copy.js +23 -0
  263. package/dist/components/atoms/icons/iconsSVGs/Large/Cross.d.ts +4 -0
  264. package/dist/components/atoms/icons/iconsSVGs/Large/Cross.js +21 -0
  265. package/dist/components/atoms/icons/iconsSVGs/Large/Descending.d.ts +4 -0
  266. package/dist/components/atoms/icons/iconsSVGs/Large/Descending.js +23 -0
  267. package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.d.ts +4 -0
  268. package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.js +23 -0
  269. package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.d.ts +4 -0
  270. package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.js +24 -0
  271. package/dist/components/atoms/icons/iconsSVGs/Large/Edit.d.ts +4 -0
  272. package/dist/components/atoms/icons/iconsSVGs/Large/Edit.js +23 -0
  273. package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.d.ts +4 -0
  274. package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.js +23 -0
  275. package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.d.ts +4 -0
  276. package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.js +23 -0
  277. package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.d.ts +4 -0
  278. package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.js +25 -0
  279. package/dist/components/atoms/icons/iconsSVGs/Large/File.d.ts +4 -0
  280. package/dist/components/atoms/icons/iconsSVGs/Large/File.js +12 -0
  281. package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.d.ts +4 -0
  282. package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.js +21 -0
  283. package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.d.ts +4 -0
  284. package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.js +23 -0
  285. package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.d.ts +4 -0
  286. package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.js +23 -0
  287. package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.d.ts +4 -0
  288. package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.js +23 -0
  289. package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.d.ts +4 -0
  290. package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.js +21 -0
  291. package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.d.ts +4 -0
  292. package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.js +23 -0
  293. package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.d.ts +4 -0
  294. package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.js +23 -0
  295. package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.d.ts +4 -0
  296. package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.js +23 -0
  297. package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.d.ts +4 -0
  298. package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.js +21 -0
  299. package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.d.ts +4 -0
  300. package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.js +21 -0
  301. package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.d.ts +4 -0
  302. package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.js +23 -0
  303. package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.d.ts +4 -0
  304. package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.js +16 -0
  305. package/dist/components/atoms/icons/iconsSVGs/Large/Profile.d.ts +6 -0
  306. package/dist/components/atoms/icons/iconsSVGs/Large/Profile.js +24 -0
  307. package/dist/components/atoms/icons/iconsSVGs/Large/Restore.d.ts +4 -0
  308. package/dist/components/atoms/icons/iconsSVGs/Large/Restore.js +23 -0
  309. package/dist/components/atoms/icons/iconsSVGs/Large/Send.d.ts +4 -0
  310. package/dist/components/atoms/icons/iconsSVGs/Large/Send.js +21 -0
  311. package/dist/components/atoms/icons/iconsSVGs/Large/Settings.d.ts +4 -0
  312. package/dist/components/atoms/icons/iconsSVGs/Large/Settings.js +33 -0
  313. package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.d.ts +4 -0
  314. package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.js +23 -0
  315. package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.d.ts +4 -0
  316. package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.js +5 -0
  317. package/dist/components/atoms/icons/iconsSVGs/Large/Sort.d.ts +4 -0
  318. package/dist/components/atoms/icons/iconsSVGs/Large/Sort.js +23 -0
  319. package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.d.ts +4 -0
  320. package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.js +21 -0
  321. package/dist/components/atoms/icons/iconsSVGs/Large/Summary.d.ts +4 -0
  322. package/dist/components/atoms/icons/iconsSVGs/Large/Summary.js +23 -0
  323. package/dist/components/atoms/icons/iconsSVGs/Large/Support.d.ts +4 -0
  324. package/dist/components/atoms/icons/iconsSVGs/Large/Support.js +24 -0
  325. package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.d.ts +4 -0
  326. package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.js +23 -0
  327. package/dist/components/atoms/icons/iconsSVGs/Large/Tick.d.ts +4 -0
  328. package/dist/components/atoms/icons/iconsSVGs/Large/Tick.js +23 -0
  329. package/dist/components/atoms/icons/iconsSVGs/Large/Timer.d.ts +4 -0
  330. package/dist/components/atoms/icons/iconsSVGs/Large/Timer.js +23 -0
  331. package/dist/components/atoms/icons/iconsSVGs/Large/Trash.d.ts +4 -0
  332. package/dist/components/atoms/icons/iconsSVGs/Large/Trash.js +23 -0
  333. package/dist/components/atoms/icons/iconsSVGs/Large/Undo.d.ts +4 -0
  334. package/dist/components/atoms/icons/iconsSVGs/Large/Undo.js +23 -0
  335. package/dist/components/atoms/icons/iconsSVGs/Large/Verification.d.ts +4 -0
  336. package/dist/components/atoms/icons/iconsSVGs/Large/Verification.js +23 -0
  337. package/dist/components/atoms/icons/iconsSVGs/Large/index.d.ts +60 -0
  338. package/dist/components/atoms/icons/iconsSVGs/Large/index.js +118 -0
  339. package/dist/components/atoms/icons/iconsSVGs/Small/Add.d.ts +4 -0
  340. package/dist/components/atoms/icons/iconsSVGs/Small/Add.js +21 -0
  341. package/dist/components/atoms/icons/iconsSVGs/Small/Alert.d.ts +4 -0
  342. package/dist/components/atoms/icons/iconsSVGs/Small/Alert.js +23 -0
  343. package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.d.ts +4 -0
  344. package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.js +21 -0
  345. package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.d.ts +4 -0
  346. package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.js +21 -0
  347. package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.d.ts +4 -0
  348. package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.js +23 -0
  349. package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.d.ts +4 -0
  350. package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.js +23 -0
  351. package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.d.ts +4 -0
  352. package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.js +21 -0
  353. package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.d.ts +4 -0
  354. package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.js +21 -0
  355. package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.d.ts +4 -0
  356. package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.js +23 -0
  357. package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.d.ts +4 -0
  358. package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.js +23 -0
  359. package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.d.ts +4 -0
  360. package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.js +23 -0
  361. package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.d.ts +4 -0
  362. package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.js +23 -0
  363. package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.d.ts +4 -0
  364. package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.js +23 -0
  365. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.d.ts +4 -0
  366. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.js +23 -0
  367. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.d.ts +4 -0
  368. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.js +23 -0
  369. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.d.ts +4 -0
  370. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.js +23 -0
  371. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.d.ts +4 -0
  372. package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.js +23 -0
  373. package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.d.ts +4 -0
  374. package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.js +22 -0
  375. package/dist/components/atoms/icons/iconsSVGs/Small/Copy.d.ts +4 -0
  376. package/dist/components/atoms/icons/iconsSVGs/Small/Copy.js +23 -0
  377. package/dist/components/atoms/icons/iconsSVGs/Small/Cross.d.ts +4 -0
  378. package/dist/components/atoms/icons/iconsSVGs/Small/Cross.js +21 -0
  379. package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.d.ts +4 -0
  380. package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.js +23 -0
  381. package/dist/components/atoms/icons/iconsSVGs/Small/Descending.d.ts +4 -0
  382. package/dist/components/atoms/icons/iconsSVGs/Small/Descending.js +23 -0
  383. package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.d.ts +4 -0
  384. package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.js +23 -0
  385. package/dist/components/atoms/icons/iconsSVGs/Small/Empty.d.ts +4 -0
  386. package/dist/components/atoms/icons/iconsSVGs/Small/Empty.js +23 -0
  387. package/dist/components/atoms/icons/iconsSVGs/Small/Expand.d.ts +4 -0
  388. package/dist/components/atoms/icons/iconsSVGs/Small/Expand.js +22 -0
  389. package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.d.ts +4 -0
  390. package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.js +23 -0
  391. package/dist/components/atoms/icons/iconsSVGs/Small/Info.d.ts +4 -0
  392. package/dist/components/atoms/icons/iconsSVGs/Small/Info.js +13 -0
  393. package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.d.ts +4 -0
  394. package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.js +23 -0
  395. package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.d.ts +4 -0
  396. package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.js +23 -0
  397. package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.d.ts +4 -0
  398. package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.js +23 -0
  399. package/dist/components/atoms/icons/iconsSVGs/Small/Notes.d.ts +4 -0
  400. package/dist/components/atoms/icons/iconsSVGs/Small/Notes.js +23 -0
  401. package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.d.ts +4 -0
  402. package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.js +23 -0
  403. package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.d.ts +4 -0
  404. package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.js +16 -0
  405. package/dist/components/atoms/icons/iconsSVGs/Small/Profile.d.ts +6 -0
  406. package/dist/components/atoms/icons/iconsSVGs/Small/Profile.js +24 -0
  407. package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.d.ts +8 -0
  408. package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.js +37 -0
  409. package/dist/components/atoms/icons/iconsSVGs/Small/Shield.d.ts +4 -0
  410. package/dist/components/atoms/icons/iconsSVGs/Small/Shield.js +23 -0
  411. package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.d.ts +4 -0
  412. package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.js +23 -0
  413. package/dist/components/atoms/icons/iconsSVGs/Small/Sort.d.ts +4 -0
  414. package/dist/components/atoms/icons/iconsSVGs/Small/Sort.js +23 -0
  415. package/dist/components/atoms/icons/iconsSVGs/Small/Success.d.ts +4 -0
  416. package/dist/components/atoms/icons/iconsSVGs/Small/Success.js +23 -0
  417. package/dist/components/atoms/icons/iconsSVGs/Small/Tick.d.ts +4 -0
  418. package/dist/components/atoms/icons/iconsSVGs/Small/Tick.js +23 -0
  419. package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.d.ts +4 -0
  420. package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.js +32 -0
  421. package/dist/components/atoms/icons/iconsSVGs/Small/Upload.d.ts +4 -0
  422. package/dist/components/atoms/icons/iconsSVGs/Small/Upload.js +23 -0
  423. package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.d.ts +4 -0
  424. package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.js +23 -0
  425. package/dist/components/atoms/icons/iconsSVGs/Small/Warning.d.ts +4 -0
  426. package/dist/components/atoms/icons/iconsSVGs/Small/Warning.js +23 -0
  427. package/dist/components/atoms/icons/iconsSVGs/Small/index.d.ts +46 -0
  428. package/dist/components/atoms/icons/iconsSVGs/Small/index.js +90 -0
  429. package/dist/components/atoms/icons/index.d.ts +4 -0
  430. package/dist/components/atoms/icons/index.js +6 -0
  431. package/dist/components/atoms/icons/styles.d.ts +3 -0
  432. package/dist/components/atoms/icons/styles.js +6 -0
  433. package/dist/components/atoms/message/index.d.ts +2 -0
  434. package/dist/components/atoms/message/index.js +4 -0
  435. package/dist/components/atoms/message/message.d.ts +37 -0
  436. package/dist/components/atoms/message/message.js +60 -0
  437. package/dist/components/atoms/message/message.stories.d.ts +7 -0
  438. package/dist/components/atoms/message/message.stories.js +20 -0
  439. package/dist/components/atoms/message/styles.d.ts +15 -0
  440. package/dist/components/atoms/message/styles.js +20 -0
  441. package/dist/components/atoms/navigation/navigation-item/index.d.ts +2 -0
  442. package/dist/components/atoms/navigation/navigation-item/index.js +4 -0
  443. package/dist/components/atoms/navigation/navigation-item/navigation-item.d.ts +29 -0
  444. package/dist/components/atoms/navigation/navigation-item/navigation-item.js +64 -0
  445. package/dist/components/atoms/navigation/navigation-item/styles.d.ts +2 -0
  446. package/dist/components/atoms/navigation/navigation-item/styles.js +5 -0
  447. package/dist/components/atoms/small-large-text/index.d.ts +1 -0
  448. package/dist/components/atoms/small-large-text/index.js +4 -0
  449. package/dist/components/atoms/small-large-text/small-large-text.d.ts +17 -0
  450. package/dist/components/atoms/small-large-text/small-large-text.js +35 -0
  451. package/dist/components/atoms/tab/Tab.stories.d.ts +7 -0
  452. package/dist/components/atoms/tab/Tab.stories.js +20 -0
  453. package/dist/components/atoms/tab/index.d.ts +2 -0
  454. package/dist/components/atoms/tab/index.js +4 -0
  455. package/dist/components/atoms/tab/styles.d.ts +4 -0
  456. package/dist/components/atoms/tab/styles.js +7 -0
  457. package/dist/components/atoms/tab/tab.d.ts +34 -0
  458. package/dist/components/atoms/tab/tab.js +44 -0
  459. package/dist/components/atoms/tooltip/index.d.ts +1 -0
  460. package/dist/components/atoms/tooltip/index.js +4 -0
  461. package/dist/components/atoms/tooltip/tooltip.d.ts +54 -0
  462. package/dist/components/atoms/tooltip/tooltip.js +38 -0
  463. package/dist/components/atoms/tooltip/tooltip.stories.d.ts +18 -0
  464. package/dist/components/atoms/tooltip/tooltip.stories.js +150 -0
  465. package/dist/components/molecules/alert/alert.d.ts +24 -0
  466. package/dist/components/molecules/alert/alert.js +78 -0
  467. package/dist/components/molecules/alert/index.d.ts +1 -0
  468. package/dist/components/molecules/alert/index.js +4 -0
  469. package/dist/components/molecules/button/Button.stories.d.ts +7 -0
  470. package/dist/components/molecules/button/Button.stories.js +20 -0
  471. package/dist/components/molecules/button/button.d.ts +53 -0
  472. package/dist/components/molecules/button/button.js +91 -0
  473. package/dist/components/molecules/button/index.d.ts +2 -0
  474. package/dist/components/molecules/button/index.js +4 -0
  475. package/dist/components/molecules/button/loading-spinner.d.ts +7 -0
  476. package/dist/components/molecules/button/loading-spinner.js +44 -0
  477. package/dist/components/molecules/button/styles.d.ts +7 -0
  478. package/dist/components/molecules/button/styles.js +93 -0
  479. package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.d.ts +7 -0
  480. package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.js +24 -0
  481. package/dist/components/molecules/card-content/notes-and-history/index.d.ts +2 -0
  482. package/dist/components/molecules/card-content/notes-and-history/index.js +4 -0
  483. package/dist/components/molecules/card-content/notes-and-history/notes-and-history.d.ts +15 -0
  484. package/dist/components/molecules/card-content/notes-and-history/notes-and-history.js +29 -0
  485. package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.d.ts +7 -0
  486. package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +20 -0
  487. package/dist/components/molecules/collapsible-card/collapsible-card.d.ts +44 -0
  488. package/dist/components/molecules/collapsible-card/collapsible-card.js +87 -0
  489. package/dist/components/molecules/collapsible-card/index.d.ts +2 -0
  490. package/dist/components/molecules/collapsible-card/index.js +4 -0
  491. package/dist/components/molecules/conversation/contact/coloring.d.ts +6 -0
  492. package/dist/components/molecules/conversation/contact/coloring.js +7 -0
  493. package/dist/components/molecules/conversation/contact/contact.d.ts +25 -0
  494. package/dist/components/molecules/conversation/contact/contact.js +56 -0
  495. package/dist/components/molecules/conversation/contact/index.d.ts +2 -0
  496. package/dist/components/molecules/conversation/contact/index.js +4 -0
  497. package/dist/components/molecules/conversation/contact/styles.d.ts +18 -0
  498. package/dist/components/molecules/conversation/contact/styles.js +16 -0
  499. package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.d.ts +7 -0
  500. package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +20 -0
  501. package/dist/components/molecules/conversation/message-editor/index.d.ts +2 -0
  502. package/dist/components/molecules/conversation/message-editor/index.js +4 -0
  503. package/dist/components/molecules/conversation/message-editor/message-editor.d.ts +17 -0
  504. package/dist/components/molecules/conversation/message-editor/message-editor.js +38 -0
  505. package/dist/components/molecules/conversation/message-editor/styles.d.ts +1 -0
  506. package/dist/components/molecules/conversation/message-editor/styles.js +4 -0
  507. package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.d.ts +7 -0
  508. package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +20 -0
  509. package/dist/components/molecules/conversation/message-group-composer/index.d.ts +2 -0
  510. package/dist/components/molecules/conversation/message-group-composer/index.js +4 -0
  511. package/dist/components/molecules/conversation/message-group-composer/message-group-composer.d.ts +9 -0
  512. package/dist/components/molecules/conversation/message-group-composer/message-group-composer.js +41 -0
  513. package/dist/components/molecules/conversation/message-group-composer/styles.d.ts +4 -0
  514. package/dist/components/molecules/conversation/message-group-composer/styles.js +7 -0
  515. package/dist/components/molecules/datatables/cell/Cell.stories.d.ts +7 -0
  516. package/dist/components/molecules/datatables/cell/Cell.stories.js +20 -0
  517. package/dist/components/molecules/datatables/cell/cell.d.ts +62 -0
  518. package/dist/components/molecules/datatables/cell/cell.js +51 -0
  519. package/dist/components/molecules/datatables/cell/index.d.ts +2 -0
  520. package/dist/components/molecules/datatables/cell/index.js +4 -0
  521. package/dist/components/molecules/datatables/cell/styles.d.ts +3 -0
  522. package/dist/components/molecules/datatables/cell/styles.js +12 -0
  523. package/dist/components/molecules/datatables/row/Row.stories.d.ts +7 -0
  524. package/dist/components/molecules/datatables/row/Row.stories.js +20 -0
  525. package/dist/components/molecules/datatables/row/index.d.ts +2 -0
  526. package/dist/components/molecules/datatables/row/index.js +4 -0
  527. package/dist/components/molecules/datatables/row/row.d.ts +26 -0
  528. package/dist/components/molecules/datatables/row/row.js +21 -0
  529. package/dist/components/molecules/datatables/row/styles.d.ts +1 -0
  530. package/dist/components/molecules/datatables/row/styles.js +4 -0
  531. package/dist/components/molecules/datatables/row-header/RowHeader.stories.d.ts +7 -0
  532. package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +20 -0
  533. package/dist/components/molecules/datatables/row-header/index.d.ts +2 -0
  534. package/dist/components/molecules/datatables/row-header/index.js +4 -0
  535. package/dist/components/molecules/datatables/row-header/row-header.d.ts +48 -0
  536. package/dist/components/molecules/datatables/row-header/row-header.js +63 -0
  537. package/dist/components/molecules/datatables/row-header/styles.d.ts +3 -0
  538. package/dist/components/molecules/datatables/row-header/styles.js +6 -0
  539. package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.d.ts +7 -0
  540. package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +20 -0
  541. package/dist/components/molecules/dataviz/donut-chart/donut-chart.d.ts +15 -0
  542. package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +5519 -0
  543. package/dist/components/molecules/dataviz/donut-chart/index.d.ts +2 -0
  544. package/dist/components/molecules/dataviz/donut-chart/index.js +4 -0
  545. package/dist/components/molecules/dataviz/donut-chart/styles.d.ts +11 -0
  546. package/dist/components/molecules/dataviz/donut-chart/styles.js +14 -0
  547. package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.d.ts +7 -0
  548. package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +20 -0
  549. package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.d.ts +14 -0
  550. package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.js +67 -0
  551. package/dist/components/molecules/dataviz/dot-matrix/index.d.ts +2 -0
  552. package/dist/components/molecules/dataviz/dot-matrix/index.js +4 -0
  553. package/dist/components/molecules/dataviz/dot-matrix/styles.d.ts +8 -0
  554. package/dist/components/molecules/dataviz/dot-matrix/styles.js +11 -0
  555. package/dist/components/molecules/dataviz/legend/index.d.ts +2 -0
  556. package/dist/components/molecules/dataviz/legend/index.js +4 -0
  557. package/dist/components/molecules/dataviz/legend/legend.d.ts +12 -0
  558. package/dist/components/molecules/dataviz/legend/legend.js +53 -0
  559. package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.d.ts +13 -0
  560. package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.js +88 -0
  561. package/dist/components/molecules/dataviz/progress-bar/index.d.ts +2 -0
  562. package/dist/components/molecules/dataviz/progress-bar/index.js +4 -0
  563. package/dist/components/molecules/dataviz/progress-bar/progress-bar.d.ts +34 -0
  564. package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +48 -0
  565. package/dist/components/molecules/dataviz/progress-bar/styles.d.ts +5 -0
  566. package/dist/components/molecules/dataviz/progress-bar/styles.js +8 -0
  567. package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.d.ts +7 -0
  568. package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +20 -0
  569. package/dist/components/molecules/dataviz/single-stacked-bar/index.d.ts +2 -0
  570. package/dist/components/molecules/dataviz/single-stacked-bar/index.js +4 -0
  571. package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.d.ts +15 -0
  572. package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.js +81 -0
  573. package/dist/components/molecules/dialog/dialog.d.ts +25 -0
  574. package/dist/components/molecules/dialog/dialog.js +100 -0
  575. package/dist/components/molecules/dialog/index.d.ts +1 -0
  576. package/dist/components/molecules/dialog/index.js +4 -0
  577. package/dist/components/molecules/dialog/use-ui-element-size.d.ts +31 -0
  578. package/dist/components/molecules/dialog/use-ui-element-size.js +24 -0
  579. package/dist/components/molecules/drawer/Drawer.stories.d.ts +22 -0
  580. package/dist/components/molecules/drawer/Drawer.stories.js +383 -0
  581. package/dist/components/molecules/drawer/drawer.d.ts +66 -0
  582. package/dist/components/molecules/drawer/drawer.js +126 -0
  583. package/dist/components/molecules/drawer/index.d.ts +2 -0
  584. package/dist/components/molecules/drawer/index.js +4 -0
  585. package/dist/components/molecules/filter/checkbox/checkbox.d.ts +19 -0
  586. package/dist/components/molecules/filter/checkbox/checkbox.js +45 -0
  587. package/dist/components/molecules/filter/checkbox/index.d.ts +2 -0
  588. package/dist/components/molecules/filter/checkbox/index.js +4 -0
  589. package/dist/components/molecules/filter/context-search/context-search.d.ts +19 -0
  590. package/dist/components/molecules/filter/context-search/context-search.js +58 -0
  591. package/dist/components/molecules/filter/context-search/index.d.ts +2 -0
  592. package/dist/components/molecules/filter/context-search/index.js +4 -0
  593. package/dist/components/molecules/filter/date-range-selector/date-range-selector.d.ts +28 -0
  594. package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +306 -0
  595. package/dist/components/molecules/filter/date-range-selector/index.d.ts +2 -0
  596. package/dist/components/molecules/filter/date-range-selector/index.js +4 -0
  597. package/dist/components/molecules/filter/date-selector/DateSelector.stories.d.ts +7 -0
  598. package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +20 -0
  599. package/dist/components/molecules/filter/date-selector/date-selector.d.ts +31 -0
  600. package/dist/components/molecules/filter/date-selector/date-selector.js +243 -0
  601. package/dist/components/molecules/filter/date-selector/index.d.ts +2 -0
  602. package/dist/components/molecules/filter/date-selector/index.js +4 -0
  603. package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.d.ts +23 -0
  604. package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +172 -0
  605. package/dist/components/molecules/filter/dropdown-selector/index.d.ts +2 -0
  606. package/dist/components/molecules/filter/dropdown-selector/index.js +4 -0
  607. package/dist/components/molecules/filter/dropdown-selector/styles.d.ts +13 -0
  608. package/dist/components/molecules/filter/dropdown-selector/styles.js +22 -0
  609. package/dist/components/molecules/filter/range-selector/RangeSelector.stories.d.ts +7 -0
  610. package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +20 -0
  611. package/dist/components/molecules/filter/range-selector/index.d.ts +2 -0
  612. package/dist/components/molecules/filter/range-selector/index.js +4 -0
  613. package/dist/components/molecules/filter/range-selector/range-selector.d.ts +33 -0
  614. package/dist/components/molecules/filter/range-selector/range-selector.js +630 -0
  615. package/dist/components/molecules/filter/range-selector/styles.d.ts +17 -0
  616. package/dist/components/molecules/filter/range-selector/styles.js +25 -0
  617. package/dist/components/molecules/filter/segmented-control/index.d.ts +2 -0
  618. package/dist/components/molecules/filter/segmented-control/index.js +4 -0
  619. package/dist/components/molecules/filter/segmented-control/segmented-control.d.ts +23 -0
  620. package/dist/components/molecules/filter/segmented-control/segmented-control.js +43 -0
  621. package/dist/components/molecules/filter/segmented-control/styles.d.ts +7 -0
  622. package/dist/components/molecules/filter/segmented-control/styles.js +11 -0
  623. package/dist/components/molecules/form/radiogroup/index.d.ts +2 -0
  624. package/dist/components/molecules/form/radiogroup/index.js +4 -0
  625. package/dist/components/molecules/form/radiogroup/radiogroup.d.ts +66 -0
  626. package/dist/components/molecules/form/radiogroup/radiogroup.js +80 -0
  627. package/dist/components/molecules/form/radiogroup/radiogroup.stories.d.ts +12 -0
  628. package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +95 -0
  629. package/dist/components/molecules/link/Link.stories.d.ts +7 -0
  630. package/dist/components/molecules/link/Link.stories.js +20 -0
  631. package/dist/components/molecules/link/index.d.ts +2 -0
  632. package/dist/components/molecules/link/index.js +4 -0
  633. package/dist/components/molecules/link/link.d.ts +34 -0
  634. package/dist/components/molecules/link/link.js +78 -0
  635. package/dist/components/molecules/link/styles.d.ts +4 -0
  636. package/dist/components/molecules/link/styles.js +7 -0
  637. package/dist/components/molecules/navigation/context-menu/context-menu.d.ts +13 -0
  638. package/dist/components/molecules/navigation/context-menu/context-menu.js +28 -0
  639. package/dist/components/molecules/navigation/header/Header.stories.d.ts +7 -0
  640. package/dist/components/molecules/navigation/header/Header.stories.js +20 -0
  641. package/dist/components/molecules/navigation/header/header.d.ts +37 -0
  642. package/dist/components/molecules/navigation/header/header.js +38 -0
  643. package/dist/components/molecules/navigation/header/index.d.ts +2 -0
  644. package/dist/components/molecules/navigation/header/index.js +4 -0
  645. package/dist/components/molecules/navigation/header/styles.d.ts +6 -0
  646. package/dist/components/molecules/navigation/header/styles.js +9 -0
  647. package/dist/components/molecules/navigation/menubar/index.d.ts +2 -0
  648. package/dist/components/molecules/navigation/menubar/index.js +4 -0
  649. package/dist/components/molecules/navigation/menubar/menubar.d.ts +27 -0
  650. package/dist/components/molecules/navigation/menubar/menubar.js +27 -0
  651. package/dist/components/molecules/navigation/sidebar/Sidebar.stories.d.ts +7 -0
  652. package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +20 -0
  653. package/dist/components/molecules/navigation/sidebar/index.d.ts +2 -0
  654. package/dist/components/molecules/navigation/sidebar/index.js +4 -0
  655. package/dist/components/molecules/navigation/sidebar/sidebar.d.ts +33 -0
  656. package/dist/components/molecules/navigation/sidebar/sidebar.js +53 -0
  657. package/dist/components/molecules/notifications/content/Content.stories.d.ts +7 -0
  658. package/dist/components/molecules/notifications/content/Content.stories.js +20 -0
  659. package/dist/components/molecules/notifications/content/coloring.d.ts +7 -0
  660. package/dist/components/molecules/notifications/content/coloring.js +9 -0
  661. package/dist/components/molecules/notifications/content/content.d.ts +29 -0
  662. package/dist/components/molecules/notifications/content/content.js +51 -0
  663. package/dist/components/molecules/notifications/content/index.d.ts +2 -0
  664. package/dist/components/molecules/notifications/content/index.js +4 -0
  665. package/dist/components/molecules/snackbar/Snackbar.stories.d.ts +16 -0
  666. package/dist/components/molecules/snackbar/Snackbar.stories.js +170 -0
  667. package/dist/components/molecules/snackbar/index.d.ts +2 -0
  668. package/dist/components/molecules/snackbar/index.js +4 -0
  669. package/dist/components/molecules/snackbar/snackbar.d.ts +41 -0
  670. package/dist/components/molecules/snackbar/snackbar.js +31 -0
  671. package/dist/components/molecules/snackbar/styles.d.ts +5 -0
  672. package/dist/components/molecules/snackbar/styles.js +9 -0
  673. package/dist/components/molecules/tab-group/index.d.ts +3 -0
  674. package/dist/components/molecules/tab-group/index.js +4 -0
  675. package/dist/components/molecules/tab-group/styles.d.ts +3 -0
  676. package/dist/components/molecules/tab-group/styles.js +6 -0
  677. package/dist/components/molecules/tab-group/tab-group.d.ts +19 -0
  678. package/dist/components/molecules/tab-group/tab-group.js +23 -0
  679. package/dist/components/molecules/tab-group/tabgroup.stories.d.ts +12 -0
  680. package/dist/components/molecules/tab-group/tabgroup.stories.js +285 -0
  681. package/dist/components/styles/colors/colormap.d.ts +277 -0
  682. package/dist/components/styles/colors/colormap.js +279 -0
  683. package/dist/components/styles/colors/colors.d.ts +1 -0
  684. package/dist/components/styles/colors/colors.js +89 -0
  685. package/dist/components/styles/colors/index.d.ts +2 -0
  686. package/dist/components/styles/colors/index.js +26 -0
  687. package/dist/components/styles/dashedBorder/DashedLineSVG.d.ts +1 -0
  688. package/dist/components/styles/dashedBorder/DashedLineSVG.js +17 -0
  689. package/dist/components/styles/dashedBorder/index.d.ts +1 -0
  690. package/dist/components/styles/dashedBorder/index.js +4 -0
  691. package/dist/components/styles/defaults/defaults.d.ts +65 -0
  692. package/dist/components/styles/defaults/defaults.js +72 -0
  693. package/dist/components/styles/defaults/index.d.ts +1 -0
  694. package/dist/components/styles/defaults/index.js +9 -0
  695. package/dist/components/styles/tailwind-config/index.d.ts +3 -0
  696. package/dist/components/styles/tailwind-config/index.js +109 -0
  697. package/dist/components/styles/tool-tip/styles.d.ts +2 -0
  698. package/dist/components/styles/tool-tip/styles.js +5 -0
  699. package/dist/components/styles/typography/index.d.ts +3 -0
  700. package/dist/components/styles/typography/index.js +10 -0
  701. package/dist/components/styles/typography/style.d.ts +50 -0
  702. package/dist/components/styles/typography/style.js +48 -0
  703. package/dist/components/styles/typography/typography.d.ts +413 -0
  704. package/dist/components/styles/typography/typography.js +59 -0
  705. package/dist/constants-BfMb81ht.js +8 -0
  706. package/dist/format-BwmhcciO.js +1224 -0
  707. package/dist/hooks/use-sticky-z-index.d.ts +31 -0
  708. package/dist/hooks/use-sticky-z-index.js +37 -0
  709. package/dist/index-BKdkX0lZ.js +924 -0
  710. package/dist/index-BZPx6jYI.js +8 -0
  711. package/dist/index-C0ZrzaoZ.js +238 -0
  712. package/dist/index-CYyrKZeH.js +3716 -0
  713. package/dist/index-CnWyMXBX.js +824 -0
  714. package/dist/index-DNpMaKvH.js +347 -0
  715. package/dist/index-DfdAzObv.js +24167 -0
  716. package/dist/index-DotfMcM0.js +21051 -0
  717. package/dist/index-DrfOymtc.js +237 -0
  718. package/dist/index-OIdMhwsO.js +53 -0
  719. package/dist/index-fN7hCOo3.js +42 -0
  720. package/dist/index-rKs9bXHr.js +6 -0
  721. package/dist/isBefore-D0yKF9R5.js +8 -0
  722. package/dist/isToday-DmBTkQMq.js +1606 -0
  723. package/dist/isWithinInterval-BTUruC3j.js +11 -0
  724. package/dist/lib/utils.d.ts +3 -0
  725. package/dist/lib/utils.js +20 -0
  726. package/dist/lodash-BRbpQ7iy.js +3676 -0
  727. package/dist/main.d.ts +102 -0
  728. package/dist/main.js +166 -0
  729. package/dist/purify.es-eYFoHPwR.js +528 -0
  730. package/dist/react-spring_web.modern-BLL8Qmtg.js +2345 -0
  731. package/dist/set-CXVt2sL3.js +20 -0
  732. package/dist/snackbar-BaF8Ts3S.js +505 -0
  733. package/dist/startOfToday-BPMZZniU.js +7 -0
  734. package/dist/startOfWeek-DBvLd9He.js +23 -0
  735. package/dist/toDate-DF9e2eS8.js +7 -0
  736. package/package.json +93 -0
@@ -0,0 +1,3240 @@
1
+ import { jsxs as ie, jsx as Ct } from "react/jsx-runtime";
2
+ import Q from "react";
3
+ import { g as re } from "../../../../_commonjsHelpers-BkfeUUK-.js";
4
+ import { t as Ot } from "../../../../bundle-mjs-CAy1p0fn.js";
5
+ import "../../../../purify.es-eYFoHPwR.js";
6
+ import { styleMap as ne } from "../../../styles/typography/style.js";
7
+ import "../../../styles/colors/colormap.js";
8
+ import { Icons as ae } from "../../icons/icons.js";
9
+ import "../../icons/iconsSVGs/Large/Profile.js";
10
+ import "../../icons/iconsSVGs/Small/Profile.js";
11
+ import { outlinedBorder as ue } from "../../../styles/defaults/defaults.js";
12
+ import { m as J } from "../../../../index-CYyrKZeH.js";
13
+ function Z(a) {
14
+ return typeof a == "string" || a instanceof String;
15
+ }
16
+ function Vt(a) {
17
+ var t;
18
+ return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
19
+ }
20
+ function Kt(a, t) {
21
+ return Array.isArray(t) ? Kt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
22
+ let [i, r] = s;
23
+ return t(r, i) && (e[i] = r), e;
24
+ }, {});
25
+ }
26
+ const m = {
27
+ NONE: "NONE",
28
+ LEFT: "LEFT",
29
+ FORCE_LEFT: "FORCE_LEFT",
30
+ RIGHT: "RIGHT",
31
+ FORCE_RIGHT: "FORCE_RIGHT"
32
+ };
33
+ function oe(a) {
34
+ switch (a) {
35
+ case m.LEFT:
36
+ return m.FORCE_LEFT;
37
+ case m.RIGHT:
38
+ return m.FORCE_RIGHT;
39
+ default:
40
+ return a;
41
+ }
42
+ }
43
+ function At(a) {
44
+ return a.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
45
+ }
46
+ function ot(a, t) {
47
+ if (t === a) return !0;
48
+ const e = Array.isArray(t), s = Array.isArray(a);
49
+ let i;
50
+ if (e && s) {
51
+ if (t.length != a.length) return !1;
52
+ for (i = 0; i < t.length; i++) if (!ot(t[i], a[i])) return !1;
53
+ return !0;
54
+ }
55
+ if (e != s) return !1;
56
+ if (t && a && typeof t == "object" && typeof a == "object") {
57
+ const r = t instanceof Date, n = a instanceof Date;
58
+ if (r && n) return t.getTime() == a.getTime();
59
+ if (r != n) return !1;
60
+ const u = t instanceof RegExp, o = a instanceof RegExp;
61
+ if (u && o) return t.toString() == a.toString();
62
+ if (u != o) return !1;
63
+ const h = Object.keys(t);
64
+ for (i = 0; i < h.length; i++) if (!Object.prototype.hasOwnProperty.call(a, h[i])) return !1;
65
+ for (i = 0; i < h.length; i++) if (!ot(a[h[i]], t[h[i]])) return !1;
66
+ return !0;
67
+ } else if (t && a && typeof t == "function" && typeof a == "function")
68
+ return t.toString() === a.toString();
69
+ return !1;
70
+ }
71
+ class le {
72
+ /** Current input value */
73
+ /** Current cursor position */
74
+ /** Old input value */
75
+ /** Old selection */
76
+ constructor(t) {
77
+ for (Object.assign(this, t); this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos); )
78
+ --this.oldSelection.start;
79
+ if (this.insertedCount)
80
+ for (; this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end); )
81
+ this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end ? ++this.oldSelection.end : ++this.cursorPos;
82
+ }
83
+ /** Start changing position */
84
+ get startChangePos() {
85
+ return Math.min(this.cursorPos, this.oldSelection.start);
86
+ }
87
+ /** Inserted symbols count */
88
+ get insertedCount() {
89
+ return this.cursorPos - this.startChangePos;
90
+ }
91
+ /** Inserted symbols */
92
+ get inserted() {
93
+ return this.value.substr(this.startChangePos, this.insertedCount);
94
+ }
95
+ /** Removed symbols count */
96
+ get removedCount() {
97
+ return Math.max(this.oldSelection.end - this.startChangePos || // for Delete
98
+ this.oldValue.length - this.value.length, 0);
99
+ }
100
+ /** Removed symbols */
101
+ get removed() {
102
+ return this.oldValue.substr(this.startChangePos, this.removedCount);
103
+ }
104
+ /** Unchanged head symbols */
105
+ get head() {
106
+ return this.value.substring(0, this.startChangePos);
107
+ }
108
+ /** Unchanged tail symbols */
109
+ get tail() {
110
+ return this.value.substring(this.startChangePos + this.insertedCount);
111
+ }
112
+ /** Remove direction */
113
+ get removeDirection() {
114
+ return !this.removedCount || this.insertedCount ? m.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
115
+ this.oldSelection.end === this.oldSelection.start ? m.RIGHT : m.LEFT;
116
+ }
117
+ }
118
+ function k(a, t) {
119
+ return new k.InputMask(a, t);
120
+ }
121
+ function Gt(a) {
122
+ if (a == null) throw new Error("mask property should be defined");
123
+ return a instanceof RegExp ? k.MaskedRegExp : Z(a) ? k.MaskedPattern : a === Date ? k.MaskedDate : a === Number ? k.MaskedNumber : Array.isArray(a) || a === Array ? k.MaskedDynamic : k.Masked && a.prototype instanceof k.Masked ? a : k.Masked && a instanceof k.Masked ? a.constructor : a instanceof Function ? k.MaskedFunction : (console.warn("Mask not found for mask", a), k.Masked);
124
+ }
125
+ function st(a) {
126
+ if (!a) throw new Error("Options in not defined");
127
+ if (k.Masked) {
128
+ if (a.prototype instanceof k.Masked) return {
129
+ mask: a
130
+ };
131
+ const {
132
+ mask: t = void 0,
133
+ ...e
134
+ } = a instanceof k.Masked ? {
135
+ mask: a
136
+ } : Vt(a) && a.mask instanceof k.Masked ? a : {};
137
+ if (t) {
138
+ const s = t.mask;
139
+ return {
140
+ ...Kt(t, (i, r) => !r.startsWith("_")),
141
+ mask: t.constructor,
142
+ _mask: s,
143
+ ...e
144
+ };
145
+ }
146
+ }
147
+ return Vt(a) ? {
148
+ ...a
149
+ } : {
150
+ mask: a
151
+ };
152
+ }
153
+ function G(a) {
154
+ if (k.Masked && a instanceof k.Masked) return a;
155
+ const t = st(a), e = Gt(t.mask);
156
+ if (!e) throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
157
+ return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
158
+ }
159
+ k.createMask = G;
160
+ class Rt {
161
+ /** */
162
+ /** */
163
+ /** */
164
+ /** Safely returns selection start */
165
+ get selectionStart() {
166
+ let t;
167
+ try {
168
+ t = this._unsafeSelectionStart;
169
+ } catch {
170
+ }
171
+ return t ?? this.value.length;
172
+ }
173
+ /** Safely returns selection end */
174
+ get selectionEnd() {
175
+ let t;
176
+ try {
177
+ t = this._unsafeSelectionEnd;
178
+ } catch {
179
+ }
180
+ return t ?? this.value.length;
181
+ }
182
+ /** Safely sets element selection */
183
+ select(t, e) {
184
+ if (!(t == null || e == null || t === this.selectionStart && e === this.selectionEnd))
185
+ try {
186
+ this._unsafeSelect(t, e);
187
+ } catch {
188
+ }
189
+ }
190
+ /** */
191
+ get isActive() {
192
+ return !1;
193
+ }
194
+ /** */
195
+ /** */
196
+ /** */
197
+ }
198
+ k.MaskElement = Rt;
199
+ const Pt = 90, he = 89;
200
+ class ht extends Rt {
201
+ /** HTMLElement to use mask on */
202
+ constructor(t) {
203
+ super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
204
+ }
205
+ get rootElement() {
206
+ var t, e, s;
207
+ return (t = (e = (s = this.input).getRootNode) == null ? void 0 : e.call(s)) != null ? t : document;
208
+ }
209
+ /** Is element in focus */
210
+ get isActive() {
211
+ return this.input === this.rootElement.activeElement;
212
+ }
213
+ /** Binds HTMLElement events to mask internal events */
214
+ bindEvents(t) {
215
+ this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
216
+ }
217
+ _onKeydown(t) {
218
+ if (this._handlers.redo && (t.keyCode === Pt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === he && t.ctrlKey))
219
+ return t.preventDefault(), this._handlers.redo(t);
220
+ if (this._handlers.undo && t.keyCode === Pt && (t.metaKey || t.ctrlKey))
221
+ return t.preventDefault(), this._handlers.undo(t);
222
+ t.isComposing || this._handlers.selectionChange(t);
223
+ }
224
+ _onBeforeinput(t) {
225
+ if (t.inputType === "historyUndo" && this._handlers.undo)
226
+ return t.preventDefault(), this._handlers.undo(t);
227
+ if (t.inputType === "historyRedo" && this._handlers.redo)
228
+ return t.preventDefault(), this._handlers.redo(t);
229
+ }
230
+ _onCompositionEnd(t) {
231
+ this._handlers.input(t);
232
+ }
233
+ _onInput(t) {
234
+ t.isComposing || this._handlers.input(t);
235
+ }
236
+ /** Unbinds HTMLElement events to mask internal events */
237
+ unbindEvents() {
238
+ this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
239
+ }
240
+ }
241
+ k.HTMLMaskElement = ht;
242
+ class pe extends ht {
243
+ /** InputElement to use mask on */
244
+ constructor(t) {
245
+ super(t), this.input = t;
246
+ }
247
+ /** Returns InputElement selection start */
248
+ get _unsafeSelectionStart() {
249
+ return this.input.selectionStart != null ? this.input.selectionStart : this.value.length;
250
+ }
251
+ /** Returns InputElement selection end */
252
+ get _unsafeSelectionEnd() {
253
+ return this.input.selectionEnd;
254
+ }
255
+ /** Sets InputElement selection */
256
+ _unsafeSelect(t, e) {
257
+ this.input.setSelectionRange(t, e);
258
+ }
259
+ get value() {
260
+ return this.input.value;
261
+ }
262
+ set value(t) {
263
+ this.input.value = t;
264
+ }
265
+ }
266
+ k.HTMLMaskElement = ht;
267
+ class Wt extends ht {
268
+ /** Returns HTMLElement selection start */
269
+ get _unsafeSelectionStart() {
270
+ const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
271
+ return i == null || s == null || s < i ? s : i;
272
+ }
273
+ /** Returns HTMLElement selection end */
274
+ get _unsafeSelectionEnd() {
275
+ const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
276
+ return i == null || s == null || s > i ? s : i;
277
+ }
278
+ /** Sets HTMLElement selection */
279
+ _unsafeSelect(t, e) {
280
+ if (!this.rootElement.createRange) return;
281
+ const s = this.rootElement.createRange();
282
+ s.setStart(this.input.firstChild || this.input, t), s.setEnd(this.input.lastChild || this.input, e);
283
+ const i = this.rootElement, r = i.getSelection && i.getSelection();
284
+ r && (r.removeAllRanges(), r.addRange(s));
285
+ }
286
+ /** HTMLElement value */
287
+ get value() {
288
+ return this.input.textContent || "";
289
+ }
290
+ set value(t) {
291
+ this.input.textContent = t;
292
+ }
293
+ }
294
+ k.HTMLContenteditableMaskElement = Wt;
295
+ class pt {
296
+ constructor() {
297
+ this.states = [], this.currentIndex = 0;
298
+ }
299
+ get currentState() {
300
+ return this.states[this.currentIndex];
301
+ }
302
+ get isEmpty() {
303
+ return this.states.length === 0;
304
+ }
305
+ push(t) {
306
+ this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > pt.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
307
+ }
308
+ go(t) {
309
+ return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
310
+ }
311
+ undo() {
312
+ return this.go(-1);
313
+ }
314
+ redo() {
315
+ return this.go(1);
316
+ }
317
+ clear() {
318
+ this.states.length = 0, this.currentIndex = 0;
319
+ }
320
+ }
321
+ pt.MAX_LENGTH = 100;
322
+ class ce {
323
+ /**
324
+ View element
325
+ */
326
+ /** Internal {@link Masked} model */
327
+ constructor(t, e) {
328
+ this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Wt(t) : new pe(t), this.masked = G(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
329
+ }
330
+ maskEquals(t) {
331
+ var e;
332
+ return t == null || ((e = this.masked) == null ? void 0 : e.maskEquals(t));
333
+ }
334
+ /** Masked */
335
+ get mask() {
336
+ return this.masked.mask;
337
+ }
338
+ set mask(t) {
339
+ if (this.maskEquals(t)) return;
340
+ if (!(t instanceof k.Masked) && this.masked.constructor === Gt(t)) {
341
+ this.masked.updateOptions({
342
+ mask: t
343
+ });
344
+ return;
345
+ }
346
+ const e = t instanceof k.Masked ? t : G({
347
+ mask: t
348
+ });
349
+ e.unmaskedValue = this.masked.unmaskedValue, this.masked = e;
350
+ }
351
+ /** Raw value */
352
+ get value() {
353
+ return this._value;
354
+ }
355
+ set value(t) {
356
+ this.value !== t && (this.masked.value = t, this.updateControl("auto"));
357
+ }
358
+ /** Unmasked value */
359
+ get unmaskedValue() {
360
+ return this._unmaskedValue;
361
+ }
362
+ set unmaskedValue(t) {
363
+ this.unmaskedValue !== t && (this.masked.unmaskedValue = t, this.updateControl("auto"));
364
+ }
365
+ /** Raw input value */
366
+ get rawInputValue() {
367
+ return this._rawInputValue;
368
+ }
369
+ set rawInputValue(t) {
370
+ this.rawInputValue !== t && (this.masked.rawInputValue = t, this.updateControl(), this.alignCursor());
371
+ }
372
+ /** Typed unmasked value */
373
+ get typedValue() {
374
+ return this.masked.typedValue;
375
+ }
376
+ set typedValue(t) {
377
+ this.masked.typedValueEquals(t) || (this.masked.typedValue = t, this.updateControl("auto"));
378
+ }
379
+ /** Display value */
380
+ get displayValue() {
381
+ return this.masked.displayValue;
382
+ }
383
+ /** Starts listening to element events */
384
+ _bindEvents() {
385
+ this.el.bindEvents({
386
+ selectionChange: this._saveSelection,
387
+ input: this._onInput,
388
+ drop: this._onDrop,
389
+ click: this._onClick,
390
+ focus: this._onFocus,
391
+ commit: this._onChange,
392
+ undo: this._onUndo,
393
+ redo: this._onRedo
394
+ });
395
+ }
396
+ /** Stops listening to element events */
397
+ _unbindEvents() {
398
+ this.el && this.el.unbindEvents();
399
+ }
400
+ /** Fires custom event */
401
+ _fireEvent(t, e) {
402
+ const s = this._listeners[t];
403
+ s && s.forEach((i) => i(e));
404
+ }
405
+ /** Current selection start */
406
+ get selectionStart() {
407
+ return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
408
+ }
409
+ /** Current cursor position */
410
+ get cursorPos() {
411
+ return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
412
+ }
413
+ set cursorPos(t) {
414
+ !this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
415
+ }
416
+ /** Stores current selection */
417
+ _saveSelection() {
418
+ this.displayValue !== this.el.value && console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."), this._selection = {
419
+ start: this.selectionStart,
420
+ end: this.cursorPos
421
+ };
422
+ }
423
+ /** Syncronizes model value from view */
424
+ updateValue() {
425
+ this.masked.value = this.el.value, this._value = this.masked.value, this._unmaskedValue = this.masked.unmaskedValue, this._rawInputValue = this.masked.rawInputValue;
426
+ }
427
+ /** Syncronizes view from model value, fires change events */
428
+ updateControl(t) {
429
+ const e = this.masked.unmaskedValue, s = this.masked.value, i = this.masked.rawInputValue, r = this.displayValue, n = this.unmaskedValue !== e || this.value !== s || this._rawInputValue !== i;
430
+ this._unmaskedValue = e, this._value = s, this._rawInputValue = i, this.el.value !== r && (this.el.value = r), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), n && this._fireChangeEvents(), !this._historyChanging && (n || this.history.isEmpty) && this.history.push({
431
+ unmaskedValue: e,
432
+ selection: {
433
+ start: this.selectionStart,
434
+ end: this.cursorPos
435
+ }
436
+ });
437
+ }
438
+ /** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */
439
+ updateOptions(t) {
440
+ const {
441
+ mask: e,
442
+ ...s
443
+ } = t, i = !this.maskEquals(e), r = this.masked.optionsIsChanged(s);
444
+ i && (this.mask = e), r && this.masked.updateOptions(s), (i || r) && this.updateControl();
445
+ }
446
+ /** Updates cursor */
447
+ updateCursor(t) {
448
+ t != null && (this.cursorPos = t, this._delayUpdateCursor(t));
449
+ }
450
+ /** Delays cursor update to support mobile browsers */
451
+ _delayUpdateCursor(t) {
452
+ this._abortUpdateCursor(), this._changingCursorPos = t, this._cursorChanging = setTimeout(() => {
453
+ this.el && (this.cursorPos = this._changingCursorPos, this._abortUpdateCursor());
454
+ }, 10);
455
+ }
456
+ /** Fires custom events */
457
+ _fireChangeEvents() {
458
+ this._fireEvent("accept", this._inputEvent), this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
459
+ }
460
+ /** Aborts delayed cursor update */
461
+ _abortUpdateCursor() {
462
+ this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
463
+ }
464
+ /** Aligns cursor to nearest available position */
465
+ alignCursor() {
466
+ this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, m.LEFT));
467
+ }
468
+ /** Aligns cursor only if selection is empty */
469
+ alignCursorFriendly() {
470
+ this.selectionStart === this.cursorPos && this.alignCursor();
471
+ }
472
+ /** Adds listener on custom event */
473
+ on(t, e) {
474
+ return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(e), this;
475
+ }
476
+ /** Removes custom event listener */
477
+ off(t, e) {
478
+ if (!this._listeners[t]) return this;
479
+ if (!e)
480
+ return delete this._listeners[t], this;
481
+ const s = this._listeners[t].indexOf(e);
482
+ return s >= 0 && this._listeners[t].splice(s, 1), this;
483
+ }
484
+ /** Handles view input event */
485
+ _onInput(t) {
486
+ this._inputEvent = t, this._abortUpdateCursor();
487
+ const e = new le({
488
+ // new state
489
+ value: this.el.value,
490
+ cursorPos: this.cursorPos,
491
+ // old state
492
+ oldValue: this.displayValue,
493
+ oldSelection: this._selection
494
+ }), s = this.masked.rawInputValue, i = this.masked.splice(e.startChangePos, e.removed.length, e.inserted, e.removeDirection, {
495
+ input: !0,
496
+ raw: !0
497
+ }).offset, r = s === this.masked.rawInputValue ? e.removeDirection : m.NONE;
498
+ let n = this.masked.nearestInputPos(e.startChangePos + i, r);
499
+ r !== m.NONE && (n = this.masked.nearestInputPos(n, m.NONE)), this.updateControl(n), delete this._inputEvent;
500
+ }
501
+ /** Handles view change event and commits model value */
502
+ _onChange() {
503
+ this.displayValue !== this.el.value && this.updateValue(), this.masked.doCommit(), this.updateControl(), this._saveSelection();
504
+ }
505
+ /** Handles view drop event, prevents by default */
506
+ _onDrop(t) {
507
+ t.preventDefault(), t.stopPropagation();
508
+ }
509
+ /** Restore last selection on focus */
510
+ _onFocus(t) {
511
+ this.alignCursorFriendly();
512
+ }
513
+ /** Restore last selection on focus */
514
+ _onClick(t) {
515
+ this.alignCursorFriendly();
516
+ }
517
+ _onUndo() {
518
+ this._applyHistoryState(this.history.undo());
519
+ }
520
+ _onRedo() {
521
+ this._applyHistoryState(this.history.redo());
522
+ }
523
+ _applyHistoryState(t) {
524
+ t && (this._historyChanging = !0, this.unmaskedValue = t.unmaskedValue, this.el.select(t.selection.start, t.selection.end), this._saveSelection(), this._historyChanging = !1);
525
+ }
526
+ /** Unbind view events and removes element reference */
527
+ destroy() {
528
+ this._unbindEvents(), this._listeners.length = 0, delete this.el;
529
+ }
530
+ }
531
+ k.InputMask = ce;
532
+ class E {
533
+ /** Inserted symbols */
534
+ /** Additional offset if any changes occurred before tail */
535
+ /** Raw inserted is used by dynamic mask */
536
+ /** Can skip chars */
537
+ static normalize(t) {
538
+ return Array.isArray(t) ? t : [t, new E()];
539
+ }
540
+ constructor(t) {
541
+ Object.assign(this, {
542
+ inserted: "",
543
+ rawInserted: "",
544
+ tailShift: 0,
545
+ skip: !1
546
+ }, t);
547
+ }
548
+ /** Aggregate changes */
549
+ aggregate(t) {
550
+ return this.inserted += t.inserted, this.rawInserted += t.rawInserted, this.tailShift += t.tailShift, this.skip = this.skip || t.skip, this;
551
+ }
552
+ /** Total offset considering all changes */
553
+ get offset() {
554
+ return this.tailShift + this.inserted.length;
555
+ }
556
+ get consumed() {
557
+ return !!this.rawInserted || this.skip;
558
+ }
559
+ equals(t) {
560
+ return this.inserted === t.inserted && this.tailShift === t.tailShift && this.rawInserted === t.rawInserted && this.skip === t.skip;
561
+ }
562
+ }
563
+ k.ChangeDetails = E;
564
+ class H {
565
+ /** Tail value as string */
566
+ /** Tail start position */
567
+ /** Start position */
568
+ constructor(t, e, s) {
569
+ t === void 0 && (t = ""), e === void 0 && (e = 0), this.value = t, this.from = e, this.stop = s;
570
+ }
571
+ toString() {
572
+ return this.value;
573
+ }
574
+ extend(t) {
575
+ this.value += String(t);
576
+ }
577
+ appendTo(t) {
578
+ return t.append(this.toString(), {
579
+ tail: !0
580
+ }).aggregate(t._appendPlaceholder());
581
+ }
582
+ get state() {
583
+ return {
584
+ value: this.value,
585
+ from: this.from,
586
+ stop: this.stop
587
+ };
588
+ }
589
+ set state(t) {
590
+ Object.assign(this, t);
591
+ }
592
+ unshift(t) {
593
+ if (!this.value.length || t != null && this.from >= t) return "";
594
+ const e = this.value[0];
595
+ return this.value = this.value.slice(1), e;
596
+ }
597
+ shift() {
598
+ if (!this.value.length) return "";
599
+ const t = this.value[this.value.length - 1];
600
+ return this.value = this.value.slice(0, -1), t;
601
+ }
602
+ }
603
+ class N {
604
+ /** */
605
+ /** */
606
+ /** Transforms value before mask processing */
607
+ /** Transforms each char before mask processing */
608
+ /** Validates if value is acceptable */
609
+ /** Does additional processing at the end of editing */
610
+ /** Format typed value to string */
611
+ /** Parse string to get typed value */
612
+ /** Enable characters overwriting */
613
+ /** */
614
+ /** */
615
+ /** */
616
+ /** */
617
+ constructor(t) {
618
+ this._value = "", this._update({
619
+ ...N.DEFAULTS,
620
+ ...t
621
+ }), this._initialized = !0;
622
+ }
623
+ /** Sets and applies new options */
624
+ updateOptions(t) {
625
+ this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
626
+ }
627
+ /** Sets new options */
628
+ _update(t) {
629
+ Object.assign(this, t);
630
+ }
631
+ /** Mask state */
632
+ get state() {
633
+ return {
634
+ _value: this.value,
635
+ _rawInputValue: this.rawInputValue
636
+ };
637
+ }
638
+ set state(t) {
639
+ this._value = t._value;
640
+ }
641
+ /** Resets value */
642
+ reset() {
643
+ this._value = "";
644
+ }
645
+ get value() {
646
+ return this._value;
647
+ }
648
+ set value(t) {
649
+ this.resolve(t, {
650
+ input: !0
651
+ });
652
+ }
653
+ /** Resolve new value */
654
+ resolve(t, e) {
655
+ e === void 0 && (e = {
656
+ input: !0
657
+ }), this.reset(), this.append(t, e, ""), this.doCommit();
658
+ }
659
+ get unmaskedValue() {
660
+ return this.value;
661
+ }
662
+ set unmaskedValue(t) {
663
+ this.resolve(t, {});
664
+ }
665
+ get typedValue() {
666
+ return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
667
+ }
668
+ set typedValue(t) {
669
+ this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
670
+ }
671
+ /** Value that includes raw user input */
672
+ get rawInputValue() {
673
+ return this.extractInput(0, this.displayValue.length, {
674
+ raw: !0
675
+ });
676
+ }
677
+ set rawInputValue(t) {
678
+ this.resolve(t, {
679
+ raw: !0
680
+ });
681
+ }
682
+ get displayValue() {
683
+ return this.value;
684
+ }
685
+ get isComplete() {
686
+ return !0;
687
+ }
688
+ get isFilled() {
689
+ return this.isComplete;
690
+ }
691
+ /** Finds nearest input position in direction */
692
+ nearestInputPos(t, e) {
693
+ return t;
694
+ }
695
+ totalInputPositions(t, e) {
696
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
697
+ }
698
+ /** Extracts value in range considering flags */
699
+ extractInput(t, e, s) {
700
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
701
+ }
702
+ /** Extracts tail in range */
703
+ extractTail(t, e) {
704
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new H(this.extractInput(t, e), t);
705
+ }
706
+ /** Appends tail */
707
+ appendTail(t) {
708
+ return Z(t) && (t = new H(String(t))), t.appendTo(this);
709
+ }
710
+ /** Appends char */
711
+ _appendCharRaw(t, e) {
712
+ return t ? (this._value += t, new E({
713
+ inserted: t,
714
+ rawInserted: t
715
+ })) : new E();
716
+ }
717
+ /** Appends char */
718
+ _appendChar(t, e, s) {
719
+ e === void 0 && (e = {});
720
+ const i = this.state;
721
+ let r;
722
+ if ([t, r] = this.doPrepareChar(t, e), t && (r = r.aggregate(this._appendCharRaw(t, e)), !r.rawInserted && this.autofix === "pad")) {
723
+ const n = this.state;
724
+ this.state = i;
725
+ let u = this.pad(e);
726
+ const o = this._appendCharRaw(t, e);
727
+ u = u.aggregate(o), o.rawInserted || u.equals(r) ? r = u : this.state = n;
728
+ }
729
+ if (r.inserted) {
730
+ let n, u = this.doValidate(e) !== !1;
731
+ if (u && s != null) {
732
+ const o = this.state;
733
+ if (this.overwrite === !0) {
734
+ n = s.state;
735
+ for (let v = 0; v < r.rawInserted.length; ++v)
736
+ s.unshift(this.displayValue.length - r.tailShift);
737
+ }
738
+ let h = this.appendTail(s);
739
+ if (u = h.rawInserted.length === s.toString().length, !(u && h.inserted) && this.overwrite === "shift") {
740
+ this.state = o, n = s.state;
741
+ for (let v = 0; v < r.rawInserted.length; ++v)
742
+ s.shift();
743
+ h = this.appendTail(s), u = h.rawInserted.length === s.toString().length;
744
+ }
745
+ u && h.inserted && (this.state = o);
746
+ }
747
+ u || (r = new E(), this.state = i, s && n && (s.state = n));
748
+ }
749
+ return r;
750
+ }
751
+ /** Appends optional placeholder at the end */
752
+ _appendPlaceholder() {
753
+ return new E();
754
+ }
755
+ /** Appends optional eager placeholder at the end */
756
+ _appendEager() {
757
+ return new E();
758
+ }
759
+ /** Appends symbols considering flags */
760
+ append(t, e, s) {
761
+ if (!Z(t)) throw new Error("value should be string");
762
+ const i = Z(s) ? new H(String(s)) : s;
763
+ e != null && e.tail && (e._beforeTailState = this.state);
764
+ let r;
765
+ [t, r] = this.doPrepare(t, e);
766
+ for (let n = 0; n < t.length; ++n) {
767
+ const u = this._appendChar(t[n], e, i);
768
+ if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i)) break;
769
+ r.aggregate(u);
770
+ }
771
+ return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && r.aggregate(this._appendEager()), i != null && (r.tailShift += this.appendTail(i).tailShift), r;
772
+ }
773
+ remove(t, e) {
774
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new E();
775
+ }
776
+ /** Calls function and reapplies current value */
777
+ withValueRefresh(t) {
778
+ if (this._refreshing || !this._initialized) return t();
779
+ this._refreshing = !0;
780
+ const e = this.rawInputValue, s = this.value, i = t();
781
+ return this.rawInputValue = e, this.value && this.value !== s && s.indexOf(this.value) === 0 && (this.append(s.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, i;
782
+ }
783
+ runIsolated(t) {
784
+ if (this._isolated || !this._initialized) return t(this);
785
+ this._isolated = !0;
786
+ const e = this.state, s = t(this);
787
+ return this.state = e, delete this._isolated, s;
788
+ }
789
+ doSkipInvalid(t, e, s) {
790
+ return !!this.skipInvalid;
791
+ }
792
+ /** Prepares string before mask processing */
793
+ doPrepare(t, e) {
794
+ return e === void 0 && (e = {}), E.normalize(this.prepare ? this.prepare(t, this, e) : t);
795
+ }
796
+ /** Prepares each char before mask processing */
797
+ doPrepareChar(t, e) {
798
+ return e === void 0 && (e = {}), E.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
799
+ }
800
+ /** Validates if value is acceptable */
801
+ doValidate(t) {
802
+ return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
803
+ }
804
+ /** Does additional processing at the end of editing */
805
+ doCommit() {
806
+ this.commit && this.commit(this.value, this);
807
+ }
808
+ splice(t, e, s, i, r) {
809
+ s === void 0 && (s = ""), i === void 0 && (i = m.NONE), r === void 0 && (r = {
810
+ input: !0
811
+ });
812
+ const n = t + e, u = this.extractTail(n), o = this.eager === !0 || this.eager === "remove";
813
+ let h;
814
+ o && (i = oe(i), h = this.extractInput(0, n, {
815
+ raw: !0
816
+ }));
817
+ let v = t;
818
+ const g = new E();
819
+ if (i !== m.NONE && (v = this.nearestInputPos(t, e > 1 && t !== 0 && !o ? m.NONE : i), g.tailShift = v - t), g.aggregate(this.remove(v)), o && i !== m.NONE && h === this.rawInputValue)
820
+ if (i === m.FORCE_LEFT) {
821
+ let y;
822
+ for (; h === this.rawInputValue && (y = this.displayValue.length); )
823
+ g.aggregate(new E({
824
+ tailShift: -1
825
+ })).aggregate(this.remove(y - 1));
826
+ } else i === m.FORCE_RIGHT && u.unshift();
827
+ return g.aggregate(this.append(s, r, u));
828
+ }
829
+ maskEquals(t) {
830
+ return this.mask === t;
831
+ }
832
+ optionsIsChanged(t) {
833
+ return !ot(this, t);
834
+ }
835
+ typedValueEquals(t) {
836
+ const e = this.typedValue;
837
+ return t === e || N.EMPTY_VALUES.includes(t) && N.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
838
+ }
839
+ pad(t) {
840
+ return new E();
841
+ }
842
+ }
843
+ N.DEFAULTS = {
844
+ skipInvalid: !0
845
+ };
846
+ N.EMPTY_VALUES = [void 0, null, ""];
847
+ k.Masked = N;
848
+ class tt {
849
+ /** */
850
+ constructor(t, e) {
851
+ t === void 0 && (t = []), e === void 0 && (e = 0), this.chunks = t, this.from = e;
852
+ }
853
+ toString() {
854
+ return this.chunks.map(String).join("");
855
+ }
856
+ extend(t) {
857
+ if (!String(t)) return;
858
+ t = Z(t) ? new H(String(t)) : t;
859
+ const e = this.chunks[this.chunks.length - 1], s = e && // if stops are same or tail has no stop
860
+ (e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
861
+ t.from === e.from + e.toString().length;
862
+ if (t instanceof H)
863
+ s ? e.extend(t.toString()) : this.chunks.push(t);
864
+ else if (t instanceof tt) {
865
+ if (t.stop == null) {
866
+ let i;
867
+ for (; t.chunks.length && t.chunks[0].stop == null; )
868
+ i = t.chunks.shift(), i.from += t.from, this.extend(i);
869
+ }
870
+ t.toString() && (t.stop = t.blockIndex, this.chunks.push(t));
871
+ }
872
+ }
873
+ appendTo(t) {
874
+ if (!(t instanceof k.MaskedPattern))
875
+ return new H(this.toString()).appendTo(t);
876
+ const e = new E();
877
+ for (let s = 0; s < this.chunks.length; ++s) {
878
+ const i = this.chunks[s], r = t._mapPosToBlock(t.displayValue.length), n = i.stop;
879
+ let u;
880
+ if (n != null && // if block not found or stop is behind lastBlock
881
+ (!r || r.index <= n) && ((i instanceof tt || // for continuous block also check if stop is exist
882
+ t._stops.indexOf(n) >= 0) && e.aggregate(t._appendPlaceholder(n)), u = i instanceof tt && t._blocks[n]), u) {
883
+ const o = u.appendTail(i);
884
+ e.aggregate(o);
885
+ const h = i.toString().slice(o.rawInserted.length);
886
+ h && e.aggregate(t.append(h, {
887
+ tail: !0
888
+ }));
889
+ } else
890
+ e.aggregate(t.append(i.toString(), {
891
+ tail: !0
892
+ }));
893
+ }
894
+ return e;
895
+ }
896
+ get state() {
897
+ return {
898
+ chunks: this.chunks.map((t) => t.state),
899
+ from: this.from,
900
+ stop: this.stop,
901
+ blockIndex: this.blockIndex
902
+ };
903
+ }
904
+ set state(t) {
905
+ const {
906
+ chunks: e,
907
+ ...s
908
+ } = t;
909
+ Object.assign(this, s), this.chunks = e.map((i) => {
910
+ const r = "chunks" in i ? new tt() : new H();
911
+ return r.state = i, r;
912
+ });
913
+ }
914
+ unshift(t) {
915
+ if (!this.chunks.length || t != null && this.from >= t) return "";
916
+ const e = t != null ? t - this.from : t;
917
+ let s = 0;
918
+ for (; s < this.chunks.length; ) {
919
+ const i = this.chunks[s], r = i.unshift(e);
920
+ if (i.toString()) {
921
+ if (!r) break;
922
+ ++s;
923
+ } else
924
+ this.chunks.splice(s, 1);
925
+ if (r) return r;
926
+ }
927
+ return "";
928
+ }
929
+ shift() {
930
+ if (!this.chunks.length) return "";
931
+ let t = this.chunks.length - 1;
932
+ for (; 0 <= t; ) {
933
+ const e = this.chunks[t], s = e.shift();
934
+ if (e.toString()) {
935
+ if (!s) break;
936
+ --t;
937
+ } else
938
+ this.chunks.splice(t, 1);
939
+ if (s) return s;
940
+ }
941
+ return "";
942
+ }
943
+ }
944
+ class de {
945
+ constructor(t, e) {
946
+ this.masked = t, this._log = [];
947
+ const {
948
+ offset: s,
949
+ index: i
950
+ } = t._mapPosToBlock(e) || (e < 0 ? (
951
+ // first
952
+ {
953
+ index: 0,
954
+ offset: 0
955
+ }
956
+ ) : (
957
+ // last
958
+ {
959
+ index: this.masked._blocks.length,
960
+ offset: 0
961
+ }
962
+ ));
963
+ this.offset = s, this.index = i, this.ok = !1;
964
+ }
965
+ get block() {
966
+ return this.masked._blocks[this.index];
967
+ }
968
+ get pos() {
969
+ return this.masked._blockStartPos(this.index) + this.offset;
970
+ }
971
+ get state() {
972
+ return {
973
+ index: this.index,
974
+ offset: this.offset,
975
+ ok: this.ok
976
+ };
977
+ }
978
+ set state(t) {
979
+ Object.assign(this, t);
980
+ }
981
+ pushState() {
982
+ this._log.push(this.state);
983
+ }
984
+ popState() {
985
+ const t = this._log.pop();
986
+ return t && (this.state = t), t;
987
+ }
988
+ bindBlock() {
989
+ this.block || (this.index < 0 && (this.index = 0, this.offset = 0), this.index >= this.masked._blocks.length && (this.index = this.masked._blocks.length - 1, this.offset = this.block.displayValue.length));
990
+ }
991
+ _pushLeft(t) {
992
+ for (this.pushState(), this.bindBlock(); 0 <= this.index; --this.index, this.offset = ((e = this.block) == null ? void 0 : e.displayValue.length) || 0) {
993
+ var e;
994
+ if (t()) return this.ok = !0;
995
+ }
996
+ return this.ok = !1;
997
+ }
998
+ _pushRight(t) {
999
+ for (this.pushState(), this.bindBlock(); this.index < this.masked._blocks.length; ++this.index, this.offset = 0)
1000
+ if (t()) return this.ok = !0;
1001
+ return this.ok = !1;
1002
+ }
1003
+ pushLeftBeforeFilled() {
1004
+ return this._pushLeft(() => {
1005
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, m.FORCE_LEFT), this.offset !== 0))
1006
+ return !0;
1007
+ });
1008
+ }
1009
+ pushLeftBeforeInput() {
1010
+ return this._pushLeft(() => {
1011
+ if (!this.block.isFixed)
1012
+ return this.offset = this.block.nearestInputPos(this.offset, m.LEFT), !0;
1013
+ });
1014
+ }
1015
+ pushLeftBeforeRequired() {
1016
+ return this._pushLeft(() => {
1017
+ if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
1018
+ return this.offset = this.block.nearestInputPos(this.offset, m.LEFT), !0;
1019
+ });
1020
+ }
1021
+ pushRightBeforeFilled() {
1022
+ return this._pushRight(() => {
1023
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, m.FORCE_RIGHT), this.offset !== this.block.value.length))
1024
+ return !0;
1025
+ });
1026
+ }
1027
+ pushRightBeforeInput() {
1028
+ return this._pushRight(() => {
1029
+ if (!this.block.isFixed)
1030
+ return this.offset = this.block.nearestInputPos(this.offset, m.NONE), !0;
1031
+ });
1032
+ }
1033
+ pushRightBeforeRequired() {
1034
+ return this._pushRight(() => {
1035
+ if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
1036
+ return this.offset = this.block.nearestInputPos(this.offset, m.NONE), !0;
1037
+ });
1038
+ }
1039
+ }
1040
+ class Zt {
1041
+ /** */
1042
+ /** */
1043
+ /** */
1044
+ /** */
1045
+ /** */
1046
+ /** */
1047
+ constructor(t) {
1048
+ Object.assign(this, t), this._value = "", this.isFixed = !0;
1049
+ }
1050
+ get value() {
1051
+ return this._value;
1052
+ }
1053
+ get unmaskedValue() {
1054
+ return this.isUnmasking ? this.value : "";
1055
+ }
1056
+ get rawInputValue() {
1057
+ return this._isRawInput ? this.value : "";
1058
+ }
1059
+ get displayValue() {
1060
+ return this.value;
1061
+ }
1062
+ reset() {
1063
+ this._isRawInput = !1, this._value = "";
1064
+ }
1065
+ remove(t, e) {
1066
+ return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), this._value = this._value.slice(0, t) + this._value.slice(e), this._value || (this._isRawInput = !1), new E();
1067
+ }
1068
+ nearestInputPos(t, e) {
1069
+ e === void 0 && (e = m.NONE);
1070
+ const s = 0, i = this._value.length;
1071
+ switch (e) {
1072
+ case m.LEFT:
1073
+ case m.FORCE_LEFT:
1074
+ return s;
1075
+ case m.NONE:
1076
+ case m.RIGHT:
1077
+ case m.FORCE_RIGHT:
1078
+ default:
1079
+ return i;
1080
+ }
1081
+ }
1082
+ totalInputPositions(t, e) {
1083
+ return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), this._isRawInput ? e - t : 0;
1084
+ }
1085
+ extractInput(t, e, s) {
1086
+ return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), s === void 0 && (s = {}), s.raw && this._isRawInput && this._value.slice(t, e) || "";
1087
+ }
1088
+ get isComplete() {
1089
+ return !0;
1090
+ }
1091
+ get isFilled() {
1092
+ return !!this._value;
1093
+ }
1094
+ _appendChar(t, e) {
1095
+ if (e === void 0 && (e = {}), this.isFilled) return new E();
1096
+ const s = this.eager === !0 || this.eager === "append", r = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !s) && !e.tail, n = new E({
1097
+ inserted: this.char,
1098
+ rawInserted: r ? this.char : ""
1099
+ });
1100
+ return this._value = this.char, this._isRawInput = r && (e.raw || e.input), n;
1101
+ }
1102
+ _appendEager() {
1103
+ return this._appendChar(this.char, {
1104
+ tail: !0
1105
+ });
1106
+ }
1107
+ _appendPlaceholder() {
1108
+ const t = new E();
1109
+ return this.isFilled || (this._value = t.inserted = this.char), t;
1110
+ }
1111
+ extractTail() {
1112
+ return new H("");
1113
+ }
1114
+ appendTail(t) {
1115
+ return Z(t) && (t = new H(String(t))), t.appendTo(this);
1116
+ }
1117
+ append(t, e, s) {
1118
+ const i = this._appendChar(t[0], e);
1119
+ return s != null && (i.tailShift += this.appendTail(s).tailShift), i;
1120
+ }
1121
+ doCommit() {
1122
+ }
1123
+ get state() {
1124
+ return {
1125
+ _value: this._value,
1126
+ _rawInputValue: this.rawInputValue
1127
+ };
1128
+ }
1129
+ set state(t) {
1130
+ this._value = t._value, this._isRawInput = !!t._rawInputValue;
1131
+ }
1132
+ pad(t) {
1133
+ return this._appendPlaceholder();
1134
+ }
1135
+ }
1136
+ class lt {
1137
+ /** */
1138
+ /** */
1139
+ /** */
1140
+ /** */
1141
+ /** */
1142
+ /** */
1143
+ /** */
1144
+ /** */
1145
+ constructor(t) {
1146
+ const {
1147
+ parent: e,
1148
+ isOptional: s,
1149
+ placeholderChar: i,
1150
+ displayChar: r,
1151
+ lazy: n,
1152
+ eager: u,
1153
+ ...o
1154
+ } = t;
1155
+ this.masked = G(o), Object.assign(this, {
1156
+ parent: e,
1157
+ isOptional: s,
1158
+ placeholderChar: i,
1159
+ displayChar: r,
1160
+ lazy: n,
1161
+ eager: u
1162
+ });
1163
+ }
1164
+ reset() {
1165
+ this.isFilled = !1, this.masked.reset();
1166
+ }
1167
+ remove(t, e) {
1168
+ return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), t === 0 && e >= 1 ? (this.isFilled = !1, this.masked.remove(t, e)) : new E();
1169
+ }
1170
+ get value() {
1171
+ return this.masked.value || (this.isFilled && !this.isOptional ? this.placeholderChar : "");
1172
+ }
1173
+ get unmaskedValue() {
1174
+ return this.masked.unmaskedValue;
1175
+ }
1176
+ get rawInputValue() {
1177
+ return this.masked.rawInputValue;
1178
+ }
1179
+ get displayValue() {
1180
+ return this.masked.value && this.displayChar || this.value;
1181
+ }
1182
+ get isComplete() {
1183
+ return !!this.masked.value || this.isOptional;
1184
+ }
1185
+ _appendChar(t, e) {
1186
+ if (e === void 0 && (e = {}), this.isFilled) return new E();
1187
+ const s = this.masked.state;
1188
+ let i = this.masked._appendChar(t, this.currentMaskFlags(e));
1189
+ return i.inserted && this.doValidate(e) === !1 && (i = new E(), this.masked.state = s), !i.inserted && !this.isOptional && !this.lazy && !e.input && (i.inserted = this.placeholderChar), i.skip = !i.inserted && !this.isOptional, this.isFilled = !!i.inserted, i;
1190
+ }
1191
+ append(t, e, s) {
1192
+ return this.masked.append(t, this.currentMaskFlags(e), s);
1193
+ }
1194
+ _appendPlaceholder() {
1195
+ return this.isFilled || this.isOptional ? new E() : (this.isFilled = !0, new E({
1196
+ inserted: this.placeholderChar
1197
+ }));
1198
+ }
1199
+ _appendEager() {
1200
+ return new E();
1201
+ }
1202
+ extractTail(t, e) {
1203
+ return this.masked.extractTail(t, e);
1204
+ }
1205
+ appendTail(t) {
1206
+ return this.masked.appendTail(t);
1207
+ }
1208
+ extractInput(t, e, s) {
1209
+ return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), this.masked.extractInput(t, e, s);
1210
+ }
1211
+ nearestInputPos(t, e) {
1212
+ e === void 0 && (e = m.NONE);
1213
+ const s = 0, i = this.value.length, r = Math.min(Math.max(t, s), i);
1214
+ switch (e) {
1215
+ case m.LEFT:
1216
+ case m.FORCE_LEFT:
1217
+ return this.isComplete ? r : s;
1218
+ case m.RIGHT:
1219
+ case m.FORCE_RIGHT:
1220
+ return this.isComplete ? r : i;
1221
+ case m.NONE:
1222
+ default:
1223
+ return r;
1224
+ }
1225
+ }
1226
+ totalInputPositions(t, e) {
1227
+ return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), this.value.slice(t, e).length;
1228
+ }
1229
+ doValidate(t) {
1230
+ return this.masked.doValidate(this.currentMaskFlags(t)) && (!this.parent || this.parent.doValidate(this.currentMaskFlags(t)));
1231
+ }
1232
+ doCommit() {
1233
+ this.masked.doCommit();
1234
+ }
1235
+ get state() {
1236
+ return {
1237
+ _value: this.value,
1238
+ _rawInputValue: this.rawInputValue,
1239
+ masked: this.masked.state,
1240
+ isFilled: this.isFilled
1241
+ };
1242
+ }
1243
+ set state(t) {
1244
+ this.masked.state = t.masked, this.isFilled = t.isFilled;
1245
+ }
1246
+ currentMaskFlags(t) {
1247
+ var e;
1248
+ return {
1249
+ ...t,
1250
+ _beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || (t == null ? void 0 : t._beforeTailState)
1251
+ };
1252
+ }
1253
+ pad(t) {
1254
+ return new E();
1255
+ }
1256
+ }
1257
+ lt.DEFAULT_DEFINITIONS = {
1258
+ 0: /\d/,
1259
+ a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
1260
+ // http://stackoverflow.com/a/22075070
1261
+ "*": /./
1262
+ };
1263
+ class fe extends N {
1264
+ /** */
1265
+ /** Enable characters overwriting */
1266
+ /** */
1267
+ /** */
1268
+ /** */
1269
+ updateOptions(t) {
1270
+ super.updateOptions(t);
1271
+ }
1272
+ _update(t) {
1273
+ const e = t.mask;
1274
+ e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
1275
+ }
1276
+ }
1277
+ k.MaskedRegExp = fe;
1278
+ class j extends N {
1279
+ /** */
1280
+ /** */
1281
+ /** Single char for empty input */
1282
+ /** Single char for filled input */
1283
+ /** Show placeholder only when needed */
1284
+ /** Enable characters overwriting */
1285
+ /** */
1286
+ /** */
1287
+ /** */
1288
+ constructor(t) {
1289
+ super({
1290
+ ...j.DEFAULTS,
1291
+ ...t,
1292
+ definitions: Object.assign({}, lt.DEFAULT_DEFINITIONS, t == null ? void 0 : t.definitions)
1293
+ });
1294
+ }
1295
+ updateOptions(t) {
1296
+ super.updateOptions(t);
1297
+ }
1298
+ _update(t) {
1299
+ t.definitions = Object.assign({}, this.definitions, t.definitions), super._update(t), this._rebuildMask();
1300
+ }
1301
+ _rebuildMask() {
1302
+ const t = this.definitions;
1303
+ this._blocks = [], this.exposeBlock = void 0, this._stops = [], this._maskedBlocks = {};
1304
+ const e = this.mask;
1305
+ if (!e || !t) return;
1306
+ let s = !1, i = !1;
1307
+ for (let r = 0; r < e.length; ++r) {
1308
+ if (this.blocks) {
1309
+ const h = e.slice(r), v = Object.keys(this.blocks).filter((y) => h.indexOf(y) === 0);
1310
+ v.sort((y, B) => B.length - y.length);
1311
+ const g = v[0];
1312
+ if (g) {
1313
+ const {
1314
+ expose: y,
1315
+ repeat: B,
1316
+ ...L
1317
+ } = st(this.blocks[g]), D = {
1318
+ lazy: this.lazy,
1319
+ eager: this.eager,
1320
+ placeholderChar: this.placeholderChar,
1321
+ displayChar: this.displayChar,
1322
+ overwrite: this.overwrite,
1323
+ autofix: this.autofix,
1324
+ ...L,
1325
+ repeat: B,
1326
+ parent: this
1327
+ }, R = B != null ? new k.RepeatBlock(
1328
+ D
1329
+ /* TODO */
1330
+ ) : G(D);
1331
+ R && (this._blocks.push(R), y && (this.exposeBlock = R), this._maskedBlocks[g] || (this._maskedBlocks[g] = []), this._maskedBlocks[g].push(this._blocks.length - 1)), r += g.length - 1;
1332
+ continue;
1333
+ }
1334
+ }
1335
+ let n = e[r], u = n in t;
1336
+ if (n === j.STOP_CHAR) {
1337
+ this._stops.push(this._blocks.length);
1338
+ continue;
1339
+ }
1340
+ if (n === "{" || n === "}") {
1341
+ s = !s;
1342
+ continue;
1343
+ }
1344
+ if (n === "[" || n === "]") {
1345
+ i = !i;
1346
+ continue;
1347
+ }
1348
+ if (n === j.ESCAPE_CHAR) {
1349
+ if (++r, n = e[r], !n) break;
1350
+ u = !1;
1351
+ }
1352
+ const o = u ? new lt({
1353
+ isOptional: i,
1354
+ lazy: this.lazy,
1355
+ eager: this.eager,
1356
+ placeholderChar: this.placeholderChar,
1357
+ displayChar: this.displayChar,
1358
+ ...st(t[n]),
1359
+ parent: this
1360
+ }) : new Zt({
1361
+ char: n,
1362
+ eager: this.eager,
1363
+ isUnmasking: s
1364
+ });
1365
+ this._blocks.push(o);
1366
+ }
1367
+ }
1368
+ get state() {
1369
+ return {
1370
+ ...super.state,
1371
+ _blocks: this._blocks.map((t) => t.state)
1372
+ };
1373
+ }
1374
+ set state(t) {
1375
+ if (!t) {
1376
+ this.reset();
1377
+ return;
1378
+ }
1379
+ const {
1380
+ _blocks: e,
1381
+ ...s
1382
+ } = t;
1383
+ this._blocks.forEach((i, r) => i.state = e[r]), super.state = s;
1384
+ }
1385
+ reset() {
1386
+ super.reset(), this._blocks.forEach((t) => t.reset());
1387
+ }
1388
+ get isComplete() {
1389
+ return this.exposeBlock ? this.exposeBlock.isComplete : this._blocks.every((t) => t.isComplete);
1390
+ }
1391
+ get isFilled() {
1392
+ return this._blocks.every((t) => t.isFilled);
1393
+ }
1394
+ get isFixed() {
1395
+ return this._blocks.every((t) => t.isFixed);
1396
+ }
1397
+ get isOptional() {
1398
+ return this._blocks.every((t) => t.isOptional);
1399
+ }
1400
+ doCommit() {
1401
+ this._blocks.forEach((t) => t.doCommit()), super.doCommit();
1402
+ }
1403
+ get unmaskedValue() {
1404
+ return this.exposeBlock ? this.exposeBlock.unmaskedValue : this._blocks.reduce((t, e) => t += e.unmaskedValue, "");
1405
+ }
1406
+ set unmaskedValue(t) {
1407
+ if (this.exposeBlock) {
1408
+ const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1409
+ this.exposeBlock.unmaskedValue = t, this.appendTail(e), this.doCommit();
1410
+ } else super.unmaskedValue = t;
1411
+ }
1412
+ get value() {
1413
+ return this.exposeBlock ? this.exposeBlock.value : (
1414
+ // TODO return _value when not in change?
1415
+ this._blocks.reduce((t, e) => t += e.value, "")
1416
+ );
1417
+ }
1418
+ set value(t) {
1419
+ if (this.exposeBlock) {
1420
+ const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1421
+ this.exposeBlock.value = t, this.appendTail(e), this.doCommit();
1422
+ } else super.value = t;
1423
+ }
1424
+ get typedValue() {
1425
+ return this.exposeBlock ? this.exposeBlock.typedValue : super.typedValue;
1426
+ }
1427
+ set typedValue(t) {
1428
+ if (this.exposeBlock) {
1429
+ const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1430
+ this.exposeBlock.typedValue = t, this.appendTail(e), this.doCommit();
1431
+ } else super.typedValue = t;
1432
+ }
1433
+ get displayValue() {
1434
+ return this._blocks.reduce((t, e) => t += e.displayValue, "");
1435
+ }
1436
+ appendTail(t) {
1437
+ return super.appendTail(t).aggregate(this._appendPlaceholder());
1438
+ }
1439
+ _appendEager() {
1440
+ var t;
1441
+ const e = new E();
1442
+ let s = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
1443
+ if (s == null) return e;
1444
+ this._blocks[s].isFilled && ++s;
1445
+ for (let i = s; i < this._blocks.length; ++i) {
1446
+ const r = this._blocks[i]._appendEager();
1447
+ if (!r.inserted) break;
1448
+ e.aggregate(r);
1449
+ }
1450
+ return e;
1451
+ }
1452
+ _appendCharRaw(t, e) {
1453
+ e === void 0 && (e = {});
1454
+ const s = this._mapPosToBlock(this.displayValue.length), i = new E();
1455
+ if (!s) return i;
1456
+ for (let n = s.index, u; u = this._blocks[n]; ++n) {
1457
+ var r;
1458
+ const o = u._appendChar(t, {
1459
+ ...e,
1460
+ _beforeTailState: (r = e._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[n]
1461
+ });
1462
+ if (i.aggregate(o), o.consumed) break;
1463
+ }
1464
+ return i;
1465
+ }
1466
+ extractTail(t, e) {
1467
+ t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1468
+ const s = new tt();
1469
+ return t === e || this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1470
+ const o = i.extractTail(n, u);
1471
+ o.stop = this._findStopBefore(r), o.from = this._blockStartPos(r), o instanceof tt && (o.blockIndex = r), s.extend(o);
1472
+ }), s;
1473
+ }
1474
+ extractInput(t, e, s) {
1475
+ if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e) return "";
1476
+ let i = "";
1477
+ return this._forEachBlocksInRange(t, e, (r, n, u, o) => {
1478
+ i += r.extractInput(u, o, s);
1479
+ }), i;
1480
+ }
1481
+ _findStopBefore(t) {
1482
+ let e;
1483
+ for (let s = 0; s < this._stops.length; ++s) {
1484
+ const i = this._stops[s];
1485
+ if (i <= t) e = i;
1486
+ else break;
1487
+ }
1488
+ return e;
1489
+ }
1490
+ /** Appends placeholder depending on laziness */
1491
+ _appendPlaceholder(t) {
1492
+ const e = new E();
1493
+ if (this.lazy && t == null) return e;
1494
+ const s = this._mapPosToBlock(this.displayValue.length);
1495
+ if (!s) return e;
1496
+ const i = s.index, r = t ?? this._blocks.length;
1497
+ return this._blocks.slice(i, r).forEach((n) => {
1498
+ if (!n.lazy || t != null) {
1499
+ var u;
1500
+ e.aggregate(n._appendPlaceholder((u = n._blocks) == null ? void 0 : u.length));
1501
+ }
1502
+ }), e;
1503
+ }
1504
+ /** Finds block in pos */
1505
+ _mapPosToBlock(t) {
1506
+ let e = "";
1507
+ for (let s = 0; s < this._blocks.length; ++s) {
1508
+ const i = this._blocks[s], r = e.length;
1509
+ if (e += i.displayValue, t <= e.length)
1510
+ return {
1511
+ index: s,
1512
+ offset: t - r
1513
+ };
1514
+ }
1515
+ }
1516
+ _blockStartPos(t) {
1517
+ return this._blocks.slice(0, t).reduce((e, s) => e += s.displayValue.length, 0);
1518
+ }
1519
+ _forEachBlocksInRange(t, e, s) {
1520
+ e === void 0 && (e = this.displayValue.length);
1521
+ const i = this._mapPosToBlock(t);
1522
+ if (i) {
1523
+ const r = this._mapPosToBlock(e), n = r && i.index === r.index, u = i.offset, o = r && n ? r.offset : this._blocks[i.index].displayValue.length;
1524
+ if (s(this._blocks[i.index], i.index, u, o), r && !n) {
1525
+ for (let h = i.index + 1; h < r.index; ++h)
1526
+ s(this._blocks[h], h, 0, this._blocks[h].displayValue.length);
1527
+ s(this._blocks[r.index], r.index, 0, r.offset);
1528
+ }
1529
+ }
1530
+ }
1531
+ remove(t, e) {
1532
+ t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1533
+ const s = super.remove(t, e);
1534
+ return this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1535
+ s.aggregate(i.remove(n, u));
1536
+ }), s;
1537
+ }
1538
+ nearestInputPos(t, e) {
1539
+ if (e === void 0 && (e = m.NONE), !this._blocks.length) return 0;
1540
+ const s = new de(this, t);
1541
+ if (e === m.NONE)
1542
+ return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
1543
+ if (e === m.LEFT || e === m.FORCE_LEFT) {
1544
+ if (e === m.LEFT) {
1545
+ if (s.pushRightBeforeFilled(), s.ok && s.pos === t) return t;
1546
+ s.popState();
1547
+ }
1548
+ if (s.pushLeftBeforeInput(), s.pushLeftBeforeRequired(), s.pushLeftBeforeFilled(), e === m.LEFT) {
1549
+ if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= t || (s.popState(), s.ok && s.pos <= t)) return s.pos;
1550
+ s.popState();
1551
+ }
1552
+ return s.ok ? s.pos : e === m.FORCE_LEFT ? 0 : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : 0);
1553
+ }
1554
+ return e === m.RIGHT || e === m.FORCE_RIGHT ? (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.pushRightBeforeFilled() ? s.pos : e === m.FORCE_RIGHT ? this.displayValue.length : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : this.nearestInputPos(t, m.LEFT))) : t;
1555
+ }
1556
+ totalInputPositions(t, e) {
1557
+ t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1558
+ let s = 0;
1559
+ return this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1560
+ s += i.totalInputPositions(n, u);
1561
+ }), s;
1562
+ }
1563
+ /** Get block by name */
1564
+ maskedBlock(t) {
1565
+ return this.maskedBlocks(t)[0];
1566
+ }
1567
+ /** Get all blocks by name */
1568
+ maskedBlocks(t) {
1569
+ const e = this._maskedBlocks[t];
1570
+ return e ? e.map((s) => this._blocks[s]) : [];
1571
+ }
1572
+ pad(t) {
1573
+ const e = new E();
1574
+ return this._forEachBlocksInRange(0, this.displayValue.length, (s) => e.aggregate(s.pad(t))), e;
1575
+ }
1576
+ }
1577
+ j.DEFAULTS = {
1578
+ ...N.DEFAULTS,
1579
+ lazy: !0,
1580
+ placeholderChar: "_"
1581
+ };
1582
+ j.STOP_CHAR = "`";
1583
+ j.ESCAPE_CHAR = "\\";
1584
+ j.InputDefinition = lt;
1585
+ j.FixedDefinition = Zt;
1586
+ k.MaskedPattern = j;
1587
+ class ut extends j {
1588
+ /**
1589
+ Optionally sets max length of pattern.
1590
+ Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
1591
+ */
1592
+ /** Min bound */
1593
+ /** Max bound */
1594
+ get _matchFrom() {
1595
+ return this.maxLength - String(this.from).length;
1596
+ }
1597
+ constructor(t) {
1598
+ super(t);
1599
+ }
1600
+ updateOptions(t) {
1601
+ super.updateOptions(t);
1602
+ }
1603
+ _update(t) {
1604
+ const {
1605
+ to: e = this.to || 0,
1606
+ from: s = this.from || 0,
1607
+ maxLength: i = this.maxLength || 0,
1608
+ autofix: r = this.autofix,
1609
+ ...n
1610
+ } = t;
1611
+ this.to = e, this.from = s, this.maxLength = Math.max(String(e).length, i), this.autofix = r;
1612
+ const u = String(this.from).padStart(this.maxLength, "0"), o = String(this.to).padStart(this.maxLength, "0");
1613
+ let h = 0;
1614
+ for (; h < o.length && o[h] === u[h]; ) ++h;
1615
+ n.mask = o.slice(0, h).replace(/0/g, "\\0") + "0".repeat(this.maxLength - h), super._update(n);
1616
+ }
1617
+ get isComplete() {
1618
+ return super.isComplete && !!this.value;
1619
+ }
1620
+ boundaries(t) {
1621
+ let e = "", s = "";
1622
+ const [, i, r] = t.match(/^(\D*)(\d*)(\D*)/) || [];
1623
+ return r && (e = "0".repeat(i.length) + r, s = "9".repeat(i.length) + r), e = e.padEnd(this.maxLength, "0"), s = s.padEnd(this.maxLength, "9"), [e, s];
1624
+ }
1625
+ doPrepareChar(t, e) {
1626
+ e === void 0 && (e = {});
1627
+ let s;
1628
+ return [t, s] = super.doPrepareChar(t.replace(/\D/g, ""), e), t || (s.skip = !this.isComplete), [t, s];
1629
+ }
1630
+ _appendCharRaw(t, e) {
1631
+ if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength) return super._appendCharRaw(t, e);
1632
+ const s = String(this.from).padStart(this.maxLength, "0"), i = String(this.to).padStart(this.maxLength, "0"), [r, n] = this.boundaries(this.value + t);
1633
+ return Number(n) < this.from ? super._appendCharRaw(s[this.value.length], e) : Number(r) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(i[this.value.length], e) : super._appendCharRaw(t, e);
1634
+ }
1635
+ doValidate(t) {
1636
+ const e = this.value;
1637
+ if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom) return !0;
1638
+ const [i, r] = this.boundaries(e);
1639
+ return this.from <= Number(r) && Number(i) <= this.to && super.doValidate(t);
1640
+ }
1641
+ pad(t) {
1642
+ const e = new E();
1643
+ if (this.value.length === this.maxLength) return e;
1644
+ const s = this.value, i = this.maxLength - this.value.length;
1645
+ if (i) {
1646
+ this.reset();
1647
+ for (let r = 0; r < i; ++r)
1648
+ e.aggregate(super._appendCharRaw("0", t));
1649
+ s.split("").forEach((r) => this._appendCharRaw(r));
1650
+ }
1651
+ return e;
1652
+ }
1653
+ }
1654
+ k.MaskedRange = ut;
1655
+ const me = "d{.}`m{.}`Y";
1656
+ class K extends j {
1657
+ static extractPatternOptions(t) {
1658
+ const {
1659
+ mask: e,
1660
+ pattern: s,
1661
+ ...i
1662
+ } = t;
1663
+ return {
1664
+ ...i,
1665
+ mask: Z(e) ? e : s
1666
+ };
1667
+ }
1668
+ /** Pattern mask for date according to {@link MaskedDate#format} */
1669
+ /** Start date */
1670
+ /** End date */
1671
+ /** Format typed value to string */
1672
+ /** Parse string to get typed value */
1673
+ constructor(t) {
1674
+ super(K.extractPatternOptions({
1675
+ ...K.DEFAULTS,
1676
+ ...t
1677
+ }));
1678
+ }
1679
+ updateOptions(t) {
1680
+ super.updateOptions(t);
1681
+ }
1682
+ _update(t) {
1683
+ const {
1684
+ mask: e,
1685
+ pattern: s,
1686
+ blocks: i,
1687
+ ...r
1688
+ } = {
1689
+ ...K.DEFAULTS,
1690
+ ...t
1691
+ }, n = Object.assign({}, K.GET_DEFAULT_BLOCKS());
1692
+ t.min && (n.Y.from = t.min.getFullYear()), t.max && (n.Y.to = t.max.getFullYear()), t.min && t.max && n.Y.from === n.Y.to && (n.m.from = t.min.getMonth() + 1, n.m.to = t.max.getMonth() + 1, n.m.from === n.m.to && (n.d.from = t.min.getDate(), n.d.to = t.max.getDate())), Object.assign(n, this.blocks, i), super._update({
1693
+ ...r,
1694
+ mask: Z(e) ? e : s,
1695
+ blocks: n
1696
+ });
1697
+ }
1698
+ doValidate(t) {
1699
+ const e = this.date;
1700
+ return super.doValidate(t) && (!this.isComplete || this.isDateExist(this.value) && e != null && (this.min == null || this.min <= e) && (this.max == null || e <= this.max));
1701
+ }
1702
+ /** Checks if date is exists */
1703
+ isDateExist(t) {
1704
+ return this.format(this.parse(t, this), this).indexOf(t) >= 0;
1705
+ }
1706
+ /** Parsed Date */
1707
+ get date() {
1708
+ return this.typedValue;
1709
+ }
1710
+ set date(t) {
1711
+ this.typedValue = t;
1712
+ }
1713
+ get typedValue() {
1714
+ return this.isComplete ? super.typedValue : null;
1715
+ }
1716
+ set typedValue(t) {
1717
+ super.typedValue = t;
1718
+ }
1719
+ maskEquals(t) {
1720
+ return t === Date || super.maskEquals(t);
1721
+ }
1722
+ optionsIsChanged(t) {
1723
+ return super.optionsIsChanged(K.extractPatternOptions(t));
1724
+ }
1725
+ }
1726
+ K.GET_DEFAULT_BLOCKS = () => ({
1727
+ d: {
1728
+ mask: ut,
1729
+ from: 1,
1730
+ to: 31,
1731
+ maxLength: 2
1732
+ },
1733
+ m: {
1734
+ mask: ut,
1735
+ from: 1,
1736
+ to: 12,
1737
+ maxLength: 2
1738
+ },
1739
+ Y: {
1740
+ mask: ut,
1741
+ from: 1900,
1742
+ to: 9999
1743
+ }
1744
+ });
1745
+ K.DEFAULTS = {
1746
+ ...j.DEFAULTS,
1747
+ mask: Date,
1748
+ pattern: me,
1749
+ format: (a, t) => {
1750
+ if (!a) return "";
1751
+ const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
1752
+ return [e, s, i].join(".");
1753
+ },
1754
+ parse: (a, t) => {
1755
+ const [e, s, i] = a.split(".").map(Number);
1756
+ return new Date(i, s - 1, e);
1757
+ }
1758
+ };
1759
+ k.MaskedDate = K;
1760
+ class ct extends N {
1761
+ constructor(t) {
1762
+ super({
1763
+ ...ct.DEFAULTS,
1764
+ ...t
1765
+ }), this.currentMask = void 0;
1766
+ }
1767
+ updateOptions(t) {
1768
+ super.updateOptions(t);
1769
+ }
1770
+ _update(t) {
1771
+ super._update(t), "mask" in t && (this.exposeMask = void 0, this.compiledMasks = Array.isArray(t.mask) ? t.mask.map((e) => {
1772
+ const {
1773
+ expose: s,
1774
+ ...i
1775
+ } = st(e), r = G({
1776
+ overwrite: this._overwrite,
1777
+ eager: this._eager,
1778
+ skipInvalid: this._skipInvalid,
1779
+ ...i
1780
+ });
1781
+ return s && (this.exposeMask = r), r;
1782
+ }) : []);
1783
+ }
1784
+ _appendCharRaw(t, e) {
1785
+ e === void 0 && (e = {});
1786
+ const s = this._applyDispatch(t, e);
1787
+ return this.currentMask && s.aggregate(this.currentMask._appendChar(t, this.currentMaskFlags(e))), s;
1788
+ }
1789
+ _applyDispatch(t, e, s) {
1790
+ t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
1791
+ const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), o = this.currentMask, h = new E(), v = o == null ? void 0 : o.state;
1792
+ return this.currentMask = this.doDispatch(t, {
1793
+ ...e
1794
+ }, s), this.currentMask && (this.currentMask !== o ? (this.currentMask.reset(), n && (this.currentMask.append(n, {
1795
+ raw: !0
1796
+ }), h.tailShift = this.currentMask.value.length - i.length), u && (h.tailShift += this.currentMask.append(u, {
1797
+ raw: !0,
1798
+ tail: !0
1799
+ }).tailShift)) : v && (this.currentMask.state = v)), h;
1800
+ }
1801
+ _appendPlaceholder() {
1802
+ const t = this._applyDispatch();
1803
+ return this.currentMask && t.aggregate(this.currentMask._appendPlaceholder()), t;
1804
+ }
1805
+ _appendEager() {
1806
+ const t = this._applyDispatch();
1807
+ return this.currentMask && t.aggregate(this.currentMask._appendEager()), t;
1808
+ }
1809
+ appendTail(t) {
1810
+ const e = new E();
1811
+ return t && e.aggregate(this._applyDispatch("", {}, t)), e.aggregate(this.currentMask ? this.currentMask.appendTail(t) : super.appendTail(t));
1812
+ }
1813
+ currentMaskFlags(t) {
1814
+ var e, s;
1815
+ return {
1816
+ ...t,
1817
+ _beforeTailState: ((e = t._beforeTailState) == null ? void 0 : e.currentMaskRef) === this.currentMask && ((s = t._beforeTailState) == null ? void 0 : s.currentMask) || t._beforeTailState
1818
+ };
1819
+ }
1820
+ doDispatch(t, e, s) {
1821
+ return e === void 0 && (e = {}), s === void 0 && (s = ""), this.dispatch(t, this, e, s);
1822
+ }
1823
+ doValidate(t) {
1824
+ return super.doValidate(t) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(t)));
1825
+ }
1826
+ doPrepare(t, e) {
1827
+ e === void 0 && (e = {});
1828
+ let [s, i] = super.doPrepare(t, e);
1829
+ if (this.currentMask) {
1830
+ let r;
1831
+ [s, r] = super.doPrepare(s, this.currentMaskFlags(e)), i = i.aggregate(r);
1832
+ }
1833
+ return [s, i];
1834
+ }
1835
+ doPrepareChar(t, e) {
1836
+ e === void 0 && (e = {});
1837
+ let [s, i] = super.doPrepareChar(t, e);
1838
+ if (this.currentMask) {
1839
+ let r;
1840
+ [s, r] = super.doPrepareChar(s, this.currentMaskFlags(e)), i = i.aggregate(r);
1841
+ }
1842
+ return [s, i];
1843
+ }
1844
+ reset() {
1845
+ var t;
1846
+ (t = this.currentMask) == null || t.reset(), this.compiledMasks.forEach((e) => e.reset());
1847
+ }
1848
+ get value() {
1849
+ return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : "";
1850
+ }
1851
+ set value(t) {
1852
+ this.exposeMask ? (this.exposeMask.value = t, this.currentMask = this.exposeMask, this._applyDispatch()) : super.value = t;
1853
+ }
1854
+ get unmaskedValue() {
1855
+ return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : "";
1856
+ }
1857
+ set unmaskedValue(t) {
1858
+ this.exposeMask ? (this.exposeMask.unmaskedValue = t, this.currentMask = this.exposeMask, this._applyDispatch()) : super.unmaskedValue = t;
1859
+ }
1860
+ get typedValue() {
1861
+ return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : "";
1862
+ }
1863
+ set typedValue(t) {
1864
+ if (this.exposeMask) {
1865
+ this.exposeMask.typedValue = t, this.currentMask = this.exposeMask, this._applyDispatch();
1866
+ return;
1867
+ }
1868
+ let e = String(t);
1869
+ this.currentMask && (this.currentMask.typedValue = t, e = this.currentMask.unmaskedValue), this.unmaskedValue = e;
1870
+ }
1871
+ get displayValue() {
1872
+ return this.currentMask ? this.currentMask.displayValue : "";
1873
+ }
1874
+ get isComplete() {
1875
+ var t;
1876
+ return !!((t = this.currentMask) != null && t.isComplete);
1877
+ }
1878
+ get isFilled() {
1879
+ var t;
1880
+ return !!((t = this.currentMask) != null && t.isFilled);
1881
+ }
1882
+ remove(t, e) {
1883
+ const s = new E();
1884
+ return this.currentMask && s.aggregate(this.currentMask.remove(t, e)).aggregate(this._applyDispatch()), s;
1885
+ }
1886
+ get state() {
1887
+ var t;
1888
+ return {
1889
+ ...super.state,
1890
+ _rawInputValue: this.rawInputValue,
1891
+ compiledMasks: this.compiledMasks.map((e) => e.state),
1892
+ currentMaskRef: this.currentMask,
1893
+ currentMask: (t = this.currentMask) == null ? void 0 : t.state
1894
+ };
1895
+ }
1896
+ set state(t) {
1897
+ const {
1898
+ compiledMasks: e,
1899
+ currentMaskRef: s,
1900
+ currentMask: i,
1901
+ ...r
1902
+ } = t;
1903
+ e && this.compiledMasks.forEach((n, u) => n.state = e[u]), s != null && (this.currentMask = s, this.currentMask.state = i), super.state = r;
1904
+ }
1905
+ extractInput(t, e, s) {
1906
+ return this.currentMask ? this.currentMask.extractInput(t, e, s) : "";
1907
+ }
1908
+ extractTail(t, e) {
1909
+ return this.currentMask ? this.currentMask.extractTail(t, e) : super.extractTail(t, e);
1910
+ }
1911
+ doCommit() {
1912
+ this.currentMask && this.currentMask.doCommit(), super.doCommit();
1913
+ }
1914
+ nearestInputPos(t, e) {
1915
+ return this.currentMask ? this.currentMask.nearestInputPos(t, e) : super.nearestInputPos(t, e);
1916
+ }
1917
+ get overwrite() {
1918
+ return this.currentMask ? this.currentMask.overwrite : this._overwrite;
1919
+ }
1920
+ set overwrite(t) {
1921
+ this._overwrite = t;
1922
+ }
1923
+ get eager() {
1924
+ return this.currentMask ? this.currentMask.eager : this._eager;
1925
+ }
1926
+ set eager(t) {
1927
+ this._eager = t;
1928
+ }
1929
+ get skipInvalid() {
1930
+ return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;
1931
+ }
1932
+ set skipInvalid(t) {
1933
+ this._skipInvalid = t;
1934
+ }
1935
+ get autofix() {
1936
+ return this.currentMask ? this.currentMask.autofix : this._autofix;
1937
+ }
1938
+ set autofix(t) {
1939
+ this._autofix = t;
1940
+ }
1941
+ maskEquals(t) {
1942
+ return Array.isArray(t) ? this.compiledMasks.every((e, s) => {
1943
+ if (!t[s]) return;
1944
+ const {
1945
+ mask: i,
1946
+ ...r
1947
+ } = t[s];
1948
+ return ot(e, r) && e.maskEquals(i);
1949
+ }) : super.maskEquals(t);
1950
+ }
1951
+ typedValueEquals(t) {
1952
+ var e;
1953
+ return !!((e = this.currentMask) != null && e.typedValueEquals(t));
1954
+ }
1955
+ }
1956
+ ct.DEFAULTS = {
1957
+ ...N.DEFAULTS,
1958
+ dispatch: (a, t, e, s) => {
1959
+ if (!t.compiledMasks.length) return;
1960
+ const i = t.rawInputValue, r = t.compiledMasks.map((n, u) => {
1961
+ const o = t.currentMask === n, h = o ? n.displayValue.length : n.nearestInputPos(n.displayValue.length, m.FORCE_LEFT);
1962
+ return n.rawInputValue !== i ? (n.reset(), n.append(i, {
1963
+ raw: !0
1964
+ })) : o || n.remove(h), n.append(a, t.currentMaskFlags(e)), n.appendTail(s), {
1965
+ index: u,
1966
+ weight: n.rawInputValue.length,
1967
+ totalInputPositions: n.totalInputPositions(0, Math.max(h, n.nearestInputPos(n.displayValue.length, m.FORCE_LEFT)))
1968
+ };
1969
+ });
1970
+ return r.sort((n, u) => u.weight - n.weight || u.totalInputPositions - n.totalInputPositions), t.compiledMasks[r[0].index];
1971
+ }
1972
+ };
1973
+ k.MaskedDynamic = ct;
1974
+ class dt extends j {
1975
+ constructor(t) {
1976
+ super({
1977
+ ...dt.DEFAULTS,
1978
+ ...t
1979
+ });
1980
+ }
1981
+ updateOptions(t) {
1982
+ super.updateOptions(t);
1983
+ }
1984
+ _update(t) {
1985
+ const {
1986
+ enum: e,
1987
+ ...s
1988
+ } = t;
1989
+ if (e) {
1990
+ const i = e.map((u) => u.length), r = Math.min(...i), n = Math.max(...i) - r;
1991
+ s.mask = "*".repeat(r), n && (s.mask += "[" + "*".repeat(n) + "]"), this.enum = e;
1992
+ }
1993
+ super._update(s);
1994
+ }
1995
+ _appendCharRaw(t, e) {
1996
+ e === void 0 && (e = {});
1997
+ const s = Math.min(this.nearestInputPos(0, m.FORCE_RIGHT), this.value.length), i = this.enum.filter((r) => this.matchValue(r, this.unmaskedValue + t, s));
1998
+ if (i.length) {
1999
+ i.length === 1 && this._forEachBlocksInRange(0, this.value.length, (n, u) => {
2000
+ const o = i[0][u];
2001
+ u >= this.value.length || o === n.value || (n.reset(), n._appendChar(o, e));
2002
+ });
2003
+ const r = super._appendCharRaw(i[0][this.value.length], e);
2004
+ return i.length === 1 && i[0].slice(this.unmaskedValue.length).split("").forEach((n) => r.aggregate(super._appendCharRaw(n))), r;
2005
+ }
2006
+ return new E({
2007
+ skip: !this.isComplete
2008
+ });
2009
+ }
2010
+ extractTail(t, e) {
2011
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new H("", t);
2012
+ }
2013
+ remove(t, e) {
2014
+ if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e) return new E();
2015
+ const s = Math.min(super.nearestInputPos(0, m.FORCE_RIGHT), this.value.length);
2016
+ let i;
2017
+ for (i = t; i >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(s, i), s)).length > 1); --i)
2018
+ ;
2019
+ const r = super.remove(i, e);
2020
+ return r.tailShift += i - t, r;
2021
+ }
2022
+ get isComplete() {
2023
+ return this.enum.indexOf(this.value) >= 0;
2024
+ }
2025
+ }
2026
+ dt.DEFAULTS = {
2027
+ ...j.DEFAULTS,
2028
+ matchValue: (a, t, e) => a.indexOf(t, e) === e
2029
+ };
2030
+ k.MaskedEnum = dt;
2031
+ class ve extends N {
2032
+ /** */
2033
+ /** Enable characters overwriting */
2034
+ /** */
2035
+ /** */
2036
+ /** */
2037
+ updateOptions(t) {
2038
+ super.updateOptions(t);
2039
+ }
2040
+ _update(t) {
2041
+ super._update({
2042
+ ...t,
2043
+ validate: t.mask
2044
+ });
2045
+ }
2046
+ }
2047
+ k.MaskedFunction = ve;
2048
+ var Xt;
2049
+ class U extends N {
2050
+ /** Single char */
2051
+ /** Single char */
2052
+ /** Array of single chars */
2053
+ /** */
2054
+ /** */
2055
+ /** Digits after point */
2056
+ /** Flag to remove leading and trailing zeros in the end of editing */
2057
+ /** Flag to pad trailing zeros after point in the end of editing */
2058
+ /** Enable characters overwriting */
2059
+ /** */
2060
+ /** */
2061
+ /** */
2062
+ /** Format typed value to string */
2063
+ /** Parse string to get typed value */
2064
+ constructor(t) {
2065
+ super({
2066
+ ...U.DEFAULTS,
2067
+ ...t
2068
+ });
2069
+ }
2070
+ updateOptions(t) {
2071
+ super.updateOptions(t);
2072
+ }
2073
+ _update(t) {
2074
+ super._update(t), this._updateRegExps();
2075
+ }
2076
+ _updateRegExps() {
2077
+ const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", s = (this.scale ? "(" + At(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
2078
+ this._numberRegExp = new RegExp(t + e + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(At).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(At(this.thousandsSeparator), "g");
2079
+ }
2080
+ _removeThousandsSeparators(t) {
2081
+ return t.replace(this._thousandsSeparatorRegExp, "");
2082
+ }
2083
+ _insertThousandsSeparators(t) {
2084
+ const e = t.split(this.radix);
2085
+ return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandsSeparator), e.join(this.radix);
2086
+ }
2087
+ doPrepareChar(t, e) {
2088
+ e === void 0 && (e = {});
2089
+ const [s, i] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && /*
2090
+ radix should be mapped when
2091
+ 1) input is done from keyboard = flags.input && flags.raw
2092
+ 2) unmasked value is set = !flags.input && !flags.raw
2093
+ and should not be mapped when
2094
+ 1) value is set = flags.input && !flags.raw
2095
+ 2) raw value is set = !flags.input && flags.raw
2096
+ */
2097
+ (e.input && e.raw || !e.input && !e.raw) ? t.replace(this._mapToRadixRegExp, this.radix) : t), e);
2098
+ return t && !s && (i.skip = !0), s && !this.allowPositive && !this.value && s !== "-" && i.aggregate(this._appendChar("-")), [s, i];
2099
+ }
2100
+ _separatorsCount(t, e) {
2101
+ e === void 0 && (e = !1);
2102
+ let s = 0;
2103
+ for (let i = 0; i < t; ++i)
2104
+ this._value.indexOf(this.thousandsSeparator, i) === i && (++s, e && (t += this.thousandsSeparator.length));
2105
+ return s;
2106
+ }
2107
+ _separatorsCountFromSlice(t) {
2108
+ return t === void 0 && (t = this._value), this._separatorsCount(this._removeThousandsSeparators(t).length, !0);
2109
+ }
2110
+ extractInput(t, e, s) {
2111
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), [t, e] = this._adjustRangeWithSeparators(t, e), this._removeThousandsSeparators(super.extractInput(t, e, s));
2112
+ }
2113
+ _appendCharRaw(t, e) {
2114
+ e === void 0 && (e = {});
2115
+ const s = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, i = this._separatorsCountFromSlice(s);
2116
+ this._value = this._removeThousandsSeparators(this.value);
2117
+ const r = this._value;
2118
+ this._value += t;
2119
+ const n = this.number;
2120
+ let u = !isNaN(n), o = !1;
2121
+ if (u) {
2122
+ let y;
2123
+ this.min != null && this.min < 0 && this.number < this.min && (y = this.min), this.max != null && this.max > 0 && this.number > this.max && (y = this.max), y != null && (this.autofix ? (this._value = this.format(y, this).replace(U.UNMASKED_RADIX, this.radix), o || (o = r === this._value && !e.tail)) : u = !1), u && (u = !!this._value.match(this._numberRegExp));
2124
+ }
2125
+ let h;
2126
+ u ? h = new E({
2127
+ inserted: this._value.slice(r.length),
2128
+ rawInserted: o ? "" : t,
2129
+ skip: o
2130
+ }) : (this._value = r, h = new E()), this._value = this._insertThousandsSeparators(this._value);
2131
+ const v = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, g = this._separatorsCountFromSlice(v);
2132
+ return h.tailShift += (g - i) * this.thousandsSeparator.length, h;
2133
+ }
2134
+ _findSeparatorAround(t) {
2135
+ if (this.thousandsSeparator) {
2136
+ const e = t - this.thousandsSeparator.length + 1, s = this.value.indexOf(this.thousandsSeparator, e);
2137
+ if (s <= t) return s;
2138
+ }
2139
+ return -1;
2140
+ }
2141
+ _adjustRangeWithSeparators(t, e) {
2142
+ const s = this._findSeparatorAround(t);
2143
+ s >= 0 && (t = s);
2144
+ const i = this._findSeparatorAround(e);
2145
+ return i >= 0 && (e = i + this.thousandsSeparator.length), [t, e];
2146
+ }
2147
+ remove(t, e) {
2148
+ t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), [t, e] = this._adjustRangeWithSeparators(t, e);
2149
+ const s = this.value.slice(0, t), i = this.value.slice(e), r = this._separatorsCount(s.length);
2150
+ this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(s + i));
2151
+ const n = this._separatorsCountFromSlice(s);
2152
+ return new E({
2153
+ tailShift: (n - r) * this.thousandsSeparator.length
2154
+ });
2155
+ }
2156
+ nearestInputPos(t, e) {
2157
+ if (!this.thousandsSeparator) return t;
2158
+ switch (e) {
2159
+ case m.NONE:
2160
+ case m.LEFT:
2161
+ case m.FORCE_LEFT: {
2162
+ const s = this._findSeparatorAround(t - 1);
2163
+ if (s >= 0) {
2164
+ const i = s + this.thousandsSeparator.length;
2165
+ if (t < i || this.value.length <= i || e === m.FORCE_LEFT)
2166
+ return s;
2167
+ }
2168
+ break;
2169
+ }
2170
+ case m.RIGHT:
2171
+ case m.FORCE_RIGHT: {
2172
+ const s = this._findSeparatorAround(t);
2173
+ if (s >= 0)
2174
+ return s + this.thousandsSeparator.length;
2175
+ }
2176
+ }
2177
+ return t;
2178
+ }
2179
+ doCommit() {
2180
+ if (this.value) {
2181
+ const t = this.number;
2182
+ let e = t;
2183
+ this.min != null && (e = Math.max(e, this.min)), this.max != null && (e = Math.min(e, this.max)), e !== t && (this.unmaskedValue = this.format(e, this));
2184
+ let s = this.value;
2185
+ this.normalizeZeros && (s = this._normalizeZeros(s)), this.padFractionalZeros && this.scale > 0 && (s = this._padFractionalZeros(s)), this._value = s;
2186
+ }
2187
+ super.doCommit();
2188
+ }
2189
+ _normalizeZeros(t) {
2190
+ const e = this._removeThousandsSeparators(t).split(this.radix);
2191
+ return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (s, i, r, n) => i + n), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
2192
+ }
2193
+ _padFractionalZeros(t) {
2194
+ if (!t) return t;
2195
+ const e = t.split(this.radix);
2196
+ return e.length < 2 && e.push(""), e[1] = e[1].padEnd(this.scale, "0"), e.join(this.radix);
2197
+ }
2198
+ doSkipInvalid(t, e, s) {
2199
+ e === void 0 && (e = {});
2200
+ const i = this.scale === 0 && t !== this.thousandsSeparator && (t === this.radix || t === U.UNMASKED_RADIX || this.mapToRadix.includes(t));
2201
+ return super.doSkipInvalid(t, e, s) && !i;
2202
+ }
2203
+ get unmaskedValue() {
2204
+ return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, U.UNMASKED_RADIX);
2205
+ }
2206
+ set unmaskedValue(t) {
2207
+ super.unmaskedValue = t;
2208
+ }
2209
+ get typedValue() {
2210
+ return this.parse(this.unmaskedValue, this);
2211
+ }
2212
+ set typedValue(t) {
2213
+ this.rawInputValue = this.format(t, this).replace(U.UNMASKED_RADIX, this.radix);
2214
+ }
2215
+ /** Parsed Number */
2216
+ get number() {
2217
+ return this.typedValue;
2218
+ }
2219
+ set number(t) {
2220
+ this.typedValue = t;
2221
+ }
2222
+ get allowNegative() {
2223
+ return this.min != null && this.min < 0 || this.max != null && this.max < 0;
2224
+ }
2225
+ get allowPositive() {
2226
+ return this.min != null && this.min > 0 || this.max != null && this.max > 0;
2227
+ }
2228
+ typedValueEquals(t) {
2229
+ return (super.typedValueEquals(t) || U.EMPTY_VALUES.includes(t) && U.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
2230
+ }
2231
+ }
2232
+ Xt = U;
2233
+ U.UNMASKED_RADIX = ".";
2234
+ U.EMPTY_VALUES = [...N.EMPTY_VALUES, 0];
2235
+ U.DEFAULTS = {
2236
+ ...N.DEFAULTS,
2237
+ mask: Number,
2238
+ radix: ",",
2239
+ thousandsSeparator: "",
2240
+ mapToRadix: [Xt.UNMASKED_RADIX],
2241
+ min: Number.MIN_SAFE_INTEGER,
2242
+ max: Number.MAX_SAFE_INTEGER,
2243
+ scale: 2,
2244
+ normalizeZeros: !0,
2245
+ padFractionalZeros: !1,
2246
+ parse: Number,
2247
+ format: (a) => a.toLocaleString("en-US", {
2248
+ useGrouping: !1,
2249
+ maximumFractionDigits: 20
2250
+ })
2251
+ };
2252
+ k.MaskedNumber = U;
2253
+ const Mt = {
2254
+ MASKED: "value",
2255
+ UNMASKED: "unmaskedValue",
2256
+ TYPED: "typedValue"
2257
+ };
2258
+ function Jt(a, t, e) {
2259
+ t === void 0 && (t = Mt.MASKED), e === void 0 && (e = Mt.MASKED);
2260
+ const s = G(a);
2261
+ return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
2262
+ }
2263
+ function ge(a, t, e, s) {
2264
+ return Jt(t, e, s)(a);
2265
+ }
2266
+ k.PIPE_TYPE = Mt;
2267
+ k.createPipe = Jt;
2268
+ k.pipe = ge;
2269
+ class ke extends j {
2270
+ get repeatFrom() {
2271
+ var t;
2272
+ return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
2273
+ }
2274
+ get repeatTo() {
2275
+ var t;
2276
+ return (t = Array.isArray(this.repeat) ? this.repeat[1] : this.repeat) != null ? t : 1 / 0;
2277
+ }
2278
+ constructor(t) {
2279
+ super(t);
2280
+ }
2281
+ updateOptions(t) {
2282
+ super.updateOptions(t);
2283
+ }
2284
+ _update(t) {
2285
+ var e, s, i;
2286
+ const {
2287
+ repeat: r,
2288
+ ...n
2289
+ } = st(t);
2290
+ this._blockOpts = Object.assign({}, this._blockOpts, n);
2291
+ const u = G(this._blockOpts);
2292
+ this.repeat = (e = (s = r ?? u.repeat) != null ? s : this.repeat) != null ? e : 1 / 0, super._update({
2293
+ mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((i = this._blocks) == null ? void 0 : i.length) || 0, this.repeatFrom)),
2294
+ blocks: {
2295
+ m: u
2296
+ },
2297
+ eager: u.eager,
2298
+ overwrite: u.overwrite,
2299
+ skipInvalid: u.skipInvalid,
2300
+ lazy: u.lazy,
2301
+ placeholderChar: u.placeholderChar,
2302
+ displayChar: u.displayChar
2303
+ });
2304
+ }
2305
+ _allocateBlock(t) {
2306
+ if (t < this._blocks.length) return this._blocks[t];
2307
+ if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
2308
+ return this._blocks.push(G(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
2309
+ }
2310
+ _appendCharRaw(t, e) {
2311
+ e === void 0 && (e = {});
2312
+ const s = new E();
2313
+ for (
2314
+ let o = (i = (r = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : r.index) != null ? i : Math.max(this._blocks.length - 1, 0), h, v;
2315
+ // try to get a block or
2316
+ // try to allocate a new block if not allocated already
2317
+ h = (n = this._blocks[o]) != null ? n : v = !v && this._allocateBlock(o);
2318
+ ++o
2319
+ ) {
2320
+ var i, r, n, u;
2321
+ const g = h._appendChar(t, {
2322
+ ...e,
2323
+ _beforeTailState: (u = e._beforeTailState) == null || (u = u._blocks) == null ? void 0 : u[o]
2324
+ });
2325
+ if (g.skip && v) {
2326
+ this._blocks.pop(), this.mask = this.mask.slice(1);
2327
+ break;
2328
+ }
2329
+ if (s.aggregate(g), g.consumed) break;
2330
+ }
2331
+ return s;
2332
+ }
2333
+ _trimEmptyTail(t, e) {
2334
+ var s, i;
2335
+ t === void 0 && (t = 0);
2336
+ const r = Math.max(((s = this._mapPosToBlock(t)) == null ? void 0 : s.index) || 0, this.repeatFrom, 0);
2337
+ let n;
2338
+ e != null && (n = (i = this._mapPosToBlock(e)) == null ? void 0 : i.index), n == null && (n = this._blocks.length - 1);
2339
+ let u = 0;
2340
+ for (let o = n; r <= o && !this._blocks[o].unmaskedValue; --o, ++u)
2341
+ ;
2342
+ u && (this._blocks.splice(n - u + 1, u), this.mask = this.mask.slice(u));
2343
+ }
2344
+ reset() {
2345
+ super.reset(), this._trimEmptyTail();
2346
+ }
2347
+ remove(t, e) {
2348
+ t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
2349
+ const s = super.remove(t, e);
2350
+ return this._trimEmptyTail(t, e), s;
2351
+ }
2352
+ totalInputPositions(t, e) {
2353
+ return t === void 0 && (t = 0), e == null && this.repeatTo === 1 / 0 ? 1 / 0 : super.totalInputPositions(t, e);
2354
+ }
2355
+ get state() {
2356
+ return super.state;
2357
+ }
2358
+ set state(t) {
2359
+ this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
2360
+ }
2361
+ }
2362
+ k.RepeatBlock = ke;
2363
+ try {
2364
+ globalThis.IMask = k;
2365
+ } catch {
2366
+ }
2367
+ var wt = { exports: {} }, at = { exports: {} }, I = {};
2368
+ /** @license React v16.13.1
2369
+ * react-is.production.min.js
2370
+ *
2371
+ * Copyright (c) Facebook, Inc. and its affiliates.
2372
+ *
2373
+ * This source code is licensed under the MIT license found in the
2374
+ * LICENSE file in the root directory of this source tree.
2375
+ */
2376
+ var Lt;
2377
+ function _e() {
2378
+ if (Lt) return I;
2379
+ Lt = 1;
2380
+ var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, D = a ? Symbol.for("react.block") : 60121, R = a ? Symbol.for("react.fundamental") : 60117, O = a ? Symbol.for("react.responder") : 60118, $ = a ? Symbol.for("react.scope") : 60119;
2381
+ function V(c) {
2382
+ if (typeof c == "object" && c !== null) {
2383
+ var W = c.$$typeof;
2384
+ switch (W) {
2385
+ case t:
2386
+ switch (c = c.type, c) {
2387
+ case o:
2388
+ case h:
2389
+ case s:
2390
+ case r:
2391
+ case i:
2392
+ case g:
2393
+ return c;
2394
+ default:
2395
+ switch (c = c && c.$$typeof, c) {
2396
+ case u:
2397
+ case v:
2398
+ case L:
2399
+ case B:
2400
+ case n:
2401
+ return c;
2402
+ default:
2403
+ return W;
2404
+ }
2405
+ }
2406
+ case e:
2407
+ return W;
2408
+ }
2409
+ }
2410
+ }
2411
+ function P(c) {
2412
+ return V(c) === h;
2413
+ }
2414
+ return I.AsyncMode = o, I.ConcurrentMode = h, I.ContextConsumer = u, I.ContextProvider = n, I.Element = t, I.ForwardRef = v, I.Fragment = s, I.Lazy = L, I.Memo = B, I.Portal = e, I.Profiler = r, I.StrictMode = i, I.Suspense = g, I.isAsyncMode = function(c) {
2415
+ return P(c) || V(c) === o;
2416
+ }, I.isConcurrentMode = P, I.isContextConsumer = function(c) {
2417
+ return V(c) === u;
2418
+ }, I.isContextProvider = function(c) {
2419
+ return V(c) === n;
2420
+ }, I.isElement = function(c) {
2421
+ return typeof c == "object" && c !== null && c.$$typeof === t;
2422
+ }, I.isForwardRef = function(c) {
2423
+ return V(c) === v;
2424
+ }, I.isFragment = function(c) {
2425
+ return V(c) === s;
2426
+ }, I.isLazy = function(c) {
2427
+ return V(c) === L;
2428
+ }, I.isMemo = function(c) {
2429
+ return V(c) === B;
2430
+ }, I.isPortal = function(c) {
2431
+ return V(c) === e;
2432
+ }, I.isProfiler = function(c) {
2433
+ return V(c) === r;
2434
+ }, I.isStrictMode = function(c) {
2435
+ return V(c) === i;
2436
+ }, I.isSuspense = function(c) {
2437
+ return V(c) === g;
2438
+ }, I.isValidElementType = function(c) {
2439
+ return typeof c == "string" || typeof c == "function" || c === s || c === h || c === r || c === i || c === g || c === y || typeof c == "object" && c !== null && (c.$$typeof === L || c.$$typeof === B || c.$$typeof === n || c.$$typeof === u || c.$$typeof === v || c.$$typeof === R || c.$$typeof === O || c.$$typeof === $ || c.$$typeof === D);
2440
+ }, I.typeOf = V, I;
2441
+ }
2442
+ var M = {};
2443
+ /** @license React v16.13.1
2444
+ * react-is.development.js
2445
+ *
2446
+ * Copyright (c) Facebook, Inc. and its affiliates.
2447
+ *
2448
+ * This source code is licensed under the MIT license found in the
2449
+ * LICENSE file in the root directory of this source tree.
2450
+ */
2451
+ var Nt;
2452
+ function Ee() {
2453
+ return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
2454
+ var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, D = a ? Symbol.for("react.block") : 60121, R = a ? Symbol.for("react.fundamental") : 60117, O = a ? Symbol.for("react.responder") : 60118, $ = a ? Symbol.for("react.scope") : 60119;
2455
+ function V(p) {
2456
+ return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2457
+ p === s || p === h || p === r || p === i || p === g || p === y || typeof p == "object" && p !== null && (p.$$typeof === L || p.$$typeof === B || p.$$typeof === n || p.$$typeof === u || p.$$typeof === v || p.$$typeof === R || p.$$typeof === O || p.$$typeof === $ || p.$$typeof === D);
2458
+ }
2459
+ function P(p) {
2460
+ if (typeof p == "object" && p !== null) {
2461
+ var z = p.$$typeof;
2462
+ switch (z) {
2463
+ case t:
2464
+ var nt = p.type;
2465
+ switch (nt) {
2466
+ case o:
2467
+ case h:
2468
+ case s:
2469
+ case r:
2470
+ case i:
2471
+ case g:
2472
+ return nt;
2473
+ default:
2474
+ var Bt = nt && nt.$$typeof;
2475
+ switch (Bt) {
2476
+ case u:
2477
+ case v:
2478
+ case L:
2479
+ case B:
2480
+ case n:
2481
+ return Bt;
2482
+ default:
2483
+ return z;
2484
+ }
2485
+ }
2486
+ case e:
2487
+ return z;
2488
+ }
2489
+ }
2490
+ }
2491
+ var c = o, W = h, ft = u, mt = n, vt = t, gt = v, it = s, kt = L, _t = B, et = e, Et = r, q = i, X = g, rt = !1;
2492
+ function yt(p) {
2493
+ return rt || (rt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || P(p) === o;
2494
+ }
2495
+ function l(p) {
2496
+ return P(p) === h;
2497
+ }
2498
+ function d(p) {
2499
+ return P(p) === u;
2500
+ }
2501
+ function S(p) {
2502
+ return P(p) === n;
2503
+ }
2504
+ function A(p) {
2505
+ return typeof p == "object" && p !== null && p.$$typeof === t;
2506
+ }
2507
+ function _(p) {
2508
+ return P(p) === v;
2509
+ }
2510
+ function x(p) {
2511
+ return P(p) === s;
2512
+ }
2513
+ function C(p) {
2514
+ return P(p) === L;
2515
+ }
2516
+ function b(p) {
2517
+ return P(p) === B;
2518
+ }
2519
+ function F(p) {
2520
+ return P(p) === e;
2521
+ }
2522
+ function w(p) {
2523
+ return P(p) === r;
2524
+ }
2525
+ function T(p) {
2526
+ return P(p) === i;
2527
+ }
2528
+ function Y(p) {
2529
+ return P(p) === g;
2530
+ }
2531
+ M.AsyncMode = c, M.ConcurrentMode = W, M.ContextConsumer = ft, M.ContextProvider = mt, M.Element = vt, M.ForwardRef = gt, M.Fragment = it, M.Lazy = kt, M.Memo = _t, M.Portal = et, M.Profiler = Et, M.StrictMode = q, M.Suspense = X, M.isAsyncMode = yt, M.isConcurrentMode = l, M.isContextConsumer = d, M.isContextProvider = S, M.isElement = A, M.isForwardRef = _, M.isFragment = x, M.isLazy = C, M.isMemo = b, M.isPortal = F, M.isProfiler = w, M.isStrictMode = T, M.isSuspense = Y, M.isValidElementType = V, M.typeOf = P;
2532
+ }()), M;
2533
+ }
2534
+ var jt;
2535
+ function Qt() {
2536
+ return jt || (jt = 1, process.env.NODE_ENV === "production" ? at.exports = _e() : at.exports = Ee()), at.exports;
2537
+ }
2538
+ /*
2539
+ object-assign
2540
+ (c) Sindre Sorhus
2541
+ @license MIT
2542
+ */
2543
+ var bt, Yt;
2544
+ function ye() {
2545
+ if (Yt) return bt;
2546
+ Yt = 1;
2547
+ var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
2548
+ function s(r) {
2549
+ if (r == null)
2550
+ throw new TypeError("Object.assign cannot be called with null or undefined");
2551
+ return Object(r);
2552
+ }
2553
+ function i() {
2554
+ try {
2555
+ if (!Object.assign)
2556
+ return !1;
2557
+ var r = new String("abc");
2558
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
2559
+ return !1;
2560
+ for (var n = {}, u = 0; u < 10; u++)
2561
+ n["_" + String.fromCharCode(u)] = u;
2562
+ var o = Object.getOwnPropertyNames(n).map(function(v) {
2563
+ return n[v];
2564
+ });
2565
+ if (o.join("") !== "0123456789")
2566
+ return !1;
2567
+ var h = {};
2568
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
2569
+ h[v] = v;
2570
+ }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
2571
+ } catch {
2572
+ return !1;
2573
+ }
2574
+ }
2575
+ return bt = i() ? Object.assign : function(r, n) {
2576
+ for (var u, o = s(r), h, v = 1; v < arguments.length; v++) {
2577
+ u = Object(arguments[v]);
2578
+ for (var g in u)
2579
+ t.call(u, g) && (o[g] = u[g]);
2580
+ if (a) {
2581
+ h = a(u);
2582
+ for (var y = 0; y < h.length; y++)
2583
+ e.call(u, h[y]) && (o[h[y]] = u[h[y]]);
2584
+ }
2585
+ }
2586
+ return o;
2587
+ }, bt;
2588
+ }
2589
+ var St, Ut;
2590
+ function Dt() {
2591
+ if (Ut) return St;
2592
+ Ut = 1;
2593
+ var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2594
+ return St = a, St;
2595
+ }
2596
+ var xt, $t;
2597
+ function te() {
2598
+ return $t || ($t = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
2599
+ }
2600
+ var Ft, qt;
2601
+ function Ce() {
2602
+ if (qt) return Ft;
2603
+ qt = 1;
2604
+ var a = function() {
2605
+ };
2606
+ if (process.env.NODE_ENV !== "production") {
2607
+ var t = Dt(), e = {}, s = te();
2608
+ a = function(r) {
2609
+ var n = "Warning: " + r;
2610
+ typeof console < "u" && console.error(n);
2611
+ try {
2612
+ throw new Error(n);
2613
+ } catch {
2614
+ }
2615
+ };
2616
+ }
2617
+ function i(r, n, u, o, h) {
2618
+ if (process.env.NODE_ENV !== "production") {
2619
+ for (var v in r)
2620
+ if (s(r, v)) {
2621
+ var g;
2622
+ try {
2623
+ if (typeof r[v] != "function") {
2624
+ var y = Error(
2625
+ (o || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2626
+ );
2627
+ throw y.name = "Invariant Violation", y;
2628
+ }
2629
+ g = r[v](n, v, o, u, null, t);
2630
+ } catch (L) {
2631
+ g = L;
2632
+ }
2633
+ if (g && !(g instanceof Error) && a(
2634
+ (o || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2635
+ ), g instanceof Error && !(g.message in e)) {
2636
+ e[g.message] = !0;
2637
+ var B = h ? h() : "";
2638
+ a(
2639
+ "Failed " + u + " type: " + g.message + (B ?? "")
2640
+ );
2641
+ }
2642
+ }
2643
+ }
2644
+ }
2645
+ return i.resetWarningCache = function() {
2646
+ process.env.NODE_ENV !== "production" && (e = {});
2647
+ }, Ft = i, Ft;
2648
+ }
2649
+ var Tt, zt;
2650
+ function Ae() {
2651
+ if (zt) return Tt;
2652
+ zt = 1;
2653
+ var a = Qt(), t = ye(), e = Dt(), s = te(), i = Ce(), r = function() {
2654
+ };
2655
+ process.env.NODE_ENV !== "production" && (r = function(u) {
2656
+ var o = "Warning: " + u;
2657
+ typeof console < "u" && console.error(o);
2658
+ try {
2659
+ throw new Error(o);
2660
+ } catch {
2661
+ }
2662
+ });
2663
+ function n() {
2664
+ return null;
2665
+ }
2666
+ return Tt = function(u, o) {
2667
+ var h = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
2668
+ function g(l) {
2669
+ var d = l && (h && l[h] || l[v]);
2670
+ if (typeof d == "function")
2671
+ return d;
2672
+ }
2673
+ var y = "<<anonymous>>", B = {
2674
+ array: O("array"),
2675
+ bigint: O("bigint"),
2676
+ bool: O("boolean"),
2677
+ func: O("function"),
2678
+ number: O("number"),
2679
+ object: O("object"),
2680
+ string: O("string"),
2681
+ symbol: O("symbol"),
2682
+ any: $(),
2683
+ arrayOf: V,
2684
+ element: P(),
2685
+ elementType: c(),
2686
+ instanceOf: W,
2687
+ node: gt(),
2688
+ objectOf: mt,
2689
+ oneOf: ft,
2690
+ oneOfType: vt,
2691
+ shape: kt,
2692
+ exact: _t
2693
+ };
2694
+ function L(l, d) {
2695
+ return l === d ? l !== 0 || 1 / l === 1 / d : l !== l && d !== d;
2696
+ }
2697
+ function D(l, d) {
2698
+ this.message = l, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
2699
+ }
2700
+ D.prototype = Error.prototype;
2701
+ function R(l) {
2702
+ if (process.env.NODE_ENV !== "production")
2703
+ var d = {}, S = 0;
2704
+ function A(x, C, b, F, w, T, Y) {
2705
+ if (F = F || y, T = T || b, Y !== e) {
2706
+ if (o) {
2707
+ var p = new Error(
2708
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
2709
+ );
2710
+ throw p.name = "Invariant Violation", p;
2711
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2712
+ var z = F + ":" + b;
2713
+ !d[z] && // Avoid spamming the console because they are often not actionable except for lib authors
2714
+ S < 3 && (r(
2715
+ "You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2716
+ ), d[z] = !0, S++);
2717
+ }
2718
+ }
2719
+ return C[b] == null ? x ? C[b] === null ? new D("The " + w + " `" + T + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new D("The " + w + " `" + T + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : l(C, b, F, w, T);
2720
+ }
2721
+ var _ = A.bind(null, !1);
2722
+ return _.isRequired = A.bind(null, !0), _;
2723
+ }
2724
+ function O(l) {
2725
+ function d(S, A, _, x, C, b) {
2726
+ var F = S[A], w = q(F);
2727
+ if (w !== l) {
2728
+ var T = X(F);
2729
+ return new D(
2730
+ "Invalid " + x + " `" + C + "` of type " + ("`" + T + "` supplied to `" + _ + "`, expected ") + ("`" + l + "`."),
2731
+ { expectedType: l }
2732
+ );
2733
+ }
2734
+ return null;
2735
+ }
2736
+ return R(d);
2737
+ }
2738
+ function $() {
2739
+ return R(n);
2740
+ }
2741
+ function V(l) {
2742
+ function d(S, A, _, x, C) {
2743
+ if (typeof l != "function")
2744
+ return new D("Property `" + C + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
2745
+ var b = S[A];
2746
+ if (!Array.isArray(b)) {
2747
+ var F = q(b);
2748
+ return new D("Invalid " + x + " `" + C + "` of type " + ("`" + F + "` supplied to `" + _ + "`, expected an array."));
2749
+ }
2750
+ for (var w = 0; w < b.length; w++) {
2751
+ var T = l(b, w, _, x, C + "[" + w + "]", e);
2752
+ if (T instanceof Error)
2753
+ return T;
2754
+ }
2755
+ return null;
2756
+ }
2757
+ return R(d);
2758
+ }
2759
+ function P() {
2760
+ function l(d, S, A, _, x) {
2761
+ var C = d[S];
2762
+ if (!u(C)) {
2763
+ var b = q(C);
2764
+ return new D("Invalid " + _ + " `" + x + "` of type " + ("`" + b + "` supplied to `" + A + "`, expected a single ReactElement."));
2765
+ }
2766
+ return null;
2767
+ }
2768
+ return R(l);
2769
+ }
2770
+ function c() {
2771
+ function l(d, S, A, _, x) {
2772
+ var C = d[S];
2773
+ if (!a.isValidElementType(C)) {
2774
+ var b = q(C);
2775
+ return new D("Invalid " + _ + " `" + x + "` of type " + ("`" + b + "` supplied to `" + A + "`, expected a single ReactElement type."));
2776
+ }
2777
+ return null;
2778
+ }
2779
+ return R(l);
2780
+ }
2781
+ function W(l) {
2782
+ function d(S, A, _, x, C) {
2783
+ if (!(S[A] instanceof l)) {
2784
+ var b = l.name || y, F = yt(S[A]);
2785
+ return new D("Invalid " + x + " `" + C + "` of type " + ("`" + F + "` supplied to `" + _ + "`, expected ") + ("instance of `" + b + "`."));
2786
+ }
2787
+ return null;
2788
+ }
2789
+ return R(d);
2790
+ }
2791
+ function ft(l) {
2792
+ if (!Array.isArray(l))
2793
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
2794
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2795
+ ) : r("Invalid argument supplied to oneOf, expected an array.")), n;
2796
+ function d(S, A, _, x, C) {
2797
+ for (var b = S[A], F = 0; F < l.length; F++)
2798
+ if (L(b, l[F]))
2799
+ return null;
2800
+ var w = JSON.stringify(l, function(Y, p) {
2801
+ var z = X(p);
2802
+ return z === "symbol" ? String(p) : p;
2803
+ });
2804
+ return new D("Invalid " + x + " `" + C + "` of value `" + String(b) + "` " + ("supplied to `" + _ + "`, expected one of " + w + "."));
2805
+ }
2806
+ return R(d);
2807
+ }
2808
+ function mt(l) {
2809
+ function d(S, A, _, x, C) {
2810
+ if (typeof l != "function")
2811
+ return new D("Property `" + C + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
2812
+ var b = S[A], F = q(b);
2813
+ if (F !== "object")
2814
+ return new D("Invalid " + x + " `" + C + "` of type " + ("`" + F + "` supplied to `" + _ + "`, expected an object."));
2815
+ for (var w in b)
2816
+ if (s(b, w)) {
2817
+ var T = l(b, w, _, x, C + "." + w, e);
2818
+ if (T instanceof Error)
2819
+ return T;
2820
+ }
2821
+ return null;
2822
+ }
2823
+ return R(d);
2824
+ }
2825
+ function vt(l) {
2826
+ if (!Array.isArray(l))
2827
+ return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), n;
2828
+ for (var d = 0; d < l.length; d++) {
2829
+ var S = l[d];
2830
+ if (typeof S != "function")
2831
+ return r(
2832
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + rt(S) + " at index " + d + "."
2833
+ ), n;
2834
+ }
2835
+ function A(_, x, C, b, F) {
2836
+ for (var w = [], T = 0; T < l.length; T++) {
2837
+ var Y = l[T], p = Y(_, x, C, b, F, e);
2838
+ if (p == null)
2839
+ return null;
2840
+ p.data && s(p.data, "expectedType") && w.push(p.data.expectedType);
2841
+ }
2842
+ var z = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
2843
+ return new D("Invalid " + b + " `" + F + "` supplied to " + ("`" + C + "`" + z + "."));
2844
+ }
2845
+ return R(A);
2846
+ }
2847
+ function gt() {
2848
+ function l(d, S, A, _, x) {
2849
+ return et(d[S]) ? null : new D("Invalid " + _ + " `" + x + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
2850
+ }
2851
+ return R(l);
2852
+ }
2853
+ function it(l, d, S, A, _) {
2854
+ return new D(
2855
+ (l || "React class") + ": " + d + " type `" + S + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
2856
+ );
2857
+ }
2858
+ function kt(l) {
2859
+ function d(S, A, _, x, C) {
2860
+ var b = S[A], F = q(b);
2861
+ if (F !== "object")
2862
+ return new D("Invalid " + x + " `" + C + "` of type `" + F + "` " + ("supplied to `" + _ + "`, expected `object`."));
2863
+ for (var w in l) {
2864
+ var T = l[w];
2865
+ if (typeof T != "function")
2866
+ return it(_, x, C, w, X(T));
2867
+ var Y = T(b, w, _, x, C + "." + w, e);
2868
+ if (Y)
2869
+ return Y;
2870
+ }
2871
+ return null;
2872
+ }
2873
+ return R(d);
2874
+ }
2875
+ function _t(l) {
2876
+ function d(S, A, _, x, C) {
2877
+ var b = S[A], F = q(b);
2878
+ if (F !== "object")
2879
+ return new D("Invalid " + x + " `" + C + "` of type `" + F + "` " + ("supplied to `" + _ + "`, expected `object`."));
2880
+ var w = t({}, S[A], l);
2881
+ for (var T in w) {
2882
+ var Y = l[T];
2883
+ if (s(l, T) && typeof Y != "function")
2884
+ return it(_, x, C, T, X(Y));
2885
+ if (!Y)
2886
+ return new D(
2887
+ "Invalid " + x + " `" + C + "` key `" + T + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(S[A], null, " ") + `
2888
+ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
2889
+ );
2890
+ var p = Y(b, T, _, x, C + "." + T, e);
2891
+ if (p)
2892
+ return p;
2893
+ }
2894
+ return null;
2895
+ }
2896
+ return R(d);
2897
+ }
2898
+ function et(l) {
2899
+ switch (typeof l) {
2900
+ case "number":
2901
+ case "string":
2902
+ case "undefined":
2903
+ return !0;
2904
+ case "boolean":
2905
+ return !l;
2906
+ case "object":
2907
+ if (Array.isArray(l))
2908
+ return l.every(et);
2909
+ if (l === null || u(l))
2910
+ return !0;
2911
+ var d = g(l);
2912
+ if (d) {
2913
+ var S = d.call(l), A;
2914
+ if (d !== l.entries) {
2915
+ for (; !(A = S.next()).done; )
2916
+ if (!et(A.value))
2917
+ return !1;
2918
+ } else
2919
+ for (; !(A = S.next()).done; ) {
2920
+ var _ = A.value;
2921
+ if (_ && !et(_[1]))
2922
+ return !1;
2923
+ }
2924
+ } else
2925
+ return !1;
2926
+ return !0;
2927
+ default:
2928
+ return !1;
2929
+ }
2930
+ }
2931
+ function Et(l, d) {
2932
+ return l === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
2933
+ }
2934
+ function q(l) {
2935
+ var d = typeof l;
2936
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : Et(d, l) ? "symbol" : d;
2937
+ }
2938
+ function X(l) {
2939
+ if (typeof l > "u" || l === null)
2940
+ return "" + l;
2941
+ var d = q(l);
2942
+ if (d === "object") {
2943
+ if (l instanceof Date)
2944
+ return "date";
2945
+ if (l instanceof RegExp)
2946
+ return "regexp";
2947
+ }
2948
+ return d;
2949
+ }
2950
+ function rt(l) {
2951
+ var d = X(l);
2952
+ switch (d) {
2953
+ case "array":
2954
+ case "object":
2955
+ return "an " + d;
2956
+ case "boolean":
2957
+ case "date":
2958
+ case "regexp":
2959
+ return "a " + d;
2960
+ default:
2961
+ return d;
2962
+ }
2963
+ }
2964
+ function yt(l) {
2965
+ return !l.constructor || !l.constructor.name ? y : l.constructor.name;
2966
+ }
2967
+ return B.checkPropTypes = i, B.resetWarningCache = i.resetWarningCache, B.PropTypes = B, B;
2968
+ }, Tt;
2969
+ }
2970
+ var It, Ht;
2971
+ function be() {
2972
+ if (Ht) return It;
2973
+ Ht = 1;
2974
+ var a = Dt();
2975
+ function t() {
2976
+ }
2977
+ function e() {
2978
+ }
2979
+ return e.resetWarningCache = t, It = function() {
2980
+ function s(n, u, o, h, v, g) {
2981
+ if (g !== a) {
2982
+ var y = new Error(
2983
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2984
+ );
2985
+ throw y.name = "Invariant Violation", y;
2986
+ }
2987
+ }
2988
+ s.isRequired = s;
2989
+ function i() {
2990
+ return s;
2991
+ }
2992
+ var r = {
2993
+ array: s,
2994
+ bigint: s,
2995
+ bool: s,
2996
+ func: s,
2997
+ number: s,
2998
+ object: s,
2999
+ string: s,
3000
+ symbol: s,
3001
+ any: s,
3002
+ arrayOf: i,
3003
+ element: s,
3004
+ elementType: s,
3005
+ instanceOf: i,
3006
+ node: s,
3007
+ objectOf: i,
3008
+ oneOf: i,
3009
+ oneOfType: i,
3010
+ shape: i,
3011
+ exact: i,
3012
+ checkPropTypes: e,
3013
+ resetWarningCache: t
3014
+ };
3015
+ return r.PropTypes = r, r;
3016
+ }, It;
3017
+ }
3018
+ if (process.env.NODE_ENV !== "production") {
3019
+ var Se = Qt(), xe = !0;
3020
+ wt.exports = Ae()(Se.isElement, xe);
3021
+ } else
3022
+ wt.exports = be()();
3023
+ var Fe = wt.exports;
3024
+ const f = /* @__PURE__ */ re(Fe), ee = {
3025
+ // common
3026
+ mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, k.Masked]), f.instanceOf(k.Masked)]),
3027
+ value: f.any,
3028
+ unmask: f.oneOfType([f.bool, f.oneOf(["typed"])]),
3029
+ prepare: f.func,
3030
+ prepareChar: f.func,
3031
+ validate: f.func,
3032
+ commit: f.func,
3033
+ overwrite: f.oneOfType([f.bool, f.oneOf(["shift"])]),
3034
+ eager: f.oneOfType([f.bool, f.oneOf(["append", "remove"])]),
3035
+ skipInvalid: f.bool,
3036
+ // events
3037
+ onAccept: f.func,
3038
+ onComplete: f.func,
3039
+ // pattern
3040
+ placeholderChar: f.string,
3041
+ displayChar: f.string,
3042
+ lazy: f.bool,
3043
+ definitions: f.object,
3044
+ blocks: f.object,
3045
+ // enum
3046
+ enum: f.arrayOf(f.string),
3047
+ // range
3048
+ maxLength: f.number,
3049
+ from: f.number,
3050
+ to: f.number,
3051
+ // date
3052
+ pattern: f.string,
3053
+ format: f.func,
3054
+ parse: f.func,
3055
+ autofix: f.oneOfType([f.bool, f.oneOf(["pad"])]),
3056
+ // number
3057
+ radix: f.string,
3058
+ thousandsSeparator: f.string,
3059
+ mapToRadix: f.arrayOf(f.string),
3060
+ scale: f.number,
3061
+ normalizeZeros: f.bool,
3062
+ padFractionalZeros: f.bool,
3063
+ min: f.oneOfType([f.number, f.instanceOf(Date)]),
3064
+ max: f.oneOfType([f.number, f.instanceOf(Date)]),
3065
+ // dynamic
3066
+ dispatch: f.func,
3067
+ // ref
3068
+ inputRef: f.oneOfType([f.func, f.shape({
3069
+ current: f.object
3070
+ })])
3071
+ }, se = Object.keys(ee).filter((a) => a !== "value"), Te = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ie = se.filter((a) => Te.indexOf(a) < 0);
3072
+ function Me(a) {
3073
+ var t;
3074
+ const e = (t = class extends Q.Component {
3075
+ constructor(r) {
3076
+ super(r), this._inputRef = this._inputRef.bind(this);
3077
+ }
3078
+ componentDidMount() {
3079
+ this.props.mask && this.initMask();
3080
+ }
3081
+ componentDidUpdate() {
3082
+ const r = this.props, n = this._extractMaskOptionsFromProps(r);
3083
+ if (n.mask)
3084
+ this.maskRef ? (this.maskRef.updateOptions(n), "value" in r && r.value !== void 0 && (this.maskValue = r.value)) : this.initMask(n);
3085
+ else if (this.destroyMask(), "value" in r && r.value !== void 0) {
3086
+ var u;
3087
+ (u = this.element) != null && u.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent = r.value : this.element.value = r.value;
3088
+ }
3089
+ }
3090
+ componentWillUnmount() {
3091
+ this.destroyMask();
3092
+ }
3093
+ _inputRef(r) {
3094
+ this.element = r, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = r : this.props.inputRef(r));
3095
+ }
3096
+ initMask(r) {
3097
+ r === void 0 && (r = this._extractMaskOptionsFromProps(this.props)), this.maskRef = k(this.element, r).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
3098
+ }
3099
+ destroyMask() {
3100
+ this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
3101
+ }
3102
+ _extractMaskOptionsFromProps(r) {
3103
+ const {
3104
+ ...n
3105
+ } = r;
3106
+ return Object.keys(n).filter((u) => Ie.indexOf(u) < 0).forEach((u) => {
3107
+ delete n[u];
3108
+ }), n;
3109
+ }
3110
+ _extractNonMaskProps(r) {
3111
+ const {
3112
+ ...n
3113
+ } = r;
3114
+ return se.forEach((u) => {
3115
+ u !== "maxLength" && delete n[u];
3116
+ }), "defaultValue" in n || (n.defaultValue = r.mask ? "" : n.value), delete n.value, n;
3117
+ }
3118
+ get maskValue() {
3119
+ return this.maskRef ? this.props.unmask === "typed" ? this.maskRef.typedValue : this.props.unmask ? this.maskRef.unmaskedValue : this.maskRef.value : "";
3120
+ }
3121
+ set maskValue(r) {
3122
+ this.maskRef && (r = r == null && this.props.unmask !== "typed" ? "" : r, this.props.unmask === "typed" ? this.maskRef.typedValue = r : this.props.unmask ? this.maskRef.unmaskedValue = r : this.maskRef.value = r);
3123
+ }
3124
+ _onAccept(r) {
3125
+ this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef, r);
3126
+ }
3127
+ _onComplete(r) {
3128
+ this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, r);
3129
+ }
3130
+ render() {
3131
+ return Q.createElement(a, {
3132
+ ...this._extractNonMaskProps(this.props),
3133
+ inputRef: this._inputRef
3134
+ });
3135
+ }
3136
+ }, t.displayName = void 0, t.propTypes = void 0, t), s = a.displayName || a.name || "Component";
3137
+ return e.displayName = "IMask(" + s + ")", e.propTypes = ee, Q.forwardRef((i, r) => Q.createElement(e, {
3138
+ ...i,
3139
+ ref: r
3140
+ }));
3141
+ }
3142
+ const we = Me((a) => {
3143
+ let {
3144
+ inputRef: t,
3145
+ ...e
3146
+ } = a;
3147
+ return Q.createElement("input", {
3148
+ ...e,
3149
+ ref: t
3150
+ });
3151
+ }), Re = (a, t) => Q.createElement(we, {
3152
+ ...a,
3153
+ ref: t
3154
+ }), De = Q.forwardRef(Re), Ke = ({
3155
+ inputRef: a,
3156
+ value: t,
3157
+ min: e,
3158
+ max: s,
3159
+ disabled: i = !1,
3160
+ onDateChange: r,
3161
+ onCloseDropdown: n,
3162
+ onMonthChange: u,
3163
+ borderClasses: o,
3164
+ containerClasses: h,
3165
+ iconColor: v,
3166
+ className: g,
3167
+ timezone: y
3168
+ }) => {
3169
+ const B = J.tz(t, y), L = J(
3170
+ J.tz(e, y).format("YYYY-MM-DD")
3171
+ ).toDate(), D = J(J.tz(s, y).format("YYYY-MM-DD")).endOf("day").toDate();
3172
+ return /* @__PURE__ */ ie(
3173
+ "div",
3174
+ {
3175
+ onBlur: (R) => R.stopPropagation(),
3176
+ className: Ot(
3177
+ h,
3178
+ o,
3179
+ "z-50",
3180
+ i && "cursor-not-allowed bg-surface-disabled",
3181
+ g
3182
+ ),
3183
+ children: [
3184
+ /* @__PURE__ */ Ct(
3185
+ De,
3186
+ {
3187
+ inputRef: a,
3188
+ mask: Date,
3189
+ value: B.format("MM/DD/YYYY"),
3190
+ lazy: !1,
3191
+ pattern: "m/`d/`Y",
3192
+ parse: (R) => {
3193
+ const [O, $, V] = R.split("/");
3194
+ return new Date(+V, +O - 1, +$);
3195
+ },
3196
+ format: (R) => {
3197
+ const O = J(R), $ = O.date(), V = O.month() + 1, P = O.year(), c = $ < 10 ? "0" + $ : $.toString();
3198
+ return [V < 10 ? "0" + V : V.toString(), c, P].join("/");
3199
+ },
3200
+ autofix: !0,
3201
+ unmask: !1,
3202
+ blocks: {
3203
+ dd: {
3204
+ mask: Number,
3205
+ min: 1,
3206
+ max: 31
3207
+ },
3208
+ mm: {
3209
+ mask: Number,
3210
+ min: 1,
3211
+ max: 12
3212
+ },
3213
+ YY: {
3214
+ mask: Number,
3215
+ min: 1990,
3216
+ max: 2100
3217
+ }
3218
+ },
3219
+ min: L,
3220
+ max: D,
3221
+ onAccept: (R) => {
3222
+ const O = J(R, "MM/DD/YYYY", y).startOf(
3223
+ "day"
3224
+ );
3225
+ !O.isValid() || O.clone().isSame(B.format("MM/DD/YYYY"), "day") || (r(O.format("MM/DD/YYYY")), u(O.format("yyyy-MM")));
3226
+ },
3227
+ className: Ot(
3228
+ `${ue.none} ${ne[5]} bg-transparent w-full`,
3229
+ i ? "text-glyph-disabled" : ""
3230
+ )
3231
+ }
3232
+ ),
3233
+ /* @__PURE__ */ Ct("div", { onClick: n, children: /* @__PURE__ */ Ct(ae, { disabled: !0, icon: "Calendar", color: v }) })
3234
+ ]
3235
+ }
3236
+ );
3237
+ };
3238
+ export {
3239
+ Ke as DateInput
3240
+ };